]>
Commit | Line | Data |
---|---|---|
10f2d63a | 1 | #! /bin/sh |
e6cc62c6 VS |
2 | # From configure.in Id: configure.in. |
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated by GNU Autoconf 2.57 for wxWindows 2.5.0. | |
5 | # | |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
fe0895cf | 9 | # Free Software Foundation, Inc. |
e6cc62c6 VS |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
fe0895cf | 15 | |
e6cc62c6 VS |
16 | # Be Bourne compatible |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
24 | set -o posix | |
25 | fi | |
fe0895cf | 26 | |
e6cc62c6 VS |
27 | # Support unset when possible. |
28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
29 | as_unset=unset | |
30 | else | |
31 | as_unset=false | |
32 | fi | |
fe0895cf VS |
33 | |
34 | ||
e6cc62c6 VS |
35 | # Work around bugs in pre-3.0 UWIN ksh. |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
fe0895cf | 40 | |
e6cc62c6 VS |
41 | # NLS nuisances. |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
47 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
48 | eval $as_var=C; export $as_var | |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
fe0895cf | 53 | |
e6cc62c6 VS |
54 | # Required to use basename. |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
fe0895cf | 60 | |
e6cc62c6 VS |
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
fe0895cf VS |
66 | |
67 | ||
e6cc62c6 VS |
68 | # Name of the executable. |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
fe0895cf VS |
79 | |
80 | ||
e6cc62c6 VS |
81 | # PATH needs CR, and LINENO needs CR and PATH. |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
fe0895cf | 88 | |
e6cc62c6 VS |
89 | # The user is always right. |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
fe0895cf VS |
101 | |
102 | ||
e6cc62c6 VS |
103 | as_lineno_1=$LINENO |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
fe0895cf | 119 | |
e6cc62c6 VS |
120 | ;; |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
fe0895cf | 158 | |
e6cc62c6 VS |
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
fe0895cf VS |
188 | |
189 | ||
e6cc62c6 VS |
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
fe0895cf | 196 | |
e6cc62c6 VS |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
fe0895cf | 202 | |
e6cc62c6 VS |
203 | rm -f conf$$ conf$$.exe conf$$.file |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
fe0895cf | 220 | |
e6cc62c6 VS |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
223 | else | |
224 | as_mkdir_p=false | |
225 | fi | |
fe0895cf | 226 | |
e6cc62c6 | 227 | as_executable_p="test -f" |
fe0895cf | 228 | |
e6cc62c6 VS |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
fe0895cf | 231 | |
e6cc62c6 VS |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
fe0895cf VS |
234 | |
235 | ||
e6cc62c6 VS |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
fe0895cf | 241 | |
e6cc62c6 VS |
242 | # CDPATH. |
243 | $as_unset CDPATH | |
fe0895cf VS |
244 | |
245 | ||
e6cc62c6 VS |
246 | # Name of the host. |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 | # so uname gets run too. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
fe0895cf | 250 | |
e6cc62c6 | 251 | exec 6>&1 |
fe0895cf | 252 | |
a0b9e27f | 253 | # |
e6cc62c6 VS |
254 | # Initializations. |
255 | # | |
a0b9e27f | 256 | ac_default_prefix=/usr/local |
e6cc62c6 VS |
257 | ac_config_libobj_dir=. |
258 | cross_compiling=no | |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | ||
264 | # Maximum number of lines to put in a shell here document. | |
265 | # This variable seems obsolete. It should probably be removed, and | |
266 | # only ac_max_sed_lines should be used. | |
267 | : ${ac_max_here_lines=38} | |
268 | ||
269 | # Identity of this package. | |
270 | PACKAGE_NAME='wxWindows' | |
271 | PACKAGE_TARNAME='wxwindows' | |
272 | PACKAGE_VERSION='2.5.0' | |
273 | PACKAGE_STRING='wxWindows 2.5.0' | |
274 | PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org' | |
275 | ||
276 | ac_unique_file="wx-config.in" | |
277 | # Factoring default headers for most tests. | |
278 | ac_includes_default="\ | |
279 | #include <stdio.h> | |
280 | #if HAVE_SYS_TYPES_H | |
281 | # include <sys/types.h> | |
282 | #endif | |
283 | #if HAVE_SYS_STAT_H | |
284 | # include <sys/stat.h> | |
285 | #endif | |
286 | #if STDC_HEADERS | |
287 | # include <stdlib.h> | |
288 | # include <stddef.h> | |
289 | #else | |
290 | # if HAVE_STDLIB_H | |
291 | # include <stdlib.h> | |
292 | # endif | |
293 | #endif | |
294 | #if HAVE_STRING_H | |
295 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
296 | # include <memory.h> | |
297 | # endif | |
298 | # include <string.h> | |
299 | #endif | |
300 | #if HAVE_STRINGS_H | |
301 | # include <strings.h> | |
302 | #endif | |
303 | #if HAVE_INTTYPES_H | |
304 | # include <inttypes.h> | |
305 | #else | |
306 | # if HAVE_STDINT_H | |
307 | # include <stdint.h> | |
308 | # endif | |
309 | #endif | |
310 | #if HAVE_UNISTD_H | |
311 | # include <unistd.h> | |
312 | #endif" | |
313 | ||
672abd7a | 314 | ac_subdirs_all="$ac_subdirs_all src/expat" |
1dd02ac0 | 315 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG HOST_SUFFIX SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX SO_SUFFIX_MODULE DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_OS2 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1 COND_UNICODE_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_PLATFORM_MAC_1 COND_SHARED_1 COND_SHARED_0 COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_OS2_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_PLATFORM_UNIX_0 LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS' |
e6cc62c6 | 316 | ac_subst_files='' |
10f2d63a VZ |
317 | |
318 | # Initialize some variables set by options. | |
e6cc62c6 VS |
319 | ac_init_help= |
320 | ac_init_version=false | |
10f2d63a VZ |
321 | # The variables have the same names as the options, with |
322 | # dashes changed to underlines. | |
e6cc62c6 | 323 | cache_file=/dev/null |
10f2d63a | 324 | exec_prefix=NONE |
10f2d63a | 325 | no_create= |
10f2d63a VZ |
326 | no_recursion= |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
10f2d63a VZ |
334 | verbose= |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
e6cc62c6 VS |
337 | |
338 | # Installation directory options. | |
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 | # and all the variables that are supposed to be based on exec_prefix | |
341 | # by default will actually change. | |
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
10f2d63a VZ |
343 | bindir='${exec_prefix}/bin' |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
10f2d63a VZ |
356 | ac_prev= |
357 | for ac_option | |
358 | do | |
10f2d63a VZ |
359 | # If the previous option needs an argument, assign it. |
360 | if test -n "$ac_prev"; then | |
361 | eval "$ac_prev=\$ac_option" | |
362 | ac_prev= | |
363 | continue | |
364 | fi | |
365 | ||
e6cc62c6 | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
367 | |
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
e6cc62c6 | 370 | case $ac_option in |
10f2d63a VZ |
371 | |
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 375 | bindir=$ac_optarg ;; |
10f2d63a VZ |
376 | |
377 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 378 | ac_prev=build_alias ;; |
10f2d63a | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 380 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
381 | |
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 | ac_prev=cache_file ;; | |
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
e6cc62c6 VS |
387 | cache_file=$ac_optarg ;; |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
10f2d63a VZ |
391 | |
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
e6cc62c6 | 396 | datadir=$ac_optarg ;; |
10f2d63a VZ |
397 | |
398 | -disable-* | --disable-*) | |
e6cc62c6 | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 400 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 | { (exit 1); exit 1; }; } | |
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 | eval "enable_$ac_feature=no" ;; | |
10f2d63a VZ |
406 | |
407 | -enable-* | --enable-*) | |
e6cc62c6 | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 409 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 | { (exit 1); exit 1; }; } | |
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 | case $ac_option in | |
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
416 | *) ac_optarg=yes ;; |
417 | esac | |
e6cc62c6 | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
419 | |
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | | --exec | --exe | --ex) | |
423 | ac_prev=exec_prefix ;; | |
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | | --exec=* | --exe=* | --ex=*) | |
e6cc62c6 | 427 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
428 | |
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
e6cc62c6 VS |
433 | -help | --help | --hel | --he | -h) |
434 | ac_init_help=long ;; | |
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 | ac_init_help=recursive ;; | |
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 | ac_init_help=short ;; | |
10f2d63a VZ |
439 | |
440 | -host | --host | --hos | --ho) | |
e6cc62c6 | 441 | ac_prev=host_alias ;; |
10f2d63a | 442 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 443 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
444 | |
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
e6cc62c6 | 450 | includedir=$ac_optarg ;; |
10f2d63a VZ |
451 | |
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 455 | infodir=$ac_optarg ;; |
10f2d63a VZ |
456 | |
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 460 | libdir=$ac_optarg ;; |
10f2d63a VZ |
461 | |
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
e6cc62c6 | 467 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
468 | |
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
e6cc62c6 | 476 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
477 | |
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 481 | mandir=$ac_optarg ;; |
10f2d63a VZ |
482 | |
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
e6cc62c6 | 488 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
489 | no_create=yes ;; |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
e6cc62c6 | 502 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
503 | |
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 507 | prefix=$ac_optarg ;; |
10f2d63a VZ |
508 | |
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
e6cc62c6 | 514 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
515 | |
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
e6cc62c6 | 521 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
522 | |
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
e6cc62c6 | 538 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
539 | |
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
e6cc62c6 | 548 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
549 | |
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
e6cc62c6 | 559 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
560 | |
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 564 | site=$ac_optarg ;; |
10f2d63a VZ |
565 | |
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 569 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
570 | |
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
e6cc62c6 | 576 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
577 | |
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 579 | ac_prev=target_alias ;; |
10f2d63a | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 581 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
582 | |
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
e6cc62c6 VS |
586 | -version | --version | --versio | --versi | --vers | -V) |
587 | ac_init_version=: ;; | |
10f2d63a VZ |
588 | |
589 | -with-* | --with-*) | |
e6cc62c6 | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 591 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 | { (exit 1); exit 1; }; } | |
10f2d63a | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
596 | case $ac_option in |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
598 | *) ac_optarg=yes ;; |
599 | esac | |
e6cc62c6 | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
601 | |
602 | -without-* | --without-*) | |
e6cc62c6 | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 604 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 | { (exit 1); exit 1; }; } | |
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 | eval "with_$ac_package=no" ;; | |
10f2d63a VZ |
610 | |
611 | --x) | |
612 | # Obsolete; use --with-x. | |
613 | with_x=yes ;; | |
614 | ||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | | --x-incl | --x-inc | --x-in | --x-i) | |
617 | ac_prev=x_includes ;; | |
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
e6cc62c6 | 620 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
621 | |
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 | ac_prev=x_libraries ;; | |
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
e6cc62c6 | 627 | x_libraries=$ac_optarg ;; |
10f2d63a | 628 | |
e6cc62c6 VS |
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
632 | ;; |
633 | ||
e6cc62c6 VS |
634 | *=*) |
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 | # Reject names that are not valid shell variable names. | |
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 | { (exit 1); exit 1; }; } | |
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 | eval "$ac_envvar='$ac_optarg'" | |
642 | export $ac_envvar ;; | |
643 | ||
10f2d63a | 644 | *) |
e6cc62c6 VS |
645 | # FIXME: should be removed in autoconf 3.0. |
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
10f2d63a VZ |
650 | ;; |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 | { (exit 1); exit 1; }; } | |
a0b9e27f | 659 | fi |
a0b9e27f | 660 | |
e6cc62c6 VS |
661 | # Be sure to have absolute paths. |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
664 | eval ac_val=$`echo $ac_var` | |
665 | case $ac_val in | |
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
668 | { (exit 1); exit 1; }; };; | |
669 | esac | |
670 | done | |
8284b0c5 | 671 | |
e6cc62c6 VS |
672 | # Be sure to have absolute paths. |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
674 | localstatedir libdir includedir oldincludedir infodir mandir | |
10f2d63a | 675 | do |
e6cc62c6 VS |
676 | eval ac_val=$`echo $ac_var` |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
680 | { (exit 1); exit 1; }; };; | |
10f2d63a VZ |
681 | esac |
682 | done | |
683 | ||
e6cc62c6 VS |
684 | # There might be people who depend on the old broken behavior: `$host' |
685 | # used to hold the argument of --host etc. | |
686 | # FIXME: To remove some day. | |
687 | build=$build_alias | |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
691 | # FIXME: To remove some day. | |
692 | if test "x$host_alias" != x; then | |
693 | if test "x$build_alias" = x; then | |
694 | cross_compiling=maybe | |
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 | elif test "x$build_alias" != "x$host_alias"; then | |
698 | cross_compiling=yes | |
699 | fi | |
700 | fi | |
247f5006 | 701 | |
e6cc62c6 VS |
702 | ac_tool_prefix= |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | ||
705 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 706 | |
10f2d63a VZ |
707 | |
708 | # Find the source files, if location was not specified. | |
709 | if test -z "$srcdir"; then | |
710 | ac_srcdir_defaulted=yes | |
711 | # Try the directory containing this script, then its parent. | |
e6cc62c6 VS |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
714 | X"$0" : 'X\(//\)[^/]' \| \ | |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
718 | echo X"$0" | | |
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
722 | /^X\(\/\).*/{ s//\1/; q; } | |
723 | s/.*/./; q'` | |
10f2d63a VZ |
724 | srcdir=$ac_confdir |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
e6cc62c6 VS |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
734 | { (exit 1); exit 1; }; } | |
10f2d63a | 735 | else |
e6cc62c6 VS |
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
737 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
738 | fi |
739 | fi | |
e6cc62c6 VS |
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
742 | { (exit 1); exit 1; }; } | |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CPP_set=${CPP+set} | |
773 | ac_env_CPP_value=$CPP | |
774 | ac_cv_env_CPP_set=${CPP+set} | |
775 | ac_cv_env_CPP_value=$CPP | |
776 | ac_env_CXX_set=${CXX+set} | |
777 | ac_env_CXX_value=$CXX | |
778 | ac_cv_env_CXX_set=${CXX+set} | |
779 | ac_cv_env_CXX_value=$CXX | |
780 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
781 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
782 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
783 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
784 | ac_env_CXXCPP_set=${CXXCPP+set} | |
785 | ac_env_CXXCPP_value=$CXXCPP | |
786 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
787 | ac_cv_env_CXXCPP_value=$CXXCPP | |
328a083c | 788 | |
e6cc62c6 VS |
789 | # |
790 | # Report the --help message. | |
791 | # | |
792 | if test "$ac_init_help" = "long"; then | |
793 | # Omit some internal or obsolete options to make the list less imposing. | |
794 | # This message is too long to be a string in the A/UX 3.1 sh. | |
795 | cat <<_ACEOF | |
796 | \`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems. | |
10f2d63a | 797 | |
e6cc62c6 | 798 | Usage: $0 [OPTION]... [VAR=VALUE]... |
10f2d63a | 799 | |
e6cc62c6 VS |
800 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
801 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
8284b0c5 | 802 | |
e6cc62c6 VS |
803 | Defaults for the options are specified in brackets. |
804 | ||
805 | Configuration: | |
806 | -h, --help display this help and exit | |
807 | --help=short display options specific to this package | |
808 | --help=recursive display the short help of all the included packages | |
809 | -V, --version display version information and exit | |
810 | -q, --quiet, --silent do not print \`checking...' messages | |
811 | --cache-file=FILE cache test results in FILE [disabled] | |
812 | -C, --config-cache alias for \`--cache-file=config.cache' | |
813 | -n, --no-create do not create output files | |
814 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
815 | ||
816 | _ACEOF | |
817 | ||
818 | cat <<_ACEOF | |
819 | Installation directories: | |
820 | --prefix=PREFIX install architecture-independent files in PREFIX | |
821 | [$ac_default_prefix] | |
822 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
823 | [PREFIX] | |
824 | ||
825 | By default, \`make install' will install all the files in | |
826 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
827 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
828 | for instance \`--prefix=\$HOME'. | |
829 | ||
830 | For better control, use the options below. | |
831 | ||
832 | Fine tuning of the installation directories: | |
833 | --bindir=DIR user executables [EPREFIX/bin] | |
834 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
835 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
836 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
837 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
838 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
839 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
840 | --libdir=DIR object code libraries [EPREFIX/lib] | |
841 | --includedir=DIR C header files [PREFIX/include] | |
842 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
843 | --infodir=DIR info documentation [PREFIX/info] | |
844 | --mandir=DIR man documentation [PREFIX/man] | |
845 | _ACEOF | |
846 | ||
847 | cat <<\_ACEOF | |
848 | ||
849 | X features: | |
850 | --x-includes=DIR X include files are in DIR | |
851 | --x-libraries=DIR X library files are in DIR | |
852 | ||
853 | System types: | |
854 | --build=BUILD configure for building on BUILD [guessed] | |
855 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
856 | --target=TARGET configure for building compilers for TARGET [HOST] | |
857 | _ACEOF | |
858 | fi | |
859 | ||
860 | if test -n "$ac_init_help"; then | |
861 | case $ac_init_help in | |
862 | short | recursive ) echo "Configuration of wxWindows 2.5.0:";; | |
863 | esac | |
864 | cat <<\_ACEOF | |
865 | ||
866 | Optional Features: | |
867 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
868 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
869 | --enable-gui use GUI classes | |
9747f85d | 870 | --disable-monolithic don't build wxWindows as single library |
e6cc62c6 VS |
871 | --enable-universal use wxWindows GUI controls instead of native ones |
872 | --enable-nanox use NanoX | |
873 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
874 | --enable-shared create shared library code | |
e6cc62c6 VS |
875 | --enable-optimise create optimised code |
876 | --enable-debug same as debug_flag and debug_info | |
df5168c4 | 877 | --enable-stl use STL for containers |
e6cc62c6 VS |
878 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) |
879 | --enable-debug_info create code with debugging information | |
880 | --enable-debug_gdb create code with extra GDB debugging information | |
881 | --enable-debug_cntxt use wxDebugContext | |
882 | --enable-mem_tracing create code with memory tracing | |
883 | --enable-profile create code with profiling information | |
884 | --enable-no_rtti create code without RTTI information | |
885 | --enable-no_exceptions create code without C++ exceptions handling | |
886 | --enable-permissive compile code disregarding strict ANSI | |
887 | --enable-no_deps create code without dependency information | |
888 | --enable-compat20 enable wxWindows 2.0 compatibility | |
889 | --enable-compat22 enable wxWindows 2.2 compatibility | |
890 | --disable-compat24 disable wxWindows 2.4 compatibility | |
891 | --enable-rpath=DIR output the rpath flag from wx-config | |
892 | --enable-intl use internationalization system | |
893 | --enable-config use wxConfig (and derived) classes | |
894 | --enable-protocols use wxProtocol and derived classes | |
895 | --enable-ftp use wxFTP (requires wxProtocol | |
896 | --enable-http use wxHTTP (requires wxProtocol | |
897 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
898 | --enable-sockets use socket/network classes | |
899 | --enable-ole use OLE classes | |
900 | --enable-dataobj use data object classes | |
901 | --enable-ipc use interprocess communication (wxSocket etc.) | |
902 | --enable-cmdline use wxCmdLineParser class | |
903 | --enable-datetime use wxDateTime class | |
904 | --enable-stopwatch use wxStopWatch class | |
905 | --enable-dialupman use dialup network classes | |
906 | --enable-apple_ieee use the Apple IEEE codec | |
907 | --enable-timer use wxTimer class | |
908 | --enable-wave use wxWave class | |
909 | --enable-fraction use wxFraction class | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-longlong use wxLongLong class | |
913 | --enable-geometry use geometry class | |
914 | --enable-log use logging system | |
915 | --enable-streams use wxStream etc classes | |
916 | --enable-file use wxFile classes | |
917 | --enable-ffile use wxFFile classes | |
918 | --enable-textbuf use wxTextBuffer class | |
919 | --enable-textfile use wxTextFile class | |
920 | --enable-fontmap use font encodings conversion classes | |
921 | --enable-unicode compile wxString with Unicode support | |
922 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only) | |
923 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
924 | --enable-std_iostreams use standard C++ stream classes | |
925 | --enable-filesystem use virtual file systems classes | |
926 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
927 | --enable-fs_zip use virtual ZIP filesystems | |
928 | --enable-zipstream use wxZipInputStream | |
929 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException | |
930 | --enable-snglinst use wxSingleInstanceChecker class | |
931 | --enable-mimetype use wxMimeTypesManager | |
932 | --enable-sysoptions use wxSystemOptions | |
933 | --enable-url use wxURL class | |
934 | --enable-protocol use wxProtocol class | |
935 | --enable-protocol-http HTTP support in wxProtocol | |
936 | --enable-protocol-ftp FTP support in wxProtocol | |
937 | --enable-protocol-file FILE support in wxProtocol | |
938 | --enable-threads use threads | |
939 | --enable-docview use document view architecture | |
940 | --enable-help use help subsystem | |
941 | --enable-mshtmlhelp use MS HTML Help (win32) | |
942 | --enable-html use wxHTML sub-library | |
943 | --enable-htmlhelp use wxHTML-based help | |
944 | --enable-constraints use layout-constraints system | |
945 | --enable-printarch use printing architecture | |
946 | --enable-mdi use multiple document interface architecture | |
947 | --enable-loggui use standard GUI logger | |
948 | --enable-logwin use wxLogWindow | |
949 | --enable-logdialog use wxLogDialog | |
950 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
951 | --enable-prologio not available; see contrib | |
952 | --enable-resources not available; see contrib | |
953 | --enable-clipboard use wxClipboard class | |
954 | --enable-dnd use Drag'n'Drop classes | |
955 | --enable-metafile use win32 metafiles | |
956 | --enable-controls use all usual controls | |
957 | --enable-accel use accelerators | |
958 | --enable-button use wxButton class | |
959 | --enable-bmpbutton use wxBitmapButton class | |
960 | --enable-calendar use wxCalendarCtrl class | |
961 | --enable-caret use wxCaret class | |
962 | --enable-checkbox use wxCheckBox class | |
963 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
964 | --enable-choice use wxChoice class | |
965 | --enable-combobox use wxComboBox class | |
966 | --enable-display use wxDisplay class | |
967 | --enable-gauge use wxGauge class | |
968 | --enable-grid use wxGrid class | |
969 | --enable-imaglist use wxImageList class | |
970 | --enable-listbox use wxListBox class | |
971 | --enable-listctrl use wxListCtrl class | |
972 | --enable-notebook use wxNotebook class | |
973 | --enable-radiobox use wxRadioBox class | |
974 | --enable-radiobtn use wxRadioButton class | |
975 | --enable-sash use wxSashWindow class | |
976 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
977 | --enable-slider use wxSlider class | |
978 | --enable-spinbtn use wxSpinButton class | |
979 | --enable-spinctrl use wxSpinCtrl class | |
980 | --enable-splitter use wxSplitterWindow class | |
981 | --enable-statbmp use wxStaticBitmap class | |
982 | --enable-statbox use wxStaticBox class | |
983 | --enable-statline use wxStaticLine class | |
984 | --enable-stattext use wxStaticText class | |
985 | --enable-statusbar use wxStatusBar class | |
986 | --enable-tabdialog use wxTabControl class | |
987 | --enable-textctrl use wxTextCtrl class | |
988 | --enable-togglebtn use wxToggleButton class | |
989 | --enable-toolbar use wxToolBar class | |
990 | --enable-tbarnative use native wxToolBar class | |
991 | --enable-tbarsmpl use wxToolBarSimple class | |
992 | --enable-treectrl use wxTreeCtrl class | |
993 | --enable-tipwindow use wxTipWindow class | |
994 | --enable-popupwin use wxPopUpWindow class | |
995 | --enable-commondlg use all common dialogs | |
996 | --enable-choicedlg use wxChoiceDialog | |
997 | --enable-coldlg use wxColourDialog | |
998 | --enable-filedlg use wxFileDialog | |
999 | --enable-finddlg use wxFindReplaceDialog | |
1000 | --enable-fontdlg use wxFontDialog | |
1001 | --enable-dirdlg use wxDirDialog | |
1002 | --enable-msgdlg use wxMessageDialog | |
1003 | --enable-numberdlg use wxNumberEntryDialog | |
1004 | --enable-splash use wxSplashScreen | |
1005 | --enable-textdlg use wxTextDialog | |
1006 | --enable-tipdlg use startup tips | |
1007 | --enable-progressdlg use wxProgressDialog | |
1008 | --enable-wizarddlg use wxWizard | |
1009 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1010 | --enable-miniframe use wxMiniFrame class | |
1011 | --enable-tooltips use wxToolTip class | |
1012 | --enable-splines use spline drawing code | |
1013 | --enable-validators use wxValidator and derived classes | |
1014 | --enable-busyinfo use wxBusyInfo | |
1015 | --enable-joystick use wxJoystick (Linux only) | |
1016 | --enable-metafiles use wxMetaFile (Windows only) | |
1017 | --enable-dragimage use wxDragImage | |
1018 | --enable-accessibility enable accessibility support | |
1019 | --enable-palette use wxPalette class | |
1020 | --enable-image use wxImage class | |
1021 | --enable-gif use gif images (GIF file format) | |
1022 | --enable-pcx use pcx images (PCX file format) | |
1023 | --enable-iff use iff images (IFF file format) | |
1024 | --enable-pnm use pnm images (PNM file format) | |
1025 | --enable-xpm use xpm images (XPM file format) | |
1026 | --enable-icocur use Windows ICO and CUR formats | |
029b47ad VS |
1027 | --enable-official_build official build of wxWindows (win32 DLL only) |
1028 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
e6cc62c6 VS |
1029 | --disable-largefile omit support for large files |
1030 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1031 | --disable-gtktest Do not try to compile and run a test GTK program | |
1032 | ||
1033 | Optional Packages: | |
1034 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1035 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1036 | --with-gtk use GTK+ | |
1037 | --with-motif use Motif/Lesstif | |
1038 | --with-mac use Mac OS X | |
1039 | --with-cocoa use Cocoa | |
1040 | --with-wine use Wine | |
1041 | --with-msw use MS-Windows | |
1042 | --with-pm use OS/2 Presentation Manager | |
1043 | --with-mgl use SciTech MGL | |
1044 | --with-microwin use MicroWindows | |
1045 | --with-x11 use X11 | |
1046 | --with-libpng use libpng (PNG image format) | |
1047 | --with-libjpeg use libjpeg (JPEG file format) | |
1048 | --with-libtiff use libtiff (TIFF file format) | |
1049 | --with-opengl use OpenGL (or Mesa) | |
1050 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1051 | --with-regex enable support for wxRegEx class | |
1052 | --with-zlib use zlib for LZW compression | |
1053 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1054 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1055 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1056 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1057 | --with-x use the X Window System | |
1058 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1059 | ||
1060 | Some influential environment variables: | |
1061 | CC C compiler command | |
1062 | CFLAGS C compiler flags | |
1063 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1064 | nonstandard directory <lib dir> | |
1065 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1066 | headers in a nonstandard directory <include dir> | |
1067 | CPP C preprocessor | |
1068 | CXX C++ compiler command | |
1069 | CXXFLAGS C++ compiler flags | |
1070 | CXXCPP C++ preprocessor | |
1071 | ||
1072 | Use these variables to override the choices made by `configure' or to help | |
1073 | it to find libraries and programs with nonstandard names/locations. | |
1074 | ||
1075 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1076 | _ACEOF | |
1077 | fi | |
1078 | ||
1079 | if test "$ac_init_help" = "recursive"; then | |
1080 | # If there are subdirs, report their specific --help. | |
1081 | ac_popdir=`pwd` | |
1082 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1083 | test -d $ac_dir || continue | |
1084 | ac_builddir=. | |
1085 | ||
1086 | if test "$ac_dir" != .; then | |
1087 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1088 | # A "../" for each directory in $ac_dir_suffix. | |
1089 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1090 | else | |
1091 | ac_dir_suffix= ac_top_builddir= | |
1092 | fi | |
1093 | ||
1094 | case $srcdir in | |
1095 | .) # No --srcdir option. We are building in place. | |
1096 | ac_srcdir=. | |
1097 | if test -z "$ac_top_builddir"; then | |
1098 | ac_top_srcdir=. | |
1099 | else | |
1100 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1101 | fi ;; | |
1102 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1103 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1104 | ac_top_srcdir=$srcdir ;; | |
1105 | *) # Relative path. | |
1106 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1107 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1108 | esac | |
1109 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1110 | # absolute. | |
1111 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1112 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1113 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1114 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1115 | ||
1116 | cd $ac_dir | |
1117 | # Check for guested configure; otherwise get Cygnus style configure. | |
1118 | if test -f $ac_srcdir/configure.gnu; then | |
1119 | echo | |
1120 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1121 | elif test -f $ac_srcdir/configure; then | |
1122 | echo | |
1123 | $SHELL $ac_srcdir/configure --help=recursive | |
1124 | elif test -f $ac_srcdir/configure.ac || | |
1125 | test -f $ac_srcdir/configure.in; then | |
1126 | echo | |
1127 | $ac_configure --help | |
1128 | else | |
1129 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1130 | fi | |
1131 | cd $ac_popdir | |
1132 | done | |
1133 | fi | |
8284b0c5 | 1134 | |
e6cc62c6 VS |
1135 | test -n "$ac_init_help" && exit 0 |
1136 | if $ac_init_version; then | |
1137 | cat <<\_ACEOF | |
1138 | wxWindows configure 2.5.0 | |
1139 | generated by GNU Autoconf 2.57 | |
10f2d63a | 1140 | |
e6cc62c6 VS |
1141 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1142 | Free Software Foundation, Inc. | |
1143 | This configure script is free software; the Free Software Foundation | |
1144 | gives unlimited permission to copy, distribute and modify it. | |
1145 | _ACEOF | |
1146 | exit 0 | |
7c66a493 | 1147 | fi |
e6cc62c6 VS |
1148 | exec 5>config.log |
1149 | cat >&5 <<_ACEOF | |
1150 | This file contains any messages produced by compilers while | |
1151 | running configure, to aid debugging if configure makes a mistake. | |
1152 | ||
1153 | It was created by wxWindows $as_me 2.5.0, which was | |
1154 | generated by GNU Autoconf 2.57. Invocation command line was | |
1155 | ||
1156 | $ $0 $@ | |
1157 | ||
1158 | _ACEOF | |
1159 | { | |
1160 | cat <<_ASUNAME | |
1161 | ## --------- ## | |
1162 | ## Platform. ## | |
1163 | ## --------- ## | |
1164 | ||
1165 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1166 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1167 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1168 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1169 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1170 | ||
1171 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1172 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1173 | ||
1174 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1175 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1176 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1177 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1178 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1179 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1180 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1181 | ||
1182 | _ASUNAME | |
1183 | ||
1184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1185 | for as_dir in $PATH | |
1186 | do | |
1187 | IFS=$as_save_IFS | |
1188 | test -z "$as_dir" && as_dir=. | |
1189 | echo "PATH: $as_dir" | |
1190 | done | |
1191 | ||
1192 | } >&5 | |
1193 | ||
1194 | cat >&5 <<_ACEOF | |
1195 | ||
1196 | ||
1197 | ## ----------- ## | |
1198 | ## Core tests. ## | |
1199 | ## ----------- ## | |
1200 | ||
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | # Keep a trace of the command line. | |
1205 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1206 | # Strip out --silent because we don't want to record it for future runs. | |
1207 | # Also quote any args containing shell meta-characters. | |
1208 | # Make two passes to allow for proper duplicate-argument suppression. | |
1209 | ac_configure_args= | |
1210 | ac_configure_args0= | |
1211 | ac_configure_args1= | |
1212 | ac_sep= | |
1213 | ac_must_keep_next=false | |
1214 | for ac_pass in 1 2 | |
1215 | do | |
1216 | for ac_arg | |
1217 | do | |
1218 | case $ac_arg in | |
1219 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1220 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1221 | | -silent | --silent | --silen | --sile | --sil) | |
1222 | continue ;; | |
1223 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1224 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1225 | esac | |
1226 | case $ac_pass in | |
1227 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1228 | 2) | |
1229 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1230 | if test $ac_must_keep_next = true; then | |
1231 | ac_must_keep_next=false # Got value, back to normal. | |
1232 | else | |
1233 | case $ac_arg in | |
1234 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1235 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1236 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1237 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1238 | case "$ac_configure_args0 " in | |
1239 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1240 | esac | |
1241 | ;; | |
1242 | -* ) ac_must_keep_next=true ;; | |
1243 | esac | |
1244 | fi | |
1245 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1246 | # Get rid of the leading space. | |
1247 | ac_sep=" " | |
1248 | ;; | |
1249 | esac | |
1250 | done | |
1251 | done | |
1252 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1253 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1254 | ||
1255 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1256 | # config.log. We remove comments because anyway the quotes in there | |
1257 | # would cause problems or look ugly. | |
1258 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1259 | # such as our DU 5.0 friend, will then `close' the trap. | |
1260 | trap 'exit_status=$? | |
1261 | # Save into config.log some information that might help in debugging. | |
1262 | { | |
1263 | echo | |
1264 | ||
1265 | cat <<\_ASBOX | |
1266 | ## ---------------- ## | |
1267 | ## Cache variables. ## | |
1268 | ## ---------------- ## | |
1269 | _ASBOX | |
1270 | echo | |
1271 | # The following way of writing the cache mishandles newlines in values, | |
1272 | { | |
1273 | (set) 2>&1 | | |
1274 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1275 | *ac_space=\ *) | |
1276 | sed -n \ | |
1277 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1278 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1279 | ;; | |
1280 | *) | |
1281 | sed -n \ | |
1282 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1283 | ;; | |
1284 | esac; | |
1285 | } | |
1286 | echo | |
1287 | ||
1288 | cat <<\_ASBOX | |
1289 | ## ----------------- ## | |
1290 | ## Output variables. ## | |
1291 | ## ----------------- ## | |
1292 | _ASBOX | |
1293 | echo | |
1294 | for ac_var in $ac_subst_vars | |
1295 | do | |
1296 | eval ac_val=$`echo $ac_var` | |
1297 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1298 | done | sort | |
1299 | echo | |
1300 | ||
1301 | if test -n "$ac_subst_files"; then | |
1302 | cat <<\_ASBOX | |
1303 | ## ------------- ## | |
1304 | ## Output files. ## | |
1305 | ## ------------- ## | |
1306 | _ASBOX | |
1307 | echo | |
1308 | for ac_var in $ac_subst_files | |
1309 | do | |
1310 | eval ac_val=$`echo $ac_var` | |
1311 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1312 | done | sort | |
1313 | echo | |
1314 | fi | |
1315 | ||
1316 | if test -s confdefs.h; then | |
1317 | cat <<\_ASBOX | |
1318 | ## ----------- ## | |
1319 | ## confdefs.h. ## | |
1320 | ## ----------- ## | |
1321 | _ASBOX | |
1322 | echo | |
1323 | sed "/^$/d" confdefs.h | sort | |
1324 | echo | |
1325 | fi | |
1326 | test "$ac_signal" != 0 && | |
1327 | echo "$as_me: caught signal $ac_signal" | |
1328 | echo "$as_me: exit $exit_status" | |
1329 | } >&5 | |
1330 | rm -f core core.* *.core && | |
1331 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1332 | exit $exit_status | |
1333 | ' 0 | |
1334 | for ac_signal in 1 2 13 15; do | |
1335 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1336 | done | |
1337 | ac_signal=0 | |
1338 | ||
1339 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1340 | rm -rf conftest* confdefs.h | |
1341 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1342 | echo >confdefs.h | |
1343 | ||
1344 | # Predefined preprocessor variables. | |
1345 | ||
1346 | cat >>confdefs.h <<_ACEOF | |
1347 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1348 | _ACEOF | |
1349 | ||
1350 | ||
1351 | cat >>confdefs.h <<_ACEOF | |
1352 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1353 | _ACEOF | |
1354 | ||
1355 | ||
1356 | cat >>confdefs.h <<_ACEOF | |
1357 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1358 | _ACEOF | |
1359 | ||
1360 | ||
1361 | cat >>confdefs.h <<_ACEOF | |
1362 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1363 | _ACEOF | |
1364 | ||
1365 | ||
1366 | cat >>confdefs.h <<_ACEOF | |
1367 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1368 | _ACEOF | |
1369 | ||
1370 | ||
1371 | # Let the site file select an alternate cache file if it wants to. | |
1372 | # Prefer explicitly selected file to automatically selected ones. | |
1373 | if test -z "$CONFIG_SITE"; then | |
1374 | if test "x$prefix" != xNONE; then | |
1375 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1376 | else | |
1377 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1378 | fi | |
1379 | fi | |
1380 | for ac_site_file in $CONFIG_SITE; do | |
1381 | if test -r "$ac_site_file"; then | |
1382 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1383 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1384 | sed 's/^/| /' "$ac_site_file" >&5 | |
1385 | . "$ac_site_file" | |
1386 | fi | |
1387 | done | |
1388 | ||
1389 | if test -r "$cache_file"; then | |
1390 | # Some versions of bash will fail to source /dev/null (special | |
1391 | # files actually), so we avoid doing that. | |
1392 | if test -f "$cache_file"; then | |
1393 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1394 | echo "$as_me: loading cache $cache_file" >&6;} | |
1395 | case $cache_file in | |
1396 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1397 | *) . ./$cache_file;; | |
1398 | esac | |
1399 | fi | |
1400 | else | |
1401 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1402 | echo "$as_me: creating cache $cache_file" >&6;} | |
1403 | >$cache_file | |
1404 | fi | |
1405 | ||
1406 | # Check that the precious variables saved in the cache have kept the same | |
1407 | # value. | |
1408 | ac_cache_corrupted=false | |
1409 | for ac_var in `(set) 2>&1 | | |
1410 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1411 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1412 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1413 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1414 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1415 | case $ac_old_set,$ac_new_set in | |
1416 | set,) | |
1417 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1418 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1419 | ac_cache_corrupted=: ;; | |
1420 | ,set) | |
1421 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1422 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1423 | ac_cache_corrupted=: ;; | |
1424 | ,);; | |
1425 | *) | |
1426 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1427 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1428 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1429 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1430 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1431 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1432 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1433 | ac_cache_corrupted=: | |
1434 | fi;; | |
1435 | esac | |
1436 | # Pass precious variables to config.status. | |
1437 | if test "$ac_new_set" = set; then | |
1438 | case $ac_new_val in | |
1439 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1440 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1441 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1442 | esac | |
1443 | case " $ac_configure_args " in | |
1444 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1445 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1446 | esac | |
1447 | fi | |
1448 | done | |
1449 | if $ac_cache_corrupted; then | |
1450 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1451 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1452 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1453 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1454 | { (exit 1); exit 1; }; } | |
1455 | fi | |
1456 | ||
1457 | ac_ext=c | |
1458 | ac_cpp='$CPP $CPPFLAGS' | |
1459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
698dcdb6 | 1479 | |
8284b0c5 | 1480 | |
7c66a493 | 1481 | |
a0b9e27f MB |
1482 | |
1483 | ||
a0b9e27f | 1484 | |
a0b9e27f | 1485 | |
a0b9e27f | 1486 | |
a0b9e27f | 1487 | |
a0b9e27f | 1488 | |
a0b9e27f | 1489 | |
e6cc62c6 VS |
1490 | |
1491 | ||
1492 | ac_aux_dir= | |
1493 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1494 | if test -f $ac_dir/install-sh; then | |
1495 | ac_aux_dir=$ac_dir | |
1496 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1497 | break | |
1498 | elif test -f $ac_dir/install.sh; then | |
1499 | ac_aux_dir=$ac_dir | |
1500 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1501 | break | |
1502 | elif test -f $ac_dir/shtool; then | |
1503 | ac_aux_dir=$ac_dir | |
1504 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1505 | break | |
1506 | fi | |
1507 | done | |
1508 | if test -z "$ac_aux_dir"; then | |
1509 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1510 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1511 | { (exit 1); exit 1; }; } | |
1512 | fi | |
1513 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1514 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1515 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1516 | ||
1517 | # Make sure we can run config.sub. | |
1518 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1519 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1520 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1521 | { (exit 1); exit 1; }; } | |
1522 | ||
1523 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1524 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1525 | if test "${ac_cv_build+set}" = set; then | |
1526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1527 | else | |
1528 | ac_cv_build_alias=$build_alias | |
1529 | test -z "$ac_cv_build_alias" && | |
1530 | ac_cv_build_alias=`$ac_config_guess` | |
1531 | test -z "$ac_cv_build_alias" && | |
1532 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1533 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1534 | { (exit 1); exit 1; }; } | |
1535 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1536 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1537 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1538 | { (exit 1); exit 1; }; } | |
1539 | ||
1540 | fi | |
1541 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1542 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1543 | build=$ac_cv_build | |
1544 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1545 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1546 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1547 | ||
1548 | ||
1549 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1550 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1551 | if test "${ac_cv_host+set}" = set; then | |
1552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1553 | else | |
1554 | ac_cv_host_alias=$host_alias | |
1555 | test -z "$ac_cv_host_alias" && | |
1556 | ac_cv_host_alias=$ac_cv_build_alias | |
1557 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1558 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1559 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1560 | { (exit 1); exit 1; }; } | |
1561 | ||
1562 | fi | |
1563 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1564 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1565 | host=$ac_cv_host | |
1566 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1567 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1568 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1569 | ||
1570 | ||
1571 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1572 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1573 | if test "${ac_cv_target+set}" = set; then | |
1574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1575 | else | |
1576 | ac_cv_target_alias=$target_alias | |
1577 | test "x$ac_cv_target_alias" = "x" && | |
1578 | ac_cv_target_alias=$ac_cv_host_alias | |
1579 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1580 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1581 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1582 | { (exit 1); exit 1; }; } | |
1583 | ||
1584 | fi | |
1585 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1586 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1587 | target=$ac_cv_target | |
1588 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1589 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1590 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1591 | ||
1592 | ||
1593 | # The aliases save the names the user supplied, while $host etc. | |
1594 | # will get canonicalized. | |
1595 | test -n "$target_alias" && | |
7c66a493 VZ |
1596 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1597 | NONENONEs,x,x, && | |
1598 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1599 | |
1600 | ||
a0b9e27f | 1601 | |
10f2d63a | 1602 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1603 | WX_MINOR_VERSION_NUMBER=5 |
1604 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1605 | |
10f2d63a | 1606 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1607 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1608 | |
978f1259 RL |
1609 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1610 | ||
34bed6d9 | 1611 | WX_CURRENT=0 |
6426998c RL |
1612 | WX_REVISION=0 |
1613 | WX_AGE=0 | |
1614 | ||
8284b0c5 MB |
1615 | |
1616 | ||
10f2d63a VZ |
1617 | USE_UNIX=1 |
1618 | USE_WIN32=0 | |
f9bc1684 | 1619 | USE_DOS=0 |
b12915c1 | 1620 | USE_BEOS=0 |
1216f52d | 1621 | USE_MAC=0 |
b12915c1 | 1622 | |
10f2d63a | 1623 | USE_AIX= |
fe0895cf VS |
1624 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1625 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1626 | USE_LINUX= |
f6bcfd97 | 1627 | USE_NETBSD= |
89e3b3e4 | 1628 | USE_OPENBSD= |
fe0895cf VS |
1629 | USE_OSF= USE_SGI= |
1630 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1631 | USE_ULTRIX= |
89e3b3e4 VZ |
1632 | USE_UNIXWARE= |
1633 | ||
1634 | USE_ALPHA= | |
10f2d63a | 1635 | |
ab9b9eab VZ |
1636 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1637 | ||
ac0c4cc3 | 1638 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1639 | |
ac0c4cc3 | 1640 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1641 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1642 | DEFAULT_wxUSE_MAC=0 |
1643 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1644 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1645 | DEFAULT_wxUSE_MOTIF=0 |
1646 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1647 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1648 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1649 | |
ac0c4cc3 | 1650 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1651 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1652 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1653 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1654 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1655 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1656 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1657 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1658 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1659 | |
d6a55c4b | 1660 | PROGRAM_EXT= |
3a922bb4 | 1661 | SO_SUFFIX=so |
fe0895cf | 1662 | SAMPLES_RPATH_FLAG= |
d6a55c4b | 1663 | |
10f2d63a VZ |
1664 | case "${host}" in |
1665 | *-hp-hpux* ) | |
1666 | USE_HPUX=1 | |
1667 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1668 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1669 | SO_SUFFIX=sl |
e6cc62c6 | 1670 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1671 | #define __HPUX__ 1 |
e6cc62c6 | 1672 | _ACEOF |
10f2d63a VZ |
1673 | |
1674 | ;; | |
1675 | *-*-linux* ) | |
1676 | USE_LINUX=1 | |
e6cc62c6 | 1677 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1678 | #define __LINUX__ 1 |
e6cc62c6 | 1679 | _ACEOF |
10f2d63a VZ |
1680 | |
1681 | TMP=`uname -m` | |
1682 | if test "x$TMP" = "xalpha"; then | |
1683 | USE_ALPHA=1 | |
e6cc62c6 | 1684 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1685 | #define __ALPHA__ 1 |
e6cc62c6 | 1686 | _ACEOF |
fe0895cf VS |
1687 | |
1688 | fi | |
1689 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1690 | ;; | |
1691 | *-*-gnu* ) | |
1692 | USE_GNU=1 | |
e6cc62c6 | 1693 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1694 | #define __GNU__ 1 |
e6cc62c6 | 1695 | _ACEOF |
fe0895cf VS |
1696 | |
1697 | TMP=`uname -m` | |
1698 | if test "x$TMP" = "xalpha"; then | |
1699 | USE_ALPHA=1 | |
e6cc62c6 | 1700 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1701 | #define __ALPHA__ 1 |
e6cc62c6 | 1702 | _ACEOF |
10f2d63a VZ |
1703 | |
1704 | fi | |
1705 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1706 | ;; | |
1707 | *-*-irix5* | *-*-irix6* ) | |
1708 | USE_SGI=1 | |
1709 | USE_SVR4=1 | |
e6cc62c6 | 1710 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1711 | #define __SGI__ 1 |
e6cc62c6 | 1712 | _ACEOF |
10f2d63a | 1713 | |
e6cc62c6 | 1714 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1715 | #define __SVR4__ 1 |
e6cc62c6 | 1716 | _ACEOF |
10f2d63a VZ |
1717 | |
1718 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1719 | ;; | |
1720 | *-*-solaris2* ) | |
1721 | USE_SUN=1 | |
1722 | USE_SOLARIS=1 | |
1723 | USE_SVR4=1 | |
e6cc62c6 | 1724 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1725 | #define __SUN__ 1 |
e6cc62c6 | 1726 | _ACEOF |
10f2d63a | 1727 | |
e6cc62c6 | 1728 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1729 | #define __SOLARIS__ 1 |
e6cc62c6 | 1730 | _ACEOF |
10f2d63a | 1731 | |
e6cc62c6 | 1732 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1733 | #define __SVR4__ 1 |
e6cc62c6 | 1734 | _ACEOF |
10f2d63a VZ |
1735 | |
1736 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1737 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1738 | ;; |
1739 | *-*-sunos4* ) | |
1740 | USE_SUN=1 | |
1741 | USE_SUNOS=1 | |
1742 | USE_BSD=1 | |
e6cc62c6 | 1743 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1744 | #define __SUN__ 1 |
e6cc62c6 | 1745 | _ACEOF |
10f2d63a | 1746 | |
e6cc62c6 | 1747 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1748 | #define __SUNOS__ 1 |
e6cc62c6 | 1749 | _ACEOF |
10f2d63a | 1750 | |
e6cc62c6 | 1751 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1752 | #define __BSD__ 1 |
e6cc62c6 | 1753 | _ACEOF |
10f2d63a VZ |
1754 | |
1755 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1756 | ;; | |
f6bcfd97 | 1757 | *-*-freebsd*) |
10f2d63a VZ |
1758 | USE_BSD=1 |
1759 | USE_FREEBSD=1 | |
e6cc62c6 | 1760 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1761 | #define __FREEBSD__ 1 |
e6cc62c6 | 1762 | _ACEOF |
10f2d63a | 1763 | |
e6cc62c6 | 1764 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1765 | #define __BSD__ 1 |
e6cc62c6 | 1766 | _ACEOF |
95c8801c VS |
1767 | |
1768 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1769 | ;; | |
1770 | *-*-openbsd*) | |
1771 | USE_BSD=1 | |
1772 | USE_OPENBSD=1 | |
e6cc62c6 | 1773 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1774 | #define __OPENBSD__ 1 |
e6cc62c6 | 1775 | _ACEOF |
95c8801c | 1776 | |
e6cc62c6 | 1777 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1778 | #define __BSD__ 1 |
e6cc62c6 | 1779 | _ACEOF |
f6bcfd97 BP |
1780 | |
1781 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1782 | ;; | |
1783 | *-*-netbsd*) | |
1784 | USE_BSD=1 | |
1785 | USE_NETBSD=1 | |
e6cc62c6 | 1786 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1787 | #define __NETBSD__ 1 |
e6cc62c6 | 1788 | _ACEOF |
f6bcfd97 | 1789 | |
e6cc62c6 | 1790 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1791 | #define __BSD__ 1 |
e6cc62c6 | 1792 | _ACEOF |
10f2d63a VZ |
1793 | |
1794 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1795 | ;; | |
1796 | *-*-osf* ) | |
1797 | USE_ALPHA=1 | |
1798 | USE_OSF=1 | |
e6cc62c6 | 1799 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1800 | #define __ALPHA__ 1 |
e6cc62c6 | 1801 | _ACEOF |
10f2d63a | 1802 | |
e6cc62c6 | 1803 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1804 | #define __OSF__ 1 |
e6cc62c6 | 1805 | _ACEOF |
10f2d63a VZ |
1806 | |
1807 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1808 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1809 | ;; |
1810 | *-*-dgux5* ) | |
1811 | USE_ALPHA=1 | |
1812 | USE_SVR4=1 | |
e6cc62c6 | 1813 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1814 | #define __ALPHA__ 1 |
e6cc62c6 | 1815 | _ACEOF |
10f2d63a | 1816 | |
e6cc62c6 | 1817 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1818 | #define __SVR4__ 1 |
e6cc62c6 | 1819 | _ACEOF |
10f2d63a VZ |
1820 | |
1821 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1822 | ;; | |
1823 | *-*-sysv5* ) | |
1824 | USE_SYSV=1 | |
1825 | USE_SVR4=1 | |
e6cc62c6 | 1826 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1827 | #define __SYSV__ 1 |
e6cc62c6 | 1828 | _ACEOF |
10f2d63a | 1829 | |
e6cc62c6 | 1830 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1831 | #define __SVR4__ 1 |
e6cc62c6 | 1832 | _ACEOF |
10f2d63a VZ |
1833 | |
1834 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1835 | ;; | |
1836 | *-*-aix* ) | |
1837 | USE_AIX=1 | |
1838 | USE_SYSV=1 | |
1839 | USE_SVR4=1 | |
2b5f62a0 | 1840 | SO_SUFFIX=a |
e6cc62c6 | 1841 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1842 | #define __AIX__ 1 |
e6cc62c6 | 1843 | _ACEOF |
10f2d63a | 1844 | |
e6cc62c6 | 1845 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1846 | #define __SYSV__ 1 |
e6cc62c6 | 1847 | _ACEOF |
10f2d63a | 1848 | |
e6cc62c6 | 1849 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1850 | #define __SVR4__ 1 |
e6cc62c6 | 1851 | _ACEOF |
10f2d63a VZ |
1852 | |
1853 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1854 | ;; | |
1855 | ||
89e3b3e4 VZ |
1856 | *-*-*UnixWare*) |
1857 | USE_SYSV=1 | |
1858 | USE_SVR4=1 | |
1859 | USE_UNIXWARE=1 | |
e6cc62c6 | 1860 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1861 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1862 | _ACEOF |
89e3b3e4 VZ |
1863 | |
1864 | ;; | |
1865 | ||
1c8183e2 | 1866 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1867 | SO_SUFFIX=dll |
cf27ef00 | 1868 | PROGRAM_EXT=".exe" |
7b7a7637 | 1869 | RESCOMP=windres |
10f2d63a VZ |
1870 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1871 | ;; | |
1872 | ||
f9bc1684 VS |
1873 | *-pc-msdosdjgpp ) |
1874 | USE_UNIX=0 | |
1875 | USE_DOS=1 | |
e6cc62c6 | 1876 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1877 | #define __DOS__ 1 |
e6cc62c6 | 1878 | _ACEOF |
f9bc1684 VS |
1879 | |
1880 | PROGRAM_EXT=".exe" | |
1881 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1882 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1883 | ;; |
1884 | ||
6fa882bd | 1885 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1886 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1887 | #define __EMX__ 1 |
e6cc62c6 | 1888 | _ACEOF |
10f2d63a | 1889 | |
cf27ef00 | 1890 | PROGRAM_EXT=".exe" |
e07802fc | 1891 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1892 | ;; |
1893 | ||
d08b457b GD |
1894 | powerpc-*-darwin* ) |
1895 | USE_BSD=1 | |
f11bdd03 | 1896 | USE_DARWIN=1 |
3a922bb4 | 1897 | SO_SUFFIX=dylib |
e6cc62c6 | 1898 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1899 | #define __BSD__ 1 |
e6cc62c6 | 1900 | _ACEOF |
b4085ce6 | 1901 | |
e6cc62c6 | 1902 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1903 | #define __DARWIN__ 1 |
e6cc62c6 | 1904 | _ACEOF |
d08b457b | 1905 | |
e6cc62c6 | 1906 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1907 | #define __POWERPC__ 1 |
e6cc62c6 | 1908 | _ACEOF |
82d43113 | 1909 | |
e6cc62c6 | 1910 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1911 | #define TARGET_CARBON 1 |
e6cc62c6 | 1912 | _ACEOF |
b4085ce6 GD |
1913 | |
1914 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1915 | ;; | |
1916 | ||
b12915c1 VZ |
1917 | *-*-beos* ) |
1918 | USE_BEOS=1 | |
e6cc62c6 | 1919 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1920 | #define __BEOS__ 1 |
e6cc62c6 | 1921 | _ACEOF |
b12915c1 VZ |
1922 | |
1923 | ;; | |
1924 | ||
10f2d63a | 1925 | *) |
e6cc62c6 VS |
1926 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1927 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1928 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1929 | esac |
1930 | ||
8284b0c5 MB |
1931 | |
1932 | ||
1933 | ||
1934 | wx_arg_cache_file="configarg.cache" | |
1935 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1936 | rm -f ${wx_arg_cache_file}.tmp |
1937 | touch ${wx_arg_cache_file}.tmp | |
1938 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1939 | |
10f2d63a VZ |
1940 | |
1941 | DEBUG_CONFIGURE=0 | |
1942 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 1943 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 1944 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 1945 | |
d8356fa3 VZ |
1946 | DEFAULT_wxUSE_NANOX=no |
1947 | ||
10f2d63a VZ |
1948 | DEFAULT_wxUSE_THREADS=yes |
1949 | ||
1950 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 1951 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1952 | DEFAULT_wxUSE_PROFILE=no |
1953 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1954 | DEFAULT_wxUSE_NO_RTTI=no |
1955 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1956 | DEFAULT_wxUSE_PERMISSIVE=no |
1957 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1958 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1959 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1960 | DEFAULT_wxUSE_MEM_TRACING=no | |
1961 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1962 | DEFAULT_wxUSE_DMALLOC=no | |
1963 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1964 | ||
1965 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1966 | DEFAULT_wxUSE_LOGWINDOW=no |
1967 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1968 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1969 | |
1970 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1971 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1972 | |
3e44f09d | 1973 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
1974 | DEFAULT_wxUSE_XML=no |
1975 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
1976 | DEFAULT_wxUSE_ZLIB=no |
1977 | DEFAULT_wxUSE_LIBPNG=no | |
1978 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1979 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1980 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1981 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1982 | |
eb4efbdc | 1983 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1984 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1985 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1986 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1987 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
1988 | DEFAULT_wxUSE_TIMER=no |
1989 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1990 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1991 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1992 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1993 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1994 | DEFAULT_wxUSE_WAVE=no |
1995 | DEFAULT_wxUSE_INTL=no | |
1996 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1997 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1998 | DEFAULT_wxUSE_STREAMS=no |
1999 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2000 | DEFAULT_wxUSE_OLE=no |
2001 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2002 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2003 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2004 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2005 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2006 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2007 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2008 | |
2009 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2010 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2011 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2012 | ||
10f2d63a VZ |
2013 | DEFAULT_wxUSE_CLIPBOARD=no |
2014 | DEFAULT_wxUSE_TOOLTIPS=no | |
2015 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2016 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2017 | DEFAULT_wxUSE_SPLINES=no |
2018 | ||
2019 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2020 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2021 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2022 | ||
10f2d63a VZ |
2023 | DEFAULT_wxUSE_RESOURCES=no |
2024 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2025 | DEFAULT_wxUSE_IPC=no | |
2026 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2027 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2028 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2029 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2030 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2031 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2032 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2033 | DEFAULT_wxUSE_PROTOCOL=no | |
2034 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2035 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2036 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2037 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2038 | |
10f2d63a | 2039 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2040 | DEFAULT_wxUSE_CHOICEDLG=no |
2041 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2042 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2043 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2044 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2045 | DEFAULT_wxUSE_FONTDLG=no |
2046 | DEFAULT_wxUSE_MSGDLG=no | |
2047 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2048 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2049 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2050 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2051 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2052 | DEFAULT_wxUSE_WIZARDDLG=no |
2053 | ||
1e6feb95 | 2054 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2055 | DEFAULT_wxUSE_MINIFRAME=no |
2056 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2057 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2058 | DEFAULT_wxUSE_FS_INET=no |
2059 | DEFAULT_wxUSE_FS_ZIP=no | |
2060 | DEFAULT_wxUSE_BUSYINFO=no | |
2061 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 2062 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2063 | |
2064 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2065 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2066 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2067 | DEFAULT_wxUSE_CALCTRL=no |
2068 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2069 | DEFAULT_wxUSE_CHECKBOX=no |
2070 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2071 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2072 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2073 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2074 | DEFAULT_wxUSE_GAUGE=no |
2075 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
2076 | DEFAULT_wxUSE_IMAGLIST=no |
2077 | DEFAULT_wxUSE_LISTBOX=no | |
2078 | DEFAULT_wxUSE_LISTCTRL=no | |
2079 | DEFAULT_wxUSE_NOTEBOOK=no | |
2080 | DEFAULT_wxUSE_RADIOBOX=no | |
2081 | DEFAULT_wxUSE_RADIOBTN=no | |
2082 | DEFAULT_wxUSE_SASH=no | |
2083 | DEFAULT_wxUSE_SCROLLBAR=no | |
2084 | DEFAULT_wxUSE_SLIDER=no | |
2085 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2086 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2087 | DEFAULT_wxUSE_SPLITTER=no |
2088 | DEFAULT_wxUSE_STATBMP=no | |
2089 | DEFAULT_wxUSE_STATBOX=no | |
2090 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2091 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2092 | DEFAULT_wxUSE_STATUSBAR=yes |
2093 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2094 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2095 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2096 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2097 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2098 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2099 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2100 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2101 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2102 | |
2103 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2104 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2105 | DEFAULT_wxUSE_WCSRTOMBS=no |
2106 | ||
edae8572 | 2107 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2108 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2109 | DEFAULT_wxUSE_GIF=no |
2110 | DEFAULT_wxUSE_PCX=no | |
2111 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2112 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2113 | DEFAULT_wxUSE_XPM=no |
658974ae | 2114 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2115 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2116 | |
e9e0dc15 | 2117 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2118 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2119 | else |
1e6feb95 | 2120 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2121 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2122 | |
d8356fa3 VZ |
2123 | DEFAULT_wxUSE_NANOX=no |
2124 | ||
10f2d63a VZ |
2125 | DEFAULT_wxUSE_THREADS=yes |
2126 | ||
2127 | DEFAULT_wxUSE_SHARED=yes | |
2128 | DEFAULT_wxUSE_OPTIMISE=yes | |
2129 | DEFAULT_wxUSE_PROFILE=no | |
2130 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2131 | DEFAULT_wxUSE_NO_RTTI=no |
2132 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2133 | DEFAULT_wxUSE_PERMISSIVE=no |
2134 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2135 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2136 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2137 | DEFAULT_wxUSE_MEM_TRACING=no | |
2138 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2139 | DEFAULT_wxUSE_DMALLOC=no | |
2140 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2141 | ||
2142 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
2143 | DEFAULT_wxUSE_LOGWINDOW=yes |
2144 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2145 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2146 | |
2147 | DEFAULT_wxUSE_GUI=yes | |
2148 | ||
831b3152 | 2149 | DEFAULT_wxUSE_REGEX=yes |
672abd7a VS |
2150 | DEFAULT_wxUSE_XML=yes |
2151 | DEFAULT_wxUSE_EXPAT=yes | |
10f2d63a VZ |
2152 | DEFAULT_wxUSE_ZLIB=yes |
2153 | DEFAULT_wxUSE_LIBPNG=yes | |
2154 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 2155 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 2156 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2157 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2158 | |
eb4efbdc | 2159 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2160 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2161 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2162 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2163 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2164 | DEFAULT_wxUSE_TIMER=yes |
2165 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2166 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2167 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2168 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2169 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2170 | DEFAULT_wxUSE_WAVE=no |
2171 | DEFAULT_wxUSE_INTL=yes | |
2172 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2173 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2174 | DEFAULT_wxUSE_STREAMS=yes |
2175 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2176 | DEFAULT_wxUSE_OLE=yes |
2177 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2178 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2179 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2180 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2181 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2182 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2183 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2184 | |
2185 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2186 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2187 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2188 | ||
10f2d63a VZ |
2189 | DEFAULT_wxUSE_CLIPBOARD=yes |
2190 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2191 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2192 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2193 | DEFAULT_wxUSE_SPLINES=yes |
2194 | ||
2195 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2196 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2197 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2198 | ||
2b5f62a0 | 2199 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2200 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2201 | DEFAULT_wxUSE_IPC=yes | |
2202 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2203 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2204 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2205 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2206 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2207 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2208 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2209 | DEFAULT_wxUSE_PROTOCOL=yes |
2210 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2211 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2212 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2213 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2214 | |
2215 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2216 | DEFAULT_wxUSE_CHOICEDLG=yes |
2217 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2218 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2219 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2220 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2221 | DEFAULT_wxUSE_FONTDLG=yes |
2222 | DEFAULT_wxUSE_MSGDLG=yes | |
2223 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2224 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2225 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2226 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2227 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2228 | DEFAULT_wxUSE_WIZARDDLG=yes |
2229 | ||
1e6feb95 | 2230 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2231 | DEFAULT_wxUSE_MINIFRAME=yes |
2232 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2233 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2234 | DEFAULT_wxUSE_FS_INET=yes |
2235 | DEFAULT_wxUSE_FS_ZIP=yes | |
2236 | DEFAULT_wxUSE_BUSYINFO=yes | |
2237 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2238 | DEFAULT_wxUSE_VALIDATORS=yes | |
2239 | ||
2240 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2241 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2242 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2243 | DEFAULT_wxUSE_CALCTRL=yes |
2244 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2245 | DEFAULT_wxUSE_CHECKBOX=yes |
2246 | DEFAULT_wxUSE_CHECKLST=yes | |
2247 | DEFAULT_wxUSE_CHOICE=yes | |
2248 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2249 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2250 | DEFAULT_wxUSE_GAUGE=yes |
2251 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
2252 | DEFAULT_wxUSE_IMAGLIST=yes |
2253 | DEFAULT_wxUSE_LISTBOX=yes | |
2254 | DEFAULT_wxUSE_LISTCTRL=yes | |
2255 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2256 | DEFAULT_wxUSE_RADIOBOX=yes | |
2257 | DEFAULT_wxUSE_RADIOBTN=yes | |
2258 | DEFAULT_wxUSE_SASH=yes | |
2259 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2260 | DEFAULT_wxUSE_SLIDER=yes | |
2261 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2262 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2263 | DEFAULT_wxUSE_SPLITTER=yes |
2264 | DEFAULT_wxUSE_STATBMP=yes | |
2265 | DEFAULT_wxUSE_STATBOX=yes | |
2266 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2267 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2268 | DEFAULT_wxUSE_STATUSBAR=yes |
2269 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2270 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2271 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2272 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2273 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2274 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2275 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2276 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2277 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2278 | |
2279 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2280 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2281 | DEFAULT_wxUSE_WCSRTOMBS=no |
2282 | ||
edae8572 | 2283 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2284 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2285 | DEFAULT_wxUSE_GIF=yes |
2286 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2287 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2288 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2289 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2290 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2291 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2292 | |
e9e0dc15 | 2293 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2294 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2295 | fi |
2296 | ||
8284b0c5 MB |
2297 | |
2298 | ||
10f2d63a | 2299 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2300 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2301 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2302 | has_toolkit_in_cache=1 |
2303 | eval "DEFAULT_$LINE" | |
2304 | eval "CACHE_$toolkit=1" | |
2305 | fi | |
2306 | done | |
2307 | ||
8284b0c5 MB |
2308 | |
2309 | ||
5005acfe | 2310 | enablestring= |
e6cc62c6 VS |
2311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2312 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2313 | no_cache=0 |
2314 | # Check whether --enable-gui or --disable-gui was given. | |
2315 | if test "${enable_gui+set}" = set; then | |
2316 | enableval="$enable_gui" | |
e6cc62c6 | 2317 | |
10f2d63a VZ |
2318 | if test "$enableval" = yes; then |
2319 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2320 | else | |
2321 | ac_cv_use_gui='wxUSE_GUI=no' | |
2322 | fi | |
e6cc62c6 | 2323 | |
10f2d63a | 2324 | else |
e6cc62c6 | 2325 | |
10f2d63a VZ |
2326 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2327 | if test "x$LINE" != x ; then | |
2328 | eval "DEFAULT_$LINE" | |
2329 | else | |
2330 | no_cache=1 | |
2331 | fi | |
2332 | ||
2333 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2334 | |
e6cc62c6 | 2335 | fi; |
10f2d63a VZ |
2336 | |
2337 | eval "$ac_cv_use_gui" | |
2338 | if test "$no_cache" != 1; then | |
2339 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2340 | fi | |
2341 | ||
2342 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2343 | echo "$as_me:$LINENO: result: yes" >&5 |
2344 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2345 | else |
e6cc62c6 VS |
2346 | echo "$as_me:$LINENO: result: no" >&5 |
2347 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2348 | fi |
e6cc62c6 | 2349 | |
10f2d63a | 2350 | |
9747f85d VS |
2351 | enablestring= |
2352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2353 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2354 | no_cache=0 | |
2355 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2356 | if test "${enable_monolithic+set}" = set; then | |
2357 | enableval="$enable_monolithic" | |
2358 | ||
2359 | if test "$enableval" = yes; then | |
2360 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2361 | else | |
2362 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2363 | fi | |
2364 | ||
2365 | else | |
2366 | ||
2367 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2368 | if test "x$LINE" != x ; then | |
2369 | eval "DEFAULT_$LINE" | |
2370 | else | |
2371 | no_cache=1 | |
2372 | fi | |
2373 | ||
2374 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2375 | ||
2376 | fi; | |
2377 | ||
2378 | eval "$ac_cv_use_monolithic" | |
2379 | if test "$no_cache" != 1; then | |
2380 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2381 | fi | |
2382 | ||
2383 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2384 | echo "$as_me:$LINENO: result: yes" >&5 | |
2385 | echo "${ECHO_T}yes" >&6 | |
2386 | else | |
2387 | echo "$as_me:$LINENO: result: no" >&5 | |
2388 | echo "${ECHO_T}no" >&6 | |
2389 | fi | |
2390 | ||
2391 | ||
b12915c1 | 2392 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2393 | |
8284b0c5 | 2394 | |
5005acfe | 2395 | enablestring= |
e6cc62c6 VS |
2396 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2397 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2398 | no_cache=0 |
2399 | # Check whether --enable-universal or --disable-universal was given. | |
2400 | if test "${enable_universal+set}" = set; then | |
2401 | enableval="$enable_universal" | |
e6cc62c6 | 2402 | |
1e6feb95 VZ |
2403 | if test "$enableval" = yes; then |
2404 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2405 | else | |
2406 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2407 | fi | |
e6cc62c6 | 2408 | |
1e6feb95 | 2409 | else |
e6cc62c6 | 2410 | |
1e6feb95 VZ |
2411 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2412 | if test "x$LINE" != x ; then | |
2413 | eval "DEFAULT_$LINE" | |
2414 | else | |
2415 | no_cache=1 | |
2416 | fi | |
2417 | ||
2418 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2419 | |
e6cc62c6 | 2420 | fi; |
1e6feb95 VZ |
2421 | |
2422 | eval "$ac_cv_use_universal" | |
2423 | if test "$no_cache" != 1; then | |
2424 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2425 | fi | |
2426 | ||
2427 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2428 | echo "$as_me:$LINENO: result: yes" >&5 |
2429 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2430 | else |
e6cc62c6 VS |
2431 | echo "$as_me:$LINENO: result: no" >&5 |
2432 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2433 | fi |
e6cc62c6 VS |
2434 | |
2435 | ||
10f2d63a VZ |
2436 | # Check whether --with-gtk or --without-gtk was given. |
2437 | if test "${with_gtk+set}" = set; then | |
2438 | withval="$with_gtk" | |
2439 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2440 | fi; |
10f2d63a VZ |
2441 | |
2442 | # Check whether --with-motif or --without-motif was given. | |
2443 | if test "${with_motif+set}" = set; then | |
2444 | withval="$with_motif" | |
2445 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2446 | fi; |
10f2d63a | 2447 | |
b4085ce6 GD |
2448 | # Check whether --with-mac or --without-mac was given. |
2449 | if test "${with_mac+set}" = set; then | |
2450 | withval="$with_mac" | |
2451 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2452 | fi; |
b4085ce6 | 2453 | |
ac0c4cc3 DE |
2454 | # Check whether --with-cocoa or --without-cocoa was given. |
2455 | if test "${with_cocoa+set}" = set; then | |
2456 | withval="$with_cocoa" | |
2457 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2458 | fi; |
ac0c4cc3 | 2459 | |
10f2d63a VZ |
2460 | # Check whether --with-wine or --without-wine was given. |
2461 | if test "${with_wine+set}" = set; then | |
2462 | withval="$with_wine" | |
89e6bf6d | 2463 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2464 | fi; |
10f2d63a | 2465 | |
77e13408 RL |
2466 | # Check whether --with-msw or --without-msw was given. |
2467 | if test "${with_msw+set}" = set; then | |
2468 | withval="$with_msw" | |
b4efce5e | 2469 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2470 | fi; |
10f2d63a | 2471 | |
e07802fc VZ |
2472 | # Check whether --with-pm or --without-pm was given. |
2473 | if test "${with_pm+set}" = set; then | |
2474 | withval="$with_pm" | |
2475 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2476 | fi; |
698dcdb6 | 2477 | |
1e6feb95 VZ |
2478 | # Check whether --with-mgl or --without-mgl was given. |
2479 | if test "${with_mgl+set}" = set; then | |
2480 | withval="$with_mgl" | |
6c657b52 | 2481 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2482 | fi; |
1e6feb95 | 2483 | |
1725144d RR |
2484 | # Check whether --with-microwin or --without-microwin was given. |
2485 | if test "${with_microwin+set}" = set; then | |
2486 | withval="$with_microwin" | |
2487 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2488 | fi; |
1725144d | 2489 | |
f79bd02d JS |
2490 | # Check whether --with-x11 or --without-x11 was given. |
2491 | if test "${with_x11+set}" = set; then | |
2492 | withval="$with_x11" | |
3c011993 | 2493 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2494 | fi; |
a0b9e27f | 2495 | |
5005acfe | 2496 | enablestring= |
e6cc62c6 VS |
2497 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2498 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2499 | no_cache=0 |
ba875e66 VZ |
2500 | # Check whether --enable-nanox or --disable-nanox was given. |
2501 | if test "${enable_nanox+set}" = set; then | |
2502 | enableval="$enable_nanox" | |
e6cc62c6 | 2503 | |
d8356fa3 | 2504 | if test "$enableval" = yes; then |
ba875e66 | 2505 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2506 | else |
ba875e66 | 2507 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2508 | fi |
e6cc62c6 | 2509 | |
d8356fa3 | 2510 | else |
e6cc62c6 | 2511 | |
d8356fa3 VZ |
2512 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2513 | if test "x$LINE" != x ; then | |
2514 | eval "DEFAULT_$LINE" | |
2515 | else | |
2516 | no_cache=1 | |
2517 | fi | |
2518 | ||
ba875e66 | 2519 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2520 | |
e6cc62c6 | 2521 | fi; |
d8356fa3 | 2522 | |
ba875e66 | 2523 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2524 | if test "$no_cache" != 1; then |
ba875e66 | 2525 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2526 | fi |
2527 | ||
2528 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2529 | echo "$as_me:$LINENO: result: yes" >&5 |
2530 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2531 | else |
e6cc62c6 VS |
2532 | echo "$as_me:$LINENO: result: no" >&5 |
2533 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2534 | fi |
e6cc62c6 | 2535 | |
8284b0c5 | 2536 | |
d74f4b5a | 2537 | |
5005acfe | 2538 | enablestring= |
e6cc62c6 VS |
2539 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2540 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2541 | no_cache=0 |
2542 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2543 | if test "${enable_gtk2+set}" = set; then |
2544 | enableval="$enable_gtk2" | |
e6cc62c6 | 2545 | |
d74f4b5a VZ |
2546 | if test "$enableval" = yes; then |
2547 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2548 | else | |
2549 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2550 | fi | |
e6cc62c6 | 2551 | |
10f2d63a | 2552 | else |
e6cc62c6 | 2553 | |
d74f4b5a VZ |
2554 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2555 | if test "x$LINE" != x ; then | |
2556 | eval "DEFAULT_$LINE" | |
2557 | else | |
2558 | no_cache=1 | |
2559 | fi | |
2560 | ||
2561 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2562 | |
e6cc62c6 | 2563 | fi; |
328a083c | 2564 | |
d74f4b5a VZ |
2565 | eval "$ac_cv_use_gtk2" |
2566 | if test "$no_cache" != 1; then | |
2567 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2568 | fi | |
2569 | ||
2570 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2571 | echo "$as_me:$LINENO: result: yes" >&5 |
2572 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2573 | else |
e6cc62c6 VS |
2574 | echo "$as_me:$LINENO: result: no" >&5 |
2575 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2576 | fi |
d74f4b5a | 2577 | |
5c6fa7d2 | 2578 | |
e6cc62c6 VS |
2579 | |
2580 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2581 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2582 | no_cache=0 |
e6cc62c6 VS |
2583 | |
2584 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2585 | if test "${with_libpng+set}" = set; then |
2586 | withval="$with_libpng" | |
e6cc62c6 | 2587 | |
10f2d63a | 2588 | if test "$withval" = yes; then |
b12915c1 | 2589 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2590 | elif test "$withval" = no; then |
b12915c1 | 2591 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2592 | elif test "$withval" = sys; then |
2593 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2594 | elif test "$withval" = builtin; then |
2595 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2596 | else |
e6cc62c6 VS |
2597 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2598 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2599 | { (exit 1); exit 1; }; } | |
10f2d63a | 2600 | fi |
e6cc62c6 | 2601 | |
10f2d63a | 2602 | else |
e6cc62c6 | 2603 | |
b12915c1 | 2604 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2605 | if test "x$LINE" != x ; then |
2606 | eval "DEFAULT_$LINE" | |
2607 | else | |
2608 | no_cache=1 | |
2609 | fi | |
2610 | ||
b12915c1 | 2611 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2612 | |
e6cc62c6 | 2613 | fi; |
10f2d63a | 2614 | |
b12915c1 | 2615 | eval "$ac_cv_use_libpng" |
10f2d63a | 2616 | if test "$no_cache" != 1; then |
b12915c1 | 2617 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2618 | fi |
2619 | ||
b12915c1 | 2620 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2621 | echo "$as_me:$LINENO: result: yes" >&5 |
2622 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2623 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2624 | echo "$as_me:$LINENO: result: no" >&5 |
2625 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2626 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2627 | echo "$as_me:$LINENO: result: system version" >&5 |
2628 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2629 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2630 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2631 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2632 | else |
e6cc62c6 VS |
2633 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2634 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2635 | { (exit 1); exit 1; }; } | |
10f2d63a | 2636 | fi |
10f2d63a | 2637 | |
e6cc62c6 VS |
2638 | |
2639 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2640 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2641 | no_cache=0 |
e6cc62c6 VS |
2642 | |
2643 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2644 | if test "${with_libjpeg+set}" = set; then |
2645 | withval="$with_libjpeg" | |
e6cc62c6 | 2646 | |
10f2d63a | 2647 | if test "$withval" = yes; then |
b12915c1 | 2648 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2649 | elif test "$withval" = no; then |
b12915c1 | 2650 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2651 | elif test "$withval" = sys; then |
2652 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2653 | elif test "$withval" = builtin; then |
2654 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2655 | else |
e6cc62c6 VS |
2656 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2657 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2658 | { (exit 1); exit 1; }; } | |
10f2d63a | 2659 | fi |
e6cc62c6 | 2660 | |
10f2d63a | 2661 | else |
e6cc62c6 | 2662 | |
b12915c1 | 2663 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2664 | if test "x$LINE" != x ; then |
2665 | eval "DEFAULT_$LINE" | |
2666 | else | |
2667 | no_cache=1 | |
2668 | fi | |
2669 | ||
b12915c1 | 2670 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2671 | |
e6cc62c6 | 2672 | fi; |
10f2d63a | 2673 | |
b12915c1 | 2674 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2675 | if test "$no_cache" != 1; then |
b12915c1 | 2676 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2677 | fi |
2678 | ||
b12915c1 | 2679 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2680 | echo "$as_me:$LINENO: result: yes" >&5 |
2681 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2682 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2683 | echo "$as_me:$LINENO: result: no" >&5 |
2684 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2685 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2686 | echo "$as_me:$LINENO: result: system version" >&5 |
2687 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2688 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2689 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2690 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2691 | else |
e6cc62c6 VS |
2692 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2693 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2694 | { (exit 1); exit 1; }; } | |
10f2d63a | 2695 | fi |
10f2d63a | 2696 | |
e6cc62c6 VS |
2697 | |
2698 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2699 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2700 | no_cache=0 |
e6cc62c6 VS |
2701 | |
2702 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2703 | if test "${with_libtiff+set}" = set; then |
2704 | withval="$with_libtiff" | |
e6cc62c6 | 2705 | |
10f2d63a | 2706 | if test "$withval" = yes; then |
b12915c1 | 2707 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2708 | elif test "$withval" = no; then |
b12915c1 | 2709 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2710 | elif test "$withval" = sys; then |
2711 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2712 | elif test "$withval" = builtin; then |
2713 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2714 | else |
e6cc62c6 VS |
2715 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2716 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2717 | { (exit 1); exit 1; }; } | |
10f2d63a | 2718 | fi |
e6cc62c6 | 2719 | |
10f2d63a | 2720 | else |
e6cc62c6 | 2721 | |
b12915c1 | 2722 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2723 | if test "x$LINE" != x ; then |
2724 | eval "DEFAULT_$LINE" | |
2725 | else | |
2726 | no_cache=1 | |
2727 | fi | |
2728 | ||
b12915c1 | 2729 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2730 | |
e6cc62c6 | 2731 | fi; |
10f2d63a | 2732 | |
b12915c1 | 2733 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2734 | if test "$no_cache" != 1; then |
b12915c1 | 2735 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2736 | fi |
2737 | ||
b12915c1 | 2738 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2739 | echo "$as_me:$LINENO: result: yes" >&5 |
2740 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2741 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2742 | echo "$as_me:$LINENO: result: no" >&5 |
2743 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2744 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2745 | echo "$as_me:$LINENO: result: system version" >&5 |
2746 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2747 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2748 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2749 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2750 | else |
e6cc62c6 VS |
2751 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2752 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2753 | { (exit 1); exit 1; }; } | |
10f2d63a | 2754 | fi |
10f2d63a | 2755 | |
e6cc62c6 VS |
2756 | |
2757 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
2758 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2759 | no_cache=0 |
e6cc62c6 VS |
2760 | |
2761 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2762 | if test "${with_opengl+set}" = set; then |
2763 | withval="$with_opengl" | |
e6cc62c6 | 2764 | |
10f2d63a | 2765 | if test "$withval" = yes; then |
b12915c1 | 2766 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2767 | else |
b12915c1 | 2768 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2769 | fi |
e6cc62c6 | 2770 | |
10f2d63a | 2771 | else |
e6cc62c6 | 2772 | |
b12915c1 | 2773 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2774 | if test "x$LINE" != x ; then |
2775 | eval "DEFAULT_$LINE" | |
2776 | else | |
2777 | no_cache=1 | |
2778 | fi | |
2779 | ||
b12915c1 | 2780 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2781 | |
e6cc62c6 | 2782 | fi; |
10f2d63a | 2783 | |
b12915c1 | 2784 | eval "$ac_cv_use_opengl" |
10f2d63a | 2785 | if test "$no_cache" != 1; then |
b12915c1 | 2786 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2787 | fi |
2788 | ||
b12915c1 | 2789 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2790 | echo "$as_me:$LINENO: result: yes" >&5 |
2791 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2792 | else |
e6cc62c6 VS |
2793 | echo "$as_me:$LINENO: result: no" >&5 |
2794 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2795 | fi |
e6cc62c6 | 2796 | |
10f2d63a | 2797 | |
b12915c1 VZ |
2798 | fi |
2799 | ||
5c6fa7d2 | 2800 | |
e6cc62c6 VS |
2801 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2802 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2803 | no_cache=0 |
e6cc62c6 VS |
2804 | |
2805 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2806 | if test "${with_dmalloc+set}" = set; then |
2807 | withval="$with_dmalloc" | |
e6cc62c6 | 2808 | |
c7a2bf27 | 2809 | if test "$withval" = yes; then |
b12915c1 | 2810 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2811 | else |
b12915c1 | 2812 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2813 | fi |
e6cc62c6 | 2814 | |
c7a2bf27 | 2815 | else |
e6cc62c6 | 2816 | |
b12915c1 | 2817 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2818 | if test "x$LINE" != x ; then |
2819 | eval "DEFAULT_$LINE" | |
2820 | else | |
2821 | no_cache=1 | |
2822 | fi | |
2823 | ||
b12915c1 | 2824 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2825 | |
e6cc62c6 | 2826 | fi; |
c7a2bf27 | 2827 | |
b12915c1 | 2828 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2829 | if test "$no_cache" != 1; then |
b12915c1 | 2830 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2831 | fi |
2832 | ||
b12915c1 | 2833 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
2834 | echo "$as_me:$LINENO: result: yes" >&5 |
2835 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2836 | else |
e6cc62c6 VS |
2837 | echo "$as_me:$LINENO: result: no" >&5 |
2838 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2839 | fi |
c7a2bf27 | 2840 | |
e6cc62c6 VS |
2841 | |
2842 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2843 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 2844 | no_cache=0 |
e6cc62c6 VS |
2845 | |
2846 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
2847 | if test "${with_regex+set}" = set; then |
2848 | withval="$with_regex" | |
e6cc62c6 | 2849 | |
3e44f09d VZ |
2850 | if test "$withval" = yes; then |
2851 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2852 | elif test "$withval" = no; then | |
2853 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2854 | elif test "$withval" = sys; then | |
2855 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2856 | elif test "$withval" = builtin; then |
2857 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2858 | else |
e6cc62c6 VS |
2859 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2860 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2861 | { (exit 1); exit 1; }; } | |
3e44f09d | 2862 | fi |
e6cc62c6 | 2863 | |
3e44f09d | 2864 | else |
e6cc62c6 | 2865 | |
3e44f09d VZ |
2866 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2867 | if test "x$LINE" != x ; then | |
2868 | eval "DEFAULT_$LINE" | |
2869 | else | |
2870 | no_cache=1 | |
2871 | fi | |
2872 | ||
2873 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 2874 | |
e6cc62c6 | 2875 | fi; |
3e44f09d VZ |
2876 | |
2877 | eval "$ac_cv_use_regex" | |
2878 | if test "$no_cache" != 1; then | |
2879 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2880 | fi | |
2881 | ||
2882 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
2883 | echo "$as_me:$LINENO: result: yes" >&5 |
2884 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 2885 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
2886 | echo "$as_me:$LINENO: result: no" >&5 |
2887 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 2888 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
2889 | echo "$as_me:$LINENO: result: system version" >&5 |
2890 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2891 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
2892 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2893 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 2894 | else |
e6cc62c6 VS |
2895 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2896 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2897 | { (exit 1); exit 1; }; } | |
3e44f09d | 2898 | fi |
3e44f09d | 2899 | |
e6cc62c6 VS |
2900 | |
2901 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
2902 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 2903 | no_cache=0 |
e6cc62c6 VS |
2904 | |
2905 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
2906 | if test "${with_zlib+set}" = set; then |
2907 | withval="$with_zlib" | |
e6cc62c6 | 2908 | |
10f2d63a | 2909 | if test "$withval" = yes; then |
b12915c1 | 2910 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2911 | elif test "$withval" = no; then |
b12915c1 | 2912 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2913 | elif test "$withval" = sys; then |
2914 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2915 | elif test "$withval" = builtin; then |
2916 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2917 | else |
e6cc62c6 VS |
2918 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2919 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2920 | { (exit 1); exit 1; }; } | |
10f2d63a | 2921 | fi |
e6cc62c6 | 2922 | |
10f2d63a | 2923 | else |
e6cc62c6 | 2924 | |
b12915c1 | 2925 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2926 | if test "x$LINE" != x ; then |
2927 | eval "DEFAULT_$LINE" | |
2928 | else | |
2929 | no_cache=1 | |
2930 | fi | |
2931 | ||
b12915c1 | 2932 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 2933 | |
e6cc62c6 | 2934 | fi; |
10f2d63a | 2935 | |
b12915c1 | 2936 | eval "$ac_cv_use_zlib" |
10f2d63a | 2937 | if test "$no_cache" != 1; then |
b12915c1 | 2938 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2939 | fi |
2940 | ||
b12915c1 | 2941 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
2942 | echo "$as_me:$LINENO: result: yes" >&5 |
2943 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2944 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
2945 | echo "$as_me:$LINENO: result: no" >&5 |
2946 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2947 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
2948 | echo "$as_me:$LINENO: result: system version" >&5 |
2949 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2950 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
2951 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2952 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2953 | else |
e6cc62c6 VS |
2954 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2955 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2956 | { (exit 1); exit 1; }; } | |
10f2d63a | 2957 | fi |
10f2d63a | 2958 | |
e6cc62c6 VS |
2959 | |
2960 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
2961 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 2962 | no_cache=0 |
e6cc62c6 VS |
2963 | |
2964 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
2965 | if test "${with_odbc+set}" = set; then |
2966 | withval="$with_odbc" | |
e6cc62c6 | 2967 | |
10f2d63a VZ |
2968 | if test "$withval" = yes; then |
2969 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 2970 | elif test "$withval" = no; then |
10f2d63a | 2971 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
2972 | elif test "$withval" = sys; then |
2973 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2974 | elif test "$withval" = builtin; then | |
2975 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2976 | else | |
e6cc62c6 VS |
2977 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
2978 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
2979 | { (exit 1); exit 1; }; } | |
10f2d63a | 2980 | fi |
e6cc62c6 | 2981 | |
10f2d63a | 2982 | else |
e6cc62c6 | 2983 | |
10f2d63a VZ |
2984 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2985 | if test "x$LINE" != x ; then | |
2986 | eval "DEFAULT_$LINE" | |
2987 | else | |
2988 | no_cache=1 | |
2989 | fi | |
2990 | ||
2991 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 2992 | |
e6cc62c6 | 2993 | fi; |
10f2d63a VZ |
2994 | |
2995 | eval "$ac_cv_use_odbc" | |
2996 | if test "$no_cache" != 1; then | |
2997 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2998 | fi | |
2999 | ||
3000 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3001 | echo "$as_me:$LINENO: result: yes" >&5 |
3002 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3003 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3004 | echo "$as_me:$LINENO: result: no" >&5 |
3005 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3006 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3007 | echo "$as_me:$LINENO: result: system version" >&5 |
3008 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3009 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3010 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3011 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3012 | else |
e6cc62c6 VS |
3013 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3014 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3015 | { (exit 1); exit 1; }; } | |
10f2d63a | 3016 | fi |
e6cc62c6 | 3017 | |
52127426 | 3018 | |
672abd7a VS |
3019 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3020 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3021 | no_cache=0 | |
3022 | ||
3023 | # Check whether --with-expat or --without-expat was given. | |
3024 | if test "${with_expat+set}" = set; then | |
3025 | withval="$with_expat" | |
3026 | ||
3027 | if test "$withval" = yes; then | |
3028 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3029 | elif test "$withval" = no; then | |
3030 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3031 | elif test "$withval" = sys; then | |
3032 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3033 | elif test "$withval" = builtin; then | |
3034 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3035 | else | |
3036 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3037 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3038 | { (exit 1); exit 1; }; } | |
3039 | fi | |
3040 | ||
3041 | else | |
3042 | ||
3043 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3044 | if test "x$LINE" != x ; then | |
3045 | eval "DEFAULT_$LINE" | |
3046 | else | |
3047 | no_cache=1 | |
3048 | fi | |
3049 | ||
3050 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3051 | ||
3052 | fi; | |
3053 | ||
3054 | eval "$ac_cv_use_expat" | |
3055 | if test "$no_cache" != 1; then | |
3056 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3057 | fi | |
3058 | ||
3059 | if test "$wxUSE_EXPAT" = yes; then | |
3060 | echo "$as_me:$LINENO: result: yes" >&5 | |
3061 | echo "${ECHO_T}yes" >&6 | |
3062 | elif test "$wxUSE_EXPAT" = no; then | |
3063 | echo "$as_me:$LINENO: result: no" >&5 | |
3064 | echo "${ECHO_T}no" >&6 | |
3065 | elif test "$wxUSE_EXPAT" = sys; then | |
3066 | echo "$as_me:$LINENO: result: system version" >&5 | |
3067 | echo "${ECHO_T}system version" >&6 | |
3068 | elif test "$wxUSE_EXPAT" = builtin; then | |
3069 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3070 | echo "${ECHO_T}builtin version" >&6 | |
3071 | else | |
3072 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3073 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3074 | { (exit 1); exit 1; }; } | |
3075 | fi | |
3076 | ||
3077 | ||
8284b0c5 MB |
3078 | |
3079 | ||
5005acfe | 3080 | enablestring= |
e6cc62c6 VS |
3081 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3082 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3083 | no_cache=0 |
3084 | # Check whether --enable-shared or --disable-shared was given. | |
3085 | if test "${enable_shared+set}" = set; then | |
3086 | enableval="$enable_shared" | |
e6cc62c6 | 3087 | |
10f2d63a VZ |
3088 | if test "$enableval" = yes; then |
3089 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3090 | else | |
3091 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3092 | fi | |
e6cc62c6 | 3093 | |
10f2d63a | 3094 | else |
e6cc62c6 | 3095 | |
10f2d63a VZ |
3096 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3097 | if test "x$LINE" != x ; then | |
3098 | eval "DEFAULT_$LINE" | |
3099 | else | |
3100 | no_cache=1 | |
3101 | fi | |
3102 | ||
3103 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3104 | |
e6cc62c6 | 3105 | fi; |
10f2d63a VZ |
3106 | |
3107 | eval "$ac_cv_use_shared" | |
3108 | if test "$no_cache" != 1; then | |
3109 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3110 | fi | |
3111 | ||
3112 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3113 | echo "$as_me:$LINENO: result: yes" >&5 |
3114 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3115 | else |
e6cc62c6 VS |
3116 | echo "$as_me:$LINENO: result: no" >&5 |
3117 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3118 | fi |
e6cc62c6 | 3119 | |
10f2d63a | 3120 | |
5005acfe | 3121 | enablestring= |
e6cc62c6 VS |
3122 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3123 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3124 | no_cache=0 |
3125 | # Check whether --enable-optimise or --disable-optimise was given. | |
3126 | if test "${enable_optimise+set}" = set; then | |
3127 | enableval="$enable_optimise" | |
e6cc62c6 | 3128 | |
10f2d63a VZ |
3129 | if test "$enableval" = yes; then |
3130 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3131 | else | |
3132 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3133 | fi | |
e6cc62c6 | 3134 | |
10f2d63a | 3135 | else |
e6cc62c6 | 3136 | |
10f2d63a VZ |
3137 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3138 | if test "x$LINE" != x ; then | |
3139 | eval "DEFAULT_$LINE" | |
3140 | else | |
3141 | no_cache=1 | |
3142 | fi | |
3143 | ||
3144 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3145 | |
e6cc62c6 | 3146 | fi; |
10f2d63a VZ |
3147 | |
3148 | eval "$ac_cv_use_optimise" | |
3149 | if test "$no_cache" != 1; then | |
3150 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3151 | fi | |
3152 | ||
3153 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3154 | echo "$as_me:$LINENO: result: yes" >&5 |
3155 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3156 | else |
e6cc62c6 VS |
3157 | echo "$as_me:$LINENO: result: no" >&5 |
3158 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3159 | fi |
e6cc62c6 | 3160 | |
10f2d63a | 3161 | |
5005acfe | 3162 | enablestring= |
e6cc62c6 VS |
3163 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3164 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3165 | no_cache=0 |
3166 | # Check whether --enable-debug or --disable-debug was given. | |
3167 | if test "${enable_debug+set}" = set; then | |
3168 | enableval="$enable_debug" | |
e6cc62c6 | 3169 | |
10f2d63a VZ |
3170 | if test "$enableval" = yes; then |
3171 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3172 | else | |
3173 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3174 | fi | |
e6cc62c6 | 3175 | |
10f2d63a | 3176 | else |
e6cc62c6 | 3177 | |
10f2d63a VZ |
3178 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3179 | if test "x$LINE" != x ; then | |
3180 | eval "DEFAULT_$LINE" | |
3181 | else | |
3182 | no_cache=1 | |
3183 | fi | |
3184 | ||
3185 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3186 | |
e6cc62c6 | 3187 | fi; |
10f2d63a VZ |
3188 | |
3189 | eval "$ac_cv_use_debug" | |
3190 | if test "$no_cache" != 1; then | |
3191 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3192 | fi | |
3193 | ||
3194 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3195 | echo "$as_me:$LINENO: result: yes" >&5 |
3196 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3197 | else |
e6cc62c6 VS |
3198 | echo "$as_me:$LINENO: result: no" >&5 |
3199 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3200 | fi |
e6cc62c6 | 3201 | |
52127426 | 3202 | |
df5168c4 MB |
3203 | enablestring= |
3204 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3205 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3206 | no_cache=0 | |
3207 | # Check whether --enable-stl or --disable-stl was given. | |
3208 | if test "${enable_stl+set}" = set; then | |
3209 | enableval="$enable_stl" | |
3210 | ||
3211 | if test "$enableval" = yes; then | |
3212 | ac_cv_use_stl='wxUSE_STL=yes' | |
3213 | else | |
3214 | ac_cv_use_stl='wxUSE_STL=no' | |
3215 | fi | |
3216 | ||
3217 | else | |
3218 | ||
3219 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3220 | if test "x$LINE" != x ; then | |
3221 | eval "DEFAULT_$LINE" | |
3222 | else | |
3223 | no_cache=1 | |
3224 | fi | |
3225 | ||
3226 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3227 | ||
3228 | fi; | |
3229 | ||
3230 | eval "$ac_cv_use_stl" | |
3231 | if test "$no_cache" != 1; then | |
3232 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3233 | fi | |
3234 | ||
3235 | if test "$wxUSE_STL" = yes; then | |
3236 | echo "$as_me:$LINENO: result: yes" >&5 | |
3237 | echo "${ECHO_T}yes" >&6 | |
3238 | else | |
3239 | echo "$as_me:$LINENO: result: no" >&5 | |
3240 | echo "${ECHO_T}no" >&6 | |
3241 | fi | |
3242 | ||
3243 | ||
10f2d63a VZ |
3244 | if test "$wxUSE_DEBUG" = "yes"; then |
3245 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3246 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3247 | BUILD=debug |
10f2d63a VZ |
3248 | elif test "$wxUSE_DEBUG" = "no"; then |
3249 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3250 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3251 | BUILD=release |
10f2d63a VZ |
3252 | fi |
3253 | ||
8284b0c5 | 3254 | |
5005acfe | 3255 | enablestring= |
e6cc62c6 VS |
3256 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3257 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3258 | no_cache=0 |
3259 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3260 | if test "${enable_debug_flag+set}" = set; then | |
3261 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3262 | |
10f2d63a VZ |
3263 | if test "$enableval" = yes; then |
3264 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3265 | else | |
3266 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3267 | fi | |
e6cc62c6 | 3268 | |
10f2d63a | 3269 | else |
e6cc62c6 | 3270 | |
10f2d63a VZ |
3271 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3272 | if test "x$LINE" != x ; then | |
3273 | eval "DEFAULT_$LINE" | |
3274 | else | |
3275 | no_cache=1 | |
3276 | fi | |
3277 | ||
3278 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3279 | |
e6cc62c6 | 3280 | fi; |
10f2d63a VZ |
3281 | |
3282 | eval "$ac_cv_use_debug_flag" | |
3283 | if test "$no_cache" != 1; then | |
3284 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3285 | fi | |
3286 | ||
3287 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3288 | echo "$as_me:$LINENO: result: yes" >&5 |
3289 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3290 | else |
e6cc62c6 VS |
3291 | echo "$as_me:$LINENO: result: no" >&5 |
3292 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3293 | fi |
e6cc62c6 | 3294 | |
10f2d63a | 3295 | |
5005acfe | 3296 | enablestring= |
e6cc62c6 VS |
3297 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3298 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3299 | no_cache=0 |
3300 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3301 | if test "${enable_debug_info+set}" = set; then | |
3302 | enableval="$enable_debug_info" | |
e6cc62c6 | 3303 | |
10f2d63a VZ |
3304 | if test "$enableval" = yes; then |
3305 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3306 | else | |
3307 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3308 | fi | |
e6cc62c6 | 3309 | |
10f2d63a | 3310 | else |
e6cc62c6 | 3311 | |
10f2d63a VZ |
3312 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3313 | if test "x$LINE" != x ; then | |
3314 | eval "DEFAULT_$LINE" | |
3315 | else | |
3316 | no_cache=1 | |
3317 | fi | |
3318 | ||
3319 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3320 | |
e6cc62c6 | 3321 | fi; |
10f2d63a VZ |
3322 | |
3323 | eval "$ac_cv_use_debug_info" | |
3324 | if test "$no_cache" != 1; then | |
3325 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3326 | fi | |
3327 | ||
3328 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3329 | echo "$as_me:$LINENO: result: yes" >&5 |
3330 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3331 | else |
e6cc62c6 VS |
3332 | echo "$as_me:$LINENO: result: no" >&5 |
3333 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3334 | fi |
e6cc62c6 | 3335 | |
10f2d63a | 3336 | |
5005acfe | 3337 | enablestring= |
e6cc62c6 VS |
3338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3339 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3340 | no_cache=0 |
3341 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3342 | if test "${enable_debug_gdb+set}" = set; then | |
3343 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3344 | |
10f2d63a VZ |
3345 | if test "$enableval" = yes; then |
3346 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3347 | else | |
3348 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3349 | fi | |
e6cc62c6 | 3350 | |
10f2d63a | 3351 | else |
e6cc62c6 | 3352 | |
10f2d63a VZ |
3353 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3354 | if test "x$LINE" != x ; then | |
3355 | eval "DEFAULT_$LINE" | |
3356 | else | |
3357 | no_cache=1 | |
3358 | fi | |
3359 | ||
3360 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3361 | |
e6cc62c6 | 3362 | fi; |
10f2d63a VZ |
3363 | |
3364 | eval "$ac_cv_use_debug_gdb" | |
3365 | if test "$no_cache" != 1; then | |
3366 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3367 | fi | |
3368 | ||
3369 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3370 | echo "$as_me:$LINENO: result: yes" >&5 |
3371 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3372 | else |
e6cc62c6 VS |
3373 | echo "$as_me:$LINENO: result: no" >&5 |
3374 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3375 | fi |
e6cc62c6 | 3376 | |
10f2d63a | 3377 | |
5005acfe | 3378 | enablestring= |
e6cc62c6 VS |
3379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3380 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3381 | no_cache=0 |
3382 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3383 | if test "${enable_debug_cntxt+set}" = set; then | |
3384 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3385 | |
10f2d63a VZ |
3386 | if test "$enableval" = yes; then |
3387 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3388 | else | |
3389 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3390 | fi | |
e6cc62c6 | 3391 | |
10f2d63a | 3392 | else |
e6cc62c6 | 3393 | |
10f2d63a VZ |
3394 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3395 | if test "x$LINE" != x ; then | |
3396 | eval "DEFAULT_$LINE" | |
3397 | else | |
3398 | no_cache=1 | |
3399 | fi | |
3400 | ||
3401 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3402 | |
e6cc62c6 | 3403 | fi; |
10f2d63a VZ |
3404 | |
3405 | eval "$ac_cv_use_debug_cntxt" | |
3406 | if test "$no_cache" != 1; then | |
3407 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3408 | fi | |
3409 | ||
3410 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3411 | echo "$as_me:$LINENO: result: yes" >&5 |
3412 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3413 | else |
e6cc62c6 VS |
3414 | echo "$as_me:$LINENO: result: no" >&5 |
3415 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3416 | fi |
e6cc62c6 | 3417 | |
10f2d63a | 3418 | |
5005acfe | 3419 | enablestring= |
e6cc62c6 VS |
3420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3421 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3422 | no_cache=0 |
3423 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3424 | if test "${enable_mem_tracing+set}" = set; then | |
3425 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3426 | |
10f2d63a VZ |
3427 | if test "$enableval" = yes; then |
3428 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3429 | else | |
3430 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3431 | fi | |
e6cc62c6 | 3432 | |
10f2d63a | 3433 | else |
e6cc62c6 | 3434 | |
10f2d63a VZ |
3435 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3436 | if test "x$LINE" != x ; then | |
3437 | eval "DEFAULT_$LINE" | |
3438 | else | |
3439 | no_cache=1 | |
3440 | fi | |
3441 | ||
3442 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3443 | |
e6cc62c6 | 3444 | fi; |
10f2d63a VZ |
3445 | |
3446 | eval "$ac_cv_use_mem_tracing" | |
3447 | if test "$no_cache" != 1; then | |
3448 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3449 | fi | |
3450 | ||
3451 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3452 | echo "$as_me:$LINENO: result: yes" >&5 |
3453 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3454 | else |
e6cc62c6 VS |
3455 | echo "$as_me:$LINENO: result: no" >&5 |
3456 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3457 | fi |
e6cc62c6 | 3458 | |
10f2d63a | 3459 | |
5005acfe | 3460 | enablestring= |
e6cc62c6 VS |
3461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3462 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3463 | no_cache=0 |
3464 | # Check whether --enable-profile or --disable-profile was given. | |
3465 | if test "${enable_profile+set}" = set; then | |
3466 | enableval="$enable_profile" | |
e6cc62c6 | 3467 | |
10f2d63a VZ |
3468 | if test "$enableval" = yes; then |
3469 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3470 | else | |
3471 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3472 | fi | |
e6cc62c6 | 3473 | |
10f2d63a | 3474 | else |
e6cc62c6 | 3475 | |
10f2d63a VZ |
3476 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3477 | if test "x$LINE" != x ; then | |
3478 | eval "DEFAULT_$LINE" | |
3479 | else | |
3480 | no_cache=1 | |
3481 | fi | |
3482 | ||
3483 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3484 | |
e6cc62c6 | 3485 | fi; |
10f2d63a VZ |
3486 | |
3487 | eval "$ac_cv_use_profile" | |
3488 | if test "$no_cache" != 1; then | |
3489 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3490 | fi | |
3491 | ||
3492 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3493 | echo "$as_me:$LINENO: result: yes" >&5 |
3494 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3495 | else |
e6cc62c6 VS |
3496 | echo "$as_me:$LINENO: result: no" >&5 |
3497 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3498 | fi |
e6cc62c6 | 3499 | |
10f2d63a | 3500 | |
5005acfe | 3501 | enablestring= |
e6cc62c6 VS |
3502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3503 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3504 | no_cache=0 |
3505 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3506 | if test "${enable_no_rtti+set}" = set; then | |
3507 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3508 | |
10f2d63a VZ |
3509 | if test "$enableval" = yes; then |
3510 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3511 | else | |
3512 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3513 | fi | |
e6cc62c6 | 3514 | |
10f2d63a | 3515 | else |
e6cc62c6 | 3516 | |
10f2d63a VZ |
3517 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3518 | if test "x$LINE" != x ; then | |
3519 | eval "DEFAULT_$LINE" | |
3520 | else | |
3521 | no_cache=1 | |
3522 | fi | |
3523 | ||
3524 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3525 | |
e6cc62c6 | 3526 | fi; |
10f2d63a VZ |
3527 | |
3528 | eval "$ac_cv_use_no_rtti" | |
3529 | if test "$no_cache" != 1; then | |
3530 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3531 | fi | |
3532 | ||
3533 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3534 | echo "$as_me:$LINENO: result: yes" >&5 |
3535 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3536 | else |
e6cc62c6 VS |
3537 | echo "$as_me:$LINENO: result: no" >&5 |
3538 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3539 | fi |
e6cc62c6 | 3540 | |
10f2d63a | 3541 | |
5005acfe | 3542 | enablestring= |
e6cc62c6 VS |
3543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3544 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3545 | no_cache=0 |
3546 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3547 | if test "${enable_no_exceptions+set}" = set; then | |
3548 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3549 | |
10f2d63a VZ |
3550 | if test "$enableval" = yes; then |
3551 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3552 | else | |
3553 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3554 | fi | |
e6cc62c6 | 3555 | |
10f2d63a | 3556 | else |
e6cc62c6 | 3557 | |
10f2d63a VZ |
3558 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3559 | if test "x$LINE" != x ; then | |
3560 | eval "DEFAULT_$LINE" | |
3561 | else | |
3562 | no_cache=1 | |
3563 | fi | |
3564 | ||
3565 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3566 | |
e6cc62c6 | 3567 | fi; |
10f2d63a VZ |
3568 | |
3569 | eval "$ac_cv_use_no_exceptions" | |
3570 | if test "$no_cache" != 1; then | |
3571 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3572 | fi | |
3573 | ||
3574 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3575 | echo "$as_me:$LINENO: result: yes" >&5 |
3576 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3577 | else |
e6cc62c6 VS |
3578 | echo "$as_me:$LINENO: result: no" >&5 |
3579 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3580 | fi |
e6cc62c6 | 3581 | |
10f2d63a | 3582 | |
5005acfe | 3583 | enablestring= |
e6cc62c6 VS |
3584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3585 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3586 | no_cache=0 |
3587 | # Check whether --enable-permissive or --disable-permissive was given. | |
3588 | if test "${enable_permissive+set}" = set; then | |
3589 | enableval="$enable_permissive" | |
e6cc62c6 | 3590 | |
10f2d63a VZ |
3591 | if test "$enableval" = yes; then |
3592 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3593 | else | |
3594 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3595 | fi | |
e6cc62c6 | 3596 | |
10f2d63a | 3597 | else |
e6cc62c6 | 3598 | |
10f2d63a VZ |
3599 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3600 | if test "x$LINE" != x ; then | |
3601 | eval "DEFAULT_$LINE" | |
3602 | else | |
3603 | no_cache=1 | |
3604 | fi | |
3605 | ||
3606 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3607 | |
e6cc62c6 | 3608 | fi; |
10f2d63a VZ |
3609 | |
3610 | eval "$ac_cv_use_permissive" | |
3611 | if test "$no_cache" != 1; then | |
3612 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3613 | fi | |
3614 | ||
3615 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3616 | echo "$as_me:$LINENO: result: yes" >&5 |
3617 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3618 | else |
e6cc62c6 VS |
3619 | echo "$as_me:$LINENO: result: no" >&5 |
3620 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3621 | fi |
e6cc62c6 | 3622 | |
10f2d63a | 3623 | |
5005acfe | 3624 | enablestring= |
e6cc62c6 VS |
3625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3626 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3627 | no_cache=0 |
3628 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3629 | if test "${enable_no_deps+set}" = set; then | |
3630 | enableval="$enable_no_deps" | |
e6cc62c6 | 3631 | |
10f2d63a VZ |
3632 | if test "$enableval" = yes; then |
3633 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3634 | else | |
3635 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3636 | fi | |
e6cc62c6 | 3637 | |
10f2d63a | 3638 | else |
e6cc62c6 | 3639 | |
10f2d63a VZ |
3640 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3641 | if test "x$LINE" != x ; then | |
3642 | eval "DEFAULT_$LINE" | |
3643 | else | |
3644 | no_cache=1 | |
3645 | fi | |
3646 | ||
3647 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3648 | |
e6cc62c6 | 3649 | fi; |
10f2d63a VZ |
3650 | |
3651 | eval "$ac_cv_use_no_deps" | |
3652 | if test "$no_cache" != 1; then | |
3653 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3654 | fi | |
3655 | ||
3656 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3657 | echo "$as_me:$LINENO: result: yes" >&5 |
3658 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3659 | else |
e6cc62c6 VS |
3660 | echo "$as_me:$LINENO: result: no" >&5 |
3661 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3662 | fi |
e6cc62c6 | 3663 | |
52127426 | 3664 | |
8284b0c5 | 3665 | |
5005acfe | 3666 | enablestring= |
e6cc62c6 VS |
3667 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5 |
3668 | echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6 | |
54276ccf VZ |
3669 | no_cache=0 |
3670 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
3671 | if test "${enable_compat20+set}" = set; then | |
3672 | enableval="$enable_compat20" | |
e6cc62c6 | 3673 | |
54276ccf VZ |
3674 | if test "$enableval" = yes; then |
3675 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3676 | else | |
3677 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3678 | fi | |
e6cc62c6 | 3679 | |
54276ccf | 3680 | else |
e6cc62c6 | 3681 | |
54276ccf VZ |
3682 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
3683 | if test "x$LINE" != x ; then | |
3684 | eval "DEFAULT_$LINE" | |
3685 | else | |
3686 | no_cache=1 | |
3687 | fi | |
3688 | ||
3689 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
54276ccf | 3690 | |
e6cc62c6 | 3691 | fi; |
54276ccf VZ |
3692 | |
3693 | eval "$ac_cv_use_compat20" | |
3694 | if test "$no_cache" != 1; then | |
3695 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3696 | fi | |
3697 | ||
3698 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
e6cc62c6 VS |
3699 | echo "$as_me:$LINENO: result: yes" >&5 |
3700 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3701 | else |
e6cc62c6 VS |
3702 | echo "$as_me:$LINENO: result: no" >&5 |
3703 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3704 | fi |
e6cc62c6 | 3705 | |
54276ccf | 3706 | |
65d8ef1e | 3707 | enablestring= |
e6cc62c6 VS |
3708 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3709 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3710 | no_cache=0 |
3711 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3712 | if test "${enable_compat22+set}" = set; then | |
3713 | enableval="$enable_compat22" | |
e6cc62c6 | 3714 | |
54276ccf VZ |
3715 | if test "$enableval" = yes; then |
3716 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3717 | else | |
3718 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3719 | fi | |
e6cc62c6 | 3720 | |
54276ccf | 3721 | else |
e6cc62c6 | 3722 | |
54276ccf VZ |
3723 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3724 | if test "x$LINE" != x ; then | |
3725 | eval "DEFAULT_$LINE" | |
3726 | else | |
3727 | no_cache=1 | |
3728 | fi | |
3729 | ||
3730 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3731 | |
e6cc62c6 | 3732 | fi; |
54276ccf VZ |
3733 | |
3734 | eval "$ac_cv_use_compat22" | |
3735 | if test "$no_cache" != 1; then | |
3736 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3737 | fi | |
3738 | ||
3739 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3740 | echo "$as_me:$LINENO: result: yes" >&5 |
3741 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3742 | else |
e6cc62c6 VS |
3743 | echo "$as_me:$LINENO: result: no" >&5 |
3744 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3745 | fi |
e6cc62c6 | 3746 | |
54276ccf | 3747 | |
65d8ef1e | 3748 | enablestring=disable |
e6cc62c6 VS |
3749 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3750 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3751 | no_cache=0 |
3752 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3753 | if test "${enable_compat24+set}" = set; then | |
3754 | enableval="$enable_compat24" | |
e6cc62c6 | 3755 | |
65d8ef1e VS |
3756 | if test "$enableval" = yes; then |
3757 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3758 | else | |
3759 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3760 | fi | |
e6cc62c6 | 3761 | |
65d8ef1e | 3762 | else |
e6cc62c6 | 3763 | |
65d8ef1e VS |
3764 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3765 | if test "x$LINE" != x ; then | |
3766 | eval "DEFAULT_$LINE" | |
3767 | else | |
3768 | no_cache=1 | |
3769 | fi | |
3770 | ||
3771 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3772 | |
e6cc62c6 | 3773 | fi; |
65d8ef1e VS |
3774 | |
3775 | eval "$ac_cv_use_compat24" | |
3776 | if test "$no_cache" != 1; then | |
3777 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3778 | fi | |
3779 | ||
3780 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3781 | echo "$as_me:$LINENO: result: yes" >&5 |
3782 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3783 | else |
e6cc62c6 VS |
3784 | echo "$as_me:$LINENO: result: no" >&5 |
3785 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3786 | fi |
e6cc62c6 | 3787 | |
65d8ef1e | 3788 | |
3bd8fb5f RD |
3789 | # Check whether --enable-rpath or --disable-rpath was given. |
3790 | if test "${enable_rpath+set}" = set; then | |
3791 | enableval="$enable_rpath" | |
3792 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3793 | fi; |
3bd8fb5f RD |
3794 | |
3795 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3796 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3797 | fi | |
3798 | ||
8284b0c5 MB |
3799 | |
3800 | ||
3801 | ||
5005acfe | 3802 | enablestring= |
e6cc62c6 VS |
3803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3804 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3805 | no_cache=0 |
3806 | # Check whether --enable-intl or --disable-intl was given. | |
3807 | if test "${enable_intl+set}" = set; then | |
3808 | enableval="$enable_intl" | |
e6cc62c6 | 3809 | |
10f2d63a VZ |
3810 | if test "$enableval" = yes; then |
3811 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3812 | else | |
3813 | ac_cv_use_intl='wxUSE_INTL=no' | |
3814 | fi | |
e6cc62c6 | 3815 | |
10f2d63a | 3816 | else |
e6cc62c6 | 3817 | |
10f2d63a VZ |
3818 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3819 | if test "x$LINE" != x ; then | |
3820 | eval "DEFAULT_$LINE" | |
3821 | else | |
3822 | no_cache=1 | |
3823 | fi | |
3824 | ||
3825 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3826 | |
e6cc62c6 | 3827 | fi; |
10f2d63a VZ |
3828 | |
3829 | eval "$ac_cv_use_intl" | |
3830 | if test "$no_cache" != 1; then | |
3831 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3832 | fi | |
3833 | ||
3834 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3835 | echo "$as_me:$LINENO: result: yes" >&5 |
3836 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3837 | else |
e6cc62c6 VS |
3838 | echo "$as_me:$LINENO: result: no" >&5 |
3839 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3840 | fi |
e6cc62c6 | 3841 | |
10f2d63a | 3842 | |
5005acfe | 3843 | enablestring= |
e6cc62c6 VS |
3844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3845 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3846 | no_cache=0 |
3847 | # Check whether --enable-config or --disable-config was given. | |
3848 | if test "${enable_config+set}" = set; then | |
3849 | enableval="$enable_config" | |
e6cc62c6 | 3850 | |
10f2d63a VZ |
3851 | if test "$enableval" = yes; then |
3852 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3853 | else | |
3854 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3855 | fi | |
e6cc62c6 | 3856 | |
10f2d63a | 3857 | else |
e6cc62c6 | 3858 | |
10f2d63a VZ |
3859 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3860 | if test "x$LINE" != x ; then | |
3861 | eval "DEFAULT_$LINE" | |
3862 | else | |
3863 | no_cache=1 | |
3864 | fi | |
3865 | ||
3866 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3867 | |
e6cc62c6 | 3868 | fi; |
10f2d63a VZ |
3869 | |
3870 | eval "$ac_cv_use_config" | |
3871 | if test "$no_cache" != 1; then | |
3872 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3873 | fi | |
3874 | ||
3875 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
3876 | echo "$as_me:$LINENO: result: yes" >&5 |
3877 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3878 | else |
e6cc62c6 VS |
3879 | echo "$as_me:$LINENO: result: no" >&5 |
3880 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3881 | fi |
e6cc62c6 | 3882 | |
52127426 | 3883 | |
8284b0c5 | 3884 | |
5005acfe | 3885 | enablestring= |
e6cc62c6 VS |
3886 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
3887 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
3888 | no_cache=0 |
3889 | # Check whether --enable-protocols or --disable-protocols was given. | |
3890 | if test "${enable_protocols+set}" = set; then | |
3891 | enableval="$enable_protocols" | |
e6cc62c6 | 3892 | |
a1622950 VZ |
3893 | if test "$enableval" = yes; then |
3894 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3895 | else | |
3896 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3897 | fi | |
e6cc62c6 | 3898 | |
a1622950 | 3899 | else |
e6cc62c6 | 3900 | |
a1622950 VZ |
3901 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3902 | if test "x$LINE" != x ; then | |
3903 | eval "DEFAULT_$LINE" | |
3904 | else | |
3905 | no_cache=1 | |
3906 | fi | |
3907 | ||
3908 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 3909 | |
e6cc62c6 | 3910 | fi; |
a1622950 VZ |
3911 | |
3912 | eval "$ac_cv_use_protocols" | |
3913 | if test "$no_cache" != 1; then | |
3914 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3915 | fi | |
3916 | ||
3917 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
3918 | echo "$as_me:$LINENO: result: yes" >&5 |
3919 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3920 | else |
e6cc62c6 VS |
3921 | echo "$as_me:$LINENO: result: no" >&5 |
3922 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3923 | fi |
e6cc62c6 | 3924 | |
a1622950 | 3925 | |
5005acfe | 3926 | enablestring= |
e6cc62c6 VS |
3927 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
3928 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
3929 | no_cache=0 |
3930 | # Check whether --enable-ftp or --disable-ftp was given. | |
3931 | if test "${enable_ftp+set}" = set; then | |
3932 | enableval="$enable_ftp" | |
e6cc62c6 | 3933 | |
a1622950 VZ |
3934 | if test "$enableval" = yes; then |
3935 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3936 | else | |
3937 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3938 | fi | |
e6cc62c6 | 3939 | |
a1622950 | 3940 | else |
e6cc62c6 | 3941 | |
a1622950 VZ |
3942 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3943 | if test "x$LINE" != x ; then | |
3944 | eval "DEFAULT_$LINE" | |
3945 | else | |
3946 | no_cache=1 | |
3947 | fi | |
3948 | ||
3949 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 3950 | |
e6cc62c6 | 3951 | fi; |
a1622950 VZ |
3952 | |
3953 | eval "$ac_cv_use_ftp" | |
3954 | if test "$no_cache" != 1; then | |
3955 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3956 | fi | |
3957 | ||
3958 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
3959 | echo "$as_me:$LINENO: result: yes" >&5 |
3960 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3961 | else |
e6cc62c6 VS |
3962 | echo "$as_me:$LINENO: result: no" >&5 |
3963 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3964 | fi |
e6cc62c6 | 3965 | |
a1622950 | 3966 | |
5005acfe | 3967 | enablestring= |
e6cc62c6 VS |
3968 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
3969 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
3970 | no_cache=0 |
3971 | # Check whether --enable-http or --disable-http was given. | |
3972 | if test "${enable_http+set}" = set; then | |
3973 | enableval="$enable_http" | |
e6cc62c6 | 3974 | |
a1622950 VZ |
3975 | if test "$enableval" = yes; then |
3976 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3977 | else | |
3978 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3979 | fi | |
e6cc62c6 | 3980 | |
a1622950 | 3981 | else |
e6cc62c6 | 3982 | |
a1622950 VZ |
3983 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3984 | if test "x$LINE" != x ; then | |
3985 | eval "DEFAULT_$LINE" | |
3986 | else | |
3987 | no_cache=1 | |
3988 | fi | |
3989 | ||
3990 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 3991 | |
e6cc62c6 | 3992 | fi; |
a1622950 VZ |
3993 | |
3994 | eval "$ac_cv_use_http" | |
3995 | if test "$no_cache" != 1; then | |
3996 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3997 | fi | |
3998 | ||
3999 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
4000 | echo "$as_me:$LINENO: result: yes" >&5 |
4001 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4002 | else |
e6cc62c6 VS |
4003 | echo "$as_me:$LINENO: result: no" >&5 |
4004 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4005 | fi |
e6cc62c6 | 4006 | |
a1622950 | 4007 | |
5005acfe | 4008 | enablestring= |
e6cc62c6 VS |
4009 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
4010 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
4011 | no_cache=0 |
4012 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4013 | if test "${enable_fileproto+set}" = set; then | |
4014 | enableval="$enable_fileproto" | |
e6cc62c6 | 4015 | |
a1622950 VZ |
4016 | if test "$enableval" = yes; then |
4017 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4018 | else | |
4019 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4020 | fi | |
e6cc62c6 | 4021 | |
a1622950 | 4022 | else |
e6cc62c6 | 4023 | |
a1622950 VZ |
4024 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4025 | if test "x$LINE" != x ; then | |
4026 | eval "DEFAULT_$LINE" | |
4027 | else | |
4028 | no_cache=1 | |
4029 | fi | |
4030 | ||
4031 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4032 | |
e6cc62c6 | 4033 | fi; |
a1622950 VZ |
4034 | |
4035 | eval "$ac_cv_use_fileproto" | |
4036 | if test "$no_cache" != 1; then | |
4037 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4038 | fi | |
4039 | ||
4040 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4041 | echo "$as_me:$LINENO: result: yes" >&5 |
4042 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4043 | else |
e6cc62c6 VS |
4044 | echo "$as_me:$LINENO: result: no" >&5 |
4045 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4046 | fi |
e6cc62c6 | 4047 | |
a1622950 | 4048 | |
5005acfe | 4049 | enablestring= |
e6cc62c6 VS |
4050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4051 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4052 | no_cache=0 |
4053 | # Check whether --enable-sockets or --disable-sockets was given. | |
4054 | if test "${enable_sockets+set}" = set; then | |
4055 | enableval="$enable_sockets" | |
e6cc62c6 | 4056 | |
10f2d63a VZ |
4057 | if test "$enableval" = yes; then |
4058 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4059 | else | |
4060 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4061 | fi | |
e6cc62c6 | 4062 | |
10f2d63a | 4063 | else |
e6cc62c6 | 4064 | |
10f2d63a VZ |
4065 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4066 | if test "x$LINE" != x ; then | |
4067 | eval "DEFAULT_$LINE" | |
4068 | else | |
4069 | no_cache=1 | |
4070 | fi | |
4071 | ||
4072 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4073 | |
e6cc62c6 | 4074 | fi; |
10f2d63a VZ |
4075 | |
4076 | eval "$ac_cv_use_sockets" | |
4077 | if test "$no_cache" != 1; then | |
4078 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4079 | fi | |
4080 | ||
4081 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4082 | echo "$as_me:$LINENO: result: yes" >&5 |
4083 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4084 | else |
e6cc62c6 VS |
4085 | echo "$as_me:$LINENO: result: no" >&5 |
4086 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4087 | fi |
e6cc62c6 | 4088 | |
8284b0c5 | 4089 | |
5005acfe | 4090 | enablestring= |
e6cc62c6 VS |
4091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4092 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4093 | no_cache=0 |
4094 | # Check whether --enable-ole or --disable-ole was given. | |
4095 | if test "${enable_ole+set}" = set; then | |
4096 | enableval="$enable_ole" | |
e6cc62c6 | 4097 | |
3bce6687 JS |
4098 | if test "$enableval" = yes; then |
4099 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4100 | else | |
4101 | ac_cv_use_ole='wxUSE_OLE=no' | |
4102 | fi | |
e6cc62c6 | 4103 | |
3bce6687 | 4104 | else |
e6cc62c6 | 4105 | |
3bce6687 JS |
4106 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4107 | if test "x$LINE" != x ; then | |
4108 | eval "DEFAULT_$LINE" | |
4109 | else | |
4110 | no_cache=1 | |
4111 | fi | |
4112 | ||
4113 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4114 | |
e6cc62c6 | 4115 | fi; |
3bce6687 JS |
4116 | |
4117 | eval "$ac_cv_use_ole" | |
4118 | if test "$no_cache" != 1; then | |
4119 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4120 | fi | |
4121 | ||
4122 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4123 | echo "$as_me:$LINENO: result: yes" >&5 |
4124 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4125 | else |
e6cc62c6 VS |
4126 | echo "$as_me:$LINENO: result: no" >&5 |
4127 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4128 | fi |
e6cc62c6 | 4129 | |
3bce6687 | 4130 | |
5005acfe | 4131 | enablestring= |
e6cc62c6 VS |
4132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4133 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4134 | no_cache=0 |
4135 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4136 | if test "${enable_dataobj+set}" = set; then | |
4137 | enableval="$enable_dataobj" | |
e6cc62c6 | 4138 | |
3bce6687 JS |
4139 | if test "$enableval" = yes; then |
4140 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4141 | else | |
4142 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4143 | fi | |
e6cc62c6 | 4144 | |
3bce6687 | 4145 | else |
e6cc62c6 | 4146 | |
3bce6687 JS |
4147 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4148 | if test "x$LINE" != x ; then | |
4149 | eval "DEFAULT_$LINE" | |
4150 | else | |
4151 | no_cache=1 | |
4152 | fi | |
4153 | ||
4154 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4155 | |
e6cc62c6 | 4156 | fi; |
3bce6687 JS |
4157 | |
4158 | eval "$ac_cv_use_dataobj" | |
4159 | if test "$no_cache" != 1; then | |
4160 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4161 | fi | |
4162 | ||
4163 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4164 | echo "$as_me:$LINENO: result: yes" >&5 |
4165 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4166 | else |
e6cc62c6 VS |
4167 | echo "$as_me:$LINENO: result: no" >&5 |
4168 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4169 | fi |
e6cc62c6 | 4170 | |
3bce6687 | 4171 | |
52127426 | 4172 | |
5005acfe | 4173 | enablestring= |
e6cc62c6 VS |
4174 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4175 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4176 | no_cache=0 |
eb4efbdc VZ |
4177 | # Check whether --enable-ipc or --disable-ipc was given. |
4178 | if test "${enable_ipc+set}" = set; then | |
4179 | enableval="$enable_ipc" | |
e6cc62c6 | 4180 | |
10f2d63a | 4181 | if test "$enableval" = yes; then |
eb4efbdc | 4182 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4183 | else |
eb4efbdc | 4184 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4185 | fi |
e6cc62c6 | 4186 | |
10f2d63a | 4187 | else |
e6cc62c6 | 4188 | |
eb4efbdc | 4189 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4190 | if test "x$LINE" != x ; then |
4191 | eval "DEFAULT_$LINE" | |
4192 | else | |
4193 | no_cache=1 | |
4194 | fi | |
4195 | ||
eb4efbdc | 4196 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4197 | |
e6cc62c6 | 4198 | fi; |
10f2d63a | 4199 | |
eb4efbdc | 4200 | eval "$ac_cv_use_ipc" |
10f2d63a | 4201 | if test "$no_cache" != 1; then |
eb4efbdc | 4202 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4203 | fi |
4204 | ||
eb4efbdc | 4205 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4206 | echo "$as_me:$LINENO: result: yes" >&5 |
4207 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4208 | else |
e6cc62c6 VS |
4209 | echo "$as_me:$LINENO: result: no" >&5 |
4210 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4211 | fi |
e6cc62c6 | 4212 | |
52127426 | 4213 | |
8284b0c5 | 4214 | |
5005acfe | 4215 | enablestring= |
e6cc62c6 VS |
4216 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4217 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
1e6feb95 VZ |
4218 | no_cache=0 |
4219 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4220 | if test "${enable_cmdline+set}" = set; then | |
4221 | enableval="$enable_cmdline" | |
e6cc62c6 | 4222 | |
1e6feb95 VZ |
4223 | if test "$enableval" = yes; then |
4224 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4225 | else | |
4226 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4227 | fi | |
e6cc62c6 | 4228 | |
1e6feb95 | 4229 | else |
e6cc62c6 | 4230 | |
1e6feb95 VZ |
4231 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
4232 | if test "x$LINE" != x ; then | |
4233 | eval "DEFAULT_$LINE" | |
4234 | else | |
4235 | no_cache=1 | |
4236 | fi | |
4237 | ||
4238 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
1e6feb95 | 4239 | |
e6cc62c6 | 4240 | fi; |
1e6feb95 VZ |
4241 | |
4242 | eval "$ac_cv_use_cmdline" | |
4243 | if test "$no_cache" != 1; then | |
4244 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4245 | fi | |
4246 | ||
4247 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
e6cc62c6 VS |
4248 | echo "$as_me:$LINENO: result: yes" >&5 |
4249 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4250 | else |
e6cc62c6 VS |
4251 | echo "$as_me:$LINENO: result: no" >&5 |
4252 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4253 | fi |
e6cc62c6 | 4254 | |
1e6feb95 | 4255 | |
5005acfe | 4256 | enablestring= |
e6cc62c6 VS |
4257 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4258 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
1e6feb95 VZ |
4259 | no_cache=0 |
4260 | # Check whether --enable-datetime or --disable-datetime was given. | |
4261 | if test "${enable_datetime+set}" = set; then | |
4262 | enableval="$enable_datetime" | |
e6cc62c6 | 4263 | |
1e6feb95 VZ |
4264 | if test "$enableval" = yes; then |
4265 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4266 | else | |
4267 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4268 | fi | |
e6cc62c6 | 4269 | |
1e6feb95 | 4270 | else |
e6cc62c6 | 4271 | |
1e6feb95 VZ |
4272 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
4273 | if test "x$LINE" != x ; then | |
4274 | eval "DEFAULT_$LINE" | |
4275 | else | |
4276 | no_cache=1 | |
4277 | fi | |
4278 | ||
4279 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
1e6feb95 | 4280 | |
e6cc62c6 | 4281 | fi; |
1e6feb95 VZ |
4282 | |
4283 | eval "$ac_cv_use_datetime" | |
4284 | if test "$no_cache" != 1; then | |
4285 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4286 | fi | |
4287 | ||
4288 | if test "$wxUSE_DATETIME" = yes; then | |
e6cc62c6 VS |
4289 | echo "$as_me:$LINENO: result: yes" >&5 |
4290 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4291 | else |
e6cc62c6 VS |
4292 | echo "$as_me:$LINENO: result: no" >&5 |
4293 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4294 | fi |
e6cc62c6 | 4295 | |
1e6feb95 | 4296 | |
5005acfe | 4297 | enablestring= |
e6cc62c6 VS |
4298 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
4299 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
1e6feb95 VZ |
4300 | no_cache=0 |
4301 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
4302 | if test "${enable_stopwatch+set}" = set; then | |
4303 | enableval="$enable_stopwatch" | |
e6cc62c6 | 4304 | |
1e6feb95 VZ |
4305 | if test "$enableval" = yes; then |
4306 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
4307 | else | |
4308 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
4309 | fi | |
e6cc62c6 | 4310 | |
1e6feb95 | 4311 | else |
e6cc62c6 | 4312 | |
1e6feb95 VZ |
4313 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
4314 | if test "x$LINE" != x ; then | |
4315 | eval "DEFAULT_$LINE" | |
4316 | else | |
4317 | no_cache=1 | |
4318 | fi | |
4319 | ||
4320 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
1e6feb95 | 4321 | |
e6cc62c6 | 4322 | fi; |
1e6feb95 VZ |
4323 | |
4324 | eval "$ac_cv_use_stopwatch" | |
4325 | if test "$no_cache" != 1; then | |
4326 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
4327 | fi | |
4328 | ||
4329 | if test "$wxUSE_STOPWATCH" = yes; then | |
e6cc62c6 VS |
4330 | echo "$as_me:$LINENO: result: yes" >&5 |
4331 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4332 | else |
e6cc62c6 VS |
4333 | echo "$as_me:$LINENO: result: no" >&5 |
4334 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4335 | fi |
e6cc62c6 | 4336 | |
1e6feb95 | 4337 | |
5005acfe | 4338 | enablestring= |
e6cc62c6 VS |
4339 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4340 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4341 | no_cache=0 |
eb4efbdc VZ |
4342 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4343 | if test "${enable_dialupman+set}" = set; then | |
4344 | enableval="$enable_dialupman" | |
e6cc62c6 | 4345 | |
10f2d63a | 4346 | if test "$enableval" = yes; then |
eb4efbdc | 4347 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4348 | else |
eb4efbdc | 4349 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4350 | fi |
e6cc62c6 | 4351 | |
10f2d63a | 4352 | else |
e6cc62c6 | 4353 | |
eb4efbdc | 4354 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4355 | if test "x$LINE" != x ; then |
4356 | eval "DEFAULT_$LINE" | |
4357 | else | |
4358 | no_cache=1 | |
4359 | fi | |
4360 | ||
eb4efbdc | 4361 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4362 | |
e6cc62c6 | 4363 | fi; |
10f2d63a | 4364 | |
eb4efbdc | 4365 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4366 | if test "$no_cache" != 1; then |
eb4efbdc | 4367 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4368 | fi |
4369 | ||
eb4efbdc | 4370 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4371 | echo "$as_me:$LINENO: result: yes" >&5 |
4372 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4373 | else |
e6cc62c6 VS |
4374 | echo "$as_me:$LINENO: result: no" >&5 |
4375 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4376 | fi |
e6cc62c6 | 4377 | |
10f2d63a | 4378 | |
5005acfe | 4379 | enablestring= |
e6cc62c6 VS |
4380 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4381 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a VZ |
4382 | no_cache=0 |
4383 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4384 | if test "${enable_apple_ieee+set}" = set; then | |
4385 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4386 | |
10f2d63a VZ |
4387 | if test "$enableval" = yes; then |
4388 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4389 | else | |
4390 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4391 | fi | |
e6cc62c6 | 4392 | |
10f2d63a | 4393 | else |
e6cc62c6 | 4394 | |
10f2d63a VZ |
4395 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
4396 | if test "x$LINE" != x ; then | |
4397 | eval "DEFAULT_$LINE" | |
4398 | else | |
4399 | no_cache=1 | |
4400 | fi | |
4401 | ||
4402 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
10f2d63a | 4403 | |
e6cc62c6 | 4404 | fi; |
10f2d63a VZ |
4405 | |
4406 | eval "$ac_cv_use_apple_ieee" | |
4407 | if test "$no_cache" != 1; then | |
4408 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4409 | fi | |
4410 | ||
4411 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
e6cc62c6 VS |
4412 | echo "$as_me:$LINENO: result: yes" >&5 |
4413 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4414 | else |
e6cc62c6 VS |
4415 | echo "$as_me:$LINENO: result: no" >&5 |
4416 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4417 | fi |
e6cc62c6 | 4418 | |
10f2d63a | 4419 | |
5005acfe | 4420 | enablestring= |
e6cc62c6 VS |
4421 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
4422 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
10f2d63a | 4423 | no_cache=0 |
1e6feb95 VZ |
4424 | # Check whether --enable-timer or --disable-timer was given. |
4425 | if test "${enable_timer+set}" = set; then | |
4426 | enableval="$enable_timer" | |
e6cc62c6 | 4427 | |
10f2d63a | 4428 | if test "$enableval" = yes; then |
1e6feb95 | 4429 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 4430 | else |
1e6feb95 | 4431 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 4432 | fi |
e6cc62c6 | 4433 | |
10f2d63a | 4434 | else |
e6cc62c6 | 4435 | |
1e6feb95 | 4436 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4437 | if test "x$LINE" != x ; then |
4438 | eval "DEFAULT_$LINE" | |
4439 | else | |
4440 | no_cache=1 | |
4441 | fi | |
4442 | ||
1e6feb95 | 4443 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
10f2d63a | 4444 | |
e6cc62c6 | 4445 | fi; |
10f2d63a | 4446 | |
1e6feb95 | 4447 | eval "$ac_cv_use_timer" |
10f2d63a | 4448 | if test "$no_cache" != 1; then |
1e6feb95 | 4449 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4450 | fi |
4451 | ||
1e6feb95 | 4452 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
4453 | echo "$as_me:$LINENO: result: yes" >&5 |
4454 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4455 | else |
e6cc62c6 VS |
4456 | echo "$as_me:$LINENO: result: no" >&5 |
4457 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4458 | fi |
e6cc62c6 | 4459 | |
10f2d63a | 4460 | |
5005acfe | 4461 | enablestring= |
e6cc62c6 VS |
4462 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 |
4463 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
10f2d63a VZ |
4464 | no_cache=0 |
4465 | # Check whether --enable-wave or --disable-wave was given. | |
4466 | if test "${enable_wave+set}" = set; then | |
4467 | enableval="$enable_wave" | |
e6cc62c6 | 4468 | |
10f2d63a VZ |
4469 | if test "$enableval" = yes; then |
4470 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
4471 | else | |
4472 | ac_cv_use_wave='wxUSE_WAVE=no' | |
4473 | fi | |
e6cc62c6 | 4474 | |
10f2d63a | 4475 | else |
e6cc62c6 | 4476 | |
10f2d63a VZ |
4477 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
4478 | if test "x$LINE" != x ; then | |
4479 | eval "DEFAULT_$LINE" | |
4480 | else | |
4481 | no_cache=1 | |
4482 | fi | |
4483 | ||
4484 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
10f2d63a | 4485 | |
e6cc62c6 | 4486 | fi; |
10f2d63a VZ |
4487 | |
4488 | eval "$ac_cv_use_wave" | |
4489 | if test "$no_cache" != 1; then | |
4490 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
4491 | fi | |
4492 | ||
4493 | if test "$wxUSE_WAVE" = yes; then | |
e6cc62c6 VS |
4494 | echo "$as_me:$LINENO: result: yes" >&5 |
4495 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4496 | else |
e6cc62c6 VS |
4497 | echo "$as_me:$LINENO: result: no" >&5 |
4498 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4499 | fi |
e6cc62c6 | 4500 | |
10f2d63a | 4501 | |
5005acfe | 4502 | enablestring= |
e6cc62c6 VS |
4503 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5 |
4504 | echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6 | |
10f2d63a VZ |
4505 | no_cache=0 |
4506 | # Check whether --enable-fraction or --disable-fraction was given. | |
4507 | if test "${enable_fraction+set}" = set; then | |
4508 | enableval="$enable_fraction" | |
e6cc62c6 | 4509 | |
10f2d63a VZ |
4510 | if test "$enableval" = yes; then |
4511 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
4512 | else | |
4513 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
4514 | fi | |
e6cc62c6 | 4515 | |
10f2d63a | 4516 | else |
e6cc62c6 | 4517 | |
10f2d63a VZ |
4518 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
4519 | if test "x$LINE" != x ; then | |
4520 | eval "DEFAULT_$LINE" | |
4521 | else | |
4522 | no_cache=1 | |
4523 | fi | |
4524 | ||
4525 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
10f2d63a | 4526 | |
e6cc62c6 | 4527 | fi; |
10f2d63a VZ |
4528 | |
4529 | eval "$ac_cv_use_fraction" | |
4530 | if test "$no_cache" != 1; then | |
4531 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
4532 | fi | |
4533 | ||
4534 | if test "$wxUSE_FRACTION" = yes; then | |
e6cc62c6 VS |
4535 | echo "$as_me:$LINENO: result: yes" >&5 |
4536 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4537 | else |
e6cc62c6 VS |
4538 | echo "$as_me:$LINENO: result: no" >&5 |
4539 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4540 | fi |
e6cc62c6 | 4541 | |
10f2d63a | 4542 | |
5005acfe | 4543 | enablestring= |
e6cc62c6 VS |
4544 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4545 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4546 | no_cache=0 |
4547 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4548 | if test "${enable_dynlib+set}" = set; then | |
4549 | enableval="$enable_dynlib" | |
e6cc62c6 | 4550 | |
10f2d63a VZ |
4551 | if test "$enableval" = yes; then |
4552 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4553 | else | |
4554 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4555 | fi | |
e6cc62c6 | 4556 | |
10f2d63a | 4557 | else |
e6cc62c6 | 4558 | |
10f2d63a VZ |
4559 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4560 | if test "x$LINE" != x ; then | |
4561 | eval "DEFAULT_$LINE" | |
4562 | else | |
4563 | no_cache=1 | |
4564 | fi | |
4565 | ||
4566 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4567 | |
e6cc62c6 | 4568 | fi; |
10f2d63a VZ |
4569 | |
4570 | eval "$ac_cv_use_dynlib" | |
4571 | if test "$no_cache" != 1; then | |
4572 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4573 | fi | |
4574 | ||
4575 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4576 | echo "$as_me:$LINENO: result: yes" >&5 |
4577 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4578 | else |
e6cc62c6 VS |
4579 | echo "$as_me:$LINENO: result: no" >&5 |
4580 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4581 | fi |
e6cc62c6 | 4582 | |
10f2d63a | 4583 | |
5005acfe | 4584 | enablestring= |
e6cc62c6 VS |
4585 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4586 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4587 | no_cache=0 |
4588 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4589 | if test "${enable_dynamicloader+set}" = set; then | |
4590 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4591 | |
0b9ab0bd RL |
4592 | if test "$enableval" = yes; then |
4593 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4594 | else | |
4595 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4596 | fi | |
e6cc62c6 | 4597 | |
0b9ab0bd | 4598 | else |
e6cc62c6 | 4599 | |
0b9ab0bd RL |
4600 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4601 | if test "x$LINE" != x ; then | |
4602 | eval "DEFAULT_$LINE" | |
4603 | else | |
4604 | no_cache=1 | |
4605 | fi | |
4606 | ||
4607 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4608 | |
e6cc62c6 | 4609 | fi; |
0b9ab0bd RL |
4610 | |
4611 | eval "$ac_cv_use_dynamicloader" | |
4612 | if test "$no_cache" != 1; then | |
4613 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4614 | fi | |
4615 | ||
4616 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4617 | echo "$as_me:$LINENO: result: yes" >&5 |
4618 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4619 | else |
e6cc62c6 VS |
4620 | echo "$as_me:$LINENO: result: no" >&5 |
4621 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4622 | fi |
e6cc62c6 | 4623 | |
0b9ab0bd | 4624 | |
5005acfe | 4625 | enablestring= |
e6cc62c6 VS |
4626 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
4627 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a VZ |
4628 | no_cache=0 |
4629 | # Check whether --enable-longlong or --disable-longlong was given. | |
4630 | if test "${enable_longlong+set}" = set; then | |
4631 | enableval="$enable_longlong" | |
e6cc62c6 | 4632 | |
10f2d63a VZ |
4633 | if test "$enableval" = yes; then |
4634 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
4635 | else | |
4636 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
4637 | fi | |
e6cc62c6 | 4638 | |
10f2d63a | 4639 | else |
e6cc62c6 | 4640 | |
10f2d63a VZ |
4641 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
4642 | if test "x$LINE" != x ; then | |
4643 | eval "DEFAULT_$LINE" | |
4644 | else | |
4645 | no_cache=1 | |
4646 | fi | |
4647 | ||
4648 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
10f2d63a | 4649 | |
e6cc62c6 | 4650 | fi; |
10f2d63a VZ |
4651 | |
4652 | eval "$ac_cv_use_longlong" | |
4653 | if test "$no_cache" != 1; then | |
4654 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
4655 | fi | |
4656 | ||
4657 | if test "$wxUSE_LONGLONG" = yes; then | |
e6cc62c6 VS |
4658 | echo "$as_me:$LINENO: result: yes" >&5 |
4659 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4660 | else |
e6cc62c6 VS |
4661 | echo "$as_me:$LINENO: result: no" >&5 |
4662 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4663 | fi |
e6cc62c6 | 4664 | |
10f2d63a | 4665 | |
5005acfe | 4666 | enablestring= |
e6cc62c6 VS |
4667 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4668 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
e8f65ba6 RR |
4669 | no_cache=0 |
4670 | # Check whether --enable-geometry or --disable-geometry was given. | |
4671 | if test "${enable_geometry+set}" = set; then | |
4672 | enableval="$enable_geometry" | |
e6cc62c6 | 4673 | |
e8f65ba6 RR |
4674 | if test "$enableval" = yes; then |
4675 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4676 | else | |
4677 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4678 | fi | |
e6cc62c6 | 4679 | |
e8f65ba6 | 4680 | else |
e6cc62c6 | 4681 | |
e8f65ba6 RR |
4682 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4683 | if test "x$LINE" != x ; then | |
4684 | eval "DEFAULT_$LINE" | |
4685 | else | |
4686 | no_cache=1 | |
4687 | fi | |
4688 | ||
4689 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
e8f65ba6 | 4690 | |
e6cc62c6 | 4691 | fi; |
e8f65ba6 RR |
4692 | |
4693 | eval "$ac_cv_use_geometry" | |
4694 | if test "$no_cache" != 1; then | |
4695 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4696 | fi | |
4697 | ||
4698 | if test "$wxUSE_GEOMETRY" = yes; then | |
e6cc62c6 VS |
4699 | echo "$as_me:$LINENO: result: yes" >&5 |
4700 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4701 | else |
e6cc62c6 VS |
4702 | echo "$as_me:$LINENO: result: no" >&5 |
4703 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4704 | fi |
e6cc62c6 | 4705 | |
e8f65ba6 | 4706 | |
5005acfe | 4707 | enablestring= |
e6cc62c6 VS |
4708 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4709 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a VZ |
4710 | no_cache=0 |
4711 | # Check whether --enable-log or --disable-log was given. | |
4712 | if test "${enable_log+set}" = set; then | |
4713 | enableval="$enable_log" | |
e6cc62c6 | 4714 | |
10f2d63a VZ |
4715 | if test "$enableval" = yes; then |
4716 | ac_cv_use_log='wxUSE_LOG=yes' | |
4717 | else | |
4718 | ac_cv_use_log='wxUSE_LOG=no' | |
4719 | fi | |
e6cc62c6 | 4720 | |
10f2d63a | 4721 | else |
e6cc62c6 | 4722 | |
10f2d63a VZ |
4723 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4724 | if test "x$LINE" != x ; then | |
4725 | eval "DEFAULT_$LINE" | |
4726 | else | |
4727 | no_cache=1 | |
4728 | fi | |
4729 | ||
4730 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
10f2d63a | 4731 | |
e6cc62c6 | 4732 | fi; |
10f2d63a VZ |
4733 | |
4734 | eval "$ac_cv_use_log" | |
4735 | if test "$no_cache" != 1; then | |
4736 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4737 | fi | |
4738 | ||
4739 | if test "$wxUSE_LOG" = yes; then | |
e6cc62c6 VS |
4740 | echo "$as_me:$LINENO: result: yes" >&5 |
4741 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4742 | else |
e6cc62c6 VS |
4743 | echo "$as_me:$LINENO: result: no" >&5 |
4744 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4745 | fi |
e6cc62c6 | 4746 | |
10f2d63a | 4747 | |
5005acfe | 4748 | enablestring= |
e6cc62c6 VS |
4749 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 |
4750 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
10f2d63a VZ |
4751 | no_cache=0 |
4752 | # Check whether --enable-streams or --disable-streams was given. | |
4753 | if test "${enable_streams+set}" = set; then | |
4754 | enableval="$enable_streams" | |
e6cc62c6 | 4755 | |
10f2d63a VZ |
4756 | if test "$enableval" = yes; then |
4757 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4758 | else | |
4759 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4760 | fi | |
e6cc62c6 | 4761 | |
10f2d63a | 4762 | else |
e6cc62c6 | 4763 | |
10f2d63a VZ |
4764 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4765 | if test "x$LINE" != x ; then | |
4766 | eval "DEFAULT_$LINE" | |
4767 | else | |
4768 | no_cache=1 | |
4769 | fi | |
4770 | ||
4771 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
10f2d63a | 4772 | |
e6cc62c6 | 4773 | fi; |
10f2d63a VZ |
4774 | |
4775 | eval "$ac_cv_use_streams" | |
4776 | if test "$no_cache" != 1; then | |
4777 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4778 | fi | |
4779 | ||
4780 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
4781 | echo "$as_me:$LINENO: result: yes" >&5 |
4782 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4783 | else |
e6cc62c6 VS |
4784 | echo "$as_me:$LINENO: result: no" >&5 |
4785 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4786 | fi |
e6cc62c6 | 4787 | |
10f2d63a | 4788 | |
5005acfe | 4789 | enablestring= |
e6cc62c6 VS |
4790 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4791 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a VZ |
4792 | no_cache=0 |
4793 | # Check whether --enable-file or --disable-file was given. | |
4794 | if test "${enable_file+set}" = set; then | |
4795 | enableval="$enable_file" | |
e6cc62c6 | 4796 | |
10f2d63a VZ |
4797 | if test "$enableval" = yes; then |
4798 | ac_cv_use_file='wxUSE_FILE=yes' | |
4799 | else | |
4800 | ac_cv_use_file='wxUSE_FILE=no' | |
4801 | fi | |
e6cc62c6 | 4802 | |
10f2d63a | 4803 | else |
e6cc62c6 | 4804 | |
10f2d63a VZ |
4805 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4806 | if test "x$LINE" != x ; then | |
4807 | eval "DEFAULT_$LINE" | |
4808 | else | |
4809 | no_cache=1 | |
4810 | fi | |
4811 | ||
4812 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
10f2d63a | 4813 | |
e6cc62c6 | 4814 | fi; |
10f2d63a VZ |
4815 | |
4816 | eval "$ac_cv_use_file" | |
4817 | if test "$no_cache" != 1; then | |
4818 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4819 | fi | |
4820 | ||
4821 | if test "$wxUSE_FILE" = yes; then | |
e6cc62c6 VS |
4822 | echo "$as_me:$LINENO: result: yes" >&5 |
4823 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4824 | else |
e6cc62c6 VS |
4825 | echo "$as_me:$LINENO: result: no" >&5 |
4826 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4827 | fi |
e6cc62c6 | 4828 | |
10f2d63a | 4829 | |
5005acfe | 4830 | enablestring= |
e6cc62c6 VS |
4831 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4832 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
10f2d63a | 4833 | no_cache=0 |
1e6feb95 VZ |
4834 | # Check whether --enable-ffile or --disable-ffile was given. |
4835 | if test "${enable_ffile+set}" = set; then | |
4836 | enableval="$enable_ffile" | |
e6cc62c6 | 4837 | |
10f2d63a | 4838 | if test "$enableval" = yes; then |
1e6feb95 | 4839 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4840 | else |
1e6feb95 | 4841 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4842 | fi |
e6cc62c6 | 4843 | |
10f2d63a | 4844 | else |
e6cc62c6 | 4845 | |
1e6feb95 | 4846 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4847 | if test "x$LINE" != x ; then |
4848 | eval "DEFAULT_$LINE" | |
4849 | else | |
4850 | no_cache=1 | |
4851 | fi | |
4852 | ||
1e6feb95 | 4853 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
10f2d63a | 4854 | |
e6cc62c6 | 4855 | fi; |
10f2d63a | 4856 | |
1e6feb95 | 4857 | eval "$ac_cv_use_ffile" |
10f2d63a | 4858 | if test "$no_cache" != 1; then |
1e6feb95 | 4859 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4860 | fi |
4861 | ||
1e6feb95 | 4862 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4863 | echo "$as_me:$LINENO: result: yes" >&5 |
4864 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4865 | else |
e6cc62c6 VS |
4866 | echo "$as_me:$LINENO: result: no" >&5 |
4867 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4868 | fi |
e6cc62c6 | 4869 | |
10f2d63a | 4870 | |
5005acfe | 4871 | enablestring= |
e6cc62c6 VS |
4872 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
4873 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
a3a584a7 VZ |
4874 | no_cache=0 |
4875 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4876 | if test "${enable_textbuf+set}" = set; then | |
4877 | enableval="$enable_textbuf" | |
e6cc62c6 | 4878 | |
a3a584a7 VZ |
4879 | if test "$enableval" = yes; then |
4880 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4881 | else | |
4882 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4883 | fi | |
e6cc62c6 | 4884 | |
a3a584a7 | 4885 | else |
e6cc62c6 | 4886 | |
a3a584a7 VZ |
4887 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4888 | if test "x$LINE" != x ; then | |
4889 | eval "DEFAULT_$LINE" | |
4890 | else | |
4891 | no_cache=1 | |
4892 | fi | |
4893 | ||
4894 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a3a584a7 | 4895 | |
e6cc62c6 | 4896 | fi; |
a3a584a7 VZ |
4897 | |
4898 | eval "$ac_cv_use_textbuf" | |
4899 | if test "$no_cache" != 1; then | |
4900 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4901 | fi | |
4902 | ||
4903 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
e6cc62c6 VS |
4904 | echo "$as_me:$LINENO: result: yes" >&5 |
4905 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4906 | else |
e6cc62c6 VS |
4907 | echo "$as_me:$LINENO: result: no" >&5 |
4908 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4909 | fi |
e6cc62c6 | 4910 | |
a3a584a7 | 4911 | |
5005acfe | 4912 | enablestring= |
e6cc62c6 VS |
4913 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
4914 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 4915 | no_cache=0 |
1e6feb95 VZ |
4916 | # Check whether --enable-textfile or --disable-textfile was given. |
4917 | if test "${enable_textfile+set}" = set; then | |
4918 | enableval="$enable_textfile" | |
e6cc62c6 | 4919 | |
10f2d63a | 4920 | if test "$enableval" = yes; then |
1e6feb95 | 4921 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4922 | else |
1e6feb95 | 4923 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4924 | fi |
e6cc62c6 | 4925 | |
10f2d63a | 4926 | else |
e6cc62c6 | 4927 | |
1e6feb95 | 4928 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4929 | if test "x$LINE" != x ; then |
4930 | eval "DEFAULT_$LINE" | |
4931 | else | |
4932 | no_cache=1 | |
4933 | fi | |
4934 | ||
1e6feb95 | 4935 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 4936 | |
e6cc62c6 | 4937 | fi; |
10f2d63a | 4938 | |
1e6feb95 | 4939 | eval "$ac_cv_use_textfile" |
10f2d63a | 4940 | if test "$no_cache" != 1; then |
1e6feb95 | 4941 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4942 | fi |
4943 | ||
1e6feb95 | 4944 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
4945 | echo "$as_me:$LINENO: result: yes" >&5 |
4946 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4947 | else |
e6cc62c6 VS |
4948 | echo "$as_me:$LINENO: result: no" >&5 |
4949 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4950 | fi |
e6cc62c6 | 4951 | |
10f2d63a | 4952 | |
5005acfe | 4953 | enablestring= |
e6cc62c6 VS |
4954 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4955 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4956 | no_cache=0 |
1e6feb95 VZ |
4957 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4958 | if test "${enable_fontmap+set}" = set; then | |
4959 | enableval="$enable_fontmap" | |
e6cc62c6 | 4960 | |
10f2d63a | 4961 | if test "$enableval" = yes; then |
1e6feb95 | 4962 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4963 | else |
1e6feb95 | 4964 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4965 | fi |
e6cc62c6 | 4966 | |
10f2d63a | 4967 | else |
e6cc62c6 | 4968 | |
1e6feb95 | 4969 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4970 | if test "x$LINE" != x ; then |
4971 | eval "DEFAULT_$LINE" | |
4972 | else | |
4973 | no_cache=1 | |
4974 | fi | |
4975 | ||
1e6feb95 | 4976 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4977 | |
e6cc62c6 | 4978 | fi; |
10f2d63a | 4979 | |
1e6feb95 | 4980 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4981 | if test "$no_cache" != 1; then |
1e6feb95 | 4982 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4983 | fi |
4984 | ||
1e6feb95 | 4985 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4986 | echo "$as_me:$LINENO: result: yes" >&5 |
4987 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4988 | else |
e6cc62c6 VS |
4989 | echo "$as_me:$LINENO: result: no" >&5 |
4990 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4991 | fi |
e6cc62c6 | 4992 | |
10f2d63a | 4993 | |
5005acfe | 4994 | enablestring= |
e6cc62c6 VS |
4995 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
4996 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
10f2d63a | 4997 | no_cache=0 |
1e6feb95 VZ |
4998 | # Check whether --enable-unicode or --disable-unicode was given. |
4999 | if test "${enable_unicode+set}" = set; then | |
5000 | enableval="$enable_unicode" | |
e6cc62c6 | 5001 | |
1e6feb95 VZ |
5002 | if test "$enableval" = yes; then |
5003 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5004 | else | |
5005 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5006 | fi | |
e6cc62c6 | 5007 | |
1e6feb95 | 5008 | else |
e6cc62c6 | 5009 | |
1e6feb95 VZ |
5010 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
5011 | if test "x$LINE" != x ; then | |
5012 | eval "DEFAULT_$LINE" | |
5013 | else | |
5014 | no_cache=1 | |
5015 | fi | |
5016 | ||
5017 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
1e6feb95 | 5018 | |
e6cc62c6 | 5019 | fi; |
1e6feb95 VZ |
5020 | |
5021 | eval "$ac_cv_use_unicode" | |
5022 | if test "$no_cache" != 1; then | |
5023 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5024 | fi | |
5025 | ||
5026 | if test "$wxUSE_UNICODE" = yes; then | |
e6cc62c6 VS |
5027 | echo "$as_me:$LINENO: result: yes" >&5 |
5028 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5029 | else |
e6cc62c6 VS |
5030 | echo "$as_me:$LINENO: result: no" >&5 |
5031 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5032 | fi |
e6cc62c6 | 5033 | |
1e6feb95 | 5034 | |
5005acfe | 5035 | enablestring= |
e6cc62c6 VS |
5036 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5037 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5038 | no_cache=0 |
5039 | # Check whether --enable-mslu or --disable-mslu was given. | |
5040 | if test "${enable_mslu+set}" = set; then | |
5041 | enableval="$enable_mslu" | |
e6cc62c6 | 5042 | |
a72a4bfa VS |
5043 | if test "$enableval" = yes; then |
5044 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5045 | else | |
5046 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5047 | fi | |
e6cc62c6 | 5048 | |
a72a4bfa | 5049 | else |
e6cc62c6 | 5050 | |
a72a4bfa VS |
5051 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5052 | if test "x$LINE" != x ; then | |
5053 | eval "DEFAULT_$LINE" | |
5054 | else | |
5055 | no_cache=1 | |
5056 | fi | |
5057 | ||
5058 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5059 | |
e6cc62c6 | 5060 | fi; |
a72a4bfa VS |
5061 | |
5062 | eval "$ac_cv_use_mslu" | |
5063 | if test "$no_cache" != 1; then | |
5064 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5065 | fi | |
5066 | ||
5067 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5068 | echo "$as_me:$LINENO: result: yes" >&5 |
5069 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5070 | else |
e6cc62c6 VS |
5071 | echo "$as_me:$LINENO: result: no" >&5 |
5072 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5073 | fi |
e6cc62c6 | 5074 | |
a72a4bfa | 5075 | |
5005acfe | 5076 | enablestring= |
e6cc62c6 VS |
5077 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5078 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 VZ |
5079 | no_cache=0 |
5080 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5081 | if test "${enable_wxprintfv+set}" = set; then | |
5082 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5083 | |
1e6feb95 | 5084 | if test "$enableval" = yes; then |
10f2d63a VZ |
5085 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
5086 | else | |
5087 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5088 | fi | |
e6cc62c6 | 5089 | |
10f2d63a | 5090 | else |
e6cc62c6 | 5091 | |
10f2d63a VZ |
5092 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
5093 | if test "x$LINE" != x ; then | |
5094 | eval "DEFAULT_$LINE" | |
5095 | else | |
5096 | no_cache=1 | |
5097 | fi | |
5098 | ||
5099 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
10f2d63a | 5100 | |
e6cc62c6 | 5101 | fi; |
10f2d63a VZ |
5102 | |
5103 | eval "$ac_cv_use_wxprintfv" | |
5104 | if test "$no_cache" != 1; then | |
5105 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5106 | fi | |
5107 | ||
5108 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
e6cc62c6 VS |
5109 | echo "$as_me:$LINENO: result: yes" >&5 |
5110 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5111 | else |
e6cc62c6 VS |
5112 | echo "$as_me:$LINENO: result: no" >&5 |
5113 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5114 | fi |
e6cc62c6 | 5115 | |
10f2d63a | 5116 | |
5005acfe | 5117 | enablestring= |
e6cc62c6 VS |
5118 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5119 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5120 | no_cache=0 |
5121 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5122 | if test "${enable_std_iostreams+set}" = set; then | |
5123 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5124 | |
10f2d63a VZ |
5125 | if test "$enableval" = yes; then |
5126 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5127 | else | |
5128 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5129 | fi | |
e6cc62c6 | 5130 | |
10f2d63a | 5131 | else |
e6cc62c6 | 5132 | |
10f2d63a VZ |
5133 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5134 | if test "x$LINE" != x ; then | |
5135 | eval "DEFAULT_$LINE" | |
5136 | else | |
5137 | no_cache=1 | |
5138 | fi | |
5139 | ||
5140 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5141 | |
e6cc62c6 | 5142 | fi; |
10f2d63a VZ |
5143 | |
5144 | eval "$ac_cv_use_std_iostreams" | |
5145 | if test "$no_cache" != 1; then | |
5146 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5147 | fi | |
5148 | ||
5149 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5150 | echo "$as_me:$LINENO: result: yes" >&5 |
5151 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5152 | else |
e6cc62c6 VS |
5153 | echo "$as_me:$LINENO: result: no" >&5 |
5154 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5155 | fi |
e6cc62c6 | 5156 | |
10f2d63a | 5157 | |
5005acfe | 5158 | enablestring= |
e6cc62c6 VS |
5159 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
5160 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
24528b0c VS |
5161 | no_cache=0 |
5162 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5163 | if test "${enable_filesystem+set}" = set; then | |
5164 | enableval="$enable_filesystem" | |
e6cc62c6 | 5165 | |
24528b0c VS |
5166 | if test "$enableval" = yes; then |
5167 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5168 | else | |
5169 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5170 | fi | |
e6cc62c6 | 5171 | |
24528b0c | 5172 | else |
e6cc62c6 | 5173 | |
24528b0c VS |
5174 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
5175 | if test "x$LINE" != x ; then | |
5176 | eval "DEFAULT_$LINE" | |
5177 | else | |
5178 | no_cache=1 | |
5179 | fi | |
5180 | ||
5181 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
24528b0c | 5182 | |
e6cc62c6 | 5183 | fi; |
24528b0c VS |
5184 | |
5185 | eval "$ac_cv_use_filesystem" | |
5186 | if test "$no_cache" != 1; then | |
5187 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5188 | fi | |
5189 | ||
5190 | if test "$wxUSE_FILESYSTEM" = yes; then | |
e6cc62c6 VS |
5191 | echo "$as_me:$LINENO: result: yes" >&5 |
5192 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5193 | else |
e6cc62c6 VS |
5194 | echo "$as_me:$LINENO: result: no" >&5 |
5195 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5196 | fi |
e6cc62c6 | 5197 | |
24528b0c | 5198 | |
5005acfe | 5199 | enablestring= |
e6cc62c6 VS |
5200 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
5201 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a VZ |
5202 | no_cache=0 |
5203 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5204 | if test "${enable_fs_inet+set}" = set; then | |
5205 | enableval="$enable_fs_inet" | |
e6cc62c6 | 5206 | |
10f2d63a VZ |
5207 | if test "$enableval" = yes; then |
5208 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5209 | else | |
5210 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5211 | fi | |
e6cc62c6 | 5212 | |
10f2d63a | 5213 | else |
e6cc62c6 | 5214 | |
10f2d63a VZ |
5215 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
5216 | if test "x$LINE" != x ; then | |
5217 | eval "DEFAULT_$LINE" | |
5218 | else | |
5219 | no_cache=1 | |
5220 | fi | |
5221 | ||
5222 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
10f2d63a | 5223 | |
e6cc62c6 | 5224 | fi; |
10f2d63a VZ |
5225 | |
5226 | eval "$ac_cv_use_fs_inet" | |
5227 | if test "$no_cache" != 1; then | |
5228 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5229 | fi | |
5230 | ||
5231 | if test "$wxUSE_FS_INET" = yes; then | |
e6cc62c6 VS |
5232 | echo "$as_me:$LINENO: result: yes" >&5 |
5233 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5234 | else |
e6cc62c6 VS |
5235 | echo "$as_me:$LINENO: result: no" >&5 |
5236 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5237 | fi |
e6cc62c6 | 5238 | |
10f2d63a | 5239 | |
5005acfe | 5240 | enablestring= |
e6cc62c6 VS |
5241 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5242 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
10f2d63a VZ |
5243 | no_cache=0 |
5244 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5245 | if test "${enable_fs_zip+set}" = set; then | |
5246 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5247 | |
10f2d63a VZ |
5248 | if test "$enableval" = yes; then |
5249 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5250 | else | |
5251 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5252 | fi | |
e6cc62c6 | 5253 | |
10f2d63a | 5254 | else |
e6cc62c6 | 5255 | |
10f2d63a VZ |
5256 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
5257 | if test "x$LINE" != x ; then | |
5258 | eval "DEFAULT_$LINE" | |
5259 | else | |
5260 | no_cache=1 | |
5261 | fi | |
5262 | ||
5263 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
10f2d63a | 5264 | |
e6cc62c6 | 5265 | fi; |
10f2d63a VZ |
5266 | |
5267 | eval "$ac_cv_use_fs_zip" | |
5268 | if test "$no_cache" != 1; then | |
5269 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5270 | fi | |
5271 | ||
5272 | if test "$wxUSE_FS_ZIP" = yes; then | |
e6cc62c6 VS |
5273 | echo "$as_me:$LINENO: result: yes" >&5 |
5274 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5275 | else |
e6cc62c6 VS |
5276 | echo "$as_me:$LINENO: result: no" >&5 |
5277 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5278 | fi |
e6cc62c6 | 5279 | |
10f2d63a | 5280 | |
5005acfe | 5281 | enablestring= |
e6cc62c6 VS |
5282 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5283 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
10f2d63a VZ |
5284 | no_cache=0 |
5285 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5286 | if test "${enable_zipstream+set}" = set; then | |
5287 | enableval="$enable_zipstream" | |
e6cc62c6 | 5288 | |
10f2d63a VZ |
5289 | if test "$enableval" = yes; then |
5290 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5291 | else | |
5292 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5293 | fi | |
e6cc62c6 | 5294 | |
10f2d63a | 5295 | else |
e6cc62c6 | 5296 | |
10f2d63a VZ |
5297 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
5298 | if test "x$LINE" != x ; then | |
5299 | eval "DEFAULT_$LINE" | |
5300 | else | |
5301 | no_cache=1 | |
5302 | fi | |
5303 | ||
5304 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
10f2d63a | 5305 | |
e6cc62c6 | 5306 | fi; |
10f2d63a VZ |
5307 | |
5308 | eval "$ac_cv_use_zipstream" | |
5309 | if test "$no_cache" != 1; then | |
5310 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5311 | fi | |
5312 | ||
5313 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
e6cc62c6 VS |
5314 | echo "$as_me:$LINENO: result: yes" >&5 |
5315 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5316 | else |
e6cc62c6 VS |
5317 | echo "$as_me:$LINENO: result: no" >&5 |
5318 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5319 | fi |
e6cc62c6 | 5320 | |
8284b0c5 | 5321 | |
52127426 | 5322 | |
5005acfe | 5323 | enablestring= |
e6cc62c6 VS |
5324 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5325 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eb4efbdc VZ |
5326 | no_cache=0 |
5327 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
5328 | if test "${enable_catch_segvs+set}" = set; then | |
5329 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 5330 | |
eb4efbdc VZ |
5331 | if test "$enableval" = yes; then |
5332 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
5333 | else | |
5334 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
5335 | fi | |
e6cc62c6 | 5336 | |
eb4efbdc | 5337 | else |
e6cc62c6 | 5338 | |
eb4efbdc VZ |
5339 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
5340 | if test "x$LINE" != x ; then | |
5341 | eval "DEFAULT_$LINE" | |
5342 | else | |
5343 | no_cache=1 | |
5344 | fi | |
5345 | ||
5346 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
eb4efbdc | 5347 | |
e6cc62c6 | 5348 | fi; |
eb4efbdc VZ |
5349 | |
5350 | eval "$ac_cv_use_catch_segvs" | |
5351 | if test "$no_cache" != 1; then | |
5352 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
5353 | fi | |
5354 | ||
5355 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
e6cc62c6 VS |
5356 | echo "$as_me:$LINENO: result: yes" >&5 |
5357 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5358 | else |
e6cc62c6 VS |
5359 | echo "$as_me:$LINENO: result: no" >&5 |
5360 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5361 | fi |
e6cc62c6 | 5362 | |
eb4efbdc | 5363 | |
5005acfe | 5364 | enablestring= |
e6cc62c6 VS |
5365 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5366 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
4f3c5f06 VZ |
5367 | no_cache=0 |
5368 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5369 | if test "${enable_snglinst+set}" = set; then | |
5370 | enableval="$enable_snglinst" | |
e6cc62c6 | 5371 | |
4f3c5f06 VZ |
5372 | if test "$enableval" = yes; then |
5373 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5374 | else | |
5375 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5376 | fi | |
e6cc62c6 | 5377 | |
4f3c5f06 | 5378 | else |
e6cc62c6 | 5379 | |
4f3c5f06 VZ |
5380 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
5381 | if test "x$LINE" != x ; then | |
5382 | eval "DEFAULT_$LINE" | |
5383 | else | |
5384 | no_cache=1 | |
5385 | fi | |
5386 | ||
5387 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4f3c5f06 | 5388 | |
e6cc62c6 | 5389 | fi; |
4f3c5f06 VZ |
5390 | |
5391 | eval "$ac_cv_use_snglinst" | |
5392 | if test "$no_cache" != 1; then | |
5393 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5394 | fi | |
5395 | ||
5396 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
e6cc62c6 VS |
5397 | echo "$as_me:$LINENO: result: yes" >&5 |
5398 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5399 | else |
e6cc62c6 VS |
5400 | echo "$as_me:$LINENO: result: no" >&5 |
5401 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5402 | fi |
e6cc62c6 | 5403 | |
52127426 | 5404 | |
8284b0c5 | 5405 | |
5005acfe | 5406 | enablestring= |
e6cc62c6 VS |
5407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 |
5408 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
1e6feb95 VZ |
5409 | no_cache=0 |
5410 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5411 | if test "${enable_mimetype+set}" = set; then | |
5412 | enableval="$enable_mimetype" | |
e6cc62c6 | 5413 | |
1e6feb95 VZ |
5414 | if test "$enableval" = yes; then |
5415 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5416 | else | |
5417 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5418 | fi | |
e6cc62c6 | 5419 | |
1e6feb95 | 5420 | else |
e6cc62c6 | 5421 | |
1e6feb95 VZ |
5422 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
5423 | if test "x$LINE" != x ; then | |
5424 | eval "DEFAULT_$LINE" | |
5425 | else | |
5426 | no_cache=1 | |
5427 | fi | |
5428 | ||
5429 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
1e6feb95 | 5430 | |
e6cc62c6 | 5431 | fi; |
1e6feb95 VZ |
5432 | |
5433 | eval "$ac_cv_use_mimetype" | |
5434 | if test "$no_cache" != 1; then | |
5435 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5436 | fi | |
5437 | ||
5438 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5439 | echo "$as_me:$LINENO: result: yes" >&5 |
5440 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5441 | else |
e6cc62c6 VS |
5442 | echo "$as_me:$LINENO: result: no" >&5 |
5443 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5444 | fi |
e6cc62c6 | 5445 | |
1e6feb95 | 5446 | |
5005acfe | 5447 | enablestring= |
e6cc62c6 VS |
5448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5449 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
3e44f09d VZ |
5450 | no_cache=0 |
5451 | # Check whether --enable-system_options or --disable-system_options was given. | |
5452 | if test "${enable_system_options+set}" = set; then | |
5453 | enableval="$enable_system_options" | |
e6cc62c6 | 5454 | |
3e44f09d VZ |
5455 | if test "$enableval" = yes; then |
5456 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5457 | else | |
5458 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5459 | fi | |
e6cc62c6 | 5460 | |
3e44f09d | 5461 | else |
e6cc62c6 | 5462 | |
3e44f09d VZ |
5463 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
5464 | if test "x$LINE" != x ; then | |
5465 | eval "DEFAULT_$LINE" | |
5466 | else | |
5467 | no_cache=1 | |
5468 | fi | |
5469 | ||
5470 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
3e44f09d | 5471 | |
e6cc62c6 | 5472 | fi; |
3e44f09d VZ |
5473 | |
5474 | eval "$ac_cv_use_system_options" | |
5475 | if test "$no_cache" != 1; then | |
5476 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5477 | fi | |
5478 | ||
5479 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
e6cc62c6 VS |
5480 | echo "$as_me:$LINENO: result: yes" >&5 |
5481 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5482 | else |
e6cc62c6 VS |
5483 | echo "$as_me:$LINENO: result: no" >&5 |
5484 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5485 | fi |
e6cc62c6 | 5486 | |
8284b0c5 | 5487 | |
52127426 | 5488 | |
5005acfe | 5489 | enablestring= |
e6cc62c6 VS |
5490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5491 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5492 | no_cache=0 |
5493 | # Check whether --enable-url or --disable-url was given. | |
5494 | if test "${enable_url+set}" = set; then | |
5495 | enableval="$enable_url" | |
e6cc62c6 | 5496 | |
4cdb0ab0 VS |
5497 | if test "$enableval" = yes; then |
5498 | ac_cv_use_url='wxUSE_URL=yes' | |
5499 | else | |
5500 | ac_cv_use_url='wxUSE_URL=no' | |
5501 | fi | |
e6cc62c6 | 5502 | |
4cdb0ab0 | 5503 | else |
e6cc62c6 | 5504 | |
4cdb0ab0 VS |
5505 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5506 | if test "x$LINE" != x ; then | |
5507 | eval "DEFAULT_$LINE" | |
5508 | else | |
5509 | no_cache=1 | |
5510 | fi | |
5511 | ||
5512 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5513 | |
e6cc62c6 | 5514 | fi; |
4cdb0ab0 VS |
5515 | |
5516 | eval "$ac_cv_use_url" | |
5517 | if test "$no_cache" != 1; then | |
5518 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5519 | fi | |
5520 | ||
5521 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5522 | echo "$as_me:$LINENO: result: yes" >&5 |
5523 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5524 | else |
e6cc62c6 VS |
5525 | echo "$as_me:$LINENO: result: no" >&5 |
5526 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5527 | fi |
e6cc62c6 | 5528 | |
4cdb0ab0 | 5529 | |
5005acfe | 5530 | enablestring= |
e6cc62c6 VS |
5531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5532 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5533 | no_cache=0 |
5534 | # Check whether --enable-protocol or --disable-protocol was given. | |
5535 | if test "${enable_protocol+set}" = set; then | |
5536 | enableval="$enable_protocol" | |
e6cc62c6 | 5537 | |
4cdb0ab0 VS |
5538 | if test "$enableval" = yes; then |
5539 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5540 | else | |
5541 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5542 | fi | |
e6cc62c6 | 5543 | |
4cdb0ab0 | 5544 | else |
e6cc62c6 | 5545 | |
4cdb0ab0 VS |
5546 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5547 | if test "x$LINE" != x ; then | |
5548 | eval "DEFAULT_$LINE" | |
5549 | else | |
5550 | no_cache=1 | |
5551 | fi | |
5552 | ||
5553 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5554 | |
e6cc62c6 | 5555 | fi; |
4cdb0ab0 VS |
5556 | |
5557 | eval "$ac_cv_use_protocol" | |
5558 | if test "$no_cache" != 1; then | |
5559 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5560 | fi | |
5561 | ||
5562 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5563 | echo "$as_me:$LINENO: result: yes" >&5 |
5564 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5565 | else |
e6cc62c6 VS |
5566 | echo "$as_me:$LINENO: result: no" >&5 |
5567 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5568 | fi |
e6cc62c6 | 5569 | |
4cdb0ab0 | 5570 | |
5005acfe | 5571 | enablestring= |
e6cc62c6 VS |
5572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5573 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5574 | no_cache=0 |
5575 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5576 | if test "${enable_protocol_http+set}" = set; then | |
5577 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5578 | |
4cdb0ab0 VS |
5579 | if test "$enableval" = yes; then |
5580 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5581 | else | |
5582 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5583 | fi | |
e6cc62c6 | 5584 | |
4cdb0ab0 | 5585 | else |
e6cc62c6 | 5586 | |
4cdb0ab0 VS |
5587 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5588 | if test "x$LINE" != x ; then | |
5589 | eval "DEFAULT_$LINE" | |
5590 | else | |
5591 | no_cache=1 | |
5592 | fi | |
5593 | ||
5594 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5595 | |
e6cc62c6 | 5596 | fi; |
4cdb0ab0 VS |
5597 | |
5598 | eval "$ac_cv_use_protocol_http" | |
5599 | if test "$no_cache" != 1; then | |
5600 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5601 | fi | |
5602 | ||
5603 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5604 | echo "$as_me:$LINENO: result: yes" >&5 |
5605 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5606 | else |
e6cc62c6 VS |
5607 | echo "$as_me:$LINENO: result: no" >&5 |
5608 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5609 | fi |
e6cc62c6 | 5610 | |
4cdb0ab0 | 5611 | |
5005acfe | 5612 | enablestring= |
e6cc62c6 VS |
5613 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5614 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5615 | no_cache=0 |
5616 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5617 | if test "${enable_protocol_ftp+set}" = set; then | |
5618 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5619 | |
4cdb0ab0 VS |
5620 | if test "$enableval" = yes; then |
5621 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5622 | else | |
5623 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5624 | fi | |
e6cc62c6 | 5625 | |
4cdb0ab0 | 5626 | else |
e6cc62c6 | 5627 | |
4cdb0ab0 VS |
5628 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5629 | if test "x$LINE" != x ; then | |
5630 | eval "DEFAULT_$LINE" | |
5631 | else | |
5632 | no_cache=1 | |
5633 | fi | |
5634 | ||
5635 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5636 | |
e6cc62c6 | 5637 | fi; |
4cdb0ab0 VS |
5638 | |
5639 | eval "$ac_cv_use_protocol_ftp" | |
5640 | if test "$no_cache" != 1; then | |
5641 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5642 | fi | |
5643 | ||
5644 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5645 | echo "$as_me:$LINENO: result: yes" >&5 |
5646 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5647 | else |
e6cc62c6 VS |
5648 | echo "$as_me:$LINENO: result: no" >&5 |
5649 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5650 | fi |
e6cc62c6 | 5651 | |
4cdb0ab0 | 5652 | |
5005acfe | 5653 | enablestring= |
e6cc62c6 VS |
5654 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5655 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5656 | no_cache=0 |
5657 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5658 | if test "${enable_protocol_file+set}" = set; then | |
5659 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5660 | |
4cdb0ab0 VS |
5661 | if test "$enableval" = yes; then |
5662 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5663 | else | |
5664 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5665 | fi | |
e6cc62c6 | 5666 | |
4cdb0ab0 | 5667 | else |
e6cc62c6 | 5668 | |
4cdb0ab0 VS |
5669 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5670 | if test "x$LINE" != x ; then | |
5671 | eval "DEFAULT_$LINE" | |
5672 | else | |
5673 | no_cache=1 | |
5674 | fi | |
5675 | ||
5676 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5677 | |
e6cc62c6 | 5678 | fi; |
4cdb0ab0 VS |
5679 | |
5680 | eval "$ac_cv_use_protocol_file" | |
5681 | if test "$no_cache" != 1; then | |
5682 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5683 | fi | |
5684 | ||
5685 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5686 | echo "$as_me:$LINENO: result: yes" >&5 |
5687 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5688 | else |
e6cc62c6 VS |
5689 | echo "$as_me:$LINENO: result: no" >&5 |
5690 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5691 | fi |
e6cc62c6 | 5692 | |
52127426 | 5693 | |
8284b0c5 MB |
5694 | |
5695 | ||
5696 | ||
5005acfe | 5697 | enablestring= |
e6cc62c6 VS |
5698 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5699 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5700 | no_cache=0 |
5701 | # Check whether --enable-threads or --disable-threads was given. | |
5702 | if test "${enable_threads+set}" = set; then | |
5703 | enableval="$enable_threads" | |
e6cc62c6 | 5704 | |
10f2d63a VZ |
5705 | if test "$enableval" = yes; then |
5706 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5707 | else | |
5708 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5709 | fi | |
e6cc62c6 | 5710 | |
10f2d63a | 5711 | else |
e6cc62c6 | 5712 | |
10f2d63a VZ |
5713 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5714 | if test "x$LINE" != x ; then | |
5715 | eval "DEFAULT_$LINE" | |
5716 | else | |
5717 | no_cache=1 | |
5718 | fi | |
5719 | ||
5720 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5721 | |
e6cc62c6 | 5722 | fi; |
10f2d63a VZ |
5723 | |
5724 | eval "$ac_cv_use_threads" | |
5725 | if test "$no_cache" != 1; then | |
5726 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5727 | fi | |
5728 | ||
5729 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5730 | echo "$as_me:$LINENO: result: yes" >&5 |
5731 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5732 | else |
e6cc62c6 VS |
5733 | echo "$as_me:$LINENO: result: no" >&5 |
5734 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5735 | fi |
e6cc62c6 | 5736 | |
10f2d63a | 5737 | |
b12915c1 VZ |
5738 | if test "$wxUSE_GUI" = "yes"; then |
5739 | ||
8284b0c5 MB |
5740 | |
5741 | ||
5005acfe | 5742 | enablestring= |
e6cc62c6 VS |
5743 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5744 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5745 | no_cache=0 |
5746 | # Check whether --enable-docview or --disable-docview was given. | |
5747 | if test "${enable_docview+set}" = set; then | |
5748 | enableval="$enable_docview" | |
e6cc62c6 | 5749 | |
10f2d63a VZ |
5750 | if test "$enableval" = yes; then |
5751 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5752 | else | |
5753 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5754 | fi | |
e6cc62c6 | 5755 | |
10f2d63a | 5756 | else |
e6cc62c6 | 5757 | |
10f2d63a VZ |
5758 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5759 | if test "x$LINE" != x ; then | |
5760 | eval "DEFAULT_$LINE" | |
5761 | else | |
5762 | no_cache=1 | |
5763 | fi | |
5764 | ||
5765 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5766 | |
e6cc62c6 | 5767 | fi; |
10f2d63a VZ |
5768 | |
5769 | eval "$ac_cv_use_docview" | |
5770 | if test "$no_cache" != 1; then | |
5771 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5772 | fi | |
5773 | ||
5774 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5775 | echo "$as_me:$LINENO: result: yes" >&5 |
5776 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5777 | else |
e6cc62c6 VS |
5778 | echo "$as_me:$LINENO: result: no" >&5 |
5779 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5780 | fi |
e6cc62c6 | 5781 | |
10f2d63a | 5782 | |
5005acfe | 5783 | enablestring= |
e6cc62c6 VS |
5784 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5785 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5786 | no_cache=0 |
5787 | # Check whether --enable-help or --disable-help was given. | |
5788 | if test "${enable_help+set}" = set; then | |
5789 | enableval="$enable_help" | |
e6cc62c6 | 5790 | |
10f2d63a VZ |
5791 | if test "$enableval" = yes; then |
5792 | ac_cv_use_help='wxUSE_HELP=yes' | |
5793 | else | |
5794 | ac_cv_use_help='wxUSE_HELP=no' | |
5795 | fi | |
e6cc62c6 | 5796 | |
10f2d63a | 5797 | else |
e6cc62c6 | 5798 | |
10f2d63a VZ |
5799 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5800 | if test "x$LINE" != x ; then | |
5801 | eval "DEFAULT_$LINE" | |
5802 | else | |
5803 | no_cache=1 | |
5804 | fi | |
5805 | ||
5806 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5807 | |
e6cc62c6 | 5808 | fi; |
10f2d63a VZ |
5809 | |
5810 | eval "$ac_cv_use_help" | |
5811 | if test "$no_cache" != 1; then | |
5812 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5813 | fi | |
5814 | ||
5815 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5816 | echo "$as_me:$LINENO: result: yes" >&5 |
5817 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5818 | else |
e6cc62c6 VS |
5819 | echo "$as_me:$LINENO: result: no" >&5 |
5820 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5821 | fi |
e6cc62c6 | 5822 | |
10f2d63a | 5823 | |
5005acfe | 5824 | enablestring= |
e6cc62c6 VS |
5825 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5826 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5827 | no_cache=0 |
5828 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5829 | if test "${enable_mshtmlhelp+set}" = set; then | |
5830 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5831 | |
29fd3c0c VS |
5832 | if test "$enableval" = yes; then |
5833 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5834 | else | |
5835 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5836 | fi | |
e6cc62c6 | 5837 | |
29fd3c0c | 5838 | else |
e6cc62c6 | 5839 | |
29fd3c0c VS |
5840 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5841 | if test "x$LINE" != x ; then | |
5842 | eval "DEFAULT_$LINE" | |
5843 | else | |
5844 | no_cache=1 | |
5845 | fi | |
5846 | ||
5847 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 5848 | |
e6cc62c6 | 5849 | fi; |
29fd3c0c VS |
5850 | |
5851 | eval "$ac_cv_use_mshtmlhelp" | |
5852 | if test "$no_cache" != 1; then | |
5853 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5854 | fi | |
5855 | ||
5856 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
5857 | echo "$as_me:$LINENO: result: yes" >&5 |
5858 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 5859 | else |
e6cc62c6 VS |
5860 | echo "$as_me:$LINENO: result: no" >&5 |
5861 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 5862 | fi |
e6cc62c6 | 5863 | |
29fd3c0c | 5864 | |
5005acfe | 5865 | enablestring= |
e6cc62c6 VS |
5866 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
5867 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
5868 | no_cache=0 |
5869 | # Check whether --enable-html or --disable-html was given. | |
5870 | if test "${enable_html+set}" = set; then | |
5871 | enableval="$enable_html" | |
e6cc62c6 | 5872 | |
3379ed37 VZ |
5873 | if test "$enableval" = yes; then |
5874 | ac_cv_use_html='wxUSE_HTML=yes' | |
5875 | else | |
5876 | ac_cv_use_html='wxUSE_HTML=no' | |
5877 | fi | |
e6cc62c6 | 5878 | |
3379ed37 | 5879 | else |
e6cc62c6 | 5880 | |
3379ed37 VZ |
5881 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5882 | if test "x$LINE" != x ; then | |
5883 | eval "DEFAULT_$LINE" | |
5884 | else | |
5885 | no_cache=1 | |
5886 | fi | |
5887 | ||
5888 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 5889 | |
e6cc62c6 | 5890 | fi; |
3379ed37 VZ |
5891 | |
5892 | eval "$ac_cv_use_html" | |
5893 | if test "$no_cache" != 1; then | |
5894 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5895 | fi | |
5896 | ||
5897 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
5898 | echo "$as_me:$LINENO: result: yes" >&5 |
5899 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5900 | else |
e6cc62c6 VS |
5901 | echo "$as_me:$LINENO: result: no" >&5 |
5902 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5903 | fi |
e6cc62c6 | 5904 | |
3379ed37 | 5905 | |
5005acfe | 5906 | enablestring= |
e6cc62c6 VS |
5907 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
5908 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
5909 | no_cache=0 |
5910 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5911 | if test "${enable_htmlhelp+set}" = set; then | |
5912 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 5913 | |
3379ed37 VZ |
5914 | if test "$enableval" = yes; then |
5915 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5916 | else | |
5917 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5918 | fi | |
e6cc62c6 | 5919 | |
3379ed37 | 5920 | else |
e6cc62c6 | 5921 | |
3379ed37 VZ |
5922 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5923 | if test "x$LINE" != x ; then | |
5924 | eval "DEFAULT_$LINE" | |
5925 | else | |
5926 | no_cache=1 | |
5927 | fi | |
5928 | ||
5929 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 5930 | |
e6cc62c6 | 5931 | fi; |
3379ed37 VZ |
5932 | |
5933 | eval "$ac_cv_use_htmlhelp" | |
5934 | if test "$no_cache" != 1; then | |
5935 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5936 | fi | |
5937 | ||
5938 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
5939 | echo "$as_me:$LINENO: result: yes" >&5 |
5940 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5941 | else |
e6cc62c6 VS |
5942 | echo "$as_me:$LINENO: result: no" >&5 |
5943 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5944 | fi |
e6cc62c6 | 5945 | |
3379ed37 | 5946 | |
5005acfe | 5947 | enablestring= |
e6cc62c6 VS |
5948 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
5949 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
5950 | no_cache=0 |
5951 | # Check whether --enable-constraints or --disable-constraints was given. | |
5952 | if test "${enable_constraints+set}" = set; then | |
5953 | enableval="$enable_constraints" | |
e6cc62c6 | 5954 | |
10f2d63a VZ |
5955 | if test "$enableval" = yes; then |
5956 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5957 | else | |
5958 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5959 | fi | |
e6cc62c6 | 5960 | |
10f2d63a | 5961 | else |
e6cc62c6 | 5962 | |
10f2d63a VZ |
5963 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5964 | if test "x$LINE" != x ; then | |
5965 | eval "DEFAULT_$LINE" | |
5966 | else | |
5967 | no_cache=1 | |
5968 | fi | |
5969 | ||
5970 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 5971 | |
e6cc62c6 | 5972 | fi; |
10f2d63a VZ |
5973 | |
5974 | eval "$ac_cv_use_constraints" | |
5975 | if test "$no_cache" != 1; then | |
5976 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5977 | fi | |
5978 | ||
5979 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
5980 | echo "$as_me:$LINENO: result: yes" >&5 |
5981 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5982 | else |
e6cc62c6 VS |
5983 | echo "$as_me:$LINENO: result: no" >&5 |
5984 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5985 | fi |
e6cc62c6 | 5986 | |
10f2d63a | 5987 | |
5005acfe | 5988 | enablestring= |
e6cc62c6 VS |
5989 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
5990 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
5991 | no_cache=0 |
5992 | # Check whether --enable-printarch or --disable-printarch was given. | |
5993 | if test "${enable_printarch+set}" = set; then | |
5994 | enableval="$enable_printarch" | |
e6cc62c6 | 5995 | |
10f2d63a VZ |
5996 | if test "$enableval" = yes; then |
5997 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5998 | else | |
5999 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6000 | fi | |
e6cc62c6 | 6001 | |
10f2d63a | 6002 | else |
e6cc62c6 | 6003 | |
10f2d63a VZ |
6004 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
6005 | if test "x$LINE" != x ; then | |
6006 | eval "DEFAULT_$LINE" | |
6007 | else | |
6008 | no_cache=1 | |
6009 | fi | |
6010 | ||
6011 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 6012 | |
e6cc62c6 | 6013 | fi; |
10f2d63a VZ |
6014 | |
6015 | eval "$ac_cv_use_printarch" | |
6016 | if test "$no_cache" != 1; then | |
6017 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6018 | fi | |
6019 | ||
6020 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6021 | echo "$as_me:$LINENO: result: yes" >&5 |
6022 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6023 | else |
e6cc62c6 VS |
6024 | echo "$as_me:$LINENO: result: no" >&5 |
6025 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6026 | fi |
e6cc62c6 | 6027 | |
10f2d63a | 6028 | |
5005acfe | 6029 | enablestring= |
e6cc62c6 VS |
6030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6031 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6032 | no_cache=0 |
6033 | # Check whether --enable-mdi or --disable-mdi was given. | |
6034 | if test "${enable_mdi+set}" = set; then | |
6035 | enableval="$enable_mdi" | |
e6cc62c6 | 6036 | |
10f2d63a VZ |
6037 | if test "$enableval" = yes; then |
6038 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6039 | else | |
6040 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6041 | fi | |
e6cc62c6 | 6042 | |
10f2d63a | 6043 | else |
e6cc62c6 | 6044 | |
10f2d63a VZ |
6045 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6046 | if test "x$LINE" != x ; then | |
6047 | eval "DEFAULT_$LINE" | |
6048 | else | |
6049 | no_cache=1 | |
6050 | fi | |
6051 | ||
6052 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6053 | |
e6cc62c6 | 6054 | fi; |
10f2d63a VZ |
6055 | |
6056 | eval "$ac_cv_use_mdi" | |
6057 | if test "$no_cache" != 1; then | |
6058 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6059 | fi | |
6060 | ||
6061 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6062 | echo "$as_me:$LINENO: result: yes" >&5 |
6063 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6064 | else |
e6cc62c6 VS |
6065 | echo "$as_me:$LINENO: result: no" >&5 |
6066 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6067 | fi |
e6cc62c6 | 6068 | |
698dcdb6 | 6069 | |
5005acfe | 6070 | enablestring= |
e6cc62c6 VS |
6071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6072 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6073 | no_cache=0 |
6074 | # Check whether --enable-loggui or --disable-loggui was given. | |
6075 | if test "${enable_loggui+set}" = set; then | |
6076 | enableval="$enable_loggui" | |
e6cc62c6 | 6077 | |
1e6feb95 VZ |
6078 | if test "$enableval" = yes; then |
6079 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6080 | else | |
6081 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6082 | fi | |
e6cc62c6 | 6083 | |
1e6feb95 | 6084 | else |
e6cc62c6 | 6085 | |
1e6feb95 VZ |
6086 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6087 | if test "x$LINE" != x ; then | |
6088 | eval "DEFAULT_$LINE" | |
6089 | else | |
6090 | no_cache=1 | |
6091 | fi | |
6092 | ||
6093 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6094 | |
e6cc62c6 | 6095 | fi; |
1e6feb95 VZ |
6096 | |
6097 | eval "$ac_cv_use_loggui" | |
6098 | if test "$no_cache" != 1; then | |
6099 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6100 | fi | |
6101 | ||
6102 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6103 | echo "$as_me:$LINENO: result: yes" >&5 |
6104 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6105 | else |
e6cc62c6 VS |
6106 | echo "$as_me:$LINENO: result: no" >&5 |
6107 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6108 | fi |
e6cc62c6 | 6109 | |
1e6feb95 | 6110 | |
5005acfe | 6111 | enablestring= |
e6cc62c6 VS |
6112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6113 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6114 | no_cache=0 |
6115 | # Check whether --enable-logwin or --disable-logwin was given. | |
6116 | if test "${enable_logwin+set}" = set; then | |
6117 | enableval="$enable_logwin" | |
e6cc62c6 | 6118 | |
1e6feb95 VZ |
6119 | if test "$enableval" = yes; then |
6120 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6121 | else | |
6122 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6123 | fi | |
e6cc62c6 | 6124 | |
1e6feb95 | 6125 | else |
e6cc62c6 | 6126 | |
1e6feb95 VZ |
6127 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6128 | if test "x$LINE" != x ; then | |
6129 | eval "DEFAULT_$LINE" | |
6130 | else | |
6131 | no_cache=1 | |
6132 | fi | |
6133 | ||
6134 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6135 | |
e6cc62c6 | 6136 | fi; |
1e6feb95 VZ |
6137 | |
6138 | eval "$ac_cv_use_logwin" | |
6139 | if test "$no_cache" != 1; then | |
6140 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6141 | fi | |
6142 | ||
6143 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6144 | echo "$as_me:$LINENO: result: yes" >&5 |
6145 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6146 | else |
e6cc62c6 VS |
6147 | echo "$as_me:$LINENO: result: no" >&5 |
6148 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6149 | fi |
e6cc62c6 | 6150 | |
1e6feb95 | 6151 | |
5005acfe | 6152 | enablestring= |
e6cc62c6 VS |
6153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6154 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6155 | no_cache=0 |
6156 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6157 | if test "${enable_logdialog+set}" = set; then | |
6158 | enableval="$enable_logdialog" | |
e6cc62c6 | 6159 | |
69d27ff7 MB |
6160 | if test "$enableval" = yes; then |
6161 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6162 | else | |
6163 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6164 | fi | |
e6cc62c6 | 6165 | |
69d27ff7 | 6166 | else |
e6cc62c6 | 6167 | |
69d27ff7 MB |
6168 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6169 | if test "x$LINE" != x ; then | |
6170 | eval "DEFAULT_$LINE" | |
6171 | else | |
6172 | no_cache=1 | |
6173 | fi | |
6174 | ||
6175 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6176 | |
e6cc62c6 | 6177 | fi; |
69d27ff7 MB |
6178 | |
6179 | eval "$ac_cv_use_logdialog" | |
6180 | if test "$no_cache" != 1; then | |
6181 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6182 | fi | |
6183 | ||
6184 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6185 | echo "$as_me:$LINENO: result: yes" >&5 |
6186 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6187 | else |
e6cc62c6 VS |
6188 | echo "$as_me:$LINENO: result: no" >&5 |
6189 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6190 | fi |
e6cc62c6 | 6191 | |
8284b0c5 | 6192 | |
52127426 | 6193 | |
5005acfe | 6194 | enablestring= |
e6cc62c6 VS |
6195 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6196 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6197 | no_cache=0 |
6198 | # Check whether --enable-postscript or --disable-postscript was given. | |
6199 | if test "${enable_postscript+set}" = set; then | |
6200 | enableval="$enable_postscript" | |
e6cc62c6 | 6201 | |
10f2d63a VZ |
6202 | if test "$enableval" = yes; then |
6203 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6204 | else | |
6205 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6206 | fi | |
e6cc62c6 | 6207 | |
10f2d63a | 6208 | else |
e6cc62c6 | 6209 | |
10f2d63a VZ |
6210 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6211 | if test "x$LINE" != x ; then | |
6212 | eval "DEFAULT_$LINE" | |
6213 | else | |
6214 | no_cache=1 | |
6215 | fi | |
6216 | ||
6217 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6218 | |
e6cc62c6 | 6219 | fi; |
10f2d63a VZ |
6220 | |
6221 | eval "$ac_cv_use_postscript" | |
6222 | if test "$no_cache" != 1; then | |
6223 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6224 | fi | |
6225 | ||
6226 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6227 | echo "$as_me:$LINENO: result: yes" >&5 |
6228 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6229 | else |
e6cc62c6 VS |
6230 | echo "$as_me:$LINENO: result: no" >&5 |
6231 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6232 | fi |
e6cc62c6 | 6233 | |
8284b0c5 MB |
6234 | |
6235 | ||
52127426 | 6236 | |
8284b0c5 | 6237 | |
5005acfe | 6238 | enablestring= |
e6cc62c6 VS |
6239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6240 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6241 | no_cache=0 |
3c907f20 VZ |
6242 | # Check whether --enable-prologio or --disable-prologio was given. |
6243 | if test "${enable_prologio+set}" = set; then | |
6244 | enableval="$enable_prologio" | |
e6cc62c6 | 6245 | |
10f2d63a | 6246 | if test "$enableval" = yes; then |
3c907f20 | 6247 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6248 | else |
3c907f20 | 6249 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6250 | fi |
e6cc62c6 | 6251 | |
10f2d63a | 6252 | else |
e6cc62c6 | 6253 | |
3c907f20 | 6254 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6255 | if test "x$LINE" != x ; then |
6256 | eval "DEFAULT_$LINE" | |
6257 | else | |
6258 | no_cache=1 | |
6259 | fi | |
6260 | ||
3c907f20 | 6261 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6262 | |
e6cc62c6 | 6263 | fi; |
10f2d63a | 6264 | |
3c907f20 | 6265 | eval "$ac_cv_use_prologio" |
10f2d63a | 6266 | if test "$no_cache" != 1; then |
3c907f20 | 6267 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6268 | fi |
6269 | ||
3c907f20 | 6270 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6271 | echo "$as_me:$LINENO: result: yes" >&5 |
6272 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6273 | else |
e6cc62c6 VS |
6274 | echo "$as_me:$LINENO: result: no" >&5 |
6275 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6276 | fi |
e6cc62c6 | 6277 | |
8284b0c5 | 6278 | |
5005acfe | 6279 | enablestring= |
e6cc62c6 VS |
6280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6281 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6282 | no_cache=0 |
3c907f20 VZ |
6283 | # Check whether --enable-resources or --disable-resources was given. |
6284 | if test "${enable_resources+set}" = set; then | |
6285 | enableval="$enable_resources" | |
e6cc62c6 | 6286 | |
10f2d63a | 6287 | if test "$enableval" = yes; then |
3c907f20 | 6288 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6289 | else |
3c907f20 | 6290 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6291 | fi |
e6cc62c6 | 6292 | |
10f2d63a | 6293 | else |
e6cc62c6 | 6294 | |
3c907f20 | 6295 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6296 | if test "x$LINE" != x ; then |
6297 | eval "DEFAULT_$LINE" | |
6298 | else | |
6299 | no_cache=1 | |
6300 | fi | |
6301 | ||
3c907f20 | 6302 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6303 | |
e6cc62c6 | 6304 | fi; |
10f2d63a | 6305 | |
3c907f20 | 6306 | eval "$ac_cv_use_resources" |
10f2d63a | 6307 | if test "$no_cache" != 1; then |
3c907f20 | 6308 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6309 | fi |
6310 | ||
3c907f20 | 6311 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6312 | echo "$as_me:$LINENO: result: yes" >&5 |
6313 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6314 | else |
e6cc62c6 VS |
6315 | echo "$as_me:$LINENO: result: no" >&5 |
6316 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6317 | fi |
e6cc62c6 | 6318 | |
8284b0c5 MB |
6319 | |
6320 | ||
52127426 | 6321 | |
5005acfe | 6322 | enablestring= |
e6cc62c6 VS |
6323 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6324 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6325 | no_cache=0 |
6326 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6327 | if test "${enable_clipboard+set}" = set; then | |
6328 | enableval="$enable_clipboard" | |
e6cc62c6 | 6329 | |
10f2d63a VZ |
6330 | if test "$enableval" = yes; then |
6331 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6332 | else | |
6333 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6334 | fi | |
e6cc62c6 | 6335 | |
10f2d63a | 6336 | else |
e6cc62c6 | 6337 | |
10f2d63a VZ |
6338 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6339 | if test "x$LINE" != x ; then | |
6340 | eval "DEFAULT_$LINE" | |
6341 | else | |
6342 | no_cache=1 | |
6343 | fi | |
6344 | ||
6345 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6346 | |
e6cc62c6 | 6347 | fi; |
10f2d63a VZ |
6348 | |
6349 | eval "$ac_cv_use_clipboard" | |
6350 | if test "$no_cache" != 1; then | |
6351 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6352 | fi | |
6353 | ||
6354 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6355 | echo "$as_me:$LINENO: result: yes" >&5 |
6356 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6357 | else |
e6cc62c6 VS |
6358 | echo "$as_me:$LINENO: result: no" >&5 |
6359 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6360 | fi |
e6cc62c6 | 6361 | |
10f2d63a | 6362 | |
5005acfe | 6363 | enablestring= |
e6cc62c6 VS |
6364 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6365 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6366 | no_cache=0 |
6367 | # Check whether --enable-dnd or --disable-dnd was given. | |
6368 | if test "${enable_dnd+set}" = set; then | |
6369 | enableval="$enable_dnd" | |
e6cc62c6 | 6370 | |
10f2d63a VZ |
6371 | if test "$enableval" = yes; then |
6372 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6373 | else | |
6374 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6375 | fi | |
e6cc62c6 | 6376 | |
10f2d63a | 6377 | else |
e6cc62c6 | 6378 | |
10f2d63a VZ |
6379 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6380 | if test "x$LINE" != x ; then | |
6381 | eval "DEFAULT_$LINE" | |
6382 | else | |
6383 | no_cache=1 | |
6384 | fi | |
6385 | ||
6386 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6387 | |
e6cc62c6 | 6388 | fi; |
10f2d63a VZ |
6389 | |
6390 | eval "$ac_cv_use_dnd" | |
6391 | if test "$no_cache" != 1; then | |
6392 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6393 | fi | |
6394 | ||
6395 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6396 | echo "$as_me:$LINENO: result: yes" >&5 |
6397 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6398 | else |
e6cc62c6 VS |
6399 | echo "$as_me:$LINENO: result: no" >&5 |
6400 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6401 | fi |
e6cc62c6 | 6402 | |
10f2d63a | 6403 | |
5005acfe | 6404 | enablestring= |
e6cc62c6 VS |
6405 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6406 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6407 | no_cache=0 |
6408 | # Check whether --enable-metafile or --disable-metafile was given. | |
6409 | if test "${enable_metafile+set}" = set; then | |
6410 | enableval="$enable_metafile" | |
e6cc62c6 | 6411 | |
b64f0a5f RL |
6412 | if test "$enableval" = yes; then |
6413 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6414 | else | |
6415 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6416 | fi | |
e6cc62c6 | 6417 | |
b64f0a5f | 6418 | else |
e6cc62c6 | 6419 | |
b64f0a5f RL |
6420 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6421 | if test "x$LINE" != x ; then | |
6422 | eval "DEFAULT_$LINE" | |
6423 | else | |
6424 | no_cache=1 | |
6425 | fi | |
6426 | ||
6427 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6428 | |
e6cc62c6 | 6429 | fi; |
b64f0a5f RL |
6430 | |
6431 | eval "$ac_cv_use_metafile" | |
6432 | if test "$no_cache" != 1; then | |
6433 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6434 | fi | |
6435 | ||
6436 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6437 | echo "$as_me:$LINENO: result: yes" >&5 |
6438 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6439 | else |
e6cc62c6 VS |
6440 | echo "$as_me:$LINENO: result: no" >&5 |
6441 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6442 | fi |
e6cc62c6 | 6443 | |
52127426 | 6444 | |
8284b0c5 | 6445 | |
52127426 | 6446 | |
8284b0c5 | 6447 | |
5005acfe | 6448 | enablestring= |
e6cc62c6 VS |
6449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6450 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6451 | no_cache=0 |
6452 | # Check whether --enable-controls or --disable-controls was given. | |
6453 | if test "${enable_controls+set}" = set; then | |
6454 | enableval="$enable_controls" | |
e6cc62c6 | 6455 | |
10f2d63a VZ |
6456 | if test "$enableval" = yes; then |
6457 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6458 | else | |
6459 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6460 | fi | |
e6cc62c6 | 6461 | |
10f2d63a | 6462 | else |
e6cc62c6 | 6463 | |
10f2d63a VZ |
6464 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6465 | if test "x$LINE" != x ; then | |
6466 | eval "DEFAULT_$LINE" | |
6467 | else | |
6468 | no_cache=1 | |
6469 | fi | |
6470 | ||
6471 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6472 | |
e6cc62c6 | 6473 | fi; |
10f2d63a VZ |
6474 | |
6475 | eval "$ac_cv_use_controls" | |
6476 | if test "$no_cache" != 1; then | |
6477 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6478 | fi | |
6479 | ||
6480 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6481 | echo "$as_me:$LINENO: result: yes" >&5 |
6482 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6483 | else |
e6cc62c6 VS |
6484 | echo "$as_me:$LINENO: result: no" >&5 |
6485 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6486 | fi |
e6cc62c6 | 6487 | |
10f2d63a VZ |
6488 | |
6489 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6490 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6491 | DEFAULT_wxUSE_BMPBUTTON=yes |
6492 | DEFAULT_wxUSE_BUTTON=yes | |
6493 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6494 | DEFAULT_wxUSE_CARET=yes |
6495 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6496 | DEFAULT_wxUSE_CHECKBOX=yes |
6497 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6498 | DEFAULT_wxUSE_CHOICE=yes | |
6499 | DEFAULT_wxUSE_GAUGE=yes | |
6500 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
6501 | DEFAULT_wxUSE_IMAGLIST=yes |
6502 | DEFAULT_wxUSE_LISTBOX=yes | |
6503 | DEFAULT_wxUSE_LISTCTRL=yes | |
6504 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6505 | DEFAULT_wxUSE_RADIOBOX=yes | |
6506 | DEFAULT_wxUSE_RADIOBTN=yes | |
6507 | DEFAULT_wxUSE_SASH=yes | |
6508 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6509 | DEFAULT_wxUSE_SLIDER=yes | |
6510 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6511 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6512 | DEFAULT_wxUSE_SPLITTER=yes |
6513 | DEFAULT_wxUSE_STATBMP=yes | |
6514 | DEFAULT_wxUSE_STATBOX=yes | |
6515 | DEFAULT_wxUSE_STATLINE=yes | |
6516 | DEFAULT_wxUSE_STATUSBAR=yes | |
6517 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6518 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6519 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6520 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6521 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6522 | DEFAULT_wxUSE_TOOLTIPS=yes |
6523 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6524 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6525 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6526 | elif test "$wxUSE_CONTROLS" = "no"; then |
6527 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6528 | DEFAULT_wxUSE_BMPBUTTON=no |
6529 | DEFAULT_wxUSE_BUTTON=no | |
6530 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6531 | DEFAULT_wxUSE_CARET=no |
6532 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6533 | DEFAULT_wxUSE_CHECKBOX=no |
6534 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6535 | DEFAULT_wxUSE_CHOICE=no | |
6536 | DEFAULT_wxUSE_GAUGE=no | |
6537 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
6538 | DEFAULT_wxUSE_IMAGLIST=no |
6539 | DEFAULT_wxUSE_LISTBOX=no | |
6540 | DEFAULT_wxUSE_LISTCTRL=no | |
6541 | DEFAULT_wxUSE_NOTEBOOK=no | |
6542 | DEFAULT_wxUSE_RADIOBOX=no | |
6543 | DEFAULT_wxUSE_RADIOBTN=no | |
6544 | DEFAULT_wxUSE_SASH=no | |
6545 | DEFAULT_wxUSE_SCROLLBAR=no | |
6546 | DEFAULT_wxUSE_SLIDER=no | |
6547 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6548 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6549 | DEFAULT_wxUSE_SPLITTER=no |
6550 | DEFAULT_wxUSE_STATBMP=no | |
6551 | DEFAULT_wxUSE_STATBOX=no | |
6552 | DEFAULT_wxUSE_STATLINE=no | |
6553 | DEFAULT_wxUSE_STATUSBAR=no | |
6554 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6555 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6556 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6557 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6558 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6559 | DEFAULT_wxUSE_TOOLTIPS=no |
6560 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6561 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6562 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6563 | fi |
6564 | ||
ac0c4cc3 DE |
6565 | ## FIXME: This is a blatant hack |
6566 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6567 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6568 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6569 | # Generic notebook requires tab dialog |
6570 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6571 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
ac0c4cc3 | 6572 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6573 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6574 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6575 | fi |
6576 | ||
8284b0c5 | 6577 | |
5005acfe | 6578 | enablestring= |
e6cc62c6 VS |
6579 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6580 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6581 | no_cache=0 |
6582 | # Check whether --enable-accel or --disable-accel was given. | |
6583 | if test "${enable_accel+set}" = set; then | |
6584 | enableval="$enable_accel" | |
e6cc62c6 | 6585 | |
10f2d63a VZ |
6586 | if test "$enableval" = yes; then |
6587 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6588 | else | |
6589 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6590 | fi | |
e6cc62c6 | 6591 | |
10f2d63a | 6592 | else |
e6cc62c6 | 6593 | |
10f2d63a VZ |
6594 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6595 | if test "x$LINE" != x ; then | |
6596 | eval "DEFAULT_$LINE" | |
6597 | else | |
6598 | no_cache=1 | |
6599 | fi | |
6600 | ||
6601 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6602 | |
e6cc62c6 | 6603 | fi; |
10f2d63a VZ |
6604 | |
6605 | eval "$ac_cv_use_accel" | |
6606 | if test "$no_cache" != 1; then | |
6607 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6608 | fi | |
6609 | ||
6610 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6611 | echo "$as_me:$LINENO: result: yes" >&5 |
6612 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6613 | else |
e6cc62c6 VS |
6614 | echo "$as_me:$LINENO: result: no" >&5 |
6615 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6616 | fi |
e6cc62c6 | 6617 | |
10f2d63a | 6618 | |
5005acfe | 6619 | enablestring= |
e6cc62c6 VS |
6620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6621 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6622 | no_cache=0 |
1e6feb95 VZ |
6623 | # Check whether --enable-button or --disable-button was given. |
6624 | if test "${enable_button+set}" = set; then | |
6625 | enableval="$enable_button" | |
e6cc62c6 | 6626 | |
10f2d63a | 6627 | if test "$enableval" = yes; then |
1e6feb95 | 6628 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6629 | else |
1e6feb95 | 6630 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6631 | fi |
e6cc62c6 | 6632 | |
10f2d63a | 6633 | else |
e6cc62c6 | 6634 | |
1e6feb95 | 6635 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6636 | if test "x$LINE" != x ; then |
6637 | eval "DEFAULT_$LINE" | |
6638 | else | |
6639 | no_cache=1 | |
6640 | fi | |
6641 | ||
1e6feb95 | 6642 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6643 | |
e6cc62c6 | 6644 | fi; |
10f2d63a | 6645 | |
1e6feb95 | 6646 | eval "$ac_cv_use_button" |
10f2d63a | 6647 | if test "$no_cache" != 1; then |
1e6feb95 | 6648 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6649 | fi |
6650 | ||
1e6feb95 | 6651 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6652 | echo "$as_me:$LINENO: result: yes" >&5 |
6653 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6654 | else |
e6cc62c6 VS |
6655 | echo "$as_me:$LINENO: result: no" >&5 |
6656 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6657 | fi |
e6cc62c6 | 6658 | |
10f2d63a | 6659 | |
5005acfe | 6660 | enablestring= |
e6cc62c6 VS |
6661 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6662 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6663 | no_cache=0 |
6664 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6665 | if test "${enable_bmpbutton+set}" = set; then | |
6666 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6667 | |
10f2d63a VZ |
6668 | if test "$enableval" = yes; then |
6669 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6670 | else | |
6671 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6672 | fi | |
e6cc62c6 | 6673 | |
10f2d63a | 6674 | else |
e6cc62c6 | 6675 | |
10f2d63a VZ |
6676 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6677 | if test "x$LINE" != x ; then | |
6678 | eval "DEFAULT_$LINE" | |
6679 | else | |
6680 | no_cache=1 | |
6681 | fi | |
6682 | ||
6683 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6684 | |
e6cc62c6 | 6685 | fi; |
10f2d63a VZ |
6686 | |
6687 | eval "$ac_cv_use_bmpbutton" | |
6688 | if test "$no_cache" != 1; then | |
6689 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6690 | fi | |
6691 | ||
6692 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6693 | echo "$as_me:$LINENO: result: yes" >&5 |
6694 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6695 | else |
e6cc62c6 VS |
6696 | echo "$as_me:$LINENO: result: no" >&5 |
6697 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6698 | fi |
e6cc62c6 | 6699 | |
10f2d63a | 6700 | |
5005acfe | 6701 | enablestring= |
e6cc62c6 VS |
6702 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6703 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6704 | no_cache=0 |
6705 | # Check whether --enable-calendar or --disable-calendar was given. | |
6706 | if test "${enable_calendar+set}" = set; then | |
6707 | enableval="$enable_calendar" | |
e6cc62c6 | 6708 | |
1e6feb95 VZ |
6709 | if test "$enableval" = yes; then |
6710 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6711 | else | |
6712 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6713 | fi | |
e6cc62c6 | 6714 | |
1e6feb95 | 6715 | else |
e6cc62c6 | 6716 | |
1e6feb95 VZ |
6717 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6718 | if test "x$LINE" != x ; then | |
6719 | eval "DEFAULT_$LINE" | |
6720 | else | |
6721 | no_cache=1 | |
6722 | fi | |
6723 | ||
6724 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6725 | |
e6cc62c6 | 6726 | fi; |
1e6feb95 VZ |
6727 | |
6728 | eval "$ac_cv_use_calendar" | |
6729 | if test "$no_cache" != 1; then | |
6730 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6731 | fi | |
6732 | ||
6733 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6734 | echo "$as_me:$LINENO: result: yes" >&5 |
6735 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6736 | else |
e6cc62c6 VS |
6737 | echo "$as_me:$LINENO: result: no" >&5 |
6738 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6739 | fi |
e6cc62c6 | 6740 | |
1e6feb95 | 6741 | |
5005acfe | 6742 | enablestring= |
e6cc62c6 VS |
6743 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6744 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6745 | no_cache=0 |
6746 | # Check whether --enable-caret or --disable-caret was given. | |
6747 | if test "${enable_caret+set}" = set; then | |
6748 | enableval="$enable_caret" | |
e6cc62c6 | 6749 | |
1e6feb95 VZ |
6750 | if test "$enableval" = yes; then |
6751 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6752 | else | |
6753 | ac_cv_use_caret='wxUSE_CARET=no' | |
6754 | fi | |
e6cc62c6 | 6755 | |
1e6feb95 | 6756 | else |
e6cc62c6 | 6757 | |
1e6feb95 VZ |
6758 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6759 | if test "x$LINE" != x ; then | |
6760 | eval "DEFAULT_$LINE" | |
6761 | else | |
6762 | no_cache=1 | |
6763 | fi | |
6764 | ||
6765 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6766 | |
e6cc62c6 | 6767 | fi; |
1e6feb95 VZ |
6768 | |
6769 | eval "$ac_cv_use_caret" | |
6770 | if test "$no_cache" != 1; then | |
6771 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6772 | fi | |
6773 | ||
6774 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6775 | echo "$as_me:$LINENO: result: yes" >&5 |
6776 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6777 | else |
e6cc62c6 VS |
6778 | echo "$as_me:$LINENO: result: no" >&5 |
6779 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6780 | fi |
e6cc62c6 | 6781 | |
1e6feb95 | 6782 | |
5005acfe | 6783 | enablestring= |
e6cc62c6 VS |
6784 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6785 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6786 | no_cache=0 |
6787 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6788 | if test "${enable_checkbox+set}" = set; then | |
6789 | enableval="$enable_checkbox" | |
e6cc62c6 | 6790 | |
10f2d63a VZ |
6791 | if test "$enableval" = yes; then |
6792 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6793 | else | |
6794 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6795 | fi | |
e6cc62c6 | 6796 | |
10f2d63a | 6797 | else |
e6cc62c6 | 6798 | |
10f2d63a VZ |
6799 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6800 | if test "x$LINE" != x ; then | |
6801 | eval "DEFAULT_$LINE" | |
6802 | else | |
6803 | no_cache=1 | |
6804 | fi | |
6805 | ||
6806 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6807 | |
e6cc62c6 | 6808 | fi; |
10f2d63a VZ |
6809 | |
6810 | eval "$ac_cv_use_checkbox" | |
6811 | if test "$no_cache" != 1; then | |
6812 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6813 | fi | |
6814 | ||
6815 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6816 | echo "$as_me:$LINENO: result: yes" >&5 |
6817 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6818 | else |
e6cc62c6 VS |
6819 | echo "$as_me:$LINENO: result: no" >&5 |
6820 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6821 | fi |
e6cc62c6 | 6822 | |
10f2d63a | 6823 | |
5005acfe | 6824 | enablestring= |
e6cc62c6 VS |
6825 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6826 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6827 | no_cache=0 |
6828 | # Check whether --enable-checklst or --disable-checklst was given. | |
6829 | if test "${enable_checklst+set}" = set; then | |
6830 | enableval="$enable_checklst" | |
e6cc62c6 | 6831 | |
10f2d63a VZ |
6832 | if test "$enableval" = yes; then |
6833 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6834 | else | |
6835 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6836 | fi | |
e6cc62c6 | 6837 | |
10f2d63a | 6838 | else |
e6cc62c6 | 6839 | |
10f2d63a VZ |
6840 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6841 | if test "x$LINE" != x ; then | |
6842 | eval "DEFAULT_$LINE" | |
6843 | else | |
6844 | no_cache=1 | |
6845 | fi | |
6846 | ||
6847 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 6848 | |
e6cc62c6 | 6849 | fi; |
10f2d63a VZ |
6850 | |
6851 | eval "$ac_cv_use_checklst" | |
6852 | if test "$no_cache" != 1; then | |
6853 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6854 | fi | |
6855 | ||
6856 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
6857 | echo "$as_me:$LINENO: result: yes" >&5 |
6858 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6859 | else |
e6cc62c6 VS |
6860 | echo "$as_me:$LINENO: result: no" >&5 |
6861 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6862 | fi |
e6cc62c6 | 6863 | |
10f2d63a | 6864 | |
5005acfe | 6865 | enablestring= |
e6cc62c6 VS |
6866 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
6867 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
6868 | no_cache=0 |
6869 | # Check whether --enable-choice or --disable-choice was given. | |
6870 | if test "${enable_choice+set}" = set; then | |
6871 | enableval="$enable_choice" | |
e6cc62c6 | 6872 | |
10f2d63a VZ |
6873 | if test "$enableval" = yes; then |
6874 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6875 | else | |
6876 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6877 | fi | |
e6cc62c6 | 6878 | |
10f2d63a | 6879 | else |
e6cc62c6 | 6880 | |
10f2d63a VZ |
6881 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6882 | if test "x$LINE" != x ; then | |
6883 | eval "DEFAULT_$LINE" | |
6884 | else | |
6885 | no_cache=1 | |
6886 | fi | |
6887 | ||
6888 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 6889 | |
e6cc62c6 | 6890 | fi; |
10f2d63a VZ |
6891 | |
6892 | eval "$ac_cv_use_choice" | |
6893 | if test "$no_cache" != 1; then | |
6894 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6895 | fi | |
6896 | ||
6897 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
6898 | echo "$as_me:$LINENO: result: yes" >&5 |
6899 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6900 | else |
e6cc62c6 VS |
6901 | echo "$as_me:$LINENO: result: no" >&5 |
6902 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6903 | fi |
e6cc62c6 | 6904 | |
10f2d63a | 6905 | |
5005acfe | 6906 | enablestring= |
e6cc62c6 VS |
6907 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
6908 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
6909 | no_cache=0 |
6910 | # Check whether --enable-combobox or --disable-combobox was given. | |
6911 | if test "${enable_combobox+set}" = set; then | |
6912 | enableval="$enable_combobox" | |
e6cc62c6 | 6913 | |
10f2d63a VZ |
6914 | if test "$enableval" = yes; then |
6915 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6916 | else | |
6917 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6918 | fi | |
e6cc62c6 | 6919 | |
10f2d63a | 6920 | else |
e6cc62c6 | 6921 | |
10f2d63a VZ |
6922 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6923 | if test "x$LINE" != x ; then | |
6924 | eval "DEFAULT_$LINE" | |
6925 | else | |
6926 | no_cache=1 | |
6927 | fi | |
6928 | ||
6929 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 6930 | |
e6cc62c6 | 6931 | fi; |
10f2d63a VZ |
6932 | |
6933 | eval "$ac_cv_use_combobox" | |
6934 | if test "$no_cache" != 1; then | |
6935 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6936 | fi | |
6937 | ||
6938 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
6939 | echo "$as_me:$LINENO: result: yes" >&5 |
6940 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6941 | else |
e6cc62c6 VS |
6942 | echo "$as_me:$LINENO: result: no" >&5 |
6943 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6944 | fi |
e6cc62c6 | 6945 | |
10f2d63a | 6946 | |
da494b40 | 6947 | enablestring= |
e6cc62c6 VS |
6948 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
6949 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
6950 | no_cache=0 |
6951 | # Check whether --enable-display or --disable-display was given. | |
6952 | if test "${enable_display+set}" = set; then | |
6953 | enableval="$enable_display" | |
e6cc62c6 | 6954 | |
da494b40 MB |
6955 | if test "$enableval" = yes; then |
6956 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6957 | else | |
6958 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6959 | fi | |
e6cc62c6 | 6960 | |
da494b40 | 6961 | else |
e6cc62c6 | 6962 | |
da494b40 MB |
6963 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
6964 | if test "x$LINE" != x ; then | |
6965 | eval "DEFAULT_$LINE" | |
6966 | else | |
6967 | no_cache=1 | |
6968 | fi | |
6969 | ||
6970 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 6971 | |
e6cc62c6 | 6972 | fi; |
da494b40 MB |
6973 | |
6974 | eval "$ac_cv_use_display" | |
6975 | if test "$no_cache" != 1; then | |
6976 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6977 | fi | |
6978 | ||
6979 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
6980 | echo "$as_me:$LINENO: result: yes" >&5 |
6981 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 6982 | else |
e6cc62c6 VS |
6983 | echo "$as_me:$LINENO: result: no" >&5 |
6984 | echo "${ECHO_T}no" >&6 | |
da494b40 | 6985 | fi |
e6cc62c6 | 6986 | |
da494b40 | 6987 | |
5005acfe | 6988 | enablestring= |
e6cc62c6 VS |
6989 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
6990 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
6991 | no_cache=0 |
6992 | # Check whether --enable-gauge or --disable-gauge was given. | |
6993 | if test "${enable_gauge+set}" = set; then | |
6994 | enableval="$enable_gauge" | |
e6cc62c6 | 6995 | |
10f2d63a VZ |
6996 | if test "$enableval" = yes; then |
6997 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6998 | else | |
6999 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7000 | fi | |
e6cc62c6 | 7001 | |
10f2d63a | 7002 | else |
e6cc62c6 | 7003 | |
10f2d63a VZ |
7004 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
7005 | if test "x$LINE" != x ; then | |
7006 | eval "DEFAULT_$LINE" | |
7007 | else | |
7008 | no_cache=1 | |
7009 | fi | |
7010 | ||
7011 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 7012 | |
e6cc62c6 | 7013 | fi; |
10f2d63a VZ |
7014 | |
7015 | eval "$ac_cv_use_gauge" | |
7016 | if test "$no_cache" != 1; then | |
7017 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7018 | fi | |
7019 | ||
7020 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7021 | echo "$as_me:$LINENO: result: yes" >&5 |
7022 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7023 | else |
e6cc62c6 VS |
7024 | echo "$as_me:$LINENO: result: no" >&5 |
7025 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7026 | fi |
e6cc62c6 | 7027 | |
10f2d63a | 7028 | |
5005acfe | 7029 | enablestring= |
e6cc62c6 VS |
7030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7031 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7032 | no_cache=0 |
7033 | # Check whether --enable-grid or --disable-grid was given. | |
7034 | if test "${enable_grid+set}" = set; then | |
7035 | enableval="$enable_grid" | |
e6cc62c6 | 7036 | |
10f2d63a VZ |
7037 | if test "$enableval" = yes; then |
7038 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7039 | else | |
7040 | ac_cv_use_grid='wxUSE_GRID=no' | |
7041 | fi | |
e6cc62c6 | 7042 | |
10f2d63a | 7043 | else |
e6cc62c6 | 7044 | |
10f2d63a VZ |
7045 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7046 | if test "x$LINE" != x ; then | |
7047 | eval "DEFAULT_$LINE" | |
7048 | else | |
7049 | no_cache=1 | |
7050 | fi | |
7051 | ||
7052 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7053 | |
e6cc62c6 | 7054 | fi; |
10f2d63a VZ |
7055 | |
7056 | eval "$ac_cv_use_grid" | |
7057 | if test "$no_cache" != 1; then | |
7058 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7059 | fi | |
7060 | ||
7061 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7062 | echo "$as_me:$LINENO: result: yes" >&5 |
7063 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7064 | else |
e6cc62c6 VS |
7065 | echo "$as_me:$LINENO: result: no" >&5 |
7066 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7067 | fi |
e6cc62c6 | 7068 | |
10f2d63a | 7069 | |
5005acfe | 7070 | enablestring= |
e6cc62c6 VS |
7071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7072 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7073 | no_cache=0 |
7074 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7075 | if test "${enable_imaglist+set}" = set; then | |
7076 | enableval="$enable_imaglist" | |
e6cc62c6 | 7077 | |
10f2d63a VZ |
7078 | if test "$enableval" = yes; then |
7079 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7080 | else | |
7081 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7082 | fi | |
e6cc62c6 | 7083 | |
10f2d63a | 7084 | else |
e6cc62c6 | 7085 | |
10f2d63a VZ |
7086 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7087 | if test "x$LINE" != x ; then | |
7088 | eval "DEFAULT_$LINE" | |
7089 | else | |
7090 | no_cache=1 | |
7091 | fi | |
7092 | ||
7093 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7094 | |
e6cc62c6 | 7095 | fi; |
10f2d63a VZ |
7096 | |
7097 | eval "$ac_cv_use_imaglist" | |
7098 | if test "$no_cache" != 1; then | |
7099 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7100 | fi | |
7101 | ||
7102 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7103 | echo "$as_me:$LINENO: result: yes" >&5 |
7104 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7105 | else |
e6cc62c6 VS |
7106 | echo "$as_me:$LINENO: result: no" >&5 |
7107 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7108 | fi |
e6cc62c6 | 7109 | |
10f2d63a | 7110 | |
5005acfe | 7111 | enablestring= |
e6cc62c6 VS |
7112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7113 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7114 | no_cache=0 |
7115 | # Check whether --enable-listbox or --disable-listbox was given. | |
7116 | if test "${enable_listbox+set}" = set; then | |
7117 | enableval="$enable_listbox" | |
e6cc62c6 | 7118 | |
10f2d63a VZ |
7119 | if test "$enableval" = yes; then |
7120 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7121 | else | |
7122 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7123 | fi | |
e6cc62c6 | 7124 | |
10f2d63a | 7125 | else |
e6cc62c6 | 7126 | |
10f2d63a VZ |
7127 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7128 | if test "x$LINE" != x ; then | |
7129 | eval "DEFAULT_$LINE" | |
7130 | else | |
7131 | no_cache=1 | |
7132 | fi | |
7133 | ||
7134 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7135 | |
e6cc62c6 | 7136 | fi; |
10f2d63a VZ |
7137 | |
7138 | eval "$ac_cv_use_listbox" | |
7139 | if test "$no_cache" != 1; then | |
7140 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7141 | fi | |
7142 | ||
7143 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7144 | echo "$as_me:$LINENO: result: yes" >&5 |
7145 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7146 | else |
e6cc62c6 VS |
7147 | echo "$as_me:$LINENO: result: no" >&5 |
7148 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7149 | fi |
e6cc62c6 | 7150 | |
10f2d63a | 7151 | |
5005acfe | 7152 | enablestring= |
e6cc62c6 VS |
7153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7154 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7155 | no_cache=0 |
7156 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7157 | if test "${enable_listctrl+set}" = set; then | |
7158 | enableval="$enable_listctrl" | |
e6cc62c6 | 7159 | |
10f2d63a VZ |
7160 | if test "$enableval" = yes; then |
7161 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7162 | else | |
7163 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7164 | fi | |
e6cc62c6 | 7165 | |
10f2d63a | 7166 | else |
e6cc62c6 | 7167 | |
10f2d63a VZ |
7168 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7169 | if test "x$LINE" != x ; then | |
7170 | eval "DEFAULT_$LINE" | |
7171 | else | |
7172 | no_cache=1 | |
7173 | fi | |
7174 | ||
7175 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7176 | |
e6cc62c6 | 7177 | fi; |
10f2d63a VZ |
7178 | |
7179 | eval "$ac_cv_use_listctrl" | |
7180 | if test "$no_cache" != 1; then | |
7181 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7182 | fi | |
7183 | ||
7184 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7185 | echo "$as_me:$LINENO: result: yes" >&5 |
7186 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7187 | else |
e6cc62c6 VS |
7188 | echo "$as_me:$LINENO: result: no" >&5 |
7189 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7190 | fi |
e6cc62c6 | 7191 | |
10f2d63a | 7192 | |
5005acfe | 7193 | enablestring= |
e6cc62c6 VS |
7194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7195 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7196 | no_cache=0 |
7197 | # Check whether --enable-notebook or --disable-notebook was given. | |
7198 | if test "${enable_notebook+set}" = set; then | |
7199 | enableval="$enable_notebook" | |
e6cc62c6 | 7200 | |
10f2d63a VZ |
7201 | if test "$enableval" = yes; then |
7202 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7203 | else | |
7204 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7205 | fi | |
e6cc62c6 | 7206 | |
10f2d63a | 7207 | else |
e6cc62c6 | 7208 | |
10f2d63a VZ |
7209 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7210 | if test "x$LINE" != x ; then | |
7211 | eval "DEFAULT_$LINE" | |
7212 | else | |
7213 | no_cache=1 | |
7214 | fi | |
7215 | ||
7216 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7217 | |
e6cc62c6 | 7218 | fi; |
10f2d63a VZ |
7219 | |
7220 | eval "$ac_cv_use_notebook" | |
7221 | if test "$no_cache" != 1; then | |
7222 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7223 | fi | |
7224 | ||
7225 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7226 | echo "$as_me:$LINENO: result: yes" >&5 |
7227 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7228 | else |
e6cc62c6 VS |
7229 | echo "$as_me:$LINENO: result: no" >&5 |
7230 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7231 | fi |
e6cc62c6 | 7232 | |
10f2d63a | 7233 | |
5005acfe | 7234 | enablestring= |
e6cc62c6 VS |
7235 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7236 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7237 | no_cache=0 |
7238 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7239 | if test "${enable_radiobox+set}" = set; then | |
7240 | enableval="$enable_radiobox" | |
e6cc62c6 | 7241 | |
10f2d63a VZ |
7242 | if test "$enableval" = yes; then |
7243 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7244 | else | |
7245 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7246 | fi | |
e6cc62c6 | 7247 | |
10f2d63a | 7248 | else |
e6cc62c6 | 7249 | |
10f2d63a VZ |
7250 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7251 | if test "x$LINE" != x ; then | |
7252 | eval "DEFAULT_$LINE" | |
7253 | else | |
7254 | no_cache=1 | |
7255 | fi | |
7256 | ||
7257 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7258 | |
e6cc62c6 | 7259 | fi; |
10f2d63a VZ |
7260 | |
7261 | eval "$ac_cv_use_radiobox" | |
7262 | if test "$no_cache" != 1; then | |
7263 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7264 | fi | |
7265 | ||
7266 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7267 | echo "$as_me:$LINENO: result: yes" >&5 |
7268 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7269 | else |
e6cc62c6 VS |
7270 | echo "$as_me:$LINENO: result: no" >&5 |
7271 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7272 | fi |
e6cc62c6 | 7273 | |
10f2d63a | 7274 | |
5005acfe | 7275 | enablestring= |
e6cc62c6 VS |
7276 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7277 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7278 | no_cache=0 |
7279 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7280 | if test "${enable_radiobtn+set}" = set; then | |
7281 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7282 | |
10f2d63a VZ |
7283 | if test "$enableval" = yes; then |
7284 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7285 | else | |
7286 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7287 | fi | |
e6cc62c6 | 7288 | |
10f2d63a | 7289 | else |
e6cc62c6 | 7290 | |
10f2d63a VZ |
7291 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7292 | if test "x$LINE" != x ; then | |
7293 | eval "DEFAULT_$LINE" | |
7294 | else | |
7295 | no_cache=1 | |
7296 | fi | |
7297 | ||
7298 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7299 | |
e6cc62c6 | 7300 | fi; |
10f2d63a VZ |
7301 | |
7302 | eval "$ac_cv_use_radiobtn" | |
7303 | if test "$no_cache" != 1; then | |
7304 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7305 | fi | |
7306 | ||
7307 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7308 | echo "$as_me:$LINENO: result: yes" >&5 |
7309 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7310 | else |
e6cc62c6 VS |
7311 | echo "$as_me:$LINENO: result: no" >&5 |
7312 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7313 | fi |
e6cc62c6 | 7314 | |
10f2d63a | 7315 | |
5005acfe | 7316 | enablestring= |
e6cc62c6 VS |
7317 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7318 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7319 | no_cache=0 |
7320 | # Check whether --enable-sash or --disable-sash was given. | |
7321 | if test "${enable_sash+set}" = set; then | |
7322 | enableval="$enable_sash" | |
e6cc62c6 | 7323 | |
10f2d63a VZ |
7324 | if test "$enableval" = yes; then |
7325 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7326 | else | |
7327 | ac_cv_use_sash='wxUSE_SASH=no' | |
7328 | fi | |
e6cc62c6 | 7329 | |
10f2d63a | 7330 | else |
e6cc62c6 | 7331 | |
10f2d63a VZ |
7332 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7333 | if test "x$LINE" != x ; then | |
7334 | eval "DEFAULT_$LINE" | |
7335 | else | |
7336 | no_cache=1 | |
7337 | fi | |
7338 | ||
7339 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7340 | |
e6cc62c6 | 7341 | fi; |
10f2d63a VZ |
7342 | |
7343 | eval "$ac_cv_use_sash" | |
7344 | if test "$no_cache" != 1; then | |
7345 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7346 | fi | |
7347 | ||
7348 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7349 | echo "$as_me:$LINENO: result: yes" >&5 |
7350 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7351 | else |
e6cc62c6 VS |
7352 | echo "$as_me:$LINENO: result: no" >&5 |
7353 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7354 | fi |
e6cc62c6 | 7355 | |
10f2d63a | 7356 | |
5005acfe | 7357 | enablestring= |
e6cc62c6 VS |
7358 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7359 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7360 | no_cache=0 |
7361 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7362 | if test "${enable_scrollbar+set}" = set; then | |
7363 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7364 | |
10f2d63a VZ |
7365 | if test "$enableval" = yes; then |
7366 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7367 | else | |
7368 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7369 | fi | |
e6cc62c6 | 7370 | |
10f2d63a | 7371 | else |
e6cc62c6 | 7372 | |
10f2d63a VZ |
7373 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7374 | if test "x$LINE" != x ; then | |
7375 | eval "DEFAULT_$LINE" | |
7376 | else | |
7377 | no_cache=1 | |
7378 | fi | |
7379 | ||
7380 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7381 | |
e6cc62c6 | 7382 | fi; |
10f2d63a VZ |
7383 | |
7384 | eval "$ac_cv_use_scrollbar" | |
7385 | if test "$no_cache" != 1; then | |
7386 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7387 | fi | |
7388 | ||
7389 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7390 | echo "$as_me:$LINENO: result: yes" >&5 |
7391 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7392 | else |
e6cc62c6 VS |
7393 | echo "$as_me:$LINENO: result: no" >&5 |
7394 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7395 | fi |
e6cc62c6 | 7396 | |
10f2d63a | 7397 | |
5005acfe | 7398 | enablestring= |
e6cc62c6 VS |
7399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7400 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7401 | no_cache=0 |
7402 | # Check whether --enable-slider or --disable-slider was given. | |
7403 | if test "${enable_slider+set}" = set; then | |
7404 | enableval="$enable_slider" | |
e6cc62c6 | 7405 | |
10f2d63a VZ |
7406 | if test "$enableval" = yes; then |
7407 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7408 | else | |
7409 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7410 | fi | |
e6cc62c6 | 7411 | |
10f2d63a | 7412 | else |
e6cc62c6 | 7413 | |
10f2d63a VZ |
7414 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7415 | if test "x$LINE" != x ; then | |
7416 | eval "DEFAULT_$LINE" | |
7417 | else | |
7418 | no_cache=1 | |
7419 | fi | |
7420 | ||
7421 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7422 | |
e6cc62c6 | 7423 | fi; |
10f2d63a VZ |
7424 | |
7425 | eval "$ac_cv_use_slider" | |
7426 | if test "$no_cache" != 1; then | |
7427 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7428 | fi | |
7429 | ||
7430 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7431 | echo "$as_me:$LINENO: result: yes" >&5 |
7432 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7433 | else |
e6cc62c6 VS |
7434 | echo "$as_me:$LINENO: result: no" >&5 |
7435 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7436 | fi |
e6cc62c6 | 7437 | |
10f2d63a | 7438 | |
5005acfe | 7439 | enablestring= |
e6cc62c6 VS |
7440 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7441 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7442 | no_cache=0 |
7443 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7444 | if test "${enable_spinbtn+set}" = set; then | |
7445 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7446 | |
10f2d63a VZ |
7447 | if test "$enableval" = yes; then |
7448 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7449 | else | |
7450 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7451 | fi | |
e6cc62c6 | 7452 | |
10f2d63a | 7453 | else |
e6cc62c6 | 7454 | |
10f2d63a VZ |
7455 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7456 | if test "x$LINE" != x ; then | |
7457 | eval "DEFAULT_$LINE" | |
7458 | else | |
7459 | no_cache=1 | |
7460 | fi | |
7461 | ||
7462 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7463 | |
e6cc62c6 | 7464 | fi; |
10f2d63a VZ |
7465 | |
7466 | eval "$ac_cv_use_spinbtn" | |
7467 | if test "$no_cache" != 1; then | |
7468 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7469 | fi | |
7470 | ||
7471 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7472 | echo "$as_me:$LINENO: result: yes" >&5 |
7473 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7474 | else |
e6cc62c6 VS |
7475 | echo "$as_me:$LINENO: result: no" >&5 |
7476 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7477 | fi |
e6cc62c6 | 7478 | |
10f2d63a | 7479 | |
5005acfe | 7480 | enablestring= |
e6cc62c6 VS |
7481 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7482 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7483 | no_cache=0 |
7484 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7485 | if test "${enable_spinctrl+set}" = set; then | |
7486 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7487 | |
56cfaa52 RR |
7488 | if test "$enableval" = yes; then |
7489 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7490 | else | |
7491 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7492 | fi | |
e6cc62c6 | 7493 | |
56cfaa52 | 7494 | else |
e6cc62c6 | 7495 | |
56cfaa52 RR |
7496 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7497 | if test "x$LINE" != x ; then | |
7498 | eval "DEFAULT_$LINE" | |
7499 | else | |
7500 | no_cache=1 | |
7501 | fi | |
7502 | ||
7503 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7504 | |
e6cc62c6 | 7505 | fi; |
56cfaa52 RR |
7506 | |
7507 | eval "$ac_cv_use_spinctrl" | |
7508 | if test "$no_cache" != 1; then | |
7509 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7510 | fi | |
7511 | ||
7512 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7513 | echo "$as_me:$LINENO: result: yes" >&5 |
7514 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7515 | else |
e6cc62c6 VS |
7516 | echo "$as_me:$LINENO: result: no" >&5 |
7517 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7518 | fi |
e6cc62c6 | 7519 | |
56cfaa52 | 7520 | |
5005acfe | 7521 | enablestring= |
e6cc62c6 VS |
7522 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7523 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7524 | no_cache=0 |
7525 | # Check whether --enable-splitter or --disable-splitter was given. | |
7526 | if test "${enable_splitter+set}" = set; then | |
7527 | enableval="$enable_splitter" | |
e6cc62c6 | 7528 | |
10f2d63a VZ |
7529 | if test "$enableval" = yes; then |
7530 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7531 | else | |
7532 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7533 | fi | |
e6cc62c6 | 7534 | |
10f2d63a | 7535 | else |
e6cc62c6 | 7536 | |
10f2d63a VZ |
7537 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7538 | if test "x$LINE" != x ; then | |
7539 | eval "DEFAULT_$LINE" | |
7540 | else | |
7541 | no_cache=1 | |
7542 | fi | |
7543 | ||
7544 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7545 | |
e6cc62c6 | 7546 | fi; |
10f2d63a VZ |
7547 | |
7548 | eval "$ac_cv_use_splitter" | |
7549 | if test "$no_cache" != 1; then | |
7550 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7551 | fi | |
7552 | ||
7553 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7554 | echo "$as_me:$LINENO: result: yes" >&5 |
7555 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7556 | else |
e6cc62c6 VS |
7557 | echo "$as_me:$LINENO: result: no" >&5 |
7558 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7559 | fi |
e6cc62c6 | 7560 | |
10f2d63a | 7561 | |
5005acfe | 7562 | enablestring= |
e6cc62c6 VS |
7563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7564 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7565 | no_cache=0 |
7566 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7567 | if test "${enable_statbmp+set}" = set; then | |
7568 | enableval="$enable_statbmp" | |
e6cc62c6 | 7569 | |
10f2d63a VZ |
7570 | if test "$enableval" = yes; then |
7571 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7572 | else | |
7573 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7574 | fi | |
e6cc62c6 | 7575 | |
10f2d63a | 7576 | else |
e6cc62c6 | 7577 | |
10f2d63a VZ |
7578 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7579 | if test "x$LINE" != x ; then | |
7580 | eval "DEFAULT_$LINE" | |
7581 | else | |
7582 | no_cache=1 | |
7583 | fi | |
7584 | ||
7585 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7586 | |
e6cc62c6 | 7587 | fi; |
10f2d63a VZ |
7588 | |
7589 | eval "$ac_cv_use_statbmp" | |
7590 | if test "$no_cache" != 1; then | |
7591 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7592 | fi | |
7593 | ||
7594 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7595 | echo "$as_me:$LINENO: result: yes" >&5 |
7596 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7597 | else |
e6cc62c6 VS |
7598 | echo "$as_me:$LINENO: result: no" >&5 |
7599 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7600 | fi |
e6cc62c6 | 7601 | |
10f2d63a | 7602 | |
5005acfe | 7603 | enablestring= |
e6cc62c6 VS |
7604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7605 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7606 | no_cache=0 |
7607 | # Check whether --enable-statbox or --disable-statbox was given. | |
7608 | if test "${enable_statbox+set}" = set; then | |
7609 | enableval="$enable_statbox" | |
e6cc62c6 | 7610 | |
10f2d63a VZ |
7611 | if test "$enableval" = yes; then |
7612 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7613 | else | |
7614 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7615 | fi | |
e6cc62c6 | 7616 | |
10f2d63a | 7617 | else |
e6cc62c6 | 7618 | |
10f2d63a VZ |
7619 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7620 | if test "x$LINE" != x ; then | |
7621 | eval "DEFAULT_$LINE" | |
7622 | else | |
7623 | no_cache=1 | |
7624 | fi | |
7625 | ||
7626 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7627 | |
e6cc62c6 | 7628 | fi; |
10f2d63a VZ |
7629 | |
7630 | eval "$ac_cv_use_statbox" | |
7631 | if test "$no_cache" != 1; then | |
7632 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7633 | fi | |
7634 | ||
7635 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7636 | echo "$as_me:$LINENO: result: yes" >&5 |
7637 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7638 | else |
e6cc62c6 VS |
7639 | echo "$as_me:$LINENO: result: no" >&5 |
7640 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7641 | fi |
e6cc62c6 | 7642 | |
10f2d63a | 7643 | |
5005acfe | 7644 | enablestring= |
e6cc62c6 VS |
7645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7646 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7647 | no_cache=0 |
7648 | # Check whether --enable-statline or --disable-statline was given. | |
7649 | if test "${enable_statline+set}" = set; then | |
7650 | enableval="$enable_statline" | |
e6cc62c6 | 7651 | |
10f2d63a VZ |
7652 | if test "$enableval" = yes; then |
7653 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7654 | else | |
7655 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7656 | fi | |
e6cc62c6 | 7657 | |
10f2d63a | 7658 | else |
e6cc62c6 | 7659 | |
10f2d63a VZ |
7660 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7661 | if test "x$LINE" != x ; then | |
7662 | eval "DEFAULT_$LINE" | |
7663 | else | |
7664 | no_cache=1 | |
7665 | fi | |
7666 | ||
7667 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7668 | |
e6cc62c6 | 7669 | fi; |
10f2d63a VZ |
7670 | |
7671 | eval "$ac_cv_use_statline" | |
7672 | if test "$no_cache" != 1; then | |
7673 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7674 | fi | |
7675 | ||
7676 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7677 | echo "$as_me:$LINENO: result: yes" >&5 |
7678 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7679 | else |
e6cc62c6 VS |
7680 | echo "$as_me:$LINENO: result: no" >&5 |
7681 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7682 | fi |
e6cc62c6 | 7683 | |
10f2d63a | 7684 | |
5005acfe | 7685 | enablestring= |
e6cc62c6 VS |
7686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7687 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7688 | no_cache=0 |
7689 | # Check whether --enable-stattext or --disable-stattext was given. | |
7690 | if test "${enable_stattext+set}" = set; then | |
7691 | enableval="$enable_stattext" | |
e6cc62c6 | 7692 | |
1e6feb95 VZ |
7693 | if test "$enableval" = yes; then |
7694 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7695 | else | |
7696 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7697 | fi | |
e6cc62c6 | 7698 | |
1e6feb95 | 7699 | else |
e6cc62c6 | 7700 | |
1e6feb95 VZ |
7701 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7702 | if test "x$LINE" != x ; then | |
7703 | eval "DEFAULT_$LINE" | |
7704 | else | |
7705 | no_cache=1 | |
7706 | fi | |
7707 | ||
7708 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7709 | |
e6cc62c6 | 7710 | fi; |
1e6feb95 VZ |
7711 | |
7712 | eval "$ac_cv_use_stattext" | |
7713 | if test "$no_cache" != 1; then | |
7714 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7715 | fi | |
7716 | ||
7717 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7718 | echo "$as_me:$LINENO: result: yes" >&5 |
7719 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7720 | else |
e6cc62c6 VS |
7721 | echo "$as_me:$LINENO: result: no" >&5 |
7722 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7723 | fi |
e6cc62c6 | 7724 | |
1e6feb95 | 7725 | |
5005acfe | 7726 | enablestring= |
e6cc62c6 VS |
7727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7728 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7729 | no_cache=0 |
7730 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7731 | if test "${enable_statusbar+set}" = set; then | |
7732 | enableval="$enable_statusbar" | |
e6cc62c6 | 7733 | |
10f2d63a VZ |
7734 | if test "$enableval" = yes; then |
7735 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7736 | else | |
7737 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7738 | fi | |
e6cc62c6 | 7739 | |
10f2d63a | 7740 | else |
e6cc62c6 | 7741 | |
10f2d63a VZ |
7742 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7743 | if test "x$LINE" != x ; then | |
7744 | eval "DEFAULT_$LINE" | |
7745 | else | |
7746 | no_cache=1 | |
7747 | fi | |
7748 | ||
7749 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7750 | |
e6cc62c6 | 7751 | fi; |
10f2d63a VZ |
7752 | |
7753 | eval "$ac_cv_use_statusbar" | |
7754 | if test "$no_cache" != 1; then | |
7755 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7756 | fi | |
7757 | ||
7758 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7759 | echo "$as_me:$LINENO: result: yes" >&5 |
7760 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7761 | else |
e6cc62c6 VS |
7762 | echo "$as_me:$LINENO: result: no" >&5 |
7763 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7764 | fi |
e6cc62c6 | 7765 | |
10f2d63a | 7766 | |
5005acfe | 7767 | enablestring= |
e6cc62c6 VS |
7768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7769 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7770 | no_cache=0 |
7771 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7772 | if test "${enable_tabdialog+set}" = set; then | |
7773 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7774 | |
10f2d63a VZ |
7775 | if test "$enableval" = yes; then |
7776 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7777 | else | |
7778 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7779 | fi | |
e6cc62c6 | 7780 | |
10f2d63a | 7781 | else |
e6cc62c6 | 7782 | |
10f2d63a VZ |
7783 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7784 | if test "x$LINE" != x ; then | |
7785 | eval "DEFAULT_$LINE" | |
7786 | else | |
7787 | no_cache=1 | |
7788 | fi | |
7789 | ||
7790 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7791 | |
e6cc62c6 | 7792 | fi; |
10f2d63a VZ |
7793 | |
7794 | eval "$ac_cv_use_tabdialog" | |
7795 | if test "$no_cache" != 1; then | |
7796 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7797 | fi | |
7798 | ||
7799 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
7800 | echo "$as_me:$LINENO: result: yes" >&5 |
7801 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7802 | else |
e6cc62c6 VS |
7803 | echo "$as_me:$LINENO: result: no" >&5 |
7804 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7805 | fi |
e6cc62c6 | 7806 | |
10f2d63a | 7807 | |
5005acfe | 7808 | enablestring= |
e6cc62c6 VS |
7809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
7810 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
7811 | no_cache=0 |
7812 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7813 | if test "${enable_textctrl+set}" = set; then | |
7814 | enableval="$enable_textctrl" | |
e6cc62c6 | 7815 | |
1e6feb95 VZ |
7816 | if test "$enableval" = yes; then |
7817 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7818 | else | |
7819 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7820 | fi | |
e6cc62c6 | 7821 | |
1e6feb95 | 7822 | else |
e6cc62c6 | 7823 | |
1e6feb95 VZ |
7824 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7825 | if test "x$LINE" != x ; then | |
7826 | eval "DEFAULT_$LINE" | |
7827 | else | |
7828 | no_cache=1 | |
7829 | fi | |
7830 | ||
7831 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 7832 | |
e6cc62c6 | 7833 | fi; |
1e6feb95 VZ |
7834 | |
7835 | eval "$ac_cv_use_textctrl" | |
7836 | if test "$no_cache" != 1; then | |
7837 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7838 | fi | |
7839 | ||
7840 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
7841 | echo "$as_me:$LINENO: result: yes" >&5 |
7842 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7843 | else |
e6cc62c6 VS |
7844 | echo "$as_me:$LINENO: result: no" >&5 |
7845 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7846 | fi |
e6cc62c6 | 7847 | |
1e6feb95 | 7848 | |
5005acfe | 7849 | enablestring= |
e6cc62c6 VS |
7850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
7851 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
7852 | no_cache=0 |
7853 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7854 | if test "${enable_togglebtn+set}" = set; then | |
7855 | enableval="$enable_togglebtn" | |
e6cc62c6 | 7856 | |
1db8dc4a VZ |
7857 | if test "$enableval" = yes; then |
7858 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7859 | else | |
7860 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7861 | fi | |
e6cc62c6 | 7862 | |
1db8dc4a | 7863 | else |
e6cc62c6 | 7864 | |
1db8dc4a VZ |
7865 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7866 | if test "x$LINE" != x ; then | |
7867 | eval "DEFAULT_$LINE" | |
7868 | else | |
7869 | no_cache=1 | |
7870 | fi | |
7871 | ||
7872 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 7873 | |
e6cc62c6 | 7874 | fi; |
1db8dc4a VZ |
7875 | |
7876 | eval "$ac_cv_use_togglebtn" | |
7877 | if test "$no_cache" != 1; then | |
7878 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7879 | fi | |
7880 | ||
7881 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
7882 | echo "$as_me:$LINENO: result: yes" >&5 |
7883 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 7884 | else |
e6cc62c6 VS |
7885 | echo "$as_me:$LINENO: result: no" >&5 |
7886 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 7887 | fi |
e6cc62c6 | 7888 | |
1db8dc4a | 7889 | |
5005acfe | 7890 | enablestring= |
e6cc62c6 VS |
7891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
7892 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7893 | no_cache=0 |
7894 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7895 | if test "${enable_toolbar+set}" = set; then | |
7896 | enableval="$enable_toolbar" | |
e6cc62c6 | 7897 | |
10f2d63a VZ |
7898 | if test "$enableval" = yes; then |
7899 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7900 | else | |
7901 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7902 | fi | |
e6cc62c6 | 7903 | |
10f2d63a | 7904 | else |
e6cc62c6 | 7905 | |
10f2d63a VZ |
7906 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7907 | if test "x$LINE" != x ; then | |
7908 | eval "DEFAULT_$LINE" | |
7909 | else | |
7910 | no_cache=1 | |
7911 | fi | |
7912 | ||
7913 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 7914 | |
e6cc62c6 | 7915 | fi; |
10f2d63a VZ |
7916 | |
7917 | eval "$ac_cv_use_toolbar" | |
7918 | if test "$no_cache" != 1; then | |
7919 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7920 | fi | |
7921 | ||
7922 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
7923 | echo "$as_me:$LINENO: result: yes" >&5 |
7924 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7925 | else |
e6cc62c6 VS |
7926 | echo "$as_me:$LINENO: result: no" >&5 |
7927 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7928 | fi |
e6cc62c6 | 7929 | |
10f2d63a | 7930 | |
5005acfe | 7931 | enablestring= |
e6cc62c6 VS |
7932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
7933 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
7934 | no_cache=0 |
7935 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7936 | if test "${enable_tbarnative+set}" = set; then | |
7937 | enableval="$enable_tbarnative" | |
e6cc62c6 | 7938 | |
360d6699 VZ |
7939 | if test "$enableval" = yes; then |
7940 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7941 | else | |
7942 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7943 | fi | |
e6cc62c6 | 7944 | |
360d6699 | 7945 | else |
e6cc62c6 | 7946 | |
360d6699 VZ |
7947 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7948 | if test "x$LINE" != x ; then | |
7949 | eval "DEFAULT_$LINE" | |
7950 | else | |
7951 | no_cache=1 | |
7952 | fi | |
7953 | ||
7954 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 7955 | |
e6cc62c6 | 7956 | fi; |
360d6699 VZ |
7957 | |
7958 | eval "$ac_cv_use_tbarnative" | |
7959 | if test "$no_cache" != 1; then | |
7960 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7961 | fi | |
7962 | ||
7963 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
7964 | echo "$as_me:$LINENO: result: yes" >&5 |
7965 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7966 | else |
e6cc62c6 VS |
7967 | echo "$as_me:$LINENO: result: no" >&5 |
7968 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7969 | fi |
e6cc62c6 | 7970 | |
360d6699 | 7971 | |
5005acfe | 7972 | enablestring= |
e6cc62c6 VS |
7973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
7974 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
7975 | no_cache=0 |
7976 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7977 | if test "${enable_tbarsmpl+set}" = set; then | |
7978 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 7979 | |
360d6699 VZ |
7980 | if test "$enableval" = yes; then |
7981 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7982 | else | |
7983 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7984 | fi | |
e6cc62c6 | 7985 | |
360d6699 | 7986 | else |
e6cc62c6 | 7987 | |
360d6699 VZ |
7988 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7989 | if test "x$LINE" != x ; then | |
7990 | eval "DEFAULT_$LINE" | |
7991 | else | |
7992 | no_cache=1 | |
7993 | fi | |
7994 | ||
7995 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 7996 | |
e6cc62c6 | 7997 | fi; |
360d6699 VZ |
7998 | |
7999 | eval "$ac_cv_use_tbarsmpl" | |
8000 | if test "$no_cache" != 1; then | |
8001 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8002 | fi | |
8003 | ||
8004 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
8005 | echo "$as_me:$LINENO: result: yes" >&5 |
8006 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8007 | else |
e6cc62c6 VS |
8008 | echo "$as_me:$LINENO: result: no" >&5 |
8009 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8010 | fi |
e6cc62c6 | 8011 | |
360d6699 | 8012 | |
5005acfe | 8013 | enablestring= |
e6cc62c6 VS |
8014 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8015 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8016 | no_cache=0 |
8017 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8018 | if test "${enable_treectrl+set}" = set; then | |
8019 | enableval="$enable_treectrl" | |
e6cc62c6 | 8020 | |
10f2d63a VZ |
8021 | if test "$enableval" = yes; then |
8022 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8023 | else | |
8024 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8025 | fi | |
e6cc62c6 | 8026 | |
10f2d63a | 8027 | else |
e6cc62c6 | 8028 | |
10f2d63a VZ |
8029 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8030 | if test "x$LINE" != x ; then | |
8031 | eval "DEFAULT_$LINE" | |
8032 | else | |
8033 | no_cache=1 | |
8034 | fi | |
8035 | ||
8036 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8037 | |
e6cc62c6 | 8038 | fi; |
10f2d63a | 8039 | |
1e6feb95 VZ |
8040 | eval "$ac_cv_use_treectrl" |
8041 | if test "$no_cache" != 1; then | |
8042 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8043 | fi | |
8044 | ||
8045 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8046 | echo "$as_me:$LINENO: result: yes" >&5 |
8047 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8048 | else |
e6cc62c6 VS |
8049 | echo "$as_me:$LINENO: result: no" >&5 |
8050 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8051 | fi |
e6cc62c6 | 8052 | |
1e6feb95 | 8053 | |
5005acfe | 8054 | enablestring= |
e6cc62c6 VS |
8055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8056 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8057 | no_cache=0 |
8058 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8059 | if test "${enable_tipwindow+set}" = set; then | |
8060 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8061 | |
9926e4a4 VZ |
8062 | if test "$enableval" = yes; then |
8063 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8064 | else | |
8065 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8066 | fi | |
e6cc62c6 | 8067 | |
9926e4a4 | 8068 | else |
e6cc62c6 | 8069 | |
9926e4a4 VZ |
8070 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8071 | if test "x$LINE" != x ; then | |
8072 | eval "DEFAULT_$LINE" | |
8073 | else | |
8074 | no_cache=1 | |
8075 | fi | |
8076 | ||
8077 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8078 | |
e6cc62c6 | 8079 | fi; |
9926e4a4 VZ |
8080 | |
8081 | eval "$ac_cv_use_tipwindow" | |
8082 | if test "$no_cache" != 1; then | |
8083 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8084 | fi | |
8085 | ||
8086 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8087 | echo "$as_me:$LINENO: result: yes" >&5 |
8088 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8089 | else |
e6cc62c6 VS |
8090 | echo "$as_me:$LINENO: result: no" >&5 |
8091 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8092 | fi |
e6cc62c6 | 8093 | |
9926e4a4 | 8094 | |
5005acfe | 8095 | enablestring= |
e6cc62c6 VS |
8096 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8097 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8098 | no_cache=0 |
8099 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8100 | if test "${enable_popupwin+set}" = set; then | |
8101 | enableval="$enable_popupwin" | |
e6cc62c6 | 8102 | |
9f41d601 RR |
8103 | if test "$enableval" = yes; then |
8104 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8105 | else | |
8106 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8107 | fi | |
e6cc62c6 | 8108 | |
9f41d601 | 8109 | else |
e6cc62c6 | 8110 | |
9f41d601 RR |
8111 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8112 | if test "x$LINE" != x ; then | |
8113 | eval "DEFAULT_$LINE" | |
8114 | else | |
8115 | no_cache=1 | |
8116 | fi | |
8117 | ||
8118 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8119 | |
e6cc62c6 | 8120 | fi; |
9f41d601 RR |
8121 | |
8122 | eval "$ac_cv_use_popupwin" | |
8123 | if test "$no_cache" != 1; then | |
8124 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8125 | fi | |
8126 | ||
8127 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8128 | echo "$as_me:$LINENO: result: yes" >&5 |
8129 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8130 | else |
e6cc62c6 VS |
8131 | echo "$as_me:$LINENO: result: no" >&5 |
8132 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8133 | fi |
e6cc62c6 | 8134 | |
52127426 | 8135 | |
8284b0c5 MB |
8136 | |
8137 | ||
5005acfe | 8138 | enablestring= |
e6cc62c6 VS |
8139 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8140 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8141 | no_cache=0 |
8142 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8143 | if test "${enable_commondlg+set}" = set; then | |
8144 | enableval="$enable_commondlg" | |
e6cc62c6 | 8145 | |
1e6feb95 VZ |
8146 | if test "$enableval" = yes; then |
8147 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8148 | else | |
8149 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8150 | fi | |
e6cc62c6 | 8151 | |
1e6feb95 | 8152 | else |
e6cc62c6 | 8153 | |
1e6feb95 VZ |
8154 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8155 | if test "x$LINE" != x ; then | |
8156 | eval "DEFAULT_$LINE" | |
8157 | else | |
8158 | no_cache=1 | |
8159 | fi | |
8160 | ||
8161 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8162 | |
e6cc62c6 | 8163 | fi; |
1e6feb95 VZ |
8164 | |
8165 | eval "$ac_cv_use_commondlg" | |
8166 | if test "$no_cache" != 1; then | |
8167 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8168 | fi | |
8169 | ||
8170 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8171 | echo "$as_me:$LINENO: result: yes" >&5 |
8172 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8173 | else |
e6cc62c6 VS |
8174 | echo "$as_me:$LINENO: result: no" >&5 |
8175 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8176 | fi |
e6cc62c6 | 8177 | |
1e6feb95 | 8178 | |
5005acfe | 8179 | enablestring= |
e6cc62c6 VS |
8180 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8181 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8182 | no_cache=0 |
8183 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8184 | if test "${enable_choicedlg+set}" = set; then | |
8185 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8186 | |
1e6feb95 VZ |
8187 | if test "$enableval" = yes; then |
8188 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8189 | else | |
8190 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8191 | fi | |
e6cc62c6 | 8192 | |
1e6feb95 | 8193 | else |
e6cc62c6 | 8194 | |
1e6feb95 VZ |
8195 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8196 | if test "x$LINE" != x ; then | |
8197 | eval "DEFAULT_$LINE" | |
8198 | else | |
8199 | no_cache=1 | |
8200 | fi | |
8201 | ||
8202 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8203 | |
e6cc62c6 | 8204 | fi; |
1e6feb95 VZ |
8205 | |
8206 | eval "$ac_cv_use_choicedlg" | |
8207 | if test "$no_cache" != 1; then | |
8208 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8209 | fi | |
8210 | ||
8211 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8212 | echo "$as_me:$LINENO: result: yes" >&5 |
8213 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8214 | else |
e6cc62c6 VS |
8215 | echo "$as_me:$LINENO: result: no" >&5 |
8216 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8217 | fi |
e6cc62c6 | 8218 | |
1e6feb95 | 8219 | |
5005acfe | 8220 | enablestring= |
e6cc62c6 VS |
8221 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8222 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8223 | no_cache=0 |
8224 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8225 | if test "${enable_coldlg+set}" = set; then | |
8226 | enableval="$enable_coldlg" | |
e6cc62c6 | 8227 | |
1e6feb95 VZ |
8228 | if test "$enableval" = yes; then |
8229 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8230 | else | |
8231 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8232 | fi | |
e6cc62c6 | 8233 | |
1e6feb95 | 8234 | else |
e6cc62c6 | 8235 | |
1e6feb95 VZ |
8236 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8237 | if test "x$LINE" != x ; then | |
8238 | eval "DEFAULT_$LINE" | |
8239 | else | |
8240 | no_cache=1 | |
8241 | fi | |
8242 | ||
8243 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8244 | |
e6cc62c6 | 8245 | fi; |
1e6feb95 VZ |
8246 | |
8247 | eval "$ac_cv_use_coldlg" | |
8248 | if test "$no_cache" != 1; then | |
8249 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8250 | fi | |
8251 | ||
8252 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8253 | echo "$as_me:$LINENO: result: yes" >&5 |
8254 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8255 | else |
e6cc62c6 VS |
8256 | echo "$as_me:$LINENO: result: no" >&5 |
8257 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8258 | fi |
e6cc62c6 | 8259 | |
1e6feb95 | 8260 | |
5005acfe | 8261 | enablestring= |
e6cc62c6 VS |
8262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8263 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8264 | no_cache=0 |
8265 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8266 | if test "${enable_filedlg+set}" = set; then | |
8267 | enableval="$enable_filedlg" | |
e6cc62c6 | 8268 | |
1e6feb95 VZ |
8269 | if test "$enableval" = yes; then |
8270 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8271 | else | |
8272 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8273 | fi | |
e6cc62c6 | 8274 | |
1e6feb95 | 8275 | else |
e6cc62c6 | 8276 | |
1e6feb95 VZ |
8277 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8278 | if test "x$LINE" != x ; then | |
8279 | eval "DEFAULT_$LINE" | |
8280 | else | |
8281 | no_cache=1 | |
8282 | fi | |
8283 | ||
8284 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8285 | |
e6cc62c6 | 8286 | fi; |
1e6feb95 VZ |
8287 | |
8288 | eval "$ac_cv_use_filedlg" | |
8289 | if test "$no_cache" != 1; then | |
8290 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8291 | fi | |
8292 | ||
8293 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8294 | echo "$as_me:$LINENO: result: yes" >&5 |
8295 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8296 | else |
e6cc62c6 VS |
8297 | echo "$as_me:$LINENO: result: no" >&5 |
8298 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8299 | fi |
e6cc62c6 | 8300 | |
1e6feb95 | 8301 | |
5005acfe | 8302 | enablestring= |
e6cc62c6 VS |
8303 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8304 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8305 | no_cache=0 |
69d27ff7 MB |
8306 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8307 | if test "${enable_finddlg+set}" = set; then | |
8308 | enableval="$enable_finddlg" | |
e6cc62c6 | 8309 | |
8db37e06 | 8310 | if test "$enableval" = yes; then |
69d27ff7 | 8311 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8312 | else |
69d27ff7 | 8313 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8314 | fi |
e6cc62c6 | 8315 | |
8db37e06 | 8316 | else |
e6cc62c6 | 8317 | |
8db37e06 VZ |
8318 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8319 | if test "x$LINE" != x ; then | |
8320 | eval "DEFAULT_$LINE" | |
8321 | else | |
8322 | no_cache=1 | |
8323 | fi | |
8324 | ||
69d27ff7 | 8325 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8326 | |
e6cc62c6 | 8327 | fi; |
8db37e06 | 8328 | |
69d27ff7 | 8329 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8330 | if test "$no_cache" != 1; then |
69d27ff7 | 8331 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8332 | fi |
8333 | ||
8334 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8335 | echo "$as_me:$LINENO: result: yes" >&5 |
8336 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8337 | else |
e6cc62c6 VS |
8338 | echo "$as_me:$LINENO: result: no" >&5 |
8339 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8340 | fi |
e6cc62c6 | 8341 | |
8db37e06 | 8342 | |
5005acfe | 8343 | enablestring= |
e6cc62c6 VS |
8344 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8345 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8346 | no_cache=0 |
8347 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8348 | if test "${enable_fontdlg+set}" = set; then | |
8349 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8350 | |
1e6feb95 VZ |
8351 | if test "$enableval" = yes; then |
8352 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8353 | else | |
8354 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8355 | fi | |
e6cc62c6 | 8356 | |
1e6feb95 | 8357 | else |
e6cc62c6 | 8358 | |
1e6feb95 VZ |
8359 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8360 | if test "x$LINE" != x ; then | |
8361 | eval "DEFAULT_$LINE" | |
8362 | else | |
8363 | no_cache=1 | |
8364 | fi | |
8365 | ||
8366 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8367 | |
e6cc62c6 | 8368 | fi; |
1e6feb95 VZ |
8369 | |
8370 | eval "$ac_cv_use_fontdlg" | |
8371 | if test "$no_cache" != 1; then | |
8372 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8373 | fi | |
8374 | ||
8375 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8376 | echo "$as_me:$LINENO: result: yes" >&5 |
8377 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8378 | else |
e6cc62c6 VS |
8379 | echo "$as_me:$LINENO: result: no" >&5 |
8380 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8381 | fi |
e6cc62c6 | 8382 | |
1e6feb95 | 8383 | |
5005acfe | 8384 | enablestring= |
e6cc62c6 VS |
8385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8386 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8387 | no_cache=0 |
8388 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8389 | if test "${enable_dirdlg+set}" = set; then | |
8390 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8391 | |
1e6feb95 VZ |
8392 | if test "$enableval" = yes; then |
8393 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8394 | else | |
8395 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8396 | fi | |
e6cc62c6 | 8397 | |
1e6feb95 | 8398 | else |
e6cc62c6 | 8399 | |
1e6feb95 VZ |
8400 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8401 | if test "x$LINE" != x ; then | |
8402 | eval "DEFAULT_$LINE" | |
8403 | else | |
8404 | no_cache=1 | |
8405 | fi | |
8406 | ||
8407 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8408 | |
e6cc62c6 | 8409 | fi; |
1e6feb95 VZ |
8410 | |
8411 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8412 | if test "$no_cache" != 1; then |
1e6feb95 | 8413 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8414 | fi |
8415 | ||
1e6feb95 | 8416 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8417 | echo "$as_me:$LINENO: result: yes" >&5 |
8418 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8419 | else |
e6cc62c6 VS |
8420 | echo "$as_me:$LINENO: result: no" >&5 |
8421 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8422 | fi |
e6cc62c6 | 8423 | |
698dcdb6 | 8424 | |
5005acfe | 8425 | enablestring= |
e6cc62c6 VS |
8426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8427 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8428 | no_cache=0 |
1e6feb95 VZ |
8429 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8430 | if test "${enable_msgdlg+set}" = set; then | |
8431 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8432 | |
10f2d63a | 8433 | if test "$enableval" = yes; then |
1e6feb95 | 8434 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8435 | else |
1e6feb95 | 8436 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8437 | fi |
e6cc62c6 | 8438 | |
10f2d63a | 8439 | else |
e6cc62c6 | 8440 | |
1e6feb95 | 8441 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8442 | if test "x$LINE" != x ; then |
8443 | eval "DEFAULT_$LINE" | |
8444 | else | |
8445 | no_cache=1 | |
8446 | fi | |
8447 | ||
1e6feb95 | 8448 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8449 | |
e6cc62c6 | 8450 | fi; |
10f2d63a | 8451 | |
1e6feb95 | 8452 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8453 | if test "$no_cache" != 1; then |
1e6feb95 | 8454 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8455 | fi |
8456 | ||
1e6feb95 | 8457 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8458 | echo "$as_me:$LINENO: result: yes" >&5 |
8459 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8460 | else |
e6cc62c6 VS |
8461 | echo "$as_me:$LINENO: result: no" >&5 |
8462 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8463 | fi |
e6cc62c6 | 8464 | |
10f2d63a | 8465 | |
5005acfe | 8466 | enablestring= |
e6cc62c6 VS |
8467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8468 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8469 | no_cache=0 |
1e6feb95 VZ |
8470 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8471 | if test "${enable_numberdlg+set}" = set; then | |
8472 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8473 | |
10f2d63a | 8474 | if test "$enableval" = yes; then |
1e6feb95 | 8475 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8476 | else |
1e6feb95 | 8477 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8478 | fi |
e6cc62c6 | 8479 | |
10f2d63a | 8480 | else |
e6cc62c6 | 8481 | |
1e6feb95 | 8482 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8483 | if test "x$LINE" != x ; then |
8484 | eval "DEFAULT_$LINE" | |
8485 | else | |
8486 | no_cache=1 | |
8487 | fi | |
8488 | ||
1e6feb95 | 8489 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8490 | |
e6cc62c6 | 8491 | fi; |
10f2d63a | 8492 | |
1e6feb95 | 8493 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8494 | if test "$no_cache" != 1; then |
1e6feb95 | 8495 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8496 | fi |
8497 | ||
1e6feb95 | 8498 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8499 | echo "$as_me:$LINENO: result: yes" >&5 |
8500 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8501 | else |
e6cc62c6 VS |
8502 | echo "$as_me:$LINENO: result: no" >&5 |
8503 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8504 | fi |
e6cc62c6 | 8505 | |
10f2d63a | 8506 | |
5005acfe | 8507 | enablestring= |
e6cc62c6 VS |
8508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8509 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8510 | no_cache=0 |
8511 | # Check whether --enable-splash or --disable-splash was given. | |
8512 | if test "${enable_splash+set}" = set; then | |
8513 | enableval="$enable_splash" | |
e6cc62c6 | 8514 | |
cbca9943 VZ |
8515 | if test "$enableval" = yes; then |
8516 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8517 | else | |
8518 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8519 | fi | |
e6cc62c6 | 8520 | |
cbca9943 | 8521 | else |
e6cc62c6 | 8522 | |
cbca9943 VZ |
8523 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8524 | if test "x$LINE" != x ; then | |
8525 | eval "DEFAULT_$LINE" | |
8526 | else | |
8527 | no_cache=1 | |
8528 | fi | |
8529 | ||
8530 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8531 | |
e6cc62c6 | 8532 | fi; |
cbca9943 VZ |
8533 | |
8534 | eval "$ac_cv_use_splash" | |
8535 | if test "$no_cache" != 1; then | |
8536 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8537 | fi | |
8538 | ||
8539 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8540 | echo "$as_me:$LINENO: result: yes" >&5 |
8541 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8542 | else |
e6cc62c6 VS |
8543 | echo "$as_me:$LINENO: result: no" >&5 |
8544 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8545 | fi |
e6cc62c6 | 8546 | |
cbca9943 | 8547 | |
5005acfe | 8548 | enablestring= |
e6cc62c6 VS |
8549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8550 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8551 | no_cache=0 |
8552 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8553 | if test "${enable_textdlg+set}" = set; then | |
8554 | enableval="$enable_textdlg" | |
e6cc62c6 | 8555 | |
10f2d63a VZ |
8556 | if test "$enableval" = yes; then |
8557 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8558 | else | |
8559 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8560 | fi | |
e6cc62c6 | 8561 | |
10f2d63a | 8562 | else |
e6cc62c6 | 8563 | |
10f2d63a VZ |
8564 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8565 | if test "x$LINE" != x ; then | |
8566 | eval "DEFAULT_$LINE" | |
8567 | else | |
8568 | no_cache=1 | |
8569 | fi | |
8570 | ||
8571 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8572 | |
e6cc62c6 | 8573 | fi; |
10f2d63a VZ |
8574 | |
8575 | eval "$ac_cv_use_textdlg" | |
8576 | if test "$no_cache" != 1; then | |
8577 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8578 | fi | |
8579 | ||
8580 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8581 | echo "$as_me:$LINENO: result: yes" >&5 |
8582 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8583 | else |
e6cc62c6 VS |
8584 | echo "$as_me:$LINENO: result: no" >&5 |
8585 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8586 | fi |
e6cc62c6 | 8587 | |
10f2d63a | 8588 | |
5005acfe | 8589 | enablestring= |
e6cc62c6 VS |
8590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8591 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8592 | no_cache=0 |
8593 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8594 | if test "${enable_tipdlg+set}" = set; then | |
8595 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8596 | |
10f2d63a VZ |
8597 | if test "$enableval" = yes; then |
8598 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8599 | else | |
8600 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8601 | fi | |
e6cc62c6 | 8602 | |
10f2d63a | 8603 | else |
e6cc62c6 | 8604 | |
10f2d63a VZ |
8605 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8606 | if test "x$LINE" != x ; then | |
8607 | eval "DEFAULT_$LINE" | |
8608 | else | |
8609 | no_cache=1 | |
8610 | fi | |
8611 | ||
8612 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8613 | |
e6cc62c6 | 8614 | fi; |
10f2d63a VZ |
8615 | |
8616 | eval "$ac_cv_use_tipdlg" | |
8617 | if test "$no_cache" != 1; then | |
8618 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8619 | fi | |
8620 | ||
8621 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8622 | echo "$as_me:$LINENO: result: yes" >&5 |
8623 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8624 | else |
e6cc62c6 VS |
8625 | echo "$as_me:$LINENO: result: no" >&5 |
8626 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8627 | fi |
e6cc62c6 | 8628 | |
10f2d63a | 8629 | |
5005acfe | 8630 | enablestring= |
e6cc62c6 VS |
8631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8632 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8633 | no_cache=0 |
8634 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8635 | if test "${enable_progressdlg+set}" = set; then | |
8636 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8637 | |
10f2d63a VZ |
8638 | if test "$enableval" = yes; then |
8639 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8640 | else | |
8641 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8642 | fi | |
e6cc62c6 | 8643 | |
10f2d63a | 8644 | else |
e6cc62c6 | 8645 | |
10f2d63a VZ |
8646 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8647 | if test "x$LINE" != x ; then | |
8648 | eval "DEFAULT_$LINE" | |
8649 | else | |
8650 | no_cache=1 | |
8651 | fi | |
8652 | ||
8653 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8654 | |
e6cc62c6 | 8655 | fi; |
10f2d63a VZ |
8656 | |
8657 | eval "$ac_cv_use_progressdlg" | |
8658 | if test "$no_cache" != 1; then | |
8659 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8660 | fi | |
8661 | ||
8662 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8663 | echo "$as_me:$LINENO: result: yes" >&5 |
8664 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8665 | else |
e6cc62c6 VS |
8666 | echo "$as_me:$LINENO: result: no" >&5 |
8667 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8668 | fi |
e6cc62c6 | 8669 | |
10f2d63a | 8670 | |
5005acfe | 8671 | enablestring= |
e6cc62c6 VS |
8672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8673 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8674 | no_cache=0 |
8675 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8676 | if test "${enable_wizarddlg+set}" = set; then | |
8677 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8678 | |
b1f5d087 VZ |
8679 | if test "$enableval" = yes; then |
8680 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8681 | else | |
8682 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8683 | fi | |
e6cc62c6 | 8684 | |
b1f5d087 | 8685 | else |
e6cc62c6 | 8686 | |
b1f5d087 VZ |
8687 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8688 | if test "x$LINE" != x ; then | |
8689 | eval "DEFAULT_$LINE" | |
8690 | else | |
8691 | no_cache=1 | |
8692 | fi | |
8693 | ||
8694 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8695 | |
e6cc62c6 | 8696 | fi; |
b1f5d087 VZ |
8697 | |
8698 | eval "$ac_cv_use_wizarddlg" | |
8699 | if test "$no_cache" != 1; then | |
8700 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8701 | fi | |
8702 | ||
8703 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8704 | echo "$as_me:$LINENO: result: yes" >&5 |
8705 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8706 | else |
e6cc62c6 VS |
8707 | echo "$as_me:$LINENO: result: no" >&5 |
8708 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8709 | fi |
e6cc62c6 | 8710 | |
8284b0c5 MB |
8711 | |
8712 | ||
52127426 | 8713 | |
5005acfe | 8714 | enablestring= |
e6cc62c6 VS |
8715 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8716 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8717 | no_cache=0 |
8718 | # Check whether --enable-menus or --disable-menus was given. | |
8719 | if test "${enable_menus+set}" = set; then | |
8720 | enableval="$enable_menus" | |
e6cc62c6 | 8721 | |
1e6feb95 VZ |
8722 | if test "$enableval" = yes; then |
8723 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8724 | else | |
8725 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8726 | fi | |
e6cc62c6 | 8727 | |
1e6feb95 | 8728 | else |
e6cc62c6 | 8729 | |
1e6feb95 VZ |
8730 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8731 | if test "x$LINE" != x ; then | |
8732 | eval "DEFAULT_$LINE" | |
8733 | else | |
8734 | no_cache=1 | |
8735 | fi | |
8736 | ||
8737 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8738 | |
e6cc62c6 | 8739 | fi; |
1e6feb95 VZ |
8740 | |
8741 | eval "$ac_cv_use_menus" | |
8742 | if test "$no_cache" != 1; then | |
8743 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8744 | fi | |
8745 | ||
8746 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8747 | echo "$as_me:$LINENO: result: yes" >&5 |
8748 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8749 | else |
e6cc62c6 VS |
8750 | echo "$as_me:$LINENO: result: no" >&5 |
8751 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8752 | fi |
e6cc62c6 | 8753 | |
1e6feb95 | 8754 | |
5005acfe | 8755 | enablestring= |
e6cc62c6 VS |
8756 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8757 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8758 | no_cache=0 |
8759 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8760 | if test "${enable_miniframe+set}" = set; then | |
8761 | enableval="$enable_miniframe" | |
e6cc62c6 | 8762 | |
10f2d63a VZ |
8763 | if test "$enableval" = yes; then |
8764 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8765 | else | |
8766 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8767 | fi | |
e6cc62c6 | 8768 | |
10f2d63a | 8769 | else |
e6cc62c6 | 8770 | |
10f2d63a VZ |
8771 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8772 | if test "x$LINE" != x ; then | |
8773 | eval "DEFAULT_$LINE" | |
8774 | else | |
8775 | no_cache=1 | |
8776 | fi | |
8777 | ||
8778 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8779 | |
e6cc62c6 | 8780 | fi; |
10f2d63a VZ |
8781 | |
8782 | eval "$ac_cv_use_miniframe" | |
8783 | if test "$no_cache" != 1; then | |
8784 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8785 | fi | |
8786 | ||
8787 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8788 | echo "$as_me:$LINENO: result: yes" >&5 |
8789 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8790 | else |
e6cc62c6 VS |
8791 | echo "$as_me:$LINENO: result: no" >&5 |
8792 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8793 | fi |
e6cc62c6 | 8794 | |
10f2d63a | 8795 | |
5005acfe | 8796 | enablestring= |
e6cc62c6 VS |
8797 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
8798 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
8799 | no_cache=0 |
8800 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8801 | if test "${enable_tooltips+set}" = set; then | |
8802 | enableval="$enable_tooltips" | |
e6cc62c6 | 8803 | |
10f2d63a VZ |
8804 | if test "$enableval" = yes; then |
8805 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8806 | else | |
8807 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8808 | fi | |
e6cc62c6 | 8809 | |
10f2d63a | 8810 | else |
e6cc62c6 | 8811 | |
10f2d63a VZ |
8812 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8813 | if test "x$LINE" != x ; then | |
8814 | eval "DEFAULT_$LINE" | |
8815 | else | |
8816 | no_cache=1 | |
8817 | fi | |
8818 | ||
8819 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 8820 | |
e6cc62c6 | 8821 | fi; |
10f2d63a VZ |
8822 | |
8823 | eval "$ac_cv_use_tooltips" | |
8824 | if test "$no_cache" != 1; then | |
8825 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8826 | fi | |
8827 | ||
8828 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
8829 | echo "$as_me:$LINENO: result: yes" >&5 |
8830 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8831 | else |
e6cc62c6 VS |
8832 | echo "$as_me:$LINENO: result: no" >&5 |
8833 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8834 | fi |
e6cc62c6 | 8835 | |
10f2d63a | 8836 | |
5005acfe | 8837 | enablestring= |
e6cc62c6 VS |
8838 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
8839 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
8840 | no_cache=0 |
8841 | # Check whether --enable-splines or --disable-splines was given. | |
8842 | if test "${enable_splines+set}" = set; then | |
8843 | enableval="$enable_splines" | |
e6cc62c6 | 8844 | |
10f2d63a VZ |
8845 | if test "$enableval" = yes; then |
8846 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8847 | else | |
8848 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8849 | fi | |
e6cc62c6 | 8850 | |
10f2d63a | 8851 | else |
e6cc62c6 | 8852 | |
10f2d63a VZ |
8853 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8854 | if test "x$LINE" != x ; then | |
8855 | eval "DEFAULT_$LINE" | |
8856 | else | |
8857 | no_cache=1 | |
8858 | fi | |
8859 | ||
8860 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 8861 | |
e6cc62c6 | 8862 | fi; |
10f2d63a VZ |
8863 | |
8864 | eval "$ac_cv_use_splines" | |
8865 | if test "$no_cache" != 1; then | |
8866 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8867 | fi | |
8868 | ||
8869 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
8870 | echo "$as_me:$LINENO: result: yes" >&5 |
8871 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8872 | else |
e6cc62c6 VS |
8873 | echo "$as_me:$LINENO: result: no" >&5 |
8874 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8875 | fi |
e6cc62c6 | 8876 | |
10f2d63a | 8877 | |
5005acfe | 8878 | enablestring= |
e6cc62c6 VS |
8879 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
8880 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
8881 | no_cache=0 |
8882 | # Check whether --enable-validators or --disable-validators was given. | |
8883 | if test "${enable_validators+set}" = set; then | |
8884 | enableval="$enable_validators" | |
e6cc62c6 | 8885 | |
10f2d63a VZ |
8886 | if test "$enableval" = yes; then |
8887 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8888 | else | |
8889 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8890 | fi | |
e6cc62c6 | 8891 | |
10f2d63a | 8892 | else |
e6cc62c6 | 8893 | |
10f2d63a VZ |
8894 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8895 | if test "x$LINE" != x ; then | |
8896 | eval "DEFAULT_$LINE" | |
8897 | else | |
8898 | no_cache=1 | |
8899 | fi | |
8900 | ||
8901 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 8902 | |
e6cc62c6 | 8903 | fi; |
10f2d63a VZ |
8904 | |
8905 | eval "$ac_cv_use_validators" | |
8906 | if test "$no_cache" != 1; then | |
8907 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8908 | fi | |
8909 | ||
8910 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
8911 | echo "$as_me:$LINENO: result: yes" >&5 |
8912 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8913 | else |
e6cc62c6 VS |
8914 | echo "$as_me:$LINENO: result: no" >&5 |
8915 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8916 | fi |
e6cc62c6 | 8917 | |
10f2d63a | 8918 | |
5005acfe | 8919 | enablestring= |
e6cc62c6 VS |
8920 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
8921 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
8922 | no_cache=0 |
8923 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8924 | if test "${enable_busyinfo+set}" = set; then | |
8925 | enableval="$enable_busyinfo" | |
e6cc62c6 | 8926 | |
10f2d63a VZ |
8927 | if test "$enableval" = yes; then |
8928 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8929 | else | |
8930 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8931 | fi | |
e6cc62c6 | 8932 | |
10f2d63a | 8933 | else |
e6cc62c6 | 8934 | |
10f2d63a VZ |
8935 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8936 | if test "x$LINE" != x ; then | |
8937 | eval "DEFAULT_$LINE" | |
8938 | else | |
8939 | no_cache=1 | |
8940 | fi | |
8941 | ||
8942 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 8943 | |
e6cc62c6 | 8944 | fi; |
10f2d63a VZ |
8945 | |
8946 | eval "$ac_cv_use_busyinfo" | |
8947 | if test "$no_cache" != 1; then | |
8948 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8949 | fi | |
8950 | ||
8951 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
8952 | echo "$as_me:$LINENO: result: yes" >&5 |
8953 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8954 | else |
e6cc62c6 VS |
8955 | echo "$as_me:$LINENO: result: no" >&5 |
8956 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8957 | fi |
e6cc62c6 | 8958 | |
10f2d63a | 8959 | |
5005acfe | 8960 | enablestring= |
e6cc62c6 VS |
8961 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
8962 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
8963 | no_cache=0 |
8964 | # Check whether --enable-joystick or --disable-joystick was given. | |
8965 | if test "${enable_joystick+set}" = set; then | |
8966 | enableval="$enable_joystick" | |
e6cc62c6 | 8967 | |
f6bcfd97 BP |
8968 | if test "$enableval" = yes; then |
8969 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8970 | else | |
8971 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8972 | fi | |
e6cc62c6 | 8973 | |
f6bcfd97 | 8974 | else |
e6cc62c6 | 8975 | |
f6bcfd97 BP |
8976 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8977 | if test "x$LINE" != x ; then | |
8978 | eval "DEFAULT_$LINE" | |
8979 | else | |
8980 | no_cache=1 | |
8981 | fi | |
8982 | ||
8983 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 8984 | |
e6cc62c6 | 8985 | fi; |
f6bcfd97 BP |
8986 | |
8987 | eval "$ac_cv_use_joystick" | |
8988 | if test "$no_cache" != 1; then | |
8989 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8990 | fi | |
8991 | ||
8992 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
8993 | echo "$as_me:$LINENO: result: yes" >&5 |
8994 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 8995 | else |
e6cc62c6 VS |
8996 | echo "$as_me:$LINENO: result: no" >&5 |
8997 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 8998 | fi |
e6cc62c6 | 8999 | |
698dcdb6 | 9000 | |
5005acfe | 9001 | enablestring= |
e6cc62c6 VS |
9002 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9003 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
9004 | no_cache=0 |
9005 | # Check whether --enable-metafile or --disable-metafile was given. | |
9006 | if test "${enable_metafile+set}" = set; then | |
9007 | enableval="$enable_metafile" | |
e6cc62c6 | 9008 | |
1e6feb95 VZ |
9009 | if test "$enableval" = yes; then |
9010 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9011 | else | |
9012 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9013 | fi | |
e6cc62c6 | 9014 | |
1e6feb95 | 9015 | else |
e6cc62c6 | 9016 | |
1e6feb95 VZ |
9017 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9018 | if test "x$LINE" != x ; then | |
9019 | eval "DEFAULT_$LINE" | |
9020 | else | |
9021 | no_cache=1 | |
9022 | fi | |
9023 | ||
9024 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9025 | |
e6cc62c6 | 9026 | fi; |
1e6feb95 VZ |
9027 | |
9028 | eval "$ac_cv_use_metafile" | |
9029 | if test "$no_cache" != 1; then | |
9030 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9031 | fi | |
9032 | ||
9033 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9034 | echo "$as_me:$LINENO: result: yes" >&5 |
9035 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9036 | else |
e6cc62c6 VS |
9037 | echo "$as_me:$LINENO: result: no" >&5 |
9038 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9039 | fi |
e6cc62c6 | 9040 | |
1e6feb95 | 9041 | |
5005acfe | 9042 | enablestring= |
e6cc62c6 VS |
9043 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9044 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9045 | no_cache=0 |
9046 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9047 | if test "${enable_dragimage+set}" = set; then | |
9048 | enableval="$enable_dragimage" | |
e6cc62c6 | 9049 | |
24fd6d87 VZ |
9050 | if test "$enableval" = yes; then |
9051 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9052 | else | |
9053 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9054 | fi | |
e6cc62c6 | 9055 | |
24fd6d87 | 9056 | else |
e6cc62c6 | 9057 | |
24fd6d87 VZ |
9058 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9059 | if test "x$LINE" != x ; then | |
9060 | eval "DEFAULT_$LINE" | |
9061 | else | |
9062 | no_cache=1 | |
9063 | fi | |
9064 | ||
9065 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9066 | |
e6cc62c6 | 9067 | fi; |
24fd6d87 VZ |
9068 | |
9069 | eval "$ac_cv_use_dragimage" | |
9070 | if test "$no_cache" != 1; then | |
9071 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9072 | fi | |
9073 | ||
9074 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9075 | echo "$as_me:$LINENO: result: yes" >&5 |
9076 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9077 | else |
e6cc62c6 VS |
9078 | echo "$as_me:$LINENO: result: no" >&5 |
9079 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9080 | fi |
e6cc62c6 | 9081 | |
52127426 | 9082 | |
7bb2947d | 9083 | enablestring= |
e6cc62c6 VS |
9084 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9085 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9086 | no_cache=0 |
9087 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9088 | if test "${enable_accessibility+set}" = set; then | |
9089 | enableval="$enable_accessibility" | |
e6cc62c6 | 9090 | |
7bb2947d MB |
9091 | if test "$enableval" = yes; then |
9092 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9093 | else | |
9094 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9095 | fi | |
e6cc62c6 | 9096 | |
7bb2947d | 9097 | else |
e6cc62c6 | 9098 | |
7bb2947d MB |
9099 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9100 | if test "x$LINE" != x ; then | |
9101 | eval "DEFAULT_$LINE" | |
9102 | else | |
9103 | no_cache=1 | |
9104 | fi | |
9105 | ||
9106 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9107 | |
e6cc62c6 | 9108 | fi; |
7bb2947d MB |
9109 | |
9110 | eval "$ac_cv_use_accessibility" | |
9111 | if test "$no_cache" != 1; then | |
9112 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9113 | fi | |
9114 | ||
9115 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9116 | echo "$as_me:$LINENO: result: yes" >&5 |
9117 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9118 | else |
e6cc62c6 VS |
9119 | echo "$as_me:$LINENO: result: no" >&5 |
9120 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9121 | fi |
e6cc62c6 | 9122 | |
7bb2947d | 9123 | |
8284b0c5 MB |
9124 | |
9125 | ||
5005acfe | 9126 | enablestring= |
e6cc62c6 VS |
9127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9128 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9129 | no_cache=0 |
9130 | # Check whether --enable-palette or --disable-palette was given. | |
9131 | if test "${enable_palette+set}" = set; then | |
9132 | enableval="$enable_palette" | |
e6cc62c6 | 9133 | |
edae8572 VZ |
9134 | if test "$enableval" = yes; then |
9135 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9136 | else | |
9137 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9138 | fi | |
e6cc62c6 | 9139 | |
edae8572 | 9140 | else |
e6cc62c6 | 9141 | |
edae8572 VZ |
9142 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9143 | if test "x$LINE" != x ; then | |
9144 | eval "DEFAULT_$LINE" | |
9145 | else | |
9146 | no_cache=1 | |
9147 | fi | |
9148 | ||
9149 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9150 | |
e6cc62c6 | 9151 | fi; |
edae8572 VZ |
9152 | |
9153 | eval "$ac_cv_use_palette" | |
9154 | if test "$no_cache" != 1; then | |
9155 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9156 | fi | |
9157 | ||
9158 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9159 | echo "$as_me:$LINENO: result: yes" >&5 |
9160 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9161 | else |
e6cc62c6 VS |
9162 | echo "$as_me:$LINENO: result: no" >&5 |
9163 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9164 | fi |
e6cc62c6 | 9165 | |
edae8572 | 9166 | |
5005acfe | 9167 | enablestring= |
e6cc62c6 VS |
9168 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9169 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9170 | no_cache=0 |
9171 | # Check whether --enable-image or --disable-image was given. | |
9172 | if test "${enable_image+set}" = set; then | |
9173 | enableval="$enable_image" | |
e6cc62c6 | 9174 | |
0046ff7c VS |
9175 | if test "$enableval" = yes; then |
9176 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9177 | else | |
9178 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9179 | fi | |
e6cc62c6 | 9180 | |
0046ff7c | 9181 | else |
e6cc62c6 | 9182 | |
0046ff7c VS |
9183 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9184 | if test "x$LINE" != x ; then | |
9185 | eval "DEFAULT_$LINE" | |
9186 | else | |
9187 | no_cache=1 | |
9188 | fi | |
9189 | ||
9190 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9191 | |
e6cc62c6 | 9192 | fi; |
0046ff7c VS |
9193 | |
9194 | eval "$ac_cv_use_image" | |
9195 | if test "$no_cache" != 1; then | |
9196 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9197 | fi | |
9198 | ||
9199 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9200 | echo "$as_me:$LINENO: result: yes" >&5 |
9201 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9202 | else |
e6cc62c6 VS |
9203 | echo "$as_me:$LINENO: result: no" >&5 |
9204 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9205 | fi |
e6cc62c6 | 9206 | |
0046ff7c | 9207 | |
5005acfe | 9208 | enablestring= |
e6cc62c6 VS |
9209 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9210 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9211 | no_cache=0 |
9212 | # Check whether --enable-gif or --disable-gif was given. | |
9213 | if test "${enable_gif+set}" = set; then | |
9214 | enableval="$enable_gif" | |
e6cc62c6 | 9215 | |
10f2d63a VZ |
9216 | if test "$enableval" = yes; then |
9217 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9218 | else | |
9219 | ac_cv_use_gif='wxUSE_GIF=no' | |
9220 | fi | |
e6cc62c6 | 9221 | |
10f2d63a | 9222 | else |
e6cc62c6 | 9223 | |
10f2d63a VZ |
9224 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9225 | if test "x$LINE" != x ; then | |
9226 | eval "DEFAULT_$LINE" | |
9227 | else | |
9228 | no_cache=1 | |
9229 | fi | |
9230 | ||
9231 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9232 | |
e6cc62c6 | 9233 | fi; |
10f2d63a VZ |
9234 | |
9235 | eval "$ac_cv_use_gif" | |
9236 | if test "$no_cache" != 1; then | |
9237 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9238 | fi | |
9239 | ||
9240 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9241 | echo "$as_me:$LINENO: result: yes" >&5 |
9242 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9243 | else |
e6cc62c6 VS |
9244 | echo "$as_me:$LINENO: result: no" >&5 |
9245 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9246 | fi |
e6cc62c6 | 9247 | |
10f2d63a | 9248 | |
5005acfe | 9249 | enablestring= |
e6cc62c6 VS |
9250 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9251 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9252 | no_cache=0 |
9253 | # Check whether --enable-pcx or --disable-pcx was given. | |
9254 | if test "${enable_pcx+set}" = set; then | |
9255 | enableval="$enable_pcx" | |
e6cc62c6 | 9256 | |
10f2d63a VZ |
9257 | if test "$enableval" = yes; then |
9258 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9259 | else | |
9260 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9261 | fi | |
e6cc62c6 | 9262 | |
10f2d63a | 9263 | else |
e6cc62c6 | 9264 | |
10f2d63a VZ |
9265 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9266 | if test "x$LINE" != x ; then | |
9267 | eval "DEFAULT_$LINE" | |
9268 | else | |
9269 | no_cache=1 | |
9270 | fi | |
9271 | ||
9272 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9273 | |
e6cc62c6 | 9274 | fi; |
10f2d63a VZ |
9275 | |
9276 | eval "$ac_cv_use_pcx" | |
9277 | if test "$no_cache" != 1; then | |
9278 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9279 | fi | |
9280 | ||
9281 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9282 | echo "$as_me:$LINENO: result: yes" >&5 |
9283 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9284 | else |
e6cc62c6 VS |
9285 | echo "$as_me:$LINENO: result: no" >&5 |
9286 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9287 | fi |
e6cc62c6 | 9288 | |
10f2d63a | 9289 | |
5005acfe | 9290 | enablestring= |
e6cc62c6 VS |
9291 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9292 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9293 | no_cache=0 |
9294 | # Check whether --enable-iff or --disable-iff was given. | |
9295 | if test "${enable_iff+set}" = set; then | |
9296 | enableval="$enable_iff" | |
e6cc62c6 | 9297 | |
4b6b4dfc RR |
9298 | if test "$enableval" = yes; then |
9299 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9300 | else | |
9301 | ac_cv_use_iff='wxUSE_IFF=no' | |
9302 | fi | |
e6cc62c6 | 9303 | |
4b6b4dfc | 9304 | else |
e6cc62c6 | 9305 | |
4b6b4dfc RR |
9306 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9307 | if test "x$LINE" != x ; then | |
9308 | eval "DEFAULT_$LINE" | |
9309 | else | |
9310 | no_cache=1 | |
9311 | fi | |
9312 | ||
9313 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9314 | |
e6cc62c6 | 9315 | fi; |
4b6b4dfc RR |
9316 | |
9317 | eval "$ac_cv_use_iff" | |
9318 | if test "$no_cache" != 1; then | |
9319 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9320 | fi | |
9321 | ||
9322 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9323 | echo "$as_me:$LINENO: result: yes" >&5 |
9324 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9325 | else |
e6cc62c6 VS |
9326 | echo "$as_me:$LINENO: result: no" >&5 |
9327 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9328 | fi |
e6cc62c6 | 9329 | |
4b6b4dfc | 9330 | |
5005acfe | 9331 | enablestring= |
e6cc62c6 VS |
9332 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9333 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9334 | no_cache=0 |
9335 | # Check whether --enable-pnm or --disable-pnm was given. | |
9336 | if test "${enable_pnm+set}" = set; then | |
9337 | enableval="$enable_pnm" | |
e6cc62c6 | 9338 | |
10f2d63a VZ |
9339 | if test "$enableval" = yes; then |
9340 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9341 | else | |
9342 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9343 | fi | |
e6cc62c6 | 9344 | |
10f2d63a | 9345 | else |
e6cc62c6 | 9346 | |
10f2d63a VZ |
9347 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9348 | if test "x$LINE" != x ; then | |
9349 | eval "DEFAULT_$LINE" | |
9350 | else | |
9351 | no_cache=1 | |
9352 | fi | |
9353 | ||
9354 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9355 | |
e6cc62c6 | 9356 | fi; |
10f2d63a VZ |
9357 | |
9358 | eval "$ac_cv_use_pnm" | |
9359 | if test "$no_cache" != 1; then | |
9360 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9361 | fi | |
9362 | ||
9363 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9364 | echo "$as_me:$LINENO: result: yes" >&5 |
9365 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9366 | else |
e6cc62c6 VS |
9367 | echo "$as_me:$LINENO: result: no" >&5 |
9368 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9369 | fi |
e6cc62c6 | 9370 | |
10f2d63a | 9371 | |
5005acfe | 9372 | enablestring= |
e6cc62c6 VS |
9373 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9374 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9375 | no_cache=0 |
69d27ff7 MB |
9376 | # Check whether --enable-xpm or --disable-xpm was given. |
9377 | if test "${enable_xpm+set}" = set; then | |
9378 | enableval="$enable_xpm" | |
e6cc62c6 | 9379 | |
0046ff7c | 9380 | if test "$enableval" = yes; then |
69d27ff7 | 9381 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9382 | else |
69d27ff7 | 9383 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9384 | fi |
e6cc62c6 | 9385 | |
0046ff7c | 9386 | else |
e6cc62c6 | 9387 | |
0046ff7c VS |
9388 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9389 | if test "x$LINE" != x ; then | |
9390 | eval "DEFAULT_$LINE" | |
9391 | else | |
9392 | no_cache=1 | |
9393 | fi | |
9394 | ||
69d27ff7 | 9395 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9396 | |
e6cc62c6 | 9397 | fi; |
0046ff7c | 9398 | |
69d27ff7 | 9399 | eval "$ac_cv_use_xpm" |
0046ff7c | 9400 | if test "$no_cache" != 1; then |
69d27ff7 | 9401 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9402 | fi |
9403 | ||
9404 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9405 | echo "$as_me:$LINENO: result: yes" >&5 |
9406 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9407 | else |
e6cc62c6 VS |
9408 | echo "$as_me:$LINENO: result: no" >&5 |
9409 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9410 | fi |
e6cc62c6 | 9411 | |
0046ff7c | 9412 | |
5005acfe | 9413 | enablestring= |
e6cc62c6 VS |
9414 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9415 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9416 | no_cache=0 |
c7206e64 VS |
9417 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9418 | if test "${enable_ico_cur+set}" = set; then | |
9419 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9420 | |
658974ae | 9421 | if test "$enableval" = yes; then |
c7206e64 | 9422 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9423 | else |
c7206e64 | 9424 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9425 | fi |
e6cc62c6 | 9426 | |
658974ae | 9427 | else |
e6cc62c6 | 9428 | |
658974ae VS |
9429 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9430 | if test "x$LINE" != x ; then | |
9431 | eval "DEFAULT_$LINE" | |
9432 | else | |
9433 | no_cache=1 | |
9434 | fi | |
9435 | ||
c7206e64 | 9436 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9437 | |
e6cc62c6 | 9438 | fi; |
658974ae | 9439 | |
c7206e64 | 9440 | eval "$ac_cv_use_ico_cur" |
658974ae | 9441 | if test "$no_cache" != 1; then |
c7206e64 | 9442 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9443 | fi |
9444 | ||
9445 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9446 | echo "$as_me:$LINENO: result: yes" >&5 |
9447 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9448 | else |
e6cc62c6 VS |
9449 | echo "$as_me:$LINENO: result: no" >&5 |
9450 | echo "${ECHO_T}no" >&6 | |
658974ae | 9451 | fi |
e6cc62c6 | 9452 | |
658974ae | 9453 | |
b12915c1 VZ |
9454 | fi |
9455 | ||
029b47ad VS |
9456 | |
9457 | ||
9458 | enablestring= | |
9459 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9460 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9461 | no_cache=0 | |
9462 | # Check whether --enable-official_build or --disable-official_build was given. | |
9463 | if test "${enable_official_build+set}" = set; then | |
9464 | enableval="$enable_official_build" | |
9465 | ||
9466 | if test "$enableval" = yes; then | |
9467 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9468 | else | |
9469 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9470 | fi | |
9471 | ||
9472 | else | |
9473 | ||
9474 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9475 | if test "x$LINE" != x ; then | |
9476 | eval "DEFAULT_$LINE" | |
9477 | else | |
9478 | no_cache=1 | |
9479 | fi | |
9480 | ||
9481 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9482 | ||
9483 | fi; | |
9484 | ||
9485 | eval "$ac_cv_use_official_build" | |
9486 | if test "$no_cache" != 1; then | |
9487 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9488 | fi | |
9489 | ||
9490 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9491 | echo "$as_me:$LINENO: result: yes" >&5 | |
9492 | echo "${ECHO_T}yes" >&6 | |
9493 | else | |
9494 | echo "$as_me:$LINENO: result: no" >&5 | |
9495 | echo "${ECHO_T}no" >&6 | |
9496 | fi | |
9497 | ||
9498 | # Check whether --enable-vendor or --disable-vendor was given. | |
9499 | if test "${enable_vendor+set}" = set; then | |
9500 | enableval="$enable_vendor" | |
9501 | VENDOR="$enableval" | |
9502 | fi; | |
9503 | if test "x$VENDOR" = "x"; then | |
9504 | VENDOR="custom" | |
9505 | fi | |
9506 | ||
d558c907 VS |
9507 | case "${host}" in |
9508 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
9509 | PATH_IFS=';' |
9510 | LEX_STEM="lexyy" | |
d558c907 VS |
9511 | ;; |
9512 | *) | |
9513 | PATH_IFS=':' | |
9514 | LEX_STEM="lex.yy" | |
9515 | ;; | |
9516 | esac | |
9517 | ||
8284b0c5 MB |
9518 | |
9519 | ||
10f2d63a VZ |
9520 | echo "saving argument cache $wx_arg_cache_file" |
9521 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9522 | |
8284b0c5 | 9523 | |
e6cc62c6 VS |
9524 | |
9525 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9526 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9527 | |
9528 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9529 | if test "$wxUSE_WINE" = "yes"; then | |
9530 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9531 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9532 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9533 | fi | |
10f2d63a VZ |
9534 | |
9535 | if test "$wxUSE_GUI" = "yes"; then | |
9536 | ||
3a922bb4 | 9537 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9538 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9539 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9540 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9541 | fi |
b12915c1 | 9542 | |
3a922bb4 RL |
9543 | if test "$TOOLKIT_GIVEN" = 1; then |
9544 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9545 | var=wxUSE_$toolkit | |
9546 | eval "value=\$${var}" | |
9547 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9548 | done | |
10f2d63a | 9549 | else |
3a922bb4 RL |
9550 | for toolkit in `echo $ALL_TOOLKITS`; do |
9551 | if test "$has_toolkit_in_cache" != 1; then | |
9552 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9553 | else | |
9554 | var=DEFAULT_wxUSE_$toolkit | |
9555 | fi | |
9556 | eval "wxUSE_$toolkit=\$${var}" | |
9557 | done | |
10f2d63a | 9558 | fi |
10f2d63a | 9559 | |
ac0c4cc3 DE |
9560 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9561 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9562 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9563 | |
d558c907 | 9564 | case "${host}" in |
6fa882bd | 9565 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9566 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9567 | esac |
10f2d63a | 9568 | |
3a922bb4 RL |
9569 | case "$NUM_TOOLKITS" in |
9570 | 1) | |
9571 | ;; | |
9572 | 0) | |
e6cc62c6 VS |
9573 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9574 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9575 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9576 | ;; |
9577 | *) | |
e6cc62c6 VS |
9578 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9579 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9580 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9581 | esac |
10f2d63a | 9582 | |
3a922bb4 RL |
9583 | for toolkit in `echo $ALL_TOOLKITS`; do |
9584 | var=wxUSE_$toolkit | |
9585 | eval "value=\$${var}" | |
9586 | if test "x$value" != x; then | |
9587 | cache_var=CACHE_$toolkit | |
9588 | eval "cache=\$${cache_var}" | |
9589 | if test "$cache" = 1; then | |
9590 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9591 | fi | |
9592 | if test "$value" = 1; then | |
9593 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
e6cc62c6 VS |
9594 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9595 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9596 | fi |
9597 | fi | |
9598 | done | |
10f2d63a | 9599 | else |
9de9b8f0 VZ |
9600 | if test "x$host_alias" != "x"; then |
9601 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9602 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9603 | else |
9604 | echo "$as_me:$LINENO: result: base only" >&5 | |
9605 | echo "${ECHO_T}base only" >&6 | |
9606 | fi | |
10f2d63a VZ |
9607 | fi |
9608 | ||
43d99b6d VS |
9609 | wants_win32=0 |
9610 | doesnt_want_win32=0 | |
17234b26 MB |
9611 | case "${host}" in |
9612 | *-*-cygwin*) | |
9613 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9614 | wants_win32=1 |
9615 | else | |
9616 | doesnt_want_win32=1 | |
17234b26 MB |
9617 | fi |
9618 | ;; | |
9619 | *-*-mingw*) | |
43d99b6d | 9620 | wants_win32=1 |
17234b26 MB |
9621 | ;; |
9622 | esac | |
9623 | ||
89e6bf6d VZ |
9624 | if test "$wxUSE_WINE" = "yes"; then |
9625 | wants_win32=1 | |
9626 | CC=winegcc | |
9627 | CXX=wineg++ | |
9628 | RESCOMP=wrc | |
9629 | fi | |
9630 | ||
43d99b6d | 9631 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9632 | USE_UNIX=0 |
9633 | USE_WIN32=1 | |
e6cc62c6 | 9634 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9635 | #define __WIN32__ 1 |
e6cc62c6 | 9636 | _ACEOF |
17234b26 | 9637 | |
e6cc62c6 | 9638 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9639 | #define __WIN95__ 1 |
e6cc62c6 | 9640 | _ACEOF |
17234b26 | 9641 | |
e6cc62c6 | 9642 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9643 | #define __WINDOWS__ 1 |
e6cc62c6 | 9644 | _ACEOF |
17234b26 | 9645 | |
e6cc62c6 | 9646 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9647 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9648 | _ACEOF |
17234b26 | 9649 | |
e6cc62c6 | 9650 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9651 | #define STRICT 1 |
e6cc62c6 | 9652 | _ACEOF |
17234b26 | 9653 | |
e6cc62c6 | 9654 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9655 | #define WINVER 0x0400 |
e6cc62c6 | 9656 | _ACEOF |
17234b26 | 9657 | |
43d99b6d VS |
9658 | fi |
9659 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9660 | USE_UNIX=1 |
9661 | USE_WIN32=0 | |
9662 | fi | |
9663 | ||
9664 | if test "$USE_UNIX" = 1 ; then | |
9665 | wxUSE_UNIX=yes | |
e6cc62c6 | 9666 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9667 | #define __UNIX__ 1 |
e6cc62c6 | 9668 | _ACEOF |
17234b26 MB |
9669 | |
9670 | fi | |
9671 | ||
8284b0c5 | 9672 | |
e6cc62c6 | 9673 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9674 | # This file is a shell script that caches the results of configure |
9675 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9676 | # scripts and configure runs, see configure's option --config-cache. |
9677 | # It is not useful on other systems. If it contains results you don't | |
9678 | # want to keep, you may remove or edit it. | |
10f2d63a | 9679 | # |
e6cc62c6 VS |
9680 | # config.status only pays attention to the cache file if you give it |
9681 | # the --recheck option to rerun configure. | |
10f2d63a | 9682 | # |
e6cc62c6 VS |
9683 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9684 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9685 | # following values. | |
9686 | ||
9687 | _ACEOF | |
9688 | ||
10f2d63a VZ |
9689 | # The following way of writing the cache mishandles newlines in values, |
9690 | # but we know of no workaround that is simple, portable, and efficient. | |
9691 | # So, don't put newlines in cache variables' values. | |
9692 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9693 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9694 | { |
9695 | (set) 2>&1 | | |
9696 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9697 | *ac_space=\ *) | |
9698 | # `set' does not quote correctly, so add quotes (double-quote | |
9699 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9700 | sed -n \ | |
9701 | "s/'/'\\\\''/g; | |
9702 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9703 | ;; | |
9704 | *) | |
9705 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9706 | sed -n \ | |
9707 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9708 | ;; | |
9709 | esac; | |
9710 | } | | |
9711 | sed ' | |
9712 | t clear | |
9713 | : clear | |
9714 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9715 | t end | |
9716 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9717 | : end' >>confcache | |
9718 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9719 | if test -w $cache_file; then |
e6cc62c6 VS |
9720 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9721 | cat confcache >$cache_file | |
10f2d63a VZ |
9722 | else |
9723 | echo "not updating unwritable cache $cache_file" | |
9724 | fi | |
9725 | fi | |
9726 | rm -f confcache | |
9727 | ||
e59890c3 | 9728 | if test "$build" != "$host" ; then |
9d353d4a | 9729 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9730 | CC=$host_alias-gcc |
9731 | CXX=$host_alias-c++ | |
9732 | AR=$host_alias-ar | |
9733 | RANLIB=$host_alias-ranlib | |
9734 | DLLTOOL=$host_alias-dlltool | |
9735 | RESCOMP=$host_alias-windres | |
9736 | LD=$host_alias-ld | |
9737 | NM=$host_alias-nm | |
9738 | STRIP=$host_alias-strip | |
9739 | else | |
e6cc62c6 VS |
9740 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9741 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9742 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9743 | fi |
10f2d63a VZ |
9744 | fi |
9745 | ||
ec603395 | 9746 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9747 | ac_ext=c |
9748 | ac_cpp='$CPP $CPPFLAGS' | |
9749 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9750 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9752 | if test -n "$ac_tool_prefix"; then | |
9753 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9754 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9755 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9757 | if test "${ac_cv_prog_CC+set}" = set; then | |
9758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9759 | else | |
9760 | if test -n "$CC"; then | |
9761 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9762 | else | |
9763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9764 | for as_dir in $PATH | |
9765 | do | |
9766 | IFS=$as_save_IFS | |
9767 | test -z "$as_dir" && as_dir=. | |
9768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9770 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9772 | break 2 | |
9773 | fi | |
9774 | done | |
9775 | done | |
9776 | ||
9777 | fi | |
9778 | fi | |
9779 | CC=$ac_cv_prog_CC | |
9780 | if test -n "$CC"; then | |
9781 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9782 | echo "${ECHO_T}$CC" >&6 | |
9783 | else | |
9784 | echo "$as_me:$LINENO: result: no" >&5 | |
9785 | echo "${ECHO_T}no" >&6 | |
9786 | fi | |
9787 | ||
9788 | fi | |
9789 | if test -z "$ac_cv_prog_CC"; then | |
9790 | ac_ct_CC=$CC | |
9791 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9792 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
9793 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9794 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9795 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9797 | else | |
9798 | if test -n "$ac_ct_CC"; then | |
9799 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9800 | else | |
9801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9802 | for as_dir in $PATH | |
9803 | do | |
9804 | IFS=$as_save_IFS | |
9805 | test -z "$as_dir" && as_dir=. | |
9806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9807 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9808 | ac_cv_prog_ac_ct_CC="gcc" | |
9809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9810 | break 2 | |
9811 | fi | |
9812 | done | |
9813 | done | |
9814 | ||
9815 | fi | |
9816 | fi | |
9817 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9818 | if test -n "$ac_ct_CC"; then | |
9819 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9820 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9821 | else | |
9822 | echo "$as_me:$LINENO: result: no" >&5 | |
9823 | echo "${ECHO_T}no" >&6 | |
9824 | fi | |
9825 | ||
9826 | CC=$ac_ct_CC | |
9827 | else | |
9828 | CC="$ac_cv_prog_CC" | |
9829 | fi | |
9830 | ||
9831 | if test -z "$CC"; then | |
9832 | if test -n "$ac_tool_prefix"; then | |
9833 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9834 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9835 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9837 | if test "${ac_cv_prog_CC+set}" = set; then | |
9838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
9839 | else |
9840 | if test -n "$CC"; then | |
9841 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9842 | else |
e6cc62c6 VS |
9843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9844 | for as_dir in $PATH | |
9845 | do | |
9846 | IFS=$as_save_IFS | |
9847 | test -z "$as_dir" && as_dir=. | |
9848 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9849 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9850 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9852 | break 2 | |
9853 | fi | |
9854 | done | |
9855 | done | |
9856 | ||
10f2d63a | 9857 | fi |
6232543b | 9858 | fi |
e6cc62c6 | 9859 | CC=$ac_cv_prog_CC |
6232543b | 9860 | if test -n "$CC"; then |
e6cc62c6 VS |
9861 | echo "$as_me:$LINENO: result: $CC" >&5 |
9862 | echo "${ECHO_T}$CC" >&6 | |
9863 | else | |
9864 | echo "$as_me:$LINENO: result: no" >&5 | |
9865 | echo "${ECHO_T}no" >&6 | |
9866 | fi | |
9867 | ||
9868 | fi | |
9869 | if test -z "$ac_cv_prog_CC"; then | |
9870 | ac_ct_CC=$CC | |
9871 | # Extract the first word of "cc", so it can be a program name with args. | |
9872 | set dummy cc; ac_word=$2 | |
9873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9875 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9877 | else | |
9878 | if test -n "$ac_ct_CC"; then | |
9879 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9880 | else | |
9881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9882 | for as_dir in $PATH | |
9883 | do | |
9884 | IFS=$as_save_IFS | |
9885 | test -z "$as_dir" && as_dir=. | |
9886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9888 | ac_cv_prog_ac_ct_CC="cc" | |
9889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9890 | break 2 | |
9891 | fi | |
9892 | done | |
9893 | done | |
9894 | ||
9895 | fi | |
9896 | fi | |
9897 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9898 | if test -n "$ac_ct_CC"; then | |
9899 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9900 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9901 | else | |
9902 | echo "$as_me:$LINENO: result: no" >&5 | |
9903 | echo "${ECHO_T}no" >&6 | |
9904 | fi | |
9905 | ||
9906 | CC=$ac_ct_CC | |
247f5006 | 9907 | else |
e6cc62c6 | 9908 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
9909 | fi |
9910 | ||
e6cc62c6 | 9911 | fi |
5c6fa7d2 RR |
9912 | if test -z "$CC"; then |
9913 | # Extract the first word of "cc", so it can be a program name with args. | |
9914 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
9915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9917 | if test "${ac_cv_prog_CC+set}" = set; then | |
9918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
9919 | else |
9920 | if test -n "$CC"; then | |
9921 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9922 | else | |
9923 | ac_prog_rejected=no | |
e6cc62c6 VS |
9924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9925 | for as_dir in $PATH | |
9926 | do | |
9927 | IFS=$as_save_IFS | |
9928 | test -z "$as_dir" && as_dir=. | |
9929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9931 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
9932 | ac_prog_rejected=yes | |
9933 | continue | |
9934 | fi | |
9935 | ac_cv_prog_CC="cc" | |
9936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9937 | break 2 | |
9938 | fi | |
9939 | done | |
9940 | done | |
9941 | ||
328a083c RR |
9942 | if test $ac_prog_rejected = yes; then |
9943 | # We found a bogon in the path, so make sure we never use it. | |
9944 | set dummy $ac_cv_prog_CC | |
9945 | shift | |
e6cc62c6 | 9946 | if test $# != 0; then |
328a083c | 9947 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9948 | # However, it has the same basename, so the bogon will be chosen |
9949 | # first if we set CC to just the basename; use the full file name. | |
9950 | shift | |
e6cc62c6 | 9951 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 9952 | fi |
1e487827 VS |
9953 | fi |
9954 | fi | |
9955 | fi | |
e6cc62c6 | 9956 | CC=$ac_cv_prog_CC |
1e487827 | 9957 | if test -n "$CC"; then |
e6cc62c6 VS |
9958 | echo "$as_me:$LINENO: result: $CC" >&5 |
9959 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 9960 | else |
e6cc62c6 VS |
9961 | echo "$as_me:$LINENO: result: no" >&5 |
9962 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 9963 | fi |
1e487827 | 9964 | |
e6cc62c6 VS |
9965 | fi |
9966 | if test -z "$CC"; then | |
9967 | if test -n "$ac_tool_prefix"; then | |
9968 | for ac_prog in cl | |
9969 | do | |
9970 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
9971 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9972 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9974 | if test "${ac_cv_prog_CC+set}" = set; then | |
9975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
9976 | else |
9977 | if test -n "$CC"; then | |
9978 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9979 | else | |
e6cc62c6 VS |
9980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9981 | for as_dir in $PATH | |
9982 | do | |
9983 | IFS=$as_save_IFS | |
9984 | test -z "$as_dir" && as_dir=. | |
9985 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9986 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9987 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
9988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9989 | break 2 | |
9990 | fi | |
9991 | done | |
9992 | done | |
9993 | ||
f09359cf VS |
9994 | fi |
9995 | fi | |
e6cc62c6 | 9996 | CC=$ac_cv_prog_CC |
f09359cf | 9997 | if test -n "$CC"; then |
e6cc62c6 VS |
9998 | echo "$as_me:$LINENO: result: $CC" >&5 |
9999 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 10000 | else |
e6cc62c6 VS |
10001 | echo "$as_me:$LINENO: result: no" >&5 |
10002 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 10003 | fi |
1e487827 | 10004 | |
e6cc62c6 VS |
10005 | test -n "$CC" && break |
10006 | done | |
10007 | fi | |
10008 | if test -z "$CC"; then | |
10009 | ac_ct_CC=$CC | |
10010 | for ac_prog in cl | |
10011 | do | |
10012 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10013 | set dummy $ac_prog; ac_word=$2 | |
10014 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10016 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10018 | else | |
10019 | if test -n "$ac_ct_CC"; then | |
10020 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10021 | else | |
10022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10023 | for as_dir in $PATH | |
10024 | do | |
10025 | IFS=$as_save_IFS | |
10026 | test -z "$as_dir" && as_dir=. | |
10027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10028 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10029 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10030 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10031 | break 2 | |
10032 | fi | |
10033 | done | |
10034 | done | |
f09359cf | 10035 | |
e6cc62c6 VS |
10036 | fi |
10037 | fi | |
10038 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10039 | if test -n "$ac_ct_CC"; then | |
10040 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10041 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10042 | else | |
10043 | echo "$as_me:$LINENO: result: no" >&5 | |
10044 | echo "${ECHO_T}no" >&6 | |
10045 | fi | |
f09359cf | 10046 | |
e6cc62c6 VS |
10047 | test -n "$ac_ct_CC" && break |
10048 | done | |
247f5006 | 10049 | |
e6cc62c6 VS |
10050 | CC=$ac_ct_CC |
10051 | fi | |
10052 | ||
10053 | fi | |
10054 | ||
10055 | ||
10056 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10057 | See \`config.log' for more details." >&5 | |
10058 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10059 | See \`config.log' for more details." >&2;} | |
10060 | { (exit 1); exit 1; }; } | |
10061 | ||
10062 | # Provide some information about the compiler. | |
10063 | echo "$as_me:$LINENO:" \ | |
10064 | "checking for C compiler version" >&5 | |
10065 | ac_compiler=`set X $ac_compile; echo $2` | |
10066 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10067 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10068 | ac_status=$? | |
10069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10070 | (exit $ac_status); } | |
10071 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10072 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10073 | ac_status=$? | |
10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10075 | (exit $ac_status); } | |
10076 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10077 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10078 | ac_status=$? | |
10079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10080 | (exit $ac_status); } | |
10081 | ||
10082 | cat >conftest.$ac_ext <<_ACEOF | |
10083 | #line $LINENO "configure" | |
10084 | /* confdefs.h. */ | |
10085 | _ACEOF | |
10086 | cat confdefs.h >>conftest.$ac_ext | |
10087 | cat >>conftest.$ac_ext <<_ACEOF | |
10088 | /* end confdefs.h. */ | |
10089 | ||
10090 | int | |
10091 | main () | |
10092 | { | |
247f5006 | 10093 | |
e6cc62c6 VS |
10094 | ; |
10095 | return 0; | |
10096 | } | |
10097 | _ACEOF | |
10098 | ac_clean_files_save=$ac_clean_files | |
10099 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10100 | # Try to create an executable without -o first, disregard a.out. | |
10101 | # It will help us diagnose broken compilers, and finding out an intuition | |
10102 | # of exeext. | |
10103 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
10104 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
10105 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
10106 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10107 | (eval $ac_link_default) 2>&5 | |
10108 | ac_status=$? | |
10109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10110 | (exit $ac_status); }; then | |
10111 | # Find the output, starting from the most likely. This scheme is | |
10112 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10113 | # resort. | |
10114 | ||
10115 | # Be careful to initialize this variable, since it used to be cached. | |
10116 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10117 | ac_cv_exeext= | |
10118 | # b.out is created by i960 compilers. | |
10119 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10120 | do | |
10121 | test -f "$ac_file" || continue | |
10122 | case $ac_file in | |
10123 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
10124 | ;; | |
10125 | conftest.$ac_ext ) | |
10126 | # This is the source file. | |
10127 | ;; | |
10128 | [ab].out ) | |
10129 | # We found the default executable, but exeext='' is most | |
10130 | # certainly right. | |
10131 | break;; | |
10132 | *.* ) | |
10133 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10134 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10135 | # but it would be cool to find out if it's true. Does anybody | |
10136 | # maintain Libtool? --akim. | |
10137 | export ac_cv_exeext | |
10138 | break;; | |
10139 | * ) | |
10140 | break;; | |
10141 | esac | |
10142 | done | |
10143 | else | |
10144 | echo "$as_me: failed program was:" >&5 | |
10145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10146 | ||
10147 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10148 | See \`config.log' for more details." >&5 | |
10149 | echo "$as_me: error: C compiler cannot create executables | |
10150 | See \`config.log' for more details." >&2;} | |
10151 | { (exit 77); exit 77; }; } | |
10152 | fi | |
10153 | ||
10154 | ac_exeext=$ac_cv_exeext | |
10155 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10156 | echo "${ECHO_T}$ac_file" >&6 | |
10157 | ||
10158 | # Check the compiler produces executables we can run. If not, either | |
10159 | # the compiler is broken, or we cross compile. | |
10160 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10161 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10162 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10163 | # If not cross compiling, check that we can run a simple program. | |
10164 | if test "$cross_compiling" != yes; then | |
10165 | if { ac_try='./$ac_file' | |
10166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10167 | (eval $ac_try) 2>&5 | |
10168 | ac_status=$? | |
10169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10170 | (exit $ac_status); }; }; then | |
10171 | cross_compiling=no | |
698dcdb6 | 10172 | else |
e6cc62c6 VS |
10173 | if test "$cross_compiling" = maybe; then |
10174 | cross_compiling=yes | |
10175 | else | |
10176 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10177 | If you meant to cross compile, use \`--host'. | |
10178 | See \`config.log' for more details." >&5 | |
10179 | echo "$as_me: error: cannot run C compiled programs. | |
10180 | If you meant to cross compile, use \`--host'. | |
10181 | See \`config.log' for more details." >&2;} | |
10182 | { (exit 1); exit 1; }; } | |
10183 | fi | |
698dcdb6 | 10184 | fi |
52127426 | 10185 | fi |
e6cc62c6 VS |
10186 | echo "$as_me:$LINENO: result: yes" >&5 |
10187 | echo "${ECHO_T}yes" >&6 | |
10188 | ||
10189 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10190 | ac_clean_files=$ac_clean_files_save | |
10191 | # Check the compiler produces executables we can run. If not, either | |
10192 | # the compiler is broken, or we cross compile. | |
10193 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10194 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10195 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10196 | echo "${ECHO_T}$cross_compiling" >&6 | |
10197 | ||
10198 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10199 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10201 | (eval $ac_link) 2>&5 | |
10202 | ac_status=$? | |
10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10204 | (exit $ac_status); }; then | |
10205 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10206 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10207 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10208 | # `rm'. | |
10209 | for ac_file in conftest.exe conftest conftest.*; do | |
10210 | test -f "$ac_file" || continue | |
10211 | case $ac_file in | |
10212 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10213 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10214 | export ac_cv_exeext | |
10215 | break;; | |
10216 | * ) break;; | |
10217 | esac | |
10218 | done | |
5c6fa7d2 | 10219 | else |
e6cc62c6 VS |
10220 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10221 | See \`config.log' for more details." >&5 | |
10222 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10223 | See \`config.log' for more details." >&2;} | |
10224 | { (exit 1); exit 1; }; } | |
10225 | fi | |
10226 | ||
10227 | rm -f conftest$ac_cv_exeext | |
10228 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10229 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10230 | ||
10231 | rm -f conftest.$ac_ext | |
10232 | EXEEXT=$ac_cv_exeext | |
10233 | ac_exeext=$EXEEXT | |
10234 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10235 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10236 | if test "${ac_cv_objext+set}" = set; then | |
10237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10238 | else | |
10239 | cat >conftest.$ac_ext <<_ACEOF | |
10240 | #line $LINENO "configure" | |
10241 | /* confdefs.h. */ | |
10242 | _ACEOF | |
10243 | cat confdefs.h >>conftest.$ac_ext | |
10244 | cat >>conftest.$ac_ext <<_ACEOF | |
10245 | /* end confdefs.h. */ | |
10246 | ||
10247 | int | |
10248 | main () | |
10249 | { | |
f09359cf | 10250 | |
e6cc62c6 VS |
10251 | ; |
10252 | return 0; | |
10253 | } | |
10254 | _ACEOF | |
10255 | rm -f conftest.o conftest.obj | |
10256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10257 | (eval $ac_compile) 2>&5 | |
10258 | ac_status=$? | |
10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10260 | (exit $ac_status); }; then | |
10261 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10262 | case $ac_file in | |
10263 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10264 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10265 | break;; | |
10266 | esac | |
10267 | done | |
a0b9e27f | 10268 | else |
e6cc62c6 VS |
10269 | echo "$as_me: failed program was:" >&5 |
10270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10271 | ||
10272 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10273 | See \`config.log' for more details." >&5 | |
10274 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10275 | See \`config.log' for more details." >&2;} | |
10276 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10277 | fi |
247f5006 | 10278 | |
e6cc62c6 VS |
10279 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10280 | fi | |
10281 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10282 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10283 | OBJEXT=$ac_cv_objext | |
10284 | ac_objext=$OBJEXT | |
10285 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10286 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10287 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10289 | else |
e6cc62c6 VS |
10290 | cat >conftest.$ac_ext <<_ACEOF |
10291 | #line $LINENO "configure" | |
10292 | /* confdefs.h. */ | |
10293 | _ACEOF | |
10294 | cat confdefs.h >>conftest.$ac_ext | |
10295 | cat >>conftest.$ac_ext <<_ACEOF | |
10296 | /* end confdefs.h. */ | |
10297 | ||
10298 | int | |
10299 | main () | |
10300 | { | |
10301 | #ifndef __GNUC__ | |
10302 | choke me | |
10303 | #endif | |
10304 | ||
10305 | ; | |
10306 | return 0; | |
10307 | } | |
10308 | _ACEOF | |
10309 | rm -f conftest.$ac_objext | |
10310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10311 | (eval $ac_compile) 2>&5 | |
10312 | ac_status=$? | |
10313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10314 | (exit $ac_status); } && | |
10315 | { ac_try='test -s conftest.$ac_objext' | |
10316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10317 | (eval $ac_try) 2>&5 | |
10318 | ac_status=$? | |
10319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10320 | (exit $ac_status); }; }; then | |
10321 | ac_compiler_gnu=yes | |
10322 | else | |
10323 | echo "$as_me: failed program was:" >&5 | |
10324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10325 | ||
10326 | ac_compiler_gnu=no | |
10327 | fi | |
10328 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10329 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
10330 | ||
10331 | fi | |
10332 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10333 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10334 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10335 | ac_test_CFLAGS=${CFLAGS+set} | |
10336 | ac_save_CFLAGS=$CFLAGS | |
10337 | CFLAGS="-g" | |
10338 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10339 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10340 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10342 | else | |
10343 | cat >conftest.$ac_ext <<_ACEOF | |
10344 | #line $LINENO "configure" | |
10345 | /* confdefs.h. */ | |
10346 | _ACEOF | |
10347 | cat confdefs.h >>conftest.$ac_ext | |
10348 | cat >>conftest.$ac_ext <<_ACEOF | |
10349 | /* end confdefs.h. */ | |
10350 | ||
10351 | int | |
10352 | main () | |
10353 | { | |
10354 | ||
10355 | ; | |
10356 | return 0; | |
10357 | } | |
10358 | _ACEOF | |
10359 | rm -f conftest.$ac_objext | |
10360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10361 | (eval $ac_compile) 2>&5 | |
10362 | ac_status=$? | |
10363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10364 | (exit $ac_status); } && | |
10365 | { ac_try='test -s conftest.$ac_objext' | |
10366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10367 | (eval $ac_try) 2>&5 | |
10368 | ac_status=$? | |
10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10370 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10371 | ac_cv_prog_cc_g=yes |
10372 | else | |
e6cc62c6 VS |
10373 | echo "$as_me: failed program was:" >&5 |
10374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10375 | |
e6cc62c6 | 10376 | ac_cv_prog_cc_g=no |
10f2d63a | 10377 | fi |
e6cc62c6 VS |
10378 | rm -f conftest.$ac_objext conftest.$ac_ext |
10379 | fi | |
10380 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10381 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10382 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10383 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10384 | elif test $ac_cv_prog_cc_g = yes; then |
10385 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10386 | CFLAGS="-g -O2" |
10387 | else | |
f09359cf | 10388 | CFLAGS="-g" |
10f2d63a | 10389 | fi |
5c0a20c3 | 10390 | else |
f09359cf VS |
10391 | if test "$GCC" = yes; then |
10392 | CFLAGS="-O2" | |
10393 | else | |
10394 | CFLAGS= | |
10395 | fi | |
10f2d63a | 10396 | fi |
e6cc62c6 VS |
10397 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10398 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10399 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10401 | else | |
10402 | ac_cv_prog_cc_stdc=no | |
10403 | ac_save_CC=$CC | |
10404 | cat >conftest.$ac_ext <<_ACEOF | |
10405 | #line $LINENO "configure" | |
10406 | /* confdefs.h. */ | |
10407 | _ACEOF | |
10408 | cat confdefs.h >>conftest.$ac_ext | |
10409 | cat >>conftest.$ac_ext <<_ACEOF | |
10410 | /* end confdefs.h. */ | |
10411 | #include <stdarg.h> | |
10412 | #include <stdio.h> | |
10413 | #include <sys/types.h> | |
10414 | #include <sys/stat.h> | |
10415 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10416 | struct buf { int x; }; | |
10417 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10418 | static char *e (p, i) | |
10419 | char **p; | |
10420 | int i; | |
10421 | { | |
10422 | return p[i]; | |
10423 | } | |
10424 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10425 | { | |
10426 | char *s; | |
10427 | va_list v; | |
10428 | va_start (v,p); | |
10429 | s = g (p, va_arg (v,int)); | |
10430 | va_end (v); | |
10431 | return s; | |
10432 | } | |
10433 | int test (int i, double x); | |
10434 | struct s1 {int (*f) (int a);}; | |
10435 | struct s2 {int (*f) (double a);}; | |
10436 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10437 | int argc; | |
10438 | char **argv; | |
10439 | int | |
10440 | main () | |
10441 | { | |
10442 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10443 | ; | |
10444 | return 0; | |
10445 | } | |
10446 | _ACEOF | |
10447 | # Don't try gcc -ansi; that turns off useful extensions and | |
10448 | # breaks some systems' header files. | |
10449 | # AIX -qlanglvl=ansi | |
10450 | # Ultrix and OSF/1 -std1 | |
10451 | # HP-UX 10.20 and later -Ae | |
10452 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10453 | # SVR4 -Xc -D__EXTENSIONS__ | |
10454 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10455 | do | |
10456 | CC="$ac_save_CC $ac_arg" | |
10457 | rm -f conftest.$ac_objext | |
10458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10459 | (eval $ac_compile) 2>&5 | |
10460 | ac_status=$? | |
10461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10462 | (exit $ac_status); } && | |
10463 | { ac_try='test -s conftest.$ac_objext' | |
10464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10465 | (eval $ac_try) 2>&5 | |
10466 | ac_status=$? | |
10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10468 | (exit $ac_status); }; }; then | |
10469 | ac_cv_prog_cc_stdc=$ac_arg | |
10470 | break | |
10471 | else | |
10472 | echo "$as_me: failed program was:" >&5 | |
10473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10474 | ||
10475 | fi | |
10476 | rm -f conftest.$ac_objext | |
10477 | done | |
10478 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10479 | CC=$ac_save_CC | |
10480 | ||
10481 | fi | |
10482 | ||
10483 | case "x$ac_cv_prog_cc_stdc" in | |
10484 | x|xno) | |
10485 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10486 | echo "${ECHO_T}none needed" >&6 ;; | |
10487 | *) | |
10488 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10489 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10490 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10491 | esac | |
10492 | ||
10493 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10494 | # in C++ we need to declare it. In case someone uses the same compiler | |
10495 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10496 | # the declaration of exit, since it's the most demanding environment. | |
10497 | cat >conftest.$ac_ext <<_ACEOF | |
10498 | #ifndef __cplusplus | |
10499 | choke me | |
10500 | #endif | |
10501 | _ACEOF | |
10502 | rm -f conftest.$ac_objext | |
10503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10504 | (eval $ac_compile) 2>&5 | |
10505 | ac_status=$? | |
10506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10507 | (exit $ac_status); } && | |
10508 | { ac_try='test -s conftest.$ac_objext' | |
10509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10510 | (eval $ac_try) 2>&5 | |
10511 | ac_status=$? | |
10512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10513 | (exit $ac_status); }; }; then | |
10514 | for ac_declaration in \ | |
6f628073 VS |
10515 | ''\ |
10516 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
10517 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10518 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10519 | 'extern "C" void exit (int) throw ();' \ | |
10520 | 'extern "C" void exit (int);' \ | |
10521 | 'void exit (int);' | |
10522 | do | |
10523 | cat >conftest.$ac_ext <<_ACEOF | |
10524 | #line $LINENO "configure" | |
10525 | /* confdefs.h. */ | |
10526 | _ACEOF | |
10527 | cat confdefs.h >>conftest.$ac_ext | |
10528 | cat >>conftest.$ac_ext <<_ACEOF | |
10529 | /* end confdefs.h. */ | |
71e83a03 | 10530 | #include <stdlib.h> |
6f628073 | 10531 | $ac_declaration |
e6cc62c6 VS |
10532 | int |
10533 | main () | |
10534 | { | |
10535 | exit (42); | |
10536 | ; | |
10537 | return 0; | |
10538 | } | |
10539 | _ACEOF | |
10540 | rm -f conftest.$ac_objext | |
10541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10542 | (eval $ac_compile) 2>&5 | |
10543 | ac_status=$? | |
10544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10545 | (exit $ac_status); } && | |
10546 | { ac_try='test -s conftest.$ac_objext' | |
10547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10548 | (eval $ac_try) 2>&5 | |
10549 | ac_status=$? | |
10550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10551 | (exit $ac_status); }; }; then | |
10552 | : | |
10553 | else | |
10554 | echo "$as_me: failed program was:" >&5 | |
10555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10556 | ||
10557 | continue | |
10558 | fi | |
10559 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10560 | cat >conftest.$ac_ext <<_ACEOF | |
10561 | #line $LINENO "configure" | |
10562 | /* confdefs.h. */ | |
10563 | _ACEOF | |
10564 | cat confdefs.h >>conftest.$ac_ext | |
10565 | cat >>conftest.$ac_ext <<_ACEOF | |
10566 | /* end confdefs.h. */ | |
10567 | $ac_declaration | |
10568 | int | |
10569 | main () | |
10570 | { | |
10571 | exit (42); | |
10572 | ; | |
10573 | return 0; | |
10574 | } | |
10575 | _ACEOF | |
10576 | rm -f conftest.$ac_objext | |
10577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10578 | (eval $ac_compile) 2>&5 | |
10579 | ac_status=$? | |
10580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10581 | (exit $ac_status); } && | |
10582 | { ac_try='test -s conftest.$ac_objext' | |
10583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10584 | (eval $ac_try) 2>&5 | |
10585 | ac_status=$? | |
10586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10587 | (exit $ac_status); }; }; then | |
10588 | break | |
10589 | else | |
10590 | echo "$as_me: failed program was:" >&5 | |
10591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10592 | ||
10593 | fi | |
10594 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10595 | done | |
10596 | rm -f conftest* | |
10597 | if test -n "$ac_declaration"; then | |
10598 | echo '#ifdef __cplusplus' >>confdefs.h | |
10599 | echo $ac_declaration >>confdefs.h | |
10600 | echo '#endif' >>confdefs.h | |
10601 | fi | |
10602 | ||
10603 | else | |
10604 | echo "$as_me: failed program was:" >&5 | |
10605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10606 | ||
10607 | fi | |
10608 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10609 | ac_ext=c | |
10610 | ac_cpp='$CPP $CPPFLAGS' | |
10611 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10612 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10613 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10614 | |
10615 | ||
e6cc62c6 VS |
10616 | |
10617 | ac_ext=c | |
10618 | ac_cpp='$CPP $CPPFLAGS' | |
10619 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10620 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10621 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10622 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10623 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10624 | # On Suns, sometimes $CPP names a directory. |
10625 | if test -n "$CPP" && test -d "$CPP"; then | |
10626 | CPP= | |
10627 | fi | |
10628 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10629 | if test "${ac_cv_prog_CPP+set}" = set; then |
10630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10631 | else | |
10632 | # Double quotes because CPP needs to be expanded | |
10633 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10634 | do | |
10635 | ac_preproc_ok=false | |
10636 | for ac_c_preproc_warn_flag in '' yes | |
10637 | do | |
10638 | # Use a header file that comes with gcc, so configuring glibc | |
10639 | # with a fresh cross-compiler works. | |
10640 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10641 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10642 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10643 | # not just through cpp. "Syntax error" is here to catch this case. |
10644 | cat >conftest.$ac_ext <<_ACEOF | |
10645 | #line $LINENO "configure" | |
10646 | /* confdefs.h. */ | |
10647 | _ACEOF | |
10648 | cat confdefs.h >>conftest.$ac_ext | |
10649 | cat >>conftest.$ac_ext <<_ACEOF | |
10650 | /* end confdefs.h. */ | |
10651 | #ifdef __STDC__ | |
10652 | # include <limits.h> | |
10653 | #else | |
10654 | # include <assert.h> | |
10655 | #endif | |
10656 | Syntax error | |
10657 | _ACEOF | |
10658 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10659 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10660 | ac_status=$? | |
10661 | grep -v '^ *+' conftest.er1 >conftest.err | |
10662 | rm -f conftest.er1 | |
10663 | cat conftest.err >&5 | |
10664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10665 | (exit $ac_status); } >/dev/null; then | |
10666 | if test -s conftest.err; then | |
10667 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10668 | else | |
10669 | ac_cpp_err= | |
10670 | fi | |
10f2d63a | 10671 | else |
e6cc62c6 VS |
10672 | ac_cpp_err=yes |
10673 | fi | |
10674 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10675 | : |
247f5006 | 10676 | else |
e6cc62c6 VS |
10677 | echo "$as_me: failed program was:" >&5 |
10678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10679 | ||
10680 | # Broken: fails on valid input. | |
10681 | continue | |
10682 | fi | |
10683 | rm -f conftest.err conftest.$ac_ext | |
10684 | ||
10685 | # OK, works on sane cases. Now check whether non-existent headers | |
10686 | # can be detected and how. | |
10687 | cat >conftest.$ac_ext <<_ACEOF | |
10688 | #line $LINENO "configure" | |
10689 | /* confdefs.h. */ | |
10690 | _ACEOF | |
10691 | cat confdefs.h >>conftest.$ac_ext | |
10692 | cat >>conftest.$ac_ext <<_ACEOF | |
10693 | /* end confdefs.h. */ | |
10694 | #include <ac_nonexistent.h> | |
10695 | _ACEOF | |
10696 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10697 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10698 | ac_status=$? | |
10699 | grep -v '^ *+' conftest.er1 >conftest.err | |
10700 | rm -f conftest.er1 | |
10701 | cat conftest.err >&5 | |
10702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10703 | (exit $ac_status); } >/dev/null; then | |
10704 | if test -s conftest.err; then | |
10705 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10706 | else | |
10707 | ac_cpp_err= | |
10708 | fi | |
10f2d63a | 10709 | else |
e6cc62c6 | 10710 | ac_cpp_err=yes |
579d8138 | 10711 | fi |
e6cc62c6 VS |
10712 | if test -z "$ac_cpp_err"; then |
10713 | # Broken: success on invalid input. | |
10714 | continue | |
10715 | else | |
10716 | echo "$as_me: failed program was:" >&5 | |
10717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10718 | ||
10719 | # Passes both tests. | |
10720 | ac_preproc_ok=: | |
10721 | break | |
52127426 | 10722 | fi |
e6cc62c6 VS |
10723 | rm -f conftest.err conftest.$ac_ext |
10724 | ||
10725 | done | |
10726 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10727 | rm -f conftest.err conftest.$ac_ext | |
10728 | if $ac_preproc_ok; then | |
10729 | break | |
8284b0c5 | 10730 | fi |
e6cc62c6 VS |
10731 | |
10732 | done | |
10733 | ac_cv_prog_CPP=$CPP | |
10734 | ||
10735 | fi | |
10736 | CPP=$ac_cv_prog_CPP | |
10737 | else | |
10738 | ac_cv_prog_CPP=$CPP | |
10739 | fi | |
10740 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10741 | echo "${ECHO_T}$CPP" >&6 | |
10742 | ac_preproc_ok=false | |
10743 | for ac_c_preproc_warn_flag in '' yes | |
10744 | do | |
10745 | # Use a header file that comes with gcc, so configuring glibc | |
10746 | # with a fresh cross-compiler works. | |
10747 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10748 | # <limits.h> exists even on freestanding compilers. | |
10749 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10750 | # not just through cpp. "Syntax error" is here to catch this case. | |
10751 | cat >conftest.$ac_ext <<_ACEOF | |
10752 | #line $LINENO "configure" | |
10753 | /* confdefs.h. */ | |
10754 | _ACEOF | |
10755 | cat confdefs.h >>conftest.$ac_ext | |
10756 | cat >>conftest.$ac_ext <<_ACEOF | |
10757 | /* end confdefs.h. */ | |
10758 | #ifdef __STDC__ | |
10759 | # include <limits.h> | |
10760 | #else | |
10761 | # include <assert.h> | |
10762 | #endif | |
10763 | Syntax error | |
10764 | _ACEOF | |
10765 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10766 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10767 | ac_status=$? | |
10768 | grep -v '^ *+' conftest.er1 >conftest.err | |
10769 | rm -f conftest.er1 | |
10770 | cat conftest.err >&5 | |
10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10772 | (exit $ac_status); } >/dev/null; then | |
10773 | if test -s conftest.err; then | |
10774 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10775 | else | |
10776 | ac_cpp_err= | |
10777 | fi | |
10778 | else | |
10779 | ac_cpp_err=yes | |
10780 | fi | |
10781 | if test -z "$ac_cpp_err"; then | |
10782 | : | |
10783 | else | |
10784 | echo "$as_me: failed program was:" >&5 | |
10785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10786 | ||
10787 | # Broken: fails on valid input. | |
10788 | continue | |
10789 | fi | |
10790 | rm -f conftest.err conftest.$ac_ext | |
10791 | ||
10792 | # OK, works on sane cases. Now check whether non-existent headers | |
10793 | # can be detected and how. | |
10794 | cat >conftest.$ac_ext <<_ACEOF | |
10795 | #line $LINENO "configure" | |
10796 | /* confdefs.h. */ | |
10797 | _ACEOF | |
10798 | cat confdefs.h >>conftest.$ac_ext | |
10799 | cat >>conftest.$ac_ext <<_ACEOF | |
10800 | /* end confdefs.h. */ | |
10801 | #include <ac_nonexistent.h> | |
10802 | _ACEOF | |
10803 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10804 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10805 | ac_status=$? | |
10806 | grep -v '^ *+' conftest.er1 >conftest.err | |
10807 | rm -f conftest.er1 | |
10808 | cat conftest.err >&5 | |
10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10810 | (exit $ac_status); } >/dev/null; then | |
10811 | if test -s conftest.err; then | |
10812 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10813 | else | |
10814 | ac_cpp_err= | |
10815 | fi | |
10816 | else | |
10817 | ac_cpp_err=yes | |
10818 | fi | |
10819 | if test -z "$ac_cpp_err"; then | |
10820 | # Broken: success on invalid input. | |
10821 | continue | |
10822 | else | |
10823 | echo "$as_me: failed program was:" >&5 | |
10824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10825 | ||
10826 | # Passes both tests. | |
10827 | ac_preproc_ok=: | |
10828 | break | |
a0b9e27f | 10829 | fi |
e6cc62c6 VS |
10830 | rm -f conftest.err conftest.$ac_ext |
10831 | ||
10832 | done | |
10833 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10834 | rm -f conftest.err conftest.$ac_ext | |
10835 | if $ac_preproc_ok; then | |
10836 | : | |
10837 | else | |
10838 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
10839 | See \`config.log' for more details." >&5 | |
10840 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
10841 | See \`config.log' for more details." >&2;} | |
10842 | { (exit 1); exit 1; }; } | |
10843 | fi | |
10844 | ||
10845 | ac_ext=c | |
10846 | ac_cpp='$CPP $CPPFLAGS' | |
10847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10850 | ||
10851 | ||
10852 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
10853 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
10854 | if test "${ac_cv_prog_egrep+set}" = set; then | |
10855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 10856 | else |
e6cc62c6 VS |
10857 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
10858 | then ac_cv_prog_egrep='grep -E' | |
10859 | else ac_cv_prog_egrep='egrep' | |
10860 | fi | |
10f2d63a | 10861 | fi |
e6cc62c6 VS |
10862 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
10863 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
10864 | EGREP=$ac_cv_prog_egrep | |
10865 | ||
10f2d63a | 10866 | |
e6cc62c6 VS |
10867 | if test $ac_cv_c_compiler_gnu = yes; then |
10868 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
10869 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
10870 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
10871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10872 | else |
10873 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 VS |
10874 | cat >conftest.$ac_ext <<_ACEOF |
10875 | #line $LINENO "configure" | |
10876 | /* confdefs.h. */ | |
10877 | _ACEOF | |
10878 | cat confdefs.h >>conftest.$ac_ext | |
10879 | cat >>conftest.$ac_ext <<_ACEOF | |
10880 | /* end confdefs.h. */ | |
10f2d63a VZ |
10881 | #include <sgtty.h> |
10882 | Autoconf TIOCGETP | |
e6cc62c6 | 10883 | _ACEOF |
10f2d63a | 10884 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10885 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10886 | ac_cv_prog_gcc_traditional=yes |
10887 | else | |
10f2d63a VZ |
10888 | ac_cv_prog_gcc_traditional=no |
10889 | fi | |
10890 | rm -f conftest* | |
10891 | ||
8284b0c5 | 10892 | |
10f2d63a | 10893 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 VS |
10894 | cat >conftest.$ac_ext <<_ACEOF |
10895 | #line $LINENO "configure" | |
10896 | /* confdefs.h. */ | |
10897 | _ACEOF | |
10898 | cat confdefs.h >>conftest.$ac_ext | |
10899 | cat >>conftest.$ac_ext <<_ACEOF | |
10900 | /* end confdefs.h. */ | |
10f2d63a VZ |
10901 | #include <termio.h> |
10902 | Autoconf TCGETA | |
e6cc62c6 | 10903 | _ACEOF |
10f2d63a | 10904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10905 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10906 | ac_cv_prog_gcc_traditional=yes |
10907 | fi | |
10908 | rm -f conftest* | |
10909 | ||
10910 | fi | |
10911 | fi | |
e6cc62c6 VS |
10912 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
10913 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
10914 | if test $ac_cv_prog_gcc_traditional = yes; then |
10915 | CC="$CC -traditional" | |
10916 | fi | |
10917 | fi | |
10918 | ||
8284b0c5 MB |
10919 | |
10920 | ||
e6cc62c6 VS |
10921 | |
10922 | ac_ext=cc | |
1e487827 | 10923 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
10924 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10925 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10926 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 10927 | |
698dcdb6 | 10928 | |
ec603395 | 10929 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
10930 | ac_ext=cc |
10931 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10932 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10933 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10934 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10935 | if test -n "$ac_tool_prefix"; then | |
10936 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10937 | do | |
10938 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10939 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10942 | if test "${ac_cv_prog_CXX+set}" = set; then | |
10943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10944 | else |
10945 | if test -n "$CXX"; then | |
10946 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10947 | else | |
e6cc62c6 VS |
10948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10949 | for as_dir in $PATH | |
10950 | do | |
10951 | IFS=$as_save_IFS | |
10952 | test -z "$as_dir" && as_dir=. | |
10953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10955 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10957 | break 2 | |
10958 | fi | |
10959 | done | |
10960 | done | |
10961 | ||
10f2d63a VZ |
10962 | fi |
10963 | fi | |
e6cc62c6 | 10964 | CXX=$ac_cv_prog_CXX |
10f2d63a | 10965 | if test -n "$CXX"; then |
e6cc62c6 VS |
10966 | echo "$as_me:$LINENO: result: $CXX" >&5 |
10967 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 10968 | else |
e6cc62c6 VS |
10969 | echo "$as_me:$LINENO: result: no" >&5 |
10970 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10971 | fi |
10972 | ||
e6cc62c6 VS |
10973 | test -n "$CXX" && break |
10974 | done | |
10975 | fi | |
10976 | if test -z "$CXX"; then | |
10977 | ac_ct_CXX=$CXX | |
10978 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10979 | do | |
10980 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10981 | set dummy $ac_prog; ac_word=$2 | |
10982 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10984 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
10985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10986 | else | |
10987 | if test -n "$ac_ct_CXX"; then | |
10988 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10989 | else | |
10990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10991 | for as_dir in $PATH | |
10992 | do | |
10993 | IFS=$as_save_IFS | |
10994 | test -z "$as_dir" && as_dir=. | |
10995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10996 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10997 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10999 | break 2 | |
11000 | fi | |
11001 | done | |
10f2d63a | 11002 | done |
a0b9e27f | 11003 | |
8284b0c5 | 11004 | fi |
a0b9e27f | 11005 | fi |
e6cc62c6 VS |
11006 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
11007 | if test -n "$ac_ct_CXX"; then | |
11008 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11009 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11010 | else | |
11011 | echo "$as_me:$LINENO: result: no" >&5 | |
11012 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 11013 | fi |
10f2d63a | 11014 | |
e6cc62c6 VS |
11015 | test -n "$ac_ct_CXX" && break |
11016 | done | |
11017 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11018 | ||
11019 | CXX=$ac_ct_CXX | |
11020 | fi | |
11021 | ||
11022 | ||
11023 | # Provide some information about the compiler. | |
11024 | echo "$as_me:$LINENO:" \ | |
11025 | "checking for C++ compiler version" >&5 | |
11026 | ac_compiler=`set X $ac_compile; echo $2` | |
11027 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11028 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11029 | ac_status=$? | |
11030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11031 | (exit $ac_status); } | |
11032 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11033 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11034 | ac_status=$? | |
11035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11036 | (exit $ac_status); } | |
11037 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11038 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11039 | ac_status=$? | |
11040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11041 | (exit $ac_status); } | |
11042 | ||
11043 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11044 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11045 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11047 | else | |
11048 | cat >conftest.$ac_ext <<_ACEOF | |
11049 | #line $LINENO "configure" | |
11050 | /* confdefs.h. */ | |
11051 | _ACEOF | |
11052 | cat confdefs.h >>conftest.$ac_ext | |
11053 | cat >>conftest.$ac_ext <<_ACEOF | |
11054 | /* end confdefs.h. */ | |
11055 | ||
11056 | int | |
11057 | main () | |
11058 | { | |
11059 | #ifndef __GNUC__ | |
11060 | choke me | |
11061 | #endif | |
10f2d63a | 11062 | |
e6cc62c6 VS |
11063 | ; |
11064 | return 0; | |
11065 | } | |
11066 | _ACEOF | |
11067 | rm -f conftest.$ac_objext | |
11068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11069 | (eval $ac_compile) 2>&5 | |
11070 | ac_status=$? | |
11071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11072 | (exit $ac_status); } && | |
11073 | { ac_try='test -s conftest.$ac_objext' | |
11074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11075 | (eval $ac_try) 2>&5 | |
11076 | ac_status=$? | |
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11078 | (exit $ac_status); }; }; then | |
11079 | ac_compiler_gnu=yes | |
11080 | else | |
11081 | echo "$as_me: failed program was:" >&5 | |
11082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11083 | ||
11084 | ac_compiler_gnu=no | |
11085 | fi | |
11086 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11087 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11088 | ||
11089 | fi | |
11090 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11091 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11092 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11093 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11094 | ac_save_CXXFLAGS=$CXXFLAGS | |
11095 | CXXFLAGS="-g" | |
11096 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11097 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11098 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11100 | else | |
11101 | cat >conftest.$ac_ext <<_ACEOF | |
11102 | #line $LINENO "configure" | |
11103 | /* confdefs.h. */ | |
11104 | _ACEOF | |
11105 | cat confdefs.h >>conftest.$ac_ext | |
11106 | cat >>conftest.$ac_ext <<_ACEOF | |
11107 | /* end confdefs.h. */ | |
11108 | ||
11109 | int | |
11110 | main () | |
11111 | { | |
f09359cf | 11112 | |
e6cc62c6 VS |
11113 | ; |
11114 | return 0; | |
11115 | } | |
11116 | _ACEOF | |
11117 | rm -f conftest.$ac_objext | |
11118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11119 | (eval $ac_compile) 2>&5 | |
11120 | ac_status=$? | |
11121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11122 | (exit $ac_status); } && | |
11123 | { ac_try='test -s conftest.$ac_objext' | |
11124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11125 | (eval $ac_try) 2>&5 | |
11126 | ac_status=$? | |
11127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11128 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11129 | ac_cv_prog_cxx_g=yes |
11130 | else | |
e6cc62c6 VS |
11131 | echo "$as_me: failed program was:" >&5 |
11132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11133 | |
e6cc62c6 | 11134 | ac_cv_prog_cxx_g=no |
10f2d63a | 11135 | fi |
e6cc62c6 VS |
11136 | rm -f conftest.$ac_objext conftest.$ac_ext |
11137 | fi | |
11138 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11139 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11140 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11141 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11142 | elif test $ac_cv_prog_cxx_g = yes; then |
11143 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11144 | CXXFLAGS="-g -O2" |
11145 | else | |
f09359cf | 11146 | CXXFLAGS="-g" |
10f2d63a | 11147 | fi |
5c0a20c3 | 11148 | else |
f09359cf VS |
11149 | if test "$GXX" = yes; then |
11150 | CXXFLAGS="-O2" | |
11151 | else | |
11152 | CXXFLAGS= | |
11153 | fi | |
10f2d63a | 11154 | fi |
e6cc62c6 | 11155 | for ac_declaration in \ |
6f628073 VS |
11156 | ''\ |
11157 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
11158 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11159 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11160 | 'extern "C" void exit (int) throw ();' \ | |
11161 | 'extern "C" void exit (int);' \ | |
11162 | 'void exit (int);' | |
11163 | do | |
11164 | cat >conftest.$ac_ext <<_ACEOF | |
11165 | #line $LINENO "configure" | |
11166 | /* confdefs.h. */ | |
11167 | _ACEOF | |
11168 | cat confdefs.h >>conftest.$ac_ext | |
11169 | cat >>conftest.$ac_ext <<_ACEOF | |
11170 | /* end confdefs.h. */ | |
71e83a03 | 11171 | #include <stdlib.h> |
6f628073 | 11172 | $ac_declaration |
e6cc62c6 VS |
11173 | int |
11174 | main () | |
11175 | { | |
11176 | exit (42); | |
11177 | ; | |
11178 | return 0; | |
11179 | } | |
11180 | _ACEOF | |
11181 | rm -f conftest.$ac_objext | |
11182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11183 | (eval $ac_compile) 2>&5 | |
11184 | ac_status=$? | |
11185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11186 | (exit $ac_status); } && | |
11187 | { ac_try='test -s conftest.$ac_objext' | |
11188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11189 | (eval $ac_try) 2>&5 | |
11190 | ac_status=$? | |
11191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11192 | (exit $ac_status); }; }; then | |
11193 | : | |
11194 | else | |
11195 | echo "$as_me: failed program was:" >&5 | |
11196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11197 | ||
11198 | continue | |
11199 | fi | |
11200 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11201 | cat >conftest.$ac_ext <<_ACEOF | |
11202 | #line $LINENO "configure" | |
11203 | /* confdefs.h. */ | |
11204 | _ACEOF | |
11205 | cat confdefs.h >>conftest.$ac_ext | |
11206 | cat >>conftest.$ac_ext <<_ACEOF | |
11207 | /* end confdefs.h. */ | |
11208 | $ac_declaration | |
11209 | int | |
11210 | main () | |
11211 | { | |
11212 | exit (42); | |
11213 | ; | |
11214 | return 0; | |
11215 | } | |
11216 | _ACEOF | |
11217 | rm -f conftest.$ac_objext | |
11218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11219 | (eval $ac_compile) 2>&5 | |
11220 | ac_status=$? | |
11221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11222 | (exit $ac_status); } && | |
11223 | { ac_try='test -s conftest.$ac_objext' | |
11224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11225 | (eval $ac_try) 2>&5 | |
11226 | ac_status=$? | |
11227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11228 | (exit $ac_status); }; }; then | |
11229 | break | |
11230 | else | |
11231 | echo "$as_me: failed program was:" >&5 | |
11232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11233 | ||
11234 | fi | |
11235 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11236 | done | |
11237 | rm -f conftest* | |
11238 | if test -n "$ac_declaration"; then | |
11239 | echo '#ifdef __cplusplus' >>confdefs.h | |
11240 | echo $ac_declaration >>confdefs.h | |
11241 | echo '#endif' >>confdefs.h | |
11242 | fi | |
11243 | ||
11244 | ac_ext=cc | |
11245 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11246 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11247 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11248 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11249 | |
11250 | ||
10f2d63a | 11251 | ac_ext=c |
10f2d63a | 11252 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11256 | |
11257 | ||
e6cc62c6 VS |
11258 | if test -n "$ac_tool_prefix"; then |
11259 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11260 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11261 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11263 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11265 | else |
11266 | if test -n "$RANLIB"; then | |
11267 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11268 | else | |
e6cc62c6 VS |
11269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11270 | for as_dir in $PATH | |
11271 | do | |
11272 | IFS=$as_save_IFS | |
11273 | test -z "$as_dir" && as_dir=. | |
11274 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11275 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11276 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11277 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11278 | break 2 | |
11279 | fi | |
11280 | done | |
11281 | done | |
11282 | ||
10f2d63a VZ |
11283 | fi |
11284 | fi | |
e6cc62c6 | 11285 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11286 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11287 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11288 | echo "${ECHO_T}$RANLIB" >&6 | |
11289 | else | |
11290 | echo "$as_me:$LINENO: result: no" >&5 | |
11291 | echo "${ECHO_T}no" >&6 | |
11292 | fi | |
11293 | ||
11294 | fi | |
11295 | if test -z "$ac_cv_prog_RANLIB"; then | |
11296 | ac_ct_RANLIB=$RANLIB | |
11297 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11298 | set dummy ranlib; ac_word=$2 | |
11299 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11300 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11301 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11303 | else |
e6cc62c6 VS |
11304 | if test -n "$ac_ct_RANLIB"; then |
11305 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11306 | else | |
11307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11308 | for as_dir in $PATH | |
11309 | do | |
11310 | IFS=$as_save_IFS | |
11311 | test -z "$as_dir" && as_dir=. | |
11312 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11313 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11314 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11315 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11316 | break 2 | |
11317 | fi | |
11318 | done | |
11319 | done | |
11320 | ||
11321 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11322 | fi | |
11323 | fi | |
11324 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11325 | if test -n "$ac_ct_RANLIB"; then | |
11326 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11327 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11328 | else | |
11329 | echo "$as_me:$LINENO: result: no" >&5 | |
11330 | echo "${ECHO_T}no" >&6 | |
11331 | fi | |
11332 | ||
11333 | RANLIB=$ac_ct_RANLIB | |
11334 | else | |
11335 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11336 | fi |
11337 | ||
10f2d63a VZ |
11338 | |
11339 | # Extract the first word of "ar", so it can be a program name with args. | |
11340 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11341 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11343 | if test "${ac_cv_prog_AR+set}" = set; then | |
11344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11345 | else |
11346 | if test -n "$AR"; then | |
11347 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11348 | else | |
e6cc62c6 VS |
11349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11350 | for as_dir in $PATH | |
11351 | do | |
11352 | IFS=$as_save_IFS | |
11353 | test -z "$as_dir" && as_dir=. | |
11354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11355 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11356 | ac_cv_prog_AR="ar" | |
11357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11358 | break 2 | |
11359 | fi | |
11360 | done | |
11361 | done | |
11362 | ||
10f2d63a VZ |
11363 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
11364 | fi | |
11365 | fi | |
e6cc62c6 | 11366 | AR=$ac_cv_prog_AR |
10f2d63a | 11367 | if test -n "$AR"; then |
e6cc62c6 VS |
11368 | echo "$as_me:$LINENO: result: $AR" >&5 |
11369 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11370 | else |
e6cc62c6 VS |
11371 | echo "$as_me:$LINENO: result: no" >&5 |
11372 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11373 | fi |
11374 | ||
8284b0c5 | 11375 | |
6054113a | 11376 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11377 | # so one script is as good as another. But avoid the broken or |
11378 | # incompatible versions: | |
11379 | # SysV /etc/install, /usr/sbin/install | |
11380 | # SunOS /usr/etc/install | |
11381 | # IRIX /sbin/install | |
11382 | # AIX /bin/install | |
e6cc62c6 | 11383 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11384 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11385 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11386 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11387 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
11388 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11389 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11390 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11391 | if test "${ac_cv_path_install+set}" = set; then |
11392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11393 | else | |
11394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11395 | for as_dir in $PATH | |
11396 | do | |
11397 | IFS=$as_save_IFS | |
11398 | test -z "$as_dir" && as_dir=. | |
11399 | # Account for people who put trailing slashes in PATH elements. | |
11400 | case $as_dir/ in | |
11401 | ./ | .// | /cC/* | \ | |
11402 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11403 | /usr/ucb/* ) ;; | |
11404 | *) | |
11405 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11406 | # Don't use installbsd from OSF since it installs stuff as root | |
11407 | # by default. | |
11408 | for ac_prog in ginstall scoinst install; do | |
11409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11410 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11411 | if test $ac_prog = install && | |
11412 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11413 | # AIX install. It has an incompatible calling convention. | |
11414 | : | |
11415 | elif test $ac_prog = install && | |
11416 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11417 | # program-specific install script used by HP pwplus--don't use. | |
11418 | : | |
11419 | else | |
11420 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11421 | break 3 | |
11422 | fi | |
11423 | fi | |
10f2d63a | 11424 | done |
e6cc62c6 VS |
11425 | done |
11426 | ;; | |
11427 | esac | |
11428 | done | |
11429 | ||
10f2d63a VZ |
11430 | |
11431 | fi | |
11432 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11433 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11434 | else |
11435 | # As a last resort, use the slow shell script. We don't cache a | |
11436 | # path for INSTALL within a source directory, because that will | |
11437 | # break other packages using the cache if that directory is | |
11438 | # removed, or if the path is relative. | |
e6cc62c6 | 11439 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11440 | fi |
11441 | fi | |
e6cc62c6 VS |
11442 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11443 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11444 | |
11445 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11446 | # It thinks the first close brace ends the variable substitution. | |
11447 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11448 | ||
e6cc62c6 | 11449 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11450 | |
10f2d63a VZ |
11451 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11452 | ||
8284b0c5 | 11453 | |
1d1b75ac VZ |
11454 | case ${INSTALL} in |
11455 | /* ) # Absolute | |
11456 | ;; | |
4f5a7f74 VZ |
11457 | ?:* ) # Drive letter, considered as absolute. |
11458 | ;; | |
3bd8fb5f | 11459 | *) |
1d1b75ac VZ |
11460 | INSTALL=`pwd`/${INSTALL} ;; |
11461 | esac | |
11462 | ||
4f5a7f74 VZ |
11463 | case ${host} in |
11464 | *-hp-hpux* ) | |
11465 | INSTALL_DIR="mkdir" | |
11466 | ;; | |
11467 | ||
11468 | *) INSTALL_DIR="$INSTALL -d" | |
11469 | ;; | |
11470 | esac | |
11471 | ||
8284b0c5 | 11472 | |
6054113a GD |
11473 | case "${host}" in |
11474 | ||
b5853384 | 11475 | powerpc-*-darwin* ) |
eb99ae0b GD |
11476 | INSTALL_PROGRAM="cp -fp" |
11477 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11478 | ;; |
11479 | *) | |
11480 | ;; | |
d6853540 | 11481 | esac |
698dcdb6 | 11482 | |
10f2d63a VZ |
11483 | # Extract the first word of "strip", so it can be a program name with args. |
11484 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11485 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11487 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11489 | else |
11490 | if test -n "$STRIP"; then | |
11491 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11492 | else | |
e6cc62c6 VS |
11493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11494 | for as_dir in $PATH | |
11495 | do | |
11496 | IFS=$as_save_IFS | |
11497 | test -z "$as_dir" && as_dir=. | |
11498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11499 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11500 | ac_cv_prog_STRIP="strip" | |
11501 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11502 | break 2 | |
11503 | fi | |
11504 | done | |
11505 | done | |
11506 | ||
10f2d63a VZ |
11507 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11508 | fi | |
11509 | fi | |
e6cc62c6 | 11510 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11511 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11512 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11513 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11514 | else |
e6cc62c6 VS |
11515 | echo "$as_me:$LINENO: result: no" >&5 |
11516 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11517 | fi |
11518 | ||
5c6fa7d2 | 11519 | |
e6cc62c6 VS |
11520 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11521 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11522 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11524 | else |
e6cc62c6 | 11525 | |
414eab6d | 11526 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11527 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11528 | wx_cv_prog_makeisgnu="yes" |
11529 | else | |
11530 | wx_cv_prog_makeisgnu="no" | |
11531 | fi | |
11532 | ||
11533 | fi | |
e6cc62c6 VS |
11534 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11535 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11536 | |
11537 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11538 | IF_GNU_MAKE="" | |
11539 | else | |
11540 | IF_GNU_MAKE="#" | |
11541 | fi | |
11542 | ||
8284b0c5 MB |
11543 | |
11544 | ||
414eab6d | 11545 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11546 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11547 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11548 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11550 | else |
e6cc62c6 | 11551 | |
10f2d63a VZ |
11552 | cat - << EOF > confMake |
11553 | check : file | |
11554 | cp \$? \$@ | |
11555 | cp \$? final_file | |
11556 | EOF | |
11557 | ||
11558 | if test ! -d sub ; then | |
11559 | mkdir sub | |
11560 | fi | |
11561 | echo dummy > sub/file | |
f6bcfd97 | 11562 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11563 | RESULT=$? |
11564 | rm -f sub/file check final_file confMake | |
11565 | rmdir sub | |
11566 | if test "$RESULT" = 0; then | |
04e7a216 | 11567 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11568 | else |
04e7a216 VZ |
11569 | wx_cv_prog_makevpath="no" |
11570 | fi | |
11571 | ||
11572 | fi | |
e6cc62c6 VS |
11573 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11574 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11575 | |
11576 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11577 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11578 | You need a make-utility that is able to use the variable |
11579 | VPATH correctly. | |
11580 | If your version of make does not support VPATH correctly, | |
11581 | please install GNU-make (possibly as gmake), and start | |
11582 | configure with the following command: | |
11583 | export MAKE=gmake; ./configure for sh-type shells | |
11584 | setenv MAKE gmake; ./configure for csh-type shells | |
11585 | Also please do remember to use gmake in this case every time | |
11586 | you are trying to compile. | |
e6cc62c6 VS |
11587 | " >&5 |
11588 | echo "$as_me: error: | |
11589 | You need a make-utility that is able to use the variable | |
11590 | VPATH correctly. | |
11591 | If your version of make does not support VPATH correctly, | |
11592 | please install GNU-make (possibly as gmake), and start | |
11593 | configure with the following command: | |
11594 | export MAKE=gmake; ./configure for sh-type shells | |
11595 | setenv MAKE gmake; ./configure for csh-type shells | |
11596 | Also please do remember to use gmake in this case every time | |
11597 | you are trying to compile. | |
11598 | " >&2;} | |
11599 | { (exit 1); exit 1; }; } | |
11600 | fi fi | |
10f2d63a VZ |
11601 | for ac_prog in 'bison -y' byacc |
11602 | do | |
e6cc62c6 | 11603 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 11604 | set dummy $ac_prog; ac_word=$2 |
e6cc62c6 VS |
11605 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11606 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11607 | if test "${ac_cv_prog_YACC+set}" = set; then | |
11608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11609 | else |
11610 | if test -n "$YACC"; then | |
11611 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
11612 | else | |
e6cc62c6 VS |
11613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11614 | for as_dir in $PATH | |
11615 | do | |
11616 | IFS=$as_save_IFS | |
11617 | test -z "$as_dir" && as_dir=. | |
11618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11619 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11620 | ac_cv_prog_YACC="$ac_prog" | |
11621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11622 | break 2 | |
11623 | fi | |
11624 | done | |
11625 | done | |
11626 | ||
10f2d63a VZ |
11627 | fi |
11628 | fi | |
e6cc62c6 | 11629 | YACC=$ac_cv_prog_YACC |
10f2d63a | 11630 | if test -n "$YACC"; then |
e6cc62c6 VS |
11631 | echo "$as_me:$LINENO: result: $YACC" >&5 |
11632 | echo "${ECHO_T}$YACC" >&6 | |
10f2d63a | 11633 | else |
e6cc62c6 VS |
11634 | echo "$as_me:$LINENO: result: no" >&5 |
11635 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11636 | fi |
11637 | ||
e6cc62c6 | 11638 | test -n "$YACC" && break |
10f2d63a VZ |
11639 | done |
11640 | test -n "$YACC" || YACC="yacc" | |
11641 | ||
8284b0c5 | 11642 | |
e6cc62c6 VS |
11643 | for ac_prog in flex lex |
11644 | do | |
11645 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11646 | set dummy $ac_prog; ac_word=$2 | |
11647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11649 | if test "${ac_cv_prog_LEX+set}" = set; then | |
11650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11651 | else |
11652 | if test -n "$LEX"; then | |
11653 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
11654 | else | |
e6cc62c6 VS |
11655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11656 | for as_dir in $PATH | |
11657 | do | |
11658 | IFS=$as_save_IFS | |
11659 | test -z "$as_dir" && as_dir=. | |
11660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11662 | ac_cv_prog_LEX="$ac_prog" | |
11663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11664 | break 2 | |
11665 | fi | |
11666 | done | |
11667 | done | |
11668 | ||
10f2d63a VZ |
11669 | fi |
11670 | fi | |
e6cc62c6 | 11671 | LEX=$ac_cv_prog_LEX |
10f2d63a | 11672 | if test -n "$LEX"; then |
e6cc62c6 VS |
11673 | echo "$as_me:$LINENO: result: $LEX" >&5 |
11674 | echo "${ECHO_T}$LEX" >&6 | |
10f2d63a | 11675 | else |
e6cc62c6 VS |
11676 | echo "$as_me:$LINENO: result: no" >&5 |
11677 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11678 | fi |
11679 | ||
e6cc62c6 VS |
11680 | test -n "$LEX" && break |
11681 | done | |
11682 | test -n "$LEX" || LEX=":" | |
11683 | ||
10f2d63a VZ |
11684 | if test -z "$LEXLIB" |
11685 | then | |
e6cc62c6 VS |
11686 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
11687 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
11688 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
11689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11690 | else | |
11691 | ac_check_lib_save_LIBS=$LIBS | |
11692 | LIBS="-lfl $LIBS" | |
11693 | cat >conftest.$ac_ext <<_ACEOF | |
11694 | #line $LINENO "configure" | |
11695 | /* confdefs.h. */ | |
11696 | _ACEOF | |
11697 | cat confdefs.h >>conftest.$ac_ext | |
11698 | cat >>conftest.$ac_ext <<_ACEOF | |
11699 | /* end confdefs.h. */ | |
11700 | ||
11701 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11702 | #ifdef __cplusplus | |
11703 | extern "C" | |
11704 | #endif | |
11705 | /* We use char because int might match the return type of a gcc2 | |
11706 | builtin and then its argument prototype would still apply. */ | |
11707 | char yywrap (); | |
11708 | int | |
11709 | main () | |
11710 | { | |
11711 | yywrap (); | |
11712 | ; | |
11713 | return 0; | |
11714 | } | |
11715 | _ACEOF | |
11716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11718 | (eval $ac_link) 2>&5 | |
11719 | ac_status=$? | |
11720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11721 | (exit $ac_status); } && | |
11722 | { ac_try='test -s conftest$ac_exeext' | |
11723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11724 | (eval $ac_try) 2>&5 | |
11725 | ac_status=$? | |
11726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11727 | (exit $ac_status); }; }; then | |
11728 | ac_cv_lib_fl_yywrap=yes | |
11729 | else | |
11730 | echo "$as_me: failed program was:" >&5 | |
11731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11732 | ||
11733 | ac_cv_lib_fl_yywrap=no | |
11734 | fi | |
11735 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11736 | LIBS=$ac_check_lib_save_LIBS | |
11737 | fi | |
11738 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
11739 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
11740 | if test $ac_cv_lib_fl_yywrap = yes; then | |
11741 | LEXLIB="-lfl" | |
11742 | else | |
11743 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
11744 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
11745 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
11746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11747 | else | |
11748 | ac_check_lib_save_LIBS=$LIBS | |
11749 | LIBS="-ll $LIBS" | |
11750 | cat >conftest.$ac_ext <<_ACEOF | |
11751 | #line $LINENO "configure" | |
11752 | /* confdefs.h. */ | |
11753 | _ACEOF | |
11754 | cat confdefs.h >>conftest.$ac_ext | |
11755 | cat >>conftest.$ac_ext <<_ACEOF | |
11756 | /* end confdefs.h. */ | |
11757 | ||
247f5006 | 11758 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11759 | #ifdef __cplusplus |
11760 | extern "C" | |
11761 | #endif | |
247f5006 | 11762 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11763 | builtin and then its argument prototype would still apply. */ |
11764 | char yywrap (); | |
11765 | int | |
11766 | main () | |
11767 | { | |
11768 | yywrap (); | |
11769 | ; | |
11770 | return 0; | |
11771 | } | |
11772 | _ACEOF | |
11773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11775 | (eval $ac_link) 2>&5 | |
11776 | ac_status=$? | |
11777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11778 | (exit $ac_status); } && | |
11779 | { ac_try='test -s conftest$ac_exeext' | |
11780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11781 | (eval $ac_try) 2>&5 | |
11782 | ac_status=$? | |
11783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11784 | (exit $ac_status); }; }; then | |
11785 | ac_cv_lib_l_yywrap=yes | |
11786 | else | |
11787 | echo "$as_me: failed program was:" >&5 | |
11788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11789 | ||
11790 | ac_cv_lib_l_yywrap=no | |
11791 | fi | |
11792 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11793 | LIBS=$ac_check_lib_save_LIBS | |
11794 | fi | |
11795 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
11796 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
11797 | if test $ac_cv_lib_l_yywrap = yes; then | |
11798 | LEXLIB="-ll" | |
11799 | fi | |
10f2d63a | 11800 | |
10f2d63a | 11801 | fi |
8284b0c5 | 11802 | |
10f2d63a | 11803 | fi |
e6cc62c6 VS |
11804 | |
11805 | if test "x$LEX" != "x:"; then | |
11806 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
11807 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
11808 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
11809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11810 | else | |
11811 | # The minimal lex program is just a single line: %%. But some broken lexes | |
11812 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
11813 | cat >conftest.l <<_ACEOF | |
11814 | %% | |
11815 | %% | |
11816 | _ACEOF | |
11817 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
11818 | (eval $LEX conftest.l) 2>&5 | |
11819 | ac_status=$? | |
11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11821 | (exit $ac_status); } | |
11822 | if test -f lex.yy.c; then | |
11823 | ac_cv_prog_lex_root=lex.yy | |
11824 | elif test -f lexyy.c; then | |
11825 | ac_cv_prog_lex_root=lexyy | |
8284b0c5 | 11826 | else |
e6cc62c6 VS |
11827 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
11828 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
11829 | { (exit 1); exit 1; }; } | |
10f2d63a | 11830 | fi |
a0b9e27f | 11831 | fi |
e6cc62c6 VS |
11832 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
11833 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
11834 | rm -f conftest.l | |
11835 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
10f2d63a | 11836 | |
e6cc62c6 VS |
11837 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
11838 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
11839 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
11840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11841 | else |
e6cc62c6 VS |
11842 | # POSIX says lex can declare yytext either as a pointer or an array; the |
11843 | # default is implementation-dependent. Figure out which it is, since | |
11844 | # not all implementations provide the %pointer and %array declarations. | |
11845 | ac_cv_prog_lex_yytext_pointer=no | |
11846 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
11847 | ac_save_LIBS=$LIBS | |
11848 | LIBS="$LIBS $LEXLIB" | |
11849 | cat >conftest.$ac_ext <<_ACEOF | |
11850 | `cat $LEX_OUTPUT_ROOT.c` | |
11851 | _ACEOF | |
11852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11854 | (eval $ac_link) 2>&5 | |
11855 | ac_status=$? | |
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11857 | (exit $ac_status); } && | |
11858 | { ac_try='test -s conftest$ac_exeext' | |
11859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11860 | (eval $ac_try) 2>&5 | |
11861 | ac_status=$? | |
11862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11863 | (exit $ac_status); }; }; then | |
11864 | ac_cv_prog_lex_yytext_pointer=yes | |
10f2d63a | 11865 | else |
e6cc62c6 VS |
11866 | echo "$as_me: failed program was:" >&5 |
11867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11868 | ||
10f2d63a | 11869 | fi |
e6cc62c6 VS |
11870 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
11871 | LIBS=$ac_save_LIBS | |
11872 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
11873 | ||
11874 | fi | |
11875 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
11876 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
11877 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
11878 | ||
11879 | cat >>confdefs.h <<\_ACEOF | |
11880 | #define YYTEXT_POINTER 1 | |
11881 | _ACEOF | |
11882 | ||
a0b9e27f | 11883 | fi |
e6cc62c6 VS |
11884 | |
11885 | fi | |
11886 | ||
11887 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
11888 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11889 | LN_S=$as_ln_s | |
11890 | if test "$LN_S" = "ln -s"; then | |
11891 | echo "$as_me:$LINENO: result: yes" >&5 | |
11892 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11893 | else |
e6cc62c6 VS |
11894 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11895 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11896 | fi |
5c6fa7d2 | 11897 | |
247f5006 | 11898 | |
2b5f62a0 VZ |
11899 | case "${host}" in |
11900 | *-pc-os2_emx | *-pc-os2-emx ) | |
11901 | LIBS="$LIBS -lstdcpp" | |
11902 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
e6cc62c6 VS |
11903 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11904 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11905 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11907 | else |
e6cc62c6 | 11908 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11909 | LIBS="-lcExt $LIBS" |
e6cc62c6 VS |
11910 | cat >conftest.$ac_ext <<_ACEOF |
11911 | #line $LINENO "configure" | |
11912 | /* confdefs.h. */ | |
11913 | _ACEOF | |
11914 | cat confdefs.h >>conftest.$ac_ext | |
11915 | cat >>conftest.$ac_ext <<_ACEOF | |
11916 | /* end confdefs.h. */ | |
11917 | ||
2b5f62a0 | 11918 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11919 | #ifdef __cplusplus |
11920 | extern "C" | |
11921 | #endif | |
2b5f62a0 | 11922 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11923 | builtin and then its argument prototype would still apply. */ |
11924 | char drand48 (); | |
11925 | int | |
11926 | main () | |
11927 | { | |
11928 | drand48 (); | |
11929 | ; | |
11930 | return 0; | |
11931 | } | |
11932 | _ACEOF | |
11933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11935 | (eval $ac_link) 2>&5 | |
11936 | ac_status=$? | |
11937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11938 | (exit $ac_status); } && | |
11939 | { ac_try='test -s conftest$ac_exeext' | |
11940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11941 | (eval $ac_try) 2>&5 | |
11942 | ac_status=$? | |
11943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11944 | (exit $ac_status); }; }; then | |
11945 | ac_cv_lib_cExt_drand48=yes | |
11946 | else | |
11947 | echo "$as_me: failed program was:" >&5 | |
11948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11949 | ||
11950 | ac_cv_lib_cExt_drand48=no | |
11951 | fi | |
11952 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11953 | LIBS=$ac_check_lib_save_LIBS | |
11954 | fi | |
11955 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11956 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11957 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11958 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11959 | fi |
11960 | ||
11961 | else | |
11962 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11963 | fi | |
11964 | ;; | |
11965 | esac | |
11966 | ||
a0b9e27f | 11967 | |
01aa5863 VS |
11968 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
11969 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
11970 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
11971 | if test "${ac_cv_header_strings_h+set}" = set; then | |
11972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11973 | else | |
11974 | ac_cv_header_strings_h=no | |
11975 | fi | |
11976 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
11977 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
11978 | if test "$ac_cv_header_strings_h" = "no"; then | |
11979 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
11980 | echo "${ECHO_T}forced no into cache" >&6 | |
11981 | else | |
11982 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
11983 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
11984 | fi | |
11985 | fi | |
11986 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
11987 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
11988 | if test "${ac_cv_header_stdc+set}" = set; then | |
11989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11990 | else | |
11991 | cat >conftest.$ac_ext <<_ACEOF | |
11992 | #line $LINENO "configure" | |
11993 | /* confdefs.h. */ | |
11994 | _ACEOF | |
11995 | cat confdefs.h >>conftest.$ac_ext | |
11996 | cat >>conftest.$ac_ext <<_ACEOF | |
11997 | /* end confdefs.h. */ | |
11998 | #include <stdlib.h> | |
11999 | #include <stdarg.h> | |
12000 | #include <string.h> | |
12001 | #include <float.h> | |
247f5006 | 12002 | |
e6cc62c6 VS |
12003 | int |
12004 | main () | |
12005 | { | |
90dd450c | 12006 | |
e6cc62c6 VS |
12007 | ; |
12008 | return 0; | |
12009 | } | |
12010 | _ACEOF | |
12011 | rm -f conftest.$ac_objext | |
12012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12013 | (eval $ac_compile) 2>&5 | |
12014 | ac_status=$? | |
12015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12016 | (exit $ac_status); } && | |
12017 | { ac_try='test -s conftest.$ac_objext' | |
12018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12019 | (eval $ac_try) 2>&5 | |
12020 | ac_status=$? | |
12021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12022 | (exit $ac_status); }; }; then | |
12023 | ac_cv_header_stdc=yes | |
8284b0c5 | 12024 | else |
e6cc62c6 VS |
12025 | echo "$as_me: failed program was:" >&5 |
12026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12027 | ||
12028 | ac_cv_header_stdc=no | |
21d1c967 | 12029 | fi |
e6cc62c6 | 12030 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 12031 | |
e6cc62c6 VS |
12032 | if test $ac_cv_header_stdc = yes; then |
12033 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12034 | cat >conftest.$ac_ext <<_ACEOF | |
12035 | #line $LINENO "configure" | |
12036 | /* confdefs.h. */ | |
12037 | _ACEOF | |
12038 | cat confdefs.h >>conftest.$ac_ext | |
12039 | cat >>conftest.$ac_ext <<_ACEOF | |
12040 | /* end confdefs.h. */ | |
12041 | #include <string.h> | |
12042 | ||
12043 | _ACEOF | |
12044 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12045 | $EGREP "memchr" >/dev/null 2>&1; then | |
12046 | : | |
12047 | else | |
12048 | ac_cv_header_stdc=no | |
3a922bb4 | 12049 | fi |
a0b9e27f | 12050 | rm -f conftest* |
e6cc62c6 | 12051 | |
90dd450c | 12052 | fi |
e6cc62c6 VS |
12053 | |
12054 | if test $ac_cv_header_stdc = yes; then | |
12055 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12056 | cat >conftest.$ac_ext <<_ACEOF | |
12057 | #line $LINENO "configure" | |
12058 | /* confdefs.h. */ | |
12059 | _ACEOF | |
12060 | cat confdefs.h >>conftest.$ac_ext | |
12061 | cat >>conftest.$ac_ext <<_ACEOF | |
12062 | /* end confdefs.h. */ | |
12063 | #include <stdlib.h> | |
12064 | ||
12065 | _ACEOF | |
12066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12067 | $EGREP "free" >/dev/null 2>&1; then | |
12068 | : | |
a0b9e27f | 12069 | else |
e6cc62c6 | 12070 | ac_cv_header_stdc=no |
21d1c967 | 12071 | fi |
e6cc62c6 | 12072 | rm -f conftest* |
247f5006 VZ |
12073 | |
12074 | fi | |
e6cc62c6 VS |
12075 | |
12076 | if test $ac_cv_header_stdc = yes; then | |
12077 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12078 | if test "$cross_compiling" = yes; then | |
12079 | : | |
12080 | else | |
12081 | cat >conftest.$ac_ext <<_ACEOF | |
12082 | #line $LINENO "configure" | |
12083 | /* confdefs.h. */ | |
12084 | _ACEOF | |
12085 | cat confdefs.h >>conftest.$ac_ext | |
12086 | cat >>conftest.$ac_ext <<_ACEOF | |
12087 | /* end confdefs.h. */ | |
12088 | #include <ctype.h> | |
12089 | #if ((' ' & 0x0FF) == 0x020) | |
12090 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12091 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12092 | #else | |
12093 | # define ISLOWER(c) \ | |
12094 | (('a' <= (c) && (c) <= 'i') \ | |
12095 | || ('j' <= (c) && (c) <= 'r') \ | |
12096 | || ('s' <= (c) && (c) <= 'z')) | |
12097 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12098 | #endif | |
12099 | ||
12100 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12101 | int | |
12102 | main () | |
12103 | { | |
12104 | int i; | |
12105 | for (i = 0; i < 256; i++) | |
12106 | if (XOR (islower (i), ISLOWER (i)) | |
12107 | || toupper (i) != TOUPPER (i)) | |
12108 | exit(2); | |
12109 | exit (0); | |
12110 | } | |
12111 | _ACEOF | |
12112 | rm -f conftest$ac_exeext | |
12113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12114 | (eval $ac_link) 2>&5 | |
12115 | ac_status=$? | |
12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12117 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12119 | (eval $ac_try) 2>&5 | |
12120 | ac_status=$? | |
12121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12122 | (exit $ac_status); }; }; then | |
12123 | : | |
a0b9e27f | 12124 | else |
e6cc62c6 VS |
12125 | echo "$as_me: program exited with status $ac_status" >&5 |
12126 | echo "$as_me: failed program was:" >&5 | |
12127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12128 | ||
12129 | ( exit $ac_status ) | |
12130 | ac_cv_header_stdc=no | |
12131 | fi | |
12132 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12133 | fi | |
12134 | fi | |
12135 | fi | |
12136 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12137 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12138 | if test $ac_cv_header_stdc = yes; then | |
12139 | ||
12140 | cat >>confdefs.h <<\_ACEOF | |
12141 | #define STDC_HEADERS 1 | |
12142 | _ACEOF | |
12143 | ||
a0b9e27f | 12144 | fi |
e6cc62c6 VS |
12145 | |
12146 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12147 | ||
12148 | ||
12149 | ||
12150 | ||
12151 | ||
12152 | ||
12153 | ||
12154 | ||
12155 | ||
12156 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
12157 | inttypes.h stdint.h unistd.h | |
12158 | do | |
12159 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12160 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12164 | else | |
12165 | cat >conftest.$ac_ext <<_ACEOF | |
12166 | #line $LINENO "configure" | |
12167 | /* confdefs.h. */ | |
12168 | _ACEOF | |
12169 | cat confdefs.h >>conftest.$ac_ext | |
12170 | cat >>conftest.$ac_ext <<_ACEOF | |
12171 | /* end confdefs.h. */ | |
12172 | $ac_includes_default | |
12173 | ||
12174 | #include <$ac_header> | |
12175 | _ACEOF | |
12176 | rm -f conftest.$ac_objext | |
12177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12178 | (eval $ac_compile) 2>&5 | |
12179 | ac_status=$? | |
12180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12181 | (exit $ac_status); } && | |
12182 | { ac_try='test -s conftest.$ac_objext' | |
12183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12184 | (eval $ac_try) 2>&5 | |
12185 | ac_status=$? | |
12186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12187 | (exit $ac_status); }; }; then | |
12188 | eval "$as_ac_Header=yes" | |
12189 | else | |
12190 | echo "$as_me: failed program was:" >&5 | |
12191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12192 | ||
12193 | eval "$as_ac_Header=no" | |
12194 | fi | |
12195 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12196 | fi | |
12197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12199 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12200 | cat >>confdefs.h <<_ACEOF | |
12201 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12202 | _ACEOF | |
12203 | ||
12204 | fi | |
12205 | ||
a0b9e27f | 12206 | done |
90dd450c | 12207 | |
e6cc62c6 VS |
12208 | |
12209 | ||
12210 | for ac_header in strings.h | |
21d1c967 | 12211 | do |
e6cc62c6 VS |
12212 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12213 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12214 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12215 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12216 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12218 | fi | |
12219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12220 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12221 | else | |
12222 | # Is the header compilable? | |
12223 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12224 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12225 | cat >conftest.$ac_ext <<_ACEOF | |
12226 | #line $LINENO "configure" | |
12227 | /* confdefs.h. */ | |
12228 | _ACEOF | |
12229 | cat confdefs.h >>conftest.$ac_ext | |
12230 | cat >>conftest.$ac_ext <<_ACEOF | |
12231 | /* end confdefs.h. */ | |
12232 | $ac_includes_default | |
12233 | #include <$ac_header> | |
12234 | _ACEOF | |
12235 | rm -f conftest.$ac_objext | |
12236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12237 | (eval $ac_compile) 2>&5 | |
12238 | ac_status=$? | |
12239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12240 | (exit $ac_status); } && | |
12241 | { ac_try='test -s conftest.$ac_objext' | |
12242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12243 | (eval $ac_try) 2>&5 | |
12244 | ac_status=$? | |
12245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12246 | (exit $ac_status); }; }; then | |
12247 | ac_header_compiler=yes | |
12248 | else | |
12249 | echo "$as_me: failed program was:" >&5 | |
12250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12251 | ||
12252 | ac_header_compiler=no | |
12253 | fi | |
12254 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12255 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12256 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12257 | ||
12258 | # Is the header present? | |
12259 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12260 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12261 | cat >conftest.$ac_ext <<_ACEOF | |
12262 | #line $LINENO "configure" | |
12263 | /* confdefs.h. */ | |
12264 | _ACEOF | |
12265 | cat confdefs.h >>conftest.$ac_ext | |
12266 | cat >>conftest.$ac_ext <<_ACEOF | |
12267 | /* end confdefs.h. */ | |
12268 | #include <$ac_header> | |
12269 | _ACEOF | |
12270 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12271 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12272 | ac_status=$? | |
12273 | grep -v '^ *+' conftest.er1 >conftest.err | |
12274 | rm -f conftest.er1 | |
12275 | cat conftest.err >&5 | |
12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12277 | (exit $ac_status); } >/dev/null; then | |
12278 | if test -s conftest.err; then | |
12279 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12280 | else | |
12281 | ac_cpp_err= | |
12282 | fi | |
12283 | else | |
12284 | ac_cpp_err=yes | |
12285 | fi | |
12286 | if test -z "$ac_cpp_err"; then | |
12287 | ac_header_preproc=yes | |
12288 | else | |
12289 | echo "$as_me: failed program was:" >&5 | |
12290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12291 | ||
12292 | ac_header_preproc=no | |
12293 | fi | |
12294 | rm -f conftest.err conftest.$ac_ext | |
12295 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12296 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12297 | ||
12298 | # So? What about this header? | |
12299 | case $ac_header_compiler:$ac_header_preproc in | |
12300 | yes:no ) | |
12301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12305 | ( | |
12306 | cat <<\_ASBOX | |
12307 | ## ------------------------------------ ## | |
12308 | ## Report this to bug-autoconf@gnu.org. ## | |
12309 | ## ------------------------------------ ## | |
12310 | _ASBOX | |
12311 | ) | | |
12312 | sed "s/^/$as_me: WARNING: /" >&2 | |
12313 | ;; | |
12314 | no:yes ) | |
12315 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12316 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12317 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12318 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12319 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12320 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12321 | ( | |
12322 | cat <<\_ASBOX | |
12323 | ## ------------------------------------ ## | |
12324 | ## Report this to bug-autoconf@gnu.org. ## | |
12325 | ## ------------------------------------ ## | |
12326 | _ASBOX | |
12327 | ) | | |
12328 | sed "s/^/$as_me: WARNING: /" >&2 | |
12329 | ;; | |
12330 | esac | |
12331 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12332 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12335 | else | |
12336 | eval "$as_ac_Header=$ac_header_preproc" | |
a0b9e27f | 12337 | fi |
e6cc62c6 VS |
12338 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12339 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12340 | ||
a0b9e27f | 12341 | fi |
e6cc62c6 VS |
12342 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12343 | cat >>confdefs.h <<_ACEOF | |
12344 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12345 | _ACEOF | |
12346 | ||
12347 | fi | |
12348 | ||
12349 | done | |
12350 | ||
e6cc62c6 VS |
12351 | |
12352 | ||
12353 | for ac_header in stdlib.h | |
12354 | do | |
12355 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12357 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12358 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12359 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12361 | fi | |
12362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12363 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12364 | else | |
12365 | # Is the header compilable? | |
12366 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12367 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12368 | cat >conftest.$ac_ext <<_ACEOF | |
12369 | #line $LINENO "configure" | |
12370 | /* confdefs.h. */ | |
12371 | _ACEOF | |
12372 | cat confdefs.h >>conftest.$ac_ext | |
12373 | cat >>conftest.$ac_ext <<_ACEOF | |
12374 | /* end confdefs.h. */ | |
12375 | $ac_includes_default | |
12376 | #include <$ac_header> | |
12377 | _ACEOF | |
12378 | rm -f conftest.$ac_objext | |
12379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12380 | (eval $ac_compile) 2>&5 | |
12381 | ac_status=$? | |
12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12383 | (exit $ac_status); } && | |
12384 | { ac_try='test -s conftest.$ac_objext' | |
12385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12386 | (eval $ac_try) 2>&5 | |
12387 | ac_status=$? | |
12388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12389 | (exit $ac_status); }; }; then | |
12390 | ac_header_compiler=yes | |
12391 | else | |
12392 | echo "$as_me: failed program was:" >&5 | |
12393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12394 | ||
12395 | ac_header_compiler=no | |
12396 | fi | |
12397 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12398 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12399 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12400 | ||
12401 | # Is the header present? | |
12402 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12403 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12404 | cat >conftest.$ac_ext <<_ACEOF | |
12405 | #line $LINENO "configure" | |
12406 | /* confdefs.h. */ | |
12407 | _ACEOF | |
12408 | cat confdefs.h >>conftest.$ac_ext | |
12409 | cat >>conftest.$ac_ext <<_ACEOF | |
12410 | /* end confdefs.h. */ | |
12411 | #include <$ac_header> | |
12412 | _ACEOF | |
12413 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12414 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12415 | ac_status=$? | |
12416 | grep -v '^ *+' conftest.er1 >conftest.err | |
12417 | rm -f conftest.er1 | |
12418 | cat conftest.err >&5 | |
12419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12420 | (exit $ac_status); } >/dev/null; then | |
12421 | if test -s conftest.err; then | |
12422 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12423 | else | |
12424 | ac_cpp_err= | |
12425 | fi | |
12426 | else | |
12427 | ac_cpp_err=yes | |
12428 | fi | |
12429 | if test -z "$ac_cpp_err"; then | |
12430 | ac_header_preproc=yes | |
12431 | else | |
12432 | echo "$as_me: failed program was:" >&5 | |
12433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12434 | ||
12435 | ac_header_preproc=no | |
12436 | fi | |
12437 | rm -f conftest.err conftest.$ac_ext | |
12438 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12439 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12440 | ||
12441 | # So? What about this header? | |
12442 | case $ac_header_compiler:$ac_header_preproc in | |
12443 | yes:no ) | |
12444 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12445 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12446 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12447 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12448 | ( | |
12449 | cat <<\_ASBOX | |
12450 | ## ------------------------------------ ## | |
12451 | ## Report this to bug-autoconf@gnu.org. ## | |
12452 | ## ------------------------------------ ## | |
12453 | _ASBOX | |
12454 | ) | | |
12455 | sed "s/^/$as_me: WARNING: /" >&2 | |
12456 | ;; | |
12457 | no:yes ) | |
12458 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12459 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12460 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12461 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12462 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12463 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12464 | ( | |
12465 | cat <<\_ASBOX | |
12466 | ## ------------------------------------ ## | |
12467 | ## Report this to bug-autoconf@gnu.org. ## | |
12468 | ## ------------------------------------ ## | |
12469 | _ASBOX | |
12470 | ) | | |
12471 | sed "s/^/$as_me: WARNING: /" >&2 | |
12472 | ;; | |
12473 | esac | |
12474 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12475 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12476 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12478 | else |
e6cc62c6 VS |
12479 | eval "$as_ac_Header=$ac_header_preproc" |
12480 | fi | |
12481 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12482 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12483 | ||
21d1c967 | 12484 | fi |
e6cc62c6 VS |
12485 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12486 | cat >>confdefs.h <<_ACEOF | |
12487 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12488 | _ACEOF | |
12489 | ||
12490 | fi | |
12491 | ||
21d1c967 | 12492 | done |
4f14bcd8 | 12493 | |
5c6fa7d2 | 12494 | |
e6cc62c6 | 12495 | for ac_header in malloc.h |
21d1c967 | 12496 | do |
e6cc62c6 VS |
12497 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12499 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12500 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12501 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12503 | fi | |
12504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12506 | else | |
12507 | # Is the header compilable? | |
12508 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12509 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12510 | cat >conftest.$ac_ext <<_ACEOF | |
12511 | #line $LINENO "configure" | |
12512 | /* confdefs.h. */ | |
12513 | _ACEOF | |
12514 | cat confdefs.h >>conftest.$ac_ext | |
12515 | cat >>conftest.$ac_ext <<_ACEOF | |
12516 | /* end confdefs.h. */ | |
12517 | $ac_includes_default | |
12518 | #include <$ac_header> | |
12519 | _ACEOF | |
12520 | rm -f conftest.$ac_objext | |
12521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12522 | (eval $ac_compile) 2>&5 | |
12523 | ac_status=$? | |
12524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12525 | (exit $ac_status); } && | |
12526 | { ac_try='test -s conftest.$ac_objext' | |
12527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12528 | (eval $ac_try) 2>&5 | |
12529 | ac_status=$? | |
12530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12531 | (exit $ac_status); }; }; then | |
12532 | ac_header_compiler=yes | |
12533 | else | |
12534 | echo "$as_me: failed program was:" >&5 | |
12535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12536 | ||
12537 | ac_header_compiler=no | |
12538 | fi | |
12539 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12540 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12541 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12542 | ||
12543 | # Is the header present? | |
12544 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12545 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12546 | cat >conftest.$ac_ext <<_ACEOF | |
12547 | #line $LINENO "configure" | |
12548 | /* confdefs.h. */ | |
12549 | _ACEOF | |
12550 | cat confdefs.h >>conftest.$ac_ext | |
12551 | cat >>conftest.$ac_ext <<_ACEOF | |
12552 | /* end confdefs.h. */ | |
12553 | #include <$ac_header> | |
12554 | _ACEOF | |
12555 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12556 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12557 | ac_status=$? | |
12558 | grep -v '^ *+' conftest.er1 >conftest.err | |
12559 | rm -f conftest.er1 | |
12560 | cat conftest.err >&5 | |
12561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12562 | (exit $ac_status); } >/dev/null; then | |
12563 | if test -s conftest.err; then | |
12564 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12565 | else | |
12566 | ac_cpp_err= | |
12567 | fi | |
12568 | else | |
12569 | ac_cpp_err=yes | |
12570 | fi | |
12571 | if test -z "$ac_cpp_err"; then | |
12572 | ac_header_preproc=yes | |
12573 | else | |
12574 | echo "$as_me: failed program was:" >&5 | |
12575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12576 | ||
12577 | ac_header_preproc=no | |
12578 | fi | |
12579 | rm -f conftest.err conftest.$ac_ext | |
12580 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12581 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12582 | ||
12583 | # So? What about this header? | |
12584 | case $ac_header_compiler:$ac_header_preproc in | |
12585 | yes:no ) | |
12586 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12587 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12588 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12589 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12590 | ( | |
12591 | cat <<\_ASBOX | |
12592 | ## ------------------------------------ ## | |
12593 | ## Report this to bug-autoconf@gnu.org. ## | |
12594 | ## ------------------------------------ ## | |
12595 | _ASBOX | |
12596 | ) | | |
12597 | sed "s/^/$as_me: WARNING: /" >&2 | |
12598 | ;; | |
12599 | no:yes ) | |
12600 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12601 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12602 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12603 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12605 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12606 | ( | |
12607 | cat <<\_ASBOX | |
12608 | ## ------------------------------------ ## | |
12609 | ## Report this to bug-autoconf@gnu.org. ## | |
12610 | ## ------------------------------------ ## | |
12611 | _ASBOX | |
12612 | ) | | |
12613 | sed "s/^/$as_me: WARNING: /" >&2 | |
12614 | ;; | |
12615 | esac | |
12616 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12617 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12618 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12620 | else | |
12621 | eval "$as_ac_Header=$ac_header_preproc" | |
d4158b5d | 12622 | fi |
e6cc62c6 VS |
12623 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12624 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12625 | ||
21d1c967 | 12626 | fi |
e6cc62c6 VS |
12627 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12628 | cat >>confdefs.h <<_ACEOF | |
12629 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12630 | _ACEOF | |
12631 | ||
12632 | fi | |
12633 | ||
12634 | done | |
12635 | ||
12636 | ||
12637 | for ac_header in unistd.h | |
12638 | do | |
12639 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12641 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12645 | fi | |
12646 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12647 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12648 | else | |
12649 | # Is the header compilable? | |
12650 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12651 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12652 | cat >conftest.$ac_ext <<_ACEOF | |
12653 | #line $LINENO "configure" | |
12654 | /* confdefs.h. */ | |
12655 | _ACEOF | |
12656 | cat confdefs.h >>conftest.$ac_ext | |
12657 | cat >>conftest.$ac_ext <<_ACEOF | |
12658 | /* end confdefs.h. */ | |
12659 | $ac_includes_default | |
12660 | #include <$ac_header> | |
12661 | _ACEOF | |
12662 | rm -f conftest.$ac_objext | |
12663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12664 | (eval $ac_compile) 2>&5 | |
12665 | ac_status=$? | |
12666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12667 | (exit $ac_status); } && | |
12668 | { ac_try='test -s conftest.$ac_objext' | |
12669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12670 | (eval $ac_try) 2>&5 | |
12671 | ac_status=$? | |
12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12673 | (exit $ac_status); }; }; then | |
12674 | ac_header_compiler=yes | |
12675 | else | |
12676 | echo "$as_me: failed program was:" >&5 | |
12677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12678 | ||
12679 | ac_header_compiler=no | |
12680 | fi | |
12681 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12682 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12683 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12684 | ||
12685 | # Is the header present? | |
12686 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12687 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12688 | cat >conftest.$ac_ext <<_ACEOF | |
12689 | #line $LINENO "configure" | |
12690 | /* confdefs.h. */ | |
12691 | _ACEOF | |
12692 | cat confdefs.h >>conftest.$ac_ext | |
12693 | cat >>conftest.$ac_ext <<_ACEOF | |
12694 | /* end confdefs.h. */ | |
12695 | #include <$ac_header> | |
12696 | _ACEOF | |
12697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12699 | ac_status=$? | |
12700 | grep -v '^ *+' conftest.er1 >conftest.err | |
12701 | rm -f conftest.er1 | |
12702 | cat conftest.err >&5 | |
12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12704 | (exit $ac_status); } >/dev/null; then | |
12705 | if test -s conftest.err; then | |
12706 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12707 | else | |
12708 | ac_cpp_err= | |
12709 | fi | |
a0b9e27f | 12710 | else |
e6cc62c6 VS |
12711 | ac_cpp_err=yes |
12712 | fi | |
12713 | if test -z "$ac_cpp_err"; then | |
12714 | ac_header_preproc=yes | |
12715 | else | |
12716 | echo "$as_me: failed program was:" >&5 | |
12717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12718 | ||
12719 | ac_header_preproc=no | |
12720 | fi | |
12721 | rm -f conftest.err conftest.$ac_ext | |
12722 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12723 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12724 | ||
12725 | # So? What about this header? | |
12726 | case $ac_header_compiler:$ac_header_preproc in | |
12727 | yes:no ) | |
12728 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12729 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12730 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12731 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12732 | ( | |
12733 | cat <<\_ASBOX | |
12734 | ## ------------------------------------ ## | |
12735 | ## Report this to bug-autoconf@gnu.org. ## | |
12736 | ## ------------------------------------ ## | |
12737 | _ASBOX | |
12738 | ) | | |
12739 | sed "s/^/$as_me: WARNING: /" >&2 | |
12740 | ;; | |
12741 | no:yes ) | |
12742 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12743 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12744 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12745 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12748 | ( | |
12749 | cat <<\_ASBOX | |
12750 | ## ------------------------------------ ## | |
12751 | ## Report this to bug-autoconf@gnu.org. ## | |
12752 | ## ------------------------------------ ## | |
12753 | _ASBOX | |
12754 | ) | | |
12755 | sed "s/^/$as_me: WARNING: /" >&2 | |
12756 | ;; | |
12757 | esac | |
12758 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12762 | else | |
12763 | eval "$as_ac_Header=$ac_header_preproc" | |
12764 | fi | |
12765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12767 | ||
12768 | fi | |
12769 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12770 | cat >>confdefs.h <<_ACEOF | |
12771 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12772 | _ACEOF | |
12773 | ||
d4158b5d | 12774 | fi |
e6cc62c6 | 12775 | |
21d1c967 | 12776 | done |
f6bcfd97 | 12777 | |
e6cc62c6 VS |
12778 | |
12779 | for ac_header in wchar.h | |
12780 | do | |
12781 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12783 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12787 | fi | |
12788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12789 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12790 | else | |
12791 | # Is the header compilable? | |
12792 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12793 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12794 | cat >conftest.$ac_ext <<_ACEOF | |
12795 | #line $LINENO "configure" | |
12796 | /* confdefs.h. */ | |
12797 | _ACEOF | |
12798 | cat confdefs.h >>conftest.$ac_ext | |
12799 | cat >>conftest.$ac_ext <<_ACEOF | |
12800 | /* end confdefs.h. */ | |
12801 | $ac_includes_default | |
12802 | #include <$ac_header> | |
12803 | _ACEOF | |
12804 | rm -f conftest.$ac_objext | |
12805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12806 | (eval $ac_compile) 2>&5 | |
12807 | ac_status=$? | |
12808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12809 | (exit $ac_status); } && | |
12810 | { ac_try='test -s conftest.$ac_objext' | |
12811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12812 | (eval $ac_try) 2>&5 | |
12813 | ac_status=$? | |
12814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12815 | (exit $ac_status); }; }; then | |
12816 | ac_header_compiler=yes | |
12817 | else | |
12818 | echo "$as_me: failed program was:" >&5 | |
12819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12820 | ||
12821 | ac_header_compiler=no | |
12822 | fi | |
12823 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12824 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12825 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12826 | ||
12827 | # Is the header present? | |
12828 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12829 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12830 | cat >conftest.$ac_ext <<_ACEOF | |
12831 | #line $LINENO "configure" | |
12832 | /* confdefs.h. */ | |
12833 | _ACEOF | |
12834 | cat confdefs.h >>conftest.$ac_ext | |
12835 | cat >>conftest.$ac_ext <<_ACEOF | |
12836 | /* end confdefs.h. */ | |
12837 | #include <$ac_header> | |
12838 | _ACEOF | |
12839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12841 | ac_status=$? | |
12842 | grep -v '^ *+' conftest.er1 >conftest.err | |
12843 | rm -f conftest.er1 | |
12844 | cat conftest.err >&5 | |
12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12846 | (exit $ac_status); } >/dev/null; then | |
12847 | if test -s conftest.err; then | |
12848 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12849 | else | |
12850 | ac_cpp_err= | |
12851 | fi | |
12852 | else | |
12853 | ac_cpp_err=yes | |
12854 | fi | |
12855 | if test -z "$ac_cpp_err"; then | |
12856 | ac_header_preproc=yes | |
12857 | else | |
12858 | echo "$as_me: failed program was:" >&5 | |
12859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12860 | ||
12861 | ac_header_preproc=no | |
12862 | fi | |
12863 | rm -f conftest.err conftest.$ac_ext | |
12864 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12865 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12866 | ||
12867 | # So? What about this header? | |
12868 | case $ac_header_compiler:$ac_header_preproc in | |
12869 | yes:no ) | |
12870 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12871 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12872 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12873 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12874 | ( | |
12875 | cat <<\_ASBOX | |
12876 | ## ------------------------------------ ## | |
12877 | ## Report this to bug-autoconf@gnu.org. ## | |
12878 | ## ------------------------------------ ## | |
12879 | _ASBOX | |
12880 | ) | | |
12881 | sed "s/^/$as_me: WARNING: /" >&2 | |
12882 | ;; | |
12883 | no:yes ) | |
12884 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12885 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12886 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12887 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12888 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12889 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12890 | ( | |
12891 | cat <<\_ASBOX | |
12892 | ## ------------------------------------ ## | |
12893 | ## Report this to bug-autoconf@gnu.org. ## | |
12894 | ## ------------------------------------ ## | |
12895 | _ASBOX | |
12896 | ) | | |
12897 | sed "s/^/$as_me: WARNING: /" >&2 | |
12898 | ;; | |
12899 | esac | |
12900 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12901 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12904 | else | |
12905 | eval "$as_ac_Header=$ac_header_preproc" | |
12906 | fi | |
12907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12909 | ||
90dd450c | 12910 | fi |
e6cc62c6 VS |
12911 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12912 | cat >>confdefs.h <<_ACEOF | |
12913 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12914 | _ACEOF | |
12915 | ||
12916 | fi | |
12917 | ||
12918 | done | |
90dd450c | 12919 | |
e6cc62c6 VS |
12920 | |
12921 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12922 | ||
12923 | for ac_header in wcstr.h | |
21d1c967 | 12924 | do |
e6cc62c6 VS |
12925 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12927 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12931 | fi | |
12932 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12933 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12934 | else | |
12935 | # Is the header compilable? | |
12936 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12937 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12938 | cat >conftest.$ac_ext <<_ACEOF | |
12939 | #line $LINENO "configure" | |
12940 | /* confdefs.h. */ | |
12941 | _ACEOF | |
12942 | cat confdefs.h >>conftest.$ac_ext | |
12943 | cat >>conftest.$ac_ext <<_ACEOF | |
12944 | /* end confdefs.h. */ | |
12945 | $ac_includes_default | |
12946 | #include <$ac_header> | |
12947 | _ACEOF | |
12948 | rm -f conftest.$ac_objext | |
12949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12950 | (eval $ac_compile) 2>&5 | |
12951 | ac_status=$? | |
12952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12953 | (exit $ac_status); } && | |
12954 | { ac_try='test -s conftest.$ac_objext' | |
12955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12956 | (eval $ac_try) 2>&5 | |
12957 | ac_status=$? | |
12958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12959 | (exit $ac_status); }; }; then | |
12960 | ac_header_compiler=yes | |
12961 | else | |
12962 | echo "$as_me: failed program was:" >&5 | |
12963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12964 | ||
12965 | ac_header_compiler=no | |
12966 | fi | |
12967 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12968 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12969 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12970 | ||
12971 | # Is the header present? | |
12972 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12973 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12974 | cat >conftest.$ac_ext <<_ACEOF | |
12975 | #line $LINENO "configure" | |
12976 | /* confdefs.h. */ | |
12977 | _ACEOF | |
12978 | cat confdefs.h >>conftest.$ac_ext | |
12979 | cat >>conftest.$ac_ext <<_ACEOF | |
12980 | /* end confdefs.h. */ | |
12981 | #include <$ac_header> | |
12982 | _ACEOF | |
12983 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12984 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12985 | ac_status=$? | |
12986 | grep -v '^ *+' conftest.er1 >conftest.err | |
12987 | rm -f conftest.er1 | |
12988 | cat conftest.err >&5 | |
12989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12990 | (exit $ac_status); } >/dev/null; then | |
12991 | if test -s conftest.err; then | |
12992 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12993 | else | |
12994 | ac_cpp_err= | |
12995 | fi | |
12996 | else | |
12997 | ac_cpp_err=yes | |
12998 | fi | |
12999 | if test -z "$ac_cpp_err"; then | |
13000 | ac_header_preproc=yes | |
13001 | else | |
13002 | echo "$as_me: failed program was:" >&5 | |
13003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13004 | ||
13005 | ac_header_preproc=no | |
13006 | fi | |
13007 | rm -f conftest.err conftest.$ac_ext | |
13008 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13009 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13010 | ||
13011 | # So? What about this header? | |
13012 | case $ac_header_compiler:$ac_header_preproc in | |
13013 | yes:no ) | |
13014 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13015 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13017 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13018 | ( | |
13019 | cat <<\_ASBOX | |
13020 | ## ------------------------------------ ## | |
13021 | ## Report this to bug-autoconf@gnu.org. ## | |
13022 | ## ------------------------------------ ## | |
13023 | _ASBOX | |
13024 | ) | | |
13025 | sed "s/^/$as_me: WARNING: /" >&2 | |
13026 | ;; | |
13027 | no:yes ) | |
13028 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13029 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13030 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13031 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13032 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13033 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13034 | ( | |
13035 | cat <<\_ASBOX | |
13036 | ## ------------------------------------ ## | |
13037 | ## Report this to bug-autoconf@gnu.org. ## | |
13038 | ## ------------------------------------ ## | |
13039 | _ASBOX | |
13040 | ) | | |
13041 | sed "s/^/$as_me: WARNING: /" >&2 | |
13042 | ;; | |
13043 | esac | |
13044 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13045 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13048 | else | |
13049 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 13050 | fi |
e6cc62c6 VS |
13051 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13052 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13053 | ||
4f14bcd8 | 13054 | fi |
e6cc62c6 VS |
13055 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13056 | cat >>confdefs.h <<_ACEOF | |
13057 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13058 | _ACEOF | |
13059 | ||
13060 | fi | |
13061 | ||
13062 | done | |
13063 | ||
13064 | fi | |
13065 | ||
13066 | ||
13067 | for ac_header in fnmatch.h | |
13068 | do | |
13069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13071 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13075 | fi | |
13076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13078 | else | |
13079 | # Is the header compilable? | |
13080 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13081 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13082 | cat >conftest.$ac_ext <<_ACEOF | |
13083 | #line $LINENO "configure" | |
13084 | /* confdefs.h. */ | |
13085 | _ACEOF | |
13086 | cat confdefs.h >>conftest.$ac_ext | |
13087 | cat >>conftest.$ac_ext <<_ACEOF | |
13088 | /* end confdefs.h. */ | |
13089 | $ac_includes_default | |
13090 | #include <$ac_header> | |
13091 | _ACEOF | |
13092 | rm -f conftest.$ac_objext | |
13093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13094 | (eval $ac_compile) 2>&5 | |
13095 | ac_status=$? | |
13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13097 | (exit $ac_status); } && | |
13098 | { ac_try='test -s conftest.$ac_objext' | |
13099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13100 | (eval $ac_try) 2>&5 | |
13101 | ac_status=$? | |
13102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13103 | (exit $ac_status); }; }; then | |
13104 | ac_header_compiler=yes | |
13105 | else | |
13106 | echo "$as_me: failed program was:" >&5 | |
13107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13108 | ||
13109 | ac_header_compiler=no | |
13110 | fi | |
13111 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13112 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13113 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13114 | ||
13115 | # Is the header present? | |
13116 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13117 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13118 | cat >conftest.$ac_ext <<_ACEOF | |
13119 | #line $LINENO "configure" | |
13120 | /* confdefs.h. */ | |
13121 | _ACEOF | |
13122 | cat confdefs.h >>conftest.$ac_ext | |
13123 | cat >>conftest.$ac_ext <<_ACEOF | |
13124 | /* end confdefs.h. */ | |
13125 | #include <$ac_header> | |
13126 | _ACEOF | |
13127 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13128 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13129 | ac_status=$? | |
13130 | grep -v '^ *+' conftest.er1 >conftest.err | |
13131 | rm -f conftest.er1 | |
13132 | cat conftest.err >&5 | |
13133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13134 | (exit $ac_status); } >/dev/null; then | |
13135 | if test -s conftest.err; then | |
13136 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13137 | else | |
13138 | ac_cpp_err= | |
13139 | fi | |
13140 | else | |
13141 | ac_cpp_err=yes | |
13142 | fi | |
13143 | if test -z "$ac_cpp_err"; then | |
13144 | ac_header_preproc=yes | |
13145 | else | |
13146 | echo "$as_me: failed program was:" >&5 | |
13147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13148 | ||
13149 | ac_header_preproc=no | |
13150 | fi | |
13151 | rm -f conftest.err conftest.$ac_ext | |
13152 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13153 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13154 | ||
13155 | # So? What about this header? | |
13156 | case $ac_header_compiler:$ac_header_preproc in | |
13157 | yes:no ) | |
13158 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13159 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13161 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13162 | ( | |
13163 | cat <<\_ASBOX | |
13164 | ## ------------------------------------ ## | |
13165 | ## Report this to bug-autoconf@gnu.org. ## | |
13166 | ## ------------------------------------ ## | |
13167 | _ASBOX | |
13168 | ) | | |
13169 | sed "s/^/$as_me: WARNING: /" >&2 | |
13170 | ;; | |
13171 | no:yes ) | |
13172 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13173 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13174 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13175 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13177 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13178 | ( | |
13179 | cat <<\_ASBOX | |
13180 | ## ------------------------------------ ## | |
13181 | ## Report this to bug-autoconf@gnu.org. ## | |
13182 | ## ------------------------------------ ## | |
13183 | _ASBOX | |
13184 | ) | | |
13185 | sed "s/^/$as_me: WARNING: /" >&2 | |
13186 | ;; | |
13187 | esac | |
13188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13192 | else |
e6cc62c6 VS |
13193 | eval "$as_ac_Header=$ac_header_preproc" |
13194 | fi | |
13195 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13196 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13197 | ||
21d1c967 | 13198 | fi |
e6cc62c6 VS |
13199 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13200 | cat >>confdefs.h <<_ACEOF | |
13201 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13202 | _ACEOF | |
13203 | ||
13204 | fi | |
13205 | ||
21d1c967 | 13206 | done |
90dd450c | 13207 | |
5c6fa7d2 | 13208 | |
a0b9e27f | 13209 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13210 | |
13211 | for ac_func in fnmatch | |
21d1c967 | 13212 | do |
e6cc62c6 VS |
13213 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13214 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13215 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13216 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13218 | else | |
13219 | cat >conftest.$ac_ext <<_ACEOF | |
13220 | #line $LINENO "configure" | |
13221 | /* confdefs.h. */ | |
13222 | _ACEOF | |
13223 | cat confdefs.h >>conftest.$ac_ext | |
13224 | cat >>conftest.$ac_ext <<_ACEOF | |
13225 | /* end confdefs.h. */ | |
a0b9e27f | 13226 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13227 | which can conflict with char $ac_func (); below. |
13228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13229 | <limits.h> exists even on freestanding compilers. */ | |
13230 | #ifdef __STDC__ | |
13231 | # include <limits.h> | |
13232 | #else | |
13233 | # include <assert.h> | |
13234 | #endif | |
a0b9e27f | 13235 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13236 | #ifdef __cplusplus |
13237 | extern "C" | |
13238 | { | |
13239 | #endif | |
a0b9e27f | 13240 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13241 | builtin and then its argument prototype would still apply. */ |
13242 | char $ac_func (); | |
a0b9e27f MB |
13243 | /* The GNU C library defines this for functions which it implements |
13244 | to always fail with ENOSYS. Some functions are actually named | |
13245 | something starting with __ and the normal name is an alias. */ | |
13246 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13247 | choke me | |
13248 | #else | |
e6cc62c6 VS |
13249 | char (*f) () = $ac_func; |
13250 | #endif | |
13251 | #ifdef __cplusplus | |
13252 | } | |
a0b9e27f MB |
13253 | #endif |
13254 | ||
e6cc62c6 VS |
13255 | int |
13256 | main () | |
13257 | { | |
13258 | return f != $ac_func; | |
13259 | ; | |
13260 | return 0; | |
13261 | } | |
13262 | _ACEOF | |
13263 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13265 | (eval $ac_link) 2>&5 | |
13266 | ac_status=$? | |
13267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13268 | (exit $ac_status); } && | |
13269 | { ac_try='test -s conftest$ac_exeext' | |
13270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13271 | (eval $ac_try) 2>&5 | |
13272 | ac_status=$? | |
13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13274 | (exit $ac_status); }; }; then | |
13275 | eval "$as_ac_var=yes" | |
13276 | else | |
13277 | echo "$as_me: failed program was:" >&5 | |
13278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13279 | ||
13280 | eval "$as_ac_var=no" | |
13281 | fi | |
13282 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13283 | fi | |
13284 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13285 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13286 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13287 | cat >>confdefs.h <<_ACEOF | |
13288 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13289 | _ACEOF | |
32832908 | 13290 | |
21d1c967 GD |
13291 | fi |
13292 | done | |
90dd450c | 13293 | |
a0b9e27f | 13294 | fi |
90dd450c | 13295 | |
e6cc62c6 VS |
13296 | |
13297 | for ac_header in langinfo.h | |
21d1c967 | 13298 | do |
e6cc62c6 VS |
13299 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13300 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13301 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13305 | fi | |
13306 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13307 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13308 | else | |
13309 | # Is the header compilable? | |
13310 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13311 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13312 | cat >conftest.$ac_ext <<_ACEOF | |
13313 | #line $LINENO "configure" | |
13314 | /* confdefs.h. */ | |
13315 | _ACEOF | |
13316 | cat confdefs.h >>conftest.$ac_ext | |
13317 | cat >>conftest.$ac_ext <<_ACEOF | |
13318 | /* end confdefs.h. */ | |
13319 | $ac_includes_default | |
13320 | #include <$ac_header> | |
13321 | _ACEOF | |
13322 | rm -f conftest.$ac_objext | |
13323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13324 | (eval $ac_compile) 2>&5 | |
13325 | ac_status=$? | |
13326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13327 | (exit $ac_status); } && | |
13328 | { ac_try='test -s conftest.$ac_objext' | |
13329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13330 | (eval $ac_try) 2>&5 | |
13331 | ac_status=$? | |
13332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13333 | (exit $ac_status); }; }; then | |
13334 | ac_header_compiler=yes | |
13335 | else | |
13336 | echo "$as_me: failed program was:" >&5 | |
13337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13338 | ||
13339 | ac_header_compiler=no | |
13340 | fi | |
13341 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13342 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13343 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13344 | ||
13345 | # Is the header present? | |
13346 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13347 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13348 | cat >conftest.$ac_ext <<_ACEOF | |
13349 | #line $LINENO "configure" | |
13350 | /* confdefs.h. */ | |
13351 | _ACEOF | |
13352 | cat confdefs.h >>conftest.$ac_ext | |
13353 | cat >>conftest.$ac_ext <<_ACEOF | |
13354 | /* end confdefs.h. */ | |
13355 | #include <$ac_header> | |
13356 | _ACEOF | |
13357 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13358 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13359 | ac_status=$? | |
13360 | grep -v '^ *+' conftest.er1 >conftest.err | |
13361 | rm -f conftest.er1 | |
13362 | cat conftest.err >&5 | |
13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13364 | (exit $ac_status); } >/dev/null; then | |
13365 | if test -s conftest.err; then | |
13366 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13367 | else | |
13368 | ac_cpp_err= | |
13369 | fi | |
13370 | else | |
13371 | ac_cpp_err=yes | |
13372 | fi | |
13373 | if test -z "$ac_cpp_err"; then | |
13374 | ac_header_preproc=yes | |
13375 | else | |
13376 | echo "$as_me: failed program was:" >&5 | |
13377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13378 | ||
13379 | ac_header_preproc=no | |
13380 | fi | |
13381 | rm -f conftest.err conftest.$ac_ext | |
13382 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13383 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13384 | ||
13385 | # So? What about this header? | |
13386 | case $ac_header_compiler:$ac_header_preproc in | |
13387 | yes:no ) | |
13388 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13389 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13390 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13391 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13392 | ( | |
13393 | cat <<\_ASBOX | |
13394 | ## ------------------------------------ ## | |
13395 | ## Report this to bug-autoconf@gnu.org. ## | |
13396 | ## ------------------------------------ ## | |
13397 | _ASBOX | |
13398 | ) | | |
13399 | sed "s/^/$as_me: WARNING: /" >&2 | |
13400 | ;; | |
13401 | no:yes ) | |
13402 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13403 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13404 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13405 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13406 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13407 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13408 | ( | |
13409 | cat <<\_ASBOX | |
13410 | ## ------------------------------------ ## | |
13411 | ## Report this to bug-autoconf@gnu.org. ## | |
13412 | ## ------------------------------------ ## | |
13413 | _ASBOX | |
13414 | ) | | |
13415 | sed "s/^/$as_me: WARNING: /" >&2 | |
13416 | ;; | |
13417 | esac | |
13418 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13419 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13422 | else | |
13423 | eval "$as_ac_Header=$ac_header_preproc" | |
90dd450c | 13424 | fi |
e6cc62c6 VS |
13425 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13426 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13427 | ||
4f14bcd8 | 13428 | fi |
e6cc62c6 VS |
13429 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13430 | cat >>confdefs.h <<_ACEOF | |
13431 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13432 | _ACEOF | |
13433 | ||
21d1c967 | 13434 | fi |
e6cc62c6 | 13435 | |
21d1c967 | 13436 | done |
3a922bb4 | 13437 | |
8284b0c5 | 13438 | |
4f5a7f74 VZ |
13439 | case "${host}" in |
13440 | *-pc-os2_emx | *-pc-os2-emx ) | |
13441 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13442 | LIBS="$LIBS -lintl" | |
13443 | fi | |
13444 | ;; | |
13445 | esac | |
1542ea39 | 13446 | |
a0b9e27f MB |
13447 | if test "$wxUSE_GUI" = "yes"; then |
13448 | if test "$wxUSE_UNIX" = "yes"; then | |
e6cc62c6 VS |
13449 | |
13450 | for ac_header in X11/XKBlib.h | |
21d1c967 | 13451 | do |
e6cc62c6 VS |
13452 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13454 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13455 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13458 | fi | |
13459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13460 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13461 | else | |
13462 | # Is the header compilable? | |
13463 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13464 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13465 | cat >conftest.$ac_ext <<_ACEOF | |
13466 | #line $LINENO "configure" | |
13467 | /* confdefs.h. */ | |
13468 | _ACEOF | |
13469 | cat confdefs.h >>conftest.$ac_ext | |
13470 | cat >>conftest.$ac_ext <<_ACEOF | |
13471 | /* end confdefs.h. */ | |
13472 | $ac_includes_default | |
13473 | #include <$ac_header> | |
13474 | _ACEOF | |
13475 | rm -f conftest.$ac_objext | |
13476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13477 | (eval $ac_compile) 2>&5 | |
13478 | ac_status=$? | |
13479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13480 | (exit $ac_status); } && | |
13481 | { ac_try='test -s conftest.$ac_objext' | |
13482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13483 | (eval $ac_try) 2>&5 | |
13484 | ac_status=$? | |
13485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13486 | (exit $ac_status); }; }; then | |
13487 | ac_header_compiler=yes | |
13488 | else | |
13489 | echo "$as_me: failed program was:" >&5 | |
13490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13491 | ||
13492 | ac_header_compiler=no | |
13493 | fi | |
13494 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13495 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13496 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13497 | ||
13498 | # Is the header present? | |
13499 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13500 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13501 | cat >conftest.$ac_ext <<_ACEOF | |
13502 | #line $LINENO "configure" | |
13503 | /* confdefs.h. */ | |
13504 | _ACEOF | |
13505 | cat confdefs.h >>conftest.$ac_ext | |
13506 | cat >>conftest.$ac_ext <<_ACEOF | |
13507 | /* end confdefs.h. */ | |
13508 | #include <$ac_header> | |
13509 | _ACEOF | |
13510 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13511 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13512 | ac_status=$? | |
13513 | grep -v '^ *+' conftest.er1 >conftest.err | |
13514 | rm -f conftest.er1 | |
13515 | cat conftest.err >&5 | |
13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13517 | (exit $ac_status); } >/dev/null; then | |
13518 | if test -s conftest.err; then | |
13519 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13520 | else | |
13521 | ac_cpp_err= | |
13522 | fi | |
13523 | else | |
13524 | ac_cpp_err=yes | |
13525 | fi | |
13526 | if test -z "$ac_cpp_err"; then | |
13527 | ac_header_preproc=yes | |
13528 | else | |
13529 | echo "$as_me: failed program was:" >&5 | |
13530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13531 | ||
13532 | ac_header_preproc=no | |
13533 | fi | |
13534 | rm -f conftest.err conftest.$ac_ext | |
13535 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13536 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13537 | ||
13538 | # So? What about this header? | |
13539 | case $ac_header_compiler:$ac_header_preproc in | |
13540 | yes:no ) | |
13541 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13542 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13544 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13545 | ( | |
13546 | cat <<\_ASBOX | |
13547 | ## ------------------------------------ ## | |
13548 | ## Report this to bug-autoconf@gnu.org. ## | |
13549 | ## ------------------------------------ ## | |
13550 | _ASBOX | |
13551 | ) | | |
13552 | sed "s/^/$as_me: WARNING: /" >&2 | |
13553 | ;; | |
13554 | no:yes ) | |
13555 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13556 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13557 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13558 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13560 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13561 | ( | |
13562 | cat <<\_ASBOX | |
13563 | ## ------------------------------------ ## | |
13564 | ## Report this to bug-autoconf@gnu.org. ## | |
13565 | ## ------------------------------------ ## | |
13566 | _ASBOX | |
13567 | ) | | |
13568 | sed "s/^/$as_me: WARNING: /" >&2 | |
13569 | ;; | |
13570 | esac | |
13571 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13572 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13573 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13575 | else | |
13576 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 13577 | fi |
e6cc62c6 VS |
13578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13579 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13580 | ||
90dd450c | 13581 | fi |
e6cc62c6 VS |
13582 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13583 | cat >>confdefs.h <<_ACEOF | |
13584 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13585 | _ACEOF | |
13586 | ||
247f5006 | 13587 | fi |
e6cc62c6 | 13588 | |
247f5006 VZ |
13589 | done |
13590 | ||
a0b9e27f MB |
13591 | fi |
13592 | fi | |
247f5006 | 13593 | |
247f5006 | 13594 | |
e6cc62c6 VS |
13595 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13596 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13597 | if test "${ac_cv_c_const+set}" = set; then | |
13598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13599 | else | |
13600 | cat >conftest.$ac_ext <<_ACEOF | |
13601 | #line $LINENO "configure" | |
13602 | /* confdefs.h. */ | |
13603 | _ACEOF | |
13604 | cat confdefs.h >>conftest.$ac_ext | |
13605 | cat >>conftest.$ac_ext <<_ACEOF | |
13606 | /* end confdefs.h. */ | |
13607 | ||
13608 | int | |
13609 | main () | |
13610 | { | |
13611 | /* FIXME: Include the comments suggested by Paul. */ | |
13612 | #ifndef __cplusplus | |
13613 | /* Ultrix mips cc rejects this. */ | |
13614 | typedef int charset[2]; | |
13615 | const charset x; | |
13616 | /* SunOS 4.1.1 cc rejects this. */ | |
13617 | char const *const *ccp; | |
13618 | char **p; | |
13619 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13620 | struct point {int x, y;}; | |
13621 | static struct point const zero = {0,0}; | |
13622 | /* AIX XL C 1.02.0.0 rejects this. | |
13623 | It does not let you subtract one const X* pointer from another in | |
13624 | an arm of an if-expression whose if-part is not a constant | |
13625 | expression */ | |
13626 | const char *g = "string"; | |
13627 | ccp = &g + (g ? g-g : 0); | |
13628 | /* HPUX 7.0 cc rejects these. */ | |
13629 | ++ccp; | |
13630 | p = (char**) ccp; | |
13631 | ccp = (char const *const *) p; | |
13632 | { /* SCO 3.2v4 cc rejects this. */ | |
13633 | char *t; | |
13634 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13635 | ||
13636 | *t++ = 0; | |
13637 | } | |
13638 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13639 | int x[] = {25, 17}; | |
13640 | const int *foo = &x[0]; | |
13641 | ++foo; | |
13642 | } | |
13643 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13644 | typedef const int *iptr; | |
13645 | iptr p = 0; | |
13646 | ++p; | |
13647 | } | |
13648 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13649 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13650 | struct s { int j; const int *ap[3]; }; | |
13651 | struct s *b; b->j = 5; | |
13652 | } | |
13653 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13654 | const int foo = 10; | |
13655 | } | |
13656 | #endif | |
13657 | ||
13658 | ; | |
13659 | return 0; | |
13660 | } | |
13661 | _ACEOF | |
13662 | rm -f conftest.$ac_objext | |
13663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13664 | (eval $ac_compile) 2>&5 | |
13665 | ac_status=$? | |
13666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13667 | (exit $ac_status); } && | |
13668 | { ac_try='test -s conftest.$ac_objext' | |
13669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13670 | (eval $ac_try) 2>&5 | |
13671 | ac_status=$? | |
13672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13673 | (exit $ac_status); }; }; then | |
a0b9e27f | 13674 | ac_cv_c_const=yes |
247f5006 | 13675 | else |
e6cc62c6 VS |
13676 | echo "$as_me: failed program was:" >&5 |
13677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13678 | ||
13679 | ac_cv_c_const=no | |
247f5006 | 13680 | fi |
e6cc62c6 | 13681 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13682 | fi |
e6cc62c6 VS |
13683 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13684 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13685 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13686 | |
13687 | cat >>confdefs.h <<\_ACEOF | |
13688 | #define const | |
13689 | _ACEOF | |
10f2d63a | 13690 | |
90dd450c | 13691 | fi |
81809c07 | 13692 | |
e6cc62c6 VS |
13693 | echo "$as_me:$LINENO: checking for inline" >&5 |
13694 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13695 | if test "${ac_cv_c_inline+set}" = set; then | |
13696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13697 | else |
a0b9e27f MB |
13698 | ac_cv_c_inline=no |
13699 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 VS |
13700 | cat >conftest.$ac_ext <<_ACEOF |
13701 | #line $LINENO "configure" | |
13702 | /* confdefs.h. */ | |
13703 | _ACEOF | |
13704 | cat confdefs.h >>conftest.$ac_ext | |
13705 | cat >>conftest.$ac_ext <<_ACEOF | |
13706 | /* end confdefs.h. */ | |
13707 | #ifndef __cplusplus | |
13708 | typedef int foo_t; | |
13709 | static $ac_kw foo_t static_foo () {return 0; } | |
13710 | $ac_kw foo_t foo () {return 0; } | |
13711 | #endif | |
a0b9e27f | 13712 | |
e6cc62c6 VS |
13713 | _ACEOF |
13714 | rm -f conftest.$ac_objext | |
13715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13716 | (eval $ac_compile) 2>&5 | |
13717 | ac_status=$? | |
13718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13719 | (exit $ac_status); } && | |
13720 | { ac_try='test -s conftest.$ac_objext' | |
13721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13722 | (eval $ac_try) 2>&5 | |
13723 | ac_status=$? | |
13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13725 | (exit $ac_status); }; }; then | |
a0b9e27f | 13726 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 13727 | else |
e6cc62c6 VS |
13728 | echo "$as_me: failed program was:" >&5 |
13729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13730 | ||
247f5006 | 13731 | fi |
e6cc62c6 | 13732 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 13733 | done |
247f5006 VZ |
13734 | |
13735 | fi | |
e6cc62c6 VS |
13736 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13737 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13738 | case $ac_cv_c_inline in | |
a0b9e27f | 13739 | inline | yes) ;; |
e6cc62c6 VS |
13740 | no) |
13741 | cat >>confdefs.h <<\_ACEOF | |
13742 | #define inline | |
13743 | _ACEOF | |
a0b9e27f | 13744 | ;; |
e6cc62c6 | 13745 | *) cat >>confdefs.h <<_ACEOF |
a0b9e27f | 13746 | #define inline $ac_cv_c_inline |
e6cc62c6 | 13747 | _ACEOF |
a0b9e27f MB |
13748 | ;; |
13749 | esac | |
247f5006 | 13750 | |
247f5006 | 13751 | |
e6cc62c6 VS |
13752 | echo "$as_me:$LINENO: checking for char" >&5 |
13753 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13754 | if test "${ac_cv_type_char+set}" = set; then | |
13755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13756 | else | |
13757 | cat >conftest.$ac_ext <<_ACEOF | |
13758 | #line $LINENO "configure" | |
13759 | /* confdefs.h. */ | |
13760 | _ACEOF | |
13761 | cat confdefs.h >>conftest.$ac_ext | |
13762 | cat >>conftest.$ac_ext <<_ACEOF | |
13763 | /* end confdefs.h. */ | |
13764 | $ac_includes_default | |
13765 | int | |
13766 | main () | |
13767 | { | |
13768 | if ((char *) 0) | |
13769 | return 0; | |
13770 | if (sizeof (char)) | |
13771 | return 0; | |
13772 | ; | |
13773 | return 0; | |
13774 | } | |
13775 | _ACEOF | |
13776 | rm -f conftest.$ac_objext | |
13777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13778 | (eval $ac_compile) 2>&5 | |
13779 | ac_status=$? | |
13780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13781 | (exit $ac_status); } && | |
13782 | { ac_try='test -s conftest.$ac_objext' | |
13783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13784 | (eval $ac_try) 2>&5 | |
13785 | ac_status=$? | |
13786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13787 | (exit $ac_status); }; }; then | |
13788 | ac_cv_type_char=yes | |
13789 | else | |
13790 | echo "$as_me: failed program was:" >&5 | |
13791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13792 | ||
13793 | ac_cv_type_char=no | |
13794 | fi | |
13795 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13796 | fi | |
13797 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13798 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13799 | ||
13800 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13801 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13802 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13804 | else | |
13805 | if test "$ac_cv_type_char" = yes; then | |
13806 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13807 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13808 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13809 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 13810 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
13811 | # Depending upon the size, compute the lo and hi bounds. |
13812 | cat >conftest.$ac_ext <<_ACEOF | |
13813 | #line $LINENO "configure" | |
13814 | /* confdefs.h. */ | |
13815 | _ACEOF | |
13816 | cat confdefs.h >>conftest.$ac_ext | |
13817 | cat >>conftest.$ac_ext <<_ACEOF | |
13818 | /* end confdefs.h. */ | |
13819 | $ac_includes_default | |
13820 | int | |
13821 | main () | |
13822 | { | |
13823 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13824 | test_array [0] = 0 | |
13825 | ||
13826 | ; | |
13827 | return 0; | |
13828 | } | |
13829 | _ACEOF | |
13830 | rm -f conftest.$ac_objext | |
13831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13832 | (eval $ac_compile) 2>&5 | |
13833 | ac_status=$? | |
13834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13835 | (exit $ac_status); } && | |
13836 | { ac_try='test -s conftest.$ac_objext' | |
13837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13838 | (eval $ac_try) 2>&5 | |
13839 | ac_status=$? | |
13840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13841 | (exit $ac_status); }; }; then | |
13842 | ac_lo=0 ac_mid=0 | |
13843 | while :; do | |
13844 | cat >conftest.$ac_ext <<_ACEOF | |
13845 | #line $LINENO "configure" | |
13846 | /* confdefs.h. */ | |
13847 | _ACEOF | |
13848 | cat confdefs.h >>conftest.$ac_ext | |
13849 | cat >>conftest.$ac_ext <<_ACEOF | |
13850 | /* end confdefs.h. */ | |
13851 | $ac_includes_default | |
13852 | int | |
13853 | main () | |
13854 | { | |
13855 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13856 | test_array [0] = 0 | |
13857 | ||
13858 | ; | |
13859 | return 0; | |
13860 | } | |
13861 | _ACEOF | |
13862 | rm -f conftest.$ac_objext | |
13863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13864 | (eval $ac_compile) 2>&5 | |
13865 | ac_status=$? | |
13866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13867 | (exit $ac_status); } && | |
13868 | { ac_try='test -s conftest.$ac_objext' | |
13869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13870 | (eval $ac_try) 2>&5 | |
13871 | ac_status=$? | |
13872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13873 | (exit $ac_status); }; }; then | |
13874 | ac_hi=$ac_mid; break | |
13875 | else | |
13876 | echo "$as_me: failed program was:" >&5 | |
13877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13878 | ||
13879 | ac_lo=`expr $ac_mid + 1` | |
13880 | if test $ac_lo -le $ac_mid; then | |
13881 | ac_lo= ac_hi= | |
13882 | break | |
13883 | fi | |
13884 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13885 | fi | |
13886 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13887 | done | |
a0b9e27f | 13888 | else |
e6cc62c6 VS |
13889 | echo "$as_me: failed program was:" >&5 |
13890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13891 | ||
13892 | cat >conftest.$ac_ext <<_ACEOF | |
13893 | #line $LINENO "configure" | |
13894 | /* confdefs.h. */ | |
13895 | _ACEOF | |
13896 | cat confdefs.h >>conftest.$ac_ext | |
13897 | cat >>conftest.$ac_ext <<_ACEOF | |
13898 | /* end confdefs.h. */ | |
13899 | $ac_includes_default | |
13900 | int | |
13901 | main () | |
13902 | { | |
13903 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13904 | test_array [0] = 0 | |
13905 | ||
13906 | ; | |
13907 | return 0; | |
13908 | } | |
13909 | _ACEOF | |
13910 | rm -f conftest.$ac_objext | |
13911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13912 | (eval $ac_compile) 2>&5 | |
13913 | ac_status=$? | |
13914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13915 | (exit $ac_status); } && | |
13916 | { ac_try='test -s conftest.$ac_objext' | |
13917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13918 | (eval $ac_try) 2>&5 | |
13919 | ac_status=$? | |
13920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13921 | (exit $ac_status); }; }; then | |
13922 | ac_hi=-1 ac_mid=-1 | |
13923 | while :; do | |
13924 | cat >conftest.$ac_ext <<_ACEOF | |
13925 | #line $LINENO "configure" | |
13926 | /* confdefs.h. */ | |
13927 | _ACEOF | |
13928 | cat confdefs.h >>conftest.$ac_ext | |
13929 | cat >>conftest.$ac_ext <<_ACEOF | |
13930 | /* end confdefs.h. */ | |
13931 | $ac_includes_default | |
13932 | int | |
13933 | main () | |
13934 | { | |
13935 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13936 | test_array [0] = 0 | |
13937 | ||
13938 | ; | |
13939 | return 0; | |
13940 | } | |
13941 | _ACEOF | |
13942 | rm -f conftest.$ac_objext | |
13943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13944 | (eval $ac_compile) 2>&5 | |
13945 | ac_status=$? | |
13946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13947 | (exit $ac_status); } && | |
13948 | { ac_try='test -s conftest.$ac_objext' | |
13949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13950 | (eval $ac_try) 2>&5 | |
13951 | ac_status=$? | |
13952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13953 | (exit $ac_status); }; }; then | |
13954 | ac_lo=$ac_mid; break | |
13955 | else | |
13956 | echo "$as_me: failed program was:" >&5 | |
13957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13958 | ||
13959 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13960 | if test $ac_mid -le $ac_hi; then | |
13961 | ac_lo= ac_hi= | |
13962 | break | |
13963 | fi | |
13964 | ac_mid=`expr 2 '*' $ac_mid` | |
13965 | fi | |
13966 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13967 | done | |
13968 | else | |
13969 | echo "$as_me: failed program was:" >&5 | |
13970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13971 | ||
13972 | ac_lo= ac_hi= | |
13973 | fi | |
13974 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13975 | fi | |
13976 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13977 | # Binary search between lo and hi bounds. | |
13978 | while test "x$ac_lo" != "x$ac_hi"; do | |
13979 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13980 | cat >conftest.$ac_ext <<_ACEOF | |
13981 | #line $LINENO "configure" | |
13982 | /* confdefs.h. */ | |
13983 | _ACEOF | |
13984 | cat confdefs.h >>conftest.$ac_ext | |
13985 | cat >>conftest.$ac_ext <<_ACEOF | |
13986 | /* end confdefs.h. */ | |
13987 | $ac_includes_default | |
13988 | int | |
13989 | main () | |
13990 | { | |
13991 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13992 | test_array [0] = 0 | |
13993 | ||
13994 | ; | |
13995 | return 0; | |
13996 | } | |
13997 | _ACEOF | |
13998 | rm -f conftest.$ac_objext | |
13999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14000 | (eval $ac_compile) 2>&5 | |
14001 | ac_status=$? | |
14002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14003 | (exit $ac_status); } && | |
14004 | { ac_try='test -s conftest.$ac_objext' | |
14005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14006 | (eval $ac_try) 2>&5 | |
14007 | ac_status=$? | |
14008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14009 | (exit $ac_status); }; }; then | |
14010 | ac_hi=$ac_mid | |
14011 | else | |
14012 | echo "$as_me: failed program was:" >&5 | |
14013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14014 | ||
14015 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14016 | fi | |
14017 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14018 | done | |
14019 | case $ac_lo in | |
14020 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14021 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14022 | See \`config.log' for more details." >&5 | |
14023 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14024 | See \`config.log' for more details." >&2;} | |
14025 | { (exit 1); exit 1; }; } ;; | |
14026 | esac | |
14027 | else | |
14028 | if test "$cross_compiling" = yes; then | |
14029 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14030 | See \`config.log' for more details." >&5 | |
14031 | echo "$as_me: error: cannot run test program while cross compiling | |
14032 | See \`config.log' for more details." >&2;} | |
14033 | { (exit 1); exit 1; }; } | |
14034 | else | |
14035 | cat >conftest.$ac_ext <<_ACEOF | |
14036 | #line $LINENO "configure" | |
14037 | /* confdefs.h. */ | |
14038 | _ACEOF | |
14039 | cat confdefs.h >>conftest.$ac_ext | |
14040 | cat >>conftest.$ac_ext <<_ACEOF | |
14041 | /* end confdefs.h. */ | |
14042 | $ac_includes_default | |
14043 | long longval () { return (long) (sizeof (char)); } | |
14044 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 14045 | #include <stdio.h> |
e6cc62c6 VS |
14046 | #include <stdlib.h> |
14047 | int | |
14048 | main () | |
247f5006 | 14049 | { |
e6cc62c6 VS |
14050 | |
14051 | FILE *f = fopen ("conftest.val", "w"); | |
14052 | if (! f) | |
14053 | exit (1); | |
14054 | if (((long) (sizeof (char))) < 0) | |
14055 | { | |
14056 | long i = longval (); | |
14057 | if (i != ((long) (sizeof (char)))) | |
14058 | exit (1); | |
14059 | fprintf (f, "%ld\n", i); | |
14060 | } | |
14061 | else | |
14062 | { | |
14063 | unsigned long i = ulongval (); | |
14064 | if (i != ((long) (sizeof (char)))) | |
14065 | exit (1); | |
14066 | fprintf (f, "%lu\n", i); | |
14067 | } | |
14068 | exit (ferror (f) || fclose (f) != 0); | |
14069 | ||
14070 | ; | |
14071 | return 0; | |
52127426 | 14072 | } |
e6cc62c6 VS |
14073 | _ACEOF |
14074 | rm -f conftest$ac_exeext | |
14075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14076 | (eval $ac_link) 2>&5 | |
14077 | ac_status=$? | |
14078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14081 | (eval $ac_try) 2>&5 | |
14082 | ac_status=$? | |
14083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14084 | (exit $ac_status); }; }; then | |
14085 | ac_cv_sizeof_char=`cat conftest.val` | |
14086 | else | |
14087 | echo "$as_me: program exited with status $ac_status" >&5 | |
14088 | echo "$as_me: failed program was:" >&5 | |
14089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14090 | ||
14091 | ( exit $ac_status ) | |
14092 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14093 | See \`config.log' for more details." >&5 | |
14094 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14095 | See \`config.log' for more details." >&2;} | |
14096 | { (exit 1); exit 1; }; } | |
14097 | fi | |
14098 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14099 | fi | |
14100 | fi | |
14101 | rm -f conftest.val | |
247f5006 | 14102 | else |
a0b9e27f | 14103 | ac_cv_sizeof_char=0 |
247f5006 | 14104 | fi |
247f5006 | 14105 | fi |
e6cc62c6 VS |
14106 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14107 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14108 | cat >>confdefs.h <<_ACEOF | |
14109 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14110 | _ACEOF | |
14111 | ||
14112 | ||
14113 | echo "$as_me:$LINENO: checking for short" >&5 | |
14114 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14115 | if test "${ac_cv_type_short+set}" = set; then | |
14116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14117 | else | |
14118 | cat >conftest.$ac_ext <<_ACEOF | |
14119 | #line $LINENO "configure" | |
14120 | /* confdefs.h. */ | |
14121 | _ACEOF | |
14122 | cat confdefs.h >>conftest.$ac_ext | |
14123 | cat >>conftest.$ac_ext <<_ACEOF | |
14124 | /* end confdefs.h. */ | |
14125 | $ac_includes_default | |
14126 | int | |
14127 | main () | |
14128 | { | |
14129 | if ((short *) 0) | |
14130 | return 0; | |
14131 | if (sizeof (short)) | |
14132 | return 0; | |
14133 | ; | |
14134 | return 0; | |
14135 | } | |
14136 | _ACEOF | |
14137 | rm -f conftest.$ac_objext | |
14138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14139 | (eval $ac_compile) 2>&5 | |
14140 | ac_status=$? | |
14141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14142 | (exit $ac_status); } && | |
14143 | { ac_try='test -s conftest.$ac_objext' | |
14144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14145 | (eval $ac_try) 2>&5 | |
14146 | ac_status=$? | |
14147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14148 | (exit $ac_status); }; }; then | |
14149 | ac_cv_type_short=yes | |
14150 | else | |
14151 | echo "$as_me: failed program was:" >&5 | |
14152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14153 | ||
14154 | ac_cv_type_short=no | |
14155 | fi | |
14156 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14157 | fi | |
14158 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14159 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14160 | ||
14161 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14162 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14163 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14165 | else | |
14166 | if test "$ac_cv_type_short" = yes; then | |
14167 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14168 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14169 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14170 | # This bug is HP SR number 8606223364. | |
14171 | if test "$cross_compiling" = yes; then | |
14172 | # Depending upon the size, compute the lo and hi bounds. | |
14173 | cat >conftest.$ac_ext <<_ACEOF | |
14174 | #line $LINENO "configure" | |
14175 | /* confdefs.h. */ | |
14176 | _ACEOF | |
14177 | cat confdefs.h >>conftest.$ac_ext | |
14178 | cat >>conftest.$ac_ext <<_ACEOF | |
14179 | /* end confdefs.h. */ | |
14180 | $ac_includes_default | |
14181 | int | |
14182 | main () | |
14183 | { | |
14184 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14185 | test_array [0] = 0 | |
247f5006 | 14186 | |
e6cc62c6 VS |
14187 | ; |
14188 | return 0; | |
14189 | } | |
14190 | _ACEOF | |
14191 | rm -f conftest.$ac_objext | |
14192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14193 | (eval $ac_compile) 2>&5 | |
14194 | ac_status=$? | |
14195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14196 | (exit $ac_status); } && | |
14197 | { ac_try='test -s conftest.$ac_objext' | |
14198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14199 | (eval $ac_try) 2>&5 | |
14200 | ac_status=$? | |
14201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14202 | (exit $ac_status); }; }; then | |
14203 | ac_lo=0 ac_mid=0 | |
14204 | while :; do | |
14205 | cat >conftest.$ac_ext <<_ACEOF | |
14206 | #line $LINENO "configure" | |
14207 | /* confdefs.h. */ | |
14208 | _ACEOF | |
14209 | cat confdefs.h >>conftest.$ac_ext | |
14210 | cat >>conftest.$ac_ext <<_ACEOF | |
14211 | /* end confdefs.h. */ | |
14212 | $ac_includes_default | |
14213 | int | |
14214 | main () | |
14215 | { | |
14216 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14217 | test_array [0] = 0 | |
14218 | ||
14219 | ; | |
14220 | return 0; | |
14221 | } | |
14222 | _ACEOF | |
14223 | rm -f conftest.$ac_objext | |
14224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14225 | (eval $ac_compile) 2>&5 | |
14226 | ac_status=$? | |
14227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14228 | (exit $ac_status); } && | |
14229 | { ac_try='test -s conftest.$ac_objext' | |
14230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14231 | (eval $ac_try) 2>&5 | |
14232 | ac_status=$? | |
14233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14234 | (exit $ac_status); }; }; then | |
14235 | ac_hi=$ac_mid; break | |
14236 | else | |
14237 | echo "$as_me: failed program was:" >&5 | |
14238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14239 | ||
14240 | ac_lo=`expr $ac_mid + 1` | |
14241 | if test $ac_lo -le $ac_mid; then | |
14242 | ac_lo= ac_hi= | |
14243 | break | |
14244 | fi | |
14245 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14246 | fi |
e6cc62c6 VS |
14247 | rm -f conftest.$ac_objext conftest.$ac_ext |
14248 | done | |
14249 | else | |
14250 | echo "$as_me: failed program was:" >&5 | |
14251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14252 | ||
14253 | cat >conftest.$ac_ext <<_ACEOF | |
14254 | #line $LINENO "configure" | |
14255 | /* confdefs.h. */ | |
14256 | _ACEOF | |
14257 | cat confdefs.h >>conftest.$ac_ext | |
14258 | cat >>conftest.$ac_ext <<_ACEOF | |
14259 | /* end confdefs.h. */ | |
14260 | $ac_includes_default | |
14261 | int | |
14262 | main () | |
14263 | { | |
14264 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14265 | test_array [0] = 0 | |
247f5006 | 14266 | |
e6cc62c6 VS |
14267 | ; |
14268 | return 0; | |
14269 | } | |
14270 | _ACEOF | |
14271 | rm -f conftest.$ac_objext | |
14272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14273 | (eval $ac_compile) 2>&5 | |
14274 | ac_status=$? | |
14275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14276 | (exit $ac_status); } && | |
14277 | { ac_try='test -s conftest.$ac_objext' | |
14278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14279 | (eval $ac_try) 2>&5 | |
14280 | ac_status=$? | |
14281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14282 | (exit $ac_status); }; }; then | |
14283 | ac_hi=-1 ac_mid=-1 | |
14284 | while :; do | |
14285 | cat >conftest.$ac_ext <<_ACEOF | |
14286 | #line $LINENO "configure" | |
14287 | /* confdefs.h. */ | |
14288 | _ACEOF | |
14289 | cat confdefs.h >>conftest.$ac_ext | |
14290 | cat >>conftest.$ac_ext <<_ACEOF | |
14291 | /* end confdefs.h. */ | |
14292 | $ac_includes_default | |
14293 | int | |
14294 | main () | |
14295 | { | |
14296 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14297 | test_array [0] = 0 | |
247f5006 | 14298 | |
e6cc62c6 VS |
14299 | ; |
14300 | return 0; | |
14301 | } | |
14302 | _ACEOF | |
14303 | rm -f conftest.$ac_objext | |
14304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14305 | (eval $ac_compile) 2>&5 | |
14306 | ac_status=$? | |
14307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14308 | (exit $ac_status); } && | |
14309 | { ac_try='test -s conftest.$ac_objext' | |
14310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14311 | (eval $ac_try) 2>&5 | |
14312 | ac_status=$? | |
14313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14314 | (exit $ac_status); }; }; then | |
14315 | ac_lo=$ac_mid; break | |
14316 | else | |
14317 | echo "$as_me: failed program was:" >&5 | |
14318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14319 | ||
14320 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14321 | if test $ac_mid -le $ac_hi; then | |
14322 | ac_lo= ac_hi= | |
14323 | break | |
14324 | fi | |
14325 | ac_mid=`expr 2 '*' $ac_mid` | |
14326 | fi | |
14327 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14328 | done | |
247f5006 | 14329 | else |
e6cc62c6 VS |
14330 | echo "$as_me: failed program was:" >&5 |
14331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14332 | ||
14333 | ac_lo= ac_hi= | |
14334 | fi | |
14335 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14336 | fi | |
14337 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14338 | # Binary search between lo and hi bounds. | |
14339 | while test "x$ac_lo" != "x$ac_hi"; do | |
14340 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14341 | cat >conftest.$ac_ext <<_ACEOF | |
14342 | #line $LINENO "configure" | |
14343 | /* confdefs.h. */ | |
14344 | _ACEOF | |
14345 | cat confdefs.h >>conftest.$ac_ext | |
14346 | cat >>conftest.$ac_ext <<_ACEOF | |
14347 | /* end confdefs.h. */ | |
14348 | $ac_includes_default | |
14349 | int | |
14350 | main () | |
14351 | { | |
14352 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14353 | test_array [0] = 0 | |
14354 | ||
14355 | ; | |
14356 | return 0; | |
14357 | } | |
14358 | _ACEOF | |
14359 | rm -f conftest.$ac_objext | |
14360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14361 | (eval $ac_compile) 2>&5 | |
14362 | ac_status=$? | |
14363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14364 | (exit $ac_status); } && | |
14365 | { ac_try='test -s conftest.$ac_objext' | |
14366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14367 | (eval $ac_try) 2>&5 | |
14368 | ac_status=$? | |
14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14370 | (exit $ac_status); }; }; then | |
14371 | ac_hi=$ac_mid | |
14372 | else | |
14373 | echo "$as_me: failed program was:" >&5 | |
14374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14375 | ||
14376 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14377 | fi | |
14378 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14379 | done | |
14380 | case $ac_lo in | |
14381 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14382 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14383 | See \`config.log' for more details." >&5 | |
14384 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14385 | See \`config.log' for more details." >&2;} | |
14386 | { (exit 1); exit 1; }; } ;; | |
14387 | esac | |
247f5006 | 14388 | else |
e6cc62c6 VS |
14389 | if test "$cross_compiling" = yes; then |
14390 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14391 | See \`config.log' for more details." >&5 | |
14392 | echo "$as_me: error: cannot run test program while cross compiling | |
14393 | See \`config.log' for more details." >&2;} | |
14394 | { (exit 1); exit 1; }; } | |
14395 | else | |
14396 | cat >conftest.$ac_ext <<_ACEOF | |
14397 | #line $LINENO "configure" | |
14398 | /* confdefs.h. */ | |
14399 | _ACEOF | |
14400 | cat confdefs.h >>conftest.$ac_ext | |
14401 | cat >>conftest.$ac_ext <<_ACEOF | |
14402 | /* end confdefs.h. */ | |
14403 | $ac_includes_default | |
14404 | long longval () { return (long) (sizeof (short)); } | |
14405 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14406 | #include <stdio.h> |
e6cc62c6 VS |
14407 | #include <stdlib.h> |
14408 | int | |
14409 | main () | |
a0b9e27f | 14410 | { |
e6cc62c6 VS |
14411 | |
14412 | FILE *f = fopen ("conftest.val", "w"); | |
14413 | if (! f) | |
14414 | exit (1); | |
14415 | if (((long) (sizeof (short))) < 0) | |
14416 | { | |
14417 | long i = longval (); | |
14418 | if (i != ((long) (sizeof (short)))) | |
14419 | exit (1); | |
14420 | fprintf (f, "%ld\n", i); | |
14421 | } | |
14422 | else | |
14423 | { | |
14424 | unsigned long i = ulongval (); | |
14425 | if (i != ((long) (sizeof (short)))) | |
14426 | exit (1); | |
14427 | fprintf (f, "%lu\n", i); | |
14428 | } | |
14429 | exit (ferror (f) || fclose (f) != 0); | |
14430 | ||
14431 | ; | |
14432 | return 0; | |
a0b9e27f | 14433 | } |
e6cc62c6 VS |
14434 | _ACEOF |
14435 | rm -f conftest$ac_exeext | |
14436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14437 | (eval $ac_link) 2>&5 | |
14438 | ac_status=$? | |
14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14440 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14442 | (eval $ac_try) 2>&5 | |
14443 | ac_status=$? | |
14444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14445 | (exit $ac_status); }; }; then | |
14446 | ac_cv_sizeof_short=`cat conftest.val` | |
14447 | else | |
14448 | echo "$as_me: program exited with status $ac_status" >&5 | |
14449 | echo "$as_me: failed program was:" >&5 | |
14450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14451 | ||
14452 | ( exit $ac_status ) | |
14453 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14454 | See \`config.log' for more details." >&5 | |
14455 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14456 | See \`config.log' for more details." >&2;} | |
14457 | { (exit 1); exit 1; }; } | |
14458 | fi | |
14459 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14460 | fi | |
14461 | fi | |
14462 | rm -f conftest.val | |
247f5006 | 14463 | else |
a0b9e27f | 14464 | ac_cv_sizeof_short=0 |
247f5006 | 14465 | fi |
247f5006 | 14466 | fi |
e6cc62c6 VS |
14467 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14468 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14469 | cat >>confdefs.h <<_ACEOF | |
14470 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14471 | _ACEOF | |
14472 | ||
14473 | ||
14474 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14475 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14476 | if test "${ac_cv_type_void_p+set}" = set; then | |
14477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14478 | else | |
14479 | cat >conftest.$ac_ext <<_ACEOF | |
14480 | #line $LINENO "configure" | |
14481 | /* confdefs.h. */ | |
14482 | _ACEOF | |
14483 | cat confdefs.h >>conftest.$ac_ext | |
14484 | cat >>conftest.$ac_ext <<_ACEOF | |
14485 | /* end confdefs.h. */ | |
14486 | $ac_includes_default | |
14487 | int | |
14488 | main () | |
14489 | { | |
14490 | if ((void * *) 0) | |
14491 | return 0; | |
14492 | if (sizeof (void *)) | |
14493 | return 0; | |
14494 | ; | |
14495 | return 0; | |
14496 | } | |
14497 | _ACEOF | |
14498 | rm -f conftest.$ac_objext | |
14499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14500 | (eval $ac_compile) 2>&5 | |
14501 | ac_status=$? | |
14502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14503 | (exit $ac_status); } && | |
14504 | { ac_try='test -s conftest.$ac_objext' | |
14505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14506 | (eval $ac_try) 2>&5 | |
14507 | ac_status=$? | |
14508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14509 | (exit $ac_status); }; }; then | |
14510 | ac_cv_type_void_p=yes | |
14511 | else | |
14512 | echo "$as_me: failed program was:" >&5 | |
14513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14514 | ||
14515 | ac_cv_type_void_p=no | |
14516 | fi | |
14517 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14518 | fi | |
14519 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14520 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14521 | ||
14522 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14523 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14524 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14526 | else | |
14527 | if test "$ac_cv_type_void_p" = yes; then | |
14528 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14529 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14530 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14531 | # This bug is HP SR number 8606223364. | |
14532 | if test "$cross_compiling" = yes; then | |
14533 | # Depending upon the size, compute the lo and hi bounds. | |
14534 | cat >conftest.$ac_ext <<_ACEOF | |
14535 | #line $LINENO "configure" | |
14536 | /* confdefs.h. */ | |
14537 | _ACEOF | |
14538 | cat confdefs.h >>conftest.$ac_ext | |
14539 | cat >>conftest.$ac_ext <<_ACEOF | |
14540 | /* end confdefs.h. */ | |
14541 | $ac_includes_default | |
14542 | int | |
14543 | main () | |
14544 | { | |
14545 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14546 | test_array [0] = 0 | |
14547 | ||
14548 | ; | |
14549 | return 0; | |
14550 | } | |
14551 | _ACEOF | |
14552 | rm -f conftest.$ac_objext | |
14553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14554 | (eval $ac_compile) 2>&5 | |
14555 | ac_status=$? | |
14556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14557 | (exit $ac_status); } && | |
14558 | { ac_try='test -s conftest.$ac_objext' | |
14559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14560 | (eval $ac_try) 2>&5 | |
14561 | ac_status=$? | |
14562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14563 | (exit $ac_status); }; }; then | |
14564 | ac_lo=0 ac_mid=0 | |
14565 | while :; do | |
14566 | cat >conftest.$ac_ext <<_ACEOF | |
14567 | #line $LINENO "configure" | |
14568 | /* confdefs.h. */ | |
14569 | _ACEOF | |
14570 | cat confdefs.h >>conftest.$ac_ext | |
14571 | cat >>conftest.$ac_ext <<_ACEOF | |
14572 | /* end confdefs.h. */ | |
14573 | $ac_includes_default | |
14574 | int | |
14575 | main () | |
14576 | { | |
14577 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14578 | test_array [0] = 0 | |
247f5006 | 14579 | |
e6cc62c6 VS |
14580 | ; |
14581 | return 0; | |
14582 | } | |
14583 | _ACEOF | |
14584 | rm -f conftest.$ac_objext | |
14585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14586 | (eval $ac_compile) 2>&5 | |
14587 | ac_status=$? | |
14588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14589 | (exit $ac_status); } && | |
14590 | { ac_try='test -s conftest.$ac_objext' | |
14591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14592 | (eval $ac_try) 2>&5 | |
14593 | ac_status=$? | |
14594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14595 | (exit $ac_status); }; }; then | |
14596 | ac_hi=$ac_mid; break | |
14597 | else | |
14598 | echo "$as_me: failed program was:" >&5 | |
14599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14600 | ||
14601 | ac_lo=`expr $ac_mid + 1` | |
14602 | if test $ac_lo -le $ac_mid; then | |
14603 | ac_lo= ac_hi= | |
14604 | break | |
14605 | fi | |
14606 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14607 | fi |
e6cc62c6 VS |
14608 | rm -f conftest.$ac_objext conftest.$ac_ext |
14609 | done | |
14610 | else | |
14611 | echo "$as_me: failed program was:" >&5 | |
14612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14613 | ||
14614 | cat >conftest.$ac_ext <<_ACEOF | |
14615 | #line $LINENO "configure" | |
14616 | /* confdefs.h. */ | |
14617 | _ACEOF | |
14618 | cat confdefs.h >>conftest.$ac_ext | |
14619 | cat >>conftest.$ac_ext <<_ACEOF | |
14620 | /* end confdefs.h. */ | |
14621 | $ac_includes_default | |
14622 | int | |
14623 | main () | |
14624 | { | |
14625 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14626 | test_array [0] = 0 | |
247f5006 | 14627 | |
e6cc62c6 VS |
14628 | ; |
14629 | return 0; | |
14630 | } | |
14631 | _ACEOF | |
14632 | rm -f conftest.$ac_objext | |
14633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14634 | (eval $ac_compile) 2>&5 | |
14635 | ac_status=$? | |
14636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14637 | (exit $ac_status); } && | |
14638 | { ac_try='test -s conftest.$ac_objext' | |
14639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14640 | (eval $ac_try) 2>&5 | |
14641 | ac_status=$? | |
14642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14643 | (exit $ac_status); }; }; then | |
14644 | ac_hi=-1 ac_mid=-1 | |
14645 | while :; do | |
14646 | cat >conftest.$ac_ext <<_ACEOF | |
14647 | #line $LINENO "configure" | |
14648 | /* confdefs.h. */ | |
14649 | _ACEOF | |
14650 | cat confdefs.h >>conftest.$ac_ext | |
14651 | cat >>conftest.$ac_ext <<_ACEOF | |
14652 | /* end confdefs.h. */ | |
14653 | $ac_includes_default | |
14654 | int | |
14655 | main () | |
14656 | { | |
14657 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14658 | test_array [0] = 0 | |
247f5006 | 14659 | |
e6cc62c6 VS |
14660 | ; |
14661 | return 0; | |
14662 | } | |
14663 | _ACEOF | |
14664 | rm -f conftest.$ac_objext | |
14665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14666 | (eval $ac_compile) 2>&5 | |
14667 | ac_status=$? | |
14668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14669 | (exit $ac_status); } && | |
14670 | { ac_try='test -s conftest.$ac_objext' | |
14671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14672 | (eval $ac_try) 2>&5 | |
14673 | ac_status=$? | |
14674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14675 | (exit $ac_status); }; }; then | |
14676 | ac_lo=$ac_mid; break | |
14677 | else | |
14678 | echo "$as_me: failed program was:" >&5 | |
14679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14680 | ||
14681 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14682 | if test $ac_mid -le $ac_hi; then | |
14683 | ac_lo= ac_hi= | |
14684 | break | |
14685 | fi | |
14686 | ac_mid=`expr 2 '*' $ac_mid` | |
14687 | fi | |
14688 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14689 | done | |
a0b9e27f | 14690 | else |
e6cc62c6 VS |
14691 | echo "$as_me: failed program was:" >&5 |
14692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14693 | ||
14694 | ac_lo= ac_hi= | |
14695 | fi | |
14696 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14697 | fi | |
14698 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14699 | # Binary search between lo and hi bounds. | |
14700 | while test "x$ac_lo" != "x$ac_hi"; do | |
14701 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14702 | cat >conftest.$ac_ext <<_ACEOF | |
14703 | #line $LINENO "configure" | |
14704 | /* confdefs.h. */ | |
14705 | _ACEOF | |
14706 | cat confdefs.h >>conftest.$ac_ext | |
14707 | cat >>conftest.$ac_ext <<_ACEOF | |
14708 | /* end confdefs.h. */ | |
14709 | $ac_includes_default | |
14710 | int | |
14711 | main () | |
14712 | { | |
14713 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14714 | test_array [0] = 0 | |
14715 | ||
14716 | ; | |
14717 | return 0; | |
14718 | } | |
14719 | _ACEOF | |
14720 | rm -f conftest.$ac_objext | |
14721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14722 | (eval $ac_compile) 2>&5 | |
14723 | ac_status=$? | |
14724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14725 | (exit $ac_status); } && | |
14726 | { ac_try='test -s conftest.$ac_objext' | |
14727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14728 | (eval $ac_try) 2>&5 | |
14729 | ac_status=$? | |
14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14731 | (exit $ac_status); }; }; then | |
14732 | ac_hi=$ac_mid | |
14733 | else | |
14734 | echo "$as_me: failed program was:" >&5 | |
14735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14736 | ||
14737 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14738 | fi | |
14739 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14740 | done | |
14741 | case $ac_lo in | |
14742 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14743 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14744 | See \`config.log' for more details." >&5 | |
14745 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14746 | See \`config.log' for more details." >&2;} | |
14747 | { (exit 1); exit 1; }; } ;; | |
14748 | esac | |
247f5006 | 14749 | else |
e6cc62c6 VS |
14750 | if test "$cross_compiling" = yes; then |
14751 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14752 | See \`config.log' for more details." >&5 | |
14753 | echo "$as_me: error: cannot run test program while cross compiling | |
14754 | See \`config.log' for more details." >&2;} | |
14755 | { (exit 1); exit 1; }; } | |
14756 | else | |
14757 | cat >conftest.$ac_ext <<_ACEOF | |
14758 | #line $LINENO "configure" | |
14759 | /* confdefs.h. */ | |
14760 | _ACEOF | |
14761 | cat confdefs.h >>conftest.$ac_ext | |
14762 | cat >>conftest.$ac_ext <<_ACEOF | |
14763 | /* end confdefs.h. */ | |
14764 | $ac_includes_default | |
14765 | long longval () { return (long) (sizeof (void *)); } | |
14766 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 14767 | #include <stdio.h> |
e6cc62c6 VS |
14768 | #include <stdlib.h> |
14769 | int | |
14770 | main () | |
247f5006 | 14771 | { |
e6cc62c6 VS |
14772 | |
14773 | FILE *f = fopen ("conftest.val", "w"); | |
14774 | if (! f) | |
14775 | exit (1); | |
14776 | if (((long) (sizeof (void *))) < 0) | |
14777 | { | |
14778 | long i = longval (); | |
14779 | if (i != ((long) (sizeof (void *)))) | |
14780 | exit (1); | |
14781 | fprintf (f, "%ld\n", i); | |
14782 | } | |
14783 | else | |
14784 | { | |
14785 | unsigned long i = ulongval (); | |
14786 | if (i != ((long) (sizeof (void *)))) | |
14787 | exit (1); | |
14788 | fprintf (f, "%lu\n", i); | |
14789 | } | |
14790 | exit (ferror (f) || fclose (f) != 0); | |
14791 | ||
14792 | ; | |
14793 | return 0; | |
5c6fa7d2 | 14794 | } |
e6cc62c6 VS |
14795 | _ACEOF |
14796 | rm -f conftest$ac_exeext | |
14797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14798 | (eval $ac_link) 2>&5 | |
14799 | ac_status=$? | |
14800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14803 | (eval $ac_try) 2>&5 | |
14804 | ac_status=$? | |
14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14806 | (exit $ac_status); }; }; then | |
14807 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14808 | else | |
14809 | echo "$as_me: program exited with status $ac_status" >&5 | |
14810 | echo "$as_me: failed program was:" >&5 | |
14811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14812 | ||
14813 | ( exit $ac_status ) | |
14814 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14815 | See \`config.log' for more details." >&5 | |
14816 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14817 | See \`config.log' for more details." >&2;} | |
14818 | { (exit 1); exit 1; }; } | |
14819 | fi | |
14820 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14821 | fi | |
14822 | fi | |
14823 | rm -f conftest.val | |
a0b9e27f | 14824 | else |
a0b9e27f MB |
14825 | ac_cv_sizeof_void_p=0 |
14826 | fi | |
a0b9e27f | 14827 | fi |
e6cc62c6 VS |
14828 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14829 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14830 | cat >>confdefs.h <<_ACEOF | |
14831 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14832 | _ACEOF | |
14833 | ||
14834 | ||
14835 | echo "$as_me:$LINENO: checking for int" >&5 | |
14836 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14837 | if test "${ac_cv_type_int+set}" = set; then | |
14838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14839 | else | |
14840 | cat >conftest.$ac_ext <<_ACEOF | |
14841 | #line $LINENO "configure" | |
14842 | /* confdefs.h. */ | |
14843 | _ACEOF | |
14844 | cat confdefs.h >>conftest.$ac_ext | |
14845 | cat >>conftest.$ac_ext <<_ACEOF | |
14846 | /* end confdefs.h. */ | |
14847 | $ac_includes_default | |
14848 | int | |
14849 | main () | |
14850 | { | |
14851 | if ((int *) 0) | |
14852 | return 0; | |
14853 | if (sizeof (int)) | |
14854 | return 0; | |
14855 | ; | |
14856 | return 0; | |
14857 | } | |
14858 | _ACEOF | |
14859 | rm -f conftest.$ac_objext | |
14860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14861 | (eval $ac_compile) 2>&5 | |
14862 | ac_status=$? | |
14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14864 | (exit $ac_status); } && | |
14865 | { ac_try='test -s conftest.$ac_objext' | |
14866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14867 | (eval $ac_try) 2>&5 | |
14868 | ac_status=$? | |
14869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14870 | (exit $ac_status); }; }; then | |
14871 | ac_cv_type_int=yes | |
14872 | else | |
14873 | echo "$as_me: failed program was:" >&5 | |
14874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14875 | ||
14876 | ac_cv_type_int=no | |
14877 | fi | |
14878 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14879 | fi | |
14880 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14881 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14882 | ||
14883 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14884 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14885 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14887 | else | |
14888 | if test "$ac_cv_type_int" = yes; then | |
14889 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14890 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14891 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14892 | # This bug is HP SR number 8606223364. | |
14893 | if test "$cross_compiling" = yes; then | |
14894 | # Depending upon the size, compute the lo and hi bounds. | |
14895 | cat >conftest.$ac_ext <<_ACEOF | |
14896 | #line $LINENO "configure" | |
14897 | /* confdefs.h. */ | |
14898 | _ACEOF | |
14899 | cat confdefs.h >>conftest.$ac_ext | |
14900 | cat >>conftest.$ac_ext <<_ACEOF | |
14901 | /* end confdefs.h. */ | |
14902 | $ac_includes_default | |
14903 | int | |
14904 | main () | |
14905 | { | |
14906 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14907 | test_array [0] = 0 | |
8284b0c5 | 14908 | |
e6cc62c6 VS |
14909 | ; |
14910 | return 0; | |
14911 | } | |
14912 | _ACEOF | |
14913 | rm -f conftest.$ac_objext | |
14914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14915 | (eval $ac_compile) 2>&5 | |
14916 | ac_status=$? | |
14917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14918 | (exit $ac_status); } && | |
14919 | { ac_try='test -s conftest.$ac_objext' | |
14920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14921 | (eval $ac_try) 2>&5 | |
14922 | ac_status=$? | |
14923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14924 | (exit $ac_status); }; }; then | |
14925 | ac_lo=0 ac_mid=0 | |
14926 | while :; do | |
14927 | cat >conftest.$ac_ext <<_ACEOF | |
14928 | #line $LINENO "configure" | |
14929 | /* confdefs.h. */ | |
14930 | _ACEOF | |
14931 | cat confdefs.h >>conftest.$ac_ext | |
14932 | cat >>conftest.$ac_ext <<_ACEOF | |
14933 | /* end confdefs.h. */ | |
14934 | $ac_includes_default | |
14935 | int | |
14936 | main () | |
14937 | { | |
14938 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14939 | test_array [0] = 0 | |
14940 | ||
14941 | ; | |
14942 | return 0; | |
14943 | } | |
14944 | _ACEOF | |
14945 | rm -f conftest.$ac_objext | |
14946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14947 | (eval $ac_compile) 2>&5 | |
14948 | ac_status=$? | |
14949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14950 | (exit $ac_status); } && | |
14951 | { ac_try='test -s conftest.$ac_objext' | |
14952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14953 | (eval $ac_try) 2>&5 | |
14954 | ac_status=$? | |
14955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14956 | (exit $ac_status); }; }; then | |
14957 | ac_hi=$ac_mid; break | |
14958 | else | |
14959 | echo "$as_me: failed program was:" >&5 | |
14960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14961 | ||
14962 | ac_lo=`expr $ac_mid + 1` | |
14963 | if test $ac_lo -le $ac_mid; then | |
14964 | ac_lo= ac_hi= | |
14965 | break | |
14966 | fi | |
14967 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14968 | fi |
e6cc62c6 VS |
14969 | rm -f conftest.$ac_objext conftest.$ac_ext |
14970 | done | |
14971 | else | |
14972 | echo "$as_me: failed program was:" >&5 | |
14973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14974 | ||
14975 | cat >conftest.$ac_ext <<_ACEOF | |
14976 | #line $LINENO "configure" | |
14977 | /* confdefs.h. */ | |
14978 | _ACEOF | |
14979 | cat confdefs.h >>conftest.$ac_ext | |
14980 | cat >>conftest.$ac_ext <<_ACEOF | |
14981 | /* end confdefs.h. */ | |
14982 | $ac_includes_default | |
14983 | int | |
14984 | main () | |
14985 | { | |
14986 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14987 | test_array [0] = 0 | |
247f5006 | 14988 | |
e6cc62c6 VS |
14989 | ; |
14990 | return 0; | |
14991 | } | |
14992 | _ACEOF | |
14993 | rm -f conftest.$ac_objext | |
14994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14995 | (eval $ac_compile) 2>&5 | |
14996 | ac_status=$? | |
14997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14998 | (exit $ac_status); } && | |
14999 | { ac_try='test -s conftest.$ac_objext' | |
15000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15001 | (eval $ac_try) 2>&5 | |
15002 | ac_status=$? | |
15003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15004 | (exit $ac_status); }; }; then | |
15005 | ac_hi=-1 ac_mid=-1 | |
15006 | while :; do | |
15007 | cat >conftest.$ac_ext <<_ACEOF | |
15008 | #line $LINENO "configure" | |
15009 | /* confdefs.h. */ | |
15010 | _ACEOF | |
15011 | cat confdefs.h >>conftest.$ac_ext | |
15012 | cat >>conftest.$ac_ext <<_ACEOF | |
15013 | /* end confdefs.h. */ | |
15014 | $ac_includes_default | |
15015 | int | |
15016 | main () | |
15017 | { | |
15018 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15019 | test_array [0] = 0 | |
247f5006 | 15020 | |
e6cc62c6 VS |
15021 | ; |
15022 | return 0; | |
15023 | } | |
15024 | _ACEOF | |
15025 | rm -f conftest.$ac_objext | |
15026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15027 | (eval $ac_compile) 2>&5 | |
15028 | ac_status=$? | |
15029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15030 | (exit $ac_status); } && | |
15031 | { ac_try='test -s conftest.$ac_objext' | |
15032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15033 | (eval $ac_try) 2>&5 | |
15034 | ac_status=$? | |
15035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15036 | (exit $ac_status); }; }; then | |
15037 | ac_lo=$ac_mid; break | |
15038 | else | |
15039 | echo "$as_me: failed program was:" >&5 | |
15040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15041 | ||
15042 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15043 | if test $ac_mid -le $ac_hi; then | |
15044 | ac_lo= ac_hi= | |
15045 | break | |
15046 | fi | |
15047 | ac_mid=`expr 2 '*' $ac_mid` | |
15048 | fi | |
15049 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15050 | done | |
247f5006 | 15051 | else |
e6cc62c6 VS |
15052 | echo "$as_me: failed program was:" >&5 |
15053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15054 | ||
15055 | ac_lo= ac_hi= | |
15056 | fi | |
15057 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15058 | fi | |
15059 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15060 | # Binary search between lo and hi bounds. | |
15061 | while test "x$ac_lo" != "x$ac_hi"; do | |
15062 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15063 | cat >conftest.$ac_ext <<_ACEOF | |
15064 | #line $LINENO "configure" | |
15065 | /* confdefs.h. */ | |
15066 | _ACEOF | |
15067 | cat confdefs.h >>conftest.$ac_ext | |
15068 | cat >>conftest.$ac_ext <<_ACEOF | |
15069 | /* end confdefs.h. */ | |
15070 | $ac_includes_default | |
15071 | int | |
15072 | main () | |
15073 | { | |
15074 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15075 | test_array [0] = 0 | |
15076 | ||
15077 | ; | |
15078 | return 0; | |
15079 | } | |
15080 | _ACEOF | |
15081 | rm -f conftest.$ac_objext | |
15082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15083 | (eval $ac_compile) 2>&5 | |
15084 | ac_status=$? | |
15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15086 | (exit $ac_status); } && | |
15087 | { ac_try='test -s conftest.$ac_objext' | |
15088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15089 | (eval $ac_try) 2>&5 | |
15090 | ac_status=$? | |
15091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15092 | (exit $ac_status); }; }; then | |
15093 | ac_hi=$ac_mid | |
15094 | else | |
15095 | echo "$as_me: failed program was:" >&5 | |
15096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15097 | ||
15098 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15099 | fi | |
15100 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15101 | done | |
15102 | case $ac_lo in | |
15103 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15104 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15105 | See \`config.log' for more details." >&5 | |
15106 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15107 | See \`config.log' for more details." >&2;} | |
15108 | { (exit 1); exit 1; }; } ;; | |
15109 | esac | |
a0b9e27f | 15110 | else |
e6cc62c6 VS |
15111 | if test "$cross_compiling" = yes; then |
15112 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15113 | See \`config.log' for more details." >&5 | |
15114 | echo "$as_me: error: cannot run test program while cross compiling | |
15115 | See \`config.log' for more details." >&2;} | |
15116 | { (exit 1); exit 1; }; } | |
15117 | else | |
15118 | cat >conftest.$ac_ext <<_ACEOF | |
15119 | #line $LINENO "configure" | |
15120 | /* confdefs.h. */ | |
15121 | _ACEOF | |
15122 | cat confdefs.h >>conftest.$ac_ext | |
15123 | cat >>conftest.$ac_ext <<_ACEOF | |
15124 | /* end confdefs.h. */ | |
15125 | $ac_includes_default | |
15126 | long longval () { return (long) (sizeof (int)); } | |
15127 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15128 | #include <stdio.h> |
e6cc62c6 VS |
15129 | #include <stdlib.h> |
15130 | int | |
15131 | main () | |
247f5006 | 15132 | { |
e6cc62c6 VS |
15133 | |
15134 | FILE *f = fopen ("conftest.val", "w"); | |
15135 | if (! f) | |
15136 | exit (1); | |
15137 | if (((long) (sizeof (int))) < 0) | |
15138 | { | |
15139 | long i = longval (); | |
15140 | if (i != ((long) (sizeof (int)))) | |
15141 | exit (1); | |
15142 | fprintf (f, "%ld\n", i); | |
15143 | } | |
15144 | else | |
15145 | { | |
15146 | unsigned long i = ulongval (); | |
15147 | if (i != ((long) (sizeof (int)))) | |
15148 | exit (1); | |
15149 | fprintf (f, "%lu\n", i); | |
15150 | } | |
15151 | exit (ferror (f) || fclose (f) != 0); | |
15152 | ||
15153 | ; | |
15154 | return 0; | |
247f5006 | 15155 | } |
e6cc62c6 VS |
15156 | _ACEOF |
15157 | rm -f conftest$ac_exeext | |
15158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15159 | (eval $ac_link) 2>&5 | |
15160 | ac_status=$? | |
15161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15162 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15164 | (eval $ac_try) 2>&5 | |
15165 | ac_status=$? | |
15166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15167 | (exit $ac_status); }; }; then | |
15168 | ac_cv_sizeof_int=`cat conftest.val` | |
15169 | else | |
15170 | echo "$as_me: program exited with status $ac_status" >&5 | |
15171 | echo "$as_me: failed program was:" >&5 | |
15172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15173 | ||
15174 | ( exit $ac_status ) | |
15175 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15176 | See \`config.log' for more details." >&5 | |
15177 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15178 | See \`config.log' for more details." >&2;} | |
15179 | { (exit 1); exit 1; }; } | |
15180 | fi | |
15181 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15182 | fi | |
15183 | fi | |
15184 | rm -f conftest.val | |
6f72b082 | 15185 | else |
a0b9e27f | 15186 | ac_cv_sizeof_int=0 |
21d1c967 | 15187 | fi |
698dcdb6 | 15188 | fi |
e6cc62c6 VS |
15189 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15190 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15191 | cat >>confdefs.h <<_ACEOF | |
15192 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15193 | _ACEOF | |
15194 | ||
15195 | ||
15196 | echo "$as_me:$LINENO: checking for long" >&5 | |
15197 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15198 | if test "${ac_cv_type_long+set}" = set; then | |
15199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15200 | else | |
15201 | cat >conftest.$ac_ext <<_ACEOF | |
15202 | #line $LINENO "configure" | |
15203 | /* confdefs.h. */ | |
15204 | _ACEOF | |
15205 | cat confdefs.h >>conftest.$ac_ext | |
15206 | cat >>conftest.$ac_ext <<_ACEOF | |
15207 | /* end confdefs.h. */ | |
15208 | $ac_includes_default | |
15209 | int | |
15210 | main () | |
15211 | { | |
15212 | if ((long *) 0) | |
15213 | return 0; | |
15214 | if (sizeof (long)) | |
15215 | return 0; | |
15216 | ; | |
15217 | return 0; | |
15218 | } | |
15219 | _ACEOF | |
15220 | rm -f conftest.$ac_objext | |
15221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15222 | (eval $ac_compile) 2>&5 | |
15223 | ac_status=$? | |
15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15225 | (exit $ac_status); } && | |
15226 | { ac_try='test -s conftest.$ac_objext' | |
15227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15228 | (eval $ac_try) 2>&5 | |
15229 | ac_status=$? | |
15230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15231 | (exit $ac_status); }; }; then | |
15232 | ac_cv_type_long=yes | |
15233 | else | |
15234 | echo "$as_me: failed program was:" >&5 | |
15235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15236 | ||
15237 | ac_cv_type_long=no | |
15238 | fi | |
15239 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15240 | fi | |
15241 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15242 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15243 | ||
15244 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15245 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15246 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15248 | else | |
15249 | if test "$ac_cv_type_long" = yes; then | |
15250 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15251 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15252 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15253 | # This bug is HP SR number 8606223364. | |
15254 | if test "$cross_compiling" = yes; then | |
15255 | # Depending upon the size, compute the lo and hi bounds. | |
15256 | cat >conftest.$ac_ext <<_ACEOF | |
15257 | #line $LINENO "configure" | |
15258 | /* confdefs.h. */ | |
15259 | _ACEOF | |
15260 | cat confdefs.h >>conftest.$ac_ext | |
15261 | cat >>conftest.$ac_ext <<_ACEOF | |
15262 | /* end confdefs.h. */ | |
15263 | $ac_includes_default | |
15264 | int | |
15265 | main () | |
15266 | { | |
15267 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15268 | test_array [0] = 0 | |
15269 | ||
15270 | ; | |
15271 | return 0; | |
15272 | } | |
15273 | _ACEOF | |
15274 | rm -f conftest.$ac_objext | |
15275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15276 | (eval $ac_compile) 2>&5 | |
15277 | ac_status=$? | |
15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15279 | (exit $ac_status); } && | |
15280 | { ac_try='test -s conftest.$ac_objext' | |
15281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15282 | (eval $ac_try) 2>&5 | |
15283 | ac_status=$? | |
15284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15285 | (exit $ac_status); }; }; then | |
15286 | ac_lo=0 ac_mid=0 | |
15287 | while :; do | |
15288 | cat >conftest.$ac_ext <<_ACEOF | |
15289 | #line $LINENO "configure" | |
15290 | /* confdefs.h. */ | |
15291 | _ACEOF | |
15292 | cat confdefs.h >>conftest.$ac_ext | |
15293 | cat >>conftest.$ac_ext <<_ACEOF | |
15294 | /* end confdefs.h. */ | |
15295 | $ac_includes_default | |
15296 | int | |
15297 | main () | |
15298 | { | |
15299 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15300 | test_array [0] = 0 | |
4f14bcd8 | 15301 | |
e6cc62c6 VS |
15302 | ; |
15303 | return 0; | |
15304 | } | |
15305 | _ACEOF | |
15306 | rm -f conftest.$ac_objext | |
15307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15308 | (eval $ac_compile) 2>&5 | |
15309 | ac_status=$? | |
15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15311 | (exit $ac_status); } && | |
15312 | { ac_try='test -s conftest.$ac_objext' | |
15313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15314 | (eval $ac_try) 2>&5 | |
15315 | ac_status=$? | |
15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15317 | (exit $ac_status); }; }; then | |
15318 | ac_hi=$ac_mid; break | |
15319 | else | |
15320 | echo "$as_me: failed program was:" >&5 | |
15321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15322 | ||
15323 | ac_lo=`expr $ac_mid + 1` | |
15324 | if test $ac_lo -le $ac_mid; then | |
15325 | ac_lo= ac_hi= | |
15326 | break | |
15327 | fi | |
15328 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15329 | fi |
e6cc62c6 VS |
15330 | rm -f conftest.$ac_objext conftest.$ac_ext |
15331 | done | |
15332 | else | |
15333 | echo "$as_me: failed program was:" >&5 | |
15334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15335 | ||
15336 | cat >conftest.$ac_ext <<_ACEOF | |
15337 | #line $LINENO "configure" | |
15338 | /* confdefs.h. */ | |
15339 | _ACEOF | |
15340 | cat confdefs.h >>conftest.$ac_ext | |
15341 | cat >>conftest.$ac_ext <<_ACEOF | |
15342 | /* end confdefs.h. */ | |
15343 | $ac_includes_default | |
15344 | int | |
15345 | main () | |
15346 | { | |
15347 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15348 | test_array [0] = 0 | |
4f14bcd8 | 15349 | |
e6cc62c6 VS |
15350 | ; |
15351 | return 0; | |
15352 | } | |
15353 | _ACEOF | |
15354 | rm -f conftest.$ac_objext | |
15355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15356 | (eval $ac_compile) 2>&5 | |
15357 | ac_status=$? | |
15358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15359 | (exit $ac_status); } && | |
15360 | { ac_try='test -s conftest.$ac_objext' | |
15361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15362 | (eval $ac_try) 2>&5 | |
15363 | ac_status=$? | |
15364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15365 | (exit $ac_status); }; }; then | |
15366 | ac_hi=-1 ac_mid=-1 | |
15367 | while :; do | |
15368 | cat >conftest.$ac_ext <<_ACEOF | |
15369 | #line $LINENO "configure" | |
15370 | /* confdefs.h. */ | |
15371 | _ACEOF | |
15372 | cat confdefs.h >>conftest.$ac_ext | |
15373 | cat >>conftest.$ac_ext <<_ACEOF | |
15374 | /* end confdefs.h. */ | |
15375 | $ac_includes_default | |
15376 | int | |
15377 | main () | |
15378 | { | |
15379 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15380 | test_array [0] = 0 | |
5c6fa7d2 | 15381 | |
e6cc62c6 VS |
15382 | ; |
15383 | return 0; | |
15384 | } | |
15385 | _ACEOF | |
15386 | rm -f conftest.$ac_objext | |
15387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15388 | (eval $ac_compile) 2>&5 | |
15389 | ac_status=$? | |
15390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15391 | (exit $ac_status); } && | |
15392 | { ac_try='test -s conftest.$ac_objext' | |
15393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15394 | (eval $ac_try) 2>&5 | |
15395 | ac_status=$? | |
15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15397 | (exit $ac_status); }; }; then | |
15398 | ac_lo=$ac_mid; break | |
15399 | else | |
15400 | echo "$as_me: failed program was:" >&5 | |
15401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15402 | ||
15403 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15404 | if test $ac_mid -le $ac_hi; then | |
15405 | ac_lo= ac_hi= | |
15406 | break | |
15407 | fi | |
15408 | ac_mid=`expr 2 '*' $ac_mid` | |
15409 | fi | |
15410 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15411 | done | |
247f5006 | 15412 | else |
e6cc62c6 VS |
15413 | echo "$as_me: failed program was:" >&5 |
15414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15415 | ||
15416 | ac_lo= ac_hi= | |
15417 | fi | |
15418 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15419 | fi | |
15420 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15421 | # Binary search between lo and hi bounds. | |
15422 | while test "x$ac_lo" != "x$ac_hi"; do | |
15423 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15424 | cat >conftest.$ac_ext <<_ACEOF | |
15425 | #line $LINENO "configure" | |
15426 | /* confdefs.h. */ | |
15427 | _ACEOF | |
15428 | cat confdefs.h >>conftest.$ac_ext | |
15429 | cat >>conftest.$ac_ext <<_ACEOF | |
15430 | /* end confdefs.h. */ | |
15431 | $ac_includes_default | |
15432 | int | |
15433 | main () | |
15434 | { | |
15435 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15436 | test_array [0] = 0 | |
15437 | ||
15438 | ; | |
15439 | return 0; | |
15440 | } | |
15441 | _ACEOF | |
15442 | rm -f conftest.$ac_objext | |
15443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15444 | (eval $ac_compile) 2>&5 | |
15445 | ac_status=$? | |
15446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15447 | (exit $ac_status); } && | |
15448 | { ac_try='test -s conftest.$ac_objext' | |
15449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15450 | (eval $ac_try) 2>&5 | |
15451 | ac_status=$? | |
15452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15453 | (exit $ac_status); }; }; then | |
15454 | ac_hi=$ac_mid | |
15455 | else | |
15456 | echo "$as_me: failed program was:" >&5 | |
15457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15458 | ||
15459 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15460 | fi | |
15461 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15462 | done | |
15463 | case $ac_lo in | |
15464 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15465 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15466 | See \`config.log' for more details." >&5 | |
15467 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15468 | See \`config.log' for more details." >&2;} | |
15469 | { (exit 1); exit 1; }; } ;; | |
15470 | esac | |
247f5006 | 15471 | else |
e6cc62c6 VS |
15472 | if test "$cross_compiling" = yes; then |
15473 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15474 | See \`config.log' for more details." >&5 | |
15475 | echo "$as_me: error: cannot run test program while cross compiling | |
15476 | See \`config.log' for more details." >&2;} | |
15477 | { (exit 1); exit 1; }; } | |
15478 | else | |
15479 | cat >conftest.$ac_ext <<_ACEOF | |
15480 | #line $LINENO "configure" | |
15481 | /* confdefs.h. */ | |
15482 | _ACEOF | |
15483 | cat confdefs.h >>conftest.$ac_ext | |
15484 | cat >>conftest.$ac_ext <<_ACEOF | |
15485 | /* end confdefs.h. */ | |
15486 | $ac_includes_default | |
15487 | long longval () { return (long) (sizeof (long)); } | |
15488 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 15489 | #include <stdio.h> |
e6cc62c6 VS |
15490 | #include <stdlib.h> |
15491 | int | |
15492 | main () | |
247f5006 | 15493 | { |
e6cc62c6 VS |
15494 | |
15495 | FILE *f = fopen ("conftest.val", "w"); | |
15496 | if (! f) | |
15497 | exit (1); | |
15498 | if (((long) (sizeof (long))) < 0) | |
15499 | { | |
15500 | long i = longval (); | |
15501 | if (i != ((long) (sizeof (long)))) | |
15502 | exit (1); | |
15503 | fprintf (f, "%ld\n", i); | |
15504 | } | |
15505 | else | |
15506 | { | |
15507 | unsigned long i = ulongval (); | |
15508 | if (i != ((long) (sizeof (long)))) | |
15509 | exit (1); | |
15510 | fprintf (f, "%lu\n", i); | |
15511 | } | |
15512 | exit (ferror (f) || fclose (f) != 0); | |
15513 | ||
15514 | ; | |
15515 | return 0; | |
247f5006 | 15516 | } |
e6cc62c6 VS |
15517 | _ACEOF |
15518 | rm -f conftest$ac_exeext | |
15519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15520 | (eval $ac_link) 2>&5 | |
15521 | ac_status=$? | |
15522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15523 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15525 | (eval $ac_try) 2>&5 | |
15526 | ac_status=$? | |
15527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15528 | (exit $ac_status); }; }; then | |
15529 | ac_cv_sizeof_long=`cat conftest.val` | |
15530 | else | |
15531 | echo "$as_me: program exited with status $ac_status" >&5 | |
15532 | echo "$as_me: failed program was:" >&5 | |
15533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15534 | ||
15535 | ( exit $ac_status ) | |
15536 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15537 | See \`config.log' for more details." >&5 | |
15538 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15539 | See \`config.log' for more details." >&2;} | |
15540 | { (exit 1); exit 1; }; } | |
15541 | fi | |
15542 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15543 | fi | |
15544 | fi | |
15545 | rm -f conftest.val | |
247f5006 | 15546 | else |
a0b9e27f | 15547 | ac_cv_sizeof_long=0 |
247f5006 | 15548 | fi |
247f5006 | 15549 | fi |
e6cc62c6 VS |
15550 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
15551 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15552 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 15553 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 15554 | _ACEOF |
247f5006 | 15555 | |
a0b9e27f MB |
15556 | |
15557 | ||
15558 | case "${host}" in | |
15559 | arm-*-linux* ) | |
e6cc62c6 VS |
15560 | echo "$as_me:$LINENO: checking for long long" >&5 |
15561 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15562 | if test "${ac_cv_type_long_long+set}" = set; then | |
15563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15564 | else | |
15565 | cat >conftest.$ac_ext <<_ACEOF | |
15566 | #line $LINENO "configure" | |
15567 | /* confdefs.h. */ | |
15568 | _ACEOF | |
15569 | cat confdefs.h >>conftest.$ac_ext | |
15570 | cat >>conftest.$ac_ext <<_ACEOF | |
15571 | /* end confdefs.h. */ | |
15572 | $ac_includes_default | |
15573 | int | |
15574 | main () | |
15575 | { | |
15576 | if ((long long *) 0) | |
15577 | return 0; | |
15578 | if (sizeof (long long)) | |
15579 | return 0; | |
15580 | ; | |
15581 | return 0; | |
15582 | } | |
15583 | _ACEOF | |
15584 | rm -f conftest.$ac_objext | |
15585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15586 | (eval $ac_compile) 2>&5 | |
15587 | ac_status=$? | |
15588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15589 | (exit $ac_status); } && | |
15590 | { ac_try='test -s conftest.$ac_objext' | |
15591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15592 | (eval $ac_try) 2>&5 | |
15593 | ac_status=$? | |
15594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15595 | (exit $ac_status); }; }; then | |
15596 | ac_cv_type_long_long=yes | |
15597 | else | |
15598 | echo "$as_me: failed program was:" >&5 | |
15599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15600 | ||
15601 | ac_cv_type_long_long=no | |
15602 | fi | |
15603 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15604 | fi | |
15605 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15606 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15607 | ||
15608 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15609 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15610 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15612 | else | |
15613 | if test "$ac_cv_type_long_long" = yes; then | |
15614 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15615 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15616 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15617 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 15618 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
15619 | # Depending upon the size, compute the lo and hi bounds. |
15620 | cat >conftest.$ac_ext <<_ACEOF | |
15621 | #line $LINENO "configure" | |
15622 | /* confdefs.h. */ | |
15623 | _ACEOF | |
15624 | cat confdefs.h >>conftest.$ac_ext | |
15625 | cat >>conftest.$ac_ext <<_ACEOF | |
15626 | /* end confdefs.h. */ | |
15627 | $ac_includes_default | |
15628 | int | |
15629 | main () | |
15630 | { | |
15631 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15632 | test_array [0] = 0 | |
15633 | ||
15634 | ; | |
15635 | return 0; | |
15636 | } | |
15637 | _ACEOF | |
15638 | rm -f conftest.$ac_objext | |
15639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15640 | (eval $ac_compile) 2>&5 | |
15641 | ac_status=$? | |
15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15643 | (exit $ac_status); } && | |
15644 | { ac_try='test -s conftest.$ac_objext' | |
15645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15646 | (eval $ac_try) 2>&5 | |
15647 | ac_status=$? | |
15648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15649 | (exit $ac_status); }; }; then | |
15650 | ac_lo=0 ac_mid=0 | |
15651 | while :; do | |
15652 | cat >conftest.$ac_ext <<_ACEOF | |
15653 | #line $LINENO "configure" | |
15654 | /* confdefs.h. */ | |
15655 | _ACEOF | |
15656 | cat confdefs.h >>conftest.$ac_ext | |
15657 | cat >>conftest.$ac_ext <<_ACEOF | |
15658 | /* end confdefs.h. */ | |
15659 | $ac_includes_default | |
15660 | int | |
15661 | main () | |
15662 | { | |
15663 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15664 | test_array [0] = 0 | |
15665 | ||
15666 | ; | |
15667 | return 0; | |
15668 | } | |
15669 | _ACEOF | |
15670 | rm -f conftest.$ac_objext | |
15671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15672 | (eval $ac_compile) 2>&5 | |
15673 | ac_status=$? | |
15674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15675 | (exit $ac_status); } && | |
15676 | { ac_try='test -s conftest.$ac_objext' | |
15677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15678 | (eval $ac_try) 2>&5 | |
15679 | ac_status=$? | |
15680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15681 | (exit $ac_status); }; }; then | |
15682 | ac_hi=$ac_mid; break | |
15683 | else | |
15684 | echo "$as_me: failed program was:" >&5 | |
15685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15686 | ||
15687 | ac_lo=`expr $ac_mid + 1` | |
15688 | if test $ac_lo -le $ac_mid; then | |
15689 | ac_lo= ac_hi= | |
15690 | break | |
15691 | fi | |
15692 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15693 | fi | |
15694 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15695 | done | |
15696 | else | |
15697 | echo "$as_me: failed program was:" >&5 | |
15698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15699 | ||
15700 | cat >conftest.$ac_ext <<_ACEOF | |
15701 | #line $LINENO "configure" | |
15702 | /* confdefs.h. */ | |
15703 | _ACEOF | |
15704 | cat confdefs.h >>conftest.$ac_ext | |
15705 | cat >>conftest.$ac_ext <<_ACEOF | |
15706 | /* end confdefs.h. */ | |
15707 | $ac_includes_default | |
15708 | int | |
15709 | main () | |
15710 | { | |
15711 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15712 | test_array [0] = 0 | |
15713 | ||
15714 | ; | |
15715 | return 0; | |
15716 | } | |
15717 | _ACEOF | |
15718 | rm -f conftest.$ac_objext | |
15719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15720 | (eval $ac_compile) 2>&5 | |
15721 | ac_status=$? | |
15722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15723 | (exit $ac_status); } && | |
15724 | { ac_try='test -s conftest.$ac_objext' | |
15725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15726 | (eval $ac_try) 2>&5 | |
15727 | ac_status=$? | |
15728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15729 | (exit $ac_status); }; }; then | |
15730 | ac_hi=-1 ac_mid=-1 | |
15731 | while :; do | |
15732 | cat >conftest.$ac_ext <<_ACEOF | |
15733 | #line $LINENO "configure" | |
15734 | /* confdefs.h. */ | |
15735 | _ACEOF | |
15736 | cat confdefs.h >>conftest.$ac_ext | |
15737 | cat >>conftest.$ac_ext <<_ACEOF | |
15738 | /* end confdefs.h. */ | |
15739 | $ac_includes_default | |
15740 | int | |
15741 | main () | |
15742 | { | |
15743 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15744 | test_array [0] = 0 | |
15745 | ||
15746 | ; | |
15747 | return 0; | |
15748 | } | |
15749 | _ACEOF | |
15750 | rm -f conftest.$ac_objext | |
15751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15752 | (eval $ac_compile) 2>&5 | |
15753 | ac_status=$? | |
15754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15755 | (exit $ac_status); } && | |
15756 | { ac_try='test -s conftest.$ac_objext' | |
15757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15758 | (eval $ac_try) 2>&5 | |
15759 | ac_status=$? | |
15760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15761 | (exit $ac_status); }; }; then | |
15762 | ac_lo=$ac_mid; break | |
15763 | else | |
15764 | echo "$as_me: failed program was:" >&5 | |
15765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15766 | ||
15767 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15768 | if test $ac_mid -le $ac_hi; then | |
15769 | ac_lo= ac_hi= | |
15770 | break | |
15771 | fi | |
15772 | ac_mid=`expr 2 '*' $ac_mid` | |
15773 | fi | |
15774 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15775 | done | |
15776 | else | |
15777 | echo "$as_me: failed program was:" >&5 | |
15778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15779 | ||
15780 | ac_lo= ac_hi= | |
15781 | fi | |
15782 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15783 | fi | |
15784 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15785 | # Binary search between lo and hi bounds. | |
15786 | while test "x$ac_lo" != "x$ac_hi"; do | |
15787 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15788 | cat >conftest.$ac_ext <<_ACEOF | |
15789 | #line $LINENO "configure" | |
15790 | /* confdefs.h. */ | |
15791 | _ACEOF | |
15792 | cat confdefs.h >>conftest.$ac_ext | |
15793 | cat >>conftest.$ac_ext <<_ACEOF | |
15794 | /* end confdefs.h. */ | |
15795 | $ac_includes_default | |
15796 | int | |
15797 | main () | |
15798 | { | |
15799 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15800 | test_array [0] = 0 | |
15801 | ||
15802 | ; | |
15803 | return 0; | |
15804 | } | |
15805 | _ACEOF | |
15806 | rm -f conftest.$ac_objext | |
15807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15808 | (eval $ac_compile) 2>&5 | |
15809 | ac_status=$? | |
15810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15811 | (exit $ac_status); } && | |
15812 | { ac_try='test -s conftest.$ac_objext' | |
15813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15814 | (eval $ac_try) 2>&5 | |
15815 | ac_status=$? | |
15816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15817 | (exit $ac_status); }; }; then | |
15818 | ac_hi=$ac_mid | |
15819 | else | |
15820 | echo "$as_me: failed program was:" >&5 | |
15821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15822 | ||
15823 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15824 | fi | |
15825 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15826 | done | |
15827 | case $ac_lo in | |
15828 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15829 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15830 | See \`config.log' for more details." >&5 | |
15831 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15832 | See \`config.log' for more details." >&2;} | |
15833 | { (exit 1); exit 1; }; } ;; | |
15834 | esac | |
a0b9e27f | 15835 | else |
e6cc62c6 VS |
15836 | if test "$cross_compiling" = yes; then |
15837 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15838 | See \`config.log' for more details." >&5 | |
15839 | echo "$as_me: error: cannot run test program while cross compiling | |
15840 | See \`config.log' for more details." >&2;} | |
15841 | { (exit 1); exit 1; }; } | |
15842 | else | |
15843 | cat >conftest.$ac_ext <<_ACEOF | |
15844 | #line $LINENO "configure" | |
15845 | /* confdefs.h. */ | |
15846 | _ACEOF | |
15847 | cat confdefs.h >>conftest.$ac_ext | |
15848 | cat >>conftest.$ac_ext <<_ACEOF | |
15849 | /* end confdefs.h. */ | |
15850 | $ac_includes_default | |
15851 | long longval () { return (long) (sizeof (long long)); } | |
15852 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 15853 | #include <stdio.h> |
e6cc62c6 VS |
15854 | #include <stdlib.h> |
15855 | int | |
15856 | main () | |
247f5006 | 15857 | { |
e6cc62c6 VS |
15858 | |
15859 | FILE *f = fopen ("conftest.val", "w"); | |
15860 | if (! f) | |
15861 | exit (1); | |
15862 | if (((long) (sizeof (long long))) < 0) | |
15863 | { | |
15864 | long i = longval (); | |
15865 | if (i != ((long) (sizeof (long long)))) | |
15866 | exit (1); | |
15867 | fprintf (f, "%ld\n", i); | |
15868 | } | |
15869 | else | |
15870 | { | |
15871 | unsigned long i = ulongval (); | |
15872 | if (i != ((long) (sizeof (long long)))) | |
15873 | exit (1); | |
15874 | fprintf (f, "%lu\n", i); | |
15875 | } | |
15876 | exit (ferror (f) || fclose (f) != 0); | |
15877 | ||
15878 | ; | |
15879 | return 0; | |
247f5006 | 15880 | } |
e6cc62c6 VS |
15881 | _ACEOF |
15882 | rm -f conftest$ac_exeext | |
15883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15884 | (eval $ac_link) 2>&5 | |
15885 | ac_status=$? | |
15886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15887 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15889 | (eval $ac_try) 2>&5 | |
15890 | ac_status=$? | |
15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15892 | (exit $ac_status); }; }; then | |
15893 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15894 | else | |
15895 | echo "$as_me: program exited with status $ac_status" >&5 | |
15896 | echo "$as_me: failed program was:" >&5 | |
15897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15898 | ||
15899 | ( exit $ac_status ) | |
15900 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15901 | See \`config.log' for more details." >&5 | |
15902 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15903 | See \`config.log' for more details." >&2;} | |
15904 | { (exit 1); exit 1; }; } | |
15905 | fi | |
15906 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15907 | fi | |
15908 | fi | |
15909 | rm -f conftest.val | |
7b4a847f | 15910 | else |
a0b9e27f | 15911 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
15912 | fi |
15913 | fi | |
e6cc62c6 VS |
15914 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15915 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15916 | cat >>confdefs.h <<_ACEOF | |
15917 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15918 | _ACEOF | |
15919 | ||
15920 | ||
15921 | ;; | |
15922 | *-hp-hpux* ) | |
15923 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15924 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15925 | if test "${ac_cv_type_long_long+set}" = set; then | |
15926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15927 | else | |
15928 | cat >conftest.$ac_ext <<_ACEOF | |
15929 | #line $LINENO "configure" | |
15930 | /* confdefs.h. */ | |
15931 | _ACEOF | |
15932 | cat confdefs.h >>conftest.$ac_ext | |
15933 | cat >>conftest.$ac_ext <<_ACEOF | |
15934 | /* end confdefs.h. */ | |
15935 | $ac_includes_default | |
15936 | int | |
15937 | main () | |
15938 | { | |
15939 | if ((long long *) 0) | |
15940 | return 0; | |
15941 | if (sizeof (long long)) | |
15942 | return 0; | |
15943 | ; | |
15944 | return 0; | |
15945 | } | |
15946 | _ACEOF | |
15947 | rm -f conftest.$ac_objext | |
15948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15949 | (eval $ac_compile) 2>&5 | |
15950 | ac_status=$? | |
15951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15952 | (exit $ac_status); } && | |
15953 | { ac_try='test -s conftest.$ac_objext' | |
15954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15955 | (eval $ac_try) 2>&5 | |
15956 | ac_status=$? | |
15957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15958 | (exit $ac_status); }; }; then | |
15959 | ac_cv_type_long_long=yes | |
15960 | else | |
15961 | echo "$as_me: failed program was:" >&5 | |
15962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15963 | ||
15964 | ac_cv_type_long_long=no | |
15965 | fi | |
15966 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15967 | fi | |
15968 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15969 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15970 | ||
15971 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15972 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15973 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15975 | else | |
15976 | if test "$ac_cv_type_long_long" = yes; then | |
15977 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15978 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15979 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15980 | # This bug is HP SR number 8606223364. | |
15981 | if test "$cross_compiling" = yes; then | |
15982 | # Depending upon the size, compute the lo and hi bounds. | |
15983 | cat >conftest.$ac_ext <<_ACEOF | |
15984 | #line $LINENO "configure" | |
15985 | /* confdefs.h. */ | |
15986 | _ACEOF | |
15987 | cat confdefs.h >>conftest.$ac_ext | |
15988 | cat >>conftest.$ac_ext <<_ACEOF | |
15989 | /* end confdefs.h. */ | |
15990 | $ac_includes_default | |
15991 | int | |
15992 | main () | |
15993 | { | |
15994 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15995 | test_array [0] = 0 | |
15996 | ||
15997 | ; | |
15998 | return 0; | |
15999 | } | |
16000 | _ACEOF | |
16001 | rm -f conftest.$ac_objext | |
16002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16003 | (eval $ac_compile) 2>&5 | |
16004 | ac_status=$? | |
16005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16006 | (exit $ac_status); } && | |
16007 | { ac_try='test -s conftest.$ac_objext' | |
16008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16009 | (eval $ac_try) 2>&5 | |
16010 | ac_status=$? | |
16011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16012 | (exit $ac_status); }; }; then | |
16013 | ac_lo=0 ac_mid=0 | |
16014 | while :; do | |
16015 | cat >conftest.$ac_ext <<_ACEOF | |
16016 | #line $LINENO "configure" | |
16017 | /* confdefs.h. */ | |
16018 | _ACEOF | |
16019 | cat confdefs.h >>conftest.$ac_ext | |
16020 | cat >>conftest.$ac_ext <<_ACEOF | |
16021 | /* end confdefs.h. */ | |
16022 | $ac_includes_default | |
16023 | int | |
16024 | main () | |
16025 | { | |
16026 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16027 | test_array [0] = 0 | |
8284b0c5 | 16028 | |
e6cc62c6 VS |
16029 | ; |
16030 | return 0; | |
16031 | } | |
16032 | _ACEOF | |
16033 | rm -f conftest.$ac_objext | |
16034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16035 | (eval $ac_compile) 2>&5 | |
16036 | ac_status=$? | |
16037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16038 | (exit $ac_status); } && | |
16039 | { ac_try='test -s conftest.$ac_objext' | |
16040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16041 | (eval $ac_try) 2>&5 | |
16042 | ac_status=$? | |
16043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16044 | (exit $ac_status); }; }; then | |
16045 | ac_hi=$ac_mid; break | |
16046 | else | |
16047 | echo "$as_me: failed program was:" >&5 | |
16048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16049 | ||
16050 | ac_lo=`expr $ac_mid + 1` | |
16051 | if test $ac_lo -le $ac_mid; then | |
16052 | ac_lo= ac_hi= | |
16053 | break | |
16054 | fi | |
16055 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 16056 | fi |
e6cc62c6 VS |
16057 | rm -f conftest.$ac_objext conftest.$ac_ext |
16058 | done | |
16059 | else | |
16060 | echo "$as_me: failed program was:" >&5 | |
16061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16062 | ||
16063 | cat >conftest.$ac_ext <<_ACEOF | |
16064 | #line $LINENO "configure" | |
16065 | /* confdefs.h. */ | |
16066 | _ACEOF | |
16067 | cat confdefs.h >>conftest.$ac_ext | |
16068 | cat >>conftest.$ac_ext <<_ACEOF | |
16069 | /* end confdefs.h. */ | |
16070 | $ac_includes_default | |
16071 | int | |
16072 | main () | |
16073 | { | |
16074 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16075 | test_array [0] = 0 | |
a0b9e27f | 16076 | |
e6cc62c6 VS |
16077 | ; |
16078 | return 0; | |
16079 | } | |
16080 | _ACEOF | |
16081 | rm -f conftest.$ac_objext | |
16082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16083 | (eval $ac_compile) 2>&5 | |
16084 | ac_status=$? | |
16085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16086 | (exit $ac_status); } && | |
16087 | { ac_try='test -s conftest.$ac_objext' | |
16088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16089 | (eval $ac_try) 2>&5 | |
16090 | ac_status=$? | |
16091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16092 | (exit $ac_status); }; }; then | |
16093 | ac_hi=-1 ac_mid=-1 | |
16094 | while :; do | |
16095 | cat >conftest.$ac_ext <<_ACEOF | |
16096 | #line $LINENO "configure" | |
16097 | /* confdefs.h. */ | |
16098 | _ACEOF | |
16099 | cat confdefs.h >>conftest.$ac_ext | |
16100 | cat >>conftest.$ac_ext <<_ACEOF | |
16101 | /* end confdefs.h. */ | |
16102 | $ac_includes_default | |
16103 | int | |
16104 | main () | |
16105 | { | |
16106 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16107 | test_array [0] = 0 | |
a0b9e27f | 16108 | |
e6cc62c6 VS |
16109 | ; |
16110 | return 0; | |
16111 | } | |
16112 | _ACEOF | |
16113 | rm -f conftest.$ac_objext | |
16114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16115 | (eval $ac_compile) 2>&5 | |
16116 | ac_status=$? | |
16117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16118 | (exit $ac_status); } && | |
16119 | { ac_try='test -s conftest.$ac_objext' | |
16120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16121 | (eval $ac_try) 2>&5 | |
16122 | ac_status=$? | |
16123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16124 | (exit $ac_status); }; }; then | |
16125 | ac_lo=$ac_mid; break | |
16126 | else | |
16127 | echo "$as_me: failed program was:" >&5 | |
16128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16129 | ||
16130 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16131 | if test $ac_mid -le $ac_hi; then | |
16132 | ac_lo= ac_hi= | |
16133 | break | |
16134 | fi | |
16135 | ac_mid=`expr 2 '*' $ac_mid` | |
16136 | fi | |
16137 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16138 | done | |
8284b0c5 | 16139 | else |
e6cc62c6 VS |
16140 | echo "$as_me: failed program was:" >&5 |
16141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16142 | ||
16143 | ac_lo= ac_hi= | |
16144 | fi | |
16145 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16146 | fi | |
16147 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16148 | # Binary search between lo and hi bounds. | |
16149 | while test "x$ac_lo" != "x$ac_hi"; do | |
16150 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16151 | cat >conftest.$ac_ext <<_ACEOF | |
16152 | #line $LINENO "configure" | |
16153 | /* confdefs.h. */ | |
16154 | _ACEOF | |
16155 | cat confdefs.h >>conftest.$ac_ext | |
16156 | cat >>conftest.$ac_ext <<_ACEOF | |
16157 | /* end confdefs.h. */ | |
16158 | $ac_includes_default | |
16159 | int | |
16160 | main () | |
16161 | { | |
16162 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16163 | test_array [0] = 0 | |
16164 | ||
16165 | ; | |
16166 | return 0; | |
16167 | } | |
16168 | _ACEOF | |
16169 | rm -f conftest.$ac_objext | |
16170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16171 | (eval $ac_compile) 2>&5 | |
16172 | ac_status=$? | |
16173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16174 | (exit $ac_status); } && | |
16175 | { ac_try='test -s conftest.$ac_objext' | |
16176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16177 | (eval $ac_try) 2>&5 | |
16178 | ac_status=$? | |
16179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16180 | (exit $ac_status); }; }; then | |
16181 | ac_hi=$ac_mid | |
16182 | else | |
16183 | echo "$as_me: failed program was:" >&5 | |
16184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16185 | ||
16186 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16187 | fi | |
16188 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16189 | done | |
16190 | case $ac_lo in | |
16191 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16192 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16193 | See \`config.log' for more details." >&5 | |
16194 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16195 | See \`config.log' for more details." >&2;} | |
16196 | { (exit 1); exit 1; }; } ;; | |
16197 | esac | |
8284b0c5 | 16198 | else |
e6cc62c6 VS |
16199 | if test "$cross_compiling" = yes; then |
16200 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16201 | See \`config.log' for more details." >&5 | |
16202 | echo "$as_me: error: cannot run test program while cross compiling | |
16203 | See \`config.log' for more details." >&2;} | |
16204 | { (exit 1); exit 1; }; } | |
16205 | else | |
16206 | cat >conftest.$ac_ext <<_ACEOF | |
16207 | #line $LINENO "configure" | |
16208 | /* confdefs.h. */ | |
16209 | _ACEOF | |
16210 | cat confdefs.h >>conftest.$ac_ext | |
16211 | cat >>conftest.$ac_ext <<_ACEOF | |
16212 | /* end confdefs.h. */ | |
16213 | $ac_includes_default | |
16214 | long longval () { return (long) (sizeof (long long)); } | |
16215 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 16216 | #include <stdio.h> |
e6cc62c6 VS |
16217 | #include <stdlib.h> |
16218 | int | |
16219 | main () | |
8284b0c5 | 16220 | { |
e6cc62c6 VS |
16221 | |
16222 | FILE *f = fopen ("conftest.val", "w"); | |
16223 | if (! f) | |
16224 | exit (1); | |
16225 | if (((long) (sizeof (long long))) < 0) | |
16226 | { | |
16227 | long i = longval (); | |
16228 | if (i != ((long) (sizeof (long long)))) | |
16229 | exit (1); | |
16230 | fprintf (f, "%ld\n", i); | |
16231 | } | |
16232 | else | |
16233 | { | |
16234 | unsigned long i = ulongval (); | |
16235 | if (i != ((long) (sizeof (long long)))) | |
16236 | exit (1); | |
16237 | fprintf (f, "%lu\n", i); | |
16238 | } | |
16239 | exit (ferror (f) || fclose (f) != 0); | |
16240 | ||
16241 | ; | |
16242 | return 0; | |
8284b0c5 | 16243 | } |
e6cc62c6 VS |
16244 | _ACEOF |
16245 | rm -f conftest$ac_exeext | |
16246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16247 | (eval $ac_link) 2>&5 | |
16248 | ac_status=$? | |
16249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16250 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16252 | (eval $ac_try) 2>&5 | |
16253 | ac_status=$? | |
16254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16255 | (exit $ac_status); }; }; then | |
16256 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16257 | else | |
16258 | echo "$as_me: program exited with status $ac_status" >&5 | |
16259 | echo "$as_me: failed program was:" >&5 | |
16260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16261 | ||
16262 | ( exit $ac_status ) | |
16263 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16264 | See \`config.log' for more details." >&5 | |
16265 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16266 | See \`config.log' for more details." >&2;} | |
16267 | { (exit 1); exit 1; }; } | |
16268 | fi | |
16269 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16270 | fi | |
16271 | fi | |
16272 | rm -f conftest.val | |
5c6fa7d2 RR |
16273 | else |
16274 | ac_cv_sizeof_long_long=0 | |
52127426 | 16275 | fi |
4f57cf11 | 16276 | fi |
e6cc62c6 VS |
16277 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16278 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16279 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16280 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16281 | _ACEOF |
4f57cf11 GD |
16282 | |
16283 | ||
16284 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16285 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16286 | fi | |
16287 | ;; | |
16288 | * ) | |
e6cc62c6 VS |
16289 | echo "$as_me:$LINENO: checking for long long" >&5 |
16290 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16291 | if test "${ac_cv_type_long_long+set}" = set; then | |
16292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16293 | else | |
16294 | cat >conftest.$ac_ext <<_ACEOF | |
16295 | #line $LINENO "configure" | |
16296 | /* confdefs.h. */ | |
16297 | _ACEOF | |
16298 | cat confdefs.h >>conftest.$ac_ext | |
16299 | cat >>conftest.$ac_ext <<_ACEOF | |
16300 | /* end confdefs.h. */ | |
16301 | $ac_includes_default | |
16302 | int | |
16303 | main () | |
16304 | { | |
16305 | if ((long long *) 0) | |
16306 | return 0; | |
16307 | if (sizeof (long long)) | |
16308 | return 0; | |
16309 | ; | |
16310 | return 0; | |
16311 | } | |
16312 | _ACEOF | |
16313 | rm -f conftest.$ac_objext | |
16314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16315 | (eval $ac_compile) 2>&5 | |
16316 | ac_status=$? | |
16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16318 | (exit $ac_status); } && | |
16319 | { ac_try='test -s conftest.$ac_objext' | |
16320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16321 | (eval $ac_try) 2>&5 | |
16322 | ac_status=$? | |
16323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16324 | (exit $ac_status); }; }; then | |
16325 | ac_cv_type_long_long=yes | |
16326 | else | |
16327 | echo "$as_me: failed program was:" >&5 | |
16328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16329 | ||
16330 | ac_cv_type_long_long=no | |
16331 | fi | |
16332 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16333 | fi | |
16334 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16335 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16336 | ||
16337 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16338 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16339 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16341 | else | |
16342 | if test "$ac_cv_type_long_long" = yes; then | |
16343 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16344 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16345 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16346 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 16347 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16348 | # Depending upon the size, compute the lo and hi bounds. |
16349 | cat >conftest.$ac_ext <<_ACEOF | |
16350 | #line $LINENO "configure" | |
16351 | /* confdefs.h. */ | |
16352 | _ACEOF | |
16353 | cat confdefs.h >>conftest.$ac_ext | |
16354 | cat >>conftest.$ac_ext <<_ACEOF | |
16355 | /* end confdefs.h. */ | |
16356 | $ac_includes_default | |
16357 | int | |
16358 | main () | |
16359 | { | |
16360 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16361 | test_array [0] = 0 | |
16362 | ||
16363 | ; | |
16364 | return 0; | |
16365 | } | |
16366 | _ACEOF | |
16367 | rm -f conftest.$ac_objext | |
16368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16369 | (eval $ac_compile) 2>&5 | |
16370 | ac_status=$? | |
16371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16372 | (exit $ac_status); } && | |
16373 | { ac_try='test -s conftest.$ac_objext' | |
16374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16375 | (eval $ac_try) 2>&5 | |
16376 | ac_status=$? | |
16377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16378 | (exit $ac_status); }; }; then | |
16379 | ac_lo=0 ac_mid=0 | |
16380 | while :; do | |
16381 | cat >conftest.$ac_ext <<_ACEOF | |
16382 | #line $LINENO "configure" | |
16383 | /* confdefs.h. */ | |
16384 | _ACEOF | |
16385 | cat confdefs.h >>conftest.$ac_ext | |
16386 | cat >>conftest.$ac_ext <<_ACEOF | |
16387 | /* end confdefs.h. */ | |
16388 | $ac_includes_default | |
16389 | int | |
16390 | main () | |
16391 | { | |
16392 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16393 | test_array [0] = 0 | |
16394 | ||
16395 | ; | |
16396 | return 0; | |
16397 | } | |
16398 | _ACEOF | |
16399 | rm -f conftest.$ac_objext | |
16400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16401 | (eval $ac_compile) 2>&5 | |
16402 | ac_status=$? | |
16403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16404 | (exit $ac_status); } && | |
16405 | { ac_try='test -s conftest.$ac_objext' | |
16406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16407 | (eval $ac_try) 2>&5 | |
16408 | ac_status=$? | |
16409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16410 | (exit $ac_status); }; }; then | |
16411 | ac_hi=$ac_mid; break | |
16412 | else | |
16413 | echo "$as_me: failed program was:" >&5 | |
16414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16415 | ||
16416 | ac_lo=`expr $ac_mid + 1` | |
16417 | if test $ac_lo -le $ac_mid; then | |
16418 | ac_lo= ac_hi= | |
16419 | break | |
16420 | fi | |
16421 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16422 | fi | |
16423 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16424 | done | |
16425 | else | |
16426 | echo "$as_me: failed program was:" >&5 | |
16427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16428 | ||
16429 | cat >conftest.$ac_ext <<_ACEOF | |
16430 | #line $LINENO "configure" | |
16431 | /* confdefs.h. */ | |
16432 | _ACEOF | |
16433 | cat confdefs.h >>conftest.$ac_ext | |
16434 | cat >>conftest.$ac_ext <<_ACEOF | |
16435 | /* end confdefs.h. */ | |
16436 | $ac_includes_default | |
16437 | int | |
16438 | main () | |
16439 | { | |
16440 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16441 | test_array [0] = 0 | |
16442 | ||
16443 | ; | |
16444 | return 0; | |
16445 | } | |
16446 | _ACEOF | |
16447 | rm -f conftest.$ac_objext | |
16448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16449 | (eval $ac_compile) 2>&5 | |
16450 | ac_status=$? | |
16451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16452 | (exit $ac_status); } && | |
16453 | { ac_try='test -s conftest.$ac_objext' | |
16454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16455 | (eval $ac_try) 2>&5 | |
16456 | ac_status=$? | |
16457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16458 | (exit $ac_status); }; }; then | |
16459 | ac_hi=-1 ac_mid=-1 | |
16460 | while :; do | |
16461 | cat >conftest.$ac_ext <<_ACEOF | |
16462 | #line $LINENO "configure" | |
16463 | /* confdefs.h. */ | |
16464 | _ACEOF | |
16465 | cat confdefs.h >>conftest.$ac_ext | |
16466 | cat >>conftest.$ac_ext <<_ACEOF | |
16467 | /* end confdefs.h. */ | |
16468 | $ac_includes_default | |
16469 | int | |
16470 | main () | |
16471 | { | |
16472 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16473 | test_array [0] = 0 | |
16474 | ||
16475 | ; | |
16476 | return 0; | |
16477 | } | |
16478 | _ACEOF | |
16479 | rm -f conftest.$ac_objext | |
16480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16481 | (eval $ac_compile) 2>&5 | |
16482 | ac_status=$? | |
16483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16484 | (exit $ac_status); } && | |
16485 | { ac_try='test -s conftest.$ac_objext' | |
16486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16487 | (eval $ac_try) 2>&5 | |
16488 | ac_status=$? | |
16489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16490 | (exit $ac_status); }; }; then | |
16491 | ac_lo=$ac_mid; break | |
16492 | else | |
16493 | echo "$as_me: failed program was:" >&5 | |
16494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16495 | ||
16496 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16497 | if test $ac_mid -le $ac_hi; then | |
16498 | ac_lo= ac_hi= | |
16499 | break | |
16500 | fi | |
16501 | ac_mid=`expr 2 '*' $ac_mid` | |
16502 | fi | |
16503 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16504 | done | |
4f57cf11 | 16505 | else |
e6cc62c6 VS |
16506 | echo "$as_me: failed program was:" >&5 |
16507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16508 | ||
16509 | ac_lo= ac_hi= | |
16510 | fi | |
16511 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16512 | fi | |
16513 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16514 | # Binary search between lo and hi bounds. | |
16515 | while test "x$ac_lo" != "x$ac_hi"; do | |
16516 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16517 | cat >conftest.$ac_ext <<_ACEOF | |
16518 | #line $LINENO "configure" | |
16519 | /* confdefs.h. */ | |
16520 | _ACEOF | |
16521 | cat confdefs.h >>conftest.$ac_ext | |
16522 | cat >>conftest.$ac_ext <<_ACEOF | |
16523 | /* end confdefs.h. */ | |
16524 | $ac_includes_default | |
16525 | int | |
16526 | main () | |
16527 | { | |
16528 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16529 | test_array [0] = 0 | |
16530 | ||
16531 | ; | |
16532 | return 0; | |
16533 | } | |
16534 | _ACEOF | |
16535 | rm -f conftest.$ac_objext | |
16536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16537 | (eval $ac_compile) 2>&5 | |
16538 | ac_status=$? | |
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16540 | (exit $ac_status); } && | |
16541 | { ac_try='test -s conftest.$ac_objext' | |
16542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16543 | (eval $ac_try) 2>&5 | |
16544 | ac_status=$? | |
16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16546 | (exit $ac_status); }; }; then | |
16547 | ac_hi=$ac_mid | |
16548 | else | |
16549 | echo "$as_me: failed program was:" >&5 | |
16550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16551 | ||
16552 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16553 | fi | |
16554 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16555 | done | |
16556 | case $ac_lo in | |
16557 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16558 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16559 | See \`config.log' for more details." >&5 | |
16560 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16561 | See \`config.log' for more details." >&2;} | |
16562 | { (exit 1); exit 1; }; } ;; | |
16563 | esac | |
16564 | else | |
16565 | if test "$cross_compiling" = yes; then | |
16566 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16567 | See \`config.log' for more details." >&5 | |
16568 | echo "$as_me: error: cannot run test program while cross compiling | |
16569 | See \`config.log' for more details." >&2;} | |
16570 | { (exit 1); exit 1; }; } | |
16571 | else | |
16572 | cat >conftest.$ac_ext <<_ACEOF | |
16573 | #line $LINENO "configure" | |
16574 | /* confdefs.h. */ | |
16575 | _ACEOF | |
16576 | cat confdefs.h >>conftest.$ac_ext | |
16577 | cat >>conftest.$ac_ext <<_ACEOF | |
16578 | /* end confdefs.h. */ | |
16579 | $ac_includes_default | |
16580 | long longval () { return (long) (sizeof (long long)); } | |
16581 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 16582 | #include <stdio.h> |
e6cc62c6 VS |
16583 | #include <stdlib.h> |
16584 | int | |
16585 | main () | |
4f57cf11 | 16586 | { |
e6cc62c6 VS |
16587 | |
16588 | FILE *f = fopen ("conftest.val", "w"); | |
16589 | if (! f) | |
16590 | exit (1); | |
16591 | if (((long) (sizeof (long long))) < 0) | |
16592 | { | |
16593 | long i = longval (); | |
16594 | if (i != ((long) (sizeof (long long)))) | |
16595 | exit (1); | |
16596 | fprintf (f, "%ld\n", i); | |
16597 | } | |
16598 | else | |
16599 | { | |
16600 | unsigned long i = ulongval (); | |
16601 | if (i != ((long) (sizeof (long long)))) | |
16602 | exit (1); | |
16603 | fprintf (f, "%lu\n", i); | |
16604 | } | |
16605 | exit (ferror (f) || fclose (f) != 0); | |
16606 | ||
16607 | ; | |
16608 | return 0; | |
4f57cf11 | 16609 | } |
e6cc62c6 VS |
16610 | _ACEOF |
16611 | rm -f conftest$ac_exeext | |
16612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16613 | (eval $ac_link) 2>&5 | |
16614 | ac_status=$? | |
16615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16616 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16618 | (eval $ac_try) 2>&5 | |
16619 | ac_status=$? | |
16620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16621 | (exit $ac_status); }; }; then | |
16622 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16623 | else | |
16624 | echo "$as_me: program exited with status $ac_status" >&5 | |
16625 | echo "$as_me: failed program was:" >&5 | |
16626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16627 | ||
16628 | ( exit $ac_status ) | |
16629 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16630 | See \`config.log' for more details." >&5 | |
16631 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16632 | See \`config.log' for more details." >&2;} | |
16633 | { (exit 1); exit 1; }; } | |
16634 | fi | |
16635 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16636 | fi | |
16637 | fi | |
16638 | rm -f conftest.val | |
4f57cf11 | 16639 | else |
4f57cf11 GD |
16640 | ac_cv_sizeof_long_long=0 |
16641 | fi | |
7b4a847f | 16642 | fi |
e6cc62c6 VS |
16643 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16644 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16645 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 16646 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16647 | _ACEOF |
9e691f46 | 16648 | |
8284b0c5 | 16649 | |
21d1c967 GD |
16650 | esac |
16651 | ||
e6cc62c6 VS |
16652 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
16653 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
16654 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
16655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 16656 | else |
e6cc62c6 | 16657 | |
21d1c967 | 16658 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 16659 | |
2b5f62a0 VZ |
16660 | case "${host}" in |
16661 | *-pc-msdosdjgpp ) | |
16662 | wx_cv_sizeof_wchar_t=0 | |
16663 | ;; | |
16664 | * ) | |
16665 | wx_cv_sizeof_wchar_t=4 | |
16666 | ;; | |
16667 | esac | |
e6cc62c6 VS |
16668 | |
16669 | ||
6f72b082 | 16670 | else |
e6cc62c6 VS |
16671 | cat >conftest.$ac_ext <<_ACEOF |
16672 | #line $LINENO "configure" | |
16673 | /* confdefs.h. */ | |
16674 | _ACEOF | |
16675 | cat confdefs.h >>conftest.$ac_ext | |
16676 | cat >>conftest.$ac_ext <<_ACEOF | |
16677 | /* end confdefs.h. */ | |
21d1c967 | 16678 | |
2b5f62a0 VZ |
16679 | /* DJGPP only has fake wchar_t: */ |
16680 | #ifdef __DJGPP__ | |
16681 | # error "fake wchar_t" | |
16682 | #endif | |
21d1c967 GD |
16683 | #ifdef HAVE_WCHAR_H |
16684 | # ifdef __CYGWIN__ | |
16685 | # include <stddef.h> | |
16686 | # endif | |
16687 | # include <wchar.h> | |
16688 | #endif | |
16689 | #ifdef HAVE_STDLIB_H | |
16690 | # include <stdlib.h> | |
16691 | #endif | |
16692 | #include <stdio.h> | |
16693 | int main() | |
16694 | { | |
16695 | FILE *f=fopen("conftestval", "w"); | |
16696 | if (!f) exit(1); | |
16697 | fprintf(f, "%i", sizeof(wchar_t)); | |
16698 | exit(0); | |
16699 | } | |
e6cc62c6 VS |
16700 | |
16701 | _ACEOF | |
16702 | rm -f conftest$ac_exeext | |
16703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16704 | (eval $ac_link) 2>&5 | |
16705 | ac_status=$? | |
16706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16707 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16709 | (eval $ac_try) 2>&5 | |
16710 | ac_status=$? | |
16711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16712 | (exit $ac_status); }; }; then | |
21d1c967 | 16713 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 16714 | else |
e6cc62c6 VS |
16715 | echo "$as_me: program exited with status $ac_status" >&5 |
16716 | echo "$as_me: failed program was:" >&5 | |
16717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16718 | ||
16719 | ( exit $ac_status ) | |
16720 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 16721 | fi |
e6cc62c6 | 16722 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 16723 | fi |
6f72b082 | 16724 | |
3f345b47 | 16725 | fi |
e6cc62c6 VS |
16726 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
16727 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 16728 | |
e6cc62c6 | 16729 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16730 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 16731 | _ACEOF |
90dd450c | 16732 | |
8284b0c5 | 16733 | |
21d1c967 GD |
16734 | # Check whether --enable-largefile or --disable-largefile was given. |
16735 | if test "${enable_largefile+set}" = set; then | |
16736 | enableval="$enable_largefile" | |
3f345b47 | 16737 | |
e6cc62c6 | 16738 | fi; |
21d1c967 GD |
16739 | if test "$enable_largefile" != no; then |
16740 | wx_largefile=no | |
e6cc62c6 VS |
16741 | |
16742 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
16743 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
16744 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
16745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16746 | else | |
16747 | ||
16748 | cat >conftest.$ac_ext <<_ACEOF | |
16749 | #line $LINENO "configure" | |
16750 | /* confdefs.h. */ | |
16751 | _ACEOF | |
16752 | cat confdefs.h >>conftest.$ac_ext | |
16753 | cat >>conftest.$ac_ext <<_ACEOF | |
16754 | /* end confdefs.h. */ | |
21d1c967 GD |
16755 | #define _FILE_OFFSET_BITS 64 |
16756 | #include <sys/types.h> | |
e6cc62c6 VS |
16757 | int |
16758 | main () | |
16759 | { | |
21d1c967 GD |
16760 | typedef struct { |
16761 | unsigned int field: sizeof(off_t) == 8; | |
16762 | } wxlf; | |
16763 | ||
e6cc62c6 VS |
16764 | ; |
16765 | return 0; | |
16766 | } | |
16767 | _ACEOF | |
16768 | rm -f conftest.$ac_objext | |
16769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16770 | (eval $ac_compile) 2>&5 | |
16771 | ac_status=$? | |
16772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16773 | (exit $ac_status); } && | |
16774 | { ac_try='test -s conftest.$ac_objext' | |
16775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16776 | (eval $ac_try) 2>&5 | |
16777 | ac_status=$? | |
16778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16779 | (exit $ac_status); }; }; then | |
21d1c967 | 16780 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 16781 | else |
e6cc62c6 VS |
16782 | echo "$as_me: failed program was:" >&5 |
16783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16784 | ||
16785 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 16786 | fi |
e6cc62c6 VS |
16787 | rm -f conftest.$ac_objext conftest.$ac_ext |
16788 | ||
a0b9e27f | 16789 | |
e6cc62c6 VS |
16790 | fi |
16791 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
16792 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
16793 | |
16794 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
16795 | wx_largefile=yes | |
e6cc62c6 | 16796 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16797 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 16798 | _ACEOF |
21d1c967 GD |
16799 | |
16800 | fi | |
16801 | ||
16802 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
16803 | |
16804 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
16805 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
16806 | if test "${ac_cv_sys_large_files+set}" = set; then | |
16807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16808 | else | |
16809 | ||
16810 | cat >conftest.$ac_ext <<_ACEOF | |
16811 | #line $LINENO "configure" | |
16812 | /* confdefs.h. */ | |
16813 | _ACEOF | |
16814 | cat confdefs.h >>conftest.$ac_ext | |
16815 | cat >>conftest.$ac_ext <<_ACEOF | |
16816 | /* end confdefs.h. */ | |
21d1c967 GD |
16817 | #define _LARGE_FILES 1 |
16818 | #include <sys/types.h> | |
e6cc62c6 VS |
16819 | int |
16820 | main () | |
16821 | { | |
21d1c967 GD |
16822 | typedef struct { |
16823 | unsigned int field: sizeof(off_t) == 8; | |
16824 | } wxlf; | |
16825 | ||
e6cc62c6 VS |
16826 | ; |
16827 | return 0; | |
16828 | } | |
16829 | _ACEOF | |
16830 | rm -f conftest.$ac_objext | |
16831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16832 | (eval $ac_compile) 2>&5 | |
16833 | ac_status=$? | |
16834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16835 | (exit $ac_status); } && | |
16836 | { ac_try='test -s conftest.$ac_objext' | |
16837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16838 | (eval $ac_try) 2>&5 | |
16839 | ac_status=$? | |
16840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16841 | (exit $ac_status); }; }; then | |
21d1c967 | 16842 | ac_cv_sys_large_files=1 |
f6bcfd97 | 16843 | else |
e6cc62c6 VS |
16844 | echo "$as_me: failed program was:" >&5 |
16845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16846 | ||
16847 | ac_cv_sys_large_files=no | |
247f5006 | 16848 | fi |
e6cc62c6 | 16849 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 16850 | |
e6cc62c6 VS |
16851 | |
16852 | fi | |
16853 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
16854 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 16855 | |
21d1c967 GD |
16856 | if test "$ac_cv_sys_large_files" != no; then |
16857 | wx_largefile=yes | |
e6cc62c6 | 16858 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16859 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 16860 | _ACEOF |
90dd450c | 16861 | |
90dd450c VZ |
16862 | fi |
16863 | ||
90dd450c | 16864 | fi |
90dd450c | 16865 | |
e6cc62c6 VS |
16866 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
16867 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 16868 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 16869 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16870 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 16871 | _ACEOF |
90dd450c | 16872 | |
90dd450c | 16873 | fi |
e6cc62c6 VS |
16874 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
16875 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 16876 | fi |
90dd450c | 16877 | |
8284b0c5 | 16878 | |
f02444d0 | 16879 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
16880 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
16881 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 16882 | else |
e26c13cf | 16883 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 16884 | fi |
e26c13cf | 16885 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
16886 | fi |
16887 | ||
e6cc62c6 VS |
16888 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
16889 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
16890 | if test "${ac_cv_c_bigendian+set}" = set; then | |
16891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 16892 | else |
21d1c967 GD |
16893 | ac_cv_c_bigendian=unknown |
16894 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 VS |
16895 | cat >conftest.$ac_ext <<_ACEOF |
16896 | #line $LINENO "configure" | |
16897 | /* confdefs.h. */ | |
16898 | _ACEOF | |
16899 | cat confdefs.h >>conftest.$ac_ext | |
16900 | cat >>conftest.$ac_ext <<_ACEOF | |
16901 | /* end confdefs.h. */ | |
21d1c967 GD |
16902 | #include <sys/types.h> |
16903 | #include <sys/param.h> | |
e6cc62c6 VS |
16904 | int |
16905 | main () | |
16906 | { | |
21d1c967 GD |
16907 | |
16908 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16909 | bogus endian macros | |
16910 | #endif | |
e6cc62c6 VS |
16911 | ; |
16912 | return 0; | |
16913 | } | |
16914 | _ACEOF | |
16915 | rm -f conftest.$ac_objext | |
16916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16917 | (eval $ac_compile) 2>&5 | |
16918 | ac_status=$? | |
16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16920 | (exit $ac_status); } && | |
16921 | { ac_try='test -s conftest.$ac_objext' | |
16922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16923 | (eval $ac_try) 2>&5 | |
16924 | ac_status=$? | |
16925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16926 | (exit $ac_status); }; }; then | |
21d1c967 | 16927 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 VS |
16928 | cat >conftest.$ac_ext <<_ACEOF |
16929 | #line $LINENO "configure" | |
16930 | /* confdefs.h. */ | |
16931 | _ACEOF | |
16932 | cat confdefs.h >>conftest.$ac_ext | |
16933 | cat >>conftest.$ac_ext <<_ACEOF | |
16934 | /* end confdefs.h. */ | |
21d1c967 GD |
16935 | #include <sys/types.h> |
16936 | #include <sys/param.h> | |
e6cc62c6 VS |
16937 | int |
16938 | main () | |
16939 | { | |
21d1c967 GD |
16940 | |
16941 | #if BYTE_ORDER != BIG_ENDIAN | |
16942 | not big endian | |
16943 | #endif | |
e6cc62c6 VS |
16944 | ; |
16945 | return 0; | |
16946 | } | |
16947 | _ACEOF | |
16948 | rm -f conftest.$ac_objext | |
16949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16950 | (eval $ac_compile) 2>&5 | |
16951 | ac_status=$? | |
16952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16953 | (exit $ac_status); } && | |
16954 | { ac_try='test -s conftest.$ac_objext' | |
16955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16956 | (eval $ac_try) 2>&5 | |
16957 | ac_status=$? | |
16958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16959 | (exit $ac_status); }; }; then | |
21d1c967 | 16960 | ac_cv_c_bigendian=yes |
3f345b47 | 16961 | else |
e6cc62c6 VS |
16962 | echo "$as_me: failed program was:" >&5 |
16963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16964 | ||
16965 | ac_cv_c_bigendian=no | |
3f345b47 | 16966 | fi |
e6cc62c6 | 16967 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 16968 | else |
e6cc62c6 VS |
16969 | echo "$as_me: failed program was:" >&5 |
16970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16971 | ||
3f345b47 | 16972 | fi |
e6cc62c6 | 16973 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
16974 | if test $ac_cv_c_bigendian = unknown; then |
16975 | if test "$cross_compiling" = yes; then | |
16976 | ac_cv_c_bigendian=unknown | |
10f2d63a | 16977 | else |
e6cc62c6 VS |
16978 | cat >conftest.$ac_ext <<_ACEOF |
16979 | #line $LINENO "configure" | |
16980 | /* confdefs.h. */ | |
16981 | _ACEOF | |
16982 | cat confdefs.h >>conftest.$ac_ext | |
16983 | cat >>conftest.$ac_ext <<_ACEOF | |
16984 | /* end confdefs.h. */ | |
21d1c967 GD |
16985 | main () { |
16986 | /* Are we little or big endian? From Harbison&Steele. */ | |
16987 | union | |
16988 | { | |
16989 | long l; | |
16990 | char c[sizeof (long)]; | |
16991 | } u; | |
16992 | u.l = 1; | |
16993 | exit (u.c[sizeof (long) - 1] == 1); | |
16994 | } | |
e6cc62c6 VS |
16995 | _ACEOF |
16996 | rm -f conftest$ac_exeext | |
16997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16998 | (eval $ac_link) 2>&5 | |
16999 | ac_status=$? | |
17000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17001 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17003 | (eval $ac_try) 2>&5 | |
17004 | ac_status=$? | |
17005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17006 | (exit $ac_status); }; }; then | |
21d1c967 | 17007 | ac_cv_c_bigendian=no |
3f345b47 | 17008 | else |
e6cc62c6 VS |
17009 | echo "$as_me: program exited with status $ac_status" >&5 |
17010 | echo "$as_me: failed program was:" >&5 | |
17011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17012 | ||
17013 | ( exit $ac_status ) | |
17014 | ac_cv_c_bigendian=yes | |
247f5006 | 17015 | fi |
e6cc62c6 | 17016 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 17017 | fi |
3f345b47 | 17018 | fi |
8168de4c | 17019 | fi |
e6cc62c6 VS |
17020 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
17021 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 17022 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
17023 | { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5 |
17024 | echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;} | |
247f5006 VZ |
17025 | fi |
17026 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 17027 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 17028 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 17029 | _ACEOF |
247f5006 VZ |
17030 | |
17031 | fi | |
17032 | ||
17033 | ||
e6cc62c6 VS |
17034 | |
17035 | ac_ext=cc | |
17036 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17037 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17038 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17039 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17040 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
17041 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 17042 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
17043 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
17044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17045 | else | |
17046 | # Double quotes because CXXCPP needs to be expanded | |
17047 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
17048 | do | |
17049 | ac_preproc_ok=false | |
17050 | for ac_cxx_preproc_warn_flag in '' yes | |
17051 | do | |
17052 | # Use a header file that comes with gcc, so configuring glibc | |
17053 | # with a fresh cross-compiler works. | |
17054 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17055 | # <limits.h> exists even on freestanding compilers. | |
17056 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17057 | # not just through cpp. "Syntax error" is here to catch this case. | |
17058 | cat >conftest.$ac_ext <<_ACEOF | |
17059 | #line $LINENO "configure" | |
17060 | /* confdefs.h. */ | |
17061 | _ACEOF | |
17062 | cat confdefs.h >>conftest.$ac_ext | |
17063 | cat >>conftest.$ac_ext <<_ACEOF | |
17064 | /* end confdefs.h. */ | |
17065 | #ifdef __STDC__ | |
17066 | # include <limits.h> | |
17067 | #else | |
17068 | # include <assert.h> | |
17069 | #endif | |
17070 | Syntax error | |
17071 | _ACEOF | |
17072 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17073 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17074 | ac_status=$? | |
17075 | grep -v '^ *+' conftest.er1 >conftest.err | |
17076 | rm -f conftest.er1 | |
17077 | cat conftest.err >&5 | |
17078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17079 | (exit $ac_status); } >/dev/null; then | |
17080 | if test -s conftest.err; then | |
17081 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17082 | else | |
17083 | ac_cpp_err= | |
17084 | fi | |
247f5006 | 17085 | else |
e6cc62c6 VS |
17086 | ac_cpp_err=yes |
17087 | fi | |
17088 | if test -z "$ac_cpp_err"; then | |
17089 | : | |
17090 | else | |
17091 | echo "$as_me: failed program was:" >&5 | |
17092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17093 | ||
17094 | # Broken: fails on valid input. | |
17095 | continue | |
17096 | fi | |
17097 | rm -f conftest.err conftest.$ac_ext | |
17098 | ||
17099 | # OK, works on sane cases. Now check whether non-existent headers | |
17100 | # can be detected and how. | |
17101 | cat >conftest.$ac_ext <<_ACEOF | |
17102 | #line $LINENO "configure" | |
17103 | /* confdefs.h. */ | |
17104 | _ACEOF | |
17105 | cat confdefs.h >>conftest.$ac_ext | |
17106 | cat >>conftest.$ac_ext <<_ACEOF | |
17107 | /* end confdefs.h. */ | |
17108 | #include <ac_nonexistent.h> | |
17109 | _ACEOF | |
17110 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17112 | ac_status=$? | |
17113 | grep -v '^ *+' conftest.er1 >conftest.err | |
17114 | rm -f conftest.er1 | |
17115 | cat conftest.err >&5 | |
17116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17117 | (exit $ac_status); } >/dev/null; then | |
17118 | if test -s conftest.err; then | |
17119 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17120 | else | |
17121 | ac_cpp_err= | |
17122 | fi | |
17123 | else | |
17124 | ac_cpp_err=yes | |
17125 | fi | |
17126 | if test -z "$ac_cpp_err"; then | |
17127 | # Broken: success on invalid input. | |
17128 | continue | |
17129 | else | |
17130 | echo "$as_me: failed program was:" >&5 | |
17131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17132 | ||
17133 | # Passes both tests. | |
17134 | ac_preproc_ok=: | |
17135 | break | |
17136 | fi | |
17137 | rm -f conftest.err conftest.$ac_ext | |
17138 | ||
17139 | done | |
17140 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17141 | rm -f conftest.err conftest.$ac_ext | |
17142 | if $ac_preproc_ok; then | |
17143 | break | |
17144 | fi | |
17145 | ||
17146 | done | |
17147 | ac_cv_prog_CXXCPP=$CXXCPP | |
17148 | ||
17149 | fi | |
17150 | CXXCPP=$ac_cv_prog_CXXCPP | |
17151 | else | |
17152 | ac_cv_prog_CXXCPP=$CXXCPP | |
17153 | fi | |
17154 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17155 | echo "${ECHO_T}$CXXCPP" >&6 | |
17156 | ac_preproc_ok=false | |
17157 | for ac_cxx_preproc_warn_flag in '' yes | |
17158 | do | |
17159 | # Use a header file that comes with gcc, so configuring glibc | |
17160 | # with a fresh cross-compiler works. | |
17161 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17162 | # <limits.h> exists even on freestanding compilers. | |
17163 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17164 | # not just through cpp. "Syntax error" is here to catch this case. | |
17165 | cat >conftest.$ac_ext <<_ACEOF | |
17166 | #line $LINENO "configure" | |
17167 | /* confdefs.h. */ | |
17168 | _ACEOF | |
17169 | cat confdefs.h >>conftest.$ac_ext | |
17170 | cat >>conftest.$ac_ext <<_ACEOF | |
17171 | /* end confdefs.h. */ | |
17172 | #ifdef __STDC__ | |
17173 | # include <limits.h> | |
17174 | #else | |
17175 | # include <assert.h> | |
17176 | #endif | |
17177 | Syntax error | |
17178 | _ACEOF | |
17179 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17180 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17181 | ac_status=$? | |
17182 | grep -v '^ *+' conftest.er1 >conftest.err | |
17183 | rm -f conftest.er1 | |
17184 | cat conftest.err >&5 | |
17185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17186 | (exit $ac_status); } >/dev/null; then | |
17187 | if test -s conftest.err; then | |
17188 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17189 | else | |
17190 | ac_cpp_err= | |
17191 | fi | |
17192 | else | |
17193 | ac_cpp_err=yes | |
17194 | fi | |
17195 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 17196 | : |
698dcdb6 | 17197 | else |
e6cc62c6 VS |
17198 | echo "$as_me: failed program was:" >&5 |
17199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17200 | ||
17201 | # Broken: fails on valid input. | |
17202 | continue | |
17203 | fi | |
17204 | rm -f conftest.err conftest.$ac_ext | |
17205 | ||
17206 | # OK, works on sane cases. Now check whether non-existent headers | |
17207 | # can be detected and how. | |
17208 | cat >conftest.$ac_ext <<_ACEOF | |
17209 | #line $LINENO "configure" | |
17210 | /* confdefs.h. */ | |
17211 | _ACEOF | |
17212 | cat confdefs.h >>conftest.$ac_ext | |
17213 | cat >>conftest.$ac_ext <<_ACEOF | |
17214 | /* end confdefs.h. */ | |
17215 | #include <ac_nonexistent.h> | |
17216 | _ACEOF | |
17217 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17218 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17219 | ac_status=$? | |
17220 | grep -v '^ *+' conftest.er1 >conftest.err | |
17221 | rm -f conftest.er1 | |
17222 | cat conftest.err >&5 | |
17223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17224 | (exit $ac_status); } >/dev/null; then | |
17225 | if test -s conftest.err; then | |
17226 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17227 | else | |
17228 | ac_cpp_err= | |
17229 | fi | |
17230 | else | |
17231 | ac_cpp_err=yes | |
247f5006 | 17232 | fi |
e6cc62c6 VS |
17233 | if test -z "$ac_cpp_err"; then |
17234 | # Broken: success on invalid input. | |
17235 | continue | |
17236 | else | |
17237 | echo "$as_me: failed program was:" >&5 | |
17238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17239 | ||
17240 | # Passes both tests. | |
17241 | ac_preproc_ok=: | |
17242 | break | |
328a083c | 17243 | fi |
e6cc62c6 VS |
17244 | rm -f conftest.err conftest.$ac_ext |
17245 | ||
17246 | done | |
17247 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17248 | rm -f conftest.err conftest.$ac_ext | |
17249 | if $ac_preproc_ok; then | |
17250 | : | |
17251 | else | |
17252 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17253 | See \`config.log' for more details." >&5 | |
17254 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17255 | See \`config.log' for more details." >&2;} | |
17256 | { (exit 1); exit 1; }; } | |
90dd450c | 17257 | fi |
e6cc62c6 VS |
17258 | |
17259 | ac_ext=cc | |
17260 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17261 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17262 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17263 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17264 | ||
1e6feb95 | 17265 | |
1725144d | 17266 | |
21d1c967 | 17267 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 17268 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17269 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17270 | _ACEOF |
ab9b9eab | 17271 | |
21d1c967 | 17272 | else |
e6cc62c6 VS |
17273 | |
17274 | ||
17275 | ac_ext=cc | |
5c6fa7d2 | 17276 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17277 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17278 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17279 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17280 | ||
52127426 | 17281 | |
247f5006 | 17282 | |
e6cc62c6 | 17283 | for ac_header in iostream |
21d1c967 | 17284 | do |
e6cc62c6 VS |
17285 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17287 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17291 | fi | |
17292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17293 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17294 | else | |
17295 | # Is the header compilable? | |
17296 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17297 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17298 | cat >conftest.$ac_ext <<_ACEOF | |
17299 | #line $LINENO "configure" | |
17300 | /* confdefs.h. */ | |
17301 | _ACEOF | |
17302 | cat confdefs.h >>conftest.$ac_ext | |
17303 | cat >>conftest.$ac_ext <<_ACEOF | |
17304 | /* end confdefs.h. */ | |
17305 | $ac_includes_default | |
17306 | #include <$ac_header> | |
17307 | _ACEOF | |
17308 | rm -f conftest.$ac_objext | |
17309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17310 | (eval $ac_compile) 2>&5 | |
17311 | ac_status=$? | |
17312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17313 | (exit $ac_status); } && | |
17314 | { ac_try='test -s conftest.$ac_objext' | |
17315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17316 | (eval $ac_try) 2>&5 | |
17317 | ac_status=$? | |
17318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17319 | (exit $ac_status); }; }; then | |
17320 | ac_header_compiler=yes | |
17321 | else | |
17322 | echo "$as_me: failed program was:" >&5 | |
17323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17324 | ||
17325 | ac_header_compiler=no | |
17326 | fi | |
17327 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17328 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17329 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17330 | ||
17331 | # Is the header present? | |
17332 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17333 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17334 | cat >conftest.$ac_ext <<_ACEOF | |
17335 | #line $LINENO "configure" | |
17336 | /* confdefs.h. */ | |
17337 | _ACEOF | |
17338 | cat confdefs.h >>conftest.$ac_ext | |
17339 | cat >>conftest.$ac_ext <<_ACEOF | |
17340 | /* end confdefs.h. */ | |
17341 | #include <$ac_header> | |
17342 | _ACEOF | |
17343 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17344 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17345 | ac_status=$? | |
17346 | grep -v '^ *+' conftest.er1 >conftest.err | |
17347 | rm -f conftest.er1 | |
17348 | cat conftest.err >&5 | |
17349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17350 | (exit $ac_status); } >/dev/null; then | |
17351 | if test -s conftest.err; then | |
17352 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17353 | else | |
17354 | ac_cpp_err= | |
17355 | fi | |
17356 | else | |
17357 | ac_cpp_err=yes | |
17358 | fi | |
17359 | if test -z "$ac_cpp_err"; then | |
17360 | ac_header_preproc=yes | |
17361 | else | |
17362 | echo "$as_me: failed program was:" >&5 | |
17363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17364 | ||
17365 | ac_header_preproc=no | |
17366 | fi | |
17367 | rm -f conftest.err conftest.$ac_ext | |
17368 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17369 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17370 | ||
17371 | # So? What about this header? | |
17372 | case $ac_header_compiler:$ac_header_preproc in | |
17373 | yes:no ) | |
17374 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17375 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17376 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17377 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17378 | ( | |
17379 | cat <<\_ASBOX | |
17380 | ## ------------------------------------ ## | |
17381 | ## Report this to bug-autoconf@gnu.org. ## | |
17382 | ## ------------------------------------ ## | |
17383 | _ASBOX | |
17384 | ) | | |
17385 | sed "s/^/$as_me: WARNING: /" >&2 | |
17386 | ;; | |
17387 | no:yes ) | |
17388 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17389 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17390 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17391 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17393 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17394 | ( | |
17395 | cat <<\_ASBOX | |
17396 | ## ------------------------------------ ## | |
17397 | ## Report this to bug-autoconf@gnu.org. ## | |
17398 | ## ------------------------------------ ## | |
17399 | _ASBOX | |
17400 | ) | | |
17401 | sed "s/^/$as_me: WARNING: /" >&2 | |
17402 | ;; | |
17403 | esac | |
17404 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17405 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17406 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17408 | else | |
17409 | eval "$as_ac_Header=$ac_header_preproc" | |
ab9b9eab | 17410 | fi |
e6cc62c6 VS |
17411 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17412 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17413 | ||
90dd450c | 17414 | fi |
e6cc62c6 VS |
17415 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17416 | cat >>confdefs.h <<_ACEOF | |
17417 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17418 | _ACEOF | |
17419 | ||
90dd450c | 17420 | fi |
e6cc62c6 | 17421 | |
21d1c967 | 17422 | done |
10f2d63a | 17423 | |
8284b0c5 | 17424 | |
21d1c967 GD |
17425 | if test "$ac_cv_header_iostream" = "yes" ; then |
17426 | : | |
17427 | else | |
e6cc62c6 | 17428 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17429 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17430 | _ACEOF |
788deba1 | 17431 | |
90dd450c | 17432 | fi |
ab9b9eab | 17433 | |
21d1c967 | 17434 | ac_ext=c |
21d1c967 | 17435 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 17439 | |
21d1c967 | 17440 | fi |
ab9b9eab | 17441 | |
52127426 | 17442 | |
8284b0c5 | 17443 | |
e6cc62c6 VS |
17444 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
17445 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17446 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17448 | else |
e6cc62c6 VS |
17449 | |
17450 | ||
17451 | ||
17452 | ac_ext=cc | |
5c6fa7d2 | 17453 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17454 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17455 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17456 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 17457 | |
8284b0c5 | 17458 | |
e6cc62c6 VS |
17459 | cat >conftest.$ac_ext <<_ACEOF |
17460 | #line $LINENO "configure" | |
17461 | /* confdefs.h. */ | |
17462 | _ACEOF | |
17463 | cat confdefs.h >>conftest.$ac_ext | |
17464 | cat >>conftest.$ac_ext <<_ACEOF | |
17465 | /* end confdefs.h. */ | |
21d1c967 | 17466 | |
e6cc62c6 VS |
17467 | |
17468 | int | |
17469 | main () | |
17470 | { | |
21d1c967 GD |
17471 | |
17472 | bool b = true; | |
17473 | ||
17474 | return 0; | |
e6cc62c6 VS |
17475 | |
17476 | ; | |
17477 | return 0; | |
17478 | } | |
17479 | _ACEOF | |
17480 | rm -f conftest.$ac_objext | |
17481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17482 | (eval $ac_compile) 2>&5 | |
17483 | ac_status=$? | |
17484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17485 | (exit $ac_status); } && | |
17486 | { ac_try='test -s conftest.$ac_objext' | |
17487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17488 | (eval $ac_try) 2>&5 | |
17489 | ac_status=$? | |
17490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17491 | (exit $ac_status); }; }; then | |
17492 | ||
21d1c967 | 17493 | wx_cv_cpp_bool=yes |
e6cc62c6 | 17494 | |
698dcdb6 | 17495 | else |
e6cc62c6 VS |
17496 | echo "$as_me: failed program was:" >&5 |
17497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17498 | ||
17499 | ||
21d1c967 | 17500 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
17501 | |
17502 | ||
698dcdb6 | 17503 | fi |
e6cc62c6 | 17504 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17505 | |
17506 | ac_ext=c | |
21d1c967 | 17507 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17511 | |
a0b9e27f | 17512 | |
e6cc62c6 VS |
17513 | fi |
17514 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17515 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
17516 | |
17517 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 17518 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17519 | #define HAVE_BOOL 1 |
e6cc62c6 | 17520 | _ACEOF |
ab9b9eab | 17521 | |
21d1c967 GD |
17522 | fi |
17523 | ||
52127426 | 17524 | |
8284b0c5 | 17525 | |
e6cc62c6 VS |
17526 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
17527 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17528 | if test "${wx_cv_explicit+set}" = set; then | |
17529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17530 | else |
e6cc62c6 VS |
17531 | |
17532 | ||
17533 | ||
17534 | ac_ext=cc | |
5c6fa7d2 | 17535 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17536 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17537 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17538 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 17539 | |
8284b0c5 | 17540 | |
e6cc62c6 VS |
17541 | cat >conftest.$ac_ext <<_ACEOF |
17542 | #line $LINENO "configure" | |
17543 | /* confdefs.h. */ | |
17544 | _ACEOF | |
17545 | cat confdefs.h >>conftest.$ac_ext | |
17546 | cat >>conftest.$ac_ext <<_ACEOF | |
17547 | /* end confdefs.h. */ | |
986ecc86 VZ |
17548 | |
17549 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
17550 | |
17551 | int | |
17552 | main () | |
17553 | { | |
986ecc86 VZ |
17554 | |
17555 | return 0; | |
e6cc62c6 VS |
17556 | |
17557 | ; | |
17558 | return 0; | |
17559 | } | |
17560 | _ACEOF | |
17561 | rm -f conftest.$ac_objext | |
17562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17563 | (eval $ac_compile) 2>&5 | |
17564 | ac_status=$? | |
17565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17566 | (exit $ac_status); } && | |
17567 | { ac_try='test -s conftest.$ac_objext' | |
17568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17569 | (eval $ac_try) 2>&5 | |
17570 | ac_status=$? | |
17571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17572 | (exit $ac_status); }; }; then | |
17573 | ||
17574 | cat >conftest.$ac_ext <<_ACEOF | |
17575 | #line $LINENO "configure" | |
17576 | /* confdefs.h. */ | |
17577 | _ACEOF | |
17578 | cat confdefs.h >>conftest.$ac_ext | |
17579 | cat >>conftest.$ac_ext <<_ACEOF | |
17580 | /* end confdefs.h. */ | |
986ecc86 VZ |
17581 | |
17582 | class Foo { public: explicit Foo(int) {} }; | |
17583 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
17584 | |
17585 | int | |
17586 | main () | |
17587 | { | |
986ecc86 VZ |
17588 | |
17589 | TakeFoo(17); | |
17590 | return 0; | |
e6cc62c6 VS |
17591 | |
17592 | ; | |
17593 | return 0; | |
17594 | } | |
17595 | _ACEOF | |
17596 | rm -f conftest.$ac_objext | |
17597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17598 | (eval $ac_compile) 2>&5 | |
17599 | ac_status=$? | |
17600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17601 | (exit $ac_status); } && | |
17602 | { ac_try='test -s conftest.$ac_objext' | |
17603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17604 | (eval $ac_try) 2>&5 | |
17605 | ac_status=$? | |
17606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17607 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
17608 | wx_cv_explicit=no |
17609 | else | |
e6cc62c6 VS |
17610 | echo "$as_me: failed program was:" >&5 |
17611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17612 | ||
17613 | wx_cv_explicit=yes | |
17614 | ||
986ecc86 | 17615 | fi |
e6cc62c6 VS |
17616 | rm -f conftest.$ac_objext conftest.$ac_ext |
17617 | ||
986ecc86 | 17618 | else |
e6cc62c6 VS |
17619 | echo "$as_me: failed program was:" >&5 |
17620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17621 | ||
17622 | wx_cv_explicit=no | |
17623 | ||
986ecc86 | 17624 | fi |
e6cc62c6 | 17625 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
17626 | |
17627 | ac_ext=c | |
986ecc86 | 17628 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17632 | |
a0b9e27f | 17633 | |
e6cc62c6 VS |
17634 | fi |
17635 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
17636 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
17637 | |
17638 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 17639 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 17640 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 17641 | _ACEOF |
986ecc86 VZ |
17642 | |
17643 | fi | |
17644 | ||
8284b0c5 | 17645 | |
e6cc62c6 VS |
17646 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
17647 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
17648 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
17649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 17650 | else |
521196a2 | 17651 | |
521196a2 | 17652 | |
e6cc62c6 VS |
17653 | ac_ext=cc |
17654 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17655 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17656 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17657 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17658 | ||
17659 | cat >conftest.$ac_ext <<_ACEOF | |
17660 | #line $LINENO "configure" | |
17661 | /* confdefs.h. */ | |
17662 | _ACEOF | |
17663 | cat confdefs.h >>conftest.$ac_ext | |
17664 | cat >>conftest.$ac_ext <<_ACEOF | |
17665 | /* end confdefs.h. */ | |
17666 | ||
17667 | int | |
17668 | main () | |
17669 | { | |
521196a2 | 17670 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
17671 | ; |
17672 | return 0; | |
17673 | } | |
17674 | _ACEOF | |
17675 | rm -f conftest.$ac_objext | |
17676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17677 | (eval $ac_compile) 2>&5 | |
17678 | ac_status=$? | |
17679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17680 | (exit $ac_status); } && | |
17681 | { ac_try='test -s conftest.$ac_objext' | |
17682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17683 | (eval $ac_try) 2>&5 | |
17684 | ac_status=$? | |
17685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17686 | (exit $ac_status); }; }; then | |
521196a2 MB |
17687 | ac_cv_cxx_const_cast=yes |
17688 | else | |
e6cc62c6 VS |
17689 | echo "$as_me: failed program was:" >&5 |
17690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17691 | ||
17692 | ac_cv_cxx_const_cast=no | |
521196a2 | 17693 | fi |
e6cc62c6 | 17694 | rm -f conftest.$ac_objext conftest.$ac_ext |
521196a2 | 17695 | ac_ext=c |
521196a2 | 17696 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
17700 | |
17701 | ||
17702 | fi | |
e6cc62c6 VS |
17703 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
17704 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 17705 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
17706 | |
17707 | cat >>confdefs.h <<\_ACEOF | |
17708 | #define HAVE_CONST_CAST | |
17709 | _ACEOF | |
521196a2 MB |
17710 | |
17711 | fi | |
17712 | ||
17713 | ||
e87b7833 MB |
17714 | if test "$wxUSE_STL" = "yes"; then |
17715 | ac_ext=cc | |
17716 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17717 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17718 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17719 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17720 | ||
17721 | ||
17722 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
17723 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
17724 | cat >conftest.$ac_ext <<_ACEOF | |
17725 | #line $LINENO "configure" | |
17726 | /* confdefs.h. */ | |
17727 | _ACEOF | |
17728 | cat confdefs.h >>conftest.$ac_ext | |
17729 | cat >>conftest.$ac_ext <<_ACEOF | |
17730 | /* end confdefs.h. */ | |
17731 | #include <string> | |
17732 | #include <functional> | |
17733 | #include <algorithm> | |
17734 | #include <vector> | |
17735 | #include <list> | |
17736 | int | |
17737 | main () | |
17738 | { | |
17739 | std::vector<int> moo; | |
17740 | std::list<int> foo; | |
17741 | std::vector<int>::iterator it = | |
17742 | std::find_if(moo.begin(), moo.end(), | |
17743 | std::bind2nd(std::less<int>(), 3)); | |
17744 | ; | |
17745 | return 0; | |
17746 | } | |
17747 | _ACEOF | |
17748 | rm -f conftest.$ac_objext | |
17749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17750 | (eval $ac_compile) 2>&5 | |
17751 | ac_status=$? | |
17752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17753 | (exit $ac_status); } && | |
17754 | { ac_try='test -s conftest.$ac_objext' | |
17755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17756 | (eval $ac_try) 2>&5 | |
17757 | ac_status=$? | |
17758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17759 | (exit $ac_status); }; }; then | |
17760 | echo "$as_me:$LINENO: result: yes" >&5 | |
17761 | echo "${ECHO_T}yes" >&6 | |
17762 | else | |
17763 | echo "$as_me: failed program was:" >&5 | |
17764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17765 | ||
17766 | echo "$as_me:$LINENO: result: no" >&5 | |
17767 | echo "${ECHO_T}no" >&6 | |
17768 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
17769 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
17770 | { (exit 1); exit 1; }; } | |
17771 | fi | |
17772 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17773 | ||
17774 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
17775 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
17776 | cat >conftest.$ac_ext <<_ACEOF | |
17777 | #line $LINENO "configure" | |
17778 | /* confdefs.h. */ | |
17779 | _ACEOF | |
17780 | cat confdefs.h >>conftest.$ac_ext | |
17781 | cat >>conftest.$ac_ext <<_ACEOF | |
17782 | /* end confdefs.h. */ | |
17783 | #include <string> | |
17784 | int | |
17785 | main () | |
17786 | { | |
17787 | std::wstring foo; | |
17788 | ; | |
17789 | return 0; | |
17790 | } | |
17791 | _ACEOF | |
17792 | rm -f conftest.$ac_objext | |
17793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17794 | (eval $ac_compile) 2>&5 | |
17795 | ac_status=$? | |
17796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17797 | (exit $ac_status); } && | |
17798 | { ac_try='test -s conftest.$ac_objext' | |
17799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17800 | (eval $ac_try) 2>&5 | |
17801 | ac_status=$? | |
17802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17803 | (exit $ac_status); }; }; then | |
17804 | echo "$as_me:$LINENO: result: yes" >&5 | |
17805 | echo "${ECHO_T}yes" >&6 | |
17806 | cat >>confdefs.h <<\_ACEOF | |
17807 | #define HAVE_STD_WSTRING 1 | |
17808 | _ACEOF | |
17809 | ||
17810 | else | |
17811 | echo "$as_me: failed program was:" >&5 | |
17812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17813 | ||
17814 | echo "$as_me:$LINENO: result: no" >&5 | |
17815 | echo "${ECHO_T}no" >&6 | |
17816 | fi | |
17817 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17818 | ||
17819 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
17820 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
17821 | cat >conftest.$ac_ext <<_ACEOF | |
17822 | #line $LINENO "configure" | |
17823 | /* confdefs.h. */ | |
17824 | _ACEOF | |
17825 | cat confdefs.h >>conftest.$ac_ext | |
17826 | cat >>conftest.$ac_ext <<_ACEOF | |
17827 | /* end confdefs.h. */ | |
17828 | #include <string> | |
17829 | int | |
17830 | main () | |
17831 | { | |
17832 | std::string foo, bar; | |
17833 | foo.compare(bar); | |
17834 | foo.compare(1, 1, bar); | |
17835 | foo.compare(1, 1, bar, 1, 1); | |
17836 | foo.compare(""); | |
17837 | foo.compare(1, 1, ""); | |
17838 | foo.compare(1, 1, "", 2); | |
17839 | ; | |
17840 | return 0; | |
17841 | } | |
17842 | _ACEOF | |
17843 | rm -f conftest.$ac_objext | |
17844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17845 | (eval $ac_compile) 2>&5 | |
17846 | ac_status=$? | |
17847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17848 | (exit $ac_status); } && | |
17849 | { ac_try='test -s conftest.$ac_objext' | |
17850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17851 | (eval $ac_try) 2>&5 | |
17852 | ac_status=$? | |
17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17854 | (exit $ac_status); }; }; then | |
17855 | echo "$as_me:$LINENO: result: yes" >&5 | |
17856 | echo "${ECHO_T}yes" >&6 | |
17857 | cat >>confdefs.h <<\_ACEOF | |
17858 | #define HAVE_STD_STRING_COMPARE 1 | |
17859 | _ACEOF | |
17860 | ||
17861 | else | |
17862 | echo "$as_me: failed program was:" >&5 | |
17863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17864 | ||
17865 | echo "$as_me:$LINENO: result: no" >&5 | |
17866 | echo "${ECHO_T}no" >&6 | |
17867 | fi | |
17868 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17869 | ||
17870 | ac_ext=c | |
17871 | ac_cpp='$CPP $CPPFLAGS' | |
17872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17875 | ||
17876 | fi | |
17877 | ||
8284b0c5 | 17878 | |
21d1c967 GD |
17879 | SEARCH_INCLUDE="\ |
17880 | /usr/local/include \ | |
17881 | \ | |
17882 | /usr/Motif-1.2/include \ | |
17883 | /usr/Motif-2.1/include \ | |
17884 | \ | |
17885 | /usr/include/Motif1.2 \ | |
17886 | /opt/xpm/include/X11 \ | |
17887 | /opt/GBxpm/include/ \ | |
17888 | /opt/GBxpm/X11/include/ \ | |
17889 | \ | |
17890 | /usr/Motif1.2/include \ | |
17891 | /usr/dt/include \ | |
17892 | /usr/openwin/include \ | |
17893 | \ | |
17894 | /usr/include/Xm \ | |
17895 | \ | |
17896 | /usr/X11R6/include \ | |
17897 | /usr/X11R6.4/include \ | |
17898 | /usr/X11R5/include \ | |
17899 | /usr/X11R4/include \ | |
17900 | \ | |
17901 | /usr/include/X11R6 \ | |
17902 | /usr/include/X11R5 \ | |
17903 | /usr/include/X11R4 \ | |
17904 | \ | |
17905 | /usr/local/X11R6/include \ | |
17906 | /usr/local/X11R5/include \ | |
17907 | /usr/local/X11R4/include \ | |
17908 | \ | |
17909 | /usr/local/include/X11R6 \ | |
17910 | /usr/local/include/X11R5 \ | |
17911 | /usr/local/include/X11R4 \ | |
17912 | \ | |
17913 | /usr/X11/include \ | |
17914 | /usr/include/X11 \ | |
17915 | /usr/local/X11/include \ | |
17916 | /usr/local/include/X11 \ | |
17917 | \ | |
17918 | /usr/X386/include \ | |
17919 | /usr/x386/include \ | |
17920 | /usr/XFree86/include/X11 \ | |
17921 | \ | |
17922 | X:/XFree86/include \ | |
17923 | X:/XFree86/include/X11 \ | |
17924 | \ | |
17925 | /usr/include/gtk \ | |
17926 | /usr/local/include/gtk \ | |
17927 | /usr/include/glib \ | |
17928 | /usr/local/include/glib \ | |
17929 | \ | |
17930 | /usr/include/qt \ | |
17931 | /usr/local/include/qt \ | |
17932 | \ | |
17933 | /usr/include/windows \ | |
17934 | /usr/include/wine \ | |
17935 | /usr/local/include/wine \ | |
17936 | \ | |
17937 | /usr/unsupported/include \ | |
17938 | /usr/athena/include \ | |
17939 | /usr/local/x11r5/include \ | |
17940 | /usr/lpp/Xamples/include \ | |
17941 | \ | |
2b5f62a0 | 17942 | /usr/openwin/share/include" |
21d1c967 GD |
17943 | |
17944 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
17945 | ||
8284b0c5 | 17946 | |
e6cc62c6 | 17947 | cat >confcache <<\_ACEOF |
21d1c967 GD |
17948 | # This file is a shell script that caches the results of configure |
17949 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
17950 | # scripts and configure runs, see configure's option --config-cache. |
17951 | # It is not useful on other systems. If it contains results you don't | |
17952 | # want to keep, you may remove or edit it. | |
21d1c967 | 17953 | # |
e6cc62c6 VS |
17954 | # config.status only pays attention to the cache file if you give it |
17955 | # the --recheck option to rerun configure. | |
21d1c967 | 17956 | # |
e6cc62c6 VS |
17957 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17958 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17959 | # following values. | |
17960 | ||
17961 | _ACEOF | |
17962 | ||
21d1c967 GD |
17963 | # The following way of writing the cache mishandles newlines in values, |
17964 | # but we know of no workaround that is simple, portable, and efficient. | |
17965 | # So, don't put newlines in cache variables' values. | |
17966 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17967 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
17968 | { |
17969 | (set) 2>&1 | | |
17970 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17971 | *ac_space=\ *) | |
17972 | # `set' does not quote correctly, so add quotes (double-quote | |
17973 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17974 | sed -n \ | |
17975 | "s/'/'\\\\''/g; | |
17976 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17977 | ;; | |
17978 | *) | |
17979 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17980 | sed -n \ | |
17981 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
17982 | ;; | |
17983 | esac; | |
17984 | } | | |
17985 | sed ' | |
17986 | t clear | |
17987 | : clear | |
17988 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17989 | t end | |
17990 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17991 | : end' >>confcache | |
17992 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 17993 | if test -w $cache_file; then |
e6cc62c6 VS |
17994 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
17995 | cat confcache >$cache_file | |
21d1c967 GD |
17996 | else |
17997 | echo "not updating unwritable cache $cache_file" | |
17998 | fi | |
ab9b9eab | 17999 | fi |
21d1c967 | 18000 | rm -f confcache |
ab9b9eab | 18001 | |
fe0895cf | 18002 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
18003 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
18004 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
18005 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
18006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18007 | else | |
18008 | ||
18009 | cat >conftest.$ac_ext <<_ACEOF | |
18010 | #line $LINENO "configure" | |
18011 | /* confdefs.h. */ | |
18012 | _ACEOF | |
18013 | cat confdefs.h >>conftest.$ac_ext | |
18014 | cat >>conftest.$ac_ext <<_ACEOF | |
18015 | /* end confdefs.h. */ | |
21d1c967 | 18016 | #include <features.h> |
e6cc62c6 VS |
18017 | int |
18018 | main () | |
18019 | { | |
ab9b9eab | 18020 | |
21d1c967 GD |
18021 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
18022 | #error not glibc2.1 | |
18023 | #endif | |
e6cc62c6 VS |
18024 | |
18025 | ; | |
18026 | return 0; | |
18027 | } | |
18028 | _ACEOF | |
18029 | rm -f conftest.$ac_objext | |
18030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18031 | (eval $ac_compile) 2>&5 | |
18032 | ac_status=$? | |
18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18034 | (exit $ac_status); } && | |
18035 | { ac_try='test -s conftest.$ac_objext' | |
18036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18037 | (eval $ac_try) 2>&5 | |
18038 | ac_status=$? | |
18039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18040 | (exit $ac_status); }; }; then | |
18041 | ||
21d1c967 | 18042 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 18043 | |
698dcdb6 | 18044 | else |
e6cc62c6 VS |
18045 | echo "$as_me: failed program was:" >&5 |
18046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18047 | ||
18048 | ||
21d1c967 | 18049 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
18050 | |
18051 | ||
247f5006 | 18052 | fi |
e6cc62c6 | 18053 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 18054 | |
e6cc62c6 VS |
18055 | fi |
18056 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
18057 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 18058 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 18059 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18060 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 18061 | _ACEOF |
1e487827 | 18062 | |
90dd450c | 18063 | fi |
ab9b9eab VZ |
18064 | fi |
18065 | ||
5c0a20c3 VZ |
18066 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
18067 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 18068 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 18069 | #define _GNU_SOURCE 1 |
e6cc62c6 | 18070 | _ACEOF |
5c0a20c3 VZ |
18071 | |
18072 | fi | |
18073 | fi | |
18074 | ||
8284b0c5 MB |
18075 | |
18076 | ||
21d1c967 GD |
18077 | REGEX_INCLUDE= |
18078 | if test "$wxUSE_REGEX" != "no"; then | |
e6cc62c6 | 18079 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18080 | #define wxUSE_REGEX 1 |
e6cc62c6 | 18081 | _ACEOF |
698dcdb6 | 18082 | |
8284b0c5 | 18083 | |
21d1c967 | 18084 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
18085 | if test "${ac_cv_header_regex_h+set}" = set; then |
18086 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18087 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18088 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18090 | fi | |
18091 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
18092 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18093 | else | |
18094 | # Is the header compilable? | |
18095 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
18096 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
18097 | cat >conftest.$ac_ext <<_ACEOF | |
18098 | #line $LINENO "configure" | |
18099 | /* confdefs.h. */ | |
18100 | _ACEOF | |
18101 | cat confdefs.h >>conftest.$ac_ext | |
18102 | cat >>conftest.$ac_ext <<_ACEOF | |
18103 | /* end confdefs.h. */ | |
18104 | $ac_includes_default | |
247f5006 | 18105 | #include <regex.h> |
e6cc62c6 VS |
18106 | _ACEOF |
18107 | rm -f conftest.$ac_objext | |
18108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18109 | (eval $ac_compile) 2>&5 | |
18110 | ac_status=$? | |
18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18112 | (exit $ac_status); } && | |
18113 | { ac_try='test -s conftest.$ac_objext' | |
18114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18115 | (eval $ac_try) 2>&5 | |
18116 | ac_status=$? | |
18117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18118 | (exit $ac_status); }; }; then | |
18119 | ac_header_compiler=yes | |
18120 | else | |
18121 | echo "$as_me: failed program was:" >&5 | |
18122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18123 | ||
18124 | ac_header_compiler=no | |
18125 | fi | |
18126 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18127 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18128 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18129 | ||
18130 | # Is the header present? | |
18131 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
18132 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
18133 | cat >conftest.$ac_ext <<_ACEOF | |
18134 | #line $LINENO "configure" | |
18135 | /* confdefs.h. */ | |
18136 | _ACEOF | |
18137 | cat confdefs.h >>conftest.$ac_ext | |
18138 | cat >>conftest.$ac_ext <<_ACEOF | |
18139 | /* end confdefs.h. */ | |
18140 | #include <regex.h> | |
18141 | _ACEOF | |
18142 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18143 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18144 | ac_status=$? | |
18145 | grep -v '^ *+' conftest.er1 >conftest.err | |
18146 | rm -f conftest.er1 | |
18147 | cat conftest.err >&5 | |
18148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18149 | (exit $ac_status); } >/dev/null; then | |
18150 | if test -s conftest.err; then | |
18151 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18152 | else | |
18153 | ac_cpp_err= | |
18154 | fi | |
18155 | else | |
18156 | ac_cpp_err=yes | |
18157 | fi | |
18158 | if test -z "$ac_cpp_err"; then | |
18159 | ac_header_preproc=yes | |
18160 | else | |
18161 | echo "$as_me: failed program was:" >&5 | |
18162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18163 | ||
18164 | ac_header_preproc=no | |
18165 | fi | |
18166 | rm -f conftest.err conftest.$ac_ext | |
18167 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18168 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18169 | ||
18170 | # So? What about this header? | |
18171 | case $ac_header_compiler:$ac_header_preproc in | |
18172 | yes:no ) | |
18173 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18174 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18175 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
18176 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18177 | ( | |
18178 | cat <<\_ASBOX | |
18179 | ## ------------------------------------ ## | |
18180 | ## Report this to bug-autoconf@gnu.org. ## | |
18181 | ## ------------------------------------ ## | |
18182 | _ASBOX | |
18183 | ) | | |
18184 | sed "s/^/$as_me: WARNING: /" >&2 | |
18185 | ;; | |
18186 | no:yes ) | |
18187 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
18188 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
18189 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
18190 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
18191 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
18192 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18193 | ( | |
18194 | cat <<\_ASBOX | |
18195 | ## ------------------------------------ ## | |
18196 | ## Report this to bug-autoconf@gnu.org. ## | |
18197 | ## ------------------------------------ ## | |
18198 | _ASBOX | |
18199 | ) | | |
18200 | sed "s/^/$as_me: WARNING: /" >&2 | |
18201 | ;; | |
18202 | esac | |
18203 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18204 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18205 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18207 | else | |
18208 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 18209 | fi |
e6cc62c6 VS |
18210 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
18211 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18212 | ||
698dcdb6 | 18213 | fi |
e6cc62c6 VS |
18214 | if test $ac_cv_header_regex_h = yes; then |
18215 | ||
18216 | for ac_func in regcomp | |
21d1c967 | 18217 | do |
e6cc62c6 VS |
18218 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18219 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18220 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18221 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
18222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18223 | else | |
18224 | cat >conftest.$ac_ext <<_ACEOF | |
18225 | #line $LINENO "configure" | |
18226 | /* confdefs.h. */ | |
18227 | _ACEOF | |
18228 | cat confdefs.h >>conftest.$ac_ext | |
18229 | cat >>conftest.$ac_ext <<_ACEOF | |
18230 | /* end confdefs.h. */ | |
a0b9e27f | 18231 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
18232 | which can conflict with char $ac_func (); below. |
18233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18234 | <limits.h> exists even on freestanding compilers. */ | |
18235 | #ifdef __STDC__ | |
18236 | # include <limits.h> | |
18237 | #else | |
18238 | # include <assert.h> | |
18239 | #endif | |
21d1c967 | 18240 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18241 | #ifdef __cplusplus |
18242 | extern "C" | |
18243 | { | |
18244 | #endif | |
21d1c967 | 18245 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18246 | builtin and then its argument prototype would still apply. */ |
18247 | char $ac_func (); | |
21d1c967 GD |
18248 | /* The GNU C library defines this for functions which it implements |
18249 | to always fail with ENOSYS. Some functions are actually named | |
18250 | something starting with __ and the normal name is an alias. */ | |
18251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18252 | choke me | |
18253 | #else | |
e6cc62c6 VS |
18254 | char (*f) () = $ac_func; |
18255 | #endif | |
18256 | #ifdef __cplusplus | |
18257 | } | |
21d1c967 | 18258 | #endif |
90dd450c | 18259 | |
e6cc62c6 VS |
18260 | int |
18261 | main () | |
18262 | { | |
18263 | return f != $ac_func; | |
18264 | ; | |
18265 | return 0; | |
18266 | } | |
18267 | _ACEOF | |
18268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18270 | (eval $ac_link) 2>&5 | |
18271 | ac_status=$? | |
18272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18273 | (exit $ac_status); } && | |
18274 | { ac_try='test -s conftest$ac_exeext' | |
18275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18276 | (eval $ac_try) 2>&5 | |
18277 | ac_status=$? | |
18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18279 | (exit $ac_status); }; }; then | |
18280 | eval "$as_ac_var=yes" | |
18281 | else | |
18282 | echo "$as_me: failed program was:" >&5 | |
18283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18284 | ||
18285 | eval "$as_ac_var=no" | |
18286 | fi | |
18287 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18288 | fi | |
18289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18290 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18291 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18292 | cat >>confdefs.h <<_ACEOF | |
18293 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18294 | _ACEOF | |
5c6fa7d2 | 18295 | |
698dcdb6 | 18296 | fi |
21d1c967 GD |
18297 | done |
18298 | ||
ab9b9eab VZ |
18299 | fi |
18300 | ||
8284b0c5 | 18301 | |
e6cc62c6 | 18302 | |
21d1c967 GD |
18303 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
18304 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
18305 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
18306 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18307 | { (exit 1); exit 1; }; } | |
21d1c967 | 18308 | else |
e6cc62c6 VS |
18309 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
18310 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18311 | wxUSE_REGEX=builtin |
18312 | fi | |
18313 | else | |
18314 | wxUSE_REGEX=sys | |
18315 | fi | |
ab9b9eab | 18316 | fi |
90dd450c | 18317 | |
21d1c967 GD |
18318 | if test "$wxUSE_REGEX" = "builtin" ; then |
18319 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 18320 | fi |
21d1c967 | 18321 | fi |
90dd450c | 18322 | |
8284b0c5 | 18323 | |
21d1c967 GD |
18324 | ZLIB_INCLUDE= |
18325 | ZLIB_LINK= | |
18326 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 18327 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18328 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 18329 | _ACEOF |
21d1c967 | 18330 | |
8284b0c5 | 18331 | |
21d1c967 | 18332 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
18333 | if test "$USE_DARWIN" = 1; then |
18334 | system_zlib_h_ok="yes" | |
18335 | else | |
e6cc62c6 VS |
18336 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
18337 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18338 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
18340 | else |
18341 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18342 | unset ac_cv_header_zlib_h |
e6cc62c6 | 18343 | |
d643b80e | 18344 | else |
e6cc62c6 VS |
18345 | cat >conftest.$ac_ext <<_ACEOF |
18346 | #line $LINENO "configure" | |
18347 | /* confdefs.h. */ | |
18348 | _ACEOF | |
18349 | cat confdefs.h >>conftest.$ac_ext | |
18350 | cat >>conftest.$ac_ext <<_ACEOF | |
18351 | /* end confdefs.h. */ | |
18352 | ||
ef33c576 | 18353 | #include <zlib.h> |
d775acfa | 18354 | #include <stdio.h> |
d643b80e | 18355 | |
d775acfa VZ |
18356 | int main() |
18357 | { | |
18358 | FILE *f=fopen("conftestval", "w"); | |
18359 | if (!f) exit(1); | |
18360 | fprintf(f, "%s", | |
18361 | ZLIB_VERSION[0] == '1' && | |
18362 | (ZLIB_VERSION[2] > '1' || | |
18363 | (ZLIB_VERSION[2] == '1' && | |
18364 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18365 | exit(0); | |
18366 | } | |
e6cc62c6 VS |
18367 | |
18368 | _ACEOF | |
18369 | rm -f conftest$ac_exeext | |
18370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18371 | (eval $ac_link) 2>&5 | |
18372 | ac_status=$? | |
18373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18374 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18376 | (eval $ac_try) 2>&5 | |
18377 | ac_status=$? | |
18378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18379 | (exit $ac_status); }; }; then | |
d643b80e VZ |
18380 | ac_cv_header_zlib_h=`cat conftestval` |
18381 | else | |
e6cc62c6 VS |
18382 | echo "$as_me: program exited with status $ac_status" >&5 |
18383 | echo "$as_me: failed program was:" >&5 | |
18384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18385 | ||
18386 | ( exit $ac_status ) | |
18387 | ac_cv_header_zlib_h=no | |
d643b80e | 18388 | fi |
e6cc62c6 | 18389 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
18390 | fi |
18391 | ||
d643b80e | 18392 | fi |
e6cc62c6 VS |
18393 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
18394 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18395 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18396 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18397 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18398 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18400 | fi | |
18401 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18402 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 18403 | else |
e6cc62c6 VS |
18404 | # Is the header compilable? |
18405 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18406 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18407 | cat >conftest.$ac_ext <<_ACEOF | |
18408 | #line $LINENO "configure" | |
18409 | /* confdefs.h. */ | |
18410 | _ACEOF | |
18411 | cat confdefs.h >>conftest.$ac_ext | |
18412 | cat >>conftest.$ac_ext <<_ACEOF | |
18413 | /* end confdefs.h. */ | |
18414 | $ac_includes_default | |
89e6bf6d | 18415 | #include <zlib.h> |
e6cc62c6 VS |
18416 | _ACEOF |
18417 | rm -f conftest.$ac_objext | |
18418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18419 | (eval $ac_compile) 2>&5 | |
18420 | ac_status=$? | |
18421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18422 | (exit $ac_status); } && | |
18423 | { ac_try='test -s conftest.$ac_objext' | |
18424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18425 | (eval $ac_try) 2>&5 | |
18426 | ac_status=$? | |
18427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18428 | (exit $ac_status); }; }; then | |
18429 | ac_header_compiler=yes | |
18430 | else | |
18431 | echo "$as_me: failed program was:" >&5 | |
18432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18433 | ||
18434 | ac_header_compiler=no | |
18435 | fi | |
18436 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18437 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18438 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18439 | ||
18440 | # Is the header present? | |
18441 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18442 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18443 | cat >conftest.$ac_ext <<_ACEOF | |
18444 | #line $LINENO "configure" | |
18445 | /* confdefs.h. */ | |
18446 | _ACEOF | |
18447 | cat confdefs.h >>conftest.$ac_ext | |
18448 | cat >>conftest.$ac_ext <<_ACEOF | |
18449 | /* end confdefs.h. */ | |
18450 | #include <zlib.h> | |
18451 | _ACEOF | |
18452 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18453 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18454 | ac_status=$? | |
18455 | grep -v '^ *+' conftest.er1 >conftest.err | |
18456 | rm -f conftest.er1 | |
18457 | cat conftest.err >&5 | |
18458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18459 | (exit $ac_status); } >/dev/null; then | |
18460 | if test -s conftest.err; then | |
18461 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18462 | else | |
18463 | ac_cpp_err= | |
18464 | fi | |
18465 | else | |
18466 | ac_cpp_err=yes | |
18467 | fi | |
18468 | if test -z "$ac_cpp_err"; then | |
18469 | ac_header_preproc=yes | |
18470 | else | |
18471 | echo "$as_me: failed program was:" >&5 | |
18472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18473 | ||
18474 | ac_header_preproc=no | |
18475 | fi | |
18476 | rm -f conftest.err conftest.$ac_ext | |
18477 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18478 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18479 | ||
18480 | # So? What about this header? | |
18481 | case $ac_header_compiler:$ac_header_preproc in | |
18482 | yes:no ) | |
18483 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18484 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18485 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18486 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18487 | ( | |
18488 | cat <<\_ASBOX | |
18489 | ## ------------------------------------ ## | |
18490 | ## Report this to bug-autoconf@gnu.org. ## | |
18491 | ## ------------------------------------ ## | |
18492 | _ASBOX | |
18493 | ) | | |
18494 | sed "s/^/$as_me: WARNING: /" >&2 | |
18495 | ;; | |
18496 | no:yes ) | |
18497 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
18498 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
18499 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
18500 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
18501 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18502 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18503 | ( | |
18504 | cat <<\_ASBOX | |
18505 | ## ------------------------------------ ## | |
18506 | ## Report this to bug-autoconf@gnu.org. ## | |
18507 | ## ------------------------------------ ## | |
18508 | _ASBOX | |
18509 | ) | | |
18510 | sed "s/^/$as_me: WARNING: /" >&2 | |
18511 | ;; | |
18512 | esac | |
18513 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18514 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18515 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18517 | else |
e6cc62c6 VS |
18518 | ac_cv_header_zlib_h=$ac_header_preproc |
18519 | fi | |
18520 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18521 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18522 | ||
89e6bf6d VZ |
18523 | fi |
18524 | ||
d643b80e | 18525 | |
e6cc62c6 | 18526 | |
d775acfa VZ |
18527 | system_zlib_h_ok=$ac_cv_header_zlib_h |
18528 | fi | |
18529 | ||
18530 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
18531 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
18532 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
18533 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
18534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18535 | else |
e6cc62c6 | 18536 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18537 | LIBS="-lz $LIBS" |
e6cc62c6 VS |
18538 | cat >conftest.$ac_ext <<_ACEOF |
18539 | #line $LINENO "configure" | |
18540 | /* confdefs.h. */ | |
18541 | _ACEOF | |
18542 | cat confdefs.h >>conftest.$ac_ext | |
18543 | cat >>conftest.$ac_ext <<_ACEOF | |
18544 | /* end confdefs.h. */ | |
18545 | ||
21d1c967 | 18546 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18547 | #ifdef __cplusplus |
18548 | extern "C" | |
18549 | #endif | |
21d1c967 | 18550 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18551 | builtin and then its argument prototype would still apply. */ |
18552 | char deflate (); | |
18553 | int | |
18554 | main () | |
18555 | { | |
18556 | deflate (); | |
18557 | ; | |
18558 | return 0; | |
18559 | } | |
18560 | _ACEOF | |
18561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18563 | (eval $ac_link) 2>&5 | |
18564 | ac_status=$? | |
18565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18566 | (exit $ac_status); } && | |
18567 | { ac_try='test -s conftest$ac_exeext' | |
18568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18569 | (eval $ac_try) 2>&5 | |
18570 | ac_status=$? | |
18571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18572 | (exit $ac_status); }; }; then | |
18573 | ac_cv_lib_z_deflate=yes | |
18574 | else | |
18575 | echo "$as_me: failed program was:" >&5 | |
18576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18577 | ||
18578 | ac_cv_lib_z_deflate=no | |
18579 | fi | |
18580 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18581 | LIBS=$ac_check_lib_save_LIBS | |
18582 | fi | |
18583 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
18584 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
18585 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 18586 | ZLIB_LINK=" -lz" |
a0b9e27f | 18587 | fi |
698dcdb6 | 18588 | |
d643b80e | 18589 | fi |
247f5006 | 18590 | |
21d1c967 GD |
18591 | if test "x$ZLIB_LINK" = "x" ; then |
18592 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
18593 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
18594 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
18595 | { (exit 1); exit 1; }; } | |
21d1c967 | 18596 | else |
e6cc62c6 VS |
18597 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
18598 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18599 | wxUSE_ZLIB=builtin |
18600 | fi | |
18601 | else | |
18602 | wxUSE_ZLIB=sys | |
18603 | fi | |
18604 | fi | |
18605 | ||
18606 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
18607 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
18608 | fi | |
ab9b9eab VZ |
18609 | fi |
18610 | ||
8284b0c5 | 18611 | |
21d1c967 GD |
18612 | PNG_INCLUDE= |
18613 | PNG_LINK= | |
18614 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 18615 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18616 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 18617 | _ACEOF |
90dd450c | 18618 | |
8284b0c5 | 18619 | |
21d1c967 | 18620 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
18621 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
18622 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18623 | wxUSE_LIBPNG=sys |
18624 | fi | |
90dd450c | 18625 | |
21d1c967 | 18626 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
18627 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
18628 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
18629 | wxUSE_LIBPNG=builtin |
18630 | fi | |
18631 | ||
18632 | if test "$wxUSE_MGL" != 1 ; then | |
18633 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
18634 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
18635 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
18636 | if test "${ac_cv_header_png_h+set}" = set; then | |
18637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
18638 | else |
18639 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18640 | unset ac_cv_header_png_h |
e6cc62c6 | 18641 | |
5d3f766d | 18642 | else |
e6cc62c6 VS |
18643 | cat >conftest.$ac_ext <<_ACEOF |
18644 | #line $LINENO "configure" | |
18645 | /* confdefs.h. */ | |
18646 | _ACEOF | |
18647 | cat confdefs.h >>conftest.$ac_ext | |
18648 | cat >>conftest.$ac_ext <<_ACEOF | |
18649 | /* end confdefs.h. */ | |
18650 | ||
ef33c576 | 18651 | #include <png.h> |
5d3f766d VZ |
18652 | #include <stdio.h> |
18653 | ||
18654 | int main() | |
18655 | { | |
18656 | FILE *f=fopen("conftestval", "w"); | |
18657 | if (!f) exit(1); | |
18658 | fprintf(f, "%s", | |
18659 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
18660 | exit(0); | |
18661 | } | |
e6cc62c6 VS |
18662 | |
18663 | _ACEOF | |
18664 | rm -f conftest$ac_exeext | |
18665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18666 | (eval $ac_link) 2>&5 | |
18667 | ac_status=$? | |
18668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18669 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18671 | (eval $ac_try) 2>&5 | |
18672 | ac_status=$? | |
18673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18674 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
18675 | ac_cv_header_png_h=`cat conftestval` |
18676 | else | |
e6cc62c6 VS |
18677 | echo "$as_me: program exited with status $ac_status" >&5 |
18678 | echo "$as_me: failed program was:" >&5 | |
18679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18680 | ||
18681 | ( exit $ac_status ) | |
18682 | ac_cv_header_png_h=no | |
5d3f766d | 18683 | fi |
e6cc62c6 | 18684 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
18685 | fi |
18686 | ||
5d3f766d | 18687 | fi |
e6cc62c6 VS |
18688 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
18689 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18690 | if test "${ac_cv_header_png_h+set}" = set; then | |
18691 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18692 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18693 | if test "${ac_cv_header_png_h+set}" = set; then | |
18694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18695 | fi | |
18696 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18697 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 18698 | else |
e6cc62c6 VS |
18699 | # Is the header compilable? |
18700 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
18701 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
18702 | cat >conftest.$ac_ext <<_ACEOF | |
18703 | #line $LINENO "configure" | |
18704 | /* confdefs.h. */ | |
18705 | _ACEOF | |
18706 | cat confdefs.h >>conftest.$ac_ext | |
18707 | cat >>conftest.$ac_ext <<_ACEOF | |
18708 | /* end confdefs.h. */ | |
18709 | $ac_includes_default | |
89e6bf6d | 18710 | #include <png.h> |
e6cc62c6 VS |
18711 | _ACEOF |
18712 | rm -f conftest.$ac_objext | |
18713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18714 | (eval $ac_compile) 2>&5 | |
18715 | ac_status=$? | |
18716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18717 | (exit $ac_status); } && | |
18718 | { ac_try='test -s conftest.$ac_objext' | |
18719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18720 | (eval $ac_try) 2>&5 | |
18721 | ac_status=$? | |
18722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18723 | (exit $ac_status); }; }; then | |
18724 | ac_header_compiler=yes | |
18725 | else | |
18726 | echo "$as_me: failed program was:" >&5 | |
18727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18728 | ||
18729 | ac_header_compiler=no | |
18730 | fi | |
18731 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18732 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18733 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18734 | ||
18735 | # Is the header present? | |
18736 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
18737 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
18738 | cat >conftest.$ac_ext <<_ACEOF | |
18739 | #line $LINENO "configure" | |
18740 | /* confdefs.h. */ | |
18741 | _ACEOF | |
18742 | cat confdefs.h >>conftest.$ac_ext | |
18743 | cat >>conftest.$ac_ext <<_ACEOF | |
18744 | /* end confdefs.h. */ | |
18745 | #include <png.h> | |
18746 | _ACEOF | |
18747 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18748 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18749 | ac_status=$? | |
18750 | grep -v '^ *+' conftest.er1 >conftest.err | |
18751 | rm -f conftest.er1 | |
18752 | cat conftest.err >&5 | |
18753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18754 | (exit $ac_status); } >/dev/null; then | |
18755 | if test -s conftest.err; then | |
18756 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18757 | else | |
18758 | ac_cpp_err= | |
18759 | fi | |
18760 | else | |
18761 | ac_cpp_err=yes | |
18762 | fi | |
18763 | if test -z "$ac_cpp_err"; then | |
18764 | ac_header_preproc=yes | |
18765 | else | |
18766 | echo "$as_me: failed program was:" >&5 | |
18767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18768 | ||
18769 | ac_header_preproc=no | |
18770 | fi | |
18771 | rm -f conftest.err conftest.$ac_ext | |
18772 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18773 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18774 | ||
18775 | # So? What about this header? | |
18776 | case $ac_header_compiler:$ac_header_preproc in | |
18777 | yes:no ) | |
18778 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18779 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18780 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18781 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18782 | ( | |
18783 | cat <<\_ASBOX | |
18784 | ## ------------------------------------ ## | |
18785 | ## Report this to bug-autoconf@gnu.org. ## | |
18786 | ## ------------------------------------ ## | |
18787 | _ASBOX | |
18788 | ) | | |
18789 | sed "s/^/$as_me: WARNING: /" >&2 | |
18790 | ;; | |
18791 | no:yes ) | |
18792 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
18793 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
18794 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
18795 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
18796 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18797 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18798 | ( | |
18799 | cat <<\_ASBOX | |
18800 | ## ------------------------------------ ## | |
18801 | ## Report this to bug-autoconf@gnu.org. ## | |
18802 | ## ------------------------------------ ## | |
18803 | _ASBOX | |
18804 | ) | | |
18805 | sed "s/^/$as_me: WARNING: /" >&2 | |
18806 | ;; | |
18807 | esac | |
18808 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18809 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18810 | if test "${ac_cv_header_png_h+set}" = set; then | |
18811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18812 | else |
e6cc62c6 VS |
18813 | ac_cv_header_png_h=$ac_header_preproc |
18814 | fi | |
18815 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18816 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18817 | ||
89e6bf6d VZ |
18818 | fi |
18819 | ||
5d3f766d | 18820 | |
e6cc62c6 | 18821 | |
5d3f766d | 18822 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
18823 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
18824 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
18825 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
18826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18827 | else |
e6cc62c6 | 18828 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18829 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 VS |
18830 | cat >conftest.$ac_ext <<_ACEOF |
18831 | #line $LINENO "configure" | |
18832 | /* confdefs.h. */ | |
18833 | _ACEOF | |
18834 | cat confdefs.h >>conftest.$ac_ext | |
18835 | cat >>conftest.$ac_ext <<_ACEOF | |
18836 | /* end confdefs.h. */ | |
18837 | ||
21d1c967 | 18838 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18839 | #ifdef __cplusplus |
18840 | extern "C" | |
18841 | #endif | |
21d1c967 | 18842 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18843 | builtin and then its argument prototype would still apply. */ |
18844 | char png_check_sig (); | |
18845 | int | |
18846 | main () | |
18847 | { | |
18848 | png_check_sig (); | |
18849 | ; | |
18850 | return 0; | |
18851 | } | |
18852 | _ACEOF | |
18853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18855 | (eval $ac_link) 2>&5 | |
18856 | ac_status=$? | |
18857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18858 | (exit $ac_status); } && | |
18859 | { ac_try='test -s conftest$ac_exeext' | |
18860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18861 | (eval $ac_try) 2>&5 | |
18862 | ac_status=$? | |
18863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18864 | (exit $ac_status); }; }; then | |
18865 | ac_cv_lib_png_png_check_sig=yes | |
18866 | else | |
18867 | echo "$as_me: failed program was:" >&5 | |
18868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18869 | ||
18870 | ac_cv_lib_png_png_check_sig=no | |
18871 | fi | |
18872 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18873 | LIBS=$ac_check_lib_save_LIBS | |
18874 | fi | |
18875 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
18876 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
18877 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 18878 | PNG_LINK=" -lpng" |
a0b9e27f | 18879 | fi |
90dd450c | 18880 | |
5d3f766d | 18881 | fi |
247f5006 | 18882 | |
21d1c967 GD |
18883 | if test "x$PNG_LINK" = "x" ; then |
18884 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
18885 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
18886 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
18887 | { (exit 1); exit 1; }; } | |
21d1c967 | 18888 | else |
e6cc62c6 VS |
18889 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
18890 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18891 | wxUSE_LIBPNG=builtin |
18892 | fi | |
18893 | else | |
2b5f62a0 | 18894 | wxUSE_LIBPNG=sys |
21d1c967 GD |
18895 | fi |
18896 | fi | |
18897 | fi | |
90dd450c | 18898 | |
21d1c967 GD |
18899 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
18900 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
18901 | fi | |
90dd450c | 18902 | |
21d1c967 | 18903 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
18904 | fi |
18905 | ||
8284b0c5 | 18906 | |
21d1c967 GD |
18907 | JPEG_INCLUDE= |
18908 | JPEG_LINK= | |
18909 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 18910 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18911 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 18912 | _ACEOF |
90dd450c | 18913 | |
8284b0c5 | 18914 | |
21d1c967 | 18915 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
18916 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
18917 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18918 | wxUSE_LIBJPEG=sys |
18919 | fi | |
90dd450c | 18920 | |
21d1c967 GD |
18921 | if test "$wxUSE_MGL" != 1 ; then |
18922 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
18923 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
18924 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
18925 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
18926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18927 | else | |
18928 | cat >conftest.$ac_ext <<_ACEOF | |
18929 | #line $LINENO "configure" | |
18930 | /* confdefs.h. */ | |
18931 | _ACEOF | |
18932 | cat confdefs.h >>conftest.$ac_ext | |
18933 | cat >>conftest.$ac_ext <<_ACEOF | |
18934 | /* end confdefs.h. */ | |
90dd450c | 18935 | |
21d1c967 GD |
18936 | #undef HAVE_STDLIB_H |
18937 | #include <stdio.h> | |
18938 | #include <jpeglib.h> | |
90dd450c | 18939 | |
e6cc62c6 VS |
18940 | int |
18941 | main () | |
18942 | { | |
18943 | ||
18944 | ||
18945 | ; | |
18946 | return 0; | |
18947 | } | |
18948 | _ACEOF | |
18949 | rm -f conftest.$ac_objext | |
18950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18951 | (eval $ac_compile) 2>&5 | |
18952 | ac_status=$? | |
18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18954 | (exit $ac_status); } && | |
18955 | { ac_try='test -s conftest.$ac_objext' | |
18956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18957 | (eval $ac_try) 2>&5 | |
18958 | ac_status=$? | |
18959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18960 | (exit $ac_status); }; }; then | |
21d1c967 | 18961 | ac_cv_header_jpeglib_h=yes |
90dd450c | 18962 | else |
e6cc62c6 VS |
18963 | echo "$as_me: failed program was:" >&5 |
18964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18965 | ||
18966 | ac_cv_header_jpeglib_h=no | |
18967 | ||
90dd450c | 18968 | fi |
e6cc62c6 VS |
18969 | rm -f conftest.$ac_objext conftest.$ac_ext |
18970 | ||
90dd450c VZ |
18971 | fi |
18972 | ||
e6cc62c6 VS |
18973 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
18974 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 18975 | |
21d1c967 | 18976 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
18977 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
18978 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
18979 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
18980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18981 | else |
e6cc62c6 | 18982 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18983 | LIBS="-ljpeg $LIBS" |
e6cc62c6 VS |
18984 | cat >conftest.$ac_ext <<_ACEOF |
18985 | #line $LINENO "configure" | |
18986 | /* confdefs.h. */ | |
18987 | _ACEOF | |
18988 | cat confdefs.h >>conftest.$ac_ext | |
18989 | cat >>conftest.$ac_ext <<_ACEOF | |
18990 | /* end confdefs.h. */ | |
18991 | ||
21d1c967 | 18992 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18993 | #ifdef __cplusplus |
18994 | extern "C" | |
18995 | #endif | |
21d1c967 | 18996 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18997 | builtin and then its argument prototype would still apply. */ |
18998 | char jpeg_read_header (); | |
18999 | int | |
19000 | main () | |
19001 | { | |
19002 | jpeg_read_header (); | |
19003 | ; | |
19004 | return 0; | |
19005 | } | |
19006 | _ACEOF | |
19007 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19009 | (eval $ac_link) 2>&5 | |
19010 | ac_status=$? | |
19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19012 | (exit $ac_status); } && | |
19013 | { ac_try='test -s conftest$ac_exeext' | |
19014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19015 | (eval $ac_try) 2>&5 | |
19016 | ac_status=$? | |
19017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19018 | (exit $ac_status); }; }; then | |
19019 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
19020 | else | |
19021 | echo "$as_me: failed program was:" >&5 | |
19022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19023 | ||
19024 | ac_cv_lib_jpeg_jpeg_read_header=no | |
19025 | fi | |
19026 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19027 | LIBS=$ac_check_lib_save_LIBS | |
19028 | fi | |
19029 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
19030 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
19031 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 19032 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
19033 | fi |
19034 | ||
21d1c967 | 19035 | fi |
90dd450c | 19036 | |
21d1c967 GD |
19037 | if test "x$JPEG_LINK" = "x" ; then |
19038 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
19039 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
19040 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
19041 | { (exit 1); exit 1; }; } | |
21d1c967 | 19042 | else |
e6cc62c6 VS |
19043 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
19044 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19045 | wxUSE_LIBJPEG=builtin |
19046 | fi | |
19047 | else | |
19048 | wxUSE_LIBJPEG=sys | |
19049 | fi | |
19050 | fi | |
19051 | fi | |
90dd450c | 19052 | |
21d1c967 GD |
19053 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
19054 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
19055 | fi | |
19056 | fi | |
90dd450c | 19057 | |
8284b0c5 | 19058 | |
21d1c967 GD |
19059 | TIFF_INCLUDE= |
19060 | TIFF_LINK= | |
2b5f62a0 | 19061 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 19062 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 19063 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19064 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 19065 | _ACEOF |
21d1c967 | 19066 | |
8284b0c5 | 19067 | |
21d1c967 | 19068 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
19069 | if test "$wxUSE_LIBJPEG" = "sys"; then |
19070 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
19071 | fi | |
19072 | if test "$wxUSE_ZLIB" = "sys"; then | |
19073 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
19074 | fi | |
e6cc62c6 VS |
19075 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
19076 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19077 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19078 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19080 | fi | |
19081 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
19082 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19083 | else | |
19084 | # Is the header compilable? | |
19085 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
19086 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
19087 | cat >conftest.$ac_ext <<_ACEOF | |
19088 | #line $LINENO "configure" | |
19089 | /* confdefs.h. */ | |
19090 | _ACEOF | |
19091 | cat confdefs.h >>conftest.$ac_ext | |
19092 | cat >>conftest.$ac_ext <<_ACEOF | |
19093 | /* end confdefs.h. */ | |
19094 | $ac_includes_default | |
247f5006 | 19095 | #include <tiffio.h> |
e6cc62c6 VS |
19096 | _ACEOF |
19097 | rm -f conftest.$ac_objext | |
19098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19099 | (eval $ac_compile) 2>&5 | |
19100 | ac_status=$? | |
19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19102 | (exit $ac_status); } && | |
19103 | { ac_try='test -s conftest.$ac_objext' | |
19104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19105 | (eval $ac_try) 2>&5 | |
19106 | ac_status=$? | |
19107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19108 | (exit $ac_status); }; }; then | |
19109 | ac_header_compiler=yes | |
19110 | else | |
19111 | echo "$as_me: failed program was:" >&5 | |
19112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19113 | ||
19114 | ac_header_compiler=no | |
19115 | fi | |
19116 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19117 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19118 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19119 | ||
19120 | # Is the header present? | |
19121 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
19122 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
19123 | cat >conftest.$ac_ext <<_ACEOF | |
19124 | #line $LINENO "configure" | |
19125 | /* confdefs.h. */ | |
19126 | _ACEOF | |
19127 | cat confdefs.h >>conftest.$ac_ext | |
19128 | cat >>conftest.$ac_ext <<_ACEOF | |
19129 | /* end confdefs.h. */ | |
19130 | #include <tiffio.h> | |
19131 | _ACEOF | |
19132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19134 | ac_status=$? | |
19135 | grep -v '^ *+' conftest.er1 >conftest.err | |
19136 | rm -f conftest.er1 | |
19137 | cat conftest.err >&5 | |
19138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19139 | (exit $ac_status); } >/dev/null; then | |
19140 | if test -s conftest.err; then | |
19141 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19142 | else | |
19143 | ac_cpp_err= | |
19144 | fi | |
19145 | else | |
19146 | ac_cpp_err=yes | |
19147 | fi | |
19148 | if test -z "$ac_cpp_err"; then | |
19149 | ac_header_preproc=yes | |
19150 | else | |
19151 | echo "$as_me: failed program was:" >&5 | |
19152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19153 | ||
19154 | ac_header_preproc=no | |
19155 | fi | |
19156 | rm -f conftest.err conftest.$ac_ext | |
19157 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19158 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19159 | ||
19160 | # So? What about this header? | |
19161 | case $ac_header_compiler:$ac_header_preproc in | |
19162 | yes:no ) | |
19163 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19164 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19165 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
19166 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19167 | ( | |
19168 | cat <<\_ASBOX | |
19169 | ## ------------------------------------ ## | |
19170 | ## Report this to bug-autoconf@gnu.org. ## | |
19171 | ## ------------------------------------ ## | |
19172 | _ASBOX | |
19173 | ) | | |
19174 | sed "s/^/$as_me: WARNING: /" >&2 | |
19175 | ;; | |
19176 | no:yes ) | |
19177 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
19178 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
19179 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
19180 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
19181 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
19182 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19183 | ( | |
19184 | cat <<\_ASBOX | |
19185 | ## ------------------------------------ ## | |
19186 | ## Report this to bug-autoconf@gnu.org. ## | |
19187 | ## ------------------------------------ ## | |
19188 | _ASBOX | |
19189 | ) | | |
19190 | sed "s/^/$as_me: WARNING: /" >&2 | |
19191 | ;; | |
19192 | esac | |
19193 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19194 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19195 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19197 | else | |
19198 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 19199 | fi |
e6cc62c6 VS |
19200 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
19201 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19202 | ||
21d1c967 | 19203 | fi |
e6cc62c6 VS |
19204 | if test $ac_cv_header_tiffio_h = yes; then |
19205 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
19206 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
19207 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
19208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 19209 | else |
e6cc62c6 | 19210 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 19211 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 VS |
19212 | cat >conftest.$ac_ext <<_ACEOF |
19213 | #line $LINENO "configure" | |
19214 | /* confdefs.h. */ | |
19215 | _ACEOF | |
19216 | cat confdefs.h >>conftest.$ac_ext | |
19217 | cat >>conftest.$ac_ext <<_ACEOF | |
19218 | /* end confdefs.h. */ | |
19219 | ||
ab9b9eab | 19220 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19221 | #ifdef __cplusplus |
19222 | extern "C" | |
19223 | #endif | |
ab9b9eab | 19224 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19225 | builtin and then its argument prototype would still apply. */ |
19226 | char TIFFError (); | |
19227 | int | |
19228 | main () | |
19229 | { | |
19230 | TIFFError (); | |
19231 | ; | |
19232 | return 0; | |
19233 | } | |
19234 | _ACEOF | |
19235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19237 | (eval $ac_link) 2>&5 | |
19238 | ac_status=$? | |
19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19240 | (exit $ac_status); } && | |
19241 | { ac_try='test -s conftest$ac_exeext' | |
19242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19243 | (eval $ac_try) 2>&5 | |
19244 | ac_status=$? | |
19245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19246 | (exit $ac_status); }; }; then | |
19247 | ac_cv_lib_tiff_TIFFError=yes | |
19248 | else | |
19249 | echo "$as_me: failed program was:" >&5 | |
19250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19251 | ||
19252 | ac_cv_lib_tiff_TIFFError=no | |
19253 | fi | |
19254 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19255 | LIBS=$ac_check_lib_save_LIBS | |
19256 | fi | |
19257 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
19258 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
19259 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 19260 | TIFF_LINK=" -ltiff" |
a0b9e27f | 19261 | fi |
cd6d6d5b | 19262 | |
e6cc62c6 | 19263 | |
a0b9e27f | 19264 | fi |
8284b0c5 | 19265 | |
247f5006 | 19266 | |
e6cc62c6 | 19267 | |
21d1c967 GD |
19268 | if test "x$TIFF_LINK" = "x" ; then |
19269 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
19270 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
19271 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19272 | { (exit 1); exit 1; }; } | |
90dd450c | 19273 | else |
e6cc62c6 VS |
19274 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
19275 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 19276 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 19277 | fi |
d8356fa3 | 19278 | else |
21d1c967 | 19279 | wxUSE_LIBTIFF=sys |
d8356fa3 | 19280 | fi |
21d1c967 | 19281 | fi |
d8356fa3 | 19282 | |
21d1c967 GD |
19283 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
19284 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 19285 | fi |
21d1c967 | 19286 | fi |
10f2d63a | 19287 | |
8284b0c5 | 19288 | |
672abd7a VS |
19289 | if test "$wxUSE_EXPAT" != "no"; then |
19290 | wxUSE_XML=1 | |
19291 | cat >>confdefs.h <<\_ACEOF | |
19292 | #define wxUSE_EXPAT 1 | |
19293 | _ACEOF | |
19294 | ||
19295 | cat >>confdefs.h <<\_ACEOF | |
19296 | #define wxUSE_XML 1 | |
19297 | _ACEOF | |
19298 | ||
19299 | ||
19300 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
19301 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19302 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19303 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19304 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19306 | fi | |
19307 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19308 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19309 | else | |
19310 | # Is the header compilable? | |
19311 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
19312 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
19313 | cat >conftest.$ac_ext <<_ACEOF | |
19314 | #line $LINENO "configure" | |
19315 | /* confdefs.h. */ | |
19316 | _ACEOF | |
19317 | cat confdefs.h >>conftest.$ac_ext | |
19318 | cat >>conftest.$ac_ext <<_ACEOF | |
19319 | /* end confdefs.h. */ | |
19320 | $ac_includes_default | |
19321 | #include <expat.h> | |
19322 | _ACEOF | |
19323 | rm -f conftest.$ac_objext | |
19324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19325 | (eval $ac_compile) 2>&5 | |
19326 | ac_status=$? | |
19327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19328 | (exit $ac_status); } && | |
19329 | { ac_try='test -s conftest.$ac_objext' | |
19330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19331 | (eval $ac_try) 2>&5 | |
19332 | ac_status=$? | |
19333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19334 | (exit $ac_status); }; }; then | |
19335 | ac_header_compiler=yes | |
19336 | else | |
19337 | echo "$as_me: failed program was:" >&5 | |
19338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19339 | ||
19340 | ac_header_compiler=no | |
19341 | fi | |
19342 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19343 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19344 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19345 | ||
19346 | # Is the header present? | |
19347 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
19348 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
19349 | cat >conftest.$ac_ext <<_ACEOF | |
19350 | #line $LINENO "configure" | |
19351 | /* confdefs.h. */ | |
19352 | _ACEOF | |
19353 | cat confdefs.h >>conftest.$ac_ext | |
19354 | cat >>conftest.$ac_ext <<_ACEOF | |
19355 | /* end confdefs.h. */ | |
19356 | #include <expat.h> | |
19357 | _ACEOF | |
19358 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19359 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19360 | ac_status=$? | |
19361 | grep -v '^ *+' conftest.er1 >conftest.err | |
19362 | rm -f conftest.er1 | |
19363 | cat conftest.err >&5 | |
19364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19365 | (exit $ac_status); } >/dev/null; then | |
19366 | if test -s conftest.err; then | |
19367 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19368 | else | |
19369 | ac_cpp_err= | |
19370 | fi | |
19371 | else | |
19372 | ac_cpp_err=yes | |
19373 | fi | |
19374 | if test -z "$ac_cpp_err"; then | |
19375 | ac_header_preproc=yes | |
19376 | else | |
19377 | echo "$as_me: failed program was:" >&5 | |
19378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19379 | ||
19380 | ac_header_preproc=no | |
19381 | fi | |
19382 | rm -f conftest.err conftest.$ac_ext | |
19383 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19384 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19385 | ||
19386 | # So? What about this header? | |
19387 | case $ac_header_compiler:$ac_header_preproc in | |
19388 | yes:no ) | |
19389 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19390 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19391 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 | |
19392 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19393 | ( | |
19394 | cat <<\_ASBOX | |
19395 | ## ------------------------------------ ## | |
19396 | ## Report this to bug-autoconf@gnu.org. ## | |
19397 | ## ------------------------------------ ## | |
19398 | _ASBOX | |
19399 | ) | | |
19400 | sed "s/^/$as_me: WARNING: /" >&2 | |
19401 | ;; | |
19402 | no:yes ) | |
19403 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 | |
19404 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
19405 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 | |
19406 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
19407 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 | |
19408 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19409 | ( | |
19410 | cat <<\_ASBOX | |
19411 | ## ------------------------------------ ## | |
19412 | ## Report this to bug-autoconf@gnu.org. ## | |
19413 | ## ------------------------------------ ## | |
19414 | _ASBOX | |
19415 | ) | | |
19416 | sed "s/^/$as_me: WARNING: /" >&2 | |
19417 | ;; | |
19418 | esac | |
19419 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19420 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19421 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19423 | else | |
19424 | ac_cv_header_expat_h=$ac_header_preproc | |
19425 | fi | |
19426 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19427 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19428 | ||
19429 | fi | |
5f0b6dff VS |
19430 | if test $ac_cv_header_expat_h = yes; then |
19431 | found_expat_h=1 | |
19432 | fi | |
19433 | ||
19434 | ||
19435 | if test "x$found_expat_h" = "x1"; then | |
19436 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
19437 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
19438 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
19439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19440 | else | |
19441 | ||
19442 | ||
672abd7a | 19443 | |
5f0b6dff VS |
19444 | ac_ext=cc |
19445 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19446 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19447 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19448 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19449 | ||
19450 | cat >conftest.$ac_ext <<_ACEOF | |
19451 | #line $LINENO "configure" | |
19452 | /* confdefs.h. */ | |
19453 | _ACEOF | |
19454 | cat confdefs.h >>conftest.$ac_ext | |
19455 | cat >>conftest.$ac_ext <<_ACEOF | |
19456 | /* end confdefs.h. */ | |
19457 | #include <expat.h> | |
19458 | int | |
19459 | main () | |
19460 | { | |
672abd7a | 19461 | |
5f0b6dff VS |
19462 | ; |
19463 | return 0; | |
19464 | } | |
19465 | _ACEOF | |
19466 | rm -f conftest.$ac_objext | |
19467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19468 | (eval $ac_compile) 2>&5 | |
19469 | ac_status=$? | |
19470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19471 | (exit $ac_status); } && | |
19472 | { ac_try='test -s conftest.$ac_objext' | |
19473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19474 | (eval $ac_try) 2>&5 | |
19475 | ac_status=$? | |
19476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19477 | (exit $ac_status); }; }; then | |
19478 | wx_cv_expat_is_not_broken=yes | |
19479 | else | |
19480 | echo "$as_me: failed program was:" >&5 | |
19481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19482 | ||
19483 | wx_cv_expat_is_not_broken=no | |
19484 | ||
19485 | fi | |
19486 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19487 | ac_ext=c | |
19488 | ac_cpp='$CPP $CPPFLAGS' | |
19489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19492 | ||
19493 | ||
19494 | ||
19495 | fi | |
19496 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
19497 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
19498 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
19499 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
19500 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
19501 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
19502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19503 | else | |
19504 | ac_check_lib_save_LIBS=$LIBS | |
19505 | LIBS="-lexpat $LIBS" | |
19506 | cat >conftest.$ac_ext <<_ACEOF | |
19507 | #line $LINENO "configure" | |
19508 | /* confdefs.h. */ | |
19509 | _ACEOF | |
19510 | cat confdefs.h >>conftest.$ac_ext | |
19511 | cat >>conftest.$ac_ext <<_ACEOF | |
19512 | /* end confdefs.h. */ | |
19513 | ||
19514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19515 | #ifdef __cplusplus | |
19516 | extern "C" | |
19517 | #endif | |
19518 | /* We use char because int might match the return type of a gcc2 | |
19519 | builtin and then its argument prototype would still apply. */ | |
19520 | char XML_ParserCreate (); | |
19521 | int | |
19522 | main () | |
19523 | { | |
19524 | XML_ParserCreate (); | |
19525 | ; | |
19526 | return 0; | |
19527 | } | |
19528 | _ACEOF | |
19529 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19531 | (eval $ac_link) 2>&5 | |
19532 | ac_status=$? | |
19533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19534 | (exit $ac_status); } && | |
19535 | { ac_try='test -s conftest$ac_exeext' | |
19536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19537 | (eval $ac_try) 2>&5 | |
19538 | ac_status=$? | |
19539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19540 | (exit $ac_status); }; }; then | |
19541 | ac_cv_lib_expat_XML_ParserCreate=yes | |
19542 | else | |
19543 | echo "$as_me: failed program was:" >&5 | |
19544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19545 | ||
19546 | ac_cv_lib_expat_XML_ParserCreate=no | |
19547 | fi | |
19548 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19549 | LIBS=$ac_check_lib_save_LIBS | |
19550 | fi | |
19551 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
19552 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
19553 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
19554 | EXPAT_LINK=" -lexpat" | |
19555 | fi | |
19556 | ||
5f0b6dff | 19557 | fi |
672abd7a VS |
19558 | fi |
19559 | if test "x$EXPAT_LINK" = "x" ; then | |
19560 | if test "$wxUSE_EXPAT" = "sys" ; then | |
19561 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
19562 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
19563 | { (exit 1); exit 1; }; } | |
19564 | else | |
19565 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
19566 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
19567 | wxUSE_EXPAT=builtin | |
19568 | fi | |
19569 | else | |
19570 | wxUSE_EXPAT=sys | |
19571 | fi | |
19572 | fi | |
19573 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
19574 | ||
19575 | ||
19576 | subdirs="$subdirs src/expat" | |
19577 | ||
19578 | fi | |
19579 | fi | |
19580 | ||
19581 | ||
19582 | ||
21d1c967 | 19583 | AFMINSTALL= |
2b5f62a0 | 19584 | WIN32INSTALL= |
90dd450c | 19585 | |
21d1c967 GD |
19586 | TOOLKIT= |
19587 | TOOLKIT_INCLUDE= | |
19588 | WIDGET_SET= | |
19589 | ||
19590 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
19591 | |
19592 | for ac_header in w32api.h | |
21d1c967 | 19593 | do |
e6cc62c6 VS |
19594 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19595 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19596 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19597 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19598 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19600 | fi | |
19601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19602 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19603 | else | |
19604 | # Is the header compilable? | |
19605 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19606 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19607 | cat >conftest.$ac_ext <<_ACEOF | |
19608 | #line $LINENO "configure" | |
19609 | /* confdefs.h. */ | |
19610 | _ACEOF | |
19611 | cat confdefs.h >>conftest.$ac_ext | |
19612 | cat >>conftest.$ac_ext <<_ACEOF | |
19613 | /* end confdefs.h. */ | |
19614 | $ac_includes_default | |
19615 | #include <$ac_header> | |
19616 | _ACEOF | |
19617 | rm -f conftest.$ac_objext | |
19618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19619 | (eval $ac_compile) 2>&5 | |
19620 | ac_status=$? | |
19621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19622 | (exit $ac_status); } && | |
19623 | { ac_try='test -s conftest.$ac_objext' | |
19624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19625 | (eval $ac_try) 2>&5 | |
19626 | ac_status=$? | |
19627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19628 | (exit $ac_status); }; }; then | |
19629 | ac_header_compiler=yes | |
19630 | else | |
19631 | echo "$as_me: failed program was:" >&5 | |
19632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19633 | ||
19634 | ac_header_compiler=no | |
19635 | fi | |
19636 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19637 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19638 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19639 | ||
19640 | # Is the header present? | |
19641 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19642 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19643 | cat >conftest.$ac_ext <<_ACEOF | |
19644 | #line $LINENO "configure" | |
19645 | /* confdefs.h. */ | |
19646 | _ACEOF | |
19647 | cat confdefs.h >>conftest.$ac_ext | |
19648 | cat >>conftest.$ac_ext <<_ACEOF | |
19649 | /* end confdefs.h. */ | |
19650 | #include <$ac_header> | |
19651 | _ACEOF | |
19652 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19653 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19654 | ac_status=$? | |
19655 | grep -v '^ *+' conftest.er1 >conftest.err | |
19656 | rm -f conftest.er1 | |
19657 | cat conftest.err >&5 | |
19658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19659 | (exit $ac_status); } >/dev/null; then | |
19660 | if test -s conftest.err; then | |
19661 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19662 | else | |
19663 | ac_cpp_err= | |
19664 | fi | |
19665 | else | |
19666 | ac_cpp_err=yes | |
19667 | fi | |
19668 | if test -z "$ac_cpp_err"; then | |
19669 | ac_header_preproc=yes | |
19670 | else | |
19671 | echo "$as_me: failed program was:" >&5 | |
19672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19673 | ||
19674 | ac_header_preproc=no | |
19675 | fi | |
19676 | rm -f conftest.err conftest.$ac_ext | |
19677 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19678 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19679 | ||
19680 | # So? What about this header? | |
19681 | case $ac_header_compiler:$ac_header_preproc in | |
19682 | yes:no ) | |
19683 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19684 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19686 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19687 | ( | |
19688 | cat <<\_ASBOX | |
19689 | ## ------------------------------------ ## | |
19690 | ## Report this to bug-autoconf@gnu.org. ## | |
19691 | ## ------------------------------------ ## | |
19692 | _ASBOX | |
19693 | ) | | |
19694 | sed "s/^/$as_me: WARNING: /" >&2 | |
19695 | ;; | |
19696 | no:yes ) | |
19697 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19698 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19699 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19700 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19701 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19702 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19703 | ( | |
19704 | cat <<\_ASBOX | |
19705 | ## ------------------------------------ ## | |
19706 | ## Report this to bug-autoconf@gnu.org. ## | |
19707 | ## ------------------------------------ ## | |
19708 | _ASBOX | |
19709 | ) | | |
19710 | sed "s/^/$as_me: WARNING: /" >&2 | |
19711 | ;; | |
19712 | esac | |
19713 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19714 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19717 | else | |
19718 | eval "$as_ac_Header=$ac_header_preproc" | |
f79bd02d | 19719 | fi |
e6cc62c6 VS |
19720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19721 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19722 | ||
21d1c967 | 19723 | fi |
e6cc62c6 VS |
19724 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19725 | cat >>confdefs.h <<_ACEOF | |
19726 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19727 | _ACEOF | |
19728 | ||
21d1c967 | 19729 | fi |
e6cc62c6 | 19730 | |
21d1c967 | 19731 | done |
f79bd02d | 19732 | |
e6cc62c6 VS |
19733 | if test "${ac_cv_header_windows_h+set}" = set; then |
19734 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19735 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19736 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19738 | fi | |
19739 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19740 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19741 | else | |
19742 | # Is the header compilable? | |
19743 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
19744 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
19745 | cat >conftest.$ac_ext <<_ACEOF | |
19746 | #line $LINENO "configure" | |
19747 | /* confdefs.h. */ | |
19748 | _ACEOF | |
19749 | cat confdefs.h >>conftest.$ac_ext | |
19750 | cat >>conftest.$ac_ext <<_ACEOF | |
19751 | /* end confdefs.h. */ | |
19752 | $ac_includes_default | |
247f5006 | 19753 | #include <windows.h> |
e6cc62c6 VS |
19754 | _ACEOF |
19755 | rm -f conftest.$ac_objext | |
19756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19757 | (eval $ac_compile) 2>&5 | |
19758 | ac_status=$? | |
19759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19760 | (exit $ac_status); } && | |
19761 | { ac_try='test -s conftest.$ac_objext' | |
19762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19763 | (eval $ac_try) 2>&5 | |
19764 | ac_status=$? | |
19765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19766 | (exit $ac_status); }; }; then | |
19767 | ac_header_compiler=yes | |
19768 | else | |
19769 | echo "$as_me: failed program was:" >&5 | |
19770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19771 | ||
19772 | ac_header_compiler=no | |
19773 | fi | |
19774 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19775 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19776 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19777 | ||
19778 | # Is the header present? | |
19779 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
19780 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
19781 | cat >conftest.$ac_ext <<_ACEOF | |
19782 | #line $LINENO "configure" | |
19783 | /* confdefs.h. */ | |
19784 | _ACEOF | |
19785 | cat confdefs.h >>conftest.$ac_ext | |
19786 | cat >>conftest.$ac_ext <<_ACEOF | |
19787 | /* end confdefs.h. */ | |
19788 | #include <windows.h> | |
19789 | _ACEOF | |
19790 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19791 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19792 | ac_status=$? | |
19793 | grep -v '^ *+' conftest.er1 >conftest.err | |
19794 | rm -f conftest.er1 | |
19795 | cat conftest.err >&5 | |
19796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19797 | (exit $ac_status); } >/dev/null; then | |
19798 | if test -s conftest.err; then | |
19799 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19800 | else | |
19801 | ac_cpp_err= | |
19802 | fi | |
19803 | else | |
19804 | ac_cpp_err=yes | |
19805 | fi | |
19806 | if test -z "$ac_cpp_err"; then | |
19807 | ac_header_preproc=yes | |
19808 | else | |
19809 | echo "$as_me: failed program was:" >&5 | |
19810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19811 | ||
19812 | ac_header_preproc=no | |
19813 | fi | |
19814 | rm -f conftest.err conftest.$ac_ext | |
19815 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19816 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19817 | ||
19818 | # So? What about this header? | |
19819 | case $ac_header_compiler:$ac_header_preproc in | |
19820 | yes:no ) | |
19821 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19822 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19823 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19824 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19825 | ( | |
19826 | cat <<\_ASBOX | |
19827 | ## ------------------------------------ ## | |
19828 | ## Report this to bug-autoconf@gnu.org. ## | |
19829 | ## ------------------------------------ ## | |
19830 | _ASBOX | |
19831 | ) | | |
19832 | sed "s/^/$as_me: WARNING: /" >&2 | |
19833 | ;; | |
19834 | no:yes ) | |
19835 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
19836 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
19837 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
19838 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
19839 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19840 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19841 | ( | |
19842 | cat <<\_ASBOX | |
19843 | ## ------------------------------------ ## | |
19844 | ## Report this to bug-autoconf@gnu.org. ## | |
19845 | ## ------------------------------------ ## | |
19846 | _ASBOX | |
19847 | ) | | |
19848 | sed "s/^/$as_me: WARNING: /" >&2 | |
19849 | ;; | |
19850 | esac | |
19851 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19852 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19853 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19855 | else | |
19856 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 19857 | fi |
e6cc62c6 VS |
19858 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
19859 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19860 | ||
90dd450c | 19861 | fi |
e6cc62c6 | 19862 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 19863 | : |
90dd450c | 19864 | else |
21d1c967 | 19865 | |
e6cc62c6 VS |
19866 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
19867 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
19868 | { (exit 1); exit 1; }; } | |
19869 | ||
5c6fa7d2 | 19870 | fi |
7b4a847f | 19871 | |
5c6fa7d2 | 19872 | |
e6cc62c6 | 19873 | |
b3dfbbc9 | 19874 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 19875 | |
7bb2947d MB |
19876 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
19877 | LIBS="$LIBS -loleacc" | |
19878 | fi | |
19879 | ||
21d1c967 GD |
19880 | case "${host}" in |
19881 | *-*-cygwin* ) | |
b3dfbbc9 | 19882 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 19883 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 19884 | esac |
f79bd02d | 19885 | |
8647bec6 RG |
19886 | if test "$wxUSE_ODBC" = "sys" ; then |
19887 | wxUSE_ODBC = "yes" | |
21d1c967 | 19888 | fi |
8647bec6 RG |
19889 | if test "$wxUSE_ODBC" = "yes" ; then |
19890 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 19891 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 19892 | #define wxUSE_ODBC 1 |
e6cc62c6 | 19893 | _ACEOF |
f79bd02d | 19894 | |
8647bec6 | 19895 | fi |
e6cc62c6 | 19896 | |
21d1c967 GD |
19897 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
19898 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
19899 | |
19900 | WIN32INSTALL=win32install | |
f79bd02d | 19901 | fi |
f79bd02d | 19902 | |
21d1c967 GD |
19903 | if test "$wxUSE_GUI" = "yes"; then |
19904 | USE_GUI=1 | |
f79bd02d | 19905 | |
21d1c967 | 19906 | GUI_TK_LIBRARY= |
f79bd02d | 19907 | |
21d1c967 GD |
19908 | WXGTK12= |
19909 | WXGTK127= | |
19910 | WXGTK20= | |
f79bd02d | 19911 | |
21d1c967 GD |
19912 | if test "$wxUSE_MSW" = 1 ; then |
19913 | TOOLKIT=MSW | |
19914 | GUIDIST=MSW_DIST | |
f79bd02d JS |
19915 | fi |
19916 | ||
21d1c967 | 19917 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
19918 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
19919 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
19920 | |
19921 | gtk_version_cached=1 | |
e6cc62c6 VS |
19922 | if test "${wx_cv_lib_gtk+set}" = set; then |
19923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 19924 | else |
e6cc62c6 | 19925 | |
21d1c967 | 19926 | gtk_version_cached=0 |
e6cc62c6 VS |
19927 | echo "$as_me:$LINENO: result: " >&5 |
19928 | echo "${ECHO_T}" >&6 | |
f79bd02d | 19929 | |
21d1c967 GD |
19930 | GTK_MODULES= |
19931 | if test "$wxUSE_THREADS" = "yes"; then | |
19932 | GTK_MODULES=gthread | |
19933 | fi | |
f79bd02d | 19934 | |
2b5f62a0 | 19935 | wx_cv_lib_gtk= |
21d1c967 GD |
19936 | if test "x$wxUSE_GTK2" = "xyes"; then |
19937 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
19938 | if test "${enable_gtktest+set}" = set; then | |
19939 | enableval="$enable_gtktest" | |
e6cc62c6 | 19940 | |
f79bd02d | 19941 | else |
21d1c967 | 19942 | enable_gtktest=yes |
e6cc62c6 | 19943 | fi; |
f79bd02d | 19944 | |
21d1c967 GD |
19945 | pkg_config_args=gtk+-2.0 |
19946 | for module in . $GTK_MODULES | |
19947 | do | |
19948 | case "$module" in | |
e6cc62c6 | 19949 | gthread) |
21d1c967 GD |
19950 | pkg_config_args="$pkg_config_args gthread-2.0" |
19951 | ;; | |
19952 | esac | |
19953 | done | |
19954 | ||
19955 | no_gtk="" | |
f79bd02d | 19956 | |
21d1c967 GD |
19957 | # Extract the first word of "pkg-config", so it can be a program name with args. |
19958 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
19959 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19961 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
19962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19963 | else |
e6cc62c6 VS |
19964 | case $PKG_CONFIG in |
19965 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19966 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
19967 | ;; | |
21d1c967 | 19968 | *) |
e6cc62c6 VS |
19969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19970 | for as_dir in $PATH | |
19971 | do | |
19972 | IFS=$as_save_IFS | |
19973 | test -z "$as_dir" && as_dir=. | |
19974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19976 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19978 | break 2 | |
19979 | fi | |
19980 | done | |
19981 | done | |
19982 | ||
21d1c967 GD |
19983 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
19984 | ;; | |
19985 | esac | |
f79bd02d | 19986 | fi |
e6cc62c6 VS |
19987 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
19988 | ||
21d1c967 | 19989 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
19990 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
19991 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 19992 | else |
e6cc62c6 VS |
19993 | echo "$as_me:$LINENO: result: no" >&5 |
19994 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
19995 | fi |
19996 | ||
8284b0c5 | 19997 | |
21d1c967 GD |
19998 | if test x$PKG_CONFIG != xno ; then |
19999 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
20000 | : | |
20001 | else | |
20002 | echo *** pkg-config too old; version 0.7 or better required. | |
20003 | no_gtk=yes | |
20004 | PKG_CONFIG=no | |
20005 | fi | |
20006 | else | |
20007 | no_gtk=yes | |
20008 | fi | |
f79bd02d | 20009 | |
21d1c967 | 20010 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
20011 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
20012 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 20013 | |
21d1c967 GD |
20014 | if test x$PKG_CONFIG != xno ; then |
20015 | ## don't try to run the test against uninstalled libtool libs | |
20016 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
20017 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
20018 | enable_gtktest=no | |
20019 | fi | |
f79bd02d | 20020 | |
21d1c967 GD |
20021 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
20022 | : | |
20023 | else | |
20024 | no_gtk=yes | |
20025 | fi | |
20026 | fi | |
f79bd02d | 20027 | |
21d1c967 GD |
20028 | if test x"$no_gtk" = x ; then |
20029 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
20030 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
20031 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20032 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20033 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20034 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20035 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20036 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20037 | if test "x$enable_gtktest" = "xyes" ; then | |
20038 | ac_save_CFLAGS="$CFLAGS" | |
20039 | ac_save_LIBS="$LIBS" | |
20040 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20041 | LIBS="$GTK_LIBS $LIBS" | |
20042 | rm -f conf.gtktest | |
20043 | if test "$cross_compiling" = yes; then | |
20044 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 20045 | else |
e6cc62c6 VS |
20046 | cat >conftest.$ac_ext <<_ACEOF |
20047 | #line $LINENO "configure" | |
20048 | /* confdefs.h. */ | |
20049 | _ACEOF | |
20050 | cat confdefs.h >>conftest.$ac_ext | |
20051 | cat >>conftest.$ac_ext <<_ACEOF | |
20052 | /* end confdefs.h. */ | |
f79bd02d | 20053 | |
21d1c967 GD |
20054 | #include <gtk/gtk.h> |
20055 | #include <stdio.h> | |
20056 | #include <stdlib.h> | |
f79bd02d | 20057 | |
e6cc62c6 | 20058 | int |
21d1c967 GD |
20059 | main () |
20060 | { | |
20061 | int major, minor, micro; | |
20062 | char *tmp_version; | |
f79bd02d | 20063 | |
21d1c967 | 20064 | system ("touch conf.gtktest"); |
f79bd02d | 20065 | |
21d1c967 GD |
20066 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
20067 | tmp_version = g_strdup("$min_gtk_version"); | |
20068 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20069 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20070 | exit(1); | |
20071 | } | |
f79bd02d | 20072 | |
21d1c967 GD |
20073 | if ((gtk_major_version != $gtk_config_major_version) || |
20074 | (gtk_minor_version != $gtk_config_minor_version) || | |
20075 | (gtk_micro_version != $gtk_config_micro_version)) | |
20076 | { | |
e6cc62c6 | 20077 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20078 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20079 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20080 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
20081 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20082 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20083 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20084 | printf("*** required on your system.\n"); | |
20085 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
20086 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 20087 | } |
21d1c967 GD |
20088 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
20089 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20090 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20091 | { | |
20092 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20093 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20094 | printf("*** library (version %d.%d.%d)\n", | |
20095 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20096 | } | |
20097 | else | |
20098 | { | |
20099 | if ((gtk_major_version > major) || | |
20100 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20101 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20102 | { | |
20103 | return 0; | |
20104 | } | |
20105 | else | |
20106 | { | |
20107 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20108 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20109 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20110 | major, minor, micro); | |
20111 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20112 | printf("***\n"); | |
20113 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20114 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
20115 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20116 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
20117 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
20118 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20119 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20120 | } | |
20121 | } | |
20122 | return 1; | |
20123 | } | |
f79bd02d | 20124 | |
e6cc62c6 VS |
20125 | _ACEOF |
20126 | rm -f conftest$ac_exeext | |
20127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20128 | (eval $ac_link) 2>&5 | |
20129 | ac_status=$? | |
20130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20133 | (eval $ac_try) 2>&5 | |
20134 | ac_status=$? | |
20135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20136 | (exit $ac_status); }; }; then | |
21d1c967 | 20137 | : |
f79bd02d | 20138 | else |
e6cc62c6 VS |
20139 | echo "$as_me: program exited with status $ac_status" >&5 |
20140 | echo "$as_me: failed program was:" >&5 | |
20141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20142 | ||
20143 | ( exit $ac_status ) | |
20144 | no_gtk=yes | |
f79bd02d | 20145 | fi |
e6cc62c6 | 20146 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 20147 | fi |
21d1c967 GD |
20148 | CFLAGS="$ac_save_CFLAGS" |
20149 | LIBS="$ac_save_LIBS" | |
20150 | fi | |
20151 | fi | |
20152 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20153 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
20154 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
20155 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 20156 | else |
e6cc62c6 VS |
20157 | echo "$as_me:$LINENO: result: no" >&5 |
20158 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20159 | if test "$PKG_CONFIG" = "no" ; then |
20160 | echo "*** A new enough version of pkg-config was not found." | |
20161 | echo "*** See http://pkgconfig.sourceforge.net" | |
20162 | else | |
20163 | if test -f conf.gtktest ; then | |
20164 | : | |
20165 | else | |
20166 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
20167 | ac_save_CFLAGS="$CFLAGS" |
20168 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
20169 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
20170 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20171 | cat >conftest.$ac_ext <<_ACEOF |
20172 | #line $LINENO "configure" | |
20173 | /* confdefs.h. */ | |
20174 | _ACEOF | |
20175 | cat confdefs.h >>conftest.$ac_ext | |
20176 | cat >>conftest.$ac_ext <<_ACEOF | |
20177 | /* end confdefs.h. */ | |
21d1c967 GD |
20178 | |
20179 | #include <gtk/gtk.h> | |
20180 | #include <stdio.h> | |
f79bd02d | 20181 | |
e6cc62c6 VS |
20182 | int |
20183 | main () | |
20184 | { | |
20185 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20186 | ; | |
20187 | return 0; | |
20188 | } | |
20189 | _ACEOF | |
20190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20192 | (eval $ac_link) 2>&5 | |
20193 | ac_status=$? | |
20194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20195 | (exit $ac_status); } && | |
20196 | { ac_try='test -s conftest$ac_exeext' | |
20197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20198 | (eval $ac_try) 2>&5 | |
20199 | ac_status=$? | |
20200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20201 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20202 | echo "*** The test program compiled, but did not run. This usually means" |
20203 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
20204 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
20205 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20206 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20207 | echo "*** is required on your system" | |
20208 | echo "***" | |
20209 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 20210 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 20211 | else |
e6cc62c6 VS |
20212 | echo "$as_me: failed program was:" >&5 |
20213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20214 | ||
20215 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 20216 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 20217 | fi |
e6cc62c6 | 20218 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20219 | CFLAGS="$ac_save_CFLAGS" |
20220 | LIBS="$ac_save_LIBS" | |
20221 | fi | |
20222 | fi | |
20223 | GTK_CFLAGS="" | |
20224 | GTK_LIBS="" | |
20225 | : | |
20226 | fi | |
e6cc62c6 VS |
20227 | |
20228 | ||
21d1c967 | 20229 | rm -f conf.gtktest |
f79bd02d | 20230 | |
2b5f62a0 | 20231 | else |
e6cc62c6 VS |
20232 | |
20233 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20234 | if test "${with_gtk_prefix+set}" = set; then |
20235 | withval="$with_gtk_prefix" | |
20236 | gtk_config_prefix="$withval" | |
20237 | else | |
20238 | gtk_config_prefix="" | |
e6cc62c6 | 20239 | fi; |
f79bd02d | 20240 | |
21d1c967 GD |
20241 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20242 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20243 | withval="$with_gtk_exec_prefix" | |
20244 | gtk_config_exec_prefix="$withval" | |
20245 | else | |
20246 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20247 | fi; |
21d1c967 GD |
20248 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20249 | if test "${enable_gtktest+set}" = set; then | |
20250 | enableval="$enable_gtktest" | |
e6cc62c6 | 20251 | |
21d1c967 GD |
20252 | else |
20253 | enable_gtktest=yes | |
e6cc62c6 | 20254 | fi; |
21d1c967 GD |
20255 | |
20256 | for module in . $GTK_MODULES | |
20257 | do | |
20258 | case "$module" in | |
e6cc62c6 | 20259 | gthread) |
21d1c967 GD |
20260 | gtk_config_args="$gtk_config_args gthread" |
20261 | ;; | |
20262 | esac | |
20263 | done | |
20264 | ||
20265 | if test x$gtk_config_exec_prefix != x ; then | |
20266 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20267 | if test x${GTK_CONFIG+set} != xset ; then | |
20268 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20269 | fi | |
20270 | fi | |
20271 | if test x$gtk_config_prefix != x ; then | |
20272 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20273 | if test x${GTK_CONFIG+set} != xset ; then | |
20274 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20275 | fi | |
20276 | fi | |
20277 | ||
20278 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20279 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20280 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20282 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20284 | else |
e6cc62c6 VS |
20285 | case $GTK_CONFIG in |
20286 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20287 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20288 | ;; | |
21d1c967 | 20289 | *) |
e6cc62c6 VS |
20290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20291 | for as_dir in $PATH | |
20292 | do | |
20293 | IFS=$as_save_IFS | |
20294 | test -z "$as_dir" && as_dir=. | |
20295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20296 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20297 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20299 | break 2 | |
20300 | fi | |
20301 | done | |
20302 | done | |
20303 | ||
21d1c967 GD |
20304 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20305 | ;; | |
20306 | esac | |
20307 | fi | |
e6cc62c6 VS |
20308 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20309 | ||
21d1c967 | 20310 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20311 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20312 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20313 | else |
e6cc62c6 VS |
20314 | echo "$as_me:$LINENO: result: no" >&5 |
20315 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20316 | fi |
20317 | ||
20318 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
20319 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20320 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20321 | no_gtk="" |
20322 | if test "$GTK_CONFIG" = "no" ; then | |
20323 | no_gtk=yes | |
20324 | else | |
20325 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20326 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20327 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20328 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20329 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20330 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20331 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20332 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20333 | if test "x$enable_gtktest" = "xyes" ; then | |
20334 | ac_save_CFLAGS="$CFLAGS" | |
20335 | ac_save_LIBS="$LIBS" | |
20336 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20337 | LIBS="$GTK_LIBS $LIBS" | |
20338 | rm -f conf.gtktest | |
20339 | if test "$cross_compiling" = yes; then | |
20340 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 20341 | else |
e6cc62c6 VS |
20342 | cat >conftest.$ac_ext <<_ACEOF |
20343 | #line $LINENO "configure" | |
20344 | /* confdefs.h. */ | |
20345 | _ACEOF | |
20346 | cat confdefs.h >>conftest.$ac_ext | |
20347 | cat >>conftest.$ac_ext <<_ACEOF | |
20348 | /* end confdefs.h. */ | |
f79bd02d | 20349 | |
21d1c967 GD |
20350 | #include <gtk/gtk.h> |
20351 | #include <stdio.h> | |
20352 | #include <stdlib.h> | |
f79bd02d | 20353 | |
e6cc62c6 | 20354 | int |
21d1c967 GD |
20355 | main () |
20356 | { | |
20357 | int major, minor, micro; | |
20358 | char *tmp_version; | |
20359 | ||
20360 | system ("touch conf.gtktest"); | |
20361 | ||
20362 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20363 | tmp_version = g_strdup("$min_gtk_version"); | |
20364 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20365 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20366 | exit(1); | |
20367 | } | |
90dd450c | 20368 | |
21d1c967 GD |
20369 | if ((gtk_major_version != $gtk_config_major_version) || |
20370 | (gtk_minor_version != $gtk_config_minor_version) || | |
20371 | (gtk_micro_version != $gtk_config_micro_version)) | |
20372 | { | |
e6cc62c6 | 20373 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20374 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20375 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20376 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20377 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20378 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20379 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20380 | printf("*** required on your system.\n"); | |
20381 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20382 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20383 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20384 | } |
21d1c967 GD |
20385 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20386 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20387 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20388 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20389 | { | |
20390 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20391 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20392 | printf("*** library (version %d.%d.%d)\n", | |
20393 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20394 | } | |
20395 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20396 | else | |
20397 | { | |
20398 | if ((gtk_major_version > major) || | |
20399 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20400 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20401 | { | |
20402 | return 0; | |
20403 | } | |
20404 | else | |
20405 | { | |
20406 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20407 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20408 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20409 | major, minor, micro); | |
20410 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20411 | printf("***\n"); | |
20412 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20413 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20414 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20415 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20416 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20417 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20418 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20419 | } | |
20420 | } | |
20421 | return 1; | |
20422 | } | |
20423 | ||
e6cc62c6 VS |
20424 | _ACEOF |
20425 | rm -f conftest$ac_exeext | |
20426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20427 | (eval $ac_link) 2>&5 | |
20428 | ac_status=$? | |
20429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20430 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20432 | (eval $ac_try) 2>&5 | |
20433 | ac_status=$? | |
20434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20435 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20436 | : |
20437 | else | |
e6cc62c6 VS |
20438 | echo "$as_me: program exited with status $ac_status" >&5 |
20439 | echo "$as_me: failed program was:" >&5 | |
20440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20441 | ||
20442 | ( exit $ac_status ) | |
20443 | no_gtk=yes | |
21d1c967 | 20444 | fi |
e6cc62c6 | 20445 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20446 | fi |
21d1c967 GD |
20447 | CFLAGS="$ac_save_CFLAGS" |
20448 | LIBS="$ac_save_LIBS" | |
20449 | fi | |
20450 | fi | |
20451 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20452 | echo "$as_me:$LINENO: result: yes" >&5 |
20453 | echo "${ECHO_T}yes" >&6 | |
20454 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 20455 | else |
e6cc62c6 VS |
20456 | echo "$as_me:$LINENO: result: no" >&5 |
20457 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20458 | if test "$GTK_CONFIG" = "no" ; then |
20459 | echo "*** The gtk-config script installed by GTK could not be found" | |
20460 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20461 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20462 | echo "*** full path to gtk-config." | |
20463 | else | |
20464 | if test -f conf.gtktest ; then | |
20465 | : | |
20466 | else | |
20467 | echo "*** Could not run GTK test program, checking why..." | |
20468 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20469 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20470 | cat >conftest.$ac_ext <<_ACEOF |
20471 | #line $LINENO "configure" | |
20472 | /* confdefs.h. */ | |
20473 | _ACEOF | |
20474 | cat confdefs.h >>conftest.$ac_ext | |
20475 | cat >>conftest.$ac_ext <<_ACEOF | |
20476 | /* end confdefs.h. */ | |
21d1c967 GD |
20477 | |
20478 | #include <gtk/gtk.h> | |
20479 | #include <stdio.h> | |
20480 | ||
e6cc62c6 VS |
20481 | int |
20482 | main () | |
20483 | { | |
20484 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20485 | ; | |
20486 | return 0; | |
20487 | } | |
20488 | _ACEOF | |
20489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20491 | (eval $ac_link) 2>&5 | |
20492 | ac_status=$? | |
20493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20494 | (exit $ac_status); } && | |
20495 | { ac_try='test -s conftest$ac_exeext' | |
20496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20497 | (eval $ac_try) 2>&5 | |
20498 | ac_status=$? | |
20499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20500 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20501 | echo "*** The test program compiled, but did not run. This usually means" |
20502 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20503 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20504 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20505 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20506 | echo "*** is required on your system" | |
20507 | echo "***" | |
20508 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20509 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20510 | echo "***" | |
20511 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20512 | echo "*** came with the system with the command" | |
20513 | echo "***" | |
e6cc62c6 | 20514 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20515 | else |
e6cc62c6 VS |
20516 | echo "$as_me: failed program was:" >&5 |
20517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20518 | ||
20519 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20520 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20521 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20522 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20523 | fi |
e6cc62c6 | 20524 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20525 | CFLAGS="$ac_save_CFLAGS" |
20526 | LIBS="$ac_save_LIBS" | |
20527 | fi | |
20528 | fi | |
20529 | GTK_CFLAGS="" | |
20530 | GTK_LIBS="" | |
20531 | : | |
20532 | fi | |
e6cc62c6 VS |
20533 | |
20534 | ||
21d1c967 GD |
20535 | rm -f conf.gtktest |
20536 | ||
21d1c967 | 20537 | |
2b5f62a0 | 20538 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
20539 | |
20540 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20541 | if test "${with_gtk_prefix+set}" = set; then |
20542 | withval="$with_gtk_prefix" | |
20543 | gtk_config_prefix="$withval" | |
20544 | else | |
20545 | gtk_config_prefix="" | |
e6cc62c6 | 20546 | fi; |
f79bd02d | 20547 | |
21d1c967 GD |
20548 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20549 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20550 | withval="$with_gtk_exec_prefix" | |
20551 | gtk_config_exec_prefix="$withval" | |
20552 | else | |
20553 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20554 | fi; |
21d1c967 GD |
20555 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20556 | if test "${enable_gtktest+set}" = set; then | |
20557 | enableval="$enable_gtktest" | |
e6cc62c6 | 20558 | |
90dd450c | 20559 | else |
21d1c967 | 20560 | enable_gtktest=yes |
e6cc62c6 | 20561 | fi; |
21d1c967 GD |
20562 | |
20563 | for module in . $GTK_MODULES | |
20564 | do | |
20565 | case "$module" in | |
e6cc62c6 | 20566 | gthread) |
21d1c967 GD |
20567 | gtk_config_args="$gtk_config_args gthread" |
20568 | ;; | |
20569 | esac | |
20570 | done | |
20571 | ||
20572 | if test x$gtk_config_exec_prefix != x ; then | |
20573 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20574 | if test x${GTK_CONFIG+set} != xset ; then | |
20575 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20576 | fi | |
20577 | fi | |
20578 | if test x$gtk_config_prefix != x ; then | |
20579 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20580 | if test x${GTK_CONFIG+set} != xset ; then | |
20581 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20582 | fi | |
20583 | fi | |
20584 | ||
20585 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20586 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20587 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20589 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20591 | else |
e6cc62c6 VS |
20592 | case $GTK_CONFIG in |
20593 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20594 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20595 | ;; | |
21d1c967 | 20596 | *) |
e6cc62c6 VS |
20597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20598 | for as_dir in $PATH | |
20599 | do | |
20600 | IFS=$as_save_IFS | |
20601 | test -z "$as_dir" && as_dir=. | |
20602 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20603 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20604 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20606 | break 2 | |
20607 | fi | |
20608 | done | |
20609 | done | |
20610 | ||
21d1c967 GD |
20611 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20612 | ;; | |
20613 | esac | |
20614 | fi | |
e6cc62c6 VS |
20615 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20616 | ||
21d1c967 | 20617 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20618 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20619 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20620 | else |
e6cc62c6 VS |
20621 | echo "$as_me:$LINENO: result: no" >&5 |
20622 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20623 | fi |
20624 | ||
20625 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
20626 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20627 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20628 | no_gtk="" |
20629 | if test "$GTK_CONFIG" = "no" ; then | |
20630 | no_gtk=yes | |
20631 | else | |
20632 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20633 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20634 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20635 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20636 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20637 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20638 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20639 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20640 | if test "x$enable_gtktest" = "xyes" ; then | |
20641 | ac_save_CFLAGS="$CFLAGS" | |
20642 | ac_save_LIBS="$LIBS" | |
20643 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20644 | LIBS="$GTK_LIBS $LIBS" | |
20645 | rm -f conf.gtktest | |
20646 | if test "$cross_compiling" = yes; then | |
20647 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20648 | else | |
e6cc62c6 VS |
20649 | cat >conftest.$ac_ext <<_ACEOF |
20650 | #line $LINENO "configure" | |
20651 | /* confdefs.h. */ | |
20652 | _ACEOF | |
20653 | cat confdefs.h >>conftest.$ac_ext | |
20654 | cat >>conftest.$ac_ext <<_ACEOF | |
20655 | /* end confdefs.h. */ | |
21d1c967 GD |
20656 | |
20657 | #include <gtk/gtk.h> | |
20658 | #include <stdio.h> | |
20659 | #include <stdlib.h> | |
20660 | ||
e6cc62c6 | 20661 | int |
21d1c967 GD |
20662 | main () |
20663 | { | |
20664 | int major, minor, micro; | |
20665 | char *tmp_version; | |
20666 | ||
20667 | system ("touch conf.gtktest"); | |
20668 | ||
20669 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20670 | tmp_version = g_strdup("$min_gtk_version"); | |
20671 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20672 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20673 | exit(1); | |
20674 | } | |
20675 | ||
20676 | if ((gtk_major_version != $gtk_config_major_version) || | |
20677 | (gtk_minor_version != $gtk_config_minor_version) || | |
20678 | (gtk_micro_version != $gtk_config_micro_version)) | |
20679 | { | |
e6cc62c6 | 20680 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20681 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20682 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20683 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20684 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20685 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20686 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20687 | printf("*** required on your system.\n"); | |
20688 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20689 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20690 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20691 | } |
21d1c967 GD |
20692 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20693 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20694 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20695 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20696 | { | |
20697 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20698 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20699 | printf("*** library (version %d.%d.%d)\n", | |
20700 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20701 | } | |
20702 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20703 | else | |
20704 | { | |
20705 | if ((gtk_major_version > major) || | |
20706 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20707 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20708 | { | |
20709 | return 0; | |
20710 | } | |
20711 | else | |
20712 | { | |
20713 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20714 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20715 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20716 | major, minor, micro); | |
20717 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20718 | printf("***\n"); | |
20719 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20720 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20721 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20722 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20723 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20724 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20725 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20726 | } | |
20727 | } | |
20728 | return 1; | |
20729 | } | |
20730 | ||
e6cc62c6 VS |
20731 | _ACEOF |
20732 | rm -f conftest$ac_exeext | |
20733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20734 | (eval $ac_link) 2>&5 | |
20735 | ac_status=$? | |
20736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20737 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20739 | (eval $ac_try) 2>&5 | |
20740 | ac_status=$? | |
20741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20742 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20743 | : |
20744 | else | |
e6cc62c6 VS |
20745 | echo "$as_me: program exited with status $ac_status" >&5 |
20746 | echo "$as_me: failed program was:" >&5 | |
20747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20748 | ||
20749 | ( exit $ac_status ) | |
20750 | no_gtk=yes | |
21d1c967 | 20751 | fi |
e6cc62c6 | 20752 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20753 | fi |
21d1c967 GD |
20754 | CFLAGS="$ac_save_CFLAGS" |
20755 | LIBS="$ac_save_LIBS" | |
20756 | fi | |
20757 | fi | |
20758 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20759 | echo "$as_me:$LINENO: result: yes" >&5 |
20760 | echo "${ECHO_T}yes" >&6 | |
20761 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 20762 | else |
e6cc62c6 VS |
20763 | echo "$as_me:$LINENO: result: no" >&5 |
20764 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20765 | if test "$GTK_CONFIG" = "no" ; then |
20766 | echo "*** The gtk-config script installed by GTK could not be found" | |
20767 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20768 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20769 | echo "*** full path to gtk-config." | |
20770 | else | |
20771 | if test -f conf.gtktest ; then | |
20772 | : | |
20773 | else | |
20774 | echo "*** Could not run GTK test program, checking why..." | |
20775 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20776 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20777 | cat >conftest.$ac_ext <<_ACEOF |
20778 | #line $LINENO "configure" | |
20779 | /* confdefs.h. */ | |
20780 | _ACEOF | |
20781 | cat confdefs.h >>conftest.$ac_ext | |
20782 | cat >>conftest.$ac_ext <<_ACEOF | |
20783 | /* end confdefs.h. */ | |
21d1c967 GD |
20784 | |
20785 | #include <gtk/gtk.h> | |
20786 | #include <stdio.h> | |
f79bd02d | 20787 | |
e6cc62c6 VS |
20788 | int |
20789 | main () | |
20790 | { | |
20791 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20792 | ; | |
20793 | return 0; | |
20794 | } | |
20795 | _ACEOF | |
20796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20798 | (eval $ac_link) 2>&5 | |
20799 | ac_status=$? | |
20800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20801 | (exit $ac_status); } && | |
20802 | { ac_try='test -s conftest$ac_exeext' | |
20803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20804 | (eval $ac_try) 2>&5 | |
20805 | ac_status=$? | |
20806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20807 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20808 | echo "*** The test program compiled, but did not run. This usually means" |
20809 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20810 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20811 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20812 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20813 | echo "*** is required on your system" | |
20814 | echo "***" | |
20815 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20816 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20817 | echo "***" | |
20818 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20819 | echo "*** came with the system with the command" | |
20820 | echo "***" | |
e6cc62c6 | 20821 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20822 | else |
e6cc62c6 VS |
20823 | echo "$as_me: failed program was:" >&5 |
20824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20825 | ||
20826 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20827 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20828 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20829 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20830 | fi |
e6cc62c6 | 20831 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20832 | CFLAGS="$ac_save_CFLAGS" |
20833 | LIBS="$ac_save_LIBS" | |
20834 | fi | |
20835 | fi | |
20836 | GTK_CFLAGS="" | |
20837 | GTK_LIBS="" | |
20838 | : | |
20839 | fi | |
e6cc62c6 VS |
20840 | |
20841 | ||
21d1c967 | 20842 | rm -f conf.gtktest |
f79bd02d | 20843 | |
2b5f62a0 | 20844 | fi |
21d1c967 GD |
20845 | fi |
20846 | ||
20847 | if test -z "$wx_cv_lib_gtk"; then | |
20848 | wx_cv_lib_gtk=none | |
20849 | else | |
20850 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
20851 | wx_cv_libs_gtk=$GTK_LIBS | |
20852 | fi | |
e6cc62c6 VS |
20853 | |
20854 | ||
5c6fa7d2 | 20855 | fi |
52127426 | 20856 | |
8284b0c5 | 20857 | |
21d1c967 | 20858 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
20859 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
20860 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
20861 | fi |
20862 | ||
20863 | case "$wx_cv_lib_gtk" in | |
20864 | 2.0) WXGTK20=1 | |
2b5f62a0 | 20865 | TOOLKIT_VERSION=2 |
21d1c967 GD |
20866 | ;; |
20867 | 1.2.7) WXGTK127=1 | |
20868 | WXGTK12=1 | |
20869 | ;; | |
20870 | 1.2.3) WXGTK12=1 | |
20871 | ;; | |
e6cc62c6 VS |
20872 | *) { { echo "$as_me:$LINENO: error: |
20873 | Please check that gtk-config is in path, the directory | |
20874 | where GTK+ libraries are installed (returned by | |
20875 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20876 | equivalent variable and GTK+ is version 1.2.3 or above. | |
20877 | " >&5 | |
20878 | echo "$as_me: error: | |
247f5006 VZ |
20879 | Please check that gtk-config is in path, the directory |
20880 | where GTK+ libraries are installed (returned by | |
20881 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20882 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
20883 | " >&2;} |
20884 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
20885 | ;; |
20886 | esac | |
20887 | ||
b13cd66e VZ |
20888 | if test "$WXGTK20" = 1; then |
20889 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 20890 | |
f09359cf VS |
20891 | succeeded=no |
20892 | ||
20893 | if test -z "$PKG_CONFIG"; then | |
20894 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20895 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
20896 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20898 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 20900 | else |
e6cc62c6 VS |
20901 | case $PKG_CONFIG in |
20902 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
20903 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20904 | ;; | |
f09359cf | 20905 | *) |
e6cc62c6 VS |
20906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20907 | for as_dir in $PATH | |
20908 | do | |
20909 | IFS=$as_save_IFS | |
20910 | test -z "$as_dir" && as_dir=. | |
20911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20912 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20913 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20915 | break 2 | |
20916 | fi | |
20917 | done | |
20918 | done | |
20919 | ||
f09359cf VS |
20920 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20921 | ;; | |
20922 | esac | |
20923 | fi | |
e6cc62c6 VS |
20924 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20925 | ||
f09359cf | 20926 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
20927 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20928 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 20929 | else |
e6cc62c6 VS |
20930 | echo "$as_me:$LINENO: result: no" >&5 |
20931 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
20932 | fi |
20933 | ||
20934 | fi | |
20935 | ||
20936 | if test "$PKG_CONFIG" = "no" ; then | |
20937 | echo "*** The pkg-config script could not be found. Make sure it is" | |
20938 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
20939 | echo "*** to the full path to pkg-config." | |
20940 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
20941 | else | |
20942 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
20943 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
20944 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
20945 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
20946 | |
20947 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
20948 | echo "$as_me:$LINENO: result: yes" >&5 |
20949 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
20950 | succeeded=yes |
20951 | ||
e6cc62c6 VS |
20952 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
20953 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 20954 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
20955 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
20956 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 20957 | |
e6cc62c6 VS |
20958 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
20959 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 20960 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
20961 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
20962 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
20963 | else |
20964 | PANGOFT2_CFLAGS="" | |
20965 | PANGOFT2_LIBS="" | |
e6cc62c6 | 20966 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
20967 | ## do set a variable so people can do so. |
20968 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 20969 | |
f09359cf VS |
20970 | fi |
20971 | ||
e6cc62c6 VS |
20972 | |
20973 | ||
f09359cf VS |
20974 | else |
20975 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
20976 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
20977 | fi | |
20978 | fi | |
20979 | ||
20980 | if test $succeeded = yes; then | |
e6cc62c6 | 20981 | |
b13cd66e | 20982 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 20983 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 20984 | |
f09359cf | 20985 | else |
e6cc62c6 VS |
20986 | |
20987 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
20988 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 20989 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
20990 | |
20991 | ||
f09359cf VS |
20992 | fi |
20993 | ||
b13cd66e | 20994 | fi |
2b5f62a0 VZ |
20995 | else |
20996 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
20997 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
20998 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
20999 | wxUSE_UNICODE=no |
21000 | fi | |
21001 | fi | |
21002 | ||
21003 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
21004 | |
21005 | for ac_func in poll | |
2b5f62a0 | 21006 | do |
e6cc62c6 VS |
21007 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21008 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21009 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21010 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21012 | else | |
21013 | cat >conftest.$ac_ext <<_ACEOF | |
21014 | #line $LINENO "configure" | |
21015 | /* confdefs.h. */ | |
21016 | _ACEOF | |
21017 | cat confdefs.h >>conftest.$ac_ext | |
21018 | cat >>conftest.$ac_ext <<_ACEOF | |
21019 | /* end confdefs.h. */ | |
2b5f62a0 | 21020 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21021 | which can conflict with char $ac_func (); below. |
21022 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21023 | <limits.h> exists even on freestanding compilers. */ | |
21024 | #ifdef __STDC__ | |
21025 | # include <limits.h> | |
21026 | #else | |
21027 | # include <assert.h> | |
21028 | #endif | |
2b5f62a0 | 21029 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21030 | #ifdef __cplusplus |
21031 | extern "C" | |
21032 | { | |
21033 | #endif | |
2b5f62a0 | 21034 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21035 | builtin and then its argument prototype would still apply. */ |
21036 | char $ac_func (); | |
2b5f62a0 VZ |
21037 | /* The GNU C library defines this for functions which it implements |
21038 | to always fail with ENOSYS. Some functions are actually named | |
21039 | something starting with __ and the normal name is an alias. */ | |
21040 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21041 | choke me | |
21042 | #else | |
e6cc62c6 VS |
21043 | char (*f) () = $ac_func; |
21044 | #endif | |
21045 | #ifdef __cplusplus | |
21046 | } | |
2b5f62a0 VZ |
21047 | #endif |
21048 | ||
e6cc62c6 VS |
21049 | int |
21050 | main () | |
21051 | { | |
21052 | return f != $ac_func; | |
21053 | ; | |
21054 | return 0; | |
21055 | } | |
21056 | _ACEOF | |
21057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21059 | (eval $ac_link) 2>&5 | |
21060 | ac_status=$? | |
21061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21062 | (exit $ac_status); } && | |
21063 | { ac_try='test -s conftest$ac_exeext' | |
21064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21065 | (eval $ac_try) 2>&5 | |
21066 | ac_status=$? | |
21067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21068 | (exit $ac_status); }; }; then | |
21069 | eval "$as_ac_var=yes" | |
21070 | else | |
21071 | echo "$as_me: failed program was:" >&5 | |
21072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21073 | ||
21074 | eval "$as_ac_var=no" | |
21075 | fi | |
21076 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21077 | fi | |
21078 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21079 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21080 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21081 | cat >>confdefs.h <<_ACEOF | |
21082 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21083 | _ACEOF | |
2b5f62a0 | 21084 | |
2b5f62a0 VZ |
21085 | fi |
21086 | done | |
21087 | ||
f09359cf VS |
21088 | fi |
21089 | ||
21d1c967 | 21090 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 21091 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
21092 | |
21093 | AFMINSTALL=afminstall | |
21094 | TOOLKIT=GTK | |
21095 | GUIDIST=GTK_DIST | |
21096 | ||
e6cc62c6 VS |
21097 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
21098 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
21099 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
21100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21101 | else |
e6cc62c6 | 21102 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 21103 | LIBS="-lgdk $LIBS" |
e6cc62c6 VS |
21104 | cat >conftest.$ac_ext <<_ACEOF |
21105 | #line $LINENO "configure" | |
21106 | /* confdefs.h. */ | |
21107 | _ACEOF | |
21108 | cat confdefs.h >>conftest.$ac_ext | |
21109 | cat >>conftest.$ac_ext <<_ACEOF | |
21110 | /* end confdefs.h. */ | |
21111 | ||
5c6fa7d2 | 21112 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21113 | #ifdef __cplusplus |
21114 | extern "C" | |
21115 | #endif | |
5c6fa7d2 | 21116 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21117 | builtin and then its argument prototype would still apply. */ |
21118 | char gdk_im_open (); | |
21119 | int | |
21120 | main () | |
21121 | { | |
21122 | gdk_im_open (); | |
21123 | ; | |
21124 | return 0; | |
21125 | } | |
21126 | _ACEOF | |
21127 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21129 | (eval $ac_link) 2>&5 | |
21130 | ac_status=$? | |
21131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21132 | (exit $ac_status); } && | |
21133 | { ac_try='test -s conftest$ac_exeext' | |
21134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21135 | (eval $ac_try) 2>&5 | |
21136 | ac_status=$? | |
21137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21138 | (exit $ac_status); }; }; then | |
21139 | ac_cv_lib_gdk_gdk_im_open=yes | |
21140 | else | |
21141 | echo "$as_me: failed program was:" >&5 | |
21142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21143 | ||
21144 | ac_cv_lib_gdk_gdk_im_open=no | |
21145 | fi | |
21146 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21147 | LIBS=$ac_check_lib_save_LIBS | |
21148 | fi | |
21149 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
21150 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
21151 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
21152 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 21153 | #define HAVE_XIM 1 |
e6cc62c6 | 21154 | _ACEOF |
21d1c967 | 21155 | |
90dd450c | 21156 | fi |
1e6feb95 | 21157 | |
21d1c967 | 21158 | fi |
1e6feb95 | 21159 | |
21d1c967 | 21160 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
21161 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
21162 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 21163 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
21164 | echo "$as_me:$LINENO: result: not found" >&5 |
21165 | echo "${ECHO_T}not found" >&6 | |
21166 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
21167 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
21168 | { (exit 1); exit 1; }; } | |
21d1c967 | 21169 | else |
e6cc62c6 VS |
21170 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
21171 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
21172 | fi |
21173 | ||
e6cc62c6 VS |
21174 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
21175 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
21d1c967 GD |
21176 | case "${host}" in |
21177 | *-*-linux* ) | |
63a76696 VS |
21178 | if test "x$wxUSE_SHARED" = xyes ; then |
21179 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
21180 | else | |
21181 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
21182 | fi | |
21d1c967 GD |
21183 | ;; |
21184 | *-pc-msdosdjgpp ) | |
63a76696 | 21185 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
21186 | ;; |
21187 | *) | |
e6cc62c6 VS |
21188 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
21189 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
21190 | { (exit 1); exit 1; }; } | |
21d1c967 | 21191 | esac |
1e6feb95 | 21192 | |
21d1c967 | 21193 | mgl_lib_type="" |
63a76696 VS |
21194 | mgl_os="" |
21195 | ||
21196 | for mgl_os_i in $mgl_os_candidates ; do | |
21197 | if test "x$mgl_os" = x ; then | |
21198 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
21199 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
21200 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
21201 | mgl_lib_type=debug | |
21202 | mgl_os=$mgl_os_i | |
21203 | fi | |
21204 | fi | |
21205 | if test "x$mgl_lib_type" = x ; then | |
21206 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
21207 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
21208 | mgl_lib_type=release | |
21209 | mgl_os=$mgl_os_i | |
21210 | fi | |
21211 | fi | |
21d1c967 | 21212 | fi |
63a76696 | 21213 | done |
2224580a | 21214 | |
63a76696 | 21215 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
21216 | echo "$as_me:$LINENO: result: not found" >&5 |
21217 | echo "${ECHO_T}not found" >&6 | |
21218 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
21219 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
21220 | { (exit 1); exit 1; }; } | |
63a76696 | 21221 | fi |
e6cc62c6 VS |
21222 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
21223 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 21224 | |
1d1b75ac VZ |
21225 | wxUSE_UNIVERSAL="yes" |
21226 | ||
21d1c967 GD |
21227 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
21228 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
21229 | ||
90dd450c | 21230 | AFMINSTALL=afminstall |
21d1c967 GD |
21231 | TOOLKIT=MGL |
21232 | GUIDIST=MGL_DIST | |
21233 | fi | |
dad6c0ea | 21234 | |
21d1c967 | 21235 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
21236 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
21237 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 21238 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
21239 | echo "$as_me:$LINENO: result: not found" >&5 |
21240 | echo "${ECHO_T}not found" >&6 | |
21241 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
21242 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
21243 | { (exit 1); exit 1; }; } | |
21d1c967 | 21244 | else |
e6cc62c6 VS |
21245 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
21246 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 21247 | fi |
f6bcfd97 | 21248 | |
21d1c967 | 21249 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
21250 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
21251 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 21252 | else |
e6cc62c6 VS |
21253 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
21254 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
21255 | { (exit 1); exit 1; }; } | |
90dd450c | 21256 | fi |
0b2effe9 | 21257 | |
21d1c967 GD |
21258 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
21259 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
21260 | ||
1d1b75ac VZ |
21261 | wxUSE_UNIVERSAL="yes" |
21262 | ||
21d1c967 GD |
21263 | AFMINSTALL=afminstall |
21264 | TOOLKIT=MICROWIN | |
21265 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
21266 | |
21267 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 21268 | fi |
f6bcfd97 | 21269 | |
21d1c967 | 21270 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
21271 | echo "$as_me:$LINENO: checking for X" >&5 |
21272 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
21273 | ||
d8356fa3 | 21274 | |
21d1c967 GD |
21275 | # Check whether --with-x or --without-x was given. |
21276 | if test "${with_x+set}" = set; then | |
21277 | withval="$with_x" | |
2224580a | 21278 | |
e6cc62c6 | 21279 | fi; |
21d1c967 GD |
21280 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
21281 | if test "x$with_x" = xno; then | |
21282 | # The user explicitly disabled X. | |
21283 | have_x=disabled | |
21284 | else | |
21285 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
21286 | # Both variables are already set. | |
21287 | have_x=yes | |
21288 | else | |
e6cc62c6 VS |
21289 | if test "${ac_cv_have_x+set}" = set; then |
21290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
21291 | else |
21292 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
21293 | ac_x_includes=no ac_x_libraries=no |
21294 | rm -fr conftest.dir | |
21295 | if mkdir conftest.dir; then | |
21296 | cd conftest.dir | |
21d1c967 | 21297 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 21298 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
21299 | acfindx: |
21300 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 21301 | _ACEOF |
21d1c967 GD |
21302 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
21303 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
21304 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
21305 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
21306 | for ac_extension in a so sl; do | |
21307 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
e6cc62c6 | 21308 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
21309 | ac_im_usrlibdir=$ac_im_libdir; break |
21310 | fi | |
21311 | done | |
21312 | # Screen out bogus values from the imake configuration. They are | |
21313 | # bogus both because they are the default anyway, and because | |
21314 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 21315 | case $ac_im_incroot in |
21d1c967 | 21316 | /usr/include) ;; |
e6cc62c6 | 21317 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 21318 | esac |
e6cc62c6 | 21319 | case $ac_im_usrlibdir in |
21d1c967 | 21320 | /usr/lib | /lib) ;; |
e6cc62c6 | 21321 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
21322 | esac |
21323 | fi | |
21324 | cd .. | |
e6cc62c6 | 21325 | rm -fr conftest.dir |
21d1c967 | 21326 | fi |
10f2d63a | 21327 | |
e6cc62c6 VS |
21328 | # Standard set of common directories for X headers. |
21329 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
21330 | ac_x_header_dirs=' | |
21331 | /usr/X11/include | |
21332 | /usr/X11R6/include | |
21333 | /usr/X11R5/include | |
21334 | /usr/X11R4/include | |
21335 | ||
21336 | /usr/include/X11 | |
21337 | /usr/include/X11R6 | |
21338 | /usr/include/X11R5 | |
21339 | /usr/include/X11R4 | |
21340 | ||
21341 | /usr/local/X11/include | |
21342 | /usr/local/X11R6/include | |
21343 | /usr/local/X11R5/include | |
21344 | /usr/local/X11R4/include | |
21345 | ||
21346 | /usr/local/include/X11 | |
21347 | /usr/local/include/X11R6 | |
21348 | /usr/local/include/X11R5 | |
21349 | /usr/local/include/X11R4 | |
21350 | ||
21351 | /usr/X386/include | |
21352 | /usr/x386/include | |
21353 | /usr/XFree86/include/X11 | |
21354 | ||
21355 | /usr/include | |
21356 | /usr/local/include | |
21357 | /usr/unsupported/include | |
21358 | /usr/athena/include | |
21359 | /usr/local/x11r5/include | |
21360 | /usr/lpp/Xamples/include | |
21361 | ||
21362 | /usr/openwin/include | |
21363 | /usr/openwin/share/include' | |
21364 | ||
21365 | if test "$ac_x_includes" = no; then | |
21366 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 21367 | # First, try using that file with no special directory specified. |
e6cc62c6 VS |
21368 | cat >conftest.$ac_ext <<_ACEOF |
21369 | #line $LINENO "configure" | |
21370 | /* confdefs.h. */ | |
21371 | _ACEOF | |
21372 | cat confdefs.h >>conftest.$ac_ext | |
21373 | cat >>conftest.$ac_ext <<_ACEOF | |
21374 | /* end confdefs.h. */ | |
21375 | #include <X11/Intrinsic.h> | |
21376 | _ACEOF | |
21377 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21378 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21379 | ac_status=$? | |
21380 | grep -v '^ *+' conftest.er1 >conftest.err | |
21381 | rm -f conftest.er1 | |
21382 | cat conftest.err >&5 | |
21383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21384 | (exit $ac_status); } >/dev/null; then | |
21385 | if test -s conftest.err; then | |
21386 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21387 | else | |
21388 | ac_cpp_err= | |
21389 | fi | |
21390 | else | |
21391 | ac_cpp_err=yes | |
21392 | fi | |
21393 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
21394 | # We can compile using X headers with no special include directory. |
21395 | ac_x_includes= | |
90dd450c | 21396 | else |
e6cc62c6 VS |
21397 | echo "$as_me: failed program was:" >&5 |
21398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21399 | ||
21400 | for ac_dir in $ac_x_header_dirs; do | |
21401 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
21402 | ac_x_includes=$ac_dir | |
21403 | break | |
21404 | fi | |
21405 | done | |
3a922bb4 | 21406 | fi |
e6cc62c6 VS |
21407 | rm -f conftest.err conftest.$ac_ext |
21408 | fi # $ac_x_includes = no | |
10f2d63a | 21409 | |
e6cc62c6 | 21410 | if test "$ac_x_libraries" = no; then |
21d1c967 | 21411 | # Check for the libraries. |
21d1c967 GD |
21412 | # See if we find them without any special options. |
21413 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
21414 | ac_save_LIBS=$LIBS |
21415 | LIBS="-lXt $LIBS" | |
21416 | cat >conftest.$ac_ext <<_ACEOF | |
21417 | #line $LINENO "configure" | |
21418 | /* confdefs.h. */ | |
21419 | _ACEOF | |
21420 | cat confdefs.h >>conftest.$ac_ext | |
21421 | cat >>conftest.$ac_ext <<_ACEOF | |
21422 | /* end confdefs.h. */ | |
21423 | #include <X11/Intrinsic.h> | |
21424 | int | |
21425 | main () | |
21426 | { | |
21427 | XtMalloc (0) | |
21428 | ; | |
21429 | return 0; | |
21430 | } | |
21431 | _ACEOF | |
21432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21434 | (eval $ac_link) 2>&5 | |
21435 | ac_status=$? | |
21436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21437 | (exit $ac_status); } && | |
21438 | { ac_try='test -s conftest$ac_exeext' | |
21439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21440 | (eval $ac_try) 2>&5 | |
21441 | ac_status=$? | |
21442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21443 | (exit $ac_status); }; }; then | |
21444 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
21445 | # We can link X programs with no special library path. |
21446 | ac_x_libraries= | |
3a922bb4 | 21447 | else |
e6cc62c6 VS |
21448 | echo "$as_me: failed program was:" >&5 |
21449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21450 | ||
21451 | LIBS=$ac_save_LIBS | |
21452 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 21453 | do |
e6cc62c6 | 21454 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 21455 | for ac_extension in a so sl; do |
e6cc62c6 | 21456 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
21457 | ac_x_libraries=$ac_dir |
21458 | break 2 | |
21459 | fi | |
21460 | done | |
21461 | done | |
3a922bb4 | 21462 | fi |
e6cc62c6 VS |
21463 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21464 | fi # $ac_x_libraries = no | |
90dd450c | 21465 | |
e6cc62c6 | 21466 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
21467 | # Didn't find X anywhere. Cache the known absence of X. |
21468 | ac_cv_have_x="have_x=no" | |
21469 | else | |
21470 | # Record where we found X for the cache. | |
21471 | ac_cv_have_x="have_x=yes \ | |
21472 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 21473 | fi |
21d1c967 | 21474 | fi |
e6cc62c6 | 21475 | |
21d1c967 GD |
21476 | fi |
21477 | eval "$ac_cv_have_x" | |
21478 | fi # $with_x != no | |
90dd450c | 21479 | |
21d1c967 | 21480 | if test "$have_x" != yes; then |
e6cc62c6 VS |
21481 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21482 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
21483 | no_x=yes |
21484 | else | |
21485 | # If each of the values was on the command line, it overrides each guess. | |
21486 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21487 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21488 | # Update the cache value to reflect the command line values. | |
21489 | ac_cv_have_x="have_x=yes \ | |
21490 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
21491 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21492 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 21493 | fi |
90dd450c | 21494 | |
21d1c967 | 21495 | if test "$no_x" = yes; then |
90dd450c | 21496 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
21497 | |
21498 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 21499 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 21500 | _ACEOF |
90dd450c VZ |
21501 | |
21502 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
21503 | else | |
21504 | if test -n "$x_includes"; then | |
21505 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 21506 | fi |
3a922bb4 | 21507 | |
90dd450c VZ |
21508 | # It would also be nice to do this for all -L options, not just this one. |
21509 | if test -n "$x_libraries"; then | |
21510 | X_LIBS="$X_LIBS -L$x_libraries" | |
21511 | # For Solaris; some versions of Sun CC require a space after -R and | |
21512 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 21513 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 21514 | "SunOS 5"*) |
e6cc62c6 VS |
21515 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
21516 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
21517 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
21518 | cat >conftest.$ac_ext <<_ACEOF | |
21519 | #line $LINENO "configure" | |
21520 | /* confdefs.h. */ | |
21521 | _ACEOF | |
21522 | cat confdefs.h >>conftest.$ac_ext | |
21523 | cat >>conftest.$ac_ext <<_ACEOF | |
21524 | /* end confdefs.h. */ | |
21525 | ||
21526 | int | |
21527 | main () | |
21528 | { | |
90dd450c | 21529 | |
e6cc62c6 VS |
21530 | ; |
21531 | return 0; | |
21532 | } | |
21533 | _ACEOF | |
21534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21536 | (eval $ac_link) 2>&5 | |
21537 | ac_status=$? | |
21538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21539 | (exit $ac_status); } && | |
21540 | { ac_try='test -s conftest$ac_exeext' | |
21541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21542 | (eval $ac_try) 2>&5 | |
21543 | ac_status=$? | |
21544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21545 | (exit $ac_status); }; }; then | |
90dd450c | 21546 | ac_R_nospace=yes |
3a922bb4 | 21547 | else |
e6cc62c6 VS |
21548 | echo "$as_me: failed program was:" >&5 |
21549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21550 | ||
21551 | ac_R_nospace=no | |
3a922bb4 | 21552 | fi |
e6cc62c6 | 21553 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21554 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
21555 | echo "$as_me:$LINENO: result: no" >&5 |
21556 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
21557 | X_LIBS="$X_LIBS -R$x_libraries" |
21558 | else | |
21559 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
21560 | cat >conftest.$ac_ext <<_ACEOF |
21561 | #line $LINENO "configure" | |
21562 | /* confdefs.h. */ | |
21563 | _ACEOF | |
21564 | cat confdefs.h >>conftest.$ac_ext | |
21565 | cat >>conftest.$ac_ext <<_ACEOF | |
21566 | /* end confdefs.h. */ | |
21567 | ||
21568 | int | |
21569 | main () | |
21570 | { | |
6f754473 | 21571 | |
e6cc62c6 VS |
21572 | ; |
21573 | return 0; | |
21574 | } | |
21575 | _ACEOF | |
21576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21578 | (eval $ac_link) 2>&5 | |
21579 | ac_status=$? | |
21580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21581 | (exit $ac_status); } && | |
21582 | { ac_try='test -s conftest$ac_exeext' | |
21583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21584 | (eval $ac_try) 2>&5 | |
21585 | ac_status=$? | |
21586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21587 | (exit $ac_status); }; }; then | |
90dd450c VZ |
21588 | ac_R_space=yes |
21589 | else | |
e6cc62c6 VS |
21590 | echo "$as_me: failed program was:" >&5 |
21591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21592 | ||
21593 | ac_R_space=no | |
90dd450c | 21594 | fi |
e6cc62c6 | 21595 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21596 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
21597 | echo "$as_me:$LINENO: result: yes" >&5 |
21598 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
21599 | X_LIBS="$X_LIBS -R $x_libraries" |
21600 | else | |
e6cc62c6 VS |
21601 | echo "$as_me:$LINENO: result: neither works" >&5 |
21602 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
21603 | fi |
21604 | fi | |
e6cc62c6 | 21605 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
21606 | esac |
21607 | fi | |
21608 | ||
21609 | # Check for system-dependent libraries X programs must link with. | |
21610 | # Do this before checking for the system-independent R6 libraries | |
21611 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 21612 | |
90dd450c VZ |
21613 | if test "$ISC" = yes; then |
21614 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
21615 | else | |
e6cc62c6 VS |
21616 | # Martyn Johnson says this is needed for Ultrix, if the X |
21617 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 21618 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
21619 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
21620 | cat >conftest.$ac_ext <<_ACEOF | |
21621 | #line $LINENO "configure" | |
21622 | /* confdefs.h. */ | |
21623 | _ACEOF | |
21624 | cat confdefs.h >>conftest.$ac_ext | |
21625 | cat >>conftest.$ac_ext <<_ACEOF | |
21626 | /* end confdefs.h. */ | |
21627 | ||
247f5006 | 21628 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21629 | #ifdef __cplusplus |
21630 | extern "C" | |
21631 | #endif | |
247f5006 | 21632 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21633 | builtin and then its argument prototype would still apply. */ |
21634 | char XOpenDisplay (); | |
21635 | int | |
21636 | main () | |
21637 | { | |
21638 | XOpenDisplay (); | |
21639 | ; | |
21640 | return 0; | |
21641 | } | |
21642 | _ACEOF | |
21643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21645 | (eval $ac_link) 2>&5 | |
21646 | ac_status=$? | |
21647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21648 | (exit $ac_status); } && | |
21649 | { ac_try='test -s conftest$ac_exeext' | |
21650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21651 | (eval $ac_try) 2>&5 | |
21652 | ac_status=$? | |
21653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21654 | (exit $ac_status); }; }; then | |
21655 | : | |
21656 | else | |
21657 | echo "$as_me: failed program was:" >&5 | |
21658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 21659 | |
e6cc62c6 VS |
21660 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
21661 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
21662 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
21663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21664 | else |
e6cc62c6 VS |
21665 | ac_check_lib_save_LIBS=$LIBS |
21666 | LIBS="-ldnet $LIBS" | |
21667 | cat >conftest.$ac_ext <<_ACEOF | |
21668 | #line $LINENO "configure" | |
21669 | /* confdefs.h. */ | |
21670 | _ACEOF | |
21671 | cat confdefs.h >>conftest.$ac_ext | |
21672 | cat >>conftest.$ac_ext <<_ACEOF | |
21673 | /* end confdefs.h. */ | |
a0b9e27f | 21674 | |
e6cc62c6 VS |
21675 | /* Override any gcc2 internal prototype to avoid an error. */ |
21676 | #ifdef __cplusplus | |
21677 | extern "C" | |
21678 | #endif | |
21679 | /* We use char because int might match the return type of a gcc2 | |
21680 | builtin and then its argument prototype would still apply. */ | |
21681 | char dnet_ntoa (); | |
21682 | int | |
21683 | main () | |
21684 | { | |
21685 | dnet_ntoa (); | |
21686 | ; | |
21687 | return 0; | |
21688 | } | |
21689 | _ACEOF | |
21690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21692 | (eval $ac_link) 2>&5 | |
21693 | ac_status=$? | |
21694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21695 | (exit $ac_status); } && | |
21696 | { ac_try='test -s conftest$ac_exeext' | |
21697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21698 | (eval $ac_try) 2>&5 | |
21699 | ac_status=$? | |
21700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21701 | (exit $ac_status); }; }; then | |
21702 | ac_cv_lib_dnet_dnet_ntoa=yes | |
21703 | else | |
21704 | echo "$as_me: failed program was:" >&5 | |
21705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21706 | ||
21707 | ac_cv_lib_dnet_dnet_ntoa=no | |
21708 | fi | |
21709 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21710 | LIBS=$ac_check_lib_save_LIBS | |
21711 | fi | |
21712 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
21713 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
21714 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 21715 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
21716 | fi |
21717 | ||
90dd450c | 21718 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
21719 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
21720 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
21721 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
21722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21723 | else |
e6cc62c6 | 21724 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21725 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
21726 | cat >conftest.$ac_ext <<_ACEOF |
21727 | #line $LINENO "configure" | |
21728 | /* confdefs.h. */ | |
21729 | _ACEOF | |
21730 | cat confdefs.h >>conftest.$ac_ext | |
21731 | cat >>conftest.$ac_ext <<_ACEOF | |
21732 | /* end confdefs.h. */ | |
21733 | ||
90dd450c | 21734 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21735 | #ifdef __cplusplus |
21736 | extern "C" | |
21737 | #endif | |
90dd450c | 21738 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21739 | builtin and then its argument prototype would still apply. */ |
21740 | char dnet_ntoa (); | |
21741 | int | |
21742 | main () | |
21743 | { | |
21744 | dnet_ntoa (); | |
21745 | ; | |
21746 | return 0; | |
21747 | } | |
21748 | _ACEOF | |
21749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21751 | (eval $ac_link) 2>&5 | |
21752 | ac_status=$? | |
21753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21754 | (exit $ac_status); } && | |
21755 | { ac_try='test -s conftest$ac_exeext' | |
21756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21757 | (eval $ac_try) 2>&5 | |
21758 | ac_status=$? | |
21759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21760 | (exit $ac_status); }; }; then | |
21761 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
21762 | else | |
21763 | echo "$as_me: failed program was:" >&5 | |
21764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21765 | ||
21766 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
21767 | fi | |
21768 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21769 | LIBS=$ac_check_lib_save_LIBS | |
21770 | fi | |
21771 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
21772 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
21773 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 21774 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
21775 | fi |
21776 | ||
90dd450c | 21777 | fi |
e6cc62c6 VS |
21778 | fi |
21779 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21780 | LIBS="$ac_xsave_LIBS" | |
978f1259 | 21781 | |
90dd450c VZ |
21782 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
21783 | # to get the SysV transport functions. | |
e6cc62c6 | 21784 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
21785 | # needs -lnsl. |
21786 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
21787 | # on Irix 5.2, according to T.E. Dickey. |
21788 | # The functions gethostbyname, getservbyname, and inet_addr are | |
21789 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
21790 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
21791 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
21792 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
21793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21794 | else | |
21795 | cat >conftest.$ac_ext <<_ACEOF | |
21796 | #line $LINENO "configure" | |
21797 | /* confdefs.h. */ | |
21798 | _ACEOF | |
21799 | cat confdefs.h >>conftest.$ac_ext | |
21800 | cat >>conftest.$ac_ext <<_ACEOF | |
21801 | /* end confdefs.h. */ | |
90dd450c | 21802 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21803 | which can conflict with char gethostbyname (); below. |
21804 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21805 | <limits.h> exists even on freestanding compilers. */ | |
21806 | #ifdef __STDC__ | |
21807 | # include <limits.h> | |
21808 | #else | |
21809 | # include <assert.h> | |
21810 | #endif | |
90dd450c | 21811 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21812 | #ifdef __cplusplus |
21813 | extern "C" | |
21814 | { | |
21815 | #endif | |
90dd450c | 21816 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21817 | builtin and then its argument prototype would still apply. */ |
21818 | char gethostbyname (); | |
90dd450c VZ |
21819 | /* The GNU C library defines this for functions which it implements |
21820 | to always fail with ENOSYS. Some functions are actually named | |
21821 | something starting with __ and the normal name is an alias. */ | |
21822 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
21823 | choke me | |
21824 | #else | |
e6cc62c6 VS |
21825 | char (*f) () = gethostbyname; |
21826 | #endif | |
21827 | #ifdef __cplusplus | |
21828 | } | |
90dd450c | 21829 | #endif |
978f1259 | 21830 | |
e6cc62c6 VS |
21831 | int |
21832 | main () | |
21833 | { | |
21834 | return f != gethostbyname; | |
21835 | ; | |
21836 | return 0; | |
21837 | } | |
21838 | _ACEOF | |
21839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21841 | (eval $ac_link) 2>&5 | |
21842 | ac_status=$? | |
21843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21844 | (exit $ac_status); } && | |
21845 | { ac_try='test -s conftest$ac_exeext' | |
21846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21847 | (eval $ac_try) 2>&5 | |
21848 | ac_status=$? | |
21849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21850 | (exit $ac_status); }; }; then | |
21851 | ac_cv_func_gethostbyname=yes | |
21852 | else | |
21853 | echo "$as_me: failed program was:" >&5 | |
21854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21855 | ||
21856 | ac_cv_func_gethostbyname=no | |
21857 | fi | |
21858 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21859 | fi | |
21860 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
21861 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 21862 | |
90dd450c | 21863 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
21864 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
21865 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
21866 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
21867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21868 | else |
e6cc62c6 | 21869 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21870 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
21871 | cat >conftest.$ac_ext <<_ACEOF |
21872 | #line $LINENO "configure" | |
21873 | /* confdefs.h. */ | |
21874 | _ACEOF | |
21875 | cat confdefs.h >>conftest.$ac_ext | |
21876 | cat >>conftest.$ac_ext <<_ACEOF | |
21877 | /* end confdefs.h. */ | |
21878 | ||
90dd450c | 21879 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21880 | #ifdef __cplusplus |
21881 | extern "C" | |
21882 | #endif | |
90dd450c | 21883 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21884 | builtin and then its argument prototype would still apply. */ |
21885 | char gethostbyname (); | |
21886 | int | |
21887 | main () | |
21888 | { | |
21889 | gethostbyname (); | |
21890 | ; | |
21891 | return 0; | |
21892 | } | |
21893 | _ACEOF | |
21894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21896 | (eval $ac_link) 2>&5 | |
21897 | ac_status=$? | |
21898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21899 | (exit $ac_status); } && | |
21900 | { ac_try='test -s conftest$ac_exeext' | |
21901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21902 | (eval $ac_try) 2>&5 | |
21903 | ac_status=$? | |
21904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21905 | (exit $ac_status); }; }; then | |
21906 | ac_cv_lib_nsl_gethostbyname=yes | |
21907 | else | |
21908 | echo "$as_me: failed program was:" >&5 | |
21909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21910 | ||
21911 | ac_cv_lib_nsl_gethostbyname=no | |
21912 | fi | |
21913 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21914 | LIBS=$ac_check_lib_save_LIBS | |
21915 | fi | |
21916 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
21917 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
21918 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
21919 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 21920 | fi |
247f5006 | 21921 | |
e6cc62c6 VS |
21922 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
21923 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
21924 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
21925 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
21926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21927 | else |
e6cc62c6 VS |
21928 | ac_check_lib_save_LIBS=$LIBS |
21929 | LIBS="-lbsd $LIBS" | |
21930 | cat >conftest.$ac_ext <<_ACEOF | |
21931 | #line $LINENO "configure" | |
21932 | /* confdefs.h. */ | |
21933 | _ACEOF | |
21934 | cat confdefs.h >>conftest.$ac_ext | |
21935 | cat >>conftest.$ac_ext <<_ACEOF | |
21936 | /* end confdefs.h. */ | |
21937 | ||
21938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21939 | #ifdef __cplusplus | |
21940 | extern "C" | |
21941 | #endif | |
21942 | /* We use char because int might match the return type of a gcc2 | |
21943 | builtin and then its argument prototype would still apply. */ | |
21944 | char gethostbyname (); | |
21945 | int | |
21946 | main () | |
21947 | { | |
21948 | gethostbyname (); | |
21949 | ; | |
21950 | return 0; | |
21951 | } | |
21952 | _ACEOF | |
21953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21955 | (eval $ac_link) 2>&5 | |
21956 | ac_status=$? | |
21957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21958 | (exit $ac_status); } && | |
21959 | { ac_try='test -s conftest$ac_exeext' | |
21960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21961 | (eval $ac_try) 2>&5 | |
21962 | ac_status=$? | |
21963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21964 | (exit $ac_status); }; }; then | |
21965 | ac_cv_lib_bsd_gethostbyname=yes | |
21966 | else | |
21967 | echo "$as_me: failed program was:" >&5 | |
21968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21969 | ||
21970 | ac_cv_lib_bsd_gethostbyname=no | |
21971 | fi | |
21972 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21973 | LIBS=$ac_check_lib_save_LIBS | |
21974 | fi | |
21975 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
21976 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
21977 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
21978 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 21979 | fi |
b12915c1 | 21980 | |
e6cc62c6 | 21981 | fi |
90dd450c VZ |
21982 | fi |
21983 | ||
21984 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
21985 | # socket/setsockopt and other routines are undefined under SCO ODT | |
21986 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
21987 | # on later versions), says Simon Leinen: it contains gethostby* |
21988 | # variants that don't use the name server (or something). -lsocket | |
21989 | # must be given before -lnsl if both are needed. We assume that | |
21990 | # if connect needs -lnsl, so does gethostbyname. | |
21991 | echo "$as_me:$LINENO: checking for connect" >&5 | |
21992 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
21993 | if test "${ac_cv_func_connect+set}" = set; then | |
21994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21995 | else | |
21996 | cat >conftest.$ac_ext <<_ACEOF | |
21997 | #line $LINENO "configure" | |
21998 | /* confdefs.h. */ | |
21999 | _ACEOF | |
22000 | cat confdefs.h >>conftest.$ac_ext | |
22001 | cat >>conftest.$ac_ext <<_ACEOF | |
22002 | /* end confdefs.h. */ | |
90dd450c | 22003 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22004 | which can conflict with char connect (); below. |
22005 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22006 | <limits.h> exists even on freestanding compilers. */ | |
22007 | #ifdef __STDC__ | |
22008 | # include <limits.h> | |
22009 | #else | |
22010 | # include <assert.h> | |
22011 | #endif | |
90dd450c | 22012 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22013 | #ifdef __cplusplus |
22014 | extern "C" | |
22015 | { | |
22016 | #endif | |
90dd450c | 22017 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22018 | builtin and then its argument prototype would still apply. */ |
22019 | char connect (); | |
90dd450c VZ |
22020 | /* The GNU C library defines this for functions which it implements |
22021 | to always fail with ENOSYS. Some functions are actually named | |
22022 | something starting with __ and the normal name is an alias. */ | |
22023 | #if defined (__stub_connect) || defined (__stub___connect) | |
22024 | choke me | |
22025 | #else | |
e6cc62c6 VS |
22026 | char (*f) () = connect; |
22027 | #endif | |
22028 | #ifdef __cplusplus | |
22029 | } | |
90dd450c VZ |
22030 | #endif |
22031 | ||
e6cc62c6 VS |
22032 | int |
22033 | main () | |
22034 | { | |
22035 | return f != connect; | |
22036 | ; | |
22037 | return 0; | |
22038 | } | |
22039 | _ACEOF | |
22040 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22042 | (eval $ac_link) 2>&5 | |
22043 | ac_status=$? | |
22044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22045 | (exit $ac_status); } && | |
22046 | { ac_try='test -s conftest$ac_exeext' | |
22047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22048 | (eval $ac_try) 2>&5 | |
22049 | ac_status=$? | |
22050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22051 | (exit $ac_status); }; }; then | |
22052 | ac_cv_func_connect=yes | |
22053 | else | |
22054 | echo "$as_me: failed program was:" >&5 | |
22055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22056 | ||
22057 | ac_cv_func_connect=no | |
22058 | fi | |
22059 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22060 | fi | |
22061 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
22062 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 22063 | |
90dd450c | 22064 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
22065 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
22066 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
22067 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
22068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22069 | else |
e6cc62c6 | 22070 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22071 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
22072 | cat >conftest.$ac_ext <<_ACEOF |
22073 | #line $LINENO "configure" | |
22074 | /* confdefs.h. */ | |
22075 | _ACEOF | |
22076 | cat confdefs.h >>conftest.$ac_ext | |
22077 | cat >>conftest.$ac_ext <<_ACEOF | |
22078 | /* end confdefs.h. */ | |
22079 | ||
90dd450c | 22080 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22081 | #ifdef __cplusplus |
22082 | extern "C" | |
22083 | #endif | |
90dd450c | 22084 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22085 | builtin and then its argument prototype would still apply. */ |
22086 | char connect (); | |
22087 | int | |
22088 | main () | |
22089 | { | |
22090 | connect (); | |
22091 | ; | |
22092 | return 0; | |
22093 | } | |
22094 | _ACEOF | |
22095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22097 | (eval $ac_link) 2>&5 | |
22098 | ac_status=$? | |
22099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22100 | (exit $ac_status); } && | |
22101 | { ac_try='test -s conftest$ac_exeext' | |
22102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22103 | (eval $ac_try) 2>&5 | |
22104 | ac_status=$? | |
22105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22106 | (exit $ac_status); }; }; then | |
22107 | ac_cv_lib_socket_connect=yes | |
22108 | else | |
22109 | echo "$as_me: failed program was:" >&5 | |
22110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22111 | ||
22112 | ac_cv_lib_socket_connect=no | |
22113 | fi | |
22114 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22115 | LIBS=$ac_check_lib_save_LIBS | |
22116 | fi | |
22117 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
22118 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
22119 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 22120 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 22121 | fi |
77e13408 | 22122 | |
90dd450c | 22123 | fi |
25d0687a | 22124 | |
e6cc62c6 VS |
22125 | # Guillermo Gomez says -lposix is necessary on A/UX. |
22126 | echo "$as_me:$LINENO: checking for remove" >&5 | |
22127 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
22128 | if test "${ac_cv_func_remove+set}" = set; then | |
22129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22130 | else | |
22131 | cat >conftest.$ac_ext <<_ACEOF | |
22132 | #line $LINENO "configure" | |
22133 | /* confdefs.h. */ | |
22134 | _ACEOF | |
22135 | cat confdefs.h >>conftest.$ac_ext | |
22136 | cat >>conftest.$ac_ext <<_ACEOF | |
22137 | /* end confdefs.h. */ | |
90dd450c | 22138 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22139 | which can conflict with char remove (); below. |
22140 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22141 | <limits.h> exists even on freestanding compilers. */ | |
22142 | #ifdef __STDC__ | |
22143 | # include <limits.h> | |
22144 | #else | |
22145 | # include <assert.h> | |
22146 | #endif | |
90dd450c | 22147 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22148 | #ifdef __cplusplus |
22149 | extern "C" | |
22150 | { | |
22151 | #endif | |
90dd450c | 22152 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22153 | builtin and then its argument prototype would still apply. */ |
22154 | char remove (); | |
90dd450c VZ |
22155 | /* The GNU C library defines this for functions which it implements |
22156 | to always fail with ENOSYS. Some functions are actually named | |
22157 | something starting with __ and the normal name is an alias. */ | |
22158 | #if defined (__stub_remove) || defined (__stub___remove) | |
22159 | choke me | |
22160 | #else | |
e6cc62c6 VS |
22161 | char (*f) () = remove; |
22162 | #endif | |
22163 | #ifdef __cplusplus | |
22164 | } | |
90dd450c | 22165 | #endif |
55e80573 | 22166 | |
e6cc62c6 VS |
22167 | int |
22168 | main () | |
22169 | { | |
22170 | return f != remove; | |
22171 | ; | |
22172 | return 0; | |
22173 | } | |
22174 | _ACEOF | |
22175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22177 | (eval $ac_link) 2>&5 | |
22178 | ac_status=$? | |
22179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22180 | (exit $ac_status); } && | |
22181 | { ac_try='test -s conftest$ac_exeext' | |
22182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22183 | (eval $ac_try) 2>&5 | |
22184 | ac_status=$? | |
22185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22186 | (exit $ac_status); }; }; then | |
22187 | ac_cv_func_remove=yes | |
22188 | else | |
22189 | echo "$as_me: failed program was:" >&5 | |
22190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22191 | ||
22192 | ac_cv_func_remove=no | |
22193 | fi | |
22194 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22195 | fi | |
22196 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
22197 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 22198 | |
90dd450c | 22199 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
22200 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
22201 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
22202 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
22203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22204 | else |
e6cc62c6 | 22205 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22206 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
22207 | cat >conftest.$ac_ext <<_ACEOF |
22208 | #line $LINENO "configure" | |
22209 | /* confdefs.h. */ | |
22210 | _ACEOF | |
22211 | cat confdefs.h >>conftest.$ac_ext | |
22212 | cat >>conftest.$ac_ext <<_ACEOF | |
22213 | /* end confdefs.h. */ | |
22214 | ||
90dd450c | 22215 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22216 | #ifdef __cplusplus |
22217 | extern "C" | |
22218 | #endif | |
90dd450c | 22219 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22220 | builtin and then its argument prototype would still apply. */ |
22221 | char remove (); | |
22222 | int | |
22223 | main () | |
22224 | { | |
22225 | remove (); | |
22226 | ; | |
22227 | return 0; | |
22228 | } | |
22229 | _ACEOF | |
22230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22232 | (eval $ac_link) 2>&5 | |
22233 | ac_status=$? | |
22234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22235 | (exit $ac_status); } && | |
22236 | { ac_try='test -s conftest$ac_exeext' | |
22237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22238 | (eval $ac_try) 2>&5 | |
22239 | ac_status=$? | |
22240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22241 | (exit $ac_status); }; }; then | |
22242 | ac_cv_lib_posix_remove=yes | |
22243 | else | |
22244 | echo "$as_me: failed program was:" >&5 | |
22245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22246 | ||
22247 | ac_cv_lib_posix_remove=no | |
22248 | fi | |
22249 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22250 | LIBS=$ac_check_lib_save_LIBS | |
22251 | fi | |
22252 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
22253 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
22254 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 22255 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 22256 | fi |
f6bcfd97 | 22257 | |
6fa882bd RR |
22258 | fi |
22259 | ||
90dd450c | 22260 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
22261 | echo "$as_me:$LINENO: checking for shmat" >&5 |
22262 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
22263 | if test "${ac_cv_func_shmat+set}" = set; then | |
22264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22265 | else | |
22266 | cat >conftest.$ac_ext <<_ACEOF | |
22267 | #line $LINENO "configure" | |
22268 | /* confdefs.h. */ | |
22269 | _ACEOF | |
22270 | cat confdefs.h >>conftest.$ac_ext | |
22271 | cat >>conftest.$ac_ext <<_ACEOF | |
22272 | /* end confdefs.h. */ | |
90dd450c | 22273 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22274 | which can conflict with char shmat (); below. |
22275 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22276 | <limits.h> exists even on freestanding compilers. */ | |
22277 | #ifdef __STDC__ | |
22278 | # include <limits.h> | |
22279 | #else | |
22280 | # include <assert.h> | |
22281 | #endif | |
90dd450c | 22282 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22283 | #ifdef __cplusplus |
22284 | extern "C" | |
22285 | { | |
22286 | #endif | |
90dd450c | 22287 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22288 | builtin and then its argument prototype would still apply. */ |
22289 | char shmat (); | |
90dd450c VZ |
22290 | /* The GNU C library defines this for functions which it implements |
22291 | to always fail with ENOSYS. Some functions are actually named | |
22292 | something starting with __ and the normal name is an alias. */ | |
22293 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
22294 | choke me | |
22295 | #else | |
e6cc62c6 VS |
22296 | char (*f) () = shmat; |
22297 | #endif | |
22298 | #ifdef __cplusplus | |
22299 | } | |
90dd450c | 22300 | #endif |
10f2d63a | 22301 | |
e6cc62c6 VS |
22302 | int |
22303 | main () | |
22304 | { | |
22305 | return f != shmat; | |
22306 | ; | |
22307 | return 0; | |
22308 | } | |
22309 | _ACEOF | |
22310 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22312 | (eval $ac_link) 2>&5 | |
22313 | ac_status=$? | |
22314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22315 | (exit $ac_status); } && | |
22316 | { ac_try='test -s conftest$ac_exeext' | |
22317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22318 | (eval $ac_try) 2>&5 | |
22319 | ac_status=$? | |
22320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22321 | (exit $ac_status); }; }; then | |
22322 | ac_cv_func_shmat=yes | |
22323 | else | |
22324 | echo "$as_me: failed program was:" >&5 | |
22325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22326 | ||
22327 | ac_cv_func_shmat=no | |
22328 | fi | |
22329 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22330 | fi | |
22331 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
22332 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 22333 | |
90dd450c | 22334 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
22335 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
22336 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
22337 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
22338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 22339 | else |
e6cc62c6 | 22340 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22341 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
22342 | cat >conftest.$ac_ext <<_ACEOF |
22343 | #line $LINENO "configure" | |
22344 | /* confdefs.h. */ | |
22345 | _ACEOF | |
22346 | cat confdefs.h >>conftest.$ac_ext | |
22347 | cat >>conftest.$ac_ext <<_ACEOF | |
22348 | /* end confdefs.h. */ | |
22349 | ||
8284b0c5 | 22350 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22351 | #ifdef __cplusplus |
22352 | extern "C" | |
22353 | #endif | |
90dd450c | 22354 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22355 | builtin and then its argument prototype would still apply. */ |
22356 | char shmat (); | |
22357 | int | |
22358 | main () | |
22359 | { | |
22360 | shmat (); | |
22361 | ; | |
22362 | return 0; | |
22363 | } | |
22364 | _ACEOF | |
22365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22367 | (eval $ac_link) 2>&5 | |
22368 | ac_status=$? | |
22369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22370 | (exit $ac_status); } && | |
22371 | { ac_try='test -s conftest$ac_exeext' | |
22372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22373 | (eval $ac_try) 2>&5 | |
22374 | ac_status=$? | |
22375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22376 | (exit $ac_status); }; }; then | |
22377 | ac_cv_lib_ipc_shmat=yes | |
22378 | else | |
22379 | echo "$as_me: failed program was:" >&5 | |
22380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22381 | ||
22382 | ac_cv_lib_ipc_shmat=no | |
22383 | fi | |
22384 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22385 | LIBS=$ac_check_lib_save_LIBS | |
22386 | fi | |
22387 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
22388 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
22389 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 22390 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
22391 | fi |
22392 | ||
d558c907 | 22393 | fi |
90dd450c | 22394 | fi |
3a922bb4 | 22395 | |
90dd450c | 22396 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 22397 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
22398 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
22399 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
22400 | # check for ICE first), but we must link in the order -lSM -lICE or | |
22401 | # we get undefined symbols. So assume we have SM if we have ICE. | |
22402 | # These have to be linked with before -lX11, unlike the other | |
22403 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
22404 | # John Interrante, Karl Berry |
22405 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
22406 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
22407 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
22408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22409 | else | |
22410 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 22411 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
22412 | cat >conftest.$ac_ext <<_ACEOF |
22413 | #line $LINENO "configure" | |
22414 | /* confdefs.h. */ | |
22415 | _ACEOF | |
22416 | cat confdefs.h >>conftest.$ac_ext | |
22417 | cat >>conftest.$ac_ext <<_ACEOF | |
22418 | /* end confdefs.h. */ | |
22419 | ||
90dd450c | 22420 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22421 | #ifdef __cplusplus |
22422 | extern "C" | |
22423 | #endif | |
90dd450c | 22424 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22425 | builtin and then its argument prototype would still apply. */ |
22426 | char IceConnectionNumber (); | |
22427 | int | |
22428 | main () | |
22429 | { | |
22430 | IceConnectionNumber (); | |
22431 | ; | |
22432 | return 0; | |
22433 | } | |
22434 | _ACEOF | |
22435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22437 | (eval $ac_link) 2>&5 | |
22438 | ac_status=$? | |
22439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22440 | (exit $ac_status); } && | |
22441 | { ac_try='test -s conftest$ac_exeext' | |
22442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22443 | (eval $ac_try) 2>&5 | |
22444 | ac_status=$? | |
22445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22446 | (exit $ac_status); }; }; then | |
22447 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
22448 | else | |
22449 | echo "$as_me: failed program was:" >&5 | |
22450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22451 | ||
22452 | ac_cv_lib_ICE_IceConnectionNumber=no | |
22453 | fi | |
22454 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22455 | LIBS=$ac_check_lib_save_LIBS | |
22456 | fi | |
22457 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
22458 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
22459 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 22460 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 22461 | fi |
10f2d63a | 22462 | |
e6cc62c6 | 22463 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
22464 | |
22465 | fi | |
22466 | ||
8284b0c5 | 22467 | |
90dd450c | 22468 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
22469 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
22470 | echo "$as_me: error: X11 not found" >&2;} | |
22471 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
22472 | fi |
22473 | ||
22474 | GUI_TK_LIBRARY="$X_LIBS" | |
22475 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
22476 | AFMINSTALL=afminstall | |
22477 | COMPILED_X_PROGRAM=0 | |
22478 | ||
21d1c967 | 22479 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
22480 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
22481 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 22482 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
22483 | echo "$as_me:$LINENO: result: not found" >&5 |
22484 | echo "${ECHO_T}not found" >&6 | |
22485 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
22486 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
22487 | { (exit 1); exit 1; }; } | |
90dd450c | 22488 | else |
e6cc62c6 VS |
22489 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
22490 | echo "${ECHO_T}$MICROWIN" >&6 | |
22491 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22492 | #define wxUSE_NANOX 1 |
e6cc62c6 | 22493 | _ACEOF |
21d1c967 | 22494 | |
90dd450c VZ |
22495 | fi |
22496 | fi | |
22497 | ||
22498 | xpm_link= | |
e6cc62c6 VS |
22499 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
22500 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
22501 | ||
90dd450c | 22502 | ac_find_libraries= |
2b5f62a0 | 22503 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
22504 | do |
22505 | for ac_extension in a so sl dylib; do | |
22506 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
22507 | ac_find_libraries=$ac_dir | |
22508 | break 2 | |
22509 | fi | |
22510 | done | |
22511 | done | |
22512 | ||
22513 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 22514 | |
90dd450c VZ |
22515 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
22516 | result=$? | |
22517 | if test $result = 0; then | |
22518 | ac_path_to_link="" | |
22519 | else | |
22520 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 22521 | fi |
90dd450c | 22522 | |
21d1c967 GD |
22523 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
22524 | xpm_link=" -lXpm" | |
e6cc62c6 | 22525 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22526 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22527 | _ACEOF |
90dd450c | 22528 | |
e6cc62c6 VS |
22529 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
22530 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 22531 | else |
e6cc62c6 VS |
22532 | cat >conftest.$ac_ext <<_ACEOF |
22533 | #line $LINENO "configure" | |
22534 | /* confdefs.h. */ | |
22535 | _ACEOF | |
22536 | cat confdefs.h >>conftest.$ac_ext | |
22537 | cat >>conftest.$ac_ext <<_ACEOF | |
22538 | /* end confdefs.h. */ | |
90dd450c | 22539 | |
21d1c967 | 22540 | #include <X11/xpm.h> |
e6cc62c6 VS |
22541 | |
22542 | int | |
22543 | main () | |
22544 | { | |
6f72b082 | 22545 | |
21d1c967 GD |
22546 | int version; |
22547 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
22548 | |
22549 | ; | |
22550 | return 0; | |
22551 | } | |
22552 | _ACEOF | |
22553 | rm -f conftest.$ac_objext | |
22554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22555 | (eval $ac_compile) 2>&5 | |
22556 | ac_status=$? | |
22557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22558 | (exit $ac_status); } && | |
22559 | { ac_try='test -s conftest.$ac_objext' | |
22560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22561 | (eval $ac_try) 2>&5 | |
22562 | ac_status=$? | |
22563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22564 | (exit $ac_status); }; }; then | |
22565 | ||
21d1c967 | 22566 | xpm_link=" -lXpm" |
e6cc62c6 | 22567 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22568 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22569 | _ACEOF |
90dd450c | 22570 | |
e6cc62c6 VS |
22571 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
22572 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 22573 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 22574 | |
21d1c967 | 22575 | else |
e6cc62c6 VS |
22576 | echo "$as_me: failed program was:" >&5 |
22577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22578 | ||
22579 | ||
22580 | echo "$as_me:$LINENO: result: no" >&5 | |
22581 | echo "${ECHO_T}no" >&6 | |
22582 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
22583 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
22584 | ||
22585 | ||
6f72b082 | 22586 | fi |
e6cc62c6 | 22587 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22588 | fi |
90dd450c | 22589 | |
e6cc62c6 VS |
22590 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
22591 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
22592 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
22593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f7f78039 | 22594 | else |
e6cc62c6 | 22595 | ac_check_lib_save_LIBS=$LIBS |
f7f78039 | 22596 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" |
e6cc62c6 VS |
22597 | cat >conftest.$ac_ext <<_ACEOF |
22598 | #line $LINENO "configure" | |
22599 | /* confdefs.h. */ | |
22600 | _ACEOF | |
22601 | cat confdefs.h >>conftest.$ac_ext | |
22602 | cat >>conftest.$ac_ext <<_ACEOF | |
22603 | /* end confdefs.h. */ | |
22604 | ||
f7f78039 | 22605 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22606 | #ifdef __cplusplus |
22607 | extern "C" | |
22608 | #endif | |
f7f78039 | 22609 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22610 | builtin and then its argument prototype would still apply. */ |
22611 | char XShapeQueryExtension (); | |
22612 | int | |
22613 | main () | |
22614 | { | |
22615 | XShapeQueryExtension (); | |
22616 | ; | |
22617 | return 0; | |
22618 | } | |
22619 | _ACEOF | |
22620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22622 | (eval $ac_link) 2>&5 | |
22623 | ac_status=$? | |
22624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22625 | (exit $ac_status); } && | |
22626 | { ac_try='test -s conftest$ac_exeext' | |
22627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22628 | (eval $ac_try) 2>&5 | |
22629 | ac_status=$? | |
22630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22631 | (exit $ac_status); }; }; then | |
22632 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
22633 | else | |
22634 | echo "$as_me: failed program was:" >&5 | |
22635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22636 | ||
22637 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
22638 | fi | |
22639 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22640 | LIBS=$ac_check_lib_save_LIBS | |
22641 | fi | |
22642 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
22643 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
22644 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
f7f78039 | 22645 | |
f7f78039 MB |
22646 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" |
22647 | wxHAVE_XEXT_LIB=1 | |
e6cc62c6 | 22648 | |
f7f78039 MB |
22649 | fi |
22650 | ||
22651 | ||
2b5f62a0 | 22652 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 22653 | |
2b5f62a0 | 22654 | succeeded=no |
90dd450c | 22655 | |
2b5f62a0 VZ |
22656 | if test -z "$PKG_CONFIG"; then |
22657 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22658 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22659 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22661 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22663 | else |
e6cc62c6 VS |
22664 | case $PKG_CONFIG in |
22665 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22666 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22667 | ;; | |
2b5f62a0 | 22668 | *) |
e6cc62c6 VS |
22669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22670 | for as_dir in $PATH | |
22671 | do | |
22672 | IFS=$as_save_IFS | |
22673 | test -z "$as_dir" && as_dir=. | |
22674 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22675 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22676 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22677 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22678 | break 2 | |
22679 | fi | |
22680 | done | |
22681 | done | |
22682 | ||
2b5f62a0 VZ |
22683 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22684 | ;; | |
22685 | esac | |
22686 | fi | |
e6cc62c6 VS |
22687 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22688 | ||
2b5f62a0 | 22689 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22690 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22691 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22692 | else |
e6cc62c6 VS |
22693 | echo "$as_me:$LINENO: result: no" >&5 |
22694 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22695 | fi |
22696 | ||
22697 | fi | |
22698 | ||
22699 | if test "$PKG_CONFIG" = "no" ; then | |
22700 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22701 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22702 | echo "*** to the full path to pkg-config." | |
22703 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22704 | else | |
22705 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22706 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22707 | echo "$as_me:$LINENO: checking for pangox" >&5 |
22708 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22709 | |
22710 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
22711 | echo "$as_me:$LINENO: result: yes" >&5 |
22712 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22713 | succeeded=yes |
22714 | ||
e6cc62c6 VS |
22715 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
22716 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22717 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
22718 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
22719 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 22720 | |
e6cc62c6 VS |
22721 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
22722 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22723 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
22724 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
22725 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
22726 | else |
22727 | PANGOX_CFLAGS="" | |
22728 | PANGOX_LIBS="" | |
e6cc62c6 | 22729 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22730 | ## do set a variable so people can do so. |
22731 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 22732 | |
2b5f62a0 VZ |
22733 | fi |
22734 | ||
e6cc62c6 VS |
22735 | |
22736 | ||
2b5f62a0 VZ |
22737 | else |
22738 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22739 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22740 | fi | |
22741 | fi | |
22742 | ||
22743 | if test $succeeded = yes; then | |
e6cc62c6 | 22744 | |
2b5f62a0 | 22745 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 22746 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 22747 | |
2b5f62a0 | 22748 | else |
e6cc62c6 VS |
22749 | |
22750 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
22751 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
22752 | { (exit 1); exit 1; }; } | |
22753 | ||
22754 | ||
2b5f62a0 VZ |
22755 | fi |
22756 | ||
e6cc62c6 | 22757 | |
2b5f62a0 VZ |
22758 | succeeded=no |
22759 | ||
22760 | if test -z "$PKG_CONFIG"; then | |
22761 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22762 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22763 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22765 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22767 | else |
e6cc62c6 VS |
22768 | case $PKG_CONFIG in |
22769 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22770 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22771 | ;; | |
2b5f62a0 | 22772 | *) |
e6cc62c6 VS |
22773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22774 | for as_dir in $PATH | |
22775 | do | |
22776 | IFS=$as_save_IFS | |
22777 | test -z "$as_dir" && as_dir=. | |
22778 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22780 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22782 | break 2 | |
22783 | fi | |
22784 | done | |
22785 | done | |
22786 | ||
2b5f62a0 VZ |
22787 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22788 | ;; | |
22789 | esac | |
22790 | fi | |
e6cc62c6 VS |
22791 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22792 | ||
2b5f62a0 | 22793 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22794 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22795 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22796 | else |
e6cc62c6 VS |
22797 | echo "$as_me:$LINENO: result: no" >&5 |
22798 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22799 | fi |
22800 | ||
22801 | fi | |
22802 | ||
22803 | if test "$PKG_CONFIG" = "no" ; then | |
22804 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22805 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22806 | echo "*** to the full path to pkg-config." | |
22807 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22808 | else | |
22809 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22810 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22811 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22812 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22813 | |
22814 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22815 | echo "$as_me:$LINENO: result: yes" >&5 |
22816 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22817 | succeeded=yes |
22818 | ||
e6cc62c6 VS |
22819 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22820 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22821 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22822 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22823 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 22824 | |
e6cc62c6 VS |
22825 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22826 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22827 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22828 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22829 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
22830 | else |
22831 | PANGOFT2_CFLAGS="" | |
22832 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22833 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22834 | ## do set a variable so people can do so. |
22835 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22836 | |
2b5f62a0 VZ |
22837 | fi |
22838 | ||
e6cc62c6 VS |
22839 | |
22840 | ||
2b5f62a0 VZ |
22841 | else |
22842 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22843 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22844 | fi | |
22845 | fi | |
22846 | ||
22847 | if test $succeeded = yes; then | |
e6cc62c6 | 22848 | |
2b5f62a0 | 22849 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22850 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22851 | |
2b5f62a0 | 22852 | else |
e6cc62c6 VS |
22853 | |
22854 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22855 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 22856 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22857 | |
22858 | ||
2b5f62a0 VZ |
22859 | fi |
22860 | ||
e6cc62c6 | 22861 | |
2b5f62a0 VZ |
22862 | succeeded=no |
22863 | ||
22864 | if test -z "$PKG_CONFIG"; then | |
22865 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22866 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22869 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22871 | else |
e6cc62c6 VS |
22872 | case $PKG_CONFIG in |
22873 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22874 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22875 | ;; | |
2b5f62a0 | 22876 | *) |
e6cc62c6 VS |
22877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22878 | for as_dir in $PATH | |
22879 | do | |
22880 | IFS=$as_save_IFS | |
22881 | test -z "$as_dir" && as_dir=. | |
22882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22884 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22886 | break 2 | |
22887 | fi | |
22888 | done | |
22889 | done | |
22890 | ||
2b5f62a0 VZ |
22891 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22892 | ;; | |
22893 | esac | |
22894 | fi | |
e6cc62c6 VS |
22895 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22896 | ||
2b5f62a0 | 22897 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22898 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22899 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22900 | else |
e6cc62c6 VS |
22901 | echo "$as_me:$LINENO: result: no" >&5 |
22902 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22903 | fi |
22904 | ||
22905 | fi | |
22906 | ||
22907 | if test "$PKG_CONFIG" = "no" ; then | |
22908 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22909 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22910 | echo "*** to the full path to pkg-config." | |
22911 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22912 | else | |
22913 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22914 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22915 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
22916 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22917 | |
22918 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
22919 | echo "$as_me:$LINENO: result: yes" >&5 |
22920 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22921 | succeeded=yes |
22922 | ||
e6cc62c6 VS |
22923 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
22924 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22925 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
22926 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
22927 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 22928 | |
e6cc62c6 VS |
22929 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
22930 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22931 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
22932 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
22933 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
22934 | else |
22935 | PANGOXFT_CFLAGS="" | |
22936 | PANGOXFT_LIBS="" | |
e6cc62c6 | 22937 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22938 | ## do set a variable so people can do so. |
22939 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 22940 | |
2b5f62a0 VZ |
22941 | fi |
22942 | ||
e6cc62c6 VS |
22943 | |
22944 | ||
2b5f62a0 VZ |
22945 | else |
22946 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22947 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22948 | fi | |
22949 | fi | |
22950 | ||
22951 | if test $succeeded = yes; then | |
e6cc62c6 | 22952 | |
2b5f62a0 | 22953 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 22954 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 22955 | |
2b5f62a0 | 22956 | else |
e6cc62c6 VS |
22957 | |
22958 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
22959 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
22960 | ||
22961 | ||
2b5f62a0 VZ |
22962 | fi |
22963 | ||
22964 | fi | |
22965 | ||
22966 | wxUSE_UNIVERSAL="yes" | |
22967 | ||
22968 | if test "$wxUSE_NANOX" = "yes"; then | |
22969 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 22970 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" |
2b5f62a0 VZ |
22971 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
22972 | else | |
22973 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
22974 | fi | |
22975 | ||
22976 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
22977 | TOOLKIT=X11 | |
22978 | GUIDIST=X11_DIST | |
22979 | fi | |
22980 | ||
21d1c967 GD |
22981 | if test "$wxUSE_MOTIF" = 1; then |
22982 | if test "$no_x" = yes; then | |
22983 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
22984 | |
22985 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22986 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22987 | _ACEOF |
21d1c967 GD |
22988 | |
22989 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22990 | else | |
22991 | if test -n "$x_includes"; then | |
22992 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
22993 | fi |
22994 | ||
21d1c967 GD |
22995 | # It would also be nice to do this for all -L options, not just this one. |
22996 | if test -n "$x_libraries"; then | |
22997 | X_LIBS="$X_LIBS -L$x_libraries" | |
22998 | # For Solaris; some versions of Sun CC require a space after -R and | |
22999 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 23000 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 23001 | "SunOS 5"*) |
e6cc62c6 VS |
23002 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
23003 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
23004 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
23005 | cat >conftest.$ac_ext <<_ACEOF | |
23006 | #line $LINENO "configure" | |
23007 | /* confdefs.h. */ | |
23008 | _ACEOF | |
23009 | cat confdefs.h >>conftest.$ac_ext | |
23010 | cat >>conftest.$ac_ext <<_ACEOF | |
23011 | /* end confdefs.h. */ | |
23012 | ||
23013 | int | |
23014 | main () | |
23015 | { | |
21d1c967 | 23016 | |
e6cc62c6 VS |
23017 | ; |
23018 | return 0; | |
23019 | } | |
23020 | _ACEOF | |
23021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23023 | (eval $ac_link) 2>&5 | |
23024 | ac_status=$? | |
23025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23026 | (exit $ac_status); } && | |
23027 | { ac_try='test -s conftest$ac_exeext' | |
23028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23029 | (eval $ac_try) 2>&5 | |
23030 | ac_status=$? | |
23031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23032 | (exit $ac_status); }; }; then | |
21d1c967 | 23033 | ac_R_nospace=yes |
698dcdb6 | 23034 | else |
e6cc62c6 VS |
23035 | echo "$as_me: failed program was:" >&5 |
23036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23037 | ||
23038 | ac_R_nospace=no | |
10f2d63a | 23039 | fi |
e6cc62c6 | 23040 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 23041 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
23042 | echo "$as_me:$LINENO: result: no" >&5 |
23043 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
23044 | X_LIBS="$X_LIBS -R$x_libraries" |
23045 | else | |
23046 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
23047 | cat >conftest.$ac_ext <<_ACEOF |
23048 | #line $LINENO "configure" | |
23049 | /* confdefs.h. */ | |
23050 | _ACEOF | |
23051 | cat confdefs.h >>conftest.$ac_ext | |
23052 | cat >>conftest.$ac_ext <<_ACEOF | |
23053 | /* end confdefs.h. */ | |
23054 | ||
23055 | int | |
23056 | main () | |
23057 | { | |
f0c87536 | 23058 | |
e6cc62c6 VS |
23059 | ; |
23060 | return 0; | |
23061 | } | |
23062 | _ACEOF | |
23063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23065 | (eval $ac_link) 2>&5 | |
23066 | ac_status=$? | |
23067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23068 | (exit $ac_status); } && | |
23069 | { ac_try='test -s conftest$ac_exeext' | |
23070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23071 | (eval $ac_try) 2>&5 | |
23072 | ac_status=$? | |
23073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23074 | (exit $ac_status); }; }; then | |
21d1c967 GD |
23075 | ac_R_space=yes |
23076 | else | |
e6cc62c6 VS |
23077 | echo "$as_me: failed program was:" >&5 |
23078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23079 | ||
23080 | ac_R_space=no | |
21d1c967 | 23081 | fi |
e6cc62c6 | 23082 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 23083 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
23084 | echo "$as_me:$LINENO: result: yes" >&5 |
23085 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
23086 | X_LIBS="$X_LIBS -R $x_libraries" |
23087 | else | |
e6cc62c6 VS |
23088 | echo "$as_me:$LINENO: result: neither works" >&5 |
23089 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
23090 | fi |
23091 | fi | |
e6cc62c6 | 23092 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
23093 | esac |
23094 | fi | |
90dd450c | 23095 | |
21d1c967 GD |
23096 | # Check for system-dependent libraries X programs must link with. |
23097 | # Do this before checking for the system-independent R6 libraries | |
23098 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
23099 | ||
23100 | if test "$ISC" = yes; then | |
23101 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
23102 | else | |
e6cc62c6 VS |
23103 | # Martyn Johnson says this is needed for Ultrix, if the X |
23104 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 23105 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
23106 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
23107 | cat >conftest.$ac_ext <<_ACEOF | |
23108 | #line $LINENO "configure" | |
23109 | /* confdefs.h. */ | |
23110 | _ACEOF | |
23111 | cat confdefs.h >>conftest.$ac_ext | |
23112 | cat >>conftest.$ac_ext <<_ACEOF | |
23113 | /* end confdefs.h. */ | |
23114 | ||
247f5006 | 23115 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23116 | #ifdef __cplusplus |
23117 | extern "C" | |
23118 | #endif | |
247f5006 | 23119 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23120 | builtin and then its argument prototype would still apply. */ |
23121 | char XOpenDisplay (); | |
23122 | int | |
23123 | main () | |
23124 | { | |
23125 | XOpenDisplay (); | |
23126 | ; | |
23127 | return 0; | |
23128 | } | |
23129 | _ACEOF | |
23130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23132 | (eval $ac_link) 2>&5 | |
23133 | ac_status=$? | |
23134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23135 | (exit $ac_status); } && | |
23136 | { ac_try='test -s conftest$ac_exeext' | |
23137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23138 | (eval $ac_try) 2>&5 | |
23139 | ac_status=$? | |
23140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23141 | (exit $ac_status); }; }; then | |
23142 | : | |
23143 | else | |
23144 | echo "$as_me: failed program was:" >&5 | |
23145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 23146 | |
e6cc62c6 VS |
23147 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
23148 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
23149 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
23150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23151 | else |
e6cc62c6 VS |
23152 | ac_check_lib_save_LIBS=$LIBS |
23153 | LIBS="-ldnet $LIBS" | |
23154 | cat >conftest.$ac_ext <<_ACEOF | |
23155 | #line $LINENO "configure" | |
23156 | /* confdefs.h. */ | |
23157 | _ACEOF | |
23158 | cat confdefs.h >>conftest.$ac_ext | |
23159 | cat >>conftest.$ac_ext <<_ACEOF | |
23160 | /* end confdefs.h. */ | |
a0b9e27f | 23161 | |
e6cc62c6 VS |
23162 | /* Override any gcc2 internal prototype to avoid an error. */ |
23163 | #ifdef __cplusplus | |
23164 | extern "C" | |
23165 | #endif | |
23166 | /* We use char because int might match the return type of a gcc2 | |
23167 | builtin and then its argument prototype would still apply. */ | |
23168 | char dnet_ntoa (); | |
23169 | int | |
23170 | main () | |
23171 | { | |
23172 | dnet_ntoa (); | |
23173 | ; | |
23174 | return 0; | |
23175 | } | |
23176 | _ACEOF | |
23177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23179 | (eval $ac_link) 2>&5 | |
23180 | ac_status=$? | |
23181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23182 | (exit $ac_status); } && | |
23183 | { ac_try='test -s conftest$ac_exeext' | |
23184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23185 | (eval $ac_try) 2>&5 | |
23186 | ac_status=$? | |
23187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23188 | (exit $ac_status); }; }; then | |
23189 | ac_cv_lib_dnet_dnet_ntoa=yes | |
23190 | else | |
23191 | echo "$as_me: failed program was:" >&5 | |
23192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23193 | ||
23194 | ac_cv_lib_dnet_dnet_ntoa=no | |
23195 | fi | |
23196 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23197 | LIBS=$ac_check_lib_save_LIBS | |
23198 | fi | |
23199 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
23200 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
23201 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 23202 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 23203 | fi |
0fb0dd83 | 23204 | |
21d1c967 | 23205 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
23206 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
23207 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23208 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23210 | else |
e6cc62c6 | 23211 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23212 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
23213 | cat >conftest.$ac_ext <<_ACEOF |
23214 | #line $LINENO "configure" | |
23215 | /* confdefs.h. */ | |
23216 | _ACEOF | |
23217 | cat confdefs.h >>conftest.$ac_ext | |
23218 | cat >>conftest.$ac_ext <<_ACEOF | |
23219 | /* end confdefs.h. */ | |
23220 | ||
21d1c967 | 23221 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23222 | #ifdef __cplusplus |
23223 | extern "C" | |
23224 | #endif | |
21d1c967 | 23225 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23226 | builtin and then its argument prototype would still apply. */ |
23227 | char dnet_ntoa (); | |
23228 | int | |
23229 | main () | |
23230 | { | |
23231 | dnet_ntoa (); | |
23232 | ; | |
23233 | return 0; | |
23234 | } | |
23235 | _ACEOF | |
23236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23238 | (eval $ac_link) 2>&5 | |
23239 | ac_status=$? | |
23240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23241 | (exit $ac_status); } && | |
23242 | { ac_try='test -s conftest$ac_exeext' | |
23243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23244 | (eval $ac_try) 2>&5 | |
23245 | ac_status=$? | |
23246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23247 | (exit $ac_status); }; }; then | |
23248 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23249 | else | |
23250 | echo "$as_me: failed program was:" >&5 | |
23251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23252 | ||
23253 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23254 | fi | |
23255 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23256 | LIBS=$ac_check_lib_save_LIBS | |
23257 | fi | |
23258 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23259 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23260 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 23261 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
23262 | fi |
23263 | ||
21d1c967 | 23264 | fi |
e6cc62c6 VS |
23265 | fi |
23266 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23267 | LIBS="$ac_xsave_LIBS" | |
90dd450c | 23268 | |
21d1c967 GD |
23269 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23270 | # to get the SysV transport functions. | |
e6cc62c6 | 23271 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
23272 | # needs -lnsl. |
23273 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23274 | # on Irix 5.2, according to T.E. Dickey. |
23275 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23276 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23277 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23278 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23279 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23281 | else | |
23282 | cat >conftest.$ac_ext <<_ACEOF | |
23283 | #line $LINENO "configure" | |
23284 | /* confdefs.h. */ | |
23285 | _ACEOF | |
23286 | cat confdefs.h >>conftest.$ac_ext | |
23287 | cat >>conftest.$ac_ext <<_ACEOF | |
23288 | /* end confdefs.h. */ | |
21d1c967 | 23289 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23290 | which can conflict with char gethostbyname (); below. |
23291 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23292 | <limits.h> exists even on freestanding compilers. */ | |
23293 | #ifdef __STDC__ | |
23294 | # include <limits.h> | |
23295 | #else | |
23296 | # include <assert.h> | |
23297 | #endif | |
21d1c967 | 23298 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23299 | #ifdef __cplusplus |
23300 | extern "C" | |
23301 | { | |
23302 | #endif | |
21d1c967 | 23303 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23304 | builtin and then its argument prototype would still apply. */ |
23305 | char gethostbyname (); | |
21d1c967 GD |
23306 | /* The GNU C library defines this for functions which it implements |
23307 | to always fail with ENOSYS. Some functions are actually named | |
23308 | something starting with __ and the normal name is an alias. */ | |
23309 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23310 | choke me | |
23311 | #else | |
e6cc62c6 VS |
23312 | char (*f) () = gethostbyname; |
23313 | #endif | |
23314 | #ifdef __cplusplus | |
23315 | } | |
21d1c967 | 23316 | #endif |
90dd450c | 23317 | |
e6cc62c6 VS |
23318 | int |
23319 | main () | |
23320 | { | |
23321 | return f != gethostbyname; | |
23322 | ; | |
23323 | return 0; | |
23324 | } | |
23325 | _ACEOF | |
23326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23328 | (eval $ac_link) 2>&5 | |
23329 | ac_status=$? | |
23330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23331 | (exit $ac_status); } && | |
23332 | { ac_try='test -s conftest$ac_exeext' | |
23333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23334 | (eval $ac_try) 2>&5 | |
23335 | ac_status=$? | |
23336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23337 | (exit $ac_status); }; }; then | |
23338 | ac_cv_func_gethostbyname=yes | |
23339 | else | |
23340 | echo "$as_me: failed program was:" >&5 | |
23341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23342 | ||
23343 | ac_cv_func_gethostbyname=no | |
23344 | fi | |
23345 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23346 | fi | |
23347 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23348 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 23349 | |
21d1c967 | 23350 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23351 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23352 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23353 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23355 | else |
e6cc62c6 | 23356 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23357 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
23358 | cat >conftest.$ac_ext <<_ACEOF |
23359 | #line $LINENO "configure" | |
23360 | /* confdefs.h. */ | |
23361 | _ACEOF | |
23362 | cat confdefs.h >>conftest.$ac_ext | |
23363 | cat >>conftest.$ac_ext <<_ACEOF | |
23364 | /* end confdefs.h. */ | |
23365 | ||
21d1c967 | 23366 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23367 | #ifdef __cplusplus |
23368 | extern "C" | |
23369 | #endif | |
21d1c967 | 23370 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23371 | builtin and then its argument prototype would still apply. */ |
23372 | char gethostbyname (); | |
23373 | int | |
23374 | main () | |
23375 | { | |
23376 | gethostbyname (); | |
23377 | ; | |
23378 | return 0; | |
23379 | } | |
23380 | _ACEOF | |
23381 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23383 | (eval $ac_link) 2>&5 | |
23384 | ac_status=$? | |
23385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23386 | (exit $ac_status); } && | |
23387 | { ac_try='test -s conftest$ac_exeext' | |
23388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23389 | (eval $ac_try) 2>&5 | |
23390 | ac_status=$? | |
23391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23392 | (exit $ac_status); }; }; then | |
23393 | ac_cv_lib_nsl_gethostbyname=yes | |
23394 | else | |
23395 | echo "$as_me: failed program was:" >&5 | |
23396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23397 | ||
23398 | ac_cv_lib_nsl_gethostbyname=no | |
23399 | fi | |
23400 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23401 | LIBS=$ac_check_lib_save_LIBS | |
23402 | fi | |
23403 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23404 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23405 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23406 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23407 | fi |
247f5006 | 23408 | |
e6cc62c6 VS |
23409 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
23410 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
23411 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
23412 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23414 | else |
e6cc62c6 VS |
23415 | ac_check_lib_save_LIBS=$LIBS |
23416 | LIBS="-lbsd $LIBS" | |
23417 | cat >conftest.$ac_ext <<_ACEOF | |
23418 | #line $LINENO "configure" | |
23419 | /* confdefs.h. */ | |
23420 | _ACEOF | |
23421 | cat confdefs.h >>conftest.$ac_ext | |
23422 | cat >>conftest.$ac_ext <<_ACEOF | |
23423 | /* end confdefs.h. */ | |
23424 | ||
23425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23426 | #ifdef __cplusplus | |
23427 | extern "C" | |
23428 | #endif | |
23429 | /* We use char because int might match the return type of a gcc2 | |
23430 | builtin and then its argument prototype would still apply. */ | |
23431 | char gethostbyname (); | |
23432 | int | |
23433 | main () | |
23434 | { | |
23435 | gethostbyname (); | |
23436 | ; | |
23437 | return 0; | |
23438 | } | |
23439 | _ACEOF | |
23440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23442 | (eval $ac_link) 2>&5 | |
23443 | ac_status=$? | |
23444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23445 | (exit $ac_status); } && | |
23446 | { ac_try='test -s conftest$ac_exeext' | |
23447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23448 | (eval $ac_try) 2>&5 | |
23449 | ac_status=$? | |
23450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23451 | (exit $ac_status); }; }; then | |
23452 | ac_cv_lib_bsd_gethostbyname=yes | |
23453 | else | |
23454 | echo "$as_me: failed program was:" >&5 | |
23455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23456 | ||
23457 | ac_cv_lib_bsd_gethostbyname=no | |
23458 | fi | |
23459 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23460 | LIBS=$ac_check_lib_save_LIBS | |
23461 | fi | |
23462 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23463 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23464 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23465 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 23466 | fi |
90dd450c | 23467 | |
e6cc62c6 | 23468 | fi |
90dd450c VZ |
23469 | fi |
23470 | ||
21d1c967 GD |
23471 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
23472 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23473 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23474 | # on later versions), says Simon Leinen: it contains gethostby* |
23475 | # variants that don't use the name server (or something). -lsocket | |
23476 | # must be given before -lnsl if both are needed. We assume that | |
23477 | # if connect needs -lnsl, so does gethostbyname. | |
23478 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23479 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23480 | if test "${ac_cv_func_connect+set}" = set; then | |
23481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23482 | else | |
23483 | cat >conftest.$ac_ext <<_ACEOF | |
23484 | #line $LINENO "configure" | |
23485 | /* confdefs.h. */ | |
23486 | _ACEOF | |
23487 | cat confdefs.h >>conftest.$ac_ext | |
23488 | cat >>conftest.$ac_ext <<_ACEOF | |
23489 | /* end confdefs.h. */ | |
21d1c967 | 23490 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23491 | which can conflict with char connect (); below. |
23492 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23493 | <limits.h> exists even on freestanding compilers. */ | |
23494 | #ifdef __STDC__ | |
23495 | # include <limits.h> | |
23496 | #else | |
23497 | # include <assert.h> | |
23498 | #endif | |
21d1c967 | 23499 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23500 | #ifdef __cplusplus |
23501 | extern "C" | |
23502 | { | |
23503 | #endif | |
21d1c967 | 23504 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23505 | builtin and then its argument prototype would still apply. */ |
23506 | char connect (); | |
21d1c967 GD |
23507 | /* The GNU C library defines this for functions which it implements |
23508 | to always fail with ENOSYS. Some functions are actually named | |
23509 | something starting with __ and the normal name is an alias. */ | |
23510 | #if defined (__stub_connect) || defined (__stub___connect) | |
23511 | choke me | |
23512 | #else | |
e6cc62c6 VS |
23513 | char (*f) () = connect; |
23514 | #endif | |
23515 | #ifdef __cplusplus | |
23516 | } | |
21d1c967 | 23517 | #endif |
90dd450c | 23518 | |
e6cc62c6 VS |
23519 | int |
23520 | main () | |
23521 | { | |
23522 | return f != connect; | |
23523 | ; | |
23524 | return 0; | |
23525 | } | |
23526 | _ACEOF | |
23527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23529 | (eval $ac_link) 2>&5 | |
23530 | ac_status=$? | |
23531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23532 | (exit $ac_status); } && | |
23533 | { ac_try='test -s conftest$ac_exeext' | |
23534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23535 | (eval $ac_try) 2>&5 | |
23536 | ac_status=$? | |
23537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23538 | (exit $ac_status); }; }; then | |
23539 | ac_cv_func_connect=yes | |
23540 | else | |
23541 | echo "$as_me: failed program was:" >&5 | |
23542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23543 | ||
23544 | ac_cv_func_connect=no | |
23545 | fi | |
23546 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23547 | fi | |
23548 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23549 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 23550 | |
21d1c967 | 23551 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23552 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23553 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23554 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 23556 | else |
e6cc62c6 | 23557 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23558 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23559 | cat >conftest.$ac_ext <<_ACEOF |
23560 | #line $LINENO "configure" | |
23561 | /* confdefs.h. */ | |
23562 | _ACEOF | |
23563 | cat confdefs.h >>conftest.$ac_ext | |
23564 | cat >>conftest.$ac_ext <<_ACEOF | |
23565 | /* end confdefs.h. */ | |
23566 | ||
21d1c967 | 23567 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23568 | #ifdef __cplusplus |
23569 | extern "C" | |
23570 | #endif | |
21d1c967 | 23571 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23572 | builtin and then its argument prototype would still apply. */ |
23573 | char connect (); | |
23574 | int | |
23575 | main () | |
23576 | { | |
23577 | connect (); | |
23578 | ; | |
23579 | return 0; | |
23580 | } | |
23581 | _ACEOF | |
23582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23584 | (eval $ac_link) 2>&5 | |
23585 | ac_status=$? | |
23586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23587 | (exit $ac_status); } && | |
23588 | { ac_try='test -s conftest$ac_exeext' | |
23589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23590 | (eval $ac_try) 2>&5 | |
23591 | ac_status=$? | |
23592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23593 | (exit $ac_status); }; }; then | |
23594 | ac_cv_lib_socket_connect=yes | |
23595 | else | |
23596 | echo "$as_me: failed program was:" >&5 | |
23597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23598 | ||
23599 | ac_cv_lib_socket_connect=no | |
23600 | fi | |
23601 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23602 | LIBS=$ac_check_lib_save_LIBS | |
23603 | fi | |
23604 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23605 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23606 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 23607 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 23608 | fi |
90dd450c | 23609 | |
21d1c967 | 23610 | fi |
90dd450c | 23611 | |
e6cc62c6 VS |
23612 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23613 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23614 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23615 | if test "${ac_cv_func_remove+set}" = set; then | |
23616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23617 | else | |
23618 | cat >conftest.$ac_ext <<_ACEOF | |
23619 | #line $LINENO "configure" | |
23620 | /* confdefs.h. */ | |
23621 | _ACEOF | |
23622 | cat confdefs.h >>conftest.$ac_ext | |
23623 | cat >>conftest.$ac_ext <<_ACEOF | |
23624 | /* end confdefs.h. */ | |
21d1c967 | 23625 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23626 | which can conflict with char remove (); below. |
23627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23628 | <limits.h> exists even on freestanding compilers. */ | |
23629 | #ifdef __STDC__ | |
23630 | # include <limits.h> | |
23631 | #else | |
23632 | # include <assert.h> | |
23633 | #endif | |
21d1c967 | 23634 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23635 | #ifdef __cplusplus |
23636 | extern "C" | |
23637 | { | |
23638 | #endif | |
21d1c967 | 23639 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23640 | builtin and then its argument prototype would still apply. */ |
23641 | char remove (); | |
21d1c967 GD |
23642 | /* The GNU C library defines this for functions which it implements |
23643 | to always fail with ENOSYS. Some functions are actually named | |
23644 | something starting with __ and the normal name is an alias. */ | |
23645 | #if defined (__stub_remove) || defined (__stub___remove) | |
23646 | choke me | |
23647 | #else | |
e6cc62c6 VS |
23648 | char (*f) () = remove; |
23649 | #endif | |
23650 | #ifdef __cplusplus | |
23651 | } | |
21d1c967 | 23652 | #endif |
90dd450c | 23653 | |
e6cc62c6 VS |
23654 | int |
23655 | main () | |
23656 | { | |
23657 | return f != remove; | |
23658 | ; | |
23659 | return 0; | |
23660 | } | |
23661 | _ACEOF | |
23662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23664 | (eval $ac_link) 2>&5 | |
23665 | ac_status=$? | |
23666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23667 | (exit $ac_status); } && | |
23668 | { ac_try='test -s conftest$ac_exeext' | |
23669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23670 | (eval $ac_try) 2>&5 | |
23671 | ac_status=$? | |
23672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23673 | (exit $ac_status); }; }; then | |
23674 | ac_cv_func_remove=yes | |
23675 | else | |
23676 | echo "$as_me: failed program was:" >&5 | |
23677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23678 | ||
23679 | ac_cv_func_remove=no | |
23680 | fi | |
23681 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23682 | fi | |
23683 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23684 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 23685 | |
21d1c967 | 23686 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23687 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23688 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23689 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23691 | else |
e6cc62c6 | 23692 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23693 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
23694 | cat >conftest.$ac_ext <<_ACEOF |
23695 | #line $LINENO "configure" | |
23696 | /* confdefs.h. */ | |
23697 | _ACEOF | |
23698 | cat confdefs.h >>conftest.$ac_ext | |
23699 | cat >>conftest.$ac_ext <<_ACEOF | |
23700 | /* end confdefs.h. */ | |
23701 | ||
21d1c967 | 23702 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23703 | #ifdef __cplusplus |
23704 | extern "C" | |
23705 | #endif | |
21d1c967 | 23706 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23707 | builtin and then its argument prototype would still apply. */ |
23708 | char remove (); | |
23709 | int | |
23710 | main () | |
23711 | { | |
23712 | remove (); | |
23713 | ; | |
23714 | return 0; | |
23715 | } | |
23716 | _ACEOF | |
23717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23719 | (eval $ac_link) 2>&5 | |
23720 | ac_status=$? | |
23721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23722 | (exit $ac_status); } && | |
23723 | { ac_try='test -s conftest$ac_exeext' | |
23724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23725 | (eval $ac_try) 2>&5 | |
23726 | ac_status=$? | |
23727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23728 | (exit $ac_status); }; }; then | |
23729 | ac_cv_lib_posix_remove=yes | |
23730 | else | |
23731 | echo "$as_me: failed program was:" >&5 | |
23732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23733 | ||
23734 | ac_cv_lib_posix_remove=no | |
23735 | fi | |
23736 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23737 | LIBS=$ac_check_lib_save_LIBS | |
23738 | fi | |
23739 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23740 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23741 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 23742 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 23743 | fi |
19bc6aad | 23744 | |
90dd450c | 23745 | fi |
19bc6aad | 23746 | |
21d1c967 | 23747 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23748 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23749 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23750 | if test "${ac_cv_func_shmat+set}" = set; then | |
23751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23752 | else | |
23753 | cat >conftest.$ac_ext <<_ACEOF | |
23754 | #line $LINENO "configure" | |
23755 | /* confdefs.h. */ | |
23756 | _ACEOF | |
23757 | cat confdefs.h >>conftest.$ac_ext | |
23758 | cat >>conftest.$ac_ext <<_ACEOF | |
23759 | /* end confdefs.h. */ | |
21d1c967 | 23760 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23761 | which can conflict with char shmat (); below. |
23762 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23763 | <limits.h> exists even on freestanding compilers. */ | |
23764 | #ifdef __STDC__ | |
23765 | # include <limits.h> | |
23766 | #else | |
23767 | # include <assert.h> | |
23768 | #endif | |
21d1c967 | 23769 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23770 | #ifdef __cplusplus |
23771 | extern "C" | |
23772 | { | |
23773 | #endif | |
21d1c967 | 23774 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23775 | builtin and then its argument prototype would still apply. */ |
23776 | char shmat (); | |
21d1c967 GD |
23777 | /* The GNU C library defines this for functions which it implements |
23778 | to always fail with ENOSYS. Some functions are actually named | |
23779 | something starting with __ and the normal name is an alias. */ | |
23780 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23781 | choke me | |
23782 | #else | |
e6cc62c6 VS |
23783 | char (*f) () = shmat; |
23784 | #endif | |
23785 | #ifdef __cplusplus | |
23786 | } | |
21d1c967 | 23787 | #endif |
90dd450c | 23788 | |
e6cc62c6 VS |
23789 | int |
23790 | main () | |
23791 | { | |
23792 | return f != shmat; | |
23793 | ; | |
23794 | return 0; | |
23795 | } | |
23796 | _ACEOF | |
23797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23799 | (eval $ac_link) 2>&5 | |
23800 | ac_status=$? | |
23801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23802 | (exit $ac_status); } && | |
23803 | { ac_try='test -s conftest$ac_exeext' | |
23804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23805 | (eval $ac_try) 2>&5 | |
23806 | ac_status=$? | |
23807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23808 | (exit $ac_status); }; }; then | |
23809 | ac_cv_func_shmat=yes | |
23810 | else | |
23811 | echo "$as_me: failed program was:" >&5 | |
23812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23813 | ||
23814 | ac_cv_func_shmat=no | |
23815 | fi | |
23816 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23817 | fi | |
23818 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23819 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 23820 | |
21d1c967 | 23821 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23822 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23823 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23824 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 23826 | else |
e6cc62c6 | 23827 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 23828 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
23829 | cat >conftest.$ac_ext <<_ACEOF |
23830 | #line $LINENO "configure" | |
23831 | /* confdefs.h. */ | |
23832 | _ACEOF | |
23833 | cat confdefs.h >>conftest.$ac_ext | |
23834 | cat >>conftest.$ac_ext <<_ACEOF | |
23835 | /* end confdefs.h. */ | |
23836 | ||
5c6fa7d2 | 23837 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23838 | #ifdef __cplusplus |
23839 | extern "C" | |
23840 | #endif | |
5c6fa7d2 | 23841 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23842 | builtin and then its argument prototype would still apply. */ |
23843 | char shmat (); | |
23844 | int | |
23845 | main () | |
23846 | { | |
23847 | shmat (); | |
23848 | ; | |
23849 | return 0; | |
23850 | } | |
23851 | _ACEOF | |
23852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23854 | (eval $ac_link) 2>&5 | |
23855 | ac_status=$? | |
23856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23857 | (exit $ac_status); } && | |
23858 | { ac_try='test -s conftest$ac_exeext' | |
23859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23860 | (eval $ac_try) 2>&5 | |
23861 | ac_status=$? | |
23862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23863 | (exit $ac_status); }; }; then | |
23864 | ac_cv_lib_ipc_shmat=yes | |
23865 | else | |
23866 | echo "$as_me: failed program was:" >&5 | |
23867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23868 | ||
23869 | ac_cv_lib_ipc_shmat=no | |
23870 | fi | |
23871 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23872 | LIBS=$ac_check_lib_save_LIBS | |
23873 | fi | |
23874 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23875 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23876 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 23877 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 23878 | fi |
90dd450c | 23879 | |
90dd450c | 23880 | fi |
21d1c967 | 23881 | fi |
10f2d63a | 23882 | |
21d1c967 | 23883 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23884 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
23885 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23886 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23887 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23888 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23889 | # These have to be linked with before -lX11, unlike the other | |
23890 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23891 | # John Interrante, Karl Berry |
23892 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23893 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23894 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23896 | else | |
23897 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23898 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23899 | cat >conftest.$ac_ext <<_ACEOF |
23900 | #line $LINENO "configure" | |
23901 | /* confdefs.h. */ | |
23902 | _ACEOF | |
23903 | cat confdefs.h >>conftest.$ac_ext | |
23904 | cat >>conftest.$ac_ext <<_ACEOF | |
23905 | /* end confdefs.h. */ | |
23906 | ||
21d1c967 | 23907 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23908 | #ifdef __cplusplus |
23909 | extern "C" | |
23910 | #endif | |
21d1c967 | 23911 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23912 | builtin and then its argument prototype would still apply. */ |
23913 | char IceConnectionNumber (); | |
23914 | int | |
23915 | main () | |
23916 | { | |
23917 | IceConnectionNumber (); | |
23918 | ; | |
23919 | return 0; | |
23920 | } | |
23921 | _ACEOF | |
23922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23924 | (eval $ac_link) 2>&5 | |
23925 | ac_status=$? | |
23926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23927 | (exit $ac_status); } && | |
23928 | { ac_try='test -s conftest$ac_exeext' | |
23929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23930 | (eval $ac_try) 2>&5 | |
23931 | ac_status=$? | |
23932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23933 | (exit $ac_status); }; }; then | |
23934 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23935 | else | |
23936 | echo "$as_me: failed program was:" >&5 | |
23937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23938 | ||
23939 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23940 | fi | |
23941 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23942 | LIBS=$ac_check_lib_save_LIBS | |
23943 | fi | |
23944 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23945 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23946 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 23947 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 23948 | fi |
21d1c967 | 23949 | |
e6cc62c6 | 23950 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 23951 | |
10f2d63a VZ |
23952 | fi |
23953 | ||
8284b0c5 | 23954 | |
21d1c967 | 23955 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23956 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23957 | echo "$as_me: error: X11 not found" >&2;} | |
23958 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
23959 | fi |
23960 | ||
2b5f62a0 VZ |
23961 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
23962 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
23963 | AFMINSTALL=afminstall |
23964 | COMPILED_X_PROGRAM=0 | |
23965 | ||
e6cc62c6 VS |
23966 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
23967 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
23968 | ||
21d1c967 | 23969 | ac_find_includes= |
2b5f62a0 | 23970 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
23971 | do |
23972 | if test -f "$ac_dir/Xm/Xm.h"; then | |
23973 | ac_find_includes=$ac_dir | |
23974 | break | |
23975 | fi | |
23976 | done | |
23977 | ||
23978 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
23979 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
23980 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
23981 | ||
2b5f62a0 | 23982 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
23983 | ac_path_to_include="" |
23984 | else | |
2b5f62a0 VZ |
23985 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
23986 | result=$? | |
23987 | if test $result = 0; then | |
23988 | ac_path_to_include="" | |
23989 | else | |
23990 | ac_path_to_include=" -I$ac_find_includes" | |
23991 | fi | |
dd0e4a90 VZ |
23992 | fi |
23993 | ||
23994 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 23995 | else |
e6cc62c6 VS |
23996 | cat >conftest.$ac_ext <<_ACEOF |
23997 | #line $LINENO "configure" | |
23998 | /* confdefs.h. */ | |
23999 | _ACEOF | |
24000 | cat confdefs.h >>conftest.$ac_ext | |
24001 | cat >>conftest.$ac_ext <<_ACEOF | |
24002 | /* end confdefs.h. */ | |
21d1c967 GD |
24003 | |
24004 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24005 | |
24006 | int | |
24007 | main () | |
24008 | { | |
21d1c967 GD |
24009 | |
24010 | int version; | |
24011 | version = xmUseVersion; | |
e6cc62c6 VS |
24012 | |
24013 | ; | |
24014 | return 0; | |
24015 | } | |
24016 | _ACEOF | |
24017 | rm -f conftest.$ac_objext | |
24018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24019 | (eval $ac_compile) 2>&5 | |
24020 | ac_status=$? | |
24021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24022 | (exit $ac_status); } && | |
24023 | { ac_try='test -s conftest.$ac_objext' | |
24024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24025 | (eval $ac_try) 2>&5 | |
24026 | ac_status=$? | |
24027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24028 | (exit $ac_status); }; }; then | |
24029 | ||
24030 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
24031 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24032 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 24033 | |
10f2d63a | 24034 | else |
e6cc62c6 VS |
24035 | echo "$as_me: failed program was:" >&5 |
24036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24037 | ||
24038 | ||
24039 | echo "$as_me:$LINENO: result: no" >&5 | |
24040 | echo "${ECHO_T}no" >&6 | |
24041 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
24042 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
24043 | { (exit 1); exit 1; }; } | |
24044 | ||
24045 | ||
10f2d63a | 24046 | fi |
e6cc62c6 | 24047 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 24048 | fi |
10f2d63a | 24049 | |
21d1c967 | 24050 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
24051 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
24052 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
24053 | ||
21d1c967 | 24054 | ac_find_libraries= |
2b5f62a0 | 24055 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24056 | do |
24057 | for ac_extension in a so sl dylib; do | |
24058 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
24059 | ac_find_libraries=$ac_dir | |
24060 | break 2 | |
24061 | fi | |
24062 | done | |
24063 | done | |
24064 | ||
24065 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
24066 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
24067 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24068 | ||
21d1c967 | 24069 | |
21d1c967 GD |
24070 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
24071 | result=$? | |
24072 | if test $result = 0; then | |
24073 | ac_path_to_link="" | |
24074 | else | |
24075 | ac_path_to_link=" -L$ac_find_libraries" | |
24076 | fi | |
24077 | ||
21d1c967 | 24078 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 24079 | else |
dd0e4a90 VZ |
24080 | save_CFLAGS=$CFLAGS |
24081 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24082 | ||
e6cc62c6 VS |
24083 | cat >conftest.$ac_ext <<_ACEOF |
24084 | #line $LINENO "configure" | |
24085 | /* confdefs.h. */ | |
24086 | _ACEOF | |
24087 | cat confdefs.h >>conftest.$ac_ext | |
24088 | cat >>conftest.$ac_ext <<_ACEOF | |
24089 | /* end confdefs.h. */ | |
21d1c967 GD |
24090 | |
24091 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24092 | |
24093 | int | |
24094 | main () | |
24095 | { | |
21d1c967 GD |
24096 | |
24097 | int version; | |
24098 | version = xmUseVersion; | |
e6cc62c6 VS |
24099 | |
24100 | ; | |
24101 | return 0; | |
24102 | } | |
24103 | _ACEOF | |
24104 | rm -f conftest.$ac_objext | |
24105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24106 | (eval $ac_compile) 2>&5 | |
24107 | ac_status=$? | |
24108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24109 | (exit $ac_status); } && | |
24110 | { ac_try='test -s conftest.$ac_objext' | |
24111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24112 | (eval $ac_try) 2>&5 | |
24113 | ac_status=$? | |
24114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24115 | (exit $ac_status); }; }; then | |
24116 | ||
24117 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
24118 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24119 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 24120 | |
d836ee96 | 24121 | else |
e6cc62c6 VS |
24122 | echo "$as_me: failed program was:" >&5 |
24123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24124 | ||
24125 | ||
24126 | echo "$as_me:$LINENO: result: no" >&5 | |
24127 | echo "${ECHO_T}no" >&6 | |
24128 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
24129 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
24130 | { (exit 1); exit 1; }; } | |
24131 | ||
24132 | ||
d836ee96 | 24133 | fi |
e6cc62c6 | 24134 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
24135 | |
24136 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
24137 | fi |
24138 | fi | |
24139 | ||
24140 | xpm_link= | |
e6cc62c6 VS |
24141 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
24142 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
24143 | ||
21d1c967 | 24144 | ac_find_libraries= |
2b5f62a0 | 24145 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24146 | do |
24147 | for ac_extension in a so sl dylib; do | |
24148 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
24149 | ac_find_libraries=$ac_dir | |
24150 | break 2 | |
24151 | fi | |
24152 | done | |
24153 | done | |
24154 | ||
24155 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24156 | |
21d1c967 GD |
24157 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
24158 | result=$? | |
24159 | if test $result = 0; then | |
24160 | ac_path_to_link="" | |
24161 | else | |
24162 | ac_path_to_link=" -L$ac_find_libraries" | |
24163 | fi | |
24164 | ||
24165 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 24166 | |
21d1c967 | 24167 | xpm_link=" -lXpm" |
e6cc62c6 | 24168 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24169 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 24170 | _ACEOF |
90dd450c | 24171 | |
e6cc62c6 VS |
24172 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
24173 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 24174 | else |
dd0e4a90 VZ |
24175 | save_CFLAGS=$CFLAGS |
24176 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24177 | ||
e6cc62c6 VS |
24178 | cat >conftest.$ac_ext <<_ACEOF |
24179 | #line $LINENO "configure" | |
24180 | /* confdefs.h. */ | |
24181 | _ACEOF | |
24182 | cat confdefs.h >>conftest.$ac_ext | |
24183 | cat >>conftest.$ac_ext <<_ACEOF | |
24184 | /* end confdefs.h. */ | |
21d1c967 GD |
24185 | |
24186 | #include <X11/xpm.h> | |
e6cc62c6 VS |
24187 | |
24188 | int | |
24189 | main () | |
24190 | { | |
21d1c967 GD |
24191 | |
24192 | int version; | |
24193 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
24194 | |
24195 | ; | |
24196 | return 0; | |
24197 | } | |
24198 | _ACEOF | |
24199 | rm -f conftest.$ac_objext | |
24200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24201 | (eval $ac_compile) 2>&5 | |
24202 | ac_status=$? | |
24203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24204 | (exit $ac_status); } && | |
24205 | { ac_try='test -s conftest.$ac_objext' | |
24206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24207 | (eval $ac_try) 2>&5 | |
24208 | ac_status=$? | |
24209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24210 | (exit $ac_status); }; }; then | |
24211 | ||
21d1c967 | 24212 | xpm_link=" -lXpm" |
e6cc62c6 | 24213 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24214 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 24215 | _ACEOF |
21d1c967 | 24216 | |
e6cc62c6 VS |
24217 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
24218 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24219 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 24220 | |
d836ee96 | 24221 | else |
e6cc62c6 VS |
24222 | echo "$as_me: failed program was:" >&5 |
24223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24224 | ||
24225 | ||
24226 | echo "$as_me:$LINENO: result: no" >&5 | |
24227 | echo "${ECHO_T}no" >&6 | |
24228 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
24229 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
24230 | ||
24231 | ||
d836ee96 | 24232 | fi |
e6cc62c6 | 24233 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
24234 | |
24235 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
24236 | fi |
24237 | ||
e6cc62c6 VS |
24238 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
24239 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
24240 | libp_link="" |
24241 | libsm_ice_link="" | |
24242 | libs_found=0 | |
24243 | for libp in "" " -lXp"; do | |
24244 | if test "$libs_found" = "0"; then | |
24245 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 24246 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
24247 | save_LIBS="$LIBS" |
24248 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
24249 | save_CFLAGS=$CFLAGS |
24250 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24251 | ||
e6cc62c6 VS |
24252 | cat >conftest.$ac_ext <<_ACEOF |
24253 | #line $LINENO "configure" | |
24254 | /* confdefs.h. */ | |
24255 | _ACEOF | |
24256 | cat confdefs.h >>conftest.$ac_ext | |
24257 | cat >>conftest.$ac_ext <<_ACEOF | |
24258 | /* end confdefs.h. */ | |
17234b26 | 24259 | |
6a30f1c8 MB |
24260 | #include <Xm/Xm.h> |
24261 | #include <Xm/List.h> | |
e6cc62c6 VS |
24262 | |
24263 | int | |
24264 | main () | |
24265 | { | |
6a30f1c8 MB |
24266 | |
24267 | XmString string = NULL; | |
24268 | Widget w = NULL; | |
24269 | int position = 0; | |
24270 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
24271 | |
24272 | ; | |
24273 | return 0; | |
24274 | } | |
24275 | _ACEOF | |
24276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24278 | (eval $ac_link) 2>&5 | |
24279 | ac_status=$? | |
24280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24281 | (exit $ac_status); } && | |
24282 | { ac_try='test -s conftest$ac_exeext' | |
24283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24284 | (eval $ac_try) 2>&5 | |
24285 | ac_status=$? | |
24286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24287 | (exit $ac_status); }; }; then | |
24288 | ||
6a30f1c8 MB |
24289 | libp_link="$libp" |
24290 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
24291 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
24292 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 24293 | libs_found=1 |
e6cc62c6 | 24294 | |
6a30f1c8 | 24295 | else |
e6cc62c6 VS |
24296 | echo "$as_me: failed program was:" >&5 |
24297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24298 | ||
24299 | ||
24300 | ||
6a30f1c8 | 24301 | fi |
e6cc62c6 | 24302 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 24303 | |
6a30f1c8 | 24304 | LIBS="$save_LIBS" |
dd0e4a90 | 24305 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
24306 | fi |
24307 | done | |
24308 | fi | |
24309 | done | |
24310 | ||
24311 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
24312 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
24313 | echo "${ECHO_T}can't find the right libraries" >&6 | |
24314 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
24315 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
24316 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
24317 | fi |
24318 | ||
da494b40 MB |
24319 | save_CFLAGS=$CFLAGS |
24320 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
24321 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
24322 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
24323 | cat >conftest.$ac_ext <<_ACEOF | |
24324 | #line $LINENO "configure" | |
24325 | /* confdefs.h. */ | |
24326 | _ACEOF | |
24327 | cat confdefs.h >>conftest.$ac_ext | |
24328 | cat >>conftest.$ac_ext <<_ACEOF | |
24329 | /* end confdefs.h. */ | |
da494b40 MB |
24330 | |
24331 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24332 | |
24333 | int | |
24334 | main () | |
24335 | { | |
da494b40 MB |
24336 | |
24337 | #if XmVersion < 2000 | |
24338 | #error "Not Motif 2" | |
24339 | #endif | |
e6cc62c6 VS |
24340 | |
24341 | ; | |
24342 | return 0; | |
24343 | } | |
24344 | _ACEOF | |
24345 | rm -f conftest.$ac_objext | |
24346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24347 | (eval $ac_compile) 2>&5 | |
24348 | ac_status=$? | |
24349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24350 | (exit $ac_status); } && | |
24351 | { ac_try='test -s conftest.$ac_objext' | |
24352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24353 | (eval $ac_try) 2>&5 | |
24354 | ac_status=$? | |
24355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24356 | (exit $ac_status); }; }; then | |
24357 | ||
24358 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24359 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
24360 | _ACEOF |
24361 | ||
24362 | echo "$as_me:$LINENO: result: found" >&5 | |
24363 | echo "${ECHO_T}found" >&6 | |
da494b40 | 24364 | |
da494b40 | 24365 | else |
e6cc62c6 VS |
24366 | echo "$as_me: failed program was:" >&5 |
24367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24368 | ||
24369 | ||
24370 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24371 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
24372 | _ACEOF |
24373 | ||
24374 | echo "$as_me:$LINENO: result: not found" >&5 | |
24375 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 24376 | |
da494b40 | 24377 | fi |
e6cc62c6 | 24378 | rm -f conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
24379 | CFLAGS=$save_CFLAGS |
24380 | ||
6a30f1c8 | 24381 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 24382 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
24383 | TOOLKIT=MOTIF |
24384 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
24385 | wxHAVE_XEXT_LIB=1 |
24386 | fi | |
24387 | ||
24388 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
24389 | test "$wxHAVE_XEXT_LIB" = 1; then | |
24390 | save_CFLAGS="$CFLAGS" | |
24391 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24392 | ||
e6cc62c6 VS |
24393 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 |
24394 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
24395 | cat >conftest.$ac_ext <<_ACEOF | |
24396 | #line $LINENO "configure" | |
24397 | /* confdefs.h. */ | |
24398 | _ACEOF | |
24399 | cat confdefs.h >>conftest.$ac_ext | |
24400 | cat >>conftest.$ac_ext <<_ACEOF | |
24401 | /* end confdefs.h. */ | |
24402 | ||
24403 | #include <X11/Xlib.h> | |
f7f78039 | 24404 | #include <X11/extensions/shape.h> |
e6cc62c6 VS |
24405 | |
24406 | int | |
24407 | main () | |
24408 | { | |
f7f78039 MB |
24409 | |
24410 | int dummy1, dummy2; | |
24411 | XShapeQueryExtension((Display*)NULL, | |
24412 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
24413 | |
24414 | ; | |
24415 | return 0; | |
24416 | } | |
24417 | _ACEOF | |
24418 | rm -f conftest.$ac_objext | |
24419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24420 | (eval $ac_compile) 2>&5 | |
24421 | ac_status=$? | |
24422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24423 | (exit $ac_status); } && | |
24424 | { ac_try='test -s conftest.$ac_objext' | |
24425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24426 | (eval $ac_try) 2>&5 | |
24427 | ac_status=$? | |
24428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24429 | (exit $ac_status); }; }; then | |
24430 | ||
24431 | cat >>confdefs.h <<\_ACEOF | |
f7f78039 | 24432 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
24433 | _ACEOF |
24434 | ||
24435 | echo "$as_me:$LINENO: result: found" >&5 | |
24436 | echo "${ECHO_T}found" >&6 | |
f7f78039 | 24437 | |
f7f78039 | 24438 | else |
e6cc62c6 VS |
24439 | echo "$as_me: failed program was:" >&5 |
24440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24441 | ||
24442 | ||
24443 | echo "$as_me:$LINENO: result: not found" >&5 | |
24444 | echo "${ECHO_T}not found" >&6 | |
24445 | ||
f7f78039 | 24446 | fi |
e6cc62c6 | 24447 | rm -f conftest.$ac_objext conftest.$ac_ext |
f7f78039 | 24448 | CFLAGS="$save_CFLAGS" |
21d1c967 GD |
24449 | fi |
24450 | ||
24451 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 24452 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 24453 | |
0c98a14e | 24454 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
24455 | TOOLKIT=MAC |
24456 | GUIDIST=MACX_DIST | |
cf615ebb | 24457 | WXBASEPORT="_carbon" |
21d1c967 GD |
24458 | fi |
24459 | ||
ac0c4cc3 DE |
24460 | if test "$wxUSE_COCOA" = 1; then |
24461 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
24462 | TOOLKIT=COCOA | |
24463 | GUIDIST=COCOA_DIST | |
24464 | fi | |
24465 | ||
21d1c967 GD |
24466 | if test "$wxUSE_PM" = 1; then |
24467 | TOOLKIT=PM | |
24468 | GUIDIST=GTK_DIST | |
e6cc62c6 VS |
24469 | { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5 |
24470 | echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;} | |
f657dbe7 | 24471 | wxUSE_THREADS="no" |
21d1c967 GD |
24472 | fi |
24473 | ||
24474 | if test "$TOOLKIT" = "PM" ; then | |
24475 | TOOLKIT_DIR="os2" | |
24476 | else | |
24477 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
24478 | fi | |
24479 | ||
24480 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
24481 | ||
24482 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
24483 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
24484 | ||
24485 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
24486 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
24487 | ||
24488 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
24489 | if test "$wxUSE_X11" = 1; then | |
24490 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
24491 | else | |
24492 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
24493 | fi | |
24494 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
24495 | WIDGET_SET=univ | |
24496 | else | |
24497 | ALL_OBJECTS="\$(GUIOBJS)" | |
24498 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24499 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24500 | fi | |
24501 | ||
24502 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
24503 | ||
24504 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
24505 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
24506 | fi | |
24507 | ||
24508 | if test "$wxUSE_HTML" = "yes"; then | |
24509 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
24510 | fi | |
24511 | ||
24512 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
24513 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
24514 | fi | |
24515 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
24516 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
24517 | fi | |
24518 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
24519 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
24520 | fi | |
24521 | ||
24522 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
24523 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 24524 | else |
21d1c967 GD |
24525 | USE_GUI=0 |
24526 | ||
24527 | TOOLKIT_DIR="base" | |
24528 | ||
24529 | if test "$USE_WIN32" = 1 ; then | |
24530 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
24531 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
24532 | ||
24533 | TOOLKIT="MSW" | |
24534 | else | |
24535 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
24536 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
24537 | fi | |
24538 | ||
24539 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24540 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24541 | ||
24542 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
24543 | ||
24544 | GUIDIST="BASE_DIST" | |
24545 | DISTDIR="wxBase" | |
d836ee96 VZ |
24546 | fi |
24547 | ||
8284b0c5 | 24548 | |
8647bec6 RG |
24549 | |
24550 | ||
24551 | IODBC_C_SRC="" | |
24552 | ||
24553 | ||
24554 | if test "$TOOLKIT" != "MSW" ; then | |
24555 | ||
bb41dcbe | 24556 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 24557 | |
bb41dcbe | 24558 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
24559 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
24560 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24561 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24563 | fi | |
24564 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24565 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24566 | else | |
24567 | # Is the header compilable? | |
24568 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
24569 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
24570 | cat >conftest.$ac_ext <<_ACEOF | |
24571 | #line $LINENO "configure" | |
24572 | /* confdefs.h. */ | |
24573 | _ACEOF | |
24574 | cat confdefs.h >>conftest.$ac_ext | |
24575 | cat >>conftest.$ac_ext <<_ACEOF | |
24576 | /* end confdefs.h. */ | |
24577 | $ac_includes_default | |
8647bec6 | 24578 | #include <sql.h> |
e6cc62c6 VS |
24579 | _ACEOF |
24580 | rm -f conftest.$ac_objext | |
24581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24582 | (eval $ac_compile) 2>&5 | |
24583 | ac_status=$? | |
24584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24585 | (exit $ac_status); } && | |
24586 | { ac_try='test -s conftest.$ac_objext' | |
24587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24588 | (eval $ac_try) 2>&5 | |
24589 | ac_status=$? | |
24590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24591 | (exit $ac_status); }; }; then | |
24592 | ac_header_compiler=yes | |
24593 | else | |
24594 | echo "$as_me: failed program was:" >&5 | |
24595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24596 | ||
24597 | ac_header_compiler=no | |
24598 | fi | |
24599 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24600 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24601 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24602 | ||
24603 | # Is the header present? | |
24604 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
24605 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
24606 | cat >conftest.$ac_ext <<_ACEOF | |
24607 | #line $LINENO "configure" | |
24608 | /* confdefs.h. */ | |
24609 | _ACEOF | |
24610 | cat confdefs.h >>conftest.$ac_ext | |
24611 | cat >>conftest.$ac_ext <<_ACEOF | |
24612 | /* end confdefs.h. */ | |
24613 | #include <sql.h> | |
24614 | _ACEOF | |
24615 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24616 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24617 | ac_status=$? | |
24618 | grep -v '^ *+' conftest.er1 >conftest.err | |
24619 | rm -f conftest.er1 | |
24620 | cat conftest.err >&5 | |
24621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24622 | (exit $ac_status); } >/dev/null; then | |
24623 | if test -s conftest.err; then | |
24624 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24625 | else | |
24626 | ac_cpp_err= | |
24627 | fi | |
24628 | else | |
24629 | ac_cpp_err=yes | |
24630 | fi | |
24631 | if test -z "$ac_cpp_err"; then | |
24632 | ac_header_preproc=yes | |
24633 | else | |
24634 | echo "$as_me: failed program was:" >&5 | |
24635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24636 | ||
24637 | ac_header_preproc=no | |
24638 | fi | |
24639 | rm -f conftest.err conftest.$ac_ext | |
24640 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24641 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24642 | ||
24643 | # So? What about this header? | |
24644 | case $ac_header_compiler:$ac_header_preproc in | |
24645 | yes:no ) | |
24646 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24647 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24648 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24649 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24650 | ( | |
24651 | cat <<\_ASBOX | |
24652 | ## ------------------------------------ ## | |
24653 | ## Report this to bug-autoconf@gnu.org. ## | |
24654 | ## ------------------------------------ ## | |
24655 | _ASBOX | |
24656 | ) | | |
24657 | sed "s/^/$as_me: WARNING: /" >&2 | |
24658 | ;; | |
24659 | no:yes ) | |
24660 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 | |
24661 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
24662 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 | |
24663 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
24664 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24665 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24666 | ( | |
24667 | cat <<\_ASBOX | |
24668 | ## ------------------------------------ ## | |
24669 | ## Report this to bug-autoconf@gnu.org. ## | |
24670 | ## ------------------------------------ ## | |
24671 | _ASBOX | |
24672 | ) | | |
24673 | sed "s/^/$as_me: WARNING: /" >&2 | |
24674 | ;; | |
24675 | esac | |
24676 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24677 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24678 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24680 | else |
e6cc62c6 VS |
24681 | ac_cv_header_sql_h=$ac_header_preproc |
24682 | fi | |
24683 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24684 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24685 | ||
bb41dcbe VS |
24686 | fi |
24687 | if test $ac_cv_header_sql_h = yes; then | |
24688 | found_sql_h=1 | |
8647bec6 RG |
24689 | fi |
24690 | ||
e6cc62c6 | 24691 | |
bb41dcbe VS |
24692 | if test "x$found_sql_h" = "x1" ; then |
24693 | echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5 | |
24694 | echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24695 | if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then | |
e6cc62c6 | 24696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 24697 | else |
bb41dcbe VS |
24698 | ac_check_lib_save_LIBS=$LIBS |
24699 | LIBS="-lSQLAllocEnv $LIBS" | |
e6cc62c6 VS |
24700 | cat >conftest.$ac_ext <<_ACEOF |
24701 | #line $LINENO "configure" | |
24702 | /* confdefs.h. */ | |
24703 | _ACEOF | |
24704 | cat confdefs.h >>conftest.$ac_ext | |
24705 | cat >>conftest.$ac_ext <<_ACEOF | |
24706 | /* end confdefs.h. */ | |
24707 | ||
8647bec6 | 24708 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24709 | #ifdef __cplusplus |
24710 | extern "C" | |
24711 | #endif | |
8647bec6 | 24712 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24713 | builtin and then its argument prototype would still apply. */ |
bb41dcbe | 24714 | char iodbc (); |
e6cc62c6 VS |
24715 | int |
24716 | main () | |
24717 | { | |
bb41dcbe | 24718 | iodbc (); |
e6cc62c6 VS |
24719 | ; |
24720 | return 0; | |
24721 | } | |
24722 | _ACEOF | |
24723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24725 | (eval $ac_link) 2>&5 | |
24726 | ac_status=$? | |
24727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24728 | (exit $ac_status); } && | |
24729 | { ac_try='test -s conftest$ac_exeext' | |
24730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24731 | (eval $ac_try) 2>&5 | |
24732 | ac_status=$? | |
24733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24734 | (exit $ac_status); }; }; then | |
bb41dcbe | 24735 | ac_cv_lib_SQLAllocEnv_iodbc=yes |
8647bec6 | 24736 | else |
e6cc62c6 VS |
24737 | echo "$as_me: failed program was:" >&5 |
24738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24739 | ||
bb41dcbe | 24740 | ac_cv_lib_SQLAllocEnv_iodbc=no |
8647bec6 | 24741 | fi |
e6cc62c6 | 24742 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe VS |
24743 | LIBS=$ac_check_lib_save_LIBS |
24744 | fi | |
24745 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5 | |
24746 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6 | |
24747 | if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then | |
24748 | ODBC_LINK=" -liodbc" | |
24749 | else | |
24750 | ||
24751 | echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5 | |
24752 | echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24753 | if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then | |
24754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24755 | else | |
24756 | ac_check_lib_save_LIBS=$LIBS | |
24757 | LIBS="-lSQLAllocEnv $LIBS" | |
24758 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24759 | #line $LINENO "configure" |
24760 | /* confdefs.h. */ | |
24761 | _ACEOF | |
24762 | cat confdefs.h >>conftest.$ac_ext | |
24763 | cat >>conftest.$ac_ext <<_ACEOF | |
24764 | /* end confdefs.h. */ | |
24765 | ||
8647bec6 | 24766 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24767 | #ifdef __cplusplus |
24768 | extern "C" | |
24769 | #endif | |
8647bec6 | 24770 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24771 | builtin and then its argument prototype would still apply. */ |
bb41dcbe | 24772 | char unixodbc (); |
e6cc62c6 VS |
24773 | int |
24774 | main () | |
24775 | { | |
bb41dcbe | 24776 | unixodbc (); |
e6cc62c6 VS |
24777 | ; |
24778 | return 0; | |
24779 | } | |
24780 | _ACEOF | |
24781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24783 | (eval $ac_link) 2>&5 | |
24784 | ac_status=$? | |
24785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24786 | (exit $ac_status); } && | |
24787 | { ac_try='test -s conftest$ac_exeext' | |
24788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24789 | (eval $ac_try) 2>&5 | |
24790 | ac_status=$? | |
24791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24792 | (exit $ac_status); }; }; then | |
bb41dcbe | 24793 | ac_cv_lib_SQLAllocEnv_unixodbc=yes |
8647bec6 | 24794 | else |
e6cc62c6 VS |
24795 | echo "$as_me: failed program was:" >&5 |
24796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24797 | ||
bb41dcbe | 24798 | ac_cv_lib_SQLAllocEnv_unixodbc=no |
8647bec6 | 24799 | fi |
e6cc62c6 | 24800 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe | 24801 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 24802 | fi |
bb41dcbe VS |
24803 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5 |
24804 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6 | |
24805 | if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then | |
24806 | ODBC_LINK=" -lunixodbc" | |
24807 | else | |
24808 | ||
24809 | echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5 | |
24810 | echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24811 | if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then | |
24812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24813 | else | |
24814 | ac_check_lib_save_LIBS=$LIBS | |
24815 | LIBS="-lSQLAllocEnv $LIBS" | |
24816 | cat >conftest.$ac_ext <<_ACEOF | |
24817 | #line $LINENO "configure" | |
24818 | /* confdefs.h. */ | |
24819 | _ACEOF | |
24820 | cat confdefs.h >>conftest.$ac_ext | |
24821 | cat >>conftest.$ac_ext <<_ACEOF | |
24822 | /* end confdefs.h. */ | |
e6cc62c6 | 24823 | |
bb41dcbe VS |
24824 | /* Override any gcc2 internal prototype to avoid an error. */ |
24825 | #ifdef __cplusplus | |
24826 | extern "C" | |
24827 | #endif | |
24828 | /* We use char because int might match the return type of a gcc2 | |
24829 | builtin and then its argument prototype would still apply. */ | |
24830 | char odbc (); | |
24831 | int | |
24832 | main () | |
24833 | { | |
24834 | odbc (); | |
24835 | ; | |
24836 | return 0; | |
24837 | } | |
24838 | _ACEOF | |
24839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24841 | (eval $ac_link) 2>&5 | |
24842 | ac_status=$? | |
24843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24844 | (exit $ac_status); } && | |
24845 | { ac_try='test -s conftest$ac_exeext' | |
24846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24847 | (eval $ac_try) 2>&5 | |
24848 | ac_status=$? | |
24849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24850 | (exit $ac_status); }; }; then | |
24851 | ac_cv_lib_SQLAllocEnv_odbc=yes | |
e6cc62c6 | 24852 | else |
bb41dcbe VS |
24853 | echo "$as_me: failed program was:" >&5 |
24854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24855 | ||
24856 | ac_cv_lib_SQLAllocEnv_odbc=no | |
24857 | fi | |
24858 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24859 | LIBS=$ac_check_lib_save_LIBS | |
24860 | fi | |
24861 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5 | |
24862 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6 | |
24863 | if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then | |
24864 | ODBC_LINK=" -lodbc" | |
24865 | fi | |
24866 | ||
24867 | ||
24868 | fi | |
e6cc62c6 | 24869 | |
e6cc62c6 | 24870 | |
8647bec6 | 24871 | fi |
e6cc62c6 | 24872 | |
fd3d7534 | 24873 | fi |
bb41dcbe VS |
24874 | if test "x$ODBC_LINK" = "x" ; then |
24875 | if test "$wxUSE_ODBC" = "sys" ; then | |
24876 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
24877 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
24878 | { (exit 1); exit 1; }; } | |
24879 | else | |
24880 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
24881 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
24882 | wxUSE_ODBC=builtin | |
24883 | fi | |
24884 | else | |
24885 | wxUSE_ODBC=sys | |
8647bec6 | 24886 | fi |
8647bec6 | 24887 | fi |
bb41dcbe VS |
24888 | if test "$wxUSE_ODBC" != "no" ; then |
24889 | cat >>confdefs.h <<\_ACEOF | |
24890 | #define wxUSE_ODBC 1 | |
24891 | _ACEOF | |
e6cc62c6 | 24892 | |
bb41dcbe VS |
24893 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
24894 | ||
24895 | WXODBCFLAG="-D_IODBC_" | |
24896 | fi | |
6232543b | 24897 | fi |
21d1c967 GD |
24898 | |
24899 | if test "$wxUSE_REGEX" = "builtin" ; then | |
24900 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 24901 | fi |
21d1c967 GD |
24902 | if test "$wxUSE_ZLIB" = "builtin" ; then |
24903 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
24904 | fi |
24905 | ||
8284b0c5 | 24906 | |
4d264332 | 24907 | USE_OPENGL=0 |
21d1c967 | 24908 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 24909 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
24910 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
24911 | elif test "$wxUSE_MSW" = 1; then | |
24912 | OPENGL_LIBS="-lopengl32 -lglu32" | |
24913 | else | |
01aa5863 VS |
24914 | |
24915 | ||
24916 | ac_find_includes= | |
24917 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24918 | do | |
24919 | if test -f "$ac_dir/GL/gl.h"; then | |
24920 | ac_find_includes=$ac_dir | |
24921 | break | |
24922 | fi | |
24923 | done | |
24924 | ||
24925 | if test "$ac_find_includes" != "" ; then | |
24926 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
24927 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
24928 | |
24929 | if test "x$ac_find_includes" = "x/usr/include"; then | |
24930 | ac_path_to_include="" | |
24931 | else | |
24932 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
24933 | result=$? | |
24934 | if test $result = 0; then | |
24935 | ac_path_to_include="" | |
24936 | else | |
24937 | ac_path_to_include=" -I$ac_find_includes" | |
24938 | fi | |
24939 | fi | |
24940 | ||
24941 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
24942 | fi |
24943 | ||
e6cc62c6 VS |
24944 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
24945 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24946 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24947 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24949 | fi | |
24950 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
24951 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24952 | else | |
24953 | # Is the header compilable? | |
24954 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
24955 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
24956 | cat >conftest.$ac_ext <<_ACEOF | |
24957 | #line $LINENO "configure" | |
24958 | /* confdefs.h. */ | |
24959 | _ACEOF | |
24960 | cat confdefs.h >>conftest.$ac_ext | |
24961 | cat >>conftest.$ac_ext <<_ACEOF | |
24962 | /* end confdefs.h. */ | |
24963 | $ac_includes_default | |
21d1c967 | 24964 | #include <GL/gl.h> |
e6cc62c6 VS |
24965 | _ACEOF |
24966 | rm -f conftest.$ac_objext | |
24967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24968 | (eval $ac_compile) 2>&5 | |
24969 | ac_status=$? | |
24970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24971 | (exit $ac_status); } && | |
24972 | { ac_try='test -s conftest.$ac_objext' | |
24973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24974 | (eval $ac_try) 2>&5 | |
24975 | ac_status=$? | |
24976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24977 | (exit $ac_status); }; }; then | |
24978 | ac_header_compiler=yes | |
24979 | else | |
24980 | echo "$as_me: failed program was:" >&5 | |
24981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24982 | ||
24983 | ac_header_compiler=no | |
24984 | fi | |
24985 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24986 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24987 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24988 | ||
24989 | # Is the header present? | |
24990 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
24991 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
24992 | cat >conftest.$ac_ext <<_ACEOF | |
24993 | #line $LINENO "configure" | |
24994 | /* confdefs.h. */ | |
24995 | _ACEOF | |
24996 | cat confdefs.h >>conftest.$ac_ext | |
24997 | cat >>conftest.$ac_ext <<_ACEOF | |
24998 | /* end confdefs.h. */ | |
24999 | #include <GL/gl.h> | |
25000 | _ACEOF | |
25001 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25002 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25003 | ac_status=$? | |
25004 | grep -v '^ *+' conftest.er1 >conftest.err | |
25005 | rm -f conftest.er1 | |
25006 | cat conftest.err >&5 | |
25007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25008 | (exit $ac_status); } >/dev/null; then | |
25009 | if test -s conftest.err; then | |
25010 | ac_cpp_err=$ac_c_preproc_warn_flag | |
25011 | else | |
25012 | ac_cpp_err= | |
25013 | fi | |
25014 | else | |
25015 | ac_cpp_err=yes | |
25016 | fi | |
25017 | if test -z "$ac_cpp_err"; then | |
25018 | ac_header_preproc=yes | |
25019 | else | |
25020 | echo "$as_me: failed program was:" >&5 | |
25021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25022 | ||
25023 | ac_header_preproc=no | |
25024 | fi | |
25025 | rm -f conftest.err conftest.$ac_ext | |
25026 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25027 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25028 | ||
25029 | # So? What about this header? | |
25030 | case $ac_header_compiler:$ac_header_preproc in | |
25031 | yes:no ) | |
25032 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25033 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25034 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
25035 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
25036 | ( | |
25037 | cat <<\_ASBOX | |
25038 | ## ------------------------------------ ## | |
25039 | ## Report this to bug-autoconf@gnu.org. ## | |
25040 | ## ------------------------------------ ## | |
25041 | _ASBOX | |
25042 | ) | | |
25043 | sed "s/^/$as_me: WARNING: /" >&2 | |
25044 | ;; | |
25045 | no:yes ) | |
25046 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 | |
25047 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
25048 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 | |
25049 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
25050 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
25051 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
25052 | ( | |
25053 | cat <<\_ASBOX | |
25054 | ## ------------------------------------ ## | |
25055 | ## Report this to bug-autoconf@gnu.org. ## | |
25056 | ## ------------------------------------ ## | |
25057 | _ASBOX | |
25058 | ) | | |
25059 | sed "s/^/$as_me: WARNING: /" >&2 | |
25060 | ;; | |
25061 | esac | |
25062 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
25063 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
25064 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
25065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25066 | else | |
25067 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 25068 | fi |
e6cc62c6 VS |
25069 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
25070 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
25071 | ||
698dcdb6 | 25072 | fi |
e6cc62c6 VS |
25073 | if test $ac_cv_header_GL_gl_h = yes; then |
25074 | ||
89e3b3e4 VZ |
25075 | found_gl=0 |
25076 | ||
e6cc62c6 VS |
25077 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
25078 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
25079 | ||
21d1c967 | 25080 | ac_find_libraries= |
2b5f62a0 | 25081 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25082 | do |
25083 | for ac_extension in a so sl dylib; do | |
25084 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
25085 | ac_find_libraries=$ac_dir | |
25086 | break 2 | |
25087 | fi | |
25088 | done | |
25089 | done | |
25090 | ||
25091 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25092 | |
21d1c967 GD |
25093 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25094 | result=$? | |
25095 | if test $result = 0; then | |
25096 | ac_path_to_link="" | |
25097 | else | |
25098 | ac_path_to_link=" -L$ac_find_libraries" | |
25099 | fi | |
25100 | ||
89e3b3e4 VZ |
25101 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
25102 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 25103 | fi |
89e3b3e4 | 25104 | |
e6cc62c6 | 25105 | |
89e3b3e4 VZ |
25106 | ac_find_libraries= |
25107 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25108 | do | |
25109 | for ac_extension in a so sl dylib; do | |
25110 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
25111 | ac_find_libraries=$ac_dir | |
25112 | break 2 | |
25113 | fi | |
25114 | done | |
25115 | done | |
25116 | ||
25117 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25118 | |
89e3b3e4 VZ |
25119 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25120 | result=$? | |
25121 | if test $result = 0; then | |
25122 | ac_path_to_link="" | |
25123 | else | |
25124 | ac_path_to_link=" -L$ac_find_libraries" | |
25125 | fi | |
25126 | ||
25127 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
25128 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
25129 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
25130 | fi | |
25131 | ||
25132 | found_gl=1 | |
25133 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
25134 | echo "$as_me:$LINENO: result: yes" >&5 |
25135 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
25136 | fi |
25137 | fi | |
25138 | ||
bb41dcbe | 25139 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
25140 | echo "$as_me:$LINENO: result: no" >&5 |
25141 | echo "${ECHO_T}no" >&6 | |
25142 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
25143 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
25144 | ||
21d1c967 | 25145 | ac_find_libraries= |
2b5f62a0 | 25146 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25147 | do |
25148 | for ac_extension in a so sl dylib; do | |
25149 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
25150 | ac_find_libraries=$ac_dir | |
25151 | break 2 | |
25152 | fi | |
25153 | done | |
25154 | done | |
25155 | ||
25156 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25157 | |
21d1c967 GD |
25158 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25159 | result=$? | |
25160 | if test $result = 0; then | |
25161 | ac_path_to_link="" | |
25162 | else | |
25163 | ac_path_to_link=" -L$ac_find_libraries" | |
25164 | fi | |
25165 | ||
25166 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
25167 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
25168 | echo "$as_me:$LINENO: result: yes" >&5 |
25169 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 25170 | else |
e6cc62c6 VS |
25171 | echo "$as_me:$LINENO: result: no" >&5 |
25172 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
25173 | fi |
25174 | fi | |
e6cc62c6 | 25175 | |
5c6fa7d2 | 25176 | fi |
52127426 | 25177 | |
8284b0c5 | 25178 | |
e6cc62c6 | 25179 | |
21d1c967 | 25180 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
25181 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
25182 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
25183 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
25184 | fi |
25185 | fi | |
90dd450c | 25186 | |
21d1c967 | 25187 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 25188 | USE_OPENGL=1 |
e6cc62c6 | 25189 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 25190 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 25191 | _ACEOF |
21d1c967 | 25192 | |
e6cc62c6 | 25193 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 25194 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 25195 | _ACEOF |
21d1c967 | 25196 | |
520755bb | 25197 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 25198 | fi |
10f2d63a | 25199 | fi |
21d1c967 GD |
25200 | |
25201 | if test -z "$TOOLKIT_VPATH" ; then | |
25202 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 25203 | fi |
21d1c967 GD |
25204 | |
25205 | if test -n "$TOOLKIT" ; then | |
25206 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
25207 | fi | |
25208 | ||
fe0895cf | 25209 | UNICODE=0 |
21d1c967 GD |
25210 | lib_unicode_suffix= |
25211 | if test "$wxUSE_UNICODE" = "yes"; then | |
25212 | lib_unicode_suffix=u | |
fe0895cf | 25213 | UNICODE=1 |
90dd450c | 25214 | fi |
698dcdb6 | 25215 | |
21d1c967 | 25216 | lib_debug_suffix= |
6c67131a | 25217 | DEBUG_FLAG=0 |
21d1c967 GD |
25218 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
25219 | lib_debug_suffix=d | |
6c67131a VS |
25220 | DEBUG_FLAG=1 |
25221 | fi | |
25222 | ||
25223 | DEBUG_INFO=0 | |
25224 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
25225 | DEBUG_INFO=1 | |
21d1c967 | 25226 | fi |
698dcdb6 | 25227 | |
1cbb95a2 | 25228 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
25229 | |
25230 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
25231 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
25232 | |
25233 | if test "$cross_compiling" = "yes"; then | |
25234 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
25235 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 25236 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
25237 | fi |
25238 | ||
25239 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
25240 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
25241 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
25242 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
25243 | |
25244 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
25245 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
25246 | ||
25247 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
25248 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25249 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
25250 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25251 | ||
25252 | case "${host}" in | |
25253 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
25254 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
25255 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
25256 | ;; |
25257 | ||
25258 | *-*-darwin* ) | |
e6cc62c6 | 25259 | |
05159a27 GD |
25260 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
25261 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
25262 | ||
25263 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
25264 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25265 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
25266 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25267 | ||
21d1c967 | 25268 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
25269 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
25270 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
25271 | fi |
25272 | ;; | |
25273 | esac | |
25274 | ||
25275 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
25276 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
25277 | ||
25278 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
25279 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
25280 | ||
25281 | if test "$wxUSE_OPENGL" = "yes"; then | |
25282 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
25283 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
25284 | fi | |
25285 | ||
8284b0c5 MB |
25286 | |
25287 | ||
21d1c967 GD |
25288 | if test "$wxUSE_SHARED" = "yes"; then |
25289 | case "${host}" in | |
25290 | *-pc-os2_emx | *-pc-os2-emx | \ | |
25291 | *-pc-msdosdjgpp ) | |
25292 | wxUSE_SHARED=no | |
e6cc62c6 VS |
25293 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
25294 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
25295 | ;; |
25296 | esac | |
25297 | fi | |
25298 | ||
fe0895cf | 25299 | SHARED=0 |
2b5f62a0 | 25300 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 25301 | SHARED=1 |
2b5f62a0 | 25302 | |
e6cc62c6 | 25303 | |
2b5f62a0 VZ |
25304 | found_versioning=no |
25305 | ||
e6cc62c6 | 25306 | |
2b5f62a0 | 25307 | if test $found_versioning = no ; then |
e6cc62c6 VS |
25308 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
25309 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
25310 | if test "${wx_cv_version_script+set}" = set; then | |
25311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 25312 | else |
e6cc62c6 | 25313 | |
2b5f62a0 VZ |
25314 | echo "VER_1 { *; };" >conftest.sym |
25315 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 25316 | |
2b5f62a0 VZ |
25317 | if { ac_try=' |
25318 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
25319 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
25320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25321 | (eval $ac_try) 2>&5 | |
25322 | ac_status=$? | |
25323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25324 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
25325 | if test -s conftest.stderr ; then |
25326 | wx_cv_version_script=no | |
25327 | else | |
25328 | wx_cv_version_script=yes | |
25329 | fi | |
25330 | else | |
25331 | wx_cv_version_script=no | |
25332 | fi | |
25333 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 25334 | |
e6cc62c6 VS |
25335 | fi |
25336 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
25337 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 25338 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 25339 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
25340 | fi |
25341 | fi | |
21d1c967 | 25342 | |
21d1c967 | 25343 | |
21d1c967 | 25344 | case "${host}" in |
fe0895cf | 25345 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 25346 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
21d1c967 GD |
25347 | ;; |
25348 | ||
25349 | *-*-solaris2* ) | |
25350 | if test "$GCC" = yes ; then | |
25351 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
25352 | |
25353 | saveLdflags="$LDFLAGS" | |
25354 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
25355 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
25356 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
25357 | cat >conftest.$ac_ext <<_ACEOF | |
25358 | #line $LINENO "configure" | |
25359 | /* confdefs.h. */ | |
25360 | _ACEOF | |
25361 | cat confdefs.h >>conftest.$ac_ext | |
25362 | cat >>conftest.$ac_ext <<_ACEOF | |
25363 | /* end confdefs.h. */ | |
25364 | ||
25365 | int | |
25366 | main () | |
25367 | { | |
fe0895cf | 25368 | |
e6cc62c6 VS |
25369 | ; |
25370 | return 0; | |
25371 | } | |
25372 | _ACEOF | |
25373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25375 | (eval $ac_link) 2>&5 | |
25376 | ac_status=$? | |
25377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25378 | (exit $ac_status); } && | |
25379 | { ac_try='test -s conftest$ac_exeext' | |
25380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25381 | (eval $ac_try) 2>&5 | |
25382 | ac_status=$? | |
25383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25384 | (exit $ac_status); }; }; then | |
25385 | ||
25386 | echo "$as_me:$LINENO: result: yes" >&5 | |
25387 | echo "${ECHO_T}yes" >&6 | |
25388 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
25389 | ||
25390 | else | |
25391 | echo "$as_me: failed program was:" >&5 | |
25392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25393 | ||
25394 | ||
25395 | echo "$as_me:$LINENO: result: no" >&5 | |
25396 | echo "${ECHO_T}no" >&6 | |
25397 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
25398 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 25399 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 VS |
25400 | cat >conftest.$ac_ext <<_ACEOF |
25401 | #line $LINENO "configure" | |
25402 | /* confdefs.h. */ | |
25403 | _ACEOF | |
25404 | cat confdefs.h >>conftest.$ac_ext | |
25405 | cat >>conftest.$ac_ext <<_ACEOF | |
25406 | /* end confdefs.h. */ | |
25407 | ||
25408 | int | |
25409 | main () | |
25410 | { | |
25411 | ||
25412 | ; | |
25413 | return 0; | |
25414 | } | |
25415 | _ACEOF | |
25416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25418 | (eval $ac_link) 2>&5 | |
25419 | ac_status=$? | |
25420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25421 | (exit $ac_status); } && | |
25422 | { ac_try='test -s conftest$ac_exeext' | |
25423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25424 | (eval $ac_try) 2>&5 | |
25425 | ac_status=$? | |
25426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25427 | (exit $ac_status); }; }; then | |
25428 | ||
25429 | echo "$as_me:$LINENO: result: yes" >&5 | |
25430 | echo "${ECHO_T}yes" >&6 | |
25431 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
25432 | else | |
25433 | echo "$as_me: failed program was:" >&5 | |
25434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 25435 | |
fe0895cf | 25436 | |
e6cc62c6 VS |
25437 | echo "$as_me:$LINENO: result: no" >&5 |
25438 | echo "${ECHO_T}no" >&6 | |
25439 | ||
fe0895cf | 25440 | fi |
e6cc62c6 VS |
25441 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
25442 | ||
25443 | fi | |
25444 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 25445 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
25446 | else |
25447 | SHARED_LD="${CXX} -G -o" | |
25448 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 25449 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
25450 | fi |
25451 | ;; | |
21d1c967 GD |
25452 | esac |
25453 | ||
25454 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
25455 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
25456 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
25457 | fi | |
25458 | ||
25459 | WX_TARGET_LIBRARY_TYPE="so" | |
25460 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 25461 | fi |
10f2d63a | 25462 | |
21d1c967 GD |
25463 | if test "$wxUSE_SHARED" = "no"; then |
25464 | ||
25465 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
25466 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
25467 | fi | |
25468 | ||
ac0c4cc3 | 25469 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
25470 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
25471 | fi | |
25472 | ||
25473 | if test "$wxUSE_OPENGL" = "yes"; then | |
25474 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
25475 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
25476 | else | |
25477 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
25478 | fi | |
25479 | ||
25480 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
25481 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
25482 | ||
25483 | WX_TARGET_LIBRARY_TYPE="a" | |
25484 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
25485 | |
25486 | STATIC_FLAG="yes" | |
25487 | else | |
25488 | STATIC_FLAG="no" | |
90dd450c | 25489 | fi |
1e487827 | 25490 | |
93fac604 VZ |
25491 | MACRESCOMP="@#" |
25492 | MACSETFILE="@#" | |
36825681 | 25493 | MACRESWXCONFIG="#" |
21d1c967 | 25494 | if test "$wxUSE_MAC" = 1; then |
e6cc62c6 | 25495 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
25496 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
25497 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
25498 | # Extract the first word of "Rez", so it can be a program name with args. | |
25499 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25502 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 25504 | else |
21d1c967 GD |
25505 | if test -n "$RESCOMP"; then |
25506 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 25507 | else |
e6cc62c6 VS |
25508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25509 | for as_dir in $PATH | |
25510 | do | |
25511 | IFS=$as_save_IFS | |
25512 | test -z "$as_dir" && as_dir=. | |
25513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25515 | ac_cv_prog_RESCOMP="Rez" | |
25516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25517 | break 2 | |
25518 | fi | |
25519 | done | |
25520 | done | |
25521 | ||
21d1c967 | 25522 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 25523 | fi |
b93d0d08 | 25524 | fi |
e6cc62c6 | 25525 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 25526 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25527 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25528 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 25529 | else |
e6cc62c6 VS |
25530 | echo "$as_me:$LINENO: result: no" >&5 |
25531 | echo "${ECHO_T}no" >&6 | |
90dd450c | 25532 | fi |
b93d0d08 | 25533 | |
21d1c967 GD |
25534 | # Extract the first word of "DeRez", so it can be a program name with args. |
25535 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25538 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 25540 | else |
21d1c967 GD |
25541 | if test -n "$DEREZ"; then |
25542 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 25543 | else |
e6cc62c6 VS |
25544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25545 | for as_dir in $PATH | |
25546 | do | |
25547 | IFS=$as_save_IFS | |
25548 | test -z "$as_dir" && as_dir=. | |
25549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25551 | ac_cv_prog_DEREZ="DeRez" | |
25552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25553 | break 2 | |
25554 | fi | |
25555 | done | |
25556 | done | |
25557 | ||
21d1c967 | 25558 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 25559 | fi |
90dd450c | 25560 | fi |
e6cc62c6 | 25561 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 25562 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25563 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25564 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 25565 | else |
e6cc62c6 VS |
25566 | echo "$as_me:$LINENO: result: no" >&5 |
25567 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 25568 | fi |
698dcdb6 | 25569 | |
36825681 GD |
25570 | # Extract the first word of "SetFile", so it can be a program name with args. |
25571 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25572 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25574 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
25576 | else |
25577 | if test -n "$SETFILE"; then | |
25578 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25579 | else | |
e6cc62c6 VS |
25580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25581 | for as_dir in $PATH | |
25582 | do | |
25583 | IFS=$as_save_IFS | |
25584 | test -z "$as_dir" && as_dir=. | |
25585 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25586 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25587 | ac_cv_prog_SETFILE="SetFile" | |
25588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25589 | break 2 | |
25590 | fi | |
25591 | done | |
25592 | done | |
25593 | ||
36825681 GD |
25594 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25595 | fi | |
25596 | fi | |
e6cc62c6 | 25597 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 25598 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25599 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25600 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 25601 | else |
e6cc62c6 VS |
25602 | echo "$as_me:$LINENO: result: no" >&5 |
25603 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
25604 | fi |
25605 | ||
21d1c967 | 25606 | MACOSX_BUNDLE="bundle" |
36825681 GD |
25607 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
25608 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25609 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
64440d77 DE |
25610 | elif test "$wxUSE_COCOA" = 1; then |
25611 | # Extract the first word of "Rez", so it can be a program name with args. | |
25612 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25613 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25615 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25617 | else |
25618 | if test -n "$RESCOMP"; then | |
25619 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
25620 | else | |
e6cc62c6 VS |
25621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25622 | for as_dir in $PATH | |
25623 | do | |
25624 | IFS=$as_save_IFS | |
25625 | test -z "$as_dir" && as_dir=. | |
25626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25627 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25628 | ac_cv_prog_RESCOMP="Rez" | |
25629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25630 | break 2 | |
25631 | fi | |
25632 | done | |
25633 | done | |
25634 | ||
64440d77 DE |
25635 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
25636 | fi | |
25637 | fi | |
e6cc62c6 | 25638 | RESCOMP=$ac_cv_prog_RESCOMP |
64440d77 | 25639 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25640 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25641 | echo "${ECHO_T}$RESCOMP" >&6 | |
64440d77 | 25642 | else |
e6cc62c6 VS |
25643 | echo "$as_me:$LINENO: result: no" >&5 |
25644 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25645 | fi |
25646 | ||
25647 | # Extract the first word of "DeRez", so it can be a program name with args. | |
25648 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25651 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25653 | else |
25654 | if test -n "$DEREZ"; then | |
25655 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
25656 | else | |
e6cc62c6 VS |
25657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25658 | for as_dir in $PATH | |
25659 | do | |
25660 | IFS=$as_save_IFS | |
25661 | test -z "$as_dir" && as_dir=. | |
25662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25664 | ac_cv_prog_DEREZ="DeRez" | |
25665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25666 | break 2 | |
25667 | fi | |
25668 | done | |
25669 | done | |
25670 | ||
64440d77 DE |
25671 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
25672 | fi | |
25673 | fi | |
e6cc62c6 | 25674 | DEREZ=$ac_cv_prog_DEREZ |
64440d77 | 25675 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25676 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25677 | echo "${ECHO_T}$DEREZ" >&6 | |
64440d77 | 25678 | else |
e6cc62c6 VS |
25679 | echo "$as_me:$LINENO: result: no" >&5 |
25680 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25681 | fi |
25682 | ||
25683 | # Extract the first word of "SetFile", so it can be a program name with args. | |
25684 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25685 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25686 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25687 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25689 | else |
25690 | if test -n "$SETFILE"; then | |
25691 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25692 | else | |
e6cc62c6 VS |
25693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25694 | for as_dir in $PATH | |
25695 | do | |
25696 | IFS=$as_save_IFS | |
25697 | test -z "$as_dir" && as_dir=. | |
25698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25699 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25700 | ac_cv_prog_SETFILE="SetFile" | |
25701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25702 | break 2 | |
25703 | fi | |
25704 | done | |
25705 | done | |
25706 | ||
64440d77 DE |
25707 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25708 | fi | |
25709 | fi | |
e6cc62c6 | 25710 | SETFILE=$ac_cv_prog_SETFILE |
64440d77 | 25711 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25712 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25713 | echo "${ECHO_T}$SETFILE" >&6 | |
64440d77 | 25714 | else |
e6cc62c6 VS |
25715 | echo "$as_me:$LINENO: result: no" >&5 |
25716 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25717 | fi |
25718 | ||
25719 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
25720 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25721 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
21d1c967 GD |
25722 | else |
25723 | if test "$wxUSE_PM" = 1; then | |
36825681 | 25724 | MACRESCOMP="emxbind -ep" |
90dd450c | 25725 | fi |
4f14bcd8 | 25726 | fi |
10f2d63a | 25727 | |
8284b0c5 | 25728 | |
e6cc62c6 VS |
25729 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
25730 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
25731 | if test "${ac_cv_type_mode_t+set}" = set; then | |
25732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 25733 | else |
e6cc62c6 VS |
25734 | cat >conftest.$ac_ext <<_ACEOF |
25735 | #line $LINENO "configure" | |
25736 | /* confdefs.h. */ | |
25737 | _ACEOF | |
25738 | cat confdefs.h >>conftest.$ac_ext | |
25739 | cat >>conftest.$ac_ext <<_ACEOF | |
25740 | /* end confdefs.h. */ | |
25741 | $ac_includes_default | |
25742 | int | |
25743 | main () | |
25744 | { | |
25745 | if ((mode_t *) 0) | |
25746 | return 0; | |
25747 | if (sizeof (mode_t)) | |
25748 | return 0; | |
25749 | ; | |
25750 | return 0; | |
25751 | } | |
25752 | _ACEOF | |
25753 | rm -f conftest.$ac_objext | |
25754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25755 | (eval $ac_compile) 2>&5 | |
25756 | ac_status=$? | |
25757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25758 | (exit $ac_status); } && | |
25759 | { ac_try='test -s conftest.$ac_objext' | |
25760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25761 | (eval $ac_try) 2>&5 | |
25762 | ac_status=$? | |
25763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25764 | (exit $ac_status); }; }; then | |
25765 | ac_cv_type_mode_t=yes | |
a0b9e27f | 25766 | else |
e6cc62c6 VS |
25767 | echo "$as_me: failed program was:" >&5 |
25768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25769 | |
e6cc62c6 | 25770 | ac_cv_type_mode_t=no |
a0b9e27f | 25771 | fi |
e6cc62c6 | 25772 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 25773 | fi |
e6cc62c6 VS |
25774 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
25775 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
25776 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
25777 | : |
25778 | else | |
a0b9e27f | 25779 | |
e6cc62c6 VS |
25780 | cat >>confdefs.h <<_ACEOF |
25781 | #define mode_t int | |
25782 | _ACEOF | |
8284b0c5 MB |
25783 | |
25784 | fi | |
25785 | ||
e6cc62c6 VS |
25786 | echo "$as_me:$LINENO: checking for off_t" >&5 |
25787 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
25788 | if test "${ac_cv_type_off_t+set}" = set; then | |
25789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25790 | else |
e6cc62c6 VS |
25791 | cat >conftest.$ac_ext <<_ACEOF |
25792 | #line $LINENO "configure" | |
25793 | /* confdefs.h. */ | |
25794 | _ACEOF | |
25795 | cat confdefs.h >>conftest.$ac_ext | |
25796 | cat >>conftest.$ac_ext <<_ACEOF | |
25797 | /* end confdefs.h. */ | |
25798 | $ac_includes_default | |
25799 | int | |
25800 | main () | |
25801 | { | |
25802 | if ((off_t *) 0) | |
25803 | return 0; | |
25804 | if (sizeof (off_t)) | |
25805 | return 0; | |
25806 | ; | |
25807 | return 0; | |
25808 | } | |
25809 | _ACEOF | |
25810 | rm -f conftest.$ac_objext | |
25811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25812 | (eval $ac_compile) 2>&5 | |
25813 | ac_status=$? | |
25814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25815 | (exit $ac_status); } && | |
25816 | { ac_try='test -s conftest.$ac_objext' | |
25817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25818 | (eval $ac_try) 2>&5 | |
25819 | ac_status=$? | |
25820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25821 | (exit $ac_status); }; }; then | |
25822 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 25823 | else |
e6cc62c6 VS |
25824 | echo "$as_me: failed program was:" >&5 |
25825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25826 | |
e6cc62c6 | 25827 | ac_cv_type_off_t=no |
8284b0c5 | 25828 | fi |
e6cc62c6 | 25829 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 25830 | fi |
e6cc62c6 VS |
25831 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
25832 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
25833 | if test $ac_cv_type_off_t = yes; then | |
25834 | : | |
247f5006 VZ |
25835 | else |
25836 | ||
e6cc62c6 | 25837 | cat >>confdefs.h <<_ACEOF |
90dd450c | 25838 | #define off_t long |
e6cc62c6 | 25839 | _ACEOF |
10f2d63a | 25840 | |
90dd450c | 25841 | fi |
10f2d63a | 25842 | |
e6cc62c6 VS |
25843 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
25844 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
25845 | if test "${ac_cv_type_pid_t+set}" = set; then | |
25846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 25847 | else |
e6cc62c6 VS |
25848 | cat >conftest.$ac_ext <<_ACEOF |
25849 | #line $LINENO "configure" | |
25850 | /* confdefs.h. */ | |
25851 | _ACEOF | |
25852 | cat confdefs.h >>conftest.$ac_ext | |
25853 | cat >>conftest.$ac_ext <<_ACEOF | |
25854 | /* end confdefs.h. */ | |
25855 | $ac_includes_default | |
25856 | int | |
25857 | main () | |
25858 | { | |
25859 | if ((pid_t *) 0) | |
25860 | return 0; | |
25861 | if (sizeof (pid_t)) | |
25862 | return 0; | |
25863 | ; | |
25864 | return 0; | |
25865 | } | |
25866 | _ACEOF | |
25867 | rm -f conftest.$ac_objext | |
25868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25869 | (eval $ac_compile) 2>&5 | |
25870 | ac_status=$? | |
25871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25872 | (exit $ac_status); } && | |
25873 | { ac_try='test -s conftest.$ac_objext' | |
25874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25875 | (eval $ac_try) 2>&5 | |
25876 | ac_status=$? | |
25877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25878 | (exit $ac_status); }; }; then | |
90dd450c | 25879 | ac_cv_type_pid_t=yes |
698dcdb6 | 25880 | else |
e6cc62c6 VS |
25881 | echo "$as_me: failed program was:" >&5 |
25882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25883 | |
e6cc62c6 VS |
25884 | ac_cv_type_pid_t=no |
25885 | fi | |
25886 | rm -f conftest.$ac_objext conftest.$ac_ext | |
a0b9e27f | 25887 | fi |
e6cc62c6 VS |
25888 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
25889 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
25890 | if test $ac_cv_type_pid_t = yes; then | |
25891 | : | |
25892 | else | |
25893 | ||
25894 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25895 | #define pid_t int |
e6cc62c6 | 25896 | _ACEOF |
10f2d63a | 25897 | |
7b4a847f RR |
25898 | fi |
25899 | ||
e6cc62c6 VS |
25900 | echo "$as_me:$LINENO: checking for size_t" >&5 |
25901 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
25902 | if test "${ac_cv_type_size_t+set}" = set; then | |
25903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 25904 | else |
e6cc62c6 VS |
25905 | cat >conftest.$ac_ext <<_ACEOF |
25906 | #line $LINENO "configure" | |
25907 | /* confdefs.h. */ | |
25908 | _ACEOF | |
25909 | cat confdefs.h >>conftest.$ac_ext | |
25910 | cat >>conftest.$ac_ext <<_ACEOF | |
25911 | /* end confdefs.h. */ | |
25912 | $ac_includes_default | |
25913 | int | |
25914 | main () | |
25915 | { | |
25916 | if ((size_t *) 0) | |
25917 | return 0; | |
25918 | if (sizeof (size_t)) | |
25919 | return 0; | |
25920 | ; | |
25921 | return 0; | |
25922 | } | |
25923 | _ACEOF | |
25924 | rm -f conftest.$ac_objext | |
25925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25926 | (eval $ac_compile) 2>&5 | |
25927 | ac_status=$? | |
25928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25929 | (exit $ac_status); } && | |
25930 | { ac_try='test -s conftest.$ac_objext' | |
25931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25932 | (eval $ac_try) 2>&5 | |
25933 | ac_status=$? | |
25934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25935 | (exit $ac_status); }; }; then | |
90dd450c | 25936 | ac_cv_type_size_t=yes |
18dbb1f6 | 25937 | else |
e6cc62c6 VS |
25938 | echo "$as_me: failed program was:" >&5 |
25939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25940 | |
e6cc62c6 | 25941 | ac_cv_type_size_t=no |
a0b9e27f | 25942 | fi |
e6cc62c6 VS |
25943 | rm -f conftest.$ac_objext conftest.$ac_ext |
25944 | fi | |
25945 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25946 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
25947 | if test $ac_cv_type_size_t = yes; then | |
25948 | : | |
25949 | else | |
25950 | ||
25951 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25952 | #define size_t unsigned |
e6cc62c6 | 25953 | _ACEOF |
90dd450c VZ |
25954 | |
25955 | fi | |
25956 | ||
e6cc62c6 VS |
25957 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
25958 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
25959 | if test "${ac_cv_type_uid_t+set}" = set; then | |
25960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 25961 | else |
e6cc62c6 VS |
25962 | cat >conftest.$ac_ext <<_ACEOF |
25963 | #line $LINENO "configure" | |
25964 | /* confdefs.h. */ | |
25965 | _ACEOF | |
25966 | cat confdefs.h >>conftest.$ac_ext | |
25967 | cat >>conftest.$ac_ext <<_ACEOF | |
25968 | /* end confdefs.h. */ | |
90dd450c | 25969 | #include <sys/types.h> |
e6cc62c6 VS |
25970 | |
25971 | _ACEOF | |
90dd450c | 25972 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 25973 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 25974 | ac_cv_type_uid_t=yes |
b3e8d00a | 25975 | else |
90dd450c | 25976 | ac_cv_type_uid_t=no |
b3e8d00a | 25977 | fi |
90dd450c | 25978 | rm -f conftest* |
b3e8d00a | 25979 | |
4f14bcd8 | 25980 | fi |
e6cc62c6 VS |
25981 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
25982 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 25983 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
25984 | |
25985 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25986 | #define uid_t int |
e6cc62c6 | 25987 | _ACEOF |
247f5006 | 25988 | |
e6cc62c6 VS |
25989 | |
25990 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25991 | #define gid_t int |
e6cc62c6 | 25992 | _ACEOF |
4f14bcd8 | 25993 | |
b3e8d00a | 25994 | fi |
b3e8d00a | 25995 | |
8284b0c5 MB |
25996 | |
25997 | ||
e6cc62c6 VS |
25998 | |
25999 | ac_ext=cc | |
4f14bcd8 | 26000 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26001 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26002 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26003 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26004 | ||
26005 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
26006 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
26007 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
26008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26009 | else | |
26010 | ||
26011 | cat >conftest.$ac_ext <<_ACEOF | |
26012 | #line $LINENO "configure" | |
26013 | /* confdefs.h. */ | |
26014 | _ACEOF | |
26015 | cat confdefs.h >>conftest.$ac_ext | |
26016 | cat >>conftest.$ac_ext <<_ACEOF | |
26017 | /* end confdefs.h. */ | |
90dd450c | 26018 | #include <stddef.h> |
e6cc62c6 VS |
26019 | int |
26020 | main () | |
26021 | { | |
90dd450c VZ |
26022 | |
26023 | return 0; } | |
26024 | ||
26025 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
26026 | ||
26027 | int bar() { | |
e6cc62c6 VS |
26028 | |
26029 | ; | |
26030 | return 0; | |
26031 | } | |
26032 | _ACEOF | |
26033 | rm -f conftest.$ac_objext | |
26034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26035 | (eval $ac_compile) 2>&5 | |
26036 | ac_status=$? | |
26037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26038 | (exit $ac_status); } && | |
26039 | { ac_try='test -s conftest.$ac_objext' | |
26040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26041 | (eval $ac_try) 2>&5 | |
26042 | ac_status=$? | |
26043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26044 | (exit $ac_status); }; }; then | |
90dd450c | 26045 | wx_cv_size_t_is_uint=no |
698dcdb6 | 26046 | else |
e6cc62c6 VS |
26047 | echo "$as_me: failed program was:" >&5 |
26048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26049 | ||
26050 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 26051 | |
247f5006 | 26052 | fi |
e6cc62c6 VS |
26053 | rm -f conftest.$ac_objext conftest.$ac_ext |
26054 | ||
a0b9e27f | 26055 | |
e6cc62c6 VS |
26056 | fi |
26057 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
26058 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 26059 | |
90dd450c | 26060 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 26061 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26062 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 26063 | _ACEOF |
698dcdb6 | 26064 | |
90dd450c | 26065 | else |
e6cc62c6 VS |
26066 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
26067 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
26068 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
26069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26070 | else |
e6cc62c6 VS |
26071 | cat >conftest.$ac_ext <<_ACEOF |
26072 | #line $LINENO "configure" | |
26073 | /* confdefs.h. */ | |
26074 | _ACEOF | |
26075 | cat confdefs.h >>conftest.$ac_ext | |
26076 | cat >>conftest.$ac_ext <<_ACEOF | |
26077 | /* end confdefs.h. */ | |
90dd450c | 26078 | #include <stddef.h> |
e6cc62c6 VS |
26079 | int |
26080 | main () | |
26081 | { | |
90dd450c VZ |
26082 | |
26083 | return 0; } | |
26084 | ||
26085 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
26086 | ||
26087 | int bar() { | |
e6cc62c6 VS |
26088 | |
26089 | ; | |
26090 | return 0; | |
26091 | } | |
26092 | _ACEOF | |
26093 | rm -f conftest.$ac_objext | |
26094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26095 | (eval $ac_compile) 2>&5 | |
26096 | ac_status=$? | |
26097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26098 | (exit $ac_status); } && | |
26099 | { ac_try='test -s conftest.$ac_objext' | |
26100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26101 | (eval $ac_try) 2>&5 | |
26102 | ac_status=$? | |
26103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26104 | (exit $ac_status); }; }; then | |
90dd450c | 26105 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 26106 | else |
e6cc62c6 VS |
26107 | echo "$as_me: failed program was:" >&5 |
26108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26109 | ||
26110 | wx_cv_size_t_is_ulong=yes | |
26111 | ||
247f5006 | 26112 | fi |
e6cc62c6 | 26113 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26114 | |
e6cc62c6 VS |
26115 | fi |
26116 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
26117 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 26118 | |
90dd450c | 26119 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 26120 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26121 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 26122 | _ACEOF |
4f14bcd8 GD |
26123 | |
26124 | fi | |
90dd450c | 26125 | fi |
1e487827 | 26126 | |
90dd450c | 26127 | ac_ext=c |
4f14bcd8 | 26128 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26129 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26130 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26131 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 26132 | |
5c6fa7d2 | 26133 | |
8284b0c5 | 26134 | |
e6cc62c6 VS |
26135 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
26136 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
26137 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
26138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26139 | else |
e6cc62c6 VS |
26140 | |
26141 | cat >conftest.$ac_ext <<_ACEOF | |
26142 | #line $LINENO "configure" | |
26143 | /* confdefs.h. */ | |
26144 | _ACEOF | |
26145 | cat confdefs.h >>conftest.$ac_ext | |
26146 | cat >>conftest.$ac_ext <<_ACEOF | |
26147 | /* end confdefs.h. */ | |
90dd450c | 26148 | #include <pwd.h> |
e6cc62c6 VS |
26149 | int |
26150 | main () | |
26151 | { | |
f6bcfd97 | 26152 | |
90dd450c VZ |
26153 | char *p; |
26154 | struct passwd *pw; | |
26155 | p = pw->pw_gecos; | |
e6cc62c6 VS |
26156 | |
26157 | ; | |
26158 | return 0; | |
26159 | } | |
26160 | _ACEOF | |
26161 | rm -f conftest.$ac_objext | |
26162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26163 | (eval $ac_compile) 2>&5 | |
26164 | ac_status=$? | |
26165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26166 | (exit $ac_status); } && | |
26167 | { ac_try='test -s conftest.$ac_objext' | |
26168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26169 | (eval $ac_try) 2>&5 | |
26170 | ac_status=$? | |
26171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26172 | (exit $ac_status); }; }; then | |
26173 | ||
90dd450c | 26174 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 26175 | |
10f2d63a | 26176 | else |
e6cc62c6 VS |
26177 | echo "$as_me: failed program was:" >&5 |
26178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26179 | ||
26180 | ||
90dd450c | 26181 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 26182 | |
247f5006 VZ |
26183 | |
26184 | fi | |
e6cc62c6 | 26185 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26186 | |
e6cc62c6 VS |
26187 | |
26188 | fi | |
26189 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
26190 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 26191 | |
90dd450c | 26192 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 26193 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26194 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 26195 | _ACEOF |
c521c494 | 26196 | |
90dd450c | 26197 | fi |
4f14bcd8 | 26198 | |
8284b0c5 | 26199 | |
d29b553b | 26200 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 26201 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26202 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 26203 | _ACEOF |
d74f4b5a | 26204 | |
8284b0c5 | 26205 | |
d74f4b5a VZ |
26206 | WCSLEN_FOUND=0 |
26207 | WCHAR_LINK= | |
e6cc62c6 VS |
26208 | |
26209 | for ac_func in wcslen | |
7a30264c | 26210 | do |
e6cc62c6 VS |
26211 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26212 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26213 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26214 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26216 | else | |
26217 | cat >conftest.$ac_ext <<_ACEOF | |
26218 | #line $LINENO "configure" | |
26219 | /* confdefs.h. */ | |
26220 | _ACEOF | |
26221 | cat confdefs.h >>conftest.$ac_ext | |
26222 | cat >>conftest.$ac_ext <<_ACEOF | |
26223 | /* end confdefs.h. */ | |
7a30264c | 26224 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26225 | which can conflict with char $ac_func (); below. |
26226 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26227 | <limits.h> exists even on freestanding compilers. */ | |
26228 | #ifdef __STDC__ | |
26229 | # include <limits.h> | |
26230 | #else | |
26231 | # include <assert.h> | |
26232 | #endif | |
4f14bcd8 | 26233 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26234 | #ifdef __cplusplus |
26235 | extern "C" | |
26236 | { | |
26237 | #endif | |
4f14bcd8 | 26238 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26239 | builtin and then its argument prototype would still apply. */ |
26240 | char $ac_func (); | |
7a30264c VZ |
26241 | /* The GNU C library defines this for functions which it implements |
26242 | to always fail with ENOSYS. Some functions are actually named | |
26243 | something starting with __ and the normal name is an alias. */ | |
26244 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26245 | choke me | |
26246 | #else | |
e6cc62c6 VS |
26247 | char (*f) () = $ac_func; |
26248 | #endif | |
26249 | #ifdef __cplusplus | |
26250 | } | |
7a30264c VZ |
26251 | #endif |
26252 | ||
e6cc62c6 VS |
26253 | int |
26254 | main () | |
26255 | { | |
26256 | return f != $ac_func; | |
26257 | ; | |
26258 | return 0; | |
26259 | } | |
26260 | _ACEOF | |
26261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26263 | (eval $ac_link) 2>&5 | |
26264 | ac_status=$? | |
26265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26266 | (exit $ac_status); } && | |
26267 | { ac_try='test -s conftest$ac_exeext' | |
26268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26269 | (eval $ac_try) 2>&5 | |
26270 | ac_status=$? | |
26271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26272 | (exit $ac_status); }; }; then | |
26273 | eval "$as_ac_var=yes" | |
26274 | else | |
26275 | echo "$as_me: failed program was:" >&5 | |
26276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26277 | ||
26278 | eval "$as_ac_var=no" | |
26279 | fi | |
26280 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26281 | fi | |
26282 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26283 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26284 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26285 | cat >>confdefs.h <<_ACEOF | |
26286 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26287 | _ACEOF | |
d74f4b5a | 26288 | WCSLEN_FOUND=1 |
7a30264c VZ |
26289 | fi |
26290 | done | |
9d8deca0 | 26291 | |
8284b0c5 | 26292 | |
d74f4b5a | 26293 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 26294 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
26295 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
26296 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
26297 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
26298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 26299 | else |
e6cc62c6 | 26300 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26301 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 VS |
26302 | cat >conftest.$ac_ext <<_ACEOF |
26303 | #line $LINENO "configure" | |
26304 | /* confdefs.h. */ | |
26305 | _ACEOF | |
26306 | cat confdefs.h >>conftest.$ac_ext | |
26307 | cat >>conftest.$ac_ext <<_ACEOF | |
26308 | /* end confdefs.h. */ | |
26309 | ||
4f14bcd8 | 26310 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26311 | #ifdef __cplusplus |
26312 | extern "C" | |
26313 | #endif | |
4f14bcd8 | 26314 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26315 | builtin and then its argument prototype would still apply. */ |
26316 | char wcslen (); | |
26317 | int | |
26318 | main () | |
26319 | { | |
26320 | wcslen (); | |
26321 | ; | |
26322 | return 0; | |
26323 | } | |
26324 | _ACEOF | |
26325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26327 | (eval $ac_link) 2>&5 | |
26328 | ac_status=$? | |
26329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26330 | (exit $ac_status); } && | |
26331 | { ac_try='test -s conftest$ac_exeext' | |
26332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26333 | (eval $ac_try) 2>&5 | |
26334 | ac_status=$? | |
26335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26336 | (exit $ac_status); }; }; then | |
26337 | ac_cv_lib_msvcrt_wcslen=yes | |
26338 | else | |
26339 | echo "$as_me: failed program was:" >&5 | |
26340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26341 | ||
26342 | ac_cv_lib_msvcrt_wcslen=no | |
26343 | fi | |
26344 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26345 | LIBS=$ac_check_lib_save_LIBS | |
26346 | fi | |
26347 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
26348 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
26349 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 26350 | WCHAR_OK=1 |
d29b553b | 26351 | fi |
698dcdb6 | 26352 | |
7a30264c | 26353 | else |
e6cc62c6 VS |
26354 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
26355 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
26356 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
26357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26358 | else |
e6cc62c6 | 26359 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26360 | LIBS="-lw $LIBS" |
e6cc62c6 VS |
26361 | cat >conftest.$ac_ext <<_ACEOF |
26362 | #line $LINENO "configure" | |
26363 | /* confdefs.h. */ | |
26364 | _ACEOF | |
26365 | cat confdefs.h >>conftest.$ac_ext | |
26366 | cat >>conftest.$ac_ext <<_ACEOF | |
26367 | /* end confdefs.h. */ | |
26368 | ||
4f14bcd8 | 26369 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26370 | #ifdef __cplusplus |
26371 | extern "C" | |
26372 | #endif | |
4f14bcd8 | 26373 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26374 | builtin and then its argument prototype would still apply. */ |
26375 | char wcslen (); | |
26376 | int | |
26377 | main () | |
26378 | { | |
26379 | wcslen (); | |
26380 | ; | |
26381 | return 0; | |
26382 | } | |
26383 | _ACEOF | |
26384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26386 | (eval $ac_link) 2>&5 | |
26387 | ac_status=$? | |
26388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26389 | (exit $ac_status); } && | |
26390 | { ac_try='test -s conftest$ac_exeext' | |
26391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26392 | (eval $ac_try) 2>&5 | |
26393 | ac_status=$? | |
26394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26395 | (exit $ac_status); }; }; then | |
26396 | ac_cv_lib_w_wcslen=yes | |
26397 | else | |
26398 | echo "$as_me: failed program was:" >&5 | |
26399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26400 | ||
26401 | ac_cv_lib_w_wcslen=no | |
26402 | fi | |
26403 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26404 | LIBS=$ac_check_lib_save_LIBS | |
26405 | fi | |
26406 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
26407 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
26408 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 26409 | |
7a30264c | 26410 | WCHAR_LINK=" -lw" |
d74f4b5a | 26411 | WCSLEN_FOUND=1 |
e6cc62c6 | 26412 | |
4f14bcd8 | 26413 | fi |
10f2d63a | 26414 | |
7a30264c | 26415 | fi |
d29b553b | 26416 | fi |
95c8801c | 26417 | |
d74f4b5a | 26418 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 26419 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26420 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 26421 | _ACEOF |
10f2d63a | 26422 | |
d74f4b5a | 26423 | fi |
52127426 | 26424 | |
e6cc62c6 VS |
26425 | |
26426 | for ac_func in wcsrtombs | |
eb4efbdc | 26427 | do |
e6cc62c6 VS |
26428 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26429 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26430 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26431 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26433 | else | |
26434 | cat >conftest.$ac_ext <<_ACEOF | |
26435 | #line $LINENO "configure" | |
26436 | /* confdefs.h. */ | |
26437 | _ACEOF | |
26438 | cat confdefs.h >>conftest.$ac_ext | |
26439 | cat >>conftest.$ac_ext <<_ACEOF | |
26440 | /* end confdefs.h. */ | |
eb4efbdc | 26441 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26442 | which can conflict with char $ac_func (); below. |
26443 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26444 | <limits.h> exists even on freestanding compilers. */ | |
26445 | #ifdef __STDC__ | |
26446 | # include <limits.h> | |
26447 | #else | |
26448 | # include <assert.h> | |
26449 | #endif | |
eb4efbdc | 26450 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26451 | #ifdef __cplusplus |
26452 | extern "C" | |
26453 | { | |
26454 | #endif | |
4f14bcd8 | 26455 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26456 | builtin and then its argument prototype would still apply. */ |
26457 | char $ac_func (); | |
10f2d63a VZ |
26458 | /* The GNU C library defines this for functions which it implements |
26459 | to always fail with ENOSYS. Some functions are actually named | |
26460 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 26461 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
26462 | choke me |
26463 | #else | |
e6cc62c6 VS |
26464 | char (*f) () = $ac_func; |
26465 | #endif | |
26466 | #ifdef __cplusplus | |
26467 | } | |
10f2d63a VZ |
26468 | #endif |
26469 | ||
e6cc62c6 VS |
26470 | int |
26471 | main () | |
26472 | { | |
26473 | return f != $ac_func; | |
26474 | ; | |
26475 | return 0; | |
26476 | } | |
26477 | _ACEOF | |
26478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26480 | (eval $ac_link) 2>&5 | |
26481 | ac_status=$? | |
26482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26483 | (exit $ac_status); } && | |
26484 | { ac_try='test -s conftest$ac_exeext' | |
26485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26486 | (eval $ac_try) 2>&5 | |
26487 | ac_status=$? | |
26488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26489 | (exit $ac_status); }; }; then | |
26490 | eval "$as_ac_var=yes" | |
26491 | else | |
26492 | echo "$as_me: failed program was:" >&5 | |
26493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26494 | ||
26495 | eval "$as_ac_var=no" | |
26496 | fi | |
26497 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26498 | fi | |
26499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26500 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26501 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26502 | cat >>confdefs.h <<_ACEOF | |
26503 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26504 | _ACEOF | |
270a909e | 26505 | |
4f14bcd8 | 26506 | fi |
247f5006 | 26507 | done |
1e487827 | 26508 | |
af15babd | 26509 | else |
e6cc62c6 VS |
26510 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
26511 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 26512 | fi |
52127426 | 26513 | |
8284b0c5 | 26514 | |
e6cc62c6 VS |
26515 | |
26516 | ac_ext=cc | |
247f5006 | 26517 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26518 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26519 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26520 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26521 | ||
af15babd | 26522 | |
247f5006 VZ |
26523 | |
26524 | for ac_func in vsnprintf | |
26525 | do | |
e6cc62c6 VS |
26526 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26527 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26528 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26529 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26531 | else | |
26532 | cat >conftest.$ac_ext <<_ACEOF | |
26533 | #line $LINENO "configure" | |
26534 | /* confdefs.h. */ | |
26535 | _ACEOF | |
26536 | cat confdefs.h >>conftest.$ac_ext | |
26537 | cat >>conftest.$ac_ext <<_ACEOF | |
26538 | /* end confdefs.h. */ | |
247f5006 | 26539 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26540 | which can conflict with char $ac_func (); below. |
26541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26542 | <limits.h> exists even on freestanding compilers. */ | |
26543 | #ifdef __STDC__ | |
26544 | # include <limits.h> | |
26545 | #else | |
26546 | # include <assert.h> | |
26547 | #endif | |
247f5006 VZ |
26548 | /* Override any gcc2 internal prototype to avoid an error. */ |
26549 | #ifdef __cplusplus | |
26550 | extern "C" | |
e6cc62c6 | 26551 | { |
247f5006 VZ |
26552 | #endif |
26553 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
26554 | builtin and then its argument prototype would still apply. */ |
26555 | char $ac_func (); | |
247f5006 VZ |
26556 | /* The GNU C library defines this for functions which it implements |
26557 | to always fail with ENOSYS. Some functions are actually named | |
26558 | something starting with __ and the normal name is an alias. */ | |
26559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26560 | choke me | |
26561 | #else | |
e6cc62c6 VS |
26562 | char (*f) () = $ac_func; |
26563 | #endif | |
26564 | #ifdef __cplusplus | |
26565 | } | |
247f5006 | 26566 | #endif |
af15babd | 26567 | |
e6cc62c6 VS |
26568 | int |
26569 | main () | |
26570 | { | |
26571 | return f != $ac_func; | |
26572 | ; | |
26573 | return 0; | |
26574 | } | |
26575 | _ACEOF | |
26576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26578 | (eval $ac_link) 2>&5 | |
26579 | ac_status=$? | |
26580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26581 | (exit $ac_status); } && | |
26582 | { ac_try='test -s conftest$ac_exeext' | |
26583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26584 | (eval $ac_try) 2>&5 | |
26585 | ac_status=$? | |
26586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26587 | (exit $ac_status); }; }; then | |
26588 | eval "$as_ac_var=yes" | |
26589 | else | |
26590 | echo "$as_me: failed program was:" >&5 | |
26591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26592 | ||
26593 | eval "$as_ac_var=no" | |
26594 | fi | |
26595 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26596 | fi | |
26597 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26598 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26599 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26600 | cat >>confdefs.h <<_ACEOF | |
26601 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26602 | _ACEOF | |
52127426 | 26603 | |
5c6fa7d2 | 26604 | fi |
247f5006 | 26605 | done |
8284b0c5 | 26606 | |
4f14bcd8 | 26607 | |
8d90d2f2 | 26608 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
26609 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
26610 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
26611 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
26612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 26613 | else |
e6cc62c6 VS |
26614 | |
26615 | cat >conftest.$ac_ext <<_ACEOF | |
26616 | #line $LINENO "configure" | |
26617 | /* confdefs.h. */ | |
26618 | _ACEOF | |
26619 | cat confdefs.h >>conftest.$ac_ext | |
26620 | cat >>conftest.$ac_ext <<_ACEOF | |
26621 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
26622 | |
26623 | #include <stdio.h> | |
26624 | #include <stdarg.h> | |
e6cc62c6 VS |
26625 | |
26626 | int | |
26627 | main () | |
26628 | { | |
8d90d2f2 VZ |
26629 | |
26630 | char *buf; | |
26631 | va_list ap; | |
26632 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
26633 | |
26634 | ; | |
26635 | return 0; | |
26636 | } | |
26637 | _ACEOF | |
26638 | rm -f conftest.$ac_objext | |
26639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26640 | (eval $ac_compile) 2>&5 | |
26641 | ac_status=$? | |
26642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26643 | (exit $ac_status); } && | |
26644 | { ac_try='test -s conftest.$ac_objext' | |
26645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26646 | (eval $ac_try) 2>&5 | |
26647 | ac_status=$? | |
26648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26649 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
26650 | wx_cv_func_vsnprintf_decl=yes |
26651 | else | |
e6cc62c6 VS |
26652 | echo "$as_me: failed program was:" >&5 |
26653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26654 | ||
26655 | wx_cv_func_vsnprintf_decl=no | |
26656 | ||
8d90d2f2 | 26657 | fi |
e6cc62c6 VS |
26658 | rm -f conftest.$ac_objext conftest.$ac_ext |
26659 | ||
8d90d2f2 | 26660 | |
e6cc62c6 VS |
26661 | fi |
26662 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
26663 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
26664 | |
26665 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 26666 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 26667 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 26668 | _ACEOF |
8d90d2f2 VZ |
26669 | |
26670 | fi | |
26671 | fi | |
26672 | ||
247f5006 | 26673 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
26674 | |
26675 | ||
26676 | ||
26677 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 26678 | do |
e6cc62c6 VS |
26679 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26680 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26681 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26682 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26684 | else | |
26685 | cat >conftest.$ac_ext <<_ACEOF | |
26686 | #line $LINENO "configure" | |
26687 | /* confdefs.h. */ | |
26688 | _ACEOF | |
26689 | cat confdefs.h >>conftest.$ac_ext | |
26690 | cat >>conftest.$ac_ext <<_ACEOF | |
26691 | /* end confdefs.h. */ | |
d74f4b5a | 26692 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26693 | which can conflict with char $ac_func (); below. |
26694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26695 | <limits.h> exists even on freestanding compilers. */ | |
26696 | #ifdef __STDC__ | |
26697 | # include <limits.h> | |
26698 | #else | |
26699 | # include <assert.h> | |
26700 | #endif | |
d74f4b5a | 26701 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26702 | #ifdef __cplusplus |
26703 | extern "C" | |
e6cc62c6 | 26704 | { |
247f5006 | 26705 | #endif |
d74f4b5a | 26706 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26707 | builtin and then its argument prototype would still apply. */ |
26708 | char $ac_func (); | |
d74f4b5a VZ |
26709 | /* The GNU C library defines this for functions which it implements |
26710 | to always fail with ENOSYS. Some functions are actually named | |
26711 | something starting with __ and the normal name is an alias. */ | |
26712 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26713 | choke me | |
26714 | #else | |
e6cc62c6 VS |
26715 | char (*f) () = $ac_func; |
26716 | #endif | |
26717 | #ifdef __cplusplus | |
26718 | } | |
d74f4b5a VZ |
26719 | #endif |
26720 | ||
e6cc62c6 VS |
26721 | int |
26722 | main () | |
26723 | { | |
26724 | return f != $ac_func; | |
26725 | ; | |
26726 | return 0; | |
26727 | } | |
26728 | _ACEOF | |
26729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26731 | (eval $ac_link) 2>&5 | |
26732 | ac_status=$? | |
26733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26734 | (exit $ac_status); } && | |
26735 | { ac_try='test -s conftest$ac_exeext' | |
26736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26737 | (eval $ac_try) 2>&5 | |
26738 | ac_status=$? | |
26739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26740 | (exit $ac_status); }; }; then | |
26741 | eval "$as_ac_var=yes" | |
26742 | else | |
26743 | echo "$as_me: failed program was:" >&5 | |
26744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26745 | ||
26746 | eval "$as_ac_var=no" | |
26747 | fi | |
26748 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26749 | fi | |
26750 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26751 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26752 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26753 | cat >>confdefs.h <<_ACEOF | |
26754 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26755 | _ACEOF | |
d74f4b5a | 26756 | |
d74f4b5a VZ |
26757 | fi |
26758 | done | |
26759 | ||
8d90d2f2 | 26760 | |
e6cc62c6 VS |
26761 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
26762 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
26763 | cat >conftest.$ac_ext <<_ACEOF | |
26764 | #line $LINENO "configure" | |
26765 | /* confdefs.h. */ | |
26766 | _ACEOF | |
26767 | cat confdefs.h >>conftest.$ac_ext | |
26768 | cat >>conftest.$ac_ext <<_ACEOF | |
26769 | /* end confdefs.h. */ | |
79668cae | 26770 | #include <wchar.h> |
e6cc62c6 VS |
26771 | int |
26772 | main () | |
26773 | { | |
79668cae | 26774 | &_vsnwprintf; |
e6cc62c6 VS |
26775 | ; |
26776 | return 0; | |
26777 | } | |
26778 | _ACEOF | |
26779 | rm -f conftest.$ac_objext | |
26780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26781 | (eval $ac_compile) 2>&5 | |
26782 | ac_status=$? | |
26783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26784 | (exit $ac_status); } && | |
26785 | { ac_try='test -s conftest.$ac_objext' | |
26786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26787 | (eval $ac_try) 2>&5 | |
26788 | ac_status=$? | |
26789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26790 | (exit $ac_status); }; }; then | |
26791 | echo "$as_me:$LINENO: result: yes" >&5 | |
26792 | echo "${ECHO_T}yes" >&6 | |
26793 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 26794 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 26795 | _ACEOF |
79668cae MB |
26796 | |
26797 | else | |
e6cc62c6 VS |
26798 | echo "$as_me: failed program was:" >&5 |
26799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26800 | ||
26801 | echo "$as_me:$LINENO: result: no" >&5 | |
26802 | echo "${ECHO_T}no" >&6 | |
79668cae | 26803 | fi |
e6cc62c6 | 26804 | rm -f conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
26805 | fi |
26806 | ||
247f5006 VZ |
26807 | ac_ext=c |
26808 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
26809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26811 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
26812 | |
26813 | ||
26814 | ||
26815 | ||
4f14bcd8 | 26816 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 26817 | |
8284b0c5 MB |
26818 | |
26819 | ||
e6cc62c6 VS |
26820 | |
26821 | ac_ext=cc | |
4f14bcd8 | 26822 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26823 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26824 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26825 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 26826 | |
52127426 | 26827 | |
e6cc62c6 VS |
26828 | |
26829 | ||
26830 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
26831 | if test "${with_libiconv_prefix+set}" = set; then |
26832 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 26833 | |
b040e242 VS |
26834 | for dir in `echo "$withval" | tr : ' '`; do |
26835 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
26836 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
26837 | done | |
b040e242 | 26838 | |
e6cc62c6 | 26839 | fi; |
b040e242 | 26840 | |
e6cc62c6 VS |
26841 | echo "$as_me:$LINENO: checking for iconv" >&5 |
26842 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
26843 | if test "${am_cv_func_iconv+set}" = set; then | |
26844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26845 | else |
e6cc62c6 | 26846 | |
b040e242 VS |
26847 | am_cv_func_iconv="no, consider installing GNU libiconv" |
26848 | am_cv_lib_iconv=no | |
e6cc62c6 VS |
26849 | cat >conftest.$ac_ext <<_ACEOF |
26850 | #line $LINENO "configure" | |
26851 | /* confdefs.h. */ | |
26852 | _ACEOF | |
26853 | cat confdefs.h >>conftest.$ac_ext | |
26854 | cat >>conftest.$ac_ext <<_ACEOF | |
26855 | /* end confdefs.h. */ | |
b040e242 | 26856 | #include <stdlib.h> |
4f14bcd8 | 26857 | #include <iconv.h> |
e6cc62c6 VS |
26858 | int |
26859 | main () | |
26860 | { | |
b040e242 VS |
26861 | iconv_t cd = iconv_open("",""); |
26862 | iconv(cd,NULL,NULL,NULL,NULL); | |
26863 | iconv_close(cd); | |
e6cc62c6 VS |
26864 | ; |
26865 | return 0; | |
26866 | } | |
26867 | _ACEOF | |
26868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26870 | (eval $ac_link) 2>&5 | |
26871 | ac_status=$? | |
26872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26873 | (exit $ac_status); } && | |
26874 | { ac_try='test -s conftest$ac_exeext' | |
26875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26876 | (eval $ac_try) 2>&5 | |
26877 | ac_status=$? | |
26878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26879 | (exit $ac_status); }; }; then | |
b040e242 | 26880 | am_cv_func_iconv=yes |
af15babd | 26881 | else |
e6cc62c6 VS |
26882 | echo "$as_me: failed program was:" >&5 |
26883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26884 | ||
b040e242 | 26885 | fi |
e6cc62c6 | 26886 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26887 | if test "$am_cv_func_iconv" != yes; then |
26888 | am_save_LIBS="$LIBS" | |
26889 | LIBS="$LIBS -liconv" | |
e6cc62c6 VS |
26890 | cat >conftest.$ac_ext <<_ACEOF |
26891 | #line $LINENO "configure" | |
26892 | /* confdefs.h. */ | |
26893 | _ACEOF | |
26894 | cat confdefs.h >>conftest.$ac_ext | |
26895 | cat >>conftest.$ac_ext <<_ACEOF | |
26896 | /* end confdefs.h. */ | |
b040e242 VS |
26897 | #include <stdlib.h> |
26898 | #include <iconv.h> | |
e6cc62c6 VS |
26899 | int |
26900 | main () | |
26901 | { | |
b040e242 VS |
26902 | iconv_t cd = iconv_open("",""); |
26903 | iconv(cd,NULL,NULL,NULL,NULL); | |
26904 | iconv_close(cd); | |
e6cc62c6 VS |
26905 | ; |
26906 | return 0; | |
26907 | } | |
26908 | _ACEOF | |
26909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26911 | (eval $ac_link) 2>&5 | |
26912 | ac_status=$? | |
26913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26914 | (exit $ac_status); } && | |
26915 | { ac_try='test -s conftest$ac_exeext' | |
26916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26917 | (eval $ac_try) 2>&5 | |
26918 | ac_status=$? | |
26919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26920 | (exit $ac_status); }; }; then | |
b040e242 VS |
26921 | am_cv_lib_iconv=yes |
26922 | am_cv_func_iconv=yes | |
26923 | else | |
e6cc62c6 VS |
26924 | echo "$as_me: failed program was:" >&5 |
26925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26926 | ||
af15babd | 26927 | fi |
e6cc62c6 | 26928 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26929 | LIBS="$am_save_LIBS" |
26930 | fi | |
247f5006 | 26931 | |
e6cc62c6 VS |
26932 | fi |
26933 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
26934 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 26935 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
26936 | |
26937 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 26938 | #define HAVE_ICONV 1 |
e6cc62c6 | 26939 | _ACEOF |
b040e242 | 26940 | |
e6cc62c6 VS |
26941 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
26942 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
26943 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
26944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 26945 | else |
e6cc62c6 VS |
26946 | cat >conftest.$ac_ext <<_ACEOF |
26947 | #line $LINENO "configure" | |
26948 | /* confdefs.h. */ | |
26949 | _ACEOF | |
26950 | cat confdefs.h >>conftest.$ac_ext | |
26951 | cat >>conftest.$ac_ext <<_ACEOF | |
26952 | /* end confdefs.h. */ | |
b040e242 VS |
26953 | |
26954 | #include <stdlib.h> | |
26955 | #include <iconv.h> | |
26956 | extern | |
26957 | #ifdef __cplusplus | |
26958 | "C" | |
26959 | #endif | |
26960 | #if defined(__STDC__) || defined(__cplusplus) | |
26961 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
26962 | #else | |
26963 | size_t iconv(); | |
26964 | #endif | |
af15babd | 26965 | |
e6cc62c6 VS |
26966 | int |
26967 | main () | |
26968 | { | |
26969 | ||
26970 | ; | |
26971 | return 0; | |
26972 | } | |
26973 | _ACEOF | |
26974 | rm -f conftest.$ac_objext | |
26975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26976 | (eval $ac_compile) 2>&5 | |
26977 | ac_status=$? | |
26978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26979 | (exit $ac_status); } && | |
26980 | { ac_try='test -s conftest.$ac_objext' | |
26981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26982 | (eval $ac_try) 2>&5 | |
26983 | ac_status=$? | |
26984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26985 | (exit $ac_status); }; }; then | |
b7043674 | 26986 | wx_cv_func_iconv_const="no" |
b040e242 | 26987 | else |
e6cc62c6 VS |
26988 | echo "$as_me: failed program was:" >&5 |
26989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26990 | ||
26991 | wx_cv_func_iconv_const="yes" | |
26992 | ||
247f5006 | 26993 | fi |
e6cc62c6 | 26994 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26995 | |
e6cc62c6 VS |
26996 | fi |
26997 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
26998 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
26999 | |
27000 | iconv_const= | |
1c405bb5 | 27001 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
27002 | iconv_const="const" |
27003 | fi | |
27004 | ||
e6cc62c6 VS |
27005 | |
27006 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 27007 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 27008 | _ACEOF |
b040e242 VS |
27009 | |
27010 | fi | |
27011 | LIBICONV= | |
27012 | if test "$am_cv_lib_iconv" = yes; then | |
27013 | LIBICONV="-liconv" | |
27014 | fi | |
e6cc62c6 | 27015 | |
b040e242 VS |
27016 | |
27017 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 27018 | ac_ext=c |
4f14bcd8 | 27019 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 27023 | |
5c6fa7d2 | 27024 | |
8284b0c5 | 27025 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
27026 | |
27027 | for ac_func in sigaction | |
af15babd | 27028 | do |
e6cc62c6 VS |
27029 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27030 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27031 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27032 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27034 | else | |
27035 | cat >conftest.$ac_ext <<_ACEOF | |
27036 | #line $LINENO "configure" | |
27037 | /* confdefs.h. */ | |
27038 | _ACEOF | |
27039 | cat confdefs.h >>conftest.$ac_ext | |
27040 | cat >>conftest.$ac_ext <<_ACEOF | |
27041 | /* end confdefs.h. */ | |
af15babd | 27042 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27043 | which can conflict with char $ac_func (); below. |
27044 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27045 | <limits.h> exists even on freestanding compilers. */ | |
27046 | #ifdef __STDC__ | |
27047 | # include <limits.h> | |
27048 | #else | |
27049 | # include <assert.h> | |
27050 | #endif | |
af15babd | 27051 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27052 | #ifdef __cplusplus |
27053 | extern "C" | |
27054 | { | |
27055 | #endif | |
af15babd | 27056 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27057 | builtin and then its argument prototype would still apply. */ |
27058 | char $ac_func (); | |
af15babd VZ |
27059 | /* The GNU C library defines this for functions which it implements |
27060 | to always fail with ENOSYS. Some functions are actually named | |
27061 | something starting with __ and the normal name is an alias. */ | |
27062 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27063 | choke me | |
27064 | #else | |
e6cc62c6 VS |
27065 | char (*f) () = $ac_func; |
27066 | #endif | |
27067 | #ifdef __cplusplus | |
27068 | } | |
af15babd VZ |
27069 | #endif |
27070 | ||
e6cc62c6 VS |
27071 | int |
27072 | main () | |
27073 | { | |
27074 | return f != $ac_func; | |
27075 | ; | |
27076 | return 0; | |
27077 | } | |
27078 | _ACEOF | |
27079 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27081 | (eval $ac_link) 2>&5 | |
27082 | ac_status=$? | |
27083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27084 | (exit $ac_status); } && | |
27085 | { ac_try='test -s conftest$ac_exeext' | |
27086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27087 | (eval $ac_try) 2>&5 | |
27088 | ac_status=$? | |
27089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27090 | (exit $ac_status); }; }; then | |
27091 | eval "$as_ac_var=yes" | |
27092 | else | |
27093 | echo "$as_me: failed program was:" >&5 | |
27094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27095 | ||
27096 | eval "$as_ac_var=no" | |
27097 | fi | |
27098 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27099 | fi | |
27100 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27101 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27102 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27103 | cat >>confdefs.h <<_ACEOF | |
27104 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27105 | _ACEOF | |
7b4a847f | 27106 | |
4f14bcd8 GD |
27107 | fi |
27108 | done | |
27109 | ||
8284b0c5 | 27110 | |
4f14bcd8 | 27111 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
27112 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
27113 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
27114 | wxUSE_ON_FATAL_EXCEPTION=no |
27115 | fi | |
27116 | ||
27117 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
27118 | |
27119 | ||
27120 | ac_ext=cc | |
5c6fa7d2 | 27121 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27122 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27123 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27124 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 27125 | |
5c6fa7d2 | 27126 | |
e6cc62c6 VS |
27127 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
27128 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
27129 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
27130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 27131 | else |
e6cc62c6 VS |
27132 | |
27133 | cat >conftest.$ac_ext <<_ACEOF | |
27134 | #line $LINENO "configure" | |
27135 | /* confdefs.h. */ | |
27136 | _ACEOF | |
27137 | cat confdefs.h >>conftest.$ac_ext | |
27138 | cat >>conftest.$ac_ext <<_ACEOF | |
27139 | /* end confdefs.h. */ | |
4f14bcd8 | 27140 | #include <signal.h> |
e6cc62c6 VS |
27141 | int |
27142 | main () | |
27143 | { | |
4f14bcd8 GD |
27144 | |
27145 | extern void testSigHandler(int); | |
27146 | ||
27147 | struct sigaction sa; | |
27148 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
27149 | |
27150 | ; | |
27151 | return 0; | |
27152 | } | |
27153 | _ACEOF | |
27154 | rm -f conftest.$ac_objext | |
27155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27156 | (eval $ac_compile) 2>&5 | |
27157 | ac_status=$? | |
27158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27159 | (exit $ac_status); } && | |
27160 | { ac_try='test -s conftest.$ac_objext' | |
27161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27162 | (eval $ac_try) 2>&5 | |
27163 | ac_status=$? | |
27164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27165 | (exit $ac_status); }; }; then | |
27166 | ||
4f14bcd8 | 27167 | wx_cv_type_sa_handler=int |
e6cc62c6 | 27168 | |
af15babd | 27169 | else |
e6cc62c6 VS |
27170 | echo "$as_me: failed program was:" >&5 |
27171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27172 | ||
27173 | ||
4f14bcd8 | 27174 | wx_cv_type_sa_handler=void |
e6cc62c6 | 27175 | |
247f5006 | 27176 | fi |
e6cc62c6 | 27177 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27178 | |
e6cc62c6 VS |
27179 | fi |
27180 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
27181 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
27182 | |
27183 | ac_ext=c | |
4f14bcd8 | 27184 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 27188 | |
8284b0c5 | 27189 | |
e6cc62c6 | 27190 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 27191 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 27192 | _ACEOF |
af15babd | 27193 | |
4f14bcd8 GD |
27194 | fi |
27195 | fi | |
af15babd | 27196 | |
e6cc62c6 VS |
27197 | |
27198 | ||
a1d22ad7 | 27199 | for ac_func in mkstemp mktemp |
af15babd | 27200 | do |
e6cc62c6 VS |
27201 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27202 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27203 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27204 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27206 | else | |
27207 | cat >conftest.$ac_ext <<_ACEOF | |
27208 | #line $LINENO "configure" | |
27209 | /* confdefs.h. */ | |
27210 | _ACEOF | |
27211 | cat confdefs.h >>conftest.$ac_ext | |
27212 | cat >>conftest.$ac_ext <<_ACEOF | |
27213 | /* end confdefs.h. */ | |
af15babd | 27214 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27215 | which can conflict with char $ac_func (); below. |
27216 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27217 | <limits.h> exists even on freestanding compilers. */ | |
27218 | #ifdef __STDC__ | |
27219 | # include <limits.h> | |
27220 | #else | |
27221 | # include <assert.h> | |
27222 | #endif | |
af15babd | 27223 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27224 | #ifdef __cplusplus |
27225 | extern "C" | |
27226 | { | |
27227 | #endif | |
af15babd | 27228 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27229 | builtin and then its argument prototype would still apply. */ |
27230 | char $ac_func (); | |
af15babd VZ |
27231 | /* The GNU C library defines this for functions which it implements |
27232 | to always fail with ENOSYS. Some functions are actually named | |
27233 | something starting with __ and the normal name is an alias. */ | |
27234 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27235 | choke me | |
27236 | #else | |
e6cc62c6 VS |
27237 | char (*f) () = $ac_func; |
27238 | #endif | |
27239 | #ifdef __cplusplus | |
27240 | } | |
af15babd VZ |
27241 | #endif |
27242 | ||
e6cc62c6 VS |
27243 | int |
27244 | main () | |
27245 | { | |
27246 | return f != $ac_func; | |
27247 | ; | |
27248 | return 0; | |
27249 | } | |
27250 | _ACEOF | |
27251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27253 | (eval $ac_link) 2>&5 | |
27254 | ac_status=$? | |
27255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27256 | (exit $ac_status); } && | |
27257 | { ac_try='test -s conftest$ac_exeext' | |
27258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27259 | (eval $ac_try) 2>&5 | |
27260 | ac_status=$? | |
27261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27262 | (exit $ac_status); }; }; then | |
27263 | eval "$as_ac_var=yes" | |
27264 | else | |
27265 | echo "$as_me: failed program was:" >&5 | |
27266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27267 | ||
27268 | eval "$as_ac_var=no" | |
27269 | fi | |
27270 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27271 | fi | |
27272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27273 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27274 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27275 | cat >>confdefs.h <<_ACEOF | |
27276 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27277 | _ACEOF | |
ade35f11 | 27278 | break |
ade35f11 VZ |
27279 | fi |
27280 | done | |
27281 | ||
8284b0c5 | 27282 | |
e6cc62c6 VS |
27283 | echo "$as_me:$LINENO: checking for statfs" >&5 |
27284 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
27285 | if test "${wx_cv_func_statfs+set}" = set; then | |
27286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 27287 | else |
e6cc62c6 VS |
27288 | cat >conftest.$ac_ext <<_ACEOF |
27289 | #line $LINENO "configure" | |
27290 | /* confdefs.h. */ | |
27291 | _ACEOF | |
27292 | cat confdefs.h >>conftest.$ac_ext | |
27293 | cat >>conftest.$ac_ext <<_ACEOF | |
27294 | /* end confdefs.h. */ | |
4f14bcd8 GD |
27295 | |
27296 | #if defined(__BSD__) | |
27297 | #include <sys/param.h> | |
27298 | #include <sys/mount.h> | |
27299 | #else | |
27300 | #include <sys/vfs.h> | |
27301 | #endif | |
e6cc62c6 VS |
27302 | |
27303 | int | |
27304 | main () | |
27305 | { | |
4f14bcd8 GD |
27306 | |
27307 | long l; | |
27308 | struct statfs fs; | |
27309 | statfs("/", &fs); | |
27310 | l = fs.f_bsize; | |
27311 | l += fs.f_blocks; | |
27312 | l += fs.f_bavail; | |
e6cc62c6 VS |
27313 | |
27314 | ; | |
27315 | return 0; | |
27316 | } | |
27317 | _ACEOF | |
27318 | rm -f conftest.$ac_objext | |
27319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27320 | (eval $ac_compile) 2>&5 | |
27321 | ac_status=$? | |
27322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27323 | (exit $ac_status); } && | |
27324 | { ac_try='test -s conftest.$ac_objext' | |
27325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27326 | (eval $ac_try) 2>&5 | |
27327 | ac_status=$? | |
27328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27329 | (exit $ac_status); }; }; then | |
27330 | ||
4f14bcd8 | 27331 | wx_cv_func_statfs=yes |
e6cc62c6 | 27332 | |
4f14bcd8 | 27333 | else |
e6cc62c6 VS |
27334 | echo "$as_me: failed program was:" >&5 |
27335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27336 | ||
27337 | ||
4f14bcd8 | 27338 | wx_cv_func_statfs=no |
e6cc62c6 | 27339 | |
8284b0c5 | 27340 | |
247f5006 | 27341 | fi |
e6cc62c6 | 27342 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27343 | |
e6cc62c6 VS |
27344 | fi |
27345 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
27346 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
27347 | |
27348 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 27349 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 27350 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27351 | #define HAVE_STATFS 1 |
e6cc62c6 | 27352 | _ACEOF |
4f14bcd8 GD |
27353 | |
27354 | else | |
e6cc62c6 VS |
27355 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
27356 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
27357 | if test "${wx_cv_func_statvfs+set}" = set; then | |
27358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 27359 | else |
e6cc62c6 VS |
27360 | cat >conftest.$ac_ext <<_ACEOF |
27361 | #line $LINENO "configure" | |
27362 | /* confdefs.h. */ | |
27363 | _ACEOF | |
27364 | cat confdefs.h >>conftest.$ac_ext | |
27365 | cat >>conftest.$ac_ext <<_ACEOF | |
27366 | /* end confdefs.h. */ | |
af15babd | 27367 | |
54ab82b3 VZ |
27368 | #include <stddef.h> |
27369 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27370 | |
27371 | int | |
27372 | main () | |
27373 | { | |
af15babd | 27374 | |
54ab82b3 | 27375 | statvfs("/", NULL); |
e6cc62c6 VS |
27376 | |
27377 | ; | |
27378 | return 0; | |
27379 | } | |
27380 | _ACEOF | |
27381 | rm -f conftest.$ac_objext | |
27382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27383 | (eval $ac_compile) 2>&5 | |
27384 | ac_status=$? | |
27385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27386 | (exit $ac_status); } && | |
27387 | { ac_try='test -s conftest.$ac_objext' | |
27388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27389 | (eval $ac_try) 2>&5 | |
27390 | ac_status=$? | |
27391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27392 | (exit $ac_status); }; }; then | |
54ab82b3 | 27393 | wx_cv_func_statvfs=yes |
af15babd | 27394 | else |
e6cc62c6 VS |
27395 | echo "$as_me: failed program was:" >&5 |
27396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27397 | ||
27398 | wx_cv_func_statvfs=no | |
27399 | ||
247f5006 | 27400 | fi |
e6cc62c6 | 27401 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27402 | |
e6cc62c6 VS |
27403 | fi |
27404 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
27405 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 27406 | |
4f14bcd8 | 27407 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
27408 | |
27409 | ||
27410 | ac_ext=cc | |
54ab82b3 | 27411 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27412 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27413 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27414 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
27415 | |
27416 | ||
e6cc62c6 VS |
27417 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
27418 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
27419 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
27420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 27421 | else |
e6cc62c6 VS |
27422 | cat >conftest.$ac_ext <<_ACEOF |
27423 | #line $LINENO "configure" | |
27424 | /* confdefs.h. */ | |
27425 | _ACEOF | |
27426 | cat confdefs.h >>conftest.$ac_ext | |
27427 | cat >>conftest.$ac_ext <<_ACEOF | |
27428 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27429 | |
27430 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27431 | |
27432 | int | |
27433 | main () | |
27434 | { | |
54ab82b3 VZ |
27435 | |
27436 | long l; | |
27437 | statvfs_t fs; | |
27438 | statvfs("/", &fs); | |
27439 | l = fs.f_bsize; | |
27440 | l += fs.f_blocks; | |
27441 | l += fs.f_bavail; | |
e6cc62c6 VS |
27442 | |
27443 | ; | |
27444 | return 0; | |
27445 | } | |
27446 | _ACEOF | |
27447 | rm -f conftest.$ac_objext | |
27448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27449 | (eval $ac_compile) 2>&5 | |
27450 | ac_status=$? | |
27451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27452 | (exit $ac_status); } && | |
27453 | { ac_try='test -s conftest.$ac_objext' | |
27454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27455 | (eval $ac_try) 2>&5 | |
27456 | ac_status=$? | |
27457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27458 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27459 | wx_cv_type_statvfs_t=statvfs_t |
27460 | else | |
e6cc62c6 VS |
27461 | echo "$as_me: failed program was:" >&5 |
27462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27463 | ||
27464 | ||
27465 | cat >conftest.$ac_ext <<_ACEOF | |
27466 | #line $LINENO "configure" | |
27467 | /* confdefs.h. */ | |
27468 | _ACEOF | |
27469 | cat confdefs.h >>conftest.$ac_ext | |
27470 | cat >>conftest.$ac_ext <<_ACEOF | |
27471 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27472 | |
27473 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27474 | |
27475 | int | |
27476 | main () | |
27477 | { | |
54ab82b3 VZ |
27478 | |
27479 | long l; | |
65d8ef1e | 27480 | struct statvfs fs; |
54ab82b3 VZ |
27481 | statvfs("/", &fs); |
27482 | l = fs.f_bsize; | |
27483 | l += fs.f_blocks; | |
27484 | l += fs.f_bavail; | |
e6cc62c6 VS |
27485 | |
27486 | ; | |
27487 | return 0; | |
27488 | } | |
27489 | _ACEOF | |
27490 | rm -f conftest.$ac_objext | |
27491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27492 | (eval $ac_compile) 2>&5 | |
27493 | ac_status=$? | |
27494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27495 | (exit $ac_status); } && | |
27496 | { ac_try='test -s conftest.$ac_objext' | |
27497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27498 | (eval $ac_try) 2>&5 | |
27499 | ac_status=$? | |
27500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27501 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27502 | wx_cv_type_statvfs_t="struct statvfs" |
27503 | else | |
e6cc62c6 VS |
27504 | echo "$as_me: failed program was:" >&5 |
27505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27506 | ||
27507 | wx_cv_type_statvfs_t="unknown" | |
27508 | ||
54ab82b3 | 27509 | fi |
e6cc62c6 VS |
27510 | rm -f conftest.$ac_objext conftest.$ac_ext |
27511 | ||
27512 | ||
54ab82b3 | 27513 | fi |
e6cc62c6 | 27514 | rm -f conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 27515 | |
e6cc62c6 VS |
27516 | fi |
27517 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
27518 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
27519 | |
27520 | ac_ext=c | |
54ab82b3 | 27521 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
27525 | |
27526 | ||
27527 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 27528 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27529 | #define HAVE_STATVFS 1 |
e6cc62c6 | 27530 | _ACEOF |
af15babd | 27531 | |
54ab82b3 | 27532 | fi |
4f14bcd8 | 27533 | else |
54ab82b3 | 27534 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
27535 | fi |
27536 | fi | |
af15babd | 27537 | |
54ab82b3 | 27538 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 27539 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 27540 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 27541 | _ACEOF |
54ab82b3 VZ |
27542 | |
27543 | else | |
e6cc62c6 VS |
27544 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
27545 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
27546 | fi |
27547 | ||
4f14bcd8 | 27548 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
27549 | |
27550 | ||
27551 | for ac_func in fcntl flock | |
af15babd | 27552 | do |
e6cc62c6 VS |
27553 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27554 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27555 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27556 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27558 | else | |
27559 | cat >conftest.$ac_ext <<_ACEOF | |
27560 | #line $LINENO "configure" | |
27561 | /* confdefs.h. */ | |
27562 | _ACEOF | |
27563 | cat confdefs.h >>conftest.$ac_ext | |
27564 | cat >>conftest.$ac_ext <<_ACEOF | |
27565 | /* end confdefs.h. */ | |
af15babd | 27566 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27567 | which can conflict with char $ac_func (); below. |
27568 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27569 | <limits.h> exists even on freestanding compilers. */ | |
27570 | #ifdef __STDC__ | |
27571 | # include <limits.h> | |
27572 | #else | |
27573 | # include <assert.h> | |
27574 | #endif | |
af15babd | 27575 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27576 | #ifdef __cplusplus |
27577 | extern "C" | |
27578 | { | |
27579 | #endif | |
af15babd | 27580 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27581 | builtin and then its argument prototype would still apply. */ |
27582 | char $ac_func (); | |
af15babd VZ |
27583 | /* The GNU C library defines this for functions which it implements |
27584 | to always fail with ENOSYS. Some functions are actually named | |
27585 | something starting with __ and the normal name is an alias. */ | |
27586 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27587 | choke me | |
27588 | #else | |
e6cc62c6 VS |
27589 | char (*f) () = $ac_func; |
27590 | #endif | |
27591 | #ifdef __cplusplus | |
27592 | } | |
af15babd VZ |
27593 | #endif |
27594 | ||
e6cc62c6 VS |
27595 | int |
27596 | main () | |
27597 | { | |
27598 | return f != $ac_func; | |
27599 | ; | |
27600 | return 0; | |
27601 | } | |
27602 | _ACEOF | |
27603 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27605 | (eval $ac_link) 2>&5 | |
27606 | ac_status=$? | |
27607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27608 | (exit $ac_status); } && | |
27609 | { ac_try='test -s conftest$ac_exeext' | |
27610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27611 | (eval $ac_try) 2>&5 | |
27612 | ac_status=$? | |
27613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27614 | (exit $ac_status); }; }; then | |
27615 | eval "$as_ac_var=yes" | |
27616 | else | |
27617 | echo "$as_me: failed program was:" >&5 | |
27618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27619 | ||
27620 | eval "$as_ac_var=no" | |
27621 | fi | |
27622 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27623 | fi | |
27624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27625 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27626 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27627 | cat >>confdefs.h <<_ACEOF | |
27628 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27629 | _ACEOF | |
4f14bcd8 | 27630 | break |
af15babd VZ |
27631 | fi |
27632 | done | |
27633 | ||
8284b0c5 | 27634 | |
4f14bcd8 | 27635 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
27636 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
27637 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
27638 | wxUSE_SNGLINST_CHECKER=no |
27639 | fi | |
27640 | fi | |
af15babd | 27641 | |
e6cc62c6 | 27642 | |
4f14bcd8 | 27643 | for ac_func in timegm |
af15babd | 27644 | do |
e6cc62c6 VS |
27645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27646 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27648 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27650 | else | |
27651 | cat >conftest.$ac_ext <<_ACEOF | |
27652 | #line $LINENO "configure" | |
27653 | /* confdefs.h. */ | |
27654 | _ACEOF | |
27655 | cat confdefs.h >>conftest.$ac_ext | |
27656 | cat >>conftest.$ac_ext <<_ACEOF | |
27657 | /* end confdefs.h. */ | |
af15babd | 27658 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27659 | which can conflict with char $ac_func (); below. |
27660 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27661 | <limits.h> exists even on freestanding compilers. */ | |
27662 | #ifdef __STDC__ | |
27663 | # include <limits.h> | |
27664 | #else | |
27665 | # include <assert.h> | |
27666 | #endif | |
af15babd | 27667 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27668 | #ifdef __cplusplus |
27669 | extern "C" | |
27670 | { | |
27671 | #endif | |
af15babd | 27672 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27673 | builtin and then its argument prototype would still apply. */ |
27674 | char $ac_func (); | |
af15babd VZ |
27675 | /* The GNU C library defines this for functions which it implements |
27676 | to always fail with ENOSYS. Some functions are actually named | |
27677 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
27678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27679 | choke me | |
27680 | #else | |
e6cc62c6 VS |
27681 | char (*f) () = $ac_func; |
27682 | #endif | |
27683 | #ifdef __cplusplus | |
27684 | } | |
247f5006 VZ |
27685 | #endif |
27686 | ||
e6cc62c6 VS |
27687 | int |
27688 | main () | |
27689 | { | |
27690 | return f != $ac_func; | |
27691 | ; | |
27692 | return 0; | |
27693 | } | |
27694 | _ACEOF | |
27695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27697 | (eval $ac_link) 2>&5 | |
27698 | ac_status=$? | |
27699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27700 | (exit $ac_status); } && | |
27701 | { ac_try='test -s conftest$ac_exeext' | |
27702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27703 | (eval $ac_try) 2>&5 | |
27704 | ac_status=$? | |
27705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27706 | (exit $ac_status); }; }; then | |
27707 | eval "$as_ac_var=yes" | |
27708 | else | |
27709 | echo "$as_me: failed program was:" >&5 | |
27710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27711 | ||
27712 | eval "$as_ac_var=no" | |
27713 | fi | |
27714 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27715 | fi | |
27716 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27717 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27718 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27719 | cat >>confdefs.h <<_ACEOF | |
27720 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27721 | _ACEOF | |
703e0a69 | 27722 | |
af15babd VZ |
27723 | fi |
27724 | done | |
27725 | ||
8284b0c5 | 27726 | |
e6cc62c6 VS |
27727 | |
27728 | ||
4f14bcd8 | 27729 | for ac_func in putenv setenv |
10f2d63a | 27730 | do |
e6cc62c6 VS |
27731 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27732 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27733 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27734 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27736 | else | |
27737 | cat >conftest.$ac_ext <<_ACEOF | |
27738 | #line $LINENO "configure" | |
27739 | /* confdefs.h. */ | |
27740 | _ACEOF | |
27741 | cat confdefs.h >>conftest.$ac_ext | |
27742 | cat >>conftest.$ac_ext <<_ACEOF | |
27743 | /* end confdefs.h. */ | |
af15babd | 27744 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27745 | which can conflict with char $ac_func (); below. |
27746 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27747 | <limits.h> exists even on freestanding compilers. */ | |
27748 | #ifdef __STDC__ | |
27749 | # include <limits.h> | |
27750 | #else | |
27751 | # include <assert.h> | |
27752 | #endif | |
af15babd | 27753 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27754 | #ifdef __cplusplus |
27755 | extern "C" | |
27756 | { | |
27757 | #endif | |
af15babd | 27758 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27759 | builtin and then its argument prototype would still apply. */ |
27760 | char $ac_func (); | |
af15babd VZ |
27761 | /* The GNU C library defines this for functions which it implements |
27762 | to always fail with ENOSYS. Some functions are actually named | |
27763 | something starting with __ and the normal name is an alias. */ | |
27764 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27765 | choke me | |
27766 | #else | |
e6cc62c6 VS |
27767 | char (*f) () = $ac_func; |
27768 | #endif | |
27769 | #ifdef __cplusplus | |
27770 | } | |
af15babd VZ |
27771 | #endif |
27772 | ||
e6cc62c6 VS |
27773 | int |
27774 | main () | |
27775 | { | |
27776 | return f != $ac_func; | |
27777 | ; | |
27778 | return 0; | |
27779 | } | |
27780 | _ACEOF | |
27781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27783 | (eval $ac_link) 2>&5 | |
27784 | ac_status=$? | |
27785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27786 | (exit $ac_status); } && | |
27787 | { ac_try='test -s conftest$ac_exeext' | |
27788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27789 | (eval $ac_try) 2>&5 | |
27790 | ac_status=$? | |
27791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27792 | (exit $ac_status); }; }; then | |
27793 | eval "$as_ac_var=yes" | |
27794 | else | |
27795 | echo "$as_me: failed program was:" >&5 | |
27796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27797 | ||
27798 | eval "$as_ac_var=no" | |
27799 | fi | |
27800 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27801 | fi | |
27802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27803 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27804 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27805 | cat >>confdefs.h <<_ACEOF | |
27806 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27807 | _ACEOF | |
4f14bcd8 | 27808 | break |
af15babd | 27809 | fi |
af15babd VZ |
27810 | done |
27811 | ||
8284b0c5 | 27812 | |
4f14bcd8 GD |
27813 | HAVE_SOME_SLEEP_FUNC=0 |
27814 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 27815 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27816 | #define HAVE_SLEEP 1 |
e6cc62c6 | 27817 | _ACEOF |
af15babd | 27818 | |
4f14bcd8 | 27819 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27820 | fi |
27821 | ||
4f14bcd8 | 27822 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 27823 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27824 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27825 | _ACEOF |
10f2d63a | 27826 | |
4f14bcd8 | 27827 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27828 | fi |
27829 | ||
4f14bcd8 GD |
27830 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
27831 | POSIX4_LINK= | |
e6cc62c6 VS |
27832 | |
27833 | for ac_func in nanosleep | |
4f14bcd8 | 27834 | do |
e6cc62c6 VS |
27835 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27836 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27837 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27838 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27840 | else | |
27841 | cat >conftest.$ac_ext <<_ACEOF | |
27842 | #line $LINENO "configure" | |
27843 | /* confdefs.h. */ | |
27844 | _ACEOF | |
27845 | cat confdefs.h >>conftest.$ac_ext | |
27846 | cat >>conftest.$ac_ext <<_ACEOF | |
27847 | /* end confdefs.h. */ | |
4f14bcd8 | 27848 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27849 | which can conflict with char $ac_func (); below. |
27850 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27851 | <limits.h> exists even on freestanding compilers. */ | |
27852 | #ifdef __STDC__ | |
27853 | # include <limits.h> | |
27854 | #else | |
27855 | # include <assert.h> | |
27856 | #endif | |
10f2d63a | 27857 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27858 | #ifdef __cplusplus |
27859 | extern "C" | |
27860 | { | |
27861 | #endif | |
10f2d63a | 27862 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27863 | builtin and then its argument prototype would still apply. */ |
27864 | char $ac_func (); | |
4f14bcd8 GD |
27865 | /* The GNU C library defines this for functions which it implements |
27866 | to always fail with ENOSYS. Some functions are actually named | |
27867 | something starting with __ and the normal name is an alias. */ | |
27868 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27869 | choke me | |
27870 | #else | |
e6cc62c6 VS |
27871 | char (*f) () = $ac_func; |
27872 | #endif | |
27873 | #ifdef __cplusplus | |
27874 | } | |
4f14bcd8 GD |
27875 | #endif |
27876 | ||
e6cc62c6 VS |
27877 | int |
27878 | main () | |
27879 | { | |
27880 | return f != $ac_func; | |
27881 | ; | |
27882 | return 0; | |
27883 | } | |
27884 | _ACEOF | |
27885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27887 | (eval $ac_link) 2>&5 | |
27888 | ac_status=$? | |
27889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27890 | (exit $ac_status); } && | |
27891 | { ac_try='test -s conftest$ac_exeext' | |
27892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27893 | (eval $ac_try) 2>&5 | |
27894 | ac_status=$? | |
27895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27896 | (exit $ac_status); }; }; then | |
27897 | eval "$as_ac_var=yes" | |
27898 | else | |
27899 | echo "$as_me: failed program was:" >&5 | |
27900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27901 | ||
27902 | eval "$as_ac_var=no" | |
27903 | fi | |
27904 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27905 | fi | |
27906 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27907 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27908 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27909 | cat >>confdefs.h <<_ACEOF | |
27910 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27911 | _ACEOF | |
27912 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27913 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27914 | _ACEOF |
4f14bcd8 | 27915 | |
10f2d63a | 27916 | else |
e6cc62c6 VS |
27917 | |
27918 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
27919 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
27920 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
27921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27922 | else |
e6cc62c6 | 27923 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27924 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
27925 | cat >conftest.$ac_ext <<_ACEOF |
27926 | #line $LINENO "configure" | |
27927 | /* confdefs.h. */ | |
27928 | _ACEOF | |
27929 | cat confdefs.h >>conftest.$ac_ext | |
27930 | cat >>conftest.$ac_ext <<_ACEOF | |
27931 | /* end confdefs.h. */ | |
27932 | ||
10f2d63a | 27933 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27934 | #ifdef __cplusplus |
27935 | extern "C" | |
27936 | #endif | |
10f2d63a | 27937 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27938 | builtin and then its argument prototype would still apply. */ |
27939 | char nanosleep (); | |
27940 | int | |
27941 | main () | |
27942 | { | |
27943 | nanosleep (); | |
27944 | ; | |
27945 | return 0; | |
27946 | } | |
27947 | _ACEOF | |
27948 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27950 | (eval $ac_link) 2>&5 | |
27951 | ac_status=$? | |
27952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27953 | (exit $ac_status); } && | |
27954 | { ac_try='test -s conftest$ac_exeext' | |
27955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27956 | (eval $ac_try) 2>&5 | |
27957 | ac_status=$? | |
27958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27959 | (exit $ac_status); }; }; then | |
27960 | ac_cv_lib_posix4_nanosleep=yes | |
27961 | else | |
27962 | echo "$as_me: failed program was:" >&5 | |
27963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27964 | ||
27965 | ac_cv_lib_posix4_nanosleep=no | |
27966 | fi | |
27967 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27968 | LIBS=$ac_check_lib_save_LIBS | |
27969 | fi | |
27970 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
27971 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
27972 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
27973 | ||
27974 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27975 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27976 | _ACEOF |
4f14bcd8 | 27977 | |
3d63bc3a | 27978 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 27979 | |
10f2d63a | 27980 | else |
10f2d63a | 27981 | |
e6cc62c6 VS |
27982 | |
27983 | for ac_func in usleep | |
4f14bcd8 | 27984 | do |
e6cc62c6 VS |
27985 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27986 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27987 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27988 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27990 | else | |
27991 | cat >conftest.$ac_ext <<_ACEOF | |
27992 | #line $LINENO "configure" | |
27993 | /* confdefs.h. */ | |
27994 | _ACEOF | |
27995 | cat confdefs.h >>conftest.$ac_ext | |
27996 | cat >>conftest.$ac_ext <<_ACEOF | |
27997 | /* end confdefs.h. */ | |
4f14bcd8 | 27998 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27999 | which can conflict with char $ac_func (); below. |
28000 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28001 | <limits.h> exists even on freestanding compilers. */ | |
28002 | #ifdef __STDC__ | |
28003 | # include <limits.h> | |
28004 | #else | |
28005 | # include <assert.h> | |
28006 | #endif | |
4f14bcd8 | 28007 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28008 | #ifdef __cplusplus |
28009 | extern "C" | |
28010 | { | |
28011 | #endif | |
4f14bcd8 | 28012 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28013 | builtin and then its argument prototype would still apply. */ |
28014 | char $ac_func (); | |
4f14bcd8 GD |
28015 | /* The GNU C library defines this for functions which it implements |
28016 | to always fail with ENOSYS. Some functions are actually named | |
28017 | something starting with __ and the normal name is an alias. */ | |
28018 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28019 | choke me | |
28020 | #else | |
e6cc62c6 VS |
28021 | char (*f) () = $ac_func; |
28022 | #endif | |
28023 | #ifdef __cplusplus | |
28024 | } | |
4f14bcd8 GD |
28025 | #endif |
28026 | ||
e6cc62c6 VS |
28027 | int |
28028 | main () | |
28029 | { | |
28030 | return f != $ac_func; | |
28031 | ; | |
28032 | return 0; | |
28033 | } | |
28034 | _ACEOF | |
28035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28037 | (eval $ac_link) 2>&5 | |
28038 | ac_status=$? | |
28039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28040 | (exit $ac_status); } && | |
28041 | { ac_try='test -s conftest$ac_exeext' | |
28042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28043 | (eval $ac_try) 2>&5 | |
28044 | ac_status=$? | |
28045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28046 | (exit $ac_status); }; }; then | |
28047 | eval "$as_ac_var=yes" | |
28048 | else | |
28049 | echo "$as_me: failed program was:" >&5 | |
28050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28051 | ||
28052 | eval "$as_ac_var=no" | |
28053 | fi | |
28054 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28055 | fi | |
28056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28057 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28058 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28059 | cat >>confdefs.h <<_ACEOF | |
28060 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28061 | _ACEOF | |
28062 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28063 | #define HAVE_USLEEP 1 |
e6cc62c6 | 28064 | _ACEOF |
4f14bcd8 | 28065 | |
698dcdb6 | 28066 | else |
e6cc62c6 VS |
28067 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
28068 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
28069 | ||
10f2d63a | 28070 | fi |
4f14bcd8 | 28071 | done |
10f2d63a | 28072 | |
e6cc62c6 VS |
28073 | |
28074 | ||
6232543b | 28075 | fi |
10f2d63a | 28076 | |
e6cc62c6 VS |
28077 | |
28078 | ||
1e487827 | 28079 | fi |
4f14bcd8 | 28080 | done |
703e0a69 | 28081 | |
10f2d63a VZ |
28082 | fi |
28083 | ||
e6cc62c6 VS |
28084 | |
28085 | ||
4f14bcd8 | 28086 | for ac_func in uname gethostname |
70846f0a | 28087 | do |
e6cc62c6 VS |
28088 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28089 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28090 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28091 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28093 | else | |
28094 | cat >conftest.$ac_ext <<_ACEOF | |
28095 | #line $LINENO "configure" | |
28096 | /* confdefs.h. */ | |
28097 | _ACEOF | |
28098 | cat confdefs.h >>conftest.$ac_ext | |
28099 | cat >>conftest.$ac_ext <<_ACEOF | |
28100 | /* end confdefs.h. */ | |
70846f0a | 28101 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28102 | which can conflict with char $ac_func (); below. |
28103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28104 | <limits.h> exists even on freestanding compilers. */ | |
28105 | #ifdef __STDC__ | |
28106 | # include <limits.h> | |
28107 | #else | |
28108 | # include <assert.h> | |
28109 | #endif | |
70846f0a | 28110 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28111 | #ifdef __cplusplus |
28112 | extern "C" | |
28113 | { | |
28114 | #endif | |
70846f0a | 28115 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28116 | builtin and then its argument prototype would still apply. */ |
28117 | char $ac_func (); | |
70846f0a VZ |
28118 | /* The GNU C library defines this for functions which it implements |
28119 | to always fail with ENOSYS. Some functions are actually named | |
28120 | something starting with __ and the normal name is an alias. */ | |
28121 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28122 | choke me | |
28123 | #else | |
e6cc62c6 VS |
28124 | char (*f) () = $ac_func; |
28125 | #endif | |
28126 | #ifdef __cplusplus | |
28127 | } | |
70846f0a VZ |
28128 | #endif |
28129 | ||
e6cc62c6 VS |
28130 | int |
28131 | main () | |
28132 | { | |
28133 | return f != $ac_func; | |
28134 | ; | |
28135 | return 0; | |
28136 | } | |
28137 | _ACEOF | |
28138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28140 | (eval $ac_link) 2>&5 | |
28141 | ac_status=$? | |
28142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28143 | (exit $ac_status); } && | |
28144 | { ac_try='test -s conftest$ac_exeext' | |
28145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28146 | (eval $ac_try) 2>&5 | |
28147 | ac_status=$? | |
28148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28149 | (exit $ac_status); }; }; then | |
28150 | eval "$as_ac_var=yes" | |
28151 | else | |
28152 | echo "$as_me: failed program was:" >&5 | |
28153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28154 | ||
28155 | eval "$as_ac_var=no" | |
28156 | fi | |
28157 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28158 | fi | |
28159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28160 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28161 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28162 | cat >>confdefs.h <<_ACEOF | |
28163 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28164 | _ACEOF | |
4f14bcd8 | 28165 | break |
70846f0a VZ |
28166 | fi |
28167 | done | |
28168 | ||
8284b0c5 MB |
28169 | |
28170 | ||
e6cc62c6 VS |
28171 | |
28172 | ac_ext=cc | |
4f14bcd8 | 28173 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28174 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28175 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28176 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28177 | ||
8284b0c5 | 28178 | |
4f14bcd8 GD |
28179 | |
28180 | for ac_func in strtok_r | |
10f2d63a | 28181 | do |
e6cc62c6 VS |
28182 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28183 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28184 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28185 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28187 | else | |
28188 | cat >conftest.$ac_ext <<_ACEOF | |
28189 | #line $LINENO "configure" | |
28190 | /* confdefs.h. */ | |
28191 | _ACEOF | |
28192 | cat confdefs.h >>conftest.$ac_ext | |
28193 | cat >>conftest.$ac_ext <<_ACEOF | |
28194 | /* end confdefs.h. */ | |
4f14bcd8 | 28195 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28196 | which can conflict with char $ac_func (); below. |
28197 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28198 | <limits.h> exists even on freestanding compilers. */ | |
28199 | #ifdef __STDC__ | |
28200 | # include <limits.h> | |
28201 | #else | |
28202 | # include <assert.h> | |
28203 | #endif | |
4f14bcd8 GD |
28204 | /* Override any gcc2 internal prototype to avoid an error. */ |
28205 | #ifdef __cplusplus | |
28206 | extern "C" | |
e6cc62c6 | 28207 | { |
4f14bcd8 GD |
28208 | #endif |
28209 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
28210 | builtin and then its argument prototype would still apply. */ |
28211 | char $ac_func (); | |
4f14bcd8 GD |
28212 | /* The GNU C library defines this for functions which it implements |
28213 | to always fail with ENOSYS. Some functions are actually named | |
28214 | something starting with __ and the normal name is an alias. */ | |
28215 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28216 | choke me | |
28217 | #else | |
e6cc62c6 VS |
28218 | char (*f) () = $ac_func; |
28219 | #endif | |
28220 | #ifdef __cplusplus | |
28221 | } | |
4f14bcd8 GD |
28222 | #endif |
28223 | ||
e6cc62c6 VS |
28224 | int |
28225 | main () | |
28226 | { | |
28227 | return f != $ac_func; | |
28228 | ; | |
28229 | return 0; | |
28230 | } | |
28231 | _ACEOF | |
28232 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28234 | (eval $ac_link) 2>&5 | |
28235 | ac_status=$? | |
28236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28237 | (exit $ac_status); } && | |
28238 | { ac_try='test -s conftest$ac_exeext' | |
28239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28240 | (eval $ac_try) 2>&5 | |
28241 | ac_status=$? | |
28242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28243 | (exit $ac_status); }; }; then | |
28244 | eval "$as_ac_var=yes" | |
28245 | else | |
28246 | echo "$as_me: failed program was:" >&5 | |
28247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28248 | ||
28249 | eval "$as_ac_var=no" | |
28250 | fi | |
28251 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28252 | fi | |
28253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28254 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28255 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28256 | cat >>confdefs.h <<_ACEOF | |
28257 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28258 | _ACEOF | |
4f14bcd8 | 28259 | |
10f2d63a VZ |
28260 | fi |
28261 | done | |
28262 | ||
8284b0c5 | 28263 | |
4f14bcd8 | 28264 | ac_ext=c |
4f14bcd8 | 28265 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 28269 | |
5c6fa7d2 | 28270 | |
8284b0c5 | 28271 | INET_LINK= |
e6cc62c6 | 28272 | |
4f14bcd8 GD |
28273 | for ac_func in inet_addr |
28274 | do | |
e6cc62c6 VS |
28275 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28276 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28277 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28278 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28280 | else | |
28281 | cat >conftest.$ac_ext <<_ACEOF | |
28282 | #line $LINENO "configure" | |
28283 | /* confdefs.h. */ | |
28284 | _ACEOF | |
28285 | cat confdefs.h >>conftest.$ac_ext | |
28286 | cat >>conftest.$ac_ext <<_ACEOF | |
28287 | /* end confdefs.h. */ | |
4f14bcd8 | 28288 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28289 | which can conflict with char $ac_func (); below. |
28290 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28291 | <limits.h> exists even on freestanding compilers. */ | |
28292 | #ifdef __STDC__ | |
28293 | # include <limits.h> | |
28294 | #else | |
28295 | # include <assert.h> | |
28296 | #endif | |
10f2d63a | 28297 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28298 | #ifdef __cplusplus |
28299 | extern "C" | |
28300 | { | |
28301 | #endif | |
10f2d63a | 28302 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28303 | builtin and then its argument prototype would still apply. */ |
28304 | char $ac_func (); | |
4f14bcd8 GD |
28305 | /* The GNU C library defines this for functions which it implements |
28306 | to always fail with ENOSYS. Some functions are actually named | |
28307 | something starting with __ and the normal name is an alias. */ | |
28308 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28309 | choke me | |
28310 | #else | |
e6cc62c6 VS |
28311 | char (*f) () = $ac_func; |
28312 | #endif | |
28313 | #ifdef __cplusplus | |
28314 | } | |
4f14bcd8 GD |
28315 | #endif |
28316 | ||
e6cc62c6 VS |
28317 | int |
28318 | main () | |
28319 | { | |
28320 | return f != $ac_func; | |
28321 | ; | |
28322 | return 0; | |
28323 | } | |
28324 | _ACEOF | |
28325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28327 | (eval $ac_link) 2>&5 | |
28328 | ac_status=$? | |
28329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28330 | (exit $ac_status); } && | |
28331 | { ac_try='test -s conftest$ac_exeext' | |
28332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28333 | (eval $ac_try) 2>&5 | |
28334 | ac_status=$? | |
28335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28336 | (exit $ac_status); }; }; then | |
28337 | eval "$as_ac_var=yes" | |
28338 | else | |
28339 | echo "$as_me: failed program was:" >&5 | |
28340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28341 | ||
28342 | eval "$as_ac_var=no" | |
28343 | fi | |
28344 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28345 | fi | |
28346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28347 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28348 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28349 | cat >>confdefs.h <<_ACEOF | |
28350 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28351 | _ACEOF | |
28352 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28353 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 28354 | _ACEOF |
10f2d63a VZ |
28355 | |
28356 | else | |
e6cc62c6 VS |
28357 | |
28358 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
28359 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
28360 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
28361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28362 | else |
e6cc62c6 | 28363 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28364 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
28365 | cat >conftest.$ac_ext <<_ACEOF |
28366 | #line $LINENO "configure" | |
28367 | /* confdefs.h. */ | |
28368 | _ACEOF | |
28369 | cat confdefs.h >>conftest.$ac_ext | |
28370 | cat >>conftest.$ac_ext <<_ACEOF | |
28371 | /* end confdefs.h. */ | |
28372 | ||
10f2d63a | 28373 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28374 | #ifdef __cplusplus |
28375 | extern "C" | |
28376 | #endif | |
10f2d63a | 28377 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28378 | builtin and then its argument prototype would still apply. */ |
28379 | char inet_addr (); | |
28380 | int | |
28381 | main () | |
28382 | { | |
28383 | inet_addr (); | |
28384 | ; | |
28385 | return 0; | |
28386 | } | |
28387 | _ACEOF | |
28388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28390 | (eval $ac_link) 2>&5 | |
28391 | ac_status=$? | |
28392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28393 | (exit $ac_status); } && | |
28394 | { ac_try='test -s conftest$ac_exeext' | |
28395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28396 | (eval $ac_try) 2>&5 | |
28397 | ac_status=$? | |
28398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28399 | (exit $ac_status); }; }; then | |
28400 | ac_cv_lib_nsl_inet_addr=yes | |
28401 | else | |
28402 | echo "$as_me: failed program was:" >&5 | |
28403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28404 | ||
28405 | ac_cv_lib_nsl_inet_addr=no | |
28406 | fi | |
28407 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28408 | LIBS=$ac_check_lib_save_LIBS | |
28409 | fi | |
28410 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
28411 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
28412 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 28413 | INET_LINK="nsl" |
10f2d63a | 28414 | else |
e6cc62c6 VS |
28415 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 |
28416 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
28417 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
28418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28419 | else |
e6cc62c6 | 28420 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28421 | LIBS="-lresolv $LIBS" |
e6cc62c6 VS |
28422 | cat >conftest.$ac_ext <<_ACEOF |
28423 | #line $LINENO "configure" | |
28424 | /* confdefs.h. */ | |
28425 | _ACEOF | |
28426 | cat confdefs.h >>conftest.$ac_ext | |
28427 | cat >>conftest.$ac_ext <<_ACEOF | |
28428 | /* end confdefs.h. */ | |
28429 | ||
5c6fa7d2 | 28430 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28431 | #ifdef __cplusplus |
28432 | extern "C" | |
28433 | #endif | |
5c6fa7d2 | 28434 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28435 | builtin and then its argument prototype would still apply. */ |
28436 | char inet_addr (); | |
28437 | int | |
28438 | main () | |
28439 | { | |
28440 | inet_addr (); | |
28441 | ; | |
28442 | return 0; | |
28443 | } | |
28444 | _ACEOF | |
28445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28447 | (eval $ac_link) 2>&5 | |
28448 | ac_status=$? | |
28449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28450 | (exit $ac_status); } && | |
28451 | { ac_try='test -s conftest$ac_exeext' | |
28452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28453 | (eval $ac_try) 2>&5 | |
28454 | ac_status=$? | |
28455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28456 | (exit $ac_status); }; }; then | |
28457 | ac_cv_lib_resolv_inet_addr=yes | |
28458 | else | |
28459 | echo "$as_me: failed program was:" >&5 | |
28460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28461 | ||
28462 | ac_cv_lib_resolv_inet_addr=no | |
28463 | fi | |
28464 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28465 | LIBS=$ac_check_lib_save_LIBS | |
28466 | fi | |
28467 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
28468 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
28469 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 28470 | INET_LINK="resolv" |
698dcdb6 | 28471 | else |
e6cc62c6 VS |
28472 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 |
28473 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
28474 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
28475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 28476 | else |
e6cc62c6 | 28477 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 28478 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
28479 | cat >conftest.$ac_ext <<_ACEOF |
28480 | #line $LINENO "configure" | |
28481 | /* confdefs.h. */ | |
28482 | _ACEOF | |
28483 | cat confdefs.h >>conftest.$ac_ext | |
28484 | cat >>conftest.$ac_ext <<_ACEOF | |
28485 | /* end confdefs.h. */ | |
28486 | ||
3c011993 | 28487 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28488 | #ifdef __cplusplus |
28489 | extern "C" | |
28490 | #endif | |
3c011993 | 28491 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28492 | builtin and then its argument prototype would still apply. */ |
28493 | char inet_addr (); | |
28494 | int | |
28495 | main () | |
28496 | { | |
28497 | inet_addr (); | |
28498 | ; | |
28499 | return 0; | |
28500 | } | |
28501 | _ACEOF | |
28502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28504 | (eval $ac_link) 2>&5 | |
28505 | ac_status=$? | |
28506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28507 | (exit $ac_status); } && | |
28508 | { ac_try='test -s conftest$ac_exeext' | |
28509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28510 | (eval $ac_try) 2>&5 | |
28511 | ac_status=$? | |
28512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28513 | (exit $ac_status); }; }; then | |
28514 | ac_cv_lib_socket_inet_addr=yes | |
28515 | else | |
28516 | echo "$as_me: failed program was:" >&5 | |
28517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28518 | ||
28519 | ac_cv_lib_socket_inet_addr=no | |
28520 | fi | |
28521 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28522 | LIBS=$ac_check_lib_save_LIBS | |
28523 | fi | |
28524 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
28525 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
28526 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
28527 | INET_LINK="socket" | |
4f14bcd8 | 28528 | |
8284b0c5 | 28529 | fi |
e6cc62c6 | 28530 | |
698dcdb6 | 28531 | |
7b4a847f | 28532 | fi |
e6cc62c6 VS |
28533 | |
28534 | ||
a0b9e27f | 28535 | fi |
579d8138 | 28536 | |
e6cc62c6 VS |
28537 | |
28538 | ||
5c6fa7d2 | 28539 | fi |
e6cc62c6 VS |
28540 | done |
28541 | ||
28542 | ||
28543 | ||
28544 | for ac_func in inet_aton | |
28545 | do | |
28546 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28547 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28548 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28549 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28551 | else | |
28552 | cat >conftest.$ac_ext <<_ACEOF | |
28553 | #line $LINENO "configure" | |
28554 | /* confdefs.h. */ | |
28555 | _ACEOF | |
28556 | cat confdefs.h >>conftest.$ac_ext | |
28557 | cat >>conftest.$ac_ext <<_ACEOF | |
28558 | /* end confdefs.h. */ | |
28559 | /* System header to define __stub macros and hopefully few prototypes, | |
28560 | which can conflict with char $ac_func (); below. | |
28561 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28562 | <limits.h> exists even on freestanding compilers. */ | |
28563 | #ifdef __STDC__ | |
28564 | # include <limits.h> | |
28565 | #else | |
28566 | # include <assert.h> | |
28567 | #endif | |
28568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28569 | #ifdef __cplusplus | |
28570 | extern "C" | |
28571 | { | |
28572 | #endif | |
28573 | /* We use char because int might match the return type of a gcc2 | |
28574 | builtin and then its argument prototype would still apply. */ | |
28575 | char $ac_func (); | |
28576 | /* The GNU C library defines this for functions which it implements | |
28577 | to always fail with ENOSYS. Some functions are actually named | |
28578 | something starting with __ and the normal name is an alias. */ | |
28579 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28580 | choke me | |
28581 | #else | |
28582 | char (*f) () = $ac_func; | |
28583 | #endif | |
28584 | #ifdef __cplusplus | |
28585 | } | |
28586 | #endif | |
28587 | ||
28588 | int | |
28589 | main () | |
28590 | { | |
28591 | return f != $ac_func; | |
28592 | ; | |
28593 | return 0; | |
28594 | } | |
28595 | _ACEOF | |
28596 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28598 | (eval $ac_link) 2>&5 | |
28599 | ac_status=$? | |
28600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28601 | (exit $ac_status); } && | |
28602 | { ac_try='test -s conftest$ac_exeext' | |
28603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28604 | (eval $ac_try) 2>&5 | |
28605 | ac_status=$? | |
28606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28607 | (exit $ac_status); }; }; then | |
28608 | eval "$as_ac_var=yes" | |
28609 | else | |
28610 | echo "$as_me: failed program was:" >&5 | |
28611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28612 | ||
28613 | eval "$as_ac_var=no" | |
28614 | fi | |
28615 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28616 | fi | |
28617 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28618 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28619 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28620 | cat >>confdefs.h <<_ACEOF | |
28621 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28622 | _ACEOF | |
28623 | cat >>confdefs.h <<\_ACEOF | |
28624 | #define HAVE_INET_ATON 1 | |
28625 | _ACEOF | |
28626 | ||
28627 | else | |
28628 | ||
28629 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
28630 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
28631 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
28632 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
28633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28634 | else | |
28635 | ac_check_lib_save_LIBS=$LIBS | |
28636 | LIBS="-l$INET_LINK $LIBS" | |
28637 | cat >conftest.$ac_ext <<_ACEOF | |
28638 | #line $LINENO "configure" | |
28639 | /* confdefs.h. */ | |
28640 | _ACEOF | |
28641 | cat confdefs.h >>conftest.$ac_ext | |
28642 | cat >>conftest.$ac_ext <<_ACEOF | |
28643 | /* end confdefs.h. */ | |
28644 | ||
28645 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28646 | #ifdef __cplusplus | |
28647 | extern "C" | |
28648 | #endif | |
28649 | /* We use char because int might match the return type of a gcc2 | |
28650 | builtin and then its argument prototype would still apply. */ | |
28651 | char inet_aton (); | |
28652 | int | |
28653 | main () | |
28654 | { | |
28655 | inet_aton (); | |
28656 | ; | |
28657 | return 0; | |
28658 | } | |
28659 | _ACEOF | |
28660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28662 | (eval $ac_link) 2>&5 | |
28663 | ac_status=$? | |
28664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28665 | (exit $ac_status); } && | |
28666 | { ac_try='test -s conftest$ac_exeext' | |
28667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28668 | (eval $ac_try) 2>&5 | |
28669 | ac_status=$? | |
28670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28671 | (exit $ac_status); }; }; then | |
28672 | eval "$as_ac_Lib=yes" | |
28673 | else | |
28674 | echo "$as_me: failed program was:" >&5 | |
28675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28676 | ||
28677 | eval "$as_ac_Lib=no" | |
28678 | fi | |
28679 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28680 | LIBS=$ac_check_lib_save_LIBS | |
28681 | fi | |
28682 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
28683 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
28684 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
28685 | cat >>confdefs.h <<\_ACEOF | |
28686 | #define HAVE_INET_ATON 1 | |
28687 | _ACEOF | |
52127426 | 28688 | |
a0b9e27f | 28689 | fi |
247f5006 | 28690 | |
8284b0c5 | 28691 | |
698dcdb6 | 28692 | fi |
4f14bcd8 GD |
28693 | done |
28694 | ||
8284b0c5 | 28695 | |
e6cc62c6 VS |
28696 | if test "x$INET_LINK" != "x"; then |
28697 | cat >>confdefs.h <<\_ACEOF | |
28698 | #define HAVE_INET_ADDR 1 | |
28699 | _ACEOF | |
28700 | ||
28701 | INET_LINK=" -l$INET_LINK" | |
28702 | fi | |
28703 | ||
28704 | fi | |
a0b9e27f | 28705 | |
a0b9e27f | 28706 | |
4f14bcd8 | 28707 | |
edd891e2 VS |
28708 | EXTRALIBS_ESD= |
28709 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
28710 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
28711 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
28712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28713 | else | |
28714 | ac_check_lib_save_LIBS=$LIBS | |
28715 | LIBS="-lesd $LIBS" | |
28716 | cat >conftest.$ac_ext <<_ACEOF | |
28717 | #line $LINENO "configure" | |
28718 | /* confdefs.h. */ | |
28719 | _ACEOF | |
28720 | cat confdefs.h >>conftest.$ac_ext | |
28721 | cat >>conftest.$ac_ext <<_ACEOF | |
28722 | /* end confdefs.h. */ | |
28723 | ||
28724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28725 | #ifdef __cplusplus | |
28726 | extern "C" | |
28727 | #endif | |
28728 | /* We use char because int might match the return type of a gcc2 | |
28729 | builtin and then its argument prototype would still apply. */ | |
28730 | char esd_close (); | |
28731 | int | |
28732 | main () | |
28733 | { | |
28734 | esd_close (); | |
28735 | ; | |
28736 | return 0; | |
28737 | } | |
28738 | _ACEOF | |
28739 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28741 | (eval $ac_link) 2>&5 | |
28742 | ac_status=$? | |
28743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28744 | (exit $ac_status); } && | |
28745 | { ac_try='test -s conftest$ac_exeext' | |
28746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28747 | (eval $ac_try) 2>&5 | |
28748 | ac_status=$? | |
28749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28750 | (exit $ac_status); }; }; then | |
28751 | ac_cv_lib_esd_esd_close=yes | |
28752 | else | |
28753 | echo "$as_me: failed program was:" >&5 | |
28754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28755 | ||
28756 | ac_cv_lib_esd_esd_close=no | |
28757 | fi | |
28758 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28759 | LIBS=$ac_check_lib_save_LIBS | |
28760 | fi | |
28761 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
28762 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
28763 | if test $ac_cv_lib_esd_esd_close = yes; then | |
28764 | ||
28765 | ||
28766 | for ac_header in esd.h | |
28767 | do | |
28768 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28774 | fi | |
edd891e2 VS |
28775 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28776 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
28777 | else |
28778 | # Is the header compilable? | |
edd891e2 VS |
28779 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
28780 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 VS |
28781 | cat >conftest.$ac_ext <<_ACEOF |
28782 | #line $LINENO "configure" | |
28783 | /* confdefs.h. */ | |
28784 | _ACEOF | |
28785 | cat confdefs.h >>conftest.$ac_ext | |
28786 | cat >>conftest.$ac_ext <<_ACEOF | |
28787 | /* end confdefs.h. */ | |
28788 | $ac_includes_default | |
edd891e2 | 28789 | #include <$ac_header> |
e6cc62c6 VS |
28790 | _ACEOF |
28791 | rm -f conftest.$ac_objext | |
28792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28793 | (eval $ac_compile) 2>&5 | |
28794 | ac_status=$? | |
28795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28796 | (exit $ac_status); } && | |
28797 | { ac_try='test -s conftest.$ac_objext' | |
28798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28799 | (eval $ac_try) 2>&5 | |
28800 | ac_status=$? | |
28801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28802 | (exit $ac_status); }; }; then | |
28803 | ac_header_compiler=yes | |
28804 | else | |
28805 | echo "$as_me: failed program was:" >&5 | |
28806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28807 | ||
28808 | ac_header_compiler=no | |
28809 | fi | |
28810 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28811 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28812 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28813 | ||
28814 | # Is the header present? | |
edd891e2 VS |
28815 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
28816 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 VS |
28817 | cat >conftest.$ac_ext <<_ACEOF |
28818 | #line $LINENO "configure" | |
28819 | /* confdefs.h. */ | |
28820 | _ACEOF | |
28821 | cat confdefs.h >>conftest.$ac_ext | |
28822 | cat >>conftest.$ac_ext <<_ACEOF | |
28823 | /* end confdefs.h. */ | |
edd891e2 | 28824 | #include <$ac_header> |
e6cc62c6 VS |
28825 | _ACEOF |
28826 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28827 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28828 | ac_status=$? | |
28829 | grep -v '^ *+' conftest.er1 >conftest.err | |
28830 | rm -f conftest.er1 | |
28831 | cat conftest.err >&5 | |
28832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28833 | (exit $ac_status); } >/dev/null; then | |
28834 | if test -s conftest.err; then | |
28835 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28836 | else | |
28837 | ac_cpp_err= | |
28838 | fi | |
a0b9e27f | 28839 | else |
e6cc62c6 VS |
28840 | ac_cpp_err=yes |
28841 | fi | |
28842 | if test -z "$ac_cpp_err"; then | |
28843 | ac_header_preproc=yes | |
28844 | else | |
28845 | echo "$as_me: failed program was:" >&5 | |
28846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28847 | ||
28848 | ac_header_preproc=no | |
28849 | fi | |
28850 | rm -f conftest.err conftest.$ac_ext | |
28851 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28852 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28853 | ||
28854 | # So? What about this header? | |
28855 | case $ac_header_compiler:$ac_header_preproc in | |
28856 | yes:no ) | |
edd891e2 VS |
28857 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
28858 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28860 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
28861 | ( |
28862 | cat <<\_ASBOX | |
28863 | ## ------------------------------------ ## | |
28864 | ## Report this to bug-autoconf@gnu.org. ## | |
28865 | ## ------------------------------------ ## | |
28866 | _ASBOX | |
28867 | ) | | |
28868 | sed "s/^/$as_me: WARNING: /" >&2 | |
28869 | ;; | |
28870 | no:yes ) | |
edd891e2 VS |
28871 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
28872 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
28873 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
28874 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28875 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28876 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
28877 | ( |
28878 | cat <<\_ASBOX | |
28879 | ## ------------------------------------ ## | |
28880 | ## Report this to bug-autoconf@gnu.org. ## | |
28881 | ## ------------------------------------ ## | |
28882 | _ASBOX | |
28883 | ) | | |
28884 | sed "s/^/$as_me: WARNING: /" >&2 | |
28885 | ;; | |
28886 | esac | |
edd891e2 VS |
28887 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
28888 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28889 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28891 | else | |
edd891e2 | 28892 | eval "$as_ac_Header=$ac_header_preproc" |
a0b9e27f | 28893 | fi |
edd891e2 VS |
28894 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 28896 | |
e6cc62c6 | 28897 | fi |
edd891e2 VS |
28898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28899 | cat >>confdefs.h <<_ACEOF | |
28900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 28901 | _ACEOF |
e6cc62c6 | 28902 | |
edd891e2 | 28903 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 28904 | |
a0b9e27f | 28905 | fi |
247f5006 | 28906 | |
edd891e2 | 28907 | done |
8284b0c5 | 28908 | |
4f14bcd8 | 28909 | |
6232543b | 28910 | fi |
10f2d63a | 28911 | |
703e0a69 | 28912 | |
8284b0c5 | 28913 | |
e6cc62c6 VS |
28914 | |
28915 | ||
28916 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
28917 | # This file is a shell script that caches the results of configure |
28918 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
28919 | # scripts and configure runs, see configure's option --config-cache. |
28920 | # It is not useful on other systems. If it contains results you don't | |
28921 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 28922 | # |
e6cc62c6 VS |
28923 | # config.status only pays attention to the cache file if you give it |
28924 | # the --recheck option to rerun configure. | |
4f14bcd8 | 28925 | # |
e6cc62c6 VS |
28926 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
28927 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
28928 | # following values. | |
28929 | ||
28930 | _ACEOF | |
28931 | ||
4f14bcd8 GD |
28932 | # The following way of writing the cache mishandles newlines in values, |
28933 | # but we know of no workaround that is simple, portable, and efficient. | |
28934 | # So, don't put newlines in cache variables' values. | |
28935 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
28936 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
28937 | { |
28938 | (set) 2>&1 | | |
28939 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
28940 | *ac_space=\ *) | |
28941 | # `set' does not quote correctly, so add quotes (double-quote | |
28942 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
28943 | sed -n \ | |
28944 | "s/'/'\\\\''/g; | |
28945 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
28946 | ;; | |
28947 | *) | |
28948 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
28949 | sed -n \ | |
28950 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
28951 | ;; | |
28952 | esac; | |
28953 | } | | |
28954 | sed ' | |
28955 | t clear | |
28956 | : clear | |
28957 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
28958 | t end | |
28959 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
28960 | : end' >>confcache | |
28961 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 28962 | if test -w $cache_file; then |
e6cc62c6 VS |
28963 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
28964 | cat confcache >$cache_file | |
f6bcfd97 | 28965 | else |
4f14bcd8 | 28966 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 28967 | fi |
4f14bcd8 GD |
28968 | fi |
28969 | rm -f confcache | |
f6bcfd97 | 28970 | |
8284b0c5 | 28971 | |
009fead0 | 28972 | CPP_MT_FLAG= |
4f14bcd8 GD |
28973 | if test "$TOOLKIT" != "MSW"; then |
28974 | ||
e6cc62c6 | 28975 | |
7274f1c7 | 28976 | THREADS_LINK= |
009fead0 | 28977 | THREADS_CFLAGS= |
7274f1c7 RL |
28978 | |
28979 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 28980 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
28981 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
28982 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
28983 | wxUSE_THREADS="no" |
28984 | fi | |
4f14bcd8 | 28985 | fi |
4f14bcd8 | 28986 | |
7274f1c7 | 28987 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28988 | |
28989 | ||
009fead0 VZ |
28990 | THREAD_OPTS="-pthread" |
28991 | case "${host}" in | |
28992 | *-*-solaris2* | *-*-sunos4* ) | |
28993 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 28994 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
28995 | else |
28996 | THREAD_OPTS="-mt $THREAD_OPTS" | |
28997 | fi | |
28998 | ;; | |
28999 | *-*-freebsd*) | |
29000 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
29001 | ;; | |
17234b26 MB |
29002 | *-*-darwin* | *-*-cygwin* ) |
29003 | THREAD_OPTS="" | |
4101db81 | 29004 | ;; |
8f4a9a10 | 29005 | *-*-aix*) |
009fead0 VZ |
29006 | THREAD_OPTS="pthreads" |
29007 | ;; | |
4f5a7f74 VZ |
29008 | *-hp-hpux* ) |
29009 | if test "x$GCC" != "xyes"; then | |
29010 | THREAD_OPTS="" | |
29011 | fi | |
89e3b3e4 VZ |
29012 | ;; |
29013 | ||
29014 | *-*-irix* ) | |
29015 | if test "x$GCC" = "xyes"; then | |
29016 | THREAD_OPTS="" | |
29017 | fi | |
29018 | ;; | |
29019 | ||
29020 | *-*-*UnixWare*) | |
29021 | if test "x$GCC" != "xyes"; then | |
29022 | THREAD_OPTS="-Ethread" | |
29023 | fi | |
29024 | ;; | |
009fead0 | 29025 | esac |
4f14bcd8 | 29026 | |
02a1dfba | 29027 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 29028 | |
009fead0 VZ |
29029 | THREADS_OK=no |
29030 | for flag in $THREAD_OPTS; do | |
29031 | case $flag in | |
29032 | none) | |
e6cc62c6 VS |
29033 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
29034 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 29035 | ;; |
698dcdb6 | 29036 | |
009fead0 | 29037 | -*) |
e6cc62c6 VS |
29038 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
29039 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
29040 | THREADS_CFLAGS="$flag" |
29041 | ;; | |
698dcdb6 | 29042 | |
009fead0 | 29043 | *) |
e6cc62c6 VS |
29044 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
29045 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
29046 | THREADS_LINK="-l$flag" |
29047 | ;; | |
29048 | esac | |
10f2d63a | 29049 | |
009fead0 VZ |
29050 | save_LIBS="$LIBS" |
29051 | save_CFLAGS="$CFLAGS" | |
29052 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 29053 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 29054 | |
e6cc62c6 VS |
29055 | cat >conftest.$ac_ext <<_ACEOF |
29056 | #line $LINENO "configure" | |
29057 | /* confdefs.h. */ | |
29058 | _ACEOF | |
29059 | cat confdefs.h >>conftest.$ac_ext | |
29060 | cat >>conftest.$ac_ext <<_ACEOF | |
29061 | /* end confdefs.h. */ | |
009fead0 | 29062 | #include <pthread.h> |
e6cc62c6 VS |
29063 | int |
29064 | main () | |
29065 | { | |
009fead0 | 29066 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
29067 | ; |
29068 | return 0; | |
29069 | } | |
29070 | _ACEOF | |
29071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29073 | (eval $ac_link) 2>&5 | |
29074 | ac_status=$? | |
29075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29076 | (exit $ac_status); } && | |
29077 | { ac_try='test -s conftest$ac_exeext' | |
29078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29079 | (eval $ac_try) 2>&5 | |
29080 | ac_status=$? | |
29081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29082 | (exit $ac_status); }; }; then | |
009fead0 | 29083 | THREADS_OK=yes |
10f2d63a | 29084 | else |
e6cc62c6 VS |
29085 | echo "$as_me: failed program was:" >&5 |
29086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29087 | ||
6232543b | 29088 | fi |
e6cc62c6 | 29089 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 29090 | |
009fead0 VZ |
29091 | LIBS="$save_LIBS" |
29092 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 29093 | |
e6cc62c6 VS |
29094 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
29095 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
29096 | if test "x$THREADS_OK" = "xyes"; then |
29097 | break; | |
29098 | fi | |
d9b9876f | 29099 | |
009fead0 VZ |
29100 | THREADS_LINK="" |
29101 | THREADS_CFLAGS="" | |
29102 | done | |
4f14bcd8 | 29103 | |
009fead0 VZ |
29104 | if test "x$THREADS_OK" != "xyes"; then |
29105 | wxUSE_THREADS=no | |
e6cc62c6 VS |
29106 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
29107 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 29108 | else |
db82f09e VZ |
29109 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
29110 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 29111 | |
e6cc62c6 VS |
29112 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
29113 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
29114 | flag=no |
29115 | case "${host}" in | |
2b5f62a0 VZ |
29116 | *-aix*) |
29117 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
29118 | flag="-D_THREAD_SAFE" | |
29119 | ;; | |
29120 | *-freebsd*) | |
009fead0 VZ |
29121 | flag="-D_THREAD_SAFE" |
29122 | ;; | |
06313569 GD |
29123 | *-hp-hpux* ) |
29124 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
29125 | if test "x$GCC" != "xyes"; then |
29126 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
29127 | fi | |
06313569 | 29128 | ;; |
009fead0 VZ |
29129 | *solaris* | alpha*-osf*) |
29130 | flag="-D_REENTRANT" | |
29131 | ;; | |
29132 | esac | |
e6cc62c6 VS |
29133 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
29134 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 29135 | if test "x$flag" != xno; then |
04727afd | 29136 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
29137 | fi |
29138 | ||
009fead0 | 29139 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 29140 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
29141 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
29142 | fi | |
29143 | fi | |
4f14bcd8 | 29144 | fi |
4f14bcd8 | 29145 | |
7274f1c7 | 29146 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
29147 | |
29148 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 29149 | do |
e6cc62c6 VS |
29150 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29151 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29152 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29153 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29155 | else | |
29156 | cat >conftest.$ac_ext <<_ACEOF | |
29157 | #line $LINENO "configure" | |
29158 | /* confdefs.h. */ | |
29159 | _ACEOF | |
29160 | cat confdefs.h >>conftest.$ac_ext | |
29161 | cat >>conftest.$ac_ext <<_ACEOF | |
29162 | /* end confdefs.h. */ | |
4f14bcd8 | 29163 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29164 | which can conflict with char $ac_func (); below. |
29165 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29166 | <limits.h> exists even on freestanding compilers. */ | |
29167 | #ifdef __STDC__ | |
29168 | # include <limits.h> | |
29169 | #else | |
29170 | # include <assert.h> | |
29171 | #endif | |
4f14bcd8 | 29172 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29173 | #ifdef __cplusplus |
29174 | extern "C" | |
29175 | { | |
29176 | #endif | |
4f14bcd8 | 29177 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29178 | builtin and then its argument prototype would still apply. */ |
29179 | char $ac_func (); | |
4f14bcd8 GD |
29180 | /* The GNU C library defines this for functions which it implements |
29181 | to always fail with ENOSYS. Some functions are actually named | |
29182 | something starting with __ and the normal name is an alias. */ | |
29183 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29184 | choke me | |
29185 | #else | |
e6cc62c6 VS |
29186 | char (*f) () = $ac_func; |
29187 | #endif | |
29188 | #ifdef __cplusplus | |
29189 | } | |
4f14bcd8 GD |
29190 | #endif |
29191 | ||
e6cc62c6 VS |
29192 | int |
29193 | main () | |
29194 | { | |
29195 | return f != $ac_func; | |
29196 | ; | |
29197 | return 0; | |
29198 | } | |
29199 | _ACEOF | |
29200 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29202 | (eval $ac_link) 2>&5 | |
29203 | ac_status=$? | |
29204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29205 | (exit $ac_status); } && | |
29206 | { ac_try='test -s conftest$ac_exeext' | |
29207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29208 | (eval $ac_try) 2>&5 | |
29209 | ac_status=$? | |
29210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29211 | (exit $ac_status); }; }; then | |
29212 | eval "$as_ac_var=yes" | |
29213 | else | |
29214 | echo "$as_me: failed program was:" >&5 | |
29215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29216 | ||
29217 | eval "$as_ac_var=no" | |
29218 | fi | |
29219 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29220 | fi | |
29221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29222 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29223 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29224 | cat >>confdefs.h <<_ACEOF | |
29225 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29226 | _ACEOF | |
698dcdb6 | 29227 | |
10f2d63a | 29228 | fi |
4f14bcd8 | 29229 | done |
10f2d63a | 29230 | |
8284b0c5 | 29231 | |
e6cc62c6 VS |
29232 | |
29233 | for ac_header in sched.h | |
4f14bcd8 | 29234 | do |
e6cc62c6 VS |
29235 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
29236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29237 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29241 | fi | |
29242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29244 | else | |
29245 | # Is the header compilable? | |
29246 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29247 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29248 | cat >conftest.$ac_ext <<_ACEOF | |
29249 | #line $LINENO "configure" | |
29250 | /* confdefs.h. */ | |
29251 | _ACEOF | |
29252 | cat confdefs.h >>conftest.$ac_ext | |
29253 | cat >>conftest.$ac_ext <<_ACEOF | |
29254 | /* end confdefs.h. */ | |
29255 | $ac_includes_default | |
29256 | #include <$ac_header> | |
29257 | _ACEOF | |
29258 | rm -f conftest.$ac_objext | |
29259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29260 | (eval $ac_compile) 2>&5 | |
29261 | ac_status=$? | |
29262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29263 | (exit $ac_status); } && | |
29264 | { ac_try='test -s conftest.$ac_objext' | |
29265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29266 | (eval $ac_try) 2>&5 | |
29267 | ac_status=$? | |
29268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29269 | (exit $ac_status); }; }; then | |
29270 | ac_header_compiler=yes | |
29271 | else | |
29272 | echo "$as_me: failed program was:" >&5 | |
29273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29274 | ||
29275 | ac_header_compiler=no | |
29276 | fi | |
29277 | rm -f conftest.$ac_objext conftest.$ac_ext | |
29278 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
29279 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29280 | ||
29281 | # Is the header present? | |
29282 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29283 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29284 | cat >conftest.$ac_ext <<_ACEOF | |
29285 | #line $LINENO "configure" | |
29286 | /* confdefs.h. */ | |
29287 | _ACEOF | |
29288 | cat confdefs.h >>conftest.$ac_ext | |
29289 | cat >>conftest.$ac_ext <<_ACEOF | |
29290 | /* end confdefs.h. */ | |
29291 | #include <$ac_header> | |
29292 | _ACEOF | |
29293 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29294 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29295 | ac_status=$? | |
29296 | grep -v '^ *+' conftest.er1 >conftest.err | |
29297 | rm -f conftest.er1 | |
29298 | cat conftest.err >&5 | |
29299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29300 | (exit $ac_status); } >/dev/null; then | |
29301 | if test -s conftest.err; then | |
29302 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29303 | else | |
29304 | ac_cpp_err= | |
29305 | fi | |
29306 | else | |
29307 | ac_cpp_err=yes | |
29308 | fi | |
29309 | if test -z "$ac_cpp_err"; then | |
29310 | ac_header_preproc=yes | |
29311 | else | |
29312 | echo "$as_me: failed program was:" >&5 | |
29313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29314 | ||
29315 | ac_header_preproc=no | |
29316 | fi | |
29317 | rm -f conftest.err conftest.$ac_ext | |
29318 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29319 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29320 | ||
29321 | # So? What about this header? | |
29322 | case $ac_header_compiler:$ac_header_preproc in | |
29323 | yes:no ) | |
29324 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
29325 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
29326 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29327 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29328 | ( | |
29329 | cat <<\_ASBOX | |
29330 | ## ------------------------------------ ## | |
29331 | ## Report this to bug-autoconf@gnu.org. ## | |
29332 | ## ------------------------------------ ## | |
29333 | _ASBOX | |
29334 | ) | | |
29335 | sed "s/^/$as_me: WARNING: /" >&2 | |
29336 | ;; | |
29337 | no:yes ) | |
29338 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
29339 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
29340 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
29341 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
29342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29343 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29344 | ( | |
29345 | cat <<\_ASBOX | |
29346 | ## ------------------------------------ ## | |
29347 | ## Report this to bug-autoconf@gnu.org. ## | |
29348 | ## ------------------------------------ ## | |
29349 | _ASBOX | |
29350 | ) | | |
29351 | sed "s/^/$as_me: WARNING: /" >&2 | |
29352 | ;; | |
29353 | esac | |
29354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29358 | else | |
29359 | eval "$as_ac_Header=$ac_header_preproc" | |
13111b2a | 29360 | fi |
e6cc62c6 VS |
29361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
29362 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29363 | ||
10f2d63a | 29364 | fi |
e6cc62c6 VS |
29365 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
29366 | cat >>confdefs.h <<_ACEOF | |
29367 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29368 | _ACEOF | |
29369 | ||
f6bcfd97 | 29370 | fi |
e6cc62c6 | 29371 | |
4f14bcd8 | 29372 | done |
f6bcfd97 | 29373 | |
009fead0 | 29374 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
29375 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
29376 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
29377 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
29378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29379 | else | |
29380 | cat >conftest.$ac_ext <<_ACEOF | |
29381 | #line $LINENO "configure" | |
29382 | /* confdefs.h. */ | |
29383 | _ACEOF | |
29384 | cat confdefs.h >>conftest.$ac_ext | |
29385 | cat >>conftest.$ac_ext <<_ACEOF | |
29386 | /* end confdefs.h. */ | |
009fead0 | 29387 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29388 | which can conflict with char sched_yield (); below. |
29389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29390 | <limits.h> exists even on freestanding compilers. */ | |
29391 | #ifdef __STDC__ | |
29392 | # include <limits.h> | |
29393 | #else | |
29394 | # include <assert.h> | |
29395 | #endif | |
4f14bcd8 | 29396 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29397 | #ifdef __cplusplus |
29398 | extern "C" | |
29399 | { | |
29400 | #endif | |
4f14bcd8 | 29401 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29402 | builtin and then its argument prototype would still apply. */ |
29403 | char sched_yield (); | |
009fead0 VZ |
29404 | /* The GNU C library defines this for functions which it implements |
29405 | to always fail with ENOSYS. Some functions are actually named | |
29406 | something starting with __ and the normal name is an alias. */ | |
29407 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
29408 | choke me | |
29409 | #else | |
e6cc62c6 VS |
29410 | char (*f) () = sched_yield; |
29411 | #endif | |
29412 | #ifdef __cplusplus | |
29413 | } | |
009fead0 VZ |
29414 | #endif |
29415 | ||
e6cc62c6 VS |
29416 | int |
29417 | main () | |
29418 | { | |
29419 | return f != sched_yield; | |
29420 | ; | |
29421 | return 0; | |
29422 | } | |
29423 | _ACEOF | |
29424 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29426 | (eval $ac_link) 2>&5 | |
29427 | ac_status=$? | |
29428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29429 | (exit $ac_status); } && | |
29430 | { ac_try='test -s conftest$ac_exeext' | |
29431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29432 | (eval $ac_try) 2>&5 | |
29433 | ac_status=$? | |
29434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29435 | (exit $ac_status); }; }; then | |
29436 | ac_cv_func_sched_yield=yes | |
29437 | else | |
29438 | echo "$as_me: failed program was:" >&5 | |
29439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29440 | ||
29441 | ac_cv_func_sched_yield=no | |
29442 | fi | |
29443 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29444 | fi | |
29445 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
29446 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
29447 | if test $ac_cv_func_sched_yield = yes; then | |
29448 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29449 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29450 | _ACEOF |
10f2d63a | 29451 | |
4f14bcd8 | 29452 | else |
009fead0 | 29453 | |
e6cc62c6 VS |
29454 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
29455 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
29456 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
29457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29458 | else |
e6cc62c6 | 29459 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29460 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29461 | cat >conftest.$ac_ext <<_ACEOF |
29462 | #line $LINENO "configure" | |
29463 | /* confdefs.h. */ | |
29464 | _ACEOF | |
29465 | cat confdefs.h >>conftest.$ac_ext | |
29466 | cat >>conftest.$ac_ext <<_ACEOF | |
29467 | /* end confdefs.h. */ | |
29468 | ||
4f14bcd8 | 29469 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29470 | #ifdef __cplusplus |
29471 | extern "C" | |
29472 | #endif | |
4f14bcd8 | 29473 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29474 | builtin and then its argument prototype would still apply. */ |
29475 | char sched_yield (); | |
29476 | int | |
29477 | main () | |
29478 | { | |
29479 | sched_yield (); | |
29480 | ; | |
29481 | return 0; | |
29482 | } | |
29483 | _ACEOF | |
29484 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29486 | (eval $ac_link) 2>&5 | |
29487 | ac_status=$? | |
29488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29489 | (exit $ac_status); } && | |
29490 | { ac_try='test -s conftest$ac_exeext' | |
29491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29492 | (eval $ac_try) 2>&5 | |
29493 | ac_status=$? | |
29494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29495 | (exit $ac_status); }; }; then | |
29496 | ac_cv_lib_posix4_sched_yield=yes | |
29497 | else | |
29498 | echo "$as_me: failed program was:" >&5 | |
29499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29500 | ||
29501 | ac_cv_lib_posix4_sched_yield=no | |
29502 | fi | |
29503 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29504 | LIBS=$ac_check_lib_save_LIBS | |
29505 | fi | |
29506 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
29507 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
29508 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
29509 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29510 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29511 | _ACEOF |
3d63bc3a | 29512 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 29513 | else |
e6cc62c6 VS |
29514 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
29515 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
29516 | ||
54276ccf VZ |
29517 | fi |
29518 | ||
e6cc62c6 VS |
29519 | |
29520 | ||
4f14bcd8 | 29521 | fi |
698dcdb6 | 29522 | |
009fead0 | 29523 | fi |
10f2d63a | 29524 | |
7274f1c7 | 29525 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
29526 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
29527 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
29528 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
29529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29530 | else | |
29531 | cat >conftest.$ac_ext <<_ACEOF | |
29532 | #line $LINENO "configure" | |
29533 | /* confdefs.h. */ | |
29534 | _ACEOF | |
29535 | cat confdefs.h >>conftest.$ac_ext | |
29536 | cat >>conftest.$ac_ext <<_ACEOF | |
29537 | /* end confdefs.h. */ | |
009fead0 | 29538 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29539 | which can conflict with char pthread_attr_getschedpolicy (); below. |
29540 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29541 | <limits.h> exists even on freestanding compilers. */ | |
29542 | #ifdef __STDC__ | |
29543 | # include <limits.h> | |
29544 | #else | |
29545 | # include <assert.h> | |
29546 | #endif | |
4f14bcd8 | 29547 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29548 | #ifdef __cplusplus |
29549 | extern "C" | |
29550 | { | |
29551 | #endif | |
4f14bcd8 | 29552 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29553 | builtin and then its argument prototype would still apply. */ |
29554 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
29555 | /* The GNU C library defines this for functions which it implements |
29556 | to always fail with ENOSYS. Some functions are actually named | |
29557 | something starting with __ and the normal name is an alias. */ | |
29558 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
29559 | choke me | |
29560 | #else | |
e6cc62c6 VS |
29561 | char (*f) () = pthread_attr_getschedpolicy; |
29562 | #endif | |
29563 | #ifdef __cplusplus | |
29564 | } | |
009fead0 VZ |
29565 | #endif |
29566 | ||
e6cc62c6 VS |
29567 | int |
29568 | main () | |
29569 | { | |
29570 | return f != pthread_attr_getschedpolicy; | |
29571 | ; | |
29572 | return 0; | |
29573 | } | |
29574 | _ACEOF | |
29575 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29577 | (eval $ac_link) 2>&5 | |
29578 | ac_status=$? | |
29579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29580 | (exit $ac_status); } && | |
29581 | { ac_try='test -s conftest$ac_exeext' | |
29582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29583 | (eval $ac_try) 2>&5 | |
29584 | ac_status=$? | |
29585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29586 | (exit $ac_status); }; }; then | |
29587 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
29588 | else | |
29589 | echo "$as_me: failed program was:" >&5 | |
29590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29591 | ||
29592 | ac_cv_func_pthread_attr_getschedpolicy=no | |
29593 | fi | |
29594 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29595 | fi | |
29596 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
29597 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
29598 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
29599 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
29600 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
29601 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
29602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29603 | else | |
29604 | cat >conftest.$ac_ext <<_ACEOF | |
29605 | #line $LINENO "configure" | |
29606 | /* confdefs.h. */ | |
29607 | _ACEOF | |
29608 | cat confdefs.h >>conftest.$ac_ext | |
29609 | cat >>conftest.$ac_ext <<_ACEOF | |
29610 | /* end confdefs.h. */ | |
a0b9e27f | 29611 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29612 | which can conflict with char pthread_attr_setschedparam (); below. |
29613 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29614 | <limits.h> exists even on freestanding compilers. */ | |
29615 | #ifdef __STDC__ | |
29616 | # include <limits.h> | |
29617 | #else | |
29618 | # include <assert.h> | |
29619 | #endif | |
422107f9 | 29620 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29621 | #ifdef __cplusplus |
29622 | extern "C" | |
29623 | { | |
29624 | #endif | |
422107f9 | 29625 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29626 | builtin and then its argument prototype would still apply. */ |
29627 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
29628 | /* The GNU C library defines this for functions which it implements |
29629 | to always fail with ENOSYS. Some functions are actually named | |
29630 | something starting with __ and the normal name is an alias. */ | |
29631 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
29632 | choke me | |
29633 | #else | |
e6cc62c6 VS |
29634 | char (*f) () = pthread_attr_setschedparam; |
29635 | #endif | |
29636 | #ifdef __cplusplus | |
29637 | } | |
009fead0 VZ |
29638 | #endif |
29639 | ||
e6cc62c6 VS |
29640 | int |
29641 | main () | |
29642 | { | |
29643 | return f != pthread_attr_setschedparam; | |
29644 | ; | |
29645 | return 0; | |
29646 | } | |
29647 | _ACEOF | |
29648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29650 | (eval $ac_link) 2>&5 | |
29651 | ac_status=$? | |
29652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29653 | (exit $ac_status); } && | |
29654 | { ac_try='test -s conftest$ac_exeext' | |
29655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29656 | (eval $ac_try) 2>&5 | |
29657 | ac_status=$? | |
29658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29659 | (exit $ac_status); }; }; then | |
29660 | ac_cv_func_pthread_attr_setschedparam=yes | |
29661 | else | |
29662 | echo "$as_me: failed program was:" >&5 | |
29663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29664 | ||
29665 | ac_cv_func_pthread_attr_setschedparam=no | |
29666 | fi | |
29667 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29668 | fi | |
29669 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
29670 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
29671 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
29672 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
29673 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
29674 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
29675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29676 | else | |
29677 | cat >conftest.$ac_ext <<_ACEOF | |
29678 | #line $LINENO "configure" | |
29679 | /* confdefs.h. */ | |
29680 | _ACEOF | |
29681 | cat confdefs.h >>conftest.$ac_ext | |
29682 | cat >>conftest.$ac_ext <<_ACEOF | |
29683 | /* end confdefs.h. */ | |
ef33c576 | 29684 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29685 | which can conflict with char sched_get_priority_max (); below. |
29686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29687 | <limits.h> exists even on freestanding compilers. */ | |
29688 | #ifdef __STDC__ | |
29689 | # include <limits.h> | |
29690 | #else | |
29691 | # include <assert.h> | |
29692 | #endif | |
4f14bcd8 | 29693 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29694 | #ifdef __cplusplus |
29695 | extern "C" | |
29696 | { | |
29697 | #endif | |
4f14bcd8 | 29698 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29699 | builtin and then its argument prototype would still apply. */ |
29700 | char sched_get_priority_max (); | |
009fead0 VZ |
29701 | /* The GNU C library defines this for functions which it implements |
29702 | to always fail with ENOSYS. Some functions are actually named | |
29703 | something starting with __ and the normal name is an alias. */ | |
29704 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
29705 | choke me | |
29706 | #else | |
e6cc62c6 VS |
29707 | char (*f) () = sched_get_priority_max; |
29708 | #endif | |
29709 | #ifdef __cplusplus | |
29710 | } | |
009fead0 VZ |
29711 | #endif |
29712 | ||
e6cc62c6 VS |
29713 | int |
29714 | main () | |
29715 | { | |
29716 | return f != sched_get_priority_max; | |
29717 | ; | |
29718 | return 0; | |
29719 | } | |
29720 | _ACEOF | |
29721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29723 | (eval $ac_link) 2>&5 | |
29724 | ac_status=$? | |
29725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29726 | (exit $ac_status); } && | |
29727 | { ac_try='test -s conftest$ac_exeext' | |
29728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29729 | (eval $ac_try) 2>&5 | |
29730 | ac_status=$? | |
29731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29732 | (exit $ac_status); }; }; then | |
29733 | ac_cv_func_sched_get_priority_max=yes | |
29734 | else | |
29735 | echo "$as_me: failed program was:" >&5 | |
29736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29737 | ||
29738 | ac_cv_func_sched_get_priority_max=no | |
29739 | fi | |
29740 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29741 | fi | |
29742 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
29743 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
29744 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
29745 | HAVE_PRIOR_FUNCS=1 |
29746 | else | |
e6cc62c6 VS |
29747 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
29748 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
29749 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
29750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 29751 | else |
e6cc62c6 | 29752 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29753 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29754 | cat >conftest.$ac_ext <<_ACEOF |
29755 | #line $LINENO "configure" | |
29756 | /* confdefs.h. */ | |
29757 | _ACEOF | |
29758 | cat confdefs.h >>conftest.$ac_ext | |
29759 | cat >>conftest.$ac_ext <<_ACEOF | |
29760 | /* end confdefs.h. */ | |
29761 | ||
422107f9 | 29762 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29763 | #ifdef __cplusplus |
29764 | extern "C" | |
29765 | #endif | |
422107f9 | 29766 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29767 | builtin and then its argument prototype would still apply. */ |
29768 | char sched_get_priority_max (); | |
29769 | int | |
29770 | main () | |
29771 | { | |
29772 | sched_get_priority_max (); | |
29773 | ; | |
29774 | return 0; | |
29775 | } | |
29776 | _ACEOF | |
29777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29779 | (eval $ac_link) 2>&5 | |
29780 | ac_status=$? | |
29781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29782 | (exit $ac_status); } && | |
29783 | { ac_try='test -s conftest$ac_exeext' | |
29784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29785 | (eval $ac_try) 2>&5 | |
29786 | ac_status=$? | |
29787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29788 | (exit $ac_status); }; }; then | |
29789 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
29790 | else | |
29791 | echo "$as_me: failed program was:" >&5 | |
29792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29793 | ||
29794 | ac_cv_lib_posix4_sched_get_priority_max=no | |
29795 | fi | |
29796 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29797 | LIBS=$ac_check_lib_save_LIBS | |
29798 | fi | |
29799 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
29800 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
29801 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 29802 | |
7274f1c7 RL |
29803 | HAVE_PRIOR_FUNCS=1 |
29804 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 29805 | |
4f14bcd8 | 29806 | fi |
463abc64 | 29807 | |
e6cc62c6 | 29808 | |
328a083c | 29809 | fi |
463abc64 | 29810 | |
e6cc62c6 | 29811 | |
7b4a847f | 29812 | fi |
579d8138 | 29813 | |
e6cc62c6 | 29814 | |
5c6fa7d2 | 29815 | fi |
52127426 | 29816 | |
8284b0c5 | 29817 | |
7274f1c7 | 29818 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 29819 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29820 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 29821 | _ACEOF |
463abc64 | 29822 | |
7274f1c7 | 29823 | else |
e6cc62c6 VS |
29824 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
29825 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 29826 | fi |
463abc64 | 29827 | |
e6cc62c6 VS |
29828 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
29829 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
29830 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
29831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29832 | else | |
29833 | cat >conftest.$ac_ext <<_ACEOF | |
29834 | #line $LINENO "configure" | |
29835 | /* confdefs.h. */ | |
29836 | _ACEOF | |
29837 | cat confdefs.h >>conftest.$ac_ext | |
29838 | cat >>conftest.$ac_ext <<_ACEOF | |
29839 | /* end confdefs.h. */ | |
009fead0 | 29840 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29841 | which can conflict with char pthread_cancel (); below. |
29842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29843 | <limits.h> exists even on freestanding compilers. */ | |
29844 | #ifdef __STDC__ | |
29845 | # include <limits.h> | |
29846 | #else | |
29847 | # include <assert.h> | |
29848 | #endif | |
422107f9 | 29849 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29850 | #ifdef __cplusplus |
29851 | extern "C" | |
29852 | { | |
29853 | #endif | |
422107f9 | 29854 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29855 | builtin and then its argument prototype would still apply. */ |
29856 | char pthread_cancel (); | |
009fead0 VZ |
29857 | /* The GNU C library defines this for functions which it implements |
29858 | to always fail with ENOSYS. Some functions are actually named | |
29859 | something starting with __ and the normal name is an alias. */ | |
29860 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
29861 | choke me | |
29862 | #else | |
e6cc62c6 VS |
29863 | char (*f) () = pthread_cancel; |
29864 | #endif | |
29865 | #ifdef __cplusplus | |
29866 | } | |
009fead0 VZ |
29867 | #endif |
29868 | ||
e6cc62c6 VS |
29869 | int |
29870 | main () | |
29871 | { | |
29872 | return f != pthread_cancel; | |
29873 | ; | |
29874 | return 0; | |
29875 | } | |
29876 | _ACEOF | |
29877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29879 | (eval $ac_link) 2>&5 | |
29880 | ac_status=$? | |
29881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29882 | (exit $ac_status); } && | |
29883 | { ac_try='test -s conftest$ac_exeext' | |
29884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29885 | (eval $ac_try) 2>&5 | |
29886 | ac_status=$? | |
29887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29888 | (exit $ac_status); }; }; then | |
29889 | ac_cv_func_pthread_cancel=yes | |
29890 | else | |
29891 | echo "$as_me: failed program was:" >&5 | |
29892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29893 | ||
29894 | ac_cv_func_pthread_cancel=no | |
29895 | fi | |
29896 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29897 | fi | |
29898 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
29899 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
29900 | if test $ac_cv_func_pthread_cancel = yes; then | |
29901 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29902 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 29903 | _ACEOF |
4f14bcd8 | 29904 | |
698dcdb6 | 29905 | else |
e6cc62c6 VS |
29906 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
29907 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
29908 | fi |
29909 | ||
5c6fa7d2 | 29910 | |
e6cc62c6 VS |
29911 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
29912 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
29913 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
29914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29915 | else |
e6cc62c6 VS |
29916 | |
29917 | cat >conftest.$ac_ext <<_ACEOF | |
29918 | #line $LINENO "configure" | |
29919 | /* confdefs.h. */ | |
29920 | _ACEOF | |
29921 | cat confdefs.h >>conftest.$ac_ext | |
29922 | cat >>conftest.$ac_ext <<_ACEOF | |
29923 | /* end confdefs.h. */ | |
4f14bcd8 | 29924 | #include <pthread.h> |
e6cc62c6 VS |
29925 | int |
29926 | main () | |
29927 | { | |
4f14bcd8 | 29928 | |
7274f1c7 RL |
29929 | pthread_cleanup_push(NULL, NULL); |
29930 | pthread_cleanup_pop(0); | |
e6cc62c6 VS |
29931 | |
29932 | ; | |
29933 | return 0; | |
29934 | } | |
29935 | _ACEOF | |
29936 | rm -f conftest.$ac_objext | |
29937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29938 | (eval $ac_compile) 2>&5 | |
29939 | ac_status=$? | |
29940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29941 | (exit $ac_status); } && | |
29942 | { ac_try='test -s conftest.$ac_objext' | |
29943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29944 | (eval $ac_try) 2>&5 | |
29945 | ac_status=$? | |
29946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29947 | (exit $ac_status); }; }; then | |
29948 | ||
7274f1c7 | 29949 | wx_cv_func_pthread_cleanup_push=yes |
e6cc62c6 | 29950 | |
4f14bcd8 | 29951 | else |
e6cc62c6 VS |
29952 | echo "$as_me: failed program was:" >&5 |
29953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29954 | ||
29955 | ||
7274f1c7 | 29956 | wx_cv_func_pthread_cleanup_push=no |
e6cc62c6 | 29957 | |
247f5006 | 29958 | fi |
e6cc62c6 | 29959 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29960 | |
e6cc62c6 VS |
29961 | fi |
29962 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
29963 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
4f14bcd8 | 29964 | |
7274f1c7 | 29965 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
e6cc62c6 | 29966 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29967 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
e6cc62c6 | 29968 | _ACEOF |
c7a2bf27 | 29969 | |
7274f1c7 | 29970 | fi |
4f14bcd8 | 29971 | |
e6cc62c6 VS |
29972 | |
29973 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
29974 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
29975 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
29976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 29977 | else |
e6cc62c6 VS |
29978 | |
29979 | cat >conftest.$ac_ext <<_ACEOF | |
29980 | #line $LINENO "configure" | |
29981 | /* confdefs.h. */ | |
29982 | _ACEOF | |
29983 | cat confdefs.h >>conftest.$ac_ext | |
29984 | cat >>conftest.$ac_ext <<_ACEOF | |
29985 | /* end confdefs.h. */ | |
4f14bcd8 | 29986 | #include <pthread.h> |
e6cc62c6 VS |
29987 | int |
29988 | main () | |
29989 | { | |
4f14bcd8 | 29990 | |
7274f1c7 RL |
29991 | pthread_mutexattr_t attr; |
29992 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
29993 | |
29994 | ; | |
29995 | return 0; | |
29996 | } | |
29997 | _ACEOF | |
29998 | rm -f conftest.$ac_objext | |
29999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30000 | (eval $ac_compile) 2>&5 | |
30001 | ac_status=$? | |
30002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30003 | (exit $ac_status); } && | |
30004 | { ac_try='test -s conftest.$ac_objext' | |
30005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30006 | (eval $ac_try) 2>&5 | |
30007 | ac_status=$? | |
30008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30009 | (exit $ac_status); }; }; then | |
30010 | ||
7274f1c7 | 30011 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 30012 | |
3fed1840 | 30013 | else |
e6cc62c6 VS |
30014 | echo "$as_me: failed program was:" >&5 |
30015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30016 | ||
30017 | ||
7274f1c7 | 30018 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
30019 | |
30020 | ||
247f5006 | 30021 | fi |
e6cc62c6 | 30022 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30023 | |
e6cc62c6 VS |
30024 | fi |
30025 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
30026 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 30027 | |
7274f1c7 | 30028 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 30029 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30030 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 30031 | _ACEOF |
4f14bcd8 | 30032 | |
7274f1c7 | 30033 | else |
e6cc62c6 VS |
30034 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
30035 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
30036 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
30037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30038 | else | |
30039 | ||
30040 | cat >conftest.$ac_ext <<_ACEOF | |
30041 | #line $LINENO "configure" | |
30042 | /* confdefs.h. */ | |
30043 | _ACEOF | |
30044 | cat confdefs.h >>conftest.$ac_ext | |
30045 | cat >>conftest.$ac_ext <<_ACEOF | |
30046 | /* end confdefs.h. */ | |
4f14bcd8 | 30047 | #include <pthread.h> |
e6cc62c6 VS |
30048 | int |
30049 | main () | |
30050 | { | |
4f14bcd8 | 30051 | |
7274f1c7 | 30052 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
30053 | |
30054 | ; | |
30055 | return 0; | |
30056 | } | |
30057 | _ACEOF | |
30058 | rm -f conftest.$ac_objext | |
30059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30060 | (eval $ac_compile) 2>&5 | |
30061 | ac_status=$? | |
30062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30063 | (exit $ac_status); } && | |
30064 | { ac_try='test -s conftest.$ac_objext' | |
30065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30066 | (eval $ac_try) 2>&5 | |
30067 | ac_status=$? | |
30068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30069 | (exit $ac_status); }; }; then | |
30070 | ||
7274f1c7 | 30071 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 30072 | |
698dcdb6 | 30073 | else |
e6cc62c6 VS |
30074 | echo "$as_me: failed program was:" >&5 |
30075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30076 | ||
30077 | ||
7274f1c7 | 30078 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
30079 | |
30080 | ||
247f5006 | 30081 | fi |
e6cc62c6 | 30082 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30083 | |
e6cc62c6 VS |
30084 | fi |
30085 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
30086 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 30087 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 30088 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30089 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 30090 | _ACEOF |
3fed1840 | 30091 | |
7274f1c7 | 30092 | else |
e6cc62c6 VS |
30093 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
30094 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
30095 | fi |
30096 | fi | |
7274f1c7 | 30097 | fi |
3fed1840 | 30098 | |
a0b9e27f MB |
30099 | else |
30100 | if test "$wxUSE_THREADS" = "yes" ; then | |
30101 | case "${host}" in | |
30102 | *-*-mingw32* ) | |
e6cc62c6 VS |
30103 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
30104 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
30105 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
30106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 30107 | else |
e6cc62c6 | 30108 | |
ca8e52b3 VZ |
30109 | CFLAGS_OLD="$CFLAGS" |
30110 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 VS |
30111 | cat >conftest.$ac_ext <<_ACEOF |
30112 | #line $LINENO "configure" | |
30113 | /* confdefs.h. */ | |
30114 | _ACEOF | |
30115 | cat confdefs.h >>conftest.$ac_ext | |
30116 | cat >>conftest.$ac_ext <<_ACEOF | |
30117 | /* end confdefs.h. */ | |
30118 | ||
30119 | int | |
30120 | main () | |
30121 | { | |
ca8e52b3 | 30122 | |
e6cc62c6 VS |
30123 | ; |
30124 | return 0; | |
30125 | } | |
30126 | _ACEOF | |
30127 | rm -f conftest.$ac_objext | |
30128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30129 | (eval $ac_compile) 2>&5 | |
30130 | ac_status=$? | |
30131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30132 | (exit $ac_status); } && | |
30133 | { ac_try='test -s conftest.$ac_objext' | |
30134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30135 | (eval $ac_try) 2>&5 | |
30136 | ac_status=$? | |
30137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30138 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
30139 | wx_cv_cflags_mthread=yes |
30140 | else | |
e6cc62c6 VS |
30141 | echo "$as_me: failed program was:" >&5 |
30142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30143 | ||
30144 | wx_cv_cflags_mthread=no | |
30145 | ||
ca8e52b3 | 30146 | fi |
e6cc62c6 VS |
30147 | rm -f conftest.$ac_objext conftest.$ac_ext |
30148 | ||
ca8e52b3 | 30149 | |
e6cc62c6 VS |
30150 | fi |
30151 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
30152 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
30153 | |
30154 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
30155 | CXXFLAGS="$CXXFLAGS -mthreads" | |
30156 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
30157 | LDFLAGS="$LDFLAGS -mthreads" | |
30158 | else | |
30159 | CFLAGS="$CFLAGS_OLD" | |
30160 | fi | |
a0b9e27f MB |
30161 | ;; |
30162 | esac | |
30163 | fi | |
4f14bcd8 GD |
30164 | fi |
30165 | ||
30166 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 30167 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30168 | #define wxUSE_THREADS 1 |
e6cc62c6 | 30169 | _ACEOF |
7b6058cd | 30170 | |
8284b0c5 | 30171 | |
4f14bcd8 | 30172 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 30173 | else |
4f14bcd8 | 30174 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
30175 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
30176 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
30177 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
30178 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
30179 | echo "$as_me:$LINENO: result: yes" >&5 |
30180 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 30181 | else |
e6cc62c6 VS |
30182 | echo "$as_me:$LINENO: result: no" >&5 |
30183 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
30184 | fi |
30185 | fi | |
30186 | fi | |
30187 | ||
30188 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 30189 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30190 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 30191 | _ACEOF |
4f14bcd8 GD |
30192 | |
30193 | WXGTK12=1 | |
10f2d63a | 30194 | fi |
4f14bcd8 GD |
30195 | |
30196 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 30197 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30198 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 30199 | _ACEOF |
4f14bcd8 | 30200 | |
10f2d63a | 30201 | fi |
698dcdb6 | 30202 | |
4f14bcd8 | 30203 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 30204 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30205 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 30206 | _ACEOF |
4f14bcd8 | 30207 | |
698dcdb6 | 30208 | fi |
10f2d63a | 30209 | |
4f14bcd8 GD |
30210 | WXDEBUG= |
30211 | ||
30212 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
30213 | WXDEBUG="-g" | |
30214 | wxUSE_OPTIMISE=no | |
698dcdb6 | 30215 | fi |
4f14bcd8 GD |
30216 | |
30217 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
30218 | wxUSE_DEBUG_INFO=yes | |
30219 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
30220 | fi |
30221 | ||
4f14bcd8 | 30222 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 30223 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30224 | #define WXDEBUG 1 |
e6cc62c6 | 30225 | _ACEOF |
4f14bcd8 GD |
30226 | |
30227 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 30228 | else |
4f14bcd8 GD |
30229 | if test "$wxUSE_GTK" = 1 ; then |
30230 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
30231 | fi | |
30232 | fi | |
30233 | ||
30234 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 30235 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30236 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 30237 | _ACEOF |
4f14bcd8 | 30238 | |
e6cc62c6 | 30239 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30240 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 30241 | _ACEOF |
4f14bcd8 | 30242 | |
e6cc62c6 | 30243 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30244 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 30245 | _ACEOF |
4f14bcd8 GD |
30246 | |
30247 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
30248 | fi | |
30249 | ||
30250 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 30251 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
30252 | fi |
30253 | ||
30254 | PROFILE= | |
30255 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 30256 | PROFILE=" -pg" |
10f2d63a VZ |
30257 | fi |
30258 | ||
009fead0 VZ |
30259 | CODE_GEN_FLAGS= |
30260 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 30261 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
30262 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
30263 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 30264 | fi |
4f14bcd8 GD |
30265 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
30266 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
30267 | fi | |
30268 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
30269 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
30270 | fi | |
1d1b75ac | 30271 | |
2b5f62a0 | 30272 | case "${host}" in |
1d1b75ac VZ |
30273 | powerpc*-*-aix* ) |
30274 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
30275 | ;; | |
2b5f62a0 VZ |
30276 | *-hppa* ) |
30277 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
30278 | ;; | |
1d1b75ac | 30279 | esac |
4f14bcd8 GD |
30280 | fi |
30281 | ||
af7b5345 | 30282 | OPTIMISE= |
4f14bcd8 | 30283 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
30284 | if test "$GCC" = yes ; then |
30285 | OPTIMISE="-O0" | |
30286 | fi | |
4f14bcd8 GD |
30287 | else |
30288 | if test "$GCC" = yes ; then | |
30289 | OPTIMISE="-O2" | |
af7b5345 VZ |
30290 | |
30291 | case "${host}" in | |
4f14bcd8 GD |
30292 | i586-*-*|i686-*-* ) |
30293 | OPTIMISE="${OPTIMISE} " | |
30294 | ;; | |
30295 | esac | |
30296 | else | |
30297 | OPTIMISE="-O" | |
30298 | fi | |
30299 | fi | |
30300 | ||
8d90d2f2 | 30301 | |
4f14bcd8 | 30302 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
e6cc62c6 | 30303 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30304 | #define WXWIN_COMPATIBILITY_2 1 |
e6cc62c6 | 30305 | _ACEOF |
4f14bcd8 | 30306 | |
8284b0c5 | 30307 | |
4f14bcd8 GD |
30308 | WXWIN_COMPATIBILITY_2_2="yes" |
30309 | fi | |
30310 | ||
65d8ef1e | 30311 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 30312 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30313 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 30314 | _ACEOF |
4f14bcd8 | 30315 | |
8d90d2f2 VZ |
30316 | |
30317 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
30318 | fi |
30319 | ||
65d8ef1e | 30320 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 30321 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 30322 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 30323 | _ACEOF |
65d8ef1e VS |
30324 | |
30325 | fi | |
30326 | ||
8284b0c5 | 30327 | |
10f2d63a | 30328 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 30329 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30330 | #define wxUSE_GUI 1 |
e6cc62c6 | 30331 | _ACEOF |
10f2d63a | 30332 | |
8284b0c5 | 30333 | |
10f2d63a | 30334 | else |
e6cc62c6 | 30335 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30336 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 30337 | _ACEOF |
10f2d63a VZ |
30338 | |
30339 | fi | |
30340 | ||
8284b0c5 | 30341 | |
10f2d63a | 30342 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 30343 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30344 | #define wxUSE_UNIX 1 |
e6cc62c6 | 30345 | _ACEOF |
10f2d63a VZ |
30346 | |
30347 | fi | |
30348 | ||
8284b0c5 | 30349 | |
df5168c4 MB |
30350 | if test "$wxUSE_STL" = "yes"; then |
30351 | cat >>confdefs.h <<\_ACEOF | |
30352 | #define wxUSE_STL 1 | |
30353 | _ACEOF | |
30354 | ||
30355 | fi | |
30356 | ||
10f2d63a | 30357 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 30358 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30359 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 30360 | _ACEOF |
10f2d63a VZ |
30361 | |
30362 | fi | |
30363 | ||
1e6feb95 | 30364 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 30365 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30366 | #define wxUSE_TIMER 1 |
e6cc62c6 | 30367 | _ACEOF |
1e6feb95 VZ |
30368 | |
30369 | fi | |
30370 | ||
10f2d63a | 30371 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 30372 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30373 | #define wxUSE_WAVE 1 |
e6cc62c6 | 30374 | _ACEOF |
10f2d63a VZ |
30375 | |
30376 | fi | |
30377 | ||
1e6feb95 | 30378 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 30379 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30380 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 30381 | _ACEOF |
1e6feb95 VZ |
30382 | |
30383 | fi | |
30384 | ||
30385 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 30386 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30387 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 30388 | _ACEOF |
1e6feb95 VZ |
30389 | |
30390 | fi | |
30391 | ||
30392 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 30393 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30394 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 30395 | _ACEOF |
1e6feb95 VZ |
30396 | |
30397 | fi | |
30398 | ||
10f2d63a | 30399 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 30400 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30401 | #define wxUSE_FILE 1 |
e6cc62c6 | 30402 | _ACEOF |
10f2d63a VZ |
30403 | |
30404 | fi | |
30405 | ||
1e6feb95 | 30406 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 30407 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30408 | #define wxUSE_FFILE 1 |
e6cc62c6 | 30409 | _ACEOF |
1e6feb95 VZ |
30410 | |
30411 | fi | |
30412 | ||
24528b0c | 30413 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 30414 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 30415 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 30416 | _ACEOF |
24528b0c VS |
30417 | |
30418 | fi | |
30419 | ||
10f2d63a | 30420 | if test "$wxUSE_FS_ZIP" = "yes"; then |
e6cc62c6 | 30421 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30422 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 30423 | _ACEOF |
10f2d63a VZ |
30424 | |
30425 | fi | |
30426 | ||
30427 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 30428 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30429 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 30430 | _ACEOF |
10f2d63a VZ |
30431 | |
30432 | fi | |
30433 | ||
eb4efbdc | 30434 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 30435 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 30436 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 30437 | _ACEOF |
eb4efbdc VZ |
30438 | |
30439 | fi | |
30440 | ||
4f3c5f06 | 30441 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 30442 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 30443 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 30444 | _ACEOF |
4f3c5f06 VZ |
30445 | |
30446 | fi | |
30447 | ||
10f2d63a | 30448 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 30449 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30450 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 30451 | _ACEOF |
10f2d63a VZ |
30452 | |
30453 | fi | |
30454 | ||
30455 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 30456 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30457 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 30458 | _ACEOF |
10f2d63a VZ |
30459 | |
30460 | fi | |
30461 | ||
a3a584a7 | 30462 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 30463 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 30464 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 30465 | _ACEOF |
a3a584a7 VZ |
30466 | |
30467 | fi | |
30468 | ||
10f2d63a | 30469 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 30470 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
30471 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
30472 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 30473 | else |
e6cc62c6 | 30474 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30475 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 30476 | _ACEOF |
10f2d63a VZ |
30477 | |
30478 | fi | |
30479 | fi | |
30480 | ||
30481 | if test "$wxUSE_CONFIG" = "yes" ; then | |
30482 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
30483 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
30484 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 30485 | else |
e6cc62c6 | 30486 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30487 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 30488 | _ACEOF |
10f2d63a VZ |
30489 | |
30490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
30491 | fi | |
30492 | fi | |
30493 | ||
30494 | if test "$wxUSE_INTL" = "yes" ; then | |
30495 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
30496 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
30497 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 30498 | else |
e6cc62c6 | 30499 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30500 | #define wxUSE_INTL 1 |
e6cc62c6 | 30501 | _ACEOF |
10f2d63a VZ |
30502 | |
30503 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 30504 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
30505 | fi |
30506 | fi | |
30507 | ||
30508 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 30509 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30510 | #define wxUSE_LOG 1 |
e6cc62c6 | 30511 | _ACEOF |
10f2d63a | 30512 | |
8284b0c5 | 30513 | |
d73be714 | 30514 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 30515 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30516 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 30517 | _ACEOF |
d73be714 VZ |
30518 | |
30519 | fi | |
30520 | ||
30521 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 30522 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30523 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 30524 | _ACEOF |
69d27ff7 MB |
30525 | |
30526 | fi | |
30527 | ||
30528 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 30529 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 30530 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 30531 | _ACEOF |
d73be714 VZ |
30532 | |
30533 | fi | |
10f2d63a VZ |
30534 | fi |
30535 | ||
30536 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 30537 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30538 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 30539 | _ACEOF |
10f2d63a VZ |
30540 | |
30541 | fi | |
30542 | ||
e8f65ba6 | 30543 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 30544 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 30545 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 30546 | _ACEOF |
e8f65ba6 RR |
30547 | |
30548 | fi | |
30549 | ||
10f2d63a | 30550 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 30551 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30552 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 30553 | _ACEOF |
10f2d63a | 30554 | |
70f7a477 | 30555 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
30556 | fi |
30557 | ||
30558 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 30559 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30560 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 30561 | _ACEOF |
10f2d63a VZ |
30562 | |
30563 | fi | |
30564 | ||
5c6fa7d2 | 30565 | |
8284b0c5 | 30566 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
30567 | |
30568 | for ac_func in strptime | |
83307f33 | 30569 | do |
e6cc62c6 VS |
30570 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30571 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30572 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30573 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30575 | else | |
30576 | cat >conftest.$ac_ext <<_ACEOF | |
30577 | #line $LINENO "configure" | |
30578 | /* confdefs.h. */ | |
30579 | _ACEOF | |
30580 | cat confdefs.h >>conftest.$ac_ext | |
30581 | cat >>conftest.$ac_ext <<_ACEOF | |
30582 | /* end confdefs.h. */ | |
83307f33 | 30583 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30584 | which can conflict with char $ac_func (); below. |
30585 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30586 | <limits.h> exists even on freestanding compilers. */ | |
30587 | #ifdef __STDC__ | |
30588 | # include <limits.h> | |
30589 | #else | |
30590 | # include <assert.h> | |
30591 | #endif | |
83307f33 | 30592 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30593 | #ifdef __cplusplus |
30594 | extern "C" | |
30595 | { | |
30596 | #endif | |
83307f33 | 30597 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30598 | builtin and then its argument prototype would still apply. */ |
30599 | char $ac_func (); | |
83307f33 VZ |
30600 | /* The GNU C library defines this for functions which it implements |
30601 | to always fail with ENOSYS. Some functions are actually named | |
30602 | something starting with __ and the normal name is an alias. */ | |
30603 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30604 | choke me | |
30605 | #else | |
e6cc62c6 VS |
30606 | char (*f) () = $ac_func; |
30607 | #endif | |
30608 | #ifdef __cplusplus | |
30609 | } | |
83307f33 VZ |
30610 | #endif |
30611 | ||
e6cc62c6 VS |
30612 | int |
30613 | main () | |
30614 | { | |
30615 | return f != $ac_func; | |
30616 | ; | |
30617 | return 0; | |
30618 | } | |
30619 | _ACEOF | |
30620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30622 | (eval $ac_link) 2>&5 | |
30623 | ac_status=$? | |
30624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30625 | (exit $ac_status); } && | |
30626 | { ac_try='test -s conftest$ac_exeext' | |
30627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30628 | (eval $ac_try) 2>&5 | |
30629 | ac_status=$? | |
30630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30631 | (exit $ac_status); }; }; then | |
30632 | eval "$as_ac_var=yes" | |
30633 | else | |
30634 | echo "$as_me: failed program was:" >&5 | |
30635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30636 | ||
30637 | eval "$as_ac_var=no" | |
30638 | fi | |
30639 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30640 | fi | |
30641 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30642 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30643 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30644 | cat >>confdefs.h <<_ACEOF | |
30645 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30646 | _ACEOF | |
83307f33 | 30647 | |
83307f33 VZ |
30648 | fi |
30649 | done | |
30650 | ||
5c6fa7d2 | 30651 | |
e6cc62c6 VS |
30652 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
30653 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
30654 | if test "${wx_cv_var_timezone+set}" = set; then | |
30655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 30656 | else |
e6cc62c6 VS |
30657 | |
30658 | cat >conftest.$ac_ext <<_ACEOF | |
30659 | #line $LINENO "configure" | |
30660 | /* confdefs.h. */ | |
30661 | _ACEOF | |
30662 | cat confdefs.h >>conftest.$ac_ext | |
30663 | cat >>conftest.$ac_ext <<_ACEOF | |
30664 | /* end confdefs.h. */ | |
360d6699 | 30665 | |
b4085ce6 | 30666 | #include <time.h> |
e6cc62c6 VS |
30667 | |
30668 | int | |
30669 | main () | |
30670 | { | |
360d6699 VZ |
30671 | |
30672 | int tz; | |
4f11a343 | 30673 | tz = timezone; |
e6cc62c6 VS |
30674 | |
30675 | ; | |
30676 | return 0; | |
30677 | } | |
30678 | _ACEOF | |
30679 | rm -f conftest.$ac_objext | |
30680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30681 | (eval $ac_compile) 2>&5 | |
30682 | ac_status=$? | |
30683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30684 | (exit $ac_status); } && | |
30685 | { ac_try='test -s conftest.$ac_objext' | |
30686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30687 | (eval $ac_try) 2>&5 | |
30688 | ac_status=$? | |
30689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30690 | (exit $ac_status); }; }; then | |
30691 | ||
4f11a343 | 30692 | wx_cv_var_timezone=timezone |
e6cc62c6 | 30693 | |
360d6699 | 30694 | else |
e6cc62c6 VS |
30695 | echo "$as_me: failed program was:" >&5 |
30696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30697 | ||
30698 | ||
30699 | cat >conftest.$ac_ext <<_ACEOF | |
30700 | #line $LINENO "configure" | |
30701 | /* confdefs.h. */ | |
30702 | _ACEOF | |
30703 | cat confdefs.h >>conftest.$ac_ext | |
30704 | cat >>conftest.$ac_ext <<_ACEOF | |
30705 | /* end confdefs.h. */ | |
360d6699 | 30706 | |
b4085ce6 | 30707 | #include <time.h> |
e6cc62c6 VS |
30708 | |
30709 | int | |
30710 | main () | |
30711 | { | |
360d6699 VZ |
30712 | |
30713 | int tz; | |
30714 | tz = _timezone; | |
e6cc62c6 VS |
30715 | |
30716 | ; | |
30717 | return 0; | |
30718 | } | |
30719 | _ACEOF | |
30720 | rm -f conftest.$ac_objext | |
30721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30722 | (eval $ac_compile) 2>&5 | |
30723 | ac_status=$? | |
30724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30725 | (exit $ac_status); } && | |
30726 | { ac_try='test -s conftest.$ac_objext' | |
30727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30728 | (eval $ac_try) 2>&5 | |
30729 | ac_status=$? | |
30730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30731 | (exit $ac_status); }; }; then | |
30732 | ||
360d6699 | 30733 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 30734 | |
5357c8e8 | 30735 | else |
e6cc62c6 VS |
30736 | echo "$as_me: failed program was:" >&5 |
30737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30738 | ||
30739 | ||
30740 | cat >conftest.$ac_ext <<_ACEOF | |
30741 | #line $LINENO "configure" | |
30742 | /* confdefs.h. */ | |
30743 | _ACEOF | |
30744 | cat confdefs.h >>conftest.$ac_ext | |
30745 | cat >>conftest.$ac_ext <<_ACEOF | |
30746 | /* end confdefs.h. */ | |
5357c8e8 | 30747 | |
b4085ce6 | 30748 | #include <time.h> |
e6cc62c6 VS |
30749 | |
30750 | int | |
30751 | main () | |
30752 | { | |
5357c8e8 VZ |
30753 | |
30754 | int tz; | |
4f11a343 | 30755 | tz = __timezone; |
e6cc62c6 VS |
30756 | |
30757 | ; | |
30758 | return 0; | |
30759 | } | |
30760 | _ACEOF | |
30761 | rm -f conftest.$ac_objext | |
30762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30763 | (eval $ac_compile) 2>&5 | |
30764 | ac_status=$? | |
30765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30766 | (exit $ac_status); } && | |
30767 | { ac_try='test -s conftest.$ac_objext' | |
30768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30769 | (eval $ac_try) 2>&5 | |
30770 | ac_status=$? | |
30771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30772 | (exit $ac_status); }; }; then | |
30773 | ||
4f11a343 | 30774 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 30775 | |
360d6699 | 30776 | else |
e6cc62c6 VS |
30777 | echo "$as_me: failed program was:" >&5 |
30778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30779 | ||
30780 | ||
f9bc1684 | 30781 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
30782 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
30783 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 30784 | fi |
e6cc62c6 VS |
30785 | |
30786 | ||
7b4a847f | 30787 | fi |
e6cc62c6 VS |
30788 | rm -f conftest.$ac_objext conftest.$ac_ext |
30789 | ||
30790 | ||
5c6fa7d2 | 30791 | fi |
e6cc62c6 VS |
30792 | rm -f conftest.$ac_objext conftest.$ac_ext |
30793 | ||
30794 | ||
247f5006 | 30795 | fi |
e6cc62c6 | 30796 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30797 | |
e6cc62c6 VS |
30798 | |
30799 | fi | |
30800 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
30801 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 30802 | |
f9bc1684 | 30803 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 30804 | cat >>confdefs.h <<_ACEOF |
360d6699 | 30805 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 30806 | _ACEOF |
360d6699 | 30807 | |
f9bc1684 | 30808 | fi |
698dcdb6 | 30809 | |
e6cc62c6 VS |
30810 | |
30811 | for ac_func in localtime | |
afc31813 | 30812 | do |
e6cc62c6 VS |
30813 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30814 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30815 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30816 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30818 | else | |
30819 | cat >conftest.$ac_ext <<_ACEOF | |
30820 | #line $LINENO "configure" | |
30821 | /* confdefs.h. */ | |
30822 | _ACEOF | |
30823 | cat confdefs.h >>conftest.$ac_ext | |
30824 | cat >>conftest.$ac_ext <<_ACEOF | |
30825 | /* end confdefs.h. */ | |
afc31813 | 30826 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30827 | which can conflict with char $ac_func (); below. |
30828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30829 | <limits.h> exists even on freestanding compilers. */ | |
30830 | #ifdef __STDC__ | |
30831 | # include <limits.h> | |
30832 | #else | |
30833 | # include <assert.h> | |
30834 | #endif | |
afc31813 | 30835 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30836 | #ifdef __cplusplus |
30837 | extern "C" | |
30838 | { | |
30839 | #endif | |
afc31813 | 30840 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30841 | builtin and then its argument prototype would still apply. */ |
30842 | char $ac_func (); | |
afc31813 VZ |
30843 | /* The GNU C library defines this for functions which it implements |
30844 | to always fail with ENOSYS. Some functions are actually named | |
30845 | something starting with __ and the normal name is an alias. */ | |
30846 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30847 | choke me | |
30848 | #else | |
e6cc62c6 VS |
30849 | char (*f) () = $ac_func; |
30850 | #endif | |
30851 | #ifdef __cplusplus | |
30852 | } | |
afc31813 VZ |
30853 | #endif |
30854 | ||
e6cc62c6 VS |
30855 | int |
30856 | main () | |
30857 | { | |
30858 | return f != $ac_func; | |
30859 | ; | |
30860 | return 0; | |
30861 | } | |
30862 | _ACEOF | |
30863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30865 | (eval $ac_link) 2>&5 | |
30866 | ac_status=$? | |
30867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30868 | (exit $ac_status); } && | |
30869 | { ac_try='test -s conftest$ac_exeext' | |
30870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30871 | (eval $ac_try) 2>&5 | |
30872 | ac_status=$? | |
30873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30874 | (exit $ac_status); }; }; then | |
30875 | eval "$as_ac_var=yes" | |
30876 | else | |
30877 | echo "$as_me: failed program was:" >&5 | |
30878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30879 | ||
30880 | eval "$as_ac_var=no" | |
30881 | fi | |
30882 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30883 | fi | |
30884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30885 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30886 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30887 | cat >>confdefs.h <<_ACEOF | |
30888 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30889 | _ACEOF | |
afc31813 | 30890 | |
afc31813 VZ |
30891 | fi |
30892 | done | |
30893 | ||
5c6fa7d2 | 30894 | |
8284b0c5 | 30895 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
30896 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
30897 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
30898 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
30899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30900 | else |
e6cc62c6 VS |
30901 | |
30902 | cat >conftest.$ac_ext <<_ACEOF | |
30903 | #line $LINENO "configure" | |
30904 | /* confdefs.h. */ | |
30905 | _ACEOF | |
30906 | cat confdefs.h >>conftest.$ac_ext | |
30907 | cat >>conftest.$ac_ext <<_ACEOF | |
30908 | /* end confdefs.h. */ | |
0470b1e6 | 30909 | |
b4085ce6 | 30910 | #include <time.h> |
e6cc62c6 VS |
30911 | |
30912 | int | |
30913 | main () | |
30914 | { | |
0470b1e6 VZ |
30915 | |
30916 | struct tm tm; | |
30917 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
30918 | |
30919 | ; | |
30920 | return 0; | |
30921 | } | |
30922 | _ACEOF | |
30923 | rm -f conftest.$ac_objext | |
30924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30925 | (eval $ac_compile) 2>&5 | |
30926 | ac_status=$? | |
30927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30928 | (exit $ac_status); } && | |
30929 | { ac_try='test -s conftest.$ac_objext' | |
30930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30931 | (eval $ac_try) 2>&5 | |
30932 | ac_status=$? | |
30933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30934 | (exit $ac_status); }; }; then | |
30935 | ||
f03a98d8 | 30936 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 30937 | |
0470b1e6 | 30938 | else |
e6cc62c6 VS |
30939 | echo "$as_me: failed program was:" >&5 |
30940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30941 | ||
30942 | wx_cv_struct_tm_has_gmtoff=no | |
30943 | ||
247f5006 | 30944 | fi |
e6cc62c6 | 30945 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30946 | |
e6cc62c6 VS |
30947 | fi |
30948 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
30949 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
30950 | fi |
30951 | ||
30952 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 30953 | cat >>confdefs.h <<\_ACEOF |
6232543b | 30954 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 30955 | _ACEOF |
0470b1e6 | 30956 | |
3fcdd07b VZ |
30957 | fi |
30958 | ||
e6cc62c6 VS |
30959 | |
30960 | ||
30961 | for ac_func in gettimeofday ftime | |
3fcdd07b | 30962 | do |
e6cc62c6 VS |
30963 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30964 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30965 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30966 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30968 | else | |
30969 | cat >conftest.$ac_ext <<_ACEOF | |
30970 | #line $LINENO "configure" | |
30971 | /* confdefs.h. */ | |
30972 | _ACEOF | |
30973 | cat confdefs.h >>conftest.$ac_ext | |
30974 | cat >>conftest.$ac_ext <<_ACEOF | |
30975 | /* end confdefs.h. */ | |
3fcdd07b | 30976 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30977 | which can conflict with char $ac_func (); below. |
30978 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30979 | <limits.h> exists even on freestanding compilers. */ | |
30980 | #ifdef __STDC__ | |
30981 | # include <limits.h> | |
30982 | #else | |
30983 | # include <assert.h> | |
30984 | #endif | |
3fcdd07b | 30985 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30986 | #ifdef __cplusplus |
30987 | extern "C" | |
30988 | { | |
30989 | #endif | |
3fcdd07b | 30990 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30991 | builtin and then its argument prototype would still apply. */ |
30992 | char $ac_func (); | |
3fcdd07b VZ |
30993 | /* The GNU C library defines this for functions which it implements |
30994 | to always fail with ENOSYS. Some functions are actually named | |
30995 | something starting with __ and the normal name is an alias. */ | |
30996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30997 | choke me | |
30998 | #else | |
e6cc62c6 VS |
30999 | char (*f) () = $ac_func; |
31000 | #endif | |
31001 | #ifdef __cplusplus | |
31002 | } | |
3fcdd07b VZ |
31003 | #endif |
31004 | ||
e6cc62c6 VS |
31005 | int |
31006 | main () | |
31007 | { | |
31008 | return f != $ac_func; | |
31009 | ; | |
31010 | return 0; | |
31011 | } | |
31012 | _ACEOF | |
31013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31015 | (eval $ac_link) 2>&5 | |
31016 | ac_status=$? | |
31017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31018 | (exit $ac_status); } && | |
31019 | { ac_try='test -s conftest$ac_exeext' | |
31020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31021 | (eval $ac_try) 2>&5 | |
31022 | ac_status=$? | |
31023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31024 | (exit $ac_status); }; }; then | |
31025 | eval "$as_ac_var=yes" | |
31026 | else | |
31027 | echo "$as_me: failed program was:" >&5 | |
31028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31029 | ||
31030 | eval "$as_ac_var=no" | |
31031 | fi | |
31032 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31033 | fi | |
31034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31035 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31036 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31037 | cat >>confdefs.h <<_ACEOF | |
31038 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31039 | _ACEOF | |
3fcdd07b | 31040 | break |
3fcdd07b VZ |
31041 | fi |
31042 | done | |
31043 | ||
698dcdb6 | 31044 | |
8284b0c5 | 31045 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
31046 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
31047 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
31048 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
31049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31050 | else | |
31051 | ||
31052 | ||
31053 | ||
31054 | ac_ext=cc | |
5c6fa7d2 | 31055 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
31056 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
31057 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31058 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 31059 | |
8284b0c5 | 31060 | |
e6cc62c6 VS |
31061 | cat >conftest.$ac_ext <<_ACEOF |
31062 | #line $LINENO "configure" | |
31063 | /* confdefs.h. */ | |
31064 | _ACEOF | |
31065 | cat confdefs.h >>conftest.$ac_ext | |
31066 | cat >>conftest.$ac_ext <<_ACEOF | |
31067 | /* end confdefs.h. */ | |
afc31813 VZ |
31068 | |
31069 | #include <sys/time.h> | |
31070 | #include <unistd.h> | |
e6cc62c6 VS |
31071 | |
31072 | int | |
31073 | main () | |
31074 | { | |
afc31813 VZ |
31075 | |
31076 | struct timeval tv; | |
776862b4 | 31077 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
31078 | |
31079 | ; | |
31080 | return 0; | |
31081 | } | |
31082 | _ACEOF | |
31083 | rm -f conftest.$ac_objext | |
31084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31085 | (eval $ac_compile) 2>&5 | |
31086 | ac_status=$? | |
31087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31088 | (exit $ac_status); } && | |
31089 | { ac_try='test -s conftest.$ac_objext' | |
31090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31091 | (eval $ac_try) 2>&5 | |
31092 | ac_status=$? | |
31093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31094 | (exit $ac_status); }; }; then | |
afc31813 | 31095 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 31096 | else |
e6cc62c6 VS |
31097 | echo "$as_me: failed program was:" >&5 |
31098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31099 | ||
31100 | cat >conftest.$ac_ext <<_ACEOF | |
31101 | #line $LINENO "configure" | |
31102 | /* confdefs.h. */ | |
31103 | _ACEOF | |
31104 | cat confdefs.h >>conftest.$ac_ext | |
31105 | cat >>conftest.$ac_ext <<_ACEOF | |
31106 | /* end confdefs.h. */ | |
afc31813 VZ |
31107 | |
31108 | #include <sys/time.h> | |
31109 | #include <unistd.h> | |
e6cc62c6 VS |
31110 | |
31111 | int | |
31112 | main () | |
31113 | { | |
afc31813 VZ |
31114 | |
31115 | struct timeval tv; | |
31116 | gettimeofday(&tv); | |
e6cc62c6 VS |
31117 | |
31118 | ; | |
31119 | return 0; | |
31120 | } | |
31121 | _ACEOF | |
31122 | rm -f conftest.$ac_objext | |
31123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31124 | (eval $ac_compile) 2>&5 | |
31125 | ac_status=$? | |
31126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31127 | (exit $ac_status); } && | |
31128 | { ac_try='test -s conftest.$ac_objext' | |
31129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31130 | (eval $ac_try) 2>&5 | |
31131 | ac_status=$? | |
31132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31133 | (exit $ac_status); }; }; then | |
afc31813 | 31134 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 31135 | else |
e6cc62c6 VS |
31136 | echo "$as_me: failed program was:" >&5 |
31137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31138 | ||
31139 | ||
31140 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
31141 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 31142 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
31143 | |
31144 | ||
10f2d63a | 31145 | fi |
e6cc62c6 VS |
31146 | rm -f conftest.$ac_objext conftest.$ac_ext |
31147 | ||
10f2d63a | 31148 | fi |
e6cc62c6 | 31149 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 31150 | ac_ext=c |
10f2d63a | 31151 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
31152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
31153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 31155 | |
a0b9e27f | 31156 | |
e6cc62c6 VS |
31157 | fi |
31158 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
31159 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 31160 | |
afc31813 | 31161 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 31162 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31163 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 31164 | _ACEOF |
afc31813 VZ |
31165 | |
31166 | fi | |
31167 | fi | |
31168 | ||
afc31813 VZ |
31169 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
31170 | fi | |
31171 | ||
8284b0c5 | 31172 | |
52127426 | 31173 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 31174 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
31175 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
31176 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
31177 | wxUSE_SOCKETS="no" |
31178 | fi | |
3879ecda VZ |
31179 | if test "$wxUSE_COCOA" = "1"; then |
31180 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5 | |
31181 | echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;} | |
31182 | wxUSE_SOCKETS="no" | |
31183 | fi | |
0feee163 | 31184 | fi |
b089607b | 31185 | |
0feee163 VZ |
31186 | if test "$wxUSE_SOCKETS" = "yes"; then |
31187 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
31188 | echo "$as_me:$LINENO: checking for socket" >&5 |
31189 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
31190 | if test "${ac_cv_func_socket+set}" = set; then | |
31191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31192 | else | |
31193 | cat >conftest.$ac_ext <<_ACEOF | |
31194 | #line $LINENO "configure" | |
31195 | /* confdefs.h. */ | |
31196 | _ACEOF | |
31197 | cat confdefs.h >>conftest.$ac_ext | |
31198 | cat >>conftest.$ac_ext <<_ACEOF | |
31199 | /* end confdefs.h. */ | |
c63c7106 | 31200 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31201 | which can conflict with char socket (); below. |
31202 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31203 | <limits.h> exists even on freestanding compilers. */ | |
31204 | #ifdef __STDC__ | |
31205 | # include <limits.h> | |
31206 | #else | |
31207 | # include <assert.h> | |
31208 | #endif | |
c63c7106 | 31209 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31210 | #ifdef __cplusplus |
31211 | extern "C" | |
31212 | { | |
31213 | #endif | |
c63c7106 | 31214 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31215 | builtin and then its argument prototype would still apply. */ |
31216 | char socket (); | |
c63c7106 VZ |
31217 | /* The GNU C library defines this for functions which it implements |
31218 | to always fail with ENOSYS. Some functions are actually named | |
31219 | something starting with __ and the normal name is an alias. */ | |
31220 | #if defined (__stub_socket) || defined (__stub___socket) | |
31221 | choke me | |
31222 | #else | |
e6cc62c6 VS |
31223 | char (*f) () = socket; |
31224 | #endif | |
31225 | #ifdef __cplusplus | |
31226 | } | |
c63c7106 VZ |
31227 | #endif |
31228 | ||
e6cc62c6 VS |
31229 | int |
31230 | main () | |
31231 | { | |
31232 | return f != socket; | |
31233 | ; | |
31234 | return 0; | |
31235 | } | |
31236 | _ACEOF | |
31237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31239 | (eval $ac_link) 2>&5 | |
31240 | ac_status=$? | |
31241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31242 | (exit $ac_status); } && | |
31243 | { ac_try='test -s conftest$ac_exeext' | |
31244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31245 | (eval $ac_try) 2>&5 | |
31246 | ac_status=$? | |
31247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31248 | (exit $ac_status); }; }; then | |
31249 | ac_cv_func_socket=yes | |
31250 | else | |
31251 | echo "$as_me: failed program was:" >&5 | |
31252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31253 | ||
31254 | ac_cv_func_socket=no | |
31255 | fi | |
31256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31257 | fi | |
31258 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
31259 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
31260 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
31261 | : |
31262 | else | |
e6cc62c6 VS |
31263 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
31264 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
31265 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
31266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 31267 | else |
e6cc62c6 | 31268 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 31269 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
31270 | cat >conftest.$ac_ext <<_ACEOF |
31271 | #line $LINENO "configure" | |
31272 | /* confdefs.h. */ | |
31273 | _ACEOF | |
31274 | cat confdefs.h >>conftest.$ac_ext | |
31275 | cat >>conftest.$ac_ext <<_ACEOF | |
31276 | /* end confdefs.h. */ | |
31277 | ||
c63c7106 | 31278 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31279 | #ifdef __cplusplus |
31280 | extern "C" | |
31281 | #endif | |
c63c7106 | 31282 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31283 | builtin and then its argument prototype would still apply. */ |
31284 | char socket (); | |
31285 | int | |
31286 | main () | |
31287 | { | |
31288 | socket (); | |
31289 | ; | |
31290 | return 0; | |
31291 | } | |
31292 | _ACEOF | |
31293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31295 | (eval $ac_link) 2>&5 | |
31296 | ac_status=$? | |
31297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31298 | (exit $ac_status); } && | |
31299 | { ac_try='test -s conftest$ac_exeext' | |
31300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31301 | (eval $ac_try) 2>&5 | |
31302 | ac_status=$? | |
31303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31304 | (exit $ac_status); }; }; then | |
31305 | ac_cv_lib_socket_socket=yes | |
31306 | else | |
31307 | echo "$as_me: failed program was:" >&5 | |
31308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31309 | ||
31310 | ac_cv_lib_socket_socket=no | |
31311 | fi | |
31312 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31313 | LIBS=$ac_check_lib_save_LIBS | |
31314 | fi | |
31315 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
31316 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
31317 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 VS |
31318 | if test "$INET_LINK" != " -lsocket"; then |
31319 | INET_LINK="$INET_LINK -lsocket" | |
31320 | fi | |
c63c7106 | 31321 | else |
afc31813 | 31322 | |
e6cc62c6 VS |
31323 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
31324 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
3a922bb4 | 31325 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
31326 | |
31327 | ||
6232543b | 31328 | fi |
b089607b | 31329 | |
e6cc62c6 | 31330 | |
1e487827 | 31331 | fi |
afc31813 | 31332 | |
3a922bb4 | 31333 | fi |
0feee163 | 31334 | fi |
51a9faba | 31335 | |
0feee163 VZ |
31336 | if test "$wxUSE_SOCKETS" = "yes" ; then |
31337 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
31338 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
31339 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
31340 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
31341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 31342 | else |
e6cc62c6 VS |
31343 | |
31344 | cat >conftest.$ac_ext <<_ACEOF | |
31345 | #line $LINENO "configure" | |
31346 | /* confdefs.h. */ | |
31347 | _ACEOF | |
31348 | cat confdefs.h >>conftest.$ac_ext | |
31349 | cat >>conftest.$ac_ext <<_ACEOF | |
31350 | /* end confdefs.h. */ | |
51a9faba | 31351 | |
3a922bb4 RL |
31352 | #include <sys/types.h> |
31353 | #include <sys/socket.h> | |
e6cc62c6 VS |
31354 | |
31355 | int | |
31356 | main () | |
31357 | { | |
51a9faba | 31358 | |
3a922bb4 RL |
31359 | socklen_t len; |
31360 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31361 | |
31362 | ; | |
31363 | return 0; | |
31364 | } | |
31365 | _ACEOF | |
31366 | rm -f conftest.$ac_objext | |
31367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31368 | (eval $ac_compile) 2>&5 | |
31369 | ac_status=$? | |
31370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31371 | (exit $ac_status); } && | |
31372 | { ac_try='test -s conftest.$ac_objext' | |
31373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31374 | (eval $ac_try) 2>&5 | |
31375 | ac_status=$? | |
31376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31377 | (exit $ac_status); }; }; then | |
51a9faba | 31378 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 31379 | else |
e6cc62c6 VS |
31380 | echo "$as_me: failed program was:" >&5 |
31381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31382 | ||
31383 | ||
9711d31e GD |
31384 | CFLAGS_OLD="$CFLAGS" |
31385 | if test "$GCC" = yes ; then | |
31386 | CFLAGS="$CFLAGS -Werror" | |
31387 | fi | |
31388 | ||
e6cc62c6 VS |
31389 | cat >conftest.$ac_ext <<_ACEOF |
31390 | #line $LINENO "configure" | |
31391 | /* confdefs.h. */ | |
31392 | _ACEOF | |
31393 | cat confdefs.h >>conftest.$ac_ext | |
31394 | cat >>conftest.$ac_ext <<_ACEOF | |
31395 | /* end confdefs.h. */ | |
51a9faba | 31396 | |
9711d31e GD |
31397 | #include <sys/types.h> |
31398 | #include <sys/socket.h> | |
e6cc62c6 VS |
31399 | |
31400 | int | |
31401 | main () | |
31402 | { | |
51a9faba | 31403 | |
9711d31e GD |
31404 | size_t len; |
31405 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31406 | |
31407 | ; | |
31408 | return 0; | |
31409 | } | |
31410 | _ACEOF | |
31411 | rm -f conftest.$ac_objext | |
31412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31413 | (eval $ac_compile) 2>&5 | |
31414 | ac_status=$? | |
31415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31416 | (exit $ac_status); } && | |
31417 | { ac_try='test -s conftest.$ac_objext' | |
31418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31419 | (eval $ac_try) 2>&5 | |
31420 | ac_status=$? | |
31421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31422 | (exit $ac_status); }; }; then | |
51a9faba | 31423 | wx_cv_type_getsockname3=size_t |
afc31813 | 31424 | else |
e6cc62c6 VS |
31425 | echo "$as_me: failed program was:" >&5 |
31426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31427 | ||
31428 | cat >conftest.$ac_ext <<_ACEOF | |
31429 | #line $LINENO "configure" | |
31430 | /* confdefs.h. */ | |
31431 | _ACEOF | |
31432 | cat confdefs.h >>conftest.$ac_ext | |
31433 | cat >>conftest.$ac_ext <<_ACEOF | |
31434 | /* end confdefs.h. */ | |
51a9faba | 31435 | |
9711d31e GD |
31436 | #include <sys/types.h> |
31437 | #include <sys/socket.h> | |
e6cc62c6 VS |
31438 | |
31439 | int | |
31440 | main () | |
31441 | { | |
51a9faba | 31442 | |
9711d31e GD |
31443 | int len; |
31444 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31445 | |
31446 | ; | |
31447 | return 0; | |
31448 | } | |
31449 | _ACEOF | |
31450 | rm -f conftest.$ac_objext | |
31451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31452 | (eval $ac_compile) 2>&5 | |
31453 | ac_status=$? | |
31454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31455 | (exit $ac_status); } && | |
31456 | { ac_try='test -s conftest.$ac_objext' | |
31457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31458 | (eval $ac_try) 2>&5 | |
31459 | ac_status=$? | |
31460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31461 | (exit $ac_status); }; }; then | |
51a9faba | 31462 | wx_cv_type_getsockname3=int |
afc31813 | 31463 | else |
e6cc62c6 VS |
31464 | echo "$as_me: failed program was:" >&5 |
31465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31466 | ||
31467 | wx_cv_type_getsockname3=unknown | |
31468 | ||
afc31813 | 31469 | fi |
e6cc62c6 VS |
31470 | rm -f conftest.$ac_objext conftest.$ac_ext |
31471 | ||
afc31813 | 31472 | fi |
e6cc62c6 | 31473 | rm -f conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
31474 | |
31475 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
31476 | |
31477 | ||
247f5006 | 31478 | fi |
e6cc62c6 | 31479 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 31480 | |
e6cc62c6 VS |
31481 | fi |
31482 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
31483 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 31484 | |
3a922bb4 RL |
31485 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
31486 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
31487 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
31488 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 31489 | else |
e6cc62c6 | 31490 | cat >>confdefs.h <<_ACEOF |
51a9faba | 31491 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 31492 | _ACEOF |
51a9faba | 31493 | |
3a922bb4 | 31494 | fi |
51a9faba VZ |
31495 | fi |
31496 | fi | |
afc31813 | 31497 | |
51a9faba | 31498 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 31499 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31500 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 31501 | _ACEOF |
afc31813 | 31502 | |
70f7a477 | 31503 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
31504 | fi |
31505 | ||
3879ecda VZ |
31506 | if test "$wxUSE_PROTOCOL" = "yes"; then |
31507 | if test "$wxUSE_SOCKETS" != "yes"; then | |
31508 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
31509 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
31510 | wxUSE_PROTOCOL=no | |
31511 | fi | |
31512 | fi | |
31513 | ||
31514 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
31515 | cat >>confdefs.h <<\_ACEOF | |
31516 | #define wxUSE_PROTOCOL 1 | |
31517 | _ACEOF | |
31518 | ||
31519 | ||
31520 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
31521 | cat >>confdefs.h <<\_ACEOF | |
31522 | #define wxUSE_PROTOCOL_HTTP 1 | |
31523 | _ACEOF | |
31524 | ||
31525 | fi | |
31526 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
31527 | cat >>confdefs.h <<\_ACEOF | |
31528 | #define wxUSE_PROTOCOL_FTP 1 | |
31529 | _ACEOF | |
31530 | ||
31531 | fi | |
31532 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
31533 | cat >>confdefs.h <<\_ACEOF | |
31534 | #define wxUSE_PROTOCOL_FILE 1 | |
31535 | _ACEOF | |
31536 | ||
31537 | fi | |
31538 | else | |
31539 | if test "$wxUSE_FS_INET" = "yes"; then | |
31540 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
31541 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
31542 | wxUSE_FS_INET="no" | |
31543 | fi | |
31544 | fi | |
31545 | ||
31546 | if test "$wxUSE_URL" = "yes"; then | |
31547 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
31548 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
31549 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
31550 | wxUSE_URL=no | |
31551 | fi | |
31552 | if test "$wxUSE_URL" = "yes"; then | |
31553 | cat >>confdefs.h <<\_ACEOF | |
31554 | #define wxUSE_URL 1 | |
31555 | _ACEOF | |
31556 | ||
31557 | fi | |
31558 | fi | |
31559 | ||
31560 | if test "$wxUSE_FS_INET" = "yes"; then | |
31561 | cat >>confdefs.h <<\_ACEOF | |
31562 | #define wxUSE_FS_INET 1 | |
31563 | _ACEOF | |
31564 | ||
31565 | fi | |
31566 | ||
8284b0c5 | 31567 | |
dc3d889d VZ |
31568 | if test "$wxUSE_GUI" = "yes"; then |
31569 | ||
ac0c4cc3 | 31570 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
31571 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
31572 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 | 31573 | wxUSE_JOYSTICK=no |
156b2523 GD |
31574 | fi |
31575 | ||
131f235d | 31576 | if test "$TOOLKIT" != "MSW"; then |
3a922bb4 | 31577 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 VS |
31578 | |
31579 | for ac_header in linux/joystick.h | |
10f2d63a | 31580 | do |
e6cc62c6 VS |
31581 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31587 | fi | |
31588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31590 | else | |
31591 | # Is the header compilable? | |
31592 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31593 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31594 | cat >conftest.$ac_ext <<_ACEOF | |
31595 | #line $LINENO "configure" | |
31596 | /* confdefs.h. */ | |
31597 | _ACEOF | |
31598 | cat confdefs.h >>conftest.$ac_ext | |
31599 | cat >>conftest.$ac_ext <<_ACEOF | |
31600 | /* end confdefs.h. */ | |
31601 | $ac_includes_default | |
31602 | #include <$ac_header> | |
31603 | _ACEOF | |
31604 | rm -f conftest.$ac_objext | |
31605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31606 | (eval $ac_compile) 2>&5 | |
31607 | ac_status=$? | |
31608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31609 | (exit $ac_status); } && | |
31610 | { ac_try='test -s conftest.$ac_objext' | |
31611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31612 | (eval $ac_try) 2>&5 | |
31613 | ac_status=$? | |
31614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31615 | (exit $ac_status); }; }; then | |
31616 | ac_header_compiler=yes | |
31617 | else | |
31618 | echo "$as_me: failed program was:" >&5 | |
31619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31620 | ||
31621 | ac_header_compiler=no | |
31622 | fi | |
31623 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31624 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31625 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31626 | ||
31627 | # Is the header present? | |
31628 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31629 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31630 | cat >conftest.$ac_ext <<_ACEOF | |
31631 | #line $LINENO "configure" | |
31632 | /* confdefs.h. */ | |
31633 | _ACEOF | |
31634 | cat confdefs.h >>conftest.$ac_ext | |
31635 | cat >>conftest.$ac_ext <<_ACEOF | |
31636 | /* end confdefs.h. */ | |
31637 | #include <$ac_header> | |
31638 | _ACEOF | |
31639 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31640 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31641 | ac_status=$? | |
31642 | grep -v '^ *+' conftest.er1 >conftest.err | |
31643 | rm -f conftest.er1 | |
31644 | cat conftest.err >&5 | |
31645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31646 | (exit $ac_status); } >/dev/null; then | |
31647 | if test -s conftest.err; then | |
31648 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31649 | else | |
31650 | ac_cpp_err= | |
31651 | fi | |
31652 | else | |
31653 | ac_cpp_err=yes | |
31654 | fi | |
31655 | if test -z "$ac_cpp_err"; then | |
31656 | ac_header_preproc=yes | |
31657 | else | |
31658 | echo "$as_me: failed program was:" >&5 | |
31659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31660 | ||
31661 | ac_header_preproc=no | |
31662 | fi | |
31663 | rm -f conftest.err conftest.$ac_ext | |
31664 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31665 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31666 | ||
31667 | # So? What about this header? | |
31668 | case $ac_header_compiler:$ac_header_preproc in | |
31669 | yes:no ) | |
31670 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31671 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31672 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31673 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31674 | ( | |
31675 | cat <<\_ASBOX | |
31676 | ## ------------------------------------ ## | |
31677 | ## Report this to bug-autoconf@gnu.org. ## | |
31678 | ## ------------------------------------ ## | |
31679 | _ASBOX | |
31680 | ) | | |
31681 | sed "s/^/$as_me: WARNING: /" >&2 | |
31682 | ;; | |
31683 | no:yes ) | |
31684 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31685 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31686 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31687 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31689 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31690 | ( | |
31691 | cat <<\_ASBOX | |
31692 | ## ------------------------------------ ## | |
31693 | ## Report this to bug-autoconf@gnu.org. ## | |
31694 | ## ------------------------------------ ## | |
31695 | _ASBOX | |
31696 | ) | | |
31697 | sed "s/^/$as_me: WARNING: /" >&2 | |
31698 | ;; | |
31699 | esac | |
31700 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31702 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31704 | else | |
31705 | eval "$as_ac_Header=$ac_header_preproc" | |
247f5006 | 31706 | fi |
e6cc62c6 VS |
31707 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31708 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31709 | ||
10f2d63a | 31710 | fi |
e6cc62c6 VS |
31711 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31712 | cat >>confdefs.h <<_ACEOF | |
31713 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31714 | _ACEOF | |
31715 | ||
247f5006 | 31716 | fi |
e6cc62c6 | 31717 | |
10f2d63a VZ |
31718 | done |
31719 | ||
3a922bb4 RL |
31720 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
31721 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
31722 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
31723 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
31724 | fi |
31725 | fi | |
31726 | fi | |
b089607b | 31727 | |
3a922bb4 | 31728 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 31729 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31730 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 31731 | _ACEOF |
10f2d63a | 31732 | |
3a922bb4 RL |
31733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
31734 | fi | |
dc3d889d VZ |
31735 | fi |
31736 | ||
8284b0c5 | 31737 | |
b089607b VZ |
31738 | if test "$TOOLKIT" != "MSW"; then |
31739 | ||
3a922bb4 RL |
31740 | HAVE_DL_FUNCS=0 |
31741 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 31742 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
31743 | if test "$USE_DARWIN" = 1; then |
31744 | HAVE_DL_FUNCS=1 | |
31745 | else | |
e6cc62c6 VS |
31746 | |
31747 | for ac_func in dlopen | |
10f2d63a | 31748 | do |
e6cc62c6 VS |
31749 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31750 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31751 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31752 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31754 | else | |
31755 | cat >conftest.$ac_ext <<_ACEOF | |
31756 | #line $LINENO "configure" | |
31757 | /* confdefs.h. */ | |
31758 | _ACEOF | |
31759 | cat confdefs.h >>conftest.$ac_ext | |
31760 | cat >>conftest.$ac_ext <<_ACEOF | |
31761 | /* end confdefs.h. */ | |
10f2d63a | 31762 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31763 | which can conflict with char $ac_func (); below. |
31764 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31765 | <limits.h> exists even on freestanding compilers. */ | |
31766 | #ifdef __STDC__ | |
31767 | # include <limits.h> | |
31768 | #else | |
31769 | # include <assert.h> | |
31770 | #endif | |
10f2d63a | 31771 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31772 | #ifdef __cplusplus |
31773 | extern "C" | |
31774 | { | |
31775 | #endif | |
10f2d63a | 31776 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31777 | builtin and then its argument prototype would still apply. */ |
31778 | char $ac_func (); | |
10f2d63a VZ |
31779 | /* The GNU C library defines this for functions which it implements |
31780 | to always fail with ENOSYS. Some functions are actually named | |
31781 | something starting with __ and the normal name is an alias. */ | |
31782 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31783 | choke me | |
31784 | #else | |
e6cc62c6 VS |
31785 | char (*f) () = $ac_func; |
31786 | #endif | |
31787 | #ifdef __cplusplus | |
31788 | } | |
10f2d63a VZ |
31789 | #endif |
31790 | ||
e6cc62c6 VS |
31791 | int |
31792 | main () | |
31793 | { | |
31794 | return f != $ac_func; | |
31795 | ; | |
31796 | return 0; | |
31797 | } | |
31798 | _ACEOF | |
31799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31801 | (eval $ac_link) 2>&5 | |
31802 | ac_status=$? | |
31803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31804 | (exit $ac_status); } && | |
31805 | { ac_try='test -s conftest$ac_exeext' | |
31806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31807 | (eval $ac_try) 2>&5 | |
31808 | ac_status=$? | |
31809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31810 | (exit $ac_status); }; }; then | |
31811 | eval "$as_ac_var=yes" | |
31812 | else | |
31813 | echo "$as_me: failed program was:" >&5 | |
31814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31815 | ||
31816 | eval "$as_ac_var=no" | |
31817 | fi | |
31818 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31819 | fi | |
31820 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31821 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31822 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31823 | cat >>confdefs.h <<_ACEOF | |
31824 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31825 | _ACEOF | |
31826 | ||
31827 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31828 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31829 | _ACEOF |
10f2d63a | 31830 | |
3a922bb4 | 31831 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 31832 | |
10f2d63a | 31833 | else |
e6cc62c6 VS |
31834 | |
31835 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
31836 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31837 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31839 | else |
e6cc62c6 | 31840 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 31841 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31842 | cat >conftest.$ac_ext <<_ACEOF |
31843 | #line $LINENO "configure" | |
31844 | /* confdefs.h. */ | |
31845 | _ACEOF | |
31846 | cat confdefs.h >>conftest.$ac_ext | |
31847 | cat >>conftest.$ac_ext <<_ACEOF | |
31848 | /* end confdefs.h. */ | |
31849 | ||
10f2d63a | 31850 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31851 | #ifdef __cplusplus |
31852 | extern "C" | |
31853 | #endif | |
10f2d63a | 31854 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31855 | builtin and then its argument prototype would still apply. */ |
31856 | char dlopen (); | |
31857 | int | |
31858 | main () | |
31859 | { | |
31860 | dlopen (); | |
31861 | ; | |
31862 | return 0; | |
31863 | } | |
31864 | _ACEOF | |
31865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31867 | (eval $ac_link) 2>&5 | |
31868 | ac_status=$? | |
31869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31870 | (exit $ac_status); } && | |
31871 | { ac_try='test -s conftest$ac_exeext' | |
31872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31873 | (eval $ac_try) 2>&5 | |
31874 | ac_status=$? | |
31875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31876 | (exit $ac_status); }; }; then | |
31877 | ac_cv_lib_dl_dlopen=yes | |
31878 | else | |
31879 | echo "$as_me: failed program was:" >&5 | |
31880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31881 | ||
31882 | ac_cv_lib_dl_dlopen=no | |
31883 | fi | |
31884 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31885 | LIBS=$ac_check_lib_save_LIBS | |
31886 | fi | |
31887 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
31888 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31889 | if test $ac_cv_lib_dl_dlopen = yes; then | |
31890 | ||
31891 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31892 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31893 | _ACEOF |
10f2d63a | 31894 | |
3a922bb4 | 31895 | HAVE_DL_FUNCS=1 |
3d63bc3a | 31896 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 31897 | |
10f2d63a | 31898 | else |
10f2d63a | 31899 | |
e6cc62c6 VS |
31900 | |
31901 | for ac_func in shl_load | |
10f2d63a | 31902 | do |
e6cc62c6 VS |
31903 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31904 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31905 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31906 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31908 | else | |
31909 | cat >conftest.$ac_ext <<_ACEOF | |
31910 | #line $LINENO "configure" | |
31911 | /* confdefs.h. */ | |
31912 | _ACEOF | |
31913 | cat confdefs.h >>conftest.$ac_ext | |
31914 | cat >>conftest.$ac_ext <<_ACEOF | |
31915 | /* end confdefs.h. */ | |
10f2d63a | 31916 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31917 | which can conflict with char $ac_func (); below. |
31918 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31919 | <limits.h> exists even on freestanding compilers. */ | |
31920 | #ifdef __STDC__ | |
31921 | # include <limits.h> | |
31922 | #else | |
31923 | # include <assert.h> | |
31924 | #endif | |
10f2d63a | 31925 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31926 | #ifdef __cplusplus |
31927 | extern "C" | |
31928 | { | |
31929 | #endif | |
10f2d63a | 31930 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31931 | builtin and then its argument prototype would still apply. */ |
31932 | char $ac_func (); | |
10f2d63a VZ |
31933 | /* The GNU C library defines this for functions which it implements |
31934 | to always fail with ENOSYS. Some functions are actually named | |
31935 | something starting with __ and the normal name is an alias. */ | |
31936 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31937 | choke me | |
31938 | #else | |
e6cc62c6 VS |
31939 | char (*f) () = $ac_func; |
31940 | #endif | |
31941 | #ifdef __cplusplus | |
31942 | } | |
10f2d63a VZ |
31943 | #endif |
31944 | ||
e6cc62c6 VS |
31945 | int |
31946 | main () | |
31947 | { | |
31948 | return f != $ac_func; | |
31949 | ; | |
31950 | return 0; | |
31951 | } | |
31952 | _ACEOF | |
31953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31955 | (eval $ac_link) 2>&5 | |
31956 | ac_status=$? | |
31957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31958 | (exit $ac_status); } && | |
31959 | { ac_try='test -s conftest$ac_exeext' | |
31960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31961 | (eval $ac_try) 2>&5 | |
31962 | ac_status=$? | |
31963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31964 | (exit $ac_status); }; }; then | |
31965 | eval "$as_ac_var=yes" | |
31966 | else | |
31967 | echo "$as_me: failed program was:" >&5 | |
31968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31969 | ||
31970 | eval "$as_ac_var=no" | |
31971 | fi | |
31972 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31973 | fi | |
31974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31975 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31976 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31977 | cat >>confdefs.h <<_ACEOF | |
31978 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31979 | _ACEOF | |
31980 | ||
31981 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31982 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 31983 | _ACEOF |
10f2d63a | 31984 | |
3a922bb4 | 31985 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 31986 | |
10f2d63a | 31987 | else |
e6cc62c6 VS |
31988 | |
31989 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
31990 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31991 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31993 | else |
e6cc62c6 | 31994 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31995 | LIBS="-lshl_load $LIBS" |
e6cc62c6 VS |
31996 | cat >conftest.$ac_ext <<_ACEOF |
31997 | #line $LINENO "configure" | |
31998 | /* confdefs.h. */ | |
31999 | _ACEOF | |
32000 | cat confdefs.h >>conftest.$ac_ext | |
32001 | cat >>conftest.$ac_ext <<_ACEOF | |
32002 | /* end confdefs.h. */ | |
32003 | ||
8284b0c5 | 32004 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32005 | #ifdef __cplusplus |
32006 | extern "C" | |
32007 | #endif | |
f6bcfd97 | 32008 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32009 | builtin and then its argument prototype would still apply. */ |
32010 | char dld (); | |
32011 | int | |
32012 | main () | |
32013 | { | |
32014 | dld (); | |
32015 | ; | |
32016 | return 0; | |
32017 | } | |
32018 | _ACEOF | |
32019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32021 | (eval $ac_link) 2>&5 | |
32022 | ac_status=$? | |
32023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32024 | (exit $ac_status); } && | |
32025 | { ac_try='test -s conftest$ac_exeext' | |
32026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32027 | (eval $ac_try) 2>&5 | |
32028 | ac_status=$? | |
32029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32030 | (exit $ac_status); }; }; then | |
32031 | ac_cv_lib_shl_load_dld=yes | |
32032 | else | |
32033 | echo "$as_me: failed program was:" >&5 | |
32034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32035 | ||
32036 | ac_cv_lib_shl_load_dld=no | |
32037 | fi | |
32038 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32039 | LIBS=$ac_check_lib_save_LIBS | |
32040 | fi | |
32041 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
32042 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
32043 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 32044 | |
3a922bb4 | 32045 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 32046 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 32047 | |
f6bcfd97 BP |
32048 | fi |
32049 | ||
e6cc62c6 | 32050 | |
10f2d63a VZ |
32051 | fi |
32052 | done | |
32053 | ||
e6cc62c6 | 32054 | |
10f2d63a VZ |
32055 | fi |
32056 | ||
e6cc62c6 | 32057 | |
10f2d63a VZ |
32058 | fi |
32059 | done | |
32060 | ||
5c6fa7d2 | 32061 | |
8284b0c5 | 32062 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
32063 | |
32064 | for ac_func in dlerror | |
f6bcfd97 | 32065 | do |
e6cc62c6 VS |
32066 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32067 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32068 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32069 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32071 | else | |
32072 | cat >conftest.$ac_ext <<_ACEOF | |
32073 | #line $LINENO "configure" | |
32074 | /* confdefs.h. */ | |
32075 | _ACEOF | |
32076 | cat confdefs.h >>conftest.$ac_ext | |
32077 | cat >>conftest.$ac_ext <<_ACEOF | |
32078 | /* end confdefs.h. */ | |
f6bcfd97 | 32079 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32080 | which can conflict with char $ac_func (); below. |
32081 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32082 | <limits.h> exists even on freestanding compilers. */ | |
32083 | #ifdef __STDC__ | |
32084 | # include <limits.h> | |
32085 | #else | |
32086 | # include <assert.h> | |
32087 | #endif | |
f6bcfd97 | 32088 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32089 | #ifdef __cplusplus |
32090 | extern "C" | |
32091 | { | |
32092 | #endif | |
f6bcfd97 | 32093 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32094 | builtin and then its argument prototype would still apply. */ |
32095 | char $ac_func (); | |
f6bcfd97 BP |
32096 | /* The GNU C library defines this for functions which it implements |
32097 | to always fail with ENOSYS. Some functions are actually named | |
32098 | something starting with __ and the normal name is an alias. */ | |
32099 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32100 | choke me | |
32101 | #else | |
e6cc62c6 VS |
32102 | char (*f) () = $ac_func; |
32103 | #endif | |
32104 | #ifdef __cplusplus | |
32105 | } | |
f6bcfd97 BP |
32106 | #endif |
32107 | ||
e6cc62c6 VS |
32108 | int |
32109 | main () | |
32110 | { | |
32111 | return f != $ac_func; | |
32112 | ; | |
32113 | return 0; | |
32114 | } | |
32115 | _ACEOF | |
32116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32118 | (eval $ac_link) 2>&5 | |
32119 | ac_status=$? | |
32120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32121 | (exit $ac_status); } && | |
32122 | { ac_try='test -s conftest$ac_exeext' | |
32123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32124 | (eval $ac_try) 2>&5 | |
32125 | ac_status=$? | |
32126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32127 | (exit $ac_status); }; }; then | |
32128 | eval "$as_ac_var=yes" | |
32129 | else | |
32130 | echo "$as_me: failed program was:" >&5 | |
32131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32132 | ||
32133 | eval "$as_ac_var=no" | |
32134 | fi | |
32135 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32136 | fi | |
32137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32138 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32139 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32140 | cat >>confdefs.h <<_ACEOF | |
32141 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32142 | _ACEOF | |
32143 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 32144 | #define HAVE_DLERROR 1 |
e6cc62c6 | 32145 | _ACEOF |
f6bcfd97 BP |
32146 | |
32147 | else | |
e6cc62c6 VS |
32148 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
32149 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
32150 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
32151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 32152 | else |
e6cc62c6 | 32153 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 32154 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
32155 | cat >conftest.$ac_ext <<_ACEOF |
32156 | #line $LINENO "configure" | |
32157 | /* confdefs.h. */ | |
32158 | _ACEOF | |
32159 | cat confdefs.h >>conftest.$ac_ext | |
32160 | cat >>conftest.$ac_ext <<_ACEOF | |
32161 | /* end confdefs.h. */ | |
32162 | ||
f6bcfd97 | 32163 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32164 | #ifdef __cplusplus |
32165 | extern "C" | |
32166 | #endif | |
f6bcfd97 | 32167 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32168 | builtin and then its argument prototype would still apply. */ |
32169 | char dlerror (); | |
32170 | int | |
32171 | main () | |
32172 | { | |
32173 | dlerror (); | |
32174 | ; | |
32175 | return 0; | |
32176 | } | |
32177 | _ACEOF | |
32178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32180 | (eval $ac_link) 2>&5 | |
32181 | ac_status=$? | |
32182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32183 | (exit $ac_status); } && | |
32184 | { ac_try='test -s conftest$ac_exeext' | |
32185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32186 | (eval $ac_try) 2>&5 | |
32187 | ac_status=$? | |
32188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32189 | (exit $ac_status); }; }; then | |
32190 | ac_cv_lib_dl_dlerror=yes | |
32191 | else | |
32192 | echo "$as_me: failed program was:" >&5 | |
32193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32194 | ||
32195 | ac_cv_lib_dl_dlerror=no | |
32196 | fi | |
32197 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32198 | LIBS=$ac_check_lib_save_LIBS | |
32199 | fi | |
32200 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
32201 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
32202 | if test $ac_cv_lib_dl_dlerror = yes; then | |
32203 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 32204 | #define HAVE_DLERROR 1 |
e6cc62c6 | 32205 | _ACEOF |
f6bcfd97 | 32206 | |
f6bcfd97 BP |
32207 | fi |
32208 | ||
32209 | fi | |
32210 | done | |
32211 | ||
3a922bb4 RL |
32212 | fi |
32213 | fi | |
f6bcfd97 | 32214 | |
3a922bb4 RL |
32215 | if test "$HAVE_DL_FUNCS" = 0; then |
32216 | if test "$HAVE_SHL_FUNCS" = 0; then | |
32217 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
32218 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
32219 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 32220 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
32221 | wxUSE_DYNLIB_CLASS=no |
32222 | else | |
e6cc62c6 VS |
32223 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
32224 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
32225 | fi |
32226 | fi | |
10f2d63a VZ |
32227 | fi |
32228 | fi | |
32229 | fi | |
32230 | ||
0b9ab0bd | 32231 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 32232 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 32233 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 32234 | _ACEOF |
0b9ab0bd | 32235 | |
1948bb32 VS |
32236 | fi |
32237 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 32238 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32239 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 32240 | _ACEOF |
10f2d63a VZ |
32241 | |
32242 | fi | |
32243 | ||
8284b0c5 | 32244 | |
1e6feb95 | 32245 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 32246 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32247 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 32248 | _ACEOF |
1e6feb95 VZ |
32249 | |
32250 | fi | |
32251 | ||
10f2d63a | 32252 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 32253 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32254 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 32255 | _ACEOF |
10f2d63a | 32256 | |
8284b0c5 | 32257 | |
bbc3925a VS |
32258 | if test "$wxUSE_MSW" != 1; then |
32259 | wxUSE_UNICODE_MSLU=no | |
32260 | fi | |
a72a4bfa VS |
32261 | |
32262 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
e6cc62c6 VS |
32263 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
32264 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
32265 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
32266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 32267 | else |
e6cc62c6 | 32268 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 32269 | LIBS="-lunicows $LIBS" |
e6cc62c6 VS |
32270 | cat >conftest.$ac_ext <<_ACEOF |
32271 | #line $LINENO "configure" | |
32272 | /* confdefs.h. */ | |
32273 | _ACEOF | |
32274 | cat confdefs.h >>conftest.$ac_ext | |
32275 | cat >>conftest.$ac_ext <<_ACEOF | |
32276 | /* end confdefs.h. */ | |
a72a4bfa | 32277 | |
8284b0c5 | 32278 | |
e6cc62c6 VS |
32279 | int |
32280 | main () | |
32281 | { | |
32282 | main (); | |
32283 | ; | |
32284 | return 0; | |
32285 | } | |
32286 | _ACEOF | |
32287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32289 | (eval $ac_link) 2>&5 | |
32290 | ac_status=$? | |
32291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32292 | (exit $ac_status); } && | |
32293 | { ac_try='test -s conftest$ac_exeext' | |
32294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32295 | (eval $ac_try) 2>&5 | |
32296 | ac_status=$? | |
32297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32298 | (exit $ac_status); }; }; then | |
32299 | ac_cv_lib_unicows_main=yes | |
32300 | else | |
32301 | echo "$as_me: failed program was:" >&5 | |
32302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32303 | ||
32304 | ac_cv_lib_unicows_main=no | |
32305 | fi | |
32306 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32307 | LIBS=$ac_check_lib_save_LIBS | |
32308 | fi | |
32309 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
32310 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
32311 | if test $ac_cv_lib_unicows_main = yes; then | |
32312 | ||
32313 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 32314 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
32315 | _ACEOF |
32316 | ||
a72a4bfa | 32317 | |
a72a4bfa | 32318 | else |
a72a4bfa | 32319 | |
e6cc62c6 VS |
32320 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
32321 | Applications will only run on Windows NT/2000/XP!" >&5 | |
32322 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
32323 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 32324 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 32325 | |
a72a4bfa VS |
32326 | fi |
32327 | ||
32328 | fi | |
10f2d63a VZ |
32329 | fi |
32330 | ||
10f2d63a | 32331 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 32332 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32333 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 32334 | _ACEOF |
10f2d63a VZ |
32335 | |
32336 | fi | |
32337 | ||
8284b0c5 | 32338 | |
10f2d63a | 32339 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 32340 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32341 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 32342 | _ACEOF |
10f2d63a VZ |
32343 | |
32344 | fi | |
32345 | ||
e6cc62c6 | 32346 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32347 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 32348 | _ACEOF |
10f2d63a | 32349 | |
8284b0c5 | 32350 | |
e6cc62c6 | 32351 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32352 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 32353 | _ACEOF |
10f2d63a | 32354 | |
8284b0c5 MB |
32355 | |
32356 | ||
10f2d63a | 32357 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 32358 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32359 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 32360 | _ACEOF |
10f2d63a VZ |
32361 | |
32362 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
32363 | fi | |
32364 | ||
3879ecda | 32365 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 32366 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32367 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 32368 | _ACEOF |
10f2d63a | 32369 | |
1772d20c | 32370 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
32371 | fi |
32372 | ||
32373 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 32374 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32375 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 32376 | _ACEOF |
10f2d63a VZ |
32377 | |
32378 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
32379 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
32380 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
32381 | fi | |
32382 | fi | |
32383 | ||
32384 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 32385 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32386 | #define wxUSE_HELP 1 |
e6cc62c6 | 32387 | _ACEOF |
10f2d63a VZ |
32388 | |
32389 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 32390 | |
77e13408 | 32391 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 32392 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 32393 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 32394 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 32395 | _ACEOF |
29fd3c0c | 32396 | |
3e44f09d | 32397 | fi |
3379ed37 | 32398 | fi |
031d8228 VS |
32399 | |
32400 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
32401 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 32402 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 32403 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 32404 | _ACEOF |
031d8228 VS |
32405 | |
32406 | else | |
e6cc62c6 VS |
32407 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
32408 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
32409 | wxUSE_WXHTML_HELP=no |
32410 | fi | |
32411 | fi | |
10f2d63a VZ |
32412 | fi |
32413 | ||
32414 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
32415 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32416 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
32417 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 32418 | else |
e6cc62c6 | 32419 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32420 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 32421 | _ACEOF |
10f2d63a VZ |
32422 | |
32423 | fi | |
32424 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
32425 | fi | |
32426 | ||
e6cc62c6 VS |
32427 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
32428 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
32429 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
32430 | { (exit 1); exit 1; }; } | |
32431 | fi | |
32432 | ||
32433 | ||
32434 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
32435 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
32436 | -o "$wxUSE_OLE" = "yes" \ | |
32437 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
32438 | ||
32439 | for ac_header in ole2.h | |
32440 | do | |
32441 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32442 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32443 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32444 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32445 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32447 | fi | |
32448 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32449 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32450 | else | |
32451 | # Is the header compilable? | |
32452 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32453 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32454 | cat >conftest.$ac_ext <<_ACEOF | |
32455 | #line $LINENO "configure" | |
32456 | /* confdefs.h. */ | |
32457 | _ACEOF | |
32458 | cat confdefs.h >>conftest.$ac_ext | |
32459 | cat >>conftest.$ac_ext <<_ACEOF | |
32460 | /* end confdefs.h. */ | |
32461 | $ac_includes_default | |
32462 | #include <$ac_header> | |
32463 | _ACEOF | |
32464 | rm -f conftest.$ac_objext | |
32465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32466 | (eval $ac_compile) 2>&5 | |
32467 | ac_status=$? | |
32468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32469 | (exit $ac_status); } && | |
32470 | { ac_try='test -s conftest.$ac_objext' | |
32471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32472 | (eval $ac_try) 2>&5 | |
32473 | ac_status=$? | |
32474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32475 | (exit $ac_status); }; }; then | |
32476 | ac_header_compiler=yes | |
32477 | else | |
32478 | echo "$as_me: failed program was:" >&5 | |
32479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32480 | ||
32481 | ac_header_compiler=no | |
32482 | fi | |
32483 | rm -f conftest.$ac_objext conftest.$ac_ext | |
32484 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
32485 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32486 | ||
32487 | # Is the header present? | |
32488 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32489 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32490 | cat >conftest.$ac_ext <<_ACEOF | |
32491 | #line $LINENO "configure" | |
32492 | /* confdefs.h. */ | |
32493 | _ACEOF | |
32494 | cat confdefs.h >>conftest.$ac_ext | |
32495 | cat >>conftest.$ac_ext <<_ACEOF | |
32496 | /* end confdefs.h. */ | |
32497 | #include <$ac_header> | |
32498 | _ACEOF | |
32499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32501 | ac_status=$? | |
32502 | grep -v '^ *+' conftest.er1 >conftest.err | |
32503 | rm -f conftest.er1 | |
32504 | cat conftest.err >&5 | |
32505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32506 | (exit $ac_status); } >/dev/null; then | |
32507 | if test -s conftest.err; then | |
32508 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32509 | else | |
32510 | ac_cpp_err= | |
32511 | fi | |
32512 | else | |
32513 | ac_cpp_err=yes | |
32514 | fi | |
32515 | if test -z "$ac_cpp_err"; then | |
32516 | ac_header_preproc=yes | |
32517 | else | |
32518 | echo "$as_me: failed program was:" >&5 | |
32519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32520 | ||
32521 | ac_header_preproc=no | |
32522 | fi | |
32523 | rm -f conftest.err conftest.$ac_ext | |
32524 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32525 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32526 | ||
32527 | # So? What about this header? | |
32528 | case $ac_header_compiler:$ac_header_preproc in | |
32529 | yes:no ) | |
32530 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
32531 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32532 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32533 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32534 | ( | |
32535 | cat <<\_ASBOX | |
32536 | ## ------------------------------------ ## | |
32537 | ## Report this to bug-autoconf@gnu.org. ## | |
32538 | ## ------------------------------------ ## | |
32539 | _ASBOX | |
32540 | ) | | |
32541 | sed "s/^/$as_me: WARNING: /" >&2 | |
32542 | ;; | |
32543 | no:yes ) | |
32544 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
32545 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32546 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
32547 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32548 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32549 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32550 | ( | |
32551 | cat <<\_ASBOX | |
32552 | ## ------------------------------------ ## | |
32553 | ## Report this to bug-autoconf@gnu.org. ## | |
32554 | ## ------------------------------------ ## | |
32555 | _ASBOX | |
32556 | ) | | |
32557 | sed "s/^/$as_me: WARNING: /" >&2 | |
32558 | ;; | |
32559 | esac | |
32560 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32561 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32562 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32564 | else | |
32565 | eval "$as_ac_Header=$ac_header_preproc" | |
32566 | fi | |
32567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32569 | ||
10f2d63a | 32570 | fi |
e6cc62c6 VS |
32571 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32572 | cat >>confdefs.h <<_ACEOF | |
32573 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32574 | _ACEOF | |
10f2d63a | 32575 | |
10f2d63a | 32576 | fi |
e6cc62c6 | 32577 | |
10f2d63a VZ |
32578 | done |
32579 | ||
8284b0c5 | 32580 | |
2b9bdf71 VZ |
32581 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
32582 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
32583 | |
32584 | ||
e6cc62c6 VS |
32585 | ac_ext=cc |
32586 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32587 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32588 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32589 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32590 | ||
32591 | ||
32592 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
32593 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
32594 | cat >conftest.$ac_ext <<_ACEOF | |
32595 | #line $LINENO "configure" | |
32596 | /* confdefs.h. */ | |
32597 | _ACEOF | |
32598 | cat confdefs.h >>conftest.$ac_ext | |
32599 | cat >>conftest.$ac_ext <<_ACEOF | |
32600 | /* end confdefs.h. */ | |
8284b0c5 MB |
32601 | #include <windows.h> |
32602 | #include <ole2.h> | |
e6cc62c6 VS |
32603 | int |
32604 | main () | |
32605 | { | |
8284b0c5 | 32606 | |
e6cc62c6 VS |
32607 | ; |
32608 | return 0; | |
32609 | } | |
32610 | _ACEOF | |
32611 | rm -f conftest.$ac_objext | |
32612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32613 | (eval $ac_compile) 2>&5 | |
32614 | ac_status=$? | |
32615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32616 | (exit $ac_status); } && | |
32617 | { ac_try='test -s conftest.$ac_objext' | |
32618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32619 | (eval $ac_try) 2>&5 | |
32620 | ac_status=$? | |
32621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32622 | (exit $ac_status); }; }; then | |
32623 | echo "$as_me:$LINENO: result: no" >&5 | |
32624 | echo "${ECHO_T}no" >&6 | |
32625 | else | |
32626 | echo "$as_me: failed program was:" >&5 | |
32627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32628 | ||
32629 | echo "$as_me:$LINENO: result: yes" >&5 | |
32630 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
32631 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
32632 | fi | |
e6cc62c6 | 32633 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 32634 | ac_ext=c |
8284b0c5 | 32635 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
32636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
32637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 32639 | |
2b9bdf71 | 32640 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 32641 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
e6cc62c6 | 32642 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 32643 | #define wxUSE_OLE 1 |
e6cc62c6 | 32644 | _ACEOF |
4f11a343 | 32645 | |
8284b0c5 | 32646 | |
2b9bdf71 VZ |
32647 | fi |
32648 | ||
e6cc62c6 | 32649 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32650 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32651 | _ACEOF |
2b9bdf71 VZ |
32652 | |
32653 | else | |
e6cc62c6 VS |
32654 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
32655 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
32656 | |
32657 | wxUSE_CLIPBOARD=no | |
32658 | wxUSE_DRAG_AND_DROP=no | |
32659 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
32660 | wxUSE_OLE=no |
32661 | fi | |
32662 | ||
32663 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 32664 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32665 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32666 | _ACEOF |
3bce6687 JS |
32667 | |
32668 | ||
e6cc62c6 | 32669 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32670 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 32671 | _ACEOF |
3bce6687 JS |
32672 | |
32673 | fi | |
32674 | fi | |
32675 | ||
2b9bdf71 VZ |
32676 | if test "$wxUSE_IPC" = "yes"; then |
32677 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
32678 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
32679 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
32680 | fi |
32681 | ||
e6cc62c6 | 32682 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32683 | #define wxUSE_IPC 1 |
e6cc62c6 | 32684 | _ACEOF |
2b9bdf71 VZ |
32685 | |
32686 | fi | |
32687 | ||
32688 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 32689 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32690 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
32691 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32692 | wxUSE_CLIPBOARD=no |
32693 | fi | |
32694 | ||
32695 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 32696 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32697 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 32698 | _ACEOF |
2b9bdf71 | 32699 | |
8284b0c5 | 32700 | |
e6cc62c6 | 32701 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 32702 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32703 | _ACEOF |
673f4220 | 32704 | |
6c657b52 | 32705 | fi |
2b9bdf71 VZ |
32706 | fi |
32707 | ||
32708 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
32709 | if test "$wxUSE_GTK" = 1; then | |
32710 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
32711 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
32712 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
32713 | wxUSE_DRAG_AND_DROP=no |
32714 | fi | |
32715 | fi | |
32716 | ||
2b9bdf71 | 32717 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32718 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
32719 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
32720 | wxUSE_DRAG_AND_DROP=no |
32721 | fi | |
32722 | ||
f79bd02d | 32723 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
32724 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
32725 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
32726 | wxUSE_DRAG_AND_DROP=no |
32727 | fi | |
32728 | ||
6c657b52 | 32729 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32730 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
32731 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32732 | wxUSE_DRAG_AND_DROP=no |
32733 | fi | |
32734 | ||
10f2d63a | 32735 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 32736 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32737 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 32738 | _ACEOF |
10f2d63a VZ |
32739 | |
32740 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
32741 | fi | |
32742 | ||
32743 | fi | |
32744 | ||
32745 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 32746 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32747 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 32748 | _ACEOF |
10f2d63a VZ |
32749 | |
32750 | fi | |
32751 | ||
8284b0c5 | 32752 | |
1e6feb95 VZ |
32753 | USES_CONTROLS=0 |
32754 | if test "$wxUSE_CONTROLS" = "yes"; then | |
32755 | USES_CONTROLS=1 | |
32756 | fi | |
32757 | ||
10f2d63a | 32758 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 32759 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32760 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 32761 | _ACEOF |
10f2d63a | 32762 | |
1e6feb95 VZ |
32763 | USES_CONTROLS=1 |
32764 | fi | |
32765 | ||
32766 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 32767 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32768 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 32769 | _ACEOF |
1e6feb95 VZ |
32770 | |
32771 | USES_CONTROLS=1 | |
32772 | fi | |
32773 | ||
32774 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 32775 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32776 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 32777 | _ACEOF |
1e6feb95 VZ |
32778 | |
32779 | USES_CONTROLS=1 | |
32780 | fi | |
32781 | ||
32782 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 32783 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32784 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 32785 | _ACEOF |
1e6feb95 VZ |
32786 | |
32787 | USES_CONTROLS=1 | |
32788 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
32789 | fi |
32790 | ||
32791 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 32792 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32793 | #define wxUSE_CARET 1 |
e6cc62c6 | 32794 | _ACEOF |
10f2d63a | 32795 | |
1e6feb95 | 32796 | USES_CONTROLS=1 |
10f2d63a VZ |
32797 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
32798 | fi | |
32799 | ||
32800 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 32801 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32802 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 32803 | _ACEOF |
10f2d63a | 32804 | |
1e6feb95 | 32805 | USES_CONTROLS=1 |
10f2d63a VZ |
32806 | fi |
32807 | ||
32808 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 32809 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32810 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 32811 | _ACEOF |
10f2d63a | 32812 | |
1e6feb95 | 32813 | USES_CONTROLS=1 |
10f2d63a VZ |
32814 | fi |
32815 | ||
32816 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 32817 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32818 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 32819 | _ACEOF |
10f2d63a | 32820 | |
1e6feb95 | 32821 | USES_CONTROLS=1 |
10f2d63a VZ |
32822 | fi |
32823 | ||
32824 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 32825 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32826 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 32827 | _ACEOF |
10f2d63a | 32828 | |
1e6feb95 | 32829 | USES_CONTROLS=1 |
10f2d63a VZ |
32830 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
32831 | fi | |
32832 | ||
da494b40 | 32833 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 32834 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 32835 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 32836 | _ACEOF |
da494b40 MB |
32837 | |
32838 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
32839 | fi | |
32840 | ||
10f2d63a | 32841 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 32842 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32843 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 32844 | _ACEOF |
10f2d63a | 32845 | |
1e6feb95 | 32846 | USES_CONTROLS=1 |
10f2d63a VZ |
32847 | fi |
32848 | ||
d6a55c4b | 32849 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 32850 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 32851 | #define wxUSE_GRID 1 |
e6cc62c6 | 32852 | _ACEOF |
10f2d63a | 32853 | |
1e6feb95 | 32854 | USES_CONTROLS=1 |
d6a55c4b | 32855 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
32856 | fi |
32857 | ||
32858 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32859 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32860 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 32861 | _ACEOF |
10f2d63a VZ |
32862 | |
32863 | fi | |
32864 | ||
32865 | if test "$wxUSE_LISTBOX" = "yes"; then | |
e6cc62c6 | 32866 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32867 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 32868 | _ACEOF |
10f2d63a | 32869 | |
1e6feb95 | 32870 | USES_CONTROLS=1 |
10f2d63a VZ |
32871 | fi |
32872 | ||
32873 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
32874 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32875 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32876 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 32877 | _ACEOF |
10f2d63a | 32878 | |
1e6feb95 | 32879 | USES_CONTROLS=1 |
10f2d63a VZ |
32880 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
32881 | else | |
e6cc62c6 VS |
32882 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
32883 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32884 | fi |
32885 | fi | |
32886 | ||
32887 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 32888 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32889 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 32890 | _ACEOF |
10f2d63a | 32891 | |
1e6feb95 | 32892 | USES_CONTROLS=1 |
10f2d63a VZ |
32893 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
32894 | fi | |
32895 | ||
24176f2c | 32896 | |
10f2d63a | 32897 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 32898 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32899 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 32900 | _ACEOF |
10f2d63a | 32901 | |
1e6feb95 | 32902 | USES_CONTROLS=1 |
10f2d63a VZ |
32903 | fi |
32904 | ||
32905 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 32906 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32907 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 32908 | _ACEOF |
10f2d63a | 32909 | |
1e6feb95 | 32910 | USES_CONTROLS=1 |
10f2d63a VZ |
32911 | fi |
32912 | ||
32913 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 32914 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32915 | #define wxUSE_SASH 1 |
e6cc62c6 | 32916 | _ACEOF |
10f2d63a VZ |
32917 | |
32918 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
32919 | fi | |
32920 | ||
32921 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 32922 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32923 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 32924 | _ACEOF |
10f2d63a | 32925 | |
1e6feb95 | 32926 | USES_CONTROLS=1 |
741a9306 | 32927 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
32928 | fi |
32929 | ||
32930 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 32931 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32932 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 32933 | _ACEOF |
10f2d63a | 32934 | |
1e6feb95 | 32935 | USES_CONTROLS=1 |
10f2d63a VZ |
32936 | fi |
32937 | ||
32938 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 32939 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32940 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 32941 | _ACEOF |
10f2d63a | 32942 | |
1e6feb95 | 32943 | USES_CONTROLS=1 |
10f2d63a VZ |
32944 | fi |
32945 | ||
56cfaa52 | 32946 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 32947 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 32948 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 32949 | _ACEOF |
56cfaa52 | 32950 | |
1e6feb95 | 32951 | USES_CONTROLS=1 |
56cfaa52 RR |
32952 | fi |
32953 | ||
10f2d63a | 32954 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 32955 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32956 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 32957 | _ACEOF |
10f2d63a VZ |
32958 | |
32959 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
32960 | fi | |
32961 | ||
32962 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 32963 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32964 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 32965 | _ACEOF |
10f2d63a | 32966 | |
1e6feb95 | 32967 | USES_CONTROLS=1 |
10f2d63a VZ |
32968 | fi |
32969 | ||
32970 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 32971 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32972 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 32973 | _ACEOF |
10f2d63a | 32974 | |
1e6feb95 VZ |
32975 | USES_CONTROLS=1 |
32976 | fi | |
32977 | ||
32978 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 32979 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32980 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 32981 | _ACEOF |
1e6feb95 VZ |
32982 | |
32983 | USES_CONTROLS=1 | |
10f2d63a VZ |
32984 | fi |
32985 | ||
32986 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 32987 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32988 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 32989 | _ACEOF |
10f2d63a | 32990 | |
89e6bf6d | 32991 | USES_CONTROLS=1 |
10f2d63a VZ |
32992 | fi |
32993 | ||
32994 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 32995 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32996 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 32997 | _ACEOF |
10f2d63a | 32998 | |
1e6feb95 | 32999 | USES_CONTROLS=1 |
698dcdb6 | 33000 | |
2286341c | 33001 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
33002 | fi |
33003 | ||
33004 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 33005 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33006 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 33007 | _ACEOF |
10f2d63a VZ |
33008 | |
33009 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
33010 | fi | |
33011 | ||
1e6feb95 | 33012 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 33013 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33014 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 33015 | _ACEOF |
1e6feb95 VZ |
33016 | |
33017 | USES_CONTROLS=1 | |
33018 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
33019 | fi | |
33020 | ||
1db8dc4a | 33021 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 33022 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
33023 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
33024 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
33025 | wxUSE_TOGGLEBTN=no |
33026 | fi | |
33027 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
33028 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
33029 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
33030 | wxUSE_TOGGLEBTN=no |
33031 | fi | |
33032 | ||
33033 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 33034 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 33035 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 33036 | _ACEOF |
1db8dc4a | 33037 | |
1e6feb95 | 33038 | USES_CONTROLS=1 |
a45d7ab7 | 33039 | fi |
1db8dc4a VZ |
33040 | fi |
33041 | ||
360d6699 | 33042 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 33043 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 33044 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 33045 | _ACEOF |
360d6699 VZ |
33046 | |
33047 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 33048 | USES_CONTROLS=1 |
360d6699 VZ |
33049 | fi |
33050 | ||
10f2d63a | 33051 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 33052 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33053 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 33054 | _ACEOF |
10f2d63a | 33055 | |
1e6feb95 | 33056 | USES_CONTROLS=1 |
698dcdb6 | 33057 | |
360d6699 VZ |
33058 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
33059 | wxUSE_TOOLBAR_NATIVE="yes" | |
33060 | fi | |
33061 | ||
1e6feb95 | 33062 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 33063 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 33064 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 33065 | _ACEOF |
360d6699 | 33066 | |
1e6feb95 VZ |
33067 | USES_CONTROLS=1 |
33068 | fi | |
33069 | ||
33070 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
33071 | fi |
33072 | ||
10f2d63a VZ |
33073 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
33074 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
33075 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
33076 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 33077 | else |
89e6bf6d | 33078 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
33079 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
33080 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 33081 | else |
e6cc62c6 | 33082 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33083 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 33084 | _ACEOF |
10f2d63a VZ |
33085 | |
33086 | fi | |
33087 | fi | |
33088 | fi | |
33089 | ||
33090 | if test "$wxUSE_TREECTRL" = "yes"; then | |
33091 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 33092 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33093 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 33094 | _ACEOF |
10f2d63a | 33095 | |
1e6feb95 | 33096 | USES_CONTROLS=1 |
10f2d63a VZ |
33097 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
33098 | else | |
e6cc62c6 VS |
33099 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
33100 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
33101 | fi |
33102 | fi | |
33103 | ||
9f41d601 | 33104 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 33105 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
33106 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
33107 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 33108 | else |
485cf710 | 33109 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
33110 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5 |
33111 | echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;} | |
485cf710 | 33112 | else |
3c011993 | 33113 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
33114 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
33115 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 33116 | else |
e6cc62c6 | 33117 | cat >>confdefs.h <<\_ACEOF |
9f41d601 | 33118 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 33119 | _ACEOF |
9f41d601 | 33120 | |
8284b0c5 | 33121 | |
3c011993 VZ |
33122 | USES_CONTROLS=1 |
33123 | fi | |
485cf710 | 33124 | fi |
6abe4b65 | 33125 | fi |
9f41d601 RR |
33126 | fi |
33127 | ||
dd964dcc | 33128 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 33129 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
33130 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
33131 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 33132 | else |
e6cc62c6 | 33133 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 33134 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 33135 | _ACEOF |
dd964dcc | 33136 | |
3c011993 | 33137 | fi |
dd964dcc VZ |
33138 | fi |
33139 | ||
1e6feb95 | 33140 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 33141 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33142 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 33143 | _ACEOF |
10f2d63a | 33144 | |
10f2d63a VZ |
33145 | fi |
33146 | ||
8284b0c5 | 33147 | |
1e6feb95 | 33148 | |
24fd6d87 | 33149 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 33150 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 33151 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 33152 | _ACEOF |
24fd6d87 VZ |
33153 | |
33154 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
33155 | fi | |
33156 | ||
7bb2947d | 33157 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
e6cc62c6 | 33158 | cat >>confdefs.h <<\_ACEOF |
7bb2947d | 33159 | #define wxUSE_ACCESSIBILITY 1 |
e6cc62c6 | 33160 | _ACEOF |
7bb2947d MB |
33161 | |
33162 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
33163 | fi | |
33164 | ||
1e6feb95 | 33165 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 33166 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33167 | #define wxUSE_MENUS 1 |
e6cc62c6 | 33168 | _ACEOF |
10f2d63a | 33169 | |
1e6feb95 | 33170 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
33171 | fi |
33172 | ||
1e6feb95 | 33173 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 33174 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33175 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 33176 | _ACEOF |
10f2d63a | 33177 | |
10f2d63a VZ |
33178 | fi |
33179 | ||
1e6feb95 | 33180 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 33181 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33182 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 33183 | _ACEOF |
10f2d63a | 33184 | |
10f2d63a VZ |
33185 | fi |
33186 | ||
3e44f09d | 33187 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 33188 | cat >>confdefs.h <<\_ACEOF |
3e44f09d | 33189 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 33190 | _ACEOF |
3e44f09d | 33191 | |
131f235d VS |
33192 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
33193 | "$TOOLKIT" = "MOTIF"; then | |
321d2b14 VZ |
33194 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
33195 | fi | |
33196 | ||
3e44f09d VZ |
33197 | fi |
33198 | ||
10f2d63a | 33199 | if test "$wxUSE_MINIFRAME" = "yes"; then |
e6cc62c6 | 33200 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33201 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 33202 | _ACEOF |
10f2d63a VZ |
33203 | |
33204 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
33205 | fi | |
33206 | ||
4d264332 | 33207 | USE_HTML=0 |
10f2d63a | 33208 | if test "$wxUSE_HTML" = "yes"; then |
e6cc62c6 | 33209 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33210 | #define wxUSE_HTML 1 |
e6cc62c6 | 33211 | _ACEOF |
10f2d63a | 33212 | |
4d264332 | 33213 | USE_HTML=1 |
c74dc163 | 33214 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" |
10f2d63a VZ |
33215 | fi |
33216 | ||
33217 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
e6cc62c6 | 33218 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 33219 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 33220 | _ACEOF |
703e0a69 | 33221 | |
698dcdb6 VZ |
33222 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
33223 | fi | |
33224 | ||
edae8572 | 33225 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 33226 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 33227 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 33228 | _ACEOF |
edae8572 VZ |
33229 | |
33230 | fi | |
33231 | ||
698dcdb6 | 33232 | if test "$wxUSE_IMAGE" = "yes" ; then |
e6cc62c6 | 33233 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33234 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 33235 | _ACEOF |
698dcdb6 VZ |
33236 | |
33237 | fi | |
33238 | ||
33239 | if test "$wxUSE_GIF" = "yes" ; then | |
e6cc62c6 | 33240 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33241 | #define wxUSE_GIF 1 |
e6cc62c6 | 33242 | _ACEOF |
698dcdb6 VZ |
33243 | |
33244 | fi | |
33245 | ||
33246 | if test "$wxUSE_PCX" = "yes" ; then | |
e6cc62c6 | 33247 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33248 | #define wxUSE_PCX 1 |
e6cc62c6 | 33249 | _ACEOF |
698dcdb6 VZ |
33250 | |
33251 | fi | |
33252 | ||
4b6b4dfc | 33253 | if test "$wxUSE_IFF" = "yes" ; then |
e6cc62c6 | 33254 | cat >>confdefs.h <<\_ACEOF |
4b6b4dfc | 33255 | #define wxUSE_IFF 1 |
e6cc62c6 | 33256 | _ACEOF |
4b6b4dfc RR |
33257 | |
33258 | fi | |
33259 | ||
698dcdb6 | 33260 | if test "$wxUSE_PNM" = "yes" ; then |
e6cc62c6 | 33261 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33262 | #define wxUSE_PNM 1 |
e6cc62c6 | 33263 | _ACEOF |
698dcdb6 VZ |
33264 | |
33265 | fi | |
33266 | ||
33267 | if test "$wxUSE_XPM" = "yes" ; then | |
e6cc62c6 | 33268 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33269 | #define wxUSE_XPM 1 |
e6cc62c6 | 33270 | _ACEOF |
698dcdb6 VZ |
33271 | |
33272 | fi | |
33273 | ||
658974ae | 33274 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
e6cc62c6 | 33275 | cat >>confdefs.h <<\_ACEOF |
658974ae | 33276 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 33277 | _ACEOF |
658974ae VS |
33278 | |
33279 | fi | |
33280 | ||
a72a4bfa VS |
33281 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
33282 | LIBS=" -lunicows $LIBS" | |
33283 | fi | |
33284 | ||
8284b0c5 | 33285 | |
1e6feb95 | 33286 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 33287 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33288 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 33289 | _ACEOF |
1e6feb95 VZ |
33290 | |
33291 | fi | |
33292 | ||
33293 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 33294 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33295 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 33296 | _ACEOF |
1e6feb95 VZ |
33297 | |
33298 | fi | |
33299 | ||
33300 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 33301 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33302 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 33303 | _ACEOF |
1e6feb95 VZ |
33304 | |
33305 | fi | |
33306 | ||
8db37e06 | 33307 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 33308 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 33309 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 33310 | _ACEOF |
8db37e06 VZ |
33311 | |
33312 | fi | |
33313 | ||
1e6feb95 | 33314 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 33315 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33316 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 33317 | _ACEOF |
1e6feb95 VZ |
33318 | |
33319 | fi | |
33320 | ||
33321 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 33322 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
33323 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
33324 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 33325 | else |
e6cc62c6 | 33326 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33327 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 33328 | _ACEOF |
1e6feb95 | 33329 | |
1e6feb95 VZ |
33330 | fi |
33331 | fi | |
33332 | ||
33333 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 33334 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33335 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 33336 | _ACEOF |
1e6feb95 VZ |
33337 | |
33338 | fi | |
33339 | ||
33340 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 33341 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33342 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 33343 | _ACEOF |
1e6feb95 VZ |
33344 | |
33345 | fi | |
33346 | ||
33347 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
33348 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33349 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
33350 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 33351 | else |
e6cc62c6 | 33352 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33353 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 33354 | _ACEOF |
1e6feb95 VZ |
33355 | |
33356 | fi | |
33357 | fi | |
33358 | ||
cbca9943 | 33359 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 33360 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 33361 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 33362 | _ACEOF |
cbca9943 VZ |
33363 | |
33364 | fi | |
33365 | ||
1e6feb95 VZ |
33366 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
33367 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33368 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
33369 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 33370 | else |
e6cc62c6 | 33371 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33372 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 33373 | _ACEOF |
1e6feb95 | 33374 | |
7b4a847f RR |
33375 | fi |
33376 | fi | |
579d8138 | 33377 | |
8284b0c5 | 33378 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 33379 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33380 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 33381 | _ACEOF |
8284b0c5 MB |
33382 | |
33383 | fi | |
33384 | ||
33385 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 33386 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33387 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 33388 | _ACEOF |
8284b0c5 MB |
33389 | |
33390 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
33391 | fi | |
33392 | ||
33393 | ||
33394 | if test "$cross_compiling" = "yes"; then | |
33395 | OSINFO="\"$host\"" | |
33396 | else | |
33397 | OSINFO=`uname -s -r -m` | |
33398 | OSINFO="\"$OSINFO\"" | |
33399 | fi | |
33400 | ||
e6cc62c6 | 33401 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33402 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 33403 | _ACEOF |
8284b0c5 MB |
33404 | |
33405 | ||
33406 | ||
33407 | if test "x$prefix" != "xNONE"; then | |
33408 | wxPREFIX=$prefix | |
33409 | else | |
33410 | wxPREFIX=$ac_default_prefix | |
33411 | fi | |
33412 | ||
e6cc62c6 | 33413 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33414 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 33415 | _ACEOF |
8284b0c5 MB |
33416 | |
33417 | ||
e6cc62c6 | 33418 | top_builddir_wxconfig=`pwd` |
52c71b80 | 33419 | |
8284b0c5 MB |
33420 | |
33421 | ||
edd891e2 VS |
33422 | CORE_BASE_LIBS="net base" |
33423 | CORE_GUI_LIBS="adv core" | |
33424 | ||
33425 | if test "$wxUSE_XML" = "yes" ; then | |
33426 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
33427 | fi | |
45293562 VS |
33428 | if test "$wxUSE_ODBC" != "no" ; then |
33429 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
33430 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
33431 | fi |
33432 | if test "$wxUSE_HTML" = "yes" ; then | |
33433 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
33434 | fi | |
33435 | ||
33436 | ||
33437 | ||
33438 | ||
33439 | ||
33440 | ||
33441 | ||
8284b0c5 MB |
33442 | |
33443 | if test "$wxUSE_MAC" = 1 ; then | |
33444 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
33445 | fi | |
ac0c4cc3 DE |
33446 | if test "$wxUSE_COCOA" = 1 ; then |
33447 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
33448 | fi | |
8284b0c5 MB |
33449 | |
33450 | ||
2b5f62a0 VZ |
33451 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
33452 | ||
33453 | have_cos=0 | |
33454 | have_floor=0 | |
e6cc62c6 | 33455 | |
2b5f62a0 VZ |
33456 | for ac_func in cos |
33457 | do | |
e6cc62c6 VS |
33458 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33459 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33460 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33461 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33463 | else | |
33464 | cat >conftest.$ac_ext <<_ACEOF | |
33465 | #line $LINENO "configure" | |
33466 | /* confdefs.h. */ | |
33467 | _ACEOF | |
33468 | cat confdefs.h >>conftest.$ac_ext | |
33469 | cat >>conftest.$ac_ext <<_ACEOF | |
33470 | /* end confdefs.h. */ | |
2b5f62a0 | 33471 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33472 | which can conflict with char $ac_func (); below. |
33473 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33474 | <limits.h> exists even on freestanding compilers. */ | |
33475 | #ifdef __STDC__ | |
33476 | # include <limits.h> | |
33477 | #else | |
33478 | # include <assert.h> | |
33479 | #endif | |
2b5f62a0 | 33480 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33481 | #ifdef __cplusplus |
33482 | extern "C" | |
33483 | { | |
33484 | #endif | |
2b5f62a0 | 33485 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33486 | builtin and then its argument prototype would still apply. */ |
33487 | char $ac_func (); | |
2b5f62a0 VZ |
33488 | /* The GNU C library defines this for functions which it implements |
33489 | to always fail with ENOSYS. Some functions are actually named | |
33490 | something starting with __ and the normal name is an alias. */ | |
33491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33492 | choke me | |
33493 | #else | |
e6cc62c6 VS |
33494 | char (*f) () = $ac_func; |
33495 | #endif | |
33496 | #ifdef __cplusplus | |
33497 | } | |
2b5f62a0 VZ |
33498 | #endif |
33499 | ||
e6cc62c6 VS |
33500 | int |
33501 | main () | |
33502 | { | |
33503 | return f != $ac_func; | |
33504 | ; | |
33505 | return 0; | |
33506 | } | |
33507 | _ACEOF | |
33508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33510 | (eval $ac_link) 2>&5 | |
33511 | ac_status=$? | |
33512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33513 | (exit $ac_status); } && | |
33514 | { ac_try='test -s conftest$ac_exeext' | |
33515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33516 | (eval $ac_try) 2>&5 | |
33517 | ac_status=$? | |
33518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33519 | (exit $ac_status); }; }; then | |
33520 | eval "$as_ac_var=yes" | |
33521 | else | |
33522 | echo "$as_me: failed program was:" >&5 | |
33523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33524 | ||
33525 | eval "$as_ac_var=no" | |
33526 | fi | |
33527 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33528 | fi | |
33529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33530 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33531 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33532 | cat >>confdefs.h <<_ACEOF | |
33533 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33534 | _ACEOF | |
2b5f62a0 | 33535 | have_cos=1 |
2b5f62a0 VZ |
33536 | fi |
33537 | done | |
33538 | ||
e6cc62c6 | 33539 | |
2b5f62a0 VZ |
33540 | for ac_func in floor |
33541 | do | |
e6cc62c6 VS |
33542 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33543 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33544 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33545 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33547 | else | |
33548 | cat >conftest.$ac_ext <<_ACEOF | |
33549 | #line $LINENO "configure" | |
33550 | /* confdefs.h. */ | |
33551 | _ACEOF | |
33552 | cat confdefs.h >>conftest.$ac_ext | |
33553 | cat >>conftest.$ac_ext <<_ACEOF | |
33554 | /* end confdefs.h. */ | |
2b5f62a0 | 33555 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33556 | which can conflict with char $ac_func (); below. |
33557 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33558 | <limits.h> exists even on freestanding compilers. */ | |
33559 | #ifdef __STDC__ | |
33560 | # include <limits.h> | |
33561 | #else | |
33562 | # include <assert.h> | |
33563 | #endif | |
2b5f62a0 | 33564 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33565 | #ifdef __cplusplus |
33566 | extern "C" | |
33567 | { | |
33568 | #endif | |
2b5f62a0 | 33569 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33570 | builtin and then its argument prototype would still apply. */ |
33571 | char $ac_func (); | |
2b5f62a0 VZ |
33572 | /* The GNU C library defines this for functions which it implements |
33573 | to always fail with ENOSYS. Some functions are actually named | |
33574 | something starting with __ and the normal name is an alias. */ | |
33575 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33576 | choke me | |
33577 | #else | |
e6cc62c6 VS |
33578 | char (*f) () = $ac_func; |
33579 | #endif | |
33580 | #ifdef __cplusplus | |
33581 | } | |
2b5f62a0 VZ |
33582 | #endif |
33583 | ||
e6cc62c6 VS |
33584 | int |
33585 | main () | |
33586 | { | |
33587 | return f != $ac_func; | |
33588 | ; | |
33589 | return 0; | |
33590 | } | |
33591 | _ACEOF | |
33592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33594 | (eval $ac_link) 2>&5 | |
33595 | ac_status=$? | |
33596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33597 | (exit $ac_status); } && | |
33598 | { ac_try='test -s conftest$ac_exeext' | |
33599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33600 | (eval $ac_try) 2>&5 | |
33601 | ac_status=$? | |
33602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33603 | (exit $ac_status); }; }; then | |
33604 | eval "$as_ac_var=yes" | |
33605 | else | |
33606 | echo "$as_me: failed program was:" >&5 | |
33607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33608 | ||
33609 | eval "$as_ac_var=no" | |
33610 | fi | |
33611 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33612 | fi | |
33613 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33614 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33615 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33616 | cat >>confdefs.h <<_ACEOF | |
33617 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33618 | _ACEOF | |
2b5f62a0 | 33619 | have_floor=1 |
2b5f62a0 VZ |
33620 | fi |
33621 | done | |
33622 | ||
e6cc62c6 VS |
33623 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
33624 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33625 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
33626 | echo "$as_me:$LINENO: result: yes" >&5 |
33627 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33628 | else |
e6cc62c6 VS |
33629 | echo "$as_me:$LINENO: result: no" >&5 |
33630 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33631 | LIBS="$LIBS -lm" |
33632 | # use different functions to avoid configure caching | |
33633 | have_sin=0 | |
33634 | have_ceil=0 | |
e6cc62c6 VS |
33635 | |
33636 | for ac_func in sin | |
2b5f62a0 | 33637 | do |
e6cc62c6 VS |
33638 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33639 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33640 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33641 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33643 | else | |
33644 | cat >conftest.$ac_ext <<_ACEOF | |
33645 | #line $LINENO "configure" | |
33646 | /* confdefs.h. */ | |
33647 | _ACEOF | |
33648 | cat confdefs.h >>conftest.$ac_ext | |
33649 | cat >>conftest.$ac_ext <<_ACEOF | |
33650 | /* end confdefs.h. */ | |
2b5f62a0 | 33651 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33652 | which can conflict with char $ac_func (); below. |
33653 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33654 | <limits.h> exists even on freestanding compilers. */ | |
33655 | #ifdef __STDC__ | |
33656 | # include <limits.h> | |
33657 | #else | |
33658 | # include <assert.h> | |
33659 | #endif | |
2b5f62a0 | 33660 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33661 | #ifdef __cplusplus |
33662 | extern "C" | |
33663 | { | |
33664 | #endif | |
2b5f62a0 | 33665 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33666 | builtin and then its argument prototype would still apply. */ |
33667 | char $ac_func (); | |
2b5f62a0 VZ |
33668 | /* The GNU C library defines this for functions which it implements |
33669 | to always fail with ENOSYS. Some functions are actually named | |
33670 | something starting with __ and the normal name is an alias. */ | |
33671 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33672 | choke me | |
33673 | #else | |
e6cc62c6 VS |
33674 | char (*f) () = $ac_func; |
33675 | #endif | |
33676 | #ifdef __cplusplus | |
33677 | } | |
2b5f62a0 VZ |
33678 | #endif |
33679 | ||
e6cc62c6 VS |
33680 | int |
33681 | main () | |
33682 | { | |
33683 | return f != $ac_func; | |
33684 | ; | |
33685 | return 0; | |
33686 | } | |
33687 | _ACEOF | |
33688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33690 | (eval $ac_link) 2>&5 | |
33691 | ac_status=$? | |
33692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33693 | (exit $ac_status); } && | |
33694 | { ac_try='test -s conftest$ac_exeext' | |
33695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33696 | (eval $ac_try) 2>&5 | |
33697 | ac_status=$? | |
33698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33699 | (exit $ac_status); }; }; then | |
33700 | eval "$as_ac_var=yes" | |
33701 | else | |
33702 | echo "$as_me: failed program was:" >&5 | |
33703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33704 | ||
33705 | eval "$as_ac_var=no" | |
33706 | fi | |
33707 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33708 | fi | |
33709 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33710 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33711 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33712 | cat >>confdefs.h <<_ACEOF | |
33713 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33714 | _ACEOF | |
2b5f62a0 | 33715 | have_sin=1 |
2b5f62a0 VZ |
33716 | fi |
33717 | done | |
33718 | ||
e6cc62c6 VS |
33719 | |
33720 | for ac_func in ceil | |
2b5f62a0 | 33721 | do |
e6cc62c6 VS |
33722 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33723 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33724 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33725 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33727 | else | |
33728 | cat >conftest.$ac_ext <<_ACEOF | |
33729 | #line $LINENO "configure" | |
33730 | /* confdefs.h. */ | |
33731 | _ACEOF | |
33732 | cat confdefs.h >>conftest.$ac_ext | |
33733 | cat >>conftest.$ac_ext <<_ACEOF | |
33734 | /* end confdefs.h. */ | |
2b5f62a0 | 33735 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33736 | which can conflict with char $ac_func (); below. |
33737 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33738 | <limits.h> exists even on freestanding compilers. */ | |
33739 | #ifdef __STDC__ | |
33740 | # include <limits.h> | |
33741 | #else | |
33742 | # include <assert.h> | |
33743 | #endif | |
2b5f62a0 | 33744 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33745 | #ifdef __cplusplus |
33746 | extern "C" | |
33747 | { | |
33748 | #endif | |
2b5f62a0 | 33749 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33750 | builtin and then its argument prototype would still apply. */ |
33751 | char $ac_func (); | |
2b5f62a0 VZ |
33752 | /* The GNU C library defines this for functions which it implements |
33753 | to always fail with ENOSYS. Some functions are actually named | |
33754 | something starting with __ and the normal name is an alias. */ | |
33755 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33756 | choke me | |
33757 | #else | |
e6cc62c6 VS |
33758 | char (*f) () = $ac_func; |
33759 | #endif | |
33760 | #ifdef __cplusplus | |
33761 | } | |
2b5f62a0 VZ |
33762 | #endif |
33763 | ||
e6cc62c6 VS |
33764 | int |
33765 | main () | |
33766 | { | |
33767 | return f != $ac_func; | |
33768 | ; | |
33769 | return 0; | |
33770 | } | |
33771 | _ACEOF | |
33772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33774 | (eval $ac_link) 2>&5 | |
33775 | ac_status=$? | |
33776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33777 | (exit $ac_status); } && | |
33778 | { ac_try='test -s conftest$ac_exeext' | |
33779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33780 | (eval $ac_try) 2>&5 | |
33781 | ac_status=$? | |
33782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33783 | (exit $ac_status); }; }; then | |
33784 | eval "$as_ac_var=yes" | |
33785 | else | |
33786 | echo "$as_me: failed program was:" >&5 | |
33787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33788 | ||
33789 | eval "$as_ac_var=no" | |
33790 | fi | |
33791 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33792 | fi | |
33793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33794 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33795 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33796 | cat >>confdefs.h <<_ACEOF | |
33797 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33798 | _ACEOF | |
2b5f62a0 | 33799 | have_ceil=1 |
2b5f62a0 VZ |
33800 | fi |
33801 | done | |
33802 | ||
e6cc62c6 VS |
33803 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
33804 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33805 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
33806 | echo "$as_me:$LINENO: result: yes" >&5 |
33807 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33808 | else |
e6cc62c6 VS |
33809 | echo "$as_me:$LINENO: result: no" >&5 |
33810 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33811 | # not sure we should warn the user, crash, etc. |
33812 | fi | |
33813 | fi | |
8284b0c5 MB |
33814 | |
33815 | if test "$wxUSE_GUI" = "yes"; then | |
33816 | ||
e6cc62c6 | 33817 | |
8284b0c5 MB |
33818 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
33819 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 33820 | minimal propsize rotate shaped widgets render" |
b625909c VS |
33821 | |
33822 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
33823 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
33824 | fi | |
8284b0c5 MB |
33825 | else |
33826 | SAMPLES_SUBDIRS="console" | |
33827 | fi | |
33828 | ||
33829 | ||
e6cc62c6 | 33830 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
8284b0c5 MB |
33831 | -I\${top_srcdir}/include \ |
33832 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
33833 | $TOOLKIT_INCLUDE" | |
33834 | ||
fddeb06b VS |
33835 | if test "$GXX" = yes ; then |
33836 | CXXWARNINGS="-Wall" | |
33837 | fi | |
33838 | ||
33839 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
33840 | ||
95318f7d | 33841 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
33842 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
33843 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
33844 | |
33845 | ||
fddeb06b | 33846 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 33847 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 33848 | EXTRALIBS_XML="$EXPAT_LINK" |
bb41dcbe | 33849 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
33850 | if test "$wxUSE_GUI" = "yes"; then |
33851 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
33852 | fi | |
34b08d2c VS |
33853 | if test "$wxUSE_OPENGL" = "yes"; then |
33854 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
33855 | fi | |
fddeb06b VS |
33856 | |
33857 | LDFLAGS="$LDFLAGS $PROFILE" | |
33858 | ||
8284b0c5 MB |
33859 | if test "$wxUSE_GTK" = 1; then |
33860 | WXCONFIG_INCLUDE= | |
33861 | else | |
33862 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
33863 | fi | |
33864 | ||
67c13b6c VS |
33865 | WXCONFIG_EXTRALIBS="$LIBS" |
33866 | ||
33867 | if test "$wxUSE_REGEX" = "builtin" ; then | |
33868 | wxconfig_3rdparty="$wxconfig_3rdparty regex" | |
33869 | fi | |
33870 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
33871 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
33872 | fi | |
33873 | if test "$wxUSE_ODBC" = "builtin" ; then | |
33874 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
33875 | fi | |
33876 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
33877 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
33878 | fi | |
33879 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
33880 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
33881 | fi | |
33882 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
33883 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
33884 | fi | |
33885 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
33886 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
33887 | fi | |
bb41dcbe VS |
33888 | if test "$wxUSE_ODBC" = "builtin" ; then |
33889 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
33890 | fi | |
67c13b6c VS |
33891 | |
33892 | for i in $wxconfig_3rdparty ; do | |
33893 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
33894 | done | |
33895 | ||
33896 | ||
fe0895cf VS |
33897 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
33898 | WXUNIV=1 | |
33899 | else | |
33900 | WXUNIV=0 | |
8284b0c5 MB |
33901 | fi |
33902 | ||
8284b0c5 MB |
33903 | |
33904 | ||
33905 | ||
33906 | ||
33907 | ||
33908 | ||
33909 | ||
672abd7a | 33910 | |
9747f85d VS |
33911 | if test $wxUSE_MONOLITHIC = "yes" ; then |
33912 | MONOLITHIC=1 | |
33913 | else | |
33914 | MONOLITHIC=0 | |
33915 | fi | |
8284b0c5 | 33916 | |
bb41dcbe VS |
33917 | if test $wxUSE_ODBC != "no" ; then |
33918 | USE_ODBC=1 | |
33919 | else | |
33920 | USE_ODBC=0 | |
33921 | fi | |
33922 | ||
029b47ad VS |
33923 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
33924 | OFFICIAL_BUILD=1 | |
33925 | else | |
33926 | OFFICIAL_BUILD=0 | |
33927 | fi | |
33928 | ||
8ee2dd05 VS |
33929 | |
33930 | ||
33931 | ||
8284b0c5 MB |
33932 | |
33933 | ||
33934 | ||
33935 | ||
33936 | ||
33937 | ||
c74dc163 | 33938 | |
34b08d2c | 33939 | |
672abd7a | 33940 | |
cf615ebb | 33941 | |
6c67131a VS |
33942 | |
33943 | ||
bb41dcbe | 33944 | |
fe0895cf | 33945 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]` |
8284b0c5 MB |
33946 | |
33947 | ||
33948 | ||
33949 | ||
33950 | ||
ea66c762 | 33951 | |
fe0895cf | 33952 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
33953 | |
33954 | if test -n "$ac_tool_prefix"; then | |
33955 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
33956 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
33957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33959 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
33960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 33961 | else |
fe0895cf VS |
33962 | if test -n "$RANLIB"; then |
33963 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 33964 | else |
e6cc62c6 VS |
33965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33966 | for as_dir in $PATH | |
33967 | do | |
33968 | IFS=$as_save_IFS | |
33969 | test -z "$as_dir" && as_dir=. | |
33970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33972 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
33973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33974 | break 2 | |
33975 | fi | |
33976 | done | |
33977 | done | |
33978 | ||
10f2d63a | 33979 | fi |
10f2d63a | 33980 | fi |
e6cc62c6 | 33981 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 33982 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
33983 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
33984 | echo "${ECHO_T}$RANLIB" >&6 | |
33985 | else | |
33986 | echo "$as_me:$LINENO: result: no" >&5 | |
33987 | echo "${ECHO_T}no" >&6 | |
33988 | fi | |
33989 | ||
33990 | fi | |
33991 | if test -z "$ac_cv_prog_RANLIB"; then | |
33992 | ac_ct_RANLIB=$RANLIB | |
33993 | # Extract the first word of "ranlib", so it can be a program name with args. | |
33994 | set dummy ranlib; ac_word=$2 | |
33995 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33996 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33997 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
33998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33999 | else | |
34000 | if test -n "$ac_ct_RANLIB"; then | |
34001 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
34002 | else | |
34003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34004 | for as_dir in $PATH | |
34005 | do | |
34006 | IFS=$as_save_IFS | |
34007 | test -z "$as_dir" && as_dir=. | |
34008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34009 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34010 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
34011 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34012 | break 2 | |
34013 | fi | |
34014 | done | |
34015 | done | |
34016 | ||
34017 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
34018 | fi | |
34019 | fi | |
34020 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
34021 | if test -n "$ac_ct_RANLIB"; then | |
34022 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
34023 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 34024 | else |
e6cc62c6 VS |
34025 | echo "$as_me:$LINENO: result: no" >&5 |
34026 | echo "${ECHO_T}no" >&6 | |
34027 | fi | |
34028 | ||
34029 | RANLIB=$ac_ct_RANLIB | |
34030 | else | |
34031 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 34032 | fi |
665bbe97 | 34033 | |
fe0895cf VS |
34034 | # Find a good install program. We prefer a C program (faster), |
34035 | # so one script is as good as another. But avoid the broken or | |
34036 | # incompatible versions: | |
34037 | # SysV /etc/install, /usr/sbin/install | |
34038 | # SunOS /usr/etc/install | |
34039 | # IRIX /sbin/install | |
34040 | # AIX /bin/install | |
e6cc62c6 | 34041 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
34042 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
34043 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
34044 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
34045 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
34046 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
34047 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 34048 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
34049 | if test "${ac_cv_path_install+set}" = set; then |
34050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34051 | else | |
34052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34053 | for as_dir in $PATH | |
34054 | do | |
34055 | IFS=$as_save_IFS | |
34056 | test -z "$as_dir" && as_dir=. | |
34057 | # Account for people who put trailing slashes in PATH elements. | |
34058 | case $as_dir/ in | |
34059 | ./ | .// | /cC/* | \ | |
34060 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
34061 | /usr/ucb/* ) ;; | |
34062 | *) | |
34063 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
34064 | # Don't use installbsd from OSF since it installs stuff as root | |
34065 | # by default. | |
34066 | for ac_prog in ginstall scoinst install; do | |
34067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34068 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
34069 | if test $ac_prog = install && | |
34070 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
34071 | # AIX install. It has an incompatible calling convention. | |
34072 | : | |
34073 | elif test $ac_prog = install && | |
34074 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
34075 | # program-specific install script used by HP pwplus--don't use. | |
34076 | : | |
34077 | else | |
34078 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
34079 | break 3 | |
34080 | fi | |
34081 | fi | |
fe0895cf | 34082 | done |
e6cc62c6 VS |
34083 | done |
34084 | ;; | |
34085 | esac | |
34086 | done | |
34087 | ||
fe0895cf VS |
34088 | |
34089 | fi | |
34090 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 34091 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
34092 | else |
34093 | # As a last resort, use the slow shell script. We don't cache a | |
34094 | # path for INSTALL within a source directory, because that will | |
34095 | # break other packages using the cache if that directory is | |
34096 | # removed, or if the path is relative. | |
e6cc62c6 | 34097 | INSTALL=$ac_install_sh |
fe0895cf VS |
34098 | fi |
34099 | fi | |
e6cc62c6 VS |
34100 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
34101 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
34102 | |
34103 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
34104 | # It thinks the first close brace ends the variable substitution. | |
34105 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
34106 | ||
e6cc62c6 | 34107 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
34108 | |
34109 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
34110 | ||
e6cc62c6 VS |
34111 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
34112 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
34113 | LN_S=$as_ln_s | |
34114 | if test "$LN_S" = "ln -s"; then | |
34115 | echo "$as_me:$LINENO: result: yes" >&5 | |
34116 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 34117 | else |
e6cc62c6 VS |
34118 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
34119 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
34120 | fi |
34121 | ||
34122 | ||
e6cc62c6 VS |
34123 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
34124 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
34125 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
34126 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
34127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 34128 | else |
e6cc62c6 | 34129 | cat >conftest.make <<\_ACEOF |
fe0895cf | 34130 | all: |
e6cc62c6 VS |
34131 | @echo 'ac_maketemp="$(MAKE)"' |
34132 | _ACEOF | |
fe0895cf | 34133 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 34134 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
34135 | if test -n "$ac_maketemp"; then |
34136 | eval ac_cv_prog_make_${ac_make}_set=yes | |
34137 | else | |
34138 | eval ac_cv_prog_make_${ac_make}_set=no | |
34139 | fi | |
e6cc62c6 | 34140 | rm -f conftest.make |
fe0895cf VS |
34141 | fi |
34142 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
34143 | echo "$as_me:$LINENO: result: yes" >&5 |
34144 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
34145 | SET_MAKE= |
34146 | else | |
e6cc62c6 VS |
34147 | echo "$as_me:$LINENO: result: no" >&5 |
34148 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34149 | SET_MAKE="MAKE=${MAKE-make}" |
34150 | fi | |
34151 | ||
e6cc62c6 VS |
34152 | |
34153 | ||
fe0895cf VS |
34154 | if test "$build" != "$host" ; then |
34155 | AR=$host_alias-ar | |
34156 | STRIP=$host_alias-strip | |
34157 | else | |
34158 | # Extract the first word of "ar", so it can be a program name with args. | |
34159 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
34160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34162 | if test "${ac_cv_prog_AR+set}" = set; then | |
34163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34164 | else |
34165 | if test -n "$AR"; then | |
34166 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
34167 | else | |
e6cc62c6 VS |
34168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34169 | for as_dir in $PATH | |
34170 | do | |
34171 | IFS=$as_save_IFS | |
34172 | test -z "$as_dir" && as_dir=. | |
34173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34175 | ac_cv_prog_AR="ar" | |
34176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34177 | break 2 | |
34178 | fi | |
34179 | done | |
34180 | done | |
34181 | ||
fe0895cf VS |
34182 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
34183 | fi | |
34184 | fi | |
e6cc62c6 | 34185 | AR=$ac_cv_prog_AR |
fe0895cf | 34186 | if test -n "$AR"; then |
e6cc62c6 VS |
34187 | echo "$as_me:$LINENO: result: $AR" >&5 |
34188 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 34189 | else |
e6cc62c6 VS |
34190 | echo "$as_me:$LINENO: result: no" >&5 |
34191 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34192 | fi |
34193 | ||
34194 | # Extract the first word of "strip", so it can be a program name with args. | |
34195 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
34196 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34198 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
34199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34200 | else |
34201 | if test -n "$STRIP"; then | |
34202 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
34203 | else | |
e6cc62c6 VS |
34204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34205 | for as_dir in $PATH | |
34206 | do | |
34207 | IFS=$as_save_IFS | |
34208 | test -z "$as_dir" && as_dir=. | |
34209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34210 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34211 | ac_cv_prog_STRIP="strip" | |
34212 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34213 | break 2 | |
34214 | fi | |
34215 | done | |
34216 | done | |
34217 | ||
fe0895cf VS |
34218 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
34219 | fi | |
34220 | fi | |
e6cc62c6 | 34221 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 34222 | if test -n "$STRIP"; then |
e6cc62c6 VS |
34223 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
34224 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 34225 | else |
e6cc62c6 VS |
34226 | echo "$as_me:$LINENO: result: no" >&5 |
34227 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34228 | fi |
34229 | ||
34230 | fi | |
34231 | ||
34232 | case ${host} in | |
34233 | *-hp-hpux* ) | |
34234 | INSTALL_DIR="mkdir" | |
34235 | ;; | |
34236 | *) INSTALL_DIR="$INSTALL -d" | |
34237 | ;; | |
34238 | esac | |
e6cc62c6 | 34239 | |
fe0895cf | 34240 | |
6b9d41a5 VS |
34241 | LDFLAGS_GUI= |
34242 | case ${host} in | |
34243 | *-*-cygwin* | *-*-mingw32* ) | |
34244 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
34245 | esac | |
34246 | ||
34247 | ||
fe0895cf | 34248 | fi |
e6cc62c6 VS |
34249 | |
34250 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
34251 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 34252 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 34253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 34254 | else |
e6cc62c6 | 34255 | |
fe0895cf VS |
34256 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
34257 | egrep -s GNU > /dev/null); then | |
34258 | bakefile_cv_prog_makeisgnu="yes" | |
34259 | else | |
34260 | bakefile_cv_prog_makeisgnu="no" | |
34261 | fi | |
fe0895cf | 34262 | |
e6cc62c6 | 34263 | fi |
49b0a3aa VS |
34264 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
34265 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
34266 | |
34267 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
34268 | IF_GNU_MAKE="" | |
34269 | else | |
34270 | IF_GNU_MAKE="#" | |
34271 | fi | |
fe0895cf | 34272 | |
e6cc62c6 VS |
34273 | |
34274 | ||
fe0895cf VS |
34275 | PLATFORM_UNIX=0 |
34276 | PLATFORM_WIN32=0 | |
34277 | PLATFORM_MSDOS=0 | |
34278 | PLATFORM_MAC=0 | |
34279 | PLATFORM_MACOSX=0 | |
e6cc62c6 | 34280 | |
fe0895cf VS |
34281 | case "${host}" in |
34282 | *-*-cygwin* | *-*-mingw32* ) | |
34283 | PLATFORM_WIN32=1 | |
34284 | ;; | |
34285 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
34286 | PLATFORM_MSDOS=1 | |
34287 | ;; | |
34288 | powerpc-*-darwin* ) | |
34289 | PLATFORM_MAC=1 | |
34290 | PLATFORM_MACOSX=1 | |
34291 | ;; | |
34292 | * ) | |
34293 | PLATFORM_UNIX=1 | |
34294 | ;; | |
34295 | esac | |
34296 | ||
fe0895cf | 34297 | |
e6cc62c6 VS |
34298 | |
34299 | ||
34300 | ||
34301 | ||
34302 | ||
34303 | ||
fe0895cf | 34304 | SO_SUFFIX="so" |
131f235d | 34305 | SO_SUFFIX_MODULE="so" |
fe0895cf VS |
34306 | EXEEXT="" |
34307 | DLLPREFIX=lib | |
131f235d | 34308 | DLLPREFIX_MODULE= |
e6cc62c6 | 34309 | |
fe0895cf VS |
34310 | case "${host}" in |
34311 | *-hp-hpux* ) | |
34312 | SO_SUFFIX="sl" | |
131f235d | 34313 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
34314 | ;; |
34315 | *-*-aix* ) | |
34316 | SO_SUFFIX="a" | |
131f235d | 34317 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
34318 | ;; |
34319 | *-*-cygwin* | *-*-mingw32* ) | |
34320 | SO_SUFFIX="dll" | |
131f235d | 34321 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
34322 | EXEEXT=".exe" |
34323 | DLLPREFIX="" | |
34324 | ;; | |
34325 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
34326 | EXEEXT=".exe" | |
34327 | DLLPREFIX="" | |
34328 | ;; | |
34329 | powerpc-*-darwin* ) | |
34330 | SO_SUFFIX="dylib" | |
131f235d | 34331 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
34332 | ;; |
34333 | esac | |
34334 | ||
fe0895cf | 34335 | |
e6cc62c6 VS |
34336 | |
34337 | ||
34338 | ||
34339 | ||
131f235d VS |
34340 | |
34341 | ||
fe0895cf VS |
34342 | SHARED_LD_CC="\$(CC) -shared -o" |
34343 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
34344 | ||
34345 | if test "x$GCC" = "xyes"; then | |
34346 | PIC_FLAG="-fPIC" | |
34347 | fi | |
34348 | ||
34349 | case "${host}" in | |
34350 | *-hp-hpux* ) | |
34351 | if test "x$GCC" = "xyes"; then | |
34352 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
34353 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
34354 | else | |
34355 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
34356 | ||
34357 | SHARED_LD_CC="${CC} -b -o" | |
34358 | SHARED_LD_CXX="${CXX} -b -o" | |
34359 | PIC_FLAG="+Z" | |
34360 | fi | |
34361 | ;; | |
34362 | ||
34363 | *-*-linux* ) | |
34364 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
34365 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
34366 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
34367 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
34368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 34369 | else |
fe0895cf | 34370 | |
e6cc62c6 VS |
34371 | cat >conftest.$ac_ext <<_ACEOF |
34372 | #line $LINENO "configure" | |
34373 | /* confdefs.h. */ | |
34374 | _ACEOF | |
34375 | cat confdefs.h >>conftest.$ac_ext | |
34376 | cat >>conftest.$ac_ext <<_ACEOF | |
34377 | /* end confdefs.h. */ | |
34378 | ||
34379 | int | |
34380 | main () | |
34381 | { | |
fe0895cf VS |
34382 | |
34383 | #ifndef __INTEL_COMPILER | |
34384 | #error Not icc | |
34385 | #endif | |
e6cc62c6 VS |
34386 | |
34387 | ; | |
34388 | return 0; | |
34389 | } | |
34390 | _ACEOF | |
34391 | rm -f conftest.$ac_objext | |
34392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34393 | (eval $ac_compile) 2>&5 | |
34394 | ac_status=$? | |
34395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34396 | (exit $ac_status); } && | |
34397 | { ac_try='test -s conftest.$ac_objext' | |
34398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34399 | (eval $ac_try) 2>&5 | |
34400 | ac_status=$? | |
34401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34402 | (exit $ac_status); }; }; then | |
fe0895cf VS |
34403 | bakefile_cv_prog_icc=yes |
34404 | else | |
e6cc62c6 VS |
34405 | echo "$as_me: failed program was:" >&5 |
34406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34407 | ||
34408 | bakefile_cv_prog_icc=no | |
34409 | ||
fe0895cf | 34410 | fi |
e6cc62c6 | 34411 | rm -f conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 34412 | |
e6cc62c6 VS |
34413 | fi |
34414 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
34415 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
34416 | if test "$bakefile_cv_prog_icc" = "yes"; then |
34417 | PIC_FLAG="-KPIC" | |
34418 | fi | |
34419 | fi | |
34420 | ;; | |
34421 | ||
34422 | *-*-solaris2* ) | |
34423 | if test "x$GCC" != xyes ; then | |
34424 | SHARED_LD_CC="${CC} -G -o" | |
34425 | SHARED_LD_CXX="${CXX} -G -o" | |
34426 | PIC_FLAG="-KPIC" | |
34427 | fi | |
34428 | ;; | |
34429 | ||
34430 | *-*-darwin* ) | |
34431 | CFLAGS="$CFLAGS -fno-common" | |
34432 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
34433 | |
34434 | ||
fe0895cf VS |
34435 | cat <<EOF >shared-ld-sh |
34436 | #!/bin/sh | |
34437 | #----------------------------------------------------------------------------- | |
34438 | #-- Name: distrib/mac/shared-ld-sh | |
34439 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
34440 | #-- Author: Gilles Depeyrot | |
34441 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
34442 | #-- Licence: any use permitted | |
34443 | #----------------------------------------------------------------------------- | |
34444 | ||
34445 | verbose=0 | |
34446 | args="" | |
34447 | objects="" | |
131f235d | 34448 | linking_flag="-dynamiclib" |
fe0895cf VS |
34449 | |
34450 | while test \${#} -gt 0; do | |
34451 | case \${1} in | |
34452 | ||
34453 | -v) | |
34454 | verbose=1 | |
34455 | ;; | |
34456 | ||
34457 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
34458 | # collect these options and values | |
34459 | args="\${args} \${1} \${2}" | |
34460 | shift | |
34461 | ;; | |
34462 | ||
34463 | -l*|-L*|-flat_namespace) | |
34464 | # collect these options | |
34465 | args="\${args} \${1}" | |
34466 | ;; | |
34467 | ||
131f235d VS |
34468 | -dynamiclib|-bundle) |
34469 | linking_flag="\${1}" | |
fe0895cf VS |
34470 | ;; |
34471 | ||
34472 | -*) | |
34473 | echo "shared-ld: unhandled option '\${1}'" | |
34474 | exit 1 | |
34475 | ;; | |
34476 | ||
4d264332 | 34477 | *.o | *.a | *.dylib) |
fe0895cf VS |
34478 | # collect object files |
34479 | objects="\${objects} \${1}" | |
34480 | ;; | |
34481 | ||
34482 | *) | |
34483 | echo "shared-ld: unhandled argument '\${1}'" | |
34484 | exit 1 | |
34485 | ;; | |
34486 | ||
34487 | esac | |
34488 | shift | |
34489 | done | |
34490 | ||
34491 | # | |
34492 | # Link one module containing all the others | |
34493 | # | |
34494 | if test \${verbose} = 1; then | |
34495 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
34496 | fi | |
34497 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
34498 | status=\$? | |
34499 | if test \${status} != 0; then | |
34500 | exit \${status} | |
34501 | fi | |
34502 | ||
34503 | # | |
34504 | # Link the shared library from the single module created | |
34505 | # | |
34506 | if test \${verbose} = 1; then | |
131f235d | 34507 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 34508 | fi |
131f235d | 34509 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
34510 | status=\$? |
34511 | if test \${status} != 0; then | |
34512 | exit \${status} | |
34513 | fi | |
34514 | ||
34515 | # | |
34516 | # Remove intermediate module | |
34517 | # | |
34518 | rm -f master.\$\$.o | |
34519 | ||
34520 | exit 0 | |
34521 | EOF | |
34522 | chmod +x shared-ld-sh | |
34523 | ||
131f235d VS |
34524 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o" |
34525 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o" | |
fe0895cf | 34526 | SHARED_LD_CXX="$SHARED_LD_CC" |
131f235d | 34527 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" |
fe0895cf VS |
34528 | PIC_FLAG="-dynamic -fPIC" |
34529 | ;; | |
34530 | ||
34531 | *-*-aix* ) | |
34532 | if test "x$GCC" != "xyes"; then | |
34533 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
34534 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
34535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34537 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
34538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34539 | else |
34540 | if test -n "$AIX_CXX_LD"; then | |
34541 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
34542 | else | |
e6cc62c6 VS |
34543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34544 | for as_dir in $PATH | |
34545 | do | |
34546 | IFS=$as_save_IFS | |
34547 | test -z "$as_dir" && as_dir=. | |
34548 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34550 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
34551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34552 | break 2 | |
34553 | fi | |
34554 | done | |
34555 | done | |
34556 | ||
fe0895cf VS |
34557 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
34558 | fi | |
34559 | fi | |
e6cc62c6 | 34560 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 34561 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
34562 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
34563 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 34564 | else |
e6cc62c6 VS |
34565 | echo "$as_me:$LINENO: result: no" >&5 |
34566 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34567 | fi |
34568 | ||
34569 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
34570 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
34571 | fi | |
34572 | ;; | |
34573 | ||
34574 | *-*-beos* ) | |
34575 | SHARED_LD_CC="${LD} -shared -o" | |
34576 | SHARED_LD_CXX="${LD} -shared -o" | |
34577 | ;; | |
34578 | ||
34579 | *-*-irix* ) | |
34580 | if test "x$GCC" != "xyes"; then | |
34581 | PIC_FLAG="-KPIC" | |
34582 | fi | |
34583 | ;; | |
e6cc62c6 | 34584 | |
fe0895cf VS |
34585 | *-*-cygwin* | *-*-mingw32* ) |
34586 | PIC_FLAG="" | |
34587 | ;; | |
e6cc62c6 | 34588 | |
fe0895cf VS |
34589 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
34590 | *-*-sunos4* | \ | |
34591 | *-*-osf* | \ | |
34592 | *-*-dgux5* | \ | |
34593 | *-*-sysv5* ) | |
34594 | ;; | |
34595 | ||
34596 | *) | |
e6cc62c6 VS |
34597 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
34598 | echo "$as_me: error: unknown system type $host." >&2;} | |
34599 | { (exit 1); exit 1; }; } | |
fe0895cf VS |
34600 | esac |
34601 | ||
131f235d VS |
34602 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
34603 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
34604 | fi | |
34605 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 34606 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
34607 | fi |
34608 | ||
34609 | ||
34610 | ||
fe0895cf | 34611 | |
e6cc62c6 VS |
34612 | |
34613 | ||
34614 | ||
34615 | ||
fe0895cf VS |
34616 | USE_SOVERSION=0 |
34617 | USE_SOVERLINUX=0 | |
34618 | USE_SOVERSOLARIS=0 | |
34619 | USE_SOSYMLINKS=0 | |
34620 | USE_MACVERSION=0 | |
34621 | SONAME_FLAG= | |
34622 | ||
34623 | case "${host}" in | |
34624 | *-*-linux* ) | |
34625 | SONAME_FLAG="-Wl,-soname," | |
34626 | USE_SOVERSION=1 | |
34627 | USE_SOVERLINUX=1 | |
34628 | USE_SOSYMLINKS=1 | |
34629 | ;; | |
34630 | ||
34631 | *-*-solaris2* ) | |
34632 | SONAME_FLAG="-h " | |
34633 | USE_SOVERSION=1 | |
34634 | USE_SOVERSOLARIS=1 | |
34635 | USE_SOSYMLINKS=1 | |
34636 | ;; | |
34637 | ||
34638 | *-*-darwin* ) | |
34639 | USE_MACVERSION=1 | |
34640 | USE_SOVERSION=1 | |
34641 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 34642 | ;; |
fe0895cf VS |
34643 | esac |
34644 | ||
fe0895cf | 34645 | |
e6cc62c6 VS |
34646 | |
34647 | ||
34648 | ||
34649 | ||
34650 | ||
34651 | ||
34652 | ||
49b0a3aa VS |
34653 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
34654 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
34655 | DEPS_TRACKING=0 | |
34656 | ||
fe0895cf | 34657 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
34658 | DEPSMODE=gcc |
34659 | DEPS_TRACKING=1 | |
3e5c3c83 VS |
34660 | case "${host}" in |
34661 | powerpc-*-darwin* ) | |
34662 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
34663 | ;; | |
34664 | * ) | |
34665 | DEPSFLAG_GCC="-MMD" | |
34666 | ;; | |
34667 | esac | |
49b0a3aa VS |
34668 | echo "$as_me:$LINENO: result: gcc" >&5 |
34669 | echo "${ECHO_T}gcc" >&6 | |
34670 | else | |
34671 | echo "$as_me:$LINENO: result: none" >&5 | |
34672 | echo "${ECHO_T}none" >&6 | |
34673 | fi | |
34674 | ||
34675 | if test $DEPS_TRACKING = 1 ; then | |
34676 | cat <<EOF >bk-deps | |
34677 | #!/bin/sh | |
34678 | ||
34679 | # This script is part of Bakefile (http://bakefile.sf.net) autoconf script. | |
34680 | # It is used to track C/C++ files dependencies in portable way. | |
34681 | # | |
34682 | # Permission is given to use this file in any way. | |
34683 | ||
34684 | DEPSMODE=$DEPSMODE | |
34685 | DEPSDIR=.deps | |
3e5c3c83 | 34686 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
34687 | |
34688 | mkdir -p \$DEPSDIR | |
34689 | ||
34690 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 34691 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
34692 | status=\${?} |
34693 | if test \${status} != 0 ; then | |
34694 | exit \${status} | |
34695 | fi | |
34696 | # move created file to the location we want it in: | |
34697 | while test \${#} -gt 0; do | |
34698 | case "\${1}" in | |
34699 | -o ) | |
34700 | shift | |
34701 | objfile=\${1} | |
34702 | ;; | |
34703 | -* ) | |
34704 | ;; | |
34705 | * ) | |
34706 | srcfile=\${1} | |
34707 | ;; | |
34708 | esac | |
34709 | shift | |
34710 | done | |
34711 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
34712 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
34713 | if test -f \$depfile ; then |
34714 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34715 | rm -f \$depfile | |
34716 | else | |
34717 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
34718 | if test -f \$depfile ; then | |
4c8b7f4b | 34719 | sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
34720 | rm -f \$depfile |
34721 | fi | |
34722 | fi | |
49b0a3aa VS |
34723 | exit 0 |
34724 | else | |
34725 | \${*} | |
34726 | exit \${?} | |
34727 | fi | |
34728 | EOF | |
34729 | chmod +x bk-deps | |
fe0895cf | 34730 | fi |
fe0895cf | 34731 | |
e6cc62c6 VS |
34732 | |
34733 | ||
34734 | ||
fe0895cf VS |
34735 | RESCOMP= |
34736 | SETFILE= | |
34737 | ||
e6cc62c6 | 34738 | case ${host} in |
fe0895cf VS |
34739 | *-*-cygwin* | *-*-mingw32* ) |
34740 | if test "$build" != "$host" ; then | |
34741 | RESCOMP=$host_alias-windres | |
34742 | else | |
34743 | # Extract the first word of "windres", so it can be a program name with args. | |
34744 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
34745 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34747 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34749 | else |
34750 | if test -n "$RESCOMP"; then | |
34751 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34752 | else | |
e6cc62c6 VS |
34753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34754 | for as_dir in $PATH | |
34755 | do | |
34756 | IFS=$as_save_IFS | |
34757 | test -z "$as_dir" && as_dir=. | |
34758 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34759 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34760 | ac_cv_prog_RESCOMP="windres" | |
34761 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34762 | break 2 | |
34763 | fi | |
34764 | done | |
34765 | done | |
34766 | ||
fe0895cf VS |
34767 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
34768 | fi | |
34769 | fi | |
e6cc62c6 | 34770 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34771 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34772 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34773 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34774 | else |
e6cc62c6 VS |
34775 | echo "$as_me:$LINENO: result: no" >&5 |
34776 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34777 | fi |
34778 | ||
34779 | fi | |
34780 | ;; | |
e6cc62c6 | 34781 | |
fe0895cf VS |
34782 | *-*-darwin* ) |
34783 | # Extract the first word of "Rez", so it can be a program name with args. | |
34784 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
34785 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34786 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34787 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34789 | else |
34790 | if test -n "$RESCOMP"; then | |
34791 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34792 | else | |
e6cc62c6 VS |
34793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34794 | for as_dir in $PATH | |
34795 | do | |
34796 | IFS=$as_save_IFS | |
34797 | test -z "$as_dir" && as_dir=. | |
34798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34799 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34800 | ac_cv_prog_RESCOMP="Rez" | |
34801 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34802 | break 2 | |
34803 | fi | |
34804 | done | |
34805 | done | |
34806 | ||
fe0895cf VS |
34807 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
34808 | fi | |
34809 | fi | |
e6cc62c6 | 34810 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34811 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34812 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34813 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34814 | else |
e6cc62c6 VS |
34815 | echo "$as_me:$LINENO: result: no" >&5 |
34816 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34817 | fi |
34818 | ||
34819 | # Extract the first word of "SetFile", so it can be a program name with args. | |
34820 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
34821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34823 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
34824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34825 | else |
34826 | if test -n "$SETFILE"; then | |
34827 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
34828 | else | |
e6cc62c6 VS |
34829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34830 | for as_dir in $PATH | |
34831 | do | |
34832 | IFS=$as_save_IFS | |
34833 | test -z "$as_dir" && as_dir=. | |
34834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34835 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34836 | ac_cv_prog_SETFILE="SetFile" | |
34837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34838 | break 2 | |
34839 | fi | |
34840 | done | |
34841 | done | |
34842 | ||
fe0895cf VS |
34843 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
34844 | fi | |
34845 | fi | |
e6cc62c6 | 34846 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 34847 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
34848 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
34849 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 34850 | else |
e6cc62c6 VS |
34851 | echo "$as_me:$LINENO: result: no" >&5 |
34852 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34853 | fi |
34854 | ||
34855 | ;; | |
34856 | esac | |
34857 | ||
fe0895cf VS |
34858 | |
34859 | ||
e6cc62c6 VS |
34860 | |
34861 | ||
34862 | ||
34863 | ||
d78c94f2 | 34864 | COND_BUILD_DEBUG="#" |
6f628073 | 34865 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 34866 | COND_BUILD_DEBUG="" |
6f628073 VS |
34867 | fi |
34868 | ||
6c67131a VS |
34869 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
34870 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
34871 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
34872 | fi | |
34873 | ||
34874 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
34875 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
34876 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
34877 | fi | |
34878 | ||
d78c94f2 | 34879 | COND_BUILD_RELEASE="#" |
6f628073 | 34880 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 34881 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
34882 | fi |
34883 | ||
6c67131a VS |
34884 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
34885 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
34886 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
34887 | fi | |
34888 | ||
34889 | COND_DEBUG_FLAG_1="#" | |
34890 | if test "x$DEBUG_FLAG" = "x1" ; then | |
34891 | COND_DEBUG_FLAG_1="" | |
34892 | fi | |
34893 | ||
34894 | COND_DEBUG_INFO_0="#" | |
34895 | if test "x$DEBUG_INFO" = "x0" ; then | |
34896 | COND_DEBUG_INFO_0="" | |
34897 | fi | |
34898 | ||
34899 | COND_DEBUG_INFO_1="#" | |
34900 | if test "x$DEBUG_INFO" = "x1" ; then | |
34901 | COND_DEBUG_INFO_1="" | |
34902 | fi | |
34903 | ||
f95cd8fa VS |
34904 | COND_DEPS_TRACKING_0="#" |
34905 | if test "x$DEPS_TRACKING" = "x0" ; then | |
34906 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
34907 | fi |
34908 | ||
8ee2dd05 VS |
34909 | COND_DEPS_TRACKING_1="#" |
34910 | if test "x$DEPS_TRACKING" = "x1" ; then | |
34911 | COND_DEPS_TRACKING_1="" | |
34912 | fi | |
34913 | ||
6f628073 VS |
34914 | COND_MONOLITHIC_0="#" |
34915 | if test "x$MONOLITHIC" = "x0" ; then | |
34916 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
34917 | fi |
34918 | ||
6f628073 VS |
34919 | COND_MONOLITHIC_0_SHARED_0="#" |
34920 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
34921 | COND_MONOLITHIC_0_SHARED_0="" | |
34922 | fi | |
34923 | ||
34924 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
34925 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
34926 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 34927 | fi |
e6cc62c6 | 34928 | |
250700e4 RD |
34929 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
34930 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
34931 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
34932 | fi | |
34933 | ||
8ee2dd05 VS |
34934 | COND_MONOLITHIC_0_SHARED_1="#" |
34935 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
34936 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 34937 | fi |
e6cc62c6 | 34938 | |
6f628073 VS |
34939 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
34940 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
34941 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
34942 | fi | |
34943 | ||
250700e4 RD |
34944 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
34945 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
34946 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
34947 | fi | |
34948 | ||
3af038c0 VS |
34949 | COND_MONOLITHIC_1="#" |
34950 | if test "x$MONOLITHIC" = "x1" ; then | |
34951 | COND_MONOLITHIC_1="" | |
34952 | fi | |
34953 | ||
6f628073 VS |
34954 | COND_MONOLITHIC_1_SHARED_0="#" |
34955 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
34956 | COND_MONOLITHIC_1_SHARED_0="" | |
34957 | fi | |
34958 | ||
34959 | COND_MONOLITHIC_1_SHARED_1="#" | |
34960 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
34961 | COND_MONOLITHIC_1_SHARED_1="" | |
34962 | fi | |
34963 | ||
3af038c0 VS |
34964 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
34965 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34966 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
34967 | fi | |
34968 | ||
34969 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
34970 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34971 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
34972 | fi | |
34973 | ||
6f628073 VS |
34974 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
34975 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
34976 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
34977 | fi | |
34978 | ||
3af038c0 VS |
34979 | COND_PLATFORM_MACOSX_1="#" |
34980 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
34981 | COND_PLATFORM_MACOSX_1="" | |
34982 | fi | |
34983 | ||
250700e4 RD |
34984 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
34985 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
34986 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
34987 | fi | |
34988 | ||
34989 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
34990 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
34991 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
34992 | fi | |
34993 | ||
34994 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
34995 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
34996 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
34997 | fi | |
34998 | ||
8ee2dd05 VS |
34999 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
35000 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
35001 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
35002 | fi | |
35003 | ||
3af038c0 VS |
35004 | COND_PLATFORM_UNIX_1="#" |
35005 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
35006 | COND_PLATFORM_UNIX_1="" | |
35007 | fi | |
35008 | ||
35009 | COND_PLATFORM_WIN32_0="#" | |
35010 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
35011 | COND_PLATFORM_WIN32_0="" | |
35012 | fi | |
35013 | ||
35014 | COND_PLATFORM_WIN32_1="#" | |
35015 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
35016 | COND_PLATFORM_WIN32_1="" | |
35017 | fi | |
35018 | ||
250700e4 RD |
35019 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
35020 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
35021 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
35022 | fi | |
35023 | ||
35024 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
35025 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
35026 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
35027 | fi | |
35028 | ||
6f628073 VS |
35029 | COND_TOOLKIT_COCOA="#" |
35030 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
35031 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
35032 | fi |
35033 | ||
6f628073 VS |
35034 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
35035 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35036 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35037 | fi |
35038 | ||
6f628073 VS |
35039 | COND_TOOLKIT_GTK="#" |
35040 | if test "x$TOOLKIT" = "xGTK" ; then | |
35041 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
35042 | fi |
35043 | ||
6f628073 VS |
35044 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
35045 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
35046 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
35047 | fi |
35048 | ||
6f628073 VS |
35049 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
35050 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35051 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35052 | fi |
35053 | ||
6f628073 VS |
35054 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="#" |
35055 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
35056 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="" | |
8ee2dd05 VS |
35057 | fi |
35058 | ||
3af038c0 VS |
35059 | COND_TOOLKIT_MAC="#" |
35060 | if test "x$TOOLKIT" = "xMAC" ; then | |
35061 | COND_TOOLKIT_MAC="" | |
35062 | fi | |
35063 | ||
6f628073 VS |
35064 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
35065 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35066 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35067 | fi |
35068 | ||
6f628073 VS |
35069 | COND_TOOLKIT_MGL="#" |
35070 | if test "x$TOOLKIT" = "xMGL" ; then | |
35071 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
35072 | fi |
35073 | ||
6f628073 VS |
35074 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
35075 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
35076 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
35077 | fi |
35078 | ||
6f628073 VS |
35079 | COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="#" |
35080 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
35081 | COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="" | |
8ee2dd05 VS |
35082 | fi |
35083 | ||
6f628073 VS |
35084 | COND_TOOLKIT_MOTIF="#" |
35085 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
35086 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
35087 | fi |
35088 | ||
6f628073 VS |
35089 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
35090 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
35091 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 35092 | fi |
e6cc62c6 | 35093 | |
6f628073 VS |
35094 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
35095 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35096 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35097 | fi |
35098 | ||
6f628073 VS |
35099 | COND_TOOLKIT_MSW="#" |
35100 | if test "x$TOOLKIT" = "xMSW" ; then | |
35101 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
35102 | fi |
35103 | ||
6f628073 VS |
35104 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
35105 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
35106 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 35107 | fi |
e6cc62c6 | 35108 | |
6f628073 VS |
35109 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
35110 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35111 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35112 | fi |
e6cc62c6 | 35113 | |
6f628073 VS |
35114 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="#" |
35115 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
35116 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="" | |
f95cd8fa VS |
35117 | fi |
35118 | ||
6f628073 VS |
35119 | COND_TOOLKIT_OS2="#" |
35120 | if test "x$TOOLKIT" = "xOS2" ; then | |
35121 | COND_TOOLKIT_OS2="" | |
9747f85d VS |
35122 | fi |
35123 | ||
6f628073 VS |
35124 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#" |
35125 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35126 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="" | |
f95cd8fa VS |
35127 | fi |
35128 | ||
6f628073 VS |
35129 | COND_TOOLKIT_X11="#" |
35130 | if test "x$TOOLKIT" = "xX11" ; then | |
35131 | COND_TOOLKIT_X11="" | |
9747f85d VS |
35132 | fi |
35133 | ||
6f628073 VS |
35134 | COND_TOOLKIT_X11_USE_GUI_1="#" |
35135 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
35136 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
35137 | fi |
35138 | ||
8ee2dd05 VS |
35139 | COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="#" |
35140 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
35141 | COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="" | |
f95cd8fa VS |
35142 | fi |
35143 | ||
3af038c0 VS |
35144 | COND_UNICODE_1="#" |
35145 | if test "x$UNICODE" = "x1" ; then | |
35146 | COND_UNICODE_1="" | |
35147 | fi | |
35148 | ||
35149 | COND_USE_GUI_0="#" | |
35150 | if test "x$USE_GUI" = "x0" ; then | |
35151 | COND_USE_GUI_0="" | |
35152 | fi | |
35153 | ||
35154 | COND_USE_GUI_1="#" | |
35155 | if test "x$USE_GUI" = "x1" ; then | |
35156 | COND_USE_GUI_1="" | |
35157 | fi | |
35158 | ||
e6cc62c6 | 35159 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
35160 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
35161 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35162 | fi |
e6cc62c6 VS |
35163 | |
35164 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
35165 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
35166 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
35167 | fi |
35168 | ||
66a96744 VS |
35169 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
35170 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35171 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
35172 | fi | |
35173 | ||
35174 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
35175 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35176 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
35177 | fi | |
35178 | ||
35179 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
35180 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35181 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
35182 | fi | |
35183 | ||
6f628073 VS |
35184 | COND_USE_SOSYMLINKS_1="#" |
35185 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
35186 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
35187 | fi |
35188 | ||
6f628073 VS |
35189 | COND_USE_SOVERLINUX_1="#" |
35190 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
35191 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
35192 | fi |
35193 | ||
6f628073 VS |
35194 | COND_USE_SOVERSION_0="#" |
35195 | if test "x$USE_SOVERSION" = "x0" ; then | |
35196 | COND_USE_SOVERSION_0="" | |
fddeb06b | 35197 | fi |
fe0895cf | 35198 | |
6f628073 VS |
35199 | COND_USE_SOVERSOLARIS_1="#" |
35200 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
35201 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 35202 | fi |
fe0895cf | 35203 | |
3af038c0 VS |
35204 | COND_WXUNIV_1="#" |
35205 | if test "x$WXUNIV" = "x1" ; then | |
35206 | COND_WXUNIV_1="" | |
35207 | fi | |
35208 | ||
66a96744 VS |
35209 | COND_WXUSE_EXPAT_BUILTIN="#" |
35210 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
35211 | COND_WXUSE_EXPAT_BUILTIN="" | |
35212 | fi | |
35213 | ||
02980527 VS |
35214 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
35215 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35216 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
35217 | fi | |
35218 | ||
35219 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
35220 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35221 | COND_WXUSE_LIBPNG_BUILTIN="" | |
35222 | fi | |
35223 | ||
35224 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
35225 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35226 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
35227 | fi | |
35228 | ||
35229 | COND_WXUSE_ODBC_BUILTIN="#" | |
35230 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
35231 | COND_WXUSE_ODBC_BUILTIN="" | |
35232 | fi | |
35233 | ||
35234 | COND_WXUSE_REGEX_BUILTIN="#" | |
35235 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
35236 | COND_WXUSE_REGEX_BUILTIN="" | |
35237 | fi | |
35238 | ||
35239 | COND_WXUSE_ZLIB_BUILTIN="#" | |
35240 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
35241 | COND_WXUSE_ZLIB_BUILTIN="" | |
35242 | fi | |
35243 | ||
1772d20c VZ |
35244 | COND_PLATFORM_MAC_1="#" |
35245 | if test "x$PLATFORM_MAC" = "x1" ; then | |
35246 | COND_PLATFORM_MAC_1="" | |
35247 | fi | |
35248 | ||
35249 | COND_SHARED_1="#" | |
35250 | if test "x$SHARED" = "x1" ; then | |
35251 | COND_SHARED_1="" | |
35252 | fi | |
35253 | ||
35254 | COND_SHARED_0="#" | |
35255 | if test "x$SHARED" = "x0" ; then | |
35256 | COND_SHARED_0="" | |
35257 | fi | |
35258 | ||
131f235d VS |
35259 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
35260 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
35261 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
35262 | fi | |
35263 | ||
35264 | COND_TOOLKIT_OS2_USE_GUI_1="#" | |
35265 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then | |
35266 | COND_TOOLKIT_OS2_USE_GUI_1="" | |
35267 | fi | |
35268 | ||
bb41dcbe VS |
35269 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
35270 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
35271 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
35272 | fi | |
35273 | ||
35274 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
35275 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
35276 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
35277 | fi | |
35278 | ||
1dd02ac0 VS |
35279 | COND_PLATFORM_UNIX_0="#" |
35280 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
35281 | COND_PLATFORM_UNIX_0="" | |
35282 | fi | |
35283 | ||
fe0895cf | 35284 | |
fe0895cf | 35285 | |
fe0895cf | 35286 | |
fe0895cf VS |
35287 | |
35288 | ||
fddeb06b | 35289 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
35290 | |
35291 | ||
35292 | ||
35293 | ||
35294 | ||
35295 | ||
35296 | ||
35297 | ||
35298 | ||
35299 | ||
35300 | ||
35301 | ||
35302 | ||
35303 | ||
35304 | ||
35305 | ||
35306 | ||
35307 | ||
35308 | ||
35309 | ||
35310 | ||
35311 | ||
35312 | ||
35313 | ||
35314 | ||
35315 | ||
35316 | ||
35317 | ||
35318 | ||
35319 | ||
35320 | ||
35321 | ||
35322 | ||
35323 | ||
35324 | ||
35325 | ||
35326 | ||
35327 | ||
35328 | ||
35329 | ||
35330 | ||
35331 | ||
35332 | ||
35333 | ||
35334 | ||
35335 | ||
35336 | ||
35337 | ||
35338 | ||
35339 | ||
35340 | ||
35341 | ||
35342 | ||
35343 | ||
35344 | ||
35345 | ||
35346 | ||
35347 | ||
35348 | ||
35349 | ||
35350 | ||
35351 | ||
35352 | ||
35353 | ||
35354 | ||
35355 | ||
35356 | ||
35357 | ||
35358 | ||
35359 | ||
35360 | ||
35361 | ||
35362 | ||
35363 | ||
35364 | ||
35365 | ||
35366 | ||
35367 | ||
35368 | ||
35369 | ||
35370 | ||
35371 | ||
35372 | ||
35373 | ||
35374 | ||
35375 | ||
35376 | ||
35377 | ||
35378 | ||
35379 | ||
35380 | ||
35381 | ||
35382 | ||
35383 | ||
fe0895cf | 35384 | |
f0290fca VS |
35385 | |
35386 | ||
67c13b6c | 35387 | |
e6cc62c6 VS |
35388 | |
35389 | ||
35390 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
35391 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
35392 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
35393 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
35394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35395 | else | |
35396 | cat >conftest.make <<\_ACEOF | |
35397 | all: | |
35398 | @echo 'ac_maketemp="$(MAKE)"' | |
35399 | _ACEOF | |
35400 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
35401 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
35402 | if test -n "$ac_maketemp"; then | |
35403 | eval ac_cv_prog_make_${ac_make}_set=yes | |
35404 | else | |
35405 | eval ac_cv_prog_make_${ac_make}_set=no | |
35406 | fi | |
35407 | rm -f conftest.make | |
35408 | fi | |
35409 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
35410 | echo "$as_me:$LINENO: result: yes" >&5 | |
35411 | echo "${ECHO_T}yes" >&6 | |
35412 | SET_MAKE= | |
35413 | else | |
35414 | echo "$as_me:$LINENO: result: no" >&5 | |
35415 | echo "${ECHO_T}no" >&6 | |
35416 | SET_MAKE="MAKE=${MAKE-make}" | |
35417 | fi | |
35418 | ||
35419 | ||
35420 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
35421 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
35422 | fi | |
35423 | ||
35424 | ac_config_headers="$ac_config_headers setup.h" | |
35425 | ||
35426 | ||
81345eef | 35427 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
35428 | |
35429 | ||
35430 | ac_config_commands="$ac_config_commands default" | |
35431 | ||
35432 | ||
9de9b8f0 | 35433 | |
6c3e36af VZ |
35434 | if test "$wxUSE_GUI" = "yes"; then |
35435 | SUBDIRS="samples demos utils contrib" | |
35436 | else SUBDIRS="samples utils" | |
35437 | fi | |
e6cc62c6 | 35438 | |
166263e6 | 35439 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 35440 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 35441 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 VZ |
35442 | if test ${subdir} = "samples"; then |
35443 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
35444 | if test -d $srcdir/samples/$sample; then | |
35445 | makefiles="samples/$sample/Makefile.in $makefiles" | |
35446 | fi | |
35447 | done | |
35448 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
35449 | fi | |
6c3e36af VZ |
35450 | else if test ${subdir} = "samples"; then |
35451 | makefiles="samples/console/Makefile.in" | |
35452 | else makefiles="utils/HelpGen/Makefile.in \ | |
35453 | utils/HelpGen/src/Makefile.in \ | |
35454 | utils/makegen/Makefile.in" | |
35455 | fi | |
35456 | fi | |
35457 | ||
9747f85d VS |
35458 | for mkin in $makefiles ; do |
35459 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
35460 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 35461 | |
9747f85d VS |
35462 | done |
35463 | fi | |
35464 | done | |
e6cc62c6 | 35465 | |
9de9b8f0 | 35466 | |
e6cc62c6 VS |
35467 | cat >confcache <<\_ACEOF |
35468 | # This file is a shell script that caches the results of configure | |
35469 | # tests run on this system so they can be shared between configure | |
35470 | # scripts and configure runs, see configure's option --config-cache. | |
35471 | # It is not useful on other systems. If it contains results you don't | |
35472 | # want to keep, you may remove or edit it. | |
35473 | # | |
35474 | # config.status only pays attention to the cache file if you give it | |
35475 | # the --recheck option to rerun configure. | |
35476 | # | |
35477 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
35478 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
35479 | # following values. | |
35480 | ||
35481 | _ACEOF | |
35482 | ||
35483 | # The following way of writing the cache mishandles newlines in values, | |
35484 | # but we know of no workaround that is simple, portable, and efficient. | |
35485 | # So, don't put newlines in cache variables' values. | |
35486 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
35487 | # and sets the high bit in the cache file unless we assign to the vars. | |
35488 | { | |
35489 | (set) 2>&1 | | |
35490 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
35491 | *ac_space=\ *) | |
35492 | # `set' does not quote correctly, so add quotes (double-quote | |
35493 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
35494 | sed -n \ | |
35495 | "s/'/'\\\\''/g; | |
35496 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
35497 | ;; | |
35498 | *) | |
35499 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
35500 | sed -n \ | |
35501 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
35502 | ;; | |
35503 | esac; | |
35504 | } | | |
35505 | sed ' | |
35506 | t clear | |
35507 | : clear | |
35508 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
35509 | t end | |
35510 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
35511 | : end' >>confcache | |
35512 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
35513 | if test -w $cache_file; then | |
35514 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
35515 | cat confcache >$cache_file | |
35516 | else | |
35517 | echo "not updating unwritable cache $cache_file" | |
35518 | fi | |
35519 | fi | |
35520 | rm -f confcache | |
35521 | ||
35522 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
35523 | # Let make expand exec_prefix. | |
35524 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
35525 | ||
35526 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
35527 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
35528 | # trailing colons and then remove the whole line if VPATH becomes empty | |
35529 | # (actually we leave an empty line to preserve line numbers). | |
35530 | if test "x$srcdir" = x.; then | |
35531 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
35532 | s/:*\$(srcdir):*/:/; | |
35533 | s/:*\${srcdir}:*/:/; | |
35534 | s/:*@srcdir@:*/:/; | |
35535 | s/^\([^=]*=[ ]*\):*/\1/; | |
35536 | s/:*$//; | |
35537 | s/^[^=]*=[ ]*$//; | |
35538 | }' | |
35539 | fi | |
35540 | ||
35541 | DEFS=-DHAVE_CONFIG_H | |
35542 | ||
35543 | ac_libobjs= | |
35544 | ac_ltlibobjs= | |
35545 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
35546 | # 1. Remove the extension, and $U if already installed. | |
35547 | ac_i=`echo "$ac_i" | | |
35548 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
35549 | # 2. Add them. | |
35550 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
35551 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
35552 | done | |
35553 | LIBOBJS=$ac_libobjs | |
35554 | ||
35555 | LTLIBOBJS=$ac_ltlibobjs | |
35556 | ||
35557 | ||
35558 | ||
35559 | : ${CONFIG_STATUS=./config.status} | |
35560 | ac_clean_files_save=$ac_clean_files | |
35561 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
35562 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
35563 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
35564 | cat >$CONFIG_STATUS <<_ACEOF | |
35565 | #! $SHELL | |
35566 | # Generated by $as_me. | |
35567 | # Run this file to recreate the current configuration. | |
35568 | # Compiler output produced by configure, useful for debugging | |
35569 | # configure, is in config.log if it exists. | |
35570 | ||
35571 | debug=false | |
35572 | ac_cs_recheck=false | |
35573 | ac_cs_silent=false | |
35574 | SHELL=\${CONFIG_SHELL-$SHELL} | |
35575 | _ACEOF | |
35576 | ||
35577 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35578 | ## --------------------- ## | |
35579 | ## M4sh Initialization. ## | |
35580 | ## --------------------- ## | |
35581 | ||
35582 | # Be Bourne compatible | |
35583 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
35584 | emulate sh | |
35585 | NULLCMD=: | |
35586 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
35587 | # is contrary to our usage. Disable this feature. | |
35588 | alias -g '${1+"$@"}'='"$@"' | |
35589 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
35590 | set -o posix | |
35591 | fi | |
35592 | ||
35593 | # Support unset when possible. | |
35594 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
35595 | as_unset=unset | |
35596 | else | |
35597 | as_unset=false | |
35598 | fi | |
35599 | ||
35600 | ||
35601 | # Work around bugs in pre-3.0 UWIN ksh. | |
35602 | $as_unset ENV MAIL MAILPATH | |
35603 | PS1='$ ' | |
35604 | PS2='> ' | |
35605 | PS4='+ ' | |
35606 | ||
35607 | # NLS nuisances. | |
35608 | for as_var in \ | |
35609 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
35610 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
35611 | LC_TELEPHONE LC_TIME | |
35612 | do | |
35613 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
35614 | eval $as_var=C; export $as_var | |
35615 | else | |
35616 | $as_unset $as_var | |
35617 | fi | |
35618 | done | |
35619 | ||
35620 | # Required to use basename. | |
35621 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35622 | as_expr=expr | |
35623 | else | |
35624 | as_expr=false | |
35625 | fi | |
35626 | ||
35627 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
35628 | as_basename=basename | |
35629 | else | |
35630 | as_basename=false | |
35631 | fi | |
35632 | ||
35633 | ||
35634 | # Name of the executable. | |
35635 | as_me=`$as_basename "$0" || | |
35636 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
35637 | X"$0" : 'X\(//\)$' \| \ | |
35638 | X"$0" : 'X\(/\)$' \| \ | |
35639 | . : '\(.\)' 2>/dev/null || | |
35640 | echo X/"$0" | | |
35641 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
35642 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
35643 | /^X\/\(\/\).*/{ s//\1/; q; } | |
35644 | s/.*/./; q'` | |
35645 | ||
35646 | ||
35647 | # PATH needs CR, and LINENO needs CR and PATH. | |
35648 | # Avoid depending upon Character Ranges. | |
35649 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35650 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
35651 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
35652 | as_cr_digits='0123456789' | |
35653 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
35654 | ||
35655 | # The user is always right. | |
35656 | if test "${PATH_SEPARATOR+set}" != set; then | |
35657 | echo "#! /bin/sh" >conf$$.sh | |
35658 | echo "exit 0" >>conf$$.sh | |
35659 | chmod +x conf$$.sh | |
35660 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
35661 | PATH_SEPARATOR=';' | |
35662 | else | |
35663 | PATH_SEPARATOR=: | |
35664 | fi | |
35665 | rm -f conf$$.sh | |
35666 | fi | |
35667 | ||
35668 | ||
35669 | as_lineno_1=$LINENO | |
35670 | as_lineno_2=$LINENO | |
35671 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
35672 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
35673 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
35674 | # Find who we are. Look in the path if we contain no path at all | |
35675 | # relative or not. | |
35676 | case $0 in | |
35677 | *[\\/]* ) as_myself=$0 ;; | |
35678 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35679 | for as_dir in $PATH | |
35680 | do | |
35681 | IFS=$as_save_IFS | |
35682 | test -z "$as_dir" && as_dir=. | |
35683 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
35684 | done | |
35685 | ||
35686 | ;; | |
35687 | esac | |
35688 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
35689 | # in which case we are not to be found in the path. | |
35690 | if test "x$as_myself" = x; then | |
35691 | as_myself=$0 | |
35692 | fi | |
35693 | if test ! -f "$as_myself"; then | |
35694 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
35695 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
35696 | { (exit 1); exit 1; }; } | |
35697 | fi | |
35698 | case $CONFIG_SHELL in | |
35699 | '') | |
35700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35701 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
35702 | do | |
35703 | IFS=$as_save_IFS | |
35704 | test -z "$as_dir" && as_dir=. | |
35705 | for as_base in sh bash ksh sh5; do | |
35706 | case $as_dir in | |
35707 | /*) | |
35708 | if ("$as_dir/$as_base" -c ' | |
35709 | as_lineno_1=$LINENO | |
35710 | as_lineno_2=$LINENO | |
35711 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
35712 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
35713 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
35714 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
35715 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
35716 | CONFIG_SHELL=$as_dir/$as_base | |
35717 | export CONFIG_SHELL | |
35718 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
35719 | fi;; | |
35720 | esac | |
35721 | done | |
35722 | done | |
35723 | ;; | |
35724 | esac | |
35725 | ||
35726 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
35727 | # uniformly replaced by the line number. The first 'sed' inserts a | |
35728 | # line-number line before each line; the second 'sed' does the real | |
35729 | # work. The second script uses 'N' to pair each line-number line | |
35730 | # with the numbered line, and appends trailing '-' during | |
35731 | # substitution so that $LINENO is not a special case at line end. | |
35732 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
35733 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
35734 | sed '=' <$as_myself | | |
35735 | sed ' | |
35736 | N | |
35737 | s,$,-, | |
35738 | : loop | |
35739 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
35740 | t loop | |
35741 | s,-$,, | |
35742 | s,^['$as_cr_digits']*\n,, | |
35743 | ' >$as_me.lineno && | |
35744 | chmod +x $as_me.lineno || | |
35745 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
35746 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
35747 | { (exit 1); exit 1; }; } | |
35748 | ||
35749 | # Don't try to exec as it changes $[0], causing all sort of problems | |
35750 | # (the dirname of $[0] is not the place where we might find the | |
35751 | # original and so on. Autoconf is especially sensible to this). | |
35752 | . ./$as_me.lineno | |
35753 | # Exit status is that of the last command. | |
35754 | exit | |
35755 | } | |
35756 | ||
35757 | ||
35758 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
35759 | *c*,-n*) ECHO_N= ECHO_C=' | |
35760 | ' ECHO_T=' ' ;; | |
35761 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
35762 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
35763 | esac | |
35764 | ||
35765 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35766 | as_expr=expr | |
35767 | else | |
35768 | as_expr=false | |
35769 | fi | |
35770 | ||
35771 | rm -f conf$$ conf$$.exe conf$$.file | |
35772 | echo >conf$$.file | |
35773 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
35774 | # We could just check for DJGPP; but this test a) works b) is more generic | |
35775 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
35776 | if test -f conf$$.exe; then | |
35777 | # Don't use ln at all; we don't have any links | |
35778 | as_ln_s='cp -p' | |
35779 | else | |
35780 | as_ln_s='ln -s' | |
35781 | fi | |
35782 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
35783 | as_ln_s=ln | |
35784 | else | |
35785 | as_ln_s='cp -p' | |
35786 | fi | |
35787 | rm -f conf$$ conf$$.exe conf$$.file | |
35788 | ||
35789 | if mkdir -p . 2>/dev/null; then | |
35790 | as_mkdir_p=: | |
35791 | else | |
35792 | as_mkdir_p=false | |
35793 | fi | |
35794 | ||
35795 | as_executable_p="test -f" | |
35796 | ||
35797 | # Sed expression to map a string onto a valid CPP name. | |
35798 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
35799 | ||
35800 | # Sed expression to map a string onto a valid variable name. | |
35801 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
35802 | ||
35803 | ||
35804 | # IFS | |
35805 | # We need space, tab and new line, in precisely that order. | |
35806 | as_nl=' | |
35807 | ' | |
35808 | IFS=" $as_nl" | |
35809 | ||
35810 | # CDPATH. | |
35811 | $as_unset CDPATH | |
35812 | ||
35813 | exec 6>&1 | |
35814 | ||
35815 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
35816 | # report actual input values of CONFIG_FILES etc. instead of their | |
35817 | # values after options handling. Logging --version etc. is OK. | |
35818 | exec 5>>config.log | |
35819 | { | |
35820 | echo | |
35821 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
35822 | ## Running $as_me. ## | |
35823 | _ASBOX | |
35824 | } >&5 | |
35825 | cat >&5 <<_CSEOF | |
35826 | ||
35827 | This file was extended by wxWindows $as_me 2.5.0, which was | |
35828 | generated by GNU Autoconf 2.57. Invocation command line was | |
35829 | ||
35830 | CONFIG_FILES = $CONFIG_FILES | |
35831 | CONFIG_HEADERS = $CONFIG_HEADERS | |
35832 | CONFIG_LINKS = $CONFIG_LINKS | |
35833 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
35834 | $ $0 $@ | |
35835 | ||
35836 | _CSEOF | |
35837 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
35838 | echo >&5 | |
35839 | _ACEOF | |
35840 | ||
35841 | # Files that config.status was made for. | |
35842 | if test -n "$ac_config_files"; then | |
35843 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
35844 | fi | |
35845 | ||
35846 | if test -n "$ac_config_headers"; then | |
35847 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
35848 | fi | |
35849 | ||
35850 | if test -n "$ac_config_links"; then | |
35851 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
35852 | fi | |
35853 | ||
35854 | if test -n "$ac_config_commands"; then | |
35855 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
35856 | fi | |
35857 | ||
35858 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35859 | ||
35860 | ac_cs_usage="\ | |
35861 | \`$as_me' instantiates files from templates according to the | |
35862 | current configuration. | |
35863 | ||
35864 | Usage: $0 [OPTIONS] [FILE]... | |
35865 | ||
35866 | -h, --help print this help, then exit | |
35867 | -V, --version print version number, then exit | |
35868 | -q, --quiet do not print progress messages | |
35869 | -d, --debug don't remove temporary files | |
35870 | --recheck update $as_me by reconfiguring in the same conditions | |
35871 | --file=FILE[:TEMPLATE] | |
35872 | instantiate the configuration file FILE | |
35873 | --header=FILE[:TEMPLATE] | |
35874 | instantiate the configuration header FILE | |
35875 | ||
35876 | Configuration files: | |
35877 | $config_files | |
35878 | ||
35879 | Configuration headers: | |
35880 | $config_headers | |
35881 | ||
35882 | Configuration commands: | |
35883 | $config_commands | |
35884 | ||
35885 | Report bugs to <bug-autoconf@gnu.org>." | |
35886 | _ACEOF | |
35887 | ||
35888 | cat >>$CONFIG_STATUS <<_ACEOF | |
35889 | ac_cs_version="\\ | |
35890 | wxWindows config.status 2.5.0 | |
35891 | configured by $0, generated by GNU Autoconf 2.57, | |
35892 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
35893 | ||
35894 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
35895 | Free Software Foundation, Inc. | |
35896 | This config.status script is free software; the Free Software Foundation | |
35897 | gives unlimited permission to copy, distribute and modify it." | |
35898 | srcdir=$srcdir | |
35899 | INSTALL="$INSTALL" | |
35900 | _ACEOF | |
35901 | ||
35902 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35903 | # If no file are specified by the user, then we need to provide default | |
35904 | # value. By we need to know if files were specified by the user. | |
35905 | ac_need_defaults=: | |
35906 | while test $# != 0 | |
35907 | do | |
35908 | case $1 in | |
35909 | --*=*) | |
35910 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
35911 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
35912 | ac_shift=: | |
35913 | ;; | |
35914 | -*) | |
35915 | ac_option=$1 | |
35916 | ac_optarg=$2 | |
35917 | ac_shift=shift | |
35918 | ;; | |
35919 | *) # This is not an option, so the user has probably given explicit | |
35920 | # arguments. | |
35921 | ac_option=$1 | |
35922 | ac_need_defaults=false;; | |
35923 | esac | |
35924 | ||
35925 | case $ac_option in | |
35926 | # Handling of the options. | |
35927 | _ACEOF | |
35928 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35929 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
35930 | ac_cs_recheck=: ;; | |
35931 | --version | --vers* | -V ) | |
35932 | echo "$ac_cs_version"; exit 0 ;; | |
35933 | --he | --h) | |
35934 | # Conflict between --help and --header | |
35935 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
35936 | Try \`$0 --help' for more information." >&5 | |
35937 | echo "$as_me: error: ambiguous option: $1 | |
35938 | Try \`$0 --help' for more information." >&2;} | |
35939 | { (exit 1); exit 1; }; };; | |
35940 | --help | --hel | -h ) | |
35941 | echo "$ac_cs_usage"; exit 0 ;; | |
35942 | --debug | --d* | -d ) | |
35943 | debug=: ;; | |
35944 | --file | --fil | --fi | --f ) | |
35945 | $ac_shift | |
35946 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
35947 | ac_need_defaults=false;; | |
35948 | --header | --heade | --head | --hea ) | |
35949 | $ac_shift | |
35950 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
35951 | ac_need_defaults=false;; | |
35952 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
35953 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
35954 | ac_cs_silent=: ;; | |
35955 | ||
35956 | # This is an error. | |
35957 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
35958 | Try \`$0 --help' for more information." >&5 | |
35959 | echo "$as_me: error: unrecognized option: $1 | |
35960 | Try \`$0 --help' for more information." >&2;} | |
35961 | { (exit 1); exit 1; }; } ;; | |
35962 | ||
35963 | *) ac_config_targets="$ac_config_targets $1" ;; | |
35964 | ||
35965 | esac | |
35966 | shift | |
35967 | done | |
35968 | ||
35969 | ac_configure_extra_args= | |
35970 | ||
35971 | if $ac_cs_silent; then | |
35972 | exec 6>/dev/null | |
35973 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
35974 | fi |
35975 | ||
e6cc62c6 VS |
35976 | _ACEOF |
35977 | cat >>$CONFIG_STATUS <<_ACEOF | |
35978 | if \$ac_cs_recheck; then | |
35979 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
35980 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
35981 | fi |
35982 | ||
e6cc62c6 | 35983 | _ACEOF |
fe0895cf | 35984 | |
e6cc62c6 | 35985 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 35986 | # |
e6cc62c6 | 35987 | # INIT-COMMANDS section. |
10f2d63a | 35988 | # |
10f2d63a | 35989 | |
a0b9e27f | 35990 | |
e6cc62c6 VS |
35991 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
35992 | LN_S="${LN_S}" | |
10f2d63a | 35993 | |
10f2d63a | 35994 | |
10f2d63a | 35995 | |
e6cc62c6 | 35996 | _ACEOF |
8284b0c5 | 35997 | |
52127426 | 35998 | |
247f5006 | 35999 | |
e6cc62c6 VS |
36000 | cat >>$CONFIG_STATUS <<\_ACEOF |
36001 | for ac_config_target in $ac_config_targets | |
247f5006 | 36002 | do |
e6cc62c6 VS |
36003 | case "$ac_config_target" in |
36004 | # Handling of arguments. | |
81345eef VZ |
36005 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
36006 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
36007 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 36008 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
36009 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
36010 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
36011 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
36012 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
36013 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
36014 | esac |
36015 | done | |
36016 | ||
e6cc62c6 VS |
36017 | # If the user did not use the arguments to specify the items to instantiate, |
36018 | # then the envvar interface is used. Set only those that are not. | |
36019 | # We use the long form for the default assignment because of an extremely | |
36020 | # bizarre bug on SunOS 4.1.3. | |
36021 | if $ac_need_defaults; then | |
36022 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
36023 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
36024 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
36025 | fi | |
36026 | ||
36027 | # Have a temporary directory for convenience. Make it in the build tree | |
36028 | # simply because there is no reason to put it here, and in addition, | |
36029 | # creating and moving files from /tmp can sometimes cause problems. | |
36030 | # Create a temporary directory, and hook for its removal unless debugging. | |
36031 | $debug || | |
36032 | { | |
36033 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
36034 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
36035 | } | |
247f5006 | 36036 | |
e6cc62c6 | 36037 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 36038 | |
e6cc62c6 VS |
36039 | { |
36040 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
36041 | test -n "$tmp" && test -d "$tmp" | |
36042 | } || | |
36043 | { | |
36044 | tmp=./confstat$$-$RANDOM | |
36045 | (umask 077 && mkdir $tmp) | |
36046 | } || | |
36047 | { | |
36048 | echo "$me: cannot create a temporary directory in ." >&2 | |
36049 | { (exit 1); exit 1; } | |
36050 | } | |
36051 | ||
36052 | _ACEOF | |
36053 | ||
36054 | cat >>$CONFIG_STATUS <<_ACEOF | |
36055 | ||
36056 | # | |
36057 | # CONFIG_FILES section. | |
36058 | # | |
247f5006 | 36059 | |
e6cc62c6 VS |
36060 | # No need to generate the scripts if there are no CONFIG_FILES. |
36061 | # This happens for instance when ./config.status config.h | |
36062 | if test -n "\$CONFIG_FILES"; then | |
36063 | # Protect against being on the right side of a sed subst in config.status. | |
36064 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
36065 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
36066 | s,@SHELL@,$SHELL,;t t | |
36067 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
36068 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
36069 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
36070 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
36071 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
36072 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
36073 | s,@exec_prefix@,$exec_prefix,;t t | |
36074 | s,@prefix@,$prefix,;t t | |
36075 | s,@program_transform_name@,$program_transform_name,;t t | |
36076 | s,@bindir@,$bindir,;t t | |
36077 | s,@sbindir@,$sbindir,;t t | |
36078 | s,@libexecdir@,$libexecdir,;t t | |
36079 | s,@datadir@,$datadir,;t t | |
36080 | s,@sysconfdir@,$sysconfdir,;t t | |
36081 | s,@sharedstatedir@,$sharedstatedir,;t t | |
36082 | s,@localstatedir@,$localstatedir,;t t | |
36083 | s,@libdir@,$libdir,;t t | |
36084 | s,@includedir@,$includedir,;t t | |
36085 | s,@oldincludedir@,$oldincludedir,;t t | |
36086 | s,@infodir@,$infodir,;t t | |
36087 | s,@mandir@,$mandir,;t t | |
36088 | s,@build_alias@,$build_alias,;t t | |
36089 | s,@host_alias@,$host_alias,;t t | |
36090 | s,@target_alias@,$target_alias,;t t | |
36091 | s,@DEFS@,$DEFS,;t t | |
36092 | s,@ECHO_C@,$ECHO_C,;t t | |
36093 | s,@ECHO_N@,$ECHO_N,;t t | |
36094 | s,@ECHO_T@,$ECHO_T,;t t | |
36095 | s,@LIBS@,$LIBS,;t t | |
36096 | s,@build@,$build,;t t | |
36097 | s,@build_cpu@,$build_cpu,;t t | |
36098 | s,@build_vendor@,$build_vendor,;t t | |
36099 | s,@build_os@,$build_os,;t t | |
36100 | s,@host@,$host,;t t | |
36101 | s,@host_cpu@,$host_cpu,;t t | |
36102 | s,@host_vendor@,$host_vendor,;t t | |
36103 | s,@host_os@,$host_os,;t t | |
36104 | s,@target@,$target,;t t | |
36105 | s,@target_cpu@,$target_cpu,;t t | |
36106 | s,@target_vendor@,$target_vendor,;t t | |
36107 | s,@target_os@,$target_os,;t t | |
36108 | s,@CC@,$CC,;t t | |
36109 | s,@CFLAGS@,$CFLAGS,;t t | |
36110 | s,@LDFLAGS@,$LDFLAGS,;t t | |
36111 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
36112 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
36113 | s,@EXEEXT@,$EXEEXT,;t t | |
36114 | s,@OBJEXT@,$OBJEXT,;t t | |
36115 | s,@CPP@,$CPP,;t t | |
36116 | s,@EGREP@,$EGREP,;t t | |
36117 | s,@CXX@,$CXX,;t t | |
36118 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
36119 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
36120 | s,@RANLIB@,$RANLIB,;t t | |
36121 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
36122 | s,@AR@,$AR,;t t | |
36123 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
36124 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
36125 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
36126 | s,@STRIP@,$STRIP,;t t | |
36127 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
36128 | s,@YACC@,$YACC,;t t | |
36129 | s,@LEX@,$LEX,;t t | |
36130 | s,@LEXLIB@,$LEXLIB,;t t | |
36131 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
36132 | s,@LN_S@,$LN_S,;t t | |
36133 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 36134 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
36135 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
36136 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
36137 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
36138 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
36139 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
36140 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
36141 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
36142 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
36143 | s,@X_LIBS@,$X_LIBS,;t t | |
36144 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
36145 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
36146 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
36147 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
36148 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
36149 | s,@RESCOMP@,$RESCOMP,;t t |
36150 | s,@DEREZ@,$DEREZ,;t t | |
36151 | s,@SETFILE@,$SETFILE,;t t | |
36152 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 VS |
36153 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
36154 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
36155 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
36156 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
36157 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 36158 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
36159 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
36160 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
36161 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
36162 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
36163 | s,@VENDOR@,$VENDOR,;t t |
36164 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
36165 | s,@WXUNIV@,$WXUNIV,;t t |
36166 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
36167 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
672abd7a | 36168 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
bb41dcbe | 36169 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 36170 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 36171 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
e6cc62c6 VS |
36172 | s,@UNICODE@,$UNICODE,;t t |
36173 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
36174 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
36175 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
36176 | s,@SHARED@,$SHARED,;t t |
36177 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
36178 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
36179 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
ea66c762 | 36180 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
36181 | s,@SET_MAKE@,$SET_MAKE,;t t |
36182 | s,@MAKE_SET@,$MAKE_SET,;t t | |
36183 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
6b9d41a5 | 36184 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
36185 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
36186 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
36187 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
36188 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
36189 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
36190 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
131f235d | 36191 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
e6cc62c6 | 36192 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 36193 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 36194 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
36195 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
36196 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
36197 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
36198 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
36199 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
36200 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
36201 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
36202 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
36203 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
36204 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
36205 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 36206 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
d78c94f2 | 36207 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
36208 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
36209 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
d78c94f2 | 36210 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a VS |
36211 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
36212 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
36213 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
36214 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 36215 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 36216 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
6f628073 | 36217 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
36218 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
36219 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
250700e4 | 36220 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
8ee2dd05 | 36221 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 36222 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
250700e4 | 36223 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
3af038c0 | 36224 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
36225 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
36226 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
36227 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
36228 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 36229 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 36230 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
36231 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
36232 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
36233 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
8ee2dd05 | 36234 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
3af038c0 VS |
36235 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
36236 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
36237 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
250700e4 RD |
36238 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
36239 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
6f628073 VS |
36240 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
36241 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
36242 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
36243 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 VS |
36244 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
36245 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1,;t t | |
3af038c0 | 36246 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
6f628073 VS |
36247 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
36248 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
36249 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
36250 | s,@COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1,;t t | |
36251 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
36252 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
36253 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 36254 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
36255 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
36256 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 36257 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1,;t t |
6f628073 VS |
36258 | s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t |
36259 | s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t | |
36260 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t | |
36261 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
8ee2dd05 | 36262 | s,@COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1,;t t |
3af038c0 VS |
36263 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
36264 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
36265 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
36266 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
36267 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
36268 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
36269 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
36270 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
6f628073 VS |
36271 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
36272 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
36273 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
36274 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
3af038c0 | 36275 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 36276 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
36277 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
36278 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
36279 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
36280 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
36281 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
36282 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
1772d20c VZ |
36283 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
36284 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
36285 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
131f235d VS |
36286 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
36287 | s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t | |
bb41dcbe VS |
36288 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t |
36289 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t | |
1dd02ac0 | 36290 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
e6cc62c6 VS |
36291 | s,@LEX_STEM@,$LEX_STEM,;t t |
36292 | s,@PATH_IFS@,$PATH_IFS,;t t | |
36293 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
36294 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
36295 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
36296 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
36297 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
36298 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
36299 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
36300 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
36301 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
36302 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
36303 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
36304 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
36305 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
36306 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
36307 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
36308 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
36309 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
36310 | s,@WX_ALL@,$WX_ALL,;t t | |
36311 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
36312 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
36313 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
36314 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
36315 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
36316 | s,@USE_GUI@,$USE_GUI,;t t | |
36317 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
36318 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
36319 | s,@TOOLKIT@,$TOOLKIT,;t t | |
36320 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
36321 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
36322 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
36323 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
36324 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
36325 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
36326 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 36327 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
36328 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
36329 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
36330 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
36331 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
36332 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
36333 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
36334 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
f0290fca VS |
36335 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
36336 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
36337 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
36338 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
36339 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
36340 | s,@GUIDIST@,$GUIDIST,;t t | |
36341 | s,@PORT_FILES@,$PORT_FILES,;t t | |
36342 | s,@DISTDIR@,$DISTDIR,;t t | |
36343 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
36344 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
36345 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
36346 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
36347 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
36348 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
36349 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
36350 | s,@RESFLAGS@,$RESFLAGS,;t t | |
36351 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
36352 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
36353 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
36354 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
36355 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
36356 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
36357 | s,@MACSETFILE@,$MACSETFILE,;t t | |
36358 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
36359 | s,@GCC@,$GCC,;t t | |
36360 | s,@DLLTOOL@,$DLLTOOL,;t t | |
36361 | s,@AS@,$AS,;t t | |
36362 | s,@NM@,$NM,;t t | |
36363 | s,@LD@,$LD,;t t | |
36364 | s,@MAKEINFO@,$MAKEINFO,;t t | |
36365 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
36366 | s,@LIBOBJS@,$LIBOBJS,;t t |
36367 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
36368 | CEOF |
36369 | ||
e6cc62c6 VS |
36370 | _ACEOF |
36371 | ||
36372 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36373 | # Split the substitutions into bite-sized pieces for seds with | |
36374 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
36375 | ac_max_sed_lines=48 | |
36376 | ac_sed_frag=1 # Number of current file. | |
36377 | ac_beg=1 # First line for current file. | |
36378 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
36379 | ac_more_lines=: | |
36380 | ac_sed_cmds= | |
36381 | while $ac_more_lines; do | |
36382 | if test $ac_beg -gt 1; then | |
36383 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 36384 | else |
e6cc62c6 VS |
36385 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
36386 | fi | |
36387 | if test ! -s $tmp/subs.frag; then | |
36388 | ac_more_lines=false | |
36389 | else | |
36390 | # The purpose of the label and of the branching condition is to | |
36391 | # speed up the sed processing (if there are no `@' at all, there | |
36392 | # is no need to browse any of the substitutions). | |
36393 | # These are the two extra sed commands mentioned above. | |
36394 | (echo ':t | |
36395 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
36396 | if test -z "$ac_sed_cmds"; then | |
36397 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
36398 | else | |
36399 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
36400 | fi | |
36401 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
36402 | ac_beg=$ac_end | |
36403 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 36404 | fi |
e6cc62c6 VS |
36405 | done |
36406 | if test -z "$ac_sed_cmds"; then | |
36407 | ac_sed_cmds=cat | |
10f2d63a | 36408 | fi |
e6cc62c6 | 36409 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 36410 | |
e6cc62c6 VS |
36411 | _ACEOF |
36412 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36413 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 36414 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
36415 | case $ac_file in |
36416 | - | *:- | *:-:* ) # input from stdin | |
36417 | cat >$tmp/stdin | |
36418 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36419 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36420 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36421 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36422 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a | 36423 | esac |
247f5006 | 36424 | |
e6cc62c6 VS |
36425 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
36426 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
36427 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36428 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
36429 | X"$ac_file" : 'X\(//\)$' \| \ | |
36430 | X"$ac_file" : 'X\(/\)' \| \ | |
36431 | . : '\(.\)' 2>/dev/null || | |
36432 | echo X"$ac_file" | | |
36433 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36434 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36435 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36436 | /^X\(\/\).*/{ s//\1/; q; } | |
36437 | s/.*/./; q'` | |
36438 | { if $as_mkdir_p; then | |
36439 | mkdir -p "$ac_dir" | |
a0b9e27f | 36440 | else |
e6cc62c6 VS |
36441 | as_dir="$ac_dir" |
36442 | as_dirs= | |
36443 | while test ! -d "$as_dir"; do | |
36444 | as_dirs="$as_dir $as_dirs" | |
36445 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36446 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36447 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36448 | X"$as_dir" : 'X\(//\)$' \| \ | |
36449 | X"$as_dir" : 'X\(/\)' \| \ | |
36450 | . : '\(.\)' 2>/dev/null || | |
36451 | echo X"$as_dir" | | |
36452 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36453 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36454 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36455 | /^X\(\/\).*/{ s//\1/; q; } | |
36456 | s/.*/./; q'` | |
36457 | done | |
36458 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36459 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36460 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36461 | { (exit 1); exit 1; }; }; } | |
36462 | ||
36463 | ac_builddir=. | |
36464 | ||
36465 | if test "$ac_dir" != .; then | |
36466 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36467 | # A "../" for each directory in $ac_dir_suffix. | |
36468 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36469 | else | |
36470 | ac_dir_suffix= ac_top_builddir= | |
36471 | fi | |
247f5006 | 36472 | |
e6cc62c6 VS |
36473 | case $srcdir in |
36474 | .) # No --srcdir option. We are building in place. | |
36475 | ac_srcdir=. | |
36476 | if test -z "$ac_top_builddir"; then | |
36477 | ac_top_srcdir=. | |
36478 | else | |
36479 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36480 | fi ;; | |
36481 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36482 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36483 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 36484 | *) # Relative path. |
e6cc62c6 VS |
36485 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
36486 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36487 | esac | |
36488 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36489 | # absolute. | |
36490 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36491 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36492 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36493 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
10f2d63a | 36494 | |
247f5006 | 36495 | |
e6cc62c6 VS |
36496 | case $INSTALL in |
36497 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
36498 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 36499 | esac |
247f5006 | 36500 | |
e6cc62c6 VS |
36501 | if test x"$ac_file" != x-; then |
36502 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
36503 | echo "$as_me: creating $ac_file" >&6;} | |
36504 | rm -f "$ac_file" | |
36505 | fi | |
36506 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
36507 | # use $as_me), people would be surprised to read: | |
36508 | # /* config.h. Generated by config.status. */ | |
36509 | if test x"$ac_file" = x-; then | |
36510 | configure_input= | |
36511 | else | |
36512 | configure_input="$ac_file. " | |
36513 | fi | |
36514 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
36515 | sed 's,.*/,,'` by configure." | |
36516 | ||
36517 | # First look for the input files in the build tree, otherwise in the | |
36518 | # src tree. | |
36519 | ac_file_inputs=`IFS=: | |
36520 | for f in $ac_file_in; do | |
36521 | case $f in | |
36522 | -) echo $tmp/stdin ;; | |
36523 | [\\/$]*) | |
36524 | # Absolute (can't be DOS-style, as IFS=:) | |
36525 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36526 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36527 | { (exit 1); exit 1; }; } | |
36528 | echo $f;; | |
36529 | *) # Relative | |
36530 | if test -f "$f"; then | |
36531 | # Build tree | |
36532 | echo $f | |
36533 | elif test -f "$srcdir/$f"; then | |
36534 | # Source tree | |
36535 | echo $srcdir/$f | |
36536 | else | |
36537 | # /dev/null tree | |
36538 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36539 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36540 | { (exit 1); exit 1; }; } | |
36541 | fi;; | |
36542 | esac | |
36543 | done` || { (exit 1); exit 1; } | |
36544 | _ACEOF | |
36545 | cat >>$CONFIG_STATUS <<_ACEOF | |
36546 | sed "$ac_vpsub | |
36547 | $extrasub | |
36548 | _ACEOF | |
36549 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36550 | :t | |
36551 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
36552 | s,@configure_input@,$configure_input,;t t | |
36553 | s,@srcdir@,$ac_srcdir,;t t | |
36554 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
36555 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
36556 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
36557 | s,@builddir@,$ac_builddir,;t t | |
36558 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
36559 | s,@top_builddir@,$ac_top_builddir,;t t | |
36560 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
36561 | s,@INSTALL@,$ac_INSTALL,;t t | |
36562 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
36563 | rm -f $tmp/stdin | |
36564 | if test x"$ac_file" != x-; then | |
36565 | mv $tmp/out $ac_file | |
36566 | else | |
36567 | cat $tmp/out | |
36568 | rm -f $tmp/out | |
36569 | fi | |
36570 | ||
36571 | done | |
36572 | _ACEOF | |
36573 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36574 | ||
36575 | # | |
36576 | # CONFIG_HEADER section. | |
36577 | # | |
10f2d63a VZ |
36578 | |
36579 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
36580 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
36581 | # | |
36582 | # ac_d sets the value in "#define NAME VALUE" lines. | |
e6cc62c6 VS |
36583 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
36584 | ac_dB='[ ].*$,\1#\2' | |
36585 | ac_dC=' ' | |
36586 | ac_dD=',;t' | |
36587 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
36588 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
36589 | ac_uB='$,\1#\2define\3' | |
10f2d63a | 36590 | ac_uC=' ' |
e6cc62c6 VS |
36591 | ac_uD=',;t' |
36592 | ||
36593 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 36594 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
36595 | case $ac_file in |
36596 | - | *:- | *:-:* ) # input from stdin | |
36597 | cat >$tmp/stdin | |
36598 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36599 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36600 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36601 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36602 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
36603 | esac |
36604 | ||
e6cc62c6 VS |
36605 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
36606 | echo "$as_me: creating $ac_file" >&6;} | |
36607 | ||
36608 | # First look for the input files in the build tree, otherwise in the | |
36609 | # src tree. | |
36610 | ac_file_inputs=`IFS=: | |
36611 | for f in $ac_file_in; do | |
36612 | case $f in | |
36613 | -) echo $tmp/stdin ;; | |
36614 | [\\/$]*) | |
36615 | # Absolute (can't be DOS-style, as IFS=:) | |
36616 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36617 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36618 | { (exit 1); exit 1; }; } | |
36619 | echo $f;; | |
36620 | *) # Relative | |
36621 | if test -f "$f"; then | |
36622 | # Build tree | |
36623 | echo $f | |
36624 | elif test -f "$srcdir/$f"; then | |
36625 | # Source tree | |
36626 | echo $srcdir/$f | |
36627 | else | |
36628 | # /dev/null tree | |
36629 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36630 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36631 | { (exit 1); exit 1; }; } | |
36632 | fi;; | |
36633 | esac | |
36634 | done` || { (exit 1); exit 1; } | |
36635 | # Remove the trailing spaces. | |
36636 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
36637 | ||
36638 | _ACEOF | |
36639 | ||
36640 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
36641 | # `conftest.undefs', that substitutes the proper values into | |
36642 | # config.h.in to produce config.h. The first handles `#define' | |
36643 | # templates, and the second `#undef' templates. | |
36644 | # And first: Protect against being on the right side of a sed subst in | |
36645 | # config.status. Protect against being in an unquoted here document | |
36646 | # in config.status. | |
36647 | rm -f conftest.defines conftest.undefs | |
36648 | # Using a here document instead of a string reduces the quoting nightmare. | |
36649 | # Putting comments in sed scripts is not portable. | |
36650 | # | |
36651 | # `end' is used to avoid that the second main sed command (meant for | |
36652 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
36653 | # See the Autoconf documentation for `clear'. | |
36654 | cat >confdef2sed.sed <<\_ACEOF | |
36655 | s/[\\&,]/\\&/g | |
36656 | s,[\\$`],\\&,g | |
36657 | t clear | |
36658 | : clear | |
36659 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
36660 | t end | |
36661 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
36662 | : end | |
36663 | _ACEOF | |
36664 | # If some macros were called several times there might be several times | |
36665 | # the same #defines, which is useless. Nevertheless, we may not want to | |
36666 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
36667 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
36668 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
36669 | rm -f confdef2sed.sed | |
10f2d63a VZ |
36670 | |
36671 | # This sed command replaces #undef with comments. This is necessary, for | |
36672 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
36673 | # on some systems where configure will not decide to define it. | |
e6cc62c6 VS |
36674 | cat >>conftest.undefs <<\_ACEOF |
36675 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
36676 | _ACEOF | |
36677 | ||
36678 | # Break up conftest.defines because some shells have a limit on the size | |
36679 | # of here documents, and old seds have small limits too (100 cmds). | |
36680 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
36681 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
36682 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
36683 | echo ' :' >>$CONFIG_STATUS | |
36684 | rm -f conftest.tail | |
36685 | while grep . conftest.defines >/dev/null | |
36686 | do | |
36687 | # Write a limited-size here document to $tmp/defines.sed. | |
36688 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
36689 | # Speed up: don't consider the non `#define' lines. | |
36690 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
36691 | # Work around the forget-to-reset-the-flag bug. | |
36692 | echo 't clr' >>$CONFIG_STATUS | |
36693 | echo ': clr' >>$CONFIG_STATUS | |
36694 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
36695 | echo 'CEOF | |
36696 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
36697 | rm -f $tmp/in | |
36698 | mv $tmp/out $tmp/in | |
36699 | ' >>$CONFIG_STATUS | |
36700 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
36701 | rm -f conftest.defines | |
36702 | mv conftest.tail conftest.defines | |
36703 | done | |
36704 | rm -f conftest.defines | |
36705 | echo ' fi # grep' >>$CONFIG_STATUS | |
36706 | echo >>$CONFIG_STATUS | |
10f2d63a | 36707 | |
e6cc62c6 VS |
36708 | # Break up conftest.undefs because some shells have a limit on the size |
36709 | # of here documents, and old seds have small limits too (100 cmds). | |
36710 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 36711 | rm -f conftest.tail |
e6cc62c6 | 36712 | while grep . conftest.undefs >/dev/null |
10f2d63a | 36713 | do |
e6cc62c6 VS |
36714 | # Write a limited-size here document to $tmp/undefs.sed. |
36715 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
36716 | # Speed up: don't consider the non `#undef' | |
36717 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
36718 | # Work around the forget-to-reset-the-flag bug. | |
36719 | echo 't clr' >>$CONFIG_STATUS | |
36720 | echo ': clr' >>$CONFIG_STATUS | |
36721 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 36722 | echo 'CEOF |
e6cc62c6 VS |
36723 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
36724 | rm -f $tmp/in | |
36725 | mv $tmp/out $tmp/in | |
36726 | ' >>$CONFIG_STATUS | |
36727 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
36728 | rm -f conftest.undefs | |
36729 | mv conftest.tail conftest.undefs | |
10f2d63a | 36730 | done |
e6cc62c6 VS |
36731 | rm -f conftest.undefs |
36732 | ||
36733 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36734 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
36735 | # use $as_me), people would be surprised to read: | |
36736 | # /* config.h. Generated by config.status. */ | |
36737 | if test x"$ac_file" = x-; then | |
36738 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 36739 | else |
e6cc62c6 | 36740 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 36741 | fi |
e6cc62c6 VS |
36742 | cat $tmp/in >>$tmp/config.h |
36743 | rm -f $tmp/in | |
36744 | if test x"$ac_file" != x-; then | |
36745 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
36746 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
36747 | echo "$as_me: $ac_file is unchanged" >&6;} | |
36748 | else | |
36749 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
36750 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36751 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
36752 | X"$ac_file" : 'X\(//\)$' \| \ | |
36753 | X"$ac_file" : 'X\(/\)' \| \ | |
36754 | . : '\(.\)' 2>/dev/null || | |
36755 | echo X"$ac_file" | | |
36756 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36757 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36758 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36759 | /^X\(\/\).*/{ s//\1/; q; } | |
36760 | s/.*/./; q'` | |
36761 | { if $as_mkdir_p; then | |
36762 | mkdir -p "$ac_dir" | |
36763 | else | |
36764 | as_dir="$ac_dir" | |
36765 | as_dirs= | |
36766 | while test ! -d "$as_dir"; do | |
36767 | as_dirs="$as_dir $as_dirs" | |
36768 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36769 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36770 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36771 | X"$as_dir" : 'X\(//\)$' \| \ | |
36772 | X"$as_dir" : 'X\(/\)' \| \ | |
36773 | . : '\(.\)' 2>/dev/null || | |
36774 | echo X"$as_dir" | | |
36775 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36776 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36777 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36778 | /^X\(\/\).*/{ s//\1/; q; } | |
36779 | s/.*/./; q'` | |
36780 | done | |
36781 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36782 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36783 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36784 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 36785 | |
e6cc62c6 VS |
36786 | rm -f $ac_file |
36787 | mv $tmp/config.h $ac_file | |
36788 | fi | |
36789 | else | |
36790 | cat $tmp/config.h | |
36791 | rm -f $tmp/config.h | |
36792 | fi | |
36793 | done | |
36794 | _ACEOF | |
36795 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 36796 | |
e6cc62c6 VS |
36797 | # |
36798 | # CONFIG_COMMANDS section. | |
36799 | # | |
36800 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
36801 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
36802 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36803 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
36804 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36805 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
36806 | X"$ac_dest" : 'X\(//\)$' \| \ | |
36807 | X"$ac_dest" : 'X\(/\)' \| \ | |
36808 | . : '\(.\)' 2>/dev/null || | |
36809 | echo X"$ac_dest" | | |
36810 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36811 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36812 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36813 | /^X\(\/\).*/{ s//\1/; q; } | |
36814 | s/.*/./; q'` | |
36815 | ac_builddir=. | |
36816 | ||
36817 | if test "$ac_dir" != .; then | |
36818 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36819 | # A "../" for each directory in $ac_dir_suffix. | |
36820 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36821 | else | |
36822 | ac_dir_suffix= ac_top_builddir= | |
36823 | fi | |
36824 | ||
36825 | case $srcdir in | |
36826 | .) # No --srcdir option. We are building in place. | |
36827 | ac_srcdir=. | |
36828 | if test -z "$ac_top_builddir"; then | |
36829 | ac_top_srcdir=. | |
36830 | else | |
36831 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36832 | fi ;; | |
36833 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36834 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36835 | ac_top_srcdir=$srcdir ;; | |
36836 | *) # Relative path. | |
36837 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36838 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36839 | esac | |
36840 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36841 | # absolute. | |
36842 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36843 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36844 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36845 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36846 | ||
36847 | ||
36848 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
36849 | echo "$as_me: executing $ac_dest commands" >&6;} | |
36850 | case $ac_dest in | |
36851 | default ) | |
652d930d | 36852 | if test ! -h wx-config; then |
991a5759 | 36853 | chmod +x wx-config |
3a922bb4 RL |
36854 | mv wx-config wx${TOOLCHAIN_NAME}-config |
36855 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 36856 | fi |
665bbe97 | 36857 | |
00cf1208 RR |
36858 | if test ! -d lib; then |
36859 | mkdir lib | |
36860 | fi | |
36861 | if test ! -d lib/wx; then | |
36862 | mkdir lib/wx | |
36863 | fi | |
36864 | if test ! -d lib/wx/include; then | |
36865 | mkdir lib/wx/include | |
36866 | fi | |
3a922bb4 RL |
36867 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
36868 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 36869 | fi |
3a922bb4 RL |
36870 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
36871 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
36872 | fi |
36873 | if test -f setup.h; then | |
3a922bb4 | 36874 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 36875 | fi |
e6cc62c6 VS |
36876 | ;; |
36877 | esac | |
36878 | done | |
36879 | _ACEOF | |
2224580a | 36880 | |
e6cc62c6 | 36881 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 36882 | |
e6cc62c6 VS |
36883 | { (exit 0); exit 0; } |
36884 | _ACEOF | |
36885 | chmod +x $CONFIG_STATUS | |
36886 | ac_clean_files=$ac_clean_files_save | |
36887 | ||
36888 | ||
36889 | # configure is writing to config.log, and then calls config.status. | |
36890 | # config.status does its own redirection, appending to config.log. | |
36891 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
36892 | # by configure, so config.status won't be able to write to it; its | |
36893 | # output is simply discarded. So we exec the FD to /dev/null, | |
36894 | # effectively closing config.log, so it can be properly (re)opened and | |
36895 | # appended to by config.status. When coming back to configure, we | |
36896 | # need to make the FD available again. | |
36897 | if test "$no_create" != yes; then | |
36898 | ac_cs_success=: | |
36899 | ac_config_status_args= | |
36900 | test "$silent" = yes && | |
36901 | ac_config_status_args="$ac_config_status_args --quiet" | |
36902 | exec 5>/dev/null | |
36903 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
36904 | exec 5>>config.log | |
36905 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
36906 | # would make configure fail if this is the last instruction. | |
36907 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
36908 | fi |
36909 | ||
672abd7a VS |
36910 | # |
36911 | # CONFIG_SUBDIRS section. | |
36912 | # | |
36913 | if test "$no_recursion" != yes; then | |
36914 | ||
36915 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
36916 | ac_sub_configure_args= | |
36917 | ac_prev= | |
36918 | for ac_arg in $ac_configure_args; do | |
36919 | if test -n "$ac_prev"; then | |
36920 | ac_prev= | |
36921 | continue | |
36922 | fi | |
36923 | case $ac_arg in | |
36924 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
36925 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
36926 | ac_prev=cache_file ;; | |
36927 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
36928 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
36929 | | --c=*) | |
36930 | ;; | |
36931 | --config-cache | -C) | |
36932 | ;; | |
36933 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
36934 | ac_prev=srcdir ;; | |
36935 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
36936 | ;; | |
36937 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
36938 | ac_prev=prefix ;; | |
36939 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
36940 | ;; | |
36941 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
36942 | esac | |
36943 | done | |
36944 | ||
36945 | # Always prepend --prefix to ensure using the same prefix | |
36946 | # in subdir configurations. | |
36947 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
36948 | ||
36949 | ac_popdir=`pwd` | |
36950 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
36951 | ||
36952 | # Do not complain, so a configure script can configure whichever | |
36953 | # parts of a large source tree are present. | |
36954 | test -d $srcdir/$ac_dir || continue | |
36955 | ||
36956 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
36957 | echo "$as_me: configuring in $ac_dir" >&6;} | |
36958 | { if $as_mkdir_p; then | |
36959 | mkdir -p "$ac_dir" | |
36960 | else | |
36961 | as_dir="$ac_dir" | |
36962 | as_dirs= | |
36963 | while test ! -d "$as_dir"; do | |
36964 | as_dirs="$as_dir $as_dirs" | |
36965 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36966 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36967 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36968 | X"$as_dir" : 'X\(//\)$' \| \ | |
36969 | X"$as_dir" : 'X\(/\)' \| \ | |
36970 | . : '\(.\)' 2>/dev/null || | |
36971 | echo X"$as_dir" | | |
36972 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36973 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36974 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36975 | /^X\(\/\).*/{ s//\1/; q; } | |
36976 | s/.*/./; q'` | |
36977 | done | |
36978 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36979 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36980 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36981 | { (exit 1); exit 1; }; }; } | |
36982 | ||
36983 | ac_builddir=. | |
36984 | ||
36985 | if test "$ac_dir" != .; then | |
36986 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36987 | # A "../" for each directory in $ac_dir_suffix. | |
36988 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36989 | else | |
36990 | ac_dir_suffix= ac_top_builddir= | |
36991 | fi | |
36992 | ||
36993 | case $srcdir in | |
36994 | .) # No --srcdir option. We are building in place. | |
36995 | ac_srcdir=. | |
36996 | if test -z "$ac_top_builddir"; then | |
36997 | ac_top_srcdir=. | |
36998 | else | |
36999 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
37000 | fi ;; | |
37001 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
37002 | ac_srcdir=$srcdir$ac_dir_suffix; | |
37003 | ac_top_srcdir=$srcdir ;; | |
37004 | *) # Relative path. | |
37005 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
37006 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
37007 | esac | |
37008 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
37009 | # absolute. | |
37010 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
37011 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
37012 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
37013 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
37014 | ||
37015 | ||
37016 | cd $ac_dir | |
37017 | ||
37018 | # Check for guested configure; otherwise get Cygnus style configure. | |
37019 | if test -f $ac_srcdir/configure.gnu; then | |
37020 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
37021 | elif test -f $ac_srcdir/configure; then | |
37022 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
37023 | elif test -f $ac_srcdir/configure.in; then | |
37024 | ac_sub_configure=$ac_configure | |
37025 | else | |
37026 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
37027 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
37028 | ac_sub_configure= | |
37029 | fi | |
37030 | ||
37031 | # The recursion is here. | |
37032 | if test -n "$ac_sub_configure"; then | |
37033 | # Make the cache file name correct relative to the subdirectory. | |
37034 | case $cache_file in | |
37035 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
37036 | *) # Relative path. | |
37037 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
37038 | esac | |
37039 | ||
37040 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
37041 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
37042 | # The eval makes quoting arguments work. | |
37043 | eval $ac_sub_configure $ac_sub_configure_args \ | |
37044 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
37045 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
37046 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
37047 | { (exit 1); exit 1; }; } | |
37048 | fi | |
37049 | ||
37050 | cd $ac_popdir | |
37051 | done | |
37052 | fi | |
37053 | ||
8284b0c5 | 37054 | |
2b5f62a0 VZ |
37055 | echo |
37056 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
37057 | echo "" | |
37058 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
9747f85d | 37059 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
37060 | |
37061 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
37062 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
37063 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
37064 | ||
0c98a14e GD |
37065 | echo " What level of wxWindows compatibility should be enabled?" |
37066 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
37067 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
37068 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 37069 | |
2b5f62a0 VZ |
37070 | echo " Which libraries should wxWindows use?" |
37071 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
37072 | echo " png ${wxUSE_LIBPNG-none}" | |
37073 | echo " regex ${wxUSE_REGEX}" | |
37074 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
37075 | echo " zlib ${wxUSE_ZLIB}" | |
fd3d7534 | 37076 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 37077 | echo " expat ${wxUSE_EXPAT}" |
2b5f62a0 VZ |
37078 | |
37079 | echo "" | |
37080 |