]>
Commit | Line | Data |
---|---|---|
a848cd7e SC |
1 | #! /bin/sh |
2 | # From configure.in Id: configure.in. | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
dd8df4fc | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
ac1cb8d3 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
ac1cb8d3 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
26 | |
27 | # Support unset when possible. | |
ac1cb8d3 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
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 | |
ac1cb8d3 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
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 | |
60 | ||
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 | |
66 | ||
67 | ||
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'` | |
79 | ||
80 | ||
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 | |
88 | ||
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 | |
101 | ||
102 | ||
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 | |
119 | ||
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 | |
158 | ||
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 | } | |
188 | ||
189 | ||
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 | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
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 | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
ac1cb8d3 | 224 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
225 | as_mkdir_p=false |
226 | fi | |
227 | ||
228 | as_executable_p="test -f" | |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
235 | |
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
244 | $as_unset CDPATH | |
245 | ||
246 | ||
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
253 | ||
254 | # | |
255 | # Initializations. | |
256 | # | |
257 | ac_default_prefix=/usr/local | |
258 | ac_config_libobj_dir=. | |
259 | cross_compiling=no | |
260 | subdirs= | |
261 | MFLAGS= | |
262 | MAKEFLAGS= | |
263 | SHELL=${CONFIG_SHELL-/bin/sh} | |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
270 | # Identity of this package. | |
77ffb593 JS |
271 | PACKAGE_NAME='wxWidgets' |
272 | PACKAGE_TARNAME='wxwidgets' | |
dd8df4fc VZ |
273 | PACKAGE_VERSION='2.7.0' |
274 | PACKAGE_STRING='wxWidgets 2.7.0' | |
77ffb593 | 275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' |
a848cd7e SC |
276 | |
277 | ac_unique_file="wx-config.in" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
315 | ac_subdirs_all="$ac_subdirs_all src/expat" | |
0ee4059d | 316 | 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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_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_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 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_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_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_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_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_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 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 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
dd8df4fc | 797 | \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
dd8df4fc | 863 | short | recursive ) echo "Configuration of wxWidgets 2.7.0:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
f34ca037 | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
eaff0f0d | 907 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 908 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
36b6448c | 911 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
912 | --enable-dialupman use dialup network classes |
913 | --enable-dynlib use wxLibrary class for DLL loading | |
914 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
915 | --enable-exceptions build exception-safe library | |
916 | --enable-ffile use wxFFile class | |
917 | --enable-file use wxFile class | |
918 | --enable-filesystem use virtual file systems classes | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
921 | --enable-fs_zip use virtual ZIP filesystems | |
922 | --enable-geometry use geometry class | |
923 | --enable-log use logging system | |
924 | --enable-longlong use wxLongLong class | |
925 | --enable-mimetype use wxMimeTypesManager | |
926 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
927 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 928 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 929 | --enable-std_string use standard C++ string classes |
07158944 | 930 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 931 | --enable-stopwatch use wxStopWatch class |
07158944 | 932 | --enable-streams use wxStream etc classes |
a848cd7e SC |
933 | --enable-sysoptions use wxSystemOptions |
934 | --enable-textbuf use wxTextBuffer class | |
935 | --enable-textfile use wxTextFile class | |
936 | --enable-timer use wxTimer class | |
937 | --enable-unicode compile wxString with Unicode support | |
938 | --enable-sound use wxSound class | |
3b57de8b | 939 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 940 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 941 | --enable-zipstream use wxZip streams |
a848cd7e SC |
942 | --enable-url use wxURL class |
943 | --enable-protocol use wxProtocol class | |
944 | --enable-protocol-http HTTP support in wxProtocol | |
945 | --enable-protocol-ftp FTP support in wxProtocol | |
946 | --enable-protocol-file FILE support in wxProtocol | |
947 | --enable-threads use threads | |
948 | --enable-docview use document view architecture | |
949 | --enable-help use help subsystem | |
950 | --enable-mshtmlhelp use MS HTML Help (win32) | |
951 | --enable-html use wxHTML sub-library | |
952 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 953 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
954 | --enable-constraints use layout-constraints system |
955 | --enable-printarch use printing architecture | |
956 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 957 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
958 | --enable-loggui use standard GUI logger |
959 | --enable-logwin use wxLogWindow | |
960 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 961 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
962 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
963 | --enable-prologio not available; see contrib | |
964 | --enable-resources not available; see contrib | |
965 | --enable-clipboard use wxClipboard class | |
966 | --enable-dnd use Drag'n'Drop classes | |
967 | --enable-metafile use win32 metafiles | |
968 | --enable-controls use all usual controls | |
969 | --enable-accel use accelerators | |
970 | --enable-button use wxButton class | |
971 | --enable-bmpbutton use wxBitmapButton class | |
972 | --enable-calendar use wxCalendarCtrl class | |
973 | --enable-caret use wxCaret class | |
974 | --enable-checkbox use wxCheckBox class | |
975 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
976 | --enable-choice use wxChoice class | |
92bbdbcd | 977 | --enable-choicebook use wxChoicebook class |
a848cd7e | 978 | --enable-combobox use wxComboBox class |
da98e9be | 979 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
980 | --enable-display use wxDisplay class |
981 | --enable-gauge use wxGauge class | |
982 | --enable-grid use wxGrid class | |
983 | --enable-imaglist use wxImageList class | |
984 | --enable-listbook use wxListbook class | |
985 | --enable-listbox use wxListBox class | |
986 | --enable-listctrl use wxListCtrl class | |
987 | --enable-notebook use wxNotebook class | |
988 | --enable-radiobox use wxRadioBox class | |
989 | --enable-radiobtn use wxRadioButton class | |
990 | --enable-sash use wxSashWindow class | |
991 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
992 | --enable-slider use wxSlider class | |
993 | --enable-spinbtn use wxSpinButton class | |
994 | --enable-spinctrl use wxSpinCtrl class | |
995 | --enable-splitter use wxSplitterWindow class | |
996 | --enable-statbmp use wxStaticBitmap class | |
997 | --enable-statbox use wxStaticBox class | |
998 | --enable-statline use wxStaticLine class | |
999 | --enable-stattext use wxStaticText class | |
1000 | --enable-statusbar use wxStatusBar class | |
1001 | --enable-tabdialog use wxTabControl class | |
1002 | --enable-textctrl use wxTextCtrl class | |
1003 | --enable-togglebtn use wxToggleButton class | |
1004 | --enable-toolbar use wxToolBar class | |
1005 | --enable-tbarnative use native wxToolBar class | |
1006 | --enable-tbarsmpl use wxToolBarSimple class | |
1007 | --enable-treectrl use wxTreeCtrl class | |
1008 | --enable-tipwindow use wxTipWindow class | |
1009 | --enable-popupwin use wxPopUpWindow class | |
1010 | --enable-commondlg use all common dialogs | |
1011 | --enable-choicedlg use wxChoiceDialog | |
1012 | --enable-coldlg use wxColourDialog | |
1013 | --enable-filedlg use wxFileDialog | |
1014 | --enable-finddlg use wxFindReplaceDialog | |
1015 | --enable-fontdlg use wxFontDialog | |
1016 | --enable-dirdlg use wxDirDialog | |
1017 | --enable-msgdlg use wxMessageDialog | |
1018 | --enable-numberdlg use wxNumberEntryDialog | |
1019 | --enable-splash use wxSplashScreen | |
1020 | --enable-textdlg use wxTextDialog | |
1021 | --enable-tipdlg use startup tips | |
1022 | --enable-progressdlg use wxProgressDialog | |
1023 | --enable-wizarddlg use wxWizard | |
1024 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1025 | --enable-miniframe use wxMiniFrame class | |
1026 | --enable-tooltips use wxToolTip class | |
1027 | --enable-splines use spline drawing code | |
fbe2ca43 | 1028 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1029 | --enable-validators use wxValidator and derived classes |
1030 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1031 | --enable-joystick use wxJoystick |
38b4a946 | 1032 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1033 | --enable-dragimage use wxDragImage |
1034 | --enable-accessibility enable accessibility support | |
38b4a946 | 1035 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1036 | --enable-palette use wxPalette class |
1037 | --enable-image use wxImage class | |
1038 | --enable-gif use gif images (GIF file format) | |
1039 | --enable-pcx use pcx images (PCX file format) | |
1040 | --enable-iff use iff images (IFF file format) | |
1041 | --enable-pnm use pnm images (PNM file format) | |
1042 | --enable-xpm use xpm images (XPM file format) | |
1043 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1044 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1045 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1046 | --disable-largefile omit support for large files | |
1047 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1048 | --disable-gtktest Do not try to compile and run a test GTK program | |
1049 | --disable-sdltest Do not try to compile and run a test SDL program | |
1050 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1051 | --disable-precomp-headers |
1052 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1053 | |
1054 | Optional Packages: | |
1055 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1056 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1057 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1058 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1059 | --with-motif use Motif/Lesstif |
1060 | --with-mac use Mac OS X | |
1061 | --with-cocoa use Cocoa | |
1062 | --with-wine use Wine | |
1063 | --with-msw use MS-Windows | |
1064 | --with-pm use OS/2 Presentation Manager | |
1065 | --with-mgl use SciTech MGL | |
1066 | --with-microwin use MicroWindows | |
1067 | --with-x11 use X11 | |
1068 | --with-libpng use libpng (PNG image format) | |
1069 | --with-libjpeg use libjpeg (JPEG file format) | |
1070 | --with-libtiff use libtiff (TIFF file format) | |
1071 | --with-libxpm use libxpm (XPM file format) | |
1072 | --with-libmspack use libmspack (CHM help files loading) | |
1073 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1074 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1075 | --with-opengl use OpenGL (or Mesa) |
1076 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1077 | --with-regex enable support for wxRegEx class | |
1078 | --with-zlib use zlib for LZW compression | |
1079 | --with-odbc use the IODBC and wxODBC classes | |
1080 | --with-expat enable XML support using expat parser | |
ceec2216 | 1081 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1082 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1083 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1084 | --with-x use the X Window System | |
1085 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1086 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1087 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1088 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1089 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1090 | ||
1091 | Some influential environment variables: | |
dcc1b6ad VS |
1092 | CC C compiler command |
1093 | CFLAGS C compiler flags | |
1094 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1095 | nonstandard directory <lib dir> | |
1096 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1097 | headers in a nonstandard directory <include dir> | |
1098 | CPP C preprocessor | |
1099 | CXX C++ compiler command | |
1100 | CXXFLAGS C++ compiler flags | |
1101 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1102 | |
1103 | Use these variables to override the choices made by `configure' or to help | |
1104 | it to find libraries and programs with nonstandard names/locations. | |
1105 | ||
77ffb593 | 1106 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1107 | _ACEOF |
1108 | fi | |
1109 | ||
1110 | if test "$ac_init_help" = "recursive"; then | |
1111 | # If there are subdirs, report their specific --help. | |
1112 | ac_popdir=`pwd` | |
1113 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1114 | test -d $ac_dir || continue | |
1115 | ac_builddir=. | |
1116 | ||
1117 | if test "$ac_dir" != .; then | |
1118 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1119 | # A "../" for each directory in $ac_dir_suffix. | |
1120 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1121 | else | |
1122 | ac_dir_suffix= ac_top_builddir= | |
1123 | fi | |
1124 | ||
1125 | case $srcdir in | |
1126 | .) # No --srcdir option. We are building in place. | |
1127 | ac_srcdir=. | |
1128 | if test -z "$ac_top_builddir"; then | |
1129 | ac_top_srcdir=. | |
1130 | else | |
1131 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1132 | fi ;; | |
1133 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1134 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1135 | ac_top_srcdir=$srcdir ;; | |
1136 | *) # Relative path. | |
1137 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1138 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1139 | esac | |
ac1cb8d3 VS |
1140 | |
1141 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1142 | # the directories may not exist. | |
1143 | case `pwd` in | |
1144 | .) ac_abs_builddir="$ac_dir";; | |
1145 | *) | |
1146 | case "$ac_dir" in | |
1147 | .) ac_abs_builddir=`pwd`;; | |
1148 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1149 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1150 | esac;; | |
1151 | esac | |
1152 | case $ac_abs_builddir in | |
1153 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1154 | *) | |
1155 | case ${ac_top_builddir}. in | |
1156 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1157 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1158 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1159 | esac;; | |
1160 | esac | |
1161 | case $ac_abs_builddir in | |
1162 | .) ac_abs_srcdir=$ac_srcdir;; | |
1163 | *) | |
1164 | case $ac_srcdir in | |
1165 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1166 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1167 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1168 | esac;; | |
1169 | esac | |
1170 | case $ac_abs_builddir in | |
1171 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1172 | *) | |
1173 | case $ac_top_srcdir in | |
1174 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1175 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1176 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1177 | esac;; | |
1178 | esac | |
a848cd7e SC |
1179 | |
1180 | cd $ac_dir | |
1181 | # Check for guested configure; otherwise get Cygnus style configure. | |
1182 | if test -f $ac_srcdir/configure.gnu; then | |
1183 | echo | |
1184 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1185 | elif test -f $ac_srcdir/configure; then | |
1186 | echo | |
1187 | $SHELL $ac_srcdir/configure --help=recursive | |
1188 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1189 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1190 | echo |
1191 | $ac_configure --help | |
1192 | else | |
1193 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1194 | fi | |
6ebeb4c7 | 1195 | cd "$ac_popdir" |
a848cd7e SC |
1196 | done |
1197 | fi | |
1198 | ||
1199 | test -n "$ac_init_help" && exit 0 | |
1200 | if $ac_init_version; then | |
1201 | cat <<\_ACEOF | |
dd8df4fc | 1202 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1203 | generated by GNU Autoconf 2.59 |
a848cd7e | 1204 | |
ac1cb8d3 | 1205 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1206 | This configure script is free software; the Free Software Foundation |
1207 | gives unlimited permission to copy, distribute and modify it. | |
1208 | _ACEOF | |
1209 | exit 0 | |
1210 | fi | |
1211 | exec 5>config.log | |
1212 | cat >&5 <<_ACEOF | |
1213 | This file contains any messages produced by compilers while | |
1214 | running configure, to aid debugging if configure makes a mistake. | |
1215 | ||
dd8df4fc | 1216 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1217 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1218 | |
1219 | $ $0 $@ | |
1220 | ||
1221 | _ACEOF | |
1222 | { | |
1223 | cat <<_ASUNAME | |
1224 | ## --------- ## | |
1225 | ## Platform. ## | |
1226 | ## --------- ## | |
1227 | ||
1228 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1229 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1230 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1231 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1232 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1233 | ||
1234 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1235 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1236 | ||
1237 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1238 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1239 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1240 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1241 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1242 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1243 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1244 | ||
1245 | _ASUNAME | |
1246 | ||
1247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1248 | for as_dir in $PATH | |
1249 | do | |
1250 | IFS=$as_save_IFS | |
1251 | test -z "$as_dir" && as_dir=. | |
1252 | echo "PATH: $as_dir" | |
1253 | done | |
1254 | ||
1255 | } >&5 | |
1256 | ||
1257 | cat >&5 <<_ACEOF | |
1258 | ||
1259 | ||
1260 | ## ----------- ## | |
1261 | ## Core tests. ## | |
1262 | ## ----------- ## | |
1263 | ||
1264 | _ACEOF | |
1265 | ||
1266 | ||
1267 | # Keep a trace of the command line. | |
1268 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1269 | # Strip out --silent because we don't want to record it for future runs. | |
1270 | # Also quote any args containing shell meta-characters. | |
1271 | # Make two passes to allow for proper duplicate-argument suppression. | |
1272 | ac_configure_args= | |
1273 | ac_configure_args0= | |
1274 | ac_configure_args1= | |
1275 | ac_sep= | |
1276 | ac_must_keep_next=false | |
1277 | for ac_pass in 1 2 | |
1278 | do | |
1279 | for ac_arg | |
1280 | do | |
1281 | case $ac_arg in | |
1282 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1283 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1284 | | -silent | --silent | --silen | --sile | --sil) | |
1285 | continue ;; | |
1286 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1287 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1288 | esac | |
1289 | case $ac_pass in | |
1290 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1291 | 2) | |
1292 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1293 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1294 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1295 | else |
ac1cb8d3 VS |
1296 | case $ac_arg in |
1297 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1298 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1299 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1300 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1301 | case "$ac_configure_args0 " in | |
1302 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1303 | esac | |
1304 | ;; | |
1305 | -* ) ac_must_keep_next=true ;; | |
1306 | esac | |
a848cd7e SC |
1307 | fi |
1308 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1309 | # Get rid of the leading space. | |
1310 | ac_sep=" " | |
1311 | ;; | |
1312 | esac | |
1313 | done | |
1314 | done | |
1315 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1316 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1317 | ||
1318 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1319 | # config.log. We remove comments because anyway the quotes in there | |
1320 | # would cause problems or look ugly. | |
1321 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1322 | # such as our DU 5.0 friend, will then `close' the trap. | |
1323 | trap 'exit_status=$? | |
1324 | # Save into config.log some information that might help in debugging. | |
1325 | { | |
1326 | echo | |
1327 | ||
1328 | cat <<\_ASBOX | |
1329 | ## ---------------- ## | |
1330 | ## Cache variables. ## | |
1331 | ## ---------------- ## | |
1332 | _ASBOX | |
1333 | echo | |
1334 | # The following way of writing the cache mishandles newlines in values, | |
1335 | { | |
1336 | (set) 2>&1 | | |
1337 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1338 | *ac_space=\ *) | |
1339 | sed -n \ | |
ac1cb8d3 VS |
1340 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1341 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1342 | ;; |
1343 | *) | |
1344 | sed -n \ | |
ac1cb8d3 | 1345 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1346 | ;; |
1347 | esac; | |
1348 | } | |
1349 | echo | |
1350 | ||
1351 | cat <<\_ASBOX | |
1352 | ## ----------------- ## | |
1353 | ## Output variables. ## | |
1354 | ## ----------------- ## | |
1355 | _ASBOX | |
1356 | echo | |
1357 | for ac_var in $ac_subst_vars | |
1358 | do | |
1359 | eval ac_val=$`echo $ac_var` | |
1360 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1361 | done | sort | |
1362 | echo | |
1363 | ||
1364 | if test -n "$ac_subst_files"; then | |
1365 | cat <<\_ASBOX | |
1366 | ## ------------- ## | |
1367 | ## Output files. ## | |
1368 | ## ------------- ## | |
1369 | _ASBOX | |
1370 | echo | |
1371 | for ac_var in $ac_subst_files | |
1372 | do | |
1373 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1374 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1375 | done | sort |
1376 | echo | |
1377 | fi | |
1378 | ||
1379 | if test -s confdefs.h; then | |
1380 | cat <<\_ASBOX | |
1381 | ## ----------- ## | |
1382 | ## confdefs.h. ## | |
1383 | ## ----------- ## | |
1384 | _ASBOX | |
1385 | echo | |
1386 | sed "/^$/d" confdefs.h | sort | |
1387 | echo | |
1388 | fi | |
1389 | test "$ac_signal" != 0 && | |
1390 | echo "$as_me: caught signal $ac_signal" | |
1391 | echo "$as_me: exit $exit_status" | |
1392 | } >&5 | |
ac1cb8d3 | 1393 | rm -f core *.core && |
a848cd7e SC |
1394 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1395 | exit $exit_status | |
1396 | ' 0 | |
1397 | for ac_signal in 1 2 13 15; do | |
1398 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1399 | done | |
1400 | ac_signal=0 | |
1401 | ||
1402 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1403 | rm -rf conftest* confdefs.h | |
1404 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1405 | echo >confdefs.h | |
1406 | ||
1407 | # Predefined preprocessor variables. | |
1408 | ||
1409 | cat >>confdefs.h <<_ACEOF | |
1410 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1411 | _ACEOF | |
1412 | ||
1413 | ||
1414 | cat >>confdefs.h <<_ACEOF | |
1415 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1416 | _ACEOF | |
1417 | ||
1418 | ||
1419 | cat >>confdefs.h <<_ACEOF | |
1420 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1421 | _ACEOF | |
1422 | ||
1423 | ||
1424 | cat >>confdefs.h <<_ACEOF | |
1425 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1426 | _ACEOF | |
1427 | ||
1428 | ||
1429 | cat >>confdefs.h <<_ACEOF | |
1430 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1431 | _ACEOF | |
1432 | ||
1433 | ||
1434 | # Let the site file select an alternate cache file if it wants to. | |
1435 | # Prefer explicitly selected file to automatically selected ones. | |
1436 | if test -z "$CONFIG_SITE"; then | |
1437 | if test "x$prefix" != xNONE; then | |
1438 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1439 | else | |
1440 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1441 | fi | |
1442 | fi | |
1443 | for ac_site_file in $CONFIG_SITE; do | |
1444 | if test -r "$ac_site_file"; then | |
1445 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1446 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1447 | sed 's/^/| /' "$ac_site_file" >&5 | |
1448 | . "$ac_site_file" | |
1449 | fi | |
1450 | done | |
1451 | ||
1452 | if test -r "$cache_file"; then | |
1453 | # Some versions of bash will fail to source /dev/null (special | |
1454 | # files actually), so we avoid doing that. | |
1455 | if test -f "$cache_file"; then | |
1456 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1457 | echo "$as_me: loading cache $cache_file" >&6;} | |
1458 | case $cache_file in | |
1459 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1460 | *) . ./$cache_file;; | |
1461 | esac | |
1462 | fi | |
1463 | else | |
1464 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1465 | echo "$as_me: creating cache $cache_file" >&6;} | |
1466 | >$cache_file | |
1467 | fi | |
1468 | ||
1469 | # Check that the precious variables saved in the cache have kept the same | |
1470 | # value. | |
1471 | ac_cache_corrupted=false | |
1472 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1473 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1474 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1475 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1476 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1477 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1478 | case $ac_old_set,$ac_new_set in | |
1479 | set,) | |
1480 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1481 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1482 | ac_cache_corrupted=: ;; | |
1483 | ,set) | |
1484 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1485 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1486 | ac_cache_corrupted=: ;; | |
1487 | ,);; | |
1488 | *) | |
1489 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1490 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1491 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1492 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1493 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1494 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1495 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1496 | ac_cache_corrupted=: |
a848cd7e SC |
1497 | fi;; |
1498 | esac | |
1499 | # Pass precious variables to config.status. | |
1500 | if test "$ac_new_set" = set; then | |
1501 | case $ac_new_val in | |
1502 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1503 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1504 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1505 | esac | |
1506 | case " $ac_configure_args " in | |
1507 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1508 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1509 | esac | |
1510 | fi | |
1511 | done | |
1512 | if $ac_cache_corrupted; then | |
1513 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1514 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1515 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1516 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1517 | { (exit 1); exit 1; }; } | |
1518 | fi | |
1519 | ||
1520 | ac_ext=c | |
1521 | ac_cpp='$CPP $CPPFLAGS' | |
1522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ||
1555 | ac_aux_dir= | |
1556 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1557 | if test -f $ac_dir/install-sh; then | |
1558 | ac_aux_dir=$ac_dir | |
1559 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1560 | break | |
1561 | elif test -f $ac_dir/install.sh; then | |
1562 | ac_aux_dir=$ac_dir | |
1563 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1564 | break | |
1565 | elif test -f $ac_dir/shtool; then | |
1566 | ac_aux_dir=$ac_dir | |
1567 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1568 | break | |
1569 | fi | |
1570 | done | |
1571 | if test -z "$ac_aux_dir"; then | |
1572 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1573 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1574 | { (exit 1); exit 1; }; } | |
1575 | fi | |
1576 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1577 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1578 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1579 | ||
1580 | # Make sure we can run config.sub. | |
1581 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1582 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1583 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1584 | { (exit 1); exit 1; }; } | |
1585 | ||
1586 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1587 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1588 | if test "${ac_cv_build+set}" = set; then | |
1589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1590 | else | |
1591 | ac_cv_build_alias=$build_alias | |
1592 | test -z "$ac_cv_build_alias" && | |
1593 | ac_cv_build_alias=`$ac_config_guess` | |
1594 | test -z "$ac_cv_build_alias" && | |
1595 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1596 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1597 | { (exit 1); exit 1; }; } | |
1598 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1599 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1600 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1601 | { (exit 1); exit 1; }; } | |
1602 | ||
1603 | fi | |
1604 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1605 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1606 | build=$ac_cv_build | |
1607 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1608 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1609 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1610 | ||
1611 | ||
1612 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1613 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1614 | if test "${ac_cv_host+set}" = set; then | |
1615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1616 | else | |
1617 | ac_cv_host_alias=$host_alias | |
1618 | test -z "$ac_cv_host_alias" && | |
1619 | ac_cv_host_alias=$ac_cv_build_alias | |
1620 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1621 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1622 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1623 | { (exit 1); exit 1; }; } | |
1624 | ||
1625 | fi | |
1626 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1627 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1628 | host=$ac_cv_host | |
1629 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1630 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1631 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1632 | ||
1633 | ||
1634 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1635 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1636 | if test "${ac_cv_target+set}" = set; then | |
1637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1638 | else | |
1639 | ac_cv_target_alias=$target_alias | |
1640 | test "x$ac_cv_target_alias" = "x" && | |
1641 | ac_cv_target_alias=$ac_cv_host_alias | |
1642 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1643 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1644 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1645 | { (exit 1); exit 1; }; } | |
1646 | ||
1647 | fi | |
1648 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1649 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1650 | target=$ac_cv_target | |
1651 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1652 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1653 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1654 | ||
1655 | ||
1656 | # The aliases save the names the user supplied, while $host etc. | |
1657 | # will get canonicalized. | |
1658 | test -n "$target_alias" && | |
1659 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1660 | NONENONEs,x,x, && | |
1661 | program_prefix=${target_alias}- | |
1662 | ||
1663 | ||
1664 | ||
ceec2216 | 1665 | wx_major_version_number=2 |
dd8df4fc VZ |
1666 | wx_minor_version_number=7 |
1667 | wx_release_number=0 | |
1668 | wx_subrelease_number=0 | |
a848cd7e | 1669 | |
ceec2216 RL |
1670 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1671 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1672 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1673 | |
ceec2216 | 1674 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1675 | |
a848cd7e SC |
1676 | |
1677 | ||
1678 | ||
1679 | USE_UNIX=1 | |
1680 | USE_OS2=0 | |
1681 | USE_WIN32=0 | |
1682 | USE_DOS=0 | |
1683 | USE_BEOS=0 | |
1684 | USE_MAC=0 | |
1685 | ||
1686 | USE_AIX= | |
1687 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1688 | USE_GNU= USE_HPUX= | |
1689 | USE_LINUX= | |
1690 | USE_NETBSD= | |
1691 | USE_OPENBSD= | |
1692 | USE_OSF= USE_SGI= | |
1693 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1694 | USE_ULTRIX= | |
1695 | USE_UNIXWARE= | |
1696 | ||
1697 | USE_ALPHA= | |
1698 | ||
1699 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1700 | ||
1701 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1702 | ||
1703 | DEFAULT_wxUSE_COCOA=0 | |
1704 | DEFAULT_wxUSE_GTK=0 | |
1705 | DEFAULT_wxUSE_MAC=0 | |
1706 | DEFAULT_wxUSE_MGL=0 | |
1707 | DEFAULT_wxUSE_MICROWIN=0 | |
1708 | DEFAULT_wxUSE_MOTIF=0 | |
1709 | DEFAULT_wxUSE_MSW=0 | |
1710 | DEFAULT_wxUSE_PM=0 | |
1711 | DEFAULT_wxUSE_X11=0 | |
1712 | ||
1713 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1720 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1721 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1722 | ||
1723 | PROGRAM_EXT= | |
1724 | SO_SUFFIX=so | |
1725 | SAMPLES_RPATH_FLAG= | |
1726 | SAMPLES_RPATH_POSTLINK= | |
1727 | ||
a03b8b04 RD |
1728 | DEFAULT_STD_FLAG=yes |
1729 | ||
a848cd7e SC |
1730 | case "${host}" in |
1731 | *-hp-hpux* ) | |
1732 | USE_HPUX=1 | |
1733 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1734 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1735 | SO_SUFFIX=sl | |
1736 | cat >>confdefs.h <<\_ACEOF | |
1737 | #define __HPUX__ 1 | |
1738 | _ACEOF | |
1739 | ||
1740 | ;; | |
1741 | *-*-linux* ) | |
1742 | USE_LINUX=1 | |
1743 | cat >>confdefs.h <<\_ACEOF | |
1744 | #define __LINUX__ 1 | |
1745 | _ACEOF | |
1746 | ||
1747 | TMP=`uname -m` | |
1748 | if test "x$TMP" = "xalpha"; then | |
1749 | USE_ALPHA=1 | |
1750 | cat >>confdefs.h <<\_ACEOF | |
1751 | #define __ALPHA__ 1 | |
1752 | _ACEOF | |
1753 | ||
1754 | fi | |
1755 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1756 | ;; | |
1757 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1758 | USE_GNU=1 | |
1759 | TMP=`uname -m` | |
1760 | if test "x$TMP" = "xalpha"; then | |
1761 | USE_ALPHA=1 | |
1762 | cat >>confdefs.h <<\_ACEOF | |
1763 | #define __ALPHA__ 1 | |
1764 | _ACEOF | |
1765 | ||
1766 | fi | |
1767 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1768 | ;; | |
1769 | *-*-irix5* | *-*-irix6* ) | |
1770 | USE_SGI=1 | |
1771 | USE_SVR4=1 | |
1772 | cat >>confdefs.h <<\_ACEOF | |
1773 | #define __SGI__ 1 | |
1774 | _ACEOF | |
1775 | ||
1776 | cat >>confdefs.h <<\_ACEOF | |
1777 | #define __SVR4__ 1 | |
1778 | _ACEOF | |
1779 | ||
1780 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1781 | ;; | |
1782 | *-*-solaris2* ) | |
1783 | USE_SUN=1 | |
1784 | USE_SOLARIS=1 | |
1785 | USE_SVR4=1 | |
1786 | cat >>confdefs.h <<\_ACEOF | |
1787 | #define __SUN__ 1 | |
1788 | _ACEOF | |
1789 | ||
1790 | cat >>confdefs.h <<\_ACEOF | |
1791 | #define __SOLARIS__ 1 | |
1792 | _ACEOF | |
1793 | ||
1794 | cat >>confdefs.h <<\_ACEOF | |
1795 | #define __SVR4__ 1 | |
1796 | _ACEOF | |
1797 | ||
1798 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1799 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1800 | ;; | |
1801 | *-*-sunos4* ) | |
1802 | USE_SUN=1 | |
1803 | USE_SUNOS=1 | |
1804 | USE_BSD=1 | |
1805 | cat >>confdefs.h <<\_ACEOF | |
1806 | #define __SUN__ 1 | |
1807 | _ACEOF | |
1808 | ||
1809 | cat >>confdefs.h <<\_ACEOF | |
1810 | #define __SUNOS__ 1 | |
1811 | _ACEOF | |
1812 | ||
1813 | cat >>confdefs.h <<\_ACEOF | |
1814 | #define __BSD__ 1 | |
1815 | _ACEOF | |
1816 | ||
1817 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1818 | ;; | |
1819 | *-*-freebsd*) | |
1820 | USE_BSD=1 | |
1821 | USE_FREEBSD=1 | |
1822 | cat >>confdefs.h <<\_ACEOF | |
1823 | #define __FREEBSD__ 1 | |
1824 | _ACEOF | |
1825 | ||
1826 | cat >>confdefs.h <<\_ACEOF | |
1827 | #define __BSD__ 1 | |
1828 | _ACEOF | |
1829 | ||
1830 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1831 | ;; | |
1832 | *-*-openbsd*) | |
1833 | USE_BSD=1 | |
1834 | USE_OPENBSD=1 | |
1835 | cat >>confdefs.h <<\_ACEOF | |
1836 | #define __OPENBSD__ 1 | |
1837 | _ACEOF | |
1838 | ||
1839 | cat >>confdefs.h <<\_ACEOF | |
1840 | #define __BSD__ 1 | |
1841 | _ACEOF | |
1842 | ||
1843 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1844 | ;; | |
1845 | *-*-netbsd*) | |
1846 | USE_BSD=1 | |
1847 | USE_NETBSD=1 | |
1848 | cat >>confdefs.h <<\_ACEOF | |
1849 | #define __NETBSD__ 1 | |
1850 | _ACEOF | |
1851 | ||
1852 | cat >>confdefs.h <<\_ACEOF | |
1853 | #define __BSD__ 1 | |
1854 | _ACEOF | |
1855 | ||
1856 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1857 | ;; | |
1858 | *-*-osf* ) | |
1859 | USE_ALPHA=1 | |
1860 | USE_OSF=1 | |
1861 | cat >>confdefs.h <<\_ACEOF | |
1862 | #define __ALPHA__ 1 | |
1863 | _ACEOF | |
1864 | ||
1865 | cat >>confdefs.h <<\_ACEOF | |
1866 | #define __OSF__ 1 | |
1867 | _ACEOF | |
1868 | ||
1869 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1870 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1871 | ;; | |
1872 | *-*-dgux5* ) | |
1873 | USE_ALPHA=1 | |
1874 | USE_SVR4=1 | |
1875 | cat >>confdefs.h <<\_ACEOF | |
1876 | #define __ALPHA__ 1 | |
1877 | _ACEOF | |
1878 | ||
1879 | cat >>confdefs.h <<\_ACEOF | |
1880 | #define __SVR4__ 1 | |
1881 | _ACEOF | |
1882 | ||
1883 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1884 | ;; | |
1885 | *-*-sysv5* ) | |
1886 | USE_SYSV=1 | |
1887 | USE_SVR4=1 | |
1888 | cat >>confdefs.h <<\_ACEOF | |
1889 | #define __SYSV__ 1 | |
1890 | _ACEOF | |
1891 | ||
1892 | cat >>confdefs.h <<\_ACEOF | |
1893 | #define __SVR4__ 1 | |
1894 | _ACEOF | |
1895 | ||
1896 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1897 | ;; | |
1898 | *-*-aix* ) | |
1899 | USE_AIX=1 | |
1900 | USE_SYSV=1 | |
1901 | USE_SVR4=1 | |
1902 | SO_SUFFIX=a | |
1903 | cat >>confdefs.h <<\_ACEOF | |
1904 | #define __AIX__ 1 | |
1905 | _ACEOF | |
1906 | ||
1907 | cat >>confdefs.h <<\_ACEOF | |
1908 | #define __SYSV__ 1 | |
1909 | _ACEOF | |
1910 | ||
1911 | cat >>confdefs.h <<\_ACEOF | |
1912 | #define __SVR4__ 1 | |
1913 | _ACEOF | |
1914 | ||
1915 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1916 | ;; | |
1917 | ||
1918 | *-*-*UnixWare*) | |
1919 | USE_SYSV=1 | |
1920 | USE_SVR4=1 | |
1921 | USE_UNIXWARE=1 | |
1922 | cat >>confdefs.h <<\_ACEOF | |
1923 | #define __UNIXWARE__ 1 | |
1924 | _ACEOF | |
1925 | ||
1926 | ;; | |
1927 | ||
1928 | *-*-cygwin* | *-*-mingw32* ) | |
1929 | SO_SUFFIX=dll | |
1930 | PROGRAM_EXT=".exe" | |
a848cd7e | 1931 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1932 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1933 | ;; |
1934 | ||
1935 | *-pc-msdosdjgpp ) | |
1936 | USE_UNIX=0 | |
1937 | USE_DOS=1 | |
1938 | cat >>confdefs.h <<\_ACEOF | |
1939 | #define __DOS__ 1 | |
1940 | _ACEOF | |
1941 | ||
1942 | PROGRAM_EXT=".exe" | |
1943 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1944 | ;; |
1945 | ||
1946 | *-pc-os2_emx | *-pc-os2-emx ) | |
1947 | cat >>confdefs.h <<\_ACEOF | |
1948 | #define __EMX__ 1 | |
1949 | _ACEOF | |
1950 | ||
1951 | USE_OS2=1 | |
1952 | cat >>confdefs.h <<\_ACEOF | |
1953 | #define __OS2__ 1 | |
1954 | _ACEOF | |
1955 | ||
1956 | PROGRAM_EXT=".exe" | |
1957 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1958 | CXX=gcc | |
1959 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1960 | ac_executable_extensions=".exe" | |
1961 | export ac_executable_extensions | |
1962 | ac_save_IFS="$IFS" | |
1963 | IFS='\\' | |
1964 | ac_TEMP_PATH= | |
1965 | for ac_dir in $PATH; do | |
1966 | IFS=$ac_save_IFS | |
1967 | if test -z "$ac_TEMP_PATH"; then | |
1968 | ac_TEMP_PATH="$ac_dir" | |
1969 | else | |
1970 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1971 | fi | |
1972 | done | |
1973 | export PATH="$ac_TEMP_PATH" | |
1974 | unset ac_TEMP_PATH | |
a03b8b04 | 1975 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1976 | ;; |
1977 | ||
cfda0ea8 | 1978 | *-*-darwin* ) |
a848cd7e SC |
1979 | USE_BSD=1 |
1980 | USE_DARWIN=1 | |
1981 | SO_SUFFIX=dylib | |
1982 | cat >>confdefs.h <<\_ACEOF | |
1983 | #define __BSD__ 1 | |
1984 | _ACEOF | |
1985 | ||
1986 | cat >>confdefs.h <<\_ACEOF | |
1987 | #define __DARWIN__ 1 | |
a848cd7e SC |
1988 | _ACEOF |
1989 | ||
1990 | cat >>confdefs.h <<\_ACEOF | |
1991 | #define TARGET_CARBON 1 | |
1992 | _ACEOF | |
1993 | ||
1994 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 1995 | DEFAULT_STD_FLAG=no |
a848cd7e | 1996 | ;; |
1e9e8aba DE |
1997 | powerpc-apple-macos* ) |
1998 | USE_UNIX=0 | |
1999 | ac_cv_c_bigendian=yes | |
2000 | SO_SUFFIX=shlib | |
2001 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2002 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2003 | ;; |
a848cd7e SC |
2004 | |
2005 | *-*-beos* ) | |
2006 | USE_BEOS=1 | |
2007 | cat >>confdefs.h <<\_ACEOF | |
2008 | #define __BEOS__ 1 | |
2009 | _ACEOF | |
2010 | ||
2011 | ;; | |
2012 | ||
2013 | *) | |
2014 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2015 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2016 | { (exit 1); exit 1; }; } | |
2017 | esac | |
2018 | ||
2019 | ||
2020 | ||
2021 | ||
2022 | wx_arg_cache_file="configarg.cache" | |
2023 | echo "loading argument cache $wx_arg_cache_file" | |
2024 | rm -f ${wx_arg_cache_file}.tmp | |
2025 | touch ${wx_arg_cache_file}.tmp | |
2026 | touch ${wx_arg_cache_file} | |
2027 | ||
2028 | ||
2029 | DEBUG_CONFIGURE=0 | |
2030 | if test $DEBUG_CONFIGURE = 1; then | |
2031 | DEFAULT_wxUSE_UNIVERSAL=no | |
2032 | DEFAULT_wxUSE_STL=no | |
2033 | ||
2034 | DEFAULT_wxUSE_NANOX=no | |
2035 | ||
2036 | DEFAULT_wxUSE_THREADS=yes | |
2037 | ||
2038 | DEFAULT_wxUSE_SHARED=yes | |
2039 | DEFAULT_wxUSE_OPTIMISE=no | |
2040 | DEFAULT_wxUSE_PROFILE=no | |
2041 | DEFAULT_wxUSE_NO_DEPS=no | |
2042 | DEFAULT_wxUSE_NO_RTTI=no | |
2043 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2044 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2045 | DEFAULT_wxUSE_PERMISSIVE=no |
2046 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2047 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2048 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2049 | DEFAULT_wxUSE_MEM_TRACING=no | |
2050 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2051 | DEFAULT_wxUSE_DMALLOC=no | |
2052 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2053 | ||
2054 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2055 | DEFAULT_wxUSE_LOG=yes | |
2056 | DEFAULT_wxUSE_LOGWINDOW=no | |
2057 | DEFAULT_wxUSE_LOGGUI=no | |
2058 | DEFAULT_wxUSE_LOGDIALOG=no | |
2059 | ||
2060 | DEFAULT_wxUSE_GUI=yes | |
2061 | DEFAULT_wxUSE_CONTROLS=no | |
2062 | ||
2063 | DEFAULT_wxUSE_REGEX=no | |
2064 | DEFAULT_wxUSE_XML=no | |
2065 | DEFAULT_wxUSE_EXPAT=no | |
2066 | DEFAULT_wxUSE_ZLIB=no | |
2067 | DEFAULT_wxUSE_LIBPNG=no | |
2068 | DEFAULT_wxUSE_LIBJPEG=no | |
2069 | DEFAULT_wxUSE_LIBTIFF=no | |
2070 | DEFAULT_wxUSE_LIBXPM=no | |
2071 | DEFAULT_wxUSE_LIBMSPACK=no | |
2072 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2073 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2074 | DEFAULT_wxUSE_ODBC=no |
2075 | DEFAULT_wxUSE_OPENGL=no | |
2076 | ||
2077 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2078 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2079 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2080 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2081 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2082 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2083 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2084 | DEFAULT_wxUSE_DATETIME=no | |
2085 | DEFAULT_wxUSE_TIMER=no | |
2086 | DEFAULT_wxUSE_STOPWATCH=no | |
2087 | DEFAULT_wxUSE_FILE=no | |
2088 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2089 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2090 | DEFAULT_wxUSE_TEXTBUFFER=no |
2091 | DEFAULT_wxUSE_TEXTFILE=no | |
2092 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2093 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2094 | DEFAULT_wxUSE_INTL=no |
2095 | DEFAULT_wxUSE_CONFIG=no | |
2096 | DEFAULT_wxUSE_FONTMAP=no | |
2097 | DEFAULT_wxUSE_STREAMS=no | |
2098 | DEFAULT_wxUSE_SOCKETS=no | |
2099 | DEFAULT_wxUSE_OLE=no | |
2100 | DEFAULT_wxUSE_DATAOBJ=no | |
2101 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2102 | DEFAULT_wxUSE_JOYSTICK=no | |
2103 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2104 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2105 | DEFAULT_wxUSE_LONGLONG=no | |
2106 | DEFAULT_wxUSE_GEOMETRY=no | |
2107 | ||
2108 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2109 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2110 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2111 | ||
2112 | DEFAULT_wxUSE_CLIPBOARD=no | |
2113 | DEFAULT_wxUSE_TOOLTIPS=no | |
2114 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2115 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2116 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2117 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2118 | |
8a7b1113 | 2119 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2120 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2121 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2122 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2123 | ||
2124 | DEFAULT_wxUSE_RESOURCES=no | |
2125 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2126 | DEFAULT_wxUSE_IPC=no | |
2127 | DEFAULT_wxUSE_HELP=no | |
2128 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2129 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2130 | DEFAULT_wxUSE_TREELAYOUT=no | |
2131 | DEFAULT_wxUSE_METAFILE=no | |
2132 | DEFAULT_wxUSE_MIMETYPE=no | |
2133 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2134 | DEFAULT_wxUSE_PROTOCOL=no | |
2135 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2136 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2137 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2138 | DEFAULT_wxUSE_URL=no | |
2139 | ||
2140 | DEFAULT_wxUSE_COMMONDLGS=no | |
2141 | DEFAULT_wxUSE_CHOICEDLG=no | |
2142 | DEFAULT_wxUSE_COLOURDLG=no | |
2143 | DEFAULT_wxUSE_DIRDLG=no | |
2144 | DEFAULT_wxUSE_FILEDLG=no | |
2145 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2146 | DEFAULT_wxUSE_FONTDLG=no | |
2147 | DEFAULT_wxUSE_MSGDLG=no | |
2148 | DEFAULT_wxUSE_NUMBERDLG=no | |
2149 | DEFAULT_wxUSE_TEXTDLG=no | |
2150 | DEFAULT_wxUSE_SPLASH=no | |
2151 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2152 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2153 | DEFAULT_wxUSE_WIZARDDLG=no | |
2154 | ||
2155 | DEFAULT_wxUSE_MENUS=no | |
2156 | DEFAULT_wxUSE_MINIFRAME=no | |
2157 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2158 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2159 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2160 | DEFAULT_wxUSE_FILESYSTEM=no |
2161 | DEFAULT_wxUSE_FS_INET=no | |
2162 | DEFAULT_wxUSE_FS_ZIP=no | |
2163 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2164 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2165 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2166 | DEFAULT_wxUSE_VALIDATORS=no |
2167 | ||
2168 | DEFAULT_wxUSE_ACCEL=no | |
2169 | DEFAULT_wxUSE_BUTTON=no | |
2170 | DEFAULT_wxUSE_BMPBUTTON=no | |
2171 | DEFAULT_wxUSE_CALCTRL=no | |
2172 | DEFAULT_wxUSE_CARET=no | |
2173 | DEFAULT_wxUSE_CHECKBOX=no | |
2174 | DEFAULT_wxUSE_CHECKLST=no | |
2175 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2176 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2177 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2178 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2179 | DEFAULT_wxUSE_DISPLAY=no |
2180 | DEFAULT_wxUSE_GAUGE=no | |
2181 | DEFAULT_wxUSE_GRID=no | |
2182 | DEFAULT_wxUSE_IMAGLIST=no | |
2183 | DEFAULT_wxUSE_LISTBOOK=no | |
2184 | DEFAULT_wxUSE_LISTBOX=no | |
2185 | DEFAULT_wxUSE_LISTCTRL=no | |
2186 | DEFAULT_wxUSE_NOTEBOOK=no | |
2187 | DEFAULT_wxUSE_RADIOBOX=no | |
2188 | DEFAULT_wxUSE_RADIOBTN=no | |
2189 | DEFAULT_wxUSE_SASH=no | |
2190 | DEFAULT_wxUSE_SCROLLBAR=no | |
2191 | DEFAULT_wxUSE_SLIDER=no | |
2192 | DEFAULT_wxUSE_SPINBTN=no | |
2193 | DEFAULT_wxUSE_SPINCTRL=no | |
2194 | DEFAULT_wxUSE_SPLITTER=no | |
2195 | DEFAULT_wxUSE_STATBMP=no | |
2196 | DEFAULT_wxUSE_STATBOX=no | |
2197 | DEFAULT_wxUSE_STATLINE=no | |
2198 | DEFAULT_wxUSE_STATTEXT=no | |
2199 | DEFAULT_wxUSE_STATUSBAR=yes | |
2200 | DEFAULT_wxUSE_TABDIALOG=no | |
2201 | DEFAULT_wxUSE_TEXTCTRL=no | |
2202 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2203 | DEFAULT_wxUSE_TOOLBAR=no | |
2204 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2205 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2206 | DEFAULT_wxUSE_TREECTRL=no | |
2207 | DEFAULT_wxUSE_POPUPWIN=no | |
2208 | DEFAULT_wxUSE_TIPWINDOW=no | |
2209 | ||
2210 | DEFAULT_wxUSE_UNICODE=no | |
2211 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2212 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2213 | ||
2214 | DEFAULT_wxUSE_PALETTE=no | |
2215 | DEFAULT_wxUSE_IMAGE=no | |
2216 | DEFAULT_wxUSE_GIF=no | |
2217 | DEFAULT_wxUSE_PCX=no | |
2218 | DEFAULT_wxUSE_PNM=no | |
2219 | DEFAULT_wxUSE_IFF=no | |
2220 | DEFAULT_wxUSE_XPM=no | |
2221 | DEFAULT_wxUSE_ICO_CUR=no | |
2222 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2223 | ||
2224 | DEFAULT_wxUSE_MONOLITHIC=no | |
2225 | DEFAULT_wxUSE_PLUGINS=no | |
2226 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2227 | else | |
2228 | DEFAULT_wxUSE_UNIVERSAL=no | |
2229 | DEFAULT_wxUSE_STL=no | |
2230 | ||
2231 | DEFAULT_wxUSE_NANOX=no | |
2232 | ||
2233 | DEFAULT_wxUSE_THREADS=yes | |
2234 | ||
2235 | DEFAULT_wxUSE_SHARED=yes | |
2236 | DEFAULT_wxUSE_OPTIMISE=yes | |
2237 | DEFAULT_wxUSE_PROFILE=no | |
2238 | DEFAULT_wxUSE_NO_DEPS=no | |
2239 | DEFAULT_wxUSE_NO_RTTI=no | |
2240 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2241 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2242 | DEFAULT_wxUSE_PERMISSIVE=no |
2243 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2244 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2245 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2246 | DEFAULT_wxUSE_MEM_TRACING=no | |
2247 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2248 | DEFAULT_wxUSE_DMALLOC=no | |
2249 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2250 | ||
2251 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2252 | DEFAULT_wxUSE_LOG=yes | |
2253 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2254 | DEFAULT_wxUSE_LOGGUI=yes | |
2255 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2256 | ||
2257 | DEFAULT_wxUSE_GUI=yes | |
2258 | ||
2259 | DEFAULT_wxUSE_REGEX=yes | |
2260 | DEFAULT_wxUSE_XML=yes | |
2261 | DEFAULT_wxUSE_EXPAT=yes | |
2262 | DEFAULT_wxUSE_ZLIB=yes | |
2263 | DEFAULT_wxUSE_LIBPNG=yes | |
2264 | DEFAULT_wxUSE_LIBJPEG=yes | |
2265 | DEFAULT_wxUSE_LIBTIFF=yes | |
2266 | DEFAULT_wxUSE_LIBXPM=yes | |
2267 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2268 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2269 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e | 2270 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2271 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2272 | |
2273 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2274 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2275 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2276 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2277 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2278 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2279 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2280 | DEFAULT_wxUSE_DATETIME=yes | |
2281 | DEFAULT_wxUSE_TIMER=yes | |
2282 | DEFAULT_wxUSE_STOPWATCH=yes | |
2283 | DEFAULT_wxUSE_FILE=yes | |
2284 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2285 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2286 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2287 | DEFAULT_wxUSE_TEXTFILE=yes | |
2288 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2289 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2290 | DEFAULT_wxUSE_INTL=yes |
2291 | DEFAULT_wxUSE_CONFIG=yes | |
2292 | DEFAULT_wxUSE_FONTMAP=yes | |
2293 | DEFAULT_wxUSE_STREAMS=yes | |
2294 | DEFAULT_wxUSE_SOCKETS=yes | |
2295 | DEFAULT_wxUSE_OLE=yes | |
2296 | DEFAULT_wxUSE_DATAOBJ=yes | |
2297 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2298 | DEFAULT_wxUSE_JOYSTICK=yes | |
2299 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2300 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2301 | DEFAULT_wxUSE_LONGLONG=yes | |
2302 | DEFAULT_wxUSE_GEOMETRY=yes | |
2303 | ||
2304 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2305 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2306 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2307 | ||
2308 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2309 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2310 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2311 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2312 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2313 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2314 | |
8a7b1113 | 2315 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2316 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2317 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2318 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2319 | ||
2320 | DEFAULT_wxUSE_RESOURCES=no | |
2321 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2322 | DEFAULT_wxUSE_IPC=yes | |
2323 | DEFAULT_wxUSE_HELP=yes | |
2324 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2325 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2326 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2327 | DEFAULT_wxUSE_METAFILE=yes | |
2328 | DEFAULT_wxUSE_MIMETYPE=yes | |
2329 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2330 | DEFAULT_wxUSE_PROTOCOL=yes | |
2331 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2332 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2333 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2334 | DEFAULT_wxUSE_URL=yes | |
2335 | ||
2336 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2337 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2338 | DEFAULT_wxUSE_COLOURDLG=yes | |
2339 | DEFAULT_wxUSE_DIRDLG=yes | |
2340 | DEFAULT_wxUSE_FILEDLG=yes | |
2341 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2342 | DEFAULT_wxUSE_FONTDLG=yes | |
2343 | DEFAULT_wxUSE_MSGDLG=yes | |
2344 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2345 | DEFAULT_wxUSE_TEXTDLG=yes | |
2346 | DEFAULT_wxUSE_SPLASH=yes | |
2347 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2348 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2349 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2350 | ||
2351 | DEFAULT_wxUSE_MENUS=yes | |
2352 | DEFAULT_wxUSE_MINIFRAME=yes | |
2353 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2354 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2355 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2356 | DEFAULT_wxUSE_FILESYSTEM=yes |
2357 | DEFAULT_wxUSE_FS_INET=yes | |
2358 | DEFAULT_wxUSE_FS_ZIP=yes | |
2359 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2360 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2361 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2362 | DEFAULT_wxUSE_VALIDATORS=yes |
2363 | ||
2364 | DEFAULT_wxUSE_ACCEL=yes | |
2365 | DEFAULT_wxUSE_BUTTON=yes | |
2366 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2367 | DEFAULT_wxUSE_CALCTRL=yes | |
2368 | DEFAULT_wxUSE_CARET=yes | |
2369 | DEFAULT_wxUSE_CHECKBOX=yes | |
2370 | DEFAULT_wxUSE_CHECKLST=yes | |
2371 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2372 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2373 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2374 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2375 | DEFAULT_wxUSE_DISPLAY=yes |
2376 | DEFAULT_wxUSE_GAUGE=yes | |
2377 | DEFAULT_wxUSE_GRID=yes | |
2378 | DEFAULT_wxUSE_IMAGLIST=yes | |
2379 | DEFAULT_wxUSE_LISTBOOK=yes | |
2380 | DEFAULT_wxUSE_LISTBOX=yes | |
2381 | DEFAULT_wxUSE_LISTCTRL=yes | |
2382 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2383 | DEFAULT_wxUSE_RADIOBOX=yes | |
2384 | DEFAULT_wxUSE_RADIOBTN=yes | |
2385 | DEFAULT_wxUSE_SASH=yes | |
2386 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2387 | DEFAULT_wxUSE_SLIDER=yes | |
2388 | DEFAULT_wxUSE_SPINBTN=yes | |
2389 | DEFAULT_wxUSE_SPINCTRL=yes | |
2390 | DEFAULT_wxUSE_SPLITTER=yes | |
2391 | DEFAULT_wxUSE_STATBMP=yes | |
2392 | DEFAULT_wxUSE_STATBOX=yes | |
2393 | DEFAULT_wxUSE_STATLINE=yes | |
2394 | DEFAULT_wxUSE_STATTEXT=yes | |
2395 | DEFAULT_wxUSE_STATUSBAR=yes | |
2396 | DEFAULT_wxUSE_TABDIALOG=no | |
2397 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2398 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2399 | DEFAULT_wxUSE_TOOLBAR=yes | |
2400 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2401 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2402 | DEFAULT_wxUSE_TREECTRL=yes | |
2403 | DEFAULT_wxUSE_POPUPWIN=yes | |
2404 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2405 | ||
78de529b | 2406 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2407 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2408 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2409 | ||
2410 | DEFAULT_wxUSE_PALETTE=yes | |
2411 | DEFAULT_wxUSE_IMAGE=yes | |
2412 | DEFAULT_wxUSE_GIF=yes | |
2413 | DEFAULT_wxUSE_PCX=yes | |
2414 | DEFAULT_wxUSE_IFF=no | |
2415 | DEFAULT_wxUSE_PNM=yes | |
2416 | DEFAULT_wxUSE_XPM=yes | |
2417 | DEFAULT_wxUSE_ICO_CUR=yes | |
2418 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2419 | ||
2420 | DEFAULT_wxUSE_MONOLITHIC=no | |
2421 | DEFAULT_wxUSE_PLUGINS=no | |
2422 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2423 | |
f34ca037 | 2424 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2425 | fi |
2426 | ||
2427 | ||
2428 | ||
f34ca037 | 2429 | |
a848cd7e SC |
2430 | for toolkit in `echo $ALL_TOOLKITS`; do |
2431 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2432 | if test "x$LINE" != "x" ; then | |
2433 | has_toolkit_in_cache=1 | |
2434 | eval "DEFAULT_$LINE" | |
2435 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2436 | |
2437 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2438 | if test "x$LINE" != "x" ; then | |
2439 | eval "DEFAULT_$LINE" | |
2440 | fi | |
a848cd7e SC |
2441 | fi |
2442 | done | |
2443 | ||
2444 | ||
2445 | ||
2446 | enablestring= | |
2447 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2448 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2449 | no_cache=0 | |
2450 | # Check whether --enable-gui or --disable-gui was given. | |
2451 | if test "${enable_gui+set}" = set; then | |
2452 | enableval="$enable_gui" | |
2453 | ||
2454 | if test "$enableval" = yes; then | |
2455 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2456 | else | |
2457 | ac_cv_use_gui='wxUSE_GUI=no' | |
2458 | fi | |
2459 | ||
2460 | else | |
2461 | ||
2462 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2463 | if test "x$LINE" != x ; then | |
2464 | eval "DEFAULT_$LINE" | |
2465 | else | |
2466 | no_cache=1 | |
2467 | fi | |
2468 | ||
2469 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2470 | ||
2471 | fi; | |
2472 | ||
2473 | eval "$ac_cv_use_gui" | |
2474 | if test "$no_cache" != 1; then | |
2475 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2476 | fi | |
2477 | ||
2478 | if test "$wxUSE_GUI" = yes; then | |
2479 | echo "$as_me:$LINENO: result: yes" >&5 | |
2480 | echo "${ECHO_T}yes" >&6 | |
2481 | else | |
2482 | echo "$as_me:$LINENO: result: no" >&5 | |
2483 | echo "${ECHO_T}no" >&6 | |
2484 | fi | |
2485 | ||
2486 | ||
2487 | enablestring= | |
2488 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2489 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2490 | no_cache=0 | |
2491 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2492 | if test "${enable_monolithic+set}" = set; then | |
2493 | enableval="$enable_monolithic" | |
2494 | ||
2495 | if test "$enableval" = yes; then | |
2496 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2497 | else | |
2498 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2499 | fi | |
2500 | ||
2501 | else | |
2502 | ||
2503 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2504 | if test "x$LINE" != x ; then | |
2505 | eval "DEFAULT_$LINE" | |
2506 | else | |
2507 | no_cache=1 | |
2508 | fi | |
2509 | ||
2510 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2511 | ||
2512 | fi; | |
2513 | ||
2514 | eval "$ac_cv_use_monolithic" | |
2515 | if test "$no_cache" != 1; then | |
2516 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2517 | fi | |
2518 | ||
2519 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2520 | echo "$as_me:$LINENO: result: yes" >&5 | |
2521 | echo "${ECHO_T}yes" >&6 | |
2522 | else | |
2523 | echo "$as_me:$LINENO: result: no" >&5 | |
2524 | echo "${ECHO_T}no" >&6 | |
2525 | fi | |
2526 | ||
2527 | ||
2528 | enablestring= | |
2529 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2530 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2531 | no_cache=0 | |
2532 | # Check whether --enable-plugins or --disable-plugins was given. | |
2533 | if test "${enable_plugins+set}" = set; then | |
2534 | enableval="$enable_plugins" | |
2535 | ||
2536 | if test "$enableval" = yes; then | |
2537 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2538 | else | |
2539 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2540 | fi | |
2541 | ||
2542 | else | |
2543 | ||
2544 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2545 | if test "x$LINE" != x ; then | |
2546 | eval "DEFAULT_$LINE" | |
2547 | else | |
2548 | no_cache=1 | |
2549 | fi | |
2550 | ||
2551 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2552 | ||
2553 | fi; | |
2554 | ||
2555 | eval "$ac_cv_use_plugins" | |
2556 | if test "$no_cache" != 1; then | |
2557 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2558 | fi | |
2559 | ||
2560 | if test "$wxUSE_PLUGINS" = yes; then | |
2561 | echo "$as_me:$LINENO: result: yes" >&5 | |
2562 | echo "${ECHO_T}yes" >&6 | |
2563 | else | |
2564 | echo "$as_me:$LINENO: result: no" >&5 | |
2565 | echo "${ECHO_T}no" >&6 | |
2566 | fi | |
2567 | ||
2568 | ||
1c14217d VZ |
2569 | withstring=without |
2570 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2571 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2572 | no_cache=0 | |
2573 | ||
2574 | # Check whether --with-subdirs or --without-subdirs was given. | |
2575 | if test "${with_subdirs+set}" = set; then | |
2576 | withval="$with_subdirs" | |
2577 | ||
2578 | if test "$withval" = yes; then | |
2579 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2580 | else | |
2581 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2582 | fi | |
2583 | ||
2584 | else | |
2585 | ||
2586 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2587 | if test "x$LINE" != x ; then | |
2588 | eval "DEFAULT_$LINE" | |
2589 | else | |
2590 | no_cache=1 | |
2591 | fi | |
2592 | ||
2593 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2594 | ||
2595 | fi; | |
2596 | ||
2597 | eval "$ac_cv_use_subdirs" | |
2598 | if test "$no_cache" != 1; then | |
2599 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2600 | fi | |
2601 | ||
2602 | if test "$wxWITH_SUBDIRS" = yes; then | |
2603 | echo "$as_me:$LINENO: result: yes" >&5 | |
2604 | echo "${ECHO_T}yes" >&6 | |
2605 | else | |
2606 | echo "$as_me:$LINENO: result: no" >&5 | |
2607 | echo "${ECHO_T}no" >&6 | |
2608 | fi | |
2609 | ||
2610 | ||
a848cd7e SC |
2611 | if test "$wxUSE_GUI" = "yes"; then |
2612 | ||
2613 | ||
2614 | enablestring= | |
2615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2616 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2617 | no_cache=0 | |
2618 | # Check whether --enable-universal or --disable-universal was given. | |
2619 | if test "${enable_universal+set}" = set; then | |
2620 | enableval="$enable_universal" | |
2621 | ||
2622 | if test "$enableval" = yes; then | |
2623 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2624 | else | |
2625 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2626 | fi | |
2627 | ||
2628 | else | |
2629 | ||
2630 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2631 | if test "x$LINE" != x ; then | |
2632 | eval "DEFAULT_$LINE" | |
2633 | else | |
2634 | no_cache=1 | |
2635 | fi | |
2636 | ||
2637 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2638 | ||
2639 | fi; | |
2640 | ||
2641 | eval "$ac_cv_use_universal" | |
2642 | if test "$no_cache" != 1; then | |
2643 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2644 | fi | |
2645 | ||
2646 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2647 | echo "$as_me:$LINENO: result: yes" >&5 | |
2648 | echo "${ECHO_T}yes" >&6 | |
2649 | else | |
2650 | echo "$as_me:$LINENO: result: no" >&5 | |
2651 | echo "${ECHO_T}no" >&6 | |
2652 | fi | |
2653 | ||
2654 | ||
2655 | # Check whether --with-gtk or --without-gtk was given. | |
2656 | if test "${with_gtk+set}" = set; then | |
2657 | withval="$with_gtk" | |
2658 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2659 | fi; | |
2660 | ||
2661 | # Check whether --with-motif or --without-motif was given. | |
2662 | if test "${with_motif+set}" = set; then | |
2663 | withval="$with_motif" | |
2664 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2665 | fi; | |
2666 | ||
2667 | # Check whether --with-mac or --without-mac was given. | |
2668 | if test "${with_mac+set}" = set; then | |
2669 | withval="$with_mac" | |
c228d3a4 | 2670 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2671 | fi; |
2672 | ||
2673 | # Check whether --with-cocoa or --without-cocoa was given. | |
2674 | if test "${with_cocoa+set}" = set; then | |
2675 | withval="$with_cocoa" | |
c228d3a4 | 2676 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2677 | fi; |
2678 | ||
2679 | # Check whether --with-wine or --without-wine was given. | |
2680 | if test "${with_wine+set}" = set; then | |
2681 | withval="$with_wine" | |
2682 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2683 | fi; | |
2684 | ||
2685 | # Check whether --with-msw or --without-msw was given. | |
2686 | if test "${with_msw+set}" = set; then | |
2687 | withval="$with_msw" | |
2688 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2689 | fi; | |
2690 | ||
2691 | # Check whether --with-pm or --without-pm was given. | |
2692 | if test "${with_pm+set}" = set; then | |
2693 | withval="$with_pm" | |
2694 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2695 | fi; | |
2696 | ||
2697 | # Check whether --with-mgl or --without-mgl was given. | |
2698 | if test "${with_mgl+set}" = set; then | |
2699 | withval="$with_mgl" | |
2700 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2701 | fi; | |
2702 | ||
2703 | # Check whether --with-microwin or --without-microwin was given. | |
2704 | if test "${with_microwin+set}" = set; then | |
2705 | withval="$with_microwin" | |
2706 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2707 | fi; | |
2708 | ||
2709 | # Check whether --with-x11 or --without-x11 was given. | |
2710 | if test "${with_x11+set}" = set; then | |
2711 | withval="$with_x11" | |
2712 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2713 | fi; | |
2714 | ||
2715 | enablestring= | |
2716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2717 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2718 | no_cache=0 | |
2719 | # Check whether --enable-nanox or --disable-nanox was given. | |
2720 | if test "${enable_nanox+set}" = set; then | |
2721 | enableval="$enable_nanox" | |
2722 | ||
2723 | if test "$enableval" = yes; then | |
2724 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2725 | else | |
2726 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2727 | fi | |
2728 | ||
2729 | else | |
2730 | ||
2731 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2732 | if test "x$LINE" != x ; then | |
2733 | eval "DEFAULT_$LINE" | |
2734 | else | |
2735 | no_cache=1 | |
2736 | fi | |
2737 | ||
2738 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2739 | ||
2740 | fi; | |
2741 | ||
2742 | eval "$ac_cv_use_nanox" | |
2743 | if test "$no_cache" != 1; then | |
2744 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2745 | fi | |
2746 | ||
2747 | if test "$wxUSE_NANOX" = yes; then | |
2748 | echo "$as_me:$LINENO: result: yes" >&5 | |
2749 | echo "${ECHO_T}yes" >&6 | |
2750 | else | |
2751 | echo "$as_me:$LINENO: result: no" >&5 | |
2752 | echo "${ECHO_T}no" >&6 | |
2753 | fi | |
2754 | ||
2755 | ||
f34ca037 MW |
2756 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2757 | if test "${enable_gtk2+set}" = set; then | |
2758 | enableval="$enable_gtk2" | |
2759 | wxUSE_GTK2="$enableval" | |
2760 | fi; | |
a848cd7e | 2761 | |
a848cd7e SC |
2762 | enablestring= |
2763 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2764 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2765 | no_cache=0 | |
2766 | # Check whether --enable-gpe or --disable-gpe was given. | |
2767 | if test "${enable_gpe+set}" = set; then | |
2768 | enableval="$enable_gpe" | |
2769 | ||
2770 | if test "$enableval" = yes; then | |
2771 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2772 | else | |
2773 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2774 | fi | |
2775 | ||
2776 | else | |
2777 | ||
2778 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2779 | if test "x$LINE" != x ; then | |
2780 | eval "DEFAULT_$LINE" | |
2781 | else | |
2782 | no_cache=1 | |
2783 | fi | |
2784 | ||
2785 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2786 | ||
2787 | fi; | |
2788 | ||
2789 | eval "$ac_cv_use_gpe" | |
2790 | if test "$no_cache" != 1; then | |
2791 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2792 | fi | |
2793 | ||
2794 | if test "$wxUSE_GPE" = yes; then | |
2795 | echo "$as_me:$LINENO: result: yes" >&5 | |
2796 | echo "${ECHO_T}yes" >&6 | |
2797 | else | |
2798 | echo "$as_me:$LINENO: result: no" >&5 | |
2799 | echo "${ECHO_T}no" >&6 | |
2800 | fi | |
2801 | ||
2802 | ||
2803 | ||
2804 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2805 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2806 | no_cache=0 | |
2807 | ||
2808 | # Check whether --with-libpng or --without-libpng was given. | |
2809 | if test "${with_libpng+set}" = set; then | |
2810 | withval="$with_libpng" | |
2811 | ||
2812 | if test "$withval" = yes; then | |
2813 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2814 | elif test "$withval" = no; then | |
2815 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2816 | elif test "$withval" = sys; then | |
2817 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2818 | elif test "$withval" = builtin; then | |
2819 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2820 | else | |
2821 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2822 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2823 | { (exit 1); exit 1; }; } | |
2824 | fi | |
2825 | ||
2826 | else | |
2827 | ||
2828 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2829 | if test "x$LINE" != x ; then | |
2830 | eval "DEFAULT_$LINE" | |
2831 | else | |
2832 | no_cache=1 | |
2833 | fi | |
2834 | ||
2835 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2836 | ||
2837 | fi; | |
2838 | ||
2839 | eval "$ac_cv_use_libpng" | |
2840 | if test "$no_cache" != 1; then | |
2841 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2842 | fi | |
2843 | ||
2844 | if test "$wxUSE_LIBPNG" = yes; then | |
2845 | echo "$as_me:$LINENO: result: yes" >&5 | |
2846 | echo "${ECHO_T}yes" >&6 | |
2847 | elif test "$wxUSE_LIBPNG" = no; then | |
2848 | echo "$as_me:$LINENO: result: no" >&5 | |
2849 | echo "${ECHO_T}no" >&6 | |
2850 | elif test "$wxUSE_LIBPNG" = sys; then | |
2851 | echo "$as_me:$LINENO: result: system version" >&5 | |
2852 | echo "${ECHO_T}system version" >&6 | |
2853 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2854 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2855 | echo "${ECHO_T}builtin version" >&6 | |
2856 | else | |
2857 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2858 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2859 | { (exit 1); exit 1; }; } | |
2860 | fi | |
2861 | ||
2862 | ||
2863 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2864 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2865 | no_cache=0 | |
2866 | ||
2867 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2868 | if test "${with_libjpeg+set}" = set; then | |
2869 | withval="$with_libjpeg" | |
2870 | ||
2871 | if test "$withval" = yes; then | |
2872 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2873 | elif test "$withval" = no; then | |
2874 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2875 | elif test "$withval" = sys; then | |
2876 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2877 | elif test "$withval" = builtin; then | |
2878 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2879 | else | |
2880 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2881 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2882 | { (exit 1); exit 1; }; } | |
2883 | fi | |
2884 | ||
2885 | else | |
2886 | ||
2887 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2888 | if test "x$LINE" != x ; then | |
2889 | eval "DEFAULT_$LINE" | |
2890 | else | |
2891 | no_cache=1 | |
2892 | fi | |
2893 | ||
2894 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2895 | ||
2896 | fi; | |
2897 | ||
2898 | eval "$ac_cv_use_libjpeg" | |
2899 | if test "$no_cache" != 1; then | |
2900 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2901 | fi | |
2902 | ||
2903 | if test "$wxUSE_LIBJPEG" = yes; then | |
2904 | echo "$as_me:$LINENO: result: yes" >&5 | |
2905 | echo "${ECHO_T}yes" >&6 | |
2906 | elif test "$wxUSE_LIBJPEG" = no; then | |
2907 | echo "$as_me:$LINENO: result: no" >&5 | |
2908 | echo "${ECHO_T}no" >&6 | |
2909 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2910 | echo "$as_me:$LINENO: result: system version" >&5 | |
2911 | echo "${ECHO_T}system version" >&6 | |
2912 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2913 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2914 | echo "${ECHO_T}builtin version" >&6 | |
2915 | else | |
2916 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2917 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2918 | { (exit 1); exit 1; }; } | |
2919 | fi | |
2920 | ||
2921 | ||
2922 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2923 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2924 | no_cache=0 | |
2925 | ||
2926 | # Check whether --with-libtiff or --without-libtiff was given. | |
2927 | if test "${with_libtiff+set}" = set; then | |
2928 | withval="$with_libtiff" | |
2929 | ||
2930 | if test "$withval" = yes; then | |
2931 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2932 | elif test "$withval" = no; then | |
2933 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2934 | elif test "$withval" = sys; then | |
2935 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2936 | elif test "$withval" = builtin; then | |
2937 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2938 | else | |
2939 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2940 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2941 | { (exit 1); exit 1; }; } | |
2942 | fi | |
2943 | ||
2944 | else | |
2945 | ||
2946 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2947 | if test "x$LINE" != x ; then | |
2948 | eval "DEFAULT_$LINE" | |
2949 | else | |
2950 | no_cache=1 | |
2951 | fi | |
2952 | ||
2953 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2954 | ||
2955 | fi; | |
2956 | ||
2957 | eval "$ac_cv_use_libtiff" | |
2958 | if test "$no_cache" != 1; then | |
2959 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2960 | fi | |
2961 | ||
2962 | if test "$wxUSE_LIBTIFF" = yes; then | |
2963 | echo "$as_me:$LINENO: result: yes" >&5 | |
2964 | echo "${ECHO_T}yes" >&6 | |
2965 | elif test "$wxUSE_LIBTIFF" = no; then | |
2966 | echo "$as_me:$LINENO: result: no" >&5 | |
2967 | echo "${ECHO_T}no" >&6 | |
2968 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2969 | echo "$as_me:$LINENO: result: system version" >&5 | |
2970 | echo "${ECHO_T}system version" >&6 | |
2971 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2972 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2973 | echo "${ECHO_T}builtin version" >&6 | |
2974 | else | |
2975 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2976 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2977 | { (exit 1); exit 1; }; } | |
2978 | fi | |
2979 | ||
2980 | ||
2981 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2982 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2983 | no_cache=0 | |
2984 | ||
2985 | # Check whether --with-libxpm or --without-libxpm was given. | |
2986 | if test "${with_libxpm+set}" = set; then | |
2987 | withval="$with_libxpm" | |
2988 | ||
2989 | if test "$withval" = yes; then | |
2990 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2991 | elif test "$withval" = no; then | |
2992 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2993 | elif test "$withval" = sys; then | |
2994 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2995 | elif test "$withval" = builtin; then | |
2996 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2997 | else | |
2998 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2999 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3000 | { (exit 1); exit 1; }; } | |
3001 | fi | |
3002 | ||
3003 | else | |
3004 | ||
3005 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3006 | if test "x$LINE" != x ; then | |
3007 | eval "DEFAULT_$LINE" | |
3008 | else | |
3009 | no_cache=1 | |
3010 | fi | |
3011 | ||
3012 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3013 | ||
3014 | fi; | |
3015 | ||
3016 | eval "$ac_cv_use_libxpm" | |
3017 | if test "$no_cache" != 1; then | |
3018 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3019 | fi | |
3020 | ||
3021 | if test "$wxUSE_LIBXPM" = yes; then | |
3022 | echo "$as_me:$LINENO: result: yes" >&5 | |
3023 | echo "${ECHO_T}yes" >&6 | |
3024 | elif test "$wxUSE_LIBXPM" = no; then | |
3025 | echo "$as_me:$LINENO: result: no" >&5 | |
3026 | echo "${ECHO_T}no" >&6 | |
3027 | elif test "$wxUSE_LIBXPM" = sys; then | |
3028 | echo "$as_me:$LINENO: result: system version" >&5 | |
3029 | echo "${ECHO_T}system version" >&6 | |
3030 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3031 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3032 | echo "${ECHO_T}builtin version" >&6 | |
3033 | else | |
3034 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3035 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3036 | { (exit 1); exit 1; }; } | |
3037 | fi | |
3038 | ||
3039 | ||
1c14217d VZ |
3040 | withstring= |
3041 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3042 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3043 | no_cache=0 |
3044 | ||
3045 | # Check whether --with-libmspack or --without-libmspack was given. | |
3046 | if test "${with_libmspack+set}" = set; then | |
3047 | withval="$with_libmspack" | |
3048 | ||
3049 | if test "$withval" = yes; then | |
3050 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3051 | else | |
3052 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3053 | fi | |
3054 | ||
3055 | else | |
3056 | ||
3057 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3058 | if test "x$LINE" != x ; then | |
3059 | eval "DEFAULT_$LINE" | |
3060 | else | |
3061 | no_cache=1 | |
3062 | fi | |
3063 | ||
3064 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3065 | ||
3066 | fi; | |
3067 | ||
3068 | eval "$ac_cv_use_libmspack" | |
3069 | if test "$no_cache" != 1; then | |
3070 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3071 | fi | |
3072 | ||
3073 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3074 | echo "$as_me:$LINENO: result: yes" >&5 | |
3075 | echo "${ECHO_T}yes" >&6 | |
3076 | else | |
3077 | echo "$as_me:$LINENO: result: no" >&5 | |
3078 | echo "${ECHO_T}no" >&6 | |
3079 | fi | |
3080 | ||
3081 | ||
1c14217d VZ |
3082 | withstring= |
3083 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3084 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3085 | no_cache=0 |
3086 | ||
3087 | # Check whether --with-sdl or --without-sdl was given. | |
3088 | if test "${with_sdl+set}" = set; then | |
3089 | withval="$with_sdl" | |
3090 | ||
3091 | if test "$withval" = yes; then | |
3092 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3093 | else | |
3094 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3095 | fi | |
3096 | ||
3097 | else | |
3098 | ||
3099 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3100 | if test "x$LINE" != x ; then | |
3101 | eval "DEFAULT_$LINE" | |
3102 | else | |
3103 | no_cache=1 | |
3104 | fi | |
3105 | ||
3106 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3107 | ||
3108 | fi; | |
3109 | ||
3110 | eval "$ac_cv_use_sdl" | |
3111 | if test "$no_cache" != 1; then | |
3112 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3113 | fi | |
3114 | ||
3115 | if test "$wxUSE_LIBSDL" = yes; then | |
3116 | echo "$as_me:$LINENO: result: yes" >&5 | |
3117 | echo "${ECHO_T}yes" >&6 | |
3118 | else | |
3119 | echo "$as_me:$LINENO: result: no" >&5 | |
3120 | echo "${ECHO_T}no" >&6 | |
3121 | fi | |
3122 | ||
3123 | ||
1c14217d VZ |
3124 | withstring= |
3125 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3126 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3127 | no_cache=0 |
3128 | ||
3129 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3130 | if test "${with_gnomeprint+set}" = set; then | |
3131 | withval="$with_gnomeprint" | |
3132 | ||
3133 | if test "$withval" = yes; then | |
3134 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3135 | else | |
3136 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3137 | fi | |
3138 | ||
3139 | else | |
3140 | ||
3141 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3142 | if test "x$LINE" != x ; then | |
3143 | eval "DEFAULT_$LINE" | |
3144 | else | |
3145 | no_cache=1 | |
3146 | fi | |
3147 | ||
3148 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3149 | ||
3150 | fi; | |
3151 | ||
3152 | eval "$ac_cv_use_gnomeprint" | |
3153 | if test "$no_cache" != 1; then | |
3154 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3155 | fi | |
3156 | ||
3157 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3158 | echo "$as_me:$LINENO: result: yes" >&5 | |
3159 | echo "${ECHO_T}yes" >&6 | |
3160 | else | |
3161 | echo "$as_me:$LINENO: result: no" >&5 | |
3162 | echo "${ECHO_T}no" >&6 | |
3163 | fi | |
3164 | ||
3165 | ||
1c14217d VZ |
3166 | withstring= |
3167 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3168 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3169 | no_cache=0 |
3170 | ||
3171 | # Check whether --with-opengl or --without-opengl was given. | |
3172 | if test "${with_opengl+set}" = set; then | |
3173 | withval="$with_opengl" | |
3174 | ||
3175 | if test "$withval" = yes; then | |
3176 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3177 | else | |
3178 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3179 | fi | |
3180 | ||
3181 | else | |
3182 | ||
3183 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3184 | if test "x$LINE" != x ; then | |
3185 | eval "DEFAULT_$LINE" | |
3186 | else | |
3187 | no_cache=1 | |
3188 | fi | |
3189 | ||
3190 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3191 | ||
3192 | fi; | |
3193 | ||
3194 | eval "$ac_cv_use_opengl" | |
3195 | if test "$no_cache" != 1; then | |
3196 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3197 | fi | |
3198 | ||
3199 | if test "$wxUSE_OPENGL" = yes; then | |
3200 | echo "$as_me:$LINENO: result: yes" >&5 | |
3201 | echo "${ECHO_T}yes" >&6 | |
3202 | else | |
3203 | echo "$as_me:$LINENO: result: no" >&5 | |
3204 | echo "${ECHO_T}no" >&6 | |
3205 | fi | |
3206 | ||
3207 | ||
3208 | fi | |
3209 | ||
3210 | ||
1c14217d VZ |
3211 | withstring= |
3212 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3213 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3214 | no_cache=0 |
3215 | ||
3216 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3217 | if test "${with_dmalloc+set}" = set; then | |
3218 | withval="$with_dmalloc" | |
3219 | ||
3220 | if test "$withval" = yes; then | |
3221 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3222 | else | |
3223 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3224 | fi | |
3225 | ||
3226 | else | |
3227 | ||
3228 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3229 | if test "x$LINE" != x ; then | |
3230 | eval "DEFAULT_$LINE" | |
3231 | else | |
3232 | no_cache=1 | |
3233 | fi | |
3234 | ||
3235 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3236 | ||
3237 | fi; | |
3238 | ||
3239 | eval "$ac_cv_use_dmalloc" | |
3240 | if test "$no_cache" != 1; then | |
3241 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3242 | fi | |
3243 | ||
3244 | if test "$wxUSE_DMALLOC" = yes; then | |
3245 | echo "$as_me:$LINENO: result: yes" >&5 | |
3246 | echo "${ECHO_T}yes" >&6 | |
3247 | else | |
3248 | echo "$as_me:$LINENO: result: no" >&5 | |
3249 | echo "${ECHO_T}no" >&6 | |
3250 | fi | |
3251 | ||
3252 | ||
3253 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3254 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3255 | no_cache=0 | |
3256 | ||
3257 | # Check whether --with-regex or --without-regex was given. | |
3258 | if test "${with_regex+set}" = set; then | |
3259 | withval="$with_regex" | |
3260 | ||
3261 | if test "$withval" = yes; then | |
3262 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3263 | elif test "$withval" = no; then | |
3264 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3265 | elif test "$withval" = sys; then | |
3266 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3267 | elif test "$withval" = builtin; then | |
3268 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3269 | else | |
3270 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3271 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3272 | { (exit 1); exit 1; }; } | |
3273 | fi | |
3274 | ||
3275 | else | |
3276 | ||
3277 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3278 | if test "x$LINE" != x ; then | |
3279 | eval "DEFAULT_$LINE" | |
3280 | else | |
3281 | no_cache=1 | |
3282 | fi | |
3283 | ||
3284 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3285 | ||
3286 | fi; | |
3287 | ||
3288 | eval "$ac_cv_use_regex" | |
3289 | if test "$no_cache" != 1; then | |
3290 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3291 | fi | |
3292 | ||
3293 | if test "$wxUSE_REGEX" = yes; then | |
3294 | echo "$as_me:$LINENO: result: yes" >&5 | |
3295 | echo "${ECHO_T}yes" >&6 | |
3296 | elif test "$wxUSE_REGEX" = no; then | |
3297 | echo "$as_me:$LINENO: result: no" >&5 | |
3298 | echo "${ECHO_T}no" >&6 | |
3299 | elif test "$wxUSE_REGEX" = sys; then | |
3300 | echo "$as_me:$LINENO: result: system version" >&5 | |
3301 | echo "${ECHO_T}system version" >&6 | |
3302 | elif test "$wxUSE_REGEX" = builtin; then | |
3303 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3304 | echo "${ECHO_T}builtin version" >&6 | |
3305 | else | |
3306 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3307 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3308 | { (exit 1); exit 1; }; } | |
3309 | fi | |
3310 | ||
3311 | ||
3312 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3313 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3314 | no_cache=0 | |
3315 | ||
3316 | # Check whether --with-zlib or --without-zlib was given. | |
3317 | if test "${with_zlib+set}" = set; then | |
3318 | withval="$with_zlib" | |
3319 | ||
3320 | if test "$withval" = yes; then | |
3321 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3322 | elif test "$withval" = no; then | |
3323 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3324 | elif test "$withval" = sys; then | |
3325 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3326 | elif test "$withval" = builtin; then | |
3327 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3328 | else | |
3329 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3330 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3331 | { (exit 1); exit 1; }; } | |
3332 | fi | |
3333 | ||
3334 | else | |
3335 | ||
3336 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3337 | if test "x$LINE" != x ; then | |
3338 | eval "DEFAULT_$LINE" | |
3339 | else | |
3340 | no_cache=1 | |
3341 | fi | |
3342 | ||
3343 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3344 | ||
3345 | fi; | |
3346 | ||
3347 | eval "$ac_cv_use_zlib" | |
3348 | if test "$no_cache" != 1; then | |
3349 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3350 | fi | |
3351 | ||
3352 | if test "$wxUSE_ZLIB" = yes; then | |
3353 | echo "$as_me:$LINENO: result: yes" >&5 | |
3354 | echo "${ECHO_T}yes" >&6 | |
3355 | elif test "$wxUSE_ZLIB" = no; then | |
3356 | echo "$as_me:$LINENO: result: no" >&5 | |
3357 | echo "${ECHO_T}no" >&6 | |
3358 | elif test "$wxUSE_ZLIB" = sys; then | |
3359 | echo "$as_me:$LINENO: result: system version" >&5 | |
3360 | echo "${ECHO_T}system version" >&6 | |
3361 | elif test "$wxUSE_ZLIB" = builtin; then | |
3362 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3363 | echo "${ECHO_T}builtin version" >&6 | |
3364 | else | |
3365 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3366 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3367 | { (exit 1); exit 1; }; } | |
3368 | fi | |
3369 | ||
3370 | ||
3371 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3372 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3373 | no_cache=0 | |
3374 | ||
3375 | # Check whether --with-odbc or --without-odbc was given. | |
3376 | if test "${with_odbc+set}" = set; then | |
3377 | withval="$with_odbc" | |
3378 | ||
3379 | if test "$withval" = yes; then | |
3380 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3381 | elif test "$withval" = no; then | |
3382 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3383 | elif test "$withval" = sys; then | |
3384 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3385 | elif test "$withval" = builtin; then | |
3386 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3387 | else | |
3388 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3389 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3390 | { (exit 1); exit 1; }; } | |
3391 | fi | |
3392 | ||
3393 | else | |
3394 | ||
3395 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3396 | if test "x$LINE" != x ; then | |
3397 | eval "DEFAULT_$LINE" | |
3398 | else | |
3399 | no_cache=1 | |
3400 | fi | |
3401 | ||
3402 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3403 | ||
3404 | fi; | |
3405 | ||
3406 | eval "$ac_cv_use_odbc" | |
3407 | if test "$no_cache" != 1; then | |
3408 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3409 | fi | |
3410 | ||
3411 | if test "$wxUSE_ODBC" = yes; then | |
3412 | echo "$as_me:$LINENO: result: yes" >&5 | |
3413 | echo "${ECHO_T}yes" >&6 | |
3414 | elif test "$wxUSE_ODBC" = no; then | |
3415 | echo "$as_me:$LINENO: result: no" >&5 | |
3416 | echo "${ECHO_T}no" >&6 | |
3417 | elif test "$wxUSE_ODBC" = sys; then | |
3418 | echo "$as_me:$LINENO: result: system version" >&5 | |
3419 | echo "${ECHO_T}system version" >&6 | |
3420 | elif test "$wxUSE_ODBC" = builtin; then | |
3421 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3422 | echo "${ECHO_T}builtin version" >&6 | |
3423 | else | |
3424 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3425 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3426 | { (exit 1); exit 1; }; } | |
3427 | fi | |
3428 | ||
3429 | ||
3430 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3431 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3432 | no_cache=0 | |
3433 | ||
3434 | # Check whether --with-expat or --without-expat was given. | |
3435 | if test "${with_expat+set}" = set; then | |
3436 | withval="$with_expat" | |
3437 | ||
3438 | if test "$withval" = yes; then | |
3439 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3440 | elif test "$withval" = no; then | |
3441 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3442 | elif test "$withval" = sys; then | |
3443 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3444 | elif test "$withval" = builtin; then | |
3445 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3446 | else | |
3447 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3448 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3449 | { (exit 1); exit 1; }; } | |
3450 | fi | |
3451 | ||
3452 | else | |
3453 | ||
3454 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3455 | if test "x$LINE" != x ; then | |
3456 | eval "DEFAULT_$LINE" | |
3457 | else | |
3458 | no_cache=1 | |
3459 | fi | |
3460 | ||
3461 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3462 | ||
3463 | fi; | |
3464 | ||
3465 | eval "$ac_cv_use_expat" | |
3466 | if test "$no_cache" != 1; then | |
3467 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3468 | fi | |
3469 | ||
3470 | if test "$wxUSE_EXPAT" = yes; then | |
3471 | echo "$as_me:$LINENO: result: yes" >&5 | |
3472 | echo "${ECHO_T}yes" >&6 | |
3473 | elif test "$wxUSE_EXPAT" = no; then | |
3474 | echo "$as_me:$LINENO: result: no" >&5 | |
3475 | echo "${ECHO_T}no" >&6 | |
3476 | elif test "$wxUSE_EXPAT" = sys; then | |
3477 | echo "$as_me:$LINENO: result: system version" >&5 | |
3478 | echo "${ECHO_T}system version" >&6 | |
3479 | elif test "$wxUSE_EXPAT" = builtin; then | |
3480 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3481 | echo "${ECHO_T}builtin version" >&6 | |
3482 | else | |
3483 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3484 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3485 | { (exit 1); exit 1; }; } | |
3486 | fi | |
3487 | ||
3488 | ||
3489 | ||
3490 | ||
3491 | enablestring= | |
3492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3493 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3494 | no_cache=0 | |
3495 | # Check whether --enable-shared or --disable-shared was given. | |
3496 | if test "${enable_shared+set}" = set; then | |
3497 | enableval="$enable_shared" | |
3498 | ||
3499 | if test "$enableval" = yes; then | |
3500 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3501 | else | |
3502 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3503 | fi | |
3504 | ||
3505 | else | |
3506 | ||
3507 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3508 | if test "x$LINE" != x ; then | |
3509 | eval "DEFAULT_$LINE" | |
3510 | else | |
3511 | no_cache=1 | |
3512 | fi | |
3513 | ||
3514 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3515 | ||
3516 | fi; | |
3517 | ||
3518 | eval "$ac_cv_use_shared" | |
3519 | if test "$no_cache" != 1; then | |
3520 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3521 | fi | |
3522 | ||
3523 | if test "$wxUSE_SHARED" = yes; then | |
3524 | echo "$as_me:$LINENO: result: yes" >&5 | |
3525 | echo "${ECHO_T}yes" >&6 | |
3526 | else | |
3527 | echo "$as_me:$LINENO: result: no" >&5 | |
3528 | echo "${ECHO_T}no" >&6 | |
3529 | fi | |
3530 | ||
3531 | ||
3532 | enablestring= | |
3533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3534 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3535 | no_cache=0 | |
3536 | # Check whether --enable-optimise or --disable-optimise was given. | |
3537 | if test "${enable_optimise+set}" = set; then | |
3538 | enableval="$enable_optimise" | |
3539 | ||
3540 | if test "$enableval" = yes; then | |
3541 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3542 | else | |
3543 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3544 | fi | |
3545 | ||
3546 | else | |
3547 | ||
3548 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3549 | if test "x$LINE" != x ; then | |
3550 | eval "DEFAULT_$LINE" | |
3551 | else | |
3552 | no_cache=1 | |
3553 | fi | |
3554 | ||
3555 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3556 | ||
3557 | fi; | |
3558 | ||
3559 | eval "$ac_cv_use_optimise" | |
3560 | if test "$no_cache" != 1; then | |
3561 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3562 | fi | |
3563 | ||
3564 | if test "$wxUSE_OPTIMISE" = yes; then | |
3565 | echo "$as_me:$LINENO: result: yes" >&5 | |
3566 | echo "${ECHO_T}yes" >&6 | |
3567 | else | |
3568 | echo "$as_me:$LINENO: result: no" >&5 | |
3569 | echo "${ECHO_T}no" >&6 | |
3570 | fi | |
3571 | ||
3572 | ||
3573 | enablestring= | |
3574 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3575 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3576 | no_cache=0 | |
3577 | # Check whether --enable-debug or --disable-debug was given. | |
3578 | if test "${enable_debug+set}" = set; then | |
3579 | enableval="$enable_debug" | |
3580 | ||
3581 | if test "$enableval" = yes; then | |
3582 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3583 | else | |
3584 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3585 | fi | |
3586 | ||
3587 | else | |
3588 | ||
3589 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3590 | if test "x$LINE" != x ; then | |
3591 | eval "DEFAULT_$LINE" | |
3592 | else | |
3593 | no_cache=1 | |
3594 | fi | |
3595 | ||
3596 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3597 | ||
3598 | fi; | |
3599 | ||
3600 | eval "$ac_cv_use_debug" | |
3601 | if test "$no_cache" != 1; then | |
3602 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3603 | fi | |
3604 | ||
3605 | if test "$wxUSE_DEBUG" = yes; then | |
3606 | echo "$as_me:$LINENO: result: yes" >&5 | |
3607 | echo "${ECHO_T}yes" >&6 | |
3608 | else | |
3609 | echo "$as_me:$LINENO: result: no" >&5 | |
3610 | echo "${ECHO_T}no" >&6 | |
3611 | fi | |
3612 | ||
3613 | ||
3614 | enablestring= | |
3615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3616 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3617 | no_cache=0 | |
3618 | # Check whether --enable-stl or --disable-stl was given. | |
3619 | if test "${enable_stl+set}" = set; then | |
3620 | enableval="$enable_stl" | |
3621 | ||
3622 | if test "$enableval" = yes; then | |
3623 | ac_cv_use_stl='wxUSE_STL=yes' | |
3624 | else | |
3625 | ac_cv_use_stl='wxUSE_STL=no' | |
3626 | fi | |
3627 | ||
3628 | else | |
3629 | ||
3630 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3631 | if test "x$LINE" != x ; then | |
3632 | eval "DEFAULT_$LINE" | |
3633 | else | |
3634 | no_cache=1 | |
3635 | fi | |
3636 | ||
3637 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3638 | ||
3639 | fi; | |
3640 | ||
3641 | eval "$ac_cv_use_stl" | |
3642 | if test "$no_cache" != 1; then | |
3643 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3644 | fi | |
3645 | ||
3646 | if test "$wxUSE_STL" = yes; then | |
3647 | echo "$as_me:$LINENO: result: yes" >&5 | |
3648 | echo "${ECHO_T}yes" >&6 | |
3649 | else | |
3650 | echo "$as_me:$LINENO: result: no" >&5 | |
3651 | echo "${ECHO_T}no" >&6 | |
3652 | fi | |
3653 | ||
3654 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3655 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3656 | |
3657 | enablestring= | |
3658 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3659 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3660 | no_cache=0 | |
3661 | # Check whether --enable-omf or --disable-omf was given. | |
3662 | if test "${enable_omf+set}" = set; then | |
3663 | enableval="$enable_omf" | |
3664 | ||
3665 | if test "$enableval" = yes; then | |
3666 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3667 | else | |
3668 | ac_cv_use_omf='wxUSE_OMF=no' | |
3669 | fi | |
3670 | ||
3671 | else | |
3672 | ||
3673 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3674 | if test "x$LINE" != x ; then | |
3675 | eval "DEFAULT_$LINE" | |
3676 | else | |
3677 | no_cache=1 | |
3678 | fi | |
3679 | ||
3680 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3681 | ||
3682 | fi; | |
3683 | ||
3684 | eval "$ac_cv_use_omf" | |
3685 | if test "$no_cache" != 1; then | |
3686 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3687 | fi | |
3688 | ||
3689 | if test "$wxUSE_OMF" = yes; then | |
3690 | echo "$as_me:$LINENO: result: yes" >&5 | |
3691 | echo "${ECHO_T}yes" >&6 | |
3692 | else | |
3693 | echo "$as_me:$LINENO: result: no" >&5 | |
3694 | echo "${ECHO_T}no" >&6 | |
3695 | fi | |
3696 | ||
3697 | fi | |
3698 | ||
3699 | if test "$wxUSE_DEBUG" = "yes"; then | |
3700 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3701 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3702 | BUILD=debug | |
3703 | elif test "$wxUSE_DEBUG" = "no"; then | |
3704 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3705 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3706 | BUILD=release | |
3707 | fi | |
3708 | ||
3709 | ||
3710 | enablestring= | |
3711 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3712 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3713 | no_cache=0 | |
3714 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3715 | if test "${enable_debug_flag+set}" = set; then | |
3716 | enableval="$enable_debug_flag" | |
3717 | ||
3718 | if test "$enableval" = yes; then | |
3719 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3720 | else | |
3721 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3722 | fi | |
3723 | ||
3724 | else | |
3725 | ||
3726 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3727 | if test "x$LINE" != x ; then | |
3728 | eval "DEFAULT_$LINE" | |
3729 | else | |
3730 | no_cache=1 | |
3731 | fi | |
3732 | ||
3733 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3734 | ||
3735 | fi; | |
3736 | ||
3737 | eval "$ac_cv_use_debug_flag" | |
3738 | if test "$no_cache" != 1; then | |
3739 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3740 | fi | |
3741 | ||
3742 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3743 | echo "$as_me:$LINENO: result: yes" >&5 | |
3744 | echo "${ECHO_T}yes" >&6 | |
3745 | else | |
3746 | echo "$as_me:$LINENO: result: no" >&5 | |
3747 | echo "${ECHO_T}no" >&6 | |
3748 | fi | |
3749 | ||
3750 | ||
3751 | enablestring= | |
3752 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3753 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3754 | no_cache=0 | |
3755 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3756 | if test "${enable_debug_info+set}" = set; then | |
3757 | enableval="$enable_debug_info" | |
3758 | ||
3759 | if test "$enableval" = yes; then | |
3760 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3761 | else | |
3762 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3763 | fi | |
3764 | ||
3765 | else | |
3766 | ||
3767 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3768 | if test "x$LINE" != x ; then | |
3769 | eval "DEFAULT_$LINE" | |
3770 | else | |
3771 | no_cache=1 | |
3772 | fi | |
3773 | ||
3774 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3775 | ||
3776 | fi; | |
3777 | ||
3778 | eval "$ac_cv_use_debug_info" | |
3779 | if test "$no_cache" != 1; then | |
3780 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3781 | fi | |
3782 | ||
3783 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3784 | echo "$as_me:$LINENO: result: yes" >&5 | |
3785 | echo "${ECHO_T}yes" >&6 | |
3786 | else | |
3787 | echo "$as_me:$LINENO: result: no" >&5 | |
3788 | echo "${ECHO_T}no" >&6 | |
3789 | fi | |
3790 | ||
3791 | ||
3792 | enablestring= | |
3793 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3794 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3795 | no_cache=0 | |
3796 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3797 | if test "${enable_debug_gdb+set}" = set; then | |
3798 | enableval="$enable_debug_gdb" | |
3799 | ||
3800 | if test "$enableval" = yes; then | |
3801 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3802 | else | |
3803 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3804 | fi | |
3805 | ||
3806 | else | |
3807 | ||
3808 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3809 | if test "x$LINE" != x ; then | |
3810 | eval "DEFAULT_$LINE" | |
3811 | else | |
3812 | no_cache=1 | |
3813 | fi | |
3814 | ||
3815 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3816 | ||
3817 | fi; | |
3818 | ||
3819 | eval "$ac_cv_use_debug_gdb" | |
3820 | if test "$no_cache" != 1; then | |
3821 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3822 | fi | |
3823 | ||
3824 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3825 | echo "$as_me:$LINENO: result: yes" >&5 | |
3826 | echo "${ECHO_T}yes" >&6 | |
3827 | else | |
3828 | echo "$as_me:$LINENO: result: no" >&5 | |
3829 | echo "${ECHO_T}no" >&6 | |
3830 | fi | |
3831 | ||
3832 | ||
3833 | enablestring= | |
3834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3835 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3836 | no_cache=0 | |
3837 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3838 | if test "${enable_debug_cntxt+set}" = set; then | |
3839 | enableval="$enable_debug_cntxt" | |
3840 | ||
3841 | if test "$enableval" = yes; then | |
3842 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3843 | else | |
3844 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3845 | fi | |
3846 | ||
3847 | else | |
3848 | ||
3849 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3850 | if test "x$LINE" != x ; then | |
3851 | eval "DEFAULT_$LINE" | |
3852 | else | |
3853 | no_cache=1 | |
3854 | fi | |
3855 | ||
3856 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3857 | ||
3858 | fi; | |
3859 | ||
3860 | eval "$ac_cv_use_debug_cntxt" | |
3861 | if test "$no_cache" != 1; then | |
3862 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3863 | fi | |
3864 | ||
3865 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3866 | echo "$as_me:$LINENO: result: yes" >&5 | |
3867 | echo "${ECHO_T}yes" >&6 | |
3868 | else | |
3869 | echo "$as_me:$LINENO: result: no" >&5 | |
3870 | echo "${ECHO_T}no" >&6 | |
3871 | fi | |
3872 | ||
3873 | ||
3874 | enablestring= | |
3875 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3876 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3877 | no_cache=0 | |
3878 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3879 | if test "${enable_mem_tracing+set}" = set; then | |
3880 | enableval="$enable_mem_tracing" | |
3881 | ||
3882 | if test "$enableval" = yes; then | |
3883 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3884 | else | |
3885 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3886 | fi | |
3887 | ||
3888 | else | |
3889 | ||
3890 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3891 | if test "x$LINE" != x ; then | |
3892 | eval "DEFAULT_$LINE" | |
3893 | else | |
3894 | no_cache=1 | |
3895 | fi | |
3896 | ||
3897 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3898 | ||
3899 | fi; | |
3900 | ||
3901 | eval "$ac_cv_use_mem_tracing" | |
3902 | if test "$no_cache" != 1; then | |
3903 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3904 | fi | |
3905 | ||
3906 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3907 | echo "$as_me:$LINENO: result: yes" >&5 | |
3908 | echo "${ECHO_T}yes" >&6 | |
3909 | else | |
3910 | echo "$as_me:$LINENO: result: no" >&5 | |
3911 | echo "${ECHO_T}no" >&6 | |
3912 | fi | |
3913 | ||
3914 | ||
3915 | enablestring= | |
3916 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3917 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3918 | no_cache=0 | |
3919 | # Check whether --enable-profile or --disable-profile was given. | |
3920 | if test "${enable_profile+set}" = set; then | |
3921 | enableval="$enable_profile" | |
3922 | ||
3923 | if test "$enableval" = yes; then | |
3924 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3925 | else | |
3926 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3927 | fi | |
3928 | ||
3929 | else | |
3930 | ||
3931 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3932 | if test "x$LINE" != x ; then | |
3933 | eval "DEFAULT_$LINE" | |
3934 | else | |
3935 | no_cache=1 | |
3936 | fi | |
3937 | ||
3938 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3939 | ||
3940 | fi; | |
3941 | ||
3942 | eval "$ac_cv_use_profile" | |
3943 | if test "$no_cache" != 1; then | |
3944 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3945 | fi | |
3946 | ||
3947 | if test "$wxUSE_PROFILE" = yes; then | |
3948 | echo "$as_me:$LINENO: result: yes" >&5 | |
3949 | echo "${ECHO_T}yes" >&6 | |
3950 | else | |
3951 | echo "$as_me:$LINENO: result: no" >&5 | |
3952 | echo "${ECHO_T}no" >&6 | |
3953 | fi | |
3954 | ||
3955 | ||
3956 | enablestring= | |
3957 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3958 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3959 | no_cache=0 | |
3960 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3961 | if test "${enable_no_rtti+set}" = set; then | |
3962 | enableval="$enable_no_rtti" | |
3963 | ||
3964 | if test "$enableval" = yes; then | |
3965 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3966 | else | |
3967 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3968 | fi | |
3969 | ||
3970 | else | |
3971 | ||
3972 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3973 | if test "x$LINE" != x ; then | |
3974 | eval "DEFAULT_$LINE" | |
3975 | else | |
3976 | no_cache=1 | |
3977 | fi | |
3978 | ||
3979 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3980 | ||
3981 | fi; | |
3982 | ||
3983 | eval "$ac_cv_use_no_rtti" | |
3984 | if test "$no_cache" != 1; then | |
3985 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3986 | fi | |
3987 | ||
3988 | if test "$wxUSE_NO_RTTI" = yes; then | |
3989 | echo "$as_me:$LINENO: result: yes" >&5 | |
3990 | echo "${ECHO_T}yes" >&6 | |
3991 | else | |
3992 | echo "$as_me:$LINENO: result: no" >&5 | |
3993 | echo "${ECHO_T}no" >&6 | |
3994 | fi | |
3995 | ||
3996 | ||
3997 | enablestring= | |
3998 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3999 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4000 | no_cache=0 | |
4001 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4002 | if test "${enable_no_exceptions+set}" = set; then | |
4003 | enableval="$enable_no_exceptions" | |
4004 | ||
4005 | if test "$enableval" = yes; then | |
4006 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4007 | else | |
4008 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4009 | fi | |
4010 | ||
4011 | else | |
4012 | ||
4013 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4014 | if test "x$LINE" != x ; then | |
4015 | eval "DEFAULT_$LINE" | |
4016 | else | |
4017 | no_cache=1 | |
4018 | fi | |
4019 | ||
4020 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4021 | ||
4022 | fi; | |
4023 | ||
4024 | eval "$ac_cv_use_no_exceptions" | |
4025 | if test "$no_cache" != 1; then | |
4026 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4027 | fi | |
4028 | ||
4029 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4030 | echo "$as_me:$LINENO: result: yes" >&5 | |
4031 | echo "${ECHO_T}yes" >&6 | |
4032 | else | |
4033 | echo "$as_me:$LINENO: result: no" >&5 | |
4034 | echo "${ECHO_T}no" >&6 | |
4035 | fi | |
4036 | ||
4037 | ||
4038 | enablestring= | |
4039 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4040 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4041 | no_cache=0 | |
4042 | # Check whether --enable-permissive or --disable-permissive was given. | |
4043 | if test "${enable_permissive+set}" = set; then | |
4044 | enableval="$enable_permissive" | |
4045 | ||
4046 | if test "$enableval" = yes; then | |
4047 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4048 | else | |
4049 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4050 | fi | |
4051 | ||
4052 | else | |
4053 | ||
4054 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4055 | if test "x$LINE" != x ; then | |
4056 | eval "DEFAULT_$LINE" | |
4057 | else | |
4058 | no_cache=1 | |
4059 | fi | |
4060 | ||
4061 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4062 | ||
4063 | fi; | |
4064 | ||
4065 | eval "$ac_cv_use_permissive" | |
4066 | if test "$no_cache" != 1; then | |
4067 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4068 | fi | |
4069 | ||
4070 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4071 | echo "$as_me:$LINENO: result: yes" >&5 | |
4072 | echo "${ECHO_T}yes" >&6 | |
4073 | else | |
4074 | echo "$as_me:$LINENO: result: no" >&5 | |
4075 | echo "${ECHO_T}no" >&6 | |
4076 | fi | |
4077 | ||
4078 | ||
4079 | enablestring= | |
4080 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4081 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4082 | no_cache=0 | |
4083 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4084 | if test "${enable_no_deps+set}" = set; then | |
4085 | enableval="$enable_no_deps" | |
4086 | ||
4087 | if test "$enableval" = yes; then | |
4088 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4089 | else | |
4090 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4091 | fi | |
4092 | ||
4093 | else | |
4094 | ||
4095 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4096 | if test "x$LINE" != x ; then | |
4097 | eval "DEFAULT_$LINE" | |
4098 | else | |
4099 | no_cache=1 | |
4100 | fi | |
4101 | ||
4102 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4103 | ||
4104 | fi; | |
4105 | ||
4106 | eval "$ac_cv_use_no_deps" | |
4107 | if test "$no_cache" != 1; then | |
4108 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4109 | fi | |
4110 | ||
4111 | if test "$wxUSE_NO_DEPS" = yes; then | |
4112 | echo "$as_me:$LINENO: result: yes" >&5 | |
4113 | echo "${ECHO_T}yes" >&6 | |
4114 | else | |
4115 | echo "$as_me:$LINENO: result: no" >&5 | |
4116 | echo "${ECHO_T}no" >&6 | |
4117 | fi | |
4118 | ||
4119 | ||
4120 | ||
4121 | enablestring= | |
4122 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4123 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4124 | no_cache=0 | |
4125 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4126 | if test "${enable_compat22+set}" = set; then | |
4127 | enableval="$enable_compat22" | |
4128 | ||
4129 | if test "$enableval" = yes; then | |
4130 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4131 | else | |
4132 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4133 | fi | |
4134 | ||
4135 | else | |
4136 | ||
4137 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4138 | if test "x$LINE" != x ; then | |
4139 | eval "DEFAULT_$LINE" | |
4140 | else | |
4141 | no_cache=1 | |
4142 | fi | |
4143 | ||
4144 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4145 | ||
4146 | fi; | |
4147 | ||
4148 | eval "$ac_cv_use_compat22" | |
4149 | if test "$no_cache" != 1; then | |
4150 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4151 | fi | |
4152 | ||
4153 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4154 | echo "$as_me:$LINENO: result: yes" >&5 | |
4155 | echo "${ECHO_T}yes" >&6 | |
4156 | else | |
4157 | echo "$as_me:$LINENO: result: no" >&5 | |
4158 | echo "${ECHO_T}no" >&6 | |
4159 | fi | |
4160 | ||
4161 | ||
4162 | enablestring=disable | |
4163 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4164 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4165 | no_cache=0 | |
4166 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4167 | if test "${enable_compat24+set}" = set; then | |
4168 | enableval="$enable_compat24" | |
4169 | ||
4170 | if test "$enableval" = yes; then | |
4171 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4172 | else | |
4173 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4174 | fi | |
4175 | ||
4176 | else | |
4177 | ||
4178 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4179 | if test "x$LINE" != x ; then | |
4180 | eval "DEFAULT_$LINE" | |
4181 | else | |
4182 | no_cache=1 | |
4183 | fi | |
4184 | ||
4185 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4186 | ||
4187 | fi; | |
4188 | ||
4189 | eval "$ac_cv_use_compat24" | |
4190 | if test "$no_cache" != 1; then | |
4191 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4192 | fi | |
4193 | ||
4194 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4195 | echo "$as_me:$LINENO: result: yes" >&5 | |
4196 | echo "${ECHO_T}yes" >&6 | |
4197 | else | |
4198 | echo "$as_me:$LINENO: result: no" >&5 | |
4199 | echo "${ECHO_T}no" >&6 | |
4200 | fi | |
4201 | ||
4202 | ||
ffa0583f RL |
4203 | |
4204 | enablestring= | |
4205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4206 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4207 | no_cache=0 | |
4208 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4209 | if test "${enable_rpath+set}" = set; then |
4210 | enableval="$enable_rpath" | |
ffa0583f RL |
4211 | |
4212 | if test "$enableval" = yes; then | |
4213 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4214 | else | |
4215 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4216 | fi | |
4217 | ||
4218 | else | |
4219 | ||
4220 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4221 | if test "x$LINE" != x ; then | |
4222 | eval "DEFAULT_$LINE" | |
4223 | else | |
4224 | no_cache=1 | |
4225 | fi | |
4226 | ||
4227 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4228 | ||
a848cd7e SC |
4229 | fi; |
4230 | ||
ffa0583f RL |
4231 | eval "$ac_cv_use_rpath" |
4232 | if test "$no_cache" != 1; then | |
4233 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4234 | fi | |
4235 | ||
4236 | if test "$wxUSE_RPATH" = yes; then | |
4237 | echo "$as_me:$LINENO: result: yes" >&5 | |
4238 | echo "${ECHO_T}yes" >&6 | |
4239 | else | |
4240 | echo "$as_me:$LINENO: result: no" >&5 | |
4241 | echo "${ECHO_T}no" >&6 | |
4242 | fi | |
4243 | ||
a848cd7e SC |
4244 | |
4245 | ||
4246 | ||
4247 | ||
4248 | enablestring= | |
4249 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4250 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4251 | no_cache=0 | |
4252 | # Check whether --enable-intl or --disable-intl was given. | |
4253 | if test "${enable_intl+set}" = set; then | |
4254 | enableval="$enable_intl" | |
4255 | ||
4256 | if test "$enableval" = yes; then | |
4257 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4258 | else | |
4259 | ac_cv_use_intl='wxUSE_INTL=no' | |
4260 | fi | |
4261 | ||
4262 | else | |
4263 | ||
4264 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4265 | if test "x$LINE" != x ; then | |
4266 | eval "DEFAULT_$LINE" | |
4267 | else | |
4268 | no_cache=1 | |
4269 | fi | |
4270 | ||
4271 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4272 | ||
4273 | fi; | |
4274 | ||
4275 | eval "$ac_cv_use_intl" | |
4276 | if test "$no_cache" != 1; then | |
4277 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4278 | fi | |
4279 | ||
4280 | if test "$wxUSE_INTL" = yes; then | |
4281 | echo "$as_me:$LINENO: result: yes" >&5 | |
4282 | echo "${ECHO_T}yes" >&6 | |
4283 | else | |
4284 | echo "$as_me:$LINENO: result: no" >&5 | |
4285 | echo "${ECHO_T}no" >&6 | |
4286 | fi | |
4287 | ||
4288 | ||
4289 | enablestring= | |
4290 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4291 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4292 | no_cache=0 | |
4293 | # Check whether --enable-config or --disable-config was given. | |
4294 | if test "${enable_config+set}" = set; then | |
4295 | enableval="$enable_config" | |
4296 | ||
4297 | if test "$enableval" = yes; then | |
4298 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4299 | else | |
4300 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4301 | fi | |
4302 | ||
4303 | else | |
4304 | ||
4305 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4306 | if test "x$LINE" != x ; then | |
4307 | eval "DEFAULT_$LINE" | |
4308 | else | |
4309 | no_cache=1 | |
4310 | fi | |
4311 | ||
4312 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4313 | ||
4314 | fi; | |
4315 | ||
4316 | eval "$ac_cv_use_config" | |
4317 | if test "$no_cache" != 1; then | |
4318 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4319 | fi | |
4320 | ||
4321 | if test "$wxUSE_CONFIG" = yes; then | |
4322 | echo "$as_me:$LINENO: result: yes" >&5 | |
4323 | echo "${ECHO_T}yes" >&6 | |
4324 | else | |
4325 | echo "$as_me:$LINENO: result: no" >&5 | |
4326 | echo "${ECHO_T}no" >&6 | |
4327 | fi | |
4328 | ||
4329 | ||
4330 | ||
4331 | enablestring= | |
4332 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4333 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4334 | no_cache=0 | |
4335 | # Check whether --enable-protocols or --disable-protocols was given. | |
4336 | if test "${enable_protocols+set}" = set; then | |
4337 | enableval="$enable_protocols" | |
4338 | ||
4339 | if test "$enableval" = yes; then | |
4340 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4341 | else | |
4342 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4343 | fi | |
4344 | ||
4345 | else | |
4346 | ||
4347 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4348 | if test "x$LINE" != x ; then | |
4349 | eval "DEFAULT_$LINE" | |
4350 | else | |
4351 | no_cache=1 | |
4352 | fi | |
4353 | ||
4354 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4355 | ||
4356 | fi; | |
4357 | ||
4358 | eval "$ac_cv_use_protocols" | |
4359 | if test "$no_cache" != 1; then | |
4360 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4361 | fi | |
4362 | ||
4363 | if test "$wxUSE_PROTOCOL" = yes; then | |
4364 | echo "$as_me:$LINENO: result: yes" >&5 | |
4365 | echo "${ECHO_T}yes" >&6 | |
4366 | else | |
4367 | echo "$as_me:$LINENO: result: no" >&5 | |
4368 | echo "${ECHO_T}no" >&6 | |
4369 | fi | |
4370 | ||
4371 | ||
4372 | enablestring= | |
4373 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4374 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4375 | no_cache=0 | |
4376 | # Check whether --enable-ftp or --disable-ftp was given. | |
4377 | if test "${enable_ftp+set}" = set; then | |
4378 | enableval="$enable_ftp" | |
4379 | ||
4380 | if test "$enableval" = yes; then | |
4381 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4382 | else | |
4383 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4384 | fi | |
4385 | ||
4386 | else | |
4387 | ||
4388 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4389 | if test "x$LINE" != x ; then | |
4390 | eval "DEFAULT_$LINE" | |
4391 | else | |
4392 | no_cache=1 | |
4393 | fi | |
4394 | ||
4395 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4396 | ||
4397 | fi; | |
4398 | ||
4399 | eval "$ac_cv_use_ftp" | |
4400 | if test "$no_cache" != 1; then | |
4401 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4402 | fi | |
4403 | ||
4404 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4405 | echo "$as_me:$LINENO: result: yes" >&5 | |
4406 | echo "${ECHO_T}yes" >&6 | |
4407 | else | |
4408 | echo "$as_me:$LINENO: result: no" >&5 | |
4409 | echo "${ECHO_T}no" >&6 | |
4410 | fi | |
4411 | ||
4412 | ||
4413 | enablestring= | |
4414 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4415 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4416 | no_cache=0 | |
4417 | # Check whether --enable-http or --disable-http was given. | |
4418 | if test "${enable_http+set}" = set; then | |
4419 | enableval="$enable_http" | |
4420 | ||
4421 | if test "$enableval" = yes; then | |
4422 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4423 | else | |
4424 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4425 | fi | |
4426 | ||
4427 | else | |
4428 | ||
4429 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4430 | if test "x$LINE" != x ; then | |
4431 | eval "DEFAULT_$LINE" | |
4432 | else | |
4433 | no_cache=1 | |
4434 | fi | |
4435 | ||
4436 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4437 | ||
4438 | fi; | |
4439 | ||
4440 | eval "$ac_cv_use_http" | |
4441 | if test "$no_cache" != 1; then | |
4442 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4443 | fi | |
4444 | ||
4445 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4446 | echo "$as_me:$LINENO: result: yes" >&5 | |
4447 | echo "${ECHO_T}yes" >&6 | |
4448 | else | |
4449 | echo "$as_me:$LINENO: result: no" >&5 | |
4450 | echo "${ECHO_T}no" >&6 | |
4451 | fi | |
4452 | ||
4453 | ||
4454 | enablestring= | |
4455 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4456 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4457 | no_cache=0 | |
4458 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4459 | if test "${enable_fileproto+set}" = set; then | |
4460 | enableval="$enable_fileproto" | |
4461 | ||
4462 | if test "$enableval" = yes; then | |
4463 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4464 | else | |
4465 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4466 | fi | |
4467 | ||
4468 | else | |
4469 | ||
4470 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4471 | if test "x$LINE" != x ; then | |
4472 | eval "DEFAULT_$LINE" | |
4473 | else | |
4474 | no_cache=1 | |
4475 | fi | |
4476 | ||
4477 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4478 | ||
4479 | fi; | |
4480 | ||
4481 | eval "$ac_cv_use_fileproto" | |
4482 | if test "$no_cache" != 1; then | |
4483 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4484 | fi | |
4485 | ||
4486 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4487 | echo "$as_me:$LINENO: result: yes" >&5 | |
4488 | echo "${ECHO_T}yes" >&6 | |
4489 | else | |
4490 | echo "$as_me:$LINENO: result: no" >&5 | |
4491 | echo "${ECHO_T}no" >&6 | |
4492 | fi | |
4493 | ||
4494 | ||
4495 | enablestring= | |
4496 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4497 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4498 | no_cache=0 | |
4499 | # Check whether --enable-sockets or --disable-sockets was given. | |
4500 | if test "${enable_sockets+set}" = set; then | |
4501 | enableval="$enable_sockets" | |
4502 | ||
4503 | if test "$enableval" = yes; then | |
4504 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4505 | else | |
4506 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4507 | fi | |
4508 | ||
4509 | else | |
4510 | ||
4511 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4512 | if test "x$LINE" != x ; then | |
4513 | eval "DEFAULT_$LINE" | |
4514 | else | |
4515 | no_cache=1 | |
4516 | fi | |
4517 | ||
4518 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4519 | ||
4520 | fi; | |
4521 | ||
4522 | eval "$ac_cv_use_sockets" | |
4523 | if test "$no_cache" != 1; then | |
4524 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4525 | fi | |
4526 | ||
4527 | if test "$wxUSE_SOCKETS" = yes; then | |
4528 | echo "$as_me:$LINENO: result: yes" >&5 | |
4529 | echo "${ECHO_T}yes" >&6 | |
4530 | else | |
4531 | echo "$as_me:$LINENO: result: no" >&5 | |
4532 | echo "${ECHO_T}no" >&6 | |
4533 | fi | |
4534 | ||
4535 | ||
4536 | enablestring= | |
4537 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4538 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4539 | no_cache=0 | |
4540 | # Check whether --enable-ole or --disable-ole was given. | |
4541 | if test "${enable_ole+set}" = set; then | |
4542 | enableval="$enable_ole" | |
4543 | ||
4544 | if test "$enableval" = yes; then | |
4545 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4546 | else | |
4547 | ac_cv_use_ole='wxUSE_OLE=no' | |
4548 | fi | |
4549 | ||
4550 | else | |
4551 | ||
4552 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4553 | if test "x$LINE" != x ; then | |
4554 | eval "DEFAULT_$LINE" | |
4555 | else | |
4556 | no_cache=1 | |
4557 | fi | |
4558 | ||
4559 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4560 | ||
4561 | fi; | |
4562 | ||
4563 | eval "$ac_cv_use_ole" | |
4564 | if test "$no_cache" != 1; then | |
4565 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4566 | fi | |
4567 | ||
4568 | if test "$wxUSE_OLE" = yes; then | |
4569 | echo "$as_me:$LINENO: result: yes" >&5 | |
4570 | echo "${ECHO_T}yes" >&6 | |
4571 | else | |
4572 | echo "$as_me:$LINENO: result: no" >&5 | |
4573 | echo "${ECHO_T}no" >&6 | |
4574 | fi | |
4575 | ||
4576 | ||
4577 | enablestring= | |
4578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4579 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4580 | no_cache=0 | |
4581 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4582 | if test "${enable_dataobj+set}" = set; then | |
4583 | enableval="$enable_dataobj" | |
4584 | ||
4585 | if test "$enableval" = yes; then | |
4586 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4587 | else | |
4588 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4589 | fi | |
4590 | ||
4591 | else | |
4592 | ||
4593 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4594 | if test "x$LINE" != x ; then | |
4595 | eval "DEFAULT_$LINE" | |
4596 | else | |
4597 | no_cache=1 | |
4598 | fi | |
4599 | ||
4600 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4601 | ||
4602 | fi; | |
4603 | ||
4604 | eval "$ac_cv_use_dataobj" | |
4605 | if test "$no_cache" != 1; then | |
4606 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4607 | fi | |
4608 | ||
4609 | if test "$wxUSE_DATAOBJ" = yes; then | |
4610 | echo "$as_me:$LINENO: result: yes" >&5 | |
4611 | echo "${ECHO_T}yes" >&6 | |
4612 | else | |
4613 | echo "$as_me:$LINENO: result: no" >&5 | |
4614 | echo "${ECHO_T}no" >&6 | |
4615 | fi | |
4616 | ||
4617 | ||
4618 | ||
4619 | enablestring= | |
4620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4621 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4622 | no_cache=0 | |
4623 | # Check whether --enable-ipc or --disable-ipc was given. | |
4624 | if test "${enable_ipc+set}" = set; then | |
4625 | enableval="$enable_ipc" | |
4626 | ||
4627 | if test "$enableval" = yes; then | |
4628 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4629 | else | |
4630 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4631 | fi | |
4632 | ||
4633 | else | |
4634 | ||
4635 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4636 | if test "x$LINE" != x ; then | |
4637 | eval "DEFAULT_$LINE" | |
4638 | else | |
4639 | no_cache=1 | |
4640 | fi | |
4641 | ||
4642 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4643 | ||
4644 | fi; | |
4645 | ||
4646 | eval "$ac_cv_use_ipc" | |
4647 | if test "$no_cache" != 1; then | |
4648 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4649 | fi | |
4650 | ||
4651 | if test "$wxUSE_IPC" = yes; then | |
4652 | echo "$as_me:$LINENO: result: yes" >&5 | |
4653 | echo "${ECHO_T}yes" >&6 | |
4654 | else | |
4655 | echo "$as_me:$LINENO: result: no" >&5 | |
4656 | echo "${ECHO_T}no" >&6 | |
4657 | fi | |
4658 | ||
4659 | ||
4660 | ||
4661 | enablestring= | |
4662 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4663 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4664 | no_cache=0 | |
4665 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4666 | if test "${enable_apple_ieee+set}" = set; then | |
4667 | enableval="$enable_apple_ieee" | |
4668 | ||
4669 | if test "$enableval" = yes; then | |
4670 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4671 | else | |
4672 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4673 | fi | |
4674 | ||
4675 | else | |
4676 | ||
4677 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4678 | if test "x$LINE" != x ; then | |
4679 | eval "DEFAULT_$LINE" | |
4680 | else | |
4681 | no_cache=1 | |
4682 | fi | |
4683 | ||
4684 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4685 | ||
4686 | fi; | |
4687 | ||
4688 | eval "$ac_cv_use_apple_ieee" | |
4689 | if test "$no_cache" != 1; then | |
4690 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4691 | fi | |
4692 | ||
4693 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4694 | echo "$as_me:$LINENO: result: yes" >&5 | |
4695 | echo "${ECHO_T}yes" >&6 | |
4696 | else | |
4697 | echo "$as_me:$LINENO: result: no" >&5 | |
4698 | echo "${ECHO_T}no" >&6 | |
4699 | fi | |
4700 | ||
4701 | ||
81f90336 MW |
4702 | enablestring= |
4703 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4704 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4705 | no_cache=0 | |
4706 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4707 | if test "${enable_arcstream+set}" = set; then | |
4708 | enableval="$enable_arcstream" | |
4709 | ||
4710 | if test "$enableval" = yes; then | |
9e8e867f | 4711 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4712 | else |
9e8e867f | 4713 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4714 | fi |
4715 | ||
4716 | else | |
4717 | ||
9e8e867f | 4718 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4719 | if test "x$LINE" != x ; then |
4720 | eval "DEFAULT_$LINE" | |
4721 | else | |
4722 | no_cache=1 | |
4723 | fi | |
4724 | ||
9e8e867f | 4725 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4726 | |
4727 | fi; | |
4728 | ||
4729 | eval "$ac_cv_use_arcstream" | |
4730 | if test "$no_cache" != 1; then | |
4731 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4732 | fi | |
4733 | ||
9e8e867f | 4734 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4735 | echo "$as_me:$LINENO: result: yes" >&5 |
4736 | echo "${ECHO_T}yes" >&6 | |
4737 | else | |
4738 | echo "$as_me:$LINENO: result: no" >&5 | |
4739 | echo "${ECHO_T}no" >&6 | |
4740 | fi | |
4741 | ||
4742 | ||
a848cd7e | 4743 | enablestring= |
36b6448c VZ |
4744 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4745 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4746 | no_cache=0 |
36b6448c VZ |
4747 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4748 | if test "${enable_backtrace+set}" = set; then | |
4749 | enableval="$enable_backtrace" | |
a848cd7e SC |
4750 | |
4751 | if test "$enableval" = yes; then | |
36b6448c | 4752 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4753 | else |
36b6448c | 4754 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4755 | fi |
4756 | ||
4757 | else | |
4758 | ||
36b6448c | 4759 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4760 | if test "x$LINE" != x ; then |
4761 | eval "DEFAULT_$LINE" | |
4762 | else | |
4763 | no_cache=1 | |
4764 | fi | |
4765 | ||
36b6448c | 4766 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4767 | |
4768 | fi; | |
4769 | ||
36b6448c | 4770 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4771 | if test "$no_cache" != 1; then |
36b6448c | 4772 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4773 | fi |
4774 | ||
36b6448c | 4775 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4776 | echo "$as_me:$LINENO: result: yes" >&5 |
4777 | echo "${ECHO_T}yes" >&6 | |
4778 | else | |
4779 | echo "$as_me:$LINENO: result: no" >&5 | |
4780 | echo "${ECHO_T}no" >&6 | |
4781 | fi | |
4782 | ||
4783 | ||
eaff0f0d | 4784 | enablestring= |
36b6448c VZ |
4785 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4786 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4787 | no_cache=0 |
36b6448c VZ |
4788 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4789 | if test "${enable_catch_segvs+set}" = set; then | |
4790 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4791 | |
4792 | if test "$enableval" = yes; then | |
36b6448c | 4793 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4794 | else |
36b6448c | 4795 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4796 | fi |
4797 | ||
4798 | else | |
4799 | ||
36b6448c | 4800 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4801 | if test "x$LINE" != x ; then |
4802 | eval "DEFAULT_$LINE" | |
4803 | else | |
4804 | no_cache=1 | |
4805 | fi | |
4806 | ||
36b6448c | 4807 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4808 | |
4809 | fi; | |
4810 | ||
36b6448c | 4811 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4812 | if test "$no_cache" != 1; then |
36b6448c | 4813 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4814 | fi |
4815 | ||
36b6448c | 4816 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4817 | echo "$as_me:$LINENO: result: yes" >&5 |
4818 | echo "${ECHO_T}yes" >&6 | |
4819 | else | |
4820 | echo "$as_me:$LINENO: result: no" >&5 | |
4821 | echo "${ECHO_T}no" >&6 | |
4822 | fi | |
4823 | ||
4824 | ||
a848cd7e SC |
4825 | enablestring= |
4826 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4827 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4828 | no_cache=0 | |
4829 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4830 | if test "${enable_cmdline+set}" = set; then | |
4831 | enableval="$enable_cmdline" | |
4832 | ||
4833 | if test "$enableval" = yes; then | |
4834 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4835 | else | |
4836 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4837 | fi | |
4838 | ||
4839 | else | |
4840 | ||
4841 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4842 | if test "x$LINE" != x ; then | |
4843 | eval "DEFAULT_$LINE" | |
4844 | else | |
4845 | no_cache=1 | |
4846 | fi | |
4847 | ||
4848 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4849 | ||
4850 | fi; | |
4851 | ||
4852 | eval "$ac_cv_use_cmdline" | |
4853 | if test "$no_cache" != 1; then | |
4854 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4855 | fi | |
4856 | ||
4857 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4858 | echo "$as_me:$LINENO: result: yes" >&5 | |
4859 | echo "${ECHO_T}yes" >&6 | |
4860 | else | |
4861 | echo "$as_me:$LINENO: result: no" >&5 | |
4862 | echo "${ECHO_T}no" >&6 | |
4863 | fi | |
4864 | ||
4865 | ||
4866 | enablestring= | |
4867 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4868 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4869 | no_cache=0 | |
4870 | # Check whether --enable-datetime or --disable-datetime was given. | |
4871 | if test "${enable_datetime+set}" = set; then | |
4872 | enableval="$enable_datetime" | |
4873 | ||
4874 | if test "$enableval" = yes; then | |
4875 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4876 | else | |
4877 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4878 | fi | |
4879 | ||
4880 | else | |
4881 | ||
4882 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4883 | if test "x$LINE" != x ; then | |
4884 | eval "DEFAULT_$LINE" | |
4885 | else | |
4886 | no_cache=1 | |
4887 | fi | |
4888 | ||
4889 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4890 | ||
4891 | fi; | |
4892 | ||
4893 | eval "$ac_cv_use_datetime" | |
4894 | if test "$no_cache" != 1; then | |
4895 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4896 | fi | |
4897 | ||
4898 | if test "$wxUSE_DATETIME" = yes; then | |
4899 | echo "$as_me:$LINENO: result: yes" >&5 | |
4900 | echo "${ECHO_T}yes" >&6 | |
4901 | else | |
4902 | echo "$as_me:$LINENO: result: no" >&5 | |
4903 | echo "${ECHO_T}no" >&6 | |
4904 | fi | |
4905 | ||
4906 | ||
36b6448c VZ |
4907 | enablestring= |
4908 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4909 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4910 | no_cache=0 | |
4911 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4912 | if test "${enable_debugreport+set}" = set; then | |
4913 | enableval="$enable_debugreport" | |
4914 | ||
4915 | if test "$enableval" = yes; then | |
4916 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4917 | else | |
4918 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4919 | fi | |
4920 | ||
4921 | else | |
4922 | ||
4923 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4924 | if test "x$LINE" != x ; then | |
4925 | eval "DEFAULT_$LINE" | |
4926 | else | |
4927 | no_cache=1 | |
4928 | fi | |
4929 | ||
4930 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4931 | ||
4932 | fi; | |
4933 | ||
4934 | eval "$ac_cv_use_debugreport" | |
4935 | if test "$no_cache" != 1; then | |
4936 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4937 | fi | |
4938 | ||
4939 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
4940 | echo "$as_me:$LINENO: result: yes" >&5 | |
4941 | echo "${ECHO_T}yes" >&6 | |
4942 | else | |
4943 | echo "$as_me:$LINENO: result: no" >&5 | |
4944 | echo "${ECHO_T}no" >&6 | |
4945 | fi | |
4946 | ||
4947 | ||
a848cd7e SC |
4948 | enablestring= |
4949 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4950 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4951 | no_cache=0 | |
4952 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4953 | if test "${enable_dialupman+set}" = set; then | |
4954 | enableval="$enable_dialupman" | |
4955 | ||
4956 | if test "$enableval" = yes; then | |
4957 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4958 | else | |
4959 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4960 | fi | |
4961 | ||
4962 | else | |
4963 | ||
4964 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4965 | if test "x$LINE" != x ; then | |
4966 | eval "DEFAULT_$LINE" | |
4967 | else | |
4968 | no_cache=1 | |
4969 | fi | |
4970 | ||
4971 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4972 | ||
4973 | fi; | |
4974 | ||
4975 | eval "$ac_cv_use_dialupman" | |
4976 | if test "$no_cache" != 1; then | |
4977 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4978 | fi | |
4979 | ||
4980 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4981 | echo "$as_me:$LINENO: result: yes" >&5 | |
4982 | echo "${ECHO_T}yes" >&6 | |
4983 | else | |
4984 | echo "$as_me:$LINENO: result: no" >&5 | |
4985 | echo "${ECHO_T}no" >&6 | |
4986 | fi | |
4987 | ||
4988 | ||
4989 | enablestring= | |
4990 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4991 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4992 | no_cache=0 | |
4993 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4994 | if test "${enable_dynlib+set}" = set; then | |
4995 | enableval="$enable_dynlib" | |
4996 | ||
4997 | if test "$enableval" = yes; then | |
4998 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4999 | else | |
5000 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5001 | fi | |
5002 | ||
5003 | else | |
5004 | ||
5005 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5006 | if test "x$LINE" != x ; then | |
5007 | eval "DEFAULT_$LINE" | |
5008 | else | |
5009 | no_cache=1 | |
5010 | fi | |
5011 | ||
5012 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5013 | ||
5014 | fi; | |
5015 | ||
5016 | eval "$ac_cv_use_dynlib" | |
5017 | if test "$no_cache" != 1; then | |
5018 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5019 | fi | |
5020 | ||
5021 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5022 | echo "$as_me:$LINENO: result: yes" >&5 | |
5023 | echo "${ECHO_T}yes" >&6 | |
5024 | else | |
5025 | echo "$as_me:$LINENO: result: no" >&5 | |
5026 | echo "${ECHO_T}no" >&6 | |
5027 | fi | |
5028 | ||
5029 | ||
5030 | enablestring= | |
5031 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5032 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5033 | no_cache=0 | |
5034 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5035 | if test "${enable_dynamicloader+set}" = set; then | |
5036 | enableval="$enable_dynamicloader" | |
5037 | ||
5038 | if test "$enableval" = yes; then | |
5039 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5040 | else | |
5041 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5042 | fi | |
5043 | ||
5044 | else | |
5045 | ||
5046 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5047 | if test "x$LINE" != x ; then | |
5048 | eval "DEFAULT_$LINE" | |
5049 | else | |
5050 | no_cache=1 | |
5051 | fi | |
5052 | ||
5053 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5054 | ||
5055 | fi; | |
5056 | ||
5057 | eval "$ac_cv_use_dynamicloader" | |
5058 | if test "$no_cache" != 1; then | |
5059 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5060 | fi | |
5061 | ||
5062 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5063 | echo "$as_me:$LINENO: result: yes" >&5 | |
5064 | echo "${ECHO_T}yes" >&6 | |
5065 | else | |
5066 | echo "$as_me:$LINENO: result: no" >&5 | |
5067 | echo "${ECHO_T}no" >&6 | |
5068 | fi | |
5069 | ||
5070 | ||
5071 | enablestring= | |
5072 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5073 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5074 | no_cache=0 | |
5075 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5076 | if test "${enable_exceptions+set}" = set; then | |
5077 | enableval="$enable_exceptions" | |
5078 | ||
5079 | if test "$enableval" = yes; then | |
5080 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5081 | else | |
5082 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5083 | fi | |
5084 | ||
5085 | else | |
5086 | ||
5087 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5088 | if test "x$LINE" != x ; then | |
5089 | eval "DEFAULT_$LINE" | |
5090 | else | |
5091 | no_cache=1 | |
5092 | fi | |
5093 | ||
5094 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5095 | ||
5096 | fi; | |
5097 | ||
5098 | eval "$ac_cv_use_exceptions" | |
5099 | if test "$no_cache" != 1; then | |
5100 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5101 | fi | |
5102 | ||
5103 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5104 | echo "$as_me:$LINENO: result: yes" >&5 | |
5105 | echo "${ECHO_T}yes" >&6 | |
5106 | else | |
5107 | echo "$as_me:$LINENO: result: no" >&5 | |
5108 | echo "${ECHO_T}no" >&6 | |
5109 | fi | |
5110 | ||
5111 | ||
5112 | enablestring= | |
5113 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5114 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5115 | no_cache=0 | |
5116 | # Check whether --enable-ffile or --disable-ffile was given. | |
5117 | if test "${enable_ffile+set}" = set; then | |
5118 | enableval="$enable_ffile" | |
5119 | ||
5120 | if test "$enableval" = yes; then | |
5121 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5122 | else | |
5123 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5124 | fi | |
5125 | ||
5126 | else | |
5127 | ||
5128 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5129 | if test "x$LINE" != x ; then | |
5130 | eval "DEFAULT_$LINE" | |
5131 | else | |
5132 | no_cache=1 | |
5133 | fi | |
5134 | ||
5135 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5136 | ||
5137 | fi; | |
5138 | ||
5139 | eval "$ac_cv_use_ffile" | |
5140 | if test "$no_cache" != 1; then | |
5141 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5142 | fi | |
5143 | ||
5144 | if test "$wxUSE_FFILE" = yes; then | |
5145 | echo "$as_me:$LINENO: result: yes" >&5 | |
5146 | echo "${ECHO_T}yes" >&6 | |
5147 | else | |
5148 | echo "$as_me:$LINENO: result: no" >&5 | |
5149 | echo "${ECHO_T}no" >&6 | |
5150 | fi | |
5151 | ||
5152 | ||
5153 | enablestring= | |
5154 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5155 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5156 | no_cache=0 | |
5157 | # Check whether --enable-file or --disable-file was given. | |
5158 | if test "${enable_file+set}" = set; then | |
5159 | enableval="$enable_file" | |
5160 | ||
5161 | if test "$enableval" = yes; then | |
5162 | ac_cv_use_file='wxUSE_FILE=yes' | |
5163 | else | |
5164 | ac_cv_use_file='wxUSE_FILE=no' | |
5165 | fi | |
5166 | ||
5167 | else | |
5168 | ||
5169 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5170 | if test "x$LINE" != x ; then | |
5171 | eval "DEFAULT_$LINE" | |
5172 | else | |
5173 | no_cache=1 | |
5174 | fi | |
5175 | ||
5176 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5177 | ||
5178 | fi; | |
5179 | ||
5180 | eval "$ac_cv_use_file" | |
5181 | if test "$no_cache" != 1; then | |
5182 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5183 | fi | |
5184 | ||
5185 | if test "$wxUSE_FILE" = yes; then | |
5186 | echo "$as_me:$LINENO: result: yes" >&5 | |
5187 | echo "${ECHO_T}yes" >&6 | |
5188 | else | |
5189 | echo "$as_me:$LINENO: result: no" >&5 | |
5190 | echo "${ECHO_T}no" >&6 | |
5191 | fi | |
5192 | ||
5193 | ||
5194 | enablestring= | |
5195 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5196 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5197 | no_cache=0 | |
5198 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5199 | if test "${enable_filesystem+set}" = set; then | |
5200 | enableval="$enable_filesystem" | |
5201 | ||
5202 | if test "$enableval" = yes; then | |
5203 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5204 | else | |
5205 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5206 | fi | |
5207 | ||
5208 | else | |
5209 | ||
5210 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5211 | if test "x$LINE" != x ; then | |
5212 | eval "DEFAULT_$LINE" | |
5213 | else | |
5214 | no_cache=1 | |
5215 | fi | |
5216 | ||
5217 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5218 | ||
5219 | fi; | |
5220 | ||
5221 | eval "$ac_cv_use_filesystem" | |
5222 | if test "$no_cache" != 1; then | |
5223 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5224 | fi | |
5225 | ||
5226 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5227 | echo "$as_me:$LINENO: result: yes" >&5 | |
5228 | echo "${ECHO_T}yes" >&6 | |
5229 | else | |
5230 | echo "$as_me:$LINENO: result: no" >&5 | |
5231 | echo "${ECHO_T}no" >&6 | |
5232 | fi | |
5233 | ||
5234 | ||
5235 | enablestring= | |
5236 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5237 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5238 | no_cache=0 | |
5239 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5240 | if test "${enable_fontmap+set}" = set; then | |
5241 | enableval="$enable_fontmap" | |
5242 | ||
5243 | if test "$enableval" = yes; then | |
5244 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5245 | else | |
5246 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5247 | fi | |
5248 | ||
5249 | else | |
5250 | ||
5251 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5252 | if test "x$LINE" != x ; then | |
5253 | eval "DEFAULT_$LINE" | |
5254 | else | |
5255 | no_cache=1 | |
5256 | fi | |
5257 | ||
5258 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5259 | ||
5260 | fi; | |
5261 | ||
5262 | eval "$ac_cv_use_fontmap" | |
5263 | if test "$no_cache" != 1; then | |
5264 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5265 | fi | |
5266 | ||
5267 | if test "$wxUSE_FONTMAP" = yes; then | |
5268 | echo "$as_me:$LINENO: result: yes" >&5 | |
5269 | echo "${ECHO_T}yes" >&6 | |
5270 | else | |
5271 | echo "$as_me:$LINENO: result: no" >&5 | |
5272 | echo "${ECHO_T}no" >&6 | |
5273 | fi | |
5274 | ||
5275 | ||
5276 | enablestring= | |
5277 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5278 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5279 | no_cache=0 | |
5280 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5281 | if test "${enable_fs_inet+set}" = set; then | |
5282 | enableval="$enable_fs_inet" | |
5283 | ||
5284 | if test "$enableval" = yes; then | |
5285 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5286 | else | |
5287 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5288 | fi | |
5289 | ||
5290 | else | |
5291 | ||
5292 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5293 | if test "x$LINE" != x ; then | |
5294 | eval "DEFAULT_$LINE" | |
5295 | else | |
5296 | no_cache=1 | |
5297 | fi | |
5298 | ||
5299 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5300 | ||
5301 | fi; | |
5302 | ||
5303 | eval "$ac_cv_use_fs_inet" | |
5304 | if test "$no_cache" != 1; then | |
5305 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5306 | fi | |
5307 | ||
5308 | if test "$wxUSE_FS_INET" = yes; then | |
5309 | echo "$as_me:$LINENO: result: yes" >&5 | |
5310 | echo "${ECHO_T}yes" >&6 | |
5311 | else | |
5312 | echo "$as_me:$LINENO: result: no" >&5 | |
5313 | echo "${ECHO_T}no" >&6 | |
5314 | fi | |
5315 | ||
5316 | ||
5317 | enablestring= | |
5318 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5319 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5320 | no_cache=0 | |
5321 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5322 | if test "${enable_fs_zip+set}" = set; then | |
5323 | enableval="$enable_fs_zip" | |
5324 | ||
5325 | if test "$enableval" = yes; then | |
5326 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5327 | else | |
5328 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5329 | fi | |
5330 | ||
5331 | else | |
5332 | ||
5333 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5334 | if test "x$LINE" != x ; then | |
5335 | eval "DEFAULT_$LINE" | |
5336 | else | |
5337 | no_cache=1 | |
5338 | fi | |
5339 | ||
5340 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5341 | ||
5342 | fi; | |
5343 | ||
5344 | eval "$ac_cv_use_fs_zip" | |
5345 | if test "$no_cache" != 1; then | |
5346 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5347 | fi | |
5348 | ||
5349 | if test "$wxUSE_FS_ZIP" = yes; then | |
5350 | echo "$as_me:$LINENO: result: yes" >&5 | |
5351 | echo "${ECHO_T}yes" >&6 | |
5352 | else | |
5353 | echo "$as_me:$LINENO: result: no" >&5 | |
5354 | echo "${ECHO_T}no" >&6 | |
5355 | fi | |
5356 | ||
5357 | ||
5358 | enablestring= | |
5359 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5360 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5361 | no_cache=0 | |
5362 | # Check whether --enable-geometry or --disable-geometry was given. | |
5363 | if test "${enable_geometry+set}" = set; then | |
5364 | enableval="$enable_geometry" | |
5365 | ||
5366 | if test "$enableval" = yes; then | |
5367 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5368 | else | |
5369 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5370 | fi | |
5371 | ||
5372 | else | |
5373 | ||
5374 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5375 | if test "x$LINE" != x ; then | |
5376 | eval "DEFAULT_$LINE" | |
5377 | else | |
5378 | no_cache=1 | |
5379 | fi | |
5380 | ||
5381 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5382 | ||
5383 | fi; | |
5384 | ||
5385 | eval "$ac_cv_use_geometry" | |
5386 | if test "$no_cache" != 1; then | |
5387 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5388 | fi | |
5389 | ||
5390 | if test "$wxUSE_GEOMETRY" = yes; then | |
5391 | echo "$as_me:$LINENO: result: yes" >&5 | |
5392 | echo "${ECHO_T}yes" >&6 | |
5393 | else | |
5394 | echo "$as_me:$LINENO: result: no" >&5 | |
5395 | echo "${ECHO_T}no" >&6 | |
5396 | fi | |
5397 | ||
5398 | ||
5399 | enablestring= | |
5400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5401 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5402 | no_cache=0 | |
5403 | # Check whether --enable-log or --disable-log was given. | |
5404 | if test "${enable_log+set}" = set; then | |
5405 | enableval="$enable_log" | |
5406 | ||
5407 | if test "$enableval" = yes; then | |
5408 | ac_cv_use_log='wxUSE_LOG=yes' | |
5409 | else | |
5410 | ac_cv_use_log='wxUSE_LOG=no' | |
5411 | fi | |
5412 | ||
5413 | else | |
5414 | ||
5415 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5416 | if test "x$LINE" != x ; then | |
5417 | eval "DEFAULT_$LINE" | |
5418 | else | |
5419 | no_cache=1 | |
5420 | fi | |
5421 | ||
5422 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5423 | ||
5424 | fi; | |
5425 | ||
5426 | eval "$ac_cv_use_log" | |
5427 | if test "$no_cache" != 1; then | |
5428 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5429 | fi | |
5430 | ||
5431 | if test "$wxUSE_LOG" = yes; then | |
5432 | echo "$as_me:$LINENO: result: yes" >&5 | |
5433 | echo "${ECHO_T}yes" >&6 | |
5434 | else | |
5435 | echo "$as_me:$LINENO: result: no" >&5 | |
5436 | echo "${ECHO_T}no" >&6 | |
5437 | fi | |
5438 | ||
5439 | ||
5440 | enablestring= | |
5441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5442 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5443 | no_cache=0 | |
5444 | # Check whether --enable-longlong or --disable-longlong was given. | |
5445 | if test "${enable_longlong+set}" = set; then | |
5446 | enableval="$enable_longlong" | |
5447 | ||
5448 | if test "$enableval" = yes; then | |
5449 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5450 | else | |
5451 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5452 | fi | |
5453 | ||
5454 | else | |
5455 | ||
5456 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5457 | if test "x$LINE" != x ; then | |
5458 | eval "DEFAULT_$LINE" | |
5459 | else | |
5460 | no_cache=1 | |
5461 | fi | |
5462 | ||
5463 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5464 | ||
5465 | fi; | |
5466 | ||
5467 | eval "$ac_cv_use_longlong" | |
5468 | if test "$no_cache" != 1; then | |
5469 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5470 | fi | |
5471 | ||
5472 | if test "$wxUSE_LONGLONG" = yes; then | |
5473 | echo "$as_me:$LINENO: result: yes" >&5 | |
5474 | echo "${ECHO_T}yes" >&6 | |
5475 | else | |
5476 | echo "$as_me:$LINENO: result: no" >&5 | |
5477 | echo "${ECHO_T}no" >&6 | |
5478 | fi | |
5479 | ||
5480 | ||
5481 | enablestring= | |
5482 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5483 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5484 | no_cache=0 | |
5485 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5486 | if test "${enable_mimetype+set}" = set; then | |
5487 | enableval="$enable_mimetype" | |
5488 | ||
5489 | if test "$enableval" = yes; then | |
5490 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5491 | else | |
5492 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5493 | fi | |
5494 | ||
5495 | else | |
5496 | ||
5497 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5498 | if test "x$LINE" != x ; then | |
5499 | eval "DEFAULT_$LINE" | |
5500 | else | |
5501 | no_cache=1 | |
5502 | fi | |
5503 | ||
5504 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5505 | ||
5506 | fi; | |
5507 | ||
5508 | eval "$ac_cv_use_mimetype" | |
5509 | if test "$no_cache" != 1; then | |
5510 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5511 | fi | |
5512 | ||
5513 | if test "$wxUSE_MIMETYPE" = yes; then | |
5514 | echo "$as_me:$LINENO: result: yes" >&5 | |
5515 | echo "${ECHO_T}yes" >&6 | |
5516 | else | |
5517 | echo "$as_me:$LINENO: result: no" >&5 | |
5518 | echo "${ECHO_T}no" >&6 | |
5519 | fi | |
5520 | ||
5521 | ||
5522 | enablestring= | |
5523 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5524 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5525 | no_cache=0 | |
5526 | # Check whether --enable-mslu or --disable-mslu was given. | |
5527 | if test "${enable_mslu+set}" = set; then | |
5528 | enableval="$enable_mslu" | |
5529 | ||
5530 | if test "$enableval" = yes; then | |
5531 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5532 | else | |
5533 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5534 | fi | |
5535 | ||
5536 | else | |
5537 | ||
5538 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5539 | if test "x$LINE" != x ; then | |
5540 | eval "DEFAULT_$LINE" | |
5541 | else | |
5542 | no_cache=1 | |
5543 | fi | |
5544 | ||
5545 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5546 | ||
5547 | fi; | |
5548 | ||
5549 | eval "$ac_cv_use_mslu" | |
5550 | if test "$no_cache" != 1; then | |
5551 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5552 | fi | |
5553 | ||
5554 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5555 | echo "$as_me:$LINENO: result: yes" >&5 | |
5556 | echo "${ECHO_T}yes" >&6 | |
5557 | else | |
5558 | echo "$as_me:$LINENO: result: no" >&5 | |
5559 | echo "${ECHO_T}no" >&6 | |
5560 | fi | |
5561 | ||
5562 | ||
5563 | enablestring= | |
5564 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5565 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5566 | no_cache=0 | |
5567 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5568 | if test "${enable_snglinst+set}" = set; then | |
5569 | enableval="$enable_snglinst" | |
5570 | ||
5571 | if test "$enableval" = yes; then | |
5572 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5573 | else | |
5574 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5575 | fi | |
5576 | ||
5577 | else | |
5578 | ||
5579 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5580 | if test "x$LINE" != x ; then | |
5581 | eval "DEFAULT_$LINE" | |
5582 | else | |
5583 | no_cache=1 | |
5584 | fi | |
5585 | ||
5586 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5587 | ||
5588 | fi; | |
5589 | ||
5590 | eval "$ac_cv_use_snglinst" | |
5591 | if test "$no_cache" != 1; then | |
5592 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5593 | fi | |
5594 | ||
5595 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5596 | echo "$as_me:$LINENO: result: yes" >&5 | |
5597 | echo "${ECHO_T}yes" >&6 | |
5598 | else | |
5599 | echo "$as_me:$LINENO: result: no" >&5 | |
5600 | echo "${ECHO_T}no" >&6 | |
5601 | fi | |
5602 | ||
5603 | ||
5604 | enablestring= | |
07158944 VZ |
5605 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5606 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5607 | no_cache=0 |
07158944 VZ |
5608 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5609 | if test "${enable_std_iostreams+set}" = set; then | |
5610 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5611 | |
5612 | if test "$enableval" = yes; then | |
07158944 | 5613 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5614 | else |
07158944 | 5615 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5616 | fi |
5617 | ||
5618 | else | |
5619 | ||
07158944 | 5620 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5621 | if test "x$LINE" != x ; then |
5622 | eval "DEFAULT_$LINE" | |
5623 | else | |
5624 | no_cache=1 | |
5625 | fi | |
5626 | ||
07158944 | 5627 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5628 | |
5629 | fi; | |
5630 | ||
07158944 | 5631 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5632 | if test "$no_cache" != 1; then |
07158944 | 5633 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5634 | fi |
5635 | ||
07158944 | 5636 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5637 | echo "$as_me:$LINENO: result: yes" >&5 |
5638 | echo "${ECHO_T}yes" >&6 | |
5639 | else | |
5640 | echo "$as_me:$LINENO: result: no" >&5 | |
5641 | echo "${ECHO_T}no" >&6 | |
5642 | fi | |
5643 | ||
5644 | ||
59746b65 MW |
5645 | enablestring= |
5646 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5647 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5648 | no_cache=0 | |
5649 | # Check whether --enable-std_string or --disable-std_string was given. | |
5650 | if test "${enable_std_string+set}" = set; then | |
5651 | enableval="$enable_std_string" | |
5652 | ||
5653 | if test "$enableval" = yes; then | |
5654 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5655 | else | |
5656 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5657 | fi | |
5658 | ||
5659 | else | |
5660 | ||
5661 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5662 | if test "x$LINE" != x ; then | |
5663 | eval "DEFAULT_$LINE" | |
5664 | else | |
5665 | no_cache=1 | |
5666 | fi | |
5667 | ||
5668 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5669 | ||
5670 | fi; | |
5671 | ||
5672 | eval "$ac_cv_use_std_string" | |
5673 | if test "$no_cache" != 1; then | |
5674 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5675 | fi | |
5676 | ||
5677 | if test "$wxUSE_STD_STRING" = yes; then | |
5678 | echo "$as_me:$LINENO: result: yes" >&5 | |
5679 | echo "${ECHO_T}yes" >&6 | |
5680 | else | |
5681 | echo "$as_me:$LINENO: result: no" >&5 | |
5682 | echo "${ECHO_T}no" >&6 | |
5683 | fi | |
5684 | ||
5685 | ||
a848cd7e | 5686 | enablestring= |
07158944 VZ |
5687 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5688 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5689 | no_cache=0 |
07158944 VZ |
5690 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5691 | if test "${enable_stdpaths+set}" = set; then | |
5692 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5693 | |
5694 | if test "$enableval" = yes; then | |
07158944 | 5695 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5696 | else |
07158944 | 5697 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5698 | fi |
5699 | ||
5700 | else | |
5701 | ||
07158944 | 5702 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5703 | if test "x$LINE" != x ; then |
5704 | eval "DEFAULT_$LINE" | |
5705 | else | |
5706 | no_cache=1 | |
5707 | fi | |
5708 | ||
07158944 | 5709 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5710 | |
5711 | fi; | |
5712 | ||
07158944 | 5713 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5714 | if test "$no_cache" != 1; then |
07158944 | 5715 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5716 | fi |
5717 | ||
07158944 | 5718 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5719 | echo "$as_me:$LINENO: result: yes" >&5 |
5720 | echo "${ECHO_T}yes" >&6 | |
5721 | else | |
5722 | echo "$as_me:$LINENO: result: no" >&5 | |
5723 | echo "${ECHO_T}no" >&6 | |
5724 | fi | |
5725 | ||
5726 | ||
5727 | enablestring= | |
5728 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5729 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5730 | no_cache=0 | |
5731 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5732 | if test "${enable_stopwatch+set}" = set; then | |
5733 | enableval="$enable_stopwatch" | |
5734 | ||
5735 | if test "$enableval" = yes; then | |
5736 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5737 | else | |
5738 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5739 | fi | |
5740 | ||
5741 | else | |
5742 | ||
5743 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5744 | if test "x$LINE" != x ; then | |
5745 | eval "DEFAULT_$LINE" | |
5746 | else | |
5747 | no_cache=1 | |
5748 | fi | |
5749 | ||
5750 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5751 | ||
5752 | fi; | |
5753 | ||
5754 | eval "$ac_cv_use_stopwatch" | |
5755 | if test "$no_cache" != 1; then | |
5756 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5757 | fi | |
5758 | ||
5759 | if test "$wxUSE_STOPWATCH" = yes; then | |
5760 | echo "$as_me:$LINENO: result: yes" >&5 | |
5761 | echo "${ECHO_T}yes" >&6 | |
5762 | else | |
5763 | echo "$as_me:$LINENO: result: no" >&5 | |
5764 | echo "${ECHO_T}no" >&6 | |
5765 | fi | |
5766 | ||
5767 | ||
07158944 VZ |
5768 | enablestring= |
5769 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5770 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5771 | no_cache=0 | |
5772 | # Check whether --enable-streams or --disable-streams was given. | |
5773 | if test "${enable_streams+set}" = set; then | |
5774 | enableval="$enable_streams" | |
5775 | ||
5776 | if test "$enableval" = yes; then | |
5777 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5778 | else | |
5779 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5780 | fi | |
5781 | ||
5782 | else | |
5783 | ||
5784 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5785 | if test "x$LINE" != x ; then | |
5786 | eval "DEFAULT_$LINE" | |
5787 | else | |
5788 | no_cache=1 | |
5789 | fi | |
5790 | ||
5791 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5792 | ||
5793 | fi; | |
5794 | ||
5795 | eval "$ac_cv_use_streams" | |
5796 | if test "$no_cache" != 1; then | |
5797 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5798 | fi | |
5799 | ||
5800 | if test "$wxUSE_STREAMS" = yes; then | |
5801 | echo "$as_me:$LINENO: result: yes" >&5 | |
5802 | echo "${ECHO_T}yes" >&6 | |
5803 | else | |
5804 | echo "$as_me:$LINENO: result: no" >&5 | |
5805 | echo "${ECHO_T}no" >&6 | |
5806 | fi | |
5807 | ||
5808 | ||
a848cd7e SC |
5809 | enablestring= |
5810 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5811 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5812 | no_cache=0 | |
5813 | # Check whether --enable-system_options or --disable-system_options was given. | |
5814 | if test "${enable_system_options+set}" = set; then | |
5815 | enableval="$enable_system_options" | |
5816 | ||
5817 | if test "$enableval" = yes; then | |
5818 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5819 | else | |
5820 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5821 | fi | |
5822 | ||
5823 | else | |
5824 | ||
5825 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5826 | if test "x$LINE" != x ; then | |
5827 | eval "DEFAULT_$LINE" | |
5828 | else | |
5829 | no_cache=1 | |
5830 | fi | |
5831 | ||
5832 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5833 | ||
5834 | fi; | |
5835 | ||
5836 | eval "$ac_cv_use_system_options" | |
5837 | if test "$no_cache" != 1; then | |
5838 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5839 | fi | |
5840 | ||
5841 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5842 | echo "$as_me:$LINENO: result: yes" >&5 | |
5843 | echo "${ECHO_T}yes" >&6 | |
5844 | else | |
5845 | echo "$as_me:$LINENO: result: no" >&5 | |
5846 | echo "${ECHO_T}no" >&6 | |
5847 | fi | |
5848 | ||
5849 | ||
5850 | enablestring= | |
5851 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5852 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5853 | no_cache=0 | |
5854 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5855 | if test "${enable_textbuf+set}" = set; then | |
5856 | enableval="$enable_textbuf" | |
5857 | ||
5858 | if test "$enableval" = yes; then | |
5859 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5860 | else | |
5861 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5862 | fi | |
5863 | ||
5864 | else | |
5865 | ||
5866 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5867 | if test "x$LINE" != x ; then | |
5868 | eval "DEFAULT_$LINE" | |
5869 | else | |
5870 | no_cache=1 | |
5871 | fi | |
5872 | ||
5873 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5874 | ||
5875 | fi; | |
5876 | ||
5877 | eval "$ac_cv_use_textbuf" | |
5878 | if test "$no_cache" != 1; then | |
5879 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5880 | fi | |
5881 | ||
5882 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5883 | echo "$as_me:$LINENO: result: yes" >&5 | |
5884 | echo "${ECHO_T}yes" >&6 | |
5885 | else | |
5886 | echo "$as_me:$LINENO: result: no" >&5 | |
5887 | echo "${ECHO_T}no" >&6 | |
5888 | fi | |
5889 | ||
5890 | ||
5891 | enablestring= | |
5892 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5893 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5894 | no_cache=0 | |
5895 | # Check whether --enable-textfile or --disable-textfile was given. | |
5896 | if test "${enable_textfile+set}" = set; then | |
5897 | enableval="$enable_textfile" | |
5898 | ||
5899 | if test "$enableval" = yes; then | |
5900 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5901 | else | |
5902 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5903 | fi | |
5904 | ||
5905 | else | |
5906 | ||
5907 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5908 | if test "x$LINE" != x ; then | |
5909 | eval "DEFAULT_$LINE" | |
5910 | else | |
5911 | no_cache=1 | |
5912 | fi | |
5913 | ||
5914 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5915 | ||
5916 | fi; | |
5917 | ||
5918 | eval "$ac_cv_use_textfile" | |
5919 | if test "$no_cache" != 1; then | |
5920 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5921 | fi | |
5922 | ||
5923 | if test "$wxUSE_TEXTFILE" = yes; then | |
5924 | echo "$as_me:$LINENO: result: yes" >&5 | |
5925 | echo "${ECHO_T}yes" >&6 | |
5926 | else | |
5927 | echo "$as_me:$LINENO: result: no" >&5 | |
5928 | echo "${ECHO_T}no" >&6 | |
5929 | fi | |
5930 | ||
5931 | ||
5932 | enablestring= | |
5933 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5934 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5935 | no_cache=0 | |
5936 | # Check whether --enable-timer or --disable-timer was given. | |
5937 | if test "${enable_timer+set}" = set; then | |
5938 | enableval="$enable_timer" | |
5939 | ||
5940 | if test "$enableval" = yes; then | |
5941 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5942 | else | |
5943 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5944 | fi | |
5945 | ||
5946 | else | |
5947 | ||
5948 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5949 | if test "x$LINE" != x ; then | |
5950 | eval "DEFAULT_$LINE" | |
5951 | else | |
5952 | no_cache=1 | |
5953 | fi | |
5954 | ||
5955 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5956 | ||
5957 | fi; | |
5958 | ||
5959 | eval "$ac_cv_use_timer" | |
5960 | if test "$no_cache" != 1; then | |
5961 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5962 | fi | |
5963 | ||
5964 | if test "$wxUSE_TIMER" = yes; then | |
5965 | echo "$as_me:$LINENO: result: yes" >&5 | |
5966 | echo "${ECHO_T}yes" >&6 | |
5967 | else | |
5968 | echo "$as_me:$LINENO: result: no" >&5 | |
5969 | echo "${ECHO_T}no" >&6 | |
5970 | fi | |
5971 | ||
5972 | ||
5973 | enablestring= | |
5974 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5975 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5976 | no_cache=0 | |
5977 | # Check whether --enable-unicode or --disable-unicode was given. | |
5978 | if test "${enable_unicode+set}" = set; then | |
5979 | enableval="$enable_unicode" | |
5980 | ||
5981 | if test "$enableval" = yes; then | |
5982 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5983 | else | |
5984 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5985 | fi | |
5986 | ||
5987 | else | |
5988 | ||
5989 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5990 | if test "x$LINE" != x ; then | |
5991 | eval "DEFAULT_$LINE" | |
5992 | else | |
5993 | no_cache=1 | |
5994 | fi | |
5995 | ||
5996 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5997 | ||
5998 | fi; | |
5999 | ||
6000 | eval "$ac_cv_use_unicode" | |
6001 | if test "$no_cache" != 1; then | |
6002 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6003 | fi | |
6004 | ||
6005 | if test "$wxUSE_UNICODE" = yes; then | |
6006 | echo "$as_me:$LINENO: result: yes" >&5 | |
6007 | echo "${ECHO_T}yes" >&6 | |
6008 | else | |
6009 | echo "$as_me:$LINENO: result: no" >&5 | |
6010 | echo "${ECHO_T}no" >&6 | |
6011 | fi | |
6012 | ||
6013 | ||
6014 | enablestring= | |
6015 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6016 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6017 | no_cache=0 | |
6018 | # Check whether --enable-sound or --disable-sound was given. | |
6019 | if test "${enable_sound+set}" = set; then | |
6020 | enableval="$enable_sound" | |
6021 | ||
6022 | if test "$enableval" = yes; then | |
6023 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6024 | else | |
6025 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6026 | fi | |
6027 | ||
6028 | else | |
6029 | ||
6030 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6031 | if test "x$LINE" != x ; then | |
6032 | eval "DEFAULT_$LINE" | |
6033 | else | |
6034 | no_cache=1 | |
6035 | fi | |
6036 | ||
6037 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6038 | ||
6039 | fi; | |
6040 | ||
6041 | eval "$ac_cv_use_sound" | |
6042 | if test "$no_cache" != 1; then | |
6043 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6044 | fi | |
6045 | ||
6046 | if test "$wxUSE_SOUND" = yes; then | |
6047 | echo "$as_me:$LINENO: result: yes" >&5 | |
6048 | echo "${ECHO_T}yes" >&6 | |
6049 | else | |
6050 | echo "$as_me:$LINENO: result: no" >&5 | |
6051 | echo "${ECHO_T}no" >&6 | |
6052 | fi | |
6053 | ||
6054 | ||
3b57de8b RL |
6055 | enablestring= |
6056 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6057 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6058 | no_cache=0 | |
6059 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6060 | if test "${enable_mediactrl+set}" = set; then | |
6061 | enableval="$enable_mediactrl" | |
6062 | ||
6063 | if test "$enableval" = yes; then | |
6064 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6065 | else | |
6066 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6067 | fi | |
6068 | ||
6069 | else | |
6070 | ||
6071 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6072 | if test "x$LINE" != x ; then | |
6073 | eval "DEFAULT_$LINE" | |
6074 | else | |
6075 | no_cache=1 | |
6076 | fi | |
6077 | ||
6078 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6079 | ||
6080 | fi; | |
6081 | ||
6082 | eval "$ac_cv_use_mediactrl" | |
6083 | if test "$no_cache" != 1; then | |
6084 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6085 | fi | |
6086 | ||
6087 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6088 | echo "$as_me:$LINENO: result: yes" >&5 | |
6089 | echo "${ECHO_T}yes" >&6 | |
6090 | else | |
6091 | echo "$as_me:$LINENO: result: no" >&5 | |
6092 | echo "${ECHO_T}no" >&6 | |
6093 | fi | |
6094 | ||
6095 | ||
a848cd7e SC |
6096 | enablestring= |
6097 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6098 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6099 | no_cache=0 | |
6100 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6101 | if test "${enable_wxprintfv+set}" = set; then | |
6102 | enableval="$enable_wxprintfv" | |
6103 | ||
6104 | if test "$enableval" = yes; then | |
6105 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6106 | else | |
6107 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6108 | fi | |
6109 | ||
6110 | else | |
6111 | ||
6112 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6113 | if test "x$LINE" != x ; then | |
6114 | eval "DEFAULT_$LINE" | |
6115 | else | |
6116 | no_cache=1 | |
6117 | fi | |
6118 | ||
6119 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6120 | ||
6121 | fi; | |
6122 | ||
6123 | eval "$ac_cv_use_wxprintfv" | |
6124 | if test "$no_cache" != 1; then | |
6125 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6126 | fi | |
6127 | ||
6128 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6129 | echo "$as_me:$LINENO: result: yes" >&5 | |
6130 | echo "${ECHO_T}yes" >&6 | |
6131 | else | |
6132 | echo "$as_me:$LINENO: result: no" >&5 | |
6133 | echo "${ECHO_T}no" >&6 | |
6134 | fi | |
6135 | ||
6136 | ||
6137 | enablestring= | |
6138 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6139 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6140 | no_cache=0 | |
6141 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6142 | if test "${enable_zipstream+set}" = set; then | |
6143 | enableval="$enable_zipstream" | |
6144 | ||
6145 | if test "$enableval" = yes; then | |
6146 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6147 | else | |
6148 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6149 | fi | |
6150 | ||
6151 | else | |
6152 | ||
6153 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6154 | if test "x$LINE" != x ; then | |
6155 | eval "DEFAULT_$LINE" | |
6156 | else | |
6157 | no_cache=1 | |
6158 | fi | |
6159 | ||
6160 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6161 | ||
6162 | fi; | |
6163 | ||
6164 | eval "$ac_cv_use_zipstream" | |
6165 | if test "$no_cache" != 1; then | |
6166 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6167 | fi | |
6168 | ||
6169 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6170 | echo "$as_me:$LINENO: result: yes" >&5 | |
6171 | echo "${ECHO_T}yes" >&6 | |
6172 | else | |
6173 | echo "$as_me:$LINENO: result: no" >&5 | |
6174 | echo "${ECHO_T}no" >&6 | |
6175 | fi | |
6176 | ||
6177 | ||
a848cd7e SC |
6178 | |
6179 | enablestring= | |
6180 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6181 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6182 | no_cache=0 | |
6183 | # Check whether --enable-url or --disable-url was given. | |
6184 | if test "${enable_url+set}" = set; then | |
6185 | enableval="$enable_url" | |
6186 | ||
6187 | if test "$enableval" = yes; then | |
6188 | ac_cv_use_url='wxUSE_URL=yes' | |
6189 | else | |
6190 | ac_cv_use_url='wxUSE_URL=no' | |
6191 | fi | |
6192 | ||
6193 | else | |
6194 | ||
6195 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6196 | if test "x$LINE" != x ; then | |
6197 | eval "DEFAULT_$LINE" | |
6198 | else | |
6199 | no_cache=1 | |
6200 | fi | |
6201 | ||
6202 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6203 | ||
6204 | fi; | |
6205 | ||
6206 | eval "$ac_cv_use_url" | |
6207 | if test "$no_cache" != 1; then | |
6208 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6209 | fi | |
6210 | ||
6211 | if test "$wxUSE_URL" = yes; then | |
6212 | echo "$as_me:$LINENO: result: yes" >&5 | |
6213 | echo "${ECHO_T}yes" >&6 | |
6214 | else | |
6215 | echo "$as_me:$LINENO: result: no" >&5 | |
6216 | echo "${ECHO_T}no" >&6 | |
6217 | fi | |
6218 | ||
6219 | ||
6220 | enablestring= | |
6221 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6222 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6223 | no_cache=0 | |
6224 | # Check whether --enable-protocol or --disable-protocol was given. | |
6225 | if test "${enable_protocol+set}" = set; then | |
6226 | enableval="$enable_protocol" | |
6227 | ||
6228 | if test "$enableval" = yes; then | |
6229 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6230 | else | |
6231 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6232 | fi | |
6233 | ||
6234 | else | |
6235 | ||
6236 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6237 | if test "x$LINE" != x ; then | |
6238 | eval "DEFAULT_$LINE" | |
6239 | else | |
6240 | no_cache=1 | |
6241 | fi | |
6242 | ||
6243 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6244 | ||
6245 | fi; | |
6246 | ||
6247 | eval "$ac_cv_use_protocol" | |
6248 | if test "$no_cache" != 1; then | |
6249 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6250 | fi | |
6251 | ||
6252 | if test "$wxUSE_PROTOCOL" = yes; then | |
6253 | echo "$as_me:$LINENO: result: yes" >&5 | |
6254 | echo "${ECHO_T}yes" >&6 | |
6255 | else | |
6256 | echo "$as_me:$LINENO: result: no" >&5 | |
6257 | echo "${ECHO_T}no" >&6 | |
6258 | fi | |
6259 | ||
6260 | ||
6261 | enablestring= | |
6262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6263 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6264 | no_cache=0 | |
6265 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6266 | if test "${enable_protocol_http+set}" = set; then | |
6267 | enableval="$enable_protocol_http" | |
6268 | ||
6269 | if test "$enableval" = yes; then | |
6270 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6271 | else | |
6272 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6273 | fi | |
6274 | ||
6275 | else | |
6276 | ||
6277 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6278 | if test "x$LINE" != x ; then | |
6279 | eval "DEFAULT_$LINE" | |
6280 | else | |
6281 | no_cache=1 | |
6282 | fi | |
6283 | ||
6284 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6285 | ||
6286 | fi; | |
6287 | ||
6288 | eval "$ac_cv_use_protocol_http" | |
6289 | if test "$no_cache" != 1; then | |
6290 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6291 | fi | |
6292 | ||
6293 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6294 | echo "$as_me:$LINENO: result: yes" >&5 | |
6295 | echo "${ECHO_T}yes" >&6 | |
6296 | else | |
6297 | echo "$as_me:$LINENO: result: no" >&5 | |
6298 | echo "${ECHO_T}no" >&6 | |
6299 | fi | |
6300 | ||
6301 | ||
6302 | enablestring= | |
6303 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6304 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6305 | no_cache=0 | |
6306 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6307 | if test "${enable_protocol_ftp+set}" = set; then | |
6308 | enableval="$enable_protocol_ftp" | |
6309 | ||
6310 | if test "$enableval" = yes; then | |
6311 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6312 | else | |
6313 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6314 | fi | |
6315 | ||
6316 | else | |
6317 | ||
6318 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6319 | if test "x$LINE" != x ; then | |
6320 | eval "DEFAULT_$LINE" | |
6321 | else | |
6322 | no_cache=1 | |
6323 | fi | |
6324 | ||
6325 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6326 | ||
6327 | fi; | |
6328 | ||
6329 | eval "$ac_cv_use_protocol_ftp" | |
6330 | if test "$no_cache" != 1; then | |
6331 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6332 | fi | |
6333 | ||
6334 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6335 | echo "$as_me:$LINENO: result: yes" >&5 | |
6336 | echo "${ECHO_T}yes" >&6 | |
6337 | else | |
6338 | echo "$as_me:$LINENO: result: no" >&5 | |
6339 | echo "${ECHO_T}no" >&6 | |
6340 | fi | |
6341 | ||
6342 | ||
6343 | enablestring= | |
6344 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6345 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6346 | no_cache=0 | |
6347 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6348 | if test "${enable_protocol_file+set}" = set; then | |
6349 | enableval="$enable_protocol_file" | |
6350 | ||
6351 | if test "$enableval" = yes; then | |
6352 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6353 | else | |
6354 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6355 | fi | |
6356 | ||
6357 | else | |
6358 | ||
6359 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6360 | if test "x$LINE" != x ; then | |
6361 | eval "DEFAULT_$LINE" | |
6362 | else | |
6363 | no_cache=1 | |
6364 | fi | |
6365 | ||
6366 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6367 | ||
6368 | fi; | |
6369 | ||
6370 | eval "$ac_cv_use_protocol_file" | |
6371 | if test "$no_cache" != 1; then | |
6372 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6373 | fi | |
6374 | ||
6375 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6376 | echo "$as_me:$LINENO: result: yes" >&5 | |
6377 | echo "${ECHO_T}yes" >&6 | |
6378 | else | |
6379 | echo "$as_me:$LINENO: result: no" >&5 | |
6380 | echo "${ECHO_T}no" >&6 | |
6381 | fi | |
6382 | ||
6383 | ||
6384 | ||
6385 | ||
6386 | ||
6387 | enablestring= | |
6388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6389 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6390 | no_cache=0 | |
6391 | # Check whether --enable-threads or --disable-threads was given. | |
6392 | if test "${enable_threads+set}" = set; then | |
6393 | enableval="$enable_threads" | |
6394 | ||
6395 | if test "$enableval" = yes; then | |
6396 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6397 | else | |
6398 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6399 | fi | |
6400 | ||
6401 | else | |
6402 | ||
6403 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6404 | if test "x$LINE" != x ; then | |
6405 | eval "DEFAULT_$LINE" | |
6406 | else | |
6407 | no_cache=1 | |
6408 | fi | |
6409 | ||
6410 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6411 | ||
6412 | fi; | |
6413 | ||
6414 | eval "$ac_cv_use_threads" | |
6415 | if test "$no_cache" != 1; then | |
6416 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6417 | fi | |
6418 | ||
6419 | if test "$wxUSE_THREADS" = yes; then | |
6420 | echo "$as_me:$LINENO: result: yes" >&5 | |
6421 | echo "${ECHO_T}yes" >&6 | |
6422 | else | |
6423 | echo "$as_me:$LINENO: result: no" >&5 | |
6424 | echo "${ECHO_T}no" >&6 | |
6425 | fi | |
6426 | ||
6427 | ||
6428 | if test "$wxUSE_GUI" = "yes"; then | |
6429 | ||
6430 | ||
6431 | ||
6432 | enablestring= | |
6433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6434 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6435 | no_cache=0 | |
6436 | # Check whether --enable-docview or --disable-docview was given. | |
6437 | if test "${enable_docview+set}" = set; then | |
6438 | enableval="$enable_docview" | |
6439 | ||
6440 | if test "$enableval" = yes; then | |
6441 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6442 | else | |
6443 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6444 | fi | |
6445 | ||
6446 | else | |
6447 | ||
6448 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6449 | if test "x$LINE" != x ; then | |
6450 | eval "DEFAULT_$LINE" | |
6451 | else | |
6452 | no_cache=1 | |
6453 | fi | |
6454 | ||
6455 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6456 | ||
6457 | fi; | |
6458 | ||
6459 | eval "$ac_cv_use_docview" | |
6460 | if test "$no_cache" != 1; then | |
6461 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6462 | fi | |
6463 | ||
6464 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6465 | echo "$as_me:$LINENO: result: yes" >&5 | |
6466 | echo "${ECHO_T}yes" >&6 | |
6467 | else | |
6468 | echo "$as_me:$LINENO: result: no" >&5 | |
6469 | echo "${ECHO_T}no" >&6 | |
6470 | fi | |
6471 | ||
6472 | ||
6473 | enablestring= | |
6474 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6475 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6476 | no_cache=0 | |
6477 | # Check whether --enable-help or --disable-help was given. | |
6478 | if test "${enable_help+set}" = set; then | |
6479 | enableval="$enable_help" | |
6480 | ||
6481 | if test "$enableval" = yes; then | |
6482 | ac_cv_use_help='wxUSE_HELP=yes' | |
6483 | else | |
6484 | ac_cv_use_help='wxUSE_HELP=no' | |
6485 | fi | |
6486 | ||
6487 | else | |
6488 | ||
6489 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6490 | if test "x$LINE" != x ; then | |
6491 | eval "DEFAULT_$LINE" | |
6492 | else | |
6493 | no_cache=1 | |
6494 | fi | |
6495 | ||
6496 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6497 | ||
6498 | fi; | |
6499 | ||
6500 | eval "$ac_cv_use_help" | |
6501 | if test "$no_cache" != 1; then | |
6502 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6503 | fi | |
6504 | ||
6505 | if test "$wxUSE_HELP" = yes; then | |
6506 | echo "$as_me:$LINENO: result: yes" >&5 | |
6507 | echo "${ECHO_T}yes" >&6 | |
6508 | else | |
6509 | echo "$as_me:$LINENO: result: no" >&5 | |
6510 | echo "${ECHO_T}no" >&6 | |
6511 | fi | |
6512 | ||
6513 | ||
6514 | enablestring= | |
6515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6516 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6517 | no_cache=0 | |
6518 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6519 | if test "${enable_mshtmlhelp+set}" = set; then | |
6520 | enableval="$enable_mshtmlhelp" | |
6521 | ||
6522 | if test "$enableval" = yes; then | |
6523 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6524 | else | |
6525 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6526 | fi | |
6527 | ||
6528 | else | |
6529 | ||
6530 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6531 | if test "x$LINE" != x ; then | |
6532 | eval "DEFAULT_$LINE" | |
6533 | else | |
6534 | no_cache=1 | |
6535 | fi | |
6536 | ||
6537 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6538 | ||
6539 | fi; | |
6540 | ||
6541 | eval "$ac_cv_use_mshtmlhelp" | |
6542 | if test "$no_cache" != 1; then | |
6543 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6544 | fi | |
6545 | ||
6546 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6547 | echo "$as_me:$LINENO: result: yes" >&5 | |
6548 | echo "${ECHO_T}yes" >&6 | |
6549 | else | |
6550 | echo "$as_me:$LINENO: result: no" >&5 | |
6551 | echo "${ECHO_T}no" >&6 | |
6552 | fi | |
6553 | ||
6554 | ||
6555 | enablestring= | |
6556 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6557 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6558 | no_cache=0 | |
6559 | # Check whether --enable-html or --disable-html was given. | |
6560 | if test "${enable_html+set}" = set; then | |
6561 | enableval="$enable_html" | |
6562 | ||
6563 | if test "$enableval" = yes; then | |
6564 | ac_cv_use_html='wxUSE_HTML=yes' | |
6565 | else | |
6566 | ac_cv_use_html='wxUSE_HTML=no' | |
6567 | fi | |
6568 | ||
6569 | else | |
6570 | ||
6571 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6572 | if test "x$LINE" != x ; then | |
6573 | eval "DEFAULT_$LINE" | |
6574 | else | |
6575 | no_cache=1 | |
6576 | fi | |
6577 | ||
6578 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6579 | ||
6580 | fi; | |
6581 | ||
6582 | eval "$ac_cv_use_html" | |
6583 | if test "$no_cache" != 1; then | |
6584 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6585 | fi | |
6586 | ||
6587 | if test "$wxUSE_HTML" = yes; then | |
6588 | echo "$as_me:$LINENO: result: yes" >&5 | |
6589 | echo "${ECHO_T}yes" >&6 | |
6590 | else | |
6591 | echo "$as_me:$LINENO: result: no" >&5 | |
6592 | echo "${ECHO_T}no" >&6 | |
6593 | fi | |
6594 | ||
6595 | ||
6596 | enablestring= | |
6597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6598 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6599 | no_cache=0 | |
6600 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6601 | if test "${enable_htmlhelp+set}" = set; then | |
6602 | enableval="$enable_htmlhelp" | |
6603 | ||
6604 | if test "$enableval" = yes; then | |
6605 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6606 | else | |
6607 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6608 | fi | |
6609 | ||
6610 | else | |
6611 | ||
6612 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6613 | if test "x$LINE" != x ; then | |
6614 | eval "DEFAULT_$LINE" | |
6615 | else | |
6616 | no_cache=1 | |
6617 | fi | |
6618 | ||
6619 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6620 | ||
6621 | fi; | |
6622 | ||
6623 | eval "$ac_cv_use_htmlhelp" | |
6624 | if test "$no_cache" != 1; then | |
6625 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6626 | fi | |
6627 | ||
6628 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6629 | echo "$as_me:$LINENO: result: yes" >&5 | |
6630 | echo "${ECHO_T}yes" >&6 | |
6631 | else | |
6632 | echo "$as_me:$LINENO: result: no" >&5 | |
6633 | echo "${ECHO_T}no" >&6 | |
6634 | fi | |
6635 | ||
6636 | ||
9a8f0513 VS |
6637 | enablestring= |
6638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6639 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6640 | no_cache=0 | |
6641 | # Check whether --enable-xrc or --disable-xrc was given. | |
6642 | if test "${enable_xrc+set}" = set; then | |
6643 | enableval="$enable_xrc" | |
6644 | ||
6645 | if test "$enableval" = yes; then | |
6646 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6647 | else | |
6648 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6649 | fi | |
6650 | ||
6651 | else | |
6652 | ||
6653 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6654 | if test "x$LINE" != x ; then | |
6655 | eval "DEFAULT_$LINE" | |
6656 | else | |
6657 | no_cache=1 | |
6658 | fi | |
6659 | ||
6660 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6661 | ||
6662 | fi; | |
6663 | ||
6664 | eval "$ac_cv_use_xrc" | |
6665 | if test "$no_cache" != 1; then | |
6666 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6667 | fi | |
6668 | ||
6669 | if test "$wxUSE_XRC" = yes; then | |
6670 | echo "$as_me:$LINENO: result: yes" >&5 | |
6671 | echo "${ECHO_T}yes" >&6 | |
6672 | else | |
6673 | echo "$as_me:$LINENO: result: no" >&5 | |
6674 | echo "${ECHO_T}no" >&6 | |
6675 | fi | |
6676 | ||
6677 | ||
a848cd7e SC |
6678 | enablestring= |
6679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6680 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6681 | no_cache=0 | |
6682 | # Check whether --enable-constraints or --disable-constraints was given. | |
6683 | if test "${enable_constraints+set}" = set; then | |
6684 | enableval="$enable_constraints" | |
6685 | ||
6686 | if test "$enableval" = yes; then | |
6687 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6688 | else | |
6689 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6690 | fi | |
6691 | ||
6692 | else | |
6693 | ||
6694 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6695 | if test "x$LINE" != x ; then | |
6696 | eval "DEFAULT_$LINE" | |
6697 | else | |
6698 | no_cache=1 | |
6699 | fi | |
6700 | ||
6701 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6702 | ||
6703 | fi; | |
6704 | ||
6705 | eval "$ac_cv_use_constraints" | |
6706 | if test "$no_cache" != 1; then | |
6707 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6708 | fi | |
6709 | ||
6710 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6711 | echo "$as_me:$LINENO: result: yes" >&5 | |
6712 | echo "${ECHO_T}yes" >&6 | |
6713 | else | |
6714 | echo "$as_me:$LINENO: result: no" >&5 | |
6715 | echo "${ECHO_T}no" >&6 | |
6716 | fi | |
6717 | ||
6718 | ||
6719 | enablestring= | |
6720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6721 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6722 | no_cache=0 | |
6723 | # Check whether --enable-printarch or --disable-printarch was given. | |
6724 | if test "${enable_printarch+set}" = set; then | |
6725 | enableval="$enable_printarch" | |
6726 | ||
6727 | if test "$enableval" = yes; then | |
6728 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6729 | else | |
6730 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6731 | fi | |
6732 | ||
6733 | else | |
6734 | ||
6735 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6736 | if test "x$LINE" != x ; then | |
6737 | eval "DEFAULT_$LINE" | |
6738 | else | |
6739 | no_cache=1 | |
6740 | fi | |
6741 | ||
6742 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6743 | ||
6744 | fi; | |
6745 | ||
6746 | eval "$ac_cv_use_printarch" | |
6747 | if test "$no_cache" != 1; then | |
6748 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6749 | fi | |
6750 | ||
6751 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6752 | echo "$as_me:$LINENO: result: yes" >&5 | |
6753 | echo "${ECHO_T}yes" >&6 | |
6754 | else | |
6755 | echo "$as_me:$LINENO: result: no" >&5 | |
6756 | echo "${ECHO_T}no" >&6 | |
6757 | fi | |
6758 | ||
6759 | ||
6760 | enablestring= | |
6761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6762 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6763 | no_cache=0 | |
6764 | # Check whether --enable-mdi or --disable-mdi was given. | |
6765 | if test "${enable_mdi+set}" = set; then | |
6766 | enableval="$enable_mdi" | |
6767 | ||
6768 | if test "$enableval" = yes; then | |
8a7b1113 | 6769 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6770 | else |
8a7b1113 | 6771 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6772 | fi |
6773 | ||
6774 | else | |
6775 | ||
8a7b1113 | 6776 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6777 | if test "x$LINE" != x ; then |
6778 | eval "DEFAULT_$LINE" | |
6779 | else | |
6780 | no_cache=1 | |
6781 | fi | |
6782 | ||
8a7b1113 | 6783 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6784 | |
6785 | fi; | |
6786 | ||
6787 | eval "$ac_cv_use_mdi" | |
6788 | if test "$no_cache" != 1; then | |
6789 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6790 | fi | |
6791 | ||
8a7b1113 VZ |
6792 | if test "$wxUSE_MDI" = yes; then |
6793 | echo "$as_me:$LINENO: result: yes" >&5 | |
6794 | echo "${ECHO_T}yes" >&6 | |
6795 | else | |
6796 | echo "$as_me:$LINENO: result: no" >&5 | |
6797 | echo "${ECHO_T}no" >&6 | |
6798 | fi | |
6799 | ||
6800 | ||
6801 | enablestring= | |
6802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6803 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6804 | no_cache=0 | |
6805 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6806 | if test "${enable_mdidoc+set}" = set; then | |
6807 | enableval="$enable_mdidoc" | |
6808 | ||
6809 | if test "$enableval" = yes; then | |
6810 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6811 | else | |
6812 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6813 | fi | |
6814 | ||
6815 | else | |
6816 | ||
6817 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6818 | if test "x$LINE" != x ; then | |
6819 | eval "DEFAULT_$LINE" | |
6820 | else | |
6821 | no_cache=1 | |
6822 | fi | |
6823 | ||
6824 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6825 | ||
6826 | fi; | |
6827 | ||
6828 | eval "$ac_cv_use_mdidoc" | |
6829 | if test "$no_cache" != 1; then | |
6830 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6831 | fi | |
6832 | ||
a848cd7e SC |
6833 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6834 | echo "$as_me:$LINENO: result: yes" >&5 | |
6835 | echo "${ECHO_T}yes" >&6 | |
6836 | else | |
6837 | echo "$as_me:$LINENO: result: no" >&5 | |
6838 | echo "${ECHO_T}no" >&6 | |
6839 | fi | |
6840 | ||
6841 | ||
6842 | enablestring= | |
6843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6844 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6845 | no_cache=0 | |
6846 | # Check whether --enable-loggui or --disable-loggui was given. | |
6847 | if test "${enable_loggui+set}" = set; then | |
6848 | enableval="$enable_loggui" | |
6849 | ||
6850 | if test "$enableval" = yes; then | |
6851 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6852 | else | |
6853 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6854 | fi | |
6855 | ||
6856 | else | |
6857 | ||
6858 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6859 | if test "x$LINE" != x ; then | |
6860 | eval "DEFAULT_$LINE" | |
6861 | else | |
6862 | no_cache=1 | |
6863 | fi | |
6864 | ||
6865 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6866 | ||
6867 | fi; | |
6868 | ||
6869 | eval "$ac_cv_use_loggui" | |
6870 | if test "$no_cache" != 1; then | |
6871 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6872 | fi | |
6873 | ||
6874 | if test "$wxUSE_LOGGUI" = yes; then | |
6875 | echo "$as_me:$LINENO: result: yes" >&5 | |
6876 | echo "${ECHO_T}yes" >&6 | |
6877 | else | |
6878 | echo "$as_me:$LINENO: result: no" >&5 | |
6879 | echo "${ECHO_T}no" >&6 | |
6880 | fi | |
6881 | ||
6882 | ||
6883 | enablestring= | |
6884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6885 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6886 | no_cache=0 | |
6887 | # Check whether --enable-logwin or --disable-logwin was given. | |
6888 | if test "${enable_logwin+set}" = set; then | |
6889 | enableval="$enable_logwin" | |
6890 | ||
6891 | if test "$enableval" = yes; then | |
6892 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6893 | else | |
6894 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6895 | fi | |
6896 | ||
6897 | else | |
6898 | ||
6899 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6900 | if test "x$LINE" != x ; then | |
6901 | eval "DEFAULT_$LINE" | |
6902 | else | |
6903 | no_cache=1 | |
6904 | fi | |
6905 | ||
6906 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6907 | ||
6908 | fi; | |
6909 | ||
6910 | eval "$ac_cv_use_logwin" | |
6911 | if test "$no_cache" != 1; then | |
6912 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6913 | fi | |
6914 | ||
6915 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6916 | echo "$as_me:$LINENO: result: yes" >&5 | |
6917 | echo "${ECHO_T}yes" >&6 | |
6918 | else | |
6919 | echo "$as_me:$LINENO: result: no" >&5 | |
6920 | echo "${ECHO_T}no" >&6 | |
6921 | fi | |
6922 | ||
6923 | ||
6924 | enablestring= | |
6925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6926 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6927 | no_cache=0 | |
6928 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6929 | if test "${enable_logdialog+set}" = set; then | |
6930 | enableval="$enable_logdialog" | |
6931 | ||
6932 | if test "$enableval" = yes; then | |
6933 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6934 | else | |
6935 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6936 | fi | |
6937 | ||
6938 | else | |
6939 | ||
6940 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6941 | if test "x$LINE" != x ; then | |
6942 | eval "DEFAULT_$LINE" | |
6943 | else | |
6944 | no_cache=1 | |
6945 | fi | |
6946 | ||
6947 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6948 | ||
6949 | fi; | |
6950 | ||
6951 | eval "$ac_cv_use_logdialog" | |
6952 | if test "$no_cache" != 1; then | |
6953 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6954 | fi | |
6955 | ||
6956 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6957 | echo "$as_me:$LINENO: result: yes" >&5 | |
6958 | echo "${ECHO_T}yes" >&6 | |
6959 | else | |
6960 | echo "$as_me:$LINENO: result: no" >&5 | |
6961 | echo "${ECHO_T}no" >&6 | |
6962 | fi | |
6963 | ||
6964 | ||
646b6ec1 VS |
6965 | enablestring= |
6966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6967 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6968 | no_cache=0 | |
6969 | # Check whether --enable-webkit or --disable-webkit was given. | |
6970 | if test "${enable_webkit+set}" = set; then | |
6971 | enableval="$enable_webkit" | |
6972 | ||
6973 | if test "$enableval" = yes; then | |
6974 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6975 | else | |
6976 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6977 | fi | |
6978 | ||
6979 | else | |
6980 | ||
6981 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6982 | if test "x$LINE" != x ; then | |
6983 | eval "DEFAULT_$LINE" | |
6984 | else | |
6985 | no_cache=1 | |
6986 | fi | |
6987 | ||
6988 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6989 | ||
6990 | fi; | |
6991 | ||
6992 | eval "$ac_cv_use_webkit" | |
6993 | if test "$no_cache" != 1; then | |
6994 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6995 | fi | |
6996 | ||
6997 | if test "$wxUSE_WEBKIT" = yes; then | |
6998 | echo "$as_me:$LINENO: result: yes" >&5 | |
6999 | echo "${ECHO_T}yes" >&6 | |
7000 | else | |
7001 | echo "$as_me:$LINENO: result: no" >&5 | |
7002 | echo "${ECHO_T}no" >&6 | |
7003 | fi | |
7004 | ||
7005 | ||
a848cd7e SC |
7006 | |
7007 | enablestring= | |
7008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7009 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7010 | no_cache=0 | |
7011 | # Check whether --enable-postscript or --disable-postscript was given. | |
7012 | if test "${enable_postscript+set}" = set; then | |
7013 | enableval="$enable_postscript" | |
7014 | ||
7015 | if test "$enableval" = yes; then | |
7016 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7017 | else | |
7018 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7019 | fi | |
7020 | ||
7021 | else | |
7022 | ||
7023 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7024 | if test "x$LINE" != x ; then | |
7025 | eval "DEFAULT_$LINE" | |
7026 | else | |
7027 | no_cache=1 | |
7028 | fi | |
7029 | ||
7030 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7031 | ||
7032 | fi; | |
7033 | ||
7034 | eval "$ac_cv_use_postscript" | |
7035 | if test "$no_cache" != 1; then | |
7036 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7037 | fi | |
7038 | ||
7039 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7040 | echo "$as_me:$LINENO: result: yes" >&5 | |
7041 | echo "${ECHO_T}yes" >&6 | |
7042 | else | |
7043 | echo "$as_me:$LINENO: result: no" >&5 | |
7044 | echo "${ECHO_T}no" >&6 | |
7045 | fi | |
7046 | ||
7047 | ||
7048 | ||
7049 | ||
7050 | ||
7051 | enablestring= | |
7052 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7053 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7054 | no_cache=0 | |
7055 | # Check whether --enable-prologio or --disable-prologio was given. | |
7056 | if test "${enable_prologio+set}" = set; then | |
7057 | enableval="$enable_prologio" | |
7058 | ||
7059 | if test "$enableval" = yes; then | |
7060 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7061 | else | |
7062 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7063 | fi | |
7064 | ||
7065 | else | |
7066 | ||
7067 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7068 | if test "x$LINE" != x ; then | |
7069 | eval "DEFAULT_$LINE" | |
7070 | else | |
7071 | no_cache=1 | |
7072 | fi | |
7073 | ||
7074 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7075 | ||
7076 | fi; | |
7077 | ||
7078 | eval "$ac_cv_use_prologio" | |
7079 | if test "$no_cache" != 1; then | |
7080 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7081 | fi | |
7082 | ||
7083 | if test "$wxUSE_PROLOGIO" = yes; then | |
7084 | echo "$as_me:$LINENO: result: yes" >&5 | |
7085 | echo "${ECHO_T}yes" >&6 | |
7086 | else | |
7087 | echo "$as_me:$LINENO: result: no" >&5 | |
7088 | echo "${ECHO_T}no" >&6 | |
7089 | fi | |
7090 | ||
7091 | ||
7092 | enablestring= | |
7093 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7094 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7095 | no_cache=0 | |
7096 | # Check whether --enable-resources or --disable-resources was given. | |
7097 | if test "${enable_resources+set}" = set; then | |
7098 | enableval="$enable_resources" | |
7099 | ||
7100 | if test "$enableval" = yes; then | |
7101 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7102 | else | |
7103 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7104 | fi | |
7105 | ||
7106 | else | |
7107 | ||
7108 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7109 | if test "x$LINE" != x ; then | |
7110 | eval "DEFAULT_$LINE" | |
7111 | else | |
7112 | no_cache=1 | |
7113 | fi | |
7114 | ||
7115 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7116 | ||
7117 | fi; | |
7118 | ||
7119 | eval "$ac_cv_use_resources" | |
7120 | if test "$no_cache" != 1; then | |
7121 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7122 | fi | |
7123 | ||
7124 | if test "$wxUSE_RESOURCES" = yes; then | |
7125 | echo "$as_me:$LINENO: result: yes" >&5 | |
7126 | echo "${ECHO_T}yes" >&6 | |
7127 | else | |
7128 | echo "$as_me:$LINENO: result: no" >&5 | |
7129 | echo "${ECHO_T}no" >&6 | |
7130 | fi | |
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | enablestring= | |
7136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7137 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7138 | no_cache=0 | |
7139 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7140 | if test "${enable_clipboard+set}" = set; then | |
7141 | enableval="$enable_clipboard" | |
7142 | ||
7143 | if test "$enableval" = yes; then | |
7144 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7145 | else | |
7146 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7147 | fi | |
7148 | ||
7149 | else | |
7150 | ||
7151 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7152 | if test "x$LINE" != x ; then | |
7153 | eval "DEFAULT_$LINE" | |
7154 | else | |
7155 | no_cache=1 | |
7156 | fi | |
7157 | ||
7158 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7159 | ||
7160 | fi; | |
7161 | ||
7162 | eval "$ac_cv_use_clipboard" | |
7163 | if test "$no_cache" != 1; then | |
7164 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7165 | fi | |
7166 | ||
7167 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7168 | echo "$as_me:$LINENO: result: yes" >&5 | |
7169 | echo "${ECHO_T}yes" >&6 | |
7170 | else | |
7171 | echo "$as_me:$LINENO: result: no" >&5 | |
7172 | echo "${ECHO_T}no" >&6 | |
7173 | fi | |
7174 | ||
7175 | ||
7176 | enablestring= | |
7177 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7178 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7179 | no_cache=0 | |
7180 | # Check whether --enable-dnd or --disable-dnd was given. | |
7181 | if test "${enable_dnd+set}" = set; then | |
7182 | enableval="$enable_dnd" | |
7183 | ||
7184 | if test "$enableval" = yes; then | |
7185 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7186 | else | |
7187 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7188 | fi | |
7189 | ||
7190 | else | |
7191 | ||
7192 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7193 | if test "x$LINE" != x ; then | |
7194 | eval "DEFAULT_$LINE" | |
7195 | else | |
7196 | no_cache=1 | |
7197 | fi | |
7198 | ||
7199 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7200 | ||
7201 | fi; | |
7202 | ||
7203 | eval "$ac_cv_use_dnd" | |
7204 | if test "$no_cache" != 1; then | |
7205 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7206 | fi | |
7207 | ||
7208 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7209 | echo "$as_me:$LINENO: result: yes" >&5 | |
7210 | echo "${ECHO_T}yes" >&6 | |
7211 | else | |
7212 | echo "$as_me:$LINENO: result: no" >&5 | |
7213 | echo "${ECHO_T}no" >&6 | |
7214 | fi | |
7215 | ||
7216 | ||
7217 | enablestring= | |
7218 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7219 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7220 | no_cache=0 | |
7221 | # Check whether --enable-metafile or --disable-metafile was given. | |
7222 | if test "${enable_metafile+set}" = set; then | |
7223 | enableval="$enable_metafile" | |
7224 | ||
7225 | if test "$enableval" = yes; then | |
7226 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7227 | else | |
7228 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7229 | fi | |
7230 | ||
7231 | else | |
7232 | ||
7233 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7234 | if test "x$LINE" != x ; then | |
7235 | eval "DEFAULT_$LINE" | |
7236 | else | |
7237 | no_cache=1 | |
7238 | fi | |
7239 | ||
7240 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7241 | ||
7242 | fi; | |
7243 | ||
7244 | eval "$ac_cv_use_metafile" | |
7245 | if test "$no_cache" != 1; then | |
7246 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7247 | fi | |
7248 | ||
7249 | if test "$wxUSE_METAFILE" = yes; then | |
7250 | echo "$as_me:$LINENO: result: yes" >&5 | |
7251 | echo "${ECHO_T}yes" >&6 | |
7252 | else | |
7253 | echo "$as_me:$LINENO: result: no" >&5 | |
7254 | echo "${ECHO_T}no" >&6 | |
7255 | fi | |
7256 | ||
7257 | ||
7258 | ||
7259 | ||
7260 | ||
7261 | enablestring= | |
7262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7263 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7264 | no_cache=0 | |
7265 | # Check whether --enable-controls or --disable-controls was given. | |
7266 | if test "${enable_controls+set}" = set; then | |
7267 | enableval="$enable_controls" | |
7268 | ||
7269 | if test "$enableval" = yes; then | |
7270 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7271 | else | |
7272 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7273 | fi | |
7274 | ||
7275 | else | |
7276 | ||
7277 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7278 | if test "x$LINE" != x ; then | |
7279 | eval "DEFAULT_$LINE" | |
7280 | else | |
7281 | no_cache=1 | |
7282 | fi | |
7283 | ||
7284 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7285 | ||
7286 | fi; | |
7287 | ||
7288 | eval "$ac_cv_use_controls" | |
7289 | if test "$no_cache" != 1; then | |
7290 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7291 | fi | |
7292 | ||
7293 | if test "$wxUSE_CONTROLS" = yes; then | |
7294 | echo "$as_me:$LINENO: result: yes" >&5 | |
7295 | echo "${ECHO_T}yes" >&6 | |
7296 | else | |
7297 | echo "$as_me:$LINENO: result: no" >&5 | |
7298 | echo "${ECHO_T}no" >&6 | |
7299 | fi | |
7300 | ||
7301 | ||
7302 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7303 | DEFAULT_wxUSE_ACCEL=yes | |
7304 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7305 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7306 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7307 | DEFAULT_wxUSE_CARET=yes |
7308 | DEFAULT_wxUSE_COMBOBOX=yes | |
7309 | DEFAULT_wxUSE_CHECKBOX=yes | |
7310 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7311 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7312 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7313 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7314 | DEFAULT_wxUSE_GAUGE=yes |
7315 | DEFAULT_wxUSE_GRID=yes | |
7316 | DEFAULT_wxUSE_IMAGLIST=yes | |
7317 | DEFAULT_wxUSE_LISTBOOK=yes | |
7318 | DEFAULT_wxUSE_LISTBOX=yes | |
7319 | DEFAULT_wxUSE_LISTCTRL=yes | |
7320 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7321 | DEFAULT_wxUSE_RADIOBOX=yes | |
7322 | DEFAULT_wxUSE_RADIOBTN=yes | |
7323 | DEFAULT_wxUSE_SASH=yes | |
7324 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7325 | DEFAULT_wxUSE_SLIDER=yes | |
7326 | DEFAULT_wxUSE_SPINBTN=yes | |
7327 | DEFAULT_wxUSE_SPINCTRL=yes | |
7328 | DEFAULT_wxUSE_SPLITTER=yes | |
7329 | DEFAULT_wxUSE_STATBMP=yes | |
7330 | DEFAULT_wxUSE_STATBOX=yes | |
7331 | DEFAULT_wxUSE_STATLINE=yes | |
7332 | DEFAULT_wxUSE_STATUSBAR=yes | |
7333 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7334 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7335 | DEFAULT_wxUSE_TOOLBAR=yes | |
7336 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7337 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7338 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7339 | DEFAULT_wxUSE_TREECTRL=yes | |
7340 | DEFAULT_wxUSE_POPUPWIN=yes | |
7341 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7342 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7343 | DEFAULT_wxUSE_ACCEL=no | |
7344 | DEFAULT_wxUSE_BMPBUTTON=no | |
7345 | DEFAULT_wxUSE_BUTTON=no | |
7346 | DEFAULT_wxUSE_CALCTRL=no | |
7347 | DEFAULT_wxUSE_CARET=no | |
7348 | DEFAULT_wxUSE_COMBOBOX=no | |
7349 | DEFAULT_wxUSE_CHECKBOX=no | |
7350 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7351 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7352 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7353 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7354 | DEFAULT_wxUSE_GAUGE=no |
7355 | DEFAULT_wxUSE_GRID=no | |
7356 | DEFAULT_wxUSE_IMAGLIST=no | |
7357 | DEFAULT_wxUSE_LISTBOOK=no | |
7358 | DEFAULT_wxUSE_LISTBOX=no | |
7359 | DEFAULT_wxUSE_LISTCTRL=no | |
7360 | DEFAULT_wxUSE_NOTEBOOK=no | |
7361 | DEFAULT_wxUSE_RADIOBOX=no | |
7362 | DEFAULT_wxUSE_RADIOBTN=no | |
7363 | DEFAULT_wxUSE_SASH=no | |
7364 | DEFAULT_wxUSE_SCROLLBAR=no | |
7365 | DEFAULT_wxUSE_SLIDER=no | |
7366 | DEFAULT_wxUSE_SPINBTN=no | |
7367 | DEFAULT_wxUSE_SPINCTRL=no | |
7368 | DEFAULT_wxUSE_SPLITTER=no | |
7369 | DEFAULT_wxUSE_STATBMP=no | |
7370 | DEFAULT_wxUSE_STATBOX=no | |
7371 | DEFAULT_wxUSE_STATLINE=no | |
7372 | DEFAULT_wxUSE_STATUSBAR=no | |
7373 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7374 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7375 | DEFAULT_wxUSE_TOOLBAR=no | |
7376 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7377 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7378 | DEFAULT_wxUSE_TOOLTIPS=no | |
7379 | DEFAULT_wxUSE_TREECTRL=no | |
7380 | DEFAULT_wxUSE_POPUPWIN=no | |
7381 | DEFAULT_wxUSE_TIPWINDOW=no | |
7382 | fi | |
7383 | ||
a848cd7e SC |
7384 | |
7385 | enablestring= | |
7386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7387 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7388 | no_cache=0 | |
7389 | # Check whether --enable-accel or --disable-accel was given. | |
7390 | if test "${enable_accel+set}" = set; then | |
7391 | enableval="$enable_accel" | |
7392 | ||
7393 | if test "$enableval" = yes; then | |
7394 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7395 | else | |
7396 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7397 | fi | |
7398 | ||
7399 | else | |
7400 | ||
7401 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7402 | if test "x$LINE" != x ; then | |
7403 | eval "DEFAULT_$LINE" | |
7404 | else | |
7405 | no_cache=1 | |
7406 | fi | |
7407 | ||
7408 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7409 | ||
7410 | fi; | |
7411 | ||
7412 | eval "$ac_cv_use_accel" | |
7413 | if test "$no_cache" != 1; then | |
7414 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7415 | fi | |
7416 | ||
7417 | if test "$wxUSE_ACCEL" = yes; then | |
7418 | echo "$as_me:$LINENO: result: yes" >&5 | |
7419 | echo "${ECHO_T}yes" >&6 | |
7420 | else | |
7421 | echo "$as_me:$LINENO: result: no" >&5 | |
7422 | echo "${ECHO_T}no" >&6 | |
7423 | fi | |
7424 | ||
7425 | ||
7426 | enablestring= | |
7427 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7428 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7429 | no_cache=0 | |
7430 | # Check whether --enable-button or --disable-button was given. | |
7431 | if test "${enable_button+set}" = set; then | |
7432 | enableval="$enable_button" | |
7433 | ||
7434 | if test "$enableval" = yes; then | |
7435 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7436 | else | |
7437 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7438 | fi | |
7439 | ||
7440 | else | |
7441 | ||
7442 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7443 | if test "x$LINE" != x ; then | |
7444 | eval "DEFAULT_$LINE" | |
7445 | else | |
7446 | no_cache=1 | |
7447 | fi | |
7448 | ||
7449 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7450 | ||
7451 | fi; | |
7452 | ||
7453 | eval "$ac_cv_use_button" | |
7454 | if test "$no_cache" != 1; then | |
7455 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7456 | fi | |
7457 | ||
7458 | if test "$wxUSE_BUTTON" = yes; then | |
7459 | echo "$as_me:$LINENO: result: yes" >&5 | |
7460 | echo "${ECHO_T}yes" >&6 | |
7461 | else | |
7462 | echo "$as_me:$LINENO: result: no" >&5 | |
7463 | echo "${ECHO_T}no" >&6 | |
7464 | fi | |
7465 | ||
7466 | ||
7467 | enablestring= | |
7468 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7469 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7470 | no_cache=0 | |
7471 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7472 | if test "${enable_bmpbutton+set}" = set; then | |
7473 | enableval="$enable_bmpbutton" | |
7474 | ||
7475 | if test "$enableval" = yes; then | |
7476 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7477 | else | |
7478 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7479 | fi | |
7480 | ||
7481 | else | |
7482 | ||
7483 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7484 | if test "x$LINE" != x ; then | |
7485 | eval "DEFAULT_$LINE" | |
7486 | else | |
7487 | no_cache=1 | |
7488 | fi | |
7489 | ||
7490 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7491 | ||
7492 | fi; | |
7493 | ||
7494 | eval "$ac_cv_use_bmpbutton" | |
7495 | if test "$no_cache" != 1; then | |
7496 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7497 | fi | |
7498 | ||
7499 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7500 | echo "$as_me:$LINENO: result: yes" >&5 | |
7501 | echo "${ECHO_T}yes" >&6 | |
7502 | else | |
7503 | echo "$as_me:$LINENO: result: no" >&5 | |
7504 | echo "${ECHO_T}no" >&6 | |
7505 | fi | |
7506 | ||
7507 | ||
7508 | enablestring= | |
7509 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7510 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7511 | no_cache=0 | |
7512 | # Check whether --enable-calendar or --disable-calendar was given. | |
7513 | if test "${enable_calendar+set}" = set; then | |
7514 | enableval="$enable_calendar" | |
7515 | ||
7516 | if test "$enableval" = yes; then | |
7517 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7518 | else | |
7519 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7520 | fi | |
7521 | ||
7522 | else | |
7523 | ||
7524 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7525 | if test "x$LINE" != x ; then | |
7526 | eval "DEFAULT_$LINE" | |
7527 | else | |
7528 | no_cache=1 | |
7529 | fi | |
7530 | ||
7531 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7532 | ||
7533 | fi; | |
7534 | ||
7535 | eval "$ac_cv_use_calendar" | |
7536 | if test "$no_cache" != 1; then | |
7537 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7538 | fi | |
7539 | ||
7540 | if test "$wxUSE_CALCTRL" = yes; then | |
7541 | echo "$as_me:$LINENO: result: yes" >&5 | |
7542 | echo "${ECHO_T}yes" >&6 | |
7543 | else | |
7544 | echo "$as_me:$LINENO: result: no" >&5 | |
7545 | echo "${ECHO_T}no" >&6 | |
7546 | fi | |
7547 | ||
7548 | ||
7549 | enablestring= | |
7550 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7551 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7552 | no_cache=0 | |
7553 | # Check whether --enable-caret or --disable-caret was given. | |
7554 | if test "${enable_caret+set}" = set; then | |
7555 | enableval="$enable_caret" | |
7556 | ||
7557 | if test "$enableval" = yes; then | |
7558 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7559 | else | |
7560 | ac_cv_use_caret='wxUSE_CARET=no' | |
7561 | fi | |
7562 | ||
7563 | else | |
7564 | ||
7565 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7566 | if test "x$LINE" != x ; then | |
7567 | eval "DEFAULT_$LINE" | |
7568 | else | |
7569 | no_cache=1 | |
7570 | fi | |
7571 | ||
7572 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7573 | ||
7574 | fi; | |
7575 | ||
7576 | eval "$ac_cv_use_caret" | |
7577 | if test "$no_cache" != 1; then | |
7578 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7579 | fi | |
7580 | ||
7581 | if test "$wxUSE_CARET" = yes; then | |
7582 | echo "$as_me:$LINENO: result: yes" >&5 | |
7583 | echo "${ECHO_T}yes" >&6 | |
7584 | else | |
7585 | echo "$as_me:$LINENO: result: no" >&5 | |
7586 | echo "${ECHO_T}no" >&6 | |
7587 | fi | |
7588 | ||
7589 | ||
7590 | enablestring= | |
7591 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7592 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7593 | no_cache=0 | |
7594 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7595 | if test "${enable_checkbox+set}" = set; then | |
7596 | enableval="$enable_checkbox" | |
7597 | ||
7598 | if test "$enableval" = yes; then | |
7599 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7600 | else | |
7601 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7602 | fi | |
7603 | ||
7604 | else | |
7605 | ||
7606 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7607 | if test "x$LINE" != x ; then | |
7608 | eval "DEFAULT_$LINE" | |
7609 | else | |
7610 | no_cache=1 | |
7611 | fi | |
7612 | ||
7613 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7614 | ||
7615 | fi; | |
7616 | ||
7617 | eval "$ac_cv_use_checkbox" | |
7618 | if test "$no_cache" != 1; then | |
7619 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7620 | fi | |
7621 | ||
7622 | if test "$wxUSE_CHECKBOX" = yes; then | |
7623 | echo "$as_me:$LINENO: result: yes" >&5 | |
7624 | echo "${ECHO_T}yes" >&6 | |
7625 | else | |
7626 | echo "$as_me:$LINENO: result: no" >&5 | |
7627 | echo "${ECHO_T}no" >&6 | |
7628 | fi | |
7629 | ||
7630 | ||
7631 | enablestring= | |
7632 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7633 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7634 | no_cache=0 | |
7635 | # Check whether --enable-checklst or --disable-checklst was given. | |
7636 | if test "${enable_checklst+set}" = set; then | |
7637 | enableval="$enable_checklst" | |
7638 | ||
7639 | if test "$enableval" = yes; then | |
7640 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7641 | else | |
7642 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7643 | fi | |
7644 | ||
7645 | else | |
7646 | ||
7647 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7648 | if test "x$LINE" != x ; then | |
7649 | eval "DEFAULT_$LINE" | |
7650 | else | |
7651 | no_cache=1 | |
7652 | fi | |
7653 | ||
7654 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7655 | ||
7656 | fi; | |
7657 | ||
7658 | eval "$ac_cv_use_checklst" | |
7659 | if test "$no_cache" != 1; then | |
7660 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7661 | fi | |
7662 | ||
7663 | if test "$wxUSE_CHECKLST" = yes; then | |
7664 | echo "$as_me:$LINENO: result: yes" >&5 | |
7665 | echo "${ECHO_T}yes" >&6 | |
7666 | else | |
7667 | echo "$as_me:$LINENO: result: no" >&5 | |
7668 | echo "${ECHO_T}no" >&6 | |
7669 | fi | |
7670 | ||
7671 | ||
7672 | enablestring= | |
7673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7674 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7675 | no_cache=0 | |
7676 | # Check whether --enable-choice or --disable-choice was given. | |
7677 | if test "${enable_choice+set}" = set; then | |
7678 | enableval="$enable_choice" | |
7679 | ||
7680 | if test "$enableval" = yes; then | |
7681 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7682 | else | |
7683 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7684 | fi | |
7685 | ||
7686 | else | |
7687 | ||
7688 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7689 | if test "x$LINE" != x ; then | |
7690 | eval "DEFAULT_$LINE" | |
7691 | else | |
7692 | no_cache=1 | |
7693 | fi | |
7694 | ||
7695 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7696 | ||
7697 | fi; | |
7698 | ||
7699 | eval "$ac_cv_use_choice" | |
7700 | if test "$no_cache" != 1; then | |
7701 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7702 | fi | |
7703 | ||
7704 | if test "$wxUSE_CHOICE" = yes; then | |
7705 | echo "$as_me:$LINENO: result: yes" >&5 | |
7706 | echo "${ECHO_T}yes" >&6 | |
7707 | else | |
7708 | echo "$as_me:$LINENO: result: no" >&5 | |
7709 | echo "${ECHO_T}no" >&6 | |
7710 | fi | |
7711 | ||
7712 | ||
92bbdbcd WS |
7713 | enablestring= |
7714 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7715 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7716 | no_cache=0 | |
7717 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7718 | if test "${enable_choicebook+set}" = set; then | |
7719 | enableval="$enable_choicebook" | |
7720 | ||
7721 | if test "$enableval" = yes; then | |
7722 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7723 | else | |
7724 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7725 | fi | |
7726 | ||
7727 | else | |
7728 | ||
7729 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7730 | if test "x$LINE" != x ; then | |
7731 | eval "DEFAULT_$LINE" | |
7732 | else | |
7733 | no_cache=1 | |
7734 | fi | |
7735 | ||
7736 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7737 | ||
7738 | fi; | |
7739 | ||
7740 | eval "$ac_cv_use_choicebook" | |
7741 | if test "$no_cache" != 1; then | |
7742 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7743 | fi | |
7744 | ||
7745 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7746 | echo "$as_me:$LINENO: result: yes" >&5 | |
7747 | echo "${ECHO_T}yes" >&6 | |
7748 | else | |
7749 | echo "$as_me:$LINENO: result: no" >&5 | |
7750 | echo "${ECHO_T}no" >&6 | |
7751 | fi | |
7752 | ||
7753 | ||
a848cd7e SC |
7754 | enablestring= |
7755 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7756 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7757 | no_cache=0 | |
7758 | # Check whether --enable-combobox or --disable-combobox was given. | |
7759 | if test "${enable_combobox+set}" = set; then | |
7760 | enableval="$enable_combobox" | |
7761 | ||
7762 | if test "$enableval" = yes; then | |
7763 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7764 | else | |
7765 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7766 | fi | |
7767 | ||
7768 | else | |
7769 | ||
7770 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7771 | if test "x$LINE" != x ; then | |
7772 | eval "DEFAULT_$LINE" | |
7773 | else | |
7774 | no_cache=1 | |
7775 | fi | |
7776 | ||
7777 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7778 | ||
7779 | fi; | |
7780 | ||
7781 | eval "$ac_cv_use_combobox" | |
7782 | if test "$no_cache" != 1; then | |
7783 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7784 | fi | |
7785 | ||
7786 | if test "$wxUSE_COMBOBOX" = yes; then | |
7787 | echo "$as_me:$LINENO: result: yes" >&5 | |
7788 | echo "${ECHO_T}yes" >&6 | |
7789 | else | |
7790 | echo "$as_me:$LINENO: result: no" >&5 | |
7791 | echo "${ECHO_T}no" >&6 | |
7792 | fi | |
7793 | ||
7794 | ||
da98e9be VZ |
7795 | enablestring= |
7796 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7797 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7798 | no_cache=0 | |
7799 | # Check whether --enable-datepick or --disable-datepick was given. | |
7800 | if test "${enable_datepick+set}" = set; then | |
7801 | enableval="$enable_datepick" | |
7802 | ||
7803 | if test "$enableval" = yes; then | |
7804 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7805 | else | |
7806 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7807 | fi | |
7808 | ||
7809 | else | |
7810 | ||
7811 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7812 | if test "x$LINE" != x ; then | |
7813 | eval "DEFAULT_$LINE" | |
7814 | else | |
7815 | no_cache=1 | |
7816 | fi | |
7817 | ||
7818 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7819 | ||
7820 | fi; | |
7821 | ||
7822 | eval "$ac_cv_use_datepick" | |
7823 | if test "$no_cache" != 1; then | |
7824 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7825 | fi | |
7826 | ||
7827 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7828 | echo "$as_me:$LINENO: result: yes" >&5 | |
7829 | echo "${ECHO_T}yes" >&6 | |
7830 | else | |
7831 | echo "$as_me:$LINENO: result: no" >&5 | |
7832 | echo "${ECHO_T}no" >&6 | |
7833 | fi | |
7834 | ||
7835 | ||
a848cd7e SC |
7836 | enablestring= |
7837 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7838 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7839 | no_cache=0 | |
7840 | # Check whether --enable-display or --disable-display was given. | |
7841 | if test "${enable_display+set}" = set; then | |
7842 | enableval="$enable_display" | |
7843 | ||
7844 | if test "$enableval" = yes; then | |
7845 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7846 | else | |
7847 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7848 | fi | |
7849 | ||
7850 | else | |
7851 | ||
7852 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7853 | if test "x$LINE" != x ; then | |
7854 | eval "DEFAULT_$LINE" | |
7855 | else | |
7856 | no_cache=1 | |
7857 | fi | |
7858 | ||
7859 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7860 | ||
7861 | fi; | |
7862 | ||
7863 | eval "$ac_cv_use_display" | |
7864 | if test "$no_cache" != 1; then | |
7865 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7866 | fi | |
7867 | ||
7868 | if test "$wxUSE_DISPLAY" = yes; then | |
7869 | echo "$as_me:$LINENO: result: yes" >&5 | |
7870 | echo "${ECHO_T}yes" >&6 | |
7871 | else | |
7872 | echo "$as_me:$LINENO: result: no" >&5 | |
7873 | echo "${ECHO_T}no" >&6 | |
7874 | fi | |
7875 | ||
7876 | ||
7877 | enablestring= | |
7878 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7879 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7880 | no_cache=0 | |
7881 | # Check whether --enable-gauge or --disable-gauge was given. | |
7882 | if test "${enable_gauge+set}" = set; then | |
7883 | enableval="$enable_gauge" | |
7884 | ||
7885 | if test "$enableval" = yes; then | |
7886 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7887 | else | |
7888 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7889 | fi | |
7890 | ||
7891 | else | |
7892 | ||
7893 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7894 | if test "x$LINE" != x ; then | |
7895 | eval "DEFAULT_$LINE" | |
7896 | else | |
7897 | no_cache=1 | |
7898 | fi | |
7899 | ||
7900 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7901 | ||
7902 | fi; | |
7903 | ||
7904 | eval "$ac_cv_use_gauge" | |
7905 | if test "$no_cache" != 1; then | |
7906 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7907 | fi | |
7908 | ||
7909 | if test "$wxUSE_GAUGE" = yes; then | |
7910 | echo "$as_me:$LINENO: result: yes" >&5 | |
7911 | echo "${ECHO_T}yes" >&6 | |
7912 | else | |
7913 | echo "$as_me:$LINENO: result: no" >&5 | |
7914 | echo "${ECHO_T}no" >&6 | |
7915 | fi | |
7916 | ||
7917 | ||
7918 | enablestring= | |
7919 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7920 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7921 | no_cache=0 | |
7922 | # Check whether --enable-grid or --disable-grid was given. | |
7923 | if test "${enable_grid+set}" = set; then | |
7924 | enableval="$enable_grid" | |
7925 | ||
7926 | if test "$enableval" = yes; then | |
7927 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7928 | else | |
7929 | ac_cv_use_grid='wxUSE_GRID=no' | |
7930 | fi | |
7931 | ||
7932 | else | |
7933 | ||
7934 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7935 | if test "x$LINE" != x ; then | |
7936 | eval "DEFAULT_$LINE" | |
7937 | else | |
7938 | no_cache=1 | |
7939 | fi | |
7940 | ||
7941 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7942 | ||
7943 | fi; | |
7944 | ||
7945 | eval "$ac_cv_use_grid" | |
7946 | if test "$no_cache" != 1; then | |
7947 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7948 | fi | |
7949 | ||
7950 | if test "$wxUSE_GRID" = yes; then | |
7951 | echo "$as_me:$LINENO: result: yes" >&5 | |
7952 | echo "${ECHO_T}yes" >&6 | |
7953 | else | |
7954 | echo "$as_me:$LINENO: result: no" >&5 | |
7955 | echo "${ECHO_T}no" >&6 | |
7956 | fi | |
7957 | ||
7958 | ||
7959 | enablestring= | |
7960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7961 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7962 | no_cache=0 | |
7963 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7964 | if test "${enable_imaglist+set}" = set; then | |
7965 | enableval="$enable_imaglist" | |
7966 | ||
7967 | if test "$enableval" = yes; then | |
7968 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7969 | else | |
7970 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7971 | fi | |
7972 | ||
7973 | else | |
7974 | ||
7975 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7976 | if test "x$LINE" != x ; then | |
7977 | eval "DEFAULT_$LINE" | |
7978 | else | |
7979 | no_cache=1 | |
7980 | fi | |
7981 | ||
7982 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7983 | ||
7984 | fi; | |
7985 | ||
7986 | eval "$ac_cv_use_imaglist" | |
7987 | if test "$no_cache" != 1; then | |
7988 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7989 | fi | |
7990 | ||
7991 | if test "$wxUSE_IMAGLIST" = yes; then | |
7992 | echo "$as_me:$LINENO: result: yes" >&5 | |
7993 | echo "${ECHO_T}yes" >&6 | |
7994 | else | |
7995 | echo "$as_me:$LINENO: result: no" >&5 | |
7996 | echo "${ECHO_T}no" >&6 | |
7997 | fi | |
7998 | ||
7999 | ||
8000 | enablestring= | |
8001 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8002 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8003 | no_cache=0 | |
8004 | # Check whether --enable-listbook or --disable-listbook was given. | |
8005 | if test "${enable_listbook+set}" = set; then | |
8006 | enableval="$enable_listbook" | |
8007 | ||
8008 | if test "$enableval" = yes; then | |
8009 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8010 | else | |
8011 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8012 | fi | |
8013 | ||
8014 | else | |
8015 | ||
8016 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8017 | if test "x$LINE" != x ; then | |
8018 | eval "DEFAULT_$LINE" | |
8019 | else | |
8020 | no_cache=1 | |
8021 | fi | |
8022 | ||
8023 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8024 | ||
8025 | fi; | |
8026 | ||
8027 | eval "$ac_cv_use_listbook" | |
8028 | if test "$no_cache" != 1; then | |
8029 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8030 | fi | |
8031 | ||
8032 | if test "$wxUSE_LISTBOOK" = yes; then | |
8033 | echo "$as_me:$LINENO: result: yes" >&5 | |
8034 | echo "${ECHO_T}yes" >&6 | |
8035 | else | |
8036 | echo "$as_me:$LINENO: result: no" >&5 | |
8037 | echo "${ECHO_T}no" >&6 | |
8038 | fi | |
8039 | ||
8040 | ||
8041 | enablestring= | |
8042 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8043 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8044 | no_cache=0 | |
8045 | # Check whether --enable-listbox or --disable-listbox was given. | |
8046 | if test "${enable_listbox+set}" = set; then | |
8047 | enableval="$enable_listbox" | |
8048 | ||
8049 | if test "$enableval" = yes; then | |
8050 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8051 | else | |
8052 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8053 | fi | |
8054 | ||
8055 | else | |
8056 | ||
8057 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8058 | if test "x$LINE" != x ; then | |
8059 | eval "DEFAULT_$LINE" | |
8060 | else | |
8061 | no_cache=1 | |
8062 | fi | |
8063 | ||
8064 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8065 | ||
8066 | fi; | |
8067 | ||
8068 | eval "$ac_cv_use_listbox" | |
8069 | if test "$no_cache" != 1; then | |
8070 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8071 | fi | |
8072 | ||
8073 | if test "$wxUSE_LISTBOX" = yes; then | |
8074 | echo "$as_me:$LINENO: result: yes" >&5 | |
8075 | echo "${ECHO_T}yes" >&6 | |
8076 | else | |
8077 | echo "$as_me:$LINENO: result: no" >&5 | |
8078 | echo "${ECHO_T}no" >&6 | |
8079 | fi | |
8080 | ||
8081 | ||
8082 | enablestring= | |
8083 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8084 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8085 | no_cache=0 | |
8086 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8087 | if test "${enable_listctrl+set}" = set; then | |
8088 | enableval="$enable_listctrl" | |
8089 | ||
8090 | if test "$enableval" = yes; then | |
8091 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8092 | else | |
8093 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8094 | fi | |
8095 | ||
8096 | else | |
8097 | ||
8098 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8099 | if test "x$LINE" != x ; then | |
8100 | eval "DEFAULT_$LINE" | |
8101 | else | |
8102 | no_cache=1 | |
8103 | fi | |
8104 | ||
8105 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8106 | ||
8107 | fi; | |
8108 | ||
8109 | eval "$ac_cv_use_listctrl" | |
8110 | if test "$no_cache" != 1; then | |
8111 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8112 | fi | |
8113 | ||
8114 | if test "$wxUSE_LISTCTRL" = yes; then | |
8115 | echo "$as_me:$LINENO: result: yes" >&5 | |
8116 | echo "${ECHO_T}yes" >&6 | |
8117 | else | |
8118 | echo "$as_me:$LINENO: result: no" >&5 | |
8119 | echo "${ECHO_T}no" >&6 | |
8120 | fi | |
8121 | ||
8122 | ||
8123 | enablestring= | |
8124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8125 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8126 | no_cache=0 | |
8127 | # Check whether --enable-notebook or --disable-notebook was given. | |
8128 | if test "${enable_notebook+set}" = set; then | |
8129 | enableval="$enable_notebook" | |
8130 | ||
8131 | if test "$enableval" = yes; then | |
8132 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8133 | else | |
8134 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8135 | fi | |
8136 | ||
8137 | else | |
8138 | ||
8139 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8140 | if test "x$LINE" != x ; then | |
8141 | eval "DEFAULT_$LINE" | |
8142 | else | |
8143 | no_cache=1 | |
8144 | fi | |
8145 | ||
8146 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8147 | ||
8148 | fi; | |
8149 | ||
8150 | eval "$ac_cv_use_notebook" | |
8151 | if test "$no_cache" != 1; then | |
8152 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8153 | fi | |
8154 | ||
8155 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8156 | echo "$as_me:$LINENO: result: yes" >&5 | |
8157 | echo "${ECHO_T}yes" >&6 | |
8158 | else | |
8159 | echo "$as_me:$LINENO: result: no" >&5 | |
8160 | echo "${ECHO_T}no" >&6 | |
8161 | fi | |
8162 | ||
8163 | ||
8164 | enablestring= | |
8165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8166 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8167 | no_cache=0 | |
8168 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8169 | if test "${enable_radiobox+set}" = set; then | |
8170 | enableval="$enable_radiobox" | |
8171 | ||
8172 | if test "$enableval" = yes; then | |
8173 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8174 | else | |
8175 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8176 | fi | |
8177 | ||
8178 | else | |
8179 | ||
8180 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8181 | if test "x$LINE" != x ; then | |
8182 | eval "DEFAULT_$LINE" | |
8183 | else | |
8184 | no_cache=1 | |
8185 | fi | |
8186 | ||
8187 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8188 | ||
8189 | fi; | |
8190 | ||
8191 | eval "$ac_cv_use_radiobox" | |
8192 | if test "$no_cache" != 1; then | |
8193 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8194 | fi | |
8195 | ||
8196 | if test "$wxUSE_RADIOBOX" = yes; then | |
8197 | echo "$as_me:$LINENO: result: yes" >&5 | |
8198 | echo "${ECHO_T}yes" >&6 | |
8199 | else | |
8200 | echo "$as_me:$LINENO: result: no" >&5 | |
8201 | echo "${ECHO_T}no" >&6 | |
8202 | fi | |
8203 | ||
8204 | ||
8205 | enablestring= | |
8206 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8207 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8208 | no_cache=0 | |
8209 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8210 | if test "${enable_radiobtn+set}" = set; then | |
8211 | enableval="$enable_radiobtn" | |
8212 | ||
8213 | if test "$enableval" = yes; then | |
8214 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8215 | else | |
8216 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8217 | fi | |
8218 | ||
8219 | else | |
8220 | ||
8221 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8222 | if test "x$LINE" != x ; then | |
8223 | eval "DEFAULT_$LINE" | |
8224 | else | |
8225 | no_cache=1 | |
8226 | fi | |
8227 | ||
8228 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8229 | ||
8230 | fi; | |
8231 | ||
8232 | eval "$ac_cv_use_radiobtn" | |
8233 | if test "$no_cache" != 1; then | |
8234 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8235 | fi | |
8236 | ||
8237 | if test "$wxUSE_RADIOBTN" = yes; then | |
8238 | echo "$as_me:$LINENO: result: yes" >&5 | |
8239 | echo "${ECHO_T}yes" >&6 | |
8240 | else | |
8241 | echo "$as_me:$LINENO: result: no" >&5 | |
8242 | echo "${ECHO_T}no" >&6 | |
8243 | fi | |
8244 | ||
8245 | ||
8246 | enablestring= | |
8247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8248 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8249 | no_cache=0 | |
8250 | # Check whether --enable-sash or --disable-sash was given. | |
8251 | if test "${enable_sash+set}" = set; then | |
8252 | enableval="$enable_sash" | |
8253 | ||
8254 | if test "$enableval" = yes; then | |
8255 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8256 | else | |
8257 | ac_cv_use_sash='wxUSE_SASH=no' | |
8258 | fi | |
8259 | ||
8260 | else | |
8261 | ||
8262 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8263 | if test "x$LINE" != x ; then | |
8264 | eval "DEFAULT_$LINE" | |
8265 | else | |
8266 | no_cache=1 | |
8267 | fi | |
8268 | ||
8269 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8270 | ||
8271 | fi; | |
8272 | ||
8273 | eval "$ac_cv_use_sash" | |
8274 | if test "$no_cache" != 1; then | |
8275 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8276 | fi | |
8277 | ||
8278 | if test "$wxUSE_SASH" = yes; then | |
8279 | echo "$as_me:$LINENO: result: yes" >&5 | |
8280 | echo "${ECHO_T}yes" >&6 | |
8281 | else | |
8282 | echo "$as_me:$LINENO: result: no" >&5 | |
8283 | echo "${ECHO_T}no" >&6 | |
8284 | fi | |
8285 | ||
8286 | ||
8287 | enablestring= | |
8288 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8289 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8290 | no_cache=0 | |
8291 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8292 | if test "${enable_scrollbar+set}" = set; then | |
8293 | enableval="$enable_scrollbar" | |
8294 | ||
8295 | if test "$enableval" = yes; then | |
8296 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8297 | else | |
8298 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8299 | fi | |
8300 | ||
8301 | else | |
8302 | ||
8303 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8304 | if test "x$LINE" != x ; then | |
8305 | eval "DEFAULT_$LINE" | |
8306 | else | |
8307 | no_cache=1 | |
8308 | fi | |
8309 | ||
8310 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8311 | ||
8312 | fi; | |
8313 | ||
8314 | eval "$ac_cv_use_scrollbar" | |
8315 | if test "$no_cache" != 1; then | |
8316 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8317 | fi | |
8318 | ||
8319 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8320 | echo "$as_me:$LINENO: result: yes" >&5 | |
8321 | echo "${ECHO_T}yes" >&6 | |
8322 | else | |
8323 | echo "$as_me:$LINENO: result: no" >&5 | |
8324 | echo "${ECHO_T}no" >&6 | |
8325 | fi | |
8326 | ||
8327 | ||
8328 | enablestring= | |
8329 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8330 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8331 | no_cache=0 | |
8332 | # Check whether --enable-slider or --disable-slider was given. | |
8333 | if test "${enable_slider+set}" = set; then | |
8334 | enableval="$enable_slider" | |
8335 | ||
8336 | if test "$enableval" = yes; then | |
8337 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8338 | else | |
8339 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8340 | fi | |
8341 | ||
8342 | else | |
8343 | ||
8344 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8345 | if test "x$LINE" != x ; then | |
8346 | eval "DEFAULT_$LINE" | |
8347 | else | |
8348 | no_cache=1 | |
8349 | fi | |
8350 | ||
8351 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8352 | ||
8353 | fi; | |
8354 | ||
8355 | eval "$ac_cv_use_slider" | |
8356 | if test "$no_cache" != 1; then | |
8357 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8358 | fi | |
8359 | ||
8360 | if test "$wxUSE_SLIDER" = yes; then | |
8361 | echo "$as_me:$LINENO: result: yes" >&5 | |
8362 | echo "${ECHO_T}yes" >&6 | |
8363 | else | |
8364 | echo "$as_me:$LINENO: result: no" >&5 | |
8365 | echo "${ECHO_T}no" >&6 | |
8366 | fi | |
8367 | ||
8368 | ||
8369 | enablestring= | |
8370 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8371 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8372 | no_cache=0 | |
8373 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8374 | if test "${enable_spinbtn+set}" = set; then | |
8375 | enableval="$enable_spinbtn" | |
8376 | ||
8377 | if test "$enableval" = yes; then | |
8378 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8379 | else | |
8380 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8381 | fi | |
8382 | ||
8383 | else | |
8384 | ||
8385 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8386 | if test "x$LINE" != x ; then | |
8387 | eval "DEFAULT_$LINE" | |
8388 | else | |
8389 | no_cache=1 | |
8390 | fi | |
8391 | ||
8392 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8393 | ||
8394 | fi; | |
8395 | ||
8396 | eval "$ac_cv_use_spinbtn" | |
8397 | if test "$no_cache" != 1; then | |
8398 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8399 | fi | |
8400 | ||
8401 | if test "$wxUSE_SPINBTN" = yes; then | |
8402 | echo "$as_me:$LINENO: result: yes" >&5 | |
8403 | echo "${ECHO_T}yes" >&6 | |
8404 | else | |
8405 | echo "$as_me:$LINENO: result: no" >&5 | |
8406 | echo "${ECHO_T}no" >&6 | |
8407 | fi | |
8408 | ||
8409 | ||
8410 | enablestring= | |
8411 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8412 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8413 | no_cache=0 | |
8414 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8415 | if test "${enable_spinctrl+set}" = set; then | |
8416 | enableval="$enable_spinctrl" | |
8417 | ||
8418 | if test "$enableval" = yes; then | |
8419 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8420 | else | |
8421 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8422 | fi | |
8423 | ||
8424 | else | |
8425 | ||
8426 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8427 | if test "x$LINE" != x ; then | |
8428 | eval "DEFAULT_$LINE" | |
8429 | else | |
8430 | no_cache=1 | |
8431 | fi | |
8432 | ||
8433 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8434 | ||
8435 | fi; | |
8436 | ||
8437 | eval "$ac_cv_use_spinctrl" | |
8438 | if test "$no_cache" != 1; then | |
8439 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8440 | fi | |
8441 | ||
8442 | if test "$wxUSE_SPINCTRL" = yes; then | |
8443 | echo "$as_me:$LINENO: result: yes" >&5 | |
8444 | echo "${ECHO_T}yes" >&6 | |
8445 | else | |
8446 | echo "$as_me:$LINENO: result: no" >&5 | |
8447 | echo "${ECHO_T}no" >&6 | |
8448 | fi | |
8449 | ||
8450 | ||
8451 | enablestring= | |
8452 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8453 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8454 | no_cache=0 | |
8455 | # Check whether --enable-splitter or --disable-splitter was given. | |
8456 | if test "${enable_splitter+set}" = set; then | |
8457 | enableval="$enable_splitter" | |
8458 | ||
8459 | if test "$enableval" = yes; then | |
8460 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8461 | else | |
8462 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8463 | fi | |
8464 | ||
8465 | else | |
8466 | ||
8467 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8468 | if test "x$LINE" != x ; then | |
8469 | eval "DEFAULT_$LINE" | |
8470 | else | |
8471 | no_cache=1 | |
8472 | fi | |
8473 | ||
8474 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8475 | ||
8476 | fi; | |
8477 | ||
8478 | eval "$ac_cv_use_splitter" | |
8479 | if test "$no_cache" != 1; then | |
8480 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8481 | fi | |
8482 | ||
8483 | if test "$wxUSE_SPLITTER" = yes; then | |
8484 | echo "$as_me:$LINENO: result: yes" >&5 | |
8485 | echo "${ECHO_T}yes" >&6 | |
8486 | else | |
8487 | echo "$as_me:$LINENO: result: no" >&5 | |
8488 | echo "${ECHO_T}no" >&6 | |
8489 | fi | |
8490 | ||
8491 | ||
8492 | enablestring= | |
8493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8494 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8495 | no_cache=0 | |
8496 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8497 | if test "${enable_statbmp+set}" = set; then | |
8498 | enableval="$enable_statbmp" | |
8499 | ||
8500 | if test "$enableval" = yes; then | |
8501 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8502 | else | |
8503 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8504 | fi | |
8505 | ||
8506 | else | |
8507 | ||
8508 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8509 | if test "x$LINE" != x ; then | |
8510 | eval "DEFAULT_$LINE" | |
8511 | else | |
8512 | no_cache=1 | |
8513 | fi | |
8514 | ||
8515 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8516 | ||
8517 | fi; | |
8518 | ||
8519 | eval "$ac_cv_use_statbmp" | |
8520 | if test "$no_cache" != 1; then | |
8521 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8522 | fi | |
8523 | ||
8524 | if test "$wxUSE_STATBMP" = yes; then | |
8525 | echo "$as_me:$LINENO: result: yes" >&5 | |
8526 | echo "${ECHO_T}yes" >&6 | |
8527 | else | |
8528 | echo "$as_me:$LINENO: result: no" >&5 | |
8529 | echo "${ECHO_T}no" >&6 | |
8530 | fi | |
8531 | ||
8532 | ||
8533 | enablestring= | |
8534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8535 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8536 | no_cache=0 | |
8537 | # Check whether --enable-statbox or --disable-statbox was given. | |
8538 | if test "${enable_statbox+set}" = set; then | |
8539 | enableval="$enable_statbox" | |
8540 | ||
8541 | if test "$enableval" = yes; then | |
8542 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8543 | else | |
8544 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8545 | fi | |
8546 | ||
8547 | else | |
8548 | ||
8549 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8550 | if test "x$LINE" != x ; then | |
8551 | eval "DEFAULT_$LINE" | |
8552 | else | |
8553 | no_cache=1 | |
8554 | fi | |
8555 | ||
8556 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8557 | ||
8558 | fi; | |
8559 | ||
8560 | eval "$ac_cv_use_statbox" | |
8561 | if test "$no_cache" != 1; then | |
8562 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8563 | fi | |
8564 | ||
8565 | if test "$wxUSE_STATBOX" = yes; then | |
8566 | echo "$as_me:$LINENO: result: yes" >&5 | |
8567 | echo "${ECHO_T}yes" >&6 | |
8568 | else | |
8569 | echo "$as_me:$LINENO: result: no" >&5 | |
8570 | echo "${ECHO_T}no" >&6 | |
8571 | fi | |
8572 | ||
8573 | ||
8574 | enablestring= | |
8575 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8576 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8577 | no_cache=0 | |
8578 | # Check whether --enable-statline or --disable-statline was given. | |
8579 | if test "${enable_statline+set}" = set; then | |
8580 | enableval="$enable_statline" | |
8581 | ||
8582 | if test "$enableval" = yes; then | |
8583 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8584 | else | |
8585 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8586 | fi | |
8587 | ||
8588 | else | |
8589 | ||
8590 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8591 | if test "x$LINE" != x ; then | |
8592 | eval "DEFAULT_$LINE" | |
8593 | else | |
8594 | no_cache=1 | |
8595 | fi | |
8596 | ||
8597 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8598 | ||
8599 | fi; | |
8600 | ||
8601 | eval "$ac_cv_use_statline" | |
8602 | if test "$no_cache" != 1; then | |
8603 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8604 | fi | |
8605 | ||
8606 | if test "$wxUSE_STATLINE" = yes; then | |
8607 | echo "$as_me:$LINENO: result: yes" >&5 | |
8608 | echo "${ECHO_T}yes" >&6 | |
8609 | else | |
8610 | echo "$as_me:$LINENO: result: no" >&5 | |
8611 | echo "${ECHO_T}no" >&6 | |
8612 | fi | |
8613 | ||
8614 | ||
8615 | enablestring= | |
8616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8617 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8618 | no_cache=0 | |
8619 | # Check whether --enable-stattext or --disable-stattext was given. | |
8620 | if test "${enable_stattext+set}" = set; then | |
8621 | enableval="$enable_stattext" | |
8622 | ||
8623 | if test "$enableval" = yes; then | |
8624 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8625 | else | |
8626 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8627 | fi | |
8628 | ||
8629 | else | |
8630 | ||
8631 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8632 | if test "x$LINE" != x ; then | |
8633 | eval "DEFAULT_$LINE" | |
8634 | else | |
8635 | no_cache=1 | |
8636 | fi | |
8637 | ||
8638 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8639 | ||
8640 | fi; | |
8641 | ||
8642 | eval "$ac_cv_use_stattext" | |
8643 | if test "$no_cache" != 1; then | |
8644 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8645 | fi | |
8646 | ||
8647 | if test "$wxUSE_STATTEXT" = yes; then | |
8648 | echo "$as_me:$LINENO: result: yes" >&5 | |
8649 | echo "${ECHO_T}yes" >&6 | |
8650 | else | |
8651 | echo "$as_me:$LINENO: result: no" >&5 | |
8652 | echo "${ECHO_T}no" >&6 | |
8653 | fi | |
8654 | ||
8655 | ||
8656 | enablestring= | |
8657 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8658 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8659 | no_cache=0 | |
8660 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8661 | if test "${enable_statusbar+set}" = set; then | |
8662 | enableval="$enable_statusbar" | |
8663 | ||
8664 | if test "$enableval" = yes; then | |
8665 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8666 | else | |
8667 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8668 | fi | |
8669 | ||
8670 | else | |
8671 | ||
8672 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8673 | if test "x$LINE" != x ; then | |
8674 | eval "DEFAULT_$LINE" | |
8675 | else | |
8676 | no_cache=1 | |
8677 | fi | |
8678 | ||
8679 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8680 | ||
8681 | fi; | |
8682 | ||
8683 | eval "$ac_cv_use_statusbar" | |
8684 | if test "$no_cache" != 1; then | |
8685 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8686 | fi | |
8687 | ||
8688 | if test "$wxUSE_STATUSBAR" = yes; then | |
8689 | echo "$as_me:$LINENO: result: yes" >&5 | |
8690 | echo "${ECHO_T}yes" >&6 | |
8691 | else | |
8692 | echo "$as_me:$LINENO: result: no" >&5 | |
8693 | echo "${ECHO_T}no" >&6 | |
8694 | fi | |
8695 | ||
8696 | ||
8697 | enablestring= | |
8698 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8699 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8700 | no_cache=0 | |
8701 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8702 | if test "${enable_tabdialog+set}" = set; then | |
8703 | enableval="$enable_tabdialog" | |
8704 | ||
8705 | if test "$enableval" = yes; then | |
8706 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8707 | else | |
8708 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8709 | fi | |
8710 | ||
8711 | else | |
8712 | ||
8713 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8714 | if test "x$LINE" != x ; then | |
8715 | eval "DEFAULT_$LINE" | |
8716 | else | |
8717 | no_cache=1 | |
8718 | fi | |
8719 | ||
8720 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8721 | ||
8722 | fi; | |
8723 | ||
8724 | eval "$ac_cv_use_tabdialog" | |
8725 | if test "$no_cache" != 1; then | |
8726 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8727 | fi | |
8728 | ||
8729 | if test "$wxUSE_TABDIALOG" = yes; then | |
8730 | echo "$as_me:$LINENO: result: yes" >&5 | |
8731 | echo "${ECHO_T}yes" >&6 | |
8732 | else | |
8733 | echo "$as_me:$LINENO: result: no" >&5 | |
8734 | echo "${ECHO_T}no" >&6 | |
8735 | fi | |
8736 | ||
8737 | ||
8738 | enablestring= | |
8739 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8740 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8741 | no_cache=0 | |
8742 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8743 | if test "${enable_textctrl+set}" = set; then | |
8744 | enableval="$enable_textctrl" | |
8745 | ||
8746 | if test "$enableval" = yes; then | |
8747 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8748 | else | |
8749 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8750 | fi | |
8751 | ||
8752 | else | |
8753 | ||
8754 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8755 | if test "x$LINE" != x ; then | |
8756 | eval "DEFAULT_$LINE" | |
8757 | else | |
8758 | no_cache=1 | |
8759 | fi | |
8760 | ||
8761 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8762 | ||
8763 | fi; | |
8764 | ||
8765 | eval "$ac_cv_use_textctrl" | |
8766 | if test "$no_cache" != 1; then | |
8767 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8768 | fi | |
8769 | ||
8770 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8771 | echo "$as_me:$LINENO: result: yes" >&5 | |
8772 | echo "${ECHO_T}yes" >&6 | |
8773 | else | |
8774 | echo "$as_me:$LINENO: result: no" >&5 | |
8775 | echo "${ECHO_T}no" >&6 | |
8776 | fi | |
8777 | ||
8778 | ||
8779 | enablestring= | |
8780 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8781 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8782 | no_cache=0 | |
8783 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8784 | if test "${enable_togglebtn+set}" = set; then | |
8785 | enableval="$enable_togglebtn" | |
8786 | ||
8787 | if test "$enableval" = yes; then | |
8788 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8789 | else | |
8790 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8791 | fi | |
8792 | ||
8793 | else | |
8794 | ||
8795 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8796 | if test "x$LINE" != x ; then | |
8797 | eval "DEFAULT_$LINE" | |
8798 | else | |
8799 | no_cache=1 | |
8800 | fi | |
8801 | ||
8802 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8803 | ||
8804 | fi; | |
8805 | ||
8806 | eval "$ac_cv_use_togglebtn" | |
8807 | if test "$no_cache" != 1; then | |
8808 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8809 | fi | |
8810 | ||
8811 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8812 | echo "$as_me:$LINENO: result: yes" >&5 | |
8813 | echo "${ECHO_T}yes" >&6 | |
8814 | else | |
8815 | echo "$as_me:$LINENO: result: no" >&5 | |
8816 | echo "${ECHO_T}no" >&6 | |
8817 | fi | |
8818 | ||
8819 | ||
8820 | enablestring= | |
8821 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8822 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8823 | no_cache=0 | |
8824 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8825 | if test "${enable_toolbar+set}" = set; then | |
8826 | enableval="$enable_toolbar" | |
8827 | ||
8828 | if test "$enableval" = yes; then | |
8829 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8830 | else | |
8831 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8832 | fi | |
8833 | ||
8834 | else | |
8835 | ||
8836 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8837 | if test "x$LINE" != x ; then | |
8838 | eval "DEFAULT_$LINE" | |
8839 | else | |
8840 | no_cache=1 | |
8841 | fi | |
8842 | ||
8843 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8844 | ||
8845 | fi; | |
8846 | ||
8847 | eval "$ac_cv_use_toolbar" | |
8848 | if test "$no_cache" != 1; then | |
8849 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8850 | fi | |
8851 | ||
8852 | if test "$wxUSE_TOOLBAR" = yes; then | |
8853 | echo "$as_me:$LINENO: result: yes" >&5 | |
8854 | echo "${ECHO_T}yes" >&6 | |
8855 | else | |
8856 | echo "$as_me:$LINENO: result: no" >&5 | |
8857 | echo "${ECHO_T}no" >&6 | |
8858 | fi | |
8859 | ||
8860 | ||
8861 | enablestring= | |
8862 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8863 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8864 | no_cache=0 | |
8865 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8866 | if test "${enable_tbarnative+set}" = set; then | |
8867 | enableval="$enable_tbarnative" | |
8868 | ||
8869 | if test "$enableval" = yes; then | |
8870 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8871 | else | |
8872 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8873 | fi | |
8874 | ||
8875 | else | |
8876 | ||
8877 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8878 | if test "x$LINE" != x ; then | |
8879 | eval "DEFAULT_$LINE" | |
8880 | else | |
8881 | no_cache=1 | |
8882 | fi | |
8883 | ||
8884 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8885 | ||
8886 | fi; | |
8887 | ||
8888 | eval "$ac_cv_use_tbarnative" | |
8889 | if test "$no_cache" != 1; then | |
8890 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8891 | fi | |
8892 | ||
8893 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8894 | echo "$as_me:$LINENO: result: yes" >&5 | |
8895 | echo "${ECHO_T}yes" >&6 | |
8896 | else | |
8897 | echo "$as_me:$LINENO: result: no" >&5 | |
8898 | echo "${ECHO_T}no" >&6 | |
8899 | fi | |
8900 | ||
8901 | ||
8902 | enablestring= | |
8903 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8904 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8905 | no_cache=0 | |
8906 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8907 | if test "${enable_tbarsmpl+set}" = set; then | |
8908 | enableval="$enable_tbarsmpl" | |
8909 | ||
8910 | if test "$enableval" = yes; then | |
8911 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8912 | else | |
8913 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8914 | fi | |
8915 | ||
8916 | else | |
8917 | ||
8918 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8919 | if test "x$LINE" != x ; then | |
8920 | eval "DEFAULT_$LINE" | |
8921 | else | |
8922 | no_cache=1 | |
8923 | fi | |
8924 | ||
8925 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8926 | ||
8927 | fi; | |
8928 | ||
8929 | eval "$ac_cv_use_tbarsmpl" | |
8930 | if test "$no_cache" != 1; then | |
8931 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8932 | fi | |
8933 | ||
8934 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8935 | echo "$as_me:$LINENO: result: yes" >&5 | |
8936 | echo "${ECHO_T}yes" >&6 | |
8937 | else | |
8938 | echo "$as_me:$LINENO: result: no" >&5 | |
8939 | echo "${ECHO_T}no" >&6 | |
8940 | fi | |
8941 | ||
8942 | ||
8943 | enablestring= | |
8944 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8945 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8946 | no_cache=0 | |
8947 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8948 | if test "${enable_treectrl+set}" = set; then | |
8949 | enableval="$enable_treectrl" | |
8950 | ||
8951 | if test "$enableval" = yes; then | |
8952 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8953 | else | |
8954 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8955 | fi | |
8956 | ||
8957 | else | |
8958 | ||
8959 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8960 | if test "x$LINE" != x ; then | |
8961 | eval "DEFAULT_$LINE" | |
8962 | else | |
8963 | no_cache=1 | |
8964 | fi | |
8965 | ||
8966 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8967 | ||
8968 | fi; | |
8969 | ||
8970 | eval "$ac_cv_use_treectrl" | |
8971 | if test "$no_cache" != 1; then | |
8972 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8973 | fi | |
8974 | ||
8975 | if test "$wxUSE_TREECTRL" = yes; then | |
8976 | echo "$as_me:$LINENO: result: yes" >&5 | |
8977 | echo "${ECHO_T}yes" >&6 | |
8978 | else | |
8979 | echo "$as_me:$LINENO: result: no" >&5 | |
8980 | echo "${ECHO_T}no" >&6 | |
8981 | fi | |
8982 | ||
8983 | ||
8984 | enablestring= | |
8985 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8986 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8987 | no_cache=0 | |
8988 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8989 | if test "${enable_tipwindow+set}" = set; then | |
8990 | enableval="$enable_tipwindow" | |
8991 | ||
8992 | if test "$enableval" = yes; then | |
8993 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8994 | else | |
8995 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8996 | fi | |
8997 | ||
8998 | else | |
8999 | ||
9000 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9001 | if test "x$LINE" != x ; then | |
9002 | eval "DEFAULT_$LINE" | |
9003 | else | |
9004 | no_cache=1 | |
9005 | fi | |
9006 | ||
9007 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9008 | ||
9009 | fi; | |
9010 | ||
9011 | eval "$ac_cv_use_tipwindow" | |
9012 | if test "$no_cache" != 1; then | |
9013 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9014 | fi | |
9015 | ||
9016 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9017 | echo "$as_me:$LINENO: result: yes" >&5 | |
9018 | echo "${ECHO_T}yes" >&6 | |
9019 | else | |
9020 | echo "$as_me:$LINENO: result: no" >&5 | |
9021 | echo "${ECHO_T}no" >&6 | |
9022 | fi | |
9023 | ||
9024 | ||
9025 | enablestring= | |
9026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9027 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9028 | no_cache=0 | |
9029 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9030 | if test "${enable_popupwin+set}" = set; then | |
9031 | enableval="$enable_popupwin" | |
9032 | ||
9033 | if test "$enableval" = yes; then | |
9034 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9035 | else | |
9036 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9037 | fi | |
9038 | ||
9039 | else | |
9040 | ||
9041 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9042 | if test "x$LINE" != x ; then | |
9043 | eval "DEFAULT_$LINE" | |
9044 | else | |
9045 | no_cache=1 | |
9046 | fi | |
9047 | ||
9048 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9049 | ||
9050 | fi; | |
9051 | ||
9052 | eval "$ac_cv_use_popupwin" | |
9053 | if test "$no_cache" != 1; then | |
9054 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9055 | fi | |
9056 | ||
9057 | if test "$wxUSE_POPUPWIN" = yes; then | |
9058 | echo "$as_me:$LINENO: result: yes" >&5 | |
9059 | echo "${ECHO_T}yes" >&6 | |
9060 | else | |
9061 | echo "$as_me:$LINENO: result: no" >&5 | |
9062 | echo "${ECHO_T}no" >&6 | |
9063 | fi | |
9064 | ||
9065 | ||
9066 | ||
9067 | ||
9068 | enablestring= | |
9069 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9070 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9071 | no_cache=0 | |
9072 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9073 | if test "${enable_commondlg+set}" = set; then | |
9074 | enableval="$enable_commondlg" | |
9075 | ||
9076 | if test "$enableval" = yes; then | |
9077 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9078 | else | |
9079 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9080 | fi | |
9081 | ||
9082 | else | |
9083 | ||
9084 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9085 | if test "x$LINE" != x ; then | |
9086 | eval "DEFAULT_$LINE" | |
9087 | else | |
9088 | no_cache=1 | |
9089 | fi | |
9090 | ||
9091 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9092 | ||
9093 | fi; | |
9094 | ||
9095 | eval "$ac_cv_use_commondlg" | |
9096 | if test "$no_cache" != 1; then | |
9097 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9098 | fi | |
9099 | ||
9100 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9101 | echo "$as_me:$LINENO: result: yes" >&5 | |
9102 | echo "${ECHO_T}yes" >&6 | |
9103 | else | |
9104 | echo "$as_me:$LINENO: result: no" >&5 | |
9105 | echo "${ECHO_T}no" >&6 | |
9106 | fi | |
9107 | ||
9108 | ||
9109 | enablestring= | |
9110 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9111 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9112 | no_cache=0 | |
9113 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9114 | if test "${enable_choicedlg+set}" = set; then | |
9115 | enableval="$enable_choicedlg" | |
9116 | ||
9117 | if test "$enableval" = yes; then | |
9118 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9119 | else | |
9120 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9121 | fi | |
9122 | ||
9123 | else | |
9124 | ||
9125 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9126 | if test "x$LINE" != x ; then | |
9127 | eval "DEFAULT_$LINE" | |
9128 | else | |
9129 | no_cache=1 | |
9130 | fi | |
9131 | ||
9132 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9133 | ||
9134 | fi; | |
9135 | ||
9136 | eval "$ac_cv_use_choicedlg" | |
9137 | if test "$no_cache" != 1; then | |
9138 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9139 | fi | |
9140 | ||
9141 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9142 | echo "$as_me:$LINENO: result: yes" >&5 | |
9143 | echo "${ECHO_T}yes" >&6 | |
9144 | else | |
9145 | echo "$as_me:$LINENO: result: no" >&5 | |
9146 | echo "${ECHO_T}no" >&6 | |
9147 | fi | |
9148 | ||
9149 | ||
9150 | enablestring= | |
9151 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9152 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9153 | no_cache=0 | |
9154 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9155 | if test "${enable_coldlg+set}" = set; then | |
9156 | enableval="$enable_coldlg" | |
9157 | ||
9158 | if test "$enableval" = yes; then | |
9159 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9160 | else | |
9161 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9162 | fi | |
9163 | ||
9164 | else | |
9165 | ||
9166 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9167 | if test "x$LINE" != x ; then | |
9168 | eval "DEFAULT_$LINE" | |
9169 | else | |
9170 | no_cache=1 | |
9171 | fi | |
9172 | ||
9173 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9174 | ||
9175 | fi; | |
9176 | ||
9177 | eval "$ac_cv_use_coldlg" | |
9178 | if test "$no_cache" != 1; then | |
9179 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9180 | fi | |
9181 | ||
9182 | if test "$wxUSE_COLOURDLG" = yes; then | |
9183 | echo "$as_me:$LINENO: result: yes" >&5 | |
9184 | echo "${ECHO_T}yes" >&6 | |
9185 | else | |
9186 | echo "$as_me:$LINENO: result: no" >&5 | |
9187 | echo "${ECHO_T}no" >&6 | |
9188 | fi | |
9189 | ||
9190 | ||
9191 | enablestring= | |
9192 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9193 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9194 | no_cache=0 | |
9195 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9196 | if test "${enable_filedlg+set}" = set; then | |
9197 | enableval="$enable_filedlg" | |
9198 | ||
9199 | if test "$enableval" = yes; then | |
9200 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9201 | else | |
9202 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9203 | fi | |
9204 | ||
9205 | else | |
9206 | ||
9207 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9208 | if test "x$LINE" != x ; then | |
9209 | eval "DEFAULT_$LINE" | |
9210 | else | |
9211 | no_cache=1 | |
9212 | fi | |
9213 | ||
9214 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9215 | ||
9216 | fi; | |
9217 | ||
9218 | eval "$ac_cv_use_filedlg" | |
9219 | if test "$no_cache" != 1; then | |
9220 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9221 | fi | |
9222 | ||
9223 | if test "$wxUSE_FILEDLG" = yes; then | |
9224 | echo "$as_me:$LINENO: result: yes" >&5 | |
9225 | echo "${ECHO_T}yes" >&6 | |
9226 | else | |
9227 | echo "$as_me:$LINENO: result: no" >&5 | |
9228 | echo "${ECHO_T}no" >&6 | |
9229 | fi | |
9230 | ||
9231 | ||
9232 | enablestring= | |
9233 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9234 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9235 | no_cache=0 | |
9236 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9237 | if test "${enable_finddlg+set}" = set; then | |
9238 | enableval="$enable_finddlg" | |
9239 | ||
9240 | if test "$enableval" = yes; then | |
9241 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9242 | else | |
9243 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9244 | fi | |
9245 | ||
9246 | else | |
9247 | ||
9248 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9249 | if test "x$LINE" != x ; then | |
9250 | eval "DEFAULT_$LINE" | |
9251 | else | |
9252 | no_cache=1 | |
9253 | fi | |
9254 | ||
9255 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9256 | ||
9257 | fi; | |
9258 | ||
9259 | eval "$ac_cv_use_finddlg" | |
9260 | if test "$no_cache" != 1; then | |
9261 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9262 | fi | |
9263 | ||
9264 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9265 | echo "$as_me:$LINENO: result: yes" >&5 | |
9266 | echo "${ECHO_T}yes" >&6 | |
9267 | else | |
9268 | echo "$as_me:$LINENO: result: no" >&5 | |
9269 | echo "${ECHO_T}no" >&6 | |
9270 | fi | |
9271 | ||
9272 | ||
9273 | enablestring= | |
9274 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9275 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9276 | no_cache=0 | |
9277 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9278 | if test "${enable_fontdlg+set}" = set; then | |
9279 | enableval="$enable_fontdlg" | |
9280 | ||
9281 | if test "$enableval" = yes; then | |
9282 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9283 | else | |
9284 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9285 | fi | |
9286 | ||
9287 | else | |
9288 | ||
9289 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9290 | if test "x$LINE" != x ; then | |
9291 | eval "DEFAULT_$LINE" | |
9292 | else | |
9293 | no_cache=1 | |
9294 | fi | |
9295 | ||
9296 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9297 | ||
9298 | fi; | |
9299 | ||
9300 | eval "$ac_cv_use_fontdlg" | |
9301 | if test "$no_cache" != 1; then | |
9302 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9303 | fi | |
9304 | ||
9305 | if test "$wxUSE_FONTDLG" = yes; then | |
9306 | echo "$as_me:$LINENO: result: yes" >&5 | |
9307 | echo "${ECHO_T}yes" >&6 | |
9308 | else | |
9309 | echo "$as_me:$LINENO: result: no" >&5 | |
9310 | echo "${ECHO_T}no" >&6 | |
9311 | fi | |
9312 | ||
9313 | ||
9314 | enablestring= | |
9315 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9316 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9317 | no_cache=0 | |
9318 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9319 | if test "${enable_dirdlg+set}" = set; then | |
9320 | enableval="$enable_dirdlg" | |
9321 | ||
9322 | if test "$enableval" = yes; then | |
9323 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9324 | else | |
9325 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9326 | fi | |
9327 | ||
9328 | else | |
9329 | ||
9330 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9331 | if test "x$LINE" != x ; then | |
9332 | eval "DEFAULT_$LINE" | |
9333 | else | |
9334 | no_cache=1 | |
9335 | fi | |
9336 | ||
9337 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9338 | ||
9339 | fi; | |
9340 | ||
9341 | eval "$ac_cv_use_dirdlg" | |
9342 | if test "$no_cache" != 1; then | |
9343 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9344 | fi | |
9345 | ||
9346 | if test "$wxUSE_DIRDLG" = yes; then | |
9347 | echo "$as_me:$LINENO: result: yes" >&5 | |
9348 | echo "${ECHO_T}yes" >&6 | |
9349 | else | |
9350 | echo "$as_me:$LINENO: result: no" >&5 | |
9351 | echo "${ECHO_T}no" >&6 | |
9352 | fi | |
9353 | ||
9354 | ||
9355 | enablestring= | |
9356 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9357 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9358 | no_cache=0 | |
9359 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9360 | if test "${enable_msgdlg+set}" = set; then | |
9361 | enableval="$enable_msgdlg" | |
9362 | ||
9363 | if test "$enableval" = yes; then | |
9364 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9365 | else | |
9366 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9367 | fi | |
9368 | ||
9369 | else | |
9370 | ||
9371 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9372 | if test "x$LINE" != x ; then | |
9373 | eval "DEFAULT_$LINE" | |
9374 | else | |
9375 | no_cache=1 | |
9376 | fi | |
9377 | ||
9378 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9379 | ||
9380 | fi; | |
9381 | ||
9382 | eval "$ac_cv_use_msgdlg" | |
9383 | if test "$no_cache" != 1; then | |
9384 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9385 | fi | |
9386 | ||
9387 | if test "$wxUSE_MSGDLG" = yes; then | |
9388 | echo "$as_me:$LINENO: result: yes" >&5 | |
9389 | echo "${ECHO_T}yes" >&6 | |
9390 | else | |
9391 | echo "$as_me:$LINENO: result: no" >&5 | |
9392 | echo "${ECHO_T}no" >&6 | |
9393 | fi | |
9394 | ||
9395 | ||
9396 | enablestring= | |
9397 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9398 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9399 | no_cache=0 | |
9400 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9401 | if test "${enable_numberdlg+set}" = set; then | |
9402 | enableval="$enable_numberdlg" | |
9403 | ||
9404 | if test "$enableval" = yes; then | |
9405 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9406 | else | |
9407 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9408 | fi | |
9409 | ||
9410 | else | |
9411 | ||
9412 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9413 | if test "x$LINE" != x ; then | |
9414 | eval "DEFAULT_$LINE" | |
9415 | else | |
9416 | no_cache=1 | |
9417 | fi | |
9418 | ||
9419 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9420 | ||
9421 | fi; | |
9422 | ||
9423 | eval "$ac_cv_use_numberdlg" | |
9424 | if test "$no_cache" != 1; then | |
9425 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9426 | fi | |
9427 | ||
9428 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9429 | echo "$as_me:$LINENO: result: yes" >&5 | |
9430 | echo "${ECHO_T}yes" >&6 | |
9431 | else | |
9432 | echo "$as_me:$LINENO: result: no" >&5 | |
9433 | echo "${ECHO_T}no" >&6 | |
9434 | fi | |
9435 | ||
9436 | ||
9437 | enablestring= | |
9438 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9439 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9440 | no_cache=0 | |
9441 | # Check whether --enable-splash or --disable-splash was given. | |
9442 | if test "${enable_splash+set}" = set; then | |
9443 | enableval="$enable_splash" | |
9444 | ||
9445 | if test "$enableval" = yes; then | |
9446 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9447 | else | |
9448 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9449 | fi | |
9450 | ||
9451 | else | |
9452 | ||
9453 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9454 | if test "x$LINE" != x ; then | |
9455 | eval "DEFAULT_$LINE" | |
9456 | else | |
9457 | no_cache=1 | |
9458 | fi | |
9459 | ||
9460 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9461 | ||
9462 | fi; | |
9463 | ||
9464 | eval "$ac_cv_use_splash" | |
9465 | if test "$no_cache" != 1; then | |
9466 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9467 | fi | |
9468 | ||
9469 | if test "$wxUSE_SPLASH" = yes; then | |
9470 | echo "$as_me:$LINENO: result: yes" >&5 | |
9471 | echo "${ECHO_T}yes" >&6 | |
9472 | else | |
9473 | echo "$as_me:$LINENO: result: no" >&5 | |
9474 | echo "${ECHO_T}no" >&6 | |
9475 | fi | |
9476 | ||
9477 | ||
9478 | enablestring= | |
9479 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9480 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9481 | no_cache=0 | |
9482 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9483 | if test "${enable_textdlg+set}" = set; then | |
9484 | enableval="$enable_textdlg" | |
9485 | ||
9486 | if test "$enableval" = yes; then | |
9487 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9488 | else | |
9489 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9490 | fi | |
9491 | ||
9492 | else | |
9493 | ||
9494 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9495 | if test "x$LINE" != x ; then | |
9496 | eval "DEFAULT_$LINE" | |
9497 | else | |
9498 | no_cache=1 | |
9499 | fi | |
9500 | ||
9501 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9502 | ||
9503 | fi; | |
9504 | ||
9505 | eval "$ac_cv_use_textdlg" | |
9506 | if test "$no_cache" != 1; then | |
9507 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9508 | fi | |
9509 | ||
9510 | if test "$wxUSE_TEXTDLG" = yes; then | |
9511 | echo "$as_me:$LINENO: result: yes" >&5 | |
9512 | echo "${ECHO_T}yes" >&6 | |
9513 | else | |
9514 | echo "$as_me:$LINENO: result: no" >&5 | |
9515 | echo "${ECHO_T}no" >&6 | |
9516 | fi | |
9517 | ||
9518 | ||
9519 | enablestring= | |
9520 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9521 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9522 | no_cache=0 | |
9523 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9524 | if test "${enable_tipdlg+set}" = set; then | |
9525 | enableval="$enable_tipdlg" | |
9526 | ||
9527 | if test "$enableval" = yes; then | |
9528 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9529 | else | |
9530 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9531 | fi | |
9532 | ||
9533 | else | |
9534 | ||
9535 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9536 | if test "x$LINE" != x ; then | |
9537 | eval "DEFAULT_$LINE" | |
9538 | else | |
9539 | no_cache=1 | |
9540 | fi | |
9541 | ||
9542 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9543 | ||
9544 | fi; | |
9545 | ||
9546 | eval "$ac_cv_use_tipdlg" | |
9547 | if test "$no_cache" != 1; then | |
9548 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9549 | fi | |
9550 | ||
9551 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9552 | echo "$as_me:$LINENO: result: yes" >&5 | |
9553 | echo "${ECHO_T}yes" >&6 | |
9554 | else | |
9555 | echo "$as_me:$LINENO: result: no" >&5 | |
9556 | echo "${ECHO_T}no" >&6 | |
9557 | fi | |
9558 | ||
9559 | ||
9560 | enablestring= | |
9561 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9562 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9563 | no_cache=0 | |
9564 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9565 | if test "${enable_progressdlg+set}" = set; then | |
9566 | enableval="$enable_progressdlg" | |
9567 | ||
9568 | if test "$enableval" = yes; then | |
9569 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9570 | else | |
9571 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9572 | fi | |
9573 | ||
9574 | else | |
9575 | ||
9576 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9577 | if test "x$LINE" != x ; then | |
9578 | eval "DEFAULT_$LINE" | |
9579 | else | |
9580 | no_cache=1 | |
9581 | fi | |
9582 | ||
9583 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9584 | ||
9585 | fi; | |
9586 | ||
9587 | eval "$ac_cv_use_progressdlg" | |
9588 | if test "$no_cache" != 1; then | |
9589 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9590 | fi | |
9591 | ||
9592 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9593 | echo "$as_me:$LINENO: result: yes" >&5 | |
9594 | echo "${ECHO_T}yes" >&6 | |
9595 | else | |
9596 | echo "$as_me:$LINENO: result: no" >&5 | |
9597 | echo "${ECHO_T}no" >&6 | |
9598 | fi | |
9599 | ||
9600 | ||
9601 | enablestring= | |
9602 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9603 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9604 | no_cache=0 | |
9605 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9606 | if test "${enable_wizarddlg+set}" = set; then | |
9607 | enableval="$enable_wizarddlg" | |
9608 | ||
9609 | if test "$enableval" = yes; then | |
9610 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9611 | else | |
9612 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9613 | fi | |
9614 | ||
9615 | else | |
9616 | ||
9617 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9618 | if test "x$LINE" != x ; then | |
9619 | eval "DEFAULT_$LINE" | |
9620 | else | |
9621 | no_cache=1 | |
9622 | fi | |
9623 | ||
9624 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9625 | ||
9626 | fi; | |
9627 | ||
9628 | eval "$ac_cv_use_wizarddlg" | |
9629 | if test "$no_cache" != 1; then | |
9630 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9631 | fi | |
9632 | ||
9633 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9634 | echo "$as_me:$LINENO: result: yes" >&5 | |
9635 | echo "${ECHO_T}yes" >&6 | |
9636 | else | |
9637 | echo "$as_me:$LINENO: result: no" >&5 | |
9638 | echo "${ECHO_T}no" >&6 | |
9639 | fi | |
9640 | ||
9641 | ||
9642 | ||
9643 | ||
9644 | enablestring= | |
9645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9646 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9647 | no_cache=0 | |
9648 | # Check whether --enable-menus or --disable-menus was given. | |
9649 | if test "${enable_menus+set}" = set; then | |
9650 | enableval="$enable_menus" | |
9651 | ||
9652 | if test "$enableval" = yes; then | |
9653 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9654 | else | |
9655 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9656 | fi | |
9657 | ||
9658 | else | |
9659 | ||
9660 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9661 | if test "x$LINE" != x ; then | |
9662 | eval "DEFAULT_$LINE" | |
9663 | else | |
9664 | no_cache=1 | |
9665 | fi | |
9666 | ||
9667 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9668 | ||
9669 | fi; | |
9670 | ||
9671 | eval "$ac_cv_use_menus" | |
9672 | if test "$no_cache" != 1; then | |
9673 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9674 | fi | |
9675 | ||
9676 | if test "$wxUSE_MENUS" = yes; then | |
9677 | echo "$as_me:$LINENO: result: yes" >&5 | |
9678 | echo "${ECHO_T}yes" >&6 | |
9679 | else | |
9680 | echo "$as_me:$LINENO: result: no" >&5 | |
9681 | echo "${ECHO_T}no" >&6 | |
9682 | fi | |
9683 | ||
9684 | ||
9685 | enablestring= | |
9686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9687 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9688 | no_cache=0 | |
9689 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9690 | if test "${enable_miniframe+set}" = set; then | |
9691 | enableval="$enable_miniframe" | |
9692 | ||
9693 | if test "$enableval" = yes; then | |
9694 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9695 | else | |
9696 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9697 | fi | |
9698 | ||
9699 | else | |
9700 | ||
9701 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9702 | if test "x$LINE" != x ; then | |
9703 | eval "DEFAULT_$LINE" | |
9704 | else | |
9705 | no_cache=1 | |
9706 | fi | |
9707 | ||
9708 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9709 | ||
9710 | fi; | |
9711 | ||
9712 | eval "$ac_cv_use_miniframe" | |
9713 | if test "$no_cache" != 1; then | |
9714 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9715 | fi | |
9716 | ||
9717 | if test "$wxUSE_MINIFRAME" = yes; then | |
9718 | echo "$as_me:$LINENO: result: yes" >&5 | |
9719 | echo "${ECHO_T}yes" >&6 | |
9720 | else | |
9721 | echo "$as_me:$LINENO: result: no" >&5 | |
9722 | echo "${ECHO_T}no" >&6 | |
9723 | fi | |
9724 | ||
9725 | ||
9726 | enablestring= | |
9727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9728 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9729 | no_cache=0 | |
9730 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9731 | if test "${enable_tooltips+set}" = set; then | |
9732 | enableval="$enable_tooltips" | |
9733 | ||
9734 | if test "$enableval" = yes; then | |
9735 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9736 | else | |
9737 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9738 | fi | |
9739 | ||
9740 | else | |
9741 | ||
9742 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9743 | if test "x$LINE" != x ; then | |
9744 | eval "DEFAULT_$LINE" | |
9745 | else | |
9746 | no_cache=1 | |
9747 | fi | |
9748 | ||
9749 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9750 | ||
9751 | fi; | |
9752 | ||
9753 | eval "$ac_cv_use_tooltips" | |
9754 | if test "$no_cache" != 1; then | |
9755 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9756 | fi | |
9757 | ||
9758 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9759 | echo "$as_me:$LINENO: result: yes" >&5 | |
9760 | echo "${ECHO_T}yes" >&6 | |
9761 | else | |
9762 | echo "$as_me:$LINENO: result: no" >&5 | |
9763 | echo "${ECHO_T}no" >&6 | |
9764 | fi | |
9765 | ||
9766 | ||
9767 | enablestring= | |
9768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9769 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9770 | no_cache=0 | |
9771 | # Check whether --enable-splines or --disable-splines was given. | |
9772 | if test "${enable_splines+set}" = set; then | |
9773 | enableval="$enable_splines" | |
9774 | ||
9775 | if test "$enableval" = yes; then | |
9776 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9777 | else | |
9778 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9779 | fi | |
9780 | ||
9781 | else | |
9782 | ||
9783 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9784 | if test "x$LINE" != x ; then | |
9785 | eval "DEFAULT_$LINE" | |
9786 | else | |
9787 | no_cache=1 | |
9788 | fi | |
9789 | ||
9790 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9791 | ||
9792 | fi; | |
9793 | ||
9794 | eval "$ac_cv_use_splines" | |
9795 | if test "$no_cache" != 1; then | |
9796 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9797 | fi | |
9798 | ||
9799 | if test "$wxUSE_SPLINES" = yes; then | |
9800 | echo "$as_me:$LINENO: result: yes" >&5 | |
9801 | echo "${ECHO_T}yes" >&6 | |
9802 | else | |
9803 | echo "$as_me:$LINENO: result: no" >&5 | |
9804 | echo "${ECHO_T}no" >&6 | |
9805 | fi | |
9806 | ||
9807 | ||
fbe2ca43 SN |
9808 | enablestring= |
9809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9810 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9811 | no_cache=0 | |
9812 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9813 | if test "${enable_mousewheel+set}" = set; then | |
9814 | enableval="$enable_mousewheel" | |
9815 | ||
9816 | if test "$enableval" = yes; then | |
9817 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
9818 | else | |
9819 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
9820 | fi | |
9821 | ||
9822 | else | |
9823 | ||
9824 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
9825 | if test "x$LINE" != x ; then | |
9826 | eval "DEFAULT_$LINE" | |
9827 | else | |
9828 | no_cache=1 | |
9829 | fi | |
9830 | ||
9831 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
9832 | ||
9833 | fi; | |
9834 | ||
9835 | eval "$ac_cv_use_mousewheel" | |
9836 | if test "$no_cache" != 1; then | |
9837 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
9838 | fi | |
9839 | ||
9840 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
9841 | echo "$as_me:$LINENO: result: yes" >&5 | |
9842 | echo "${ECHO_T}yes" >&6 | |
9843 | else | |
9844 | echo "$as_me:$LINENO: result: no" >&5 | |
9845 | echo "${ECHO_T}no" >&6 | |
9846 | fi | |
9847 | ||
9848 | ||
a848cd7e SC |
9849 | enablestring= |
9850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9851 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9852 | no_cache=0 | |
9853 | # Check whether --enable-validators or --disable-validators was given. | |
9854 | if test "${enable_validators+set}" = set; then | |
9855 | enableval="$enable_validators" | |
9856 | ||
9857 | if test "$enableval" = yes; then | |
9858 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9859 | else | |
9860 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9861 | fi | |
9862 | ||
9863 | else | |
9864 | ||
9865 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9866 | if test "x$LINE" != x ; then | |
9867 | eval "DEFAULT_$LINE" | |
9868 | else | |
9869 | no_cache=1 | |
9870 | fi | |
9871 | ||
9872 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9873 | ||
9874 | fi; | |
9875 | ||
9876 | eval "$ac_cv_use_validators" | |
9877 | if test "$no_cache" != 1; then | |
9878 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9879 | fi | |
9880 | ||
9881 | if test "$wxUSE_VALIDATORS" = yes; then | |
9882 | echo "$as_me:$LINENO: result: yes" >&5 | |
9883 | echo "${ECHO_T}yes" >&6 | |
9884 | else | |
9885 | echo "$as_me:$LINENO: result: no" >&5 | |
9886 | echo "${ECHO_T}no" >&6 | |
9887 | fi | |
9888 | ||
9889 | ||
9890 | enablestring= | |
9891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9892 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9893 | no_cache=0 | |
9894 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9895 | if test "${enable_busyinfo+set}" = set; then | |
9896 | enableval="$enable_busyinfo" | |
9897 | ||
9898 | if test "$enableval" = yes; then | |
9899 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9900 | else | |
9901 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9902 | fi | |
9903 | ||
9904 | else | |
9905 | ||
9906 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9907 | if test "x$LINE" != x ; then | |
9908 | eval "DEFAULT_$LINE" | |
9909 | else | |
9910 | no_cache=1 | |
9911 | fi | |
9912 | ||
9913 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9914 | ||
9915 | fi; | |
9916 | ||
9917 | eval "$ac_cv_use_busyinfo" | |
9918 | if test "$no_cache" != 1; then | |
9919 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9920 | fi | |
9921 | ||
9922 | if test "$wxUSE_BUSYINFO" = yes; then | |
9923 | echo "$as_me:$LINENO: result: yes" >&5 | |
9924 | echo "${ECHO_T}yes" >&6 | |
9925 | else | |
9926 | echo "$as_me:$LINENO: result: no" >&5 | |
9927 | echo "${ECHO_T}no" >&6 | |
9928 | fi | |
9929 | ||
9930 | ||
9931 | enablestring= | |
9932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9933 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9934 | no_cache=0 | |
9935 | # Check whether --enable-joystick or --disable-joystick was given. | |
9936 | if test "${enable_joystick+set}" = set; then | |
9937 | enableval="$enable_joystick" | |
9938 | ||
9939 | if test "$enableval" = yes; then | |
9940 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9941 | else | |
9942 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9943 | fi | |
9944 | ||
9945 | else | |
9946 | ||
9947 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9948 | if test "x$LINE" != x ; then | |
9949 | eval "DEFAULT_$LINE" | |
9950 | else | |
9951 | no_cache=1 | |
9952 | fi | |
9953 | ||
9954 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9955 | ||
9956 | fi; | |
9957 | ||
9958 | eval "$ac_cv_use_joystick" | |
9959 | if test "$no_cache" != 1; then | |
9960 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9961 | fi | |
9962 | ||
9963 | if test "$wxUSE_JOYSTICK" = yes; then | |
9964 | echo "$as_me:$LINENO: result: yes" >&5 | |
9965 | echo "${ECHO_T}yes" >&6 | |
9966 | else | |
9967 | echo "$as_me:$LINENO: result: no" >&5 | |
9968 | echo "${ECHO_T}no" >&6 | |
9969 | fi | |
9970 | ||
9971 | ||
9972 | enablestring= | |
9973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9974 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9975 | no_cache=0 | |
9976 | # Check whether --enable-metafile or --disable-metafile was given. | |
9977 | if test "${enable_metafile+set}" = set; then | |
9978 | enableval="$enable_metafile" | |
9979 | ||
9980 | if test "$enableval" = yes; then | |
9981 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9982 | else | |
9983 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9984 | fi | |
9985 | ||
9986 | else | |
9987 | ||
9988 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9989 | if test "x$LINE" != x ; then | |
9990 | eval "DEFAULT_$LINE" | |
9991 | else | |
9992 | no_cache=1 | |
9993 | fi | |
9994 | ||
9995 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9996 | ||
9997 | fi; | |
9998 | ||
9999 | eval "$ac_cv_use_metafile" | |
10000 | if test "$no_cache" != 1; then | |
10001 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10002 | fi | |
10003 | ||
10004 | if test "$wxUSE_METAFILE" = yes; then | |
10005 | echo "$as_me:$LINENO: result: yes" >&5 | |
10006 | echo "${ECHO_T}yes" >&6 | |
10007 | else | |
10008 | echo "$as_me:$LINENO: result: no" >&5 | |
10009 | echo "${ECHO_T}no" >&6 | |
10010 | fi | |
10011 | ||
10012 | ||
10013 | enablestring= | |
10014 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10015 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10016 | no_cache=0 | |
10017 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10018 | if test "${enable_dragimage+set}" = set; then | |
10019 | enableval="$enable_dragimage" | |
10020 | ||
10021 | if test "$enableval" = yes; then | |
10022 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10023 | else | |
10024 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10025 | fi | |
10026 | ||
10027 | else | |
10028 | ||
10029 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10030 | if test "x$LINE" != x ; then | |
10031 | eval "DEFAULT_$LINE" | |
10032 | else | |
10033 | no_cache=1 | |
10034 | fi | |
10035 | ||
10036 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10037 | ||
10038 | fi; | |
10039 | ||
10040 | eval "$ac_cv_use_dragimage" | |
10041 | if test "$no_cache" != 1; then | |
10042 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10043 | fi | |
10044 | ||
10045 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10046 | echo "$as_me:$LINENO: result: yes" >&5 | |
10047 | echo "${ECHO_T}yes" >&6 | |
10048 | else | |
10049 | echo "$as_me:$LINENO: result: no" >&5 | |
10050 | echo "${ECHO_T}no" >&6 | |
10051 | fi | |
10052 | ||
10053 | ||
10054 | enablestring= | |
10055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10056 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10057 | no_cache=0 | |
10058 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10059 | if test "${enable_accessibility+set}" = set; then | |
10060 | enableval="$enable_accessibility" | |
10061 | ||
10062 | if test "$enableval" = yes; then | |
10063 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10064 | else | |
10065 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10066 | fi | |
10067 | ||
10068 | else | |
10069 | ||
10070 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10071 | if test "x$LINE" != x ; then | |
10072 | eval "DEFAULT_$LINE" | |
10073 | else | |
10074 | no_cache=1 | |
10075 | fi | |
10076 | ||
10077 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10078 | ||
10079 | fi; | |
10080 | ||
10081 | eval "$ac_cv_use_accessibility" | |
10082 | if test "$no_cache" != 1; then | |
10083 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10084 | fi | |
10085 | ||
10086 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10087 | echo "$as_me:$LINENO: result: yes" >&5 | |
10088 | echo "${ECHO_T}yes" >&6 | |
10089 | else | |
10090 | echo "$as_me:$LINENO: result: no" >&5 | |
10091 | echo "${ECHO_T}no" >&6 | |
10092 | fi | |
10093 | ||
10094 | ||
38b4a946 VZ |
10095 | if test "$wxUSE_MSW" = "1"; then |
10096 | ||
10097 | enablestring= | |
10098 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10099 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10100 | no_cache=0 | |
10101 | # Check whether --enable-dccache or --disable-dccache was given. | |
10102 | if test "${enable_dccache+set}" = set; then | |
10103 | enableval="$enable_dccache" | |
10104 | ||
10105 | if test "$enableval" = yes; then | |
10106 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10107 | else | |
10108 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10109 | fi | |
10110 | ||
10111 | else | |
10112 | ||
10113 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10114 | if test "x$LINE" != x ; then | |
10115 | eval "DEFAULT_$LINE" | |
10116 | else | |
10117 | no_cache=1 | |
10118 | fi | |
10119 | ||
10120 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10121 | ||
10122 | fi; | |
10123 | ||
10124 | eval "$ac_cv_use_dccache" | |
10125 | if test "$no_cache" != 1; then | |
10126 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10127 | fi | |
10128 | ||
10129 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10130 | echo "$as_me:$LINENO: result: yes" >&5 | |
10131 | echo "${ECHO_T}yes" >&6 | |
10132 | else | |
10133 | echo "$as_me:$LINENO: result: no" >&5 | |
10134 | echo "${ECHO_T}no" >&6 | |
10135 | fi | |
10136 | ||
10137 | fi | |
10138 | ||
a848cd7e SC |
10139 | |
10140 | ||
10141 | enablestring= | |
10142 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10143 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10144 | no_cache=0 | |
10145 | # Check whether --enable-palette or --disable-palette was given. | |
10146 | if test "${enable_palette+set}" = set; then | |
10147 | enableval="$enable_palette" | |
10148 | ||
10149 | if test "$enableval" = yes; then | |
10150 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10151 | else | |
10152 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10153 | fi | |
10154 | ||
10155 | else | |
10156 | ||
10157 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10158 | if test "x$LINE" != x ; then | |
10159 | eval "DEFAULT_$LINE" | |
10160 | else | |
10161 | no_cache=1 | |
10162 | fi | |
10163 | ||
10164 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10165 | ||
10166 | fi; | |
10167 | ||
10168 | eval "$ac_cv_use_palette" | |
10169 | if test "$no_cache" != 1; then | |
10170 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10171 | fi | |
10172 | ||
10173 | if test "$wxUSE_PALETTE" = yes; then | |
10174 | echo "$as_me:$LINENO: result: yes" >&5 | |
10175 | echo "${ECHO_T}yes" >&6 | |
10176 | else | |
10177 | echo "$as_me:$LINENO: result: no" >&5 | |
10178 | echo "${ECHO_T}no" >&6 | |
10179 | fi | |
10180 | ||
10181 | ||
10182 | enablestring= | |
10183 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10184 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10185 | no_cache=0 | |
10186 | # Check whether --enable-image or --disable-image was given. | |
10187 | if test "${enable_image+set}" = set; then | |
10188 | enableval="$enable_image" | |
10189 | ||
10190 | if test "$enableval" = yes; then | |
10191 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10192 | else | |
10193 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10194 | fi | |
10195 | ||
10196 | else | |
10197 | ||
10198 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10199 | if test "x$LINE" != x ; then | |
10200 | eval "DEFAULT_$LINE" | |
10201 | else | |
10202 | no_cache=1 | |
10203 | fi | |
10204 | ||
10205 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10206 | ||
10207 | fi; | |
10208 | ||
10209 | eval "$ac_cv_use_image" | |
10210 | if test "$no_cache" != 1; then | |
10211 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10212 | fi | |
10213 | ||
10214 | if test "$wxUSE_IMAGE" = yes; then | |
10215 | echo "$as_me:$LINENO: result: yes" >&5 | |
10216 | echo "${ECHO_T}yes" >&6 | |
10217 | else | |
10218 | echo "$as_me:$LINENO: result: no" >&5 | |
10219 | echo "${ECHO_T}no" >&6 | |
10220 | fi | |
10221 | ||
10222 | ||
10223 | enablestring= | |
10224 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10225 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10226 | no_cache=0 | |
10227 | # Check whether --enable-gif or --disable-gif was given. | |
10228 | if test "${enable_gif+set}" = set; then | |
10229 | enableval="$enable_gif" | |
10230 | ||
10231 | if test "$enableval" = yes; then | |
10232 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10233 | else | |
10234 | ac_cv_use_gif='wxUSE_GIF=no' | |
10235 | fi | |
10236 | ||
10237 | else | |
10238 | ||
10239 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10240 | if test "x$LINE" != x ; then | |
10241 | eval "DEFAULT_$LINE" | |
10242 | else | |
10243 | no_cache=1 | |
10244 | fi | |
10245 | ||
10246 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10247 | ||
10248 | fi; | |
10249 | ||
10250 | eval "$ac_cv_use_gif" | |
10251 | if test "$no_cache" != 1; then | |
10252 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10253 | fi | |
10254 | ||
10255 | if test "$wxUSE_GIF" = yes; then | |
10256 | echo "$as_me:$LINENO: result: yes" >&5 | |
10257 | echo "${ECHO_T}yes" >&6 | |
10258 | else | |
10259 | echo "$as_me:$LINENO: result: no" >&5 | |
10260 | echo "${ECHO_T}no" >&6 | |
10261 | fi | |
10262 | ||
10263 | ||
10264 | enablestring= | |
10265 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10266 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10267 | no_cache=0 | |
10268 | # Check whether --enable-pcx or --disable-pcx was given. | |
10269 | if test "${enable_pcx+set}" = set; then | |
10270 | enableval="$enable_pcx" | |
10271 | ||
10272 | if test "$enableval" = yes; then | |
10273 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10274 | else | |
10275 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10276 | fi | |
10277 | ||
10278 | else | |
10279 | ||
10280 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10281 | if test "x$LINE" != x ; then | |
10282 | eval "DEFAULT_$LINE" | |
10283 | else | |
10284 | no_cache=1 | |
10285 | fi | |
10286 | ||
10287 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10288 | ||
10289 | fi; | |
10290 | ||
10291 | eval "$ac_cv_use_pcx" | |
10292 | if test "$no_cache" != 1; then | |
10293 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10294 | fi | |
10295 | ||
10296 | if test "$wxUSE_PCX" = yes; then | |
10297 | echo "$as_me:$LINENO: result: yes" >&5 | |
10298 | echo "${ECHO_T}yes" >&6 | |
10299 | else | |
10300 | echo "$as_me:$LINENO: result: no" >&5 | |
10301 | echo "${ECHO_T}no" >&6 | |
10302 | fi | |
10303 | ||
10304 | ||
10305 | enablestring= | |
10306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10307 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10308 | no_cache=0 | |
10309 | # Check whether --enable-iff or --disable-iff was given. | |
10310 | if test "${enable_iff+set}" = set; then | |
10311 | enableval="$enable_iff" | |
10312 | ||
10313 | if test "$enableval" = yes; then | |
10314 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10315 | else | |
10316 | ac_cv_use_iff='wxUSE_IFF=no' | |
10317 | fi | |
10318 | ||
10319 | else | |
10320 | ||
10321 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10322 | if test "x$LINE" != x ; then | |
10323 | eval "DEFAULT_$LINE" | |
10324 | else | |
10325 | no_cache=1 | |
10326 | fi | |
10327 | ||
10328 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10329 | ||
10330 | fi; | |
10331 | ||
10332 | eval "$ac_cv_use_iff" | |
10333 | if test "$no_cache" != 1; then | |
10334 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10335 | fi | |
10336 | ||
10337 | if test "$wxUSE_IFF" = yes; then | |
10338 | echo "$as_me:$LINENO: result: yes" >&5 | |
10339 | echo "${ECHO_T}yes" >&6 | |
10340 | else | |
10341 | echo "$as_me:$LINENO: result: no" >&5 | |
10342 | echo "${ECHO_T}no" >&6 | |
10343 | fi | |
10344 | ||
10345 | ||
10346 | enablestring= | |
10347 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10348 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10349 | no_cache=0 | |
10350 | # Check whether --enable-pnm or --disable-pnm was given. | |
10351 | if test "${enable_pnm+set}" = set; then | |
10352 | enableval="$enable_pnm" | |
10353 | ||
10354 | if test "$enableval" = yes; then | |
10355 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10356 | else | |
10357 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10358 | fi | |
10359 | ||
10360 | else | |
10361 | ||
10362 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10363 | if test "x$LINE" != x ; then | |
10364 | eval "DEFAULT_$LINE" | |
10365 | else | |
10366 | no_cache=1 | |
10367 | fi | |
10368 | ||
10369 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10370 | ||
10371 | fi; | |
10372 | ||
10373 | eval "$ac_cv_use_pnm" | |
10374 | if test "$no_cache" != 1; then | |
10375 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10376 | fi | |
10377 | ||
10378 | if test "$wxUSE_PNM" = yes; then | |
10379 | echo "$as_me:$LINENO: result: yes" >&5 | |
10380 | echo "${ECHO_T}yes" >&6 | |
10381 | else | |
10382 | echo "$as_me:$LINENO: result: no" >&5 | |
10383 | echo "${ECHO_T}no" >&6 | |
10384 | fi | |
10385 | ||
10386 | ||
10387 | enablestring= | |
10388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10389 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10390 | no_cache=0 | |
10391 | # Check whether --enable-xpm or --disable-xpm was given. | |
10392 | if test "${enable_xpm+set}" = set; then | |
10393 | enableval="$enable_xpm" | |
10394 | ||
10395 | if test "$enableval" = yes; then | |
10396 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10397 | else | |
10398 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10399 | fi | |
10400 | ||
10401 | else | |
10402 | ||
10403 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10404 | if test "x$LINE" != x ; then | |
10405 | eval "DEFAULT_$LINE" | |
10406 | else | |
10407 | no_cache=1 | |
10408 | fi | |
10409 | ||
10410 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10411 | ||
10412 | fi; | |
10413 | ||
10414 | eval "$ac_cv_use_xpm" | |
10415 | if test "$no_cache" != 1; then | |
10416 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10417 | fi | |
10418 | ||
10419 | if test "$wxUSE_XPM" = yes; then | |
10420 | echo "$as_me:$LINENO: result: yes" >&5 | |
10421 | echo "${ECHO_T}yes" >&6 | |
10422 | else | |
10423 | echo "$as_me:$LINENO: result: no" >&5 | |
10424 | echo "${ECHO_T}no" >&6 | |
10425 | fi | |
10426 | ||
10427 | ||
10428 | enablestring= | |
10429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10430 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10431 | no_cache=0 | |
10432 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10433 | if test "${enable_ico_cur+set}" = set; then | |
10434 | enableval="$enable_ico_cur" | |
10435 | ||
10436 | if test "$enableval" = yes; then | |
10437 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10438 | else | |
10439 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10440 | fi | |
10441 | ||
10442 | else | |
10443 | ||
10444 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10445 | if test "x$LINE" != x ; then | |
10446 | eval "DEFAULT_$LINE" | |
10447 | else | |
10448 | no_cache=1 | |
10449 | fi | |
10450 | ||
10451 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10452 | ||
10453 | fi; | |
10454 | ||
10455 | eval "$ac_cv_use_ico_cur" | |
10456 | if test "$no_cache" != 1; then | |
10457 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10458 | fi | |
10459 | ||
10460 | if test "$wxUSE_ICO_CUR" = yes; then | |
10461 | echo "$as_me:$LINENO: result: yes" >&5 | |
10462 | echo "${ECHO_T}yes" >&6 | |
10463 | else | |
10464 | echo "$as_me:$LINENO: result: no" >&5 | |
10465 | echo "${ECHO_T}no" >&6 | |
10466 | fi | |
10467 | ||
10468 | ||
10469 | fi | |
10470 | ||
10471 | ||
10472 | ||
ceec2216 RL |
10473 | # Check whether --with-flavour or --without-flavour was given. |
10474 | if test "${with_flavour+set}" = set; then | |
10475 | withval="$with_flavour" | |
10476 | WX_FLAVOUR="$withval" | |
10477 | fi; | |
10478 | ||
10479 | ||
10480 | ||
a848cd7e SC |
10481 | enablestring= |
10482 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10483 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10484 | no_cache=0 | |
10485 | # Check whether --enable-official_build or --disable-official_build was given. | |
10486 | if test "${enable_official_build+set}" = set; then | |
10487 | enableval="$enable_official_build" | |
10488 | ||
10489 | if test "$enableval" = yes; then | |
10490 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10491 | else | |
10492 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10493 | fi | |
10494 | ||
10495 | else | |
10496 | ||
10497 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10498 | if test "x$LINE" != x ; then | |
10499 | eval "DEFAULT_$LINE" | |
10500 | else | |
10501 | no_cache=1 | |
10502 | fi | |
10503 | ||
10504 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10505 | ||
10506 | fi; | |
10507 | ||
10508 | eval "$ac_cv_use_official_build" | |
10509 | if test "$no_cache" != 1; then | |
10510 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10511 | fi | |
10512 | ||
10513 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10514 | echo "$as_me:$LINENO: result: yes" >&5 | |
10515 | echo "${ECHO_T}yes" >&6 | |
10516 | else | |
10517 | echo "$as_me:$LINENO: result: no" >&5 | |
10518 | echo "${ECHO_T}no" >&6 | |
10519 | fi | |
10520 | ||
10521 | # Check whether --enable-vendor or --disable-vendor was given. | |
10522 | if test "${enable_vendor+set}" = set; then | |
10523 | enableval="$enable_vendor" | |
10524 | VENDOR="$enableval" | |
10525 | fi; | |
10526 | if test "x$VENDOR" = "x"; then | |
10527 | VENDOR="custom" | |
10528 | fi | |
10529 | ||
a848cd7e SC |
10530 | |
10531 | ||
10532 | ||
10533 | echo "saving argument cache $wx_arg_cache_file" | |
10534 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10535 | ||
10536 | ||
10537 | ||
10538 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10539 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10540 | ||
10541 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10542 | if test "$wxUSE_WINE" = "yes"; then | |
10543 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10544 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10545 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10546 | wxUSE_SHARED=no | |
10547 | fi | |
10548 | ||
f597b41c | 10549 | |
a848cd7e SC |
10550 | if test "$wxUSE_GUI" = "yes"; then |
10551 | ||
10552 | if test "$USE_BEOS" = 1; then | |
10553 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10554 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10555 | { (exit 1); exit 1; }; } | |
10556 | fi | |
10557 | ||
10558 | if test "$TOOLKIT_GIVEN" = 1; then | |
10559 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10560 | var=wxUSE_$toolkit | |
10561 | eval "value=\$${var}" | |
f34ca037 MW |
10562 | if test "x$value" = "xno"; then |
10563 | eval "$var=0" | |
10564 | elif test "x$value" != "x"; then | |
10565 | eval "$var=1" | |
10566 | fi | |
10567 | ||
10568 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10569 | eval "wx${toolkit}_VERSION=$value" | |
10570 | fi | |
a848cd7e SC |
10571 | done |
10572 | else | |
10573 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10574 | if test "$has_toolkit_in_cache" != 1; then | |
10575 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10576 | else | |
10577 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10578 | |
10579 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10580 | if test "x$version" != "x"; then | |
10581 | eval "wx${toolkit}_VERSION=$version" | |
10582 | fi | |
a848cd7e SC |
10583 | fi |
10584 | eval "wxUSE_$toolkit=\$${var}" | |
10585 | done | |
10586 | fi | |
10587 | ||
10588 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10589 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10590 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10591 | ||
10592 | case "${host}" in | |
10593 | *-pc-os2_emx | *-pc-os2-emx ) | |
10594 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10595 | esac | |
10596 | ||
10597 | case "$NUM_TOOLKITS" in | |
10598 | 1) | |
10599 | ;; | |
10600 | 0) | |
10601 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10602 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10603 | { (exit 1); exit 1; }; } | |
10604 | ;; | |
10605 | *) | |
10606 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10607 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10608 | { (exit 1); exit 1; }; } | |
10609 | esac | |
10610 | ||
f34ca037 MW |
10611 | # to be removed when --disable-gtk2 isn't needed |
10612 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10613 | wxGTK_VERSION=2 | |
10614 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10615 | wxGTK_VERSION=1 | |
10616 | fi | |
10617 | ||
a848cd7e SC |
10618 | for toolkit in `echo $ALL_TOOLKITS`; do |
10619 | var=wxUSE_$toolkit | |
10620 | eval "value=\$${var}" | |
10621 | if test "x$value" != x; then | |
10622 | cache_var=CACHE_$toolkit | |
10623 | eval "cache=\$${cache_var}" | |
10624 | if test "$cache" = 1; then | |
10625 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10626 | eval "version=\$wx${toolkit}_VERSION" |
10627 | if test "x$version" != "x"; then | |
10628 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10629 | fi | |
a848cd7e SC |
10630 | fi |
10631 | if test "$value" = 1; then | |
10632 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10633 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10634 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10635 | fi | |
10636 | fi | |
10637 | done | |
10638 | else | |
10639 | if test "x$host_alias" != "x"; then | |
10640 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10641 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10642 | else | |
10643 | echo "$as_me:$LINENO: result: base only" >&5 | |
10644 | echo "${ECHO_T}base only" >&6 | |
10645 | fi | |
10646 | fi | |
10647 | ||
10648 | wants_win32=0 | |
10649 | doesnt_want_win32=0 | |
10650 | case "${host}" in | |
10651 | *-*-cygwin*) | |
10652 | if test "$wxUSE_MSW" = 1 ; then | |
10653 | wants_win32=1 | |
7275146d | 10654 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
10655 | else |
10656 | doesnt_want_win32=1 | |
10657 | fi | |
10658 | ;; | |
10659 | *-*-mingw*) | |
10660 | wants_win32=1 | |
10661 | ;; | |
10662 | esac | |
10663 | ||
10664 | if test "$wxUSE_WINE" = "yes"; then | |
10665 | wants_win32=1 | |
10666 | CC=winegcc | |
10667 | CXX=wineg++ | |
a848cd7e SC |
10668 | LDFLAGS_GUI="-mwindows" |
10669 | fi | |
10670 | ||
10671 | if test "$wants_win32" = 1 ; then | |
10672 | USE_UNIX=0 | |
10673 | USE_WIN32=1 | |
10674 | cat >>confdefs.h <<\_ACEOF | |
10675 | #define __WIN32__ 1 | |
10676 | _ACEOF | |
10677 | ||
10678 | cat >>confdefs.h <<\_ACEOF | |
10679 | #define __WIN95__ 1 | |
10680 | _ACEOF | |
10681 | ||
10682 | cat >>confdefs.h <<\_ACEOF | |
10683 | #define __WINDOWS__ 1 | |
10684 | _ACEOF | |
10685 | ||
10686 | cat >>confdefs.h <<\_ACEOF | |
10687 | #define __GNUWIN32__ 1 | |
10688 | _ACEOF | |
10689 | ||
10690 | cat >>confdefs.h <<\_ACEOF | |
10691 | #define STRICT 1 | |
10692 | _ACEOF | |
10693 | ||
10694 | cat >>confdefs.h <<\_ACEOF | |
10695 | #define WINVER 0x0400 | |
10696 | _ACEOF | |
10697 | ||
10698 | fi | |
10699 | if test "$doesnt_want_win32" = 1 ; then | |
10700 | USE_UNIX=1 | |
10701 | USE_WIN32=0 | |
10702 | fi | |
10703 | ||
10704 | if test "$USE_UNIX" = 1 ; then | |
10705 | wxUSE_UNIX=yes | |
10706 | cat >>confdefs.h <<\_ACEOF | |
10707 | #define __UNIX__ 1 | |
10708 | _ACEOF | |
10709 | ||
10710 | fi | |
10711 | ||
10712 | ||
10713 | cat >confcache <<\_ACEOF | |
10714 | # This file is a shell script that caches the results of configure | |
10715 | # tests run on this system so they can be shared between configure | |
10716 | # scripts and configure runs, see configure's option --config-cache. | |
10717 | # It is not useful on other systems. If it contains results you don't | |
10718 | # want to keep, you may remove or edit it. | |
10719 | # | |
10720 | # config.status only pays attention to the cache file if you give it | |
10721 | # the --recheck option to rerun configure. | |
10722 | # | |
10723 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10724 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10725 | # following values. | |
10726 | ||
10727 | _ACEOF | |
10728 | ||
10729 | # The following way of writing the cache mishandles newlines in values, | |
10730 | # but we know of no workaround that is simple, portable, and efficient. | |
10731 | # So, don't put newlines in cache variables' values. | |
10732 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10733 | # and sets the high bit in the cache file unless we assign to the vars. | |
10734 | { | |
10735 | (set) 2>&1 | | |
10736 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10737 | *ac_space=\ *) | |
10738 | # `set' does not quote correctly, so add quotes (double-quote | |
10739 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10740 | sed -n \ | |
ac1cb8d3 VS |
10741 | "s/'/'\\\\''/g; |
10742 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10743 | ;; |
10744 | *) | |
10745 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10746 | sed -n \ | |
ac1cb8d3 | 10747 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10748 | ;; |
10749 | esac; | |
10750 | } | | |
10751 | sed ' | |
10752 | t clear | |
10753 | : clear | |
10754 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10755 | t end | |
10756 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10757 | : end' >>confcache | |
10758 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10759 | if test -w $cache_file; then | |
10760 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10761 | cat confcache >$cache_file | |
10762 | else | |
10763 | echo "not updating unwritable cache $cache_file" | |
10764 | fi | |
10765 | fi | |
10766 | rm -f confcache | |
10767 | ||
a848cd7e | 10768 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
10769 | |
10770 | ||
10771 | ac_ext=c | |
a848cd7e SC |
10772 | ac_cpp='$CPP $CPPFLAGS' |
10773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10776 | if test -n "$ac_tool_prefix"; then | |
10777 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10778 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10781 | if test "${ac_cv_prog_CC+set}" = set; then | |
10782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10783 | else | |
10784 | if test -n "$CC"; then | |
10785 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10786 | else | |
10787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10788 | for as_dir in $PATH | |
10789 | do | |
10790 | IFS=$as_save_IFS | |
10791 | test -z "$as_dir" && as_dir=. | |
10792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10794 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10796 | break 2 | |
10797 | fi | |
10798 | done | |
10799 | done | |
10800 | ||
10801 | fi | |
10802 | fi | |
10803 | CC=$ac_cv_prog_CC | |
10804 | if test -n "$CC"; then | |
10805 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10806 | echo "${ECHO_T}$CC" >&6 | |
10807 | else | |
10808 | echo "$as_me:$LINENO: result: no" >&5 | |
10809 | echo "${ECHO_T}no" >&6 | |
10810 | fi | |
10811 | ||
10812 | fi | |
10813 | if test -z "$ac_cv_prog_CC"; then | |
10814 | ac_ct_CC=$CC | |
10815 | # Extract the first word of "gcc", so it can be a program name with args. | |
10816 | set dummy gcc; ac_word=$2 | |
10817 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10819 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10821 | else | |
10822 | if test -n "$ac_ct_CC"; then | |
10823 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10824 | else | |
10825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10826 | for as_dir in $PATH | |
10827 | do | |
10828 | IFS=$as_save_IFS | |
10829 | test -z "$as_dir" && as_dir=. | |
10830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10832 | ac_cv_prog_ac_ct_CC="gcc" | |
10833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10834 | break 2 | |
10835 | fi | |
10836 | done | |
10837 | done | |
10838 | ||
10839 | fi | |
10840 | fi | |
10841 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10842 | if test -n "$ac_ct_CC"; then | |
10843 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10844 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10845 | else | |
10846 | echo "$as_me:$LINENO: result: no" >&5 | |
10847 | echo "${ECHO_T}no" >&6 | |
10848 | fi | |
10849 | ||
10850 | CC=$ac_ct_CC | |
10851 | else | |
10852 | CC="$ac_cv_prog_CC" | |
10853 | fi | |
10854 | ||
10855 | if test -z "$CC"; then | |
10856 | if test -n "$ac_tool_prefix"; then | |
10857 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10858 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10859 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10861 | if test "${ac_cv_prog_CC+set}" = set; then | |
10862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10863 | else | |
10864 | if test -n "$CC"; then | |
10865 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10866 | else | |
10867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10868 | for as_dir in $PATH | |
10869 | do | |
10870 | IFS=$as_save_IFS | |
10871 | test -z "$as_dir" && as_dir=. | |
10872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10874 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10876 | break 2 | |
10877 | fi | |
10878 | done | |
10879 | done | |
10880 | ||
10881 | fi | |
10882 | fi | |
10883 | CC=$ac_cv_prog_CC | |
10884 | if test -n "$CC"; then | |
10885 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10886 | echo "${ECHO_T}$CC" >&6 | |
10887 | else | |
10888 | echo "$as_me:$LINENO: result: no" >&5 | |
10889 | echo "${ECHO_T}no" >&6 | |
10890 | fi | |
10891 | ||
10892 | fi | |
10893 | if test -z "$ac_cv_prog_CC"; then | |
10894 | ac_ct_CC=$CC | |
10895 | # Extract the first word of "cc", so it can be a program name with args. | |
10896 | set dummy cc; ac_word=$2 | |
10897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10899 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10901 | else | |
10902 | if test -n "$ac_ct_CC"; then | |
10903 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10904 | else | |
10905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10906 | for as_dir in $PATH | |
10907 | do | |
10908 | IFS=$as_save_IFS | |
10909 | test -z "$as_dir" && as_dir=. | |
10910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10912 | ac_cv_prog_ac_ct_CC="cc" | |
10913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10914 | break 2 | |
10915 | fi | |
10916 | done | |
10917 | done | |
10918 | ||
10919 | fi | |
10920 | fi | |
10921 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10922 | if test -n "$ac_ct_CC"; then | |
10923 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10924 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10925 | else | |
10926 | echo "$as_me:$LINENO: result: no" >&5 | |
10927 | echo "${ECHO_T}no" >&6 | |
10928 | fi | |
10929 | ||
10930 | CC=$ac_ct_CC | |
10931 | else | |
10932 | CC="$ac_cv_prog_CC" | |
10933 | fi | |
10934 | ||
10935 | fi | |
10936 | if test -z "$CC"; then | |
10937 | # Extract the first word of "cc", so it can be a program name with args. | |
10938 | set dummy cc; ac_word=$2 | |
10939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10941 | if test "${ac_cv_prog_CC+set}" = set; then | |
10942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10943 | else | |
10944 | if test -n "$CC"; then | |
10945 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10946 | else | |
10947 | ac_prog_rejected=no | |
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 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10956 | ac_prog_rejected=yes | |
10957 | continue | |
10958 | fi | |
10959 | ac_cv_prog_CC="cc" | |
10960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10961 | break 2 | |
10962 | fi | |
10963 | done | |
10964 | done | |
10965 | ||
10966 | if test $ac_prog_rejected = yes; then | |
10967 | # We found a bogon in the path, so make sure we never use it. | |
10968 | set dummy $ac_cv_prog_CC | |
10969 | shift | |
10970 | if test $# != 0; then | |
10971 | # We chose a different compiler from the bogus one. | |
10972 | # However, it has the same basename, so the bogon will be chosen | |
10973 | # first if we set CC to just the basename; use the full file name. | |
10974 | shift | |
10975 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10976 | fi | |
10977 | fi | |
10978 | fi | |
10979 | fi | |
10980 | CC=$ac_cv_prog_CC | |
10981 | if test -n "$CC"; then | |
10982 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10983 | echo "${ECHO_T}$CC" >&6 | |
10984 | else | |
10985 | echo "$as_me:$LINENO: result: no" >&5 | |
10986 | echo "${ECHO_T}no" >&6 | |
10987 | fi | |
10988 | ||
10989 | fi | |
10990 | if test -z "$CC"; then | |
10991 | if test -n "$ac_tool_prefix"; then | |
10992 | for ac_prog in cl | |
10993 | do | |
10994 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10995 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10998 | if test "${ac_cv_prog_CC+set}" = set; then | |
10999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11000 | else | |
11001 | if test -n "$CC"; then | |
11002 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11003 | else | |
11004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11005 | for as_dir in $PATH | |
11006 | do | |
11007 | IFS=$as_save_IFS | |
11008 | test -z "$as_dir" && as_dir=. | |
11009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11011 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11013 | break 2 | |
11014 | fi | |
11015 | done | |
11016 | done | |
11017 | ||
11018 | fi | |
11019 | fi | |
11020 | CC=$ac_cv_prog_CC | |
11021 | if test -n "$CC"; then | |
11022 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11023 | echo "${ECHO_T}$CC" >&6 | |
11024 | else | |
11025 | echo "$as_me:$LINENO: result: no" >&5 | |
11026 | echo "${ECHO_T}no" >&6 | |
11027 | fi | |
11028 | ||
11029 | test -n "$CC" && break | |
11030 | done | |
11031 | fi | |
11032 | if test -z "$CC"; then | |
11033 | ac_ct_CC=$CC | |
11034 | for ac_prog in cl | |
11035 | do | |
11036 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11037 | set dummy $ac_prog; ac_word=$2 | |
11038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11040 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11042 | else | |
11043 | if test -n "$ac_ct_CC"; then | |
11044 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11045 | else | |
11046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11047 | for as_dir in $PATH | |
11048 | do | |
11049 | IFS=$as_save_IFS | |
11050 | test -z "$as_dir" && as_dir=. | |
11051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11053 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11055 | break 2 | |
11056 | fi | |
11057 | done | |
11058 | done | |
11059 | ||
11060 | fi | |
11061 | fi | |
11062 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11063 | if test -n "$ac_ct_CC"; then | |
11064 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11065 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11066 | else | |
11067 | echo "$as_me:$LINENO: result: no" >&5 | |
11068 | echo "${ECHO_T}no" >&6 | |
11069 | fi | |
11070 | ||
11071 | test -n "$ac_ct_CC" && break | |
11072 | done | |
11073 | ||
11074 | CC=$ac_ct_CC | |
11075 | fi | |
11076 | ||
11077 | fi | |
11078 | ||
11079 | ||
11080 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11081 | See \`config.log' for more details." >&5 | |
11082 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11083 | See \`config.log' for more details." >&2;} | |
11084 | { (exit 1); exit 1; }; } | |
11085 | ||
11086 | # Provide some information about the compiler. | |
11087 | echo "$as_me:$LINENO:" \ | |
11088 | "checking for C compiler version" >&5 | |
11089 | ac_compiler=`set X $ac_compile; echo $2` | |
11090 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11091 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11092 | ac_status=$? | |
11093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11094 | (exit $ac_status); } | |
11095 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11096 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11097 | ac_status=$? | |
11098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11099 | (exit $ac_status); } | |
11100 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11101 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11102 | ac_status=$? | |
11103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11104 | (exit $ac_status); } | |
11105 | ||
11106 | cat >conftest.$ac_ext <<_ACEOF | |
11107 | /* confdefs.h. */ | |
11108 | _ACEOF | |
11109 | cat confdefs.h >>conftest.$ac_ext | |
11110 | cat >>conftest.$ac_ext <<_ACEOF | |
11111 | /* end confdefs.h. */ | |
11112 | ||
11113 | int | |
11114 | main () | |
11115 | { | |
11116 | ||
11117 | ; | |
11118 | return 0; | |
11119 | } | |
11120 | _ACEOF | |
11121 | ac_clean_files_save=$ac_clean_files | |
11122 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11123 | # Try to create an executable without -o first, disregard a.out. | |
11124 | # It will help us diagnose broken compilers, and finding out an intuition | |
11125 | # of exeext. | |
ac1cb8d3 VS |
11126 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11127 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11128 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11129 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11130 | (eval $ac_link_default) 2>&5 | |
11131 | ac_status=$? | |
11132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11133 | (exit $ac_status); }; then | |
11134 | # Find the output, starting from the most likely. This scheme is | |
11135 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11136 | # resort. | |
11137 | ||
11138 | # Be careful to initialize this variable, since it used to be cached. | |
11139 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11140 | ac_cv_exeext= | |
11141 | # b.out is created by i960 compilers. | |
11142 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11143 | do | |
11144 | test -f "$ac_file" || continue | |
11145 | case $ac_file in | |
11146 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11147 | ;; |
a848cd7e | 11148 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11149 | # This is the source file. |
11150 | ;; | |
a848cd7e | 11151 | [ab].out ) |
ac1cb8d3 VS |
11152 | # We found the default executable, but exeext='' is most |
11153 | # certainly right. | |
11154 | break;; | |
a848cd7e | 11155 | *.* ) |
ac1cb8d3 VS |
11156 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11157 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11158 | # but it would be cool to find out if it's true. Does anybody | |
11159 | # maintain Libtool? --akim. | |
11160 | export ac_cv_exeext | |
11161 | break;; | |
a848cd7e | 11162 | * ) |
ac1cb8d3 | 11163 | break;; |
a848cd7e SC |
11164 | esac |
11165 | done | |
11166 | else | |
11167 | echo "$as_me: failed program was:" >&5 | |
11168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11169 | ||
11170 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11171 | See \`config.log' for more details." >&5 | |
11172 | echo "$as_me: error: C compiler cannot create executables | |
11173 | See \`config.log' for more details." >&2;} | |
11174 | { (exit 77); exit 77; }; } | |
11175 | fi | |
11176 | ||
11177 | ac_exeext=$ac_cv_exeext | |
11178 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11179 | echo "${ECHO_T}$ac_file" >&6 | |
11180 | ||
11181 | # Check the compiler produces executables we can run. If not, either | |
11182 | # the compiler is broken, or we cross compile. | |
11183 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11184 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11185 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11186 | # If not cross compiling, check that we can run a simple program. | |
11187 | if test "$cross_compiling" != yes; then | |
11188 | if { ac_try='./$ac_file' | |
11189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11190 | (eval $ac_try) 2>&5 | |
11191 | ac_status=$? | |
11192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11193 | (exit $ac_status); }; }; then | |
11194 | cross_compiling=no | |
11195 | else | |
11196 | if test "$cross_compiling" = maybe; then | |
11197 | cross_compiling=yes | |
11198 | else | |
11199 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11200 | If you meant to cross compile, use \`--host'. | |
11201 | See \`config.log' for more details." >&5 | |
11202 | echo "$as_me: error: cannot run C compiled programs. | |
11203 | If you meant to cross compile, use \`--host'. | |
11204 | See \`config.log' for more details." >&2;} | |
11205 | { (exit 1); exit 1; }; } | |
11206 | fi | |
11207 | fi | |
11208 | fi | |
11209 | echo "$as_me:$LINENO: result: yes" >&5 | |
11210 | echo "${ECHO_T}yes" >&6 | |
11211 | ||
11212 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11213 | ac_clean_files=$ac_clean_files_save | |
11214 | # Check the compiler produces executables we can run. If not, either | |
11215 | # the compiler is broken, or we cross compile. | |
11216 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11217 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11218 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11219 | echo "${ECHO_T}$cross_compiling" >&6 | |
11220 | ||
11221 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11222 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11224 | (eval $ac_link) 2>&5 | |
11225 | ac_status=$? | |
11226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11227 | (exit $ac_status); }; then | |
11228 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11229 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11230 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11231 | # `rm'. | |
11232 | for ac_file in conftest.exe conftest conftest.*; do | |
11233 | test -f "$ac_file" || continue | |
11234 | case $ac_file in | |
11235 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11236 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11237 | export ac_cv_exeext |
11238 | break;; | |
a848cd7e SC |
11239 | * ) break;; |
11240 | esac | |
11241 | done | |
11242 | else | |
11243 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11244 | See \`config.log' for more details." >&5 | |
11245 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11246 | See \`config.log' for more details." >&2;} | |
11247 | { (exit 1); exit 1; }; } | |
11248 | fi | |
11249 | ||
11250 | rm -f conftest$ac_cv_exeext | |
11251 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11252 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11253 | ||
11254 | rm -f conftest.$ac_ext | |
11255 | EXEEXT=$ac_cv_exeext | |
11256 | ac_exeext=$EXEEXT | |
11257 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11258 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11259 | if test "${ac_cv_objext+set}" = set; then | |
11260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11261 | else | |
11262 | cat >conftest.$ac_ext <<_ACEOF | |
11263 | /* confdefs.h. */ | |
11264 | _ACEOF | |
11265 | cat confdefs.h >>conftest.$ac_ext | |
11266 | cat >>conftest.$ac_ext <<_ACEOF | |
11267 | /* end confdefs.h. */ | |
11268 | ||
11269 | int | |
11270 | main () | |
11271 | { | |
11272 | ||
11273 | ; | |
11274 | return 0; | |
11275 | } | |
11276 | _ACEOF | |
11277 | rm -f conftest.o conftest.obj | |
11278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11279 | (eval $ac_compile) 2>&5 | |
11280 | ac_status=$? | |
11281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11282 | (exit $ac_status); }; then | |
11283 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11284 | case $ac_file in | |
11285 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11286 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11287 | break;; | |
11288 | esac | |
11289 | done | |
11290 | else | |
11291 | echo "$as_me: failed program was:" >&5 | |
11292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11293 | ||
11294 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11295 | See \`config.log' for more details." >&5 | |
11296 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11297 | See \`config.log' for more details." >&2;} | |
11298 | { (exit 1); exit 1; }; } | |
11299 | fi | |
11300 | ||
11301 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11302 | fi | |
11303 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11304 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11305 | OBJEXT=$ac_cv_objext | |
11306 | ac_objext=$OBJEXT | |
11307 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11308 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11309 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11311 | else | |
11312 | cat >conftest.$ac_ext <<_ACEOF | |
11313 | /* confdefs.h. */ | |
11314 | _ACEOF | |
11315 | cat confdefs.h >>conftest.$ac_ext | |
11316 | cat >>conftest.$ac_ext <<_ACEOF | |
11317 | /* end confdefs.h. */ | |
11318 | ||
11319 | int | |
11320 | main () | |
11321 | { | |
11322 | #ifndef __GNUC__ | |
11323 | choke me | |
11324 | #endif | |
11325 | ||
11326 | ; | |
11327 | return 0; | |
11328 | } | |
11329 | _ACEOF | |
11330 | rm -f conftest.$ac_objext | |
11331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11332 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11333 | ac_status=$? |
ac1cb8d3 VS |
11334 | grep -v '^ *+' conftest.er1 >conftest.err |
11335 | rm -f conftest.er1 | |
11336 | cat conftest.err >&5 | |
a848cd7e SC |
11337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11338 | (exit $ac_status); } && | |
6ebeb4c7 | 11339 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11341 | (eval $ac_try) 2>&5 | |
11342 | ac_status=$? | |
11343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11344 | (exit $ac_status); }; } && | |
11345 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11347 | (eval $ac_try) 2>&5 | |
11348 | ac_status=$? | |
11349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11350 | (exit $ac_status); }; }; then | |
11351 | ac_compiler_gnu=yes | |
11352 | else | |
11353 | echo "$as_me: failed program was:" >&5 | |
11354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11355 | ||
11356 | ac_compiler_gnu=no | |
11357 | fi | |
ac1cb8d3 | 11358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11359 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11360 | ||
11361 | fi | |
11362 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11363 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11364 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11365 | ac_test_CFLAGS=${CFLAGS+set} | |
11366 | ac_save_CFLAGS=$CFLAGS | |
1c14217d | 11367 | CFLAGS="-g" |
a848cd7e SC |
11368 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11369 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11370 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11372 | else | |
11373 | cat >conftest.$ac_ext <<_ACEOF | |
11374 | /* confdefs.h. */ | |
11375 | _ACEOF | |
11376 | cat confdefs.h >>conftest.$ac_ext | |
11377 | cat >>conftest.$ac_ext <<_ACEOF | |
11378 | /* end confdefs.h. */ | |
11379 | ||
11380 | int | |
11381 | main () | |
11382 | { | |
11383 | ||
11384 | ; | |
11385 | return 0; | |
11386 | } | |
11387 | _ACEOF | |
11388 | rm -f conftest.$ac_objext | |
11389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11391 | ac_status=$? |
ac1cb8d3 VS |
11392 | grep -v '^ *+' conftest.er1 >conftest.err |
11393 | rm -f conftest.er1 | |
11394 | cat conftest.err >&5 | |
a848cd7e SC |
11395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11396 | (exit $ac_status); } && | |
6ebeb4c7 | 11397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11399 | (eval $ac_try) 2>&5 | |
11400 | ac_status=$? | |
11401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11402 | (exit $ac_status); }; } && | |
11403 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11405 | (eval $ac_try) 2>&5 | |
11406 | ac_status=$? | |
11407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11408 | (exit $ac_status); }; }; then | |
11409 | ac_cv_prog_cc_g=yes | |
11410 | else | |
11411 | echo "$as_me: failed program was:" >&5 | |
11412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11413 | ||
11414 | ac_cv_prog_cc_g=no | |
11415 | fi | |
ac1cb8d3 | 11416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11417 | fi |
11418 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11419 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11420 | if test "$ac_test_CFLAGS" = set; then | |
11421 | CFLAGS=$ac_save_CFLAGS | |
11422 | elif test $ac_cv_prog_cc_g = yes; then | |
11423 | if test "$GCC" = yes; then | |
11424 | CFLAGS="-g -O2" | |
11425 | else | |
11426 | CFLAGS="-g" | |
11427 | fi | |
11428 | else | |
11429 | if test "$GCC" = yes; then | |
11430 | CFLAGS="-O2" | |
11431 | else | |
11432 | CFLAGS= | |
11433 | fi | |
11434 | fi | |
11435 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11436 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11437 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11439 | else | |
11440 | ac_cv_prog_cc_stdc=no | |
11441 | ac_save_CC=$CC | |
11442 | cat >conftest.$ac_ext <<_ACEOF | |
11443 | /* confdefs.h. */ | |
11444 | _ACEOF | |
11445 | cat confdefs.h >>conftest.$ac_ext | |
11446 | cat >>conftest.$ac_ext <<_ACEOF | |
11447 | /* end confdefs.h. */ | |
11448 | #include <stdarg.h> | |
11449 | #include <stdio.h> | |
11450 | #include <sys/types.h> | |
11451 | #include <sys/stat.h> | |
11452 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11453 | struct buf { int x; }; | |
11454 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11455 | static char *e (p, i) | |
11456 | char **p; | |
11457 | int i; | |
11458 | { | |
11459 | return p[i]; | |
11460 | } | |
11461 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11462 | { | |
11463 | char *s; | |
11464 | va_list v; | |
11465 | va_start (v,p); | |
11466 | s = g (p, va_arg (v,int)); | |
11467 | va_end (v); | |
11468 | return s; | |
11469 | } | |
ac1cb8d3 VS |
11470 | |
11471 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11472 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11473 | These don't provoke an error unfortunately, instead are silently treated | |
11474 | as 'x'. The following induces an error, until -std1 is added to get | |
11475 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11476 | array size at least. It's necessary to write '\x00'==0 to get something | |
11477 | that's true only with -std1. */ | |
11478 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11479 | ||
a848cd7e SC |
11480 | int test (int i, double x); |
11481 | struct s1 {int (*f) (int a);}; | |
11482 | struct s2 {int (*f) (double a);}; | |
11483 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11484 | int argc; | |
11485 | char **argv; | |
11486 | int | |
11487 | main () | |
11488 | { | |
11489 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11490 | ; | |
11491 | return 0; | |
11492 | } | |
11493 | _ACEOF | |
11494 | # Don't try gcc -ansi; that turns off useful extensions and | |
11495 | # breaks some systems' header files. | |
11496 | # AIX -qlanglvl=ansi | |
11497 | # Ultrix and OSF/1 -std1 | |
11498 | # HP-UX 10.20 and later -Ae | |
11499 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11500 | # SVR4 -Xc -D__EXTENSIONS__ | |
11501 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11502 | do | |
11503 | CC="$ac_save_CC $ac_arg" | |
11504 | rm -f conftest.$ac_objext | |
11505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11506 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11507 | ac_status=$? |
ac1cb8d3 VS |
11508 | grep -v '^ *+' conftest.er1 >conftest.err |
11509 | rm -f conftest.er1 | |
11510 | cat conftest.err >&5 | |
a848cd7e SC |
11511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11512 | (exit $ac_status); } && | |
6ebeb4c7 | 11513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11515 | (eval $ac_try) 2>&5 | |
11516 | ac_status=$? | |
11517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11518 | (exit $ac_status); }; } && | |
11519 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11521 | (eval $ac_try) 2>&5 | |
11522 | ac_status=$? | |
11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11524 | (exit $ac_status); }; }; then | |
11525 | ac_cv_prog_cc_stdc=$ac_arg | |
11526 | break | |
11527 | else | |
11528 | echo "$as_me: failed program was:" >&5 | |
11529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11530 | ||
11531 | fi | |
ac1cb8d3 | 11532 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11533 | done |
11534 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11535 | CC=$ac_save_CC | |
11536 | ||
11537 | fi | |
11538 | ||
11539 | case "x$ac_cv_prog_cc_stdc" in | |
11540 | x|xno) | |
11541 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11542 | echo "${ECHO_T}none needed" >&6 ;; | |
11543 | *) | |
11544 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11545 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11546 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11547 | esac | |
11548 | ||
11549 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11550 | # in C++ we need to declare it. In case someone uses the same compiler | |
11551 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11552 | # the declaration of exit, since it's the most demanding environment. | |
11553 | cat >conftest.$ac_ext <<_ACEOF | |
11554 | #ifndef __cplusplus | |
11555 | choke me | |
11556 | #endif | |
11557 | _ACEOF | |
11558 | rm -f conftest.$ac_objext | |
11559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11560 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11561 | ac_status=$? |
ac1cb8d3 VS |
11562 | grep -v '^ *+' conftest.er1 >conftest.err |
11563 | rm -f conftest.er1 | |
11564 | cat conftest.err >&5 | |
a848cd7e SC |
11565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11566 | (exit $ac_status); } && | |
6ebeb4c7 | 11567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11569 | (eval $ac_try) 2>&5 | |
11570 | ac_status=$? | |
11571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11572 | (exit $ac_status); }; } && | |
11573 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11575 | (eval $ac_try) 2>&5 | |
11576 | ac_status=$? | |
11577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11578 | (exit $ac_status); }; }; then | |
11579 | for ac_declaration in \ | |
ac1cb8d3 | 11580 | '' \ |
a848cd7e SC |
11581 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11582 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11583 | 'extern "C" void exit (int) throw ();' \ | |
11584 | 'extern "C" void exit (int);' \ | |
11585 | 'void exit (int);' | |
11586 | do | |
11587 | cat >conftest.$ac_ext <<_ACEOF | |
11588 | /* confdefs.h. */ | |
11589 | _ACEOF | |
11590 | cat confdefs.h >>conftest.$ac_ext | |
11591 | cat >>conftest.$ac_ext <<_ACEOF | |
11592 | /* end confdefs.h. */ | |
de59c161 | 11593 | $ac_declaration |
ac1cb8d3 | 11594 | #include <stdlib.h> |
a848cd7e SC |
11595 | int |
11596 | main () | |
11597 | { | |
11598 | exit (42); | |
11599 | ; | |
11600 | return 0; | |
11601 | } | |
11602 | _ACEOF | |
11603 | rm -f conftest.$ac_objext | |
11604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11605 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11606 | ac_status=$? |
ac1cb8d3 VS |
11607 | grep -v '^ *+' conftest.er1 >conftest.err |
11608 | rm -f conftest.er1 | |
11609 | cat conftest.err >&5 | |
a848cd7e SC |
11610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11611 | (exit $ac_status); } && | |
6ebeb4c7 | 11612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11614 | (eval $ac_try) 2>&5 | |
11615 | ac_status=$? | |
11616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11617 | (exit $ac_status); }; } && | |
11618 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11620 | (eval $ac_try) 2>&5 | |
11621 | ac_status=$? | |
11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11623 | (exit $ac_status); }; }; then | |
11624 | : | |
11625 | else | |
11626 | echo "$as_me: failed program was:" >&5 | |
11627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11628 | ||
11629 | continue | |
11630 | fi | |
ac1cb8d3 | 11631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11632 | cat >conftest.$ac_ext <<_ACEOF |
11633 | /* confdefs.h. */ | |
11634 | _ACEOF | |
11635 | cat confdefs.h >>conftest.$ac_ext | |
11636 | cat >>conftest.$ac_ext <<_ACEOF | |
11637 | /* end confdefs.h. */ | |
11638 | $ac_declaration | |
11639 | int | |
11640 | main () | |
11641 | { | |
11642 | exit (42); | |
11643 | ; | |
11644 | return 0; | |
11645 | } | |
11646 | _ACEOF | |
11647 | rm -f conftest.$ac_objext | |
11648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11649 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11650 | ac_status=$? |
ac1cb8d3 VS |
11651 | grep -v '^ *+' conftest.er1 >conftest.err |
11652 | rm -f conftest.er1 | |
11653 | cat conftest.err >&5 | |
a848cd7e SC |
11654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11655 | (exit $ac_status); } && | |
6ebeb4c7 | 11656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11658 | (eval $ac_try) 2>&5 | |
11659 | ac_status=$? | |
11660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11661 | (exit $ac_status); }; } && | |
11662 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11664 | (eval $ac_try) 2>&5 | |
11665 | ac_status=$? | |
11666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11667 | (exit $ac_status); }; }; then | |
11668 | break | |
11669 | else | |
11670 | echo "$as_me: failed program was:" >&5 | |
11671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11672 | ||
11673 | fi | |
ac1cb8d3 | 11674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11675 | done |
11676 | rm -f conftest* | |
11677 | if test -n "$ac_declaration"; then | |
11678 | echo '#ifdef __cplusplus' >>confdefs.h | |
11679 | echo $ac_declaration >>confdefs.h | |
11680 | echo '#endif' >>confdefs.h | |
11681 | fi | |
11682 | ||
11683 | else | |
11684 | echo "$as_me: failed program was:" >&5 | |
11685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11686 | ||
11687 | fi | |
ac1cb8d3 | 11688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11689 | ac_ext=c |
11690 | ac_cpp='$CPP $CPPFLAGS' | |
11691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11694 | ||
ab0ad5f1 VZ |
11695 | |
11696 | ||
11697 | ac_ext=c | |
11698 | ac_cpp='$CPP $CPPFLAGS' | |
11699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11702 | ||
11703 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
11704 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
11705 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
11706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11707 | else | |
11708 | cat >conftest.$ac_ext <<_ACEOF | |
11709 | /* confdefs.h. */ | |
11710 | _ACEOF | |
11711 | cat confdefs.h >>conftest.$ac_ext | |
11712 | cat >>conftest.$ac_ext <<_ACEOF | |
11713 | /* end confdefs.h. */ | |
11714 | ||
11715 | int | |
11716 | main () | |
11717 | { | |
11718 | ||
11719 | #ifndef __INTEL_COMPILER | |
11720 | choke me | |
11721 | #endif | |
11722 | ||
11723 | ; | |
11724 | return 0; | |
11725 | } | |
11726 | _ACEOF | |
11727 | rm -f conftest.$ac_objext | |
11728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11729 | (eval $ac_compile) 2>conftest.er1 | |
11730 | ac_status=$? | |
11731 | grep -v '^ *+' conftest.er1 >conftest.err | |
11732 | rm -f conftest.er1 | |
11733 | cat conftest.err >&5 | |
11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11735 | (exit $ac_status); } && | |
11736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11738 | (eval $ac_try) 2>&5 | |
11739 | ac_status=$? | |
11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11741 | (exit $ac_status); }; } && | |
11742 | { ac_try='test -s conftest.$ac_objext' | |
11743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11744 | (eval $ac_try) 2>&5 | |
11745 | ac_status=$? | |
11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11747 | (exit $ac_status); }; }; then | |
11748 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
11749 | else | |
11750 | echo "$as_me: failed program was:" >&5 | |
11751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11752 | ||
11753 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
11754 | ||
11755 | fi | |
11756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11757 | ||
11758 | ||
11759 | fi | |
11760 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
11761 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
11762 | ac_ext=c | |
11763 | ac_cpp='$CPP $CPPFLAGS' | |
11764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11767 | ||
11768 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
11769 | :; INTELCC=yes | |
11770 | else | |
11771 | :; | |
11772 | fi | |
11773 | ||
11774 | ||
11775 | if test "x$GCC" != "xyes"; then | |
11776 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 DE |
11777 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
11778 | if test "${wx_cv_c_exto+set}" = set; then | |
11779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11780 | else | |
11781 | cat >conftest.$ac_ext <<_ACEOF | |
11782 | /* confdefs.h. */ | |
11783 | _ACEOF | |
11784 | cat confdefs.h >>conftest.$ac_ext | |
11785 | cat >>conftest.$ac_ext <<_ACEOF | |
11786 | /* end confdefs.h. */ | |
11787 | ||
11788 | int | |
11789 | main () | |
11790 | { | |
11791 | ||
11792 | ; | |
11793 | return 0; | |
11794 | } | |
11795 | _ACEOF | |
11796 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11798 | (eval $ac_compile) 2>&5 | |
11799 | ac_status=$? | |
11800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11801 | (exit $ac_status); }; then | |
11802 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11803 | case $ac_file in | |
11804 | conftest.$ac_ext.o) | |
11805 | wx_cv_c_exto="-ext o" | |
11806 | ;; | |
11807 | *) | |
11808 | ;; | |
11809 | esac | |
11810 | done | |
11811 | else | |
11812 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11813 | See \`config.log' for more details." >&5 | |
11814 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11815 | See \`config.log' for more details." >&2;} | |
11816 | { (exit 1); exit 1; }; } | |
11817 | ||
11818 | fi | |
11819 | ||
11820 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11821 | ||
11822 | fi | |
11823 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11824 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11825 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11826 | if test "c" = "c"; then | |
11827 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11828 | fi | |
11829 | if test "c" = "cxx"; then | |
11830 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11831 | fi | |
11832 | fi | |
11833 | ||
ab0ad5f1 VZ |
11834 | if test "x$wx_cv_c_exto" '!=' "x"; then |
11835 | unset ac_cv_prog_cc_g | |
11836 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 11837 | ac_save_CFLAGS=$CFLAGS |
1c14217d | 11838 | CFLAGS="-g" |
480ccd21 DE |
11839 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11840 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11841 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11843 | else | |
11844 | cat >conftest.$ac_ext <<_ACEOF | |
11845 | /* confdefs.h. */ | |
11846 | _ACEOF | |
11847 | cat confdefs.h >>conftest.$ac_ext | |
11848 | cat >>conftest.$ac_ext <<_ACEOF | |
11849 | /* end confdefs.h. */ | |
11850 | ||
11851 | int | |
11852 | main () | |
11853 | { | |
11854 | ||
11855 | ; | |
11856 | return 0; | |
11857 | } | |
11858 | _ACEOF | |
11859 | rm -f conftest.$ac_objext | |
11860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11861 | (eval $ac_compile) 2>conftest.er1 | |
11862 | ac_status=$? | |
11863 | grep -v '^ *+' conftest.er1 >conftest.err | |
11864 | rm -f conftest.er1 | |
11865 | cat conftest.err >&5 | |
11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11867 | (exit $ac_status); } && | |
6ebeb4c7 | 11868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
11869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11870 | (eval $ac_try) 2>&5 | |
11871 | ac_status=$? | |
11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11873 | (exit $ac_status); }; } && | |
11874 | { ac_try='test -s conftest.$ac_objext' | |
11875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11876 | (eval $ac_try) 2>&5 | |
11877 | ac_status=$? | |
11878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11879 | (exit $ac_status); }; }; then | |
11880 | ac_cv_prog_cc_g=yes | |
11881 | else | |
11882 | echo "$as_me: failed program was:" >&5 | |
11883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11884 | ||
11885 | ac_cv_prog_cc_g=no | |
11886 | fi | |
11887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11888 | fi | |
11889 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11890 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11891 | if test "$ac_test_CFLAGS" = set; then | |
11892 | CFLAGS=$ac_save_CFLAGS | |
11893 | elif test $ac_cv_prog_cc_g = yes; then | |
11894 | if test "$GCC" = yes; then | |
11895 | CFLAGS="-g -O2" | |
11896 | else | |
11897 | CFLAGS="-g" | |
11898 | fi | |
11899 | else | |
11900 | if test "$GCC" = yes; then | |
11901 | CFLAGS="-O2" | |
11902 | else | |
11903 | CFLAGS= | |
11904 | fi | |
11905 | fi | |
ab0ad5f1 VZ |
11906 | fi |
11907 | ac_ext=c | |
95986553 DE |
11908 | ac_cpp='$CPP $CPPFLAGS' |
11909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11912 | ||
11913 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11914 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11915 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11917 | else | |
11918 | cat >conftest.$ac_ext <<_ACEOF | |
11919 | /* confdefs.h. */ | |
11920 | _ACEOF | |
11921 | cat confdefs.h >>conftest.$ac_ext | |
11922 | cat >>conftest.$ac_ext <<_ACEOF | |
11923 | /* end confdefs.h. */ | |
11924 | ||
11925 | int | |
11926 | main () | |
11927 | { | |
11928 | #ifndef __MWERKS__ | |
11929 | choke me | |
11930 | #endif | |
11931 | ||
11932 | ; | |
11933 | return 0; | |
11934 | } | |
11935 | _ACEOF | |
11936 | rm -f conftest.$ac_objext | |
11937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11938 | (eval $ac_compile) 2>conftest.er1 | |
11939 | ac_status=$? | |
11940 | grep -v '^ *+' conftest.er1 >conftest.err | |
11941 | rm -f conftest.er1 | |
11942 | cat conftest.err >&5 | |
11943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11944 | (exit $ac_status); } && | |
6ebeb4c7 | 11945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
11946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11947 | (eval $ac_try) 2>&5 | |
11948 | ac_status=$? | |
11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11950 | (exit $ac_status); }; } && | |
11951 | { ac_try='test -s conftest.$ac_objext' | |
11952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11953 | (eval $ac_try) 2>&5 | |
11954 | ac_status=$? | |
11955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11956 | (exit $ac_status); }; }; then | |
11957 | bakefile_compiler_mwerks=yes | |
11958 | else | |
11959 | echo "$as_me: failed program was:" >&5 | |
11960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11961 | ||
11962 | bakefile_compiler_mwerks=no | |
11963 | fi | |
11964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11965 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11966 | ||
11967 | fi | |
11968 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11969 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11970 | ||
0e6fa1d9 | 11971 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
11972 | ac_ext=c |
11973 | ac_cpp='$CPP $CPPFLAGS' | |
11974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11977 | ||
11978 | ||
ab0ad5f1 | 11979 | ac_ext=c |
9273ffba DE |
11980 | ac_cpp='$CPP $CPPFLAGS' |
11981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11984 | ||
11985 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11986 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
11987 | if test "${wx_cv_c_compiler_xlc+set}" = set; then | |
11988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11989 | else | |
11990 | cat >conftest.$ac_ext <<_ACEOF | |
11991 | /* confdefs.h. */ | |
11992 | _ACEOF | |
11993 | cat confdefs.h >>conftest.$ac_ext | |
11994 | cat >>conftest.$ac_ext <<_ACEOF | |
11995 | /* end confdefs.h. */ | |
11996 | ||
11997 | int | |
11998 | main () | |
11999 | { | |
12000 | #ifndef __xlC__ | |
12001 | choke me | |
12002 | #endif | |
12003 | ||
12004 | ; | |
12005 | return 0; | |
12006 | } | |
12007 | _ACEOF | |
12008 | rm -f conftest.$ac_objext | |
12009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12010 | (eval $ac_compile) 2>conftest.er1 | |
12011 | ac_status=$? | |
12012 | grep -v '^ *+' conftest.er1 >conftest.err | |
12013 | rm -f conftest.er1 | |
12014 | cat conftest.err >&5 | |
12015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12016 | (exit $ac_status); } && | |
6ebeb4c7 | 12017 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
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); }; } && | |
12023 | { ac_try='test -s conftest.$ac_objext' | |
12024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12025 | (eval $ac_try) 2>&5 | |
12026 | ac_status=$? | |
12027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12028 | (exit $ac_status); }; }; then | |
12029 | wx_compiler_xlc=yes | |
12030 | else | |
12031 | echo "$as_me: failed program was:" >&5 | |
12032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12033 | ||
12034 | wx_compiler_xlc=no | |
12035 | fi | |
12036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12037 | wx_cv_c_compiler_xlc=$wx_compiler_xlc | |
12038 | ||
12039 | fi | |
12040 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 | |
12041 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
12042 | ||
0e6fa1d9 | 12043 | XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12044 | ac_ext=c |
12045 | ac_cpp='$CPP $CPPFLAGS' | |
12046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12049 | ||
12050 | ||
a848cd7e | 12051 | |
6dcfc289 | 12052 | |
0ad5d837 VZ |
12053 | ac_ext=c |
12054 | ac_cpp='$CPP $CPPFLAGS' | |
12055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12058 | ||
12059 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12060 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12061 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12063 | else | |
12064 | cat >conftest.$ac_ext <<_ACEOF | |
12065 | /* confdefs.h. */ | |
12066 | _ACEOF | |
12067 | cat confdefs.h >>conftest.$ac_ext | |
12068 | cat >>conftest.$ac_ext <<_ACEOF | |
12069 | /* end confdefs.h. */ | |
12070 | ||
12071 | int | |
12072 | main () | |
12073 | { | |
12074 | ||
12075 | #ifndef _SGI_COMPILER_VERSION | |
12076 | choke me | |
12077 | #endif | |
12078 | ||
12079 | ; | |
12080 | return 0; | |
12081 | } | |
12082 | _ACEOF | |
12083 | rm -f conftest.$ac_objext | |
12084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12085 | (eval $ac_compile) 2>conftest.er1 | |
12086 | ac_status=$? | |
12087 | grep -v '^ *+' conftest.er1 >conftest.err | |
12088 | rm -f conftest.er1 | |
12089 | cat conftest.err >&5 | |
12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12091 | (exit $ac_status); } && | |
12092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12094 | (eval $ac_try) 2>&5 | |
12095 | ac_status=$? | |
12096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12097 | (exit $ac_status); }; } && | |
12098 | { ac_try='test -s conftest.$ac_objext' | |
12099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12100 | (eval $ac_try) 2>&5 | |
12101 | ac_status=$? | |
12102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12103 | (exit $ac_status); }; }; then | |
12104 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12105 | else | |
12106 | echo "$as_me: failed program was:" >&5 | |
12107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12108 | ||
12109 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12110 | ||
12111 | fi | |
12112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12113 | ||
12114 | ||
12115 | fi | |
12116 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12117 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12118 | ac_ext=c | |
12119 | ac_cpp='$CPP $CPPFLAGS' | |
12120 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12121 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12122 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12123 | ||
12124 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12125 | :; SGICC=yes | |
12126 | else | |
12127 | :; | |
12128 | fi | |
12129 | ||
12130 | ||
12131 | ||
12132 | ||
a9e5b1f0 MW |
12133 | ac_ext=c |
12134 | ac_cpp='$CPP $CPPFLAGS' | |
12135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12138 | ||
12139 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12140 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12141 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12143 | else | |
12144 | cat >conftest.$ac_ext <<_ACEOF | |
12145 | /* confdefs.h. */ | |
12146 | _ACEOF | |
12147 | cat confdefs.h >>conftest.$ac_ext | |
12148 | cat >>conftest.$ac_ext <<_ACEOF | |
12149 | /* end confdefs.h. */ | |
12150 | ||
12151 | int | |
12152 | main () | |
12153 | { | |
12154 | ||
12155 | #ifndef __SUNPRO_C | |
12156 | choke me | |
12157 | #endif | |
12158 | ||
12159 | ; | |
12160 | return 0; | |
12161 | } | |
12162 | _ACEOF | |
12163 | rm -f conftest.$ac_objext | |
12164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12165 | (eval $ac_compile) 2>conftest.er1 | |
12166 | ac_status=$? | |
12167 | grep -v '^ *+' conftest.er1 >conftest.err | |
12168 | rm -f conftest.er1 | |
12169 | cat conftest.err >&5 | |
12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12171 | (exit $ac_status); } && | |
6ebeb4c7 | 12172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a9e5b1f0 MW |
12173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12174 | (eval $ac_try) 2>&5 | |
12175 | ac_status=$? | |
12176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12177 | (exit $ac_status); }; } && | |
12178 | { ac_try='test -s conftest.$ac_objext' | |
12179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12180 | (eval $ac_try) 2>&5 | |
12181 | ac_status=$? | |
12182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12183 | (exit $ac_status); }; }; then | |
12184 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12185 | else | |
12186 | echo "$as_me: failed program was:" >&5 | |
12187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12188 | ||
12189 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12190 | ||
12191 | fi | |
12192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12193 | ||
12194 | ||
12195 | fi | |
12196 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12197 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12198 | ac_ext=c | |
12199 | ac_cpp='$CPP $CPPFLAGS' | |
12200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12203 | ||
12204 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12205 | :; SUNCC=yes | |
12206 | else | |
12207 | :; | |
12208 | fi | |
12209 | ||
12210 | ||
ab0ad5f1 | 12211 | fi |
a9e5b1f0 MW |
12212 | |
12213 | ||
a848cd7e SC |
12214 | ac_ext=c |
12215 | ac_cpp='$CPP $CPPFLAGS' | |
12216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12219 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12220 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12221 | # On Suns, sometimes $CPP names a directory. | |
12222 | if test -n "$CPP" && test -d "$CPP"; then | |
12223 | CPP= | |
12224 | fi | |
12225 | if test -z "$CPP"; then | |
12226 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12228 | else | |
12229 | # Double quotes because CPP needs to be expanded | |
12230 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12231 | do | |
12232 | ac_preproc_ok=false | |
12233 | for ac_c_preproc_warn_flag in '' yes | |
12234 | do | |
12235 | # Use a header file that comes with gcc, so configuring glibc | |
12236 | # with a fresh cross-compiler works. | |
12237 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12238 | # <limits.h> exists even on freestanding compilers. | |
12239 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12240 | # not just through cpp. "Syntax error" is here to catch this case. | |
12241 | cat >conftest.$ac_ext <<_ACEOF | |
12242 | /* confdefs.h. */ | |
12243 | _ACEOF | |
12244 | cat confdefs.h >>conftest.$ac_ext | |
12245 | cat >>conftest.$ac_ext <<_ACEOF | |
12246 | /* end confdefs.h. */ | |
12247 | #ifdef __STDC__ | |
12248 | # include <limits.h> | |
12249 | #else | |
12250 | # include <assert.h> | |
12251 | #endif | |
ac1cb8d3 | 12252 | Syntax error |
a848cd7e SC |
12253 | _ACEOF |
12254 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12255 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12256 | ac_status=$? | |
12257 | grep -v '^ *+' conftest.er1 >conftest.err | |
12258 | rm -f conftest.er1 | |
12259 | cat conftest.err >&5 | |
12260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12261 | (exit $ac_status); } >/dev/null; then | |
12262 | if test -s conftest.err; then | |
12263 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12264 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12265 | else |
12266 | ac_cpp_err= | |
12267 | fi | |
12268 | else | |
12269 | ac_cpp_err=yes | |
12270 | fi | |
12271 | if test -z "$ac_cpp_err"; then | |
12272 | : | |
12273 | else | |
12274 | echo "$as_me: failed program was:" >&5 | |
12275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12276 | ||
12277 | # Broken: fails on valid input. | |
12278 | continue | |
12279 | fi | |
12280 | rm -f conftest.err conftest.$ac_ext | |
12281 | ||
12282 | # OK, works on sane cases. Now check whether non-existent headers | |
12283 | # can be detected and how. | |
12284 | cat >conftest.$ac_ext <<_ACEOF | |
12285 | /* confdefs.h. */ | |
12286 | _ACEOF | |
12287 | cat confdefs.h >>conftest.$ac_ext | |
12288 | cat >>conftest.$ac_ext <<_ACEOF | |
12289 | /* end confdefs.h. */ | |
12290 | #include <ac_nonexistent.h> | |
12291 | _ACEOF | |
12292 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12293 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12294 | ac_status=$? | |
12295 | grep -v '^ *+' conftest.er1 >conftest.err | |
12296 | rm -f conftest.er1 | |
12297 | cat conftest.err >&5 | |
12298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12299 | (exit $ac_status); } >/dev/null; then | |
12300 | if test -s conftest.err; then | |
12301 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12302 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12303 | else |
12304 | ac_cpp_err= | |
12305 | fi | |
12306 | else | |
12307 | ac_cpp_err=yes | |
12308 | fi | |
12309 | if test -z "$ac_cpp_err"; then | |
12310 | # Broken: success on invalid input. | |
12311 | continue | |
12312 | else | |
12313 | echo "$as_me: failed program was:" >&5 | |
12314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12315 | ||
12316 | # Passes both tests. | |
12317 | ac_preproc_ok=: | |
12318 | break | |
12319 | fi | |
12320 | rm -f conftest.err conftest.$ac_ext | |
12321 | ||
12322 | done | |
12323 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12324 | rm -f conftest.err conftest.$ac_ext | |
12325 | if $ac_preproc_ok; then | |
12326 | break | |
12327 | fi | |
12328 | ||
12329 | done | |
12330 | ac_cv_prog_CPP=$CPP | |
12331 | ||
12332 | fi | |
12333 | CPP=$ac_cv_prog_CPP | |
12334 | else | |
12335 | ac_cv_prog_CPP=$CPP | |
12336 | fi | |
12337 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12338 | echo "${ECHO_T}$CPP" >&6 | |
12339 | ac_preproc_ok=false | |
12340 | for ac_c_preproc_warn_flag in '' yes | |
12341 | do | |
12342 | # Use a header file that comes with gcc, so configuring glibc | |
12343 | # with a fresh cross-compiler works. | |
12344 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12345 | # <limits.h> exists even on freestanding compilers. | |
12346 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12347 | # not just through cpp. "Syntax error" is here to catch this case. | |
12348 | cat >conftest.$ac_ext <<_ACEOF | |
12349 | /* confdefs.h. */ | |
12350 | _ACEOF | |
12351 | cat confdefs.h >>conftest.$ac_ext | |
12352 | cat >>conftest.$ac_ext <<_ACEOF | |
12353 | /* end confdefs.h. */ | |
12354 | #ifdef __STDC__ | |
12355 | # include <limits.h> | |
12356 | #else | |
12357 | # include <assert.h> | |
12358 | #endif | |
ac1cb8d3 | 12359 | Syntax error |
a848cd7e SC |
12360 | _ACEOF |
12361 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12362 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12363 | ac_status=$? | |
12364 | grep -v '^ *+' conftest.er1 >conftest.err | |
12365 | rm -f conftest.er1 | |
12366 | cat conftest.err >&5 | |
12367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12368 | (exit $ac_status); } >/dev/null; then | |
12369 | if test -s conftest.err; then | |
12370 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12371 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12372 | else |
12373 | ac_cpp_err= | |
12374 | fi | |
12375 | else | |
12376 | ac_cpp_err=yes | |
12377 | fi | |
12378 | if test -z "$ac_cpp_err"; then | |
12379 | : | |
12380 | else | |
12381 | echo "$as_me: failed program was:" >&5 | |
12382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12383 | ||
12384 | # Broken: fails on valid input. | |
12385 | continue | |
12386 | fi | |
12387 | rm -f conftest.err conftest.$ac_ext | |
12388 | ||
12389 | # OK, works on sane cases. Now check whether non-existent headers | |
12390 | # can be detected and how. | |
12391 | cat >conftest.$ac_ext <<_ACEOF | |
12392 | /* confdefs.h. */ | |
12393 | _ACEOF | |
12394 | cat confdefs.h >>conftest.$ac_ext | |
12395 | cat >>conftest.$ac_ext <<_ACEOF | |
12396 | /* end confdefs.h. */ | |
12397 | #include <ac_nonexistent.h> | |
12398 | _ACEOF | |
12399 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12400 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12401 | ac_status=$? | |
12402 | grep -v '^ *+' conftest.er1 >conftest.err | |
12403 | rm -f conftest.er1 | |
12404 | cat conftest.err >&5 | |
12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12406 | (exit $ac_status); } >/dev/null; then | |
12407 | if test -s conftest.err; then | |
12408 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12409 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12410 | else |
12411 | ac_cpp_err= | |
12412 | fi | |
12413 | else | |
12414 | ac_cpp_err=yes | |
12415 | fi | |
12416 | if test -z "$ac_cpp_err"; then | |
12417 | # Broken: success on invalid input. | |
12418 | continue | |
12419 | else | |
12420 | echo "$as_me: failed program was:" >&5 | |
12421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12422 | ||
12423 | # Passes both tests. | |
12424 | ac_preproc_ok=: | |
12425 | break | |
12426 | fi | |
12427 | rm -f conftest.err conftest.$ac_ext | |
12428 | ||
12429 | done | |
12430 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12431 | rm -f conftest.err conftest.$ac_ext | |
12432 | if $ac_preproc_ok; then | |
12433 | : | |
12434 | else | |
12435 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12436 | See \`config.log' for more details." >&5 | |
12437 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12438 | See \`config.log' for more details." >&2;} | |
12439 | { (exit 1); exit 1; }; } | |
12440 | fi | |
12441 | ||
12442 | ac_ext=c | |
12443 | ac_cpp='$CPP $CPPFLAGS' | |
12444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12447 | ||
12448 | ||
12449 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12450 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12451 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12453 | else | |
12454 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12455 | then ac_cv_prog_egrep='grep -E' | |
12456 | else ac_cv_prog_egrep='egrep' | |
12457 | fi | |
12458 | fi | |
12459 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12460 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12461 | EGREP=$ac_cv_prog_egrep | |
12462 | ||
12463 | ||
12464 | if test $ac_cv_c_compiler_gnu = yes; then | |
12465 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12466 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12467 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12469 | else | |
12470 | ac_pattern="Autoconf.*'x'" | |
12471 | cat >conftest.$ac_ext <<_ACEOF | |
12472 | /* confdefs.h. */ | |
12473 | _ACEOF | |
12474 | cat confdefs.h >>conftest.$ac_ext | |
12475 | cat >>conftest.$ac_ext <<_ACEOF | |
12476 | /* end confdefs.h. */ | |
12477 | #include <sgtty.h> | |
12478 | Autoconf TIOCGETP | |
12479 | _ACEOF | |
12480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12481 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12482 | ac_cv_prog_gcc_traditional=yes | |
12483 | else | |
12484 | ac_cv_prog_gcc_traditional=no | |
12485 | fi | |
12486 | rm -f conftest* | |
12487 | ||
12488 | ||
12489 | if test $ac_cv_prog_gcc_traditional = no; then | |
12490 | cat >conftest.$ac_ext <<_ACEOF | |
12491 | /* confdefs.h. */ | |
12492 | _ACEOF | |
12493 | cat confdefs.h >>conftest.$ac_ext | |
12494 | cat >>conftest.$ac_ext <<_ACEOF | |
12495 | /* end confdefs.h. */ | |
12496 | #include <termio.h> | |
12497 | Autoconf TCGETA | |
12498 | _ACEOF | |
12499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12500 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12501 | ac_cv_prog_gcc_traditional=yes | |
12502 | fi | |
12503 | rm -f conftest* | |
12504 | ||
12505 | fi | |
12506 | fi | |
12507 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12508 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12509 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12510 | CC="$CC -traditional" | |
12511 | fi | |
12512 | fi | |
12513 | ||
12514 | ||
12515 | ||
12516 | ||
12517 | ac_ext=cc | |
12518 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12519 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12520 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12521 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12522 | ||
12523 | ||
12524 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12525 | |
12526 | ||
12527 | ac_ext=cc | |
a848cd7e SC |
12528 | ac_cpp='$CXXCPP $CPPFLAGS' |
12529 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12530 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12531 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12532 | if test -n "$ac_tool_prefix"; then | |
12533 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12534 | do | |
12535 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12536 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12537 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12539 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12541 | else | |
12542 | if test -n "$CXX"; then | |
12543 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12544 | else | |
12545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12546 | for as_dir in $PATH | |
12547 | do | |
12548 | IFS=$as_save_IFS | |
12549 | test -z "$as_dir" && as_dir=. | |
12550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12551 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12552 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12553 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12554 | break 2 | |
12555 | fi | |
12556 | done | |
12557 | done | |
12558 | ||
12559 | fi | |
12560 | fi | |
12561 | CXX=$ac_cv_prog_CXX | |
12562 | if test -n "$CXX"; then | |
12563 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12564 | echo "${ECHO_T}$CXX" >&6 | |
12565 | else | |
12566 | echo "$as_me:$LINENO: result: no" >&5 | |
12567 | echo "${ECHO_T}no" >&6 | |
12568 | fi | |
12569 | ||
12570 | test -n "$CXX" && break | |
12571 | done | |
12572 | fi | |
12573 | if test -z "$CXX"; then | |
12574 | ac_ct_CXX=$CXX | |
12575 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12576 | do | |
12577 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12578 | set dummy $ac_prog; ac_word=$2 | |
12579 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12580 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12581 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12583 | else | |
12584 | if test -n "$ac_ct_CXX"; then | |
12585 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12586 | else | |
12587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12588 | for as_dir in $PATH | |
12589 | do | |
12590 | IFS=$as_save_IFS | |
12591 | test -z "$as_dir" && as_dir=. | |
12592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12593 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12594 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12595 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12596 | break 2 | |
12597 | fi | |
12598 | done | |
12599 | done | |
12600 | ||
12601 | fi | |
12602 | fi | |
12603 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12604 | if test -n "$ac_ct_CXX"; then | |
12605 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12606 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12607 | else | |
12608 | echo "$as_me:$LINENO: result: no" >&5 | |
12609 | echo "${ECHO_T}no" >&6 | |
12610 | fi | |
12611 | ||
12612 | test -n "$ac_ct_CXX" && break | |
12613 | done | |
12614 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12615 | ||
12616 | CXX=$ac_ct_CXX | |
12617 | fi | |
12618 | ||
12619 | ||
12620 | # Provide some information about the compiler. | |
12621 | echo "$as_me:$LINENO:" \ | |
12622 | "checking for C++ compiler version" >&5 | |
12623 | ac_compiler=`set X $ac_compile; echo $2` | |
12624 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12625 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12626 | ac_status=$? | |
12627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12628 | (exit $ac_status); } | |
12629 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12630 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12631 | ac_status=$? | |
12632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12633 | (exit $ac_status); } | |
12634 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12635 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12636 | ac_status=$? | |
12637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12638 | (exit $ac_status); } | |
12639 | ||
12640 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12641 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12642 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12644 | else | |
12645 | cat >conftest.$ac_ext <<_ACEOF | |
12646 | /* confdefs.h. */ | |
12647 | _ACEOF | |
12648 | cat confdefs.h >>conftest.$ac_ext | |
12649 | cat >>conftest.$ac_ext <<_ACEOF | |
12650 | /* end confdefs.h. */ | |
12651 | ||
12652 | int | |
12653 | main () | |
12654 | { | |
12655 | #ifndef __GNUC__ | |
12656 | choke me | |
12657 | #endif | |
12658 | ||
12659 | ; | |
12660 | return 0; | |
12661 | } | |
12662 | _ACEOF | |
12663 | rm -f conftest.$ac_objext | |
12664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12665 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12666 | ac_status=$? |
ac1cb8d3 VS |
12667 | grep -v '^ *+' conftest.er1 >conftest.err |
12668 | rm -f conftest.er1 | |
12669 | cat conftest.err >&5 | |
a848cd7e SC |
12670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12671 | (exit $ac_status); } && | |
6ebeb4c7 | 12672 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12674 | (eval $ac_try) 2>&5 | |
12675 | ac_status=$? | |
12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12677 | (exit $ac_status); }; } && | |
12678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12680 | (eval $ac_try) 2>&5 | |
12681 | ac_status=$? | |
12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12683 | (exit $ac_status); }; }; then | |
12684 | ac_compiler_gnu=yes | |
12685 | else | |
12686 | echo "$as_me: failed program was:" >&5 | |
12687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12688 | ||
12689 | ac_compiler_gnu=no | |
12690 | fi | |
ac1cb8d3 | 12691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12692 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12693 | ||
12694 | fi | |
12695 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12696 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12697 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12698 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12699 | ac_save_CXXFLAGS=$CXXFLAGS | |
12700 | CXXFLAGS="-g" | |
12701 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12702 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12703 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12705 | else | |
12706 | cat >conftest.$ac_ext <<_ACEOF | |
12707 | /* confdefs.h. */ | |
12708 | _ACEOF | |
12709 | cat confdefs.h >>conftest.$ac_ext | |
12710 | cat >>conftest.$ac_ext <<_ACEOF | |
12711 | /* end confdefs.h. */ | |
12712 | ||
12713 | int | |
12714 | main () | |
12715 | { | |
12716 | ||
12717 | ; | |
12718 | return 0; | |
12719 | } | |
12720 | _ACEOF | |
12721 | rm -f conftest.$ac_objext | |
12722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12723 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12724 | ac_status=$? |
ac1cb8d3 VS |
12725 | grep -v '^ *+' conftest.er1 >conftest.err |
12726 | rm -f conftest.er1 | |
12727 | cat conftest.err >&5 | |
a848cd7e SC |
12728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12729 | (exit $ac_status); } && | |
6ebeb4c7 | 12730 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12732 | (eval $ac_try) 2>&5 | |
12733 | ac_status=$? | |
12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12735 | (exit $ac_status); }; } && | |
12736 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12738 | (eval $ac_try) 2>&5 | |
12739 | ac_status=$? | |
12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12741 | (exit $ac_status); }; }; then | |
12742 | ac_cv_prog_cxx_g=yes | |
12743 | else | |
12744 | echo "$as_me: failed program was:" >&5 | |
12745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12746 | ||
12747 | ac_cv_prog_cxx_g=no | |
12748 | fi | |
ac1cb8d3 | 12749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12750 | fi |
12751 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12752 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12753 | if test "$ac_test_CXXFLAGS" = set; then | |
12754 | CXXFLAGS=$ac_save_CXXFLAGS | |
12755 | elif test $ac_cv_prog_cxx_g = yes; then | |
12756 | if test "$GXX" = yes; then | |
1c14217d | 12757 | CXXFLAGS="-g -O2" |
a848cd7e | 12758 | else |
1c14217d | 12759 | CXXFLAGS="-g" |
a848cd7e SC |
12760 | fi |
12761 | else | |
12762 | if test "$GXX" = yes; then | |
12763 | CXXFLAGS="-O2" | |
12764 | else | |
12765 | CXXFLAGS= | |
12766 | fi | |
12767 | fi | |
12768 | for ac_declaration in \ | |
ac1cb8d3 | 12769 | '' \ |
a848cd7e SC |
12770 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12771 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12772 | 'extern "C" void exit (int) throw ();' \ | |
12773 | 'extern "C" void exit (int);' \ | |
12774 | 'void exit (int);' | |
12775 | do | |
12776 | cat >conftest.$ac_ext <<_ACEOF | |
12777 | /* confdefs.h. */ | |
12778 | _ACEOF | |
12779 | cat confdefs.h >>conftest.$ac_ext | |
12780 | cat >>conftest.$ac_ext <<_ACEOF | |
12781 | /* end confdefs.h. */ | |
de59c161 | 12782 | $ac_declaration |
ac1cb8d3 | 12783 | #include <stdlib.h> |
a848cd7e SC |
12784 | int |
12785 | main () | |
12786 | { | |
12787 | exit (42); | |
12788 | ; | |
12789 | return 0; | |
12790 | } | |
12791 | _ACEOF | |
12792 | rm -f conftest.$ac_objext | |
12793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12794 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12795 | ac_status=$? |
ac1cb8d3 VS |
12796 | grep -v '^ *+' conftest.er1 >conftest.err |
12797 | rm -f conftest.er1 | |
12798 | cat conftest.err >&5 | |
a848cd7e SC |
12799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12800 | (exit $ac_status); } && | |
6ebeb4c7 | 12801 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12803 | (eval $ac_try) 2>&5 | |
12804 | ac_status=$? | |
12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12806 | (exit $ac_status); }; } && | |
12807 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12809 | (eval $ac_try) 2>&5 | |
12810 | ac_status=$? | |
12811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12812 | (exit $ac_status); }; }; then | |
12813 | : | |
12814 | else | |
12815 | echo "$as_me: failed program was:" >&5 | |
12816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12817 | ||
12818 | continue | |
12819 | fi | |
ac1cb8d3 | 12820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12821 | cat >conftest.$ac_ext <<_ACEOF |
12822 | /* confdefs.h. */ | |
12823 | _ACEOF | |
12824 | cat confdefs.h >>conftest.$ac_ext | |
12825 | cat >>conftest.$ac_ext <<_ACEOF | |
12826 | /* end confdefs.h. */ | |
12827 | $ac_declaration | |
12828 | int | |
12829 | main () | |
12830 | { | |
12831 | exit (42); | |
12832 | ; | |
12833 | return 0; | |
12834 | } | |
12835 | _ACEOF | |
12836 | rm -f conftest.$ac_objext | |
12837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12838 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12839 | ac_status=$? |
ac1cb8d3 VS |
12840 | grep -v '^ *+' conftest.er1 >conftest.err |
12841 | rm -f conftest.er1 | |
12842 | cat conftest.err >&5 | |
a848cd7e SC |
12843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12844 | (exit $ac_status); } && | |
6ebeb4c7 | 12845 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12847 | (eval $ac_try) 2>&5 | |
12848 | ac_status=$? | |
12849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12850 | (exit $ac_status); }; } && | |
12851 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12853 | (eval $ac_try) 2>&5 | |
12854 | ac_status=$? | |
12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12856 | (exit $ac_status); }; }; then | |
12857 | break | |
12858 | else | |
12859 | echo "$as_me: failed program was:" >&5 | |
12860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12861 | ||
12862 | fi | |
ac1cb8d3 | 12863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12864 | done |
12865 | rm -f conftest* | |
12866 | if test -n "$ac_declaration"; then | |
12867 | echo '#ifdef __cplusplus' >>confdefs.h | |
12868 | echo $ac_declaration >>confdefs.h | |
12869 | echo '#endif' >>confdefs.h | |
12870 | fi | |
12871 | ||
12872 | ac_ext=cc | |
12873 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12874 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12875 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12876 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12877 | ||
ab0ad5f1 VZ |
12878 | |
12879 | ||
12880 | ac_ext=cc | |
12881 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12882 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12883 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12884 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12885 | ||
12886 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
12887 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
12888 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
12889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12890 | else | |
12891 | cat >conftest.$ac_ext <<_ACEOF | |
12892 | /* confdefs.h. */ | |
12893 | _ACEOF | |
12894 | cat confdefs.h >>conftest.$ac_ext | |
12895 | cat >>conftest.$ac_ext <<_ACEOF | |
12896 | /* end confdefs.h. */ | |
12897 | ||
12898 | int | |
12899 | main () | |
12900 | { | |
12901 | ||
12902 | #ifndef __INTEL_COMPILER | |
12903 | choke me | |
12904 | #endif | |
12905 | ||
12906 | ; | |
12907 | return 0; | |
12908 | } | |
12909 | _ACEOF | |
12910 | rm -f conftest.$ac_objext | |
12911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12912 | (eval $ac_compile) 2>conftest.er1 | |
12913 | ac_status=$? | |
12914 | grep -v '^ *+' conftest.er1 >conftest.err | |
12915 | rm -f conftest.er1 | |
12916 | cat conftest.err >&5 | |
12917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12918 | (exit $ac_status); } && | |
12919 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12921 | (eval $ac_try) 2>&5 | |
12922 | ac_status=$? | |
12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12924 | (exit $ac_status); }; } && | |
12925 | { ac_try='test -s conftest.$ac_objext' | |
12926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12927 | (eval $ac_try) 2>&5 | |
12928 | ac_status=$? | |
12929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12930 | (exit $ac_status); }; }; then | |
12931 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
12932 | else | |
12933 | echo "$as_me: failed program was:" >&5 | |
12934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12935 | ||
12936 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
12937 | ||
12938 | fi | |
12939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12940 | ||
12941 | ||
12942 | fi | |
12943 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
12944 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
12945 | ac_ext=cc | |
12946 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12947 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12948 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12949 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12950 | ||
12951 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
12952 | :; INTELCXX=yes | |
12953 | else | |
12954 | :; | |
12955 | fi | |
12956 | ||
12957 | ||
12958 | if test "x$GXX" != "xyes"; then | |
12959 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 DE |
12960 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
12961 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12963 | else | |
12964 | cat >conftest.$ac_ext <<_ACEOF | |
12965 | /* confdefs.h. */ | |
12966 | _ACEOF | |
12967 | cat confdefs.h >>conftest.$ac_ext | |
12968 | cat >>conftest.$ac_ext <<_ACEOF | |
12969 | /* end confdefs.h. */ | |
12970 | ||
12971 | int | |
12972 | main () | |
12973 | { | |
12974 | ||
12975 | ; | |
12976 | return 0; | |
12977 | } | |
12978 | _ACEOF | |
12979 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12981 | (eval $ac_compile) 2>&5 | |
12982 | ac_status=$? | |
12983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12984 | (exit $ac_status); }; then | |
12985 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12986 | case $ac_file in | |
12987 | conftest.$ac_ext.o) | |
12988 | wx_cv_cxx_exto="-ext o" | |
12989 | ;; | |
12990 | *) | |
12991 | ;; | |
12992 | esac | |
12993 | done | |
12994 | else | |
12995 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12996 | See \`config.log' for more details." >&5 | |
12997 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12998 | See \`config.log' for more details." >&2;} | |
12999 | { (exit 1); exit 1; }; } | |
13000 | ||
13001 | fi | |
13002 | ||
13003 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13004 | ||
13005 | fi | |
13006 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
13007 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
13008 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
13009 | if test "cxx" = "c"; then | |
13010 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
13011 | fi | |
13012 | if test "cxx" = "cxx"; then | |
13013 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
13014 | fi | |
13015 | fi | |
13016 | ||
ab0ad5f1 VZ |
13017 | if test "x$wx_cv_cxx_exto" '!=' "x"; then |
13018 | unset ac_cv_prog_cxx_g | |
13019 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
480ccd21 DE |
13020 | ac_save_CXXFLAGS=$CXXFLAGS |
13021 | CXXFLAGS="-g" | |
13022 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13023 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13024 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13026 | else | |
13027 | cat >conftest.$ac_ext <<_ACEOF | |
13028 | /* confdefs.h. */ | |
13029 | _ACEOF | |
13030 | cat confdefs.h >>conftest.$ac_ext | |
13031 | cat >>conftest.$ac_ext <<_ACEOF | |
13032 | /* end confdefs.h. */ | |
13033 | ||
13034 | int | |
13035 | main () | |
13036 | { | |
13037 | ||
13038 | ; | |
13039 | return 0; | |
13040 | } | |
13041 | _ACEOF | |
13042 | rm -f conftest.$ac_objext | |
13043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13044 | (eval $ac_compile) 2>conftest.er1 | |
13045 | ac_status=$? | |
13046 | grep -v '^ *+' conftest.er1 >conftest.err | |
13047 | rm -f conftest.er1 | |
13048 | cat conftest.err >&5 | |
13049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13050 | (exit $ac_status); } && | |
6ebeb4c7 | 13051 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
13052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13053 | (eval $ac_try) 2>&5 | |
13054 | ac_status=$? | |
13055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13056 | (exit $ac_status); }; } && | |
13057 | { ac_try='test -s conftest.$ac_objext' | |
13058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13059 | (eval $ac_try) 2>&5 | |
13060 | ac_status=$? | |
13061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13062 | (exit $ac_status); }; }; then | |
13063 | ac_cv_prog_cxx_g=yes | |
13064 | else | |
13065 | echo "$as_me: failed program was:" >&5 | |
13066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13067 | ||
13068 | ac_cv_prog_cxx_g=no | |
13069 | fi | |
13070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13071 | fi | |
13072 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13073 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13074 | if test "$ac_test_CXXFLAGS" = set; then | |
13075 | CXXFLAGS=$ac_save_CXXFLAGS | |
13076 | elif test $ac_cv_prog_cxx_g = yes; then | |
13077 | if test "$GXX" = yes; then | |
1c14217d | 13078 | CXXFLAGS="-g -O2" |
480ccd21 | 13079 | else |
1c14217d | 13080 | CXXFLAGS="-g" |
480ccd21 DE |
13081 | fi |
13082 | else | |
13083 | if test "$GXX" = yes; then | |
13084 | CXXFLAGS="-O2" | |
13085 | else | |
13086 | CXXFLAGS= | |
13087 | fi | |
13088 | fi | |
ab0ad5f1 VZ |
13089 | fi |
13090 | ac_ext=cc | |
95986553 DE |
13091 | ac_cpp='$CXXCPP $CPPFLAGS' |
13092 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13093 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13094 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13095 | ||
13096 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13097 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13098 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13100 | else | |
13101 | cat >conftest.$ac_ext <<_ACEOF | |
13102 | /* confdefs.h. */ | |
13103 | _ACEOF | |
13104 | cat confdefs.h >>conftest.$ac_ext | |
13105 | cat >>conftest.$ac_ext <<_ACEOF | |
13106 | /* end confdefs.h. */ | |
13107 | ||
13108 | int | |
13109 | main () | |
13110 | { | |
13111 | #ifndef __MWERKS__ | |
13112 | choke me | |
13113 | #endif | |
13114 | ||
13115 | ; | |
13116 | return 0; | |
13117 | } | |
13118 | _ACEOF | |
13119 | rm -f conftest.$ac_objext | |
13120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13121 | (eval $ac_compile) 2>conftest.er1 | |
13122 | ac_status=$? | |
13123 | grep -v '^ *+' conftest.er1 >conftest.err | |
13124 | rm -f conftest.er1 | |
13125 | cat conftest.err >&5 | |
13126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13127 | (exit $ac_status); } && | |
6ebeb4c7 | 13128 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
13129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13130 | (eval $ac_try) 2>&5 | |
13131 | ac_status=$? | |
13132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13133 | (exit $ac_status); }; } && | |
13134 | { ac_try='test -s conftest.$ac_objext' | |
13135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13136 | (eval $ac_try) 2>&5 | |
13137 | ac_status=$? | |
13138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13139 | (exit $ac_status); }; }; then | |
13140 | bakefile_compiler_mwerks=yes | |
13141 | else | |
13142 | echo "$as_me: failed program was:" >&5 | |
13143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13144 | ||
13145 | bakefile_compiler_mwerks=no | |
13146 | fi | |
13147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13148 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13149 | ||
13150 | fi | |
13151 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13152 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13153 | ||
0e6fa1d9 | 13154 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13155 | ac_ext=cc |
13156 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13157 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13158 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13159 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13160 | ||
13161 | ||
ab0ad5f1 | 13162 | ac_ext=cc |
9273ffba DE |
13163 | ac_cpp='$CXXCPP $CPPFLAGS' |
13164 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13165 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13166 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13167 | ||
13168 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13169 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
13170 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then | |
13171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13172 | else | |
13173 | cat >conftest.$ac_ext <<_ACEOF | |
13174 | /* confdefs.h. */ | |
13175 | _ACEOF | |
13176 | cat confdefs.h >>conftest.$ac_ext | |
13177 | cat >>conftest.$ac_ext <<_ACEOF | |
13178 | /* end confdefs.h. */ | |
13179 | ||
13180 | int | |
13181 | main () | |
13182 | { | |
13183 | #ifndef __xlC__ | |
13184 | choke me | |
13185 | #endif | |
13186 | ||
13187 | ; | |
13188 | return 0; | |
13189 | } | |
13190 | _ACEOF | |
13191 | rm -f conftest.$ac_objext | |
13192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13193 | (eval $ac_compile) 2>conftest.er1 | |
13194 | ac_status=$? | |
13195 | grep -v '^ *+' conftest.er1 >conftest.err | |
13196 | rm -f conftest.er1 | |
13197 | cat conftest.err >&5 | |
13198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13199 | (exit $ac_status); } && | |
6ebeb4c7 | 13200 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
13201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13202 | (eval $ac_try) 2>&5 | |
13203 | ac_status=$? | |
13204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13205 | (exit $ac_status); }; } && | |
13206 | { ac_try='test -s conftest.$ac_objext' | |
13207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13208 | (eval $ac_try) 2>&5 | |
13209 | ac_status=$? | |
13210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13211 | (exit $ac_status); }; }; then | |
13212 | wx_compiler_xlc=yes | |
13213 | else | |
13214 | echo "$as_me: failed program was:" >&5 | |
13215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13216 | ||
13217 | wx_compiler_xlc=no | |
13218 | fi | |
13219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13220 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc | |
13221 | ||
13222 | fi | |
13223 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 | |
13224 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
13225 | ||
0e6fa1d9 | 13226 | XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
13227 | ac_ext=cc |
13228 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13229 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13230 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13231 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13232 | ||
13233 | ||
95986553 | 13234 | |
6dcfc289 | 13235 | |
0ad5d837 VZ |
13236 | ac_ext=cc |
13237 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13238 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13239 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13240 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13241 | ||
13242 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
13243 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
13244 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13246 | else | |
13247 | cat >conftest.$ac_ext <<_ACEOF | |
13248 | /* confdefs.h. */ | |
13249 | _ACEOF | |
13250 | cat confdefs.h >>conftest.$ac_ext | |
13251 | cat >>conftest.$ac_ext <<_ACEOF | |
13252 | /* end confdefs.h. */ | |
13253 | ||
13254 | int | |
13255 | main () | |
13256 | { | |
13257 | ||
13258 | #ifndef _SGI_COMPILER_VERSION | |
13259 | choke me | |
13260 | #endif | |
13261 | ||
13262 | ; | |
13263 | return 0; | |
13264 | } | |
13265 | _ACEOF | |
13266 | rm -f conftest.$ac_objext | |
13267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13268 | (eval $ac_compile) 2>conftest.er1 | |
13269 | ac_status=$? | |
13270 | grep -v '^ *+' conftest.er1 >conftest.err | |
13271 | rm -f conftest.er1 | |
13272 | cat conftest.err >&5 | |
13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13274 | (exit $ac_status); } && | |
13275 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
13276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13277 | (eval $ac_try) 2>&5 | |
13278 | ac_status=$? | |
13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13280 | (exit $ac_status); }; } && | |
13281 | { ac_try='test -s conftest.$ac_objext' | |
13282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13283 | (eval $ac_try) 2>&5 | |
13284 | ac_status=$? | |
13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13286 | (exit $ac_status); }; }; then | |
13287 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
13288 | else | |
13289 | echo "$as_me: failed program was:" >&5 | |
13290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13291 | ||
13292 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
13293 | ||
13294 | fi | |
13295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13296 | ||
13297 | ||
13298 | fi | |
13299 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
13300 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
13301 | ac_ext=cc | |
13302 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13303 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13304 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13305 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13306 | ||
13307 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13308 | :; SGICXX=yes | |
13309 | else | |
13310 | :; | |
13311 | fi | |
13312 | ||
13313 | ||
13314 | ||
13315 | ||
a9e5b1f0 MW |
13316 | ac_ext=cc |
13317 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13318 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13319 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13320 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13321 | ||
13322 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
13323 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
13324 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
13325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13326 | else | |
13327 | cat >conftest.$ac_ext <<_ACEOF | |
13328 | /* confdefs.h. */ | |
13329 | _ACEOF | |
13330 | cat confdefs.h >>conftest.$ac_ext | |
13331 | cat >>conftest.$ac_ext <<_ACEOF | |
13332 | /* end confdefs.h. */ | |
13333 | ||
13334 | int | |
13335 | main () | |
13336 | { | |
13337 | ||
13338 | #ifndef __SUNPRO_CC | |
13339 | choke me | |
13340 | #endif | |
13341 | ||
13342 | ; | |
13343 | return 0; | |
13344 | } | |
13345 | _ACEOF | |
13346 | rm -f conftest.$ac_objext | |
13347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13348 | (eval $ac_compile) 2>conftest.er1 | |
13349 | ac_status=$? | |
13350 | grep -v '^ *+' conftest.er1 >conftest.err | |
13351 | rm -f conftest.er1 | |
13352 | cat conftest.err >&5 | |
13353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13354 | (exit $ac_status); } && | |
6ebeb4c7 | 13355 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a9e5b1f0 MW |
13356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13357 | (eval $ac_try) 2>&5 | |
13358 | ac_status=$? | |
13359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13360 | (exit $ac_status); }; } && | |
13361 | { ac_try='test -s conftest.$ac_objext' | |
13362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13363 | (eval $ac_try) 2>&5 | |
13364 | ac_status=$? | |
13365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13366 | (exit $ac_status); }; }; then | |
13367 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
13368 | else | |
13369 | echo "$as_me: failed program was:" >&5 | |
13370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13371 | ||
13372 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
13373 | ||
13374 | fi | |
13375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13376 | ||
13377 | ||
13378 | fi | |
13379 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
13380 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
13381 | ac_ext=cc | |
13382 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13383 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13384 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13385 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13386 | ||
13387 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
13388 | :; SUNCXX=yes | |
13389 | else | |
13390 | :; | |
13391 | fi | |
13392 | ||
13393 | ||
ab0ad5f1 | 13394 | fi |
a9e5b1f0 MW |
13395 | |
13396 | ||
a848cd7e SC |
13397 | ac_ext=c |
13398 | ac_cpp='$CPP $CPPFLAGS' | |
13399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13402 | ||
13403 | ||
a848cd7e SC |
13404 | if test -n "$ac_tool_prefix"; then |
13405 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
13406 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
13407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13409 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
13410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13411 | else | |
13412 | if test -n "$RANLIB"; then | |
13413 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
13414 | else | |
13415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13416 | for as_dir in $PATH | |
13417 | do | |
13418 | IFS=$as_save_IFS | |
13419 | test -z "$as_dir" && as_dir=. | |
13420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13422 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
13423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13424 | break 2 | |
13425 | fi | |
13426 | done | |
13427 | done | |
13428 | ||
13429 | fi | |
13430 | fi | |
13431 | RANLIB=$ac_cv_prog_RANLIB | |
13432 | if test -n "$RANLIB"; then | |
13433 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
13434 | echo "${ECHO_T}$RANLIB" >&6 | |
13435 | else | |
13436 | echo "$as_me:$LINENO: result: no" >&5 | |
13437 | echo "${ECHO_T}no" >&6 | |
13438 | fi | |
13439 | ||
13440 | fi | |
13441 | if test -z "$ac_cv_prog_RANLIB"; then | |
13442 | ac_ct_RANLIB=$RANLIB | |
13443 | # Extract the first word of "ranlib", so it can be a program name with args. | |
13444 | set dummy ranlib; ac_word=$2 | |
13445 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13447 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
13448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13449 | else | |
13450 | if test -n "$ac_ct_RANLIB"; then | |
13451 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
13452 | else | |
13453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13454 | for as_dir in $PATH | |
13455 | do | |
13456 | IFS=$as_save_IFS | |
13457 | test -z "$as_dir" && as_dir=. | |
13458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13459 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13460 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
13461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13462 | break 2 | |
13463 | fi | |
13464 | done | |
13465 | done | |
13466 | ||
13467 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
13468 | fi | |
13469 | fi | |
13470 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
13471 | if test -n "$ac_ct_RANLIB"; then | |
13472 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
13473 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
13474 | else | |
13475 | echo "$as_me:$LINENO: result: no" >&5 | |
13476 | echo "${ECHO_T}no" >&6 | |
13477 | fi | |
13478 | ||
13479 | RANLIB=$ac_ct_RANLIB | |
13480 | else | |
13481 | RANLIB="$ac_cv_prog_RANLIB" | |
13482 | fi | |
13483 | ||
13484 | ||
8c80d384 DE |
13485 | if test -n "$ac_tool_prefix"; then |
13486 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
13487 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
13488 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13490 | if test "${ac_cv_prog_AR+set}" = set; then | |
13491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13492 | else | |
13493 | if test -n "$AR"; then | |
13494 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
13495 | else | |
13496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13497 | for as_dir in $PATH | |
13498 | do | |
13499 | IFS=$as_save_IFS | |
13500 | test -z "$as_dir" && as_dir=. | |
13501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13502 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 13503 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
13504 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13505 | break 2 | |
13506 | fi | |
13507 | done | |
13508 | done | |
13509 | ||
13510 | fi | |
13511 | fi | |
13512 | AR=$ac_cv_prog_AR | |
13513 | if test -n "$AR"; then | |
13514 | echo "$as_me:$LINENO: result: $AR" >&5 | |
13515 | echo "${ECHO_T}$AR" >&6 | |
13516 | else | |
13517 | echo "$as_me:$LINENO: result: no" >&5 | |
13518 | echo "${ECHO_T}no" >&6 | |
13519 | fi | |
13520 | ||
8c80d384 DE |
13521 | fi |
13522 | if test -z "$ac_cv_prog_AR"; then | |
13523 | ac_ct_AR=$AR | |
13524 | # Extract the first word of "ar", so it can be a program name with args. | |
13525 | set dummy ar; ac_word=$2 | |
13526 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13528 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
13529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13530 | else | |
13531 | if test -n "$ac_ct_AR"; then | |
13532 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13533 | else | |
13534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13535 | for as_dir in $PATH | |
13536 | do | |
13537 | IFS=$as_save_IFS | |
13538 | test -z "$as_dir" && as_dir=. | |
13539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13540 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13541 | ac_cv_prog_ac_ct_AR="ar" | |
13542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13543 | break 2 | |
13544 | fi | |
13545 | done | |
13546 | done | |
13547 | ||
13548 | fi | |
13549 | fi | |
13550 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13551 | if test -n "$ac_ct_AR"; then | |
13552 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
13553 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
13554 | else | |
13555 | echo "$as_me:$LINENO: result: no" >&5 | |
13556 | echo "${ECHO_T}no" >&6 | |
13557 | fi | |
13558 | ||
13559 | AR=$ac_ct_AR | |
13560 | else | |
13561 | AR="$ac_cv_prog_AR" | |
13562 | fi | |
13563 | ||
a848cd7e | 13564 | if test "x$AR" = "x" ; then |
77ffb593 JS |
13565 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
13566 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
13567 | { (exit 1); exit 1; }; } |
13568 | fi | |
13569 | ||
13570 | # Find a good install program. We prefer a C program (faster), | |
13571 | # so one script is as good as another. But avoid the broken or | |
13572 | # incompatible versions: | |
13573 | # SysV /etc/install, /usr/sbin/install | |
13574 | # SunOS /usr/etc/install | |
13575 | # IRIX /sbin/install | |
13576 | # AIX /bin/install | |
13577 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
13578 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
13579 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
13580 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 13581 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
13582 | # ./install, which can be erroneously created by make from ./install.sh. |
13583 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
13584 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
13585 | if test -z "$INSTALL"; then | |
13586 | if test "${ac_cv_path_install+set}" = set; then | |
13587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13588 | else | |
13589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13590 | for as_dir in $PATH | |
13591 | do | |
13592 | IFS=$as_save_IFS | |
13593 | test -z "$as_dir" && as_dir=. | |
13594 | # Account for people who put trailing slashes in PATH elements. | |
13595 | case $as_dir/ in | |
13596 | ./ | .// | /cC/* | \ | |
13597 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 13598 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
13599 | /usr/ucb/* ) ;; |
13600 | *) | |
13601 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
13602 | # Don't use installbsd from OSF since it installs stuff as root | |
13603 | # by default. | |
13604 | for ac_prog in ginstall scoinst install; do | |
13605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
13606 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
13607 | if test $ac_prog = install && | |
13608 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13609 | # AIX install. It has an incompatible calling convention. | |
13610 | : | |
13611 | elif test $ac_prog = install && | |
13612 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13613 | # program-specific install script used by HP pwplus--don't use. | |
13614 | : | |
13615 | else | |
13616 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
13617 | break 3 | |
13618 | fi | |
13619 | fi | |
a848cd7e SC |
13620 | done |
13621 | done | |
13622 | ;; | |
13623 | esac | |
13624 | done | |
13625 | ||
13626 | ||
13627 | fi | |
13628 | if test "${ac_cv_path_install+set}" = set; then | |
13629 | INSTALL=$ac_cv_path_install | |
13630 | else | |
13631 | # As a last resort, use the slow shell script. We don't cache a | |
13632 | # path for INSTALL within a source directory, because that will | |
13633 | # break other packages using the cache if that directory is | |
13634 | # removed, or if the path is relative. | |
13635 | INSTALL=$ac_install_sh | |
13636 | fi | |
13637 | fi | |
13638 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
13639 | echo "${ECHO_T}$INSTALL" >&6 | |
13640 | ||
13641 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
13642 | # It thinks the first close brace ends the variable substitution. | |
13643 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
13644 | ||
13645 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
13646 | ||
13647 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
13648 | ||
13649 | ||
13650 | case ${INSTALL} in | |
13651 | /* ) # Absolute | |
13652 | ;; | |
13653 | ?:* ) # Drive letter, considered as absolute. | |
13654 | ;; | |
13655 | *) | |
13656 | INSTALL=`pwd`/${INSTALL} ;; | |
13657 | esac | |
13658 | ||
a848cd7e SC |
13659 | |
13660 | case "${host}" in | |
13661 | ||
cfda0ea8 | 13662 | *-*-darwin* ) |
a848cd7e SC |
13663 | INSTALL_PROGRAM="cp -fp" |
13664 | INSTALL_DATA="cp -fp" | |
13665 | ;; | |
13666 | *) | |
13667 | ;; | |
13668 | esac | |
13669 | ||
8c80d384 DE |
13670 | if test -n "$ac_tool_prefix"; then |
13671 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
13672 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
13673 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13675 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
13676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13677 | else | |
13678 | if test -n "$STRIP"; then | |
13679 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13680 | else | |
13681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13682 | for as_dir in $PATH | |
13683 | do | |
13684 | IFS=$as_save_IFS | |
13685 | test -z "$as_dir" && as_dir=. | |
13686 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13687 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 13688 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
13689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13690 | break 2 | |
13691 | fi | |
13692 | done | |
13693 | done | |
13694 | ||
a848cd7e SC |
13695 | fi |
13696 | fi | |
13697 | STRIP=$ac_cv_prog_STRIP | |
13698 | if test -n "$STRIP"; then | |
13699 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
13700 | echo "${ECHO_T}$STRIP" >&6 | |
13701 | else | |
13702 | echo "$as_me:$LINENO: result: no" >&5 | |
13703 | echo "${ECHO_T}no" >&6 | |
13704 | fi | |
13705 | ||
8c80d384 DE |
13706 | fi |
13707 | if test -z "$ac_cv_prog_STRIP"; then | |
13708 | ac_ct_STRIP=$STRIP | |
13709 | # Extract the first word of "strip", so it can be a program name with args. | |
13710 | set dummy strip; ac_word=$2 | |
13711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13713 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
13714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13715 | else | |
13716 | if test -n "$ac_ct_STRIP"; then | |
13717 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
13718 | else | |
13719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13720 | for as_dir in $PATH | |
13721 | do | |
13722 | IFS=$as_save_IFS | |
13723 | test -z "$as_dir" && as_dir=. | |
13724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13726 | ac_cv_prog_ac_ct_STRIP="strip" | |
13727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13728 | break 2 | |
13729 | fi | |
13730 | done | |
13731 | done | |
13732 | ||
13733 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
13734 | fi | |
13735 | fi | |
13736 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
13737 | if test -n "$ac_ct_STRIP"; then | |
13738 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
13739 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
13740 | else | |
13741 | echo "$as_me:$LINENO: result: no" >&5 | |
13742 | echo "${ECHO_T}no" >&6 | |
13743 | fi | |
13744 | ||
13745 | STRIP=$ac_ct_STRIP | |
13746 | else | |
13747 | STRIP="$ac_cv_prog_STRIP" | |
13748 | fi | |
13749 | ||
13750 | ||
13751 | if test "$wxUSE_WINE" = "yes"; then | |
13752 | if test -n "$ac_tool_prefix"; then | |
13753 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
13754 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
13755 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13757 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
13758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13759 | else | |
13760 | if test -n "$RESCOMP"; then | |
13761 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13762 | else | |
13763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13764 | for as_dir in $PATH | |
13765 | do | |
13766 | IFS=$as_save_IFS | |
13767 | test -z "$as_dir" && as_dir=. | |
13768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13770 | ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc" | |
13771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13772 | break 2 | |
13773 | fi | |
13774 | done | |
13775 | done | |
13776 | ||
13777 | fi | |
13778 | fi | |
13779 | RESCOMP=$ac_cv_prog_RESCOMP | |
13780 | if test -n "$RESCOMP"; then | |
13781 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
13782 | echo "${ECHO_T}$RESCOMP" >&6 | |
13783 | else | |
13784 | echo "$as_me:$LINENO: result: no" >&5 | |
13785 | echo "${ECHO_T}no" >&6 | |
13786 | fi | |
13787 | ||
13788 | fi | |
13789 | if test -z "$ac_cv_prog_RESCOMP"; then | |
13790 | ac_ct_RESCOMP=$RESCOMP | |
13791 | # Extract the first word of "wrc", so it can be a program name with args. | |
13792 | set dummy wrc; ac_word=$2 | |
13793 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13794 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13795 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
13796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13797 | else | |
13798 | if test -n "$ac_ct_RESCOMP"; then | |
13799 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
13800 | else | |
13801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13802 | for as_dir in $PATH | |
13803 | do | |
13804 | IFS=$as_save_IFS | |
13805 | test -z "$as_dir" && as_dir=. | |
13806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13807 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13808 | ac_cv_prog_ac_ct_RESCOMP="wrc" | |
13809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13810 | break 2 | |
13811 | fi | |
13812 | done | |
13813 | done | |
13814 | ||
13815 | fi | |
13816 | fi | |
13817 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
13818 | if test -n "$ac_ct_RESCOMP"; then | |
13819 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
13820 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
13821 | else | |
13822 | echo "$as_me:$LINENO: result: no" >&5 | |
13823 | echo "${ECHO_T}no" >&6 | |
13824 | fi | |
13825 | ||
13826 | RESCOMP=$ac_ct_RESCOMP | |
13827 | else | |
13828 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13829 | fi | |
13830 | ||
13831 | else | |
13832 | case "${host}" in | |
13833 | *-*-cygwin* | *-*-mingw32* ) | |
13834 | if test -n "$ac_tool_prefix"; then | |
13835 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
13836 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
13837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13839 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
13840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13841 | else | |
13842 | if test -n "$RESCOMP"; then | |
13843 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13844 | else | |
13845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13846 | for as_dir in $PATH | |
13847 | do | |
13848 | IFS=$as_save_IFS | |
13849 | test -z "$as_dir" && as_dir=. | |
13850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13852 | ac_cv_prog_RESCOMP="${ac_tool_prefix}windres" | |
13853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13854 | break 2 | |
13855 | fi | |
13856 | done | |
13857 | done | |
13858 | ||
13859 | fi | |
13860 | fi | |
13861 | RESCOMP=$ac_cv_prog_RESCOMP | |
13862 | if test -n "$RESCOMP"; then | |
13863 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
13864 | echo "${ECHO_T}$RESCOMP" >&6 | |
13865 | else | |
13866 | echo "$as_me:$LINENO: result: no" >&5 | |
13867 | echo "${ECHO_T}no" >&6 | |
13868 | fi | |
13869 | ||
13870 | fi | |
13871 | if test -z "$ac_cv_prog_RESCOMP"; then | |
13872 | ac_ct_RESCOMP=$RESCOMP | |
13873 | # Extract the first word of "windres", so it can be a program name with args. | |
13874 | set dummy windres; ac_word=$2 | |
13875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13877 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
13878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13879 | else | |
13880 | if test -n "$ac_ct_RESCOMP"; then | |
13881 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
13882 | else | |
13883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13884 | for as_dir in $PATH | |
13885 | do | |
13886 | IFS=$as_save_IFS | |
13887 | test -z "$as_dir" && as_dir=. | |
13888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13890 | ac_cv_prog_ac_ct_RESCOMP="windres" | |
13891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13892 | break 2 | |
13893 | fi | |
13894 | done | |
13895 | done | |
13896 | ||
13897 | fi | |
13898 | fi | |
13899 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
13900 | if test -n "$ac_ct_RESCOMP"; then | |
13901 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
13902 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
13903 | else | |
13904 | echo "$as_me:$LINENO: result: no" >&5 | |
13905 | echo "${ECHO_T}no" >&6 | |
13906 | fi | |
13907 | ||
13908 | RESCOMP=$ac_ct_RESCOMP | |
13909 | else | |
13910 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13911 | fi | |
13912 | ||
13913 | if test -n "$ac_tool_prefix"; then | |
13914 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
13915 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
13916 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13918 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
13919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13920 | else | |
13921 | if test -n "$DLLTOOL"; then | |
13922 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
13923 | else | |
13924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13925 | for as_dir in $PATH | |
13926 | do | |
13927 | IFS=$as_save_IFS | |
13928 | test -z "$as_dir" && as_dir=. | |
13929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13931 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
13932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13933 | break 2 | |
13934 | fi | |
13935 | done | |
13936 | done | |
13937 | ||
13938 | fi | |
13939 | fi | |
13940 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
13941 | if test -n "$DLLTOOL"; then | |
13942 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
13943 | echo "${ECHO_T}$DLLTOOL" >&6 | |
13944 | else | |
13945 | echo "$as_me:$LINENO: result: no" >&5 | |
13946 | echo "${ECHO_T}no" >&6 | |
13947 | fi | |
13948 | ||
13949 | fi | |
13950 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
13951 | ac_ct_DLLTOOL=$DLLTOOL | |
13952 | # Extract the first word of "dlltool", so it can be a program name with args. | |
13953 | set dummy dlltool; ac_word=$2 | |
13954 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13956 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
13957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13958 | else | |
13959 | if test -n "$ac_ct_DLLTOOL"; then | |
13960 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
13961 | else | |
13962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13963 | for as_dir in $PATH | |
13964 | do | |
13965 | IFS=$as_save_IFS | |
13966 | test -z "$as_dir" && as_dir=. | |
13967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13968 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13969 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
13970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13971 | break 2 | |
13972 | fi | |
13973 | done | |
13974 | done | |
13975 | ||
13976 | fi | |
13977 | fi | |
13978 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
13979 | if test -n "$ac_ct_DLLTOOL"; then | |
13980 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
13981 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
13982 | else | |
13983 | echo "$as_me:$LINENO: result: no" >&5 | |
13984 | echo "${ECHO_T}no" >&6 | |
13985 | fi | |
13986 | ||
13987 | DLLTOOL=$ac_ct_DLLTOOL | |
13988 | else | |
13989 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
13990 | fi | |
13991 | ||
13992 | ;; | |
13993 | esac | |
13994 | fi | |
a848cd7e SC |
13995 | |
13996 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
13997 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
13998 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
13999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14000 | else | |
14001 | ||
14002 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
14003 | egrep -s GNU > /dev/null); then | |
14004 | wx_cv_prog_makeisgnu="yes" | |
14005 | else | |
14006 | wx_cv_prog_makeisgnu="no" | |
14007 | fi | |
14008 | ||
14009 | fi | |
14010 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
14011 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
14012 | ||
14013 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
14014 | IF_GNU_MAKE="" | |
14015 | else | |
14016 | IF_GNU_MAKE="#" | |
14017 | fi | |
14018 | ||
14019 | ||
14020 | ||
14021 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
14022 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
14023 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
14024 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
14025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14026 | else | |
14027 | ||
14028 | cat - << EOF > confMake | |
14029 | check : file | |
14030 | cp \$? \$@ | |
14031 | cp \$? final_file | |
14032 | EOF | |
14033 | ||
14034 | if test ! -d sub ; then | |
14035 | mkdir sub | |
14036 | fi | |
14037 | echo dummy > sub/file | |
14038 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
14039 | RESULT=$? | |
14040 | rm -f sub/file check final_file confMake | |
14041 | rmdir sub | |
14042 | if test "$RESULT" = 0; then | |
14043 | wx_cv_prog_makevpath="yes" | |
14044 | else | |
14045 | wx_cv_prog_makevpath="no" | |
14046 | fi | |
14047 | ||
14048 | fi | |
14049 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
14050 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
14051 | ||
14052 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
14053 | { { echo "$as_me:$LINENO: error: | |
14054 | You need a make-utility that is able to use the variable | |
14055 | VPATH correctly. | |
14056 | If your version of make does not support VPATH correctly, | |
14057 | please install GNU-make (possibly as gmake), and start | |
14058 | configure with the following command: | |
14059 | export MAKE=gmake; ./configure for sh-type shells | |
14060 | setenv MAKE gmake; ./configure for csh-type shells | |
14061 | Also please do remember to use gmake in this case every time | |
14062 | you are trying to compile. | |
14063 | " >&5 | |
14064 | echo "$as_me: error: | |
14065 | You need a make-utility that is able to use the variable | |
14066 | VPATH correctly. | |
14067 | If your version of make does not support VPATH correctly, | |
14068 | please install GNU-make (possibly as gmake), and start | |
14069 | configure with the following command: | |
14070 | export MAKE=gmake; ./configure for sh-type shells | |
14071 | setenv MAKE gmake; ./configure for csh-type shells | |
14072 | Also please do remember to use gmake in this case every time | |
14073 | you are trying to compile. | |
14074 | " >&2;} | |
14075 | { (exit 1); exit 1; }; } | |
14076 | fi fi | |
14077 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
14078 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
14079 | LN_S=$as_ln_s | |
14080 | if test "$LN_S" = "ln -s"; then | |
14081 | echo "$as_me:$LINENO: result: yes" >&5 | |
14082 | echo "${ECHO_T}yes" >&6 | |
14083 | else | |
14084 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
14085 | echo "${ECHO_T}no, using $LN_S" >&6 | |
14086 | fi | |
14087 | ||
14088 | ||
14089 | ||
2113bc77 | 14090 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
9273ffba DE |
14091 | CXXFLAGS="$CXXFLAGS -qunique" |
14092 | fi | |
14093 | ||
4d7ec9f1 DE |
14094 | case "${host}" in |
14095 | powerpc-*-darwin* ) | |
14096 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
14097 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
14098 | cat >conftest.$ac_ext <<_ACEOF | |
14099 | /* confdefs.h. */ | |
14100 | _ACEOF | |
14101 | cat confdefs.h >>conftest.$ac_ext | |
14102 | cat >>conftest.$ac_ext <<_ACEOF | |
14103 | /* end confdefs.h. */ | |
14104 | ||
14105 | int | |
14106 | main () | |
14107 | { | |
14108 | #ifndef __POWERPC__ | |
14109 | choke me for lack of PowerPC | |
14110 | #endif | |
14111 | ||
14112 | ; | |
14113 | return 0; | |
14114 | } | |
14115 | _ACEOF | |
14116 | rm -f conftest.$ac_objext | |
14117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14118 | (eval $ac_compile) 2>conftest.er1 | |
14119 | ac_status=$? | |
14120 | grep -v '^ *+' conftest.er1 >conftest.err | |
14121 | rm -f conftest.er1 | |
14122 | cat conftest.err >&5 | |
14123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14124 | (exit $ac_status); } && | |
6ebeb4c7 | 14125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
14126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14127 | (eval $ac_try) 2>&5 | |
14128 | ac_status=$? | |
14129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14130 | (exit $ac_status); }; } && | |
14131 | { ac_try='test -s conftest.$ac_objext' | |
14132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14133 | (eval $ac_try) 2>&5 | |
14134 | ac_status=$? | |
14135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14136 | (exit $ac_status); }; }; then | |
14137 | echo "$as_me:$LINENO: result: yes" >&5 | |
14138 | echo "${ECHO_T}yes" >&6 | |
14139 | else | |
14140 | echo "$as_me: failed program was:" >&5 | |
14141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14142 | ||
14143 | echo "$as_me:$LINENO: result: no" >&5 | |
14144 | echo "${ECHO_T}no" >&6 | |
14145 | cat >>confdefs.h <<\_ACEOF | |
14146 | #define __POWERPC__ 1 | |
14147 | _ACEOF | |
14148 | ||
14149 | ||
14150 | fi | |
14151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
14152 | ;; |
14153 | esac | |
14154 | ||
14155 | case "${host}" in | |
14156 | *-*-darwin* ) | |
4d7ec9f1 DE |
14157 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
14158 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
14159 | cat >conftest.$ac_ext <<_ACEOF | |
14160 | /* confdefs.h. */ | |
14161 | _ACEOF | |
14162 | cat confdefs.h >>conftest.$ac_ext | |
14163 | cat >>conftest.$ac_ext <<_ACEOF | |
14164 | /* end confdefs.h. */ | |
14165 | #include <CoreFoundation/CFBase.h> | |
14166 | ||
14167 | int | |
14168 | main () | |
14169 | { | |
14170 | ||
14171 | ; | |
14172 | return 0; | |
14173 | } | |
14174 | _ACEOF | |
14175 | rm -f conftest.$ac_objext | |
14176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14177 | (eval $ac_compile) 2>conftest.er1 | |
14178 | ac_status=$? | |
14179 | grep -v '^ *+' conftest.er1 >conftest.err | |
14180 | rm -f conftest.er1 | |
14181 | cat conftest.err >&5 | |
14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14183 | (exit $ac_status); } && | |
6ebeb4c7 | 14184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14186 | (eval $ac_try) 2>&5 | |
14187 | ac_status=$? | |
14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14189 | (exit $ac_status); }; } && | |
14190 | { ac_try='test -s conftest.$ac_objext' | |
14191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14192 | (eval $ac_try) 2>&5 | |
14193 | ac_status=$? | |
14194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14195 | (exit $ac_status); }; }; then | |
14196 | echo "$as_me:$LINENO: result: yes" >&5 | |
14197 | echo "${ECHO_T}yes" >&6 | |
14198 | else | |
14199 | echo "$as_me: failed program was:" >&5 | |
14200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14201 | ||
14202 | echo "$as_me:$LINENO: result: no" >&5 | |
14203 | echo "${ECHO_T}no" >&6 | |
14204 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
14205 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
14206 | cat >conftest.$ac_ext <<_ACEOF | |
14207 | /* confdefs.h. */ | |
14208 | _ACEOF | |
14209 | cat confdefs.h >>conftest.$ac_ext | |
14210 | cat >>conftest.$ac_ext <<_ACEOF | |
14211 | /* end confdefs.h. */ | |
14212 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
14213 | #include <CoreFoundation/CFBase.h> | |
14214 | ||
14215 | int | |
14216 | main () | |
14217 | { | |
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>conftest.er1 | |
14226 | ac_status=$? | |
14227 | grep -v '^ *+' conftest.er1 >conftest.err | |
14228 | rm -f conftest.er1 | |
14229 | cat conftest.err >&5 | |
14230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14231 | (exit $ac_status); } && | |
6ebeb4c7 | 14232 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
14233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14234 | (eval $ac_try) 2>&5 | |
14235 | ac_status=$? | |
14236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14237 | (exit $ac_status); }; } && | |
14238 | { ac_try='test -s conftest.$ac_objext' | |
14239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14240 | (eval $ac_try) 2>&5 | |
14241 | ac_status=$? | |
14242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14243 | (exit $ac_status); }; }; then | |
14244 | echo "$as_me:$LINENO: result: yes" >&5 | |
14245 | echo "${ECHO_T}yes" >&6 | |
14246 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
14247 | else | |
14248 | echo "$as_me: failed program was:" >&5 | |
14249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14250 | ||
14251 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
14252 | See \`config.log' for more details." >&5 | |
14253 | echo "$as_me: error: no. CoreFoundation not available. | |
14254 | See \`config.log' for more details." >&2;} | |
14255 | { (exit 1); exit 1; }; } | |
14256 | ||
14257 | fi | |
14258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14259 | ||
14260 | ||
14261 | fi | |
14262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14263 | ;; | |
14264 | esac | |
14265 | ||
a848cd7e SC |
14266 | case "${host}" in |
14267 | *-pc-os2_emx | *-pc-os2-emx ) | |
14268 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
14269 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
14270 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
14271 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
14272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14273 | else | |
14274 | ac_check_lib_save_LIBS=$LIBS | |
14275 | LIBS="-lcExt $LIBS" | |
14276 | cat >conftest.$ac_ext <<_ACEOF | |
14277 | /* confdefs.h. */ | |
14278 | _ACEOF | |
14279 | cat confdefs.h >>conftest.$ac_ext | |
14280 | cat >>conftest.$ac_ext <<_ACEOF | |
14281 | /* end confdefs.h. */ | |
14282 | ||
14283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14284 | #ifdef __cplusplus | |
14285 | extern "C" | |
14286 | #endif | |
14287 | /* We use char because int might match the return type of a gcc2 | |
14288 | builtin and then its argument prototype would still apply. */ | |
14289 | char drand48 (); | |
14290 | int | |
14291 | main () | |
14292 | { | |
14293 | drand48 (); | |
14294 | ; | |
14295 | return 0; | |
14296 | } | |
14297 | _ACEOF | |
14298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14300 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14301 | ac_status=$? |
ac1cb8d3 VS |
14302 | grep -v '^ *+' conftest.er1 >conftest.err |
14303 | rm -f conftest.er1 | |
14304 | cat conftest.err >&5 | |
a848cd7e SC |
14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14306 | (exit $ac_status); } && | |
6ebeb4c7 | 14307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14309 | (eval $ac_try) 2>&5 | |
14310 | ac_status=$? | |
14311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14312 | (exit $ac_status); }; } && | |
14313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14315 | (eval $ac_try) 2>&5 | |
14316 | ac_status=$? | |
14317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14318 | (exit $ac_status); }; }; then | |
14319 | ac_cv_lib_cExt_drand48=yes | |
14320 | else | |
14321 | echo "$as_me: failed program was:" >&5 | |
14322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14323 | ||
14324 | ac_cv_lib_cExt_drand48=no | |
14325 | fi | |
ac1cb8d3 VS |
14326 | rm -f conftest.err conftest.$ac_objext \ |
14327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14328 | LIBS=$ac_check_lib_save_LIBS |
14329 | fi | |
14330 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
14331 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
14332 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
14333 | LIBS="$LIBS -lcExt" | |
14334 | fi | |
14335 | ||
14336 | else | |
14337 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
14338 | fi | |
69120ee4 VZ |
14339 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
14340 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
14341 | if test "${wx_cv_gccversion+set}" = set; then |
14342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14343 | else | |
14344 | ||
391a765e VS |
14345 | if test "$cross_compiling" = yes; then |
14346 | wx_cv_gccversion="EMX2" | |
14347 | ||
14348 | else | |
14349 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
14350 | /* confdefs.h. */ |
14351 | _ACEOF | |
14352 | cat confdefs.h >>conftest.$ac_ext | |
14353 | cat >>conftest.$ac_ext <<_ACEOF | |
14354 | /* end confdefs.h. */ | |
14355 | ||
391a765e | 14356 | #include <stdio.h> |
a848cd7e | 14357 | |
391a765e VS |
14358 | int main() |
14359 | { | |
14360 | FILE *f=fopen("conftestval", "w"); | |
14361 | if (!f) exit(1); | |
14362 | fprintf(f, | |
a848cd7e | 14363 | #if (__GNUC__ < 3) |
391a765e VS |
14364 | "EMX2" |
14365 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
14366 | "EMX3" | |
14367 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
14368 | "Innotek5" | |
14369 | #else | |
14370 | "Innotek6" | |
a848cd7e | 14371 | #endif |
391a765e VS |
14372 | ); |
14373 | exit(0); | |
14374 | } | |
a848cd7e | 14375 | |
a848cd7e | 14376 | _ACEOF |
391a765e VS |
14377 | rm -f conftest$ac_exeext |
14378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14379 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
14380 | ac_status=$? |
14381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 14382 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
14383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14384 | (eval $ac_try) 2>&5 | |
14385 | ac_status=$? | |
14386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14387 | (exit $ac_status); }; }; then | |
391a765e | 14388 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 14389 | else |
391a765e VS |
14390 | echo "$as_me: program exited with status $ac_status" >&5 |
14391 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
14392 | sed 's/^/| /' conftest.$ac_ext >&5 |
14393 | ||
391a765e VS |
14394 | ( exit $ac_status ) |
14395 | wx_cv_gccversion="EMX2" | |
a848cd7e | 14396 | fi |
391a765e | 14397 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14398 | fi |
a848cd7e SC |
14399 | |
14400 | fi | |
14401 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
14402 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 14403 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
14404 | LIBS="$LIBS -lstdcpp" |
14405 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
14406 | else | |
391a765e | 14407 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 14408 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
14409 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
14410 | else | |
14411 | LIBS="$LIBS -lstdc++" | |
14412 | fi | |
14413 | fi | |
94acd38e DE |
14414 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
14415 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
14416 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
14417 | wxUSE_OMF=yes | |
2da0c077 | 14418 | enable_omf=yes |
a848cd7e SC |
14419 | fi |
14420 | ;; | |
14421 | *) | |
14422 | ||
14423 | ||
14424 | ||
14425 | ac_ext=cc | |
14426 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14427 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14428 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14429 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14430 | ||
14431 | ||
95986553 | 14432 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
14433 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
14434 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
14435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14436 | else | |
14437 | ||
14438 | cat >conftest.$ac_ext <<_ACEOF | |
14439 | /* confdefs.h. */ | |
14440 | _ACEOF | |
14441 | cat confdefs.h >>conftest.$ac_ext | |
14442 | cat >>conftest.$ac_ext <<_ACEOF | |
14443 | /* end confdefs.h. */ | |
14444 | ||
14445 | #include <string.h> | |
14446 | ||
14447 | int | |
14448 | main () | |
14449 | { | |
14450 | ||
14451 | strcasecmp("foo", "bar"); | |
14452 | ||
14453 | ; | |
14454 | return 0; | |
14455 | } | |
14456 | _ACEOF | |
14457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14459 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14460 | ac_status=$? |
ac1cb8d3 VS |
14461 | grep -v '^ *+' conftest.er1 >conftest.err |
14462 | rm -f conftest.er1 | |
14463 | cat conftest.err >&5 | |
a848cd7e SC |
14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14465 | (exit $ac_status); } && | |
6ebeb4c7 | 14466 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14468 | (eval $ac_try) 2>&5 | |
14469 | ac_status=$? | |
14470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14471 | (exit $ac_status); }; } && | |
14472 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14474 | (eval $ac_try) 2>&5 | |
14475 | ac_status=$? | |
14476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14477 | (exit $ac_status); }; }; then | |
14478 | ac_cv_string_strcasecmp=yes | |
14479 | else | |
14480 | echo "$as_me: failed program was:" >&5 | |
14481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14482 | ||
14483 | ac_cv_string_strcasecmp=no | |
14484 | ||
14485 | fi | |
ac1cb8d3 VS |
14486 | rm -f conftest.err conftest.$ac_objext \ |
14487 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14488 | |
14489 | fi | |
14490 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
14491 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
14492 | ||
14493 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
14494 | cat >>confdefs.h <<\_ACEOF | |
14495 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
14496 | _ACEOF | |
14497 | ||
14498 | else | |
14499 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
14500 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
14501 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
14502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14503 | else | |
14504 | ||
14505 | cat >conftest.$ac_ext <<_ACEOF | |
14506 | /* confdefs.h. */ | |
14507 | _ACEOF | |
14508 | cat confdefs.h >>conftest.$ac_ext | |
14509 | cat >>conftest.$ac_ext <<_ACEOF | |
14510 | /* end confdefs.h. */ | |
14511 | ||
14512 | #include <strings.h> | |
14513 | ||
14514 | int | |
14515 | main () | |
14516 | { | |
14517 | ||
14518 | strcasecmp("foo", "bar"); | |
14519 | ||
14520 | ; | |
14521 | return 0; | |
14522 | } | |
14523 | _ACEOF | |
14524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14526 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14527 | ac_status=$? |
ac1cb8d3 VS |
14528 | grep -v '^ *+' conftest.er1 >conftest.err |
14529 | rm -f conftest.er1 | |
14530 | cat conftest.err >&5 | |
a848cd7e SC |
14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14532 | (exit $ac_status); } && | |
6ebeb4c7 | 14533 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14535 | (eval $ac_try) 2>&5 | |
14536 | ac_status=$? | |
14537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14538 | (exit $ac_status); }; } && | |
14539 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14541 | (eval $ac_try) 2>&5 | |
14542 | ac_status=$? | |
14543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14544 | (exit $ac_status); }; }; then | |
14545 | ac_cv_strings_strcasecmp=yes | |
14546 | else | |
14547 | echo "$as_me: failed program was:" >&5 | |
14548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14549 | ||
14550 | ac_cv_strings_strcasecmp=no | |
14551 | ||
14552 | fi | |
ac1cb8d3 VS |
14553 | rm -f conftest.err conftest.$ac_objext \ |
14554 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14555 | |
14556 | fi | |
14557 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
14558 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
14559 | ||
0c3c69fc | 14560 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
14561 | cat >>confdefs.h <<\_ACEOF |
14562 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
14563 | _ACEOF | |
14564 | ||
14565 | else | |
14566 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
14567 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
14568 | { (exit 1); exit 1; }; } | |
14569 | fi | |
14570 | fi | |
14571 | ||
14572 | ac_ext=c | |
14573 | ac_cpp='$CPP $CPPFLAGS' | |
14574 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14575 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14576 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14577 | ||
14578 | ;; | |
14579 | esac | |
14580 | ||
14581 | ||
14582 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
14583 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
14584 | if test "${ac_cv_header_stdc+set}" = set; then | |
14585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14586 | else | |
14587 | cat >conftest.$ac_ext <<_ACEOF | |
14588 | /* confdefs.h. */ | |
14589 | _ACEOF | |
14590 | cat confdefs.h >>conftest.$ac_ext | |
14591 | cat >>conftest.$ac_ext <<_ACEOF | |
14592 | /* end confdefs.h. */ | |
14593 | #include <stdlib.h> | |
14594 | #include <stdarg.h> | |
14595 | #include <string.h> | |
14596 | #include <float.h> | |
14597 | ||
14598 | int | |
14599 | main () | |
14600 | { | |
14601 | ||
14602 | ; | |
14603 | return 0; | |
14604 | } | |
14605 | _ACEOF | |
14606 | rm -f conftest.$ac_objext | |
14607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14608 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14609 | ac_status=$? |
ac1cb8d3 VS |
14610 | grep -v '^ *+' conftest.er1 >conftest.err |
14611 | rm -f conftest.er1 | |
14612 | cat conftest.err >&5 | |
a848cd7e SC |
14613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14614 | (exit $ac_status); } && | |
6ebeb4c7 | 14615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14617 | (eval $ac_try) 2>&5 | |
14618 | ac_status=$? | |
14619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14620 | (exit $ac_status); }; } && | |
14621 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14623 | (eval $ac_try) 2>&5 | |
14624 | ac_status=$? | |
14625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14626 | (exit $ac_status); }; }; then | |
14627 | ac_cv_header_stdc=yes | |
14628 | else | |
14629 | echo "$as_me: failed program was:" >&5 | |
14630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14631 | ||
14632 | ac_cv_header_stdc=no | |
14633 | fi | |
ac1cb8d3 | 14634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14635 | |
14636 | if test $ac_cv_header_stdc = yes; then | |
14637 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14638 | cat >conftest.$ac_ext <<_ACEOF | |
14639 | /* confdefs.h. */ | |
14640 | _ACEOF | |
14641 | cat confdefs.h >>conftest.$ac_ext | |
14642 | cat >>conftest.$ac_ext <<_ACEOF | |
14643 | /* end confdefs.h. */ | |
14644 | #include <string.h> | |
14645 | ||
14646 | _ACEOF | |
14647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14648 | $EGREP "memchr" >/dev/null 2>&1; then | |
14649 | : | |
14650 | else | |
14651 | ac_cv_header_stdc=no | |
14652 | fi | |
14653 | rm -f conftest* | |
14654 | ||
14655 | fi | |
14656 | ||
14657 | if test $ac_cv_header_stdc = yes; then | |
14658 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14659 | cat >conftest.$ac_ext <<_ACEOF | |
14660 | /* confdefs.h. */ | |
14661 | _ACEOF | |
14662 | cat confdefs.h >>conftest.$ac_ext | |
14663 | cat >>conftest.$ac_ext <<_ACEOF | |
14664 | /* end confdefs.h. */ | |
14665 | #include <stdlib.h> | |
14666 | ||
14667 | _ACEOF | |
14668 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14669 | $EGREP "free" >/dev/null 2>&1; then | |
14670 | : | |
14671 | else | |
14672 | ac_cv_header_stdc=no | |
14673 | fi | |
14674 | rm -f conftest* | |
14675 | ||
14676 | fi | |
14677 | ||
14678 | if test $ac_cv_header_stdc = yes; then | |
14679 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14680 | if test "$cross_compiling" = yes; then | |
14681 | : | |
14682 | else | |
14683 | cat >conftest.$ac_ext <<_ACEOF | |
14684 | /* confdefs.h. */ | |
14685 | _ACEOF | |
14686 | cat confdefs.h >>conftest.$ac_ext | |
14687 | cat >>conftest.$ac_ext <<_ACEOF | |
14688 | /* end confdefs.h. */ | |
14689 | #include <ctype.h> | |
14690 | #if ((' ' & 0x0FF) == 0x020) | |
14691 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14692 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14693 | #else | |
14694 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
14695 | (('a' <= (c) && (c) <= 'i') \ |
14696 | || ('j' <= (c) && (c) <= 'r') \ | |
14697 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
14698 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
14699 | #endif | |
14700 | ||
14701 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
14702 | int | |
14703 | main () | |
14704 | { | |
14705 | int i; | |
14706 | for (i = 0; i < 256; i++) | |
14707 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 14708 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
14709 | exit(2); |
14710 | exit (0); | |
14711 | } | |
14712 | _ACEOF | |
14713 | rm -f conftest$ac_exeext | |
14714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14715 | (eval $ac_link) 2>&5 | |
14716 | ac_status=$? | |
14717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14720 | (eval $ac_try) 2>&5 | |
14721 | ac_status=$? | |
14722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14723 | (exit $ac_status); }; }; then | |
14724 | : | |
14725 | else | |
14726 | echo "$as_me: program exited with status $ac_status" >&5 | |
14727 | echo "$as_me: failed program was:" >&5 | |
14728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14729 | ||
14730 | ( exit $ac_status ) | |
14731 | ac_cv_header_stdc=no | |
14732 | fi | |
ac1cb8d3 | 14733 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14734 | fi |
14735 | fi | |
14736 | fi | |
14737 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
14738 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
14739 | if test $ac_cv_header_stdc = yes; then | |
14740 | ||
14741 | cat >>confdefs.h <<\_ACEOF | |
14742 | #define STDC_HEADERS 1 | |
14743 | _ACEOF | |
14744 | ||
14745 | fi | |
14746 | ||
14747 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
14748 | ||
14749 | ||
14750 | ||
14751 | ||
14752 | ||
14753 | ||
14754 | ||
14755 | ||
14756 | ||
14757 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 14758 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
14759 | do |
14760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14761 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14765 | else | |
14766 | cat >conftest.$ac_ext <<_ACEOF | |
14767 | /* confdefs.h. */ | |
14768 | _ACEOF | |
14769 | cat confdefs.h >>conftest.$ac_ext | |
14770 | cat >>conftest.$ac_ext <<_ACEOF | |
14771 | /* end confdefs.h. */ | |
14772 | $ac_includes_default | |
14773 | ||
14774 | #include <$ac_header> | |
14775 | _ACEOF | |
14776 | rm -f conftest.$ac_objext | |
14777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14778 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14779 | ac_status=$? |
ac1cb8d3 VS |
14780 | grep -v '^ *+' conftest.er1 >conftest.err |
14781 | rm -f conftest.er1 | |
14782 | cat conftest.err >&5 | |
a848cd7e SC |
14783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14784 | (exit $ac_status); } && | |
6ebeb4c7 | 14785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14787 | (eval $ac_try) 2>&5 | |
14788 | ac_status=$? | |
14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14790 | (exit $ac_status); }; } && | |
14791 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14793 | (eval $ac_try) 2>&5 | |
14794 | ac_status=$? | |
14795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14796 | (exit $ac_status); }; }; then | |
14797 | eval "$as_ac_Header=yes" | |
14798 | else | |
14799 | echo "$as_me: failed program was:" >&5 | |
14800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14801 | ||
14802 | eval "$as_ac_Header=no" | |
14803 | fi | |
ac1cb8d3 | 14804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14805 | fi |
14806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14807 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14808 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14809 | cat >>confdefs.h <<_ACEOF | |
14810 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14811 | _ACEOF | |
14812 | ||
14813 | fi | |
14814 | ||
14815 | done | |
14816 | ||
14817 | ||
14818 | ||
14819 | for ac_header in stdlib.h | |
14820 | do | |
14821 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14823 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14824 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14827 | fi | |
14828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14830 | else | |
14831 | # Is the header compilable? | |
14832 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14833 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14834 | cat >conftest.$ac_ext <<_ACEOF | |
14835 | /* confdefs.h. */ | |
14836 | _ACEOF | |
14837 | cat confdefs.h >>conftest.$ac_ext | |
14838 | cat >>conftest.$ac_ext <<_ACEOF | |
14839 | /* end confdefs.h. */ | |
14840 | $ac_includes_default | |
14841 | #include <$ac_header> | |
14842 | _ACEOF | |
14843 | rm -f conftest.$ac_objext | |
14844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14845 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14846 | ac_status=$? |
ac1cb8d3 VS |
14847 | grep -v '^ *+' conftest.er1 >conftest.err |
14848 | rm -f conftest.er1 | |
14849 | cat conftest.err >&5 | |
a848cd7e SC |
14850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14851 | (exit $ac_status); } && | |
6ebeb4c7 | 14852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14854 | (eval $ac_try) 2>&5 | |
14855 | ac_status=$? | |
14856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14857 | (exit $ac_status); }; } && | |
14858 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14860 | (eval $ac_try) 2>&5 | |
14861 | ac_status=$? | |
14862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14863 | (exit $ac_status); }; }; then | |
14864 | ac_header_compiler=yes | |
14865 | else | |
14866 | echo "$as_me: failed program was:" >&5 | |
14867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14868 | ||
14869 | ac_header_compiler=no | |
14870 | fi | |
ac1cb8d3 | 14871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14872 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14873 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14874 | ||
14875 | # Is the header present? | |
14876 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14877 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14878 | cat >conftest.$ac_ext <<_ACEOF | |
14879 | /* confdefs.h. */ | |
14880 | _ACEOF | |
14881 | cat confdefs.h >>conftest.$ac_ext | |
14882 | cat >>conftest.$ac_ext <<_ACEOF | |
14883 | /* end confdefs.h. */ | |
14884 | #include <$ac_header> | |
14885 | _ACEOF | |
14886 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14887 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14888 | ac_status=$? | |
14889 | grep -v '^ *+' conftest.er1 >conftest.err | |
14890 | rm -f conftest.er1 | |
14891 | cat conftest.err >&5 | |
14892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14893 | (exit $ac_status); } >/dev/null; then | |
14894 | if test -s conftest.err; then | |
14895 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14896 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14897 | else |
14898 | ac_cpp_err= | |
14899 | fi | |
14900 | else | |
14901 | ac_cpp_err=yes | |
14902 | fi | |
14903 | if test -z "$ac_cpp_err"; then | |
14904 | ac_header_preproc=yes | |
14905 | else | |
14906 | echo "$as_me: failed program was:" >&5 | |
14907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14908 | ||
14909 | ac_header_preproc=no | |
14910 | fi | |
14911 | rm -f conftest.err conftest.$ac_ext | |
14912 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14913 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14914 | ||
14915 | # So? What about this header? | |
ac1cb8d3 VS |
14916 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14917 | yes:no: ) | |
a848cd7e SC |
14918 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14919 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14921 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14922 | ac_header_preproc=yes | |
a848cd7e | 14923 | ;; |
ac1cb8d3 | 14924 | no:yes:* ) |
a848cd7e SC |
14925 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14926 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14927 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14928 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14929 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14930 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14931 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14932 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14934 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14935 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14936 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14937 | ( |
14938 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14939 | ## ----------------------------------------- ## |
14940 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14941 | ## ----------------------------------------- ## | |
a848cd7e SC |
14942 | _ASBOX |
14943 | ) | | |
14944 | sed "s/^/$as_me: WARNING: /" >&2 | |
14945 | ;; | |
14946 | esac | |
14947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14951 | else | |
ac1cb8d3 | 14952 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14953 | fi |
14954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14956 | ||
14957 | fi | |
14958 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14959 | cat >>confdefs.h <<_ACEOF | |
14960 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14961 | _ACEOF | |
14962 | ||
14963 | fi | |
14964 | ||
14965 | done | |
14966 | ||
14967 | ||
14968 | for ac_header in malloc.h | |
14969 | do | |
14970 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14972 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14976 | fi | |
14977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14978 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14979 | else | |
14980 | # Is the header compilable? | |
14981 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14982 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14983 | cat >conftest.$ac_ext <<_ACEOF | |
14984 | /* confdefs.h. */ | |
14985 | _ACEOF | |
14986 | cat confdefs.h >>conftest.$ac_ext | |
14987 | cat >>conftest.$ac_ext <<_ACEOF | |
14988 | /* end confdefs.h. */ | |
14989 | $ac_includes_default | |
14990 | #include <$ac_header> | |
14991 | _ACEOF | |
14992 | rm -f conftest.$ac_objext | |
14993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14994 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14995 | ac_status=$? |
ac1cb8d3 VS |
14996 | grep -v '^ *+' conftest.er1 >conftest.err |
14997 | rm -f conftest.er1 | |
14998 | cat conftest.err >&5 | |
a848cd7e SC |
14999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15000 | (exit $ac_status); } && | |
6ebeb4c7 | 15001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15003 | (eval $ac_try) 2>&5 | |
15004 | ac_status=$? | |
15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15006 | (exit $ac_status); }; } && | |
15007 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15009 | (eval $ac_try) 2>&5 | |
15010 | ac_status=$? | |
15011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15012 | (exit $ac_status); }; }; then | |
15013 | ac_header_compiler=yes | |
15014 | else | |
15015 | echo "$as_me: failed program was:" >&5 | |
15016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15017 | ||
15018 | ac_header_compiler=no | |
15019 | fi | |
ac1cb8d3 | 15020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15021 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15022 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15023 | ||
15024 | # Is the header present? | |
15025 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15026 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15027 | cat >conftest.$ac_ext <<_ACEOF | |
15028 | /* confdefs.h. */ | |
15029 | _ACEOF | |
15030 | cat confdefs.h >>conftest.$ac_ext | |
15031 | cat >>conftest.$ac_ext <<_ACEOF | |
15032 | /* end confdefs.h. */ | |
15033 | #include <$ac_header> | |
15034 | _ACEOF | |
15035 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15036 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15037 | ac_status=$? | |
15038 | grep -v '^ *+' conftest.er1 >conftest.err | |
15039 | rm -f conftest.er1 | |
15040 | cat conftest.err >&5 | |
15041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15042 | (exit $ac_status); } >/dev/null; then | |
15043 | if test -s conftest.err; then | |
15044 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15045 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15046 | else |
15047 | ac_cpp_err= | |
15048 | fi | |
15049 | else | |
15050 | ac_cpp_err=yes | |
15051 | fi | |
15052 | if test -z "$ac_cpp_err"; then | |
15053 | ac_header_preproc=yes | |
15054 | else | |
15055 | echo "$as_me: failed program was:" >&5 | |
15056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15057 | ||
15058 | ac_header_preproc=no | |
15059 | fi | |
15060 | rm -f conftest.err conftest.$ac_ext | |
15061 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15062 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15063 | ||
15064 | # So? What about this header? | |
ac1cb8d3 VS |
15065 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15066 | yes:no: ) | |
a848cd7e SC |
15067 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15068 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15069 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15070 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15071 | ac_header_preproc=yes | |
a848cd7e | 15072 | ;; |
ac1cb8d3 | 15073 | no:yes:* ) |
a848cd7e SC |
15074 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15075 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15076 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15077 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15078 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15079 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15080 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15081 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15082 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15083 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15084 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15085 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15086 | ( |
15087 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15088 | ## ----------------------------------------- ## |
15089 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15090 | ## ----------------------------------------- ## | |
a848cd7e SC |
15091 | _ASBOX |
15092 | ) | | |
15093 | sed "s/^/$as_me: WARNING: /" >&2 | |
15094 | ;; | |
15095 | esac | |
15096 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15097 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15100 | else | |
ac1cb8d3 | 15101 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15102 | fi |
15103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15104 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15105 | ||
15106 | fi | |
15107 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15108 | cat >>confdefs.h <<_ACEOF | |
15109 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15110 | _ACEOF | |
15111 | ||
15112 | fi | |
15113 | ||
15114 | done | |
15115 | ||
15116 | ||
15117 | for ac_header in unistd.h | |
15118 | do | |
15119 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15120 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15121 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15122 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15125 | fi | |
15126 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15127 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15128 | else | |
15129 | # Is the header compilable? | |
15130 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15131 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15132 | cat >conftest.$ac_ext <<_ACEOF | |
15133 | /* confdefs.h. */ | |
15134 | _ACEOF | |
15135 | cat confdefs.h >>conftest.$ac_ext | |
15136 | cat >>conftest.$ac_ext <<_ACEOF | |
15137 | /* end confdefs.h. */ | |
15138 | $ac_includes_default | |
15139 | #include <$ac_header> | |
15140 | _ACEOF | |
15141 | rm -f conftest.$ac_objext | |
15142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15143 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15144 | ac_status=$? |
ac1cb8d3 VS |
15145 | grep -v '^ *+' conftest.er1 >conftest.err |
15146 | rm -f conftest.er1 | |
15147 | cat conftest.err >&5 | |
a848cd7e SC |
15148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15149 | (exit $ac_status); } && | |
6ebeb4c7 | 15150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15152 | (eval $ac_try) 2>&5 | |
15153 | ac_status=$? | |
15154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15155 | (exit $ac_status); }; } && | |
15156 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15158 | (eval $ac_try) 2>&5 | |
15159 | ac_status=$? | |
15160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15161 | (exit $ac_status); }; }; then | |
15162 | ac_header_compiler=yes | |
15163 | else | |
15164 | echo "$as_me: failed program was:" >&5 | |
15165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15166 | ||
15167 | ac_header_compiler=no | |
15168 | fi | |
ac1cb8d3 | 15169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15170 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15171 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15172 | ||
15173 | # Is the header present? | |
15174 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15175 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15176 | cat >conftest.$ac_ext <<_ACEOF | |
15177 | /* confdefs.h. */ | |
15178 | _ACEOF | |
15179 | cat confdefs.h >>conftest.$ac_ext | |
15180 | cat >>conftest.$ac_ext <<_ACEOF | |
15181 | /* end confdefs.h. */ | |
15182 | #include <$ac_header> | |
15183 | _ACEOF | |
15184 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15185 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15186 | ac_status=$? | |
15187 | grep -v '^ *+' conftest.er1 >conftest.err | |
15188 | rm -f conftest.er1 | |
15189 | cat conftest.err >&5 | |
15190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15191 | (exit $ac_status); } >/dev/null; then | |
15192 | if test -s conftest.err; then | |
15193 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15194 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15195 | else |
15196 | ac_cpp_err= | |
15197 | fi | |
15198 | else | |
15199 | ac_cpp_err=yes | |
15200 | fi | |
15201 | if test -z "$ac_cpp_err"; then | |
15202 | ac_header_preproc=yes | |
15203 | else | |
15204 | echo "$as_me: failed program was:" >&5 | |
15205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15206 | ||
15207 | ac_header_preproc=no | |
15208 | fi | |
15209 | rm -f conftest.err conftest.$ac_ext | |
15210 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15211 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15212 | ||
15213 | # So? What about this header? | |
ac1cb8d3 VS |
15214 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15215 | yes:no: ) | |
a848cd7e SC |
15216 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15217 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15218 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15219 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15220 | ac_header_preproc=yes | |
a848cd7e | 15221 | ;; |
ac1cb8d3 | 15222 | no:yes:* ) |
a848cd7e SC |
15223 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15224 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15225 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15226 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15227 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15228 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15229 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15230 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15231 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15232 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15233 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15234 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15235 | ( |
15236 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15237 | ## ----------------------------------------- ## |
15238 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15239 | ## ----------------------------------------- ## | |
a848cd7e SC |
15240 | _ASBOX |
15241 | ) | | |
15242 | sed "s/^/$as_me: WARNING: /" >&2 | |
15243 | ;; | |
15244 | esac | |
15245 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15249 | else | |
ac1cb8d3 | 15250 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15251 | fi |
15252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15253 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15254 | ||
15255 | fi | |
15256 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15257 | cat >>confdefs.h <<_ACEOF | |
15258 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15259 | _ACEOF | |
15260 | ||
15261 | fi | |
15262 | ||
15263 | done | |
15264 | ||
15265 | ||
15266 | for ac_header in wchar.h | |
15267 | do | |
15268 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15269 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15270 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15272 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15274 | fi | |
15275 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15276 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15277 | else | |
15278 | # Is the header compilable? | |
15279 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15280 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15281 | cat >conftest.$ac_ext <<_ACEOF | |
15282 | /* confdefs.h. */ | |
15283 | _ACEOF | |
15284 | cat confdefs.h >>conftest.$ac_ext | |
15285 | cat >>conftest.$ac_ext <<_ACEOF | |
15286 | /* end confdefs.h. */ | |
15287 | $ac_includes_default | |
15288 | #include <$ac_header> | |
15289 | _ACEOF | |
15290 | rm -f conftest.$ac_objext | |
15291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15292 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15293 | ac_status=$? |
ac1cb8d3 VS |
15294 | grep -v '^ *+' conftest.er1 >conftest.err |
15295 | rm -f conftest.er1 | |
15296 | cat conftest.err >&5 | |
a848cd7e SC |
15297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15298 | (exit $ac_status); } && | |
6ebeb4c7 | 15299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15301 | (eval $ac_try) 2>&5 | |
15302 | ac_status=$? | |
15303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15304 | (exit $ac_status); }; } && | |
15305 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15307 | (eval $ac_try) 2>&5 | |
15308 | ac_status=$? | |
15309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15310 | (exit $ac_status); }; }; then | |
15311 | ac_header_compiler=yes | |
15312 | else | |
15313 | echo "$as_me: failed program was:" >&5 | |
15314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15315 | ||
15316 | ac_header_compiler=no | |
15317 | fi | |
ac1cb8d3 | 15318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15319 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15320 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15321 | ||
15322 | # Is the header present? | |
15323 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15324 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15325 | cat >conftest.$ac_ext <<_ACEOF | |
15326 | /* confdefs.h. */ | |
15327 | _ACEOF | |
15328 | cat confdefs.h >>conftest.$ac_ext | |
15329 | cat >>conftest.$ac_ext <<_ACEOF | |
15330 | /* end confdefs.h. */ | |
15331 | #include <$ac_header> | |
15332 | _ACEOF | |
15333 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15334 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15335 | ac_status=$? | |
15336 | grep -v '^ *+' conftest.er1 >conftest.err | |
15337 | rm -f conftest.er1 | |
15338 | cat conftest.err >&5 | |
15339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15340 | (exit $ac_status); } >/dev/null; then | |
15341 | if test -s conftest.err; then | |
15342 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15343 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15344 | else |
15345 | ac_cpp_err= | |
15346 | fi | |
15347 | else | |
15348 | ac_cpp_err=yes | |
15349 | fi | |
15350 | if test -z "$ac_cpp_err"; then | |
15351 | ac_header_preproc=yes | |
15352 | else | |
15353 | echo "$as_me: failed program was:" >&5 | |
15354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15355 | ||
15356 | ac_header_preproc=no | |
15357 | fi | |
15358 | rm -f conftest.err conftest.$ac_ext | |
15359 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15360 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15361 | ||
15362 | # So? What about this header? | |
ac1cb8d3 VS |
15363 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15364 | yes:no: ) | |
a848cd7e SC |
15365 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15366 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15367 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15368 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15369 | ac_header_preproc=yes | |
a848cd7e | 15370 | ;; |
ac1cb8d3 | 15371 | no:yes:* ) |
a848cd7e SC |
15372 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15373 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15374 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15375 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15376 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15377 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15378 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15379 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15381 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15382 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15383 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15384 | ( |
15385 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15386 | ## ----------------------------------------- ## |
15387 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15388 | ## ----------------------------------------- ## | |
a848cd7e SC |
15389 | _ASBOX |
15390 | ) | | |
15391 | sed "s/^/$as_me: WARNING: /" >&2 | |
15392 | ;; | |
15393 | esac | |
15394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15398 | else | |
ac1cb8d3 | 15399 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15400 | fi |
15401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15402 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15403 | ||
15404 | fi | |
15405 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15406 | cat >>confdefs.h <<_ACEOF | |
15407 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15408 | _ACEOF | |
15409 | ||
15410 | fi | |
15411 | ||
15412 | done | |
15413 | ||
15414 | ||
15415 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
15416 | ||
15417 | for ac_header in wcstr.h | |
15418 | do | |
15419 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15421 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15422 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15423 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15425 | fi | |
15426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15427 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15428 | else | |
15429 | # Is the header compilable? | |
15430 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15431 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15432 | cat >conftest.$ac_ext <<_ACEOF | |
15433 | /* confdefs.h. */ | |
15434 | _ACEOF | |
15435 | cat confdefs.h >>conftest.$ac_ext | |
15436 | cat >>conftest.$ac_ext <<_ACEOF | |
15437 | /* end confdefs.h. */ | |
15438 | $ac_includes_default | |
15439 | #include <$ac_header> | |
15440 | _ACEOF | |
15441 | rm -f conftest.$ac_objext | |
15442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15443 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15444 | ac_status=$? |
ac1cb8d3 VS |
15445 | grep -v '^ *+' conftest.er1 >conftest.err |
15446 | rm -f conftest.er1 | |
15447 | cat conftest.err >&5 | |
a848cd7e SC |
15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15449 | (exit $ac_status); } && | |
6ebeb4c7 | 15450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15452 | (eval $ac_try) 2>&5 | |
15453 | ac_status=$? | |
15454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15455 | (exit $ac_status); }; } && | |
15456 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15458 | (eval $ac_try) 2>&5 | |
15459 | ac_status=$? | |
15460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15461 | (exit $ac_status); }; }; then | |
15462 | ac_header_compiler=yes | |
15463 | else | |
15464 | echo "$as_me: failed program was:" >&5 | |
15465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15466 | ||
15467 | ac_header_compiler=no | |
15468 | fi | |
ac1cb8d3 | 15469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15470 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15471 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15472 | ||
15473 | # Is the header present? | |
15474 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15475 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15476 | cat >conftest.$ac_ext <<_ACEOF | |
15477 | /* confdefs.h. */ | |
15478 | _ACEOF | |
15479 | cat confdefs.h >>conftest.$ac_ext | |
15480 | cat >>conftest.$ac_ext <<_ACEOF | |
15481 | /* end confdefs.h. */ | |
15482 | #include <$ac_header> | |
15483 | _ACEOF | |
15484 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15485 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15486 | ac_status=$? | |
15487 | grep -v '^ *+' conftest.er1 >conftest.err | |
15488 | rm -f conftest.er1 | |
15489 | cat conftest.err >&5 | |
15490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15491 | (exit $ac_status); } >/dev/null; then | |
15492 | if test -s conftest.err; then | |
15493 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15494 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15495 | else |
15496 | ac_cpp_err= | |
15497 | fi | |
15498 | else | |
15499 | ac_cpp_err=yes | |
15500 | fi | |
15501 | if test -z "$ac_cpp_err"; then | |
15502 | ac_header_preproc=yes | |
15503 | else | |
15504 | echo "$as_me: failed program was:" >&5 | |
15505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15506 | ||
15507 | ac_header_preproc=no | |
15508 | fi | |
15509 | rm -f conftest.err conftest.$ac_ext | |
15510 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15511 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15512 | ||
15513 | # So? What about this header? | |
ac1cb8d3 VS |
15514 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15515 | yes:no: ) | |
a848cd7e SC |
15516 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15517 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15518 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15519 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15520 | ac_header_preproc=yes | |
a848cd7e | 15521 | ;; |
ac1cb8d3 | 15522 | no:yes:* ) |
a848cd7e SC |
15523 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15524 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15525 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15526 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15527 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15528 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15529 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15530 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15531 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15532 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15533 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15534 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15535 | ( |
15536 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15537 | ## ----------------------------------------- ## |
15538 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15539 | ## ----------------------------------------- ## | |
a848cd7e SC |
15540 | _ASBOX |
15541 | ) | | |
15542 | sed "s/^/$as_me: WARNING: /" >&2 | |
15543 | ;; | |
15544 | esac | |
15545 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15549 | else | |
ac1cb8d3 | 15550 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15551 | fi |
15552 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15553 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15554 | ||
15555 | fi | |
15556 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15557 | cat >>confdefs.h <<_ACEOF | |
15558 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15559 | _ACEOF | |
15560 | ||
15561 | fi | |
15562 | ||
15563 | done | |
15564 | ||
15565 | fi | |
15566 | ||
15567 | ||
15568 | for ac_header in fnmatch.h | |
15569 | do | |
15570 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15572 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15573 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15574 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15576 | fi | |
15577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15579 | else | |
15580 | # Is the header compilable? | |
15581 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15582 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15583 | cat >conftest.$ac_ext <<_ACEOF | |
15584 | /* confdefs.h. */ | |
15585 | _ACEOF | |
15586 | cat confdefs.h >>conftest.$ac_ext | |
15587 | cat >>conftest.$ac_ext <<_ACEOF | |
15588 | /* end confdefs.h. */ | |
15589 | $ac_includes_default | |
15590 | #include <$ac_header> | |
15591 | _ACEOF | |
15592 | rm -f conftest.$ac_objext | |
15593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15594 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15595 | ac_status=$? |
ac1cb8d3 VS |
15596 | grep -v '^ *+' conftest.er1 >conftest.err |
15597 | rm -f conftest.er1 | |
15598 | cat conftest.err >&5 | |
a848cd7e SC |
15599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15600 | (exit $ac_status); } && | |
6ebeb4c7 | 15601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15603 | (eval $ac_try) 2>&5 | |
15604 | ac_status=$? | |
15605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15606 | (exit $ac_status); }; } && | |
15607 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15609 | (eval $ac_try) 2>&5 | |
15610 | ac_status=$? | |
15611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15612 | (exit $ac_status); }; }; then | |
15613 | ac_header_compiler=yes | |
15614 | else | |
15615 | echo "$as_me: failed program was:" >&5 | |
15616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15617 | ||
15618 | ac_header_compiler=no | |
15619 | fi | |
ac1cb8d3 | 15620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15621 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15622 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15623 | ||
15624 | # Is the header present? | |
15625 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15626 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15627 | cat >conftest.$ac_ext <<_ACEOF | |
15628 | /* confdefs.h. */ | |
15629 | _ACEOF | |
15630 | cat confdefs.h >>conftest.$ac_ext | |
15631 | cat >>conftest.$ac_ext <<_ACEOF | |
15632 | /* end confdefs.h. */ | |
15633 | #include <$ac_header> | |
15634 | _ACEOF | |
15635 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15636 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15637 | ac_status=$? | |
15638 | grep -v '^ *+' conftest.er1 >conftest.err | |
15639 | rm -f conftest.er1 | |
15640 | cat conftest.err >&5 | |
15641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15642 | (exit $ac_status); } >/dev/null; then | |
15643 | if test -s conftest.err; then | |
15644 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15645 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15646 | else |
15647 | ac_cpp_err= | |
15648 | fi | |
15649 | else | |
15650 | ac_cpp_err=yes | |
15651 | fi | |
15652 | if test -z "$ac_cpp_err"; then | |
15653 | ac_header_preproc=yes | |
15654 | else | |
15655 | echo "$as_me: failed program was:" >&5 | |
15656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15657 | ||
15658 | ac_header_preproc=no | |
15659 | fi | |
15660 | rm -f conftest.err conftest.$ac_ext | |
15661 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15662 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15663 | ||
15664 | # So? What about this header? | |
ac1cb8d3 VS |
15665 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15666 | yes:no: ) | |
a848cd7e SC |
15667 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15668 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15670 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15671 | ac_header_preproc=yes | |
a848cd7e | 15672 | ;; |
ac1cb8d3 | 15673 | no:yes:* ) |
a848cd7e SC |
15674 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15675 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15676 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15677 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15678 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15679 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15680 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15681 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15682 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15683 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15684 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15685 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15686 | ( |
15687 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15688 | ## ----------------------------------------- ## |
15689 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15690 | ## ----------------------------------------- ## | |
a848cd7e SC |
15691 | _ASBOX |
15692 | ) | | |
15693 | sed "s/^/$as_me: WARNING: /" >&2 | |
15694 | ;; | |
15695 | esac | |
15696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15700 | else | |
ac1cb8d3 | 15701 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15702 | fi |
15703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15704 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15705 | ||
15706 | fi | |
15707 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15708 | cat >>confdefs.h <<_ACEOF | |
15709 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15710 | _ACEOF | |
15711 | ||
15712 | fi | |
15713 | ||
15714 | done | |
15715 | ||
15716 | ||
a848cd7e SC |
15717 | |
15718 | for ac_header in langinfo.h | |
15719 | do | |
15720 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15721 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15722 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15723 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15726 | fi | |
15727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15728 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15729 | else | |
15730 | # Is the header compilable? | |
15731 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15732 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15733 | cat >conftest.$ac_ext <<_ACEOF | |
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 | #include <$ac_header> | |
15741 | _ACEOF | |
15742 | rm -f conftest.$ac_objext | |
15743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15744 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15745 | ac_status=$? |
ac1cb8d3 VS |
15746 | grep -v '^ *+' conftest.er1 >conftest.err |
15747 | rm -f conftest.er1 | |
15748 | cat conftest.err >&5 | |
a848cd7e SC |
15749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15750 | (exit $ac_status); } && | |
6ebeb4c7 | 15751 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15753 | (eval $ac_try) 2>&5 | |
15754 | ac_status=$? | |
15755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15756 | (exit $ac_status); }; } && | |
15757 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15759 | (eval $ac_try) 2>&5 | |
15760 | ac_status=$? | |
15761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15762 | (exit $ac_status); }; }; then | |
15763 | ac_header_compiler=yes | |
15764 | else | |
15765 | echo "$as_me: failed program was:" >&5 | |
15766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15767 | ||
15768 | ac_header_compiler=no | |
15769 | fi | |
ac1cb8d3 | 15770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15771 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15772 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15773 | ||
15774 | # Is the header present? | |
15775 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15776 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15777 | cat >conftest.$ac_ext <<_ACEOF | |
15778 | /* confdefs.h. */ | |
15779 | _ACEOF | |
15780 | cat confdefs.h >>conftest.$ac_ext | |
15781 | cat >>conftest.$ac_ext <<_ACEOF | |
15782 | /* end confdefs.h. */ | |
15783 | #include <$ac_header> | |
15784 | _ACEOF | |
15785 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15786 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15787 | ac_status=$? | |
15788 | grep -v '^ *+' conftest.er1 >conftest.err | |
15789 | rm -f conftest.er1 | |
15790 | cat conftest.err >&5 | |
15791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15792 | (exit $ac_status); } >/dev/null; then | |
15793 | if test -s conftest.err; then | |
15794 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15795 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15796 | else |
15797 | ac_cpp_err= | |
15798 | fi | |
15799 | else | |
15800 | ac_cpp_err=yes | |
15801 | fi | |
15802 | if test -z "$ac_cpp_err"; then | |
15803 | ac_header_preproc=yes | |
15804 | else | |
15805 | echo "$as_me: failed program was:" >&5 | |
15806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15807 | ||
15808 | ac_header_preproc=no | |
15809 | fi | |
15810 | rm -f conftest.err conftest.$ac_ext | |
15811 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15812 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15813 | ||
15814 | # So? What about this header? | |
ac1cb8d3 VS |
15815 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15816 | yes:no: ) | |
a848cd7e SC |
15817 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15818 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15819 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15820 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15821 | ac_header_preproc=yes | |
a848cd7e | 15822 | ;; |
ac1cb8d3 | 15823 | no:yes:* ) |
a848cd7e SC |
15824 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15825 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15826 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15827 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15828 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15829 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15830 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15831 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15832 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15833 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15834 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15835 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15836 | ( |
15837 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15838 | ## ----------------------------------------- ## |
15839 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15840 | ## ----------------------------------------- ## | |
a848cd7e SC |
15841 | _ASBOX |
15842 | ) | | |
15843 | sed "s/^/$as_me: WARNING: /" >&2 | |
15844 | ;; | |
15845 | esac | |
15846 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15847 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15848 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15850 | else | |
ac1cb8d3 | 15851 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15852 | fi |
15853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15854 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15855 | ||
15856 | fi | |
15857 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15858 | cat >>confdefs.h <<_ACEOF | |
15859 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15860 | _ACEOF | |
15861 | ||
15862 | fi | |
15863 | ||
15864 | done | |
15865 | ||
15866 | ||
15867 | case "${host}" in | |
15868 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
15869 | if test $ac_cv_header_langinfo_h = "yes" \ |
15870 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
15871 | -o "$wx_cv_gccversion" = "EMX3" \ | |
15872 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
15873 | LIBS="$LIBS -lintl" |
15874 | fi | |
15875 | ;; | |
15876 | esac | |
15877 | ||
a848cd7e SC |
15878 | |
15879 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15880 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15881 | if test "${ac_cv_c_const+set}" = set; then | |
15882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15883 | else | |
15884 | cat >conftest.$ac_ext <<_ACEOF | |
15885 | /* confdefs.h. */ | |
15886 | _ACEOF | |
15887 | cat confdefs.h >>conftest.$ac_ext | |
15888 | cat >>conftest.$ac_ext <<_ACEOF | |
15889 | /* end confdefs.h. */ | |
15890 | ||
15891 | int | |
15892 | main () | |
15893 | { | |
15894 | /* FIXME: Include the comments suggested by Paul. */ | |
15895 | #ifndef __cplusplus | |
15896 | /* Ultrix mips cc rejects this. */ | |
15897 | typedef int charset[2]; | |
15898 | const charset x; | |
15899 | /* SunOS 4.1.1 cc rejects this. */ | |
15900 | char const *const *ccp; | |
15901 | char **p; | |
15902 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15903 | struct point {int x, y;}; | |
15904 | static struct point const zero = {0,0}; | |
15905 | /* AIX XL C 1.02.0.0 rejects this. | |
15906 | It does not let you subtract one const X* pointer from another in | |
15907 | an arm of an if-expression whose if-part is not a constant | |
15908 | expression */ | |
15909 | const char *g = "string"; | |
15910 | ccp = &g + (g ? g-g : 0); | |
15911 | /* HPUX 7.0 cc rejects these. */ | |
15912 | ++ccp; | |
15913 | p = (char**) ccp; | |
15914 | ccp = (char const *const *) p; | |
15915 | { /* SCO 3.2v4 cc rejects this. */ | |
15916 | char *t; | |
15917 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15918 | ||
15919 | *t++ = 0; | |
15920 | } | |
15921 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15922 | int x[] = {25, 17}; | |
15923 | const int *foo = &x[0]; | |
15924 | ++foo; | |
15925 | } | |
15926 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15927 | typedef const int *iptr; | |
15928 | iptr p = 0; | |
15929 | ++p; | |
15930 | } | |
15931 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15932 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15933 | struct s { int j; const int *ap[3]; }; | |
15934 | struct s *b; b->j = 5; | |
15935 | } | |
15936 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15937 | const int foo = 10; | |
15938 | } | |
15939 | #endif | |
15940 | ||
15941 | ; | |
15942 | return 0; | |
15943 | } | |
15944 | _ACEOF | |
15945 | rm -f conftest.$ac_objext | |
15946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15947 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15948 | ac_status=$? |
ac1cb8d3 VS |
15949 | grep -v '^ *+' conftest.er1 >conftest.err |
15950 | rm -f conftest.er1 | |
15951 | cat conftest.err >&5 | |
a848cd7e SC |
15952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15953 | (exit $ac_status); } && | |
6ebeb4c7 | 15954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15956 | (eval $ac_try) 2>&5 | |
15957 | ac_status=$? | |
15958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15959 | (exit $ac_status); }; } && | |
15960 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15962 | (eval $ac_try) 2>&5 | |
15963 | ac_status=$? | |
15964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15965 | (exit $ac_status); }; }; then | |
15966 | ac_cv_c_const=yes | |
15967 | else | |
15968 | echo "$as_me: failed program was:" >&5 | |
15969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15970 | ||
15971 | ac_cv_c_const=no | |
15972 | fi | |
ac1cb8d3 | 15973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15974 | fi |
15975 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15976 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15977 | if test $ac_cv_c_const = no; then | |
15978 | ||
15979 | cat >>confdefs.h <<\_ACEOF | |
15980 | #define const | |
15981 | _ACEOF | |
15982 | ||
15983 | fi | |
15984 | ||
15985 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15986 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15987 | if test "${ac_cv_c_inline+set}" = set; then | |
15988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15989 | else | |
15990 | ac_cv_c_inline=no | |
15991 | for ac_kw in inline __inline__ __inline; do | |
15992 | cat >conftest.$ac_ext <<_ACEOF | |
15993 | /* confdefs.h. */ | |
15994 | _ACEOF | |
15995 | cat confdefs.h >>conftest.$ac_ext | |
15996 | cat >>conftest.$ac_ext <<_ACEOF | |
15997 | /* end confdefs.h. */ | |
15998 | #ifndef __cplusplus | |
15999 | typedef int foo_t; | |
16000 | static $ac_kw foo_t static_foo () {return 0; } | |
16001 | $ac_kw foo_t foo () {return 0; } | |
16002 | #endif | |
16003 | ||
16004 | _ACEOF | |
16005 | rm -f conftest.$ac_objext | |
16006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16008 | ac_status=$? |
ac1cb8d3 VS |
16009 | grep -v '^ *+' conftest.er1 >conftest.err |
16010 | rm -f conftest.er1 | |
16011 | cat conftest.err >&5 | |
a848cd7e SC |
16012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16013 | (exit $ac_status); } && | |
6ebeb4c7 | 16014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16016 | (eval $ac_try) 2>&5 | |
16017 | ac_status=$? | |
16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16019 | (exit $ac_status); }; } && | |
16020 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16022 | (eval $ac_try) 2>&5 | |
16023 | ac_status=$? | |
16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16025 | (exit $ac_status); }; }; then | |
16026 | ac_cv_c_inline=$ac_kw; break | |
16027 | else | |
16028 | echo "$as_me: failed program was:" >&5 | |
16029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16030 | ||
16031 | fi | |
ac1cb8d3 | 16032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16033 | done |
16034 | ||
16035 | fi | |
16036 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
16037 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
16038 | |
16039 | ||
a848cd7e SC |
16040 | case $ac_cv_c_inline in |
16041 | inline | yes) ;; | |
ac1cb8d3 VS |
16042 | *) |
16043 | case $ac_cv_c_inline in | |
16044 | no) ac_val=;; | |
16045 | *) ac_val=$ac_cv_c_inline;; | |
16046 | esac | |
16047 | cat >>confdefs.h <<_ACEOF | |
16048 | #ifndef __cplusplus | |
16049 | #define inline $ac_val | |
16050 | #endif | |
de59c161 | 16051 | _ACEOF |
ac1cb8d3 | 16052 | ;; |
a848cd7e SC |
16053 | esac |
16054 | ||
16055 | ||
16056 | echo "$as_me:$LINENO: checking for char" >&5 | |
16057 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
16058 | if test "${ac_cv_type_char+set}" = set; then | |
16059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16060 | else | |
16061 | cat >conftest.$ac_ext <<_ACEOF | |
16062 | /* confdefs.h. */ | |
16063 | _ACEOF | |
16064 | cat confdefs.h >>conftest.$ac_ext | |
16065 | cat >>conftest.$ac_ext <<_ACEOF | |
16066 | /* end confdefs.h. */ | |
16067 | $ac_includes_default | |
16068 | int | |
16069 | main () | |
16070 | { | |
16071 | if ((char *) 0) | |
16072 | return 0; | |
16073 | if (sizeof (char)) | |
16074 | return 0; | |
16075 | ; | |
16076 | return 0; | |
16077 | } | |
16078 | _ACEOF | |
16079 | rm -f conftest.$ac_objext | |
16080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16081 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16082 | ac_status=$? |
ac1cb8d3 VS |
16083 | grep -v '^ *+' conftest.er1 >conftest.err |
16084 | rm -f conftest.er1 | |
16085 | cat conftest.err >&5 | |
a848cd7e SC |
16086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16087 | (exit $ac_status); } && | |
6ebeb4c7 | 16088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16090 | (eval $ac_try) 2>&5 | |
16091 | ac_status=$? | |
16092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16093 | (exit $ac_status); }; } && | |
16094 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16096 | (eval $ac_try) 2>&5 | |
16097 | ac_status=$? | |
16098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16099 | (exit $ac_status); }; }; then | |
16100 | ac_cv_type_char=yes | |
16101 | else | |
16102 | echo "$as_me: failed program was:" >&5 | |
16103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16104 | ||
16105 | ac_cv_type_char=no | |
16106 | fi | |
ac1cb8d3 | 16107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16108 | fi |
16109 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
16110 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
16111 | ||
16112 | echo "$as_me:$LINENO: checking size of char" >&5 | |
16113 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
16114 | if test "${ac_cv_sizeof_char+set}" = set; then | |
16115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16116 | else | |
16117 | if test "$ac_cv_type_char" = yes; then | |
16118 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16119 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16120 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16121 | # This bug is HP SR number 8606223364. | |
16122 | if test "$cross_compiling" = yes; then | |
16123 | # Depending upon the size, compute the lo and hi bounds. | |
16124 | cat >conftest.$ac_ext <<_ACEOF | |
16125 | /* confdefs.h. */ | |
16126 | _ACEOF | |
16127 | cat confdefs.h >>conftest.$ac_ext | |
16128 | cat >>conftest.$ac_ext <<_ACEOF | |
16129 | /* end confdefs.h. */ | |
16130 | $ac_includes_default | |
16131 | int | |
16132 | main () | |
16133 | { | |
16134 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
16135 | test_array [0] = 0 | |
16136 | ||
16137 | ; | |
16138 | return 0; | |
16139 | } | |
16140 | _ACEOF | |
16141 | rm -f conftest.$ac_objext | |
16142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16143 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16144 | ac_status=$? |
ac1cb8d3 VS |
16145 | grep -v '^ *+' conftest.er1 >conftest.err |
16146 | rm -f conftest.er1 | |
16147 | cat conftest.err >&5 | |
a848cd7e SC |
16148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16149 | (exit $ac_status); } && | |
6ebeb4c7 | 16150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16152 | (eval $ac_try) 2>&5 | |
16153 | ac_status=$? | |
16154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16155 | (exit $ac_status); }; } && | |
16156 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16158 | (eval $ac_try) 2>&5 | |
16159 | ac_status=$? | |
16160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16161 | (exit $ac_status); }; }; then | |
16162 | ac_lo=0 ac_mid=0 | |
16163 | while :; do | |
16164 | cat >conftest.$ac_ext <<_ACEOF | |
16165 | /* confdefs.h. */ | |
16166 | _ACEOF | |
16167 | cat confdefs.h >>conftest.$ac_ext | |
16168 | cat >>conftest.$ac_ext <<_ACEOF | |
16169 | /* end confdefs.h. */ | |
16170 | $ac_includes_default | |
16171 | int | |
16172 | main () | |
16173 | { | |
16174 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16175 | test_array [0] = 0 | |
16176 | ||
16177 | ; | |
16178 | return 0; | |
16179 | } | |
16180 | _ACEOF | |
16181 | rm -f conftest.$ac_objext | |
16182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16183 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16184 | ac_status=$? |
ac1cb8d3 VS |
16185 | grep -v '^ *+' conftest.er1 >conftest.err |
16186 | rm -f conftest.er1 | |
16187 | cat conftest.err >&5 | |
a848cd7e SC |
16188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16189 | (exit $ac_status); } && | |
6ebeb4c7 | 16190 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16192 | (eval $ac_try) 2>&5 | |
16193 | ac_status=$? | |
16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16195 | (exit $ac_status); }; } && | |
16196 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16198 | (eval $ac_try) 2>&5 | |
16199 | ac_status=$? | |
16200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16201 | (exit $ac_status); }; }; then | |
16202 | ac_hi=$ac_mid; break | |
16203 | else | |
16204 | echo "$as_me: failed program was:" >&5 | |
16205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16206 | ||
16207 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16208 | if test $ac_lo -le $ac_mid; then |
16209 | ac_lo= ac_hi= | |
16210 | break | |
16211 | fi | |
16212 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16213 | fi |
ac1cb8d3 | 16214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16215 | done |
16216 | else | |
16217 | echo "$as_me: failed program was:" >&5 | |
16218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16219 | ||
16220 | cat >conftest.$ac_ext <<_ACEOF | |
16221 | /* confdefs.h. */ | |
16222 | _ACEOF | |
16223 | cat confdefs.h >>conftest.$ac_ext | |
16224 | cat >>conftest.$ac_ext <<_ACEOF | |
16225 | /* end confdefs.h. */ | |
16226 | $ac_includes_default | |
16227 | int | |
16228 | main () | |
16229 | { | |
16230 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
16231 | test_array [0] = 0 | |
16232 | ||
16233 | ; | |
16234 | return 0; | |
16235 | } | |
16236 | _ACEOF | |
16237 | rm -f conftest.$ac_objext | |
16238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16239 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16240 | ac_status=$? |
ac1cb8d3 VS |
16241 | grep -v '^ *+' conftest.er1 >conftest.err |
16242 | rm -f conftest.er1 | |
16243 | cat conftest.err >&5 | |
a848cd7e SC |
16244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16245 | (exit $ac_status); } && | |
6ebeb4c7 | 16246 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16248 | (eval $ac_try) 2>&5 | |
16249 | ac_status=$? | |
16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16251 | (exit $ac_status); }; } && | |
16252 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16254 | (eval $ac_try) 2>&5 | |
16255 | ac_status=$? | |
16256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16257 | (exit $ac_status); }; }; then | |
16258 | ac_hi=-1 ac_mid=-1 | |
16259 | while :; do | |
16260 | cat >conftest.$ac_ext <<_ACEOF | |
16261 | /* confdefs.h. */ | |
16262 | _ACEOF | |
16263 | cat confdefs.h >>conftest.$ac_ext | |
16264 | cat >>conftest.$ac_ext <<_ACEOF | |
16265 | /* end confdefs.h. */ | |
16266 | $ac_includes_default | |
16267 | int | |
16268 | main () | |
16269 | { | |
16270 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
16271 | test_array [0] = 0 | |
16272 | ||
16273 | ; | |
16274 | return 0; | |
16275 | } | |
16276 | _ACEOF | |
16277 | rm -f conftest.$ac_objext | |
16278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16279 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16280 | ac_status=$? |
ac1cb8d3 VS |
16281 | grep -v '^ *+' conftest.er1 >conftest.err |
16282 | rm -f conftest.er1 | |
16283 | cat conftest.err >&5 | |
a848cd7e SC |
16284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16285 | (exit $ac_status); } && | |
6ebeb4c7 | 16286 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16288 | (eval $ac_try) 2>&5 | |
16289 | ac_status=$? | |
16290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16291 | (exit $ac_status); }; } && | |
16292 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16294 | (eval $ac_try) 2>&5 | |
16295 | ac_status=$? | |
16296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16297 | (exit $ac_status); }; }; then | |
16298 | ac_lo=$ac_mid; break | |
16299 | else | |
16300 | echo "$as_me: failed program was:" >&5 | |
16301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16302 | ||
16303 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16304 | if test $ac_mid -le $ac_hi; then |
16305 | ac_lo= ac_hi= | |
16306 | break | |
16307 | fi | |
16308 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16309 | fi |
ac1cb8d3 | 16310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16311 | done |
16312 | else | |
16313 | echo "$as_me: failed program was:" >&5 | |
16314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16315 | ||
16316 | ac_lo= ac_hi= | |
16317 | fi | |
ac1cb8d3 | 16318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16319 | fi |
ac1cb8d3 | 16320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16321 | # Binary search between lo and hi bounds. |
16322 | while test "x$ac_lo" != "x$ac_hi"; do | |
16323 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16324 | cat >conftest.$ac_ext <<_ACEOF | |
16325 | /* confdefs.h. */ | |
16326 | _ACEOF | |
16327 | cat confdefs.h >>conftest.$ac_ext | |
16328 | cat >>conftest.$ac_ext <<_ACEOF | |
16329 | /* end confdefs.h. */ | |
16330 | $ac_includes_default | |
16331 | int | |
16332 | main () | |
16333 | { | |
16334 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16335 | test_array [0] = 0 | |
16336 | ||
16337 | ; | |
16338 | return 0; | |
16339 | } | |
16340 | _ACEOF | |
16341 | rm -f conftest.$ac_objext | |
16342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16343 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16344 | ac_status=$? |
ac1cb8d3 VS |
16345 | grep -v '^ *+' conftest.er1 >conftest.err |
16346 | rm -f conftest.er1 | |
16347 | cat conftest.err >&5 | |
a848cd7e SC |
16348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16349 | (exit $ac_status); } && | |
6ebeb4c7 | 16350 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16352 | (eval $ac_try) 2>&5 | |
16353 | ac_status=$? | |
16354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16355 | (exit $ac_status); }; } && | |
16356 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16358 | (eval $ac_try) 2>&5 | |
16359 | ac_status=$? | |
16360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16361 | (exit $ac_status); }; }; then | |
16362 | ac_hi=$ac_mid | |
16363 | else | |
16364 | echo "$as_me: failed program was:" >&5 | |
16365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16366 | ||
16367 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16368 | fi | |
ac1cb8d3 | 16369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16370 | done |
16371 | case $ac_lo in | |
16372 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
16373 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16374 | See \`config.log' for more details." >&5 | |
16375 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16376 | See \`config.log' for more details." >&2;} | |
16377 | { (exit 1); exit 1; }; } ;; | |
16378 | esac | |
16379 | else | |
16380 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
16381 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16382 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16383 | { (exit 1); exit 1; }; } |
16384 | else | |
16385 | cat >conftest.$ac_ext <<_ACEOF | |
16386 | /* confdefs.h. */ | |
16387 | _ACEOF | |
16388 | cat confdefs.h >>conftest.$ac_ext | |
16389 | cat >>conftest.$ac_ext <<_ACEOF | |
16390 | /* end confdefs.h. */ | |
16391 | $ac_includes_default | |
16392 | long longval () { return (long) (sizeof (char)); } | |
16393 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
16394 | #include <stdio.h> | |
16395 | #include <stdlib.h> | |
16396 | int | |
16397 | main () | |
16398 | { | |
16399 | ||
16400 | FILE *f = fopen ("conftest.val", "w"); | |
16401 | if (! f) | |
16402 | exit (1); | |
16403 | if (((long) (sizeof (char))) < 0) | |
16404 | { | |
16405 | long i = longval (); | |
16406 | if (i != ((long) (sizeof (char)))) | |
16407 | exit (1); | |
16408 | fprintf (f, "%ld\n", i); | |
16409 | } | |
16410 | else | |
16411 | { | |
16412 | unsigned long i = ulongval (); | |
16413 | if (i != ((long) (sizeof (char)))) | |
16414 | exit (1); | |
16415 | fprintf (f, "%lu\n", i); | |
16416 | } | |
16417 | exit (ferror (f) || fclose (f) != 0); | |
16418 | ||
16419 | ; | |
16420 | return 0; | |
16421 | } | |
16422 | _ACEOF | |
16423 | rm -f conftest$ac_exeext | |
16424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16425 | (eval $ac_link) 2>&5 | |
16426 | ac_status=$? | |
16427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16428 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16430 | (eval $ac_try) 2>&5 | |
16431 | ac_status=$? | |
16432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16433 | (exit $ac_status); }; }; then | |
16434 | ac_cv_sizeof_char=`cat conftest.val` | |
16435 | else | |
16436 | echo "$as_me: program exited with status $ac_status" >&5 | |
16437 | echo "$as_me: failed program was:" >&5 | |
16438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16439 | ||
16440 | ( exit $ac_status ) | |
16441 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16442 | See \`config.log' for more details." >&5 | |
16443 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16444 | See \`config.log' for more details." >&2;} | |
16445 | { (exit 1); exit 1; }; } | |
16446 | fi | |
ac1cb8d3 | 16447 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16448 | fi |
16449 | fi | |
16450 | rm -f conftest.val | |
16451 | else | |
16452 | ac_cv_sizeof_char=0 | |
16453 | fi | |
16454 | fi | |
16455 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
16456 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
16457 | cat >>confdefs.h <<_ACEOF | |
16458 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
16459 | _ACEOF | |
16460 | ||
16461 | ||
16462 | echo "$as_me:$LINENO: checking for short" >&5 | |
16463 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
16464 | if test "${ac_cv_type_short+set}" = set; then | |
16465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16466 | else | |
16467 | cat >conftest.$ac_ext <<_ACEOF | |
16468 | /* confdefs.h. */ | |
16469 | _ACEOF | |
16470 | cat confdefs.h >>conftest.$ac_ext | |
16471 | cat >>conftest.$ac_ext <<_ACEOF | |
16472 | /* end confdefs.h. */ | |
16473 | $ac_includes_default | |
16474 | int | |
16475 | main () | |
16476 | { | |
16477 | if ((short *) 0) | |
16478 | return 0; | |
16479 | if (sizeof (short)) | |
16480 | return 0; | |
16481 | ; | |
16482 | return 0; | |
16483 | } | |
16484 | _ACEOF | |
16485 | rm -f conftest.$ac_objext | |
16486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16487 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16488 | ac_status=$? |
ac1cb8d3 VS |
16489 | grep -v '^ *+' conftest.er1 >conftest.err |
16490 | rm -f conftest.er1 | |
16491 | cat conftest.err >&5 | |
a848cd7e SC |
16492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16493 | (exit $ac_status); } && | |
6ebeb4c7 | 16494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16496 | (eval $ac_try) 2>&5 | |
16497 | ac_status=$? | |
16498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16499 | (exit $ac_status); }; } && | |
16500 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16502 | (eval $ac_try) 2>&5 | |
16503 | ac_status=$? | |
16504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16505 | (exit $ac_status); }; }; then | |
16506 | ac_cv_type_short=yes | |
16507 | else | |
16508 | echo "$as_me: failed program was:" >&5 | |
16509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16510 | ||
16511 | ac_cv_type_short=no | |
16512 | fi | |
ac1cb8d3 | 16513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16514 | fi |
16515 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
16516 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
16517 | ||
16518 | echo "$as_me:$LINENO: checking size of short" >&5 | |
16519 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
16520 | if test "${ac_cv_sizeof_short+set}" = set; then | |
16521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16522 | else | |
16523 | if test "$ac_cv_type_short" = yes; then | |
16524 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16525 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16526 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16527 | # This bug is HP SR number 8606223364. | |
16528 | if test "$cross_compiling" = yes; then | |
16529 | # Depending upon the size, compute the lo and hi bounds. | |
16530 | cat >conftest.$ac_ext <<_ACEOF | |
16531 | /* confdefs.h. */ | |
16532 | _ACEOF | |
16533 | cat confdefs.h >>conftest.$ac_ext | |
16534 | cat >>conftest.$ac_ext <<_ACEOF | |
16535 | /* end confdefs.h. */ | |
16536 | $ac_includes_default | |
16537 | int | |
16538 | main () | |
16539 | { | |
16540 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
16541 | test_array [0] = 0 | |
16542 | ||
16543 | ; | |
16544 | return 0; | |
16545 | } | |
16546 | _ACEOF | |
16547 | rm -f conftest.$ac_objext | |
16548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16549 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16550 | ac_status=$? |
ac1cb8d3 VS |
16551 | grep -v '^ *+' conftest.er1 >conftest.err |
16552 | rm -f conftest.er1 | |
16553 | cat conftest.err >&5 | |
a848cd7e SC |
16554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16555 | (exit $ac_status); } && | |
6ebeb4c7 | 16556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16558 | (eval $ac_try) 2>&5 | |
16559 | ac_status=$? | |
16560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16561 | (exit $ac_status); }; } && | |
16562 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16564 | (eval $ac_try) 2>&5 | |
16565 | ac_status=$? | |
16566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16567 | (exit $ac_status); }; }; then | |
16568 | ac_lo=0 ac_mid=0 | |
16569 | while :; do | |
16570 | cat >conftest.$ac_ext <<_ACEOF | |
16571 | /* confdefs.h. */ | |
16572 | _ACEOF | |
16573 | cat confdefs.h >>conftest.$ac_ext | |
16574 | cat >>conftest.$ac_ext <<_ACEOF | |
16575 | /* end confdefs.h. */ | |
16576 | $ac_includes_default | |
16577 | int | |
16578 | main () | |
16579 | { | |
16580 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16581 | test_array [0] = 0 | |
16582 | ||
16583 | ; | |
16584 | return 0; | |
16585 | } | |
16586 | _ACEOF | |
16587 | rm -f conftest.$ac_objext | |
16588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16589 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16590 | ac_status=$? |
ac1cb8d3 VS |
16591 | grep -v '^ *+' conftest.er1 >conftest.err |
16592 | rm -f conftest.er1 | |
16593 | cat conftest.err >&5 | |
a848cd7e SC |
16594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16595 | (exit $ac_status); } && | |
6ebeb4c7 | 16596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16598 | (eval $ac_try) 2>&5 | |
16599 | ac_status=$? | |
16600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16601 | (exit $ac_status); }; } && | |
16602 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16604 | (eval $ac_try) 2>&5 | |
16605 | ac_status=$? | |
16606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16607 | (exit $ac_status); }; }; then | |
16608 | ac_hi=$ac_mid; break | |
16609 | else | |
16610 | echo "$as_me: failed program was:" >&5 | |
16611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16612 | ||
16613 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16614 | if test $ac_lo -le $ac_mid; then |
16615 | ac_lo= ac_hi= | |
16616 | break | |
16617 | fi | |
16618 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16619 | fi |
ac1cb8d3 | 16620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16621 | done |
16622 | else | |
16623 | echo "$as_me: failed program was:" >&5 | |
16624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16625 | ||
16626 | cat >conftest.$ac_ext <<_ACEOF | |
16627 | /* confdefs.h. */ | |
16628 | _ACEOF | |
16629 | cat confdefs.h >>conftest.$ac_ext | |
16630 | cat >>conftest.$ac_ext <<_ACEOF | |
16631 | /* end confdefs.h. */ | |
16632 | $ac_includes_default | |
16633 | int | |
16634 | main () | |
16635 | { | |
16636 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
16637 | test_array [0] = 0 | |
16638 | ||
16639 | ; | |
16640 | return 0; | |
16641 | } | |
16642 | _ACEOF | |
16643 | rm -f conftest.$ac_objext | |
16644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16645 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16646 | ac_status=$? |
ac1cb8d3 VS |
16647 | grep -v '^ *+' conftest.er1 >conftest.err |
16648 | rm -f conftest.er1 | |
16649 | cat conftest.err >&5 | |
a848cd7e SC |
16650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16651 | (exit $ac_status); } && | |
6ebeb4c7 | 16652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16654 | (eval $ac_try) 2>&5 | |
16655 | ac_status=$? | |
16656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16657 | (exit $ac_status); }; } && | |
16658 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16660 | (eval $ac_try) 2>&5 | |
16661 | ac_status=$? | |
16662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16663 | (exit $ac_status); }; }; then | |
16664 | ac_hi=-1 ac_mid=-1 | |
16665 | while :; do | |
16666 | cat >conftest.$ac_ext <<_ACEOF | |
16667 | /* confdefs.h. */ | |
16668 | _ACEOF | |
16669 | cat confdefs.h >>conftest.$ac_ext | |
16670 | cat >>conftest.$ac_ext <<_ACEOF | |
16671 | /* end confdefs.h. */ | |
16672 | $ac_includes_default | |
16673 | int | |
16674 | main () | |
16675 | { | |
16676 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
16677 | test_array [0] = 0 | |
16678 | ||
16679 | ; | |
16680 | return 0; | |
16681 | } | |
16682 | _ACEOF | |
16683 | rm -f conftest.$ac_objext | |
16684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16685 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16686 | ac_status=$? |
ac1cb8d3 VS |
16687 | grep -v '^ *+' conftest.er1 >conftest.err |
16688 | rm -f conftest.er1 | |
16689 | cat conftest.err >&5 | |
a848cd7e SC |
16690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16691 | (exit $ac_status); } && | |
6ebeb4c7 | 16692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16694 | (eval $ac_try) 2>&5 | |
16695 | ac_status=$? | |
16696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16697 | (exit $ac_status); }; } && | |
16698 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16700 | (eval $ac_try) 2>&5 | |
16701 | ac_status=$? | |
16702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16703 | (exit $ac_status); }; }; then | |
16704 | ac_lo=$ac_mid; break | |
16705 | else | |
16706 | echo "$as_me: failed program was:" >&5 | |
16707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16708 | ||
16709 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16710 | if test $ac_mid -le $ac_hi; then |
16711 | ac_lo= ac_hi= | |
16712 | break | |
16713 | fi | |
16714 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16715 | fi |
ac1cb8d3 | 16716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16717 | done |
16718 | else | |
16719 | echo "$as_me: failed program was:" >&5 | |
16720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16721 | ||
16722 | ac_lo= ac_hi= | |
16723 | fi | |
ac1cb8d3 | 16724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16725 | fi |
ac1cb8d3 | 16726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16727 | # Binary search between lo and hi bounds. |
16728 | while test "x$ac_lo" != "x$ac_hi"; do | |
16729 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16730 | cat >conftest.$ac_ext <<_ACEOF | |
16731 | /* confdefs.h. */ | |
16732 | _ACEOF | |
16733 | cat confdefs.h >>conftest.$ac_ext | |
16734 | cat >>conftest.$ac_ext <<_ACEOF | |
16735 | /* end confdefs.h. */ | |
16736 | $ac_includes_default | |
16737 | int | |
16738 | main () | |
16739 | { | |
16740 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16741 | test_array [0] = 0 | |
16742 | ||
16743 | ; | |
16744 | return 0; | |
16745 | } | |
16746 | _ACEOF | |
16747 | rm -f conftest.$ac_objext | |
16748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16749 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16750 | ac_status=$? |
ac1cb8d3 VS |
16751 | grep -v '^ *+' conftest.er1 >conftest.err |
16752 | rm -f conftest.er1 | |
16753 | cat conftest.err >&5 | |
a848cd7e SC |
16754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16755 | (exit $ac_status); } && | |
6ebeb4c7 | 16756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16758 | (eval $ac_try) 2>&5 | |
16759 | ac_status=$? | |
16760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16761 | (exit $ac_status); }; } && | |
16762 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16764 | (eval $ac_try) 2>&5 | |
16765 | ac_status=$? | |
16766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16767 | (exit $ac_status); }; }; then | |
16768 | ac_hi=$ac_mid | |
16769 | else | |
16770 | echo "$as_me: failed program was:" >&5 | |
16771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16772 | ||
16773 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16774 | fi | |
ac1cb8d3 | 16775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16776 | done |
16777 | case $ac_lo in | |
16778 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
16779 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16780 | See \`config.log' for more details." >&5 | |
16781 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16782 | See \`config.log' for more details." >&2;} | |
16783 | { (exit 1); exit 1; }; } ;; | |
16784 | esac | |
16785 | else | |
16786 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
16787 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16788 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16789 | { (exit 1); exit 1; }; } |
16790 | else | |
16791 | cat >conftest.$ac_ext <<_ACEOF | |
16792 | /* confdefs.h. */ | |
16793 | _ACEOF | |
16794 | cat confdefs.h >>conftest.$ac_ext | |
16795 | cat >>conftest.$ac_ext <<_ACEOF | |
16796 | /* end confdefs.h. */ | |
16797 | $ac_includes_default | |
16798 | long longval () { return (long) (sizeof (short)); } | |
16799 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16800 | #include <stdio.h> | |
16801 | #include <stdlib.h> | |
16802 | int | |
16803 | main () | |
16804 | { | |
16805 | ||
16806 | FILE *f = fopen ("conftest.val", "w"); | |
16807 | if (! f) | |
16808 | exit (1); | |
16809 | if (((long) (sizeof (short))) < 0) | |
16810 | { | |
16811 | long i = longval (); | |
16812 | if (i != ((long) (sizeof (short)))) | |
16813 | exit (1); | |
16814 | fprintf (f, "%ld\n", i); | |
16815 | } | |
16816 | else | |
16817 | { | |
16818 | unsigned long i = ulongval (); | |
16819 | if (i != ((long) (sizeof (short)))) | |
16820 | exit (1); | |
16821 | fprintf (f, "%lu\n", i); | |
16822 | } | |
16823 | exit (ferror (f) || fclose (f) != 0); | |
16824 | ||
16825 | ; | |
16826 | return 0; | |
16827 | } | |
16828 | _ACEOF | |
16829 | rm -f conftest$ac_exeext | |
16830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16831 | (eval $ac_link) 2>&5 | |
16832 | ac_status=$? | |
16833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16834 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16836 | (eval $ac_try) 2>&5 | |
16837 | ac_status=$? | |
16838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16839 | (exit $ac_status); }; }; then | |
16840 | ac_cv_sizeof_short=`cat conftest.val` | |
16841 | else | |
16842 | echo "$as_me: program exited with status $ac_status" >&5 | |
16843 | echo "$as_me: failed program was:" >&5 | |
16844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16845 | ||
16846 | ( exit $ac_status ) | |
16847 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16848 | See \`config.log' for more details." >&5 | |
16849 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16850 | See \`config.log' for more details." >&2;} | |
16851 | { (exit 1); exit 1; }; } | |
16852 | fi | |
ac1cb8d3 | 16853 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16854 | fi |
16855 | fi | |
16856 | rm -f conftest.val | |
16857 | else | |
16858 | ac_cv_sizeof_short=0 | |
16859 | fi | |
16860 | fi | |
16861 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16862 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16863 | cat >>confdefs.h <<_ACEOF | |
16864 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16865 | _ACEOF | |
16866 | ||
16867 | ||
16868 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16869 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16870 | if test "${ac_cv_type_void_p+set}" = set; then | |
16871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16872 | else | |
16873 | cat >conftest.$ac_ext <<_ACEOF | |
16874 | /* confdefs.h. */ | |
16875 | _ACEOF | |
16876 | cat confdefs.h >>conftest.$ac_ext | |
16877 | cat >>conftest.$ac_ext <<_ACEOF | |
16878 | /* end confdefs.h. */ | |
16879 | $ac_includes_default | |
16880 | int | |
16881 | main () | |
16882 | { | |
16883 | if ((void * *) 0) | |
16884 | return 0; | |
16885 | if (sizeof (void *)) | |
16886 | return 0; | |
16887 | ; | |
16888 | return 0; | |
16889 | } | |
16890 | _ACEOF | |
16891 | rm -f conftest.$ac_objext | |
16892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16893 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16894 | ac_status=$? |
ac1cb8d3 VS |
16895 | grep -v '^ *+' conftest.er1 >conftest.err |
16896 | rm -f conftest.er1 | |
16897 | cat conftest.err >&5 | |
a848cd7e SC |
16898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16899 | (exit $ac_status); } && | |
6ebeb4c7 | 16900 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16902 | (eval $ac_try) 2>&5 | |
16903 | ac_status=$? | |
16904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16905 | (exit $ac_status); }; } && | |
16906 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16908 | (eval $ac_try) 2>&5 | |
16909 | ac_status=$? | |
16910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16911 | (exit $ac_status); }; }; then | |
16912 | ac_cv_type_void_p=yes | |
16913 | else | |
16914 | echo "$as_me: failed program was:" >&5 | |
16915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16916 | ||
16917 | ac_cv_type_void_p=no | |
16918 | fi | |
ac1cb8d3 | 16919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16920 | fi |
16921 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16922 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16923 | ||
16924 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16925 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16926 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16928 | else | |
16929 | if test "$ac_cv_type_void_p" = yes; then | |
16930 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16931 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16932 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16933 | # This bug is HP SR number 8606223364. | |
16934 | if test "$cross_compiling" = yes; then | |
16935 | # Depending upon the size, compute the lo and hi bounds. | |
16936 | cat >conftest.$ac_ext <<_ACEOF | |
16937 | /* confdefs.h. */ | |
16938 | _ACEOF | |
16939 | cat confdefs.h >>conftest.$ac_ext | |
16940 | cat >>conftest.$ac_ext <<_ACEOF | |
16941 | /* end confdefs.h. */ | |
16942 | $ac_includes_default | |
16943 | int | |
16944 | main () | |
16945 | { | |
16946 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16947 | test_array [0] = 0 | |
16948 | ||
16949 | ; | |
16950 | return 0; | |
16951 | } | |
16952 | _ACEOF | |
16953 | rm -f conftest.$ac_objext | |
16954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16955 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16956 | ac_status=$? |
ac1cb8d3 VS |
16957 | grep -v '^ *+' conftest.er1 >conftest.err |
16958 | rm -f conftest.er1 | |
16959 | cat conftest.err >&5 | |
a848cd7e SC |
16960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16961 | (exit $ac_status); } && | |
6ebeb4c7 | 16962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16964 | (eval $ac_try) 2>&5 | |
16965 | ac_status=$? | |
16966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16967 | (exit $ac_status); }; } && | |
16968 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16970 | (eval $ac_try) 2>&5 | |
16971 | ac_status=$? | |
16972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16973 | (exit $ac_status); }; }; then | |
16974 | ac_lo=0 ac_mid=0 | |
16975 | while :; do | |
16976 | cat >conftest.$ac_ext <<_ACEOF | |
16977 | /* confdefs.h. */ | |
16978 | _ACEOF | |
16979 | cat confdefs.h >>conftest.$ac_ext | |
16980 | cat >>conftest.$ac_ext <<_ACEOF | |
16981 | /* end confdefs.h. */ | |
16982 | $ac_includes_default | |
16983 | int | |
16984 | main () | |
16985 | { | |
16986 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16987 | test_array [0] = 0 | |
16988 | ||
16989 | ; | |
16990 | return 0; | |
16991 | } | |
16992 | _ACEOF | |
16993 | rm -f conftest.$ac_objext | |
16994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16995 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16996 | ac_status=$? |
ac1cb8d3 VS |
16997 | grep -v '^ *+' conftest.er1 >conftest.err |
16998 | rm -f conftest.er1 | |
16999 | cat conftest.err >&5 | |
a848cd7e SC |
17000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17001 | (exit $ac_status); } && | |
6ebeb4c7 | 17002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17004 | (eval $ac_try) 2>&5 | |
17005 | ac_status=$? | |
17006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17007 | (exit $ac_status); }; } && | |
17008 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17010 | (eval $ac_try) 2>&5 | |
17011 | ac_status=$? | |
17012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17013 | (exit $ac_status); }; }; then | |
17014 | ac_hi=$ac_mid; break | |
17015 | else | |
17016 | echo "$as_me: failed program was:" >&5 | |
17017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17018 | ||
17019 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17020 | if test $ac_lo -le $ac_mid; then |
17021 | ac_lo= ac_hi= | |
17022 | break | |
17023 | fi | |
17024 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17025 | fi |
ac1cb8d3 | 17026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17027 | done |
17028 | else | |
17029 | echo "$as_me: failed program was:" >&5 | |
17030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17031 | ||
17032 | cat >conftest.$ac_ext <<_ACEOF | |
17033 | /* confdefs.h. */ | |
17034 | _ACEOF | |
17035 | cat confdefs.h >>conftest.$ac_ext | |
17036 | cat >>conftest.$ac_ext <<_ACEOF | |
17037 | /* end confdefs.h. */ | |
17038 | $ac_includes_default | |
17039 | int | |
17040 | main () | |
17041 | { | |
17042 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
17043 | test_array [0] = 0 | |
17044 | ||
17045 | ; | |
17046 | return 0; | |
17047 | } | |
17048 | _ACEOF | |
17049 | rm -f conftest.$ac_objext | |
17050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17051 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17052 | ac_status=$? |
ac1cb8d3 VS |
17053 | grep -v '^ *+' conftest.er1 >conftest.err |
17054 | rm -f conftest.er1 | |
17055 | cat conftest.err >&5 | |
a848cd7e SC |
17056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17057 | (exit $ac_status); } && | |
6ebeb4c7 | 17058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17060 | (eval $ac_try) 2>&5 | |
17061 | ac_status=$? | |
17062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17063 | (exit $ac_status); }; } && | |
17064 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17066 | (eval $ac_try) 2>&5 | |
17067 | ac_status=$? | |
17068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17069 | (exit $ac_status); }; }; then | |
17070 | ac_hi=-1 ac_mid=-1 | |
17071 | while :; do | |
17072 | cat >conftest.$ac_ext <<_ACEOF | |
17073 | /* confdefs.h. */ | |
17074 | _ACEOF | |
17075 | cat confdefs.h >>conftest.$ac_ext | |
17076 | cat >>conftest.$ac_ext <<_ACEOF | |
17077 | /* end confdefs.h. */ | |
17078 | $ac_includes_default | |
17079 | int | |
17080 | main () | |
17081 | { | |
17082 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
17083 | test_array [0] = 0 | |
17084 | ||
17085 | ; | |
17086 | return 0; | |
17087 | } | |
17088 | _ACEOF | |
17089 | rm -f conftest.$ac_objext | |
17090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17091 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17092 | ac_status=$? |
ac1cb8d3 VS |
17093 | grep -v '^ *+' conftest.er1 >conftest.err |
17094 | rm -f conftest.er1 | |
17095 | cat conftest.err >&5 | |
a848cd7e SC |
17096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17097 | (exit $ac_status); } && | |
6ebeb4c7 | 17098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17100 | (eval $ac_try) 2>&5 | |
17101 | ac_status=$? | |
17102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17103 | (exit $ac_status); }; } && | |
17104 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17106 | (eval $ac_try) 2>&5 | |
17107 | ac_status=$? | |
17108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17109 | (exit $ac_status); }; }; then | |
17110 | ac_lo=$ac_mid; break | |
17111 | else | |
17112 | echo "$as_me: failed program was:" >&5 | |
17113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17114 | ||
17115 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17116 | if test $ac_mid -le $ac_hi; then |
17117 | ac_lo= ac_hi= | |
17118 | break | |
17119 | fi | |
17120 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17121 | fi |
ac1cb8d3 | 17122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17123 | done |
17124 | else | |
17125 | echo "$as_me: failed program was:" >&5 | |
17126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17127 | ||
17128 | ac_lo= ac_hi= | |
17129 | fi | |
ac1cb8d3 | 17130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17131 | fi |
ac1cb8d3 | 17132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17133 | # Binary search between lo and hi bounds. |
17134 | while test "x$ac_lo" != "x$ac_hi"; do | |
17135 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17136 | cat >conftest.$ac_ext <<_ACEOF | |
17137 | /* confdefs.h. */ | |
17138 | _ACEOF | |
17139 | cat confdefs.h >>conftest.$ac_ext | |
17140 | cat >>conftest.$ac_ext <<_ACEOF | |
17141 | /* end confdefs.h. */ | |
17142 | $ac_includes_default | |
17143 | int | |
17144 | main () | |
17145 | { | |
17146 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17147 | test_array [0] = 0 | |
17148 | ||
17149 | ; | |
17150 | return 0; | |
17151 | } | |
17152 | _ACEOF | |
17153 | rm -f conftest.$ac_objext | |
17154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17155 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17156 | ac_status=$? |
ac1cb8d3 VS |
17157 | grep -v '^ *+' conftest.er1 >conftest.err |
17158 | rm -f conftest.er1 | |
17159 | cat conftest.err >&5 | |
a848cd7e SC |
17160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17161 | (exit $ac_status); } && | |
6ebeb4c7 | 17162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17164 | (eval $ac_try) 2>&5 | |
17165 | ac_status=$? | |
17166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17167 | (exit $ac_status); }; } && | |
17168 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17170 | (eval $ac_try) 2>&5 | |
17171 | ac_status=$? | |
17172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17173 | (exit $ac_status); }; }; then | |
17174 | ac_hi=$ac_mid | |
17175 | else | |
17176 | echo "$as_me: failed program was:" >&5 | |
17177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17178 | ||
17179 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17180 | fi | |
ac1cb8d3 | 17181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17182 | done |
17183 | case $ac_lo in | |
17184 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
17185 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17186 | See \`config.log' for more details." >&5 | |
17187 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17188 | See \`config.log' for more details." >&2;} | |
17189 | { (exit 1); exit 1; }; } ;; | |
17190 | esac | |
17191 | else | |
17192 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
17193 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17194 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17195 | { (exit 1); exit 1; }; } |
17196 | else | |
17197 | cat >conftest.$ac_ext <<_ACEOF | |
17198 | /* confdefs.h. */ | |
17199 | _ACEOF | |
17200 | cat confdefs.h >>conftest.$ac_ext | |
17201 | cat >>conftest.$ac_ext <<_ACEOF | |
17202 | /* end confdefs.h. */ | |
17203 | $ac_includes_default | |
17204 | long longval () { return (long) (sizeof (void *)); } | |
17205 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
17206 | #include <stdio.h> | |
17207 | #include <stdlib.h> | |
17208 | int | |
17209 | main () | |
17210 | { | |
17211 | ||
17212 | FILE *f = fopen ("conftest.val", "w"); | |
17213 | if (! f) | |
17214 | exit (1); | |
17215 | if (((long) (sizeof (void *))) < 0) | |
17216 | { | |
17217 | long i = longval (); | |
17218 | if (i != ((long) (sizeof (void *)))) | |
17219 | exit (1); | |
17220 | fprintf (f, "%ld\n", i); | |
17221 | } | |
17222 | else | |
17223 | { | |
17224 | unsigned long i = ulongval (); | |
17225 | if (i != ((long) (sizeof (void *)))) | |
17226 | exit (1); | |
17227 | fprintf (f, "%lu\n", i); | |
17228 | } | |
17229 | exit (ferror (f) || fclose (f) != 0); | |
17230 | ||
17231 | ; | |
17232 | return 0; | |
17233 | } | |
17234 | _ACEOF | |
17235 | rm -f conftest$ac_exeext | |
17236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17237 | (eval $ac_link) 2>&5 | |
17238 | ac_status=$? | |
17239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17240 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17242 | (eval $ac_try) 2>&5 | |
17243 | ac_status=$? | |
17244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17245 | (exit $ac_status); }; }; then | |
17246 | ac_cv_sizeof_void_p=`cat conftest.val` | |
17247 | else | |
17248 | echo "$as_me: program exited with status $ac_status" >&5 | |
17249 | echo "$as_me: failed program was:" >&5 | |
17250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17251 | ||
17252 | ( exit $ac_status ) | |
17253 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17254 | See \`config.log' for more details." >&5 | |
17255 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17256 | See \`config.log' for more details." >&2;} | |
17257 | { (exit 1); exit 1; }; } | |
17258 | fi | |
ac1cb8d3 | 17259 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17260 | fi |
17261 | fi | |
17262 | rm -f conftest.val | |
17263 | else | |
17264 | ac_cv_sizeof_void_p=0 | |
17265 | fi | |
17266 | fi | |
17267 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
17268 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
17269 | cat >>confdefs.h <<_ACEOF | |
17270 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
17271 | _ACEOF | |
17272 | ||
17273 | ||
17274 | echo "$as_me:$LINENO: checking for int" >&5 | |
17275 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
17276 | if test "${ac_cv_type_int+set}" = set; then | |
17277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17278 | else | |
17279 | cat >conftest.$ac_ext <<_ACEOF | |
17280 | /* confdefs.h. */ | |
17281 | _ACEOF | |
17282 | cat confdefs.h >>conftest.$ac_ext | |
17283 | cat >>conftest.$ac_ext <<_ACEOF | |
17284 | /* end confdefs.h. */ | |
17285 | $ac_includes_default | |
17286 | int | |
17287 | main () | |
17288 | { | |
17289 | if ((int *) 0) | |
17290 | return 0; | |
17291 | if (sizeof (int)) | |
17292 | return 0; | |
17293 | ; | |
17294 | return 0; | |
17295 | } | |
17296 | _ACEOF | |
17297 | rm -f conftest.$ac_objext | |
17298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17299 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17300 | ac_status=$? |
ac1cb8d3 VS |
17301 | grep -v '^ *+' conftest.er1 >conftest.err |
17302 | rm -f conftest.er1 | |
17303 | cat conftest.err >&5 | |
a848cd7e SC |
17304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17305 | (exit $ac_status); } && | |
6ebeb4c7 | 17306 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17308 | (eval $ac_try) 2>&5 | |
17309 | ac_status=$? | |
17310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17311 | (exit $ac_status); }; } && | |
17312 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17314 | (eval $ac_try) 2>&5 | |
17315 | ac_status=$? | |
17316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17317 | (exit $ac_status); }; }; then | |
17318 | ac_cv_type_int=yes | |
17319 | else | |
17320 | echo "$as_me: failed program was:" >&5 | |
17321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17322 | ||
17323 | ac_cv_type_int=no | |
17324 | fi | |
ac1cb8d3 | 17325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17326 | fi |
17327 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
17328 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
17329 | ||
17330 | echo "$as_me:$LINENO: checking size of int" >&5 | |
17331 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
17332 | if test "${ac_cv_sizeof_int+set}" = set; then | |
17333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17334 | else | |
17335 | if test "$ac_cv_type_int" = yes; then | |
17336 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17337 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17338 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17339 | # This bug is HP SR number 8606223364. | |
17340 | if test "$cross_compiling" = yes; then | |
17341 | # Depending upon the size, compute the lo and hi bounds. | |
17342 | cat >conftest.$ac_ext <<_ACEOF | |
17343 | /* confdefs.h. */ | |
17344 | _ACEOF | |
17345 | cat confdefs.h >>conftest.$ac_ext | |
17346 | cat >>conftest.$ac_ext <<_ACEOF | |
17347 | /* end confdefs.h. */ | |
17348 | $ac_includes_default | |
17349 | int | |
17350 | main () | |
17351 | { | |
17352 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
17353 | test_array [0] = 0 | |
17354 | ||
17355 | ; | |
17356 | return 0; | |
17357 | } | |
17358 | _ACEOF | |
17359 | rm -f conftest.$ac_objext | |
17360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17361 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17362 | ac_status=$? |
ac1cb8d3 VS |
17363 | grep -v '^ *+' conftest.er1 >conftest.err |
17364 | rm -f conftest.er1 | |
17365 | cat conftest.err >&5 | |
a848cd7e SC |
17366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17367 | (exit $ac_status); } && | |
6ebeb4c7 | 17368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17370 | (eval $ac_try) 2>&5 | |
17371 | ac_status=$? | |
17372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17373 | (exit $ac_status); }; } && | |
17374 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17376 | (eval $ac_try) 2>&5 | |
17377 | ac_status=$? | |
17378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17379 | (exit $ac_status); }; }; then | |
17380 | ac_lo=0 ac_mid=0 | |
17381 | while :; do | |
17382 | cat >conftest.$ac_ext <<_ACEOF | |
17383 | /* confdefs.h. */ | |
17384 | _ACEOF | |
17385 | cat confdefs.h >>conftest.$ac_ext | |
17386 | cat >>conftest.$ac_ext <<_ACEOF | |
17387 | /* end confdefs.h. */ | |
17388 | $ac_includes_default | |
17389 | int | |
17390 | main () | |
17391 | { | |
17392 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17393 | test_array [0] = 0 | |
17394 | ||
17395 | ; | |
17396 | return 0; | |
17397 | } | |
17398 | _ACEOF | |
17399 | rm -f conftest.$ac_objext | |
17400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17401 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17402 | ac_status=$? |
ac1cb8d3 VS |
17403 | grep -v '^ *+' conftest.er1 >conftest.err |
17404 | rm -f conftest.er1 | |
17405 | cat conftest.err >&5 | |
a848cd7e SC |
17406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17407 | (exit $ac_status); } && | |
6ebeb4c7 | 17408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17410 | (eval $ac_try) 2>&5 | |
17411 | ac_status=$? | |
17412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17413 | (exit $ac_status); }; } && | |
17414 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17416 | (eval $ac_try) 2>&5 | |
17417 | ac_status=$? | |
17418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17419 | (exit $ac_status); }; }; then | |
17420 | ac_hi=$ac_mid; break | |
17421 | else | |
17422 | echo "$as_me: failed program was:" >&5 | |
17423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17424 | ||
17425 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17426 | if test $ac_lo -le $ac_mid; then |
17427 | ac_lo= ac_hi= | |
17428 | break | |
17429 | fi | |
17430 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17431 | fi |
ac1cb8d3 | 17432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17433 | done |
17434 | else | |
17435 | echo "$as_me: failed program was:" >&5 | |
17436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17437 | ||
17438 | cat >conftest.$ac_ext <<_ACEOF | |
17439 | /* confdefs.h. */ | |
17440 | _ACEOF | |
17441 | cat confdefs.h >>conftest.$ac_ext | |
17442 | cat >>conftest.$ac_ext <<_ACEOF | |
17443 | /* end confdefs.h. */ | |
17444 | $ac_includes_default | |
17445 | int | |
17446 | main () | |
17447 | { | |
17448 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
17449 | test_array [0] = 0 | |
17450 | ||
17451 | ; | |
17452 | return 0; | |
17453 | } | |
17454 | _ACEOF | |
17455 | rm -f conftest.$ac_objext | |
17456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17457 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17458 | ac_status=$? |
ac1cb8d3 VS |
17459 | grep -v '^ *+' conftest.er1 >conftest.err |
17460 | rm -f conftest.er1 | |
17461 | cat conftest.err >&5 | |
a848cd7e SC |
17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17463 | (exit $ac_status); } && | |
6ebeb4c7 | 17464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17466 | (eval $ac_try) 2>&5 | |
17467 | ac_status=$? | |
17468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17469 | (exit $ac_status); }; } && | |
17470 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17472 | (eval $ac_try) 2>&5 | |
17473 | ac_status=$? | |
17474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17475 | (exit $ac_status); }; }; then | |
17476 | ac_hi=-1 ac_mid=-1 | |
17477 | while :; do | |
17478 | cat >conftest.$ac_ext <<_ACEOF | |
17479 | /* confdefs.h. */ | |
17480 | _ACEOF | |
17481 | cat confdefs.h >>conftest.$ac_ext | |
17482 | cat >>conftest.$ac_ext <<_ACEOF | |
17483 | /* end confdefs.h. */ | |
17484 | $ac_includes_default | |
17485 | int | |
17486 | main () | |
17487 | { | |
17488 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
17489 | test_array [0] = 0 | |
17490 | ||
17491 | ; | |
17492 | return 0; | |
17493 | } | |
17494 | _ACEOF | |
17495 | rm -f conftest.$ac_objext | |
17496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17497 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17498 | ac_status=$? |
ac1cb8d3 VS |
17499 | grep -v '^ *+' conftest.er1 >conftest.err |
17500 | rm -f conftest.er1 | |
17501 | cat conftest.err >&5 | |
a848cd7e SC |
17502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17503 | (exit $ac_status); } && | |
6ebeb4c7 | 17504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17506 | (eval $ac_try) 2>&5 | |
17507 | ac_status=$? | |
17508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17509 | (exit $ac_status); }; } && | |
17510 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17512 | (eval $ac_try) 2>&5 | |
17513 | ac_status=$? | |
17514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17515 | (exit $ac_status); }; }; then | |
17516 | ac_lo=$ac_mid; break | |
17517 | else | |
17518 | echo "$as_me: failed program was:" >&5 | |
17519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17520 | ||
17521 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17522 | if test $ac_mid -le $ac_hi; then |
17523 | ac_lo= ac_hi= | |
17524 | break | |
17525 | fi | |
17526 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17527 | fi |
ac1cb8d3 | 17528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17529 | done |
17530 | else | |
17531 | echo "$as_me: failed program was:" >&5 | |
17532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17533 | ||
17534 | ac_lo= ac_hi= | |
17535 | fi | |
ac1cb8d3 | 17536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17537 | fi |
ac1cb8d3 | 17538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17539 | # Binary search between lo and hi bounds. |
17540 | while test "x$ac_lo" != "x$ac_hi"; do | |
17541 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17542 | cat >conftest.$ac_ext <<_ACEOF | |
17543 | /* confdefs.h. */ | |
17544 | _ACEOF | |
17545 | cat confdefs.h >>conftest.$ac_ext | |
17546 | cat >>conftest.$ac_ext <<_ACEOF | |
17547 | /* end confdefs.h. */ | |
17548 | $ac_includes_default | |
17549 | int | |
17550 | main () | |
17551 | { | |
17552 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17553 | test_array [0] = 0 | |
17554 | ||
17555 | ; | |
17556 | return 0; | |
17557 | } | |
17558 | _ACEOF | |
17559 | rm -f conftest.$ac_objext | |
17560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17561 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17562 | ac_status=$? |
ac1cb8d3 VS |
17563 | grep -v '^ *+' conftest.er1 >conftest.err |
17564 | rm -f conftest.er1 | |
17565 | cat conftest.err >&5 | |
a848cd7e SC |
17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17567 | (exit $ac_status); } && | |
6ebeb4c7 | 17568 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17570 | (eval $ac_try) 2>&5 | |
17571 | ac_status=$? | |
17572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17573 | (exit $ac_status); }; } && | |
17574 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17576 | (eval $ac_try) 2>&5 | |
17577 | ac_status=$? | |
17578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17579 | (exit $ac_status); }; }; then | |
17580 | ac_hi=$ac_mid | |
17581 | else | |
17582 | echo "$as_me: failed program was:" >&5 | |
17583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17584 | ||
17585 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17586 | fi | |
ac1cb8d3 | 17587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17588 | done |
17589 | case $ac_lo in | |
17590 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
17591 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17592 | See \`config.log' for more details." >&5 | |
17593 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17594 | See \`config.log' for more details." >&2;} | |
17595 | { (exit 1); exit 1; }; } ;; | |
17596 | esac | |
17597 | else | |
17598 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
17599 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17600 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17601 | { (exit 1); exit 1; }; } |
17602 | else | |
17603 | cat >conftest.$ac_ext <<_ACEOF | |
17604 | /* confdefs.h. */ | |
17605 | _ACEOF | |
17606 | cat confdefs.h >>conftest.$ac_ext | |
17607 | cat >>conftest.$ac_ext <<_ACEOF | |
17608 | /* end confdefs.h. */ | |
17609 | $ac_includes_default | |
17610 | long longval () { return (long) (sizeof (int)); } | |
17611 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
17612 | #include <stdio.h> | |
17613 | #include <stdlib.h> | |
17614 | int | |
17615 | main () | |
17616 | { | |
17617 | ||
17618 | FILE *f = fopen ("conftest.val", "w"); | |
17619 | if (! f) | |
17620 | exit (1); | |
17621 | if (((long) (sizeof (int))) < 0) | |
17622 | { | |
17623 | long i = longval (); | |
17624 | if (i != ((long) (sizeof (int)))) | |
17625 | exit (1); | |
17626 | fprintf (f, "%ld\n", i); | |
17627 | } | |
17628 | else | |
17629 | { | |
17630 | unsigned long i = ulongval (); | |
17631 | if (i != ((long) (sizeof (int)))) | |
17632 | exit (1); | |
17633 | fprintf (f, "%lu\n", i); | |
17634 | } | |
17635 | exit (ferror (f) || fclose (f) != 0); | |
17636 | ||
17637 | ; | |
17638 | return 0; | |
17639 | } | |
17640 | _ACEOF | |
17641 | rm -f conftest$ac_exeext | |
17642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17643 | (eval $ac_link) 2>&5 | |
17644 | ac_status=$? | |
17645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17646 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17648 | (eval $ac_try) 2>&5 | |
17649 | ac_status=$? | |
17650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17651 | (exit $ac_status); }; }; then | |
17652 | ac_cv_sizeof_int=`cat conftest.val` | |
17653 | else | |
17654 | echo "$as_me: program exited with status $ac_status" >&5 | |
17655 | echo "$as_me: failed program was:" >&5 | |
17656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17657 | ||
17658 | ( exit $ac_status ) | |
17659 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17660 | See \`config.log' for more details." >&5 | |
17661 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17662 | See \`config.log' for more details." >&2;} | |
17663 | { (exit 1); exit 1; }; } | |
17664 | fi | |
ac1cb8d3 | 17665 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17666 | fi |
17667 | fi | |
17668 | rm -f conftest.val | |
17669 | else | |
17670 | ac_cv_sizeof_int=0 | |
17671 | fi | |
17672 | fi | |
17673 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
17674 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
17675 | cat >>confdefs.h <<_ACEOF | |
17676 | #define SIZEOF_INT $ac_cv_sizeof_int | |
17677 | _ACEOF | |
17678 | ||
17679 | ||
17680 | echo "$as_me:$LINENO: checking for long" >&5 | |
17681 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
17682 | if test "${ac_cv_type_long+set}" = set; then | |
17683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17684 | else | |
17685 | cat >conftest.$ac_ext <<_ACEOF | |
17686 | /* confdefs.h. */ | |
17687 | _ACEOF | |
17688 | cat confdefs.h >>conftest.$ac_ext | |
17689 | cat >>conftest.$ac_ext <<_ACEOF | |
17690 | /* end confdefs.h. */ | |
17691 | $ac_includes_default | |
17692 | int | |
17693 | main () | |
17694 | { | |
17695 | if ((long *) 0) | |
17696 | return 0; | |
17697 | if (sizeof (long)) | |
17698 | return 0; | |
17699 | ; | |
17700 | return 0; | |
17701 | } | |
17702 | _ACEOF | |
17703 | rm -f conftest.$ac_objext | |
17704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17705 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17706 | ac_status=$? |
ac1cb8d3 VS |
17707 | grep -v '^ *+' conftest.er1 >conftest.err |
17708 | rm -f conftest.er1 | |
17709 | cat conftest.err >&5 | |
a848cd7e SC |
17710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17711 | (exit $ac_status); } && | |
6ebeb4c7 | 17712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17714 | (eval $ac_try) 2>&5 | |
17715 | ac_status=$? | |
17716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17717 | (exit $ac_status); }; } && | |
17718 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17720 | (eval $ac_try) 2>&5 | |
17721 | ac_status=$? | |
17722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17723 | (exit $ac_status); }; }; then | |
17724 | ac_cv_type_long=yes | |
17725 | else | |
17726 | echo "$as_me: failed program was:" >&5 | |
17727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17728 | ||
17729 | ac_cv_type_long=no | |
17730 | fi | |
ac1cb8d3 | 17731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17732 | fi |
17733 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
17734 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
17735 | ||
17736 | echo "$as_me:$LINENO: checking size of long" >&5 | |
17737 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
17738 | if test "${ac_cv_sizeof_long+set}" = set; then | |
17739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17740 | else | |
17741 | if test "$ac_cv_type_long" = yes; then | |
17742 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17743 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17744 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17745 | # This bug is HP SR number 8606223364. | |
17746 | if test "$cross_compiling" = yes; then | |
17747 | # Depending upon the size, compute the lo and hi bounds. | |
17748 | cat >conftest.$ac_ext <<_ACEOF | |
17749 | /* confdefs.h. */ | |
17750 | _ACEOF | |
17751 | cat confdefs.h >>conftest.$ac_ext | |
17752 | cat >>conftest.$ac_ext <<_ACEOF | |
17753 | /* end confdefs.h. */ | |
17754 | $ac_includes_default | |
17755 | int | |
17756 | main () | |
17757 | { | |
17758 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
17759 | test_array [0] = 0 | |
17760 | ||
17761 | ; | |
17762 | return 0; | |
17763 | } | |
17764 | _ACEOF | |
17765 | rm -f conftest.$ac_objext | |
17766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17767 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17768 | ac_status=$? |
ac1cb8d3 VS |
17769 | grep -v '^ *+' conftest.er1 >conftest.err |
17770 | rm -f conftest.er1 | |
17771 | cat conftest.err >&5 | |
a848cd7e SC |
17772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17773 | (exit $ac_status); } && | |
6ebeb4c7 | 17774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17776 | (eval $ac_try) 2>&5 | |
17777 | ac_status=$? | |
17778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17779 | (exit $ac_status); }; } && | |
17780 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17782 | (eval $ac_try) 2>&5 | |
17783 | ac_status=$? | |
17784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17785 | (exit $ac_status); }; }; then | |
17786 | ac_lo=0 ac_mid=0 | |
17787 | while :; do | |
17788 | cat >conftest.$ac_ext <<_ACEOF | |
17789 | /* confdefs.h. */ | |
17790 | _ACEOF | |
17791 | cat confdefs.h >>conftest.$ac_ext | |
17792 | cat >>conftest.$ac_ext <<_ACEOF | |
17793 | /* end confdefs.h. */ | |
17794 | $ac_includes_default | |
17795 | int | |
17796 | main () | |
17797 | { | |
17798 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17799 | test_array [0] = 0 | |
17800 | ||
17801 | ; | |
17802 | return 0; | |
17803 | } | |
17804 | _ACEOF | |
17805 | rm -f conftest.$ac_objext | |
17806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17807 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17808 | ac_status=$? |
ac1cb8d3 VS |
17809 | grep -v '^ *+' conftest.er1 >conftest.err |
17810 | rm -f conftest.er1 | |
17811 | cat conftest.err >&5 | |
a848cd7e SC |
17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17813 | (exit $ac_status); } && | |
6ebeb4c7 | 17814 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17816 | (eval $ac_try) 2>&5 | |
17817 | ac_status=$? | |
17818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17819 | (exit $ac_status); }; } && | |
17820 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17822 | (eval $ac_try) 2>&5 | |
17823 | ac_status=$? | |
17824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17825 | (exit $ac_status); }; }; then | |
17826 | ac_hi=$ac_mid; break | |
17827 | else | |
17828 | echo "$as_me: failed program was:" >&5 | |
17829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17830 | ||
17831 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17832 | if test $ac_lo -le $ac_mid; then |
17833 | ac_lo= ac_hi= | |
17834 | break | |
17835 | fi | |
17836 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17837 | fi |
ac1cb8d3 | 17838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17839 | done |
17840 | else | |
17841 | echo "$as_me: failed program was:" >&5 | |
17842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17843 | ||
17844 | cat >conftest.$ac_ext <<_ACEOF | |
17845 | /* confdefs.h. */ | |
17846 | _ACEOF | |
17847 | cat confdefs.h >>conftest.$ac_ext | |
17848 | cat >>conftest.$ac_ext <<_ACEOF | |
17849 | /* end confdefs.h. */ | |
17850 | $ac_includes_default | |
17851 | int | |
17852 | main () | |
17853 | { | |
17854 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17855 | test_array [0] = 0 | |
17856 | ||
17857 | ; | |
17858 | return 0; | |
17859 | } | |
17860 | _ACEOF | |
17861 | rm -f conftest.$ac_objext | |
17862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17863 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17864 | ac_status=$? |
ac1cb8d3 VS |
17865 | grep -v '^ *+' conftest.er1 >conftest.err |
17866 | rm -f conftest.er1 | |
17867 | cat conftest.err >&5 | |
a848cd7e SC |
17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17869 | (exit $ac_status); } && | |
6ebeb4c7 | 17870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17872 | (eval $ac_try) 2>&5 | |
17873 | ac_status=$? | |
17874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17875 | (exit $ac_status); }; } && | |
17876 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17878 | (eval $ac_try) 2>&5 | |
17879 | ac_status=$? | |
17880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17881 | (exit $ac_status); }; }; then | |
17882 | ac_hi=-1 ac_mid=-1 | |
17883 | while :; do | |
17884 | cat >conftest.$ac_ext <<_ACEOF | |
17885 | /* confdefs.h. */ | |
17886 | _ACEOF | |
17887 | cat confdefs.h >>conftest.$ac_ext | |
17888 | cat >>conftest.$ac_ext <<_ACEOF | |
17889 | /* end confdefs.h. */ | |
17890 | $ac_includes_default | |
17891 | int | |
17892 | main () | |
17893 | { | |
17894 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17895 | test_array [0] = 0 | |
17896 | ||
17897 | ; | |
17898 | return 0; | |
17899 | } | |
17900 | _ACEOF | |
17901 | rm -f conftest.$ac_objext | |
17902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17903 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17904 | ac_status=$? |
ac1cb8d3 VS |
17905 | grep -v '^ *+' conftest.er1 >conftest.err |
17906 | rm -f conftest.er1 | |
17907 | cat conftest.err >&5 | |
a848cd7e SC |
17908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17909 | (exit $ac_status); } && | |
6ebeb4c7 | 17910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17912 | (eval $ac_try) 2>&5 | |
17913 | ac_status=$? | |
17914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17915 | (exit $ac_status); }; } && | |
17916 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17918 | (eval $ac_try) 2>&5 | |
17919 | ac_status=$? | |
17920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17921 | (exit $ac_status); }; }; then | |
17922 | ac_lo=$ac_mid; break | |
17923 | else | |
17924 | echo "$as_me: failed program was:" >&5 | |
17925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17926 | ||
17927 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17928 | if test $ac_mid -le $ac_hi; then |
17929 | ac_lo= ac_hi= | |
17930 | break | |
17931 | fi | |
17932 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17933 | fi |
ac1cb8d3 | 17934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17935 | done |
17936 | else | |
17937 | echo "$as_me: failed program was:" >&5 | |
17938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17939 | ||
17940 | ac_lo= ac_hi= | |
17941 | fi | |
ac1cb8d3 | 17942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17943 | fi |
ac1cb8d3 | 17944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17945 | # Binary search between lo and hi bounds. |
17946 | while test "x$ac_lo" != "x$ac_hi"; do | |
17947 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17948 | cat >conftest.$ac_ext <<_ACEOF | |
17949 | /* confdefs.h. */ | |
17950 | _ACEOF | |
17951 | cat confdefs.h >>conftest.$ac_ext | |
17952 | cat >>conftest.$ac_ext <<_ACEOF | |
17953 | /* end confdefs.h. */ | |
17954 | $ac_includes_default | |
17955 | int | |
17956 | main () | |
17957 | { | |
17958 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17959 | test_array [0] = 0 | |
17960 | ||
17961 | ; | |
17962 | return 0; | |
17963 | } | |
17964 | _ACEOF | |
17965 | rm -f conftest.$ac_objext | |
17966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17967 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17968 | ac_status=$? |
ac1cb8d3 VS |
17969 | grep -v '^ *+' conftest.er1 >conftest.err |
17970 | rm -f conftest.er1 | |
17971 | cat conftest.err >&5 | |
a848cd7e SC |
17972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17973 | (exit $ac_status); } && | |
6ebeb4c7 | 17974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17976 | (eval $ac_try) 2>&5 | |
17977 | ac_status=$? | |
17978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17979 | (exit $ac_status); }; } && | |
17980 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17982 | (eval $ac_try) 2>&5 | |
17983 | ac_status=$? | |
17984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17985 | (exit $ac_status); }; }; then | |
17986 | ac_hi=$ac_mid | |
17987 | else | |
17988 | echo "$as_me: failed program was:" >&5 | |
17989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17990 | ||
17991 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17992 | fi | |
ac1cb8d3 | 17993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17994 | done |
17995 | case $ac_lo in | |
17996 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17997 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17998 | See \`config.log' for more details." >&5 | |
17999 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18000 | See \`config.log' for more details." >&2;} | |
18001 | { (exit 1); exit 1; }; } ;; | |
18002 | esac | |
18003 | else | |
18004 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
18005 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18006 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18007 | { (exit 1); exit 1; }; } |
18008 | else | |
18009 | cat >conftest.$ac_ext <<_ACEOF | |
18010 | /* confdefs.h. */ | |
18011 | _ACEOF | |
18012 | cat confdefs.h >>conftest.$ac_ext | |
18013 | cat >>conftest.$ac_ext <<_ACEOF | |
18014 | /* end confdefs.h. */ | |
18015 | $ac_includes_default | |
18016 | long longval () { return (long) (sizeof (long)); } | |
18017 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
18018 | #include <stdio.h> | |
18019 | #include <stdlib.h> | |
18020 | int | |
18021 | main () | |
18022 | { | |
18023 | ||
18024 | FILE *f = fopen ("conftest.val", "w"); | |
18025 | if (! f) | |
18026 | exit (1); | |
18027 | if (((long) (sizeof (long))) < 0) | |
18028 | { | |
18029 | long i = longval (); | |
18030 | if (i != ((long) (sizeof (long)))) | |
18031 | exit (1); | |
18032 | fprintf (f, "%ld\n", i); | |
18033 | } | |
18034 | else | |
18035 | { | |
18036 | unsigned long i = ulongval (); | |
18037 | if (i != ((long) (sizeof (long)))) | |
18038 | exit (1); | |
18039 | fprintf (f, "%lu\n", i); | |
18040 | } | |
18041 | exit (ferror (f) || fclose (f) != 0); | |
18042 | ||
18043 | ; | |
18044 | return 0; | |
18045 | } | |
18046 | _ACEOF | |
18047 | rm -f conftest$ac_exeext | |
18048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18049 | (eval $ac_link) 2>&5 | |
18050 | ac_status=$? | |
18051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18052 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18054 | (eval $ac_try) 2>&5 | |
18055 | ac_status=$? | |
18056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18057 | (exit $ac_status); }; }; then | |
18058 | ac_cv_sizeof_long=`cat conftest.val` | |
18059 | else | |
18060 | echo "$as_me: program exited with status $ac_status" >&5 | |
18061 | echo "$as_me: failed program was:" >&5 | |
18062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18063 | ||
18064 | ( exit $ac_status ) | |
18065 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18066 | See \`config.log' for more details." >&5 | |
18067 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18068 | See \`config.log' for more details." >&2;} | |
18069 | { (exit 1); exit 1; }; } | |
18070 | fi | |
ac1cb8d3 | 18071 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18072 | fi |
18073 | fi | |
18074 | rm -f conftest.val | |
18075 | else | |
18076 | ac_cv_sizeof_long=0 | |
18077 | fi | |
18078 | fi | |
18079 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
18080 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
18081 | cat >>confdefs.h <<_ACEOF | |
18082 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
18083 | _ACEOF | |
18084 | ||
18085 | ||
18086 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
18087 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
18088 | if test "${ac_cv_type_size_t+set}" = set; then | |
18089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18090 | else | |
18091 | cat >conftest.$ac_ext <<_ACEOF | |
18092 | /* confdefs.h. */ | |
18093 | _ACEOF | |
18094 | cat confdefs.h >>conftest.$ac_ext | |
18095 | cat >>conftest.$ac_ext <<_ACEOF | |
18096 | /* end confdefs.h. */ | |
18097 | $ac_includes_default | |
18098 | int | |
18099 | main () | |
18100 | { | |
18101 | if ((size_t *) 0) | |
18102 | return 0; | |
18103 | if (sizeof (size_t)) | |
18104 | return 0; | |
18105 | ; | |
18106 | return 0; | |
18107 | } | |
18108 | _ACEOF | |
18109 | rm -f conftest.$ac_objext | |
18110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18112 | ac_status=$? |
ac1cb8d3 VS |
18113 | grep -v '^ *+' conftest.er1 >conftest.err |
18114 | rm -f conftest.er1 | |
18115 | cat conftest.err >&5 | |
a848cd7e SC |
18116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18117 | (exit $ac_status); } && | |
6ebeb4c7 | 18118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18120 | (eval $ac_try) 2>&5 | |
18121 | ac_status=$? | |
18122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18123 | (exit $ac_status); }; } && | |
18124 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18126 | (eval $ac_try) 2>&5 | |
18127 | ac_status=$? | |
18128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18129 | (exit $ac_status); }; }; then | |
18130 | ac_cv_type_size_t=yes | |
18131 | else | |
18132 | echo "$as_me: failed program was:" >&5 | |
18133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18134 | ||
18135 | ac_cv_type_size_t=no | |
18136 | fi | |
ac1cb8d3 | 18137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18138 | fi |
18139 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
18140 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
18141 | ||
18142 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
18143 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
18144 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
18145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18146 | else | |
18147 | if test "$ac_cv_type_size_t" = yes; then | |
18148 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18149 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18150 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18151 | # This bug is HP SR number 8606223364. | |
18152 | if test "$cross_compiling" = yes; then | |
18153 | # Depending upon the size, compute the lo and hi bounds. | |
18154 | cat >conftest.$ac_ext <<_ACEOF | |
18155 | /* confdefs.h. */ | |
18156 | _ACEOF | |
18157 | cat confdefs.h >>conftest.$ac_ext | |
18158 | cat >>conftest.$ac_ext <<_ACEOF | |
18159 | /* end confdefs.h. */ | |
18160 | $ac_includes_default | |
18161 | int | |
18162 | main () | |
18163 | { | |
18164 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
18165 | test_array [0] = 0 | |
18166 | ||
18167 | ; | |
18168 | return 0; | |
18169 | } | |
18170 | _ACEOF | |
18171 | rm -f conftest.$ac_objext | |
18172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18173 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18174 | ac_status=$? |
ac1cb8d3 VS |
18175 | grep -v '^ *+' conftest.er1 >conftest.err |
18176 | rm -f conftest.er1 | |
18177 | cat conftest.err >&5 | |
a848cd7e SC |
18178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18179 | (exit $ac_status); } && | |
6ebeb4c7 | 18180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18182 | (eval $ac_try) 2>&5 | |
18183 | ac_status=$? | |
18184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18185 | (exit $ac_status); }; } && | |
18186 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18188 | (eval $ac_try) 2>&5 | |
18189 | ac_status=$? | |
18190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18191 | (exit $ac_status); }; }; then | |
18192 | ac_lo=0 ac_mid=0 | |
18193 | while :; do | |
18194 | cat >conftest.$ac_ext <<_ACEOF | |
18195 | /* confdefs.h. */ | |
18196 | _ACEOF | |
18197 | cat confdefs.h >>conftest.$ac_ext | |
18198 | cat >>conftest.$ac_ext <<_ACEOF | |
18199 | /* end confdefs.h. */ | |
18200 | $ac_includes_default | |
18201 | int | |
18202 | main () | |
18203 | { | |
18204 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
18205 | test_array [0] = 0 | |
18206 | ||
18207 | ; | |
18208 | return 0; | |
18209 | } | |
18210 | _ACEOF | |
18211 | rm -f conftest.$ac_objext | |
18212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18213 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18214 | ac_status=$? |
ac1cb8d3 VS |
18215 | grep -v '^ *+' conftest.er1 >conftest.err |
18216 | rm -f conftest.er1 | |
18217 | cat conftest.err >&5 | |
a848cd7e SC |
18218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18219 | (exit $ac_status); } && | |
6ebeb4c7 | 18220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18222 | (eval $ac_try) 2>&5 | |
18223 | ac_status=$? | |
18224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18225 | (exit $ac_status); }; } && | |
18226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18228 | (eval $ac_try) 2>&5 | |
18229 | ac_status=$? | |
18230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18231 | (exit $ac_status); }; }; then | |
18232 | ac_hi=$ac_mid; break | |
18233 | else | |
18234 | echo "$as_me: failed program was:" >&5 | |
18235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18236 | ||
18237 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18238 | if test $ac_lo -le $ac_mid; then |
18239 | ac_lo= ac_hi= | |
18240 | break | |
18241 | fi | |
18242 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18243 | fi |
ac1cb8d3 | 18244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18245 | done |
18246 | else | |
18247 | echo "$as_me: failed program was:" >&5 | |
18248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18249 | ||
18250 | cat >conftest.$ac_ext <<_ACEOF | |
18251 | /* confdefs.h. */ | |
18252 | _ACEOF | |
18253 | cat confdefs.h >>conftest.$ac_ext | |
18254 | cat >>conftest.$ac_ext <<_ACEOF | |
18255 | /* end confdefs.h. */ | |
18256 | $ac_includes_default | |
18257 | int | |
18258 | main () | |
18259 | { | |
18260 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
18261 | test_array [0] = 0 | |
18262 | ||
18263 | ; | |
18264 | return 0; | |
18265 | } | |
18266 | _ACEOF | |
18267 | rm -f conftest.$ac_objext | |
18268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18269 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18270 | ac_status=$? |
ac1cb8d3 VS |
18271 | grep -v '^ *+' conftest.er1 >conftest.err |
18272 | rm -f conftest.er1 | |
18273 | cat conftest.err >&5 | |
a848cd7e SC |
18274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18275 | (exit $ac_status); } && | |
6ebeb4c7 | 18276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18278 | (eval $ac_try) 2>&5 | |
18279 | ac_status=$? | |
18280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18281 | (exit $ac_status); }; } && | |
18282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18284 | (eval $ac_try) 2>&5 | |
18285 | ac_status=$? | |
18286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18287 | (exit $ac_status); }; }; then | |
18288 | ac_hi=-1 ac_mid=-1 | |
18289 | while :; do | |
18290 | cat >conftest.$ac_ext <<_ACEOF | |
18291 | /* confdefs.h. */ | |
18292 | _ACEOF | |
18293 | cat confdefs.h >>conftest.$ac_ext | |
18294 | cat >>conftest.$ac_ext <<_ACEOF | |
18295 | /* end confdefs.h. */ | |
18296 | $ac_includes_default | |
18297 | int | |
18298 | main () | |
18299 | { | |
18300 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
18301 | test_array [0] = 0 | |
18302 | ||
18303 | ; | |
18304 | return 0; | |
18305 | } | |
18306 | _ACEOF | |
18307 | rm -f conftest.$ac_objext | |
18308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18309 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18310 | ac_status=$? |
ac1cb8d3 VS |
18311 | grep -v '^ *+' conftest.er1 >conftest.err |
18312 | rm -f conftest.er1 | |
18313 | cat conftest.err >&5 | |
a848cd7e SC |
18314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18315 | (exit $ac_status); } && | |
6ebeb4c7 | 18316 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18318 | (eval $ac_try) 2>&5 | |
18319 | ac_status=$? | |
18320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18321 | (exit $ac_status); }; } && | |
18322 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18324 | (eval $ac_try) 2>&5 | |
18325 | ac_status=$? | |
18326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18327 | (exit $ac_status); }; }; then | |
18328 | ac_lo=$ac_mid; break | |
18329 | else | |
18330 | echo "$as_me: failed program was:" >&5 | |
18331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18332 | ||
18333 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18334 | if test $ac_mid -le $ac_hi; then |
18335 | ac_lo= ac_hi= | |
18336 | break | |
18337 | fi | |
18338 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18339 | fi |
ac1cb8d3 | 18340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18341 | done |
18342 | else | |
18343 | echo "$as_me: failed program was:" >&5 | |
18344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18345 | ||
18346 | ac_lo= ac_hi= | |
18347 | fi | |
ac1cb8d3 | 18348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18349 | fi |
ac1cb8d3 | 18350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18351 | # Binary search between lo and hi bounds. |
18352 | while test "x$ac_lo" != "x$ac_hi"; do | |
18353 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18354 | cat >conftest.$ac_ext <<_ACEOF | |
18355 | /* confdefs.h. */ | |
18356 | _ACEOF | |
18357 | cat confdefs.h >>conftest.$ac_ext | |
18358 | cat >>conftest.$ac_ext <<_ACEOF | |
18359 | /* end confdefs.h. */ | |
18360 | $ac_includes_default | |
18361 | int | |
18362 | main () | |
18363 | { | |
18364 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
18365 | test_array [0] = 0 | |
18366 | ||
18367 | ; | |
18368 | return 0; | |
18369 | } | |
18370 | _ACEOF | |
18371 | rm -f conftest.$ac_objext | |
18372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18373 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18374 | ac_status=$? |
ac1cb8d3 VS |
18375 | grep -v '^ *+' conftest.er1 >conftest.err |
18376 | rm -f conftest.er1 | |
18377 | cat conftest.err >&5 | |
a848cd7e SC |
18378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18379 | (exit $ac_status); } && | |
6ebeb4c7 | 18380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18382 | (eval $ac_try) 2>&5 | |
18383 | ac_status=$? | |
18384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18385 | (exit $ac_status); }; } && | |
18386 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18388 | (eval $ac_try) 2>&5 | |
18389 | ac_status=$? | |
18390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18391 | (exit $ac_status); }; }; then | |
18392 | ac_hi=$ac_mid | |
18393 | else | |
18394 | echo "$as_me: failed program was:" >&5 | |
18395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18396 | ||
18397 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18398 | fi | |
ac1cb8d3 | 18399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18400 | done |
18401 | case $ac_lo in | |
18402 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
18403 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18404 | See \`config.log' for more details." >&5 | |
18405 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18406 | See \`config.log' for more details." >&2;} | |
18407 | { (exit 1); exit 1; }; } ;; | |
18408 | esac | |
18409 | else | |
18410 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
18411 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18412 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18413 | { (exit 1); exit 1; }; } |
18414 | else | |
18415 | cat >conftest.$ac_ext <<_ACEOF | |
18416 | /* confdefs.h. */ | |
18417 | _ACEOF | |
18418 | cat confdefs.h >>conftest.$ac_ext | |
18419 | cat >>conftest.$ac_ext <<_ACEOF | |
18420 | /* end confdefs.h. */ | |
18421 | $ac_includes_default | |
18422 | long longval () { return (long) (sizeof (size_t)); } | |
18423 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
18424 | #include <stdio.h> | |
18425 | #include <stdlib.h> | |
18426 | int | |
18427 | main () | |
18428 | { | |
18429 | ||
18430 | FILE *f = fopen ("conftest.val", "w"); | |
18431 | if (! f) | |
18432 | exit (1); | |
18433 | if (((long) (sizeof (size_t))) < 0) | |
18434 | { | |
18435 | long i = longval (); | |
18436 | if (i != ((long) (sizeof (size_t)))) | |
18437 | exit (1); | |
18438 | fprintf (f, "%ld\n", i); | |
18439 | } | |
18440 | else | |
18441 | { | |
18442 | unsigned long i = ulongval (); | |
18443 | if (i != ((long) (sizeof (size_t)))) | |
18444 | exit (1); | |
18445 | fprintf (f, "%lu\n", i); | |
18446 | } | |
18447 | exit (ferror (f) || fclose (f) != 0); | |
18448 | ||
18449 | ; | |
18450 | return 0; | |
18451 | } | |
18452 | _ACEOF | |
18453 | rm -f conftest$ac_exeext | |
18454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18455 | (eval $ac_link) 2>&5 | |
18456 | ac_status=$? | |
18457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18458 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18460 | (eval $ac_try) 2>&5 | |
18461 | ac_status=$? | |
18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18463 | (exit $ac_status); }; }; then | |
18464 | ac_cv_sizeof_size_t=`cat conftest.val` | |
18465 | else | |
18466 | echo "$as_me: program exited with status $ac_status" >&5 | |
18467 | echo "$as_me: failed program was:" >&5 | |
18468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18469 | ||
18470 | ( exit $ac_status ) | |
18471 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18472 | See \`config.log' for more details." >&5 | |
18473 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18474 | See \`config.log' for more details." >&2;} | |
18475 | { (exit 1); exit 1; }; } | |
18476 | fi | |
ac1cb8d3 | 18477 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18478 | fi |
18479 | fi | |
18480 | rm -f conftest.val | |
18481 | else | |
18482 | ac_cv_sizeof_size_t=0 | |
18483 | fi | |
18484 | fi | |
18485 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
18486 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
18487 | cat >>confdefs.h <<_ACEOF | |
18488 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
18489 | _ACEOF | |
18490 | ||
18491 | ||
18492 | ||
18493 | case "${host}" in | |
18494 | arm-*-linux* ) | |
18495 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18496 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18497 | if test "${ac_cv_type_long_long+set}" = set; then | |
18498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18499 | else | |
18500 | cat >conftest.$ac_ext <<_ACEOF | |
18501 | /* confdefs.h. */ | |
18502 | _ACEOF | |
18503 | cat confdefs.h >>conftest.$ac_ext | |
18504 | cat >>conftest.$ac_ext <<_ACEOF | |
18505 | /* end confdefs.h. */ | |
18506 | $ac_includes_default | |
18507 | int | |
18508 | main () | |
18509 | { | |
18510 | if ((long long *) 0) | |
18511 | return 0; | |
18512 | if (sizeof (long long)) | |
18513 | return 0; | |
18514 | ; | |
18515 | return 0; | |
18516 | } | |
18517 | _ACEOF | |
18518 | rm -f conftest.$ac_objext | |
18519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18520 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18521 | ac_status=$? |
ac1cb8d3 VS |
18522 | grep -v '^ *+' conftest.er1 >conftest.err |
18523 | rm -f conftest.er1 | |
18524 | cat conftest.err >&5 | |
a848cd7e SC |
18525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18526 | (exit $ac_status); } && | |
6ebeb4c7 | 18527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18529 | (eval $ac_try) 2>&5 | |
18530 | ac_status=$? | |
18531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18532 | (exit $ac_status); }; } && | |
18533 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18535 | (eval $ac_try) 2>&5 | |
18536 | ac_status=$? | |
18537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18538 | (exit $ac_status); }; }; then | |
18539 | ac_cv_type_long_long=yes | |
18540 | else | |
18541 | echo "$as_me: failed program was:" >&5 | |
18542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18543 | ||
18544 | ac_cv_type_long_long=no | |
18545 | fi | |
ac1cb8d3 | 18546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18547 | fi |
18548 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18549 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18550 | ||
18551 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18552 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18553 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18555 | else | |
18556 | if test "$ac_cv_type_long_long" = yes; then | |
18557 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18558 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18559 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18560 | # This bug is HP SR number 8606223364. | |
18561 | if test "$cross_compiling" = yes; then | |
18562 | # Depending upon the size, compute the lo and hi bounds. | |
18563 | cat >conftest.$ac_ext <<_ACEOF | |
18564 | /* confdefs.h. */ | |
18565 | _ACEOF | |
18566 | cat confdefs.h >>conftest.$ac_ext | |
18567 | cat >>conftest.$ac_ext <<_ACEOF | |
18568 | /* end confdefs.h. */ | |
18569 | $ac_includes_default | |
18570 | int | |
18571 | main () | |
18572 | { | |
18573 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18574 | test_array [0] = 0 | |
18575 | ||
18576 | ; | |
18577 | return 0; | |
18578 | } | |
18579 | _ACEOF | |
18580 | rm -f conftest.$ac_objext | |
18581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18582 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18583 | ac_status=$? |
ac1cb8d3 VS |
18584 | grep -v '^ *+' conftest.er1 >conftest.err |
18585 | rm -f conftest.er1 | |
18586 | cat conftest.err >&5 | |
a848cd7e SC |
18587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18588 | (exit $ac_status); } && | |
6ebeb4c7 | 18589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18591 | (eval $ac_try) 2>&5 | |
18592 | ac_status=$? | |
18593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18594 | (exit $ac_status); }; } && | |
18595 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18597 | (eval $ac_try) 2>&5 | |
18598 | ac_status=$? | |
18599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18600 | (exit $ac_status); }; }; then | |
18601 | ac_lo=0 ac_mid=0 | |
18602 | while :; do | |
18603 | cat >conftest.$ac_ext <<_ACEOF | |
18604 | /* confdefs.h. */ | |
18605 | _ACEOF | |
18606 | cat confdefs.h >>conftest.$ac_ext | |
18607 | cat >>conftest.$ac_ext <<_ACEOF | |
18608 | /* end confdefs.h. */ | |
18609 | $ac_includes_default | |
18610 | int | |
18611 | main () | |
18612 | { | |
18613 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18614 | test_array [0] = 0 | |
18615 | ||
18616 | ; | |
18617 | return 0; | |
18618 | } | |
18619 | _ACEOF | |
18620 | rm -f conftest.$ac_objext | |
18621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18623 | ac_status=$? |
ac1cb8d3 VS |
18624 | grep -v '^ *+' conftest.er1 >conftest.err |
18625 | rm -f conftest.er1 | |
18626 | cat conftest.err >&5 | |
a848cd7e SC |
18627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18628 | (exit $ac_status); } && | |
6ebeb4c7 | 18629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18631 | (eval $ac_try) 2>&5 | |
18632 | ac_status=$? | |
18633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18634 | (exit $ac_status); }; } && | |
18635 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18637 | (eval $ac_try) 2>&5 | |
18638 | ac_status=$? | |
18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18640 | (exit $ac_status); }; }; then | |
18641 | ac_hi=$ac_mid; break | |
18642 | else | |
18643 | echo "$as_me: failed program was:" >&5 | |
18644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18645 | ||
18646 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18647 | if test $ac_lo -le $ac_mid; then |
18648 | ac_lo= ac_hi= | |
18649 | break | |
18650 | fi | |
18651 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18652 | fi |
ac1cb8d3 | 18653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18654 | done |
18655 | else | |
18656 | echo "$as_me: failed program was:" >&5 | |
18657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18658 | ||
18659 | cat >conftest.$ac_ext <<_ACEOF | |
18660 | /* confdefs.h. */ | |
18661 | _ACEOF | |
18662 | cat confdefs.h >>conftest.$ac_ext | |
18663 | cat >>conftest.$ac_ext <<_ACEOF | |
18664 | /* end confdefs.h. */ | |
18665 | $ac_includes_default | |
18666 | int | |
18667 | main () | |
18668 | { | |
18669 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18670 | test_array [0] = 0 | |
18671 | ||
18672 | ; | |
18673 | return 0; | |
18674 | } | |
18675 | _ACEOF | |
18676 | rm -f conftest.$ac_objext | |
18677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18678 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18679 | ac_status=$? |
ac1cb8d3 VS |
18680 | grep -v '^ *+' conftest.er1 >conftest.err |
18681 | rm -f conftest.er1 | |
18682 | cat conftest.err >&5 | |
a848cd7e SC |
18683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18684 | (exit $ac_status); } && | |
6ebeb4c7 | 18685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18687 | (eval $ac_try) 2>&5 | |
18688 | ac_status=$? | |
18689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18690 | (exit $ac_status); }; } && | |
18691 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18693 | (eval $ac_try) 2>&5 | |
18694 | ac_status=$? | |
18695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18696 | (exit $ac_status); }; }; then | |
18697 | ac_hi=-1 ac_mid=-1 | |
18698 | while :; do | |
18699 | cat >conftest.$ac_ext <<_ACEOF | |
18700 | /* confdefs.h. */ | |
18701 | _ACEOF | |
18702 | cat confdefs.h >>conftest.$ac_ext | |
18703 | cat >>conftest.$ac_ext <<_ACEOF | |
18704 | /* end confdefs.h. */ | |
18705 | $ac_includes_default | |
18706 | int | |
18707 | main () | |
18708 | { | |
18709 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18710 | test_array [0] = 0 | |
18711 | ||
18712 | ; | |
18713 | return 0; | |
18714 | } | |
18715 | _ACEOF | |
18716 | rm -f conftest.$ac_objext | |
18717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18718 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18719 | ac_status=$? |
ac1cb8d3 VS |
18720 | grep -v '^ *+' conftest.er1 >conftest.err |
18721 | rm -f conftest.er1 | |
18722 | cat conftest.err >&5 | |
a848cd7e SC |
18723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18724 | (exit $ac_status); } && | |
6ebeb4c7 | 18725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18727 | (eval $ac_try) 2>&5 | |
18728 | ac_status=$? | |
18729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18730 | (exit $ac_status); }; } && | |
18731 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18733 | (eval $ac_try) 2>&5 | |
18734 | ac_status=$? | |
18735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18736 | (exit $ac_status); }; }; then | |
18737 | ac_lo=$ac_mid; break | |
18738 | else | |
18739 | echo "$as_me: failed program was:" >&5 | |
18740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18741 | ||
18742 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18743 | if test $ac_mid -le $ac_hi; then |
18744 | ac_lo= ac_hi= | |
18745 | break | |
18746 | fi | |
18747 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18748 | fi |
ac1cb8d3 | 18749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18750 | done |
18751 | else | |
18752 | echo "$as_me: failed program was:" >&5 | |
18753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18754 | ||
18755 | ac_lo= ac_hi= | |
18756 | fi | |
ac1cb8d3 | 18757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18758 | fi |
ac1cb8d3 | 18759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18760 | # Binary search between lo and hi bounds. |
18761 | while test "x$ac_lo" != "x$ac_hi"; do | |
18762 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18763 | cat >conftest.$ac_ext <<_ACEOF | |
18764 | /* confdefs.h. */ | |
18765 | _ACEOF | |
18766 | cat confdefs.h >>conftest.$ac_ext | |
18767 | cat >>conftest.$ac_ext <<_ACEOF | |
18768 | /* end confdefs.h. */ | |
18769 | $ac_includes_default | |
18770 | int | |
18771 | main () | |
18772 | { | |
18773 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18774 | test_array [0] = 0 | |
18775 | ||
18776 | ; | |
18777 | return 0; | |
18778 | } | |
18779 | _ACEOF | |
18780 | rm -f conftest.$ac_objext | |
18781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18782 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18783 | ac_status=$? |
ac1cb8d3 VS |
18784 | grep -v '^ *+' conftest.er1 >conftest.err |
18785 | rm -f conftest.er1 | |
18786 | cat conftest.err >&5 | |
a848cd7e SC |
18787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18788 | (exit $ac_status); } && | |
6ebeb4c7 | 18789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18791 | (eval $ac_try) 2>&5 | |
18792 | ac_status=$? | |
18793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18794 | (exit $ac_status); }; } && | |
18795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18797 | (eval $ac_try) 2>&5 | |
18798 | ac_status=$? | |
18799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18800 | (exit $ac_status); }; }; then | |
18801 | ac_hi=$ac_mid | |
18802 | else | |
18803 | echo "$as_me: failed program was:" >&5 | |
18804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18805 | ||
18806 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18807 | fi | |
ac1cb8d3 | 18808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18809 | done |
18810 | case $ac_lo in | |
18811 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18812 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18813 | See \`config.log' for more details." >&5 | |
18814 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18815 | See \`config.log' for more details." >&2;} | |
18816 | { (exit 1); exit 1; }; } ;; | |
18817 | esac | |
18818 | else | |
18819 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
18820 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18821 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18822 | { (exit 1); exit 1; }; } |
18823 | else | |
18824 | cat >conftest.$ac_ext <<_ACEOF | |
18825 | /* confdefs.h. */ | |
18826 | _ACEOF | |
18827 | cat confdefs.h >>conftest.$ac_ext | |
18828 | cat >>conftest.$ac_ext <<_ACEOF | |
18829 | /* end confdefs.h. */ | |
18830 | $ac_includes_default | |
18831 | long longval () { return (long) (sizeof (long long)); } | |
18832 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18833 | #include <stdio.h> | |
18834 | #include <stdlib.h> | |
18835 | int | |
18836 | main () | |
18837 | { | |
18838 | ||
18839 | FILE *f = fopen ("conftest.val", "w"); | |
18840 | if (! f) | |
18841 | exit (1); | |
18842 | if (((long) (sizeof (long long))) < 0) | |
18843 | { | |
18844 | long i = longval (); | |
18845 | if (i != ((long) (sizeof (long long)))) | |
18846 | exit (1); | |
18847 | fprintf (f, "%ld\n", i); | |
18848 | } | |
18849 | else | |
18850 | { | |
18851 | unsigned long i = ulongval (); | |
18852 | if (i != ((long) (sizeof (long long)))) | |
18853 | exit (1); | |
18854 | fprintf (f, "%lu\n", i); | |
18855 | } | |
18856 | exit (ferror (f) || fclose (f) != 0); | |
18857 | ||
18858 | ; | |
18859 | return 0; | |
18860 | } | |
18861 | _ACEOF | |
18862 | rm -f conftest$ac_exeext | |
18863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18864 | (eval $ac_link) 2>&5 | |
18865 | ac_status=$? | |
18866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18867 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18869 | (eval $ac_try) 2>&5 | |
18870 | ac_status=$? | |
18871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18872 | (exit $ac_status); }; }; then | |
18873 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18874 | else | |
18875 | echo "$as_me: program exited with status $ac_status" >&5 | |
18876 | echo "$as_me: failed program was:" >&5 | |
18877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18878 | ||
18879 | ( exit $ac_status ) | |
18880 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18881 | See \`config.log' for more details." >&5 | |
18882 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18883 | See \`config.log' for more details." >&2;} | |
18884 | { (exit 1); exit 1; }; } | |
18885 | fi | |
ac1cb8d3 | 18886 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18887 | fi |
18888 | fi | |
18889 | rm -f conftest.val | |
18890 | else | |
18891 | ac_cv_sizeof_long_long=0 | |
18892 | fi | |
18893 | fi | |
18894 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18895 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18896 | cat >>confdefs.h <<_ACEOF | |
18897 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18898 | _ACEOF | |
18899 | ||
18900 | ||
18901 | ;; | |
18902 | *-hp-hpux* ) | |
18903 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18904 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18905 | if test "${ac_cv_type_long_long+set}" = set; then | |
18906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18907 | else | |
18908 | cat >conftest.$ac_ext <<_ACEOF | |
18909 | /* confdefs.h. */ | |
18910 | _ACEOF | |
18911 | cat confdefs.h >>conftest.$ac_ext | |
18912 | cat >>conftest.$ac_ext <<_ACEOF | |
18913 | /* end confdefs.h. */ | |
18914 | $ac_includes_default | |
18915 | int | |
18916 | main () | |
18917 | { | |
18918 | if ((long long *) 0) | |
18919 | return 0; | |
18920 | if (sizeof (long long)) | |
18921 | return 0; | |
18922 | ; | |
18923 | return 0; | |
18924 | } | |
18925 | _ACEOF | |
18926 | rm -f conftest.$ac_objext | |
18927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18928 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18929 | ac_status=$? |
ac1cb8d3 VS |
18930 | grep -v '^ *+' conftest.er1 >conftest.err |
18931 | rm -f conftest.er1 | |
18932 | cat conftest.err >&5 | |
a848cd7e SC |
18933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18934 | (exit $ac_status); } && | |
6ebeb4c7 | 18935 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18937 | (eval $ac_try) 2>&5 | |
18938 | ac_status=$? | |
18939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18940 | (exit $ac_status); }; } && | |
18941 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18943 | (eval $ac_try) 2>&5 | |
18944 | ac_status=$? | |
18945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18946 | (exit $ac_status); }; }; then | |
18947 | ac_cv_type_long_long=yes | |
18948 | else | |
18949 | echo "$as_me: failed program was:" >&5 | |
18950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18951 | ||
18952 | ac_cv_type_long_long=no | |
18953 | fi | |
ac1cb8d3 | 18954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18955 | fi |
18956 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18957 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18958 | ||
18959 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18960 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18961 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18963 | else | |
18964 | if test "$ac_cv_type_long_long" = yes; then | |
18965 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18966 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18967 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18968 | # This bug is HP SR number 8606223364. | |
18969 | if test "$cross_compiling" = yes; then | |
18970 | # Depending upon the size, compute the lo and hi bounds. | |
18971 | cat >conftest.$ac_ext <<_ACEOF | |
18972 | /* confdefs.h. */ | |
18973 | _ACEOF | |
18974 | cat confdefs.h >>conftest.$ac_ext | |
18975 | cat >>conftest.$ac_ext <<_ACEOF | |
18976 | /* end confdefs.h. */ | |
18977 | $ac_includes_default | |
18978 | int | |
18979 | main () | |
18980 | { | |
18981 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18982 | test_array [0] = 0 | |
18983 | ||
18984 | ; | |
18985 | return 0; | |
18986 | } | |
18987 | _ACEOF | |
18988 | rm -f conftest.$ac_objext | |
18989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18990 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18991 | ac_status=$? |
ac1cb8d3 VS |
18992 | grep -v '^ *+' conftest.er1 >conftest.err |
18993 | rm -f conftest.er1 | |
18994 | cat conftest.err >&5 | |
a848cd7e SC |
18995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18996 | (exit $ac_status); } && | |
6ebeb4c7 | 18997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18999 | (eval $ac_try) 2>&5 | |
19000 | ac_status=$? | |
19001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19002 | (exit $ac_status); }; } && | |
19003 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19005 | (eval $ac_try) 2>&5 | |
19006 | ac_status=$? | |
19007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19008 | (exit $ac_status); }; }; then | |
19009 | ac_lo=0 ac_mid=0 | |
19010 | while :; do | |
19011 | cat >conftest.$ac_ext <<_ACEOF | |
19012 | /* confdefs.h. */ | |
19013 | _ACEOF | |
19014 | cat confdefs.h >>conftest.$ac_ext | |
19015 | cat >>conftest.$ac_ext <<_ACEOF | |
19016 | /* end confdefs.h. */ | |
19017 | $ac_includes_default | |
19018 | int | |
19019 | main () | |
19020 | { | |
19021 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19022 | test_array [0] = 0 | |
19023 | ||
19024 | ; | |
19025 | return 0; | |
19026 | } | |
19027 | _ACEOF | |
19028 | rm -f conftest.$ac_objext | |
19029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19030 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19031 | ac_status=$? |
ac1cb8d3 VS |
19032 | grep -v '^ *+' conftest.er1 >conftest.err |
19033 | rm -f conftest.er1 | |
19034 | cat conftest.err >&5 | |
a848cd7e SC |
19035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19036 | (exit $ac_status); } && | |
6ebeb4c7 | 19037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19039 | (eval $ac_try) 2>&5 | |
19040 | ac_status=$? | |
19041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19042 | (exit $ac_status); }; } && | |
19043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19045 | (eval $ac_try) 2>&5 | |
19046 | ac_status=$? | |
19047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19048 | (exit $ac_status); }; }; then | |
19049 | ac_hi=$ac_mid; break | |
19050 | else | |
19051 | echo "$as_me: failed program was:" >&5 | |
19052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19053 | ||
19054 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19055 | if test $ac_lo -le $ac_mid; then |
19056 | ac_lo= ac_hi= | |
19057 | break | |
19058 | fi | |
19059 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19060 | fi |
ac1cb8d3 | 19061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19062 | done |
19063 | else | |
19064 | echo "$as_me: failed program was:" >&5 | |
19065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19066 | ||
19067 | cat >conftest.$ac_ext <<_ACEOF | |
19068 | /* confdefs.h. */ | |
19069 | _ACEOF | |
19070 | cat confdefs.h >>conftest.$ac_ext | |
19071 | cat >>conftest.$ac_ext <<_ACEOF | |
19072 | /* end confdefs.h. */ | |
19073 | $ac_includes_default | |
19074 | int | |
19075 | main () | |
19076 | { | |
19077 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19078 | test_array [0] = 0 | |
19079 | ||
19080 | ; | |
19081 | return 0; | |
19082 | } | |
19083 | _ACEOF | |
19084 | rm -f conftest.$ac_objext | |
19085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19086 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19087 | ac_status=$? |
ac1cb8d3 VS |
19088 | grep -v '^ *+' conftest.er1 >conftest.err |
19089 | rm -f conftest.er1 | |
19090 | cat conftest.err >&5 | |
a848cd7e SC |
19091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19092 | (exit $ac_status); } && | |
6ebeb4c7 | 19093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19095 | (eval $ac_try) 2>&5 | |
19096 | ac_status=$? | |
19097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19098 | (exit $ac_status); }; } && | |
19099 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19101 | (eval $ac_try) 2>&5 | |
19102 | ac_status=$? | |
19103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19104 | (exit $ac_status); }; }; then | |
19105 | ac_hi=-1 ac_mid=-1 | |
19106 | while :; do | |
19107 | cat >conftest.$ac_ext <<_ACEOF | |
19108 | /* confdefs.h. */ | |
19109 | _ACEOF | |
19110 | cat confdefs.h >>conftest.$ac_ext | |
19111 | cat >>conftest.$ac_ext <<_ACEOF | |
19112 | /* end confdefs.h. */ | |
19113 | $ac_includes_default | |
19114 | int | |
19115 | main () | |
19116 | { | |
19117 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19118 | test_array [0] = 0 | |
19119 | ||
19120 | ; | |
19121 | return 0; | |
19122 | } | |
19123 | _ACEOF | |
19124 | rm -f conftest.$ac_objext | |
19125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19126 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19127 | ac_status=$? |
ac1cb8d3 VS |
19128 | grep -v '^ *+' conftest.er1 >conftest.err |
19129 | rm -f conftest.er1 | |
19130 | cat conftest.err >&5 | |
a848cd7e SC |
19131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19132 | (exit $ac_status); } && | |
6ebeb4c7 | 19133 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19135 | (eval $ac_try) 2>&5 | |
19136 | ac_status=$? | |
19137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19138 | (exit $ac_status); }; } && | |
19139 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19141 | (eval $ac_try) 2>&5 | |
19142 | ac_status=$? | |
19143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19144 | (exit $ac_status); }; }; then | |
19145 | ac_lo=$ac_mid; break | |
19146 | else | |
19147 | echo "$as_me: failed program was:" >&5 | |
19148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19149 | ||
19150 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19151 | if test $ac_mid -le $ac_hi; then |
19152 | ac_lo= ac_hi= | |
19153 | break | |
19154 | fi | |
19155 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19156 | fi |
ac1cb8d3 | 19157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19158 | done |
19159 | else | |
19160 | echo "$as_me: failed program was:" >&5 | |
19161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19162 | ||
19163 | ac_lo= ac_hi= | |
19164 | fi | |
ac1cb8d3 | 19165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19166 | fi |
ac1cb8d3 | 19167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19168 | # Binary search between lo and hi bounds. |
19169 | while test "x$ac_lo" != "x$ac_hi"; do | |
19170 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19171 | cat >conftest.$ac_ext <<_ACEOF | |
19172 | /* confdefs.h. */ | |
19173 | _ACEOF | |
19174 | cat confdefs.h >>conftest.$ac_ext | |
19175 | cat >>conftest.$ac_ext <<_ACEOF | |
19176 | /* end confdefs.h. */ | |
19177 | $ac_includes_default | |
19178 | int | |
19179 | main () | |
19180 | { | |
19181 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19182 | test_array [0] = 0 | |
19183 | ||
19184 | ; | |
19185 | return 0; | |
19186 | } | |
19187 | _ACEOF | |
19188 | rm -f conftest.$ac_objext | |
19189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19190 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19191 | ac_status=$? |
ac1cb8d3 VS |
19192 | grep -v '^ *+' conftest.er1 >conftest.err |
19193 | rm -f conftest.er1 | |
19194 | cat conftest.err >&5 | |
a848cd7e SC |
19195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19196 | (exit $ac_status); } && | |
6ebeb4c7 | 19197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19199 | (eval $ac_try) 2>&5 | |
19200 | ac_status=$? | |
19201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19202 | (exit $ac_status); }; } && | |
19203 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19205 | (eval $ac_try) 2>&5 | |
19206 | ac_status=$? | |
19207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19208 | (exit $ac_status); }; }; then | |
19209 | ac_hi=$ac_mid | |
19210 | else | |
19211 | echo "$as_me: failed program was:" >&5 | |
19212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19213 | ||
19214 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19215 | fi | |
ac1cb8d3 | 19216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19217 | done |
19218 | case $ac_lo in | |
19219 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19220 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19221 | See \`config.log' for more details." >&5 | |
19222 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19223 | See \`config.log' for more details." >&2;} | |
19224 | { (exit 1); exit 1; }; } ;; | |
19225 | esac | |
19226 | else | |
19227 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
19228 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19229 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19230 | { (exit 1); exit 1; }; } |
19231 | else | |
19232 | cat >conftest.$ac_ext <<_ACEOF | |
19233 | /* confdefs.h. */ | |
19234 | _ACEOF | |
19235 | cat confdefs.h >>conftest.$ac_ext | |
19236 | cat >>conftest.$ac_ext <<_ACEOF | |
19237 | /* end confdefs.h. */ | |
19238 | $ac_includes_default | |
19239 | long longval () { return (long) (sizeof (long long)); } | |
19240 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19241 | #include <stdio.h> | |
19242 | #include <stdlib.h> | |
19243 | int | |
19244 | main () | |
19245 | { | |
19246 | ||
19247 | FILE *f = fopen ("conftest.val", "w"); | |
19248 | if (! f) | |
19249 | exit (1); | |
19250 | if (((long) (sizeof (long long))) < 0) | |
19251 | { | |
19252 | long i = longval (); | |
19253 | if (i != ((long) (sizeof (long long)))) | |
19254 | exit (1); | |
19255 | fprintf (f, "%ld\n", i); | |
19256 | } | |
19257 | else | |
19258 | { | |
19259 | unsigned long i = ulongval (); | |
19260 | if (i != ((long) (sizeof (long long)))) | |
19261 | exit (1); | |
19262 | fprintf (f, "%lu\n", i); | |
19263 | } | |
19264 | exit (ferror (f) || fclose (f) != 0); | |
19265 | ||
19266 | ; | |
19267 | return 0; | |
19268 | } | |
19269 | _ACEOF | |
19270 | rm -f conftest$ac_exeext | |
19271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19272 | (eval $ac_link) 2>&5 | |
19273 | ac_status=$? | |
19274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19275 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19277 | (eval $ac_try) 2>&5 | |
19278 | ac_status=$? | |
19279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19280 | (exit $ac_status); }; }; then | |
19281 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19282 | else | |
19283 | echo "$as_me: program exited with status $ac_status" >&5 | |
19284 | echo "$as_me: failed program was:" >&5 | |
19285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19286 | ||
19287 | ( exit $ac_status ) | |
19288 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19289 | See \`config.log' for more details." >&5 | |
19290 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19291 | See \`config.log' for more details." >&2;} | |
19292 | { (exit 1); exit 1; }; } | |
19293 | fi | |
ac1cb8d3 | 19294 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19295 | fi |
19296 | fi | |
19297 | rm -f conftest.val | |
19298 | else | |
19299 | ac_cv_sizeof_long_long=0 | |
19300 | fi | |
19301 | fi | |
19302 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19303 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19304 | cat >>confdefs.h <<_ACEOF | |
19305 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19306 | _ACEOF | |
19307 | ||
19308 | ||
19309 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
19310 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
19311 | fi | |
19312 | ;; | |
19313 | * ) | |
19314 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19315 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19316 | if test "${ac_cv_type_long_long+set}" = set; then | |
19317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19318 | else | |
19319 | cat >conftest.$ac_ext <<_ACEOF | |
19320 | /* confdefs.h. */ | |
19321 | _ACEOF | |
19322 | cat confdefs.h >>conftest.$ac_ext | |
19323 | cat >>conftest.$ac_ext <<_ACEOF | |
19324 | /* end confdefs.h. */ | |
19325 | $ac_includes_default | |
19326 | int | |
19327 | main () | |
19328 | { | |
19329 | if ((long long *) 0) | |
19330 | return 0; | |
19331 | if (sizeof (long long)) | |
19332 | return 0; | |
19333 | ; | |
19334 | return 0; | |
19335 | } | |
19336 | _ACEOF | |
19337 | rm -f conftest.$ac_objext | |
19338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19339 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19340 | ac_status=$? |
ac1cb8d3 VS |
19341 | grep -v '^ *+' conftest.er1 >conftest.err |
19342 | rm -f conftest.er1 | |
19343 | cat conftest.err >&5 | |
a848cd7e SC |
19344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19345 | (exit $ac_status); } && | |
6ebeb4c7 | 19346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19348 | (eval $ac_try) 2>&5 | |
19349 | ac_status=$? | |
19350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19351 | (exit $ac_status); }; } && | |
19352 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19354 | (eval $ac_try) 2>&5 | |
19355 | ac_status=$? | |
19356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19357 | (exit $ac_status); }; }; then | |
19358 | ac_cv_type_long_long=yes | |
19359 | else | |
19360 | echo "$as_me: failed program was:" >&5 | |
19361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19362 | ||
19363 | ac_cv_type_long_long=no | |
19364 | fi | |
ac1cb8d3 | 19365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19366 | fi |
19367 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19368 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19369 | ||
19370 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19371 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19372 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19374 | else | |
19375 | if test "$ac_cv_type_long_long" = yes; then | |
19376 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19377 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19378 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19379 | # This bug is HP SR number 8606223364. | |
19380 | if test "$cross_compiling" = yes; then | |
19381 | # Depending upon the size, compute the lo and hi bounds. | |
19382 | cat >conftest.$ac_ext <<_ACEOF | |
19383 | /* confdefs.h. */ | |
19384 | _ACEOF | |
19385 | cat confdefs.h >>conftest.$ac_ext | |
19386 | cat >>conftest.$ac_ext <<_ACEOF | |
19387 | /* end confdefs.h. */ | |
19388 | $ac_includes_default | |
19389 | int | |
19390 | main () | |
19391 | { | |
19392 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19393 | test_array [0] = 0 | |
19394 | ||
19395 | ; | |
19396 | return 0; | |
19397 | } | |
19398 | _ACEOF | |
19399 | rm -f conftest.$ac_objext | |
19400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19401 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19402 | ac_status=$? |
ac1cb8d3 VS |
19403 | grep -v '^ *+' conftest.er1 >conftest.err |
19404 | rm -f conftest.er1 | |
19405 | cat conftest.err >&5 | |
a848cd7e SC |
19406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19407 | (exit $ac_status); } && | |
6ebeb4c7 | 19408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19410 | (eval $ac_try) 2>&5 | |
19411 | ac_status=$? | |
19412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19413 | (exit $ac_status); }; } && | |
19414 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19416 | (eval $ac_try) 2>&5 | |
19417 | ac_status=$? | |
19418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19419 | (exit $ac_status); }; }; then | |
19420 | ac_lo=0 ac_mid=0 | |
19421 | while :; do | |
19422 | cat >conftest.$ac_ext <<_ACEOF | |
19423 | /* confdefs.h. */ | |
19424 | _ACEOF | |
19425 | cat confdefs.h >>conftest.$ac_ext | |
19426 | cat >>conftest.$ac_ext <<_ACEOF | |
19427 | /* end confdefs.h. */ | |
19428 | $ac_includes_default | |
19429 | int | |
19430 | main () | |
19431 | { | |
19432 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19433 | test_array [0] = 0 | |
19434 | ||
19435 | ; | |
19436 | return 0; | |
19437 | } | |
19438 | _ACEOF | |
19439 | rm -f conftest.$ac_objext | |
19440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19441 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19442 | ac_status=$? |
ac1cb8d3 VS |
19443 | grep -v '^ *+' conftest.er1 >conftest.err |
19444 | rm -f conftest.er1 | |
19445 | cat conftest.err >&5 | |
a848cd7e SC |
19446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19447 | (exit $ac_status); } && | |
6ebeb4c7 | 19448 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19450 | (eval $ac_try) 2>&5 | |
19451 | ac_status=$? | |
19452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19453 | (exit $ac_status); }; } && | |
19454 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19456 | (eval $ac_try) 2>&5 | |
19457 | ac_status=$? | |
19458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19459 | (exit $ac_status); }; }; then | |
19460 | ac_hi=$ac_mid; break | |
19461 | else | |
19462 | echo "$as_me: failed program was:" >&5 | |
19463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19464 | ||
19465 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19466 | if test $ac_lo -le $ac_mid; then |
19467 | ac_lo= ac_hi= | |
19468 | break | |
19469 | fi | |
19470 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19471 | fi |
ac1cb8d3 | 19472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19473 | done |
19474 | else | |
19475 | echo "$as_me: failed program was:" >&5 | |
19476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19477 | ||
19478 | cat >conftest.$ac_ext <<_ACEOF | |
19479 | /* confdefs.h. */ | |
19480 | _ACEOF | |
19481 | cat confdefs.h >>conftest.$ac_ext | |
19482 | cat >>conftest.$ac_ext <<_ACEOF | |
19483 | /* end confdefs.h. */ | |
19484 | $ac_includes_default | |
19485 | int | |
19486 | main () | |
19487 | { | |
19488 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19489 | test_array [0] = 0 | |
19490 | ||
19491 | ; | |
19492 | return 0; | |
19493 | } | |
19494 | _ACEOF | |
19495 | rm -f conftest.$ac_objext | |
19496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19497 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19498 | ac_status=$? |
ac1cb8d3 VS |
19499 | grep -v '^ *+' conftest.er1 >conftest.err |
19500 | rm -f conftest.er1 | |
19501 | cat conftest.err >&5 | |
a848cd7e SC |
19502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19503 | (exit $ac_status); } && | |
6ebeb4c7 | 19504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19506 | (eval $ac_try) 2>&5 | |
19507 | ac_status=$? | |
19508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19509 | (exit $ac_status); }; } && | |
19510 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19512 | (eval $ac_try) 2>&5 | |
19513 | ac_status=$? | |
19514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19515 | (exit $ac_status); }; }; then | |
19516 | ac_hi=-1 ac_mid=-1 | |
19517 | while :; do | |
19518 | cat >conftest.$ac_ext <<_ACEOF | |
19519 | /* confdefs.h. */ | |
19520 | _ACEOF | |
19521 | cat confdefs.h >>conftest.$ac_ext | |
19522 | cat >>conftest.$ac_ext <<_ACEOF | |
19523 | /* end confdefs.h. */ | |
19524 | $ac_includes_default | |
19525 | int | |
19526 | main () | |
19527 | { | |
19528 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19529 | test_array [0] = 0 | |
19530 | ||
19531 | ; | |
19532 | return 0; | |
19533 | } | |
19534 | _ACEOF | |
19535 | rm -f conftest.$ac_objext | |
19536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19537 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19538 | ac_status=$? |
ac1cb8d3 VS |
19539 | grep -v '^ *+' conftest.er1 >conftest.err |
19540 | rm -f conftest.er1 | |
19541 | cat conftest.err >&5 | |
a848cd7e SC |
19542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19543 | (exit $ac_status); } && | |
6ebeb4c7 | 19544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19546 | (eval $ac_try) 2>&5 | |
19547 | ac_status=$? | |
19548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19549 | (exit $ac_status); }; } && | |
19550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19552 | (eval $ac_try) 2>&5 | |
19553 | ac_status=$? | |
19554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19555 | (exit $ac_status); }; }; then | |
19556 | ac_lo=$ac_mid; break | |
19557 | else | |
19558 | echo "$as_me: failed program was:" >&5 | |
19559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19560 | ||
19561 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19562 | if test $ac_mid -le $ac_hi; then |
19563 | ac_lo= ac_hi= | |
19564 | break | |
19565 | fi | |
19566 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19567 | fi |
ac1cb8d3 | 19568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19569 | done |
19570 | else | |
19571 | echo "$as_me: failed program was:" >&5 | |
19572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19573 | ||
19574 | ac_lo= ac_hi= | |
19575 | fi | |
ac1cb8d3 | 19576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19577 | fi |
ac1cb8d3 | 19578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19579 | # Binary search between lo and hi bounds. |
19580 | while test "x$ac_lo" != "x$ac_hi"; do | |
19581 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19582 | cat >conftest.$ac_ext <<_ACEOF | |
19583 | /* confdefs.h. */ | |
19584 | _ACEOF | |
19585 | cat confdefs.h >>conftest.$ac_ext | |
19586 | cat >>conftest.$ac_ext <<_ACEOF | |
19587 | /* end confdefs.h. */ | |
19588 | $ac_includes_default | |
19589 | int | |
19590 | main () | |
19591 | { | |
19592 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19593 | test_array [0] = 0 | |
19594 | ||
19595 | ; | |
19596 | return 0; | |
19597 | } | |
19598 | _ACEOF | |
19599 | rm -f conftest.$ac_objext | |
19600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19601 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19602 | ac_status=$? |
ac1cb8d3 VS |
19603 | grep -v '^ *+' conftest.er1 >conftest.err |
19604 | rm -f conftest.er1 | |
19605 | cat conftest.err >&5 | |
a848cd7e SC |
19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19607 | (exit $ac_status); } && | |
6ebeb4c7 | 19608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19610 | (eval $ac_try) 2>&5 | |
19611 | ac_status=$? | |
19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19613 | (exit $ac_status); }; } && | |
19614 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19616 | (eval $ac_try) 2>&5 | |
19617 | ac_status=$? | |
19618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19619 | (exit $ac_status); }; }; then | |
19620 | ac_hi=$ac_mid | |
19621 | else | |
19622 | echo "$as_me: failed program was:" >&5 | |
19623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19624 | ||
19625 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19626 | fi | |
ac1cb8d3 | 19627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19628 | done |
19629 | case $ac_lo in | |
19630 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19631 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19632 | See \`config.log' for more details." >&5 | |
19633 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19634 | See \`config.log' for more details." >&2;} | |
19635 | { (exit 1); exit 1; }; } ;; | |
19636 | esac | |
19637 | else | |
19638 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
19639 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19640 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19641 | { (exit 1); exit 1; }; } |
19642 | else | |
19643 | cat >conftest.$ac_ext <<_ACEOF | |
19644 | /* confdefs.h. */ | |
19645 | _ACEOF | |
19646 | cat confdefs.h >>conftest.$ac_ext | |
19647 | cat >>conftest.$ac_ext <<_ACEOF | |
19648 | /* end confdefs.h. */ | |
19649 | $ac_includes_default | |
19650 | long longval () { return (long) (sizeof (long long)); } | |
19651 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19652 | #include <stdio.h> | |
19653 | #include <stdlib.h> | |
19654 | int | |
19655 | main () | |
19656 | { | |
19657 | ||
19658 | FILE *f = fopen ("conftest.val", "w"); | |
19659 | if (! f) | |
19660 | exit (1); | |
19661 | if (((long) (sizeof (long long))) < 0) | |
19662 | { | |
19663 | long i = longval (); | |
19664 | if (i != ((long) (sizeof (long long)))) | |
19665 | exit (1); | |
19666 | fprintf (f, "%ld\n", i); | |
19667 | } | |
19668 | else | |
19669 | { | |
19670 | unsigned long i = ulongval (); | |
19671 | if (i != ((long) (sizeof (long long)))) | |
19672 | exit (1); | |
19673 | fprintf (f, "%lu\n", i); | |
19674 | } | |
19675 | exit (ferror (f) || fclose (f) != 0); | |
19676 | ||
19677 | ; | |
19678 | return 0; | |
19679 | } | |
19680 | _ACEOF | |
19681 | rm -f conftest$ac_exeext | |
19682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19683 | (eval $ac_link) 2>&5 | |
19684 | ac_status=$? | |
19685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19686 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19688 | (eval $ac_try) 2>&5 | |
19689 | ac_status=$? | |
19690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19691 | (exit $ac_status); }; }; then | |
19692 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19693 | else | |
19694 | echo "$as_me: program exited with status $ac_status" >&5 | |
19695 | echo "$as_me: failed program was:" >&5 | |
19696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19697 | ||
19698 | ( exit $ac_status ) | |
19699 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19700 | See \`config.log' for more details." >&5 | |
19701 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19702 | See \`config.log' for more details." >&2;} | |
19703 | { (exit 1); exit 1; }; } | |
19704 | fi | |
ac1cb8d3 | 19705 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19706 | fi |
19707 | fi | |
19708 | rm -f conftest.val | |
19709 | else | |
19710 | ac_cv_sizeof_long_long=0 | |
19711 | fi | |
19712 | fi | |
19713 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19714 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19715 | cat >>confdefs.h <<_ACEOF | |
19716 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19717 | _ACEOF | |
19718 | ||
19719 | ||
19720 | esac | |
19721 | ||
238ecede MW |
19722 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
19723 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
19724 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
19725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19726 | else | |
19727 | cat >conftest.$ac_ext <<_ACEOF | |
19728 | /* confdefs.h. */ | |
19729 | _ACEOF | |
19730 | cat confdefs.h >>conftest.$ac_ext | |
19731 | cat >>conftest.$ac_ext <<_ACEOF | |
19732 | /* end confdefs.h. */ | |
19733 | ||
83d8eb47 MW |
19734 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19735 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19736 | # error "fake wchar_t" |
19737 | #endif | |
19738 | #ifdef HAVE_WCHAR_H | |
19739 | # ifdef __CYGWIN__ | |
19740 | # include <stddef.h> | |
19741 | # endif | |
19742 | # include <wchar.h> | |
19743 | #endif | |
19744 | #ifdef HAVE_STDLIB_H | |
19745 | # include <stdlib.h> | |
19746 | #endif | |
19747 | #include <stdio.h> | |
19748 | ||
19749 | ||
19750 | ||
19751 | int | |
19752 | main () | |
19753 | { | |
19754 | if ((wchar_t *) 0) | |
19755 | return 0; | |
19756 | if (sizeof (wchar_t)) | |
19757 | return 0; | |
19758 | ; | |
19759 | return 0; | |
19760 | } | |
19761 | _ACEOF | |
19762 | rm -f conftest.$ac_objext | |
19763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19764 | (eval $ac_compile) 2>conftest.er1 | |
19765 | ac_status=$? | |
19766 | grep -v '^ *+' conftest.er1 >conftest.err | |
19767 | rm -f conftest.er1 | |
19768 | cat conftest.err >&5 | |
19769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19770 | (exit $ac_status); } && | |
6ebeb4c7 | 19771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19773 | (eval $ac_try) 2>&5 | |
19774 | ac_status=$? | |
19775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19776 | (exit $ac_status); }; } && | |
19777 | { ac_try='test -s conftest.$ac_objext' | |
19778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19779 | (eval $ac_try) 2>&5 | |
19780 | ac_status=$? | |
19781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19782 | (exit $ac_status); }; }; then | |
19783 | ac_cv_type_wchar_t=yes | |
19784 | else | |
19785 | echo "$as_me: failed program was:" >&5 | |
19786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19787 | ||
19788 | ac_cv_type_wchar_t=no | |
19789 | fi | |
19790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19791 | fi | |
19792 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
19793 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
19794 | ||
a848cd7e SC |
19795 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
19796 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 19797 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
19798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19799 | else | |
238ecede MW |
19800 | if test "$ac_cv_type_wchar_t" = yes; then |
19801 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19802 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19803 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19804 | # This bug is HP SR number 8606223364. | |
19805 | if test "$cross_compiling" = yes; then | |
19806 | # Depending upon the size, compute the lo and hi bounds. | |
19807 | cat >conftest.$ac_ext <<_ACEOF | |
19808 | /* confdefs.h. */ | |
19809 | _ACEOF | |
19810 | cat confdefs.h >>conftest.$ac_ext | |
19811 | cat >>conftest.$ac_ext <<_ACEOF | |
19812 | /* end confdefs.h. */ | |
19813 | ||
83d8eb47 MW |
19814 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19815 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19816 | # error "fake wchar_t" |
19817 | #endif | |
19818 | #ifdef HAVE_WCHAR_H | |
19819 | # ifdef __CYGWIN__ | |
19820 | # include <stddef.h> | |
19821 | # endif | |
19822 | # include <wchar.h> | |
19823 | #endif | |
19824 | #ifdef HAVE_STDLIB_H | |
19825 | # include <stdlib.h> | |
19826 | #endif | |
19827 | #include <stdio.h> | |
19828 | ||
19829 | ||
19830 | ||
19831 | int | |
19832 | main () | |
19833 | { | |
19834 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
19835 | test_array [0] = 0 | |
19836 | ||
19837 | ; | |
19838 | return 0; | |
19839 | } | |
19840 | _ACEOF | |
19841 | rm -f conftest.$ac_objext | |
19842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19843 | (eval $ac_compile) 2>conftest.er1 | |
19844 | ac_status=$? | |
19845 | grep -v '^ *+' conftest.er1 >conftest.err | |
19846 | rm -f conftest.er1 | |
19847 | cat conftest.err >&5 | |
19848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19849 | (exit $ac_status); } && | |
6ebeb4c7 | 19850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19852 | (eval $ac_try) 2>&5 | |
19853 | ac_status=$? | |
19854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19855 | (exit $ac_status); }; } && | |
19856 | { ac_try='test -s conftest.$ac_objext' | |
19857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19858 | (eval $ac_try) 2>&5 | |
19859 | ac_status=$? | |
19860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19861 | (exit $ac_status); }; }; then | |
19862 | ac_lo=0 ac_mid=0 | |
19863 | while :; do | |
19864 | cat >conftest.$ac_ext <<_ACEOF | |
19865 | /* confdefs.h. */ | |
19866 | _ACEOF | |
19867 | cat confdefs.h >>conftest.$ac_ext | |
19868 | cat >>conftest.$ac_ext <<_ACEOF | |
19869 | /* end confdefs.h. */ | |
19870 | ||
83d8eb47 MW |
19871 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19872 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19873 | # error "fake wchar_t" |
19874 | #endif | |
19875 | #ifdef HAVE_WCHAR_H | |
19876 | # ifdef __CYGWIN__ | |
19877 | # include <stddef.h> | |
19878 | # endif | |
19879 | # include <wchar.h> | |
19880 | #endif | |
19881 | #ifdef HAVE_STDLIB_H | |
19882 | # include <stdlib.h> | |
19883 | #endif | |
19884 | #include <stdio.h> | |
19885 | ||
19886 | ||
19887 | ||
19888 | int | |
19889 | main () | |
19890 | { | |
19891 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19892 | test_array [0] = 0 | |
19893 | ||
19894 | ; | |
19895 | return 0; | |
19896 | } | |
19897 | _ACEOF | |
19898 | rm -f conftest.$ac_objext | |
19899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19900 | (eval $ac_compile) 2>conftest.er1 | |
19901 | ac_status=$? | |
19902 | grep -v '^ *+' conftest.er1 >conftest.err | |
19903 | rm -f conftest.er1 | |
19904 | cat conftest.err >&5 | |
19905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19906 | (exit $ac_status); } && | |
6ebeb4c7 | 19907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19909 | (eval $ac_try) 2>&5 | |
19910 | ac_status=$? | |
19911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19912 | (exit $ac_status); }; } && | |
19913 | { ac_try='test -s conftest.$ac_objext' | |
19914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19915 | (eval $ac_try) 2>&5 | |
19916 | ac_status=$? | |
19917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19918 | (exit $ac_status); }; }; then | |
19919 | ac_hi=$ac_mid; break | |
19920 | else | |
19921 | echo "$as_me: failed program was:" >&5 | |
19922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19923 | ||
19924 | ac_lo=`expr $ac_mid + 1` | |
19925 | if test $ac_lo -le $ac_mid; then | |
19926 | ac_lo= ac_hi= | |
19927 | break | |
19928 | fi | |
19929 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19930 | fi | |
19931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19932 | done | |
19933 | else | |
19934 | echo "$as_me: failed program was:" >&5 | |
19935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19936 | ||
19937 | cat >conftest.$ac_ext <<_ACEOF | |
19938 | /* confdefs.h. */ | |
19939 | _ACEOF | |
19940 | cat confdefs.h >>conftest.$ac_ext | |
19941 | cat >>conftest.$ac_ext <<_ACEOF | |
19942 | /* end confdefs.h. */ | |
19943 | ||
83d8eb47 MW |
19944 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19945 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19946 | # error "fake wchar_t" |
19947 | #endif | |
19948 | #ifdef HAVE_WCHAR_H | |
19949 | # ifdef __CYGWIN__ | |
19950 | # include <stddef.h> | |
19951 | # endif | |
19952 | # include <wchar.h> | |
19953 | #endif | |
19954 | #ifdef HAVE_STDLIB_H | |
19955 | # include <stdlib.h> | |
19956 | #endif | |
19957 | #include <stdio.h> | |
19958 | ||
19959 | ||
19960 | ||
19961 | int | |
19962 | main () | |
19963 | { | |
19964 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
19965 | test_array [0] = 0 | |
19966 | ||
19967 | ; | |
19968 | return 0; | |
19969 | } | |
19970 | _ACEOF | |
19971 | rm -f conftest.$ac_objext | |
19972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19973 | (eval $ac_compile) 2>conftest.er1 | |
19974 | ac_status=$? | |
19975 | grep -v '^ *+' conftest.er1 >conftest.err | |
19976 | rm -f conftest.er1 | |
19977 | cat conftest.err >&5 | |
19978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19979 | (exit $ac_status); } && | |
6ebeb4c7 | 19980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19982 | (eval $ac_try) 2>&5 | |
19983 | ac_status=$? | |
19984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19985 | (exit $ac_status); }; } && | |
19986 | { ac_try='test -s conftest.$ac_objext' | |
19987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19988 | (eval $ac_try) 2>&5 | |
19989 | ac_status=$? | |
19990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19991 | (exit $ac_status); }; }; then | |
19992 | ac_hi=-1 ac_mid=-1 | |
19993 | while :; do | |
19994 | cat >conftest.$ac_ext <<_ACEOF | |
19995 | /* confdefs.h. */ | |
19996 | _ACEOF | |
19997 | cat confdefs.h >>conftest.$ac_ext | |
19998 | cat >>conftest.$ac_ext <<_ACEOF | |
19999 | /* end confdefs.h. */ | |
20000 | ||
83d8eb47 MW |
20001 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20002 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20003 | # error "fake wchar_t" |
20004 | #endif | |
20005 | #ifdef HAVE_WCHAR_H | |
20006 | # ifdef __CYGWIN__ | |
20007 | # include <stddef.h> | |
20008 | # endif | |
20009 | # include <wchar.h> | |
20010 | #endif | |
20011 | #ifdef HAVE_STDLIB_H | |
20012 | # include <stdlib.h> | |
20013 | #endif | |
20014 | #include <stdio.h> | |
20015 | ||
20016 | ||
20017 | ||
20018 | int | |
20019 | main () | |
20020 | { | |
20021 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
20022 | test_array [0] = 0 | |
20023 | ||
20024 | ; | |
20025 | return 0; | |
20026 | } | |
20027 | _ACEOF | |
20028 | rm -f conftest.$ac_objext | |
20029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20030 | (eval $ac_compile) 2>conftest.er1 | |
20031 | ac_status=$? | |
20032 | grep -v '^ *+' conftest.er1 >conftest.err | |
20033 | rm -f conftest.er1 | |
20034 | cat conftest.err >&5 | |
20035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20036 | (exit $ac_status); } && | |
6ebeb4c7 | 20037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20039 | (eval $ac_try) 2>&5 | |
20040 | ac_status=$? | |
20041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20042 | (exit $ac_status); }; } && | |
20043 | { ac_try='test -s conftest.$ac_objext' | |
20044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20045 | (eval $ac_try) 2>&5 | |
20046 | ac_status=$? | |
20047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20048 | (exit $ac_status); }; }; then | |
20049 | ac_lo=$ac_mid; break | |
20050 | else | |
20051 | echo "$as_me: failed program was:" >&5 | |
20052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20053 | ||
20054 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20055 | if test $ac_mid -le $ac_hi; then | |
20056 | ac_lo= ac_hi= | |
20057 | break | |
20058 | fi | |
20059 | ac_mid=`expr 2 '*' $ac_mid` | |
20060 | fi | |
20061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20062 | done | |
20063 | else | |
20064 | echo "$as_me: failed program was:" >&5 | |
20065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20066 | ||
20067 | ac_lo= ac_hi= | |
20068 | fi | |
20069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20070 | fi | |
20071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20072 | # Binary search between lo and hi bounds. | |
20073 | while test "x$ac_lo" != "x$ac_hi"; do | |
20074 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20075 | cat >conftest.$ac_ext <<_ACEOF | |
20076 | /* confdefs.h. */ | |
20077 | _ACEOF | |
20078 | cat confdefs.h >>conftest.$ac_ext | |
20079 | cat >>conftest.$ac_ext <<_ACEOF | |
20080 | /* end confdefs.h. */ | |
20081 | ||
83d8eb47 MW |
20082 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20083 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20084 | # error "fake wchar_t" |
20085 | #endif | |
20086 | #ifdef HAVE_WCHAR_H | |
20087 | # ifdef __CYGWIN__ | |
20088 | # include <stddef.h> | |
20089 | # endif | |
20090 | # include <wchar.h> | |
20091 | #endif | |
20092 | #ifdef HAVE_STDLIB_H | |
20093 | # include <stdlib.h> | |
20094 | #endif | |
20095 | #include <stdio.h> | |
a848cd7e | 20096 | |
a848cd7e | 20097 | |
a848cd7e | 20098 | |
238ecede MW |
20099 | int |
20100 | main () | |
20101 | { | |
20102 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20103 | test_array [0] = 0 | |
a848cd7e | 20104 | |
238ecede MW |
20105 | ; |
20106 | return 0; | |
20107 | } | |
20108 | _ACEOF | |
20109 | rm -f conftest.$ac_objext | |
20110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20111 | (eval $ac_compile) 2>conftest.er1 | |
20112 | ac_status=$? | |
20113 | grep -v '^ *+' conftest.er1 >conftest.err | |
20114 | rm -f conftest.er1 | |
20115 | cat conftest.err >&5 | |
20116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20117 | (exit $ac_status); } && | |
6ebeb4c7 | 20118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20120 | (eval $ac_try) 2>&5 | |
20121 | ac_status=$? | |
20122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20123 | (exit $ac_status); }; } && | |
20124 | { ac_try='test -s conftest.$ac_objext' | |
20125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20126 | (eval $ac_try) 2>&5 | |
20127 | ac_status=$? | |
20128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20129 | (exit $ac_status); }; }; then | |
20130 | ac_hi=$ac_mid | |
20131 | else | |
20132 | echo "$as_me: failed program was:" >&5 | |
20133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20134 | ||
20135 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20136 | fi | |
20137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20138 | done | |
20139 | case $ac_lo in | |
20140 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
20141 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
20142 | See \`config.log' for more details." >&5 | |
20143 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
20144 | See \`config.log' for more details." >&2;} | |
20145 | { (exit 1); exit 1; }; } ;; | |
20146 | esac | |
20147 | else | |
20148 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
20149 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20150 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 20151 | { (exit 1); exit 1; }; } |
a848cd7e SC |
20152 | else |
20153 | cat >conftest.$ac_ext <<_ACEOF | |
20154 | /* confdefs.h. */ | |
20155 | _ACEOF | |
20156 | cat confdefs.h >>conftest.$ac_ext | |
20157 | cat >>conftest.$ac_ext <<_ACEOF | |
20158 | /* end confdefs.h. */ | |
20159 | ||
83d8eb47 MW |
20160 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20161 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20162 | # error "fake wchar_t" |
20163 | #endif | |
20164 | #ifdef HAVE_WCHAR_H | |
20165 | # ifdef __CYGWIN__ | |
20166 | # include <stddef.h> | |
20167 | # endif | |
20168 | # include <wchar.h> | |
20169 | #endif | |
20170 | #ifdef HAVE_STDLIB_H | |
20171 | # include <stdlib.h> | |
20172 | #endif | |
20173 | #include <stdio.h> | |
20174 | ||
20175 | ||
20176 | ||
20177 | long longval () { return (long) (sizeof (wchar_t)); } | |
20178 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
20179 | #include <stdio.h> | |
20180 | #include <stdlib.h> | |
20181 | int | |
20182 | main () | |
20183 | { | |
a848cd7e | 20184 | |
238ecede MW |
20185 | FILE *f = fopen ("conftest.val", "w"); |
20186 | if (! f) | |
20187 | exit (1); | |
20188 | if (((long) (sizeof (wchar_t))) < 0) | |
20189 | { | |
20190 | long i = longval (); | |
20191 | if (i != ((long) (sizeof (wchar_t)))) | |
20192 | exit (1); | |
20193 | fprintf (f, "%ld\n", i); | |
20194 | } | |
20195 | else | |
20196 | { | |
20197 | unsigned long i = ulongval (); | |
20198 | if (i != ((long) (sizeof (wchar_t)))) | |
20199 | exit (1); | |
20200 | fprintf (f, "%lu\n", i); | |
20201 | } | |
20202 | exit (ferror (f) || fclose (f) != 0); | |
20203 | ||
20204 | ; | |
20205 | return 0; | |
20206 | } | |
a848cd7e SC |
20207 | _ACEOF |
20208 | rm -f conftest$ac_exeext | |
20209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20210 | (eval $ac_link) 2>&5 | |
20211 | ac_status=$? | |
20212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20213 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20215 | (eval $ac_try) 2>&5 | |
20216 | ac_status=$? | |
20217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20218 | (exit $ac_status); }; }; then | |
238ecede | 20219 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
20220 | else |
20221 | echo "$as_me: program exited with status $ac_status" >&5 | |
20222 | echo "$as_me: failed program was:" >&5 | |
20223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20224 | ||
20225 | ( exit $ac_status ) | |
238ecede MW |
20226 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
20227 | See \`config.log' for more details." >&5 | |
20228 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
20229 | See \`config.log' for more details." >&2;} | |
20230 | { (exit 1); exit 1; }; } | |
a848cd7e | 20231 | fi |
ac1cb8d3 | 20232 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20233 | fi |
a848cd7e | 20234 | fi |
238ecede MW |
20235 | rm -f conftest.val |
20236 | else | |
20237 | ac_cv_sizeof_wchar_t=0 | |
20238 | fi | |
20239 | fi | |
20240 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
20241 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 20242 | cat >>confdefs.h <<_ACEOF |
238ecede | 20243 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
20244 | _ACEOF |
20245 | ||
20246 | ||
47a7e797 MW |
20247 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
20248 | wxUSE_WCHAR_T=yes | |
20249 | else | |
20250 | wxUSE_WCHAR_T=no | |
20251 | fi | |
238ecede | 20252 | |
ba3d13e1 VZ |
20253 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
20254 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
20255 | if test "${wx_cv_func_va_copy+set}" = set; then | |
20256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20257 | else | |
20258 | ||
20259 | cat >conftest.$ac_ext <<_ACEOF | |
20260 | ||
20261 | #include <stdarg.h> | |
20262 | void foo(char *f, ...) | |
20263 | { | |
20264 | va_list ap1, ap2; | |
20265 | va_start(ap1, f); | |
20266 | va_copy(ap2, ap1); | |
20267 | va_end(ap2); | |
20268 | va_end(ap1); | |
20269 | } | |
5886b072 VZ |
20270 | int main() |
20271 | { | |
b902e639 VZ |
20272 | foo("hi", 17); |
20273 | return 0; | |
5886b072 | 20274 | } |
ba3d13e1 VZ |
20275 | _ACEOF |
20276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20278 | (eval $ac_link) 2>conftest.er1 | |
20279 | ac_status=$? | |
20280 | grep -v '^ *+' conftest.er1 >conftest.err | |
20281 | rm -f conftest.er1 | |
20282 | cat conftest.err >&5 | |
20283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20284 | (exit $ac_status); } && | |
6ebeb4c7 | 20285 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
20286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20287 | (eval $ac_try) 2>&5 | |
20288 | ac_status=$? | |
20289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20290 | (exit $ac_status); }; } && | |
20291 | { ac_try='test -s conftest$ac_exeext' | |
20292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20293 | (eval $ac_try) 2>&5 | |
20294 | ac_status=$? | |
20295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20296 | (exit $ac_status); }; }; then | |
20297 | wx_cv_func_va_copy=yes | |
20298 | else | |
20299 | echo "$as_me: failed program was:" >&5 | |
20300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20301 | ||
20302 | wx_cv_func_va_copy=no | |
20303 | ||
20304 | fi | |
20305 | rm -f conftest.err conftest.$ac_objext \ | |
20306 | conftest$ac_exeext conftest.$ac_ext | |
20307 | ||
20308 | ||
20309 | fi | |
20310 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
20311 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
20312 | ||
20313 | if test $wx_cv_func_va_copy = "yes"; then | |
20314 | cat >>confdefs.h <<\_ACEOF | |
20315 | #define HAVE_VA_COPY 1 | |
20316 | _ACEOF | |
20317 | ||
20318 | else | |
20319 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
20320 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
20321 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
20322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20323 | else | |
20324 | ||
20325 | if test "$cross_compiling" = yes; then | |
20326 | wx_cv_type_va_list_lvalue=yes | |
20327 | ||
20328 | else | |
20329 | cat >conftest.$ac_ext <<_ACEOF | |
20330 | ||
20331 | #include <stdarg.h> | |
20332 | int foo(char *f, ...) | |
20333 | { | |
20334 | va_list ap1, ap2; | |
20335 | va_start(ap1, f); | |
20336 | ap2 = ap1; | |
20337 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
20338 | return 1; | |
20339 | va_end(ap2); | |
20340 | va_end(ap1); | |
20341 | return 0; | |
20342 | } | |
20343 | int main() | |
20344 | { | |
20345 | return foo("hi", 17); | |
20346 | } | |
20347 | _ACEOF | |
20348 | rm -f conftest$ac_exeext | |
20349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20350 | (eval $ac_link) 2>&5 | |
20351 | ac_status=$? | |
20352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20353 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20355 | (eval $ac_try) 2>&5 | |
20356 | ac_status=$? | |
20357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20358 | (exit $ac_status); }; }; then | |
20359 | wx_cv_type_va_list_lvalue=yes | |
20360 | else | |
20361 | echo "$as_me: program exited with status $ac_status" >&5 | |
20362 | echo "$as_me: failed program was:" >&5 | |
20363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20364 | ||
20365 | ( exit $ac_status ) | |
20366 | wx_cv_type_va_list_lvalue=no | |
20367 | fi | |
20368 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20369 | fi | |
20370 | ||
20371 | ||
20372 | fi | |
20373 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
20374 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
20375 | ||
20376 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
20377 | cat >>confdefs.h <<\_ACEOF | |
20378 | #define VA_LIST_IS_ARRAY 1 | |
20379 | _ACEOF | |
20380 | ||
20381 | fi | |
20382 | fi | |
20383 | ||
a848cd7e SC |
20384 | # Check whether --enable-largefile or --disable-largefile was given. |
20385 | if test "${enable_largefile+set}" = set; then | |
20386 | enableval="$enable_largefile" | |
20387 | ||
20388 | fi; | |
20389 | if test "$enable_largefile" != no; then | |
20390 | wx_largefile=no | |
20391 | ||
20392 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
20393 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
20394 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
20395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20396 | else | |
20397 | ||
20398 | cat >conftest.$ac_ext <<_ACEOF | |
20399 | /* confdefs.h. */ | |
20400 | _ACEOF | |
20401 | cat confdefs.h >>conftest.$ac_ext | |
20402 | cat >>conftest.$ac_ext <<_ACEOF | |
20403 | /* end confdefs.h. */ | |
20404 | #define _FILE_OFFSET_BITS 64 | |
20405 | #include <sys/types.h> | |
20406 | int | |
20407 | main () | |
20408 | { | |
20409 | typedef struct { | |
20410 | unsigned int field: sizeof(off_t) == 8; | |
20411 | } wxlf; | |
20412 | ||
20413 | ; | |
20414 | return 0; | |
20415 | } | |
20416 | _ACEOF | |
20417 | rm -f conftest.$ac_objext | |
20418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20419 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20420 | ac_status=$? |
ac1cb8d3 VS |
20421 | grep -v '^ *+' conftest.er1 >conftest.err |
20422 | rm -f conftest.er1 | |
20423 | cat conftest.err >&5 | |
a848cd7e SC |
20424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20425 | (exit $ac_status); } && | |
6ebeb4c7 | 20426 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20428 | (eval $ac_try) 2>&5 | |
20429 | ac_status=$? | |
20430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20431 | (exit $ac_status); }; } && | |
20432 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20434 | (eval $ac_try) 2>&5 | |
20435 | ac_status=$? | |
20436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20437 | (exit $ac_status); }; }; then | |
20438 | ac_cv_sys_file_offset_bits=64 | |
20439 | else | |
20440 | echo "$as_me: failed program was:" >&5 | |
20441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20442 | ||
20443 | ac_cv_sys_file_offset_bits=no | |
20444 | fi | |
ac1cb8d3 | 20445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20446 | |
20447 | ||
20448 | fi | |
20449 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
20450 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
20451 | ||
20452 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
20453 | wx_largefile=yes | |
20454 | cat >>confdefs.h <<_ACEOF | |
20455 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
20456 | _ACEOF | |
20457 | ||
20458 | fi | |
20459 | ||
20460 | if test "x$wx_largefile" != "xyes"; then | |
20461 | ||
20462 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
20463 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
20464 | if test "${ac_cv_sys_large_files+set}" = set; then | |
20465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20466 | else | |
20467 | ||
20468 | cat >conftest.$ac_ext <<_ACEOF | |
20469 | /* confdefs.h. */ | |
20470 | _ACEOF | |
20471 | cat confdefs.h >>conftest.$ac_ext | |
20472 | cat >>conftest.$ac_ext <<_ACEOF | |
20473 | /* end confdefs.h. */ | |
20474 | #define _LARGE_FILES 1 | |
20475 | #include <sys/types.h> | |
20476 | int | |
20477 | main () | |
20478 | { | |
20479 | typedef struct { | |
20480 | unsigned int field: sizeof(off_t) == 8; | |
20481 | } wxlf; | |
20482 | ||
20483 | ; | |
20484 | return 0; | |
20485 | } | |
20486 | _ACEOF | |
20487 | rm -f conftest.$ac_objext | |
20488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20489 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20490 | ac_status=$? |
ac1cb8d3 VS |
20491 | grep -v '^ *+' conftest.er1 >conftest.err |
20492 | rm -f conftest.er1 | |
20493 | cat conftest.err >&5 | |
a848cd7e SC |
20494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20495 | (exit $ac_status); } && | |
6ebeb4c7 | 20496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20498 | (eval $ac_try) 2>&5 | |
20499 | ac_status=$? | |
20500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20501 | (exit $ac_status); }; } && | |
20502 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20504 | (eval $ac_try) 2>&5 | |
20505 | ac_status=$? | |
20506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20507 | (exit $ac_status); }; }; then | |
20508 | ac_cv_sys_large_files=1 | |
20509 | else | |
20510 | echo "$as_me: failed program was:" >&5 | |
20511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20512 | ||
20513 | ac_cv_sys_large_files=no | |
20514 | fi | |
ac1cb8d3 | 20515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20516 | |
20517 | ||
20518 | fi | |
20519 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
20520 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
20521 | ||
20522 | if test "$ac_cv_sys_large_files" != no; then | |
20523 | wx_largefile=yes | |
20524 | cat >>confdefs.h <<_ACEOF | |
20525 | #define _LARGE_FILES $ac_cv_sys_large_files | |
20526 | _ACEOF | |
20527 | ||
20528 | fi | |
20529 | ||
20530 | fi | |
20531 | ||
20532 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
20533 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
20534 | if test "x$wx_largefile" = "xyes"; then | |
20535 | cat >>confdefs.h <<\_ACEOF | |
20536 | #define HAVE_LARGEFILE_SUPPORT 1 | |
20537 | _ACEOF | |
20538 | ||
20539 | fi | |
20540 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
20541 | echo "${ECHO_T}$wx_largefile" >&6 | |
20542 | fi | |
20543 | ||
5b674b9d DE |
20544 | |
20545 | if test "x$wx_largefile" = "xyes"; then | |
20546 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
20547 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
00421666 MW |
20548 | |
20549 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
20550 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
20551 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
20552 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
20553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20554 | else | |
20555 | ||
20556 | ||
20557 | ||
20558 | ac_ext=cc | |
20559 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20560 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20561 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20562 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20563 | ||
20564 | cat >conftest.$ac_ext <<_ACEOF | |
20565 | /* confdefs.h. */ | |
20566 | _ACEOF | |
20567 | cat confdefs.h >>conftest.$ac_ext | |
20568 | cat >>conftest.$ac_ext <<_ACEOF | |
20569 | /* end confdefs.h. */ | |
20570 | ||
20571 | int | |
20572 | main () | |
20573 | { | |
20574 | ||
20575 | #ifndef __STDC_EXT__ | |
20576 | choke me | |
20577 | #endif | |
20578 | ||
20579 | ; | |
20580 | return 0; | |
20581 | } | |
20582 | _ACEOF | |
20583 | rm -f conftest.$ac_objext | |
20584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20585 | (eval $ac_compile) 2>conftest.er1 | |
20586 | ac_status=$? | |
20587 | grep -v '^ *+' conftest.er1 >conftest.err | |
20588 | rm -f conftest.er1 | |
20589 | cat conftest.err >&5 | |
20590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20591 | (exit $ac_status); } && | |
20592 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
20593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20594 | (eval $ac_try) 2>&5 | |
20595 | ac_status=$? | |
20596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20597 | (exit $ac_status); }; } && | |
20598 | { ac_try='test -s conftest.$ac_objext' | |
20599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20600 | (eval $ac_try) 2>&5 | |
20601 | ac_status=$? | |
20602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20603 | (exit $ac_status); }; }; then | |
20604 | wx_cv_STDC_EXT_required=no | |
20605 | else | |
20606 | echo "$as_me: failed program was:" >&5 | |
20607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20608 | ||
20609 | wx_cv_STDC_EXT_required=yes | |
20610 | ||
20611 | fi | |
20612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20613 | ac_ext=c | |
20614 | ac_cpp='$CPP $CPPFLAGS' | |
20615 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20616 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20617 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20618 | ||
20619 | ||
20620 | ||
20621 | fi | |
20622 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
20623 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
20624 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
20625 | CXXFLAGS="$CXXFLAGS -D__STDC_EXT__" | |
20626 | fi | |
20627 | fi | |
5b674b9d DE |
20628 | else |
20629 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
20630 | fi | |
20631 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
20632 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
20633 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
20634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20635 | else | |
20636 | while :; do | |
20637 | ac_cv_sys_largefile_source=no | |
20638 | cat >conftest.$ac_ext <<_ACEOF | |
20639 | /* confdefs.h. */ | |
20640 | _ACEOF | |
20641 | cat confdefs.h >>conftest.$ac_ext | |
20642 | cat >>conftest.$ac_ext <<_ACEOF | |
20643 | /* end confdefs.h. */ | |
20644 | #include <stdio.h> | |
20645 | int | |
20646 | main () | |
20647 | { | |
20648 | return !fseeko; | |
20649 | ; | |
20650 | return 0; | |
20651 | } | |
20652 | _ACEOF | |
20653 | rm -f conftest.$ac_objext | |
20654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20655 | (eval $ac_compile) 2>conftest.er1 | |
20656 | ac_status=$? | |
20657 | grep -v '^ *+' conftest.er1 >conftest.err | |
20658 | rm -f conftest.er1 | |
20659 | cat conftest.err >&5 | |
20660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20661 | (exit $ac_status); } && | |
6ebeb4c7 | 20662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20664 | (eval $ac_try) 2>&5 | |
20665 | ac_status=$? | |
20666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20667 | (exit $ac_status); }; } && | |
20668 | { ac_try='test -s conftest.$ac_objext' | |
20669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20670 | (eval $ac_try) 2>&5 | |
20671 | ac_status=$? | |
20672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20673 | (exit $ac_status); }; }; then | |
20674 | break | |
20675 | else | |
20676 | echo "$as_me: failed program was:" >&5 | |
20677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20678 | ||
20679 | fi | |
20680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20681 | cat >conftest.$ac_ext <<_ACEOF | |
20682 | /* confdefs.h. */ | |
20683 | _ACEOF | |
20684 | cat confdefs.h >>conftest.$ac_ext | |
20685 | cat >>conftest.$ac_ext <<_ACEOF | |
20686 | /* end confdefs.h. */ | |
20687 | #define _LARGEFILE_SOURCE 1 | |
20688 | #include <stdio.h> | |
20689 | int | |
20690 | main () | |
20691 | { | |
20692 | return !fseeko; | |
20693 | ; | |
20694 | return 0; | |
20695 | } | |
20696 | _ACEOF | |
20697 | rm -f conftest.$ac_objext | |
20698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20699 | (eval $ac_compile) 2>conftest.er1 | |
20700 | ac_status=$? | |
20701 | grep -v '^ *+' conftest.er1 >conftest.err | |
20702 | rm -f conftest.er1 | |
20703 | cat conftest.err >&5 | |
20704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20705 | (exit $ac_status); } && | |
6ebeb4c7 | 20706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20708 | (eval $ac_try) 2>&5 | |
20709 | ac_status=$? | |
20710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20711 | (exit $ac_status); }; } && | |
20712 | { ac_try='test -s conftest.$ac_objext' | |
20713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20714 | (eval $ac_try) 2>&5 | |
20715 | ac_status=$? | |
20716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20717 | (exit $ac_status); }; }; then | |
20718 | ac_cv_sys_largefile_source=1; break | |
20719 | else | |
20720 | echo "$as_me: failed program was:" >&5 | |
20721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20722 | ||
20723 | fi | |
20724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20725 | break | |
20726 | done | |
20727 | fi | |
20728 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
20729 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
20730 | if test "$ac_cv_sys_largefile_source" != no; then | |
20731 | ||
20732 | cat >>confdefs.h <<_ACEOF | |
20733 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20734 | _ACEOF | |
20735 | ||
20736 | fi | |
20737 | rm -f conftest* | |
20738 | ||
20739 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
20740 | # in glibc 2.1.3, but that breaks too many other things. | |
20741 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
20742 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
20743 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
20744 | if test "${ac_cv_func_fseeko+set}" = set; then | |
20745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20746 | else | |
20747 | cat >conftest.$ac_ext <<_ACEOF | |
20748 | /* confdefs.h. */ | |
20749 | _ACEOF | |
20750 | cat confdefs.h >>conftest.$ac_ext | |
20751 | cat >>conftest.$ac_ext <<_ACEOF | |
20752 | /* end confdefs.h. */ | |
20753 | #include <stdio.h> | |
20754 | int | |
20755 | main () | |
20756 | { | |
20757 | return fseeko && fseeko (stdin, 0, 0); | |
20758 | ; | |
20759 | return 0; | |
20760 | } | |
20761 | _ACEOF | |
20762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20764 | (eval $ac_link) 2>conftest.er1 | |
20765 | ac_status=$? | |
20766 | grep -v '^ *+' conftest.er1 >conftest.err | |
20767 | rm -f conftest.er1 | |
20768 | cat conftest.err >&5 | |
20769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20770 | (exit $ac_status); } && | |
6ebeb4c7 | 20771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20773 | (eval $ac_try) 2>&5 | |
20774 | ac_status=$? | |
20775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20776 | (exit $ac_status); }; } && | |
20777 | { ac_try='test -s conftest$ac_exeext' | |
20778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20779 | (eval $ac_try) 2>&5 | |
20780 | ac_status=$? | |
20781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20782 | (exit $ac_status); }; }; then | |
20783 | ac_cv_func_fseeko=yes | |
20784 | else | |
20785 | echo "$as_me: failed program was:" >&5 | |
20786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20787 | ||
20788 | ac_cv_func_fseeko=no | |
20789 | fi | |
20790 | rm -f conftest.err conftest.$ac_objext \ | |
20791 | conftest$ac_exeext conftest.$ac_ext | |
20792 | fi | |
20793 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
20794 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
20795 | if test $ac_cv_func_fseeko = yes; then | |
20796 | ||
20797 | cat >>confdefs.h <<\_ACEOF | |
20798 | #define HAVE_FSEEKO 1 | |
20799 | _ACEOF | |
20800 | ||
20801 | fi | |
20802 | ||
5b674b9d DE |
20803 | if test "$ac_cv_sys_largefile_source" != no; then |
20804 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
20805 | fi |
20806 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
20807 | fi | |
20808 | ||
20809 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
20810 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
20811 | if test "${ac_cv_c_bigendian+set}" = set; then | |
20812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20813 | else | |
20814 | ac_cv_c_bigendian=unknown | |
20815 | # See if sys/param.h defines the BYTE_ORDER macro. | |
20816 | cat >conftest.$ac_ext <<_ACEOF | |
20817 | /* confdefs.h. */ | |
20818 | _ACEOF | |
20819 | cat confdefs.h >>conftest.$ac_ext | |
20820 | cat >>conftest.$ac_ext <<_ACEOF | |
20821 | /* end confdefs.h. */ | |
20822 | #include <sys/types.h> | |
20823 | #include <sys/param.h> | |
20824 | int | |
20825 | main () | |
20826 | { | |
20827 | ||
20828 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20829 | bogus endian macros | |
20830 | #endif | |
20831 | ; | |
20832 | return 0; | |
20833 | } | |
20834 | _ACEOF | |
20835 | rm -f conftest.$ac_objext | |
20836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20837 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20838 | ac_status=$? |
ac1cb8d3 VS |
20839 | grep -v '^ *+' conftest.er1 >conftest.err |
20840 | rm -f conftest.er1 | |
20841 | cat conftest.err >&5 | |
a848cd7e SC |
20842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20843 | (exit $ac_status); } && | |
6ebeb4c7 | 20844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20846 | (eval $ac_try) 2>&5 | |
20847 | ac_status=$? | |
20848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20849 | (exit $ac_status); }; } && | |
20850 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20852 | (eval $ac_try) 2>&5 | |
20853 | ac_status=$? | |
20854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20855 | (exit $ac_status); }; }; then | |
20856 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
20857 | cat >conftest.$ac_ext <<_ACEOF | |
20858 | /* confdefs.h. */ | |
20859 | _ACEOF | |
20860 | cat confdefs.h >>conftest.$ac_ext | |
20861 | cat >>conftest.$ac_ext <<_ACEOF | |
20862 | /* end confdefs.h. */ | |
20863 | #include <sys/types.h> | |
20864 | #include <sys/param.h> | |
20865 | int | |
20866 | main () | |
20867 | { | |
20868 | ||
20869 | #if BYTE_ORDER != BIG_ENDIAN | |
20870 | not big endian | |
20871 | #endif | |
20872 | ; | |
20873 | return 0; | |
20874 | } | |
20875 | _ACEOF | |
20876 | rm -f conftest.$ac_objext | |
20877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20878 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20879 | ac_status=$? |
ac1cb8d3 VS |
20880 | grep -v '^ *+' conftest.er1 >conftest.err |
20881 | rm -f conftest.er1 | |
20882 | cat conftest.err >&5 | |
a848cd7e SC |
20883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20884 | (exit $ac_status); } && | |
6ebeb4c7 | 20885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20887 | (eval $ac_try) 2>&5 | |
20888 | ac_status=$? | |
20889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20890 | (exit $ac_status); }; } && | |
20891 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20893 | (eval $ac_try) 2>&5 | |
20894 | ac_status=$? | |
20895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20896 | (exit $ac_status); }; }; then | |
20897 | ac_cv_c_bigendian=yes | |
20898 | else | |
20899 | echo "$as_me: failed program was:" >&5 | |
20900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20901 | ||
20902 | ac_cv_c_bigendian=no | |
20903 | fi | |
ac1cb8d3 | 20904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20905 | else |
20906 | echo "$as_me: failed program was:" >&5 | |
20907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20908 | ||
20909 | fi | |
ac1cb8d3 | 20910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20911 | if test $ac_cv_c_bigendian = unknown; then |
20912 | if test "$cross_compiling" = yes; then | |
20913 | ac_cv_c_bigendian=unknown | |
20914 | else | |
20915 | cat >conftest.$ac_ext <<_ACEOF | |
20916 | /* confdefs.h. */ | |
20917 | _ACEOF | |
20918 | cat confdefs.h >>conftest.$ac_ext | |
20919 | cat >>conftest.$ac_ext <<_ACEOF | |
20920 | /* end confdefs.h. */ | |
20921 | main () { | |
20922 | /* Are we little or big endian? From Harbison&Steele. */ | |
20923 | union | |
20924 | { | |
20925 | long l; | |
20926 | char c[sizeof (long)]; | |
20927 | } u; | |
20928 | u.l = 1; | |
20929 | exit (u.c[sizeof (long) - 1] == 1); | |
20930 | } | |
20931 | _ACEOF | |
20932 | rm -f conftest$ac_exeext | |
20933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20934 | (eval $ac_link) 2>&5 | |
20935 | ac_status=$? | |
20936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20939 | (eval $ac_try) 2>&5 | |
20940 | ac_status=$? | |
20941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20942 | (exit $ac_status); }; }; then | |
20943 | ac_cv_c_bigendian=no | |
20944 | else | |
20945 | echo "$as_me: program exited with status $ac_status" >&5 | |
20946 | echo "$as_me: failed program was:" >&5 | |
20947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20948 | ||
20949 | ( exit $ac_status ) | |
20950 | ac_cv_c_bigendian=yes | |
20951 | fi | |
ac1cb8d3 | 20952 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20953 | fi |
20954 | fi | |
20955 | fi | |
20956 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20957 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
20958 | if test $ac_cv_c_bigendian = unknown; then | |
20959 | { 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 | |
20960 | 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;} | |
20961 | fi | |
20962 | if test $ac_cv_c_bigendian = yes; then | |
20963 | cat >>confdefs.h <<\_ACEOF | |
20964 | #define WORDS_BIGENDIAN 1 | |
20965 | _ACEOF | |
20966 | ||
20967 | fi | |
20968 | ||
20969 | ||
20970 | ac_ext=cc | |
20971 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20972 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20973 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20974 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20975 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
20976 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
20977 | if test -z "$CXXCPP"; then | |
20978 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
20979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20980 | else | |
20981 | # Double quotes because CXXCPP needs to be expanded | |
20982 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
20983 | do | |
20984 | ac_preproc_ok=false | |
20985 | for ac_cxx_preproc_warn_flag in '' yes | |
20986 | do | |
20987 | # Use a header file that comes with gcc, so configuring glibc | |
20988 | # with a fresh cross-compiler works. | |
20989 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20990 | # <limits.h> exists even on freestanding compilers. | |
20991 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20992 | # not just through cpp. "Syntax error" is here to catch this case. | |
20993 | cat >conftest.$ac_ext <<_ACEOF | |
20994 | /* confdefs.h. */ | |
20995 | _ACEOF | |
20996 | cat confdefs.h >>conftest.$ac_ext | |
20997 | cat >>conftest.$ac_ext <<_ACEOF | |
20998 | /* end confdefs.h. */ | |
20999 | #ifdef __STDC__ | |
21000 | # include <limits.h> | |
21001 | #else | |
21002 | # include <assert.h> | |
21003 | #endif | |
ac1cb8d3 | 21004 | Syntax error |
a848cd7e SC |
21005 | _ACEOF |
21006 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21007 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21008 | ac_status=$? | |
21009 | grep -v '^ *+' conftest.er1 >conftest.err | |
21010 | rm -f conftest.er1 | |
21011 | cat conftest.err >&5 | |
21012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21013 | (exit $ac_status); } >/dev/null; then | |
21014 | if test -s conftest.err; then | |
21015 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21016 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21017 | else |
21018 | ac_cpp_err= | |
21019 | fi | |
21020 | else | |
21021 | ac_cpp_err=yes | |
21022 | fi | |
21023 | if test -z "$ac_cpp_err"; then | |
21024 | : | |
21025 | else | |
21026 | echo "$as_me: failed program was:" >&5 | |
21027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21028 | ||
21029 | # Broken: fails on valid input. | |
21030 | continue | |
21031 | fi | |
21032 | rm -f conftest.err conftest.$ac_ext | |
21033 | ||
21034 | # OK, works on sane cases. Now check whether non-existent headers | |
21035 | # can be detected and how. | |
21036 | cat >conftest.$ac_ext <<_ACEOF | |
21037 | /* confdefs.h. */ | |
21038 | _ACEOF | |
21039 | cat confdefs.h >>conftest.$ac_ext | |
21040 | cat >>conftest.$ac_ext <<_ACEOF | |
21041 | /* end confdefs.h. */ | |
21042 | #include <ac_nonexistent.h> | |
21043 | _ACEOF | |
21044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21046 | ac_status=$? | |
21047 | grep -v '^ *+' conftest.er1 >conftest.err | |
21048 | rm -f conftest.er1 | |
21049 | cat conftest.err >&5 | |
21050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21051 | (exit $ac_status); } >/dev/null; then | |
21052 | if test -s conftest.err; then | |
21053 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21054 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21055 | else |
21056 | ac_cpp_err= | |
21057 | fi | |
21058 | else | |
21059 | ac_cpp_err=yes | |
21060 | fi | |
21061 | if test -z "$ac_cpp_err"; then | |
21062 | # Broken: success on invalid input. | |
21063 | continue | |
21064 | else | |
21065 | echo "$as_me: failed program was:" >&5 | |
21066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21067 | ||
21068 | # Passes both tests. | |
21069 | ac_preproc_ok=: | |
21070 | break | |
21071 | fi | |
21072 | rm -f conftest.err conftest.$ac_ext | |
21073 | ||
21074 | done | |
21075 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21076 | rm -f conftest.err conftest.$ac_ext | |
21077 | if $ac_preproc_ok; then | |
21078 | break | |
21079 | fi | |
21080 | ||
21081 | done | |
21082 | ac_cv_prog_CXXCPP=$CXXCPP | |
21083 | ||
21084 | fi | |
21085 | CXXCPP=$ac_cv_prog_CXXCPP | |
21086 | else | |
21087 | ac_cv_prog_CXXCPP=$CXXCPP | |
21088 | fi | |
21089 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
21090 | echo "${ECHO_T}$CXXCPP" >&6 | |
21091 | ac_preproc_ok=false | |
21092 | for ac_cxx_preproc_warn_flag in '' yes | |
21093 | do | |
21094 | # Use a header file that comes with gcc, so configuring glibc | |
21095 | # with a fresh cross-compiler works. | |
21096 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21097 | # <limits.h> exists even on freestanding compilers. | |
21098 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21099 | # not just through cpp. "Syntax error" is here to catch this case. | |
21100 | cat >conftest.$ac_ext <<_ACEOF | |
21101 | /* confdefs.h. */ | |
21102 | _ACEOF | |
21103 | cat confdefs.h >>conftest.$ac_ext | |
21104 | cat >>conftest.$ac_ext <<_ACEOF | |
21105 | /* end confdefs.h. */ | |
21106 | #ifdef __STDC__ | |
21107 | # include <limits.h> | |
21108 | #else | |
21109 | # include <assert.h> | |
21110 | #endif | |
ac1cb8d3 | 21111 | Syntax error |
a848cd7e SC |
21112 | _ACEOF |
21113 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21114 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21115 | ac_status=$? | |
21116 | grep -v '^ *+' conftest.er1 >conftest.err | |
21117 | rm -f conftest.er1 | |
21118 | cat conftest.err >&5 | |
21119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21120 | (exit $ac_status); } >/dev/null; then | |
21121 | if test -s conftest.err; then | |
21122 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21123 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21124 | else |
21125 | ac_cpp_err= | |
21126 | fi | |
21127 | else | |
21128 | ac_cpp_err=yes | |
21129 | fi | |
21130 | if test -z "$ac_cpp_err"; then | |
21131 | : | |
21132 | else | |
21133 | echo "$as_me: failed program was:" >&5 | |
21134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21135 | ||
21136 | # Broken: fails on valid input. | |
21137 | continue | |
21138 | fi | |
21139 | rm -f conftest.err conftest.$ac_ext | |
21140 | ||
21141 | # OK, works on sane cases. Now check whether non-existent headers | |
21142 | # can be detected and how. | |
21143 | cat >conftest.$ac_ext <<_ACEOF | |
21144 | /* confdefs.h. */ | |
21145 | _ACEOF | |
21146 | cat confdefs.h >>conftest.$ac_ext | |
21147 | cat >>conftest.$ac_ext <<_ACEOF | |
21148 | /* end confdefs.h. */ | |
21149 | #include <ac_nonexistent.h> | |
21150 | _ACEOF | |
21151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21153 | ac_status=$? | |
21154 | grep -v '^ *+' conftest.er1 >conftest.err | |
21155 | rm -f conftest.er1 | |
21156 | cat conftest.err >&5 | |
21157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21158 | (exit $ac_status); } >/dev/null; then | |
21159 | if test -s conftest.err; then | |
21160 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21161 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21162 | else |
21163 | ac_cpp_err= | |
21164 | fi | |
21165 | else | |
21166 | ac_cpp_err=yes | |
21167 | fi | |
21168 | if test -z "$ac_cpp_err"; then | |
21169 | # Broken: success on invalid input. | |
21170 | continue | |
21171 | else | |
21172 | echo "$as_me: failed program was:" >&5 | |
21173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21174 | ||
21175 | # Passes both tests. | |
21176 | ac_preproc_ok=: | |
21177 | break | |
21178 | fi | |
21179 | rm -f conftest.err conftest.$ac_ext | |
21180 | ||
21181 | done | |
21182 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21183 | rm -f conftest.err conftest.$ac_ext | |
21184 | if $ac_preproc_ok; then | |
21185 | : | |
21186 | else | |
21187 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
21188 | See \`config.log' for more details." >&5 | |
21189 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
21190 | See \`config.log' for more details." >&2;} | |
21191 | { (exit 1); exit 1; }; } | |
21192 | fi | |
21193 | ||
21194 | ac_ext=cc | |
21195 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21196 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21197 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21198 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21199 | ||
21200 | ||
21201 | ||
21202 | ||
21203 | ||
21204 | ac_ext=cc | |
21205 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21206 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21207 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21208 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21209 | ||
21210 | ||
21211 | ||
21212 | for ac_header in iostream | |
21213 | do | |
21214 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21216 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21217 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21220 | fi | |
21221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21222 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21223 | else | |
21224 | # Is the header compilable? | |
21225 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21226 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21227 | cat >conftest.$ac_ext <<_ACEOF | |
21228 | /* confdefs.h. */ | |
21229 | _ACEOF | |
21230 | cat confdefs.h >>conftest.$ac_ext | |
21231 | cat >>conftest.$ac_ext <<_ACEOF | |
21232 | /* end confdefs.h. */ | |
21233 | $ac_includes_default | |
21234 | #include <$ac_header> | |
21235 | _ACEOF | |
21236 | rm -f conftest.$ac_objext | |
21237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21238 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21239 | ac_status=$? |
ac1cb8d3 VS |
21240 | grep -v '^ *+' conftest.er1 >conftest.err |
21241 | rm -f conftest.er1 | |
21242 | cat conftest.err >&5 | |
a848cd7e SC |
21243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21244 | (exit $ac_status); } && | |
6ebeb4c7 | 21245 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21247 | (eval $ac_try) 2>&5 | |
21248 | ac_status=$? | |
21249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21250 | (exit $ac_status); }; } && | |
21251 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21253 | (eval $ac_try) 2>&5 | |
21254 | ac_status=$? | |
21255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21256 | (exit $ac_status); }; }; then | |
21257 | ac_header_compiler=yes | |
21258 | else | |
21259 | echo "$as_me: failed program was:" >&5 | |
21260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21261 | ||
21262 | ac_header_compiler=no | |
21263 | fi | |
ac1cb8d3 | 21264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21265 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21266 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21267 | ||
21268 | # Is the header present? | |
21269 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21270 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21271 | cat >conftest.$ac_ext <<_ACEOF | |
21272 | /* confdefs.h. */ | |
21273 | _ACEOF | |
21274 | cat confdefs.h >>conftest.$ac_ext | |
21275 | cat >>conftest.$ac_ext <<_ACEOF | |
21276 | /* end confdefs.h. */ | |
21277 | #include <$ac_header> | |
21278 | _ACEOF | |
21279 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21280 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21281 | ac_status=$? | |
21282 | grep -v '^ *+' conftest.er1 >conftest.err | |
21283 | rm -f conftest.er1 | |
21284 | cat conftest.err >&5 | |
21285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21286 | (exit $ac_status); } >/dev/null; then | |
21287 | if test -s conftest.err; then | |
21288 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21289 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21290 | else |
21291 | ac_cpp_err= | |
21292 | fi | |
21293 | else | |
21294 | ac_cpp_err=yes | |
21295 | fi | |
21296 | if test -z "$ac_cpp_err"; then | |
21297 | ac_header_preproc=yes | |
21298 | else | |
21299 | echo "$as_me: failed program was:" >&5 | |
21300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21301 | ||
21302 | ac_header_preproc=no | |
21303 | fi | |
21304 | rm -f conftest.err conftest.$ac_ext | |
21305 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21306 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21307 | ||
21308 | # So? What about this header? | |
ac1cb8d3 VS |
21309 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21310 | yes:no: ) | |
a848cd7e SC |
21311 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21312 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21313 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21314 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21315 | ac_header_preproc=yes | |
a848cd7e | 21316 | ;; |
ac1cb8d3 | 21317 | no:yes:* ) |
a848cd7e SC |
21318 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21319 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21320 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21321 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21322 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21323 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21324 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21325 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21326 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21327 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21328 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21329 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21330 | ( |
21331 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21332 | ## ----------------------------------------- ## |
21333 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21334 | ## ----------------------------------------- ## | |
a848cd7e SC |
21335 | _ASBOX |
21336 | ) | | |
21337 | sed "s/^/$as_me: WARNING: /" >&2 | |
21338 | ;; | |
21339 | esac | |
21340 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21341 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21342 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21344 | else | |
ac1cb8d3 | 21345 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
21346 | fi |
21347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21348 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21349 | ||
21350 | fi | |
21351 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
21352 | cat >>confdefs.h <<_ACEOF | |
21353 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21354 | _ACEOF | |
21355 | ||
21356 | fi | |
21357 | ||
21358 | done | |
21359 | ||
21360 | ||
21361 | if test "$ac_cv_header_iostream" = "yes" ; then | |
21362 | : | |
21363 | else | |
21364 | cat >>confdefs.h <<\_ACEOF | |
21365 | #define wxUSE_IOSTREAMH 1 | |
21366 | _ACEOF | |
21367 | ||
21368 | fi | |
21369 | ||
21370 | ac_ext=c | |
21371 | ac_cpp='$CPP $CPPFLAGS' | |
21372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21375 | ||
21376 | ||
21377 | ||
21378 | ||
21379 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
21380 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
21381 | if test "${wx_cv_cpp_bool+set}" = set; then | |
21382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21383 | else | |
21384 | ||
21385 | ||
21386 | ||
21387 | ac_ext=cc | |
21388 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21389 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21390 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21391 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21392 | ||
21393 | ||
21394 | cat >conftest.$ac_ext <<_ACEOF | |
21395 | /* confdefs.h. */ | |
21396 | _ACEOF | |
21397 | cat confdefs.h >>conftest.$ac_ext | |
21398 | cat >>conftest.$ac_ext <<_ACEOF | |
21399 | /* end confdefs.h. */ | |
21400 | ||
21401 | ||
21402 | int | |
21403 | main () | |
21404 | { | |
21405 | ||
21406 | bool b = true; | |
21407 | ||
21408 | return 0; | |
21409 | ||
21410 | ; | |
21411 | return 0; | |
21412 | } | |
21413 | _ACEOF | |
21414 | rm -f conftest.$ac_objext | |
21415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21416 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21417 | ac_status=$? |
ac1cb8d3 VS |
21418 | grep -v '^ *+' conftest.er1 >conftest.err |
21419 | rm -f conftest.er1 | |
21420 | cat conftest.err >&5 | |
a848cd7e SC |
21421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21422 | (exit $ac_status); } && | |
6ebeb4c7 | 21423 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21425 | (eval $ac_try) 2>&5 | |
21426 | ac_status=$? | |
21427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21428 | (exit $ac_status); }; } && | |
21429 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21431 | (eval $ac_try) 2>&5 | |
21432 | ac_status=$? | |
21433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21434 | (exit $ac_status); }; }; then | |
21435 | ||
21436 | wx_cv_cpp_bool=yes | |
21437 | ||
21438 | else | |
21439 | echo "$as_me: failed program was:" >&5 | |
21440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21441 | ||
21442 | ||
21443 | wx_cv_cpp_bool=no | |
21444 | ||
21445 | ||
21446 | fi | |
ac1cb8d3 | 21447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21448 | |
21449 | ac_ext=c | |
21450 | ac_cpp='$CPP $CPPFLAGS' | |
21451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21454 | ||
21455 | ||
21456 | fi | |
21457 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
21458 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21459 | ||
21460 | if test "$wx_cv_cpp_bool" = "yes"; then | |
21461 | cat >>confdefs.h <<\_ACEOF | |
21462 | #define HAVE_BOOL 1 | |
21463 | _ACEOF | |
21464 | ||
21465 | fi | |
21466 | ||
21467 | ||
21468 | ||
21469 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
21470 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
21471 | if test "${wx_cv_explicit+set}" = set; then | |
21472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21473 | else | |
21474 | ||
21475 | ||
21476 | ||
21477 | ac_ext=cc | |
21478 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21479 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21480 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21481 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21482 | ||
21483 | ||
21484 | cat >conftest.$ac_ext <<_ACEOF | |
21485 | /* confdefs.h. */ | |
21486 | _ACEOF | |
21487 | cat confdefs.h >>conftest.$ac_ext | |
21488 | cat >>conftest.$ac_ext <<_ACEOF | |
21489 | /* end confdefs.h. */ | |
21490 | ||
21491 | class Foo { public: explicit Foo(int) {} }; | |
21492 | ||
21493 | int | |
21494 | main () | |
21495 | { | |
21496 | ||
21497 | return 0; | |
21498 | ||
21499 | ; | |
21500 | return 0; | |
21501 | } | |
21502 | _ACEOF | |
21503 | rm -f conftest.$ac_objext | |
21504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21505 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21506 | ac_status=$? |
ac1cb8d3 VS |
21507 | grep -v '^ *+' conftest.er1 >conftest.err |
21508 | rm -f conftest.er1 | |
21509 | cat conftest.err >&5 | |
a848cd7e SC |
21510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21511 | (exit $ac_status); } && | |
6ebeb4c7 | 21512 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21514 | (eval $ac_try) 2>&5 | |
21515 | ac_status=$? | |
21516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21517 | (exit $ac_status); }; } && | |
21518 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21520 | (eval $ac_try) 2>&5 | |
21521 | ac_status=$? | |
21522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21523 | (exit $ac_status); }; }; then | |
21524 | ||
21525 | cat >conftest.$ac_ext <<_ACEOF | |
21526 | /* confdefs.h. */ | |
21527 | _ACEOF | |
21528 | cat confdefs.h >>conftest.$ac_ext | |
21529 | cat >>conftest.$ac_ext <<_ACEOF | |
21530 | /* end confdefs.h. */ | |
21531 | ||
21532 | class Foo { public: explicit Foo(int) {} }; | |
21533 | static void TakeFoo(const Foo& foo) { } | |
21534 | ||
21535 | int | |
21536 | main () | |
21537 | { | |
21538 | ||
21539 | TakeFoo(17); | |
21540 | return 0; | |
21541 | ||
21542 | ; | |
21543 | return 0; | |
21544 | } | |
21545 | _ACEOF | |
21546 | rm -f conftest.$ac_objext | |
21547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21548 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21549 | ac_status=$? |
ac1cb8d3 VS |
21550 | grep -v '^ *+' conftest.er1 >conftest.err |
21551 | rm -f conftest.er1 | |
21552 | cat conftest.err >&5 | |
a848cd7e SC |
21553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21554 | (exit $ac_status); } && | |
6ebeb4c7 | 21555 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21557 | (eval $ac_try) 2>&5 | |
21558 | ac_status=$? | |
21559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21560 | (exit $ac_status); }; } && | |
21561 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21563 | (eval $ac_try) 2>&5 | |
21564 | ac_status=$? | |
21565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21566 | (exit $ac_status); }; }; then | |
21567 | wx_cv_explicit=no | |
21568 | else | |
21569 | echo "$as_me: failed program was:" >&5 | |
21570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21571 | ||
21572 | wx_cv_explicit=yes | |
21573 | ||
21574 | fi | |
ac1cb8d3 | 21575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21576 | |
21577 | else | |
21578 | echo "$as_me: failed program was:" >&5 | |
21579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21580 | ||
21581 | wx_cv_explicit=no | |
21582 | ||
21583 | fi | |
ac1cb8d3 | 21584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21585 | |
21586 | ac_ext=c | |
21587 | ac_cpp='$CPP $CPPFLAGS' | |
21588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21591 | ||
21592 | ||
21593 | fi | |
21594 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
21595 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
21596 | ||
21597 | if test "$wx_cv_explicit" = "yes"; then | |
21598 | cat >>confdefs.h <<\_ACEOF | |
21599 | #define HAVE_EXPLICIT 1 | |
21600 | _ACEOF | |
21601 | ||
21602 | fi | |
21603 | ||
21604 | ||
21605 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
21606 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
21607 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
21608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21609 | else | |
21610 | ||
21611 | ||
21612 | ac_ext=cc | |
21613 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21614 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21615 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21616 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21617 | ||
21618 | cat >conftest.$ac_ext <<_ACEOF | |
21619 | /* confdefs.h. */ | |
21620 | _ACEOF | |
21621 | cat confdefs.h >>conftest.$ac_ext | |
21622 | cat >>conftest.$ac_ext <<_ACEOF | |
21623 | /* end confdefs.h. */ | |
21624 | ||
21625 | int | |
21626 | main () | |
21627 | { | |
21628 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
21629 | ; | |
21630 | return 0; | |
21631 | } | |
21632 | _ACEOF | |
21633 | rm -f conftest.$ac_objext | |
21634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21635 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21636 | ac_status=$? |
ac1cb8d3 VS |
21637 | grep -v '^ *+' conftest.er1 >conftest.err |
21638 | rm -f conftest.er1 | |
21639 | cat conftest.err >&5 | |
a848cd7e SC |
21640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21641 | (exit $ac_status); } && | |
6ebeb4c7 | 21642 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21644 | (eval $ac_try) 2>&5 | |
21645 | ac_status=$? | |
21646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21647 | (exit $ac_status); }; } && | |
21648 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21650 | (eval $ac_try) 2>&5 | |
21651 | ac_status=$? | |
21652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21653 | (exit $ac_status); }; }; then | |
21654 | ac_cv_cxx_const_cast=yes | |
21655 | else | |
21656 | echo "$as_me: failed program was:" >&5 | |
21657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21658 | ||
21659 | ac_cv_cxx_const_cast=no | |
21660 | fi | |
ac1cb8d3 | 21661 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21662 | ac_ext=c |
21663 | ac_cpp='$CPP $CPPFLAGS' | |
21664 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21665 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21666 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21667 | ||
21668 | ||
21669 | fi | |
21670 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
21671 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
21672 | if test "$ac_cv_cxx_const_cast" = yes; then | |
21673 | ||
21674 | cat >>confdefs.h <<\_ACEOF | |
21675 | #define HAVE_CONST_CAST | |
21676 | _ACEOF | |
21677 | ||
21678 | fi | |
21679 | ||
7714864e RL |
21680 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
21681 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
21682 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
21683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21684 | else | |
21685 | ||
21686 | ||
21687 | ac_ext=cc | |
21688 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21689 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21690 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21691 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21692 | ||
21693 | cat >conftest.$ac_ext <<_ACEOF | |
21694 | /* confdefs.h. */ | |
21695 | _ACEOF | |
21696 | cat confdefs.h >>conftest.$ac_ext | |
21697 | cat >>conftest.$ac_ext <<_ACEOF | |
21698 | /* end confdefs.h. */ | |
21699 | #include <typeinfo> | |
21700 | class Base { public : Base () {} virtual void f () = 0;}; | |
21701 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21702 | class Unrelated { public : Unrelated () {} }; | |
21703 | int g (Unrelated&) { return 0; } | |
21704 | int | |
21705 | main () | |
21706 | { | |
21707 | ||
21708 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
21709 | ; | |
21710 | return 0; | |
21711 | } | |
21712 | _ACEOF | |
21713 | rm -f conftest.$ac_objext | |
21714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21715 | (eval $ac_compile) 2>conftest.er1 | |
21716 | ac_status=$? | |
21717 | grep -v '^ *+' conftest.er1 >conftest.err | |
21718 | rm -f conftest.er1 | |
21719 | cat conftest.err >&5 | |
21720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21721 | (exit $ac_status); } && | |
6ebeb4c7 | 21722 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
21723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21724 | (eval $ac_try) 2>&5 | |
21725 | ac_status=$? | |
21726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21727 | (exit $ac_status); }; } && | |
21728 | { ac_try='test -s conftest.$ac_objext' | |
21729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21730 | (eval $ac_try) 2>&5 | |
21731 | ac_status=$? | |
21732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21733 | (exit $ac_status); }; }; then | |
21734 | ac_cv_cxx_reinterpret_cast=yes | |
21735 | else | |
21736 | echo "$as_me: failed program was:" >&5 | |
21737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21738 | ||
21739 | ac_cv_cxx_reinterpret_cast=no | |
21740 | fi | |
21741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21742 | ac_ext=c | |
21743 | ac_cpp='$CPP $CPPFLAGS' | |
21744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21747 | ||
21748 | ||
21749 | fi | |
21750 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
21751 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
21752 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
21753 | ||
21754 | cat >>confdefs.h <<\_ACEOF | |
21755 | #define HAVE_REINTERPRET_CAST | |
21756 | _ACEOF | |
21757 | ||
21758 | fi | |
21759 | ||
a848cd7e SC |
21760 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
21761 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
21762 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
21763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21764 | else | |
21765 | ||
21766 | ||
21767 | ac_ext=cc | |
21768 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21769 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21770 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21771 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21772 | ||
21773 | cat >conftest.$ac_ext <<_ACEOF | |
21774 | /* confdefs.h. */ | |
21775 | _ACEOF | |
21776 | cat confdefs.h >>conftest.$ac_ext | |
21777 | cat >>conftest.$ac_ext <<_ACEOF | |
21778 | /* end confdefs.h. */ | |
21779 | #include <typeinfo> | |
21780 | class Base { public : Base () {} virtual void f () = 0; }; | |
21781 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21782 | int g (Derived&) { return 0; } | |
21783 | int | |
21784 | main () | |
21785 | { | |
21786 | ||
21787 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
21788 | ; | |
21789 | return 0; | |
21790 | } | |
21791 | _ACEOF | |
21792 | rm -f conftest.$ac_objext | |
21793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21794 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21795 | ac_status=$? |
ac1cb8d3 VS |
21796 | grep -v '^ *+' conftest.er1 >conftest.err |
21797 | rm -f conftest.er1 | |
21798 | cat conftest.err >&5 | |
a848cd7e SC |
21799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21800 | (exit $ac_status); } && | |
6ebeb4c7 | 21801 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21803 | (eval $ac_try) 2>&5 | |
21804 | ac_status=$? | |
21805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21806 | (exit $ac_status); }; } && | |
21807 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21809 | (eval $ac_try) 2>&5 | |
21810 | ac_status=$? | |
21811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21812 | (exit $ac_status); }; }; then | |
21813 | ac_cv_cxx_static_cast=yes | |
21814 | else | |
21815 | echo "$as_me: failed program was:" >&5 | |
21816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21817 | ||
21818 | ac_cv_cxx_static_cast=no | |
21819 | fi | |
ac1cb8d3 | 21820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21821 | ac_ext=c |
21822 | ac_cpp='$CPP $CPPFLAGS' | |
21823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21826 | ||
21827 | ||
21828 | fi | |
21829 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
21830 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
21831 | if test "$ac_cv_cxx_static_cast" = yes; then | |
21832 | ||
21833 | cat >>confdefs.h <<\_ACEOF | |
21834 | #define HAVE_STATIC_CAST | |
21835 | _ACEOF | |
21836 | ||
21837 | fi | |
21838 | ||
21839 | ||
3c28b7cb MW |
21840 | if test "x$SUNCXX" = xyes; then |
21841 | CXXFLAGS="$CXXFLAGS -features=tmplife" | |
21842 | fi | |
21843 | ||
9122d155 VZ |
21844 | if test "x$SUNCC" = xyes; then |
21845 | CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN" | |
21846 | fi | |
21847 | ||
0ad5d837 VZ |
21848 | if test "x$SGICC" = "xyes"; then |
21849 | CFLAGS="$CFLAGS -woff 3970" | |
21850 | fi | |
21851 | if test "x$SGICXX" = "xyes"; then | |
21852 | CXXFLAGS="$CXXFLAGS -woff 3970" | |
21853 | fi | |
21854 | ||
f56c22b4 | 21855 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
21856 | ac_ext=cc |
21857 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21858 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21859 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21860 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21861 | ||
21862 | ||
f56c22b4 MW |
21863 | if test "$wxUSE_UNICODE" = "yes"; then |
21864 | std_string="std::wstring" | |
21865 | char_type="wchar_t" | |
21866 | else | |
21867 | std_string="std::string" | |
21868 | char_type="char" | |
21869 | fi | |
21870 | ||
21871 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
21872 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
21873 | cat >conftest.$ac_ext <<_ACEOF |
21874 | /* confdefs.h. */ | |
21875 | _ACEOF | |
21876 | cat confdefs.h >>conftest.$ac_ext | |
21877 | cat >>conftest.$ac_ext <<_ACEOF | |
21878 | /* end confdefs.h. */ | |
21879 | #include <string> | |
a848cd7e SC |
21880 | int |
21881 | main () | |
21882 | { | |
f56c22b4 | 21883 | $std_string foo; |
a848cd7e SC |
21884 | ; |
21885 | return 0; | |
21886 | } | |
21887 | _ACEOF | |
21888 | rm -f conftest.$ac_objext | |
21889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21890 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21891 | ac_status=$? |
ac1cb8d3 VS |
21892 | grep -v '^ *+' conftest.er1 >conftest.err |
21893 | rm -f conftest.er1 | |
21894 | cat conftest.err >&5 | |
a848cd7e SC |
21895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21896 | (exit $ac_status); } && | |
6ebeb4c7 | 21897 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21899 | (eval $ac_try) 2>&5 | |
21900 | ac_status=$? | |
21901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21902 | (exit $ac_status); }; } && | |
21903 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21905 | (eval $ac_try) 2>&5 | |
21906 | ac_status=$? | |
21907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21908 | (exit $ac_status); }; }; then | |
21909 | echo "$as_me:$LINENO: result: yes" >&5 | |
21910 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
21911 | cat >>confdefs.h <<\_ACEOF |
21912 | #define HAVE_STD_WSTRING 1 | |
21913 | _ACEOF | |
21914 | ||
a848cd7e SC |
21915 | else |
21916 | echo "$as_me: failed program was:" >&5 | |
21917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21918 | ||
21919 | echo "$as_me:$LINENO: result: no" >&5 | |
21920 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
21921 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
21922 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
21923 | cat >conftest.$ac_ext <<_ACEOF |
21924 | /* confdefs.h. */ | |
21925 | _ACEOF | |
21926 | cat confdefs.h >>conftest.$ac_ext | |
21927 | cat >>conftest.$ac_ext <<_ACEOF | |
21928 | /* end confdefs.h. */ | |
21929 | ||
21930 | #ifdef HAVE_WCHAR_H | |
21931 | # ifdef __CYGWIN__ | |
21932 | # include <stddef.h> | |
21933 | # endif | |
21934 | # include <wchar.h> | |
21935 | #endif | |
21936 | #ifdef HAVE_STDLIB_H | |
21937 | # include <stdlib.h> | |
21938 | #endif | |
21939 | #include <stdio.h> | |
21940 | #include <string> | |
21941 | ||
21942 | int | |
21943 | main () | |
21944 | { | |
f56c22b4 MW |
21945 | std::basic_string<$char_type> foo; |
21946 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
21947 | ; |
21948 | return 0; | |
21949 | } | |
21950 | _ACEOF | |
21951 | rm -f conftest.$ac_objext | |
21952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21953 | (eval $ac_compile) 2>conftest.er1 | |
21954 | ac_status=$? | |
21955 | grep -v '^ *+' conftest.er1 >conftest.err | |
21956 | rm -f conftest.er1 | |
21957 | cat conftest.err >&5 | |
21958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21959 | (exit $ac_status); } && | |
6ebeb4c7 | 21960 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
21961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21962 | (eval $ac_try) 2>&5 | |
21963 | ac_status=$? | |
21964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21965 | (exit $ac_status); }; } && | |
21966 | { ac_try='test -s conftest.$ac_objext' | |
21967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21968 | (eval $ac_try) 2>&5 | |
21969 | ac_status=$? | |
21970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21971 | (exit $ac_status); }; }; then | |
21972 | echo "$as_me:$LINENO: result: yes" >&5 | |
21973 | echo "${ECHO_T}yes" >&6 | |
21974 | else | |
21975 | echo "$as_me: failed program was:" >&5 | |
21976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21977 | ||
21978 | echo "$as_me:$LINENO: result: no" >&5 | |
21979 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 21980 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
21981 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
21982 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
21983 | { (exit 1); exit 1; }; } | |
21984 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
21985 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
21986 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 21987 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
21988 | else |
21989 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
21990 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
21991 | wxUSE_STD_STRING=no | |
21992 | fi | |
21993 | ||
0a08f02a | 21994 | |
a848cd7e | 21995 | fi |
ac1cb8d3 | 21996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21997 | |
0a08f02a MB |
21998 | fi |
21999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22000 | ||
22001 | ac_ext=c | |
22002 | ac_cpp='$CPP $CPPFLAGS' | |
22003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
22005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22006 | ||
22007 | fi | |
22008 | ||
22009 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
22010 | ac_ext=cc | |
22011 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22012 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22013 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22014 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22015 | ||
22016 | ||
22017 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
22018 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
22019 | if test "${ac_cv_type_std__istream+set}" = set; then | |
22020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22021 | else | |
22022 | cat >conftest.$ac_ext <<_ACEOF | |
22023 | /* confdefs.h. */ | |
22024 | _ACEOF | |
22025 | cat confdefs.h >>conftest.$ac_ext | |
22026 | cat >>conftest.$ac_ext <<_ACEOF | |
22027 | /* end confdefs.h. */ | |
22028 | #include <iostream> | |
22029 | ||
22030 | int | |
22031 | main () | |
22032 | { | |
22033 | if ((std::istream *) 0) | |
22034 | return 0; | |
22035 | if (sizeof (std::istream)) | |
22036 | return 0; | |
22037 | ; | |
22038 | return 0; | |
22039 | } | |
22040 | _ACEOF | |
22041 | rm -f conftest.$ac_objext | |
22042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22043 | (eval $ac_compile) 2>conftest.er1 | |
22044 | ac_status=$? | |
22045 | grep -v '^ *+' conftest.er1 >conftest.err | |
22046 | rm -f conftest.er1 | |
22047 | cat conftest.err >&5 | |
22048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22049 | (exit $ac_status); } && | |
6ebeb4c7 | 22050 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22052 | (eval $ac_try) 2>&5 | |
22053 | ac_status=$? | |
22054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22055 | (exit $ac_status); }; } && | |
22056 | { ac_try='test -s conftest.$ac_objext' | |
22057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22058 | (eval $ac_try) 2>&5 | |
22059 | ac_status=$? | |
22060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22061 | (exit $ac_status); }; }; then | |
22062 | ac_cv_type_std__istream=yes | |
22063 | else | |
22064 | echo "$as_me: failed program was:" >&5 | |
22065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22066 | ||
22067 | ac_cv_type_std__istream=no | |
22068 | fi | |
22069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22070 | fi | |
22071 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
22072 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
22073 | if test $ac_cv_type_std__istream = yes; then | |
22074 | ||
22075 | cat >>confdefs.h <<_ACEOF | |
22076 | #define HAVE_STD__ISTREAM 1 | |
22077 | _ACEOF | |
22078 | ||
22079 | ||
22080 | else | |
22081 | wxUSE_STD_IOSTREAM=no | |
22082 | fi | |
22083 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
22084 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
22085 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
22086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22087 | else | |
22088 | cat >conftest.$ac_ext <<_ACEOF | |
22089 | /* confdefs.h. */ | |
22090 | _ACEOF | |
22091 | cat confdefs.h >>conftest.$ac_ext | |
22092 | cat >>conftest.$ac_ext <<_ACEOF | |
22093 | /* end confdefs.h. */ | |
22094 | #include <iostream> | |
22095 | ||
22096 | int | |
22097 | main () | |
22098 | { | |
22099 | if ((std::ostream *) 0) | |
22100 | return 0; | |
22101 | if (sizeof (std::ostream)) | |
22102 | return 0; | |
22103 | ; | |
22104 | return 0; | |
22105 | } | |
22106 | _ACEOF | |
22107 | rm -f conftest.$ac_objext | |
22108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22109 | (eval $ac_compile) 2>conftest.er1 | |
22110 | ac_status=$? | |
22111 | grep -v '^ *+' conftest.er1 >conftest.err | |
22112 | rm -f conftest.er1 | |
22113 | cat conftest.err >&5 | |
22114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22115 | (exit $ac_status); } && | |
6ebeb4c7 | 22116 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22118 | (eval $ac_try) 2>&5 | |
22119 | ac_status=$? | |
22120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22121 | (exit $ac_status); }; } && | |
22122 | { ac_try='test -s conftest.$ac_objext' | |
22123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22124 | (eval $ac_try) 2>&5 | |
22125 | ac_status=$? | |
22126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22127 | (exit $ac_status); }; }; then | |
22128 | ac_cv_type_std__ostream=yes | |
22129 | else | |
22130 | echo "$as_me: failed program was:" >&5 | |
22131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22132 | ||
22133 | ac_cv_type_std__ostream=no | |
22134 | fi | |
22135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22136 | fi | |
22137 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
22138 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
22139 | if test $ac_cv_type_std__ostream = yes; then | |
22140 | ||
22141 | cat >>confdefs.h <<_ACEOF | |
22142 | #define HAVE_STD__OSTREAM 1 | |
22143 | _ACEOF | |
22144 | ||
22145 | ||
22146 | else | |
22147 | wxUSE_STD_IOSTREAM=no | |
22148 | fi | |
22149 | ||
22150 | ||
22151 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
22152 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
22153 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
22154 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
22155 | { (exit 1); exit 1; }; } | |
22156 | else | |
22157 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 22158 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 22159 | fi |
f56c22b4 MW |
22160 | fi |
22161 | ||
22162 | ac_ext=c | |
22163 | ac_cpp='$CPP $CPPFLAGS' | |
22164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
22166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22167 | ||
22168 | fi | |
22169 | ||
22170 | if test "$wxUSE_STL" = "yes"; then | |
22171 | ac_ext=cc | |
22172 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22173 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22174 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22175 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22176 | ||
22177 | ||
22178 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
22179 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
22180 | cat >conftest.$ac_ext <<_ACEOF |
22181 | /* confdefs.h. */ | |
22182 | _ACEOF | |
22183 | cat confdefs.h >>conftest.$ac_ext | |
22184 | cat >>conftest.$ac_ext <<_ACEOF | |
22185 | /* end confdefs.h. */ | |
22186 | #include <string> | |
0a08f02a MB |
22187 | #include <functional> |
22188 | #include <algorithm> | |
22189 | #include <vector> | |
22190 | #include <list> | |
a848cd7e SC |
22191 | int |
22192 | main () | |
22193 | { | |
0a08f02a MB |
22194 | std::vector<int> moo; |
22195 | std::list<int> foo; | |
22196 | std::vector<int>::iterator it = | |
22197 | std::find_if(moo.begin(), moo.end(), | |
22198 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
22199 | ; |
22200 | return 0; | |
22201 | } | |
22202 | _ACEOF | |
22203 | rm -f conftest.$ac_objext | |
22204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22205 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22206 | ac_status=$? |
ac1cb8d3 VS |
22207 | grep -v '^ *+' conftest.er1 >conftest.err |
22208 | rm -f conftest.er1 | |
22209 | cat conftest.err >&5 | |
a848cd7e SC |
22210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22211 | (exit $ac_status); } && | |
6ebeb4c7 | 22212 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22214 | (eval $ac_try) 2>&5 | |
22215 | ac_status=$? | |
22216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22217 | (exit $ac_status); }; } && | |
22218 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22220 | (eval $ac_try) 2>&5 | |
22221 | ac_status=$? | |
22222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22223 | (exit $ac_status); }; }; then | |
22224 | echo "$as_me:$LINENO: result: yes" >&5 | |
22225 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
22226 | else |
22227 | echo "$as_me: failed program was:" >&5 | |
22228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22229 | ||
22230 | echo "$as_me:$LINENO: result: no" >&5 | |
22231 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
22232 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
22233 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
22234 | { (exit 1); exit 1; }; } | |
a848cd7e | 22235 | fi |
ac1cb8d3 | 22236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22237 | |
22238 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
22239 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
22240 | cat >conftest.$ac_ext <<_ACEOF | |
22241 | /* confdefs.h. */ | |
22242 | _ACEOF | |
22243 | cat confdefs.h >>conftest.$ac_ext | |
22244 | cat >>conftest.$ac_ext <<_ACEOF | |
22245 | /* end confdefs.h. */ | |
22246 | #include <string> | |
22247 | int | |
22248 | main () | |
22249 | { | |
22250 | std::string foo, bar; | |
22251 | foo.compare(bar); | |
22252 | foo.compare(1, 1, bar); | |
22253 | foo.compare(1, 1, bar, 1, 1); | |
22254 | foo.compare(""); | |
22255 | foo.compare(1, 1, ""); | |
22256 | foo.compare(1, 1, "", 2); | |
22257 | ; | |
22258 | return 0; | |
22259 | } | |
22260 | _ACEOF | |
22261 | rm -f conftest.$ac_objext | |
22262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22263 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22264 | ac_status=$? |
ac1cb8d3 VS |
22265 | grep -v '^ *+' conftest.er1 >conftest.err |
22266 | rm -f conftest.er1 | |
22267 | cat conftest.err >&5 | |
a848cd7e SC |
22268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22269 | (exit $ac_status); } && | |
6ebeb4c7 | 22270 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22272 | (eval $ac_try) 2>&5 | |
22273 | ac_status=$? | |
22274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22275 | (exit $ac_status); }; } && | |
22276 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22278 | (eval $ac_try) 2>&5 | |
22279 | ac_status=$? | |
22280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22281 | (exit $ac_status); }; }; then | |
22282 | echo "$as_me:$LINENO: result: yes" >&5 | |
22283 | echo "${ECHO_T}yes" >&6 | |
22284 | cat >>confdefs.h <<\_ACEOF | |
22285 | #define HAVE_STD_STRING_COMPARE 1 | |
22286 | _ACEOF | |
22287 | ||
22288 | else | |
22289 | echo "$as_me: failed program was:" >&5 | |
22290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22291 | ||
22292 | echo "$as_me:$LINENO: result: no" >&5 | |
22293 | echo "${ECHO_T}no" >&6 | |
22294 | fi | |
ac1cb8d3 | 22295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22296 | |
22297 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22298 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22299 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22300 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22302 | fi | |
22303 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22304 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22305 | else | |
22306 | # Is the header compilable? | |
22307 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
22308 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
22309 | cat >conftest.$ac_ext <<_ACEOF | |
22310 | /* confdefs.h. */ | |
22311 | _ACEOF | |
22312 | cat confdefs.h >>conftest.$ac_ext | |
22313 | cat >>conftest.$ac_ext <<_ACEOF | |
22314 | /* end confdefs.h. */ | |
22315 | $ac_includes_default | |
22316 | #include <hash_map> | |
22317 | _ACEOF | |
22318 | rm -f conftest.$ac_objext | |
22319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22320 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22321 | ac_status=$? |
ac1cb8d3 VS |
22322 | grep -v '^ *+' conftest.er1 >conftest.err |
22323 | rm -f conftest.er1 | |
22324 | cat conftest.err >&5 | |
bdcade0a MB |
22325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22326 | (exit $ac_status); } && | |
6ebeb4c7 | 22327 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22329 | (eval $ac_try) 2>&5 | |
22330 | ac_status=$? | |
22331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22332 | (exit $ac_status); }; } && | |
22333 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22335 | (eval $ac_try) 2>&5 | |
22336 | ac_status=$? | |
22337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22338 | (exit $ac_status); }; }; then | |
22339 | ac_header_compiler=yes | |
22340 | else | |
22341 | echo "$as_me: failed program was:" >&5 | |
22342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22343 | ||
22344 | ac_header_compiler=no | |
22345 | fi | |
ac1cb8d3 | 22346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22347 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22348 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22349 | ||
22350 | # Is the header present? | |
22351 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
22352 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
22353 | cat >conftest.$ac_ext <<_ACEOF | |
22354 | /* confdefs.h. */ | |
22355 | _ACEOF | |
22356 | cat confdefs.h >>conftest.$ac_ext | |
22357 | cat >>conftest.$ac_ext <<_ACEOF | |
22358 | /* end confdefs.h. */ | |
22359 | #include <hash_map> | |
22360 | _ACEOF | |
22361 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22362 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22363 | ac_status=$? | |
22364 | grep -v '^ *+' conftest.er1 >conftest.err | |
22365 | rm -f conftest.er1 | |
22366 | cat conftest.err >&5 | |
22367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22368 | (exit $ac_status); } >/dev/null; then | |
22369 | if test -s conftest.err; then | |
22370 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22371 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22372 | else |
22373 | ac_cpp_err= | |
22374 | fi | |
22375 | else | |
22376 | ac_cpp_err=yes | |
22377 | fi | |
22378 | if test -z "$ac_cpp_err"; then | |
22379 | ac_header_preproc=yes | |
22380 | else | |
22381 | echo "$as_me: failed program was:" >&5 | |
22382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22383 | ||
22384 | ac_header_preproc=no | |
22385 | fi | |
22386 | rm -f conftest.err conftest.$ac_ext | |
22387 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22388 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22389 | ||
22390 | # So? What about this header? | |
ac1cb8d3 VS |
22391 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22392 | yes:no: ) | |
bdcade0a MB |
22393 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22394 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22395 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
22396 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
22397 | ac_header_preproc=yes | |
bdcade0a | 22398 | ;; |
ac1cb8d3 | 22399 | no:yes:* ) |
bdcade0a MB |
22400 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
22401 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22402 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
22403 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
22404 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
22405 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
22406 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22407 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22408 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
22409 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22410 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
22411 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22412 | ( |
22413 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22414 | ## ----------------------------------------- ## |
22415 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22416 | ## ----------------------------------------- ## | |
bdcade0a MB |
22417 | _ASBOX |
22418 | ) | | |
22419 | sed "s/^/$as_me: WARNING: /" >&2 | |
22420 | ;; | |
22421 | esac | |
22422 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22423 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22424 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22426 | else | |
22427 | ac_cv_header_hash_map=$ac_header_preproc | |
22428 | fi | |
22429 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22430 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22431 | ||
22432 | fi | |
22433 | if test $ac_cv_header_hash_map = yes; then | |
22434 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22435 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22436 | cat >conftest.$ac_ext <<_ACEOF | |
22437 | /* confdefs.h. */ | |
22438 | _ACEOF | |
22439 | cat confdefs.h >>conftest.$ac_ext | |
22440 | cat >>conftest.$ac_ext <<_ACEOF | |
22441 | /* end confdefs.h. */ | |
22442 | #include <hash_map> | |
22443 | #include <hash_set> | |
22444 | int | |
22445 | main () | |
22446 | { | |
22447 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
22448 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
22449 | ; | |
22450 | return 0; | |
22451 | } | |
22452 | _ACEOF | |
22453 | rm -f conftest.$ac_objext | |
22454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22455 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22456 | ac_status=$? |
ac1cb8d3 VS |
22457 | grep -v '^ *+' conftest.er1 >conftest.err |
22458 | rm -f conftest.er1 | |
22459 | cat conftest.err >&5 | |
bdcade0a MB |
22460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22461 | (exit $ac_status); } && | |
6ebeb4c7 | 22462 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22464 | (eval $ac_try) 2>&5 | |
22465 | ac_status=$? | |
22466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22467 | (exit $ac_status); }; } && | |
22468 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22470 | (eval $ac_try) 2>&5 | |
22471 | ac_status=$? | |
22472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22473 | (exit $ac_status); }; }; then | |
22474 | echo "$as_me:$LINENO: result: yes" >&5 | |
22475 | echo "${ECHO_T}yes" >&6 | |
22476 | cat >>confdefs.h <<\_ACEOF | |
22477 | #define HAVE_HASH_MAP 1 | |
22478 | _ACEOF | |
22479 | ||
22480 | cat >>confdefs.h <<\_ACEOF | |
22481 | #define HAVE_STD_HASH_MAP 1 | |
22482 | _ACEOF | |
22483 | ||
22484 | else | |
22485 | echo "$as_me: failed program was:" >&5 | |
22486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22487 | ||
22488 | echo "$as_me:$LINENO: result: no" >&5 | |
22489 | echo "${ECHO_T}no" >&6 | |
22490 | fi | |
ac1cb8d3 | 22491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22492 | |
22493 | fi | |
22494 | ||
22495 | ||
22496 | ||
22497 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22498 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
22499 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
22500 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22502 | fi | |
22503 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
22504 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
22505 | else | |
22506 | # Is the header compilable? | |
22507 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
22508 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
22509 | cat >conftest.$ac_ext <<_ACEOF | |
22510 | /* confdefs.h. */ | |
22511 | _ACEOF | |
22512 | cat confdefs.h >>conftest.$ac_ext | |
22513 | cat >>conftest.$ac_ext <<_ACEOF | |
22514 | /* end confdefs.h. */ | |
22515 | $ac_includes_default | |
22516 | #include <ext/hash_map> | |
22517 | _ACEOF | |
22518 | rm -f conftest.$ac_objext | |
22519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22520 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22521 | ac_status=$? |
ac1cb8d3 VS |
22522 | grep -v '^ *+' conftest.er1 >conftest.err |
22523 | rm -f conftest.er1 | |
22524 | cat conftest.err >&5 | |
bdcade0a MB |
22525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22526 | (exit $ac_status); } && | |
6ebeb4c7 | 22527 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22529 | (eval $ac_try) 2>&5 | |
22530 | ac_status=$? | |
22531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22532 | (exit $ac_status); }; } && | |
22533 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22535 | (eval $ac_try) 2>&5 | |
22536 | ac_status=$? | |
22537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22538 | (exit $ac_status); }; }; then | |
22539 | ac_header_compiler=yes | |
22540 | else | |
22541 | echo "$as_me: failed program was:" >&5 | |
22542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22543 | ||
22544 | ac_header_compiler=no | |
22545 | fi | |
ac1cb8d3 | 22546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22548 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22549 | ||
22550 | # Is the header present? | |
22551 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
22552 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
22553 | cat >conftest.$ac_ext <<_ACEOF | |
22554 | /* confdefs.h. */ | |
22555 | _ACEOF | |
22556 | cat confdefs.h >>conftest.$ac_ext | |
22557 | cat >>conftest.$ac_ext <<_ACEOF | |
22558 | /* end confdefs.h. */ | |
22559 | #include <ext/hash_map> | |
22560 | _ACEOF | |
22561 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22562 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22563 | ac_status=$? | |
22564 | grep -v '^ *+' conftest.er1 >conftest.err | |
22565 | rm -f conftest.er1 | |
22566 | cat conftest.err >&5 | |
22567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22568 | (exit $ac_status); } >/dev/null; then | |
22569 | if test -s conftest.err; then | |
22570 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22571 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22572 | else |
22573 | ac_cpp_err= | |
22574 | fi | |
22575 | else | |
22576 | ac_cpp_err=yes | |
22577 | fi | |
22578 | if test -z "$ac_cpp_err"; then | |
22579 | ac_header_preproc=yes | |
22580 | else | |
22581 | echo "$as_me: failed program was:" >&5 | |
22582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22583 | ||
22584 | ac_header_preproc=no | |
22585 | fi | |
22586 | rm -f conftest.err conftest.$ac_ext | |
22587 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22588 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22589 | ||
22590 | # So? What about this header? | |
ac1cb8d3 VS |
22591 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22592 | yes:no: ) | |
bdcade0a MB |
22593 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22594 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22595 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
22596 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
22597 | ac_header_preproc=yes | |
bdcade0a | 22598 | ;; |
ac1cb8d3 | 22599 | no:yes:* ) |
bdcade0a MB |
22600 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
22601 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22602 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
22603 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
22604 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
22605 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
22606 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22607 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22608 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
22609 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22610 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
22611 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22612 | ( |
22613 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22614 | ## ----------------------------------------- ## |
22615 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22616 | ## ----------------------------------------- ## | |
bdcade0a MB |
22617 | _ASBOX |
22618 | ) | | |
22619 | sed "s/^/$as_me: WARNING: /" >&2 | |
22620 | ;; | |
22621 | esac | |
22622 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
22623 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
22624 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22626 | else | |
22627 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
22628 | fi | |
22629 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
22630 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
22631 | ||
22632 | fi | |
22633 | if test $ac_cv_header_ext_hash_map = yes; then | |
22634 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22635 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22636 | cat >conftest.$ac_ext <<_ACEOF | |
22637 | /* confdefs.h. */ | |
22638 | _ACEOF | |
22639 | cat confdefs.h >>conftest.$ac_ext | |
22640 | cat >>conftest.$ac_ext <<_ACEOF | |
22641 | /* end confdefs.h. */ | |
22642 | #include <ext/hash_map> | |
22643 | #include <ext/hash_set> | |
22644 | int | |
22645 | main () | |
22646 | { | |
22647 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
22648 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
22649 | ; | |
22650 | return 0; | |
22651 | } | |
22652 | _ACEOF | |
22653 | rm -f conftest.$ac_objext | |
22654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22655 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22656 | ac_status=$? |
ac1cb8d3 VS |
22657 | grep -v '^ *+' conftest.er1 >conftest.err |
22658 | rm -f conftest.er1 | |
22659 | cat conftest.err >&5 | |
bdcade0a MB |
22660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22661 | (exit $ac_status); } && | |
6ebeb4c7 | 22662 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22664 | (eval $ac_try) 2>&5 | |
22665 | ac_status=$? | |
22666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22667 | (exit $ac_status); }; } && | |
22668 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22670 | (eval $ac_try) 2>&5 | |
22671 | ac_status=$? | |
22672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22673 | (exit $ac_status); }; }; then | |
22674 | echo "$as_me:$LINENO: result: yes" >&5 | |
22675 | echo "${ECHO_T}yes" >&6 | |
22676 | cat >>confdefs.h <<\_ACEOF | |
22677 | #define HAVE_EXT_HASH_MAP 1 | |
22678 | _ACEOF | |
22679 | ||
22680 | cat >>confdefs.h <<\_ACEOF | |
22681 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
22682 | _ACEOF | |
22683 | ||
22684 | else | |
22685 | echo "$as_me: failed program was:" >&5 | |
22686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22687 | ||
22688 | echo "$as_me:$LINENO: result: no" >&5 | |
22689 | echo "${ECHO_T}no" >&6 | |
22690 | fi | |
ac1cb8d3 | 22691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22692 | |
22693 | fi | |
22694 | ||
22695 | ||
a848cd7e SC |
22696 | |
22697 | ac_ext=c | |
22698 | ac_cpp='$CPP $CPPFLAGS' | |
22699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22702 | ||
22703 | fi | |
22704 | ||
22705 | ||
22706 | SEARCH_INCLUDE="\ | |
22707 | /usr/local/include \ | |
22708 | \ | |
22709 | /usr/Motif-2.1/include \ | |
22710 | /usr/Motif-1.2/include \ | |
22711 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
22712 | \ |
22713 | /usr/dt/include \ | |
22714 | /usr/openwin/include \ | |
22715 | \ | |
22716 | /usr/include/Xm \ | |
22717 | \ | |
22718 | /usr/X11R6/include \ | |
22719 | /usr/X11R6.4/include \ | |
22720 | /usr/X11R5/include \ | |
22721 | /usr/X11R4/include \ | |
22722 | \ | |
22723 | /usr/include/X11R6 \ | |
22724 | /usr/include/X11R5 \ | |
22725 | /usr/include/X11R4 \ | |
22726 | \ | |
22727 | /usr/local/X11R6/include \ | |
22728 | /usr/local/X11R5/include \ | |
22729 | /usr/local/X11R4/include \ | |
22730 | \ | |
22731 | /usr/local/include/X11R6 \ | |
22732 | /usr/local/include/X11R5 \ | |
22733 | /usr/local/include/X11R4 \ | |
22734 | \ | |
22735 | /usr/X11/include \ | |
22736 | /usr/include/X11 \ | |
22737 | /usr/local/X11/include \ | |
22738 | /usr/local/include/X11 \ | |
22739 | \ | |
a848cd7e | 22740 | /usr/XFree86/include/X11 \ |
e051b34e MW |
22741 | /usr/pkg/include \ |
22742 | \ | |
a848cd7e SC |
22743 | /usr/openwin/share/include" |
22744 | ||
6f9cf1e6 | 22745 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 22746 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
22747 | |
22748 | case "${host}" in | |
22749 | *-*-irix6* ) | |
22750 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
22751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22752 | else | |
22753 | ||
c687b303 VZ |
22754 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
22755 | for e in a so sl dylib dll.a; do | |
22756 | libc="$d/libc.$e" | |
22757 | if test -f $libc; then | |
22758 | save_LIBS="$LIBS" | |
22759 | LIBS="$libc" | |
22760 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
22761 | int main() { return 0; } |
22762 | _ACEOF | |
22763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22765 | (eval $ac_link) 2>conftest.er1 | |
22766 | ac_status=$? | |
22767 | grep -v '^ *+' conftest.er1 >conftest.err | |
22768 | rm -f conftest.er1 | |
22769 | cat conftest.err >&5 | |
22770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22771 | (exit $ac_status); } && | |
22772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
22773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22774 | (eval $ac_try) 2>&5 | |
22775 | ac_status=$? | |
22776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22777 | (exit $ac_status); }; } && | |
22778 | { ac_try='test -s conftest$ac_exeext' | |
22779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22780 | (eval $ac_try) 2>&5 | |
22781 | ac_status=$? | |
22782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22783 | (exit $ac_status); }; }; then | |
22784 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
22785 | else | |
22786 | echo "$as_me: failed program was:" >&5 | |
22787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22788 | ||
22789 | fi | |
22790 | rm -f conftest.err conftest.$ac_objext \ | |
22791 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
22792 | LIBS="$save_LIBS" |
22793 | if test "x$wx_cv_std_libpath" != "x"; then | |
22794 | break 2 | |
22795 | fi | |
22796 | fi | |
22797 | done | |
22798 | done | |
22799 | if test "x$wx_cv_std_libpath" = "x"; then | |
22800 | wx_cv_std_libpath="lib" | |
0ad5d837 | 22801 | fi |
0ad5d837 VZ |
22802 | |
22803 | ||
22804 | fi | |
6f9cf1e6 MW |
22805 | |
22806 | ;; | |
22807 | ||
22808 | *-*-solaris2* ) | |
22809 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
22810 | wx_cv_std_libpath="lib/64" | |
22811 | else | |
22812 | wx_cv_std_libpath="lib" | |
22813 | fi | |
22814 | ;; | |
22815 | ||
22816 | *-*-linux* ) | |
22817 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
22818 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
22819 | wx_cv_std_libpath="lib64" | |
22820 | else | |
22821 | wx_cv_std_libpath="lib" | |
22822 | fi | |
c687b303 VZ |
22823 | ;; |
22824 | ||
22825 | *) | |
22826 | wx_cv_std_libpath="lib"; | |
22827 | ;; | |
22828 | esac | |
0ad5d837 | 22829 | |
6f9cf1e6 MW |
22830 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
22831 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
22832 | ||
22833 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 22834 | |
3eca31dc MW |
22835 | if test "$build" != "$host" -a "$GCC" = yes; then |
22836 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
22837 | cross_root=`dirname $cross_root` | |
22838 | cross_root=`dirname $cross_root` | |
22839 | ||
22840 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
22841 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
22842 | ||
22843 | if test -z "$PKG_CONFIG_PATH"; then | |
22844 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
22845 | export PKG_CONFIG_PATH | |
22846 | fi | |
22847 | ||
22848 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
22849 | ||
22850 | ac_find_includes= | |
22851 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
22852 | do | |
22853 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
22854 | ac_find_includes=$ac_dir | |
22855 | break | |
22856 | fi | |
22857 | done | |
22858 | ||
22859 | x_includes=$ac_find_includes | |
22860 | fi | |
22861 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
22862 | ||
0ad5d837 VZ |
22863 | ac_find_libraries= |
22864 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
22865 | do |
22866 | for ac_extension in a so sl dylib dll.a; do | |
22867 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
22868 | ac_find_libraries=$ac_dir | |
22869 | break 2 | |
22870 | fi | |
22871 | done | |
22872 | done | |
22873 | ||
22874 | x_libraries=$ac_find_libraries | |
22875 | fi | |
22876 | fi | |
22877 | fi | |
22878 | ||
a848cd7e SC |
22879 | |
22880 | cat >confcache <<\_ACEOF | |
22881 | # This file is a shell script that caches the results of configure | |
22882 | # tests run on this system so they can be shared between configure | |
22883 | # scripts and configure runs, see configure's option --config-cache. | |
22884 | # It is not useful on other systems. If it contains results you don't | |
22885 | # want to keep, you may remove or edit it. | |
22886 | # | |
22887 | # config.status only pays attention to the cache file if you give it | |
22888 | # the --recheck option to rerun configure. | |
22889 | # | |
22890 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
22891 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
22892 | # following values. | |
22893 | ||
22894 | _ACEOF | |
22895 | ||
22896 | # The following way of writing the cache mishandles newlines in values, | |
22897 | # but we know of no workaround that is simple, portable, and efficient. | |
22898 | # So, don't put newlines in cache variables' values. | |
22899 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22900 | # and sets the high bit in the cache file unless we assign to the vars. | |
22901 | { | |
22902 | (set) 2>&1 | | |
22903 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22904 | *ac_space=\ *) | |
22905 | # `set' does not quote correctly, so add quotes (double-quote | |
22906 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
22907 | sed -n \ | |
ac1cb8d3 VS |
22908 | "s/'/'\\\\''/g; |
22909 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
22910 | ;; |
22911 | *) | |
22912 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22913 | sed -n \ | |
ac1cb8d3 | 22914 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
22915 | ;; |
22916 | esac; | |
22917 | } | | |
22918 | sed ' | |
22919 | t clear | |
22920 | : clear | |
22921 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
22922 | t end | |
22923 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
22924 | : end' >>confcache | |
22925 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
22926 | if test -w $cache_file; then | |
22927 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
22928 | cat confcache >$cache_file | |
22929 | else | |
22930 | echo "not updating unwritable cache $cache_file" | |
22931 | fi | |
22932 | fi | |
22933 | rm -f confcache | |
22934 | ||
22935 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
22936 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
22937 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
22938 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
22939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22940 | else | |
22941 | ||
22942 | cat >conftest.$ac_ext <<_ACEOF | |
22943 | /* confdefs.h. */ | |
22944 | _ACEOF | |
22945 | cat confdefs.h >>conftest.$ac_ext | |
22946 | cat >>conftest.$ac_ext <<_ACEOF | |
22947 | /* end confdefs.h. */ | |
22948 | #include <features.h> | |
22949 | int | |
22950 | main () | |
22951 | { | |
22952 | ||
22953 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 22954 | not glibc 2.1 |
a848cd7e SC |
22955 | #endif |
22956 | ||
22957 | ; | |
22958 | return 0; | |
22959 | } | |
22960 | _ACEOF | |
22961 | rm -f conftest.$ac_objext | |
22962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22963 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22964 | ac_status=$? |
ac1cb8d3 VS |
22965 | grep -v '^ *+' conftest.er1 >conftest.err |
22966 | rm -f conftest.er1 | |
22967 | cat conftest.err >&5 | |
a848cd7e SC |
22968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22969 | (exit $ac_status); } && | |
6ebeb4c7 | 22970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22972 | (eval $ac_try) 2>&5 | |
22973 | ac_status=$? | |
22974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22975 | (exit $ac_status); }; } && | |
22976 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22978 | (eval $ac_try) 2>&5 | |
22979 | ac_status=$? | |
22980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22981 | (exit $ac_status); }; }; then | |
22982 | ||
22983 | wx_cv_lib_glibc21=yes | |
22984 | ||
22985 | else | |
22986 | echo "$as_me: failed program was:" >&5 | |
22987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22988 | ||
22989 | ||
22990 | wx_cv_lib_glibc21=no | |
22991 | ||
22992 | ||
22993 | fi | |
ac1cb8d3 | 22994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22995 | |
22996 | fi | |
22997 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
22998 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
22999 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
23000 | cat >>confdefs.h <<\_ACEOF | |
23001 | #define wxHAVE_GLIBC2 1 | |
23002 | _ACEOF | |
23003 | ||
23004 | fi | |
23005 | fi | |
23006 | ||
23007 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
23008 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
23009 | cat >>confdefs.h <<\_ACEOF | |
23010 | #define _GNU_SOURCE 1 | |
23011 | _ACEOF | |
23012 | ||
23013 | fi | |
23014 | fi | |
23015 | ||
23016 | ||
23017 | ||
23018 | if test "$wxUSE_REGEX" != "no"; then | |
23019 | cat >>confdefs.h <<\_ACEOF | |
23020 | #define wxUSE_REGEX 1 | |
23021 | _ACEOF | |
23022 | ||
23023 | ||
23024 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
23025 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
23026 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
23027 | wxUSE_REGEX=builtin | |
23028 | fi | |
23029 | ||
23030 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
23031 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23032 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23033 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23034 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23036 | fi | |
23037 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23038 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23039 | else | |
23040 | # Is the header compilable? | |
23041 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
23042 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
23043 | cat >conftest.$ac_ext <<_ACEOF | |
23044 | /* confdefs.h. */ | |
23045 | _ACEOF | |
23046 | cat confdefs.h >>conftest.$ac_ext | |
23047 | cat >>conftest.$ac_ext <<_ACEOF | |
23048 | /* end confdefs.h. */ | |
23049 | $ac_includes_default | |
23050 | #include <regex.h> | |
23051 | _ACEOF | |
23052 | rm -f conftest.$ac_objext | |
23053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23054 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23055 | ac_status=$? |
ac1cb8d3 VS |
23056 | grep -v '^ *+' conftest.er1 >conftest.err |
23057 | rm -f conftest.er1 | |
23058 | cat conftest.err >&5 | |
a848cd7e SC |
23059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23060 | (exit $ac_status); } && | |
6ebeb4c7 | 23061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23063 | (eval $ac_try) 2>&5 | |
23064 | ac_status=$? | |
23065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23066 | (exit $ac_status); }; } && | |
23067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23069 | (eval $ac_try) 2>&5 | |
23070 | ac_status=$? | |
23071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23072 | (exit $ac_status); }; }; then | |
23073 | ac_header_compiler=yes | |
23074 | else | |
23075 | echo "$as_me: failed program was:" >&5 | |
23076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23077 | ||
23078 | ac_header_compiler=no | |
23079 | fi | |
ac1cb8d3 | 23080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23081 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23082 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23083 | ||
23084 | # Is the header present? | |
23085 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
23086 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
23087 | cat >conftest.$ac_ext <<_ACEOF | |
23088 | /* confdefs.h. */ | |
23089 | _ACEOF | |
23090 | cat confdefs.h >>conftest.$ac_ext | |
23091 | cat >>conftest.$ac_ext <<_ACEOF | |
23092 | /* end confdefs.h. */ | |
23093 | #include <regex.h> | |
23094 | _ACEOF | |
23095 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23096 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23097 | ac_status=$? | |
23098 | grep -v '^ *+' conftest.er1 >conftest.err | |
23099 | rm -f conftest.er1 | |
23100 | cat conftest.err >&5 | |
23101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23102 | (exit $ac_status); } >/dev/null; then | |
23103 | if test -s conftest.err; then | |
23104 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23105 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23106 | else |
23107 | ac_cpp_err= | |
23108 | fi | |
23109 | else | |
23110 | ac_cpp_err=yes | |
23111 | fi | |
23112 | if test -z "$ac_cpp_err"; then | |
23113 | ac_header_preproc=yes | |
23114 | else | |
23115 | echo "$as_me: failed program was:" >&5 | |
23116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23117 | ||
23118 | ac_header_preproc=no | |
23119 | fi | |
23120 | rm -f conftest.err conftest.$ac_ext | |
23121 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23122 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23123 | ||
23124 | # So? What about this header? | |
ac1cb8d3 VS |
23125 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23126 | yes:no: ) | |
a848cd7e SC |
23127 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23128 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23129 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
23130 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
23131 | ac_header_preproc=yes | |
a848cd7e | 23132 | ;; |
ac1cb8d3 | 23133 | no:yes:* ) |
a848cd7e SC |
23134 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
23135 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23136 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
23137 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
23138 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
23139 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
23140 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23141 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23142 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
23143 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23144 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
23145 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23146 | ( |
23147 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23148 | ## ----------------------------------------- ## |
23149 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23150 | ## ----------------------------------------- ## | |
a848cd7e SC |
23151 | _ASBOX |
23152 | ) | | |
23153 | sed "s/^/$as_me: WARNING: /" >&2 | |
23154 | ;; | |
23155 | esac | |
23156 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23157 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23158 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23160 | else | |
23161 | ac_cv_header_regex_h=$ac_header_preproc | |
23162 | fi | |
23163 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23164 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23165 | ||
23166 | fi | |
23167 | if test $ac_cv_header_regex_h = yes; then | |
23168 | ||
23169 | for ac_func in regcomp | |
23170 | do | |
23171 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23172 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23173 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23174 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23176 | else | |
23177 | cat >conftest.$ac_ext <<_ACEOF | |
23178 | /* confdefs.h. */ | |
23179 | _ACEOF | |
23180 | cat confdefs.h >>conftest.$ac_ext | |
23181 | cat >>conftest.$ac_ext <<_ACEOF | |
23182 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23183 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23185 | #define $ac_func innocuous_$ac_func | |
23186 | ||
a848cd7e SC |
23187 | /* System header to define __stub macros and hopefully few prototypes, |
23188 | which can conflict with char $ac_func (); below. | |
23189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23190 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23191 | |
a848cd7e SC |
23192 | #ifdef __STDC__ |
23193 | # include <limits.h> | |
23194 | #else | |
23195 | # include <assert.h> | |
23196 | #endif | |
ac1cb8d3 VS |
23197 | |
23198 | #undef $ac_func | |
23199 | ||
a848cd7e SC |
23200 | /* Override any gcc2 internal prototype to avoid an error. */ |
23201 | #ifdef __cplusplus | |
23202 | extern "C" | |
23203 | { | |
23204 | #endif | |
23205 | /* We use char because int might match the return type of a gcc2 | |
23206 | builtin and then its argument prototype would still apply. */ | |
23207 | char $ac_func (); | |
23208 | /* The GNU C library defines this for functions which it implements | |
23209 | to always fail with ENOSYS. Some functions are actually named | |
23210 | something starting with __ and the normal name is an alias. */ | |
23211 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23212 | choke me | |
23213 | #else | |
23214 | char (*f) () = $ac_func; | |
23215 | #endif | |
23216 | #ifdef __cplusplus | |
23217 | } | |
23218 | #endif | |
23219 | ||
23220 | int | |
23221 | main () | |
23222 | { | |
23223 | return f != $ac_func; | |
23224 | ; | |
23225 | return 0; | |
23226 | } | |
23227 | _ACEOF | |
23228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23230 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23231 | ac_status=$? |
ac1cb8d3 VS |
23232 | grep -v '^ *+' conftest.er1 >conftest.err |
23233 | rm -f conftest.er1 | |
23234 | cat conftest.err >&5 | |
a848cd7e SC |
23235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23236 | (exit $ac_status); } && | |
6ebeb4c7 | 23237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23239 | (eval $ac_try) 2>&5 | |
23240 | ac_status=$? | |
23241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23242 | (exit $ac_status); }; } && | |
23243 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23245 | (eval $ac_try) 2>&5 | |
23246 | ac_status=$? | |
23247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23248 | (exit $ac_status); }; }; then | |
23249 | eval "$as_ac_var=yes" | |
23250 | else | |
23251 | echo "$as_me: failed program was:" >&5 | |
23252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23253 | ||
23254 | eval "$as_ac_var=no" | |
23255 | fi | |
ac1cb8d3 VS |
23256 | rm -f conftest.err conftest.$ac_objext \ |
23257 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23258 | fi |
23259 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23260 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23261 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23262 | cat >>confdefs.h <<_ACEOF | |
23263 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23264 | _ACEOF | |
23265 | ||
23266 | fi | |
23267 | done | |
23268 | ||
23269 | fi | |
23270 | ||
23271 | ||
23272 | ||
23273 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
23274 | if test "$wxUSE_REGEX" = "sys" ; then | |
23275 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
23276 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
23277 | { (exit 1); exit 1; }; } | |
23278 | else | |
23279 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
23280 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
23281 | wxUSE_REGEX=builtin | |
23282 | fi | |
23283 | else | |
23284 | wxUSE_REGEX=sys | |
23285 | cat >>confdefs.h <<\_ACEOF | |
23286 | #define WX_NO_REGEX_ADVANCED 1 | |
23287 | _ACEOF | |
23288 | ||
23289 | fi | |
23290 | fi | |
23291 | fi | |
23292 | ||
23293 | ||
23294 | ZLIB_LINK= | |
23295 | if test "$wxUSE_ZLIB" != "no" ; then | |
23296 | cat >>confdefs.h <<\_ACEOF | |
23297 | #define wxUSE_ZLIB 1 | |
23298 | _ACEOF | |
23299 | ||
23300 | ||
23301 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
23302 | if test "$USE_DARWIN" = 1; then | |
23303 | system_zlib_h_ok="yes" | |
23304 | else | |
23305 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
23306 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
23307 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23309 | else | |
23310 | if test "$cross_compiling" = yes; then | |
23311 | unset ac_cv_header_zlib_h | |
23312 | ||
23313 | else | |
23314 | cat >conftest.$ac_ext <<_ACEOF | |
23315 | /* confdefs.h. */ | |
23316 | _ACEOF | |
23317 | cat confdefs.h >>conftest.$ac_ext | |
23318 | cat >>conftest.$ac_ext <<_ACEOF | |
23319 | /* end confdefs.h. */ | |
23320 | ||
23321 | #include <zlib.h> | |
23322 | #include <stdio.h> | |
23323 | ||
23324 | int main() | |
23325 | { | |
23326 | FILE *f=fopen("conftestval", "w"); | |
23327 | if (!f) exit(1); | |
23328 | fprintf(f, "%s", | |
23329 | ZLIB_VERSION[0] == '1' && | |
23330 | (ZLIB_VERSION[2] > '1' || | |
23331 | (ZLIB_VERSION[2] == '1' && | |
23332 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
23333 | exit(0); | |
23334 | } | |
23335 | ||
23336 | _ACEOF | |
23337 | rm -f conftest$ac_exeext | |
23338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23339 | (eval $ac_link) 2>&5 | |
23340 | ac_status=$? | |
23341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23342 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23344 | (eval $ac_try) 2>&5 | |
23345 | ac_status=$? | |
23346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23347 | (exit $ac_status); }; }; then | |
23348 | ac_cv_header_zlib_h=`cat conftestval` | |
23349 | else | |
23350 | echo "$as_me: program exited with status $ac_status" >&5 | |
23351 | echo "$as_me: failed program was:" >&5 | |
23352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23353 | ||
23354 | ( exit $ac_status ) | |
23355 | ac_cv_header_zlib_h=no | |
23356 | fi | |
ac1cb8d3 | 23357 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23358 | fi |
23359 | ||
23360 | fi | |
23361 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23362 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23363 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23364 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
23365 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
23366 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23368 | fi | |
23369 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23370 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23371 | else | |
23372 | # Is the header compilable? | |
23373 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
23374 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
23375 | cat >conftest.$ac_ext <<_ACEOF | |
23376 | /* confdefs.h. */ | |
23377 | _ACEOF | |
23378 | cat confdefs.h >>conftest.$ac_ext | |
23379 | cat >>conftest.$ac_ext <<_ACEOF | |
23380 | /* end confdefs.h. */ | |
23381 | $ac_includes_default | |
23382 | #include <zlib.h> | |
23383 | _ACEOF | |
23384 | rm -f conftest.$ac_objext | |
23385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23386 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23387 | ac_status=$? |
ac1cb8d3 VS |
23388 | grep -v '^ *+' conftest.er1 >conftest.err |
23389 | rm -f conftest.er1 | |
23390 | cat conftest.err >&5 | |
a848cd7e SC |
23391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23392 | (exit $ac_status); } && | |
6ebeb4c7 | 23393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23395 | (eval $ac_try) 2>&5 | |
23396 | ac_status=$? | |
23397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23398 | (exit $ac_status); }; } && | |
23399 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23401 | (eval $ac_try) 2>&5 | |
23402 | ac_status=$? | |
23403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23404 | (exit $ac_status); }; }; then | |
23405 | ac_header_compiler=yes | |
23406 | else | |
23407 | echo "$as_me: failed program was:" >&5 | |
23408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23409 | ||
23410 | ac_header_compiler=no | |
23411 | fi | |
ac1cb8d3 | 23412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23413 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23414 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23415 | ||
23416 | # Is the header present? | |
23417 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
23418 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
23419 | cat >conftest.$ac_ext <<_ACEOF | |
23420 | /* confdefs.h. */ | |
23421 | _ACEOF | |
23422 | cat confdefs.h >>conftest.$ac_ext | |
23423 | cat >>conftest.$ac_ext <<_ACEOF | |
23424 | /* end confdefs.h. */ | |
23425 | #include <zlib.h> | |
23426 | _ACEOF | |
23427 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23428 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23429 | ac_status=$? | |
23430 | grep -v '^ *+' conftest.er1 >conftest.err | |
23431 | rm -f conftest.er1 | |
23432 | cat conftest.err >&5 | |
23433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23434 | (exit $ac_status); } >/dev/null; then | |
23435 | if test -s conftest.err; then | |
23436 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23437 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23438 | else |
23439 | ac_cpp_err= | |
23440 | fi | |
23441 | else | |
23442 | ac_cpp_err=yes | |
23443 | fi | |
23444 | if test -z "$ac_cpp_err"; then | |
23445 | ac_header_preproc=yes | |
23446 | else | |
23447 | echo "$as_me: failed program was:" >&5 | |
23448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23449 | ||
23450 | ac_header_preproc=no | |
23451 | fi | |
23452 | rm -f conftest.err conftest.$ac_ext | |
23453 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23454 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23455 | ||
23456 | # So? What about this header? | |
ac1cb8d3 VS |
23457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23458 | yes:no: ) | |
a848cd7e SC |
23459 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23460 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23461 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
23462 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
23463 | ac_header_preproc=yes | |
a848cd7e | 23464 | ;; |
ac1cb8d3 | 23465 | no:yes:* ) |
a848cd7e SC |
23466 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
23467 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23468 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
23469 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
23470 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
23471 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
23472 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23473 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23474 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
23475 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23476 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
23477 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23478 | ( |
23479 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23480 | ## ----------------------------------------- ## |
23481 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23482 | ## ----------------------------------------- ## | |
a848cd7e SC |
23483 | _ASBOX |
23484 | ) | | |
23485 | sed "s/^/$as_me: WARNING: /" >&2 | |
23486 | ;; | |
23487 | esac | |
23488 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
23489 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
23490 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23492 | else | |
23493 | ac_cv_header_zlib_h=$ac_header_preproc | |
23494 | fi | |
23495 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23496 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23497 | ||
23498 | fi | |
23499 | ||
23500 | ||
23501 | ||
23502 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
23503 | fi | |
23504 | ||
23505 | if test "$system_zlib_h_ok" = "yes"; then | |
23506 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
23507 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
23508 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
23509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23510 | else | |
23511 | ac_check_lib_save_LIBS=$LIBS | |
23512 | LIBS="-lz $LIBS" | |
23513 | cat >conftest.$ac_ext <<_ACEOF | |
23514 | /* confdefs.h. */ | |
23515 | _ACEOF | |
23516 | cat confdefs.h >>conftest.$ac_ext | |
23517 | cat >>conftest.$ac_ext <<_ACEOF | |
23518 | /* end confdefs.h. */ | |
23519 | ||
23520 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23521 | #ifdef __cplusplus | |
23522 | extern "C" | |
23523 | #endif | |
23524 | /* We use char because int might match the return type of a gcc2 | |
23525 | builtin and then its argument prototype would still apply. */ | |
23526 | char deflate (); | |
23527 | int | |
23528 | main () | |
23529 | { | |
23530 | deflate (); | |
23531 | ; | |
23532 | return 0; | |
23533 | } | |
23534 | _ACEOF | |
23535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23537 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23538 | ac_status=$? |
ac1cb8d3 VS |
23539 | grep -v '^ *+' conftest.er1 >conftest.err |
23540 | rm -f conftest.er1 | |
23541 | cat conftest.err >&5 | |
a848cd7e SC |
23542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23543 | (exit $ac_status); } && | |
6ebeb4c7 | 23544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23546 | (eval $ac_try) 2>&5 | |
23547 | ac_status=$? | |
23548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23549 | (exit $ac_status); }; } && | |
23550 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23552 | (eval $ac_try) 2>&5 | |
23553 | ac_status=$? | |
23554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23555 | (exit $ac_status); }; }; then | |
23556 | ac_cv_lib_z_deflate=yes | |
23557 | else | |
23558 | echo "$as_me: failed program was:" >&5 | |
23559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23560 | ||
23561 | ac_cv_lib_z_deflate=no | |
23562 | fi | |
ac1cb8d3 VS |
23563 | rm -f conftest.err conftest.$ac_objext \ |
23564 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23565 | LIBS=$ac_check_lib_save_LIBS |
23566 | fi | |
23567 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
23568 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
23569 | if test $ac_cv_lib_z_deflate = yes; then | |
23570 | ZLIB_LINK=" -lz" | |
23571 | fi | |
23572 | ||
23573 | fi | |
23574 | ||
23575 | if test "x$ZLIB_LINK" = "x" ; then | |
23576 | if test "$wxUSE_ZLIB" = "sys" ; then | |
23577 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
23578 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
23579 | { (exit 1); exit 1; }; } | |
23580 | else | |
23581 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
23582 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
23583 | wxUSE_ZLIB=builtin | |
23584 | fi | |
23585 | else | |
23586 | wxUSE_ZLIB=sys | |
23587 | fi | |
23588 | fi | |
23589 | fi | |
23590 | ||
23591 | ||
23592 | PNG_LINK= | |
23593 | if test "$wxUSE_LIBPNG" != "no" ; then | |
23594 | cat >>confdefs.h <<\_ACEOF | |
23595 | #define wxUSE_LIBPNG 1 | |
23596 | _ACEOF | |
23597 | ||
23598 | ||
23599 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
23600 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
23601 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
23602 | wxUSE_LIBPNG=sys | |
23603 | fi | |
23604 | ||
23605 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
23606 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
23607 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
23608 | wxUSE_LIBPNG=builtin | |
23609 | fi | |
23610 | ||
23611 | if test "$wxUSE_MGL" != 1 ; then | |
23612 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
23613 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
23614 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
23615 | if test "${ac_cv_header_png_h+set}" = set; then | |
23616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23617 | else | |
23618 | if test "$cross_compiling" = yes; then | |
23619 | unset ac_cv_header_png_h | |
23620 | ||
23621 | else | |
23622 | cat >conftest.$ac_ext <<_ACEOF | |
23623 | /* confdefs.h. */ | |
23624 | _ACEOF | |
23625 | cat confdefs.h >>conftest.$ac_ext | |
23626 | cat >>conftest.$ac_ext <<_ACEOF | |
23627 | /* end confdefs.h. */ | |
23628 | ||
23629 | #include <png.h> | |
23630 | #include <stdio.h> | |
23631 | ||
23632 | int main() | |
23633 | { | |
23634 | FILE *f=fopen("conftestval", "w"); | |
23635 | if (!f) exit(1); | |
23636 | fprintf(f, "%s", | |
23637 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
23638 | exit(0); | |
23639 | } | |
23640 | ||
23641 | _ACEOF | |
23642 | rm -f conftest$ac_exeext | |
23643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23644 | (eval $ac_link) 2>&5 | |
23645 | ac_status=$? | |
23646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23649 | (eval $ac_try) 2>&5 | |
23650 | ac_status=$? | |
23651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23652 | (exit $ac_status); }; }; then | |
23653 | ac_cv_header_png_h=`cat conftestval` | |
23654 | else | |
23655 | echo "$as_me: program exited with status $ac_status" >&5 | |
23656 | echo "$as_me: failed program was:" >&5 | |
23657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23658 | ||
23659 | ( exit $ac_status ) | |
23660 | ac_cv_header_png_h=no | |
23661 | fi | |
ac1cb8d3 | 23662 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23663 | fi |
23664 | ||
23665 | fi | |
23666 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23667 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23668 | if test "${ac_cv_header_png_h+set}" = set; then | |
23669 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
23670 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
23671 | if test "${ac_cv_header_png_h+set}" = set; then | |
23672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23673 | fi | |
23674 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23675 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23676 | else | |
23677 | # Is the header compilable? | |
23678 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
23679 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
23680 | cat >conftest.$ac_ext <<_ACEOF | |
23681 | /* confdefs.h. */ | |
23682 | _ACEOF | |
23683 | cat confdefs.h >>conftest.$ac_ext | |
23684 | cat >>conftest.$ac_ext <<_ACEOF | |
23685 | /* end confdefs.h. */ | |
23686 | $ac_includes_default | |
23687 | #include <png.h> | |
23688 | _ACEOF | |
23689 | rm -f conftest.$ac_objext | |
23690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23691 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23692 | ac_status=$? |
ac1cb8d3 VS |
23693 | grep -v '^ *+' conftest.er1 >conftest.err |
23694 | rm -f conftest.er1 | |
23695 | cat conftest.err >&5 | |
a848cd7e SC |
23696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23697 | (exit $ac_status); } && | |
6ebeb4c7 | 23698 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23700 | (eval $ac_try) 2>&5 | |
23701 | ac_status=$? | |
23702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23703 | (exit $ac_status); }; } && | |
23704 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23706 | (eval $ac_try) 2>&5 | |
23707 | ac_status=$? | |
23708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23709 | (exit $ac_status); }; }; then | |
23710 | ac_header_compiler=yes | |
23711 | else | |
23712 | echo "$as_me: failed program was:" >&5 | |
23713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23714 | ||
23715 | ac_header_compiler=no | |
23716 | fi | |
ac1cb8d3 | 23717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23718 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23719 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23720 | ||
23721 | # Is the header present? | |
23722 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
23723 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
23724 | cat >conftest.$ac_ext <<_ACEOF | |
23725 | /* confdefs.h. */ | |
23726 | _ACEOF | |
23727 | cat confdefs.h >>conftest.$ac_ext | |
23728 | cat >>conftest.$ac_ext <<_ACEOF | |
23729 | /* end confdefs.h. */ | |
23730 | #include <png.h> | |
23731 | _ACEOF | |
23732 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23733 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23734 | ac_status=$? | |
23735 | grep -v '^ *+' conftest.er1 >conftest.err | |
23736 | rm -f conftest.er1 | |
23737 | cat conftest.err >&5 | |
23738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23739 | (exit $ac_status); } >/dev/null; then | |
23740 | if test -s conftest.err; then | |
23741 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23742 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23743 | else |
23744 | ac_cpp_err= | |
23745 | fi | |
23746 | else | |
23747 | ac_cpp_err=yes | |
23748 | fi | |
23749 | if test -z "$ac_cpp_err"; then | |
23750 | ac_header_preproc=yes | |
23751 | else | |
23752 | echo "$as_me: failed program was:" >&5 | |
23753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23754 | ||
23755 | ac_header_preproc=no | |
23756 | fi | |
23757 | rm -f conftest.err conftest.$ac_ext | |
23758 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23759 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23760 | ||
23761 | # So? What about this header? | |
ac1cb8d3 VS |
23762 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23763 | yes:no: ) | |
a848cd7e SC |
23764 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23765 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23766 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
23767 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
23768 | ac_header_preproc=yes | |
a848cd7e | 23769 | ;; |
ac1cb8d3 | 23770 | no:yes:* ) |
a848cd7e SC |
23771 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
23772 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23773 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
23774 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
23775 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
23776 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
23777 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23778 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23779 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
23780 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23781 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
23782 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23783 | ( |
23784 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23785 | ## ----------------------------------------- ## |
23786 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23787 | ## ----------------------------------------- ## | |
a848cd7e SC |
23788 | _ASBOX |
23789 | ) | | |
23790 | sed "s/^/$as_me: WARNING: /" >&2 | |
23791 | ;; | |
23792 | esac | |
23793 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
23794 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
23795 | if test "${ac_cv_header_png_h+set}" = set; then | |
23796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23797 | else | |
23798 | ac_cv_header_png_h=$ac_header_preproc | |
23799 | fi | |
23800 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23801 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23802 | ||
23803 | fi | |
23804 | ||
23805 | ||
23806 | ||
23807 | if test "$ac_cv_header_png_h" = "yes"; then | |
23808 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
23809 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
23810 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
23811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23812 | else | |
23813 | ac_check_lib_save_LIBS=$LIBS | |
23814 | LIBS="-lpng -lz -lm $LIBS" | |
23815 | cat >conftest.$ac_ext <<_ACEOF | |
23816 | /* confdefs.h. */ | |
23817 | _ACEOF | |
23818 | cat confdefs.h >>conftest.$ac_ext | |
23819 | cat >>conftest.$ac_ext <<_ACEOF | |
23820 | /* end confdefs.h. */ | |
23821 | ||
23822 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23823 | #ifdef __cplusplus | |
23824 | extern "C" | |
23825 | #endif | |
23826 | /* We use char because int might match the return type of a gcc2 | |
23827 | builtin and then its argument prototype would still apply. */ | |
23828 | char png_check_sig (); | |
23829 | int | |
23830 | main () | |
23831 | { | |
23832 | png_check_sig (); | |
23833 | ; | |
23834 | return 0; | |
23835 | } | |
23836 | _ACEOF | |
23837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23839 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23840 | ac_status=$? |
ac1cb8d3 VS |
23841 | grep -v '^ *+' conftest.er1 >conftest.err |
23842 | rm -f conftest.er1 | |
23843 | cat conftest.err >&5 | |
a848cd7e SC |
23844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23845 | (exit $ac_status); } && | |
6ebeb4c7 | 23846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23848 | (eval $ac_try) 2>&5 | |
23849 | ac_status=$? | |
23850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23851 | (exit $ac_status); }; } && | |
23852 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23854 | (eval $ac_try) 2>&5 | |
23855 | ac_status=$? | |
23856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23857 | (exit $ac_status); }; }; then | |
23858 | ac_cv_lib_png_png_check_sig=yes | |
23859 | else | |
23860 | echo "$as_me: failed program was:" >&5 | |
23861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23862 | ||
23863 | ac_cv_lib_png_png_check_sig=no | |
23864 | fi | |
ac1cb8d3 VS |
23865 | rm -f conftest.err conftest.$ac_objext \ |
23866 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23867 | LIBS=$ac_check_lib_save_LIBS |
23868 | fi | |
23869 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
23870 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
23871 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
23872 | PNG_LINK=" -lpng -lz" | |
23873 | fi | |
23874 | ||
23875 | fi | |
23876 | ||
23877 | if test "x$PNG_LINK" = "x" ; then | |
23878 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
23879 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
23880 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
23881 | { (exit 1); exit 1; }; } | |
23882 | else | |
23883 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
23884 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
23885 | wxUSE_LIBPNG=builtin | |
23886 | fi | |
23887 | else | |
23888 | wxUSE_LIBPNG=sys | |
23889 | fi | |
23890 | fi | |
23891 | fi | |
23892 | ||
23893 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
23894 | fi | |
23895 | ||
23896 | ||
23897 | JPEG_LINK= | |
23898 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
23899 | cat >>confdefs.h <<\_ACEOF | |
23900 | #define wxUSE_LIBJPEG 1 | |
23901 | _ACEOF | |
23902 | ||
23903 | ||
23904 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
23905 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
23906 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
23907 | wxUSE_LIBJPEG=sys | |
23908 | fi | |
23909 | ||
23910 | if test "$wxUSE_MGL" != 1 ; then | |
23911 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
23912 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
23913 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
23914 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
23915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23916 | else | |
23917 | cat >conftest.$ac_ext <<_ACEOF | |
23918 | /* confdefs.h. */ | |
23919 | _ACEOF | |
23920 | cat confdefs.h >>conftest.$ac_ext | |
23921 | cat >>conftest.$ac_ext <<_ACEOF | |
23922 | /* end confdefs.h. */ | |
23923 | ||
23924 | #undef HAVE_STDLIB_H | |
23925 | #include <stdio.h> | |
23926 | #include <jpeglib.h> | |
23927 | ||
23928 | int | |
23929 | main () | |
23930 | { | |
23931 | ||
23932 | ||
23933 | ; | |
23934 | return 0; | |
23935 | } | |
23936 | _ACEOF | |
23937 | rm -f conftest.$ac_objext | |
23938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23939 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23940 | ac_status=$? |
ac1cb8d3 VS |
23941 | grep -v '^ *+' conftest.er1 >conftest.err |
23942 | rm -f conftest.er1 | |
23943 | cat conftest.err >&5 | |
a848cd7e SC |
23944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23945 | (exit $ac_status); } && | |
6ebeb4c7 | 23946 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23948 | (eval $ac_try) 2>&5 | |
23949 | ac_status=$? | |
23950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23951 | (exit $ac_status); }; } && | |
23952 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23954 | (eval $ac_try) 2>&5 | |
23955 | ac_status=$? | |
23956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23957 | (exit $ac_status); }; }; then | |
23958 | ac_cv_header_jpeglib_h=yes | |
23959 | else | |
23960 | echo "$as_me: failed program was:" >&5 | |
23961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23962 | ||
23963 | ac_cv_header_jpeglib_h=no | |
23964 | ||
23965 | fi | |
ac1cb8d3 | 23966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23967 | |
23968 | fi | |
23969 | ||
23970 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
23971 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
23972 | ||
23973 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
23974 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
23975 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
23976 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
23977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23978 | else | |
23979 | ac_check_lib_save_LIBS=$LIBS | |
23980 | LIBS="-ljpeg $LIBS" | |
23981 | cat >conftest.$ac_ext <<_ACEOF | |
23982 | /* confdefs.h. */ | |
23983 | _ACEOF | |
23984 | cat confdefs.h >>conftest.$ac_ext | |
23985 | cat >>conftest.$ac_ext <<_ACEOF | |
23986 | /* end confdefs.h. */ | |
23987 | ||
23988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23989 | #ifdef __cplusplus | |
23990 | extern "C" | |
23991 | #endif | |
23992 | /* We use char because int might match the return type of a gcc2 | |
23993 | builtin and then its argument prototype would still apply. */ | |
23994 | char jpeg_read_header (); | |
23995 | int | |
23996 | main () | |
23997 | { | |
23998 | jpeg_read_header (); | |
23999 | ; | |
24000 | return 0; | |
24001 | } | |
24002 | _ACEOF | |
24003 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24005 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24006 | ac_status=$? |
ac1cb8d3 VS |
24007 | grep -v '^ *+' conftest.er1 >conftest.err |
24008 | rm -f conftest.er1 | |
24009 | cat conftest.err >&5 | |
a848cd7e SC |
24010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24011 | (exit $ac_status); } && | |
6ebeb4c7 | 24012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24014 | (eval $ac_try) 2>&5 | |
24015 | ac_status=$? | |
24016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24017 | (exit $ac_status); }; } && | |
24018 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24020 | (eval $ac_try) 2>&5 | |
24021 | ac_status=$? | |
24022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24023 | (exit $ac_status); }; }; then | |
24024 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
24025 | else | |
24026 | echo "$as_me: failed program was:" >&5 | |
24027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24028 | ||
24029 | ac_cv_lib_jpeg_jpeg_read_header=no | |
24030 | fi | |
ac1cb8d3 VS |
24031 | rm -f conftest.err conftest.$ac_objext \ |
24032 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24033 | LIBS=$ac_check_lib_save_LIBS |
24034 | fi | |
24035 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
24036 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
24037 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
24038 | JPEG_LINK=" -ljpeg" | |
24039 | fi | |
24040 | ||
24041 | fi | |
24042 | ||
24043 | if test "x$JPEG_LINK" = "x" ; then | |
24044 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
24045 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
24046 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
24047 | { (exit 1); exit 1; }; } | |
24048 | else | |
24049 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
24050 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
24051 | wxUSE_LIBJPEG=builtin | |
24052 | fi | |
24053 | else | |
24054 | wxUSE_LIBJPEG=sys | |
24055 | fi | |
24056 | fi | |
24057 | fi | |
24058 | fi | |
24059 | ||
24060 | ||
24061 | TIFF_LINK= | |
24062 | TIFF_PREREQ_LINKS=-lm | |
24063 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
24064 | cat >>confdefs.h <<\_ACEOF | |
24065 | #define wxUSE_LIBTIFF 1 | |
24066 | _ACEOF | |
24067 | ||
24068 | ||
24069 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
24070 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
24071 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
24072 | fi | |
24073 | if test "$wxUSE_ZLIB" = "sys"; then | |
24074 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
24075 | fi | |
24076 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24077 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24078 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24079 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24081 | fi | |
24082 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24083 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24084 | else | |
24085 | # Is the header compilable? | |
24086 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
24087 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
24088 | cat >conftest.$ac_ext <<_ACEOF | |
24089 | /* confdefs.h. */ | |
24090 | _ACEOF | |
24091 | cat confdefs.h >>conftest.$ac_ext | |
24092 | cat >>conftest.$ac_ext <<_ACEOF | |
24093 | /* end confdefs.h. */ | |
24094 | $ac_includes_default | |
24095 | #include <tiffio.h> | |
24096 | _ACEOF | |
24097 | rm -f conftest.$ac_objext | |
24098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24099 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24100 | ac_status=$? |
ac1cb8d3 VS |
24101 | grep -v '^ *+' conftest.er1 >conftest.err |
24102 | rm -f conftest.er1 | |
24103 | cat conftest.err >&5 | |
a848cd7e SC |
24104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24105 | (exit $ac_status); } && | |
6ebeb4c7 | 24106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24108 | (eval $ac_try) 2>&5 | |
24109 | ac_status=$? | |
24110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24111 | (exit $ac_status); }; } && | |
24112 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24114 | (eval $ac_try) 2>&5 | |
24115 | ac_status=$? | |
24116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24117 | (exit $ac_status); }; }; then | |
24118 | ac_header_compiler=yes | |
24119 | else | |
24120 | echo "$as_me: failed program was:" >&5 | |
24121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24122 | ||
24123 | ac_header_compiler=no | |
24124 | fi | |
ac1cb8d3 | 24125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24126 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24127 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24128 | ||
24129 | # Is the header present? | |
24130 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
24131 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
24132 | cat >conftest.$ac_ext <<_ACEOF | |
24133 | /* confdefs.h. */ | |
24134 | _ACEOF | |
24135 | cat confdefs.h >>conftest.$ac_ext | |
24136 | cat >>conftest.$ac_ext <<_ACEOF | |
24137 | /* end confdefs.h. */ | |
24138 | #include <tiffio.h> | |
24139 | _ACEOF | |
24140 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24141 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24142 | ac_status=$? | |
24143 | grep -v '^ *+' conftest.er1 >conftest.err | |
24144 | rm -f conftest.er1 | |
24145 | cat conftest.err >&5 | |
24146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24147 | (exit $ac_status); } >/dev/null; then | |
24148 | if test -s conftest.err; then | |
24149 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24150 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24151 | else |
24152 | ac_cpp_err= | |
24153 | fi | |
24154 | else | |
24155 | ac_cpp_err=yes | |
24156 | fi | |
24157 | if test -z "$ac_cpp_err"; then | |
24158 | ac_header_preproc=yes | |
24159 | else | |
24160 | echo "$as_me: failed program was:" >&5 | |
24161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24162 | ||
24163 | ac_header_preproc=no | |
24164 | fi | |
24165 | rm -f conftest.err conftest.$ac_ext | |
24166 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24167 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24168 | ||
24169 | # So? What about this header? | |
ac1cb8d3 VS |
24170 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24171 | yes:no: ) | |
a848cd7e SC |
24172 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24173 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24174 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
24175 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
24176 | ac_header_preproc=yes | |
a848cd7e | 24177 | ;; |
ac1cb8d3 | 24178 | no:yes:* ) |
a848cd7e SC |
24179 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
24180 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24181 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
24182 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
24183 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
24184 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
24185 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24186 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24187 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
24188 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24189 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
24190 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24191 | ( |
24192 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24193 | ## ----------------------------------------- ## |
24194 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24195 | ## ----------------------------------------- ## | |
a848cd7e SC |
24196 | _ASBOX |
24197 | ) | | |
24198 | sed "s/^/$as_me: WARNING: /" >&2 | |
24199 | ;; | |
24200 | esac | |
24201 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24202 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24203 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24205 | else | |
24206 | ac_cv_header_tiffio_h=$ac_header_preproc | |
24207 | fi | |
24208 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24209 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24210 | ||
24211 | fi | |
24212 | if test $ac_cv_header_tiffio_h = yes; then | |
24213 | ||
24214 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
24215 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
24216 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
24217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24218 | else | |
24219 | ac_check_lib_save_LIBS=$LIBS | |
24220 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
24221 | cat >conftest.$ac_ext <<_ACEOF | |
24222 | /* confdefs.h. */ | |
24223 | _ACEOF | |
24224 | cat confdefs.h >>conftest.$ac_ext | |
24225 | cat >>conftest.$ac_ext <<_ACEOF | |
24226 | /* end confdefs.h. */ | |
24227 | ||
24228 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24229 | #ifdef __cplusplus | |
24230 | extern "C" | |
24231 | #endif | |
24232 | /* We use char because int might match the return type of a gcc2 | |
24233 | builtin and then its argument prototype would still apply. */ | |
24234 | char TIFFError (); | |
24235 | int | |
24236 | main () | |
24237 | { | |
24238 | TIFFError (); | |
24239 | ; | |
24240 | return 0; | |
24241 | } | |
24242 | _ACEOF | |
24243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24245 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24246 | ac_status=$? |
ac1cb8d3 VS |
24247 | grep -v '^ *+' conftest.er1 >conftest.err |
24248 | rm -f conftest.er1 | |
24249 | cat conftest.err >&5 | |
a848cd7e SC |
24250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24251 | (exit $ac_status); } && | |
6ebeb4c7 | 24252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24254 | (eval $ac_try) 2>&5 | |
24255 | ac_status=$? | |
24256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24257 | (exit $ac_status); }; } && | |
24258 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24260 | (eval $ac_try) 2>&5 | |
24261 | ac_status=$? | |
24262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24263 | (exit $ac_status); }; }; then | |
24264 | ac_cv_lib_tiff_TIFFError=yes | |
24265 | else | |
24266 | echo "$as_me: failed program was:" >&5 | |
24267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24268 | ||
24269 | ac_cv_lib_tiff_TIFFError=no | |
24270 | fi | |
ac1cb8d3 VS |
24271 | rm -f conftest.err conftest.$ac_objext \ |
24272 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24273 | LIBS=$ac_check_lib_save_LIBS |
24274 | fi | |
24275 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
24276 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
24277 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
24278 | TIFF_LINK=" -ltiff" | |
24279 | fi | |
24280 | ||
24281 | ||
24282 | ||
24283 | fi | |
24284 | ||
24285 | ||
24286 | ||
24287 | if test "x$TIFF_LINK" = "x" ; then | |
24288 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
24289 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
24290 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
24291 | { (exit 1); exit 1; }; } | |
24292 | else | |
24293 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
24294 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
24295 | wxUSE_LIBTIFF=builtin | |
24296 | fi | |
24297 | else | |
24298 | wxUSE_LIBTIFF=sys | |
24299 | fi | |
24300 | fi | |
24301 | fi | |
24302 | ||
24303 | ||
47a7e797 MW |
24304 | if test "$wxUSE_WCHAR_T" != "yes"; then |
24305 | if test "$wxUSE_EXPAT" != "no"; then | |
24306 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
24307 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
24308 | wxUSE_EXPAT=no | |
24309 | fi | |
24310 | if test "$wxUSE_XML" != "no"; then | |
24311 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
24312 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
24313 | wxUSE_XML=no | |
24314 | fi | |
24315 | fi | |
24316 | ||
a848cd7e SC |
24317 | if test "$wxUSE_EXPAT" != "no"; then |
24318 | wxUSE_XML=yes | |
24319 | cat >>confdefs.h <<\_ACEOF | |
24320 | #define wxUSE_EXPAT 1 | |
24321 | _ACEOF | |
24322 | ||
24323 | cat >>confdefs.h <<\_ACEOF | |
24324 | #define wxUSE_XML 1 | |
24325 | _ACEOF | |
24326 | ||
24327 | ||
24328 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
24329 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24330 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
24331 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
24332 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24334 | fi | |
24335 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24336 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24337 | else | |
24338 | # Is the header compilable? | |
24339 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
24340 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
24341 | cat >conftest.$ac_ext <<_ACEOF | |
24342 | /* confdefs.h. */ | |
24343 | _ACEOF | |
24344 | cat confdefs.h >>conftest.$ac_ext | |
24345 | cat >>conftest.$ac_ext <<_ACEOF | |
24346 | /* end confdefs.h. */ | |
24347 | $ac_includes_default | |
24348 | #include <expat.h> | |
24349 | _ACEOF | |
24350 | rm -f conftest.$ac_objext | |
24351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24352 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24353 | ac_status=$? |
ac1cb8d3 VS |
24354 | grep -v '^ *+' conftest.er1 >conftest.err |
24355 | rm -f conftest.er1 | |
24356 | cat conftest.err >&5 | |
a848cd7e SC |
24357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24358 | (exit $ac_status); } && | |
6ebeb4c7 | 24359 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24361 | (eval $ac_try) 2>&5 | |
24362 | ac_status=$? | |
24363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24364 | (exit $ac_status); }; } && | |
24365 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24367 | (eval $ac_try) 2>&5 | |
24368 | ac_status=$? | |
24369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24370 | (exit $ac_status); }; }; then | |
24371 | ac_header_compiler=yes | |
24372 | else | |
24373 | echo "$as_me: failed program was:" >&5 | |
24374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24375 | ||
24376 | ac_header_compiler=no | |
24377 | fi | |
ac1cb8d3 | 24378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24379 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24380 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24381 | ||
24382 | # Is the header present? | |
24383 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
24384 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
24385 | cat >conftest.$ac_ext <<_ACEOF | |
24386 | /* confdefs.h. */ | |
24387 | _ACEOF | |
24388 | cat confdefs.h >>conftest.$ac_ext | |
24389 | cat >>conftest.$ac_ext <<_ACEOF | |
24390 | /* end confdefs.h. */ | |
24391 | #include <expat.h> | |
24392 | _ACEOF | |
24393 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24394 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24395 | ac_status=$? | |
24396 | grep -v '^ *+' conftest.er1 >conftest.err | |
24397 | rm -f conftest.er1 | |
24398 | cat conftest.err >&5 | |
24399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24400 | (exit $ac_status); } >/dev/null; then | |
24401 | if test -s conftest.err; then | |
24402 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24404 | else |
24405 | ac_cpp_err= | |
24406 | fi | |
24407 | else | |
24408 | ac_cpp_err=yes | |
24409 | fi | |
24410 | if test -z "$ac_cpp_err"; then | |
24411 | ac_header_preproc=yes | |
24412 | else | |
24413 | echo "$as_me: failed program was:" >&5 | |
24414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24415 | ||
24416 | ac_header_preproc=no | |
24417 | fi | |
24418 | rm -f conftest.err conftest.$ac_ext | |
24419 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24420 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24421 | ||
24422 | # So? What about this header? | |
ac1cb8d3 VS |
24423 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24424 | yes:no: ) | |
a848cd7e SC |
24425 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24426 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24427 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
24428 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
24429 | ac_header_preproc=yes | |
a848cd7e | 24430 | ;; |
ac1cb8d3 | 24431 | no:yes:* ) |
a848cd7e SC |
24432 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
24433 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24434 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
24435 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
24436 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
24437 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
24438 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24439 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24440 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
24441 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24442 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
24443 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24444 | ( |
24445 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24446 | ## ----------------------------------------- ## |
24447 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24448 | ## ----------------------------------------- ## | |
a848cd7e SC |
24449 | _ASBOX |
24450 | ) | | |
24451 | sed "s/^/$as_me: WARNING: /" >&2 | |
24452 | ;; | |
24453 | esac | |
24454 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
24455 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
24456 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24458 | else | |
24459 | ac_cv_header_expat_h=$ac_header_preproc | |
24460 | fi | |
24461 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24462 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24463 | ||
24464 | fi | |
24465 | if test $ac_cv_header_expat_h = yes; then | |
24466 | found_expat_h=1 | |
24467 | fi | |
24468 | ||
24469 | ||
24470 | if test "x$found_expat_h" = "x1"; then | |
24471 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
24472 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
24473 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
24474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24475 | else | |
24476 | ||
24477 | ||
24478 | ||
24479 | ac_ext=cc | |
24480 | ac_cpp='$CXXCPP $CPPFLAGS' | |
24481 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24482 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24483 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24484 | ||
24485 | cat >conftest.$ac_ext <<_ACEOF | |
24486 | /* confdefs.h. */ | |
24487 | _ACEOF | |
24488 | cat confdefs.h >>conftest.$ac_ext | |
24489 | cat >>conftest.$ac_ext <<_ACEOF | |
24490 | /* end confdefs.h. */ | |
24491 | #include <expat.h> | |
24492 | int | |
24493 | main () | |
24494 | { | |
24495 | ||
24496 | ; | |
24497 | return 0; | |
24498 | } | |
24499 | _ACEOF | |
24500 | rm -f conftest.$ac_objext | |
24501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24502 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24503 | ac_status=$? |
ac1cb8d3 VS |
24504 | grep -v '^ *+' conftest.er1 >conftest.err |
24505 | rm -f conftest.er1 | |
24506 | cat conftest.err >&5 | |
a848cd7e SC |
24507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24508 | (exit $ac_status); } && | |
6ebeb4c7 | 24509 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24511 | (eval $ac_try) 2>&5 | |
24512 | ac_status=$? | |
24513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24514 | (exit $ac_status); }; } && | |
24515 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24517 | (eval $ac_try) 2>&5 | |
24518 | ac_status=$? | |
24519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24520 | (exit $ac_status); }; }; then | |
24521 | wx_cv_expat_is_not_broken=yes | |
24522 | else | |
24523 | echo "$as_me: failed program was:" >&5 | |
24524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24525 | ||
24526 | wx_cv_expat_is_not_broken=no | |
24527 | ||
24528 | fi | |
ac1cb8d3 | 24529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24530 | ac_ext=c |
24531 | ac_cpp='$CPP $CPPFLAGS' | |
24532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24535 | ||
24536 | ||
24537 | ||
24538 | fi | |
24539 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
24540 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
24541 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
24542 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
24543 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
24544 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
24545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24546 | else | |
24547 | ac_check_lib_save_LIBS=$LIBS | |
24548 | LIBS="-lexpat $LIBS" | |
24549 | cat >conftest.$ac_ext <<_ACEOF | |
24550 | /* confdefs.h. */ | |
24551 | _ACEOF | |
24552 | cat confdefs.h >>conftest.$ac_ext | |
24553 | cat >>conftest.$ac_ext <<_ACEOF | |
24554 | /* end confdefs.h. */ | |
24555 | ||
24556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24557 | #ifdef __cplusplus | |
24558 | extern "C" | |
24559 | #endif | |
24560 | /* We use char because int might match the return type of a gcc2 | |
24561 | builtin and then its argument prototype would still apply. */ | |
24562 | char XML_ParserCreate (); | |
24563 | int | |
24564 | main () | |
24565 | { | |
24566 | XML_ParserCreate (); | |
24567 | ; | |
24568 | return 0; | |
24569 | } | |
24570 | _ACEOF | |
24571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24573 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24574 | ac_status=$? |
ac1cb8d3 VS |
24575 | grep -v '^ *+' conftest.er1 >conftest.err |
24576 | rm -f conftest.er1 | |
24577 | cat conftest.err >&5 | |
a848cd7e SC |
24578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24579 | (exit $ac_status); } && | |
6ebeb4c7 | 24580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24582 | (eval $ac_try) 2>&5 | |
24583 | ac_status=$? | |
24584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24585 | (exit $ac_status); }; } && | |
24586 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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_cv_lib_expat_XML_ParserCreate=yes | |
24593 | else | |
24594 | echo "$as_me: failed program was:" >&5 | |
24595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24596 | ||
24597 | ac_cv_lib_expat_XML_ParserCreate=no | |
24598 | fi | |
ac1cb8d3 VS |
24599 | rm -f conftest.err conftest.$ac_objext \ |
24600 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24601 | LIBS=$ac_check_lib_save_LIBS |
24602 | fi | |
24603 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
24604 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
24605 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
24606 | EXPAT_LINK=" -lexpat" | |
24607 | fi | |
24608 | ||
24609 | fi | |
24610 | fi | |
24611 | if test "x$EXPAT_LINK" = "x" ; then | |
24612 | if test "$wxUSE_EXPAT" = "sys" ; then | |
24613 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
24614 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
24615 | { (exit 1); exit 1; }; } | |
24616 | else | |
24617 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
24618 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
24619 | wxUSE_EXPAT=builtin | |
24620 | fi | |
24621 | else | |
24622 | wxUSE_EXPAT=sys | |
24623 | fi | |
24624 | fi | |
24625 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
24626 | ||
24627 | ||
24628 | subdirs="$subdirs src/expat" | |
24629 | ||
24630 | fi | |
24631 | fi | |
24632 | ||
24633 | ||
24634 | ||
24635 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
24636 | if test "${ac_cv_header_mspack_h+set}" = set; then |
24637 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
24638 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
24639 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
24640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24641 | fi | |
24642 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
24643 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
24644 | else | |
24645 | # Is the header compilable? | |
24646 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
24647 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
24648 | cat >conftest.$ac_ext <<_ACEOF | |
24649 | /* confdefs.h. */ | |
24650 | _ACEOF | |
24651 | cat confdefs.h >>conftest.$ac_ext | |
24652 | cat >>conftest.$ac_ext <<_ACEOF | |
24653 | /* end confdefs.h. */ | |
24654 | $ac_includes_default | |
24655 | #include <mspack.h> | |
24656 | _ACEOF | |
24657 | rm -f conftest.$ac_objext | |
24658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24659 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24660 | ac_status=$? |
ac1cb8d3 VS |
24661 | grep -v '^ *+' conftest.er1 >conftest.err |
24662 | rm -f conftest.er1 | |
24663 | cat conftest.err >&5 | |
a848cd7e SC |
24664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24665 | (exit $ac_status); } && | |
6ebeb4c7 | 24666 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24668 | (eval $ac_try) 2>&5 | |
24669 | ac_status=$? | |
24670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24671 | (exit $ac_status); }; } && | |
24672 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24674 | (eval $ac_try) 2>&5 | |
24675 | ac_status=$? | |
24676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24677 | (exit $ac_status); }; }; then | |
24678 | ac_header_compiler=yes | |
24679 | else | |
24680 | echo "$as_me: failed program was:" >&5 | |
24681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24682 | ||
24683 | ac_header_compiler=no | |
24684 | fi | |
ac1cb8d3 | 24685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24686 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24687 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24688 | ||
24689 | # Is the header present? | |
24690 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
24691 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
24692 | cat >conftest.$ac_ext <<_ACEOF | |
24693 | /* confdefs.h. */ | |
24694 | _ACEOF | |
24695 | cat confdefs.h >>conftest.$ac_ext | |
24696 | cat >>conftest.$ac_ext <<_ACEOF | |
24697 | /* end confdefs.h. */ | |
24698 | #include <mspack.h> | |
24699 | _ACEOF | |
24700 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24701 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24702 | ac_status=$? | |
24703 | grep -v '^ *+' conftest.er1 >conftest.err | |
24704 | rm -f conftest.er1 | |
24705 | cat conftest.err >&5 | |
24706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24707 | (exit $ac_status); } >/dev/null; then | |
24708 | if test -s conftest.err; then | |
24709 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24710 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24711 | else |
24712 | ac_cpp_err= | |
24713 | fi | |
24714 | else | |
24715 | ac_cpp_err=yes | |
24716 | fi | |
24717 | if test -z "$ac_cpp_err"; then | |
24718 | ac_header_preproc=yes | |
24719 | else | |
24720 | echo "$as_me: failed program was:" >&5 | |
24721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24722 | ||
24723 | ac_header_preproc=no | |
24724 | fi | |
24725 | rm -f conftest.err conftest.$ac_ext | |
24726 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24727 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24728 | ||
24729 | # So? What about this header? | |
ac1cb8d3 VS |
24730 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24731 | yes:no: ) | |
a848cd7e SC |
24732 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24733 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24734 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
24735 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
24736 | ac_header_preproc=yes | |
a848cd7e | 24737 | ;; |
ac1cb8d3 | 24738 | no:yes:* ) |
a848cd7e SC |
24739 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
24740 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24741 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
24742 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
24743 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
24744 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
24745 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24746 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24747 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
24748 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24749 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
24750 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24751 | ( |
24752 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24753 | ## ----------------------------------------- ## |
24754 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24755 | ## ----------------------------------------- ## | |
a848cd7e SC |
24756 | _ASBOX |
24757 | ) | | |
24758 | sed "s/^/$as_me: WARNING: /" >&2 | |
24759 | ;; | |
24760 | esac | |
24761 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
24762 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
24763 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
24764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24765 | else | |
24766 | ac_cv_header_mspack_h=$ac_header_preproc | |
24767 | fi | |
24768 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
24769 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
24770 | ||
24771 | fi | |
24772 | if test $ac_cv_header_mspack_h = yes; then | |
24773 | found_mspack_h=1 | |
24774 | fi | |
24775 | ||
24776 | ||
24777 | if test "x$found_mspack_h" = "x1"; then | |
24778 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
24779 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
24780 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
24781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24782 | else | |
24783 | ac_check_lib_save_LIBS=$LIBS | |
24784 | LIBS="-lmspack $LIBS" | |
24785 | cat >conftest.$ac_ext <<_ACEOF | |
24786 | /* confdefs.h. */ | |
24787 | _ACEOF | |
24788 | cat confdefs.h >>conftest.$ac_ext | |
24789 | cat >>conftest.$ac_ext <<_ACEOF | |
24790 | /* end confdefs.h. */ | |
24791 | ||
24792 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24793 | #ifdef __cplusplus | |
24794 | extern "C" | |
24795 | #endif | |
24796 | /* We use char because int might match the return type of a gcc2 | |
24797 | builtin and then its argument prototype would still apply. */ | |
24798 | char mspack_create_chm_decompressor (); | |
24799 | int | |
24800 | main () | |
24801 | { | |
24802 | mspack_create_chm_decompressor (); | |
24803 | ; | |
24804 | return 0; | |
24805 | } | |
24806 | _ACEOF | |
24807 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24809 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24810 | ac_status=$? |
ac1cb8d3 VS |
24811 | grep -v '^ *+' conftest.er1 >conftest.err |
24812 | rm -f conftest.er1 | |
24813 | cat conftest.err >&5 | |
a848cd7e SC |
24814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24815 | (exit $ac_status); } && | |
6ebeb4c7 | 24816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24818 | (eval $ac_try) 2>&5 | |
24819 | ac_status=$? | |
24820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24821 | (exit $ac_status); }; } && | |
24822 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24824 | (eval $ac_try) 2>&5 | |
24825 | ac_status=$? | |
24826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24827 | (exit $ac_status); }; }; then | |
24828 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
24829 | else | |
24830 | echo "$as_me: failed program was:" >&5 | |
24831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24832 | ||
24833 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
24834 | fi | |
ac1cb8d3 VS |
24835 | rm -f conftest.err conftest.$ac_objext \ |
24836 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24837 | LIBS=$ac_check_lib_save_LIBS |
24838 | fi | |
24839 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
24840 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
24841 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
24842 | MSPACK_LINK=" -lmspack" | |
24843 | fi | |
24844 | ||
24845 | fi | |
24846 | if test "x$MSPACK_LINK" = "x" ; then | |
24847 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
24848 | fi |
24849 | fi | |
24850 | ||
24851 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
24852 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
24853 | #define wxUSE_LIBMSPACK 1 |
24854 | _ACEOF | |
24855 | ||
a848cd7e SC |
24856 | fi |
24857 | ||
24858 | ||
24859 | ||
24860 | AFMINSTALL= | |
24861 | WIN32INSTALL= | |
24862 | ||
24863 | TOOLKIT= | |
24864 | TOOLKIT_INCLUDE= | |
24865 | WIDGET_SET= | |
24866 | ||
24867 | if test "$USE_WIN32" = 1 ; then | |
24868 | ||
24869 | for ac_header in w32api.h | |
24870 | do | |
24871 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
24872 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24873 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24877 | fi | |
24878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24879 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24880 | else | |
24881 | # Is the header compilable? | |
24882 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24883 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
24884 | cat >conftest.$ac_ext <<_ACEOF | |
24885 | /* confdefs.h. */ | |
24886 | _ACEOF | |
24887 | cat confdefs.h >>conftest.$ac_ext | |
24888 | cat >>conftest.$ac_ext <<_ACEOF | |
24889 | /* end confdefs.h. */ | |
24890 | $ac_includes_default | |
24891 | #include <$ac_header> | |
24892 | _ACEOF | |
24893 | rm -f conftest.$ac_objext | |
24894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24895 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24896 | ac_status=$? |
ac1cb8d3 VS |
24897 | grep -v '^ *+' conftest.er1 >conftest.err |
24898 | rm -f conftest.er1 | |
24899 | cat conftest.err >&5 | |
a848cd7e SC |
24900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24901 | (exit $ac_status); } && | |
6ebeb4c7 | 24902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24904 | (eval $ac_try) 2>&5 | |
24905 | ac_status=$? | |
24906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24907 | (exit $ac_status); }; } && | |
24908 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24910 | (eval $ac_try) 2>&5 | |
24911 | ac_status=$? | |
24912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24913 | (exit $ac_status); }; }; then | |
24914 | ac_header_compiler=yes | |
24915 | else | |
24916 | echo "$as_me: failed program was:" >&5 | |
24917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24918 | ||
24919 | ac_header_compiler=no | |
24920 | fi | |
ac1cb8d3 | 24921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24922 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24923 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24924 | ||
24925 | # Is the header present? | |
24926 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24927 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
24928 | cat >conftest.$ac_ext <<_ACEOF | |
24929 | /* confdefs.h. */ | |
24930 | _ACEOF | |
24931 | cat confdefs.h >>conftest.$ac_ext | |
24932 | cat >>conftest.$ac_ext <<_ACEOF | |
24933 | /* end confdefs.h. */ | |
24934 | #include <$ac_header> | |
24935 | _ACEOF | |
24936 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24937 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24938 | ac_status=$? | |
24939 | grep -v '^ *+' conftest.er1 >conftest.err | |
24940 | rm -f conftest.er1 | |
24941 | cat conftest.err >&5 | |
24942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24943 | (exit $ac_status); } >/dev/null; then | |
24944 | if test -s conftest.err; then | |
24945 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24946 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24947 | else |
24948 | ac_cpp_err= | |
24949 | fi | |
24950 | else | |
24951 | ac_cpp_err=yes | |
24952 | fi | |
24953 | if test -z "$ac_cpp_err"; then | |
24954 | ac_header_preproc=yes | |
24955 | else | |
24956 | echo "$as_me: failed program was:" >&5 | |
24957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24958 | ||
24959 | ac_header_preproc=no | |
24960 | fi | |
24961 | rm -f conftest.err conftest.$ac_ext | |
24962 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24963 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24964 | ||
24965 | # So? What about this header? | |
ac1cb8d3 VS |
24966 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24967 | yes:no: ) | |
a848cd7e SC |
24968 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24969 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24971 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24972 | ac_header_preproc=yes | |
a848cd7e | 24973 | ;; |
ac1cb8d3 | 24974 | no:yes:* ) |
a848cd7e SC |
24975 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24976 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24977 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24978 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24979 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24980 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24981 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24982 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24983 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24984 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24985 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24986 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24987 | ( |
24988 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24989 | ## ----------------------------------------- ## |
24990 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24991 | ## ----------------------------------------- ## | |
a848cd7e SC |
24992 | _ASBOX |
24993 | ) | | |
24994 | sed "s/^/$as_me: WARNING: /" >&2 | |
24995 | ;; | |
24996 | esac | |
24997 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24998 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24999 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25001 | else | |
ac1cb8d3 | 25002 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
25003 | fi |
25004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25005 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25006 | ||
25007 | fi | |
25008 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25009 | cat >>confdefs.h <<_ACEOF | |
25010 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25011 | _ACEOF | |
25012 | ||
25013 | fi | |
25014 | ||
25015 | done | |
25016 | ||
25017 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25018 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25019 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25020 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25022 | fi | |
25023 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25024 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25025 | else | |
25026 | # Is the header compilable? | |
25027 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
25028 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
25029 | cat >conftest.$ac_ext <<_ACEOF | |
25030 | /* confdefs.h. */ | |
25031 | _ACEOF | |
25032 | cat confdefs.h >>conftest.$ac_ext | |
25033 | cat >>conftest.$ac_ext <<_ACEOF | |
25034 | /* end confdefs.h. */ | |
25035 | $ac_includes_default | |
25036 | #include <windows.h> | |
25037 | _ACEOF | |
25038 | rm -f conftest.$ac_objext | |
25039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25040 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25041 | ac_status=$? |
ac1cb8d3 VS |
25042 | grep -v '^ *+' conftest.er1 >conftest.err |
25043 | rm -f conftest.er1 | |
25044 | cat conftest.err >&5 | |
a848cd7e SC |
25045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25046 | (exit $ac_status); } && | |
6ebeb4c7 | 25047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25049 | (eval $ac_try) 2>&5 | |
25050 | ac_status=$? | |
25051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25052 | (exit $ac_status); }; } && | |
25053 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25055 | (eval $ac_try) 2>&5 | |
25056 | ac_status=$? | |
25057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25058 | (exit $ac_status); }; }; then | |
25059 | ac_header_compiler=yes | |
25060 | else | |
25061 | echo "$as_me: failed program was:" >&5 | |
25062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25063 | ||
25064 | ac_header_compiler=no | |
25065 | fi | |
ac1cb8d3 | 25066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25067 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25068 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25069 | ||
25070 | # Is the header present? | |
25071 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
25072 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
25073 | cat >conftest.$ac_ext <<_ACEOF | |
25074 | /* confdefs.h. */ | |
25075 | _ACEOF | |
25076 | cat confdefs.h >>conftest.$ac_ext | |
25077 | cat >>conftest.$ac_ext <<_ACEOF | |
25078 | /* end confdefs.h. */ | |
25079 | #include <windows.h> | |
25080 | _ACEOF | |
25081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25083 | ac_status=$? | |
25084 | grep -v '^ *+' conftest.er1 >conftest.err | |
25085 | rm -f conftest.er1 | |
25086 | cat conftest.err >&5 | |
25087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25088 | (exit $ac_status); } >/dev/null; then | |
25089 | if test -s conftest.err; then | |
25090 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25091 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25092 | else |
25093 | ac_cpp_err= | |
25094 | fi | |
25095 | else | |
25096 | ac_cpp_err=yes | |
25097 | fi | |
25098 | if test -z "$ac_cpp_err"; then | |
25099 | ac_header_preproc=yes | |
25100 | else | |
25101 | echo "$as_me: failed program was:" >&5 | |
25102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25103 | ||
25104 | ac_header_preproc=no | |
25105 | fi | |
25106 | rm -f conftest.err conftest.$ac_ext | |
25107 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25108 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25109 | ||
25110 | # So? What about this header? | |
ac1cb8d3 VS |
25111 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25112 | yes:no: ) | |
a848cd7e SC |
25113 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25114 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25115 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
25116 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
25117 | ac_header_preproc=yes | |
a848cd7e | 25118 | ;; |
ac1cb8d3 | 25119 | no:yes:* ) |
a848cd7e SC |
25120 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
25121 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25122 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
25123 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
25124 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
25125 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
25126 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25127 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25128 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
25129 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25130 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
25131 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25132 | ( |
25133 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25134 | ## ----------------------------------------- ## |
25135 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25136 | ## ----------------------------------------- ## | |
a848cd7e SC |
25137 | _ASBOX |
25138 | ) | | |
25139 | sed "s/^/$as_me: WARNING: /" >&2 | |
25140 | ;; | |
25141 | esac | |
25142 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25143 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25144 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25146 | else | |
25147 | ac_cv_header_windows_h=$ac_header_preproc | |
25148 | fi | |
25149 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25150 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25151 | ||
25152 | fi | |
25153 | if test $ac_cv_header_windows_h = yes; then | |
25154 | : | |
25155 | else | |
25156 | ||
25157 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
25158 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
25159 | { (exit 1); exit 1; }; } | |
25160 | ||
25161 | fi | |
25162 | ||
25163 | ||
25164 | ||
25165 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
25166 | ||
25167 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
25168 | LIBS="$LIBS -loleacc" | |
25169 | fi | |
25170 | ||
25171 | case "${host}" in | |
25172 | *-*-cygwin* ) | |
25173 | LIBS="$LIBS -lkernel32 -luser32" | |
25174 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
25175 | esac | |
25176 | ||
25177 | if test "$wxUSE_ODBC" = "sys" ; then | |
25178 | wxUSE_ODBC = "yes" | |
25179 | fi | |
25180 | if test "$wxUSE_ODBC" = "yes" ; then | |
25181 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
25182 | cat >>confdefs.h <<\_ACEOF | |
25183 | #define wxUSE_ODBC 1 | |
25184 | _ACEOF | |
25185 | ||
25186 | fi | |
25187 | ||
25188 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
25189 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
25190 | ||
25191 | WIN32INSTALL=win32install | |
25192 | fi | |
25193 | ||
25194 | if test "$wxUSE_GUI" = "yes"; then | |
25195 | USE_GUI=1 | |
25196 | ||
25197 | GUI_TK_LIBRARY= | |
25198 | ||
25199 | WXGTK12= | |
25200 | WXGTK127= | |
25201 | WXGTK20= | |
25202 | WXGPE= | |
25203 | ||
207bc66c RN |
25204 | if test "$wxUSE_COCOA" = 1 ; then |
25205 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
25206 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
25207 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
25208 | wxUSE_PRINTING_ARCHITECTURE=no | |
25209 | fi | |
25210 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
25211 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
25212 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
25213 | wxUSE_DRAG_AND_DROP=no | |
25214 | fi | |
25215 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
25216 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
25217 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
25218 | wxUSE_DRAGIMAGE=no | |
25219 | fi | |
25220 | fi | |
25221 | ||
a848cd7e SC |
25222 | if test "$wxUSE_MSW" = 1 ; then |
25223 | TOOLKIT=MSW | |
25224 | GUIDIST=MSW_DIST | |
25225 | ||
ceec2216 | 25226 | case "${host}" in |
a848cd7e SC |
25227 | *-*-mingw32* ) |
25228 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
25229 | esac | |
25230 | fi | |
25231 | ||
25232 | if test "$wxUSE_GTK" = 1; then | |
25233 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
25234 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
25235 | ||
25236 | gtk_version_cached=1 | |
25237 | if test "${wx_cv_lib_gtk+set}" = set; then | |
25238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25239 | else | |
25240 | ||
25241 | gtk_version_cached=0 | |
25242 | echo "$as_me:$LINENO: result: " >&5 | |
25243 | echo "${ECHO_T}" >&6 | |
25244 | ||
25245 | GTK_MODULES= | |
25246 | if test "$wxUSE_THREADS" = "yes"; then | |
25247 | GTK_MODULES=gthread | |
25248 | fi | |
25249 | ||
f597b41c | 25250 | wx_cv_lib_gtk= |
5001df0d MW |
25251 | if test "x$wxGTK_VERSION" != "x1" |
25252 | then | |
25253 | case "${host}" in | |
25254 | *-*-solaris2* ) | |
25255 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
25256 | enable_gtktest=no | |
25257 | fi | |
25258 | esac | |
25259 | ||
a848cd7e SC |
25260 | # Check whether --enable-gtktest or --disable-gtktest was given. |
25261 | if test "${enable_gtktest+set}" = set; then | |
25262 | enableval="$enable_gtktest" | |
25263 | ||
25264 | else | |
25265 | enable_gtktest=yes | |
25266 | fi; | |
25267 | ||
25268 | pkg_config_args=gtk+-2.0 | |
25269 | for module in . $GTK_MODULES | |
25270 | do | |
25271 | case "$module" in | |
25272 | gthread) | |
25273 | pkg_config_args="$pkg_config_args gthread-2.0" | |
25274 | ;; | |
25275 | esac | |
25276 | done | |
25277 | ||
25278 | no_gtk="" | |
25279 | ||
25280 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25281 | set dummy pkg-config; ac_word=$2 | |
25282 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25284 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25286 | else | |
25287 | case $PKG_CONFIG in | |
25288 | [\\/]* | ?:[\\/]*) | |
25289 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25290 | ;; | |
25291 | *) | |
25292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25293 | for as_dir in $PATH | |
25294 | do | |
25295 | IFS=$as_save_IFS | |
25296 | test -z "$as_dir" && as_dir=. | |
25297 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25298 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25299 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25301 | break 2 | |
25302 | fi | |
25303 | done | |
25304 | done | |
25305 | ||
25306 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25307 | ;; | |
25308 | esac | |
25309 | fi | |
25310 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25311 | ||
25312 | if test -n "$PKG_CONFIG"; then | |
25313 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25314 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25315 | else | |
25316 | echo "$as_me:$LINENO: result: no" >&5 | |
25317 | echo "${ECHO_T}no" >&6 | |
25318 | fi | |
25319 | ||
25320 | ||
25321 | if test x$PKG_CONFIG != xno ; then | |
25322 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
25323 | : | |
25324 | else | |
c2218763 | 25325 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
25326 | no_gtk=yes |
25327 | PKG_CONFIG=no | |
25328 | fi | |
25329 | else | |
25330 | no_gtk=yes | |
25331 | fi | |
25332 | ||
25333 | min_gtk_version=2.0.0 | |
25334 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
25335 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
25336 | ||
25337 | if test x$PKG_CONFIG != xno ; then | |
25338 | ## don't try to run the test against uninstalled libtool libs | |
25339 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
25340 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
25341 | enable_gtktest=no | |
25342 | fi | |
25343 | ||
25344 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
25345 | : | |
25346 | else | |
25347 | no_gtk=yes | |
25348 | fi | |
25349 | fi | |
25350 | ||
25351 | if test x"$no_gtk" = x ; then | |
25352 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
25353 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
25354 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25355 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25356 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25357 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25358 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25359 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25360 | if test "x$enable_gtktest" = "xyes" ; then | |
25361 | ac_save_CFLAGS="$CFLAGS" | |
25362 | ac_save_LIBS="$LIBS" | |
25363 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25364 | LIBS="$GTK_LIBS $LIBS" | |
25365 | rm -f conf.gtktest | |
25366 | if test "$cross_compiling" = yes; then | |
25367 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25368 | else | |
25369 | cat >conftest.$ac_ext <<_ACEOF | |
25370 | /* confdefs.h. */ | |
25371 | _ACEOF | |
25372 | cat confdefs.h >>conftest.$ac_ext | |
25373 | cat >>conftest.$ac_ext <<_ACEOF | |
25374 | /* end confdefs.h. */ | |
25375 | ||
25376 | #include <gtk/gtk.h> | |
25377 | #include <stdio.h> | |
25378 | #include <stdlib.h> | |
25379 | ||
25380 | int | |
25381 | main () | |
25382 | { | |
25383 | int major, minor, micro; | |
25384 | char *tmp_version; | |
25385 | ||
25386 | system ("touch conf.gtktest"); | |
25387 | ||
25388 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25389 | tmp_version = g_strdup("$min_gtk_version"); | |
25390 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25391 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25392 | exit(1); | |
25393 | } | |
25394 | ||
25395 | if ((gtk_major_version != $gtk_config_major_version) || | |
25396 | (gtk_minor_version != $gtk_config_minor_version) || | |
25397 | (gtk_micro_version != $gtk_config_micro_version)) | |
25398 | { | |
25399 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25400 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25401 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25402 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
25403 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25404 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25405 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25406 | printf("*** required on your system.\n"); | |
25407 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
25408 | printf("*** to point to the correct configuration files\n"); | |
25409 | } | |
25410 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25411 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25412 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25413 | { | |
25414 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25415 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25416 | printf("*** library (version %d.%d.%d)\n", | |
25417 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25418 | } | |
25419 | else | |
25420 | { | |
25421 | if ((gtk_major_version > major) || | |
25422 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25423 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25424 | { | |
25425 | return 0; | |
25426 | } | |
25427 | else | |
25428 | { | |
25429 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25430 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25431 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25432 | major, minor, micro); | |
25433 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25434 | printf("***\n"); | |
25435 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25436 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
25437 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25438 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
25439 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
25440 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25441 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25442 | } | |
25443 | } | |
25444 | return 1; | |
25445 | } | |
25446 | ||
25447 | _ACEOF | |
25448 | rm -f conftest$ac_exeext | |
25449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25450 | (eval $ac_link) 2>&5 | |
25451 | ac_status=$? | |
25452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25453 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25455 | (eval $ac_try) 2>&5 | |
25456 | ac_status=$? | |
25457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25458 | (exit $ac_status); }; }; then | |
25459 | : | |
25460 | else | |
25461 | echo "$as_me: program exited with status $ac_status" >&5 | |
25462 | echo "$as_me: failed program was:" >&5 | |
25463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25464 | ||
25465 | ( exit $ac_status ) | |
25466 | no_gtk=yes | |
25467 | fi | |
ac1cb8d3 | 25468 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25469 | fi |
25470 | CFLAGS="$ac_save_CFLAGS" | |
25471 | LIBS="$ac_save_LIBS" | |
25472 | fi | |
25473 | fi | |
25474 | if test "x$no_gtk" = x ; then | |
25475 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
25476 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
25477 | wx_cv_lib_gtk=2.0 | |
25478 | else | |
25479 | echo "$as_me:$LINENO: result: no" >&5 | |
25480 | echo "${ECHO_T}no" >&6 | |
25481 | if test "$PKG_CONFIG" = "no" ; then | |
25482 | echo "*** A new enough version of pkg-config was not found." | |
25483 | echo "*** See http://pkgconfig.sourceforge.net" | |
25484 | else | |
25485 | if test -f conf.gtktest ; then | |
25486 | : | |
25487 | else | |
25488 | echo "*** Could not run GTK+ test program, checking why..." | |
25489 | ac_save_CFLAGS="$CFLAGS" | |
25490 | ac_save_LIBS="$LIBS" | |
25491 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25492 | LIBS="$LIBS $GTK_LIBS" | |
25493 | cat >conftest.$ac_ext <<_ACEOF | |
25494 | /* confdefs.h. */ | |
25495 | _ACEOF | |
25496 | cat confdefs.h >>conftest.$ac_ext | |
25497 | cat >>conftest.$ac_ext <<_ACEOF | |
25498 | /* end confdefs.h. */ | |
25499 | ||
25500 | #include <gtk/gtk.h> | |
25501 | #include <stdio.h> | |
25502 | ||
25503 | int | |
25504 | main () | |
25505 | { | |
25506 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25507 | ; | |
25508 | return 0; | |
25509 | } | |
25510 | _ACEOF | |
25511 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25513 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25514 | ac_status=$? |
ac1cb8d3 VS |
25515 | grep -v '^ *+' conftest.er1 >conftest.err |
25516 | rm -f conftest.er1 | |
25517 | cat conftest.err >&5 | |
a848cd7e SC |
25518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25519 | (exit $ac_status); } && | |
6ebeb4c7 | 25520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25522 | (eval $ac_try) 2>&5 | |
25523 | ac_status=$? | |
25524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25525 | (exit $ac_status); }; } && | |
25526 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25528 | (eval $ac_try) 2>&5 | |
25529 | ac_status=$? | |
25530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25531 | (exit $ac_status); }; }; then | |
25532 | echo "*** The test program compiled, but did not run. This usually means" | |
25533 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
25534 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
25535 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25536 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25537 | echo "*** is required on your system" | |
25538 | echo "***" | |
25539 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25540 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25541 | else | |
25542 | echo "$as_me: failed program was:" >&5 | |
25543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25544 | ||
25545 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25546 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
25547 | fi | |
ac1cb8d3 VS |
25548 | rm -f conftest.err conftest.$ac_objext \ |
25549 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25550 | CFLAGS="$ac_save_CFLAGS" |
25551 | LIBS="$ac_save_LIBS" | |
25552 | fi | |
25553 | fi | |
25554 | GTK_CFLAGS="" | |
25555 | GTK_LIBS="" | |
25556 | : | |
25557 | fi | |
25558 | ||
25559 | ||
25560 | rm -f conf.gtktest | |
25561 | ||
5001df0d MW |
25562 | |
25563 | case "${host}" in | |
25564 | *-*-solaris2* ) | |
25565 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
25566 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
25567 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
25568 | fi | |
25569 | if test "$wxUSE_SHARED" != "yes"; then | |
25570 | GTK_LIBS="$GTK_LIBS -lX11" | |
25571 | fi | |
25572 | esac | |
f597b41c MW |
25573 | fi |
25574 | ||
f34ca037 MW |
25575 | if test -z "$wx_cv_lib_gtk"; then |
25576 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
25577 | |
25578 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
25579 | if test "${with_gtk_prefix+set}" = set; then | |
25580 | withval="$with_gtk_prefix" | |
25581 | gtk_config_prefix="$withval" | |
25582 | else | |
25583 | gtk_config_prefix="" | |
25584 | fi; | |
25585 | ||
25586 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
25587 | if test "${with_gtk_exec_prefix+set}" = set; then | |
25588 | withval="$with_gtk_exec_prefix" | |
25589 | gtk_config_exec_prefix="$withval" | |
25590 | else | |
25591 | gtk_config_exec_prefix="" | |
25592 | fi; | |
25593 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
25594 | if test "${enable_gtktest+set}" = set; then | |
25595 | enableval="$enable_gtktest" | |
25596 | ||
25597 | else | |
25598 | enable_gtktest=yes | |
25599 | fi; | |
25600 | ||
25601 | for module in . $GTK_MODULES | |
25602 | do | |
25603 | case "$module" in | |
25604 | gthread) | |
25605 | gtk_config_args="$gtk_config_args gthread" | |
25606 | ;; | |
25607 | esac | |
25608 | done | |
25609 | ||
25610 | if test x$gtk_config_exec_prefix != x ; then | |
25611 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
25612 | if test x${GTK_CONFIG+set} != xset ; then | |
25613 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
25614 | fi | |
25615 | fi | |
25616 | if test x$gtk_config_prefix != x ; then | |
25617 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
25618 | if test x${GTK_CONFIG+set} != xset ; then | |
25619 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
25620 | fi | |
25621 | fi | |
25622 | ||
25623 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
25624 | set dummy gtk-config; ac_word=$2 | |
25625 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25627 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
25628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25629 | else | |
25630 | case $GTK_CONFIG in | |
25631 | [\\/]* | ?:[\\/]*) | |
25632 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
25633 | ;; | |
25634 | *) | |
25635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25636 | for as_dir in $PATH | |
25637 | do | |
25638 | IFS=$as_save_IFS | |
25639 | test -z "$as_dir" && as_dir=. | |
25640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25642 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25644 | break 2 | |
25645 | fi | |
25646 | done | |
25647 | done | |
25648 | ||
25649 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
25650 | ;; | |
25651 | esac | |
25652 | fi | |
25653 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25654 | ||
25655 | if test -n "$GTK_CONFIG"; then | |
25656 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25657 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25658 | else | |
25659 | echo "$as_me:$LINENO: result: no" >&5 | |
25660 | echo "${ECHO_T}no" >&6 | |
25661 | fi | |
25662 | ||
25663 | min_gtk_version=1.2.7 | |
25664 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25665 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25666 | no_gtk="" | |
25667 | if test "$GTK_CONFIG" = "no" ; then | |
25668 | no_gtk=yes | |
25669 | else | |
25670 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25671 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25672 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25673 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25674 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25675 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25676 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25677 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25678 | if test "x$enable_gtktest" = "xyes" ; then | |
25679 | ac_save_CFLAGS="$CFLAGS" | |
25680 | ac_save_LIBS="$LIBS" | |
25681 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25682 | LIBS="$GTK_LIBS $LIBS" | |
25683 | rm -f conf.gtktest | |
25684 | if test "$cross_compiling" = yes; then | |
25685 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25686 | else | |
25687 | cat >conftest.$ac_ext <<_ACEOF | |
25688 | /* confdefs.h. */ | |
25689 | _ACEOF | |
25690 | cat confdefs.h >>conftest.$ac_ext | |
25691 | cat >>conftest.$ac_ext <<_ACEOF | |
25692 | /* end confdefs.h. */ | |
25693 | ||
25694 | #include <gtk/gtk.h> | |
25695 | #include <stdio.h> | |
25696 | #include <stdlib.h> | |
25697 | ||
25698 | int | |
25699 | main () | |
25700 | { | |
25701 | int major, minor, micro; | |
25702 | char *tmp_version; | |
25703 | ||
25704 | system ("touch conf.gtktest"); | |
25705 | ||
25706 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25707 | tmp_version = g_strdup("$min_gtk_version"); | |
25708 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25709 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25710 | exit(1); | |
25711 | } | |
25712 | ||
25713 | if ((gtk_major_version != $gtk_config_major_version) || | |
25714 | (gtk_minor_version != $gtk_config_minor_version) || | |
25715 | (gtk_micro_version != $gtk_config_micro_version)) | |
25716 | { | |
25717 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25718 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25719 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25720 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25721 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25722 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25723 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25724 | printf("*** required on your system.\n"); | |
25725 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25726 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25727 | printf("*** before re-running configure\n"); | |
25728 | } | |
25729 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25730 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25731 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25732 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25733 | { | |
25734 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25735 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25736 | printf("*** library (version %d.%d.%d)\n", | |
25737 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25738 | } | |
25739 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25740 | else | |
25741 | { | |
25742 | if ((gtk_major_version > major) || | |
25743 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25744 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25745 | { | |
25746 | return 0; | |
25747 | } | |
25748 | else | |
25749 | { | |
25750 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25751 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25752 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25753 | major, minor, micro); | |
25754 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25755 | printf("***\n"); | |
25756 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25757 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25758 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25759 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25760 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25761 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25762 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25763 | } | |
25764 | } | |
25765 | return 1; | |
25766 | } | |
25767 | ||
25768 | _ACEOF | |
25769 | rm -f conftest$ac_exeext | |
25770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25771 | (eval $ac_link) 2>&5 | |
25772 | ac_status=$? | |
25773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25776 | (eval $ac_try) 2>&5 | |
25777 | ac_status=$? | |
25778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25779 | (exit $ac_status); }; }; then | |
25780 | : | |
25781 | else | |
25782 | echo "$as_me: program exited with status $ac_status" >&5 | |
25783 | echo "$as_me: failed program was:" >&5 | |
25784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25785 | ||
25786 | ( exit $ac_status ) | |
25787 | no_gtk=yes | |
25788 | fi | |
ac1cb8d3 | 25789 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25790 | fi |
25791 | CFLAGS="$ac_save_CFLAGS" | |
25792 | LIBS="$ac_save_LIBS" | |
25793 | fi | |
25794 | fi | |
25795 | if test "x$no_gtk" = x ; then | |
25796 | echo "$as_me:$LINENO: result: yes" >&5 | |
25797 | echo "${ECHO_T}yes" >&6 | |
25798 | wx_cv_lib_gtk=1.2.7 | |
25799 | else | |
25800 | echo "$as_me:$LINENO: result: no" >&5 | |
25801 | echo "${ECHO_T}no" >&6 | |
25802 | if test "$GTK_CONFIG" = "no" ; then | |
25803 | echo "*** The gtk-config script installed by GTK could not be found" | |
25804 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25805 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25806 | echo "*** full path to gtk-config." | |
25807 | else | |
25808 | if test -f conf.gtktest ; then | |
25809 | : | |
25810 | else | |
25811 | echo "*** Could not run GTK test program, checking why..." | |
25812 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25813 | LIBS="$LIBS $GTK_LIBS" | |
25814 | cat >conftest.$ac_ext <<_ACEOF | |
25815 | /* confdefs.h. */ | |
25816 | _ACEOF | |
25817 | cat confdefs.h >>conftest.$ac_ext | |
25818 | cat >>conftest.$ac_ext <<_ACEOF | |
25819 | /* end confdefs.h. */ | |
25820 | ||
25821 | #include <gtk/gtk.h> | |
25822 | #include <stdio.h> | |
25823 | ||
25824 | int | |
25825 | main () | |
25826 | { | |
25827 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25828 | ; | |
25829 | return 0; | |
25830 | } | |
25831 | _ACEOF | |
25832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25834 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25835 | ac_status=$? |
ac1cb8d3 VS |
25836 | grep -v '^ *+' conftest.er1 >conftest.err |
25837 | rm -f conftest.er1 | |
25838 | cat conftest.err >&5 | |
a848cd7e SC |
25839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25840 | (exit $ac_status); } && | |
6ebeb4c7 | 25841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25843 | (eval $ac_try) 2>&5 | |
25844 | ac_status=$? | |
25845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25846 | (exit $ac_status); }; } && | |
25847 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25849 | (eval $ac_try) 2>&5 | |
25850 | ac_status=$? | |
25851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25852 | (exit $ac_status); }; }; then | |
25853 | echo "*** The test program compiled, but did not run. This usually means" | |
25854 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25855 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25856 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25857 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25858 | echo "*** is required on your system" | |
25859 | echo "***" | |
25860 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25861 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25862 | echo "***" | |
25863 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25864 | echo "*** came with the system with the command" | |
25865 | echo "***" | |
25866 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25867 | else | |
25868 | echo "$as_me: failed program was:" >&5 | |
25869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25870 | ||
25871 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25872 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25873 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25874 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25875 | fi | |
ac1cb8d3 VS |
25876 | rm -f conftest.err conftest.$ac_objext \ |
25877 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25878 | CFLAGS="$ac_save_CFLAGS" |
25879 | LIBS="$ac_save_LIBS" | |
25880 | fi | |
25881 | fi | |
25882 | GTK_CFLAGS="" | |
25883 | GTK_LIBS="" | |
25884 | : | |
25885 | fi | |
25886 | ||
25887 | ||
25888 | rm -f conf.gtktest | |
25889 | ||
25890 | ||
f34ca037 | 25891 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
25892 | |
25893 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
25894 | if test "${with_gtk_prefix+set}" = set; then | |
25895 | withval="$with_gtk_prefix" | |
25896 | gtk_config_prefix="$withval" | |
25897 | else | |
25898 | gtk_config_prefix="" | |
25899 | fi; | |
25900 | ||
25901 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
25902 | if test "${with_gtk_exec_prefix+set}" = set; then | |
25903 | withval="$with_gtk_exec_prefix" | |
25904 | gtk_config_exec_prefix="$withval" | |
25905 | else | |
25906 | gtk_config_exec_prefix="" | |
25907 | fi; | |
25908 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
25909 | if test "${enable_gtktest+set}" = set; then | |
25910 | enableval="$enable_gtktest" | |
25911 | ||
25912 | else | |
25913 | enable_gtktest=yes | |
25914 | fi; | |
25915 | ||
25916 | for module in . $GTK_MODULES | |
25917 | do | |
25918 | case "$module" in | |
25919 | gthread) | |
25920 | gtk_config_args="$gtk_config_args gthread" | |
25921 | ;; | |
25922 | esac | |
25923 | done | |
25924 | ||
25925 | if test x$gtk_config_exec_prefix != x ; then | |
25926 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
25927 | if test x${GTK_CONFIG+set} != xset ; then | |
25928 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
25929 | fi | |
25930 | fi | |
25931 | if test x$gtk_config_prefix != x ; then | |
25932 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
25933 | if test x${GTK_CONFIG+set} != xset ; then | |
25934 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
25935 | fi | |
25936 | fi | |
25937 | ||
25938 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
25939 | set dummy gtk-config; ac_word=$2 | |
25940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25942 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
25943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25944 | else | |
25945 | case $GTK_CONFIG in | |
25946 | [\\/]* | ?:[\\/]*) | |
25947 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
25948 | ;; | |
25949 | *) | |
25950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25951 | for as_dir in $PATH | |
25952 | do | |
25953 | IFS=$as_save_IFS | |
25954 | test -z "$as_dir" && as_dir=. | |
25955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25957 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25959 | break 2 | |
25960 | fi | |
25961 | done | |
25962 | done | |
25963 | ||
25964 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
25965 | ;; | |
25966 | esac | |
25967 | fi | |
25968 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25969 | ||
25970 | if test -n "$GTK_CONFIG"; then | |
25971 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25972 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25973 | else | |
25974 | echo "$as_me:$LINENO: result: no" >&5 | |
25975 | echo "${ECHO_T}no" >&6 | |
25976 | fi | |
25977 | ||
25978 | min_gtk_version=1.2.3 | |
25979 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25980 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25981 | no_gtk="" | |
25982 | if test "$GTK_CONFIG" = "no" ; then | |
25983 | no_gtk=yes | |
25984 | else | |
25985 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25986 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25987 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25988 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25989 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25990 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25991 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25992 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25993 | if test "x$enable_gtktest" = "xyes" ; then | |
25994 | ac_save_CFLAGS="$CFLAGS" | |
25995 | ac_save_LIBS="$LIBS" | |
25996 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25997 | LIBS="$GTK_LIBS $LIBS" | |
25998 | rm -f conf.gtktest | |
25999 | if test "$cross_compiling" = yes; then | |
26000 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26001 | else | |
26002 | cat >conftest.$ac_ext <<_ACEOF | |
26003 | /* confdefs.h. */ | |
26004 | _ACEOF | |
26005 | cat confdefs.h >>conftest.$ac_ext | |
26006 | cat >>conftest.$ac_ext <<_ACEOF | |
26007 | /* end confdefs.h. */ | |
26008 | ||
26009 | #include <gtk/gtk.h> | |
26010 | #include <stdio.h> | |
26011 | #include <stdlib.h> | |
26012 | ||
26013 | int | |
26014 | main () | |
26015 | { | |
26016 | int major, minor, micro; | |
26017 | char *tmp_version; | |
26018 | ||
26019 | system ("touch conf.gtktest"); | |
26020 | ||
26021 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26022 | tmp_version = g_strdup("$min_gtk_version"); | |
26023 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26024 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26025 | exit(1); | |
26026 | } | |
26027 | ||
26028 | if ((gtk_major_version != $gtk_config_major_version) || | |
26029 | (gtk_minor_version != $gtk_config_minor_version) || | |
26030 | (gtk_micro_version != $gtk_config_micro_version)) | |
26031 | { | |
26032 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26033 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26034 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26035 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26036 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26037 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26038 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26039 | printf("*** required on your system.\n"); | |
26040 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26041 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26042 | printf("*** before re-running configure\n"); | |
26043 | } | |
26044 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26045 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26046 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26047 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26048 | { | |
26049 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26050 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26051 | printf("*** library (version %d.%d.%d)\n", | |
26052 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26053 | } | |
26054 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26055 | else | |
26056 | { | |
26057 | if ((gtk_major_version > major) || | |
26058 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26059 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26060 | { | |
26061 | return 0; | |
26062 | } | |
26063 | else | |
26064 | { | |
26065 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26066 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26067 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26068 | major, minor, micro); | |
26069 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26070 | printf("***\n"); | |
26071 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26072 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26073 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26074 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26075 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26076 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26077 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26078 | } | |
26079 | } | |
26080 | return 1; | |
26081 | } | |
26082 | ||
26083 | _ACEOF | |
26084 | rm -f conftest$ac_exeext | |
26085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26086 | (eval $ac_link) 2>&5 | |
26087 | ac_status=$? | |
26088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26091 | (eval $ac_try) 2>&5 | |
26092 | ac_status=$? | |
26093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26094 | (exit $ac_status); }; }; then | |
26095 | : | |
26096 | else | |
26097 | echo "$as_me: program exited with status $ac_status" >&5 | |
26098 | echo "$as_me: failed program was:" >&5 | |
26099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26100 | ||
26101 | ( exit $ac_status ) | |
26102 | no_gtk=yes | |
26103 | fi | |
ac1cb8d3 | 26104 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26105 | fi |
26106 | CFLAGS="$ac_save_CFLAGS" | |
26107 | LIBS="$ac_save_LIBS" | |
26108 | fi | |
26109 | fi | |
26110 | if test "x$no_gtk" = x ; then | |
26111 | echo "$as_me:$LINENO: result: yes" >&5 | |
26112 | echo "${ECHO_T}yes" >&6 | |
26113 | wx_cv_lib_gtk=1.2.3 | |
26114 | else | |
26115 | echo "$as_me:$LINENO: result: no" >&5 | |
26116 | echo "${ECHO_T}no" >&6 | |
26117 | if test "$GTK_CONFIG" = "no" ; then | |
26118 | echo "*** The gtk-config script installed by GTK could not be found" | |
26119 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26120 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26121 | echo "*** full path to gtk-config." | |
26122 | else | |
26123 | if test -f conf.gtktest ; then | |
26124 | : | |
26125 | else | |
26126 | echo "*** Could not run GTK test program, checking why..." | |
26127 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26128 | LIBS="$LIBS $GTK_LIBS" | |
26129 | cat >conftest.$ac_ext <<_ACEOF | |
26130 | /* confdefs.h. */ | |
26131 | _ACEOF | |
26132 | cat confdefs.h >>conftest.$ac_ext | |
26133 | cat >>conftest.$ac_ext <<_ACEOF | |
26134 | /* end confdefs.h. */ | |
26135 | ||
26136 | #include <gtk/gtk.h> | |
26137 | #include <stdio.h> | |
26138 | ||
26139 | int | |
26140 | main () | |
26141 | { | |
26142 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26143 | ; | |
26144 | return 0; | |
26145 | } | |
26146 | _ACEOF | |
26147 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26149 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26150 | ac_status=$? |
ac1cb8d3 VS |
26151 | grep -v '^ *+' conftest.er1 >conftest.err |
26152 | rm -f conftest.er1 | |
26153 | cat conftest.err >&5 | |
a848cd7e SC |
26154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26155 | (exit $ac_status); } && | |
6ebeb4c7 | 26156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26158 | (eval $ac_try) 2>&5 | |
26159 | ac_status=$? | |
26160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26161 | (exit $ac_status); }; } && | |
26162 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26164 | (eval $ac_try) 2>&5 | |
26165 | ac_status=$? | |
26166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26167 | (exit $ac_status); }; }; then | |
26168 | echo "*** The test program compiled, but did not run. This usually means" | |
26169 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
26170 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
26171 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26172 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26173 | echo "*** is required on your system" | |
26174 | echo "***" | |
26175 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26176 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26177 | echo "***" | |
26178 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
26179 | echo "*** came with the system with the command" | |
26180 | echo "***" | |
26181 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
26182 | else | |
26183 | echo "$as_me: failed program was:" >&5 | |
26184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26185 | ||
26186 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26187 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
26188 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
26189 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
26190 | fi | |
ac1cb8d3 VS |
26191 | rm -f conftest.err conftest.$ac_objext \ |
26192 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26193 | CFLAGS="$ac_save_CFLAGS" |
26194 | LIBS="$ac_save_LIBS" | |
26195 | fi | |
26196 | fi | |
26197 | GTK_CFLAGS="" | |
26198 | GTK_LIBS="" | |
26199 | : | |
26200 | fi | |
26201 | ||
26202 | ||
26203 | rm -f conf.gtktest | |
26204 | ||
f34ca037 | 26205 | fi |
a848cd7e SC |
26206 | fi |
26207 | fi | |
26208 | ||
26209 | if test -z "$wx_cv_lib_gtk"; then | |
26210 | wx_cv_lib_gtk=none | |
26211 | else | |
26212 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 26213 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
26214 | fi |
26215 | ||
26216 | ||
26217 | fi | |
26218 | ||
26219 | ||
26220 | if test "$gtk_version_cached" = 1; then | |
26221 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
26222 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
26223 | fi | |
26224 | ||
26225 | case "$wx_cv_lib_gtk" in | |
26226 | 2.0) WXGTK20=1 | |
26227 | TOOLKIT_VERSION=2 | |
26228 | ;; | |
26229 | 1.2.7) WXGTK127=1 | |
26230 | WXGTK12=1 | |
26231 | ;; | |
26232 | 1.2.3) WXGTK12=1 | |
26233 | ;; | |
26234 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
26235 | The development files for GTK+ were not found. For GTK+ 2, please |
26236 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
26237 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
26238 | and that the version is 1.2.3 or above. Also check that the | |
26239 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
26240 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
26241 | " >&5 |
26242 | echo "$as_me: error: | |
f597b41c MW |
26243 | The development files for GTK+ were not found. For GTK+ 2, please |
26244 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
26245 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
26246 | and that the version is 1.2.3 or above. Also check that the | |
26247 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
26248 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
26249 | " >&2;} |
26250 | { (exit 1); exit 1; }; } | |
26251 | ;; | |
26252 | esac | |
26253 | ||
26254 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
26255 | save_CFLAGS="$CFLAGS" |
26256 | save_LIBS="$LIBS" | |
9d271838 | 26257 | CFLAGS="$CFLAGS $wx_cv_cflags_gtk" |
abc736fd | 26258 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 26259 | |
d12aef51 VZ |
26260 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
26261 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
26262 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
26263 | /* confdefs.h. */ |
26264 | _ACEOF | |
26265 | cat confdefs.h >>conftest.$ac_ext | |
26266 | cat >>conftest.$ac_ext <<_ACEOF | |
26267 | /* end confdefs.h. */ | |
304205f1 | 26268 | |
d12aef51 | 26269 | #include <gtk/gtk.h> |
304205f1 | 26270 | |
d12aef51 VZ |
26271 | int |
26272 | main () | |
26273 | { | |
304205f1 | 26274 | |
d12aef51 | 26275 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
26276 | |
26277 | ; | |
26278 | return 0; | |
26279 | } | |
26280 | _ACEOF | |
26281 | rm -f conftest.$ac_objext | |
26282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26283 | (eval $ac_compile) 2>conftest.er1 | |
26284 | ac_status=$? | |
26285 | grep -v '^ *+' conftest.er1 >conftest.err | |
26286 | rm -f conftest.er1 | |
26287 | cat conftest.err >&5 | |
26288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26289 | (exit $ac_status); } && | |
6ebeb4c7 | 26290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
26291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26292 | (eval $ac_try) 2>&5 | |
26293 | ac_status=$? | |
26294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26295 | (exit $ac_status); }; } && | |
26296 | { ac_try='test -s conftest.$ac_objext' | |
26297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26298 | (eval $ac_try) 2>&5 | |
26299 | ac_status=$? | |
26300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26301 | (exit $ac_status); }; }; then | |
26302 | ||
26303 | echo "$as_me:$LINENO: result: no" >&5 | |
26304 | echo "${ECHO_T}no" >&6 | |
26305 | ||
26306 | else | |
26307 | echo "$as_me: failed program was:" >&5 | |
26308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26309 | ||
26310 | ||
26311 | cat >>confdefs.h <<\_ACEOF | |
26312 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
26313 | _ACEOF | |
26314 | ||
26315 | echo "$as_me:$LINENO: result: yes" >&5 | |
26316 | echo "${ECHO_T}yes" >&6 | |
26317 | ||
26318 | fi | |
26319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26320 | ||
9755e73b VS |
26321 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
26322 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
26323 | cat >conftest.$ac_ext <<_ACEOF | |
26324 | /* confdefs.h. */ | |
26325 | _ACEOF | |
26326 | cat confdefs.h >>conftest.$ac_ext | |
26327 | cat >>conftest.$ac_ext <<_ACEOF | |
26328 | /* end confdefs.h. */ | |
26329 | ||
26330 | #include <gtk/gtk.h> | |
26331 | ||
26332 | int | |
26333 | main () | |
26334 | { | |
26335 | ||
26336 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 26337 | Not GTK+ 2.4 |
9755e73b VS |
26338 | #endif |
26339 | ||
26340 | ; | |
26341 | return 0; | |
26342 | } | |
26343 | _ACEOF | |
26344 | rm -f conftest.$ac_objext | |
26345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26346 | (eval $ac_compile) 2>conftest.er1 | |
26347 | ac_status=$? | |
26348 | grep -v '^ *+' conftest.er1 >conftest.err | |
26349 | rm -f conftest.er1 | |
26350 | cat conftest.err >&5 | |
26351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26352 | (exit $ac_status); } && | |
6ebeb4c7 | 26353 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
26354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26355 | (eval $ac_try) 2>&5 | |
26356 | ac_status=$? | |
26357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26358 | (exit $ac_status); }; } && | |
26359 | { ac_try='test -s conftest.$ac_objext' | |
26360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26361 | (eval $ac_try) 2>&5 | |
26362 | ac_status=$? | |
26363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26364 | (exit $ac_status); }; }; then | |
26365 | ||
26366 | cat >>confdefs.h <<\_ACEOF | |
26367 | #define __WXGTK24__ 1 | |
26368 | _ACEOF | |
26369 | ||
26370 | echo "$as_me:$LINENO: result: yes" >&5 | |
26371 | echo "${ECHO_T}yes" >&6 | |
26372 | ||
26373 | else | |
26374 | echo "$as_me: failed program was:" >&5 | |
26375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26376 | ||
26377 | ||
26378 | echo "$as_me:$LINENO: result: no" >&5 | |
26379 | echo "${ECHO_T}no" >&6 | |
26380 | ||
26381 | fi | |
26382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26383 | ||
304205f1 VS |
26384 | CFLAGS="$save_CFLAGS" |
26385 | LIBS="$save_LIBS" | |
a848cd7e SC |
26386 | else |
26387 | if test "$wxUSE_UNICODE" = "yes"; then | |
26388 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
26389 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
26390 | wxUSE_UNICODE=no | |
26391 | fi | |
26392 | fi | |
26393 | ||
26394 | if test "$USE_DARWIN" != 1; then | |
26395 | ||
26396 | for ac_func in poll | |
26397 | do | |
26398 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26399 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26400 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26401 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26403 | else | |
26404 | cat >conftest.$ac_ext <<_ACEOF | |
26405 | /* confdefs.h. */ | |
26406 | _ACEOF | |
26407 | cat confdefs.h >>conftest.$ac_ext | |
26408 | cat >>conftest.$ac_ext <<_ACEOF | |
26409 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26410 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
26411 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26412 | #define $ac_func innocuous_$ac_func | |
26413 | ||
a848cd7e SC |
26414 | /* System header to define __stub macros and hopefully few prototypes, |
26415 | which can conflict with char $ac_func (); below. | |
26416 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26417 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26418 | |
a848cd7e SC |
26419 | #ifdef __STDC__ |
26420 | # include <limits.h> | |
26421 | #else | |
26422 | # include <assert.h> | |
26423 | #endif | |
ac1cb8d3 VS |
26424 | |
26425 | #undef $ac_func | |
26426 | ||
a848cd7e SC |
26427 | /* Override any gcc2 internal prototype to avoid an error. */ |
26428 | #ifdef __cplusplus | |
26429 | extern "C" | |
26430 | { | |
26431 | #endif | |
26432 | /* We use char because int might match the return type of a gcc2 | |
26433 | builtin and then its argument prototype would still apply. */ | |
26434 | char $ac_func (); | |
26435 | /* The GNU C library defines this for functions which it implements | |
26436 | to always fail with ENOSYS. Some functions are actually named | |
26437 | something starting with __ and the normal name is an alias. */ | |
26438 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26439 | choke me | |
26440 | #else | |
26441 | char (*f) () = $ac_func; | |
26442 | #endif | |
26443 | #ifdef __cplusplus | |
26444 | } | |
26445 | #endif | |
26446 | ||
26447 | int | |
26448 | main () | |
26449 | { | |
26450 | return f != $ac_func; | |
26451 | ; | |
26452 | return 0; | |
26453 | } | |
26454 | _ACEOF | |
26455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26457 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26458 | ac_status=$? |
ac1cb8d3 VS |
26459 | grep -v '^ *+' conftest.er1 >conftest.err |
26460 | rm -f conftest.er1 | |
26461 | cat conftest.err >&5 | |
a848cd7e SC |
26462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26463 | (exit $ac_status); } && | |
6ebeb4c7 | 26464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26466 | (eval $ac_try) 2>&5 | |
26467 | ac_status=$? | |
26468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26469 | (exit $ac_status); }; } && | |
26470 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26472 | (eval $ac_try) 2>&5 | |
26473 | ac_status=$? | |
26474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26475 | (exit $ac_status); }; }; then | |
26476 | eval "$as_ac_var=yes" | |
26477 | else | |
26478 | echo "$as_me: failed program was:" >&5 | |
26479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26480 | ||
26481 | eval "$as_ac_var=no" | |
26482 | fi | |
ac1cb8d3 VS |
26483 | rm -f conftest.err conftest.$ac_objext \ |
26484 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26485 | fi |
26486 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26487 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26488 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26489 | cat >>confdefs.h <<_ACEOF | |
26490 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26491 | _ACEOF | |
26492 | ||
26493 | fi | |
26494 | done | |
26495 | ||
26496 | fi | |
26497 | ||
26498 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
26499 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
26500 | ||
26501 | AFMINSTALL=afminstall | |
26502 | TOOLKIT=GTK | |
26503 | GUIDIST=GTK_DIST | |
26504 | ||
26505 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
26506 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
26507 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
26508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26509 | else | |
26510 | ac_check_lib_save_LIBS=$LIBS | |
26511 | LIBS="-lgdk $LIBS" | |
26512 | cat >conftest.$ac_ext <<_ACEOF | |
26513 | /* confdefs.h. */ | |
26514 | _ACEOF | |
26515 | cat confdefs.h >>conftest.$ac_ext | |
26516 | cat >>conftest.$ac_ext <<_ACEOF | |
26517 | /* end confdefs.h. */ | |
26518 | ||
26519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26520 | #ifdef __cplusplus | |
26521 | extern "C" | |
26522 | #endif | |
26523 | /* We use char because int might match the return type of a gcc2 | |
26524 | builtin and then its argument prototype would still apply. */ | |
26525 | char gdk_im_open (); | |
26526 | int | |
26527 | main () | |
26528 | { | |
26529 | gdk_im_open (); | |
26530 | ; | |
26531 | return 0; | |
26532 | } | |
26533 | _ACEOF | |
26534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26536 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26537 | ac_status=$? |
ac1cb8d3 VS |
26538 | grep -v '^ *+' conftest.er1 >conftest.err |
26539 | rm -f conftest.er1 | |
26540 | cat conftest.err >&5 | |
a848cd7e SC |
26541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26542 | (exit $ac_status); } && | |
6ebeb4c7 | 26543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26545 | (eval $ac_try) 2>&5 | |
26546 | ac_status=$? | |
26547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26548 | (exit $ac_status); }; } && | |
26549 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26551 | (eval $ac_try) 2>&5 | |
26552 | ac_status=$? | |
26553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26554 | (exit $ac_status); }; }; then | |
26555 | ac_cv_lib_gdk_gdk_im_open=yes | |
26556 | else | |
26557 | echo "$as_me: failed program was:" >&5 | |
26558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26559 | ||
26560 | ac_cv_lib_gdk_gdk_im_open=no | |
26561 | fi | |
ac1cb8d3 VS |
26562 | rm -f conftest.err conftest.$ac_objext \ |
26563 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26564 | LIBS=$ac_check_lib_save_LIBS |
26565 | fi | |
26566 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
26567 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
26568 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
26569 | cat >>confdefs.h <<\_ACEOF | |
26570 | #define HAVE_XIM 1 | |
26571 | _ACEOF | |
26572 | ||
26573 | fi | |
26574 | ||
26575 | ||
26576 | ||
26577 | if test "$wxUSE_GPE" = "yes"; then | |
26578 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
26579 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
26580 | ||
0ad5d837 VZ |
26581 | ac_find_libraries= |
26582 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 26583 | do |
3eca31dc | 26584 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
26585 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
26586 | ac_find_libraries=$ac_dir | |
26587 | break 2 | |
26588 | fi | |
26589 | done | |
26590 | done | |
26591 | ||
26592 | if test "$ac_find_libraries" != "" ; then | |
26593 | ||
0ad5d837 | 26594 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
26595 | ac_path_to_link="" |
26596 | else | |
0ad5d837 VZ |
26597 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
26598 | result=$? | |
26599 | if test $result = 0; then | |
26600 | ac_path_to_link="" | |
26601 | else | |
26602 | ac_path_to_link=" -L$ac_find_libraries" | |
26603 | fi | |
a848cd7e SC |
26604 | fi |
26605 | ||
26606 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
26607 | WXGPE=1 | |
0ad5d837 VZ |
26608 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
26609 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
26610 | else |
26611 | echo "$as_me:$LINENO: result: not found" >&5 | |
26612 | echo "${ECHO_T}not found" >&6 | |
26613 | fi | |
26614 | ||
26615 | fi | |
26616 | fi | |
26617 | ||
26618 | if test "$wxUSE_MGL" = 1; then | |
26619 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
26620 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
26621 | if test "x$MGL_ROOT" = x ; then | |
26622 | echo "$as_me:$LINENO: result: not found" >&5 | |
26623 | echo "${ECHO_T}not found" >&6 | |
26624 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
26625 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
26626 | { (exit 1); exit 1; }; } | |
26627 | else | |
26628 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
26629 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
26630 | fi | |
26631 | ||
26632 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
26633 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
26634 | case "${host}" in | |
26635 | *-*-linux* ) | |
26636 | if test "x$wxUSE_SHARED" = xyes ; then | |
26637 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
26638 | else | |
26639 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
26640 | fi | |
26641 | ;; | |
26642 | *-pc-msdosdjgpp ) | |
26643 | mgl_os_candidates="dos32/dj2" | |
26644 | ;; | |
26645 | *) | |
26646 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
26647 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
26648 | { (exit 1); exit 1; }; } | |
26649 | esac | |
26650 | ||
26651 | mgl_lib_type="" | |
26652 | mgl_os="" | |
26653 | ||
26654 | for mgl_os_i in $mgl_os_candidates ; do | |
26655 | if test "x$mgl_os" = x ; then | |
26656 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
26657 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
26658 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
26659 | mgl_lib_type=debug | |
26660 | mgl_os=$mgl_os_i | |
26661 | fi | |
26662 | fi | |
26663 | if test "x$mgl_lib_type" = x ; then | |
26664 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
26665 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
26666 | mgl_lib_type=release | |
26667 | mgl_os=$mgl_os_i | |
26668 | fi | |
26669 | fi | |
26670 | fi | |
26671 | done | |
26672 | ||
26673 | if test "x$mgl_os" = x ; then | |
26674 | echo "$as_me:$LINENO: result: not found" >&5 | |
26675 | echo "${ECHO_T}not found" >&6 | |
26676 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
26677 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
26678 | { (exit 1); exit 1; }; } | |
26679 | fi | |
26680 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
26681 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
26682 | ||
26683 | wxUSE_UNIVERSAL="yes" | |
26684 | ||
26685 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
26686 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
26687 | ||
26688 | AFMINSTALL=afminstall | |
26689 | TOOLKIT=MGL | |
26690 | GUIDIST=MGL_DIST | |
26691 | fi | |
26692 | ||
26693 | if test "$wxUSE_MICROWIN" = 1; then | |
26694 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
26695 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
26696 | if test "x$MICROWINDOWS" = x ; then | |
26697 | echo "$as_me:$LINENO: result: not found" >&5 | |
26698 | echo "${ECHO_T}not found" >&6 | |
26699 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
26700 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
26701 | { (exit 1); exit 1; }; } | |
26702 | else | |
26703 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
26704 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
26705 | fi | |
26706 | ||
26707 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
26708 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
26709 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
26710 | else | |
26711 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
26712 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
26713 | { (exit 1); exit 1; }; } | |
26714 | fi | |
26715 | ||
26716 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
26717 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
26718 | ||
26719 | wxUSE_UNIVERSAL="yes" | |
26720 | ||
26721 | AFMINSTALL=afminstall | |
26722 | TOOLKIT=MICROWIN | |
26723 | GUIDIST=MICROWIN_DIST | |
26724 | ||
26725 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
26726 | fi | |
26727 | ||
74b84332 | 26728 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
6ebeb4c7 VZ |
26729 | |
26730 | if test "x$ac_path_x_has_been_run" != xyes; then | |
26731 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
26732 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
26733 | ||
6ebeb4c7 | 26734 | ac_path_x_has_been_run=yes |
a848cd7e SC |
26735 | |
26736 | # Check whether --with-x or --without-x was given. | |
26737 | if test "${with_x+set}" = set; then | |
26738 | withval="$with_x" | |
26739 | ||
26740 | fi; | |
26741 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
26742 | if test "x$with_x" = xno; then | |
26743 | # The user explicitly disabled X. | |
26744 | have_x=disabled | |
26745 | else | |
26746 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
26747 | # Both variables are already set. | |
26748 | have_x=yes | |
26749 | else | |
26750 | if test "${ac_cv_have_x+set}" = set; then | |
26751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26752 | else | |
26753 | # One or both of the vars are not set, and there is no cached value. | |
26754 | ac_x_includes=no ac_x_libraries=no | |
26755 | rm -fr conftest.dir | |
26756 | if mkdir conftest.dir; then | |
26757 | cd conftest.dir | |
26758 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
26759 | cat >Imakefile <<'_ACEOF' | |
26760 | acfindx: | |
26761 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
26762 | _ACEOF | |
26763 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
26764 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
26765 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
26766 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
26767 | for ac_extension in a so sl; do | |
26768 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
26769 | test -f $ac_im_libdir/libX11.$ac_extension; then |
26770 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
26771 | fi |
26772 | done | |
26773 | # Screen out bogus values from the imake configuration. They are | |
26774 | # bogus both because they are the default anyway, and because | |
26775 | # using them would break gcc on systems where it needs fixed includes. | |
26776 | case $ac_im_incroot in | |
26777 | /usr/include) ;; | |
26778 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
26779 | esac | |
26780 | case $ac_im_usrlibdir in | |
26781 | /usr/lib | /lib) ;; | |
26782 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
26783 | esac | |
26784 | fi | |
26785 | cd .. | |
26786 | rm -fr conftest.dir | |
26787 | fi | |
26788 | ||
26789 | # Standard set of common directories for X headers. | |
26790 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
26791 | ac_x_header_dirs=' | |
26792 | /usr/X11/include | |
26793 | /usr/X11R6/include | |
26794 | /usr/X11R5/include | |
26795 | /usr/X11R4/include | |
26796 | ||
26797 | /usr/include/X11 | |
26798 | /usr/include/X11R6 | |
26799 | /usr/include/X11R5 | |
26800 | /usr/include/X11R4 | |
26801 | ||
26802 | /usr/local/X11/include | |
26803 | /usr/local/X11R6/include | |
26804 | /usr/local/X11R5/include | |
26805 | /usr/local/X11R4/include | |
26806 | ||
26807 | /usr/local/include/X11 | |
26808 | /usr/local/include/X11R6 | |
26809 | /usr/local/include/X11R5 | |
26810 | /usr/local/include/X11R4 | |
26811 | ||
26812 | /usr/X386/include | |
26813 | /usr/x386/include | |
26814 | /usr/XFree86/include/X11 | |
26815 | ||
26816 | /usr/include | |
26817 | /usr/local/include | |
26818 | /usr/unsupported/include | |
26819 | /usr/athena/include | |
26820 | /usr/local/x11r5/include | |
26821 | /usr/lpp/Xamples/include | |
26822 | ||
26823 | /usr/openwin/include | |
26824 | /usr/openwin/share/include' | |
26825 | ||
26826 | if test "$ac_x_includes" = no; then | |
6ebeb4c7 | 26827 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
26828 | # First, try using that file with no special directory specified. |
26829 | cat >conftest.$ac_ext <<_ACEOF | |
26830 | /* confdefs.h. */ | |
26831 | _ACEOF | |
26832 | cat confdefs.h >>conftest.$ac_ext | |
26833 | cat >>conftest.$ac_ext <<_ACEOF | |
26834 | /* end confdefs.h. */ | |
26835 | #include <X11/Intrinsic.h> | |
26836 | _ACEOF | |
26837 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26838 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26839 | ac_status=$? | |
26840 | grep -v '^ *+' conftest.er1 >conftest.err | |
26841 | rm -f conftest.er1 | |
26842 | cat conftest.err >&5 | |
26843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26844 | (exit $ac_status); } >/dev/null; then | |
26845 | if test -s conftest.err; then | |
26846 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26847 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26848 | else |
26849 | ac_cpp_err= | |
26850 | fi | |
26851 | else | |
26852 | ac_cpp_err=yes | |
26853 | fi | |
26854 | if test -z "$ac_cpp_err"; then | |
26855 | # We can compile using X headers with no special include directory. | |
26856 | ac_x_includes= | |
26857 | else | |
26858 | echo "$as_me: failed program was:" >&5 | |
26859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26860 | ||
26861 | for ac_dir in $ac_x_header_dirs; do | |
26862 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
26863 | ac_x_includes=$ac_dir | |
26864 | break | |
26865 | fi | |
26866 | done | |
26867 | fi | |
26868 | rm -f conftest.err conftest.$ac_ext | |
26869 | fi # $ac_x_includes = no | |
26870 | ||
26871 | if test "$ac_x_libraries" = no; then | |
26872 | # Check for the libraries. | |
26873 | # See if we find them without any special options. | |
26874 | # Don't add to $LIBS permanently. | |
26875 | ac_save_LIBS=$LIBS | |
26876 | LIBS="-lXt $LIBS" | |
26877 | cat >conftest.$ac_ext <<_ACEOF | |
26878 | /* confdefs.h. */ | |
26879 | _ACEOF | |
26880 | cat confdefs.h >>conftest.$ac_ext | |
26881 | cat >>conftest.$ac_ext <<_ACEOF | |
26882 | /* end confdefs.h. */ | |
26883 | #include <X11/Intrinsic.h> | |
26884 | int | |
26885 | main () | |
26886 | { | |
26887 | XtMalloc (0) | |
26888 | ; | |
26889 | return 0; | |
26890 | } | |
26891 | _ACEOF | |
26892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26894 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26895 | ac_status=$? |
ac1cb8d3 VS |
26896 | grep -v '^ *+' conftest.er1 >conftest.err |
26897 | rm -f conftest.er1 | |
26898 | cat conftest.err >&5 | |
a848cd7e SC |
26899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26900 | (exit $ac_status); } && | |
6ebeb4c7 | 26901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26903 | (eval $ac_try) 2>&5 | |
26904 | ac_status=$? | |
26905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26906 | (exit $ac_status); }; } && | |
26907 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26909 | (eval $ac_try) 2>&5 | |
26910 | ac_status=$? | |
26911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26912 | (exit $ac_status); }; }; then | |
26913 | LIBS=$ac_save_LIBS | |
26914 | # We can link X programs with no special library path. | |
26915 | ac_x_libraries= | |
26916 | else | |
26917 | echo "$as_me: failed program was:" >&5 | |
26918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26919 | ||
26920 | LIBS=$ac_save_LIBS | |
26921 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
26922 | do | |
26923 | # Don't even attempt the hair of trying to link an X program! | |
26924 | for ac_extension in a so sl; do | |
26925 | if test -r $ac_dir/libXt.$ac_extension; then | |
26926 | ac_x_libraries=$ac_dir | |
26927 | break 2 | |
26928 | fi | |
26929 | done | |
26930 | done | |
26931 | fi | |
ac1cb8d3 VS |
26932 | rm -f conftest.err conftest.$ac_objext \ |
26933 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26934 | fi # $ac_x_libraries = no |
26935 | ||
26936 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
26937 | # Didn't find X anywhere. Cache the known absence of X. | |
26938 | ac_cv_have_x="have_x=no" | |
26939 | else | |
26940 | # Record where we found X for the cache. | |
26941 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 26942 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
26943 | fi |
26944 | fi | |
26945 | ||
26946 | fi | |
26947 | eval "$ac_cv_have_x" | |
26948 | fi # $with_x != no | |
26949 | ||
26950 | if test "$have_x" != yes; then | |
26951 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
26952 | echo "${ECHO_T}$have_x" >&6 | |
26953 | no_x=yes | |
26954 | else | |
26955 | # If each of the values was on the command line, it overrides each guess. | |
26956 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
26957 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
26958 | # Update the cache value to reflect the command line values. | |
26959 | ac_cv_have_x="have_x=yes \ | |
26960 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
6ebeb4c7 VZ |
26961 | # It might be that x_includes is empty (headers are found in the |
26962 | # standard search path. Then output the corresponding message | |
26963 | ac_out_x_includes=$x_includes | |
26964 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
26965 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
26966 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
26967 | fi |
26968 | ||
6ebeb4c7 | 26969 | fi |
a848cd7e SC |
26970 | if test "$no_x" = yes; then |
26971 | # Not all programs may use this symbol, but it does not hurt to define it. | |
26972 | ||
26973 | cat >>confdefs.h <<\_ACEOF | |
26974 | #define X_DISPLAY_MISSING 1 | |
26975 | _ACEOF | |
26976 | ||
26977 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
26978 | else | |
26979 | if test -n "$x_includes"; then | |
26980 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
26981 | fi | |
26982 | ||
26983 | # It would also be nice to do this for all -L options, not just this one. | |
26984 | if test -n "$x_libraries"; then | |
26985 | X_LIBS="$X_LIBS -L$x_libraries" | |
26986 | # For Solaris; some versions of Sun CC require a space after -R and | |
26987 | # others require no space. Words are not sufficient . . . . | |
26988 | case `(uname -sr) 2>/dev/null` in | |
26989 | "SunOS 5"*) | |
26990 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
26991 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
26992 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
26993 | cat >conftest.$ac_ext <<_ACEOF | |
26994 | /* confdefs.h. */ | |
26995 | _ACEOF | |
26996 | cat confdefs.h >>conftest.$ac_ext | |
26997 | cat >>conftest.$ac_ext <<_ACEOF | |
26998 | /* end confdefs.h. */ | |
26999 | ||
27000 | int | |
27001 | main () | |
27002 | { | |
27003 | ||
27004 | ; | |
27005 | return 0; | |
27006 | } | |
27007 | _ACEOF | |
27008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27010 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27011 | ac_status=$? |
ac1cb8d3 VS |
27012 | grep -v '^ *+' conftest.er1 >conftest.err |
27013 | rm -f conftest.er1 | |
27014 | cat conftest.err >&5 | |
a848cd7e SC |
27015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27016 | (exit $ac_status); } && | |
6ebeb4c7 | 27017 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27019 | (eval $ac_try) 2>&5 | |
27020 | ac_status=$? | |
27021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27022 | (exit $ac_status); }; } && | |
27023 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27025 | (eval $ac_try) 2>&5 | |
27026 | ac_status=$? | |
27027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27028 | (exit $ac_status); }; }; then | |
27029 | ac_R_nospace=yes | |
27030 | else | |
27031 | echo "$as_me: failed program was:" >&5 | |
27032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27033 | ||
27034 | ac_R_nospace=no | |
27035 | fi | |
ac1cb8d3 VS |
27036 | rm -f conftest.err conftest.$ac_objext \ |
27037 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27038 | if test $ac_R_nospace = yes; then |
27039 | echo "$as_me:$LINENO: result: no" >&5 | |
27040 | echo "${ECHO_T}no" >&6 | |
27041 | X_LIBS="$X_LIBS -R$x_libraries" | |
27042 | else | |
27043 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
27044 | cat >conftest.$ac_ext <<_ACEOF | |
27045 | /* confdefs.h. */ | |
27046 | _ACEOF | |
27047 | cat confdefs.h >>conftest.$ac_ext | |
27048 | cat >>conftest.$ac_ext <<_ACEOF | |
27049 | /* end confdefs.h. */ | |
27050 | ||
27051 | int | |
27052 | main () | |
27053 | { | |
27054 | ||
27055 | ; | |
27056 | return 0; | |
27057 | } | |
27058 | _ACEOF | |
27059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27061 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27062 | ac_status=$? |
ac1cb8d3 VS |
27063 | grep -v '^ *+' conftest.er1 >conftest.err |
27064 | rm -f conftest.er1 | |
27065 | cat conftest.err >&5 | |
a848cd7e SC |
27066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27067 | (exit $ac_status); } && | |
6ebeb4c7 | 27068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27070 | (eval $ac_try) 2>&5 | |
27071 | ac_status=$? | |
27072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27073 | (exit $ac_status); }; } && | |
27074 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27076 | (eval $ac_try) 2>&5 | |
27077 | ac_status=$? | |
27078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27079 | (exit $ac_status); }; }; then | |
27080 | ac_R_space=yes | |
27081 | else | |
27082 | echo "$as_me: failed program was:" >&5 | |
27083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27084 | ||
27085 | ac_R_space=no | |
27086 | fi | |
ac1cb8d3 VS |
27087 | rm -f conftest.err conftest.$ac_objext \ |
27088 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27089 | if test $ac_R_space = yes; then |
27090 | echo "$as_me:$LINENO: result: yes" >&5 | |
27091 | echo "${ECHO_T}yes" >&6 | |
27092 | X_LIBS="$X_LIBS -R $x_libraries" | |
27093 | else | |
27094 | echo "$as_me:$LINENO: result: neither works" >&5 | |
27095 | echo "${ECHO_T}neither works" >&6 | |
27096 | fi | |
27097 | fi | |
27098 | LIBS=$ac_xsave_LIBS | |
27099 | esac | |
27100 | fi | |
27101 | ||
27102 | # Check for system-dependent libraries X programs must link with. | |
27103 | # Do this before checking for the system-independent R6 libraries | |
27104 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
27105 | ||
27106 | if test "$ISC" = yes; then | |
27107 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
27108 | else | |
27109 | # Martyn Johnson says this is needed for Ultrix, if the X | |
27110 | # libraries were built with DECnet support. And Karl Berry says | |
27111 | # the Alpha needs dnet_stub (dnet does not exist). | |
27112 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
27113 | cat >conftest.$ac_ext <<_ACEOF | |
27114 | /* confdefs.h. */ | |
27115 | _ACEOF | |
27116 | cat confdefs.h >>conftest.$ac_ext | |
27117 | cat >>conftest.$ac_ext <<_ACEOF | |
27118 | /* end confdefs.h. */ | |
27119 | ||
27120 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27121 | #ifdef __cplusplus | |
27122 | extern "C" | |
27123 | #endif | |
27124 | /* We use char because int might match the return type of a gcc2 | |
27125 | builtin and then its argument prototype would still apply. */ | |
27126 | char XOpenDisplay (); | |
27127 | int | |
27128 | main () | |
27129 | { | |
27130 | XOpenDisplay (); | |
27131 | ; | |
27132 | return 0; | |
27133 | } | |
27134 | _ACEOF | |
27135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27137 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27138 | ac_status=$? |
ac1cb8d3 VS |
27139 | grep -v '^ *+' conftest.er1 >conftest.err |
27140 | rm -f conftest.er1 | |
27141 | cat conftest.err >&5 | |
a848cd7e SC |
27142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27143 | (exit $ac_status); } && | |
6ebeb4c7 | 27144 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27146 | (eval $ac_try) 2>&5 | |
27147 | ac_status=$? | |
27148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27149 | (exit $ac_status); }; } && | |
27150 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27152 | (eval $ac_try) 2>&5 | |
27153 | ac_status=$? | |
27154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27155 | (exit $ac_status); }; }; then | |
27156 | : | |
27157 | else | |
27158 | echo "$as_me: failed program was:" >&5 | |
27159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27160 | ||
27161 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
27162 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
27163 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
27164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27165 | else | |
27166 | ac_check_lib_save_LIBS=$LIBS | |
27167 | LIBS="-ldnet $LIBS" | |
27168 | cat >conftest.$ac_ext <<_ACEOF | |
27169 | /* confdefs.h. */ | |
27170 | _ACEOF | |
27171 | cat confdefs.h >>conftest.$ac_ext | |
27172 | cat >>conftest.$ac_ext <<_ACEOF | |
27173 | /* end confdefs.h. */ | |
27174 | ||
27175 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27176 | #ifdef __cplusplus | |
27177 | extern "C" | |
27178 | #endif | |
27179 | /* We use char because int might match the return type of a gcc2 | |
27180 | builtin and then its argument prototype would still apply. */ | |
27181 | char dnet_ntoa (); | |
27182 | int | |
27183 | main () | |
27184 | { | |
27185 | dnet_ntoa (); | |
27186 | ; | |
27187 | return 0; | |
27188 | } | |
27189 | _ACEOF | |
27190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27192 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27193 | ac_status=$? |
ac1cb8d3 VS |
27194 | grep -v '^ *+' conftest.er1 >conftest.err |
27195 | rm -f conftest.er1 | |
27196 | cat conftest.err >&5 | |
a848cd7e SC |
27197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27198 | (exit $ac_status); } && | |
6ebeb4c7 | 27199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27201 | (eval $ac_try) 2>&5 | |
27202 | ac_status=$? | |
27203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27204 | (exit $ac_status); }; } && | |
27205 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27207 | (eval $ac_try) 2>&5 | |
27208 | ac_status=$? | |
27209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27210 | (exit $ac_status); }; }; then | |
27211 | ac_cv_lib_dnet_dnet_ntoa=yes | |
27212 | else | |
27213 | echo "$as_me: failed program was:" >&5 | |
27214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27215 | ||
27216 | ac_cv_lib_dnet_dnet_ntoa=no | |
27217 | fi | |
ac1cb8d3 VS |
27218 | rm -f conftest.err conftest.$ac_objext \ |
27219 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27220 | LIBS=$ac_check_lib_save_LIBS |
27221 | fi | |
27222 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
27223 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
27224 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
27225 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
27226 | fi | |
27227 | ||
27228 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
27229 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
27230 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
27231 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
27232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27233 | else | |
27234 | ac_check_lib_save_LIBS=$LIBS | |
27235 | LIBS="-ldnet_stub $LIBS" | |
27236 | cat >conftest.$ac_ext <<_ACEOF | |
27237 | /* confdefs.h. */ | |
27238 | _ACEOF | |
27239 | cat confdefs.h >>conftest.$ac_ext | |
27240 | cat >>conftest.$ac_ext <<_ACEOF | |
27241 | /* end confdefs.h. */ | |
27242 | ||
27243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27244 | #ifdef __cplusplus | |
27245 | extern "C" | |
27246 | #endif | |
27247 | /* We use char because int might match the return type of a gcc2 | |
27248 | builtin and then its argument prototype would still apply. */ | |
27249 | char dnet_ntoa (); | |
27250 | int | |
27251 | main () | |
27252 | { | |
27253 | dnet_ntoa (); | |
27254 | ; | |
27255 | return 0; | |
27256 | } | |
27257 | _ACEOF | |
27258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27260 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27261 | ac_status=$? |
ac1cb8d3 VS |
27262 | grep -v '^ *+' conftest.er1 >conftest.err |
27263 | rm -f conftest.er1 | |
27264 | cat conftest.err >&5 | |
a848cd7e SC |
27265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27266 | (exit $ac_status); } && | |
6ebeb4c7 | 27267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27269 | (eval $ac_try) 2>&5 | |
27270 | ac_status=$? | |
27271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27272 | (exit $ac_status); }; } && | |
27273 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27275 | (eval $ac_try) 2>&5 | |
27276 | ac_status=$? | |
27277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27278 | (exit $ac_status); }; }; then | |
27279 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
27280 | else | |
27281 | echo "$as_me: failed program was:" >&5 | |
27282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27283 | ||
27284 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
27285 | fi | |
ac1cb8d3 VS |
27286 | rm -f conftest.err conftest.$ac_objext \ |
27287 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27288 | LIBS=$ac_check_lib_save_LIBS |
27289 | fi | |
27290 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
27291 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
27292 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
27293 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
27294 | fi | |
27295 | ||
27296 | fi | |
27297 | fi | |
ac1cb8d3 VS |
27298 | rm -f conftest.err conftest.$ac_objext \ |
27299 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27300 | LIBS="$ac_xsave_LIBS" |
27301 | ||
27302 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
27303 | # to get the SysV transport functions. | |
27304 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
27305 | # needs -lnsl. | |
27306 | # The nsl library prevents programs from opening the X display | |
27307 | # on Irix 5.2, according to T.E. Dickey. | |
27308 | # The functions gethostbyname, getservbyname, and inet_addr are | |
27309 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
27310 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
27311 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
27312 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
27313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27314 | else | |
27315 | cat >conftest.$ac_ext <<_ACEOF | |
27316 | /* confdefs.h. */ | |
27317 | _ACEOF | |
27318 | cat confdefs.h >>conftest.$ac_ext | |
27319 | cat >>conftest.$ac_ext <<_ACEOF | |
27320 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27321 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
27322 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27323 | #define gethostbyname innocuous_gethostbyname | |
27324 | ||
a848cd7e SC |
27325 | /* System header to define __stub macros and hopefully few prototypes, |
27326 | which can conflict with char gethostbyname (); below. | |
27327 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27328 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27329 | |
a848cd7e SC |
27330 | #ifdef __STDC__ |
27331 | # include <limits.h> | |
27332 | #else | |
27333 | # include <assert.h> | |
27334 | #endif | |
ac1cb8d3 VS |
27335 | |
27336 | #undef gethostbyname | |
27337 | ||
a848cd7e SC |
27338 | /* Override any gcc2 internal prototype to avoid an error. */ |
27339 | #ifdef __cplusplus | |
27340 | extern "C" | |
27341 | { | |
27342 | #endif | |
27343 | /* We use char because int might match the return type of a gcc2 | |
27344 | builtin and then its argument prototype would still apply. */ | |
27345 | char gethostbyname (); | |
27346 | /* The GNU C library defines this for functions which it implements | |
27347 | to always fail with ENOSYS. Some functions are actually named | |
27348 | something starting with __ and the normal name is an alias. */ | |
27349 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
27350 | choke me | |
27351 | #else | |
27352 | char (*f) () = gethostbyname; | |
27353 | #endif | |
27354 | #ifdef __cplusplus | |
27355 | } | |
27356 | #endif | |
27357 | ||
27358 | int | |
27359 | main () | |
27360 | { | |
27361 | return f != gethostbyname; | |
27362 | ; | |
27363 | return 0; | |
27364 | } | |
27365 | _ACEOF | |
27366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27368 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27369 | ac_status=$? |
ac1cb8d3 VS |
27370 | grep -v '^ *+' conftest.er1 >conftest.err |
27371 | rm -f conftest.er1 | |
27372 | cat conftest.err >&5 | |
a848cd7e SC |
27373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27374 | (exit $ac_status); } && | |
6ebeb4c7 | 27375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27377 | (eval $ac_try) 2>&5 | |
27378 | ac_status=$? | |
27379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27380 | (exit $ac_status); }; } && | |
27381 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27383 | (eval $ac_try) 2>&5 | |
27384 | ac_status=$? | |
27385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27386 | (exit $ac_status); }; }; then | |
27387 | ac_cv_func_gethostbyname=yes | |
27388 | else | |
27389 | echo "$as_me: failed program was:" >&5 | |
27390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27391 | ||
27392 | ac_cv_func_gethostbyname=no | |
27393 | fi | |
ac1cb8d3 VS |
27394 | rm -f conftest.err conftest.$ac_objext \ |
27395 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27396 | fi |
27397 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
27398 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
27399 | ||
27400 | if test $ac_cv_func_gethostbyname = no; then | |
27401 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
27402 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
27403 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
27404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27405 | else | |
27406 | ac_check_lib_save_LIBS=$LIBS | |
27407 | LIBS="-lnsl $LIBS" | |
27408 | cat >conftest.$ac_ext <<_ACEOF | |
27409 | /* confdefs.h. */ | |
27410 | _ACEOF | |
27411 | cat confdefs.h >>conftest.$ac_ext | |
27412 | cat >>conftest.$ac_ext <<_ACEOF | |
27413 | /* end confdefs.h. */ | |
27414 | ||
27415 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27416 | #ifdef __cplusplus | |
27417 | extern "C" | |
27418 | #endif | |
27419 | /* We use char because int might match the return type of a gcc2 | |
27420 | builtin and then its argument prototype would still apply. */ | |
27421 | char gethostbyname (); | |
27422 | int | |
27423 | main () | |
27424 | { | |
27425 | gethostbyname (); | |
27426 | ; | |
27427 | return 0; | |
27428 | } | |
27429 | _ACEOF | |
27430 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
27432 | (eval $ac_link) 2>conftest.er1 |
27433 | ac_status=$? | |
27434 | grep -v '^ *+' conftest.er1 >conftest.err | |
27435 | rm -f conftest.er1 | |
27436 | cat conftest.err >&5 | |
27437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27438 | (exit $ac_status); } && | |
6ebeb4c7 | 27439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27441 | (eval $ac_try) 2>&5 | |
27442 | ac_status=$? | |
27443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27444 | (exit $ac_status); }; } && | |
27445 | { ac_try='test -s conftest$ac_exeext' | |
27446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27447 | (eval $ac_try) 2>&5 | |
27448 | ac_status=$? | |
27449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27450 | (exit $ac_status); }; }; then | |
27451 | ac_cv_lib_nsl_gethostbyname=yes | |
27452 | else | |
27453 | echo "$as_me: failed program was:" >&5 | |
27454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27455 | ||
27456 | ac_cv_lib_nsl_gethostbyname=no | |
27457 | fi | |
27458 | rm -f conftest.err conftest.$ac_objext \ | |
27459 | conftest$ac_exeext conftest.$ac_ext | |
27460 | LIBS=$ac_check_lib_save_LIBS | |
27461 | fi | |
27462 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
27463 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
27464 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
27465 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
27466 | fi | |
27467 | ||
27468 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
27469 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
27470 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
27471 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
27472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27473 | else | |
27474 | ac_check_lib_save_LIBS=$LIBS | |
27475 | LIBS="-lbsd $LIBS" | |
27476 | cat >conftest.$ac_ext <<_ACEOF | |
27477 | /* confdefs.h. */ | |
27478 | _ACEOF | |
27479 | cat confdefs.h >>conftest.$ac_ext | |
27480 | cat >>conftest.$ac_ext <<_ACEOF | |
27481 | /* end confdefs.h. */ | |
27482 | ||
27483 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27484 | #ifdef __cplusplus | |
27485 | extern "C" | |
27486 | #endif | |
27487 | /* We use char because int might match the return type of a gcc2 | |
27488 | builtin and then its argument prototype would still apply. */ | |
27489 | char gethostbyname (); | |
27490 | int | |
27491 | main () | |
27492 | { | |
27493 | gethostbyname (); | |
27494 | ; | |
27495 | return 0; | |
27496 | } | |
27497 | _ACEOF | |
27498 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27500 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 27501 | ac_status=$? |
ac1cb8d3 VS |
27502 | grep -v '^ *+' conftest.er1 >conftest.err |
27503 | rm -f conftest.er1 | |
27504 | cat conftest.err >&5 | |
a848cd7e SC |
27505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27506 | (exit $ac_status); } && | |
6ebeb4c7 | 27507 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
27508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27509 | (eval $ac_try) 2>&5 | |
27510 | ac_status=$? | |
27511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
27512 | (exit $ac_status); }; } && |
27513 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27515 | (eval $ac_try) 2>&5 | |
27516 | ac_status=$? | |
27517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27518 | (exit $ac_status); }; }; then | |
27519 | ac_cv_lib_bsd_gethostbyname=yes | |
27520 | else | |
27521 | echo "$as_me: failed program was:" >&5 | |
27522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27523 | ||
27524 | ac_cv_lib_bsd_gethostbyname=no | |
27525 | fi | |
ac1cb8d3 VS |
27526 | rm -f conftest.err conftest.$ac_objext \ |
27527 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27528 | LIBS=$ac_check_lib_save_LIBS |
27529 | fi | |
27530 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
27531 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
27532 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
27533 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
27534 | fi | |
27535 | ||
27536 | fi | |
27537 | fi | |
27538 | ||
27539 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
27540 | # socket/setsockopt and other routines are undefined under SCO ODT | |
27541 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
27542 | # on later versions), says Simon Leinen: it contains gethostby* | |
27543 | # variants that don't use the name server (or something). -lsocket | |
27544 | # must be given before -lnsl if both are needed. We assume that | |
27545 | # if connect needs -lnsl, so does gethostbyname. | |
27546 | echo "$as_me:$LINENO: checking for connect" >&5 | |
27547 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
27548 | if test "${ac_cv_func_connect+set}" = set; then | |
27549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27550 | else | |
27551 | cat >conftest.$ac_ext <<_ACEOF | |
27552 | /* confdefs.h. */ | |
27553 | _ACEOF | |
27554 | cat confdefs.h >>conftest.$ac_ext | |
27555 | cat >>conftest.$ac_ext <<_ACEOF | |
27556 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27557 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
27558 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27559 | #define connect innocuous_connect | |
27560 | ||
a848cd7e SC |
27561 | /* System header to define __stub macros and hopefully few prototypes, |
27562 | which can conflict with char connect (); below. | |
27563 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27564 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27565 | |
a848cd7e SC |
27566 | #ifdef __STDC__ |
27567 | # include <limits.h> | |
27568 | #else | |
27569 | # include <assert.h> | |
27570 | #endif | |
ac1cb8d3 VS |
27571 | |
27572 | #undef connect | |
27573 | ||
a848cd7e SC |
27574 | /* Override any gcc2 internal prototype to avoid an error. */ |
27575 | #ifdef __cplusplus | |
27576 | extern "C" | |
27577 | { | |
27578 | #endif | |
27579 | /* We use char because int might match the return type of a gcc2 | |
27580 | builtin and then its argument prototype would still apply. */ | |
27581 | char connect (); | |
27582 | /* The GNU C library defines this for functions which it implements | |
27583 | to always fail with ENOSYS. Some functions are actually named | |
27584 | something starting with __ and the normal name is an alias. */ | |
27585 | #if defined (__stub_connect) || defined (__stub___connect) | |
27586 | choke me | |
27587 | #else | |
27588 | char (*f) () = connect; | |
27589 | #endif | |
27590 | #ifdef __cplusplus | |
27591 | } | |
27592 | #endif | |
27593 | ||
27594 | int | |
27595 | main () | |
27596 | { | |
27597 | return f != connect; | |
27598 | ; | |
27599 | return 0; | |
27600 | } | |
27601 | _ACEOF | |
27602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27604 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27605 | ac_status=$? |
ac1cb8d3 VS |
27606 | grep -v '^ *+' conftest.er1 >conftest.err |
27607 | rm -f conftest.er1 | |
27608 | cat conftest.err >&5 | |
a848cd7e SC |
27609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27610 | (exit $ac_status); } && | |
6ebeb4c7 | 27611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27613 | (eval $ac_try) 2>&5 | |
27614 | ac_status=$? | |
27615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27616 | (exit $ac_status); }; } && | |
27617 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27619 | (eval $ac_try) 2>&5 | |
27620 | ac_status=$? | |
27621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27622 | (exit $ac_status); }; }; then | |
27623 | ac_cv_func_connect=yes | |
27624 | else | |
27625 | echo "$as_me: failed program was:" >&5 | |
27626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27627 | ||
27628 | ac_cv_func_connect=no | |
27629 | fi | |
ac1cb8d3 VS |
27630 | rm -f conftest.err conftest.$ac_objext \ |
27631 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27632 | fi |
27633 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
27634 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
27635 | ||
27636 | if test $ac_cv_func_connect = no; then | |
27637 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
27638 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
27639 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
27640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27641 | else | |
27642 | ac_check_lib_save_LIBS=$LIBS | |
27643 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
27644 | cat >conftest.$ac_ext <<_ACEOF | |
27645 | /* confdefs.h. */ | |
27646 | _ACEOF | |
27647 | cat confdefs.h >>conftest.$ac_ext | |
27648 | cat >>conftest.$ac_ext <<_ACEOF | |
27649 | /* end confdefs.h. */ | |
27650 | ||
27651 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27652 | #ifdef __cplusplus | |
27653 | extern "C" | |
27654 | #endif | |
27655 | /* We use char because int might match the return type of a gcc2 | |
27656 | builtin and then its argument prototype would still apply. */ | |
27657 | char connect (); | |
27658 | int | |
27659 | main () | |
27660 | { | |
27661 | connect (); | |
27662 | ; | |
27663 | return 0; | |
27664 | } | |
27665 | _ACEOF | |
27666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27668 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27669 | ac_status=$? |
ac1cb8d3 VS |
27670 | grep -v '^ *+' conftest.er1 >conftest.err |
27671 | rm -f conftest.er1 | |
27672 | cat conftest.err >&5 | |
a848cd7e SC |
27673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27674 | (exit $ac_status); } && | |
6ebeb4c7 | 27675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27677 | (eval $ac_try) 2>&5 | |
27678 | ac_status=$? | |
27679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27680 | (exit $ac_status); }; } && | |
27681 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27683 | (eval $ac_try) 2>&5 | |
27684 | ac_status=$? | |
27685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27686 | (exit $ac_status); }; }; then | |
27687 | ac_cv_lib_socket_connect=yes | |
27688 | else | |
27689 | echo "$as_me: failed program was:" >&5 | |
27690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27691 | ||
27692 | ac_cv_lib_socket_connect=no | |
27693 | fi | |
ac1cb8d3 VS |
27694 | rm -f conftest.err conftest.$ac_objext \ |
27695 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27696 | LIBS=$ac_check_lib_save_LIBS |
27697 | fi | |
27698 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
27699 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
27700 | if test $ac_cv_lib_socket_connect = yes; then | |
27701 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
27702 | fi | |
27703 | ||
27704 | fi | |
27705 | ||
27706 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
27707 | echo "$as_me:$LINENO: checking for remove" >&5 | |
27708 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
27709 | if test "${ac_cv_func_remove+set}" = set; then | |
27710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27711 | else | |
27712 | cat >conftest.$ac_ext <<_ACEOF | |
27713 | /* confdefs.h. */ | |
27714 | _ACEOF | |
27715 | cat confdefs.h >>conftest.$ac_ext | |
27716 | cat >>conftest.$ac_ext <<_ACEOF | |
27717 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27718 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
27719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27720 | #define remove innocuous_remove | |
27721 | ||
a848cd7e SC |
27722 | /* System header to define __stub macros and hopefully few prototypes, |
27723 | which can conflict with char remove (); below. | |
27724 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27725 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27726 | |
a848cd7e SC |
27727 | #ifdef __STDC__ |
27728 | # include <limits.h> | |
27729 | #else | |
27730 | # include <assert.h> | |
27731 | #endif | |
ac1cb8d3 VS |
27732 | |
27733 | #undef remove | |
27734 | ||
a848cd7e SC |
27735 | /* Override any gcc2 internal prototype to avoid an error. */ |
27736 | #ifdef __cplusplus | |
27737 | extern "C" | |
27738 | { | |
27739 | #endif | |
27740 | /* We use char because int might match the return type of a gcc2 | |
27741 | builtin and then its argument prototype would still apply. */ | |
27742 | char remove (); | |
27743 | /* The GNU C library defines this for functions which it implements | |
27744 | to always fail with ENOSYS. Some functions are actually named | |
27745 | something starting with __ and the normal name is an alias. */ | |
27746 | #if defined (__stub_remove) || defined (__stub___remove) | |
27747 | choke me | |
27748 | #else | |
27749 | char (*f) () = remove; | |
27750 | #endif | |
27751 | #ifdef __cplusplus | |
27752 | } | |
27753 | #endif | |
27754 | ||
27755 | int | |
27756 | main () | |
27757 | { | |
27758 | return f != remove; | |
27759 | ; | |
27760 | return 0; | |
27761 | } | |
27762 | _ACEOF | |
27763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27765 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27766 | ac_status=$? |
ac1cb8d3 VS |
27767 | grep -v '^ *+' conftest.er1 >conftest.err |
27768 | rm -f conftest.er1 | |
27769 | cat conftest.err >&5 | |
a848cd7e SC |
27770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27771 | (exit $ac_status); } && | |
6ebeb4c7 | 27772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27774 | (eval $ac_try) 2>&5 | |
27775 | ac_status=$? | |
27776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27777 | (exit $ac_status); }; } && | |
27778 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27780 | (eval $ac_try) 2>&5 | |
27781 | ac_status=$? | |
27782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27783 | (exit $ac_status); }; }; then | |
27784 | ac_cv_func_remove=yes | |
27785 | else | |
27786 | echo "$as_me: failed program was:" >&5 | |
27787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27788 | ||
27789 | ac_cv_func_remove=no | |
27790 | fi | |
ac1cb8d3 VS |
27791 | rm -f conftest.err conftest.$ac_objext \ |
27792 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27793 | fi |
27794 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
27795 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
27796 | ||
27797 | if test $ac_cv_func_remove = no; then | |
27798 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
27799 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
27800 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
27801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27802 | else | |
27803 | ac_check_lib_save_LIBS=$LIBS | |
27804 | LIBS="-lposix $LIBS" | |
27805 | cat >conftest.$ac_ext <<_ACEOF | |
27806 | /* confdefs.h. */ | |
27807 | _ACEOF | |
27808 | cat confdefs.h >>conftest.$ac_ext | |
27809 | cat >>conftest.$ac_ext <<_ACEOF | |
27810 | /* end confdefs.h. */ | |
27811 | ||
27812 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27813 | #ifdef __cplusplus | |
27814 | extern "C" | |
27815 | #endif | |
27816 | /* We use char because int might match the return type of a gcc2 | |
27817 | builtin and then its argument prototype would still apply. */ | |
27818 | char remove (); | |
27819 | int | |
27820 | main () | |
27821 | { | |
27822 | remove (); | |
27823 | ; | |
27824 | return 0; | |
27825 | } | |
27826 | _ACEOF | |
27827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27829 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27830 | ac_status=$? |
ac1cb8d3 VS |
27831 | grep -v '^ *+' conftest.er1 >conftest.err |
27832 | rm -f conftest.er1 | |
27833 | cat conftest.err >&5 | |
a848cd7e SC |
27834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27835 | (exit $ac_status); } && | |
6ebeb4c7 | 27836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27838 | (eval $ac_try) 2>&5 | |
27839 | ac_status=$? | |
27840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27841 | (exit $ac_status); }; } && | |
27842 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27844 | (eval $ac_try) 2>&5 | |
27845 | ac_status=$? | |
27846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27847 | (exit $ac_status); }; }; then | |
27848 | ac_cv_lib_posix_remove=yes | |
27849 | else | |
27850 | echo "$as_me: failed program was:" >&5 | |
27851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27852 | ||
27853 | ac_cv_lib_posix_remove=no | |
27854 | fi | |
ac1cb8d3 VS |
27855 | rm -f conftest.err conftest.$ac_objext \ |
27856 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27857 | LIBS=$ac_check_lib_save_LIBS |
27858 | fi | |
27859 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
27860 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
27861 | if test $ac_cv_lib_posix_remove = yes; then | |
27862 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
27863 | fi | |
27864 | ||
27865 | fi | |
27866 | ||
27867 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
27868 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
27869 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
27870 | if test "${ac_cv_func_shmat+set}" = set; then | |
27871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27872 | else | |
27873 | cat >conftest.$ac_ext <<_ACEOF | |
27874 | /* confdefs.h. */ | |
27875 | _ACEOF | |
27876 | cat confdefs.h >>conftest.$ac_ext | |
27877 | cat >>conftest.$ac_ext <<_ACEOF | |
27878 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27879 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
27880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27881 | #define shmat innocuous_shmat | |
27882 | ||
a848cd7e SC |
27883 | /* System header to define __stub macros and hopefully few prototypes, |
27884 | which can conflict with char shmat (); below. | |
27885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27886 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27887 | |
a848cd7e SC |
27888 | #ifdef __STDC__ |
27889 | # include <limits.h> | |
27890 | #else | |
27891 | # include <assert.h> | |
27892 | #endif | |
ac1cb8d3 VS |
27893 | |
27894 | #undef shmat | |
27895 | ||
a848cd7e SC |
27896 | /* Override any gcc2 internal prototype to avoid an error. */ |
27897 | #ifdef __cplusplus | |
27898 | extern "C" | |
27899 | { | |
27900 | #endif | |
27901 | /* We use char because int might match the return type of a gcc2 | |
27902 | builtin and then its argument prototype would still apply. */ | |
27903 | char shmat (); | |
27904 | /* The GNU C library defines this for functions which it implements | |
27905 | to always fail with ENOSYS. Some functions are actually named | |
27906 | something starting with __ and the normal name is an alias. */ | |
27907 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
27908 | choke me | |
27909 | #else | |
27910 | char (*f) () = shmat; | |
27911 | #endif | |
27912 | #ifdef __cplusplus | |
27913 | } | |
27914 | #endif | |
27915 | ||
27916 | int | |
27917 | main () | |
27918 | { | |
27919 | return f != shmat; | |
27920 | ; | |
27921 | return 0; | |
27922 | } | |
27923 | _ACEOF | |
27924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27926 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27927 | ac_status=$? |
ac1cb8d3 VS |
27928 | grep -v '^ *+' conftest.er1 >conftest.err |
27929 | rm -f conftest.er1 | |
27930 | cat conftest.err >&5 | |
a848cd7e SC |
27931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27932 | (exit $ac_status); } && | |
6ebeb4c7 | 27933 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27935 | (eval $ac_try) 2>&5 | |
27936 | ac_status=$? | |
27937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27938 | (exit $ac_status); }; } && | |
27939 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27941 | (eval $ac_try) 2>&5 | |
27942 | ac_status=$? | |
27943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27944 | (exit $ac_status); }; }; then | |
27945 | ac_cv_func_shmat=yes | |
27946 | else | |
27947 | echo "$as_me: failed program was:" >&5 | |
27948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27949 | ||
27950 | ac_cv_func_shmat=no | |
27951 | fi | |
ac1cb8d3 VS |
27952 | rm -f conftest.err conftest.$ac_objext \ |
27953 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27954 | fi |
27955 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
27956 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
27957 | ||
27958 | if test $ac_cv_func_shmat = no; then | |
27959 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
27960 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
27961 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
27962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27963 | else | |
27964 | ac_check_lib_save_LIBS=$LIBS | |
27965 | LIBS="-lipc $LIBS" | |
27966 | cat >conftest.$ac_ext <<_ACEOF | |
27967 | /* confdefs.h. */ | |
27968 | _ACEOF | |
27969 | cat confdefs.h >>conftest.$ac_ext | |
27970 | cat >>conftest.$ac_ext <<_ACEOF | |
27971 | /* end confdefs.h. */ | |
27972 | ||
27973 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27974 | #ifdef __cplusplus | |
27975 | extern "C" | |
27976 | #endif | |
27977 | /* We use char because int might match the return type of a gcc2 | |
27978 | builtin and then its argument prototype would still apply. */ | |
27979 | char shmat (); | |
27980 | int | |
27981 | main () | |
27982 | { | |
27983 | shmat (); | |
27984 | ; | |
27985 | return 0; | |
27986 | } | |
27987 | _ACEOF | |
27988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27990 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27991 | ac_status=$? |
ac1cb8d3 VS |
27992 | grep -v '^ *+' conftest.er1 >conftest.err |
27993 | rm -f conftest.er1 | |
27994 | cat conftest.err >&5 | |
a848cd7e SC |
27995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27996 | (exit $ac_status); } && | |
6ebeb4c7 | 27997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27999 | (eval $ac_try) 2>&5 | |
28000 | ac_status=$? | |
28001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28002 | (exit $ac_status); }; } && | |
28003 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28005 | (eval $ac_try) 2>&5 | |
28006 | ac_status=$? | |
28007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28008 | (exit $ac_status); }; }; then | |
28009 | ac_cv_lib_ipc_shmat=yes | |
28010 | else | |
28011 | echo "$as_me: failed program was:" >&5 | |
28012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28013 | ||
28014 | ac_cv_lib_ipc_shmat=no | |
28015 | fi | |
ac1cb8d3 VS |
28016 | rm -f conftest.err conftest.$ac_objext \ |
28017 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28018 | LIBS=$ac_check_lib_save_LIBS |
28019 | fi | |
28020 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
28021 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
28022 | if test $ac_cv_lib_ipc_shmat = yes; then | |
28023 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
28024 | fi | |
28025 | ||
28026 | fi | |
28027 | fi | |
28028 | ||
28029 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
28030 | ac_save_LDFLAGS=$LDFLAGS | |
28031 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
28032 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
28033 | # check for ICE first), but we must link in the order -lSM -lICE or | |
28034 | # we get undefined symbols. So assume we have SM if we have ICE. | |
28035 | # These have to be linked with before -lX11, unlike the other | |
28036 | # libraries we check for below, so use a different variable. | |
28037 | # John Interrante, Karl Berry | |
28038 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
28039 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
28040 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
28041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28042 | else | |
28043 | ac_check_lib_save_LIBS=$LIBS | |
28044 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
28045 | cat >conftest.$ac_ext <<_ACEOF | |
28046 | /* confdefs.h. */ | |
28047 | _ACEOF | |
28048 | cat confdefs.h >>conftest.$ac_ext | |
28049 | cat >>conftest.$ac_ext <<_ACEOF | |
28050 | /* end confdefs.h. */ | |
28051 | ||
28052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28053 | #ifdef __cplusplus | |
28054 | extern "C" | |
28055 | #endif | |
28056 | /* We use char because int might match the return type of a gcc2 | |
28057 | builtin and then its argument prototype would still apply. */ | |
28058 | char IceConnectionNumber (); | |
28059 | int | |
28060 | main () | |
28061 | { | |
28062 | IceConnectionNumber (); | |
28063 | ; | |
28064 | return 0; | |
28065 | } | |
28066 | _ACEOF | |
28067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28069 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28070 | ac_status=$? |
ac1cb8d3 VS |
28071 | grep -v '^ *+' conftest.er1 >conftest.err |
28072 | rm -f conftest.er1 | |
28073 | cat conftest.err >&5 | |
a848cd7e SC |
28074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28075 | (exit $ac_status); } && | |
6ebeb4c7 | 28076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28078 | (eval $ac_try) 2>&5 | |
28079 | ac_status=$? | |
28080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28081 | (exit $ac_status); }; } && | |
28082 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28084 | (eval $ac_try) 2>&5 | |
28085 | ac_status=$? | |
28086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28087 | (exit $ac_status); }; }; then | |
28088 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
28089 | else | |
28090 | echo "$as_me: failed program was:" >&5 | |
28091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28092 | ||
28093 | ac_cv_lib_ICE_IceConnectionNumber=no | |
28094 | fi | |
ac1cb8d3 VS |
28095 | rm -f conftest.err conftest.$ac_objext \ |
28096 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28097 | LIBS=$ac_check_lib_save_LIBS |
28098 | fi | |
28099 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
28100 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
28101 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
28102 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
28103 | fi | |
28104 | ||
28105 | LDFLAGS=$ac_save_LDFLAGS | |
28106 | ||
28107 | fi | |
28108 | ||
28109 | ||
28110 | if test "$no_x" = "yes"; then | |
28111 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
28112 | echo "$as_me: error: X11 not found" >&2;} | |
28113 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
28114 | fi | |
28115 | ||
74b84332 VS |
28116 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
28117 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
28118 | AFMINSTALL=afminstall |
28119 | COMPILED_X_PROGRAM=0 | |
28120 | ||
74b84332 VS |
28121 | fi |
28122 | ||
28123 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
28124 | if test "$wxUSE_NANOX" = "yes"; then |
28125 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
28126 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
28127 | if test "x$MICROWIN" = x ; then | |
28128 | echo "$as_me:$LINENO: result: not found" >&5 | |
28129 | echo "${ECHO_T}not found" >&6 | |
28130 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
28131 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
28132 | { (exit 1); exit 1; }; } | |
28133 | else | |
28134 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
28135 | echo "${ECHO_T}$MICROWIN" >&6 | |
28136 | cat >>confdefs.h <<\_ACEOF | |
28137 | #define wxUSE_NANOX 1 | |
28138 | _ACEOF | |
28139 | ||
28140 | fi | |
28141 | fi | |
28142 | ||
28143 | if test "$wxUSE_UNICODE" = "yes"; then | |
28144 | ||
28145 | succeeded=no | |
28146 | ||
28147 | if test -z "$PKG_CONFIG"; then | |
28148 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28149 | set dummy pkg-config; ac_word=$2 | |
28150 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28151 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28152 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28154 | else | |
28155 | case $PKG_CONFIG in | |
28156 | [\\/]* | ?:[\\/]*) | |
28157 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28158 | ;; | |
28159 | *) | |
28160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28161 | for as_dir in $PATH | |
28162 | do | |
28163 | IFS=$as_save_IFS | |
28164 | test -z "$as_dir" && as_dir=. | |
28165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28166 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28167 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28168 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28169 | break 2 | |
28170 | fi | |
28171 | done | |
28172 | done | |
28173 | ||
28174 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28175 | ;; | |
28176 | esac | |
28177 | fi | |
28178 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28179 | ||
28180 | if test -n "$PKG_CONFIG"; then | |
28181 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28182 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28183 | else | |
28184 | echo "$as_me:$LINENO: result: no" >&5 | |
28185 | echo "${ECHO_T}no" >&6 | |
28186 | fi | |
28187 | ||
28188 | fi | |
28189 | ||
28190 | if test "$PKG_CONFIG" = "no" ; then | |
28191 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28192 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28193 | echo "*** to the full path to pkg-config." | |
28194 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28195 | else | |
28196 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28197 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28198 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
28199 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
28200 | ||
28201 | if $PKG_CONFIG --exists "pangox" ; then | |
28202 | echo "$as_me:$LINENO: result: yes" >&5 | |
28203 | echo "${ECHO_T}yes" >&6 | |
28204 | succeeded=yes | |
28205 | ||
28206 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
28207 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
28208 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
28209 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
28210 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
28211 | ||
28212 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
28213 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
28214 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
28215 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
28216 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
28217 | else | |
28218 | PANGOX_CFLAGS="" | |
28219 | PANGOX_LIBS="" | |
28220 | ## If we have a custom action on failure, don't print errors, but | |
28221 | ## do set a variable so people can do so. | |
28222 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
28223 | ||
28224 | fi | |
28225 | ||
28226 | ||
28227 | ||
28228 | else | |
28229 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28230 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28231 | fi | |
28232 | fi | |
28233 | ||
28234 | if test $succeeded = yes; then | |
28235 | ||
28236 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
28237 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
28238 | ||
28239 | else | |
28240 | ||
28241 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
28242 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
28243 | { (exit 1); exit 1; }; } | |
28244 | ||
28245 | ||
28246 | fi | |
28247 | ||
28248 | ||
28249 | succeeded=no | |
28250 | ||
28251 | if test -z "$PKG_CONFIG"; then | |
28252 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28253 | set dummy pkg-config; ac_word=$2 | |
28254 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28256 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28258 | else | |
28259 | case $PKG_CONFIG in | |
28260 | [\\/]* | ?:[\\/]*) | |
28261 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28262 | ;; | |
28263 | *) | |
28264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28265 | for as_dir in $PATH | |
28266 | do | |
28267 | IFS=$as_save_IFS | |
28268 | test -z "$as_dir" && as_dir=. | |
28269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28270 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28271 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28272 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28273 | break 2 | |
28274 | fi | |
28275 | done | |
28276 | done | |
28277 | ||
28278 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28279 | ;; | |
28280 | esac | |
28281 | fi | |
28282 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28283 | ||
28284 | if test -n "$PKG_CONFIG"; then | |
28285 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28286 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28287 | else | |
28288 | echo "$as_me:$LINENO: result: no" >&5 | |
28289 | echo "${ECHO_T}no" >&6 | |
28290 | fi | |
28291 | ||
28292 | fi | |
28293 | ||
28294 | if test "$PKG_CONFIG" = "no" ; then | |
28295 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28296 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28297 | echo "*** to the full path to pkg-config." | |
28298 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28299 | else | |
28300 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28301 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28302 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
28303 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
28304 | ||
28305 | if $PKG_CONFIG --exists "pangoft2" ; then | |
28306 | echo "$as_me:$LINENO: result: yes" >&5 | |
28307 | echo "${ECHO_T}yes" >&6 | |
28308 | succeeded=yes | |
28309 | ||
28310 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
28311 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
28312 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
28313 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
28314 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
28315 | ||
28316 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
28317 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
28318 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
28319 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
28320 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
28321 | else | |
28322 | PANGOFT2_CFLAGS="" | |
28323 | PANGOFT2_LIBS="" | |
28324 | ## If we have a custom action on failure, don't print errors, but | |
28325 | ## do set a variable so people can do so. | |
28326 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
28327 | ||
28328 | fi | |
28329 | ||
28330 | ||
28331 | ||
28332 | else | |
28333 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28334 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28335 | fi | |
28336 | fi | |
28337 | ||
28338 | if test $succeeded = yes; then | |
28339 | ||
28340 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
28341 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
28342 | ||
28343 | else | |
28344 | ||
28345 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
28346 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
28347 | wxUSE_PRINTING_ARCHITECTURE="no" | |
28348 | ||
28349 | ||
28350 | fi | |
28351 | ||
28352 | ||
28353 | succeeded=no | |
28354 | ||
28355 | if test -z "$PKG_CONFIG"; then | |
28356 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28357 | set dummy pkg-config; ac_word=$2 | |
28358 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28360 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28362 | else | |
28363 | case $PKG_CONFIG in | |
28364 | [\\/]* | ?:[\\/]*) | |
28365 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28366 | ;; | |
28367 | *) | |
28368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28369 | for as_dir in $PATH | |
28370 | do | |
28371 | IFS=$as_save_IFS | |
28372 | test -z "$as_dir" && as_dir=. | |
28373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28374 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28375 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28377 | break 2 | |
28378 | fi | |
28379 | done | |
28380 | done | |
28381 | ||
28382 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28383 | ;; | |
28384 | esac | |
28385 | fi | |
28386 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28387 | ||
28388 | if test -n "$PKG_CONFIG"; then | |
28389 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28390 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28391 | else | |
28392 | echo "$as_me:$LINENO: result: no" >&5 | |
28393 | echo "${ECHO_T}no" >&6 | |
28394 | fi | |
28395 | ||
28396 | fi | |
28397 | ||
28398 | if test "$PKG_CONFIG" = "no" ; then | |
28399 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28400 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28401 | echo "*** to the full path to pkg-config." | |
28402 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28403 | else | |
28404 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28405 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28406 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
28407 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
28408 | ||
28409 | if $PKG_CONFIG --exists "pangoxft" ; then | |
28410 | echo "$as_me:$LINENO: result: yes" >&5 | |
28411 | echo "${ECHO_T}yes" >&6 | |
28412 | succeeded=yes | |
28413 | ||
28414 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
28415 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
28416 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
28417 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
28418 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
28419 | ||
28420 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
28421 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
28422 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
28423 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
28424 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
28425 | else | |
28426 | PANGOXFT_CFLAGS="" | |
28427 | PANGOXFT_LIBS="" | |
28428 | ## If we have a custom action on failure, don't print errors, but | |
28429 | ## do set a variable so people can do so. | |
28430 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
28431 | ||
28432 | fi | |
28433 | ||
28434 | ||
28435 | ||
28436 | else | |
28437 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28438 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28439 | fi | |
28440 | fi | |
28441 | ||
28442 | if test $succeeded = yes; then | |
28443 | ||
4ae1af05 MB |
28444 | cat >>confdefs.h <<\_ACEOF |
28445 | #define HAVE_PANGO_XFT 1 | |
28446 | _ACEOF | |
28447 | ||
a848cd7e SC |
28448 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
28449 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
28450 | ||
28451 | else | |
28452 | ||
28453 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
28454 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
28455 | ||
28456 | ||
28457 | fi | |
28458 | ||
304205f1 VS |
28459 | save_CFLAGS="$CFLAGS" |
28460 | save_LIBS="$LIBS" | |
28461 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
28462 | LIBS="$LIBS $PANGOX_LIBS" | |
28463 | ||
28464 | for ac_func in pango_font_family_is_monospace | |
28465 | do | |
28466 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28467 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28468 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28469 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28471 | else | |
28472 | cat >conftest.$ac_ext <<_ACEOF | |
28473 | /* confdefs.h. */ | |
28474 | _ACEOF | |
28475 | cat confdefs.h >>conftest.$ac_ext | |
28476 | cat >>conftest.$ac_ext <<_ACEOF | |
28477 | /* end confdefs.h. */ | |
28478 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
28479 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28480 | #define $ac_func innocuous_$ac_func | |
28481 | ||
28482 | /* System header to define __stub macros and hopefully few prototypes, | |
28483 | which can conflict with char $ac_func (); below. | |
28484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28485 | <limits.h> exists even on freestanding compilers. */ | |
28486 | ||
28487 | #ifdef __STDC__ | |
28488 | # include <limits.h> | |
28489 | #else | |
28490 | # include <assert.h> | |
28491 | #endif | |
28492 | ||
28493 | #undef $ac_func | |
28494 | ||
28495 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28496 | #ifdef __cplusplus | |
28497 | extern "C" | |
28498 | { | |
28499 | #endif | |
28500 | /* We use char because int might match the return type of a gcc2 | |
28501 | builtin and then its argument prototype would still apply. */ | |
28502 | char $ac_func (); | |
28503 | /* The GNU C library defines this for functions which it implements | |
28504 | to always fail with ENOSYS. Some functions are actually named | |
28505 | something starting with __ and the normal name is an alias. */ | |
28506 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28507 | choke me | |
28508 | #else | |
28509 | char (*f) () = $ac_func; | |
28510 | #endif | |
28511 | #ifdef __cplusplus | |
28512 | } | |
28513 | #endif | |
28514 | ||
28515 | int | |
28516 | main () | |
28517 | { | |
28518 | return f != $ac_func; | |
28519 | ; | |
28520 | return 0; | |
28521 | } | |
28522 | _ACEOF | |
28523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28525 | (eval $ac_link) 2>conftest.er1 | |
28526 | ac_status=$? | |
28527 | grep -v '^ *+' conftest.er1 >conftest.err | |
28528 | rm -f conftest.er1 | |
28529 | cat conftest.err >&5 | |
28530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28531 | (exit $ac_status); } && | |
6ebeb4c7 | 28532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
28533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28534 | (eval $ac_try) 2>&5 | |
28535 | ac_status=$? | |
28536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28537 | (exit $ac_status); }; } && | |
28538 | { ac_try='test -s conftest$ac_exeext' | |
28539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28540 | (eval $ac_try) 2>&5 | |
28541 | ac_status=$? | |
28542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28543 | (exit $ac_status); }; }; then | |
28544 | eval "$as_ac_var=yes" | |
28545 | else | |
28546 | echo "$as_me: failed program was:" >&5 | |
28547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28548 | ||
28549 | eval "$as_ac_var=no" | |
28550 | fi | |
28551 | rm -f conftest.err conftest.$ac_objext \ | |
28552 | conftest$ac_exeext conftest.$ac_ext | |
28553 | fi | |
28554 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28555 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28556 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28557 | cat >>confdefs.h <<_ACEOF | |
28558 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28559 | _ACEOF | |
28560 | ||
28561 | fi | |
28562 | done | |
28563 | ||
28564 | CFLAGS="$save_CFLAGS" | |
28565 | LIBS="$save_LIBS" | |
a848cd7e SC |
28566 | fi |
28567 | ||
28568 | wxUSE_UNIVERSAL="yes" | |
28569 | ||
28570 | if test "$wxUSE_NANOX" = "yes"; then | |
28571 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
28572 | 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" | |
28573 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
28574 | else | |
28575 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
28576 | fi | |
28577 | ||
a848cd7e SC |
28578 | TOOLKIT=X11 |
28579 | GUIDIST=X11_DIST | |
28580 | fi | |
28581 | ||
28582 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
28583 | if test "$wxUSE_UNICODE" = "yes"; then |
28584 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
28585 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
28586 | { (exit 1); exit 1; }; } | |
28587 | fi | |
28588 | ||
74b84332 VS |
28589 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
28590 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 28591 | |
74b84332 VS |
28592 | ac_find_includes= |
28593 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28594 | do | |
28595 | if test -f "$ac_dir/Xm/Xm.h"; then | |
28596 | ac_find_includes=$ac_dir | |
28597 | break | |
28598 | fi | |
28599 | done | |
a848cd7e | 28600 | |
74b84332 VS |
28601 | if test "$ac_find_includes" != "" ; then |
28602 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28603 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28604 | ||
28605 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28606 | ac_path_to_include="" | |
28607 | else | |
28608 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
28609 | result=$? | |
28610 | if test $result = 0; then | |
28611 | ac_path_to_include="" | |
28612 | else | |
28613 | ac_path_to_include=" -I$ac_find_includes" | |
28614 | fi | |
a848cd7e SC |
28615 | fi |
28616 | ||
74b84332 VS |
28617 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
28618 | else | |
e051b34e MW |
28619 | save_CFLAGS=$CFLAGS |
28620 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28621 | ||
74b84332 | 28622 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
28623 | /* confdefs.h. */ |
28624 | _ACEOF | |
28625 | cat confdefs.h >>conftest.$ac_ext | |
28626 | cat >>conftest.$ac_ext <<_ACEOF | |
28627 | /* end confdefs.h. */ | |
28628 | ||
74b84332 VS |
28629 | #include <Xm/Xm.h> |
28630 | ||
a848cd7e SC |
28631 | int |
28632 | main () | |
28633 | { | |
28634 | ||
74b84332 VS |
28635 | int version; |
28636 | version = xmUseVersion; | |
28637 | ||
a848cd7e SC |
28638 | ; |
28639 | return 0; | |
28640 | } | |
28641 | _ACEOF | |
74b84332 VS |
28642 | rm -f conftest.$ac_objext |
28643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28644 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 28645 | ac_status=$? |
ac1cb8d3 VS |
28646 | grep -v '^ *+' conftest.er1 >conftest.err |
28647 | rm -f conftest.er1 | |
28648 | cat conftest.err >&5 | |
a848cd7e SC |
28649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28650 | (exit $ac_status); } && | |
6ebeb4c7 | 28651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28653 | (eval $ac_try) 2>&5 | |
28654 | ac_status=$? | |
28655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28656 | (exit $ac_status); }; } && | |
74b84332 | 28657 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28659 | (eval $ac_try) 2>&5 | |
28660 | ac_status=$? | |
28661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28662 | (exit $ac_status); }; }; then | |
74b84332 VS |
28663 | |
28664 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
28665 | echo "${ECHO_T}found in default search path" >&6 | |
28666 | COMPILED_X_PROGRAM=1 | |
28667 | ||
a848cd7e SC |
28668 | else |
28669 | echo "$as_me: failed program was:" >&5 | |
28670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28671 | ||
a848cd7e | 28672 | |
74b84332 VS |
28673 | echo "$as_me:$LINENO: result: no" >&5 |
28674 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
28675 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
28676 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 28677 | { (exit 1); exit 1; }; } |
a848cd7e | 28678 | |
a848cd7e | 28679 | |
a848cd7e | 28680 | fi |
74b84332 | 28681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e MW |
28682 | |
28683 | CFLAGS=$save_CFLAGS | |
74b84332 VS |
28684 | fi |
28685 | ||
0ad5d837 VZ |
28686 | |
28687 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
28688 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
28689 | ||
0ad5d837 VZ |
28690 | ac_find_libraries= |
28691 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 28692 | do |
3eca31dc | 28693 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
28694 | if test -f "$ac_dir/libXm.$ac_extension"; then |
28695 | ac_find_libraries=$ac_dir | |
28696 | break 2 | |
a848cd7e | 28697 | fi |
74b84332 VS |
28698 | done |
28699 | done | |
a848cd7e | 28700 | |
0ad5d837 VZ |
28701 | |
28702 | if test "x$ac_find_libraries" != "x" ; then | |
28703 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
28704 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 28705 | |
74b84332 | 28706 | |
0ad5d837 | 28707 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 28708 | ac_path_to_link="" |
a848cd7e | 28709 | else |
0ad5d837 VZ |
28710 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
28711 | result=$? | |
28712 | if test $result = 0; then | |
28713 | ac_path_to_link="" | |
28714 | else | |
28715 | ac_path_to_link=" -L$ac_find_libraries" | |
28716 | fi | |
74b84332 VS |
28717 | fi |
28718 | ||
0ad5d837 VZ |
28719 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
28720 | else | |
28721 | save_CFLAGS=$CFLAGS | |
28722 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
6f9cf1e6 MW |
28723 | save_LIBS="$LIBS" |
28724 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 28725 | |
0ad5d837 | 28726 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
28727 | /* confdefs.h. */ |
28728 | _ACEOF | |
28729 | cat confdefs.h >>conftest.$ac_ext | |
28730 | cat >>conftest.$ac_ext <<_ACEOF | |
28731 | /* end confdefs.h. */ | |
28732 | ||
0ad5d837 | 28733 | #include <Xm/Xm.h> |
74b84332 | 28734 | |
a848cd7e SC |
28735 | int |
28736 | main () | |
28737 | { | |
74b84332 | 28738 | |
0ad5d837 VZ |
28739 | int version; |
28740 | version = xmUseVersion; | |
74b84332 | 28741 | |
a848cd7e SC |
28742 | ; |
28743 | return 0; | |
28744 | } | |
28745 | _ACEOF | |
0ad5d837 VZ |
28746 | rm -f conftest.$ac_objext conftest$ac_exeext |
28747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28748 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28749 | ac_status=$? |
ac1cb8d3 VS |
28750 | grep -v '^ *+' conftest.er1 >conftest.err |
28751 | rm -f conftest.er1 | |
28752 | cat conftest.err >&5 | |
a848cd7e SC |
28753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28754 | (exit $ac_status); } && | |
6ebeb4c7 | 28755 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28757 | (eval $ac_try) 2>&5 | |
28758 | ac_status=$? | |
28759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28760 | (exit $ac_status); }; } && | |
0ad5d837 | 28761 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
28762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28763 | (eval $ac_try) 2>&5 | |
28764 | ac_status=$? | |
28765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28766 | (exit $ac_status); }; }; then | |
74b84332 | 28767 | |
0ad5d837 | 28768 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 28769 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 28770 | COMPILED_X_PROGRAM=1 |
74b84332 | 28771 | |
a848cd7e SC |
28772 | else |
28773 | echo "$as_me: failed program was:" >&5 | |
28774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28775 | ||
74b84332 | 28776 | |
6f9cf1e6 | 28777 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 28778 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 28779 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
28780 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
28781 | { (exit 1); exit 1; }; } | |
28782 | ||
28783 | ||
28784 | fi | |
0ad5d837 VZ |
28785 | rm -f conftest.err conftest.$ac_objext \ |
28786 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 28787 | |
0ad5d837 | 28788 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 28789 | LIBS="$save_LIBS" |
74b84332 VS |
28790 | fi |
28791 | ||
28792 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
28793 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
28794 | libp_link="" | |
28795 | libsm_ice_link="" | |
28796 | libs_found=0 | |
28797 | for libp in "" " -lXp"; do | |
28798 | if test "$libs_found" = "0"; then | |
28799 | for libsm_ice in "" " -lSM -lICE"; do | |
28800 | if test "$libs_found" = "0"; then | |
28801 | save_LIBS="$LIBS" | |
28802 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
28803 | save_CFLAGS=$CFLAGS | |
28804 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28805 | ||
28806 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28807 | /* confdefs.h. */ |
28808 | _ACEOF | |
28809 | cat confdefs.h >>conftest.$ac_ext | |
28810 | cat >>conftest.$ac_ext <<_ACEOF | |
28811 | /* end confdefs.h. */ | |
28812 | ||
74b84332 VS |
28813 | #include <Xm/Xm.h> |
28814 | #include <Xm/List.h> | |
28815 | ||
a848cd7e SC |
28816 | int |
28817 | main () | |
28818 | { | |
74b84332 VS |
28819 | |
28820 | XmString string = NULL; | |
28821 | Widget w = NULL; | |
28822 | int position = 0; | |
28823 | XmListAddItem(w, string, position); | |
28824 | ||
a848cd7e SC |
28825 | ; |
28826 | return 0; | |
28827 | } | |
28828 | _ACEOF | |
28829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28831 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28832 | ac_status=$? |
ac1cb8d3 VS |
28833 | grep -v '^ *+' conftest.er1 >conftest.err |
28834 | rm -f conftest.er1 | |
28835 | cat conftest.err >&5 | |
a848cd7e SC |
28836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28837 | (exit $ac_status); } && | |
6ebeb4c7 | 28838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28840 | (eval $ac_try) 2>&5 | |
28841 | ac_status=$? | |
28842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28843 | (exit $ac_status); }; } && | |
28844 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28846 | (eval $ac_try) 2>&5 | |
28847 | ac_status=$? | |
28848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28849 | (exit $ac_status); }; }; then | |
28850 | ||
28851 | libp_link="$libp" | |
28852 | libsm_ice_link="$libsm_ice" | |
28853 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
28854 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
28855 | libs_found=1 | |
28856 | ||
28857 | else | |
28858 | echo "$as_me: failed program was:" >&5 | |
28859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28860 | ||
28861 | ||
28862 | ||
28863 | fi | |
ac1cb8d3 VS |
28864 | rm -f conftest.err conftest.$ac_objext \ |
28865 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28866 | |
28867 | LIBS="$save_LIBS" | |
28868 | CFLAGS=$save_CFLAGS | |
28869 | fi | |
28870 | done | |
28871 | fi | |
28872 | done | |
28873 | ||
28874 | if test "$libs_found" = "0"; then | |
28875 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
28876 | echo "${ECHO_T}can't find the right libraries" >&6 | |
28877 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
28878 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
28879 | { (exit 1); exit 1; }; } | |
28880 | fi | |
28881 | ||
62fa8b3a MW |
28882 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
28883 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
28884 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
28885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28886 | else | |
28887 | ac_check_lib_save_LIBS=$LIBS | |
28888 | LIBS="-lSgm $LIBS" | |
28889 | cat >conftest.$ac_ext <<_ACEOF | |
28890 | /* confdefs.h. */ | |
28891 | _ACEOF | |
28892 | cat confdefs.h >>conftest.$ac_ext | |
28893 | cat >>conftest.$ac_ext <<_ACEOF | |
28894 | /* end confdefs.h. */ | |
28895 | ||
28896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28897 | #ifdef __cplusplus | |
28898 | extern "C" | |
28899 | #endif | |
28900 | /* We use char because int might match the return type of a gcc2 | |
28901 | builtin and then its argument prototype would still apply. */ | |
28902 | char SgCreateList (); | |
28903 | int | |
28904 | main () | |
28905 | { | |
28906 | SgCreateList (); | |
28907 | ; | |
28908 | return 0; | |
28909 | } | |
28910 | _ACEOF | |
28911 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28913 | (eval $ac_link) 2>conftest.er1 | |
28914 | ac_status=$? | |
28915 | grep -v '^ *+' conftest.er1 >conftest.err | |
28916 | rm -f conftest.er1 | |
28917 | cat conftest.err >&5 | |
28918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28919 | (exit $ac_status); } && | |
28920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
28921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28922 | (eval $ac_try) 2>&5 | |
28923 | ac_status=$? | |
28924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28925 | (exit $ac_status); }; } && | |
28926 | { ac_try='test -s conftest$ac_exeext' | |
28927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28928 | (eval $ac_try) 2>&5 | |
28929 | ac_status=$? | |
28930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28931 | (exit $ac_status); }; }; then | |
28932 | ac_cv_lib_Sgm_SgCreateList=yes | |
28933 | else | |
28934 | echo "$as_me: failed program was:" >&5 | |
28935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28936 | ||
28937 | ac_cv_lib_Sgm_SgCreateList=no | |
28938 | fi | |
28939 | rm -f conftest.err conftest.$ac_objext \ | |
28940 | conftest$ac_exeext conftest.$ac_ext | |
28941 | LIBS=$ac_check_lib_save_LIBS | |
28942 | fi | |
28943 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
28944 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
28945 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
28946 | libsgm_link=" -lSgm" | |
28947 | fi | |
28948 | ||
28949 | ||
a848cd7e SC |
28950 | save_CFLAGS=$CFLAGS |
28951 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
0ad5d837 | 28952 | |
a848cd7e SC |
28953 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
28954 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
28955 | if test "${wx_cv_lib_motif2+set}" = set; then |
28956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28957 | else | |
28958 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28959 | /* confdefs.h. */ |
28960 | _ACEOF | |
28961 | cat confdefs.h >>conftest.$ac_ext | |
28962 | cat >>conftest.$ac_ext <<_ACEOF | |
28963 | /* end confdefs.h. */ | |
28964 | ||
0ad5d837 | 28965 | #include <Xm/Xm.h> |
a848cd7e SC |
28966 | |
28967 | int | |
28968 | main () | |
28969 | { | |
28970 | ||
0ad5d837 VZ |
28971 | #if XmVersion < 2000 |
28972 | Not Motif 2 | |
28973 | #endif | |
a848cd7e SC |
28974 | |
28975 | ; | |
28976 | return 0; | |
28977 | } | |
28978 | _ACEOF | |
28979 | rm -f conftest.$ac_objext | |
28980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28982 | ac_status=$? |
ac1cb8d3 VS |
28983 | grep -v '^ *+' conftest.er1 >conftest.err |
28984 | rm -f conftest.er1 | |
28985 | cat conftest.err >&5 | |
a848cd7e SC |
28986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28987 | (exit $ac_status); } && | |
6ebeb4c7 | 28988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28990 | (eval $ac_try) 2>&5 | |
28991 | ac_status=$? | |
28992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28993 | (exit $ac_status); }; } && | |
28994 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28996 | (eval $ac_try) 2>&5 | |
28997 | ac_status=$? | |
28998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28999 | (exit $ac_status); }; }; then | |
0ad5d837 | 29000 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
29001 | else |
29002 | echo "$as_me: failed program was:" >&5 | |
29003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29004 | ||
0ad5d837 VZ |
29005 | wx_cv_lib_motif2="no" |
29006 | fi | |
29007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29008 | fi | |
29009 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
29010 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
29011 | if test "$wx_cv_lib_motif2" = "yes"; then | |
29012 | cat >>confdefs.h <<\_ACEOF | |
29013 | #define __WXMOTIF20__ 1 | |
29014 | _ACEOF | |
a848cd7e | 29015 | |
0ad5d837 VZ |
29016 | else |
29017 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
29018 | #define __WXMOTIF20__ 0 |
29019 | _ACEOF | |
29020 | ||
0ad5d837 | 29021 | fi |
2113bc77 MW |
29022 | |
29023 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
29024 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
29025 | if test "${wx_cv_lib_lesstif+set}" = set; then |
29026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29027 | else | |
29028 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
29029 | /* confdefs.h. */ |
29030 | _ACEOF | |
29031 | cat confdefs.h >>conftest.$ac_ext | |
29032 | cat >>conftest.$ac_ext <<_ACEOF | |
29033 | /* end confdefs.h. */ | |
29034 | ||
0ad5d837 | 29035 | #include <Xm/Xm.h> |
2113bc77 MW |
29036 | |
29037 | int | |
29038 | main () | |
29039 | { | |
29040 | ||
0ad5d837 VZ |
29041 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
29042 | Not Lesstif | |
29043 | #endif | |
2113bc77 MW |
29044 | |
29045 | ; | |
29046 | return 0; | |
29047 | } | |
29048 | _ACEOF | |
29049 | rm -f conftest.$ac_objext | |
29050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29051 | (eval $ac_compile) 2>conftest.er1 | |
29052 | ac_status=$? | |
29053 | grep -v '^ *+' conftest.er1 >conftest.err | |
29054 | rm -f conftest.er1 | |
29055 | cat conftest.err >&5 | |
29056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29057 | (exit $ac_status); } && | |
6ebeb4c7 | 29058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
29059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29060 | (eval $ac_try) 2>&5 | |
29061 | ac_status=$? | |
29062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29063 | (exit $ac_status); }; } && | |
29064 | { ac_try='test -s conftest.$ac_objext' | |
29065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29066 | (eval $ac_try) 2>&5 | |
29067 | ac_status=$? | |
29068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29069 | (exit $ac_status); }; }; then | |
0ad5d837 | 29070 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
29071 | else |
29072 | echo "$as_me: failed program was:" >&5 | |
29073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29074 | ||
0ad5d837 VZ |
29075 | wx_cv_lib_lesstif="no" |
29076 | fi | |
29077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 29078 | |
0ad5d837 VZ |
29079 | fi |
29080 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
29081 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
29082 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
29083 | cat >>confdefs.h <<\_ACEOF | |
29084 | #define __WXLESSTIF__ 1 | |
29085 | _ACEOF | |
29086 | ||
29087 | else | |
29088 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
29089 | #define __WXLESSTIF__ 0 |
29090 | _ACEOF | |
29091 | ||
0ad5d837 | 29092 | fi |
2113bc77 | 29093 | |
a848cd7e SC |
29094 | CFLAGS=$save_CFLAGS |
29095 | ||
62fa8b3a | 29096 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
29097 | TOOLKIT=MOTIF |
29098 | GUIDIST=MOTIF_DIST | |
29099 | fi | |
29100 | ||
74b84332 | 29101 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
29102 | if test "$wxUSE_LIBXPM" = "sys"; then |
29103 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
29104 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
29105 | ||
0ad5d837 VZ |
29106 | ac_find_libraries= |
29107 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 29108 | do |
3eca31dc | 29109 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
29110 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
29111 | ac_find_libraries=$ac_dir | |
29112 | break 2 | |
29113 | fi | |
29114 | done | |
29115 | done | |
29116 | ||
29117 | if test "$ac_find_libraries" != "" ; then | |
29118 | ||
0ad5d837 | 29119 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
29120 | ac_path_to_link="" |
29121 | else | |
0ad5d837 VZ |
29122 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29123 | result=$? | |
29124 | if test $result = 0; then | |
29125 | ac_path_to_link="" | |
29126 | else | |
29127 | ac_path_to_link=" -L$ac_find_libraries" | |
29128 | fi | |
a848cd7e SC |
29129 | fi |
29130 | ||
29131 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
29132 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
29133 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
29134 | |
29135 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
29136 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
29137 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
29138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29139 | else | |
29140 | ||
29141 | save_CFLAGS=$CFLAGS | |
29142 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29143 | ||
29144 | cat >conftest.$ac_ext <<_ACEOF | |
29145 | /* confdefs.h. */ | |
29146 | _ACEOF | |
29147 | cat confdefs.h >>conftest.$ac_ext | |
29148 | cat >>conftest.$ac_ext <<_ACEOF | |
29149 | /* end confdefs.h. */ | |
29150 | ||
29151 | #include <X11/xpm.h> | |
29152 | ||
29153 | int | |
29154 | main () | |
29155 | { | |
29156 | ||
29157 | int version; | |
29158 | version = XpmLibraryVersion(); | |
29159 | ||
29160 | ; | |
29161 | return 0; | |
29162 | } | |
29163 | _ACEOF | |
29164 | rm -f conftest.$ac_objext | |
29165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29166 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29167 | ac_status=$? |
ac1cb8d3 VS |
29168 | grep -v '^ *+' conftest.er1 >conftest.err |
29169 | rm -f conftest.er1 | |
29170 | cat conftest.err >&5 | |
a848cd7e SC |
29171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29172 | (exit $ac_status); } && | |
6ebeb4c7 | 29173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29175 | (eval $ac_try) 2>&5 | |
29176 | ac_status=$? | |
29177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29178 | (exit $ac_status); }; } && | |
29179 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29181 | (eval $ac_try) 2>&5 | |
29182 | ac_status=$? | |
29183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29184 | (exit $ac_status); }; }; then | |
29185 | wx_cv_x11_xpm_h=yes | |
29186 | else | |
29187 | echo "$as_me: failed program was:" >&5 | |
29188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29189 | ||
29190 | wx_cv_x11_xpm_h=no | |
29191 | ||
29192 | fi | |
ac1cb8d3 | 29193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29194 | |
29195 | CFLAGS=$save_CFLAGS | |
29196 | ||
29197 | ||
29198 | fi | |
29199 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
29200 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
29201 | ||
29202 | if test $wx_cv_x11_xpm_h = "yes"; then | |
29203 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
29204 | cat >>confdefs.h <<\_ACEOF | |
29205 | #define wxHAVE_LIB_XPM 1 | |
29206 | _ACEOF | |
29207 | ||
29208 | else | |
29209 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
29210 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
29211 | fi | |
29212 | fi | |
29213 | ||
29214 | fi | |
29215 | ||
29216 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
29217 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
29218 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
29219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29220 | else | |
29221 | ac_check_lib_save_LIBS=$LIBS | |
29222 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
29223 | cat >conftest.$ac_ext <<_ACEOF | |
29224 | /* confdefs.h. */ | |
29225 | _ACEOF | |
29226 | cat confdefs.h >>conftest.$ac_ext | |
29227 | cat >>conftest.$ac_ext <<_ACEOF | |
29228 | /* end confdefs.h. */ | |
29229 | ||
29230 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29231 | #ifdef __cplusplus | |
29232 | extern "C" | |
29233 | #endif | |
29234 | /* We use char because int might match the return type of a gcc2 | |
29235 | builtin and then its argument prototype would still apply. */ | |
29236 | char XShapeQueryExtension (); | |
29237 | int | |
29238 | main () | |
29239 | { | |
29240 | XShapeQueryExtension (); | |
29241 | ; | |
29242 | return 0; | |
29243 | } | |
29244 | _ACEOF | |
29245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29247 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29248 | ac_status=$? |
ac1cb8d3 VS |
29249 | grep -v '^ *+' conftest.er1 >conftest.err |
29250 | rm -f conftest.er1 | |
29251 | cat conftest.err >&5 | |
a848cd7e SC |
29252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29253 | (exit $ac_status); } && | |
6ebeb4c7 | 29254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29256 | (eval $ac_try) 2>&5 | |
29257 | ac_status=$? | |
29258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29259 | (exit $ac_status); }; } && | |
29260 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29262 | (eval $ac_try) 2>&5 | |
29263 | ac_status=$? | |
29264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29265 | (exit $ac_status); }; }; then | |
29266 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
29267 | else | |
29268 | echo "$as_me: failed program was:" >&5 | |
29269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29270 | ||
29271 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
29272 | fi | |
ac1cb8d3 VS |
29273 | rm -f conftest.err conftest.$ac_objext \ |
29274 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29275 | LIBS=$ac_check_lib_save_LIBS |
29276 | fi | |
29277 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
29278 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
29279 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
29280 | ||
29281 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
29282 | wxHAVE_XEXT_LIB=1 | |
29283 | ||
29284 | fi | |
29285 | ||
29286 | ||
29287 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
29288 | save_CFLAGS="$CFLAGS" | |
29289 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29290 | ||
29291 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
29292 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
29293 | cat >conftest.$ac_ext <<_ACEOF | |
29294 | /* confdefs.h. */ | |
29295 | _ACEOF | |
29296 | cat confdefs.h >>conftest.$ac_ext | |
29297 | cat >>conftest.$ac_ext <<_ACEOF | |
29298 | /* end confdefs.h. */ | |
29299 | ||
29300 | #include <X11/Xlib.h> | |
29301 | #include <X11/extensions/shape.h> | |
29302 | ||
29303 | int | |
29304 | main () | |
29305 | { | |
29306 | ||
29307 | int dummy1, dummy2; | |
29308 | XShapeQueryExtension((Display*)NULL, | |
29309 | (int*)NULL, (int*)NULL); | |
29310 | ||
29311 | ; | |
29312 | return 0; | |
29313 | } | |
29314 | _ACEOF | |
29315 | rm -f conftest.$ac_objext | |
29316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29317 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29318 | ac_status=$? |
ac1cb8d3 VS |
29319 | grep -v '^ *+' conftest.er1 >conftest.err |
29320 | rm -f conftest.er1 | |
29321 | cat conftest.err >&5 | |
a848cd7e SC |
29322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29323 | (exit $ac_status); } && | |
6ebeb4c7 | 29324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29326 | (eval $ac_try) 2>&5 | |
29327 | ac_status=$? | |
29328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29329 | (exit $ac_status); }; } && | |
29330 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29332 | (eval $ac_try) 2>&5 | |
29333 | ac_status=$? | |
29334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29335 | (exit $ac_status); }; }; then | |
29336 | ||
29337 | cat >>confdefs.h <<\_ACEOF | |
29338 | #define HAVE_XSHAPE 1 | |
29339 | _ACEOF | |
29340 | ||
29341 | echo "$as_me:$LINENO: result: found" >&5 | |
29342 | echo "${ECHO_T}found" >&6 | |
29343 | ||
29344 | else | |
29345 | echo "$as_me: failed program was:" >&5 | |
29346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29347 | ||
29348 | ||
29349 | echo "$as_me:$LINENO: result: not found" >&5 | |
29350 | echo "${ECHO_T}not found" >&6 | |
29351 | ||
29352 | fi | |
ac1cb8d3 | 29353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29354 | CFLAGS="$save_CFLAGS" |
29355 | ||
29356 | fi | |
29357 | fi | |
29358 | ||
29359 | if test "$wxUSE_MAC" = 1; then | |
29360 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
29361 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
29362 | if test "$GCC" = yes; then | |
29363 | echo "$as_me:$LINENO: result: gcc" >&5 | |
29364 | echo "${ECHO_T}gcc" >&6 | |
29365 | CPPFLAGS_PASCAL="-fpascal-strings" | |
29366 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
29367 | echo "$as_me:$LINENO: result: xlc" >&5 | |
29368 | echo "${ECHO_T}xlc" >&6 | |
29369 | CPPFLAGS_PASCAL="-qmacpstr" | |
29370 | else | |
29371 | echo "$as_me:$LINENO: result: none" >&5 | |
29372 | echo "${ECHO_T}none" >&6 | |
29373 | fi | |
29374 | ||
1e9e8aba DE |
29375 | if test "x$wxUSE_UNIX" = "xyes"; then |
29376 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
29377 | else | |
29378 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
29379 | fi | |
a848cd7e | 29380 | |
a848cd7e SC |
29381 | TOOLKIT=MAC |
29382 | GUIDIST=MACX_DIST | |
dd21ced8 | 29383 | WXBASEPORT="_carbon" |
a848cd7e SC |
29384 | fi |
29385 | ||
29386 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
29387 | TOOLKIT=COCOA |
29388 | GUIDIST=COCOA_DIST | |
29389 | fi | |
29390 | ||
29391 | if test "$wxUSE_PM" = 1; then | |
29392 | TOOLKIT=PM | |
de59c161 RD |
29393 | GUIDIST=PM_DIST |
29394 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
29395 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
29396 | if test "${wx_cv_spbcdata+set}" = set; then | |
29397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29398 | else | |
29399 | ||
29400 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
29401 | /* confdefs.h. */ |
29402 | _ACEOF | |
29403 | cat confdefs.h >>conftest.$ac_ext | |
29404 | cat >>conftest.$ac_ext <<_ACEOF | |
29405 | /* end confdefs.h. */ | |
29406 | ||
29407 | #define INCL_PM | |
29408 | #include <os2.h> | |
29409 | ||
29410 | int | |
29411 | main () | |
29412 | { | |
29413 | ||
29414 | SPBCDATA test; | |
29415 | ||
29416 | ; | |
29417 | return 0; | |
29418 | } | |
29419 | _ACEOF | |
29420 | rm -f conftest.$ac_objext | |
29421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29422 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 29423 | ac_status=$? |
ac1cb8d3 VS |
29424 | grep -v '^ *+' conftest.er1 >conftest.err |
29425 | rm -f conftest.er1 | |
29426 | cat conftest.err >&5 | |
de59c161 RD |
29427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29428 | (exit $ac_status); } && | |
6ebeb4c7 | 29429 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29431 | (eval $ac_try) 2>&5 | |
29432 | ac_status=$? | |
29433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29434 | (exit $ac_status); }; } && | |
29435 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
29436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29437 | (eval $ac_try) 2>&5 | |
29438 | ac_status=$? | |
29439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29440 | (exit $ac_status); }; }; then | |
29441 | wx_cv_spbcdata=yes | |
29442 | else | |
29443 | echo "$as_me: failed program was:" >&5 | |
29444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29445 | ||
29446 | wx_cv_spbcdata=no | |
29447 | ||
29448 | fi | |
ac1cb8d3 | 29449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
29450 | |
29451 | ||
29452 | fi | |
29453 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
29454 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
29455 | ||
29456 | if test $wx_cv_spbcdata = "yes"; then | |
29457 | cat >>confdefs.h <<\_ACEOF | |
29458 | #define HAVE_SPBCDATA 1 | |
29459 | _ACEOF | |
29460 | ||
29461 | fi | |
a848cd7e SC |
29462 | fi |
29463 | ||
29464 | if test "$TOOLKIT" = "PM" ; then | |
29465 | TOOLKIT_DIR="os2" | |
29466 | else | |
29467 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
29468 | fi | |
29469 | ||
a848cd7e | 29470 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
29471 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
29472 | WIDGET_SET=univ | |
a848cd7e SC |
29473 | fi |
29474 | ||
29475 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
29476 | DISTDIR="wx\$(TOOLKIT)" | |
29477 | else | |
29478 | USE_GUI=0 | |
29479 | ||
29480 | TOOLKIT_DIR="base" | |
29481 | ||
29482 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 29483 | TOOLKIT="MSW" |
a848cd7e SC |
29484 | fi |
29485 | ||
a848cd7e SC |
29486 | GUIDIST="BASE_DIST" |
29487 | DISTDIR="wxBase" | |
29488 | fi | |
29489 | ||
29490 | ||
d12aef51 VZ |
29491 | if test "$wxUSE_GUI" = "yes"; then |
29492 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
29493 | ||
29494 | for ac_header in X11/Xlib.h | |
29495 | do | |
29496 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29497 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29498 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29499 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29500 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29502 | fi | |
29503 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29504 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29505 | else | |
29506 | # Is the header compilable? | |
29507 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29508 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29509 | cat >conftest.$ac_ext <<_ACEOF | |
29510 | /* confdefs.h. */ | |
29511 | _ACEOF | |
29512 | cat confdefs.h >>conftest.$ac_ext | |
29513 | cat >>conftest.$ac_ext <<_ACEOF | |
29514 | /* end confdefs.h. */ | |
29515 | $ac_includes_default | |
29516 | #include <$ac_header> | |
29517 | _ACEOF | |
29518 | rm -f conftest.$ac_objext | |
29519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29520 | (eval $ac_compile) 2>conftest.er1 | |
29521 | ac_status=$? | |
29522 | grep -v '^ *+' conftest.er1 >conftest.err | |
29523 | rm -f conftest.er1 | |
29524 | cat conftest.err >&5 | |
29525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29526 | (exit $ac_status); } && | |
29527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
29528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29529 | (eval $ac_try) 2>&5 | |
29530 | ac_status=$? | |
29531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29532 | (exit $ac_status); }; } && | |
29533 | { ac_try='test -s conftest.$ac_objext' | |
29534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29535 | (eval $ac_try) 2>&5 | |
29536 | ac_status=$? | |
29537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29538 | (exit $ac_status); }; }; then | |
29539 | ac_header_compiler=yes | |
29540 | else | |
29541 | echo "$as_me: failed program was:" >&5 | |
29542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29543 | ||
29544 | ac_header_compiler=no | |
29545 | fi | |
29546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
29548 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29549 | ||
29550 | # Is the header present? | |
29551 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29552 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29553 | cat >conftest.$ac_ext <<_ACEOF | |
29554 | /* confdefs.h. */ | |
29555 | _ACEOF | |
29556 | cat confdefs.h >>conftest.$ac_ext | |
29557 | cat >>conftest.$ac_ext <<_ACEOF | |
29558 | /* end confdefs.h. */ | |
29559 | #include <$ac_header> | |
29560 | _ACEOF | |
29561 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29562 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29563 | ac_status=$? | |
29564 | grep -v '^ *+' conftest.er1 >conftest.err | |
29565 | rm -f conftest.er1 | |
29566 | cat conftest.err >&5 | |
29567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29568 | (exit $ac_status); } >/dev/null; then | |
29569 | if test -s conftest.err; then | |
29570 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
29572 | else | |
29573 | ac_cpp_err= | |
29574 | fi | |
29575 | else | |
29576 | ac_cpp_err=yes | |
29577 | fi | |
29578 | if test -z "$ac_cpp_err"; then | |
29579 | ac_header_preproc=yes | |
29580 | else | |
29581 | echo "$as_me: failed program was:" >&5 | |
29582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29583 | ||
29584 | ac_header_preproc=no | |
29585 | fi | |
29586 | rm -f conftest.err conftest.$ac_ext | |
29587 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29588 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29589 | ||
29590 | # So? What about this header? | |
29591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
29592 | yes:no: ) | |
29593 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
29594 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
29595 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
29596 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
29597 | ac_header_preproc=yes | |
29598 | ;; | |
29599 | no:yes:* ) | |
29600 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
29601 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
29602 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
29603 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
29604 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
29605 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
29606 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
29607 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
29608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29609 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29610 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
29611 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
29612 | ( | |
29613 | cat <<\_ASBOX | |
29614 | ## ----------------------------------------- ## | |
29615 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29616 | ## ----------------------------------------- ## | |
29617 | _ASBOX | |
29618 | ) | | |
29619 | sed "s/^/$as_me: WARNING: /" >&2 | |
29620 | ;; | |
29621 | esac | |
29622 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29626 | else | |
29627 | eval "$as_ac_Header=\$ac_header_preproc" | |
29628 | fi | |
29629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29630 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29631 | ||
29632 | fi | |
29633 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29634 | cat >>confdefs.h <<_ACEOF | |
29635 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29636 | _ACEOF | |
29637 | ||
29638 | fi | |
29639 | ||
29640 | done | |
29641 | ||
29642 | ||
29643 | for ac_header in X11/XKBlib.h | |
29644 | do | |
29645 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29646 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29648 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29650 | else | |
29651 | cat >conftest.$ac_ext <<_ACEOF | |
29652 | /* confdefs.h. */ | |
29653 | _ACEOF | |
29654 | cat confdefs.h >>conftest.$ac_ext | |
29655 | cat >>conftest.$ac_ext <<_ACEOF | |
29656 | /* end confdefs.h. */ | |
29657 | ||
29658 | #if HAVE_X11_XLIB_H | |
29659 | #include <X11/Xlib.h> | |
29660 | #endif | |
29661 | ||
29662 | ||
29663 | #include <$ac_header> | |
29664 | _ACEOF | |
29665 | rm -f conftest.$ac_objext | |
29666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29667 | (eval $ac_compile) 2>conftest.er1 | |
29668 | ac_status=$? | |
29669 | grep -v '^ *+' conftest.er1 >conftest.err | |
29670 | rm -f conftest.er1 | |
29671 | cat conftest.err >&5 | |
29672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29673 | (exit $ac_status); } && | |
29674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
29675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29676 | (eval $ac_try) 2>&5 | |
29677 | ac_status=$? | |
29678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29679 | (exit $ac_status); }; } && | |
29680 | { ac_try='test -s conftest.$ac_objext' | |
29681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29682 | (eval $ac_try) 2>&5 | |
29683 | ac_status=$? | |
29684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29685 | (exit $ac_status); }; }; then | |
29686 | eval "$as_ac_Header=yes" | |
29687 | else | |
29688 | echo "$as_me: failed program was:" >&5 | |
29689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29690 | ||
29691 | eval "$as_ac_Header=no" | |
29692 | fi | |
29693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29694 | fi | |
29695 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29696 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29697 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29698 | cat >>confdefs.h <<_ACEOF | |
29699 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29700 | _ACEOF | |
29701 | ||
29702 | fi | |
29703 | ||
29704 | done | |
29705 | ||
29706 | fi | |
29707 | fi | |
29708 | ||
a848cd7e SC |
29709 | |
29710 | ||
29711 | IODBC_C_SRC="" | |
29712 | ||
29713 | ||
29714 | if test "$TOOLKIT" != "MSW" ; then | |
29715 | ||
29716 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
29717 | ||
29718 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29719 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
29720 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
29721 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29723 | fi | |
29724 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
29725 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
29726 | else | |
29727 | # Is the header compilable? | |
29728 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
29729 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
29730 | cat >conftest.$ac_ext <<_ACEOF | |
29731 | /* confdefs.h. */ | |
29732 | _ACEOF | |
29733 | cat confdefs.h >>conftest.$ac_ext | |
29734 | cat >>conftest.$ac_ext <<_ACEOF | |
29735 | /* end confdefs.h. */ | |
29736 | $ac_includes_default | |
29737 | #include <sql.h> | |
29738 | _ACEOF | |
29739 | rm -f conftest.$ac_objext | |
29740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29741 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29742 | ac_status=$? |
ac1cb8d3 VS |
29743 | grep -v '^ *+' conftest.er1 >conftest.err |
29744 | rm -f conftest.er1 | |
29745 | cat conftest.err >&5 | |
a848cd7e SC |
29746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29747 | (exit $ac_status); } && | |
6ebeb4c7 | 29748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29750 | (eval $ac_try) 2>&5 | |
29751 | ac_status=$? | |
29752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29753 | (exit $ac_status); }; } && | |
29754 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29756 | (eval $ac_try) 2>&5 | |
29757 | ac_status=$? | |
29758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29759 | (exit $ac_status); }; }; then | |
29760 | ac_header_compiler=yes | |
29761 | else | |
29762 | echo "$as_me: failed program was:" >&5 | |
29763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29764 | ||
29765 | ac_header_compiler=no | |
29766 | fi | |
ac1cb8d3 | 29767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29768 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29769 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29770 | ||
29771 | # Is the header present? | |
29772 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
29773 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
29774 | cat >conftest.$ac_ext <<_ACEOF | |
29775 | /* confdefs.h. */ | |
29776 | _ACEOF | |
29777 | cat confdefs.h >>conftest.$ac_ext | |
29778 | cat >>conftest.$ac_ext <<_ACEOF | |
29779 | /* end confdefs.h. */ | |
29780 | #include <sql.h> | |
29781 | _ACEOF | |
29782 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29783 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29784 | ac_status=$? | |
29785 | grep -v '^ *+' conftest.er1 >conftest.err | |
29786 | rm -f conftest.er1 | |
29787 | cat conftest.err >&5 | |
29788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29789 | (exit $ac_status); } >/dev/null; then | |
29790 | if test -s conftest.err; then | |
29791 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 29792 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
29793 | else |
29794 | ac_cpp_err= | |
29795 | fi | |
29796 | else | |
29797 | ac_cpp_err=yes | |
29798 | fi | |
29799 | if test -z "$ac_cpp_err"; then | |
29800 | ac_header_preproc=yes | |
29801 | else | |
29802 | echo "$as_me: failed program was:" >&5 | |
29803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29804 | ||
29805 | ac_header_preproc=no | |
29806 | fi | |
29807 | rm -f conftest.err conftest.$ac_ext | |
29808 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29809 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29810 | ||
29811 | # So? What about this header? | |
ac1cb8d3 VS |
29812 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
29813 | yes:no: ) | |
a848cd7e SC |
29814 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
29815 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
29816 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
29817 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
29818 | ac_header_preproc=yes | |
a848cd7e | 29819 | ;; |
ac1cb8d3 | 29820 | no:yes:* ) |
a848cd7e SC |
29821 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
29822 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
29823 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
29824 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
29825 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
29826 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
29827 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
29828 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
29829 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
29830 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
29831 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
29832 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
29833 | ( |
29834 | cat <<\_ASBOX | |
ac1cb8d3 VS |
29835 | ## ----------------------------------------- ## |
29836 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29837 | ## ----------------------------------------- ## | |
a848cd7e SC |
29838 | _ASBOX |
29839 | ) | | |
29840 | sed "s/^/$as_me: WARNING: /" >&2 | |
29841 | ;; | |
29842 | esac | |
29843 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
29844 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
29845 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29847 | else | |
29848 | ac_cv_header_sql_h=$ac_header_preproc | |
29849 | fi | |
29850 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
29851 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
29852 | ||
29853 | fi | |
29854 | if test $ac_cv_header_sql_h = yes; then | |
29855 | found_sql_h=1 | |
29856 | fi | |
29857 | ||
29858 | ||
29859 | if test "x$found_sql_h" = "x1" ; then | |
29860 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
29861 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
29862 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
29863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29864 | else | |
29865 | ac_check_lib_save_LIBS=$LIBS | |
29866 | LIBS="-liodbc $LIBS" | |
29867 | cat >conftest.$ac_ext <<_ACEOF | |
29868 | /* confdefs.h. */ | |
29869 | _ACEOF | |
29870 | cat confdefs.h >>conftest.$ac_ext | |
29871 | cat >>conftest.$ac_ext <<_ACEOF | |
29872 | /* end confdefs.h. */ | |
29873 | ||
29874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29875 | #ifdef __cplusplus | |
29876 | extern "C" | |
29877 | #endif | |
29878 | /* We use char because int might match the return type of a gcc2 | |
29879 | builtin and then its argument prototype would still apply. */ | |
29880 | char SQLAllocEnv (); | |
29881 | int | |
29882 | main () | |
29883 | { | |
29884 | SQLAllocEnv (); | |
29885 | ; | |
29886 | return 0; | |
29887 | } | |
29888 | _ACEOF | |
29889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29891 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29892 | ac_status=$? |
ac1cb8d3 VS |
29893 | grep -v '^ *+' conftest.er1 >conftest.err |
29894 | rm -f conftest.er1 | |
29895 | cat conftest.err >&5 | |
a848cd7e SC |
29896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29897 | (exit $ac_status); } && | |
6ebeb4c7 | 29898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29900 | (eval $ac_try) 2>&5 | |
29901 | ac_status=$? | |
29902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29903 | (exit $ac_status); }; } && | |
29904 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29906 | (eval $ac_try) 2>&5 | |
29907 | ac_status=$? | |
29908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29909 | (exit $ac_status); }; }; then | |
29910 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
29911 | else | |
29912 | echo "$as_me: failed program was:" >&5 | |
29913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29914 | ||
29915 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
29916 | fi | |
ac1cb8d3 VS |
29917 | rm -f conftest.err conftest.$ac_objext \ |
29918 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29919 | LIBS=$ac_check_lib_save_LIBS |
29920 | fi | |
29921 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
29922 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
29923 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
29924 | ODBC_LINK=" -liodbc" | |
29925 | else | |
29926 | ||
29927 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
29928 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
29929 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
29930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29931 | else | |
29932 | ac_check_lib_save_LIBS=$LIBS | |
29933 | LIBS="-lunixodbc $LIBS" | |
29934 | cat >conftest.$ac_ext <<_ACEOF | |
29935 | /* confdefs.h. */ | |
29936 | _ACEOF | |
29937 | cat confdefs.h >>conftest.$ac_ext | |
29938 | cat >>conftest.$ac_ext <<_ACEOF | |
29939 | /* end confdefs.h. */ | |
29940 | ||
29941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29942 | #ifdef __cplusplus | |
29943 | extern "C" | |
29944 | #endif | |
29945 | /* We use char because int might match the return type of a gcc2 | |
29946 | builtin and then its argument prototype would still apply. */ | |
29947 | char SQLAllocEnv (); | |
29948 | int | |
29949 | main () | |
29950 | { | |
29951 | SQLAllocEnv (); | |
29952 | ; | |
29953 | return 0; | |
29954 | } | |
29955 | _ACEOF | |
29956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29958 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29959 | ac_status=$? |
ac1cb8d3 VS |
29960 | grep -v '^ *+' conftest.er1 >conftest.err |
29961 | rm -f conftest.er1 | |
29962 | cat conftest.err >&5 | |
a848cd7e SC |
29963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29964 | (exit $ac_status); } && | |
6ebeb4c7 | 29965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29967 | (eval $ac_try) 2>&5 | |
29968 | ac_status=$? | |
29969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29970 | (exit $ac_status); }; } && | |
29971 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29973 | (eval $ac_try) 2>&5 | |
29974 | ac_status=$? | |
29975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29976 | (exit $ac_status); }; }; then | |
29977 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
29978 | else | |
29979 | echo "$as_me: failed program was:" >&5 | |
29980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29981 | ||
29982 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
29983 | fi | |
ac1cb8d3 VS |
29984 | rm -f conftest.err conftest.$ac_objext \ |
29985 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29986 | LIBS=$ac_check_lib_save_LIBS |
29987 | fi | |
29988 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
29989 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
29990 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
29991 | ODBC_LINK=" -lunixodbc" | |
29992 | else | |
29993 | ||
29994 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
29995 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
29996 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
29997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29998 | else | |
29999 | ac_check_lib_save_LIBS=$LIBS | |
30000 | LIBS="-lodbc $LIBS" | |
30001 | cat >conftest.$ac_ext <<_ACEOF | |
30002 | /* confdefs.h. */ | |
30003 | _ACEOF | |
30004 | cat confdefs.h >>conftest.$ac_ext | |
30005 | cat >>conftest.$ac_ext <<_ACEOF | |
30006 | /* end confdefs.h. */ | |
30007 | ||
30008 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30009 | #ifdef __cplusplus | |
30010 | extern "C" | |
30011 | #endif | |
30012 | /* We use char because int might match the return type of a gcc2 | |
30013 | builtin and then its argument prototype would still apply. */ | |
30014 | char SQLAllocEnv (); | |
30015 | int | |
30016 | main () | |
30017 | { | |
30018 | SQLAllocEnv (); | |
30019 | ; | |
30020 | return 0; | |
30021 | } | |
30022 | _ACEOF | |
30023 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30025 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30026 | ac_status=$? |
ac1cb8d3 VS |
30027 | grep -v '^ *+' conftest.er1 >conftest.err |
30028 | rm -f conftest.er1 | |
30029 | cat conftest.err >&5 | |
a848cd7e SC |
30030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30031 | (exit $ac_status); } && | |
6ebeb4c7 | 30032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30034 | (eval $ac_try) 2>&5 | |
30035 | ac_status=$? | |
30036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30037 | (exit $ac_status); }; } && | |
30038 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30040 | (eval $ac_try) 2>&5 | |
30041 | ac_status=$? | |
30042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30043 | (exit $ac_status); }; }; then | |
30044 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
30045 | else | |
30046 | echo "$as_me: failed program was:" >&5 | |
30047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30048 | ||
30049 | ac_cv_lib_odbc_SQLAllocEnv=no | |
30050 | fi | |
ac1cb8d3 VS |
30051 | rm -f conftest.err conftest.$ac_objext \ |
30052 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30053 | LIBS=$ac_check_lib_save_LIBS |
30054 | fi | |
30055 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
30056 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
30057 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
30058 | ODBC_LINK=" -lodbc" | |
30059 | fi | |
30060 | ||
30061 | ||
30062 | fi | |
30063 | ||
30064 | ||
30065 | fi | |
30066 | ||
30067 | fi | |
30068 | if test "x$ODBC_LINK" = "x" ; then | |
30069 | if test "$wxUSE_ODBC" = "sys" ; then | |
30070 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
30071 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
30072 | { (exit 1); exit 1; }; } | |
30073 | else | |
30074 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
30075 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
30076 | wxUSE_ODBC=builtin | |
30077 | fi | |
30078 | else | |
30079 | wxUSE_ODBC=sys | |
30080 | fi | |
30081 | fi | |
a848cd7e | 30082 | |
2da0c077 RD |
30083 | if test "$wxUSE_ODBC" = "builtin" ; then |
30084 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30085 | #define wxUSE_BUILTIN_IODBC 1 |
30086 | _ACEOF | |
30087 | ||
a848cd7e SC |
30088 | fi |
30089 | fi | |
30090 | ||
2da0c077 RD |
30091 | if test "$wxUSE_ODBC" != "no" ; then |
30092 | cat >>confdefs.h <<\_ACEOF | |
30093 | #define wxUSE_ODBC 1 | |
30094 | _ACEOF | |
30095 | ||
30096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
30097 | ||
30098 | WXODBCFLAG="-D_IODBC_" | |
30099 | fi | |
a848cd7e | 30100 | |
01cb68df | 30101 | |
a848cd7e | 30102 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 30103 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
30104 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
30105 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
30106 | ||
0ad5d837 VZ |
30107 | ac_find_libraries= |
30108 | for ac_dir in $SEARCH_LIB; | |
30109 | do | |
30110 | for ac_extension in a so sl dylib dll.a; do | |
30111 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
30112 | ac_find_libraries=$ac_dir | |
30113 | break 2 | |
30114 | fi | |
30115 | done | |
30116 | done | |
30117 | ||
a848cd7e SC |
30118 | if test "$ac_find_libraries" != "" ; then |
30119 | ||
0ad5d837 | 30120 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30121 | ac_path_to_link="" |
30122 | else | |
0ad5d837 VZ |
30123 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30124 | result=$? | |
30125 | if test $result = 0; then | |
30126 | ac_path_to_link="" | |
30127 | else | |
30128 | ac_path_to_link=" -L$ac_find_libraries" | |
30129 | fi | |
a848cd7e SC |
30130 | fi |
30131 | ||
30132 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
30133 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
30134 | fi | |
30135 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
30136 | echo "$as_me:$LINENO: result: yes" >&5 | |
30137 | echo "${ECHO_T}yes" >&6 | |
30138 | ||
30139 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
30140 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
30141 | ||
0ad5d837 VZ |
30142 | ac_find_libraries= |
30143 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30144 | do |
3eca31dc | 30145 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30146 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
30147 | ac_find_libraries=$ac_dir | |
30148 | break 2 | |
30149 | fi | |
30150 | done | |
30151 | done | |
30152 | ||
30153 | if test "$ac_find_libraries" != "" ; then | |
30154 | echo "$as_me:$LINENO: result: yes" >&5 | |
30155 | echo "${ECHO_T}yes" >&6 | |
30156 | ||
30157 | for ac_header in X11/extensions/xf86vmode.h | |
30158 | do | |
30159 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30160 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30164 | else | |
30165 | cat >conftest.$ac_ext <<_ACEOF | |
30166 | /* confdefs.h. */ | |
30167 | _ACEOF | |
30168 | cat confdefs.h >>conftest.$ac_ext | |
30169 | cat >>conftest.$ac_ext <<_ACEOF | |
30170 | /* end confdefs.h. */ | |
30171 | ||
30172 | #if HAVE_X11_XLIB_H | |
30173 | #include <X11/Xlib.h> | |
30174 | #endif | |
30175 | ||
30176 | ||
30177 | #include <$ac_header> | |
30178 | _ACEOF | |
30179 | rm -f conftest.$ac_objext | |
30180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30181 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30182 | ac_status=$? |
ac1cb8d3 VS |
30183 | grep -v '^ *+' conftest.er1 >conftest.err |
30184 | rm -f conftest.er1 | |
30185 | cat conftest.err >&5 | |
a848cd7e SC |
30186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30187 | (exit $ac_status); } && | |
6ebeb4c7 | 30188 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30190 | (eval $ac_try) 2>&5 | |
30191 | ac_status=$? | |
30192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30193 | (exit $ac_status); }; } && | |
30194 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30196 | (eval $ac_try) 2>&5 | |
30197 | ac_status=$? | |
30198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30199 | (exit $ac_status); }; }; then | |
30200 | eval "$as_ac_Header=yes" | |
30201 | else | |
30202 | echo "$as_me: failed program was:" >&5 | |
30203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30204 | ||
30205 | eval "$as_ac_Header=no" | |
30206 | fi | |
ac1cb8d3 | 30207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30208 | fi |
30209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30210 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30211 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30212 | cat >>confdefs.h <<_ACEOF | |
30213 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30214 | _ACEOF | |
30215 | ||
30216 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
30217 | ||
30218 | fi | |
30219 | ||
30220 | done | |
30221 | ||
30222 | else | |
30223 | echo "$as_me:$LINENO: result: no" >&5 | |
30224 | echo "${ECHO_T}no" >&6 | |
30225 | fi | |
30226 | ||
30227 | else | |
30228 | echo "$as_me:$LINENO: result: no" >&5 | |
30229 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
30230 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
30231 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
30232 | wxUSE_DISPLAY="no" |
30233 | fi | |
01cb68df RG |
30234 | elif test "$wxUSE_MSW" = 1; then |
30235 | ||
30236 | ||
30237 | for ac_header in multimon.h ddraw.h | |
30238 | do | |
30239 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 30240 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
30241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
30242 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 30244 | else |
5294a27e | 30245 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
30246 | /* confdefs.h. */ |
30247 | _ACEOF | |
30248 | cat confdefs.h >>conftest.$ac_ext | |
30249 | cat >>conftest.$ac_ext <<_ACEOF | |
30250 | /* end confdefs.h. */ | |
5294a27e VZ |
30251 | #include <windows.h> |
30252 | ||
01cb68df RG |
30253 | #include <$ac_header> |
30254 | _ACEOF | |
30255 | rm -f conftest.$ac_objext | |
30256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30257 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 30258 | ac_status=$? |
ac1cb8d3 VS |
30259 | grep -v '^ *+' conftest.er1 >conftest.err |
30260 | rm -f conftest.er1 | |
30261 | cat conftest.err >&5 | |
01cb68df RG |
30262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30263 | (exit $ac_status); } && | |
6ebeb4c7 | 30264 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30266 | (eval $ac_try) 2>&5 | |
30267 | ac_status=$? | |
30268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30269 | (exit $ac_status); }; } && | |
30270 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
30271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30272 | (eval $ac_try) 2>&5 | |
30273 | ac_status=$? | |
30274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30275 | (exit $ac_status); }; }; then | |
5294a27e | 30276 | eval "$as_ac_Header=yes" |
01cb68df RG |
30277 | else |
30278 | echo "$as_me: failed program was:" >&5 | |
30279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30280 | ||
5294a27e | 30281 | eval "$as_ac_Header=no" |
01cb68df | 30282 | fi |
ac1cb8d3 | 30283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
30284 | fi |
30285 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30286 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
30287 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
30288 | cat >>confdefs.h <<_ACEOF | |
30289 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30290 | _ACEOF | |
30291 | ||
30292 | else | |
30293 | ||
5294a27e VZ |
30294 | wxUSE_DISPLAY="no" |
30295 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 30296 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
30297 | |
30298 | fi | |
30299 | ||
30300 | done | |
30301 | ||
a848cd7e SC |
30302 | fi |
30303 | fi | |
30304 | ||
30305 | ||
30306 | USE_OPENGL=0 | |
30307 | if test "$wxUSE_OPENGL" = "yes"; then | |
30308 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
30309 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
30310 | elif test "$wxUSE_MSW" = 1; then | |
30311 | OPENGL_LIBS="-lopengl32 -lglu32" | |
30312 | else | |
30313 | ||
30314 | ||
30315 | ac_find_includes= | |
30316 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
30317 | do | |
30318 | if test -f "$ac_dir/GL/gl.h"; then | |
30319 | ac_find_includes=$ac_dir | |
30320 | break | |
30321 | fi | |
30322 | done | |
30323 | ||
30324 | if test "$ac_find_includes" != "" ; then | |
30325 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
30326 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
30327 | ||
30328 | if test "x$ac_find_includes" = "x/usr/include"; then | |
30329 | ac_path_to_include="" | |
30330 | else | |
30331 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
30332 | result=$? | |
30333 | if test $result = 0; then | |
30334 | ac_path_to_include="" | |
30335 | else | |
30336 | ac_path_to_include=" -I$ac_find_includes" | |
30337 | fi | |
30338 | fi | |
30339 | ||
30340 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
30341 | fi | |
30342 | ||
30343 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30344 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
30345 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
30346 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30348 | fi | |
30349 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
30350 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
30351 | else | |
30352 | # Is the header compilable? | |
30353 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
30354 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
30355 | cat >conftest.$ac_ext <<_ACEOF | |
30356 | /* confdefs.h. */ | |
30357 | _ACEOF | |
30358 | cat confdefs.h >>conftest.$ac_ext | |
30359 | cat >>conftest.$ac_ext <<_ACEOF | |
30360 | /* end confdefs.h. */ | |
30361 | $ac_includes_default | |
30362 | #include <GL/gl.h> | |
30363 | _ACEOF | |
30364 | rm -f conftest.$ac_objext | |
30365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30366 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30367 | ac_status=$? |
ac1cb8d3 VS |
30368 | grep -v '^ *+' conftest.er1 >conftest.err |
30369 | rm -f conftest.er1 | |
30370 | cat conftest.err >&5 | |
a848cd7e SC |
30371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30372 | (exit $ac_status); } && | |
6ebeb4c7 | 30373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30375 | (eval $ac_try) 2>&5 | |
30376 | ac_status=$? | |
30377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30378 | (exit $ac_status); }; } && | |
30379 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30381 | (eval $ac_try) 2>&5 | |
30382 | ac_status=$? | |
30383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30384 | (exit $ac_status); }; }; then | |
30385 | ac_header_compiler=yes | |
30386 | else | |
30387 | echo "$as_me: failed program was:" >&5 | |
30388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30389 | ||
30390 | ac_header_compiler=no | |
30391 | fi | |
ac1cb8d3 | 30392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30393 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30394 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30395 | ||
30396 | # Is the header present? | |
30397 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
30398 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
30399 | cat >conftest.$ac_ext <<_ACEOF | |
30400 | /* confdefs.h. */ | |
30401 | _ACEOF | |
30402 | cat confdefs.h >>conftest.$ac_ext | |
30403 | cat >>conftest.$ac_ext <<_ACEOF | |
30404 | /* end confdefs.h. */ | |
30405 | #include <GL/gl.h> | |
30406 | _ACEOF | |
30407 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30408 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30409 | ac_status=$? | |
30410 | grep -v '^ *+' conftest.er1 >conftest.err | |
30411 | rm -f conftest.er1 | |
30412 | cat conftest.err >&5 | |
30413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30414 | (exit $ac_status); } >/dev/null; then | |
30415 | if test -s conftest.err; then | |
30416 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 30417 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
30418 | else |
30419 | ac_cpp_err= | |
30420 | fi | |
30421 | else | |
30422 | ac_cpp_err=yes | |
30423 | fi | |
30424 | if test -z "$ac_cpp_err"; then | |
30425 | ac_header_preproc=yes | |
30426 | else | |
30427 | echo "$as_me: failed program was:" >&5 | |
30428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30429 | ||
30430 | ac_header_preproc=no | |
30431 | fi | |
30432 | rm -f conftest.err conftest.$ac_ext | |
30433 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30434 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30435 | ||
30436 | # So? What about this header? | |
ac1cb8d3 VS |
30437 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
30438 | yes:no: ) | |
a848cd7e SC |
30439 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
30440 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
30441 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
30442 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
30443 | ac_header_preproc=yes | |
a848cd7e | 30444 | ;; |
ac1cb8d3 | 30445 | no:yes:* ) |
a848cd7e SC |
30446 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
30447 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
30448 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
30449 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
30450 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
30451 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
30452 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
30453 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
30454 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
30455 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
30456 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
30457 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
30458 | ( |
30459 | cat <<\_ASBOX | |
ac1cb8d3 VS |
30460 | ## ----------------------------------------- ## |
30461 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30462 | ## ----------------------------------------- ## | |
a848cd7e SC |
30463 | _ASBOX |
30464 | ) | | |
30465 | sed "s/^/$as_me: WARNING: /" >&2 | |
30466 | ;; | |
30467 | esac | |
30468 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
30469 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
30470 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30472 | else | |
30473 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
30474 | fi | |
30475 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
30476 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
30477 | ||
30478 | fi | |
30479 | if test $ac_cv_header_GL_gl_h = yes; then | |
30480 | ||
30481 | found_gl=0 | |
30482 | ||
30483 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
30484 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
30485 | ||
0ad5d837 VZ |
30486 | ac_find_libraries= |
30487 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30488 | do |
3eca31dc | 30489 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30490 | if test -f "$ac_dir/libGL.$ac_extension"; then |
30491 | ac_find_libraries=$ac_dir | |
30492 | break 2 | |
30493 | fi | |
30494 | done | |
30495 | done | |
30496 | ||
30497 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
30498 | echo "$as_me:$LINENO: result: yes" >&5 |
30499 | echo "${ECHO_T}yes" >&6 | |
30500 | ||
a848cd7e | 30501 | |
0ad5d837 | 30502 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30503 | ac_path_to_link="" |
30504 | else | |
0ad5d837 VZ |
30505 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30506 | result=$? | |
30507 | if test $result = 0; then | |
30508 | ac_path_to_link="" | |
30509 | else | |
30510 | ac_path_to_link=" -L$ac_find_libraries" | |
30511 | fi | |
a848cd7e SC |
30512 | fi |
30513 | ||
30514 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
30515 | LDFLAGS_GL="$ac_path_to_link" | |
30516 | fi | |
30517 | ||
69120ee4 VZ |
30518 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
30519 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 30520 | |
0ad5d837 VZ |
30521 | ac_find_libraries= |
30522 | for ac_dir in $SEARCH_LIB; | |
30523 | do | |
30524 | for ac_extension in a so sl dylib dll.a; do | |
30525 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
30526 | ac_find_libraries=$ac_dir | |
30527 | break 2 | |
30528 | fi | |
30529 | done | |
30530 | done | |
30531 | ||
a848cd7e SC |
30532 | if test "$ac_find_libraries" != "" ; then |
30533 | ||
0ad5d837 | 30534 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30535 | ac_path_to_link="" |
30536 | else | |
0ad5d837 VZ |
30537 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30538 | result=$? | |
30539 | if test $result = 0; then | |
30540 | ac_path_to_link="" | |
30541 | else | |
30542 | ac_path_to_link=" -L$ac_find_libraries" | |
30543 | fi | |
a848cd7e SC |
30544 | fi |
30545 | ||
30546 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
30547 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
30548 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
30549 | fi | |
30550 | ||
30551 | found_gl=1 | |
30552 | OPENGL_LIBS="-lGL -lGLU" | |
30553 | echo "$as_me:$LINENO: result: yes" >&5 | |
30554 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
30555 | else |
30556 | echo "$as_me:$LINENO: result: no" >&5 | |
30557 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 30558 | fi |
69120ee4 VZ |
30559 | else |
30560 | echo "$as_me:$LINENO: result: no" >&5 | |
30561 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
30562 | fi |
30563 | ||
30564 | if test "$found_gl" != 1; then | |
a848cd7e SC |
30565 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
30566 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
30567 | ||
0ad5d837 VZ |
30568 | ac_find_libraries= |
30569 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30570 | do |
3eca31dc | 30571 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30572 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
30573 | ac_find_libraries=$ac_dir | |
30574 | break 2 | |
30575 | fi | |
30576 | done | |
30577 | done | |
30578 | ||
30579 | if test "$ac_find_libraries" != "" ; then | |
30580 | ||
0ad5d837 | 30581 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30582 | ac_path_to_link="" |
30583 | else | |
0ad5d837 VZ |
30584 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30585 | result=$? | |
30586 | if test $result = 0; then | |
30587 | ac_path_to_link="" | |
30588 | else | |
30589 | ac_path_to_link=" -L$ac_find_libraries" | |
30590 | fi | |
a848cd7e SC |
30591 | fi |
30592 | ||
30593 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
30594 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
30595 | echo "$as_me:$LINENO: result: yes" >&5 | |
30596 | echo "${ECHO_T}yes" >&6 | |
30597 | else | |
30598 | echo "$as_me:$LINENO: result: no" >&5 | |
30599 | echo "${ECHO_T}no" >&6 | |
30600 | fi | |
30601 | fi | |
30602 | ||
30603 | fi | |
30604 | ||
30605 | ||
30606 | ||
30607 | if test "x$OPENGL_LIBS" = "x"; then | |
30608 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
30609 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
30610 | { (exit 1); exit 1; }; } | |
30611 | fi | |
30612 | fi | |
30613 | ||
30614 | if test "$wxUSE_OPENGL" = "yes"; then | |
30615 | USE_OPENGL=1 | |
30616 | cat >>confdefs.h <<\_ACEOF | |
30617 | #define wxUSE_OPENGL 1 | |
30618 | _ACEOF | |
30619 | ||
30620 | cat >>confdefs.h <<\_ACEOF | |
30621 | #define wxUSE_GLCANVAS 1 | |
30622 | _ACEOF | |
30623 | ||
30624 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
30625 | fi | |
30626 | fi | |
30627 | ||
a848cd7e SC |
30628 | |
30629 | if test -n "$TOOLKIT" ; then | |
30630 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
30631 | fi | |
30632 | ||
a848cd7e SC |
30633 | |
30634 | ||
30635 | if test "$wxUSE_SHARED" = "yes"; then | |
30636 | case "${host}" in | |
30637 | *-pc-msdosdjgpp ) | |
30638 | wxUSE_SHARED=no | |
30639 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
30640 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
30641 | ;; | |
30642 | esac | |
30643 | fi | |
30644 | ||
a848cd7e | 30645 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
30646 | |
30647 | ||
30648 | found_versioning=no | |
30649 | ||
30650 | ||
30651 | if test $found_versioning = no ; then | |
30652 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
30653 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
30654 | if test "${wx_cv_version_script+set}" = set; then | |
30655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30656 | else | |
30657 | ||
30658 | echo "VER_1 { *; };" >conftest.sym | |
30659 | echo "int main() { return 0; }" >conftest.cpp | |
30660 | ||
30661 | if { ac_try=' | |
30662 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30663 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
30664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30665 | (eval $ac_try) 2>&5 | |
30666 | ac_status=$? | |
30667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30668 | (exit $ac_status); }; } ; then | |
30669 | if test -s conftest.stderr ; then | |
30670 | wx_cv_version_script=no | |
30671 | else | |
30672 | wx_cv_version_script=yes | |
30673 | fi | |
30674 | else | |
30675 | wx_cv_version_script=no | |
30676 | fi | |
e5d4b470 MW |
30677 | |
30678 | if test $wx_cv_version_script = yes | |
30679 | then | |
30680 | echo "struct B { virtual ~B() { } }; \ | |
30681 | struct D : public B { }; \ | |
30682 | void F() { D d; }" > conftest.cpp | |
30683 | ||
30684 | if { ac_try=' | |
30685 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30686 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
30687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30688 | (eval $ac_try) 2>&5 | |
30689 | ac_status=$? | |
30690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30691 | (exit $ac_status); }; } && | |
30692 | { ac_try=' | |
30693 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30694 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
30695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30696 | (eval $ac_try) 2>&5 | |
30697 | ac_status=$? | |
30698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30699 | (exit $ac_status); }; } | |
30700 | then | |
30701 | if { ac_try=' | |
30702 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30703 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
30704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30705 | (eval $ac_try) 2>&5 | |
30706 | ac_status=$? | |
30707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30708 | (exit $ac_status); }; } | |
30709 | then | |
30710 | wx_cv_version_script=yes | |
30711 | else | |
30712 | wx_cv_version_script=no | |
30713 | fi | |
30714 | fi | |
30715 | fi | |
30716 | ||
a848cd7e | 30717 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 30718 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
30719 | |
30720 | fi | |
30721 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
30722 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
30723 | if test $wx_cv_version_script = yes ; then | |
30724 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
30725 | fi | |
30726 | fi | |
30727 | ||
30728 | ||
30729 | case "${host}" in | |
30730 | *-*-linux* | *-*-gnu* ) | |
30731 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 30732 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 30733 | ;; |
a848cd7e SC |
30734 | |
30735 | *-*-solaris2* ) | |
30736 | if test "$GCC" = yes ; then | |
30737 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
30738 | ||
30739 | saveLdflags="$LDFLAGS" | |
30740 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
30741 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
30742 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
30743 | cat >conftest.$ac_ext <<_ACEOF | |
30744 | /* confdefs.h. */ | |
30745 | _ACEOF | |
30746 | cat confdefs.h >>conftest.$ac_ext | |
30747 | cat >>conftest.$ac_ext <<_ACEOF | |
30748 | /* end confdefs.h. */ | |
30749 | ||
30750 | int | |
30751 | main () | |
30752 | { | |
30753 | ||
30754 | ; | |
30755 | return 0; | |
30756 | } | |
30757 | _ACEOF | |
30758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30760 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30761 | ac_status=$? |
ac1cb8d3 VS |
30762 | grep -v '^ *+' conftest.er1 >conftest.err |
30763 | rm -f conftest.er1 | |
30764 | cat conftest.err >&5 | |
a848cd7e SC |
30765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30766 | (exit $ac_status); } && | |
6ebeb4c7 | 30767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
30773 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30775 | (eval $ac_try) 2>&5 | |
30776 | ac_status=$? | |
30777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30778 | (exit $ac_status); }; }; then | |
30779 | ||
30780 | echo "$as_me:$LINENO: result: yes" >&5 | |
30781 | echo "${ECHO_T}yes" >&6 | |
30782 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 30783 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
30784 | |
30785 | else | |
30786 | echo "$as_me: failed program was:" >&5 | |
30787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30788 | ||
30789 | ||
30790 | echo "$as_me:$LINENO: result: no" >&5 | |
30791 | echo "${ECHO_T}no" >&6 | |
30792 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
30793 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
30794 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
30795 | cat >conftest.$ac_ext <<_ACEOF | |
30796 | /* confdefs.h. */ | |
30797 | _ACEOF | |
30798 | cat confdefs.h >>conftest.$ac_ext | |
30799 | cat >>conftest.$ac_ext <<_ACEOF | |
30800 | /* end confdefs.h. */ | |
30801 | ||
30802 | int | |
30803 | main () | |
30804 | { | |
30805 | ||
30806 | ; | |
30807 | return 0; | |
30808 | } | |
30809 | _ACEOF | |
30810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30812 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30813 | ac_status=$? |
ac1cb8d3 VS |
30814 | grep -v '^ *+' conftest.er1 >conftest.err |
30815 | rm -f conftest.er1 | |
30816 | cat conftest.err >&5 | |
a848cd7e SC |
30817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30818 | (exit $ac_status); } && | |
6ebeb4c7 | 30819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30821 | (eval $ac_try) 2>&5 | |
30822 | ac_status=$? | |
30823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30824 | (exit $ac_status); }; } && | |
30825 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30827 | (eval $ac_try) 2>&5 | |
30828 | ac_status=$? | |
30829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30830 | (exit $ac_status); }; }; then | |
30831 | ||
ffa0583f | 30832 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 30833 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
30834 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
30835 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
30836 | ||
a848cd7e SC |
30837 | else |
30838 | echo "$as_me: failed program was:" >&5 | |
30839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30840 | ||
30841 | ||
30842 | echo "$as_me:$LINENO: result: no" >&5 | |
30843 | echo "${ECHO_T}no" >&6 | |
30844 | ||
30845 | fi | |
ac1cb8d3 VS |
30846 | rm -f conftest.err conftest.$ac_objext \ |
30847 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30848 | |
30849 | fi | |
ac1cb8d3 VS |
30850 | rm -f conftest.err conftest.$ac_objext \ |
30851 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30852 | LDFLAGS="$saveLdflags" |
30853 | else | |
a848cd7e | 30854 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 30855 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
30856 | fi |
30857 | ;; | |
30858 | ||
cfda0ea8 | 30859 | *-*-darwin* ) |
0caebc27 MW |
30860 | install_name_tool=`which install_name_tool` |
30861 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
30862 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
30863 | cat <<EOF >change-install-names | |
a848cd7e SC |
30864 | #!/bin/sh |
30865 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
30866 | inst_cmd="install_name_tool " | |
30867 | for i in \${libnames} ; do | |
30868 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
30869 | done | |
30870 | \${inst_cmd} \${3} | |
30871 | EOF | |
0caebc27 MW |
30872 | chmod +x change-install-names |
30873 | fi | |
a848cd7e SC |
30874 | ;; |
30875 | ||
30876 | *-*-cygwin* | *-*-mingw32* ) | |
30877 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
30878 | ;; | |
30879 | ||
81f90336 MW |
30880 | *-*-hpux* ) |
30881 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
30882 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
30883 | ;; | |
30884 | ||
a848cd7e | 30885 | esac |
ceec2216 | 30886 | |
ffa0583f RL |
30887 | if test $wxUSE_RPATH = "no"; then |
30888 | SAMPLES_RPATH_FLAG='' | |
30889 | SAMPLES_RPATH_POSTLINK='' | |
30890 | WXCONFIG_RPATH='' | |
30891 | fi | |
30892 | ||
30893 | SHARED=1 | |
30894 | ||
30895 | else | |
30896 | ||
ceec2216 RL |
30897 | config_linkage_component="-static" |
30898 | SHARED=0 | |
ffa0583f | 30899 | |
ceec2216 | 30900 | fi |
a848cd7e | 30901 | |
a848cd7e | 30902 | |
ceec2216 RL |
30903 | UNICODE=0 |
30904 | lib_unicode_suffix= | |
30905 | WX_CHARTYPE="ansi" | |
30906 | if test "$wxUSE_UNICODE" = "yes"; then | |
30907 | lib_unicode_suffix=u | |
30908 | WX_CHARTYPE="unicode" | |
30909 | UNICODE=1 | |
a848cd7e SC |
30910 | fi |
30911 | ||
ceec2216 RL |
30912 | lib_debug_suffix= |
30913 | WX_DEBUGTYPE="release" | |
30914 | DEBUG_FLAG=0 | |
30915 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
30916 | lib_debug_suffix=d | |
30917 | WX_DEBUGTYPE="debug" | |
30918 | DEBUG_FLAG=1 | |
30919 | fi | |
a848cd7e | 30920 | |
ceec2216 RL |
30921 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
30922 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 30923 | |
ceec2216 RL |
30924 | DEBUG_INFO=0 |
30925 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
30926 | DEBUG_INFO=1 | |
30927 | fi | |
a848cd7e | 30928 | |
ceec2216 | 30929 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 30930 | |
ceec2216 | 30931 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 30932 | |
ceec2216 | 30933 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 30934 | |
ceec2216 RL |
30935 | if test "$cross_compiling" = "yes"; then |
30936 | HOST_SUFFIX="-$host_alias" | |
30937 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
30938 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
30939 | fi |
30940 | ||
dd21ced8 | 30941 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
30942 | if test "${TOOLKIT_DIR}" = "os2"; then |
30943 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
30944 | else | |
30945 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
30946 | fi | |
ceec2216 RL |
30947 | |
30948 | ||
30949 | ||
1d1af5ea DE |
30950 | if test "$wxUSE_COCOA" = 1; then |
30951 | ||
30952 | ||
30953 | ac_ext=c | |
30954 | ac_cpp='$CPP $CPPFLAGS' | |
30955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30958 | ||
30959 | ac_ext=m | |
30960 | ||
30961 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
30962 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
30963 | cat >conftest.$ac_ext <<_ACEOF | |
30964 | /* confdefs.h. */ | |
30965 | _ACEOF | |
30966 | cat confdefs.h >>conftest.$ac_ext | |
30967 | cat >>conftest.$ac_ext <<_ACEOF | |
30968 | /* end confdefs.h. */ | |
30969 | #include <AppKit/NSEvent.h> | |
30970 | #include <CoreFoundation/CoreFoundation.h> | |
30971 | ||
30972 | int | |
30973 | main () | |
30974 | { | |
30975 | ||
30976 | ; | |
30977 | return 0; | |
30978 | } | |
30979 | _ACEOF | |
30980 | rm -f conftest.$ac_objext | |
30981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30982 | (eval $ac_compile) 2>conftest.er1 | |
30983 | ac_status=$? | |
30984 | grep -v '^ *+' conftest.er1 >conftest.err | |
30985 | rm -f conftest.er1 | |
30986 | cat conftest.err >&5 | |
30987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30988 | (exit $ac_status); } && | |
6ebeb4c7 | 30989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
30990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30991 | (eval $ac_try) 2>&5 | |
30992 | ac_status=$? | |
30993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30994 | (exit $ac_status); }; } && | |
30995 | { ac_try='test -s conftest.$ac_objext' | |
30996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30997 | (eval $ac_try) 2>&5 | |
30998 | ac_status=$? | |
30999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31000 | (exit $ac_status); }; }; then | |
31001 | echo "$as_me:$LINENO: result: no" >&5 | |
31002 | echo "${ECHO_T}no" >&6 | |
31003 | else | |
31004 | echo "$as_me: failed program was:" >&5 | |
31005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31006 | ||
31007 | echo "$as_me:$LINENO: result: yes" >&5 | |
31008 | echo "${ECHO_T}yes" >&6 | |
31009 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
31010 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
31011 | cat >conftest.$ac_ext <<_ACEOF | |
31012 | /* confdefs.h. */ | |
31013 | _ACEOF | |
31014 | cat confdefs.h >>conftest.$ac_ext | |
31015 | cat >>conftest.$ac_ext <<_ACEOF | |
31016 | /* end confdefs.h. */ | |
31017 | #define __Point__ 1 | |
31018 | #include <AppKit/NSEvent.h> | |
31019 | #include <CoreFoundation/CoreFoundation.h> | |
31020 | ||
31021 | int | |
31022 | main () | |
31023 | { | |
31024 | ||
31025 | ; | |
31026 | return 0; | |
31027 | } | |
31028 | _ACEOF | |
31029 | rm -f conftest.$ac_objext | |
31030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31031 | (eval $ac_compile) 2>conftest.er1 | |
31032 | ac_status=$? | |
31033 | grep -v '^ *+' conftest.er1 >conftest.err | |
31034 | rm -f conftest.er1 | |
31035 | cat conftest.err >&5 | |
31036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31037 | (exit $ac_status); } && | |
6ebeb4c7 | 31038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
31039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31040 | (eval $ac_try) 2>&5 | |
31041 | ac_status=$? | |
31042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31043 | (exit $ac_status); }; } && | |
31044 | { ac_try='test -s conftest.$ac_objext' | |
31045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31046 | (eval $ac_try) 2>&5 | |
31047 | ac_status=$? | |
31048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31049 | (exit $ac_status); }; }; then | |
31050 | echo "$as_me:$LINENO: result: yes" >&5 | |
31051 | echo "${ECHO_T}yes" >&6 | |
31052 | cat >>confdefs.h <<\_ACEOF | |
31053 | #define __Point__ 1 | |
31054 | _ACEOF | |
31055 | ||
31056 | ||
31057 | else | |
31058 | echo "$as_me: failed program was:" >&5 | |
31059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31060 | ||
31061 | { { echo "$as_me:$LINENO: error: no | |
31062 | See \`config.log' for more details." >&5 | |
31063 | echo "$as_me: error: no | |
31064 | See \`config.log' for more details." >&2;} | |
31065 | { (exit 1); exit 1; }; } | |
31066 | ||
31067 | fi | |
31068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31069 | ||
31070 | fi | |
31071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31072 | ac_ext=c | |
31073 | ac_cpp='$CPP $CPPFLAGS' | |
31074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31077 | ||
31078 | fi | |
31079 | ||
a848cd7e | 31080 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
31081 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
31082 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 31083 | |
a848cd7e | 31084 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
31085 | |
31086 | # Extract the first word of "Rez", so it can be a program name with args. | |
31087 | set dummy Rez; ac_word=$2 | |
31088 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31090 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
31091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31092 | else | |
31093 | if test -n "$RESCOMP"; then | |
31094 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
31095 | else | |
31096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31097 | for as_dir in $PATH | |
31098 | do | |
31099 | IFS=$as_save_IFS | |
31100 | test -z "$as_dir" && as_dir=. | |
31101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31103 | ac_cv_prog_RESCOMP="Rez" | |
31104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31105 | break 2 | |
31106 | fi | |
31107 | done | |
31108 | done | |
31109 | ||
31110 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
31111 | fi | |
31112 | fi | |
31113 | RESCOMP=$ac_cv_prog_RESCOMP | |
31114 | if test -n "$RESCOMP"; then | |
31115 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
31116 | echo "${ECHO_T}$RESCOMP" >&6 | |
31117 | else | |
31118 | echo "$as_me:$LINENO: result: no" >&5 | |
31119 | echo "${ECHO_T}no" >&6 | |
31120 | fi | |
31121 | ||
31122 | # Extract the first word of "DeRez", so it can be a program name with args. | |
31123 | set dummy DeRez; ac_word=$2 | |
31124 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31126 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
31127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31128 | else | |
31129 | if test -n "$DEREZ"; then | |
31130 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
31131 | else | |
31132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31133 | for as_dir in $PATH | |
31134 | do | |
31135 | IFS=$as_save_IFS | |
31136 | test -z "$as_dir" && as_dir=. | |
31137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31138 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31139 | ac_cv_prog_DEREZ="DeRez" | |
31140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31141 | break 2 | |
31142 | fi | |
31143 | done | |
31144 | done | |
31145 | ||
31146 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
31147 | fi | |
31148 | fi | |
31149 | DEREZ=$ac_cv_prog_DEREZ | |
31150 | if test -n "$DEREZ"; then | |
31151 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
31152 | echo "${ECHO_T}$DEREZ" >&6 | |
31153 | else | |
31154 | echo "$as_me:$LINENO: result: no" >&5 | |
31155 | echo "${ECHO_T}no" >&6 | |
31156 | fi | |
31157 | ||
31158 | # Extract the first word of "SetFile", so it can be a program name with args. | |
31159 | set dummy SetFile; ac_word=$2 | |
31160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31162 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
31163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31164 | else | |
31165 | if test -n "$SETFILE"; then | |
31166 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
31167 | else | |
31168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31169 | for as_dir in $PATH | |
31170 | do | |
31171 | IFS=$as_save_IFS | |
31172 | test -z "$as_dir" && as_dir=. | |
31173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31175 | ac_cv_prog_SETFILE="SetFile" | |
31176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31177 | break 2 | |
31178 | fi | |
31179 | done | |
31180 | done | |
31181 | ||
31182 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
31183 | fi | |
31184 | fi | |
31185 | SETFILE=$ac_cv_prog_SETFILE | |
31186 | if test -n "$SETFILE"; then | |
31187 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
31188 | echo "${ECHO_T}$SETFILE" >&6 | |
31189 | else | |
31190 | echo "$as_me:$LINENO: result: no" >&5 | |
31191 | echo "${ECHO_T}no" >&6 | |
31192 | fi | |
31193 | ||
31194 | ||
31195 | MACSETFILE="\$(SETFILE)" | |
31196 | ||
31197 | if test "$wxUSE_MAC" = 1; then | |
1a79f136 | 31198 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e | 31199 | |
1a79f136 | 31200 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e SC |
31201 | else |
31202 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
31203 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
31204 | fi | |
31205 | else | |
ffa0583f RL |
31206 | MACSETFILE="@true" |
31207 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
31208 | |
31209 | if test "$wxUSE_PM" = 1; then | |
31210 | MACRESCOMP="emxbind -ep" | |
31211 | else | |
ffa0583f | 31212 | MACRESCOMP="@true" |
a848cd7e SC |
31213 | fi |
31214 | fi | |
31215 | ||
31216 | ||
31217 | ||
31218 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
31219 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
31220 | if test "${ac_cv_type_mode_t+set}" = set; then | |
31221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31222 | else | |
31223 | cat >conftest.$ac_ext <<_ACEOF | |
31224 | /* confdefs.h. */ | |
31225 | _ACEOF | |
31226 | cat confdefs.h >>conftest.$ac_ext | |
31227 | cat >>conftest.$ac_ext <<_ACEOF | |
31228 | /* end confdefs.h. */ | |
31229 | $ac_includes_default | |
31230 | int | |
31231 | main () | |
31232 | { | |
31233 | if ((mode_t *) 0) | |
31234 | return 0; | |
31235 | if (sizeof (mode_t)) | |
31236 | return 0; | |
31237 | ; | |
31238 | return 0; | |
31239 | } | |
31240 | _ACEOF | |
31241 | rm -f conftest.$ac_objext | |
31242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31243 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31244 | ac_status=$? |
ac1cb8d3 VS |
31245 | grep -v '^ *+' conftest.er1 >conftest.err |
31246 | rm -f conftest.er1 | |
31247 | cat conftest.err >&5 | |
a848cd7e SC |
31248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31249 | (exit $ac_status); } && | |
6ebeb4c7 | 31250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31252 | (eval $ac_try) 2>&5 | |
31253 | ac_status=$? | |
31254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31255 | (exit $ac_status); }; } && | |
31256 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31258 | (eval $ac_try) 2>&5 | |
31259 | ac_status=$? | |
31260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31261 | (exit $ac_status); }; }; then | |
31262 | ac_cv_type_mode_t=yes | |
31263 | else | |
31264 | echo "$as_me: failed program was:" >&5 | |
31265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31266 | ||
31267 | ac_cv_type_mode_t=no | |
31268 | fi | |
ac1cb8d3 | 31269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31270 | fi |
31271 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
31272 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
31273 | if test $ac_cv_type_mode_t = yes; then | |
31274 | : | |
31275 | else | |
31276 | ||
31277 | cat >>confdefs.h <<_ACEOF | |
31278 | #define mode_t int | |
31279 | _ACEOF | |
31280 | ||
31281 | fi | |
31282 | ||
31283 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
31284 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
31285 | if test "${ac_cv_type_off_t+set}" = set; then | |
31286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31287 | else | |
31288 | cat >conftest.$ac_ext <<_ACEOF | |
31289 | /* confdefs.h. */ | |
31290 | _ACEOF | |
31291 | cat confdefs.h >>conftest.$ac_ext | |
31292 | cat >>conftest.$ac_ext <<_ACEOF | |
31293 | /* end confdefs.h. */ | |
31294 | $ac_includes_default | |
31295 | int | |
31296 | main () | |
31297 | { | |
31298 | if ((off_t *) 0) | |
31299 | return 0; | |
31300 | if (sizeof (off_t)) | |
31301 | return 0; | |
31302 | ; | |
31303 | return 0; | |
31304 | } | |
31305 | _ACEOF | |
31306 | rm -f conftest.$ac_objext | |
31307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31308 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31309 | ac_status=$? |
ac1cb8d3 VS |
31310 | grep -v '^ *+' conftest.er1 >conftest.err |
31311 | rm -f conftest.er1 | |
31312 | cat conftest.err >&5 | |
a848cd7e SC |
31313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31314 | (exit $ac_status); } && | |
6ebeb4c7 | 31315 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31317 | (eval $ac_try) 2>&5 | |
31318 | ac_status=$? | |
31319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31320 | (exit $ac_status); }; } && | |
31321 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31323 | (eval $ac_try) 2>&5 | |
31324 | ac_status=$? | |
31325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31326 | (exit $ac_status); }; }; then | |
31327 | ac_cv_type_off_t=yes | |
31328 | else | |
31329 | echo "$as_me: failed program was:" >&5 | |
31330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31331 | ||
31332 | ac_cv_type_off_t=no | |
31333 | fi | |
ac1cb8d3 | 31334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31335 | fi |
31336 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
31337 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
31338 | if test $ac_cv_type_off_t = yes; then | |
31339 | : | |
31340 | else | |
31341 | ||
31342 | cat >>confdefs.h <<_ACEOF | |
31343 | #define off_t long | |
31344 | _ACEOF | |
31345 | ||
31346 | fi | |
31347 | ||
31348 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
31349 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
31350 | if test "${ac_cv_type_pid_t+set}" = set; then | |
31351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31352 | else | |
31353 | cat >conftest.$ac_ext <<_ACEOF | |
31354 | /* confdefs.h. */ | |
31355 | _ACEOF | |
31356 | cat confdefs.h >>conftest.$ac_ext | |
31357 | cat >>conftest.$ac_ext <<_ACEOF | |
31358 | /* end confdefs.h. */ | |
31359 | $ac_includes_default | |
31360 | int | |
31361 | main () | |
31362 | { | |
31363 | if ((pid_t *) 0) | |
31364 | return 0; | |
31365 | if (sizeof (pid_t)) | |
31366 | return 0; | |
31367 | ; | |
31368 | return 0; | |
31369 | } | |
31370 | _ACEOF | |
31371 | rm -f conftest.$ac_objext | |
31372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31373 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31374 | ac_status=$? |
ac1cb8d3 VS |
31375 | grep -v '^ *+' conftest.er1 >conftest.err |
31376 | rm -f conftest.er1 | |
31377 | cat conftest.err >&5 | |
a848cd7e SC |
31378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31379 | (exit $ac_status); } && | |
6ebeb4c7 | 31380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31382 | (eval $ac_try) 2>&5 | |
31383 | ac_status=$? | |
31384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31385 | (exit $ac_status); }; } && | |
31386 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31388 | (eval $ac_try) 2>&5 | |
31389 | ac_status=$? | |
31390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31391 | (exit $ac_status); }; }; then | |
31392 | ac_cv_type_pid_t=yes | |
31393 | else | |
31394 | echo "$as_me: failed program was:" >&5 | |
31395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31396 | ||
31397 | ac_cv_type_pid_t=no | |
31398 | fi | |
ac1cb8d3 | 31399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31400 | fi |
31401 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
31402 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
31403 | if test $ac_cv_type_pid_t = yes; then | |
31404 | : | |
31405 | else | |
31406 | ||
31407 | cat >>confdefs.h <<_ACEOF | |
31408 | #define pid_t int | |
31409 | _ACEOF | |
31410 | ||
31411 | fi | |
31412 | ||
31413 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
31414 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
31415 | if test "${ac_cv_type_size_t+set}" = set; then | |
31416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31417 | else | |
31418 | cat >conftest.$ac_ext <<_ACEOF | |
31419 | /* confdefs.h. */ | |
31420 | _ACEOF | |
31421 | cat confdefs.h >>conftest.$ac_ext | |
31422 | cat >>conftest.$ac_ext <<_ACEOF | |
31423 | /* end confdefs.h. */ | |
31424 | $ac_includes_default | |
31425 | int | |
31426 | main () | |
31427 | { | |
31428 | if ((size_t *) 0) | |
31429 | return 0; | |
31430 | if (sizeof (size_t)) | |
31431 | return 0; | |
31432 | ; | |
31433 | return 0; | |
31434 | } | |
31435 | _ACEOF | |
31436 | rm -f conftest.$ac_objext | |
31437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31438 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31439 | ac_status=$? |
ac1cb8d3 VS |
31440 | grep -v '^ *+' conftest.er1 >conftest.err |
31441 | rm -f conftest.er1 | |
31442 | cat conftest.err >&5 | |
a848cd7e SC |
31443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31444 | (exit $ac_status); } && | |
6ebeb4c7 | 31445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31447 | (eval $ac_try) 2>&5 | |
31448 | ac_status=$? | |
31449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31450 | (exit $ac_status); }; } && | |
31451 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31453 | (eval $ac_try) 2>&5 | |
31454 | ac_status=$? | |
31455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31456 | (exit $ac_status); }; }; then | |
31457 | ac_cv_type_size_t=yes | |
31458 | else | |
31459 | echo "$as_me: failed program was:" >&5 | |
31460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31461 | ||
31462 | ac_cv_type_size_t=no | |
31463 | fi | |
ac1cb8d3 | 31464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31465 | fi |
31466 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
31467 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
31468 | if test $ac_cv_type_size_t = yes; then | |
31469 | : | |
31470 | else | |
31471 | ||
31472 | cat >>confdefs.h <<_ACEOF | |
31473 | #define size_t unsigned | |
31474 | _ACEOF | |
31475 | ||
31476 | fi | |
31477 | ||
31478 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
31479 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
31480 | if test "${ac_cv_type_uid_t+set}" = set; then | |
31481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31482 | else | |
31483 | cat >conftest.$ac_ext <<_ACEOF | |
31484 | /* confdefs.h. */ | |
31485 | _ACEOF | |
31486 | cat confdefs.h >>conftest.$ac_ext | |
31487 | cat >>conftest.$ac_ext <<_ACEOF | |
31488 | /* end confdefs.h. */ | |
31489 | #include <sys/types.h> | |
31490 | ||
31491 | _ACEOF | |
31492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
31493 | $EGREP "uid_t" >/dev/null 2>&1; then | |
31494 | ac_cv_type_uid_t=yes | |
31495 | else | |
31496 | ac_cv_type_uid_t=no | |
31497 | fi | |
31498 | rm -f conftest* | |
31499 | ||
31500 | fi | |
31501 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
31502 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
31503 | if test $ac_cv_type_uid_t = no; then | |
31504 | ||
31505 | cat >>confdefs.h <<\_ACEOF | |
31506 | #define uid_t int | |
31507 | _ACEOF | |
31508 | ||
31509 | ||
31510 | cat >>confdefs.h <<\_ACEOF | |
31511 | #define gid_t int | |
31512 | _ACEOF | |
31513 | ||
31514 | fi | |
31515 | ||
31516 | ||
d51253e8 RL |
31517 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
31518 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
31519 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
31520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31521 | else | |
31522 | cat >conftest.$ac_ext <<_ACEOF | |
31523 | /* confdefs.h. */ | |
31524 | _ACEOF | |
31525 | cat confdefs.h >>conftest.$ac_ext | |
31526 | cat >>conftest.$ac_ext <<_ACEOF | |
31527 | /* end confdefs.h. */ | |
31528 | $ac_includes_default | |
31529 | int | |
31530 | main () | |
31531 | { | |
31532 | if ((ssize_t *) 0) | |
31533 | return 0; | |
31534 | if (sizeof (ssize_t)) | |
31535 | return 0; | |
31536 | ; | |
31537 | return 0; | |
31538 | } | |
31539 | _ACEOF | |
31540 | rm -f conftest.$ac_objext | |
31541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31542 | (eval $ac_compile) 2>conftest.er1 | |
31543 | ac_status=$? | |
31544 | grep -v '^ *+' conftest.er1 >conftest.err | |
31545 | rm -f conftest.er1 | |
31546 | cat conftest.err >&5 | |
31547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31548 | (exit $ac_status); } && | |
6ebeb4c7 | 31549 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
31550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31551 | (eval $ac_try) 2>&5 | |
31552 | ac_status=$? | |
31553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31554 | (exit $ac_status); }; } && | |
31555 | { ac_try='test -s conftest.$ac_objext' | |
31556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31557 | (eval $ac_try) 2>&5 | |
31558 | ac_status=$? | |
31559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31560 | (exit $ac_status); }; }; then | |
31561 | ac_cv_type_ssize_t=yes | |
31562 | else | |
31563 | echo "$as_me: failed program was:" >&5 | |
31564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31565 | ||
31566 | ac_cv_type_ssize_t=no | |
31567 | fi | |
31568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31569 | fi | |
31570 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
31571 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
31572 | if test $ac_cv_type_ssize_t = yes; then | |
31573 | ||
31574 | cat >>confdefs.h <<_ACEOF | |
31575 | #define HAVE_SSIZE_T 1 | |
31576 | _ACEOF | |
31577 | ||
31578 | ||
31579 | fi | |
31580 | ||
31581 | ||
a848cd7e SC |
31582 | |
31583 | ||
31584 | ac_ext=cc | |
31585 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31586 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31587 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31588 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31589 | ||
31590 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
31591 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
31592 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
31593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31594 | else | |
31595 | ||
31596 | cat >conftest.$ac_ext <<_ACEOF | |
31597 | /* confdefs.h. */ | |
31598 | _ACEOF | |
31599 | cat confdefs.h >>conftest.$ac_ext | |
31600 | cat >>conftest.$ac_ext <<_ACEOF | |
31601 | /* end confdefs.h. */ | |
31602 | #include <stddef.h> | |
31603 | int | |
31604 | main () | |
31605 | { | |
31606 | ||
31607 | return 0; } | |
31608 | ||
31609 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
31610 | ||
31611 | int bar() { | |
31612 | ||
31613 | ; | |
31614 | return 0; | |
31615 | } | |
31616 | _ACEOF | |
31617 | rm -f conftest.$ac_objext | |
31618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31619 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31620 | ac_status=$? |
ac1cb8d3 VS |
31621 | grep -v '^ *+' conftest.er1 >conftest.err |
31622 | rm -f conftest.er1 | |
31623 | cat conftest.err >&5 | |
a848cd7e SC |
31624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31625 | (exit $ac_status); } && | |
6ebeb4c7 | 31626 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31628 | (eval $ac_try) 2>&5 | |
31629 | ac_status=$? | |
31630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31631 | (exit $ac_status); }; } && | |
31632 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31634 | (eval $ac_try) 2>&5 | |
31635 | ac_status=$? | |
31636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31637 | (exit $ac_status); }; }; then | |
31638 | wx_cv_size_t_is_uint=no | |
31639 | else | |
31640 | echo "$as_me: failed program was:" >&5 | |
31641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31642 | ||
31643 | wx_cv_size_t_is_uint=yes | |
31644 | ||
31645 | fi | |
ac1cb8d3 | 31646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31647 | |
31648 | ||
31649 | fi | |
31650 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
31651 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
31652 | ||
31653 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
31654 | cat >>confdefs.h <<\_ACEOF | |
31655 | #define wxSIZE_T_IS_UINT 1 | |
31656 | _ACEOF | |
31657 | ||
31658 | else | |
31659 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
31660 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
31661 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
31662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31663 | else | |
31664 | cat >conftest.$ac_ext <<_ACEOF | |
31665 | /* confdefs.h. */ | |
31666 | _ACEOF | |
31667 | cat confdefs.h >>conftest.$ac_ext | |
31668 | cat >>conftest.$ac_ext <<_ACEOF | |
31669 | /* end confdefs.h. */ | |
31670 | #include <stddef.h> | |
31671 | int | |
31672 | main () | |
31673 | { | |
31674 | ||
31675 | return 0; } | |
31676 | ||
31677 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
31678 | ||
31679 | int bar() { | |
31680 | ||
31681 | ; | |
31682 | return 0; | |
31683 | } | |
31684 | _ACEOF | |
31685 | rm -f conftest.$ac_objext | |
31686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31687 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31688 | ac_status=$? |
ac1cb8d3 VS |
31689 | grep -v '^ *+' conftest.er1 >conftest.err |
31690 | rm -f conftest.er1 | |
31691 | cat conftest.err >&5 | |
a848cd7e SC |
31692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31693 | (exit $ac_status); } && | |
6ebeb4c7 | 31694 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31696 | (eval $ac_try) 2>&5 | |
31697 | ac_status=$? | |
31698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31699 | (exit $ac_status); }; } && | |
31700 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31702 | (eval $ac_try) 2>&5 | |
31703 | ac_status=$? | |
31704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31705 | (exit $ac_status); }; }; then | |
31706 | wx_cv_size_t_is_ulong=no | |
31707 | else | |
31708 | echo "$as_me: failed program was:" >&5 | |
31709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31710 | ||
31711 | wx_cv_size_t_is_ulong=yes | |
31712 | ||
31713 | fi | |
ac1cb8d3 | 31714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31715 | |
31716 | fi | |
31717 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
31718 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
31719 | ||
31720 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
31721 | cat >>confdefs.h <<\_ACEOF | |
31722 | #define wxSIZE_T_IS_ULONG 1 | |
31723 | _ACEOF | |
31724 | ||
31725 | fi | |
31726 | fi | |
31727 | ||
31728 | ac_ext=c | |
31729 | ac_cpp='$CPP $CPPFLAGS' | |
31730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31733 | ||
31734 | ||
31735 | ||
31736 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
31737 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
31738 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
31739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31740 | else | |
31741 | ||
31742 | cat >conftest.$ac_ext <<_ACEOF | |
31743 | /* confdefs.h. */ | |
31744 | _ACEOF | |
31745 | cat confdefs.h >>conftest.$ac_ext | |
31746 | cat >>conftest.$ac_ext <<_ACEOF | |
31747 | /* end confdefs.h. */ | |
31748 | #include <pwd.h> | |
31749 | int | |
31750 | main () | |
31751 | { | |
31752 | ||
31753 | char *p; | |
31754 | struct passwd *pw; | |
31755 | p = pw->pw_gecos; | |
31756 | ||
31757 | ; | |
31758 | return 0; | |
31759 | } | |
31760 | _ACEOF | |
31761 | rm -f conftest.$ac_objext | |
31762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31763 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31764 | ac_status=$? |
ac1cb8d3 VS |
31765 | grep -v '^ *+' conftest.er1 >conftest.err |
31766 | rm -f conftest.er1 | |
31767 | cat conftest.err >&5 | |
a848cd7e SC |
31768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31769 | (exit $ac_status); } && | |
6ebeb4c7 | 31770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31772 | (eval $ac_try) 2>&5 | |
31773 | ac_status=$? | |
31774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31775 | (exit $ac_status); }; } && | |
31776 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31778 | (eval $ac_try) 2>&5 | |
31779 | ac_status=$? | |
31780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31781 | (exit $ac_status); }; }; then | |
31782 | ||
31783 | wx_cv_struct_pw_gecos=yes | |
31784 | ||
31785 | else | |
31786 | echo "$as_me: failed program was:" >&5 | |
31787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31788 | ||
31789 | ||
31790 | wx_cv_struct_pw_gecos=no | |
31791 | ||
31792 | ||
31793 | fi | |
ac1cb8d3 | 31794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31795 | |
31796 | ||
31797 | fi | |
31798 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
31799 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
31800 | ||
31801 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
31802 | cat >>confdefs.h <<\_ACEOF | |
31803 | #define HAVE_PW_GECOS 1 | |
31804 | _ACEOF | |
31805 | ||
31806 | fi | |
31807 | ||
31808 | ||
47a7e797 | 31809 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
31810 | cat >>confdefs.h <<\_ACEOF |
31811 | #define wxUSE_WCHAR_T 1 | |
31812 | _ACEOF | |
31813 | ||
31814 | ||
31815 | WCSLEN_FOUND=0 | |
31816 | WCHAR_LINK= | |
31817 | ||
31818 | for ac_func in wcslen | |
31819 | do | |
31820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31821 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31823 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31825 | else | |
31826 | cat >conftest.$ac_ext <<_ACEOF | |
31827 | /* confdefs.h. */ | |
31828 | _ACEOF | |
31829 | cat confdefs.h >>conftest.$ac_ext | |
31830 | cat >>conftest.$ac_ext <<_ACEOF | |
31831 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31834 | #define $ac_func innocuous_$ac_func | |
31835 | ||
a848cd7e SC |
31836 | /* System header to define __stub macros and hopefully few prototypes, |
31837 | which can conflict with char $ac_func (); below. | |
31838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31839 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31840 | |
a848cd7e SC |
31841 | #ifdef __STDC__ |
31842 | # include <limits.h> | |
31843 | #else | |
31844 | # include <assert.h> | |
31845 | #endif | |
ac1cb8d3 VS |
31846 | |
31847 | #undef $ac_func | |
31848 | ||
a848cd7e SC |
31849 | /* Override any gcc2 internal prototype to avoid an error. */ |
31850 | #ifdef __cplusplus | |
31851 | extern "C" | |
31852 | { | |
31853 | #endif | |
31854 | /* We use char because int might match the return type of a gcc2 | |
31855 | builtin and then its argument prototype would still apply. */ | |
31856 | char $ac_func (); | |
31857 | /* The GNU C library defines this for functions which it implements | |
31858 | to always fail with ENOSYS. Some functions are actually named | |
31859 | something starting with __ and the normal name is an alias. */ | |
31860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31861 | choke me | |
31862 | #else | |
31863 | char (*f) () = $ac_func; | |
31864 | #endif | |
31865 | #ifdef __cplusplus | |
31866 | } | |
31867 | #endif | |
31868 | ||
31869 | int | |
31870 | main () | |
31871 | { | |
31872 | return f != $ac_func; | |
31873 | ; | |
31874 | return 0; | |
31875 | } | |
31876 | _ACEOF | |
31877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31879 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31880 | ac_status=$? |
ac1cb8d3 VS |
31881 | grep -v '^ *+' conftest.er1 >conftest.err |
31882 | rm -f conftest.er1 | |
31883 | cat conftest.err >&5 | |
a848cd7e SC |
31884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31885 | (exit $ac_status); } && | |
6ebeb4c7 | 31886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31888 | (eval $ac_try) 2>&5 | |
31889 | ac_status=$? | |
31890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31891 | (exit $ac_status); }; } && | |
31892 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31894 | (eval $ac_try) 2>&5 | |
31895 | ac_status=$? | |
31896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31897 | (exit $ac_status); }; }; then | |
31898 | eval "$as_ac_var=yes" | |
31899 | else | |
31900 | echo "$as_me: failed program was:" >&5 | |
31901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31902 | ||
31903 | eval "$as_ac_var=no" | |
31904 | fi | |
ac1cb8d3 VS |
31905 | rm -f conftest.err conftest.$ac_objext \ |
31906 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31907 | fi |
31908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31909 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31910 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31911 | cat >>confdefs.h <<_ACEOF | |
31912 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31913 | _ACEOF | |
31914 | WCSLEN_FOUND=1 | |
31915 | fi | |
31916 | done | |
31917 | ||
31918 | ||
31919 | if test "$WCSLEN_FOUND" = 0; then | |
31920 | if test "$TOOLKIT" = "MSW"; then | |
31921 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
31922 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
31923 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
31924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31925 | else | |
31926 | ac_check_lib_save_LIBS=$LIBS | |
31927 | LIBS="-lmsvcrt $LIBS" | |
31928 | cat >conftest.$ac_ext <<_ACEOF | |
31929 | /* confdefs.h. */ | |
31930 | _ACEOF | |
31931 | cat confdefs.h >>conftest.$ac_ext | |
31932 | cat >>conftest.$ac_ext <<_ACEOF | |
31933 | /* end confdefs.h. */ | |
31934 | ||
31935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31936 | #ifdef __cplusplus | |
31937 | extern "C" | |
31938 | #endif | |
31939 | /* We use char because int might match the return type of a gcc2 | |
31940 | builtin and then its argument prototype would still apply. */ | |
31941 | char wcslen (); | |
31942 | int | |
31943 | main () | |
31944 | { | |
31945 | wcslen (); | |
31946 | ; | |
31947 | return 0; | |
31948 | } | |
31949 | _ACEOF | |
31950 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31952 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31953 | ac_status=$? |
ac1cb8d3 VS |
31954 | grep -v '^ *+' conftest.er1 >conftest.err |
31955 | rm -f conftest.er1 | |
31956 | cat conftest.err >&5 | |
a848cd7e SC |
31957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31958 | (exit $ac_status); } && | |
6ebeb4c7 | 31959 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
31965 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31967 | (eval $ac_try) 2>&5 | |
31968 | ac_status=$? | |
31969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31970 | (exit $ac_status); }; }; then | |
31971 | ac_cv_lib_msvcrt_wcslen=yes | |
31972 | else | |
31973 | echo "$as_me: failed program was:" >&5 | |
31974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31975 | ||
31976 | ac_cv_lib_msvcrt_wcslen=no | |
31977 | fi | |
ac1cb8d3 VS |
31978 | rm -f conftest.err conftest.$ac_objext \ |
31979 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31980 | LIBS=$ac_check_lib_save_LIBS |
31981 | fi | |
31982 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
31983 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
31984 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
31985 | WCHAR_OK=1 | |
31986 | fi | |
31987 | ||
31988 | else | |
31989 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
31990 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
31991 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
31992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31993 | else | |
31994 | ac_check_lib_save_LIBS=$LIBS | |
31995 | LIBS="-lw $LIBS" | |
31996 | cat >conftest.$ac_ext <<_ACEOF | |
31997 | /* confdefs.h. */ | |
31998 | _ACEOF | |
31999 | cat confdefs.h >>conftest.$ac_ext | |
32000 | cat >>conftest.$ac_ext <<_ACEOF | |
32001 | /* end confdefs.h. */ | |
32002 | ||
32003 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32004 | #ifdef __cplusplus | |
32005 | extern "C" | |
32006 | #endif | |
32007 | /* We use char because int might match the return type of a gcc2 | |
32008 | builtin and then its argument prototype would still apply. */ | |
32009 | char wcslen (); | |
32010 | int | |
32011 | main () | |
32012 | { | |
32013 | wcslen (); | |
32014 | ; | |
32015 | return 0; | |
32016 | } | |
32017 | _ACEOF | |
32018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32020 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32021 | ac_status=$? |
ac1cb8d3 VS |
32022 | grep -v '^ *+' conftest.er1 >conftest.err |
32023 | rm -f conftest.er1 | |
32024 | cat conftest.err >&5 | |
a848cd7e SC |
32025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32026 | (exit $ac_status); } && | |
6ebeb4c7 | 32027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32029 | (eval $ac_try) 2>&5 | |
32030 | ac_status=$? | |
32031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32032 | (exit $ac_status); }; } && | |
32033 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32035 | (eval $ac_try) 2>&5 | |
32036 | ac_status=$? | |
32037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32038 | (exit $ac_status); }; }; then | |
32039 | ac_cv_lib_w_wcslen=yes | |
32040 | else | |
32041 | echo "$as_me: failed program was:" >&5 | |
32042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32043 | ||
32044 | ac_cv_lib_w_wcslen=no | |
32045 | fi | |
ac1cb8d3 VS |
32046 | rm -f conftest.err conftest.$ac_objext \ |
32047 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32048 | LIBS=$ac_check_lib_save_LIBS |
32049 | fi | |
32050 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
32051 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
32052 | if test $ac_cv_lib_w_wcslen = yes; then | |
32053 | ||
32054 | WCHAR_LINK=" -lw" | |
32055 | WCSLEN_FOUND=1 | |
32056 | ||
32057 | fi | |
32058 | ||
32059 | fi | |
32060 | fi | |
32061 | ||
32062 | if test "$WCSLEN_FOUND" = 1; then | |
32063 | cat >>confdefs.h <<\_ACEOF | |
32064 | #define HAVE_WCSLEN 1 | |
32065 | _ACEOF | |
32066 | ||
32067 | fi | |
32068 | ||
efdf6afe | 32069 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
473276a9 VS |
32070 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
32071 | fi | |
32072 | ||
efdf6afe VZ |
32073 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
32074 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
32075 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
32076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32077 | else | |
32078 | cat >conftest.$ac_ext <<_ACEOF | |
32079 | /* confdefs.h. */ | |
32080 | _ACEOF | |
32081 | cat confdefs.h >>conftest.$ac_ext | |
32082 | cat >>conftest.$ac_ext <<_ACEOF | |
32083 | /* end confdefs.h. */ | |
32084 | #include <wchar.h> | |
32085 | ||
32086 | int | |
32087 | main () | |
32088 | { | |
32089 | if ((mbstate_t *) 0) | |
32090 | return 0; | |
32091 | if (sizeof (mbstate_t)) | |
32092 | return 0; | |
32093 | ; | |
32094 | return 0; | |
32095 | } | |
32096 | _ACEOF | |
32097 | rm -f conftest.$ac_objext | |
32098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32099 | (eval $ac_compile) 2>conftest.er1 | |
32100 | ac_status=$? | |
32101 | grep -v '^ *+' conftest.er1 >conftest.err | |
32102 | rm -f conftest.er1 | |
32103 | cat conftest.err >&5 | |
32104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32105 | (exit $ac_status); } && | |
32106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
32107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32108 | (eval $ac_try) 2>&5 | |
32109 | ac_status=$? | |
32110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32111 | (exit $ac_status); }; } && | |
32112 | { ac_try='test -s conftest.$ac_objext' | |
32113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32114 | (eval $ac_try) 2>&5 | |
32115 | ac_status=$? | |
32116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32117 | (exit $ac_status); }; }; then | |
32118 | ac_cv_type_mbstate_t=yes | |
32119 | else | |
32120 | echo "$as_me: failed program was:" >&5 | |
32121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32122 | ||
32123 | ac_cv_type_mbstate_t=no | |
32124 | fi | |
32125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32126 | fi | |
32127 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
32128 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
32129 | if test $ac_cv_type_mbstate_t = yes; then | |
32130 | ||
32131 | cat >>confdefs.h <<_ACEOF | |
32132 | #define HAVE_MBSTATE_T 1 | |
32133 | _ACEOF | |
32134 | ||
a848cd7e SC |
32135 | |
32136 | for ac_func in wcsrtombs | |
32137 | do | |
32138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32139 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32141 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32143 | else | |
32144 | cat >conftest.$ac_ext <<_ACEOF | |
32145 | /* confdefs.h. */ | |
32146 | _ACEOF | |
32147 | cat confdefs.h >>conftest.$ac_ext | |
32148 | cat >>conftest.$ac_ext <<_ACEOF | |
32149 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32152 | #define $ac_func innocuous_$ac_func | |
32153 | ||
a848cd7e SC |
32154 | /* System header to define __stub macros and hopefully few prototypes, |
32155 | which can conflict with char $ac_func (); below. | |
32156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32157 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32158 | |
a848cd7e SC |
32159 | #ifdef __STDC__ |
32160 | # include <limits.h> | |
32161 | #else | |
32162 | # include <assert.h> | |
32163 | #endif | |
ac1cb8d3 VS |
32164 | |
32165 | #undef $ac_func | |
32166 | ||
a848cd7e SC |
32167 | /* Override any gcc2 internal prototype to avoid an error. */ |
32168 | #ifdef __cplusplus | |
32169 | extern "C" | |
32170 | { | |
32171 | #endif | |
32172 | /* We use char because int might match the return type of a gcc2 | |
32173 | builtin and then its argument prototype would still apply. */ | |
32174 | char $ac_func (); | |
32175 | /* The GNU C library defines this for functions which it implements | |
32176 | to always fail with ENOSYS. Some functions are actually named | |
32177 | something starting with __ and the normal name is an alias. */ | |
32178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32179 | choke me | |
32180 | #else | |
32181 | char (*f) () = $ac_func; | |
32182 | #endif | |
32183 | #ifdef __cplusplus | |
32184 | } | |
32185 | #endif | |
32186 | ||
32187 | int | |
32188 | main () | |
32189 | { | |
32190 | return f != $ac_func; | |
32191 | ; | |
32192 | return 0; | |
32193 | } | |
32194 | _ACEOF | |
32195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32197 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32198 | ac_status=$? |
ac1cb8d3 VS |
32199 | grep -v '^ *+' conftest.er1 >conftest.err |
32200 | rm -f conftest.er1 | |
32201 | cat conftest.err >&5 | |
a848cd7e SC |
32202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32203 | (exit $ac_status); } && | |
6ebeb4c7 | 32204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32206 | (eval $ac_try) 2>&5 | |
32207 | ac_status=$? | |
32208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32209 | (exit $ac_status); }; } && | |
32210 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32212 | (eval $ac_try) 2>&5 | |
32213 | ac_status=$? | |
32214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32215 | (exit $ac_status); }; }; then | |
32216 | eval "$as_ac_var=yes" | |
32217 | else | |
32218 | echo "$as_me: failed program was:" >&5 | |
32219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32220 | ||
32221 | eval "$as_ac_var=no" | |
32222 | fi | |
ac1cb8d3 VS |
32223 | rm -f conftest.err conftest.$ac_objext \ |
32224 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32225 | fi |
32226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32227 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32228 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32229 | cat >>confdefs.h <<_ACEOF | |
32230 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32231 | _ACEOF | |
32232 | ||
32233 | fi | |
32234 | done | |
32235 | ||
efdf6afe VZ |
32236 | fi |
32237 | ||
a848cd7e SC |
32238 | else |
32239 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
32240 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
32241 | fi | |
32242 | ||
32243 | ||
32244 | ||
32245 | ac_ext=cc | |
32246 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32247 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32248 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32249 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32250 | ||
32251 | ||
32252 | ||
4a767dd5 VZ |
32253 | |
32254 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
32255 | do |
32256 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32257 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32258 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32259 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32261 | else | |
32262 | cat >conftest.$ac_ext <<_ACEOF | |
32263 | /* confdefs.h. */ | |
32264 | _ACEOF | |
32265 | cat confdefs.h >>conftest.$ac_ext | |
32266 | cat >>conftest.$ac_ext <<_ACEOF | |
32267 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32268 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32269 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32270 | #define $ac_func innocuous_$ac_func | |
32271 | ||
a848cd7e SC |
32272 | /* System header to define __stub macros and hopefully few prototypes, |
32273 | which can conflict with char $ac_func (); below. | |
32274 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32275 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32276 | |
a848cd7e SC |
32277 | #ifdef __STDC__ |
32278 | # include <limits.h> | |
32279 | #else | |
32280 | # include <assert.h> | |
32281 | #endif | |
ac1cb8d3 VS |
32282 | |
32283 | #undef $ac_func | |
32284 | ||
a848cd7e SC |
32285 | /* Override any gcc2 internal prototype to avoid an error. */ |
32286 | #ifdef __cplusplus | |
32287 | extern "C" | |
32288 | { | |
32289 | #endif | |
32290 | /* We use char because int might match the return type of a gcc2 | |
32291 | builtin and then its argument prototype would still apply. */ | |
32292 | char $ac_func (); | |
32293 | /* The GNU C library defines this for functions which it implements | |
32294 | to always fail with ENOSYS. Some functions are actually named | |
32295 | something starting with __ and the normal name is an alias. */ | |
32296 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32297 | choke me | |
32298 | #else | |
32299 | char (*f) () = $ac_func; | |
32300 | #endif | |
32301 | #ifdef __cplusplus | |
32302 | } | |
32303 | #endif | |
32304 | ||
32305 | int | |
32306 | main () | |
32307 | { | |
32308 | return f != $ac_func; | |
32309 | ; | |
32310 | return 0; | |
32311 | } | |
32312 | _ACEOF | |
32313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32315 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32316 | ac_status=$? |
ac1cb8d3 VS |
32317 | grep -v '^ *+' conftest.er1 >conftest.err |
32318 | rm -f conftest.er1 | |
32319 | cat conftest.err >&5 | |
a848cd7e SC |
32320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32321 | (exit $ac_status); } && | |
6ebeb4c7 | 32322 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32324 | (eval $ac_try) 2>&5 | |
32325 | ac_status=$? | |
32326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32327 | (exit $ac_status); }; } && | |
32328 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32330 | (eval $ac_try) 2>&5 | |
32331 | ac_status=$? | |
32332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32333 | (exit $ac_status); }; }; then | |
32334 | eval "$as_ac_var=yes" | |
32335 | else | |
32336 | echo "$as_me: failed program was:" >&5 | |
32337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32338 | ||
32339 | eval "$as_ac_var=no" | |
32340 | fi | |
ac1cb8d3 VS |
32341 | rm -f conftest.err conftest.$ac_objext \ |
32342 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32343 | fi |
32344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32345 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32346 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32347 | cat >>confdefs.h <<_ACEOF | |
32348 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32349 | _ACEOF | |
32350 | ||
32351 | fi | |
32352 | done | |
32353 | ||
32354 | ||
32355 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
32356 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
32357 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
32358 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
32359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32360 | else | |
32361 | ||
efdf6afe | 32362 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
32363 | /* confdefs.h. */ |
32364 | _ACEOF | |
32365 | cat confdefs.h >>conftest.$ac_ext | |
32366 | cat >>conftest.$ac_ext <<_ACEOF | |
32367 | /* end confdefs.h. */ | |
32368 | ||
32369 | #include <stdio.h> | |
32370 | #include <stdarg.h> | |
efdf6afe VZ |
32371 | #ifdef __MSL__ |
32372 | #if __MSL__ >= 0x6000 | |
32373 | namespace std {} | |
32374 | using namespace std; | |
32375 | #endif | |
32376 | #endif | |
a848cd7e SC |
32377 | |
32378 | int | |
32379 | main () | |
32380 | { | |
32381 | ||
32382 | char *buf; | |
32383 | va_list ap; | |
62fa8b3a | 32384 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
32385 | |
32386 | ; | |
32387 | return 0; | |
32388 | } | |
32389 | _ACEOF | |
32390 | rm -f conftest.$ac_objext | |
32391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32392 | (eval $ac_compile) 2>conftest.er1 | |
32393 | ac_status=$? | |
32394 | grep -v '^ *+' conftest.er1 >conftest.err | |
32395 | rm -f conftest.er1 | |
32396 | cat conftest.err >&5 | |
32397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32398 | (exit $ac_status); } && | |
6ebeb4c7 | 32399 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
32400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32401 | (eval $ac_try) 2>&5 | |
32402 | ac_status=$? | |
32403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32404 | (exit $ac_status); }; } && | |
32405 | { ac_try='test -s conftest.$ac_objext' | |
32406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32407 | (eval $ac_try) 2>&5 | |
32408 | ac_status=$? | |
32409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32410 | (exit $ac_status); }; }; then | |
32411 | wx_cv_func_vsnprintf_decl=yes | |
32412 | else | |
32413 | echo "$as_me: failed program was:" >&5 | |
32414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32415 | ||
a848cd7e SC |
32416 | wx_cv_func_vsnprintf_decl=no |
32417 | ||
32418 | fi | |
ac1cb8d3 | 32419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32420 | |
32421 | ||
32422 | fi | |
32423 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
32424 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
32425 | ||
32426 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
32427 | cat >>confdefs.h <<\_ACEOF | |
32428 | #define HAVE_VSNPRINTF_DECL 1 | |
32429 | _ACEOF | |
32430 | ||
62fa8b3a MW |
32431 | |
32432 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
32433 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
32434 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
32435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32436 | else | |
32437 | ||
32438 | cat >conftest.$ac_ext <<_ACEOF | |
32439 | /* confdefs.h. */ | |
32440 | _ACEOF | |
32441 | cat confdefs.h >>conftest.$ac_ext | |
32442 | cat >>conftest.$ac_ext <<_ACEOF | |
32443 | /* end confdefs.h. */ | |
32444 | ||
32445 | #include <stdio.h> | |
32446 | #include <stdarg.h> | |
32447 | #ifdef __MSL__ | |
32448 | #if __MSL__ >= 0x6000 | |
32449 | namespace std {} | |
32450 | using namespace std; | |
32451 | #endif | |
32452 | #endif | |
32453 | ||
32454 | int | |
32455 | main () | |
32456 | { | |
32457 | ||
32458 | char *buf; | |
32459 | va_list ap; | |
32460 | const char *fmt = "%s"; | |
32461 | vsnprintf(buf, 10u, fmt, ap); | |
32462 | ||
32463 | ; | |
32464 | return 0; | |
32465 | } | |
32466 | _ACEOF | |
32467 | rm -f conftest.$ac_objext | |
32468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32469 | (eval $ac_compile) 2>conftest.er1 | |
32470 | ac_status=$? | |
32471 | grep -v '^ *+' conftest.er1 >conftest.err | |
32472 | rm -f conftest.er1 | |
32473 | cat conftest.err >&5 | |
32474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32475 | (exit $ac_status); } && | |
32476 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32478 | (eval $ac_try) 2>&5 | |
32479 | ac_status=$? | |
32480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32481 | (exit $ac_status); }; } && | |
32482 | { ac_try='test -s conftest.$ac_objext' | |
32483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32484 | (eval $ac_try) 2>&5 | |
32485 | ac_status=$? | |
32486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32487 | (exit $ac_status); }; }; then | |
32488 | wx_cv_func_broken_vsnprintf_decl=no | |
32489 | else | |
32490 | echo "$as_me: failed program was:" >&5 | |
32491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32492 | ||
32493 | wx_cv_func_broken_vsnprintf_decl=yes | |
32494 | ||
32495 | fi | |
32496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32497 | ||
32498 | ||
32499 | fi | |
32500 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
32501 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
32502 | ||
32503 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
32504 | cat >>confdefs.h <<\_ACEOF | |
32505 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
32506 | _ACEOF | |
32507 | ||
32508 | fi | |
a848cd7e SC |
32509 | fi |
32510 | fi | |
32511 | ||
4a767dd5 VZ |
32512 | if test "$ac_cv_func_snprintf" = "yes"; then |
32513 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
32514 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
32515 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
32516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32517 | else | |
32518 | ||
32519 | cat >conftest.$ac_ext <<_ACEOF | |
32520 | /* confdefs.h. */ | |
32521 | _ACEOF | |
32522 | cat confdefs.h >>conftest.$ac_ext | |
32523 | cat >>conftest.$ac_ext <<_ACEOF | |
32524 | /* end confdefs.h. */ | |
32525 | ||
32526 | #include <stdio.h> | |
32527 | #include <stdarg.h> | |
32528 | #ifdef __MSL__ | |
32529 | #if __MSL__ >= 0x6000 | |
32530 | namespace std {} | |
32531 | using namespace std; | |
32532 | #endif | |
32533 | #endif | |
32534 | ||
32535 | int | |
32536 | main () | |
32537 | { | |
32538 | ||
32539 | char *buf; | |
62fa8b3a | 32540 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
32541 | |
32542 | ; | |
32543 | return 0; | |
32544 | } | |
32545 | _ACEOF | |
32546 | rm -f conftest.$ac_objext | |
32547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32548 | (eval $ac_compile) 2>conftest.er1 | |
32549 | ac_status=$? | |
32550 | grep -v '^ *+' conftest.er1 >conftest.err | |
32551 | rm -f conftest.er1 | |
32552 | cat conftest.err >&5 | |
32553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32554 | (exit $ac_status); } && | |
32555 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32557 | (eval $ac_try) 2>&5 | |
32558 | ac_status=$? | |
32559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32560 | (exit $ac_status); }; } && | |
32561 | { ac_try='test -s conftest.$ac_objext' | |
32562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32563 | (eval $ac_try) 2>&5 | |
32564 | ac_status=$? | |
32565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32566 | (exit $ac_status); }; }; then | |
32567 | wx_cv_func_snprintf_decl=yes | |
32568 | else | |
32569 | echo "$as_me: failed program was:" >&5 | |
32570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32571 | ||
32572 | wx_cv_func_snprintf_decl=no | |
32573 | ||
32574 | fi | |
32575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32576 | ||
32577 | ||
32578 | fi | |
32579 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
32580 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
32581 | ||
32582 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
32583 | cat >>confdefs.h <<\_ACEOF | |
32584 | #define HAVE_SNPRINTF_DECL 1 | |
32585 | _ACEOF | |
32586 | ||
62fa8b3a MW |
32587 | |
32588 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
32589 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
32590 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
32591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32592 | else | |
32593 | ||
32594 | cat >conftest.$ac_ext <<_ACEOF | |
32595 | /* confdefs.h. */ | |
32596 | _ACEOF | |
32597 | cat confdefs.h >>conftest.$ac_ext | |
32598 | cat >>conftest.$ac_ext <<_ACEOF | |
32599 | /* end confdefs.h. */ | |
32600 | ||
32601 | #include <stdio.h> | |
32602 | #include <stdarg.h> | |
32603 | #ifdef __MSL__ | |
32604 | #if __MSL__ >= 0x6000 | |
32605 | namespace std {} | |
32606 | using namespace std; | |
32607 | #endif | |
32608 | #endif | |
32609 | ||
32610 | int | |
32611 | main () | |
32612 | { | |
32613 | ||
32614 | char *buf; | |
32615 | const char *fmt = "%s"; | |
32616 | snprintf(buf, 10u, fmt, "wx"); | |
32617 | ||
32618 | ; | |
32619 | return 0; | |
32620 | } | |
32621 | _ACEOF | |
32622 | rm -f conftest.$ac_objext | |
32623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32624 | (eval $ac_compile) 2>conftest.er1 | |
32625 | ac_status=$? | |
32626 | grep -v '^ *+' conftest.er1 >conftest.err | |
32627 | rm -f conftest.er1 | |
32628 | cat conftest.err >&5 | |
32629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32630 | (exit $ac_status); } && | |
32631 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32633 | (eval $ac_try) 2>&5 | |
32634 | ac_status=$? | |
32635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32636 | (exit $ac_status); }; } && | |
32637 | { ac_try='test -s conftest.$ac_objext' | |
32638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32639 | (eval $ac_try) 2>&5 | |
32640 | ac_status=$? | |
32641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32642 | (exit $ac_status); }; }; then | |
32643 | wx_cv_func_broken_snprintf_decl=no | |
32644 | else | |
32645 | echo "$as_me: failed program was:" >&5 | |
32646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32647 | ||
32648 | wx_cv_func_broken_snprintf_decl=yes | |
32649 | ||
32650 | fi | |
32651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32652 | ||
32653 | ||
32654 | fi | |
32655 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
32656 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
32657 | ||
32658 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
32659 | cat >>confdefs.h <<\_ACEOF | |
32660 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
32661 | _ACEOF | |
32662 | ||
32663 | fi | |
4a767dd5 VZ |
32664 | fi |
32665 | fi | |
32666 | ||
a848cd7e SC |
32667 | if test "$wxUSE_UNICODE" = yes; then |
32668 | ||
32669 | ||
32670 | ||
fbe47c7b VS |
32671 | |
32672 | ||
32673 | ||
32674 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
32675 | do |
32676 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32677 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32678 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32679 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32681 | else | |
32682 | cat >conftest.$ac_ext <<_ACEOF | |
32683 | /* confdefs.h. */ | |
32684 | _ACEOF | |
32685 | cat confdefs.h >>conftest.$ac_ext | |
32686 | cat >>conftest.$ac_ext <<_ACEOF | |
32687 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32688 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32689 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32690 | #define $ac_func innocuous_$ac_func | |
32691 | ||
a848cd7e SC |
32692 | /* System header to define __stub macros and hopefully few prototypes, |
32693 | which can conflict with char $ac_func (); below. | |
32694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32695 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32696 | |
a848cd7e SC |
32697 | #ifdef __STDC__ |
32698 | # include <limits.h> | |
32699 | #else | |
32700 | # include <assert.h> | |
32701 | #endif | |
ac1cb8d3 VS |
32702 | |
32703 | #undef $ac_func | |
32704 | ||
a848cd7e SC |
32705 | /* Override any gcc2 internal prototype to avoid an error. */ |
32706 | #ifdef __cplusplus | |
32707 | extern "C" | |
32708 | { | |
32709 | #endif | |
32710 | /* We use char because int might match the return type of a gcc2 | |
32711 | builtin and then its argument prototype would still apply. */ | |
32712 | char $ac_func (); | |
32713 | /* The GNU C library defines this for functions which it implements | |
32714 | to always fail with ENOSYS. Some functions are actually named | |
32715 | something starting with __ and the normal name is an alias. */ | |
32716 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32717 | choke me | |
32718 | #else | |
32719 | char (*f) () = $ac_func; | |
32720 | #endif | |
32721 | #ifdef __cplusplus | |
32722 | } | |
32723 | #endif | |
32724 | ||
32725 | int | |
32726 | main () | |
32727 | { | |
32728 | return f != $ac_func; | |
32729 | ; | |
32730 | return 0; | |
32731 | } | |
32732 | _ACEOF | |
32733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32735 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32736 | ac_status=$? |
ac1cb8d3 VS |
32737 | grep -v '^ *+' conftest.er1 >conftest.err |
32738 | rm -f conftest.er1 | |
32739 | cat conftest.err >&5 | |
a848cd7e SC |
32740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32741 | (exit $ac_status); } && | |
6ebeb4c7 | 32742 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32744 | (eval $ac_try) 2>&5 | |
32745 | ac_status=$? | |
32746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32747 | (exit $ac_status); }; } && | |
32748 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32750 | (eval $ac_try) 2>&5 | |
32751 | ac_status=$? | |
32752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32753 | (exit $ac_status); }; }; then | |
32754 | eval "$as_ac_var=yes" | |
32755 | else | |
32756 | echo "$as_me: failed program was:" >&5 | |
32757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32758 | ||
32759 | eval "$as_ac_var=no" | |
32760 | fi | |
ac1cb8d3 VS |
32761 | rm -f conftest.err conftest.$ac_objext \ |
32762 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32763 | fi |
32764 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32765 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32766 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32767 | cat >>confdefs.h <<_ACEOF | |
32768 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32769 | _ACEOF | |
32770 | ||
32771 | fi | |
32772 | done | |
32773 | ||
32774 | ||
32775 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
32776 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
32777 | cat >conftest.$ac_ext <<_ACEOF | |
32778 | /* confdefs.h. */ | |
32779 | _ACEOF | |
32780 | cat confdefs.h >>conftest.$ac_ext | |
32781 | cat >>conftest.$ac_ext <<_ACEOF | |
32782 | /* end confdefs.h. */ | |
32783 | #include <wchar.h> | |
32784 | int | |
32785 | main () | |
32786 | { | |
32787 | &_vsnwprintf; | |
32788 | ; | |
32789 | return 0; | |
32790 | } | |
32791 | _ACEOF | |
32792 | rm -f conftest.$ac_objext | |
32793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32794 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32795 | ac_status=$? |
ac1cb8d3 VS |
32796 | grep -v '^ *+' conftest.er1 >conftest.err |
32797 | rm -f conftest.er1 | |
32798 | cat conftest.err >&5 | |
a848cd7e SC |
32799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32800 | (exit $ac_status); } && | |
6ebeb4c7 | 32801 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32803 | (eval $ac_try) 2>&5 | |
32804 | ac_status=$? | |
32805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32806 | (exit $ac_status); }; } && | |
32807 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32809 | (eval $ac_try) 2>&5 | |
32810 | ac_status=$? | |
32811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32812 | (exit $ac_status); }; }; then | |
32813 | echo "$as_me:$LINENO: result: yes" >&5 | |
32814 | echo "${ECHO_T}yes" >&6 | |
32815 | cat >>confdefs.h <<\_ACEOF | |
32816 | #define HAVE__VSNWPRINTF 1 | |
32817 | _ACEOF | |
32818 | ||
32819 | else | |
32820 | echo "$as_me: failed program was:" >&5 | |
32821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32822 | ||
32823 | echo "$as_me:$LINENO: result: no" >&5 | |
32824 | echo "${ECHO_T}no" >&6 | |
32825 | fi | |
ac1cb8d3 | 32826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
32827 | fi |
32828 | ||
32829 | ac_ext=c | |
32830 | ac_cpp='$CPP $CPPFLAGS' | |
32831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32834 | ||
32835 | ||
6ebeb4c7 VZ |
32836 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
32837 | ||
32838 | for ac_func in fnmatch | |
32839 | do | |
32840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32841 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32843 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32845 | else | |
32846 | cat >conftest.$ac_ext <<_ACEOF | |
32847 | /* confdefs.h. */ | |
32848 | _ACEOF | |
32849 | cat confdefs.h >>conftest.$ac_ext | |
32850 | cat >>conftest.$ac_ext <<_ACEOF | |
32851 | /* end confdefs.h. */ | |
32852 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
32853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32854 | #define $ac_func innocuous_$ac_func | |
32855 | ||
32856 | /* System header to define __stub macros and hopefully few prototypes, | |
32857 | which can conflict with char $ac_func (); below. | |
32858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32859 | <limits.h> exists even on freestanding compilers. */ | |
32860 | ||
32861 | #ifdef __STDC__ | |
32862 | # include <limits.h> | |
32863 | #else | |
32864 | # include <assert.h> | |
32865 | #endif | |
32866 | ||
32867 | #undef $ac_func | |
32868 | ||
32869 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32870 | #ifdef __cplusplus | |
32871 | extern "C" | |
32872 | { | |
32873 | #endif | |
32874 | /* We use char because int might match the return type of a gcc2 | |
32875 | builtin and then its argument prototype would still apply. */ | |
32876 | char $ac_func (); | |
32877 | /* The GNU C library defines this for functions which it implements | |
32878 | to always fail with ENOSYS. Some functions are actually named | |
32879 | something starting with __ and the normal name is an alias. */ | |
32880 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32881 | choke me | |
32882 | #else | |
32883 | char (*f) () = $ac_func; | |
32884 | #endif | |
32885 | #ifdef __cplusplus | |
32886 | } | |
32887 | #endif | |
32888 | ||
32889 | int | |
32890 | main () | |
32891 | { | |
32892 | return f != $ac_func; | |
32893 | ; | |
32894 | return 0; | |
32895 | } | |
32896 | _ACEOF | |
32897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32899 | (eval $ac_link) 2>conftest.er1 | |
32900 | ac_status=$? | |
32901 | grep -v '^ *+' conftest.er1 >conftest.err | |
32902 | rm -f conftest.er1 | |
32903 | cat conftest.err >&5 | |
32904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32905 | (exit $ac_status); } && | |
32906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
32907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32908 | (eval $ac_try) 2>&5 | |
32909 | ac_status=$? | |
32910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32911 | (exit $ac_status); }; } && | |
32912 | { ac_try='test -s conftest$ac_exeext' | |
32913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32914 | (eval $ac_try) 2>&5 | |
32915 | ac_status=$? | |
32916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32917 | (exit $ac_status); }; }; then | |
32918 | eval "$as_ac_var=yes" | |
32919 | else | |
32920 | echo "$as_me: failed program was:" >&5 | |
32921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32922 | ||
32923 | eval "$as_ac_var=no" | |
32924 | fi | |
32925 | rm -f conftest.err conftest.$ac_objext \ | |
32926 | conftest$ac_exeext conftest.$ac_ext | |
32927 | fi | |
32928 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32929 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32930 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32931 | cat >>confdefs.h <<_ACEOF | |
32932 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32933 | _ACEOF | |
32934 | ||
32935 | fi | |
32936 | done | |
32937 | ||
32938 | fi | |
32939 | ||
32940 | if test "$wxUSE_FILE" = "yes"; then | |
32941 | ||
32942 | for ac_func in fsync | |
32943 | do | |
32944 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32945 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32946 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32947 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32949 | else | |
32950 | cat >conftest.$ac_ext <<_ACEOF | |
32951 | /* confdefs.h. */ | |
32952 | _ACEOF | |
32953 | cat confdefs.h >>conftest.$ac_ext | |
32954 | cat >>conftest.$ac_ext <<_ACEOF | |
32955 | /* end confdefs.h. */ | |
32956 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
32957 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32958 | #define $ac_func innocuous_$ac_func | |
32959 | ||
32960 | /* System header to define __stub macros and hopefully few prototypes, | |
32961 | which can conflict with char $ac_func (); below. | |
32962 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32963 | <limits.h> exists even on freestanding compilers. */ | |
32964 | ||
32965 | #ifdef __STDC__ | |
32966 | # include <limits.h> | |
32967 | #else | |
32968 | # include <assert.h> | |
32969 | #endif | |
32970 | ||
32971 | #undef $ac_func | |
32972 | ||
32973 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32974 | #ifdef __cplusplus | |
32975 | extern "C" | |
32976 | { | |
32977 | #endif | |
32978 | /* We use char because int might match the return type of a gcc2 | |
32979 | builtin and then its argument prototype would still apply. */ | |
32980 | char $ac_func (); | |
32981 | /* The GNU C library defines this for functions which it implements | |
32982 | to always fail with ENOSYS. Some functions are actually named | |
32983 | something starting with __ and the normal name is an alias. */ | |
32984 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32985 | choke me | |
32986 | #else | |
32987 | char (*f) () = $ac_func; | |
32988 | #endif | |
32989 | #ifdef __cplusplus | |
32990 | } | |
32991 | #endif | |
32992 | ||
32993 | int | |
32994 | main () | |
32995 | { | |
32996 | return f != $ac_func; | |
32997 | ; | |
32998 | return 0; | |
32999 | } | |
33000 | _ACEOF | |
33001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33003 | (eval $ac_link) 2>conftest.er1 | |
33004 | ac_status=$? | |
33005 | grep -v '^ *+' conftest.er1 >conftest.err | |
33006 | rm -f conftest.er1 | |
33007 | cat conftest.err >&5 | |
33008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33009 | (exit $ac_status); } && | |
33010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
33011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33012 | (eval $ac_try) 2>&5 | |
33013 | ac_status=$? | |
33014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33015 | (exit $ac_status); }; } && | |
33016 | { ac_try='test -s conftest$ac_exeext' | |
33017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33018 | (eval $ac_try) 2>&5 | |
33019 | ac_status=$? | |
33020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33021 | (exit $ac_status); }; }; then | |
33022 | eval "$as_ac_var=yes" | |
33023 | else | |
33024 | echo "$as_me: failed program was:" >&5 | |
33025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33026 | ||
33027 | eval "$as_ac_var=no" | |
33028 | fi | |
33029 | rm -f conftest.err conftest.$ac_objext \ | |
33030 | conftest$ac_exeext conftest.$ac_ext | |
33031 | fi | |
33032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33033 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33034 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33035 | cat >>confdefs.h <<_ACEOF | |
33036 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33037 | _ACEOF | |
33038 | ||
33039 | fi | |
33040 | done | |
33041 | ||
33042 | fi | |
a848cd7e SC |
33043 | |
33044 | ||
33045 | if test "$TOOLKIT" != "MSW"; then | |
33046 | ||
33047 | ||
33048 | ||
33049 | ||
33050 | ac_ext=cc | |
33051 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33052 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33053 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33054 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33055 | ||
33056 | ||
33057 | ||
33058 | ||
33059 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
33060 | if test "${with_libiconv_prefix+set}" = set; then | |
33061 | withval="$with_libiconv_prefix" | |
33062 | ||
33063 | for dir in `echo "$withval" | tr : ' '`; do | |
33064 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
33065 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
33066 | done | |
33067 | ||
33068 | fi; | |
33069 | ||
33070 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
33071 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
33072 | if test "${am_cv_func_iconv+set}" = set; then | |
33073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33074 | else | |
33075 | ||
33076 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
33077 | am_cv_lib_iconv=no | |
33078 | cat >conftest.$ac_ext <<_ACEOF | |
33079 | /* confdefs.h. */ | |
33080 | _ACEOF | |
33081 | cat confdefs.h >>conftest.$ac_ext | |
33082 | cat >>conftest.$ac_ext <<_ACEOF | |
33083 | /* end confdefs.h. */ | |
33084 | #include <stdlib.h> | |
33085 | #include <iconv.h> | |
33086 | int | |
33087 | main () | |
33088 | { | |
33089 | iconv_t cd = iconv_open("",""); | |
33090 | iconv(cd,NULL,NULL,NULL,NULL); | |
33091 | iconv_close(cd); | |
33092 | ; | |
33093 | return 0; | |
33094 | } | |
33095 | _ACEOF | |
33096 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33098 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33099 | ac_status=$? |
ac1cb8d3 VS |
33100 | grep -v '^ *+' conftest.er1 >conftest.err |
33101 | rm -f conftest.er1 | |
33102 | cat conftest.err >&5 | |
a848cd7e SC |
33103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33104 | (exit $ac_status); } && | |
6ebeb4c7 | 33105 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33107 | (eval $ac_try) 2>&5 | |
33108 | ac_status=$? | |
33109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33110 | (exit $ac_status); }; } && | |
33111 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33113 | (eval $ac_try) 2>&5 | |
33114 | ac_status=$? | |
33115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33116 | (exit $ac_status); }; }; then | |
33117 | am_cv_func_iconv=yes | |
33118 | else | |
33119 | echo "$as_me: failed program was:" >&5 | |
33120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33121 | ||
33122 | fi | |
ac1cb8d3 VS |
33123 | rm -f conftest.err conftest.$ac_objext \ |
33124 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33125 | if test "$am_cv_func_iconv" != yes; then |
33126 | am_save_LIBS="$LIBS" | |
33127 | LIBS="$LIBS -liconv" | |
33128 | cat >conftest.$ac_ext <<_ACEOF | |
33129 | /* confdefs.h. */ | |
33130 | _ACEOF | |
33131 | cat confdefs.h >>conftest.$ac_ext | |
33132 | cat >>conftest.$ac_ext <<_ACEOF | |
33133 | /* end confdefs.h. */ | |
33134 | #include <stdlib.h> | |
33135 | #include <iconv.h> | |
33136 | int | |
33137 | main () | |
33138 | { | |
33139 | iconv_t cd = iconv_open("",""); | |
33140 | iconv(cd,NULL,NULL,NULL,NULL); | |
33141 | iconv_close(cd); | |
33142 | ; | |
33143 | return 0; | |
33144 | } | |
33145 | _ACEOF | |
33146 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33148 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33149 | ac_status=$? |
ac1cb8d3 VS |
33150 | grep -v '^ *+' conftest.er1 >conftest.err |
33151 | rm -f conftest.er1 | |
33152 | cat conftest.err >&5 | |
a848cd7e SC |
33153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33154 | (exit $ac_status); } && | |
6ebeb4c7 | 33155 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33157 | (eval $ac_try) 2>&5 | |
33158 | ac_status=$? | |
33159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33160 | (exit $ac_status); }; } && | |
33161 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33163 | (eval $ac_try) 2>&5 | |
33164 | ac_status=$? | |
33165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33166 | (exit $ac_status); }; }; then | |
33167 | am_cv_lib_iconv=yes | |
33168 | am_cv_func_iconv=yes | |
33169 | else | |
33170 | echo "$as_me: failed program was:" >&5 | |
33171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33172 | ||
33173 | fi | |
ac1cb8d3 VS |
33174 | rm -f conftest.err conftest.$ac_objext \ |
33175 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33176 | LIBS="$am_save_LIBS" |
33177 | fi | |
33178 | ||
33179 | fi | |
33180 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
33181 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
33182 | if test "$am_cv_func_iconv" = yes; then | |
33183 | ||
33184 | cat >>confdefs.h <<\_ACEOF | |
33185 | #define HAVE_ICONV 1 | |
33186 | _ACEOF | |
33187 | ||
33188 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
33189 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
33190 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
33191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33192 | else | |
33193 | cat >conftest.$ac_ext <<_ACEOF | |
33194 | /* confdefs.h. */ | |
33195 | _ACEOF | |
33196 | cat confdefs.h >>conftest.$ac_ext | |
33197 | cat >>conftest.$ac_ext <<_ACEOF | |
33198 | /* end confdefs.h. */ | |
33199 | ||
33200 | #include <stdlib.h> | |
33201 | #include <iconv.h> | |
33202 | extern | |
33203 | #ifdef __cplusplus | |
33204 | "C" | |
33205 | #endif | |
33206 | #if defined(__STDC__) || defined(__cplusplus) | |
33207 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
33208 | #else | |
33209 | size_t iconv(); | |
33210 | #endif | |
33211 | ||
33212 | int | |
33213 | main () | |
33214 | { | |
33215 | ||
33216 | ; | |
33217 | return 0; | |
33218 | } | |
33219 | _ACEOF | |
33220 | rm -f conftest.$ac_objext | |
33221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33222 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33223 | ac_status=$? |
ac1cb8d3 VS |
33224 | grep -v '^ *+' conftest.er1 >conftest.err |
33225 | rm -f conftest.er1 | |
33226 | cat conftest.err >&5 | |
a848cd7e SC |
33227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33228 | (exit $ac_status); } && | |
6ebeb4c7 | 33229 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33231 | (eval $ac_try) 2>&5 | |
33232 | ac_status=$? | |
33233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33234 | (exit $ac_status); }; } && | |
33235 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33237 | (eval $ac_try) 2>&5 | |
33238 | ac_status=$? | |
33239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33240 | (exit $ac_status); }; }; then | |
33241 | wx_cv_func_iconv_const="no" | |
33242 | else | |
33243 | echo "$as_me: failed program was:" >&5 | |
33244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33245 | ||
33246 | wx_cv_func_iconv_const="yes" | |
33247 | ||
33248 | fi | |
ac1cb8d3 | 33249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33250 | |
33251 | fi | |
33252 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
33253 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
33254 | ||
33255 | iconv_const= | |
33256 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
33257 | iconv_const="const" | |
33258 | fi | |
33259 | ||
33260 | ||
33261 | cat >>confdefs.h <<_ACEOF | |
33262 | #define ICONV_CONST $iconv_const | |
33263 | _ACEOF | |
33264 | ||
33265 | fi | |
33266 | LIBICONV= | |
33267 | if test "$am_cv_lib_iconv" = yes; then | |
33268 | LIBICONV="-liconv" | |
33269 | fi | |
33270 | ||
33271 | ||
33272 | LIBS="$LIBICONV $LIBS" | |
33273 | ac_ext=c | |
33274 | ac_cpp='$CPP $CPPFLAGS' | |
33275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33278 | ||
33279 | ||
33280 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
33281 | ||
33282 | for ac_func in sigaction | |
33283 | do | |
33284 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33285 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33286 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33287 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33289 | else | |
33290 | cat >conftest.$ac_ext <<_ACEOF | |
33291 | /* confdefs.h. */ | |
33292 | _ACEOF | |
33293 | cat confdefs.h >>conftest.$ac_ext | |
33294 | cat >>conftest.$ac_ext <<_ACEOF | |
33295 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33296 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33297 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33298 | #define $ac_func innocuous_$ac_func | |
33299 | ||
a848cd7e SC |
33300 | /* System header to define __stub macros and hopefully few prototypes, |
33301 | which can conflict with char $ac_func (); below. | |
33302 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33303 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33304 | |
a848cd7e SC |
33305 | #ifdef __STDC__ |
33306 | # include <limits.h> | |
33307 | #else | |
33308 | # include <assert.h> | |
33309 | #endif | |
ac1cb8d3 VS |
33310 | |
33311 | #undef $ac_func | |
33312 | ||
a848cd7e SC |
33313 | /* Override any gcc2 internal prototype to avoid an error. */ |
33314 | #ifdef __cplusplus | |
33315 | extern "C" | |
33316 | { | |
33317 | #endif | |
33318 | /* We use char because int might match the return type of a gcc2 | |
33319 | builtin and then its argument prototype would still apply. */ | |
33320 | char $ac_func (); | |
33321 | /* The GNU C library defines this for functions which it implements | |
33322 | to always fail with ENOSYS. Some functions are actually named | |
33323 | something starting with __ and the normal name is an alias. */ | |
33324 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33325 | choke me | |
33326 | #else | |
33327 | char (*f) () = $ac_func; | |
33328 | #endif | |
33329 | #ifdef __cplusplus | |
33330 | } | |
33331 | #endif | |
33332 | ||
33333 | int | |
33334 | main () | |
33335 | { | |
33336 | return f != $ac_func; | |
33337 | ; | |
33338 | return 0; | |
33339 | } | |
33340 | _ACEOF | |
33341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33343 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33344 | ac_status=$? |
ac1cb8d3 VS |
33345 | grep -v '^ *+' conftest.er1 >conftest.err |
33346 | rm -f conftest.er1 | |
33347 | cat conftest.err >&5 | |
a848cd7e SC |
33348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33349 | (exit $ac_status); } && | |
6ebeb4c7 | 33350 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33352 | (eval $ac_try) 2>&5 | |
33353 | ac_status=$? | |
33354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33355 | (exit $ac_status); }; } && | |
33356 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33358 | (eval $ac_try) 2>&5 | |
33359 | ac_status=$? | |
33360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33361 | (exit $ac_status); }; }; then | |
33362 | eval "$as_ac_var=yes" | |
33363 | else | |
33364 | echo "$as_me: failed program was:" >&5 | |
33365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33366 | ||
33367 | eval "$as_ac_var=no" | |
33368 | fi | |
ac1cb8d3 VS |
33369 | rm -f conftest.err conftest.$ac_objext \ |
33370 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33371 | fi |
33372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33373 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33374 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33375 | cat >>confdefs.h <<_ACEOF | |
33376 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33377 | _ACEOF | |
33378 | ||
33379 | fi | |
33380 | done | |
33381 | ||
33382 | ||
33383 | if test "$ac_cv_func_sigaction" = "no"; then | |
33384 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
33385 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
33386 | wxUSE_ON_FATAL_EXCEPTION=no | |
33387 | fi | |
33388 | ||
33389 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
33390 | ||
33391 | ||
33392 | ac_ext=cc | |
33393 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33394 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33395 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33396 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33397 | ||
33398 | ||
33399 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
33400 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
33401 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
33402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33403 | else | |
33404 | ||
33405 | cat >conftest.$ac_ext <<_ACEOF | |
33406 | /* confdefs.h. */ | |
33407 | _ACEOF | |
33408 | cat confdefs.h >>conftest.$ac_ext | |
33409 | cat >>conftest.$ac_ext <<_ACEOF | |
33410 | /* end confdefs.h. */ | |
33411 | #include <signal.h> | |
33412 | int | |
33413 | main () | |
33414 | { | |
33415 | ||
33416 | extern void testSigHandler(int); | |
33417 | ||
33418 | struct sigaction sa; | |
33419 | sa.sa_handler = testSigHandler; | |
33420 | ||
33421 | ; | |
33422 | return 0; | |
33423 | } | |
33424 | _ACEOF | |
33425 | rm -f conftest.$ac_objext | |
33426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33427 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33428 | ac_status=$? |
ac1cb8d3 VS |
33429 | grep -v '^ *+' conftest.er1 >conftest.err |
33430 | rm -f conftest.er1 | |
33431 | cat conftest.err >&5 | |
a848cd7e SC |
33432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33433 | (exit $ac_status); } && | |
6ebeb4c7 | 33434 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33436 | (eval $ac_try) 2>&5 | |
33437 | ac_status=$? | |
33438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33439 | (exit $ac_status); }; } && | |
33440 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33442 | (eval $ac_try) 2>&5 | |
33443 | ac_status=$? | |
33444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33445 | (exit $ac_status); }; }; then | |
33446 | ||
33447 | wx_cv_type_sa_handler=int | |
33448 | ||
33449 | else | |
33450 | echo "$as_me: failed program was:" >&5 | |
33451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33452 | ||
33453 | ||
33454 | wx_cv_type_sa_handler=void | |
33455 | ||
33456 | fi | |
ac1cb8d3 | 33457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33458 | |
33459 | fi | |
33460 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
33461 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
33462 | ||
33463 | ac_ext=c | |
33464 | ac_cpp='$CPP $CPPFLAGS' | |
33465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33468 | ||
33469 | ||
33470 | cat >>confdefs.h <<_ACEOF | |
33471 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
33472 | _ACEOF | |
33473 | ||
33474 | fi | |
33475 | fi | |
33476 | ||
eaff0f0d VZ |
33477 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
33478 | ||
33479 | ||
33480 | ac_ext=cc | |
33481 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33482 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33483 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33484 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33485 | ||
33486 | ||
33487 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
33488 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
33489 | if test "${wx_cv_func_backtrace+set}" = set; then | |
33490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33491 | else | |
33492 | ||
33493 | cat >conftest.$ac_ext <<_ACEOF | |
33494 | /* confdefs.h. */ | |
33495 | _ACEOF | |
33496 | cat confdefs.h >>conftest.$ac_ext | |
33497 | cat >>conftest.$ac_ext <<_ACEOF | |
33498 | /* end confdefs.h. */ | |
33499 | #include <execinfo.h> | |
33500 | int | |
33501 | main () | |
33502 | { | |
33503 | ||
33504 | void *trace[1]; | |
33505 | char **messages; | |
33506 | ||
33507 | backtrace(trace, 1); | |
33508 | messages = backtrace_symbols(trace, 1); | |
33509 | ||
33510 | ; | |
33511 | return 0; | |
33512 | } | |
33513 | _ACEOF | |
33514 | rm -f conftest.$ac_objext | |
33515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33516 | (eval $ac_compile) 2>conftest.er1 | |
33517 | ac_status=$? | |
33518 | grep -v '^ *+' conftest.er1 >conftest.err | |
33519 | rm -f conftest.er1 | |
33520 | cat conftest.err >&5 | |
33521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33522 | (exit $ac_status); } && | |
6ebeb4c7 | 33523 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
33524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33525 | (eval $ac_try) 2>&5 | |
33526 | ac_status=$? | |
33527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33528 | (exit $ac_status); }; } && | |
33529 | { ac_try='test -s conftest.$ac_objext' | |
33530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33531 | (eval $ac_try) 2>&5 | |
33532 | ac_status=$? | |
33533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33534 | (exit $ac_status); }; }; then | |
33535 | wx_cv_func_backtrace=yes | |
33536 | else | |
33537 | echo "$as_me: failed program was:" >&5 | |
33538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33539 | ||
33540 | wx_cv_func_backtrace=no | |
33541 | ||
33542 | fi | |
33543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33544 | ||
33545 | ||
33546 | fi | |
33547 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
33548 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
33549 | ||
33550 | ||
33551 | if test "$wx_cv_func_backtrace" = "no"; then | |
33552 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
33553 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
33554 | wxUSE_STACKWALKER=no | |
33555 | else | |
33556 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
33557 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
33558 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
33559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33560 | else | |
33561 | ||
33562 | cat >conftest.$ac_ext <<_ACEOF | |
33563 | /* confdefs.h. */ | |
33564 | _ACEOF | |
33565 | cat confdefs.h >>conftest.$ac_ext | |
33566 | cat >>conftest.$ac_ext <<_ACEOF | |
33567 | /* end confdefs.h. */ | |
33568 | #include <cxxabi.h> | |
33569 | int | |
33570 | main () | |
33571 | { | |
33572 | ||
33573 | int rc; | |
33574 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
33575 | ||
33576 | ; | |
33577 | return 0; | |
33578 | } | |
33579 | _ACEOF | |
dfe0c803 JS |
33580 | rm -f conftest.$ac_objext conftest$ac_exeext |
33581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33582 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
33583 | ac_status=$? |
33584 | grep -v '^ *+' conftest.er1 >conftest.err | |
33585 | rm -f conftest.er1 | |
33586 | cat conftest.err >&5 | |
33587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33588 | (exit $ac_status); } && | |
6ebeb4c7 | 33589 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
33590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33591 | (eval $ac_try) 2>&5 | |
33592 | ac_status=$? | |
33593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33594 | (exit $ac_status); }; } && | |
dfe0c803 | 33595 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
33596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33597 | (eval $ac_try) 2>&5 | |
33598 | ac_status=$? | |
33599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33600 | (exit $ac_status); }; }; then | |
33601 | wx_cv_func_cxa_demangle=yes | |
33602 | else | |
33603 | echo "$as_me: failed program was:" >&5 | |
33604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33605 | ||
33606 | wx_cv_func_cxa_demangle=no | |
33607 | ||
33608 | fi | |
dfe0c803 JS |
33609 | rm -f conftest.err conftest.$ac_objext \ |
33610 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
33611 | |
33612 | ||
33613 | fi | |
33614 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
33615 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
33616 | ||
33617 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
33618 | cat >>confdefs.h <<\_ACEOF | |
33619 | #define HAVE_CXA_DEMANGLE 1 | |
33620 | _ACEOF | |
33621 | ||
33622 | fi | |
33623 | fi | |
33624 | ||
33625 | ac_ext=c | |
33626 | ac_cpp='$CPP $CPPFLAGS' | |
33627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33630 | ||
33631 | fi | |
33632 | ||
898beab1 DE |
33633 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
33634 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
33635 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
33636 | wxUSE_STACKWALKER=no | |
33637 | fi | |
33638 | ||
33639 | ||
a848cd7e SC |
33640 | |
33641 | ||
33642 | for ac_func in mkstemp mktemp | |
33643 | do | |
33644 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33645 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33646 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33647 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33649 | else | |
33650 | cat >conftest.$ac_ext <<_ACEOF | |
33651 | /* confdefs.h. */ | |
33652 | _ACEOF | |
33653 | cat confdefs.h >>conftest.$ac_ext | |
33654 | cat >>conftest.$ac_ext <<_ACEOF | |
33655 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33656 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33657 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33658 | #define $ac_func innocuous_$ac_func | |
33659 | ||
a848cd7e SC |
33660 | /* System header to define __stub macros and hopefully few prototypes, |
33661 | which can conflict with char $ac_func (); below. | |
33662 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33663 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33664 | |
a848cd7e SC |
33665 | #ifdef __STDC__ |
33666 | # include <limits.h> | |
33667 | #else | |
33668 | # include <assert.h> | |
33669 | #endif | |
ac1cb8d3 VS |
33670 | |
33671 | #undef $ac_func | |
33672 | ||
a848cd7e SC |
33673 | /* Override any gcc2 internal prototype to avoid an error. */ |
33674 | #ifdef __cplusplus | |
33675 | extern "C" | |
33676 | { | |
33677 | #endif | |
33678 | /* We use char because int might match the return type of a gcc2 | |
33679 | builtin and then its argument prototype would still apply. */ | |
33680 | char $ac_func (); | |
33681 | /* The GNU C library defines this for functions which it implements | |
33682 | to always fail with ENOSYS. Some functions are actually named | |
33683 | something starting with __ and the normal name is an alias. */ | |
33684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33685 | choke me | |
33686 | #else | |
33687 | char (*f) () = $ac_func; | |
33688 | #endif | |
33689 | #ifdef __cplusplus | |
33690 | } | |
33691 | #endif | |
33692 | ||
33693 | int | |
33694 | main () | |
33695 | { | |
33696 | return f != $ac_func; | |
33697 | ; | |
33698 | return 0; | |
33699 | } | |
33700 | _ACEOF | |
33701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33703 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33704 | ac_status=$? |
ac1cb8d3 VS |
33705 | grep -v '^ *+' conftest.er1 >conftest.err |
33706 | rm -f conftest.er1 | |
33707 | cat conftest.err >&5 | |
a848cd7e SC |
33708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33709 | (exit $ac_status); } && | |
6ebeb4c7 | 33710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33712 | (eval $ac_try) 2>&5 | |
33713 | ac_status=$? | |
33714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33715 | (exit $ac_status); }; } && | |
33716 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33718 | (eval $ac_try) 2>&5 | |
33719 | ac_status=$? | |
33720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33721 | (exit $ac_status); }; }; then | |
33722 | eval "$as_ac_var=yes" | |
33723 | else | |
33724 | echo "$as_me: failed program was:" >&5 | |
33725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33726 | ||
33727 | eval "$as_ac_var=no" | |
33728 | fi | |
ac1cb8d3 VS |
33729 | rm -f conftest.err conftest.$ac_objext \ |
33730 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33731 | fi |
33732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33733 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33734 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33735 | cat >>confdefs.h <<_ACEOF | |
33736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33737 | _ACEOF | |
33738 | break | |
33739 | fi | |
33740 | done | |
33741 | ||
33742 | ||
33743 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
33744 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
33745 | if test "${wx_cv_func_statfs+set}" = set; then | |
33746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33747 | else | |
33748 | cat >conftest.$ac_ext <<_ACEOF | |
33749 | /* confdefs.h. */ | |
33750 | _ACEOF | |
33751 | cat confdefs.h >>conftest.$ac_ext | |
33752 | cat >>conftest.$ac_ext <<_ACEOF | |
33753 | /* end confdefs.h. */ | |
33754 | ||
33755 | #if defined(__BSD__) | |
84ae7ca4 VZ |
33756 | #include <sys/param.h> |
33757 | #include <sys/mount.h> | |
a848cd7e | 33758 | #else |
84ae7ca4 | 33759 | #include <sys/vfs.h> |
a848cd7e SC |
33760 | #endif |
33761 | ||
33762 | int | |
33763 | main () | |
33764 | { | |
33765 | ||
33766 | long l; | |
33767 | struct statfs fs; | |
33768 | statfs("/", &fs); | |
33769 | l = fs.f_bsize; | |
33770 | l += fs.f_blocks; | |
33771 | l += fs.f_bavail; | |
33772 | ||
33773 | ; | |
33774 | return 0; | |
33775 | } | |
33776 | _ACEOF | |
33777 | rm -f conftest.$ac_objext | |
33778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33779 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33780 | ac_status=$? |
ac1cb8d3 VS |
33781 | grep -v '^ *+' conftest.er1 >conftest.err |
33782 | rm -f conftest.er1 | |
33783 | cat conftest.err >&5 | |
a848cd7e SC |
33784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33785 | (exit $ac_status); } && | |
6ebeb4c7 | 33786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33788 | (eval $ac_try) 2>&5 | |
33789 | ac_status=$? | |
33790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33791 | (exit $ac_status); }; } && | |
33792 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33794 | (eval $ac_try) 2>&5 | |
33795 | ac_status=$? | |
33796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33797 | (exit $ac_status); }; }; then | |
84ae7ca4 | 33798 | wx_cv_func_statfs=yes |
a848cd7e SC |
33799 | else |
33800 | echo "$as_me: failed program was:" >&5 | |
33801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33802 | ||
84ae7ca4 | 33803 | wx_cv_func_statfs=no |
a848cd7e SC |
33804 | |
33805 | fi | |
ac1cb8d3 | 33806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33807 | |
33808 | fi | |
33809 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
33810 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
33811 | ||
33812 | if test "$wx_cv_func_statfs" = "yes"; then | |
84ae7ca4 VZ |
33813 | |
33814 | ||
33815 | ac_ext=cc | |
33816 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33817 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33818 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33819 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33820 | ||
33821 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 | |
33822 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 | |
33823 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
33824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33825 | else | |
0683aca6 VZ |
33826 | cat >conftest.$ac_ext <<_ACEOF |
33827 | /* confdefs.h. */ | |
33828 | _ACEOF | |
33829 | cat confdefs.h >>conftest.$ac_ext | |
33830 | cat >>conftest.$ac_ext <<_ACEOF | |
33831 | /* end confdefs.h. */ | |
84ae7ca4 | 33832 | |
0683aca6 VZ |
33833 | #if defined(__BSD__) |
33834 | #include <sys/param.h> | |
33835 | #include <sys/mount.h> | |
33836 | #else | |
33837 | #include <sys/vfs.h> | |
33838 | #endif | |
33839 | ||
33840 | int | |
33841 | main () | |
33842 | { | |
33843 | ||
33844 | struct statfs fs; | |
33845 | statfs("", &fs); | |
33846 | ||
33847 | ; | |
33848 | return 0; | |
33849 | } | |
33850 | _ACEOF | |
33851 | rm -f conftest.$ac_objext | |
33852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33853 | (eval $ac_compile) 2>conftest.er1 | |
33854 | ac_status=$? | |
33855 | grep -v '^ *+' conftest.er1 >conftest.err | |
33856 | rm -f conftest.er1 | |
33857 | cat conftest.err >&5 | |
33858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33859 | (exit $ac_status); } && | |
33860 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
33861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33862 | (eval $ac_try) 2>&5 | |
33863 | ac_status=$? | |
33864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33865 | (exit $ac_status); }; } && | |
33866 | { ac_try='test -s conftest.$ac_objext' | |
33867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33868 | (eval $ac_try) 2>&5 | |
33869 | ac_status=$? | |
33870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33871 | (exit $ac_status); }; }; then | |
33872 | wx_cv_func_statfs_decl=yes | |
33873 | else | |
33874 | echo "$as_me: failed program was:" >&5 | |
33875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33876 | ||
33877 | wx_cv_func_statfs_decl=no | |
33878 | ||
33879 | fi | |
33880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
33881 | |
33882 | fi | |
33883 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
33884 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
33885 | ac_ext=c | |
33886 | ac_cpp='$CPP $CPPFLAGS' | |
33887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33890 | ||
33891 | ||
33892 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
33893 | cat >>confdefs.h <<\_ACEOF | |
33894 | #define HAVE_STATFS_DECL 1 | |
33895 | _ACEOF | |
33896 | ||
33897 | fi | |
33898 | ||
a848cd7e SC |
33899 | wx_cv_type_statvfs_t="struct statfs" |
33900 | cat >>confdefs.h <<\_ACEOF | |
33901 | #define HAVE_STATFS 1 | |
33902 | _ACEOF | |
33903 | ||
33904 | else | |
33905 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
33906 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
33907 | if test "${wx_cv_func_statvfs+set}" = set; then | |
33908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33909 | else | |
33910 | cat >conftest.$ac_ext <<_ACEOF | |
33911 | /* confdefs.h. */ | |
33912 | _ACEOF | |
33913 | cat confdefs.h >>conftest.$ac_ext | |
33914 | cat >>conftest.$ac_ext <<_ACEOF | |
33915 | /* end confdefs.h. */ | |
33916 | ||
33917 | #include <stddef.h> | |
33918 | #include <sys/statvfs.h> | |
33919 | ||
33920 | int | |
33921 | main () | |
33922 | { | |
33923 | ||
33924 | statvfs("/", NULL); | |
33925 | ||
33926 | ; | |
33927 | return 0; | |
33928 | } | |
33929 | _ACEOF | |
33930 | rm -f conftest.$ac_objext | |
33931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33932 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33933 | ac_status=$? |
ac1cb8d3 VS |
33934 | grep -v '^ *+' conftest.er1 >conftest.err |
33935 | rm -f conftest.er1 | |
33936 | cat conftest.err >&5 | |
a848cd7e SC |
33937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33938 | (exit $ac_status); } && | |
6ebeb4c7 | 33939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33941 | (eval $ac_try) 2>&5 | |
33942 | ac_status=$? | |
33943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33944 | (exit $ac_status); }; } && | |
33945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33947 | (eval $ac_try) 2>&5 | |
33948 | ac_status=$? | |
33949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33950 | (exit $ac_status); }; }; then | |
33951 | wx_cv_func_statvfs=yes | |
33952 | else | |
33953 | echo "$as_me: failed program was:" >&5 | |
33954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33955 | ||
33956 | wx_cv_func_statvfs=no | |
33957 | ||
33958 | fi | |
ac1cb8d3 | 33959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33960 | |
33961 | fi | |
33962 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
33963 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
33964 | ||
33965 | if test "$wx_cv_func_statvfs" = "yes"; then | |
33966 | ||
33967 | ||
33968 | ac_ext=cc | |
33969 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33970 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33971 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33972 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33973 | ||
33974 | ||
33975 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
33976 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
33977 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
33978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33979 | else | |
33980 | cat >conftest.$ac_ext <<_ACEOF | |
33981 | /* confdefs.h. */ | |
33982 | _ACEOF | |
33983 | cat confdefs.h >>conftest.$ac_ext | |
33984 | cat >>conftest.$ac_ext <<_ACEOF | |
33985 | /* end confdefs.h. */ | |
33986 | ||
33987 | #include <sys/statvfs.h> | |
33988 | ||
33989 | int | |
33990 | main () | |
33991 | { | |
33992 | ||
33993 | long l; | |
33994 | statvfs_t fs; | |
33995 | statvfs("/", &fs); | |
33996 | l = fs.f_bsize; | |
33997 | l += fs.f_blocks; | |
33998 | l += fs.f_bavail; | |
33999 | ||
34000 | ; | |
34001 | return 0; | |
34002 | } | |
34003 | _ACEOF | |
34004 | rm -f conftest.$ac_objext | |
34005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34006 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34007 | ac_status=$? |
ac1cb8d3 VS |
34008 | grep -v '^ *+' conftest.er1 >conftest.err |
34009 | rm -f conftest.er1 | |
34010 | cat conftest.err >&5 | |
a848cd7e SC |
34011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34012 | (exit $ac_status); } && | |
6ebeb4c7 | 34013 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34015 | (eval $ac_try) 2>&5 | |
34016 | ac_status=$? | |
34017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34018 | (exit $ac_status); }; } && | |
34019 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34021 | (eval $ac_try) 2>&5 | |
34022 | ac_status=$? | |
34023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34024 | (exit $ac_status); }; }; then | |
34025 | wx_cv_type_statvfs_t=statvfs_t | |
34026 | else | |
34027 | echo "$as_me: failed program was:" >&5 | |
34028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34029 | ||
34030 | ||
34031 | cat >conftest.$ac_ext <<_ACEOF | |
34032 | /* confdefs.h. */ | |
34033 | _ACEOF | |
34034 | cat confdefs.h >>conftest.$ac_ext | |
34035 | cat >>conftest.$ac_ext <<_ACEOF | |
34036 | /* end confdefs.h. */ | |
34037 | ||
34038 | #include <sys/statvfs.h> | |
34039 | ||
34040 | int | |
34041 | main () | |
34042 | { | |
34043 | ||
34044 | long l; | |
34045 | struct statvfs fs; | |
34046 | statvfs("/", &fs); | |
34047 | l = fs.f_bsize; | |
34048 | l += fs.f_blocks; | |
34049 | l += fs.f_bavail; | |
34050 | ||
34051 | ; | |
34052 | return 0; | |
34053 | } | |
34054 | _ACEOF | |
34055 | rm -f conftest.$ac_objext | |
34056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34057 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34058 | ac_status=$? |
ac1cb8d3 VS |
34059 | grep -v '^ *+' conftest.er1 >conftest.err |
34060 | rm -f conftest.er1 | |
34061 | cat conftest.err >&5 | |
a848cd7e SC |
34062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34063 | (exit $ac_status); } && | |
6ebeb4c7 | 34064 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34066 | (eval $ac_try) 2>&5 | |
34067 | ac_status=$? | |
34068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34069 | (exit $ac_status); }; } && | |
34070 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34072 | (eval $ac_try) 2>&5 | |
34073 | ac_status=$? | |
34074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34075 | (exit $ac_status); }; }; then | |
34076 | wx_cv_type_statvfs_t="struct statvfs" | |
34077 | else | |
34078 | echo "$as_me: failed program was:" >&5 | |
34079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34080 | ||
34081 | wx_cv_type_statvfs_t="unknown" | |
34082 | ||
34083 | fi | |
ac1cb8d3 | 34084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34085 | |
34086 | ||
34087 | fi | |
ac1cb8d3 | 34088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34089 | |
34090 | fi | |
34091 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
34092 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
34093 | ||
34094 | ac_ext=c | |
34095 | ac_cpp='$CPP $CPPFLAGS' | |
34096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34099 | ||
34100 | ||
34101 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
34102 | cat >>confdefs.h <<\_ACEOF | |
34103 | #define HAVE_STATVFS 1 | |
34104 | _ACEOF | |
34105 | ||
34106 | fi | |
34107 | else | |
34108 | wx_cv_type_statvfs_t="unknown" | |
34109 | fi | |
34110 | fi | |
34111 | ||
34112 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
34113 | cat >>confdefs.h <<_ACEOF | |
34114 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
34115 | _ACEOF | |
34116 | ||
34117 | else | |
34118 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
34119 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
34120 | fi | |
34121 | ||
34122 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34123 | ||
34124 | ||
34125 | for ac_func in fcntl flock | |
34126 | do | |
34127 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34128 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34129 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34130 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34132 | else | |
34133 | cat >conftest.$ac_ext <<_ACEOF | |
34134 | /* confdefs.h. */ | |
34135 | _ACEOF | |
34136 | cat confdefs.h >>conftest.$ac_ext | |
34137 | cat >>conftest.$ac_ext <<_ACEOF | |
34138 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34139 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34140 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34141 | #define $ac_func innocuous_$ac_func | |
34142 | ||
a848cd7e SC |
34143 | /* System header to define __stub macros and hopefully few prototypes, |
34144 | which can conflict with char $ac_func (); below. | |
34145 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34146 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34147 | |
a848cd7e SC |
34148 | #ifdef __STDC__ |
34149 | # include <limits.h> | |
34150 | #else | |
34151 | # include <assert.h> | |
34152 | #endif | |
ac1cb8d3 VS |
34153 | |
34154 | #undef $ac_func | |
34155 | ||
a848cd7e SC |
34156 | /* Override any gcc2 internal prototype to avoid an error. */ |
34157 | #ifdef __cplusplus | |
34158 | extern "C" | |
34159 | { | |
34160 | #endif | |
34161 | /* We use char because int might match the return type of a gcc2 | |
34162 | builtin and then its argument prototype would still apply. */ | |
34163 | char $ac_func (); | |
34164 | /* The GNU C library defines this for functions which it implements | |
34165 | to always fail with ENOSYS. Some functions are actually named | |
34166 | something starting with __ and the normal name is an alias. */ | |
34167 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34168 | choke me | |
34169 | #else | |
34170 | char (*f) () = $ac_func; | |
34171 | #endif | |
34172 | #ifdef __cplusplus | |
34173 | } | |
34174 | #endif | |
34175 | ||
34176 | int | |
34177 | main () | |
34178 | { | |
34179 | return f != $ac_func; | |
34180 | ; | |
34181 | return 0; | |
34182 | } | |
34183 | _ACEOF | |
34184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34186 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34187 | ac_status=$? |
ac1cb8d3 VS |
34188 | grep -v '^ *+' conftest.er1 >conftest.err |
34189 | rm -f conftest.er1 | |
34190 | cat conftest.err >&5 | |
a848cd7e SC |
34191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34192 | (exit $ac_status); } && | |
6ebeb4c7 | 34193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34195 | (eval $ac_try) 2>&5 | |
34196 | ac_status=$? | |
34197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34198 | (exit $ac_status); }; } && | |
34199 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34201 | (eval $ac_try) 2>&5 | |
34202 | ac_status=$? | |
34203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34204 | (exit $ac_status); }; }; then | |
34205 | eval "$as_ac_var=yes" | |
34206 | else | |
34207 | echo "$as_me: failed program was:" >&5 | |
34208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34209 | ||
34210 | eval "$as_ac_var=no" | |
34211 | fi | |
ac1cb8d3 VS |
34212 | rm -f conftest.err conftest.$ac_objext \ |
34213 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34214 | fi |
34215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34216 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34217 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34218 | cat >>confdefs.h <<_ACEOF | |
34219 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34220 | _ACEOF | |
34221 | break | |
34222 | fi | |
34223 | done | |
34224 | ||
34225 | ||
34226 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
34227 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
34228 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
34229 | wxUSE_SNGLINST_CHECKER=no | |
34230 | fi | |
34231 | fi | |
34232 | ||
34233 | ||
34234 | for ac_func in timegm | |
34235 | do | |
34236 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34237 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34238 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34239 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34241 | else | |
34242 | cat >conftest.$ac_ext <<_ACEOF | |
34243 | /* confdefs.h. */ | |
34244 | _ACEOF | |
34245 | cat confdefs.h >>conftest.$ac_ext | |
34246 | cat >>conftest.$ac_ext <<_ACEOF | |
34247 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34248 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34249 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34250 | #define $ac_func innocuous_$ac_func | |
34251 | ||
a848cd7e SC |
34252 | /* System header to define __stub macros and hopefully few prototypes, |
34253 | which can conflict with char $ac_func (); below. | |
34254 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34255 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34256 | |
a848cd7e SC |
34257 | #ifdef __STDC__ |
34258 | # include <limits.h> | |
34259 | #else | |
34260 | # include <assert.h> | |
34261 | #endif | |
ac1cb8d3 VS |
34262 | |
34263 | #undef $ac_func | |
34264 | ||
a848cd7e SC |
34265 | /* Override any gcc2 internal prototype to avoid an error. */ |
34266 | #ifdef __cplusplus | |
34267 | extern "C" | |
34268 | { | |
34269 | #endif | |
34270 | /* We use char because int might match the return type of a gcc2 | |
34271 | builtin and then its argument prototype would still apply. */ | |
34272 | char $ac_func (); | |
34273 | /* The GNU C library defines this for functions which it implements | |
34274 | to always fail with ENOSYS. Some functions are actually named | |
34275 | something starting with __ and the normal name is an alias. */ | |
34276 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34277 | choke me | |
34278 | #else | |
34279 | char (*f) () = $ac_func; | |
34280 | #endif | |
34281 | #ifdef __cplusplus | |
34282 | } | |
34283 | #endif | |
34284 | ||
34285 | int | |
34286 | main () | |
34287 | { | |
34288 | return f != $ac_func; | |
34289 | ; | |
34290 | return 0; | |
34291 | } | |
34292 | _ACEOF | |
34293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34295 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34296 | ac_status=$? |
ac1cb8d3 VS |
34297 | grep -v '^ *+' conftest.er1 >conftest.err |
34298 | rm -f conftest.er1 | |
34299 | cat conftest.err >&5 | |
a848cd7e SC |
34300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34301 | (exit $ac_status); } && | |
6ebeb4c7 | 34302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34304 | (eval $ac_try) 2>&5 | |
34305 | ac_status=$? | |
34306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34307 | (exit $ac_status); }; } && | |
34308 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34310 | (eval $ac_try) 2>&5 | |
34311 | ac_status=$? | |
34312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34313 | (exit $ac_status); }; }; then | |
34314 | eval "$as_ac_var=yes" | |
34315 | else | |
34316 | echo "$as_me: failed program was:" >&5 | |
34317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34318 | ||
34319 | eval "$as_ac_var=no" | |
34320 | fi | |
ac1cb8d3 VS |
34321 | rm -f conftest.err conftest.$ac_objext \ |
34322 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34323 | fi |
34324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34325 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34326 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34327 | cat >>confdefs.h <<_ACEOF | |
34328 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34329 | _ACEOF | |
34330 | ||
34331 | fi | |
34332 | done | |
34333 | ||
34334 | ||
34335 | ||
34336 | ||
34337 | for ac_func in putenv setenv | |
34338 | do | |
34339 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34340 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34341 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34342 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34344 | else | |
34345 | cat >conftest.$ac_ext <<_ACEOF | |
34346 | /* confdefs.h. */ | |
34347 | _ACEOF | |
34348 | cat confdefs.h >>conftest.$ac_ext | |
34349 | cat >>conftest.$ac_ext <<_ACEOF | |
34350 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34351 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34352 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34353 | #define $ac_func innocuous_$ac_func | |
34354 | ||
a848cd7e SC |
34355 | /* System header to define __stub macros and hopefully few prototypes, |
34356 | which can conflict with char $ac_func (); below. | |
34357 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34358 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34359 | |
a848cd7e SC |
34360 | #ifdef __STDC__ |
34361 | # include <limits.h> | |
34362 | #else | |
34363 | # include <assert.h> | |
34364 | #endif | |
ac1cb8d3 VS |
34365 | |
34366 | #undef $ac_func | |
34367 | ||
a848cd7e SC |
34368 | /* Override any gcc2 internal prototype to avoid an error. */ |
34369 | #ifdef __cplusplus | |
34370 | extern "C" | |
34371 | { | |
34372 | #endif | |
34373 | /* We use char because int might match the return type of a gcc2 | |
34374 | builtin and then its argument prototype would still apply. */ | |
34375 | char $ac_func (); | |
34376 | /* The GNU C library defines this for functions which it implements | |
34377 | to always fail with ENOSYS. Some functions are actually named | |
34378 | something starting with __ and the normal name is an alias. */ | |
34379 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34380 | choke me | |
34381 | #else | |
34382 | char (*f) () = $ac_func; | |
34383 | #endif | |
34384 | #ifdef __cplusplus | |
34385 | } | |
34386 | #endif | |
34387 | ||
34388 | int | |
34389 | main () | |
34390 | { | |
34391 | return f != $ac_func; | |
34392 | ; | |
34393 | return 0; | |
34394 | } | |
34395 | _ACEOF | |
34396 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34398 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34399 | ac_status=$? |
ac1cb8d3 VS |
34400 | grep -v '^ *+' conftest.er1 >conftest.err |
34401 | rm -f conftest.er1 | |
34402 | cat conftest.err >&5 | |
a848cd7e SC |
34403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34404 | (exit $ac_status); } && | |
6ebeb4c7 | 34405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34407 | (eval $ac_try) 2>&5 | |
34408 | ac_status=$? | |
34409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34410 | (exit $ac_status); }; } && | |
34411 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34413 | (eval $ac_try) 2>&5 | |
34414 | ac_status=$? | |
34415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34416 | (exit $ac_status); }; }; then | |
34417 | eval "$as_ac_var=yes" | |
34418 | else | |
34419 | echo "$as_me: failed program was:" >&5 | |
34420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34421 | ||
34422 | eval "$as_ac_var=no" | |
34423 | fi | |
ac1cb8d3 VS |
34424 | rm -f conftest.err conftest.$ac_objext \ |
34425 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34426 | fi |
34427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34428 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34429 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34430 | cat >>confdefs.h <<_ACEOF | |
34431 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34432 | _ACEOF | |
34433 | break | |
34434 | fi | |
34435 | done | |
34436 | ||
34437 | ||
34438 | HAVE_SOME_SLEEP_FUNC=0 | |
34439 | if test "$USE_BEOS" = 1; then | |
34440 | cat >>confdefs.h <<\_ACEOF | |
34441 | #define HAVE_SLEEP 1 | |
34442 | _ACEOF | |
34443 | ||
34444 | HAVE_SOME_SLEEP_FUNC=1 | |
34445 | fi | |
34446 | ||
34447 | if test "$USE_DARWIN" = 1; then | |
34448 | cat >>confdefs.h <<\_ACEOF | |
34449 | #define HAVE_USLEEP 1 | |
34450 | _ACEOF | |
34451 | ||
34452 | HAVE_SOME_SLEEP_FUNC=1 | |
34453 | fi | |
34454 | ||
34455 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
34456 | POSIX4_LINK= | |
34457 | ||
34458 | for ac_func in nanosleep | |
34459 | do | |
34460 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34461 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34462 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34463 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34465 | else | |
34466 | cat >conftest.$ac_ext <<_ACEOF | |
34467 | /* confdefs.h. */ | |
34468 | _ACEOF | |
34469 | cat confdefs.h >>conftest.$ac_ext | |
34470 | cat >>conftest.$ac_ext <<_ACEOF | |
34471 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34472 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34473 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34474 | #define $ac_func innocuous_$ac_func | |
34475 | ||
a848cd7e SC |
34476 | /* System header to define __stub macros and hopefully few prototypes, |
34477 | which can conflict with char $ac_func (); below. | |
34478 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34479 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34480 | |
a848cd7e SC |
34481 | #ifdef __STDC__ |
34482 | # include <limits.h> | |
34483 | #else | |
34484 | # include <assert.h> | |
34485 | #endif | |
ac1cb8d3 VS |
34486 | |
34487 | #undef $ac_func | |
34488 | ||
a848cd7e SC |
34489 | /* Override any gcc2 internal prototype to avoid an error. */ |
34490 | #ifdef __cplusplus | |
34491 | extern "C" | |
34492 | { | |
34493 | #endif | |
34494 | /* We use char because int might match the return type of a gcc2 | |
34495 | builtin and then its argument prototype would still apply. */ | |
34496 | char $ac_func (); | |
34497 | /* The GNU C library defines this for functions which it implements | |
34498 | to always fail with ENOSYS. Some functions are actually named | |
34499 | something starting with __ and the normal name is an alias. */ | |
34500 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34501 | choke me | |
34502 | #else | |
34503 | char (*f) () = $ac_func; | |
34504 | #endif | |
34505 | #ifdef __cplusplus | |
34506 | } | |
34507 | #endif | |
34508 | ||
34509 | int | |
34510 | main () | |
34511 | { | |
34512 | return f != $ac_func; | |
34513 | ; | |
34514 | return 0; | |
34515 | } | |
34516 | _ACEOF | |
34517 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34519 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34520 | ac_status=$? |
ac1cb8d3 VS |
34521 | grep -v '^ *+' conftest.er1 >conftest.err |
34522 | rm -f conftest.er1 | |
34523 | cat conftest.err >&5 | |
a848cd7e SC |
34524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34525 | (exit $ac_status); } && | |
6ebeb4c7 | 34526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34528 | (eval $ac_try) 2>&5 | |
34529 | ac_status=$? | |
34530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34531 | (exit $ac_status); }; } && | |
34532 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34534 | (eval $ac_try) 2>&5 | |
34535 | ac_status=$? | |
34536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34537 | (exit $ac_status); }; }; then | |
34538 | eval "$as_ac_var=yes" | |
34539 | else | |
34540 | echo "$as_me: failed program was:" >&5 | |
34541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34542 | ||
34543 | eval "$as_ac_var=no" | |
34544 | fi | |
ac1cb8d3 VS |
34545 | rm -f conftest.err conftest.$ac_objext \ |
34546 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34547 | fi |
34548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34549 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34550 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34551 | cat >>confdefs.h <<_ACEOF | |
34552 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34553 | _ACEOF | |
34554 | cat >>confdefs.h <<\_ACEOF | |
34555 | #define HAVE_NANOSLEEP 1 | |
34556 | _ACEOF | |
34557 | ||
34558 | else | |
34559 | ||
34560 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
34561 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
34562 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
34563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34564 | else | |
34565 | ac_check_lib_save_LIBS=$LIBS | |
34566 | LIBS="-lposix4 $LIBS" | |
34567 | cat >conftest.$ac_ext <<_ACEOF | |
34568 | /* confdefs.h. */ | |
34569 | _ACEOF | |
34570 | cat confdefs.h >>conftest.$ac_ext | |
34571 | cat >>conftest.$ac_ext <<_ACEOF | |
34572 | /* end confdefs.h. */ | |
34573 | ||
34574 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34575 | #ifdef __cplusplus | |
34576 | extern "C" | |
34577 | #endif | |
34578 | /* We use char because int might match the return type of a gcc2 | |
34579 | builtin and then its argument prototype would still apply. */ | |
34580 | char nanosleep (); | |
34581 | int | |
34582 | main () | |
34583 | { | |
34584 | nanosleep (); | |
34585 | ; | |
34586 | return 0; | |
34587 | } | |
34588 | _ACEOF | |
34589 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34591 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34592 | ac_status=$? |
ac1cb8d3 VS |
34593 | grep -v '^ *+' conftest.er1 >conftest.err |
34594 | rm -f conftest.er1 | |
34595 | cat conftest.err >&5 | |
a848cd7e SC |
34596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34597 | (exit $ac_status); } && | |
6ebeb4c7 | 34598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34600 | (eval $ac_try) 2>&5 | |
34601 | ac_status=$? | |
34602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34603 | (exit $ac_status); }; } && | |
34604 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34606 | (eval $ac_try) 2>&5 | |
34607 | ac_status=$? | |
34608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34609 | (exit $ac_status); }; }; then | |
34610 | ac_cv_lib_posix4_nanosleep=yes | |
34611 | else | |
34612 | echo "$as_me: failed program was:" >&5 | |
34613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34614 | ||
34615 | ac_cv_lib_posix4_nanosleep=no | |
34616 | fi | |
ac1cb8d3 VS |
34617 | rm -f conftest.err conftest.$ac_objext \ |
34618 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34619 | LIBS=$ac_check_lib_save_LIBS |
34620 | fi | |
34621 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
34622 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
34623 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
34624 | ||
34625 | cat >>confdefs.h <<\_ACEOF | |
34626 | #define HAVE_NANOSLEEP 1 | |
34627 | _ACEOF | |
34628 | ||
34629 | POSIX4_LINK=" -lposix4" | |
34630 | ||
34631 | else | |
34632 | ||
34633 | ||
34634 | for ac_func in usleep | |
34635 | do | |
34636 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34637 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34638 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34639 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34641 | else | |
34642 | cat >conftest.$ac_ext <<_ACEOF | |
34643 | /* confdefs.h. */ | |
34644 | _ACEOF | |
34645 | cat confdefs.h >>conftest.$ac_ext | |
34646 | cat >>conftest.$ac_ext <<_ACEOF | |
34647 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34648 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34649 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34650 | #define $ac_func innocuous_$ac_func | |
34651 | ||
a848cd7e SC |
34652 | /* System header to define __stub macros and hopefully few prototypes, |
34653 | which can conflict with char $ac_func (); below. | |
34654 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34655 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34656 | |
a848cd7e SC |
34657 | #ifdef __STDC__ |
34658 | # include <limits.h> | |
34659 | #else | |
34660 | # include <assert.h> | |
34661 | #endif | |
ac1cb8d3 VS |
34662 | |
34663 | #undef $ac_func | |
34664 | ||
a848cd7e SC |
34665 | /* Override any gcc2 internal prototype to avoid an error. */ |
34666 | #ifdef __cplusplus | |
34667 | extern "C" | |
34668 | { | |
34669 | #endif | |
34670 | /* We use char because int might match the return type of a gcc2 | |
34671 | builtin and then its argument prototype would still apply. */ | |
34672 | char $ac_func (); | |
34673 | /* The GNU C library defines this for functions which it implements | |
34674 | to always fail with ENOSYS. Some functions are actually named | |
34675 | something starting with __ and the normal name is an alias. */ | |
34676 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34677 | choke me | |
34678 | #else | |
34679 | char (*f) () = $ac_func; | |
34680 | #endif | |
34681 | #ifdef __cplusplus | |
34682 | } | |
34683 | #endif | |
34684 | ||
34685 | int | |
34686 | main () | |
34687 | { | |
34688 | return f != $ac_func; | |
34689 | ; | |
34690 | return 0; | |
34691 | } | |
34692 | _ACEOF | |
34693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34695 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34696 | ac_status=$? |
ac1cb8d3 VS |
34697 | grep -v '^ *+' conftest.er1 >conftest.err |
34698 | rm -f conftest.er1 | |
34699 | cat conftest.err >&5 | |
a848cd7e SC |
34700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34701 | (exit $ac_status); } && | |
6ebeb4c7 | 34702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34704 | (eval $ac_try) 2>&5 | |
34705 | ac_status=$? | |
34706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34707 | (exit $ac_status); }; } && | |
34708 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34710 | (eval $ac_try) 2>&5 | |
34711 | ac_status=$? | |
34712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34713 | (exit $ac_status); }; }; then | |
34714 | eval "$as_ac_var=yes" | |
34715 | else | |
34716 | echo "$as_me: failed program was:" >&5 | |
34717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34718 | ||
34719 | eval "$as_ac_var=no" | |
34720 | fi | |
ac1cb8d3 VS |
34721 | rm -f conftest.err conftest.$ac_objext \ |
34722 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34723 | fi |
34724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34725 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34726 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34727 | cat >>confdefs.h <<_ACEOF | |
34728 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34729 | _ACEOF | |
34730 | cat >>confdefs.h <<\_ACEOF | |
34731 | #define HAVE_USLEEP 1 | |
34732 | _ACEOF | |
34733 | ||
34734 | else | |
34735 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
34736 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
34737 | ||
34738 | fi | |
34739 | done | |
34740 | ||
34741 | ||
34742 | ||
34743 | fi | |
34744 | ||
34745 | ||
34746 | ||
34747 | fi | |
34748 | done | |
34749 | ||
34750 | fi | |
34751 | ||
34752 | ||
34753 | ||
34754 | for ac_func in uname gethostname | |
34755 | do | |
34756 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34757 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34758 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34759 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34761 | else | |
34762 | cat >conftest.$ac_ext <<_ACEOF | |
34763 | /* confdefs.h. */ | |
34764 | _ACEOF | |
34765 | cat confdefs.h >>conftest.$ac_ext | |
34766 | cat >>conftest.$ac_ext <<_ACEOF | |
34767 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34768 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34769 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34770 | #define $ac_func innocuous_$ac_func | |
34771 | ||
a848cd7e SC |
34772 | /* System header to define __stub macros and hopefully few prototypes, |
34773 | which can conflict with char $ac_func (); below. | |
34774 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34775 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34776 | |
a848cd7e SC |
34777 | #ifdef __STDC__ |
34778 | # include <limits.h> | |
34779 | #else | |
34780 | # include <assert.h> | |
34781 | #endif | |
ac1cb8d3 VS |
34782 | |
34783 | #undef $ac_func | |
34784 | ||
a848cd7e SC |
34785 | /* Override any gcc2 internal prototype to avoid an error. */ |
34786 | #ifdef __cplusplus | |
34787 | extern "C" | |
34788 | { | |
34789 | #endif | |
34790 | /* We use char because int might match the return type of a gcc2 | |
34791 | builtin and then its argument prototype would still apply. */ | |
34792 | char $ac_func (); | |
34793 | /* The GNU C library defines this for functions which it implements | |
34794 | to always fail with ENOSYS. Some functions are actually named | |
34795 | something starting with __ and the normal name is an alias. */ | |
34796 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34797 | choke me | |
34798 | #else | |
34799 | char (*f) () = $ac_func; | |
34800 | #endif | |
34801 | #ifdef __cplusplus | |
34802 | } | |
34803 | #endif | |
34804 | ||
34805 | int | |
34806 | main () | |
34807 | { | |
34808 | return f != $ac_func; | |
34809 | ; | |
34810 | return 0; | |
34811 | } | |
34812 | _ACEOF | |
34813 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34815 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34816 | ac_status=$? |
ac1cb8d3 VS |
34817 | grep -v '^ *+' conftest.er1 >conftest.err |
34818 | rm -f conftest.er1 | |
34819 | cat conftest.err >&5 | |
a848cd7e SC |
34820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34821 | (exit $ac_status); } && | |
6ebeb4c7 | 34822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34824 | (eval $ac_try) 2>&5 | |
34825 | ac_status=$? | |
34826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34827 | (exit $ac_status); }; } && | |
34828 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34830 | (eval $ac_try) 2>&5 | |
34831 | ac_status=$? | |
34832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34833 | (exit $ac_status); }; }; then | |
34834 | eval "$as_ac_var=yes" | |
34835 | else | |
34836 | echo "$as_me: failed program was:" >&5 | |
34837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34838 | ||
34839 | eval "$as_ac_var=no" | |
34840 | fi | |
ac1cb8d3 VS |
34841 | rm -f conftest.err conftest.$ac_objext \ |
34842 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34843 | fi |
34844 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34845 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34846 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34847 | cat >>confdefs.h <<_ACEOF | |
34848 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34849 | _ACEOF | |
34850 | break | |
34851 | fi | |
34852 | done | |
34853 | ||
34854 | ||
34855 | ||
34856 | ||
34857 | ac_ext=cc | |
34858 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34859 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34860 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34861 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34862 | ||
34863 | ||
34864 | ||
34865 | for ac_func in strtok_r | |
34866 | do | |
34867 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34868 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34869 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34870 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34872 | else | |
34873 | cat >conftest.$ac_ext <<_ACEOF | |
34874 | /* confdefs.h. */ | |
34875 | _ACEOF | |
34876 | cat confdefs.h >>conftest.$ac_ext | |
34877 | cat >>conftest.$ac_ext <<_ACEOF | |
34878 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34879 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34881 | #define $ac_func innocuous_$ac_func | |
34882 | ||
a848cd7e SC |
34883 | /* System header to define __stub macros and hopefully few prototypes, |
34884 | which can conflict with char $ac_func (); below. | |
34885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34886 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34887 | |
a848cd7e SC |
34888 | #ifdef __STDC__ |
34889 | # include <limits.h> | |
34890 | #else | |
34891 | # include <assert.h> | |
34892 | #endif | |
ac1cb8d3 VS |
34893 | |
34894 | #undef $ac_func | |
34895 | ||
a848cd7e SC |
34896 | /* Override any gcc2 internal prototype to avoid an error. */ |
34897 | #ifdef __cplusplus | |
34898 | extern "C" | |
34899 | { | |
34900 | #endif | |
34901 | /* We use char because int might match the return type of a gcc2 | |
34902 | builtin and then its argument prototype would still apply. */ | |
34903 | char $ac_func (); | |
34904 | /* The GNU C library defines this for functions which it implements | |
34905 | to always fail with ENOSYS. Some functions are actually named | |
34906 | something starting with __ and the normal name is an alias. */ | |
34907 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34908 | choke me | |
34909 | #else | |
34910 | char (*f) () = $ac_func; | |
34911 | #endif | |
34912 | #ifdef __cplusplus | |
34913 | } | |
34914 | #endif | |
34915 | ||
34916 | int | |
34917 | main () | |
34918 | { | |
34919 | return f != $ac_func; | |
34920 | ; | |
34921 | return 0; | |
34922 | } | |
34923 | _ACEOF | |
34924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34926 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34927 | ac_status=$? |
ac1cb8d3 VS |
34928 | grep -v '^ *+' conftest.er1 >conftest.err |
34929 | rm -f conftest.er1 | |
34930 | cat conftest.err >&5 | |
a848cd7e SC |
34931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34932 | (exit $ac_status); } && | |
6ebeb4c7 | 34933 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34935 | (eval $ac_try) 2>&5 | |
34936 | ac_status=$? | |
34937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34938 | (exit $ac_status); }; } && | |
34939 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34941 | (eval $ac_try) 2>&5 | |
34942 | ac_status=$? | |
34943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34944 | (exit $ac_status); }; }; then | |
34945 | eval "$as_ac_var=yes" | |
34946 | else | |
34947 | echo "$as_me: failed program was:" >&5 | |
34948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34949 | ||
34950 | eval "$as_ac_var=no" | |
34951 | fi | |
ac1cb8d3 VS |
34952 | rm -f conftest.err conftest.$ac_objext \ |
34953 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34954 | fi |
34955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34956 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34957 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34958 | cat >>confdefs.h <<_ACEOF | |
34959 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34960 | _ACEOF | |
34961 | ||
34962 | fi | |
34963 | done | |
34964 | ||
34965 | ||
34966 | ac_ext=c | |
34967 | ac_cpp='$CPP $CPPFLAGS' | |
34968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34971 | ||
34972 | ||
34973 | INET_LINK= | |
34974 | ||
34975 | for ac_func in inet_addr | |
34976 | do | |
34977 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34978 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34979 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34980 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34982 | else | |
34983 | cat >conftest.$ac_ext <<_ACEOF | |
34984 | /* confdefs.h. */ | |
34985 | _ACEOF | |
34986 | cat confdefs.h >>conftest.$ac_ext | |
34987 | cat >>conftest.$ac_ext <<_ACEOF | |
34988 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34989 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34990 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34991 | #define $ac_func innocuous_$ac_func | |
34992 | ||
a848cd7e SC |
34993 | /* System header to define __stub macros and hopefully few prototypes, |
34994 | which can conflict with char $ac_func (); below. | |
34995 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34996 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34997 | |
a848cd7e SC |
34998 | #ifdef __STDC__ |
34999 | # include <limits.h> | |
35000 | #else | |
35001 | # include <assert.h> | |
35002 | #endif | |
ac1cb8d3 VS |
35003 | |
35004 | #undef $ac_func | |
35005 | ||
a848cd7e SC |
35006 | /* Override any gcc2 internal prototype to avoid an error. */ |
35007 | #ifdef __cplusplus | |
35008 | extern "C" | |
35009 | { | |
35010 | #endif | |
35011 | /* We use char because int might match the return type of a gcc2 | |
35012 | builtin and then its argument prototype would still apply. */ | |
35013 | char $ac_func (); | |
35014 | /* The GNU C library defines this for functions which it implements | |
35015 | to always fail with ENOSYS. Some functions are actually named | |
35016 | something starting with __ and the normal name is an alias. */ | |
35017 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35018 | choke me | |
35019 | #else | |
35020 | char (*f) () = $ac_func; | |
35021 | #endif | |
35022 | #ifdef __cplusplus | |
35023 | } | |
35024 | #endif | |
35025 | ||
35026 | int | |
35027 | main () | |
35028 | { | |
35029 | return f != $ac_func; | |
35030 | ; | |
35031 | return 0; | |
35032 | } | |
35033 | _ACEOF | |
35034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35036 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35037 | ac_status=$? |
ac1cb8d3 VS |
35038 | grep -v '^ *+' conftest.er1 >conftest.err |
35039 | rm -f conftest.er1 | |
35040 | cat conftest.err >&5 | |
a848cd7e SC |
35041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35042 | (exit $ac_status); } && | |
6ebeb4c7 | 35043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35045 | (eval $ac_try) 2>&5 | |
35046 | ac_status=$? | |
35047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35048 | (exit $ac_status); }; } && | |
35049 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35051 | (eval $ac_try) 2>&5 | |
35052 | ac_status=$? | |
35053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35054 | (exit $ac_status); }; }; then | |
35055 | eval "$as_ac_var=yes" | |
35056 | else | |
35057 | echo "$as_me: failed program was:" >&5 | |
35058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35059 | ||
35060 | eval "$as_ac_var=no" | |
35061 | fi | |
ac1cb8d3 VS |
35062 | rm -f conftest.err conftest.$ac_objext \ |
35063 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35064 | fi |
35065 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35066 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35067 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35068 | cat >>confdefs.h <<_ACEOF | |
35069 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35070 | _ACEOF | |
35071 | cat >>confdefs.h <<\_ACEOF | |
35072 | #define HAVE_INET_ADDR 1 | |
35073 | _ACEOF | |
35074 | ||
35075 | else | |
35076 | ||
35077 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
35078 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
35079 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
35080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35081 | else | |
35082 | ac_check_lib_save_LIBS=$LIBS | |
35083 | LIBS="-lnsl $LIBS" | |
35084 | cat >conftest.$ac_ext <<_ACEOF | |
35085 | /* confdefs.h. */ | |
35086 | _ACEOF | |
35087 | cat confdefs.h >>conftest.$ac_ext | |
35088 | cat >>conftest.$ac_ext <<_ACEOF | |
35089 | /* end confdefs.h. */ | |
35090 | ||
35091 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35092 | #ifdef __cplusplus | |
35093 | extern "C" | |
35094 | #endif | |
35095 | /* We use char because int might match the return type of a gcc2 | |
35096 | builtin and then its argument prototype would still apply. */ | |
35097 | char inet_addr (); | |
35098 | int | |
35099 | main () | |
35100 | { | |
35101 | inet_addr (); | |
35102 | ; | |
35103 | return 0; | |
35104 | } | |
35105 | _ACEOF | |
35106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35108 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35109 | ac_status=$? |
ac1cb8d3 VS |
35110 | grep -v '^ *+' conftest.er1 >conftest.err |
35111 | rm -f conftest.er1 | |
35112 | cat conftest.err >&5 | |
a848cd7e SC |
35113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35114 | (exit $ac_status); } && | |
6ebeb4c7 | 35115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35117 | (eval $ac_try) 2>&5 | |
35118 | ac_status=$? | |
35119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35120 | (exit $ac_status); }; } && | |
35121 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35123 | (eval $ac_try) 2>&5 | |
35124 | ac_status=$? | |
35125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35126 | (exit $ac_status); }; }; then | |
35127 | ac_cv_lib_nsl_inet_addr=yes | |
35128 | else | |
35129 | echo "$as_me: failed program was:" >&5 | |
35130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35131 | ||
35132 | ac_cv_lib_nsl_inet_addr=no | |
35133 | fi | |
ac1cb8d3 VS |
35134 | rm -f conftest.err conftest.$ac_objext \ |
35135 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35136 | LIBS=$ac_check_lib_save_LIBS |
35137 | fi | |
35138 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
35139 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
35140 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
35141 | INET_LINK="nsl" | |
35142 | else | |
35143 | ||
35144 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
35145 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
35146 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
35147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35148 | else | |
35149 | ac_check_lib_save_LIBS=$LIBS | |
35150 | LIBS="-lresolv $LIBS" | |
35151 | cat >conftest.$ac_ext <<_ACEOF | |
35152 | /* confdefs.h. */ | |
35153 | _ACEOF | |
35154 | cat confdefs.h >>conftest.$ac_ext | |
35155 | cat >>conftest.$ac_ext <<_ACEOF | |
35156 | /* end confdefs.h. */ | |
35157 | ||
35158 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35159 | #ifdef __cplusplus | |
35160 | extern "C" | |
35161 | #endif | |
35162 | /* We use char because int might match the return type of a gcc2 | |
35163 | builtin and then its argument prototype would still apply. */ | |
35164 | char inet_addr (); | |
35165 | int | |
35166 | main () | |
35167 | { | |
35168 | inet_addr (); | |
35169 | ; | |
35170 | return 0; | |
35171 | } | |
35172 | _ACEOF | |
35173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35175 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35176 | ac_status=$? |
ac1cb8d3 VS |
35177 | grep -v '^ *+' conftest.er1 >conftest.err |
35178 | rm -f conftest.er1 | |
35179 | cat conftest.err >&5 | |
a848cd7e SC |
35180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35181 | (exit $ac_status); } && | |
6ebeb4c7 | 35182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35184 | (eval $ac_try) 2>&5 | |
35185 | ac_status=$? | |
35186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35187 | (exit $ac_status); }; } && | |
35188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35190 | (eval $ac_try) 2>&5 | |
35191 | ac_status=$? | |
35192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35193 | (exit $ac_status); }; }; then | |
35194 | ac_cv_lib_resolv_inet_addr=yes | |
35195 | else | |
35196 | echo "$as_me: failed program was:" >&5 | |
35197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35198 | ||
35199 | ac_cv_lib_resolv_inet_addr=no | |
35200 | fi | |
ac1cb8d3 VS |
35201 | rm -f conftest.err conftest.$ac_objext \ |
35202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35203 | LIBS=$ac_check_lib_save_LIBS |
35204 | fi | |
35205 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
35206 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
35207 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
35208 | INET_LINK="resolv" | |
35209 | else | |
35210 | ||
35211 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
35212 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
35213 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
35214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35215 | else | |
35216 | ac_check_lib_save_LIBS=$LIBS | |
35217 | LIBS="-lsocket $LIBS" | |
35218 | cat >conftest.$ac_ext <<_ACEOF | |
35219 | /* confdefs.h. */ | |
35220 | _ACEOF | |
35221 | cat confdefs.h >>conftest.$ac_ext | |
35222 | cat >>conftest.$ac_ext <<_ACEOF | |
35223 | /* end confdefs.h. */ | |
35224 | ||
35225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35226 | #ifdef __cplusplus | |
35227 | extern "C" | |
35228 | #endif | |
35229 | /* We use char because int might match the return type of a gcc2 | |
35230 | builtin and then its argument prototype would still apply. */ | |
35231 | char inet_addr (); | |
35232 | int | |
35233 | main () | |
35234 | { | |
35235 | inet_addr (); | |
35236 | ; | |
35237 | return 0; | |
35238 | } | |
35239 | _ACEOF | |
35240 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35242 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35243 | ac_status=$? |
ac1cb8d3 VS |
35244 | grep -v '^ *+' conftest.er1 >conftest.err |
35245 | rm -f conftest.er1 | |
35246 | cat conftest.err >&5 | |
a848cd7e SC |
35247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35248 | (exit $ac_status); } && | |
6ebeb4c7 | 35249 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35251 | (eval $ac_try) 2>&5 | |
35252 | ac_status=$? | |
35253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35254 | (exit $ac_status); }; } && | |
35255 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35257 | (eval $ac_try) 2>&5 | |
35258 | ac_status=$? | |
35259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35260 | (exit $ac_status); }; }; then | |
35261 | ac_cv_lib_socket_inet_addr=yes | |
35262 | else | |
35263 | echo "$as_me: failed program was:" >&5 | |
35264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35265 | ||
35266 | ac_cv_lib_socket_inet_addr=no | |
35267 | fi | |
ac1cb8d3 VS |
35268 | rm -f conftest.err conftest.$ac_objext \ |
35269 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35270 | LIBS=$ac_check_lib_save_LIBS |
35271 | fi | |
35272 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
35273 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
35274 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
35275 | INET_LINK="socket" | |
35276 | ||
35277 | fi | |
35278 | ||
35279 | ||
35280 | ||
35281 | fi | |
35282 | ||
35283 | ||
35284 | ||
35285 | fi | |
35286 | ||
35287 | ||
35288 | ||
35289 | fi | |
35290 | done | |
35291 | ||
35292 | ||
35293 | ||
35294 | for ac_func in inet_aton | |
35295 | do | |
35296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35297 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35299 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35301 | else | |
35302 | cat >conftest.$ac_ext <<_ACEOF | |
35303 | /* confdefs.h. */ | |
35304 | _ACEOF | |
35305 | cat confdefs.h >>conftest.$ac_ext | |
35306 | cat >>conftest.$ac_ext <<_ACEOF | |
35307 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35308 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35309 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35310 | #define $ac_func innocuous_$ac_func | |
35311 | ||
a848cd7e SC |
35312 | /* System header to define __stub macros and hopefully few prototypes, |
35313 | which can conflict with char $ac_func (); below. | |
35314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35315 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35316 | |
a848cd7e SC |
35317 | #ifdef __STDC__ |
35318 | # include <limits.h> | |
35319 | #else | |
35320 | # include <assert.h> | |
35321 | #endif | |
ac1cb8d3 VS |
35322 | |
35323 | #undef $ac_func | |
35324 | ||
a848cd7e SC |
35325 | /* Override any gcc2 internal prototype to avoid an error. */ |
35326 | #ifdef __cplusplus | |
35327 | extern "C" | |
35328 | { | |
35329 | #endif | |
35330 | /* We use char because int might match the return type of a gcc2 | |
35331 | builtin and then its argument prototype would still apply. */ | |
35332 | char $ac_func (); | |
35333 | /* The GNU C library defines this for functions which it implements | |
35334 | to always fail with ENOSYS. Some functions are actually named | |
35335 | something starting with __ and the normal name is an alias. */ | |
35336 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35337 | choke me | |
35338 | #else | |
35339 | char (*f) () = $ac_func; | |
35340 | #endif | |
35341 | #ifdef __cplusplus | |
35342 | } | |
35343 | #endif | |
35344 | ||
35345 | int | |
35346 | main () | |
35347 | { | |
35348 | return f != $ac_func; | |
35349 | ; | |
35350 | return 0; | |
35351 | } | |
35352 | _ACEOF | |
35353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35355 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35356 | ac_status=$? |
ac1cb8d3 VS |
35357 | grep -v '^ *+' conftest.er1 >conftest.err |
35358 | rm -f conftest.er1 | |
35359 | cat conftest.err >&5 | |
a848cd7e SC |
35360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35361 | (exit $ac_status); } && | |
6ebeb4c7 | 35362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35364 | (eval $ac_try) 2>&5 | |
35365 | ac_status=$? | |
35366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35367 | (exit $ac_status); }; } && | |
35368 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35370 | (eval $ac_try) 2>&5 | |
35371 | ac_status=$? | |
35372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35373 | (exit $ac_status); }; }; then | |
35374 | eval "$as_ac_var=yes" | |
35375 | else | |
35376 | echo "$as_me: failed program was:" >&5 | |
35377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35378 | ||
35379 | eval "$as_ac_var=no" | |
35380 | fi | |
ac1cb8d3 VS |
35381 | rm -f conftest.err conftest.$ac_objext \ |
35382 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35383 | fi |
35384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35385 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35386 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35387 | cat >>confdefs.h <<_ACEOF | |
35388 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35389 | _ACEOF | |
35390 | cat >>confdefs.h <<\_ACEOF | |
35391 | #define HAVE_INET_ATON 1 | |
35392 | _ACEOF | |
35393 | ||
35394 | else | |
35395 | ||
35396 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
35397 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
35398 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
35399 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
35400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35401 | else | |
35402 | ac_check_lib_save_LIBS=$LIBS | |
35403 | LIBS="-l$INET_LINK $LIBS" | |
35404 | cat >conftest.$ac_ext <<_ACEOF | |
35405 | /* confdefs.h. */ | |
35406 | _ACEOF | |
35407 | cat confdefs.h >>conftest.$ac_ext | |
35408 | cat >>conftest.$ac_ext <<_ACEOF | |
35409 | /* end confdefs.h. */ | |
35410 | ||
35411 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35412 | #ifdef __cplusplus | |
35413 | extern "C" | |
35414 | #endif | |
35415 | /* We use char because int might match the return type of a gcc2 | |
35416 | builtin and then its argument prototype would still apply. */ | |
35417 | char inet_aton (); | |
35418 | int | |
35419 | main () | |
35420 | { | |
35421 | inet_aton (); | |
35422 | ; | |
35423 | return 0; | |
35424 | } | |
35425 | _ACEOF | |
35426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35428 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35429 | ac_status=$? |
ac1cb8d3 VS |
35430 | grep -v '^ *+' conftest.er1 >conftest.err |
35431 | rm -f conftest.er1 | |
35432 | cat conftest.err >&5 | |
a848cd7e SC |
35433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35434 | (exit $ac_status); } && | |
6ebeb4c7 | 35435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35437 | (eval $ac_try) 2>&5 | |
35438 | ac_status=$? | |
35439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35440 | (exit $ac_status); }; } && | |
35441 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35443 | (eval $ac_try) 2>&5 | |
35444 | ac_status=$? | |
35445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35446 | (exit $ac_status); }; }; then | |
35447 | eval "$as_ac_Lib=yes" | |
35448 | else | |
35449 | echo "$as_me: failed program was:" >&5 | |
35450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35451 | ||
35452 | eval "$as_ac_Lib=no" | |
35453 | fi | |
ac1cb8d3 VS |
35454 | rm -f conftest.err conftest.$ac_objext \ |
35455 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35456 | LIBS=$ac_check_lib_save_LIBS |
35457 | fi | |
35458 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
35459 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
35460 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
35461 | cat >>confdefs.h <<\_ACEOF | |
35462 | #define HAVE_INET_ATON 1 | |
35463 | _ACEOF | |
35464 | ||
35465 | fi | |
35466 | ||
35467 | ||
35468 | fi | |
35469 | done | |
35470 | ||
35471 | ||
35472 | if test "x$INET_LINK" != "x"; then | |
35473 | cat >>confdefs.h <<\_ACEOF | |
35474 | #define HAVE_INET_ADDR 1 | |
35475 | _ACEOF | |
35476 | ||
35477 | INET_LINK=" -l$INET_LINK" | |
35478 | fi | |
35479 | ||
35480 | fi | |
35481 | ||
35482 | ||
35483 | ||
35484 | EXTRALIBS_ESD= | |
35485 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
35486 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
35487 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
35488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35489 | else | |
35490 | ac_check_lib_save_LIBS=$LIBS | |
35491 | LIBS="-lesd $LIBS" | |
35492 | cat >conftest.$ac_ext <<_ACEOF | |
35493 | /* confdefs.h. */ | |
35494 | _ACEOF | |
35495 | cat confdefs.h >>conftest.$ac_ext | |
35496 | cat >>conftest.$ac_ext <<_ACEOF | |
35497 | /* end confdefs.h. */ | |
35498 | ||
35499 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35500 | #ifdef __cplusplus | |
35501 | extern "C" | |
35502 | #endif | |
35503 | /* We use char because int might match the return type of a gcc2 | |
35504 | builtin and then its argument prototype would still apply. */ | |
35505 | char esd_close (); | |
35506 | int | |
35507 | main () | |
35508 | { | |
35509 | esd_close (); | |
35510 | ; | |
35511 | return 0; | |
35512 | } | |
35513 | _ACEOF | |
35514 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35516 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35517 | ac_status=$? |
ac1cb8d3 VS |
35518 | grep -v '^ *+' conftest.er1 >conftest.err |
35519 | rm -f conftest.er1 | |
35520 | cat conftest.err >&5 | |
a848cd7e SC |
35521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35522 | (exit $ac_status); } && | |
6ebeb4c7 | 35523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35525 | (eval $ac_try) 2>&5 | |
35526 | ac_status=$? | |
35527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35528 | (exit $ac_status); }; } && | |
35529 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35531 | (eval $ac_try) 2>&5 | |
35532 | ac_status=$? | |
35533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35534 | (exit $ac_status); }; }; then | |
35535 | ac_cv_lib_esd_esd_close=yes | |
35536 | else | |
35537 | echo "$as_me: failed program was:" >&5 | |
35538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35539 | ||
35540 | ac_cv_lib_esd_esd_close=no | |
35541 | fi | |
ac1cb8d3 VS |
35542 | rm -f conftest.err conftest.$ac_objext \ |
35543 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35544 | LIBS=$ac_check_lib_save_LIBS |
35545 | fi | |
35546 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
35547 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
35548 | if test $ac_cv_lib_esd_esd_close = yes; then | |
35549 | ||
35550 | ||
35551 | for ac_header in esd.h | |
35552 | do | |
35553 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35554 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35559 | fi | |
35560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35561 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35562 | else | |
35563 | # Is the header compilable? | |
35564 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35565 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35566 | cat >conftest.$ac_ext <<_ACEOF | |
35567 | /* confdefs.h. */ | |
35568 | _ACEOF | |
35569 | cat confdefs.h >>conftest.$ac_ext | |
35570 | cat >>conftest.$ac_ext <<_ACEOF | |
35571 | /* end confdefs.h. */ | |
35572 | $ac_includes_default | |
35573 | #include <$ac_header> | |
35574 | _ACEOF | |
35575 | rm -f conftest.$ac_objext | |
35576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35577 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35578 | ac_status=$? |
ac1cb8d3 VS |
35579 | grep -v '^ *+' conftest.er1 >conftest.err |
35580 | rm -f conftest.er1 | |
35581 | cat conftest.err >&5 | |
a848cd7e SC |
35582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35583 | (exit $ac_status); } && | |
6ebeb4c7 | 35584 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35586 | (eval $ac_try) 2>&5 | |
35587 | ac_status=$? | |
35588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35589 | (exit $ac_status); }; } && | |
35590 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35592 | (eval $ac_try) 2>&5 | |
35593 | ac_status=$? | |
35594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35595 | (exit $ac_status); }; }; then | |
35596 | ac_header_compiler=yes | |
35597 | else | |
35598 | echo "$as_me: failed program was:" >&5 | |
35599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35600 | ||
35601 | ac_header_compiler=no | |
35602 | fi | |
ac1cb8d3 | 35603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35604 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35605 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35606 | ||
35607 | # Is the header present? | |
35608 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35609 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35610 | cat >conftest.$ac_ext <<_ACEOF | |
35611 | /* confdefs.h. */ | |
35612 | _ACEOF | |
35613 | cat confdefs.h >>conftest.$ac_ext | |
35614 | cat >>conftest.$ac_ext <<_ACEOF | |
35615 | /* end confdefs.h. */ | |
35616 | #include <$ac_header> | |
35617 | _ACEOF | |
35618 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35619 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35620 | ac_status=$? | |
35621 | grep -v '^ *+' conftest.er1 >conftest.err | |
35622 | rm -f conftest.er1 | |
35623 | cat conftest.err >&5 | |
35624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35625 | (exit $ac_status); } >/dev/null; then | |
35626 | if test -s conftest.err; then | |
35627 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35628 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35629 | else |
35630 | ac_cpp_err= | |
35631 | fi | |
35632 | else | |
35633 | ac_cpp_err=yes | |
35634 | fi | |
35635 | if test -z "$ac_cpp_err"; then | |
35636 | ac_header_preproc=yes | |
35637 | else | |
35638 | echo "$as_me: failed program was:" >&5 | |
35639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35640 | ||
35641 | ac_header_preproc=no | |
35642 | fi | |
35643 | rm -f conftest.err conftest.$ac_ext | |
35644 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35645 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35646 | ||
35647 | # So? What about this header? | |
ac1cb8d3 VS |
35648 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35649 | yes:no: ) | |
a848cd7e SC |
35650 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35651 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35652 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35653 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35654 | ac_header_preproc=yes | |
a848cd7e | 35655 | ;; |
ac1cb8d3 | 35656 | no:yes:* ) |
a848cd7e SC |
35657 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35658 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35659 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35660 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35661 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35662 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35663 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35664 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35666 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35667 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35668 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35669 | ( |
35670 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35671 | ## ----------------------------------------- ## |
35672 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35673 | ## ----------------------------------------- ## | |
a848cd7e SC |
35674 | _ASBOX |
35675 | ) | | |
35676 | sed "s/^/$as_me: WARNING: /" >&2 | |
35677 | ;; | |
35678 | esac | |
35679 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35683 | else | |
ac1cb8d3 | 35684 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35685 | fi |
35686 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35687 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35688 | ||
35689 | fi | |
35690 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35691 | cat >>confdefs.h <<_ACEOF | |
35692 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35693 | _ACEOF | |
35694 | ||
35695 | EXTRALIBS_ESD="-lesd" | |
35696 | ||
35697 | fi | |
35698 | ||
35699 | done | |
35700 | ||
35701 | ||
35702 | fi | |
35703 | ||
35704 | ||
35705 | ||
35706 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
35707 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
35708 | cat >conftest.$ac_ext <<_ACEOF | |
35709 | /* confdefs.h. */ | |
35710 | _ACEOF | |
35711 | cat confdefs.h >>conftest.$ac_ext | |
35712 | cat >>conftest.$ac_ext <<_ACEOF | |
35713 | /* end confdefs.h. */ | |
35714 | #ifdef __linux__ | |
35715 | #include <linux/cdrom.h> | |
35716 | #else | |
35717 | /* For Solaris */ | |
35718 | #include <sys/cdio.h> | |
35719 | #endif | |
35720 | ||
35721 | int | |
35722 | main () | |
35723 | { | |
35724 | struct cdrom_tocentry entry, old_entry; | |
35725 | ; | |
35726 | return 0; | |
35727 | } | |
35728 | _ACEOF | |
35729 | rm -f conftest.$ac_objext | |
35730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35731 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35732 | ac_status=$? |
ac1cb8d3 VS |
35733 | grep -v '^ *+' conftest.er1 >conftest.err |
35734 | rm -f conftest.er1 | |
35735 | cat conftest.err >&5 | |
a848cd7e SC |
35736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35737 | (exit $ac_status); } && | |
6ebeb4c7 | 35738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35740 | (eval $ac_try) 2>&5 | |
35741 | ac_status=$? | |
35742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35743 | (exit $ac_status); }; } && | |
35744 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35746 | (eval $ac_try) 2>&5 | |
35747 | ac_status=$? | |
35748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35749 | (exit $ac_status); }; }; then | |
35750 | echo "$as_me:$LINENO: result: yes" >&5 | |
35751 | echo "${ECHO_T}yes" >&6 | |
35752 | cat >>confdefs.h <<\_ACEOF | |
35753 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
35754 | _ACEOF | |
35755 | ||
35756 | else | |
35757 | echo "$as_me: failed program was:" >&5 | |
35758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35759 | ||
35760 | echo "$as_me:$LINENO: result: no" >&5 | |
35761 | echo "${ECHO_T}no" >&6 | |
35762 | fi | |
ac1cb8d3 | 35763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35764 | |
35765 | ||
35766 | cat >confcache <<\_ACEOF | |
35767 | # This file is a shell script that caches the results of configure | |
35768 | # tests run on this system so they can be shared between configure | |
35769 | # scripts and configure runs, see configure's option --config-cache. | |
35770 | # It is not useful on other systems. If it contains results you don't | |
35771 | # want to keep, you may remove or edit it. | |
35772 | # | |
35773 | # config.status only pays attention to the cache file if you give it | |
35774 | # the --recheck option to rerun configure. | |
35775 | # | |
35776 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
35777 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
35778 | # following values. | |
35779 | ||
35780 | _ACEOF | |
35781 | ||
35782 | # The following way of writing the cache mishandles newlines in values, | |
35783 | # but we know of no workaround that is simple, portable, and efficient. | |
35784 | # So, don't put newlines in cache variables' values. | |
35785 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
35786 | # and sets the high bit in the cache file unless we assign to the vars. | |
35787 | { | |
35788 | (set) 2>&1 | | |
35789 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
35790 | *ac_space=\ *) | |
35791 | # `set' does not quote correctly, so add quotes (double-quote | |
35792 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
35793 | sed -n \ | |
ac1cb8d3 VS |
35794 | "s/'/'\\\\''/g; |
35795 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
35796 | ;; |
35797 | *) | |
35798 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
35799 | sed -n \ | |
ac1cb8d3 | 35800 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
35801 | ;; |
35802 | esac; | |
35803 | } | | |
35804 | sed ' | |
35805 | t clear | |
35806 | : clear | |
35807 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
35808 | t end | |
35809 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
35810 | : end' >>confcache | |
35811 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
35812 | if test -w $cache_file; then | |
35813 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
35814 | cat confcache >$cache_file | |
35815 | else | |
35816 | echo "not updating unwritable cache $cache_file" | |
35817 | fi | |
35818 | fi | |
35819 | rm -f confcache | |
35820 | ||
35821 | ||
35822 | CPP_MT_FLAG= | |
35823 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
35824 | ||
35825 | ||
35826 | THREADS_LINK= | |
35827 | THREADS_CFLAGS= | |
35828 | ||
35829 | if test "$wxUSE_THREADS" = "yes" ; then | |
35830 | if test "$USE_BEOS" = 1; then | |
35831 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
35832 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
35833 | wxUSE_THREADS="no" | |
35834 | fi | |
35835 | fi | |
35836 | ||
35837 | if test "$wxUSE_THREADS" = "yes" ; then | |
35838 | ||
35839 | ||
35840 | THREAD_OPTS="-pthread" | |
35841 | case "${host}" in | |
35842 | *-*-solaris2* | *-*-sunos4* ) | |
35843 | if test "x$GCC" = "xyes"; then | |
35844 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
35845 | else | |
35846 | THREAD_OPTS="-mt $THREAD_OPTS" | |
35847 | fi | |
35848 | ;; | |
35849 | *-*-freebsd*) | |
35850 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
35851 | ;; | |
35852 | *-*-darwin* | *-*-cygwin* ) | |
35853 | THREAD_OPTS="" | |
35854 | ;; | |
35855 | *-*-aix*) | |
35856 | THREAD_OPTS="pthreads" | |
35857 | ;; | |
35858 | *-hp-hpux* ) | |
00421666 MW |
35859 | if test "x$GCC" = "xyes"; then |
35860 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
35861 | THREAD_OPTS="" | |
35862 | else | |
efdf6afe | 35863 | THREAD_OPTS="" |
a848cd7e SC |
35864 | fi |
35865 | ;; | |
35866 | ||
35867 | *-*-irix* ) | |
35868 | if test "x$GCC" = "xyes"; then | |
35869 | THREAD_OPTS="" | |
35870 | fi | |
35871 | ;; | |
35872 | ||
35873 | *-*-*UnixWare*) | |
35874 | if test "x$GCC" != "xyes"; then | |
35875 | THREAD_OPTS="-Ethread" | |
35876 | fi | |
35877 | ;; | |
35878 | esac | |
35879 | ||
35880 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
35881 | ||
35882 | THREADS_OK=no | |
35883 | for flag in $THREAD_OPTS; do | |
35884 | case $flag in | |
35885 | none) | |
35886 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
35887 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
35888 | ;; | |
35889 | ||
35890 | -*) | |
35891 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
35892 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
35893 | THREADS_CFLAGS="$flag" | |
35894 | ;; | |
35895 | ||
35896 | *) | |
35897 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
35898 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
35899 | THREADS_LINK="-l$flag" | |
35900 | ;; | |
35901 | esac | |
35902 | ||
35903 | save_LIBS="$LIBS" | |
35904 | save_CFLAGS="$CFLAGS" | |
35905 | LIBS="$THREADS_LINK $LIBS" | |
35906 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
35907 | ||
35908 | cat >conftest.$ac_ext <<_ACEOF | |
35909 | /* confdefs.h. */ | |
35910 | _ACEOF | |
35911 | cat confdefs.h >>conftest.$ac_ext | |
35912 | cat >>conftest.$ac_ext <<_ACEOF | |
35913 | /* end confdefs.h. */ | |
35914 | #include <pthread.h> | |
35915 | int | |
35916 | main () | |
35917 | { | |
35918 | pthread_create(0,0,0,0); | |
35919 | ; | |
35920 | return 0; | |
35921 | } | |
35922 | _ACEOF | |
35923 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35925 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35926 | ac_status=$? |
ac1cb8d3 VS |
35927 | grep -v '^ *+' conftest.er1 >conftest.err |
35928 | rm -f conftest.er1 | |
35929 | cat conftest.err >&5 | |
a848cd7e SC |
35930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35931 | (exit $ac_status); } && | |
6ebeb4c7 | 35932 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35934 | (eval $ac_try) 2>&5 | |
35935 | ac_status=$? | |
35936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35937 | (exit $ac_status); }; } && | |
35938 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35940 | (eval $ac_try) 2>&5 | |
35941 | ac_status=$? | |
35942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35943 | (exit $ac_status); }; }; then | |
35944 | THREADS_OK=yes | |
35945 | else | |
35946 | echo "$as_me: failed program was:" >&5 | |
35947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35948 | ||
35949 | fi | |
ac1cb8d3 VS |
35950 | rm -f conftest.err conftest.$ac_objext \ |
35951 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35952 | |
35953 | LIBS="$save_LIBS" | |
35954 | CFLAGS="$save_CFLAGS" | |
35955 | ||
35956 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
35957 | echo "${ECHO_T}$THREADS_OK" >&6 | |
35958 | if test "x$THREADS_OK" = "xyes"; then | |
35959 | break; | |
35960 | fi | |
35961 | ||
35962 | THREADS_LINK="" | |
35963 | THREADS_CFLAGS="" | |
35964 | done | |
35965 | ||
35966 | if test "x$THREADS_OK" != "xyes"; then | |
35967 | wxUSE_THREADS=no | |
35968 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
35969 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
35970 | else | |
35971 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
35972 | LIBS="$THREADS_LINK $LIBS" | |
35973 | ||
35974 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
35975 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
35976 | flag=no | |
35977 | case "${host}" in | |
35978 | *-aix*) | |
35979 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
35980 | flag="-D_THREAD_SAFE" | |
35981 | ;; | |
35982 | *-freebsd*) | |
35983 | flag="-D_THREAD_SAFE" | |
35984 | ;; | |
35985 | *-hp-hpux* ) | |
35986 | flag="-D_REENTRANT" | |
35987 | if test "x$GCC" != "xyes"; then | |
35988 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
35989 | fi | |
35990 | ;; | |
35991 | *solaris* | alpha*-osf*) | |
35992 | flag="-D_REENTRANT" | |
35993 | ;; | |
35994 | esac | |
35995 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
35996 | echo "${ECHO_T}${flag}" >&6 | |
35997 | if test "x$flag" != xno; then | |
35998 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
35999 | fi | |
36000 | ||
36001 | if test "x$THREADS_CFLAGS" != "x"; then | |
36002 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
36003 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
36004 | fi | |
36005 | fi | |
36006 | fi | |
36007 | ||
36008 | if test "$wxUSE_THREADS" = "yes" ; then | |
36009 | ||
36010 | for ac_func in thr_setconcurrency | |
36011 | do | |
36012 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36013 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36014 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36015 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36017 | else | |
36018 | cat >conftest.$ac_ext <<_ACEOF | |
36019 | /* confdefs.h. */ | |
36020 | _ACEOF | |
36021 | cat confdefs.h >>conftest.$ac_ext | |
36022 | cat >>conftest.$ac_ext <<_ACEOF | |
36023 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36024 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36025 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36026 | #define $ac_func innocuous_$ac_func | |
36027 | ||
a848cd7e SC |
36028 | /* System header to define __stub macros and hopefully few prototypes, |
36029 | which can conflict with char $ac_func (); below. | |
36030 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36031 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36032 | |
a848cd7e SC |
36033 | #ifdef __STDC__ |
36034 | # include <limits.h> | |
36035 | #else | |
36036 | # include <assert.h> | |
36037 | #endif | |
ac1cb8d3 VS |
36038 | |
36039 | #undef $ac_func | |
36040 | ||
a848cd7e SC |
36041 | /* Override any gcc2 internal prototype to avoid an error. */ |
36042 | #ifdef __cplusplus | |
36043 | extern "C" | |
36044 | { | |
36045 | #endif | |
36046 | /* We use char because int might match the return type of a gcc2 | |
36047 | builtin and then its argument prototype would still apply. */ | |
36048 | char $ac_func (); | |
36049 | /* The GNU C library defines this for functions which it implements | |
36050 | to always fail with ENOSYS. Some functions are actually named | |
36051 | something starting with __ and the normal name is an alias. */ | |
36052 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36053 | choke me | |
36054 | #else | |
36055 | char (*f) () = $ac_func; | |
36056 | #endif | |
36057 | #ifdef __cplusplus | |
36058 | } | |
36059 | #endif | |
36060 | ||
36061 | int | |
36062 | main () | |
36063 | { | |
36064 | return f != $ac_func; | |
36065 | ; | |
36066 | return 0; | |
36067 | } | |
36068 | _ACEOF | |
36069 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36071 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36072 | ac_status=$? |
ac1cb8d3 VS |
36073 | grep -v '^ *+' conftest.er1 >conftest.err |
36074 | rm -f conftest.er1 | |
36075 | cat conftest.err >&5 | |
a848cd7e SC |
36076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36077 | (exit $ac_status); } && | |
6ebeb4c7 | 36078 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36080 | (eval $ac_try) 2>&5 | |
36081 | ac_status=$? | |
36082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36083 | (exit $ac_status); }; } && | |
36084 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36086 | (eval $ac_try) 2>&5 | |
36087 | ac_status=$? | |
36088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36089 | (exit $ac_status); }; }; then | |
36090 | eval "$as_ac_var=yes" | |
36091 | else | |
36092 | echo "$as_me: failed program was:" >&5 | |
36093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36094 | ||
36095 | eval "$as_ac_var=no" | |
36096 | fi | |
ac1cb8d3 VS |
36097 | rm -f conftest.err conftest.$ac_objext \ |
36098 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36099 | fi |
36100 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36101 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36102 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36103 | cat >>confdefs.h <<_ACEOF | |
36104 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36105 | _ACEOF | |
36106 | ||
36107 | fi | |
36108 | done | |
36109 | ||
36110 | ||
6ebeb4c7 VZ |
36111 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
36112 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
36113 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
36114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36115 | else | |
36116 | ||
36117 | cat >conftest.$ac_ext <<_ACEOF | |
36118 | /* confdefs.h. */ | |
36119 | _ACEOF | |
36120 | cat confdefs.h >>conftest.$ac_ext | |
36121 | cat >>conftest.$ac_ext <<_ACEOF | |
36122 | /* end confdefs.h. */ | |
36123 | #include <pthread.h> | |
36124 | void ThreadCleanupFunc(void *p); | |
36125 | ||
36126 | int | |
36127 | main () | |
36128 | { | |
36129 | ||
36130 | void *p; | |
36131 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
36132 | pthread_cleanup_pop(0); | |
36133 | ||
36134 | ; | |
36135 | return 0; | |
36136 | } | |
36137 | _ACEOF | |
36138 | rm -f conftest.$ac_objext | |
36139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36140 | (eval $ac_compile) 2>conftest.er1 | |
36141 | ac_status=$? | |
36142 | grep -v '^ *+' conftest.er1 >conftest.err | |
36143 | rm -f conftest.er1 | |
36144 | cat conftest.err >&5 | |
36145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36146 | (exit $ac_status); } && | |
36147 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
36148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36149 | (eval $ac_try) 2>&5 | |
36150 | ac_status=$? | |
36151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36152 | (exit $ac_status); }; } && | |
36153 | { ac_try='test -s conftest.$ac_objext' | |
36154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36155 | (eval $ac_try) 2>&5 | |
36156 | ac_status=$? | |
36157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36158 | (exit $ac_status); }; }; then | |
36159 | ||
36160 | wx_cv_func_pthread_cleanup=yes | |
36161 | ||
36162 | else | |
36163 | echo "$as_me: failed program was:" >&5 | |
36164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36165 | ||
36166 | ||
36167 | wx_cv_func_pthread_cleanup=no | |
36168 | ||
36169 | ||
36170 | fi | |
36171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36172 | ||
36173 | fi | |
36174 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
36175 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
36176 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
36177 | cat >>confdefs.h <<\_ACEOF | |
36178 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
36179 | _ACEOF | |
36180 | ||
36181 | fi | |
36182 | ||
a848cd7e SC |
36183 | |
36184 | for ac_header in sched.h | |
36185 | do | |
36186 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36187 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36192 | fi | |
36193 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36194 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36195 | else | |
36196 | # Is the header compilable? | |
36197 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36198 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36199 | cat >conftest.$ac_ext <<_ACEOF | |
36200 | /* confdefs.h. */ | |
36201 | _ACEOF | |
36202 | cat confdefs.h >>conftest.$ac_ext | |
36203 | cat >>conftest.$ac_ext <<_ACEOF | |
36204 | /* end confdefs.h. */ | |
36205 | $ac_includes_default | |
36206 | #include <$ac_header> | |
36207 | _ACEOF | |
36208 | rm -f conftest.$ac_objext | |
36209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36210 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36211 | ac_status=$? |
ac1cb8d3 VS |
36212 | grep -v '^ *+' conftest.er1 >conftest.err |
36213 | rm -f conftest.er1 | |
36214 | cat conftest.err >&5 | |
a848cd7e SC |
36215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36216 | (exit $ac_status); } && | |
6ebeb4c7 | 36217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36219 | (eval $ac_try) 2>&5 | |
36220 | ac_status=$? | |
36221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36222 | (exit $ac_status); }; } && | |
36223 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36225 | (eval $ac_try) 2>&5 | |
36226 | ac_status=$? | |
36227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36228 | (exit $ac_status); }; }; then | |
36229 | ac_header_compiler=yes | |
36230 | else | |
36231 | echo "$as_me: failed program was:" >&5 | |
36232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36233 | ||
36234 | ac_header_compiler=no | |
36235 | fi | |
ac1cb8d3 | 36236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36237 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36238 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36239 | ||
36240 | # Is the header present? | |
36241 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36242 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36243 | cat >conftest.$ac_ext <<_ACEOF | |
36244 | /* confdefs.h. */ | |
36245 | _ACEOF | |
36246 | cat confdefs.h >>conftest.$ac_ext | |
36247 | cat >>conftest.$ac_ext <<_ACEOF | |
36248 | /* end confdefs.h. */ | |
36249 | #include <$ac_header> | |
36250 | _ACEOF | |
36251 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36252 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36253 | ac_status=$? | |
36254 | grep -v '^ *+' conftest.er1 >conftest.err | |
36255 | rm -f conftest.er1 | |
36256 | cat conftest.err >&5 | |
36257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36258 | (exit $ac_status); } >/dev/null; then | |
36259 | if test -s conftest.err; then | |
36260 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36261 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36262 | else |
36263 | ac_cpp_err= | |
36264 | fi | |
36265 | else | |
36266 | ac_cpp_err=yes | |
36267 | fi | |
36268 | if test -z "$ac_cpp_err"; then | |
36269 | ac_header_preproc=yes | |
36270 | else | |
36271 | echo "$as_me: failed program was:" >&5 | |
36272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36273 | ||
36274 | ac_header_preproc=no | |
36275 | fi | |
36276 | rm -f conftest.err conftest.$ac_ext | |
36277 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36278 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36279 | ||
36280 | # So? What about this header? | |
ac1cb8d3 VS |
36281 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36282 | yes:no: ) | |
a848cd7e SC |
36283 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36284 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36285 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36286 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36287 | ac_header_preproc=yes | |
a848cd7e | 36288 | ;; |
ac1cb8d3 | 36289 | no:yes:* ) |
a848cd7e SC |
36290 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36291 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36292 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36293 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36294 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36295 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36296 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36297 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36298 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36299 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36300 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36301 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36302 | ( |
36303 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36304 | ## ----------------------------------------- ## |
36305 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36306 | ## ----------------------------------------- ## | |
a848cd7e SC |
36307 | _ASBOX |
36308 | ) | | |
36309 | sed "s/^/$as_me: WARNING: /" >&2 | |
36310 | ;; | |
36311 | esac | |
36312 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36314 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36316 | else | |
ac1cb8d3 | 36317 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36318 | fi |
36319 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36320 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36321 | ||
36322 | fi | |
36323 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36324 | cat >>confdefs.h <<_ACEOF | |
36325 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36326 | _ACEOF | |
36327 | ||
36328 | fi | |
36329 | ||
36330 | done | |
36331 | ||
36332 | if test "$ac_cv_header_sched_h" = "yes"; then | |
36333 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
36334 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
36335 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
36336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36337 | else | |
36338 | cat >conftest.$ac_ext <<_ACEOF | |
36339 | /* confdefs.h. */ | |
36340 | _ACEOF | |
36341 | cat confdefs.h >>conftest.$ac_ext | |
36342 | cat >>conftest.$ac_ext <<_ACEOF | |
36343 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36344 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
36345 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36346 | #define sched_yield innocuous_sched_yield | |
36347 | ||
a848cd7e SC |
36348 | /* System header to define __stub macros and hopefully few prototypes, |
36349 | which can conflict with char sched_yield (); below. | |
36350 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36351 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36352 | |
a848cd7e SC |
36353 | #ifdef __STDC__ |
36354 | # include <limits.h> | |
36355 | #else | |
36356 | # include <assert.h> | |
36357 | #endif | |
ac1cb8d3 VS |
36358 | |
36359 | #undef sched_yield | |
36360 | ||
a848cd7e SC |
36361 | /* Override any gcc2 internal prototype to avoid an error. */ |
36362 | #ifdef __cplusplus | |
36363 | extern "C" | |
36364 | { | |
36365 | #endif | |
36366 | /* We use char because int might match the return type of a gcc2 | |
36367 | builtin and then its argument prototype would still apply. */ | |
36368 | char sched_yield (); | |
36369 | /* The GNU C library defines this for functions which it implements | |
36370 | to always fail with ENOSYS. Some functions are actually named | |
36371 | something starting with __ and the normal name is an alias. */ | |
36372 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
36373 | choke me | |
36374 | #else | |
36375 | char (*f) () = sched_yield; | |
36376 | #endif | |
36377 | #ifdef __cplusplus | |
36378 | } | |
36379 | #endif | |
36380 | ||
36381 | int | |
36382 | main () | |
36383 | { | |
36384 | return f != sched_yield; | |
36385 | ; | |
36386 | return 0; | |
36387 | } | |
36388 | _ACEOF | |
36389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36391 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36392 | ac_status=$? |
ac1cb8d3 VS |
36393 | grep -v '^ *+' conftest.er1 >conftest.err |
36394 | rm -f conftest.er1 | |
36395 | cat conftest.err >&5 | |
a848cd7e SC |
36396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36397 | (exit $ac_status); } && | |
6ebeb4c7 | 36398 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36400 | (eval $ac_try) 2>&5 | |
36401 | ac_status=$? | |
36402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36403 | (exit $ac_status); }; } && | |
36404 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36406 | (eval $ac_try) 2>&5 | |
36407 | ac_status=$? | |
36408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36409 | (exit $ac_status); }; }; then | |
36410 | ac_cv_func_sched_yield=yes | |
36411 | else | |
36412 | echo "$as_me: failed program was:" >&5 | |
36413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36414 | ||
36415 | ac_cv_func_sched_yield=no | |
36416 | fi | |
ac1cb8d3 VS |
36417 | rm -f conftest.err conftest.$ac_objext \ |
36418 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36419 | fi |
36420 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
36421 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
36422 | if test $ac_cv_func_sched_yield = yes; then | |
36423 | cat >>confdefs.h <<\_ACEOF | |
36424 | #define HAVE_SCHED_YIELD 1 | |
36425 | _ACEOF | |
36426 | ||
36427 | else | |
36428 | ||
36429 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
36430 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
36431 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
36432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36433 | else | |
36434 | ac_check_lib_save_LIBS=$LIBS | |
36435 | LIBS="-lposix4 $LIBS" | |
36436 | cat >conftest.$ac_ext <<_ACEOF | |
36437 | /* confdefs.h. */ | |
36438 | _ACEOF | |
36439 | cat confdefs.h >>conftest.$ac_ext | |
36440 | cat >>conftest.$ac_ext <<_ACEOF | |
36441 | /* end confdefs.h. */ | |
36442 | ||
36443 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36444 | #ifdef __cplusplus | |
36445 | extern "C" | |
36446 | #endif | |
36447 | /* We use char because int might match the return type of a gcc2 | |
36448 | builtin and then its argument prototype would still apply. */ | |
36449 | char sched_yield (); | |
36450 | int | |
36451 | main () | |
36452 | { | |
36453 | sched_yield (); | |
36454 | ; | |
36455 | return 0; | |
36456 | } | |
36457 | _ACEOF | |
36458 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36460 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36461 | ac_status=$? |
ac1cb8d3 VS |
36462 | grep -v '^ *+' conftest.er1 >conftest.err |
36463 | rm -f conftest.er1 | |
36464 | cat conftest.err >&5 | |
a848cd7e SC |
36465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36466 | (exit $ac_status); } && | |
6ebeb4c7 | 36467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36469 | (eval $ac_try) 2>&5 | |
36470 | ac_status=$? | |
36471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36472 | (exit $ac_status); }; } && | |
36473 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36475 | (eval $ac_try) 2>&5 | |
36476 | ac_status=$? | |
36477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36478 | (exit $ac_status); }; }; then | |
36479 | ac_cv_lib_posix4_sched_yield=yes | |
36480 | else | |
36481 | echo "$as_me: failed program was:" >&5 | |
36482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36483 | ||
36484 | ac_cv_lib_posix4_sched_yield=no | |
36485 | fi | |
ac1cb8d3 VS |
36486 | rm -f conftest.err conftest.$ac_objext \ |
36487 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36488 | LIBS=$ac_check_lib_save_LIBS |
36489 | fi | |
36490 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
36491 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
36492 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
36493 | cat >>confdefs.h <<\_ACEOF | |
36494 | #define HAVE_SCHED_YIELD 1 | |
36495 | _ACEOF | |
36496 | POSIX4_LINK=" -lposix4" | |
36497 | else | |
36498 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
36499 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
36500 | ||
36501 | fi | |
36502 | ||
36503 | ||
36504 | ||
36505 | fi | |
36506 | ||
36507 | fi | |
36508 | ||
36509 | HAVE_PRIOR_FUNCS=0 | |
36510 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
36511 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
36512 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
36513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36514 | else | |
36515 | cat >conftest.$ac_ext <<_ACEOF | |
36516 | /* confdefs.h. */ | |
36517 | _ACEOF | |
36518 | cat confdefs.h >>conftest.$ac_ext | |
36519 | cat >>conftest.$ac_ext <<_ACEOF | |
36520 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36521 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
36522 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36523 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
36524 | ||
a848cd7e SC |
36525 | /* System header to define __stub macros and hopefully few prototypes, |
36526 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
36527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36528 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36529 | |
a848cd7e SC |
36530 | #ifdef __STDC__ |
36531 | # include <limits.h> | |
36532 | #else | |
36533 | # include <assert.h> | |
36534 | #endif | |
ac1cb8d3 VS |
36535 | |
36536 | #undef pthread_attr_getschedpolicy | |
36537 | ||
a848cd7e SC |
36538 | /* Override any gcc2 internal prototype to avoid an error. */ |
36539 | #ifdef __cplusplus | |
36540 | extern "C" | |
36541 | { | |
36542 | #endif | |
36543 | /* We use char because int might match the return type of a gcc2 | |
36544 | builtin and then its argument prototype would still apply. */ | |
36545 | char pthread_attr_getschedpolicy (); | |
36546 | /* The GNU C library defines this for functions which it implements | |
36547 | to always fail with ENOSYS. Some functions are actually named | |
36548 | something starting with __ and the normal name is an alias. */ | |
36549 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
36550 | choke me | |
36551 | #else | |
36552 | char (*f) () = pthread_attr_getschedpolicy; | |
36553 | #endif | |
36554 | #ifdef __cplusplus | |
36555 | } | |
36556 | #endif | |
36557 | ||
36558 | int | |
36559 | main () | |
36560 | { | |
36561 | return f != pthread_attr_getschedpolicy; | |
36562 | ; | |
36563 | return 0; | |
36564 | } | |
36565 | _ACEOF | |
36566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36568 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36569 | ac_status=$? |
ac1cb8d3 VS |
36570 | grep -v '^ *+' conftest.er1 >conftest.err |
36571 | rm -f conftest.er1 | |
36572 | cat conftest.err >&5 | |
a848cd7e SC |
36573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36574 | (exit $ac_status); } && | |
6ebeb4c7 | 36575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36577 | (eval $ac_try) 2>&5 | |
36578 | ac_status=$? | |
36579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36580 | (exit $ac_status); }; } && | |
36581 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36583 | (eval $ac_try) 2>&5 | |
36584 | ac_status=$? | |
36585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36586 | (exit $ac_status); }; }; then | |
36587 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
36588 | else | |
36589 | echo "$as_me: failed program was:" >&5 | |
36590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36591 | ||
36592 | ac_cv_func_pthread_attr_getschedpolicy=no | |
36593 | fi | |
ac1cb8d3 VS |
36594 | rm -f conftest.err conftest.$ac_objext \ |
36595 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36596 | fi |
36597 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
36598 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
36599 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
36600 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
36601 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
36602 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
36603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36604 | else | |
36605 | cat >conftest.$ac_ext <<_ACEOF | |
36606 | /* confdefs.h. */ | |
36607 | _ACEOF | |
36608 | cat confdefs.h >>conftest.$ac_ext | |
36609 | cat >>conftest.$ac_ext <<_ACEOF | |
36610 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36611 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
36612 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36613 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
36614 | ||
a848cd7e SC |
36615 | /* System header to define __stub macros and hopefully few prototypes, |
36616 | which can conflict with char pthread_attr_setschedparam (); below. | |
36617 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36618 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36619 | |
a848cd7e SC |
36620 | #ifdef __STDC__ |
36621 | # include <limits.h> | |
36622 | #else | |
36623 | # include <assert.h> | |
36624 | #endif | |
ac1cb8d3 VS |
36625 | |
36626 | #undef pthread_attr_setschedparam | |
36627 | ||
a848cd7e SC |
36628 | /* Override any gcc2 internal prototype to avoid an error. */ |
36629 | #ifdef __cplusplus | |
36630 | extern "C" | |
36631 | { | |
36632 | #endif | |
36633 | /* We use char because int might match the return type of a gcc2 | |
36634 | builtin and then its argument prototype would still apply. */ | |
36635 | char pthread_attr_setschedparam (); | |
36636 | /* The GNU C library defines this for functions which it implements | |
36637 | to always fail with ENOSYS. Some functions are actually named | |
36638 | something starting with __ and the normal name is an alias. */ | |
36639 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
36640 | choke me | |
36641 | #else | |
36642 | char (*f) () = pthread_attr_setschedparam; | |
36643 | #endif | |
36644 | #ifdef __cplusplus | |
36645 | } | |
36646 | #endif | |
36647 | ||
36648 | int | |
36649 | main () | |
36650 | { | |
36651 | return f != pthread_attr_setschedparam; | |
36652 | ; | |
36653 | return 0; | |
36654 | } | |
36655 | _ACEOF | |
36656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36658 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36659 | ac_status=$? |
ac1cb8d3 VS |
36660 | grep -v '^ *+' conftest.er1 >conftest.err |
36661 | rm -f conftest.er1 | |
36662 | cat conftest.err >&5 | |
a848cd7e SC |
36663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36664 | (exit $ac_status); } && | |
6ebeb4c7 | 36665 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36667 | (eval $ac_try) 2>&5 | |
36668 | ac_status=$? | |
36669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36670 | (exit $ac_status); }; } && | |
36671 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36673 | (eval $ac_try) 2>&5 | |
36674 | ac_status=$? | |
36675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36676 | (exit $ac_status); }; }; then | |
36677 | ac_cv_func_pthread_attr_setschedparam=yes | |
36678 | else | |
36679 | echo "$as_me: failed program was:" >&5 | |
36680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36681 | ||
36682 | ac_cv_func_pthread_attr_setschedparam=no | |
36683 | fi | |
ac1cb8d3 VS |
36684 | rm -f conftest.err conftest.$ac_objext \ |
36685 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36686 | fi |
36687 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
36688 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
36689 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
36690 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
36691 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
36692 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
36693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36694 | else | |
36695 | cat >conftest.$ac_ext <<_ACEOF | |
36696 | /* confdefs.h. */ | |
36697 | _ACEOF | |
36698 | cat confdefs.h >>conftest.$ac_ext | |
36699 | cat >>conftest.$ac_ext <<_ACEOF | |
36700 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36701 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
36702 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36703 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
36704 | ||
a848cd7e SC |
36705 | /* System header to define __stub macros and hopefully few prototypes, |
36706 | which can conflict with char sched_get_priority_max (); below. | |
36707 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36708 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36709 | |
a848cd7e SC |
36710 | #ifdef __STDC__ |
36711 | # include <limits.h> | |
36712 | #else | |
36713 | # include <assert.h> | |
36714 | #endif | |
ac1cb8d3 VS |
36715 | |
36716 | #undef sched_get_priority_max | |
36717 | ||
a848cd7e SC |
36718 | /* Override any gcc2 internal prototype to avoid an error. */ |
36719 | #ifdef __cplusplus | |
36720 | extern "C" | |
36721 | { | |
36722 | #endif | |
36723 | /* We use char because int might match the return type of a gcc2 | |
36724 | builtin and then its argument prototype would still apply. */ | |
36725 | char sched_get_priority_max (); | |
36726 | /* The GNU C library defines this for functions which it implements | |
36727 | to always fail with ENOSYS. Some functions are actually named | |
36728 | something starting with __ and the normal name is an alias. */ | |
36729 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
36730 | choke me | |
36731 | #else | |
36732 | char (*f) () = sched_get_priority_max; | |
36733 | #endif | |
36734 | #ifdef __cplusplus | |
36735 | } | |
36736 | #endif | |
36737 | ||
36738 | int | |
36739 | main () | |
36740 | { | |
36741 | return f != sched_get_priority_max; | |
36742 | ; | |
36743 | return 0; | |
36744 | } | |
36745 | _ACEOF | |
36746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36748 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36749 | ac_status=$? |
ac1cb8d3 VS |
36750 | grep -v '^ *+' conftest.er1 >conftest.err |
36751 | rm -f conftest.er1 | |
36752 | cat conftest.err >&5 | |
a848cd7e SC |
36753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36754 | (exit $ac_status); } && | |
6ebeb4c7 | 36755 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36757 | (eval $ac_try) 2>&5 | |
36758 | ac_status=$? | |
36759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36760 | (exit $ac_status); }; } && | |
36761 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36763 | (eval $ac_try) 2>&5 | |
36764 | ac_status=$? | |
36765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36766 | (exit $ac_status); }; }; then | |
36767 | ac_cv_func_sched_get_priority_max=yes | |
36768 | else | |
36769 | echo "$as_me: failed program was:" >&5 | |
36770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36771 | ||
36772 | ac_cv_func_sched_get_priority_max=no | |
36773 | fi | |
ac1cb8d3 VS |
36774 | rm -f conftest.err conftest.$ac_objext \ |
36775 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36776 | fi |
36777 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
36778 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
36779 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
36780 | HAVE_PRIOR_FUNCS=1 | |
36781 | else | |
36782 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
36783 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
36784 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
36785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36786 | else | |
36787 | ac_check_lib_save_LIBS=$LIBS | |
36788 | LIBS="-lposix4 $LIBS" | |
36789 | cat >conftest.$ac_ext <<_ACEOF | |
36790 | /* confdefs.h. */ | |
36791 | _ACEOF | |
36792 | cat confdefs.h >>conftest.$ac_ext | |
36793 | cat >>conftest.$ac_ext <<_ACEOF | |
36794 | /* end confdefs.h. */ | |
36795 | ||
36796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36797 | #ifdef __cplusplus | |
36798 | extern "C" | |
36799 | #endif | |
36800 | /* We use char because int might match the return type of a gcc2 | |
36801 | builtin and then its argument prototype would still apply. */ | |
36802 | char sched_get_priority_max (); | |
36803 | int | |
36804 | main () | |
36805 | { | |
36806 | sched_get_priority_max (); | |
36807 | ; | |
36808 | return 0; | |
36809 | } | |
36810 | _ACEOF | |
36811 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36813 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36814 | ac_status=$? |
ac1cb8d3 VS |
36815 | grep -v '^ *+' conftest.er1 >conftest.err |
36816 | rm -f conftest.er1 | |
36817 | cat conftest.err >&5 | |
a848cd7e SC |
36818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36819 | (exit $ac_status); } && | |
6ebeb4c7 | 36820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36822 | (eval $ac_try) 2>&5 | |
36823 | ac_status=$? | |
36824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36825 | (exit $ac_status); }; } && | |
36826 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36828 | (eval $ac_try) 2>&5 | |
36829 | ac_status=$? | |
36830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36831 | (exit $ac_status); }; }; then | |
36832 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
36833 | else | |
36834 | echo "$as_me: failed program was:" >&5 | |
36835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36836 | ||
36837 | ac_cv_lib_posix4_sched_get_priority_max=no | |
36838 | fi | |
ac1cb8d3 VS |
36839 | rm -f conftest.err conftest.$ac_objext \ |
36840 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36841 | LIBS=$ac_check_lib_save_LIBS |
36842 | fi | |
36843 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
36844 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
36845 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
36846 | ||
36847 | HAVE_PRIOR_FUNCS=1 | |
36848 | POSIX4_LINK=" -lposix4" | |
36849 | ||
36850 | fi | |
36851 | ||
36852 | ||
36853 | fi | |
36854 | ||
36855 | ||
36856 | fi | |
36857 | ||
36858 | ||
36859 | fi | |
36860 | ||
36861 | ||
36862 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
36863 | cat >>confdefs.h <<\_ACEOF | |
36864 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
36865 | _ACEOF | |
36866 | ||
36867 | else | |
36868 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
36869 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
36870 | fi | |
36871 | ||
36872 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
36873 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
36874 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
36875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36876 | else | |
36877 | cat >conftest.$ac_ext <<_ACEOF | |
36878 | /* confdefs.h. */ | |
36879 | _ACEOF | |
36880 | cat confdefs.h >>conftest.$ac_ext | |
36881 | cat >>conftest.$ac_ext <<_ACEOF | |
36882 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36883 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
36884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36885 | #define pthread_cancel innocuous_pthread_cancel | |
36886 | ||
a848cd7e SC |
36887 | /* System header to define __stub macros and hopefully few prototypes, |
36888 | which can conflict with char pthread_cancel (); below. | |
36889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36890 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36891 | |
a848cd7e SC |
36892 | #ifdef __STDC__ |
36893 | # include <limits.h> | |
36894 | #else | |
36895 | # include <assert.h> | |
36896 | #endif | |
ac1cb8d3 VS |
36897 | |
36898 | #undef pthread_cancel | |
36899 | ||
a848cd7e SC |
36900 | /* Override any gcc2 internal prototype to avoid an error. */ |
36901 | #ifdef __cplusplus | |
36902 | extern "C" | |
36903 | { | |
36904 | #endif | |
36905 | /* We use char because int might match the return type of a gcc2 | |
36906 | builtin and then its argument prototype would still apply. */ | |
36907 | char pthread_cancel (); | |
36908 | /* The GNU C library defines this for functions which it implements | |
36909 | to always fail with ENOSYS. Some functions are actually named | |
36910 | something starting with __ and the normal name is an alias. */ | |
36911 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
36912 | choke me | |
36913 | #else | |
36914 | char (*f) () = pthread_cancel; | |
36915 | #endif | |
36916 | #ifdef __cplusplus | |
36917 | } | |
36918 | #endif | |
36919 | ||
36920 | int | |
36921 | main () | |
36922 | { | |
36923 | return f != pthread_cancel; | |
36924 | ; | |
36925 | return 0; | |
36926 | } | |
36927 | _ACEOF | |
36928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36930 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36931 | ac_status=$? |
ac1cb8d3 VS |
36932 | grep -v '^ *+' conftest.er1 >conftest.err |
36933 | rm -f conftest.er1 | |
36934 | cat conftest.err >&5 | |
a848cd7e SC |
36935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36936 | (exit $ac_status); } && | |
6ebeb4c7 | 36937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36939 | (eval $ac_try) 2>&5 | |
36940 | ac_status=$? | |
36941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36942 | (exit $ac_status); }; } && | |
36943 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36945 | (eval $ac_try) 2>&5 | |
36946 | ac_status=$? | |
36947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36948 | (exit $ac_status); }; }; then | |
36949 | ac_cv_func_pthread_cancel=yes | |
36950 | else | |
36951 | echo "$as_me: failed program was:" >&5 | |
36952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36953 | ||
36954 | ac_cv_func_pthread_cancel=no | |
36955 | fi | |
ac1cb8d3 VS |
36956 | rm -f conftest.err conftest.$ac_objext \ |
36957 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36958 | fi |
36959 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
36960 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
36961 | if test $ac_cv_func_pthread_cancel = yes; then | |
36962 | cat >>confdefs.h <<\_ACEOF | |
36963 | #define HAVE_PTHREAD_CANCEL 1 | |
36964 | _ACEOF | |
36965 | ||
36966 | else | |
36967 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
36968 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
36969 | fi | |
36970 | ||
36971 | ||
abc736fd MW |
36972 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
36973 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
36974 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
36975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36976 | else | |
36977 | cat >conftest.$ac_ext <<_ACEOF | |
36978 | /* confdefs.h. */ | |
36979 | _ACEOF | |
36980 | cat confdefs.h >>conftest.$ac_ext | |
36981 | cat >>conftest.$ac_ext <<_ACEOF | |
36982 | /* end confdefs.h. */ | |
36983 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
36984 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36985 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
36986 | ||
36987 | /* System header to define __stub macros and hopefully few prototypes, | |
36988 | which can conflict with char pthread_attr_setstacksize (); below. | |
36989 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36990 | <limits.h> exists even on freestanding compilers. */ | |
36991 | ||
36992 | #ifdef __STDC__ | |
36993 | # include <limits.h> | |
36994 | #else | |
36995 | # include <assert.h> | |
36996 | #endif | |
36997 | ||
36998 | #undef pthread_attr_setstacksize | |
36999 | ||
37000 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37001 | #ifdef __cplusplus | |
37002 | extern "C" | |
37003 | { | |
37004 | #endif | |
37005 | /* We use char because int might match the return type of a gcc2 | |
37006 | builtin and then its argument prototype would still apply. */ | |
37007 | char pthread_attr_setstacksize (); | |
37008 | /* The GNU C library defines this for functions which it implements | |
37009 | to always fail with ENOSYS. Some functions are actually named | |
37010 | something starting with __ and the normal name is an alias. */ | |
37011 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
37012 | choke me | |
37013 | #else | |
37014 | char (*f) () = pthread_attr_setstacksize; | |
37015 | #endif | |
37016 | #ifdef __cplusplus | |
37017 | } | |
37018 | #endif | |
37019 | ||
37020 | int | |
37021 | main () | |
37022 | { | |
37023 | return f != pthread_attr_setstacksize; | |
37024 | ; | |
37025 | return 0; | |
37026 | } | |
37027 | _ACEOF | |
37028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37030 | (eval $ac_link) 2>conftest.er1 | |
37031 | ac_status=$? | |
37032 | grep -v '^ *+' conftest.er1 >conftest.err | |
37033 | rm -f conftest.er1 | |
37034 | cat conftest.err >&5 | |
37035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37036 | (exit $ac_status); } && | |
6ebeb4c7 | 37037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
37038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37039 | (eval $ac_try) 2>&5 | |
37040 | ac_status=$? | |
37041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37042 | (exit $ac_status); }; } && | |
37043 | { ac_try='test -s conftest$ac_exeext' | |
37044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37045 | (eval $ac_try) 2>&5 | |
37046 | ac_status=$? | |
37047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37048 | (exit $ac_status); }; }; then | |
37049 | ac_cv_func_pthread_attr_setstacksize=yes | |
37050 | else | |
37051 | echo "$as_me: failed program was:" >&5 | |
37052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37053 | ||
37054 | ac_cv_func_pthread_attr_setstacksize=no | |
37055 | fi | |
37056 | rm -f conftest.err conftest.$ac_objext \ | |
37057 | conftest$ac_exeext conftest.$ac_ext | |
37058 | fi | |
37059 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
37060 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
37061 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
37062 | cat >>confdefs.h <<\_ACEOF | |
37063 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
37064 | _ACEOF | |
37065 | ||
37066 | fi | |
37067 | ||
a848cd7e SC |
37068 | |
37069 | ||
37070 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
37071 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
37072 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
37073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37074 | else | |
37075 | ||
37076 | cat >conftest.$ac_ext <<_ACEOF | |
37077 | /* confdefs.h. */ | |
37078 | _ACEOF | |
37079 | cat confdefs.h >>conftest.$ac_ext | |
37080 | cat >>conftest.$ac_ext <<_ACEOF | |
37081 | /* end confdefs.h. */ | |
37082 | #include <pthread.h> | |
37083 | int | |
37084 | main () | |
37085 | { | |
37086 | ||
37087 | pthread_mutexattr_t attr; | |
37088 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
37089 | ||
37090 | ; | |
37091 | return 0; | |
37092 | } | |
37093 | _ACEOF | |
37094 | rm -f conftest.$ac_objext | |
37095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37096 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37097 | ac_status=$? |
ac1cb8d3 VS |
37098 | grep -v '^ *+' conftest.er1 >conftest.err |
37099 | rm -f conftest.er1 | |
37100 | cat conftest.err >&5 | |
a848cd7e SC |
37101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37102 | (exit $ac_status); } && | |
6ebeb4c7 | 37103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37105 | (eval $ac_try) 2>&5 | |
37106 | ac_status=$? | |
37107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37108 | (exit $ac_status); }; } && | |
37109 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37111 | (eval $ac_try) 2>&5 | |
37112 | ac_status=$? | |
37113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37114 | (exit $ac_status); }; }; then | |
123dca7d | 37115 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
37116 | else |
37117 | echo "$as_me: failed program was:" >&5 | |
37118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37119 | ||
123dca7d | 37120 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
37121 | |
37122 | fi | |
ac1cb8d3 | 37123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37124 | |
37125 | fi | |
37126 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
37127 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
37128 | ||
37129 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
37130 | cat >>confdefs.h <<\_ACEOF | |
37131 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
37132 | _ACEOF | |
37133 | ||
123dca7d VZ |
37134 | |
37135 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
37136 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
37137 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
37138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37139 | else | |
37140 | ||
37141 | cat >conftest.$ac_ext <<_ACEOF | |
37142 | /* confdefs.h. */ | |
37143 | _ACEOF | |
37144 | cat confdefs.h >>conftest.$ac_ext | |
37145 | cat >>conftest.$ac_ext <<_ACEOF | |
37146 | /* end confdefs.h. */ | |
37147 | #include <pthread.h> | |
37148 | int | |
37149 | main () | |
37150 | { | |
37151 | ||
37152 | pthread_mutexattr_t attr; | |
37153 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
37154 | ||
37155 | ; | |
37156 | return 0; | |
37157 | } | |
37158 | _ACEOF | |
37159 | rm -f conftest.$ac_objext | |
37160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37161 | (eval $ac_compile) 2>conftest.er1 | |
37162 | ac_status=$? | |
37163 | grep -v '^ *+' conftest.er1 >conftest.err | |
37164 | rm -f conftest.er1 | |
37165 | cat conftest.err >&5 | |
37166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37167 | (exit $ac_status); } && | |
37168 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
37169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37170 | (eval $ac_try) 2>&5 | |
37171 | ac_status=$? | |
37172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37173 | (exit $ac_status); }; } && | |
37174 | { ac_try='test -s conftest.$ac_objext' | |
37175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37176 | (eval $ac_try) 2>&5 | |
37177 | ac_status=$? | |
37178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37179 | (exit $ac_status); }; }; then | |
37180 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
37181 | else | |
37182 | echo "$as_me: failed program was:" >&5 | |
37183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37184 | ||
37185 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
37186 | ||
37187 | fi | |
37188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37189 | ||
37190 | fi | |
37191 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
37192 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
37193 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
37194 | cat >>confdefs.h <<\_ACEOF | |
37195 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
37196 | _ACEOF | |
37197 | ||
37198 | fi | |
a848cd7e SC |
37199 | else |
37200 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
37201 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
37202 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
37203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37204 | else | |
37205 | ||
37206 | cat >conftest.$ac_ext <<_ACEOF | |
37207 | /* confdefs.h. */ | |
37208 | _ACEOF | |
37209 | cat confdefs.h >>conftest.$ac_ext | |
37210 | cat >>conftest.$ac_ext <<_ACEOF | |
37211 | /* end confdefs.h. */ | |
37212 | #include <pthread.h> | |
37213 | int | |
37214 | main () | |
37215 | { | |
37216 | ||
37217 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
37218 | ||
37219 | ; | |
37220 | return 0; | |
37221 | } | |
37222 | _ACEOF | |
37223 | rm -f conftest.$ac_objext | |
37224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37225 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37226 | ac_status=$? |
ac1cb8d3 VS |
37227 | grep -v '^ *+' conftest.er1 >conftest.err |
37228 | rm -f conftest.er1 | |
37229 | cat conftest.err >&5 | |
a848cd7e SC |
37230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37231 | (exit $ac_status); } && | |
6ebeb4c7 | 37232 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37234 | (eval $ac_try) 2>&5 | |
37235 | ac_status=$? | |
37236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37237 | (exit $ac_status); }; } && | |
37238 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37240 | (eval $ac_try) 2>&5 | |
37241 | ac_status=$? | |
37242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37243 | (exit $ac_status); }; }; then | |
37244 | ||
37245 | wx_cv_type_pthread_rec_mutex_init=yes | |
37246 | ||
37247 | else | |
37248 | echo "$as_me: failed program was:" >&5 | |
37249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37250 | ||
37251 | ||
37252 | wx_cv_type_pthread_rec_mutex_init=no | |
37253 | ||
37254 | ||
37255 | fi | |
ac1cb8d3 | 37256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37257 | |
37258 | fi | |
37259 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
37260 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
37261 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
37262 | cat >>confdefs.h <<\_ACEOF | |
37263 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
37264 | _ACEOF | |
37265 | ||
37266 | else | |
37267 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
37268 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
37269 | fi | |
37270 | fi | |
37271 | fi | |
37272 | ||
37273 | else | |
37274 | if test "$wxUSE_THREADS" = "yes" ; then | |
37275 | case "${host}" in | |
37276 | *-*-mingw32* ) | |
37277 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
37278 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
37279 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
37280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37281 | else | |
37282 | ||
37283 | CFLAGS_OLD="$CFLAGS" | |
37284 | CFLAGS="$CFLAGS -mthreads" | |
37285 | cat >conftest.$ac_ext <<_ACEOF | |
37286 | /* confdefs.h. */ | |
37287 | _ACEOF | |
37288 | cat confdefs.h >>conftest.$ac_ext | |
37289 | cat >>conftest.$ac_ext <<_ACEOF | |
37290 | /* end confdefs.h. */ | |
37291 | ||
37292 | int | |
37293 | main () | |
37294 | { | |
37295 | ||
37296 | ; | |
37297 | return 0; | |
37298 | } | |
37299 | _ACEOF | |
37300 | rm -f conftest.$ac_objext | |
37301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37302 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37303 | ac_status=$? |
ac1cb8d3 VS |
37304 | grep -v '^ *+' conftest.er1 >conftest.err |
37305 | rm -f conftest.er1 | |
37306 | cat conftest.err >&5 | |
a848cd7e SC |
37307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37308 | (exit $ac_status); } && | |
6ebeb4c7 | 37309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37311 | (eval $ac_try) 2>&5 | |
37312 | ac_status=$? | |
37313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37314 | (exit $ac_status); }; } && | |
37315 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37317 | (eval $ac_try) 2>&5 | |
37318 | ac_status=$? | |
37319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37320 | (exit $ac_status); }; }; then | |
37321 | wx_cv_cflags_mthread=yes | |
37322 | else | |
37323 | echo "$as_me: failed program was:" >&5 | |
37324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37325 | ||
37326 | wx_cv_cflags_mthread=no | |
37327 | ||
37328 | fi | |
ac1cb8d3 | 37329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37330 | |
37331 | ||
37332 | fi | |
37333 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
37334 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
37335 | ||
37336 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
37337 | CXXFLAGS="$CXXFLAGS -mthreads" | |
37338 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
37339 | LDFLAGS="$LDFLAGS -mthreads" | |
37340 | else | |
37341 | CFLAGS="$CFLAGS_OLD" | |
37342 | fi | |
37343 | ;; | |
37344 | *-pc-os2*emx ) | |
37345 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
37346 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
37347 | LDFLAGS="$LDFLAGS -Zmt" | |
37348 | ;; | |
37349 | esac | |
37350 | fi | |
37351 | fi | |
37352 | ||
37353 | if test "$wxUSE_THREADS" = "yes"; then | |
37354 | cat >>confdefs.h <<\_ACEOF | |
37355 | #define wxUSE_THREADS 1 | |
37356 | _ACEOF | |
37357 | ||
37358 | ||
37359 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
37360 | else | |
37361 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
37362 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
37363 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
37364 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
37365 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
37366 | echo "$as_me:$LINENO: result: yes" >&5 | |
37367 | echo "${ECHO_T}yes" >&6 | |
37368 | else | |
37369 | echo "$as_me:$LINENO: result: no" >&5 | |
37370 | echo "${ECHO_T}no" >&6 | |
37371 | fi | |
37372 | fi | |
37373 | fi | |
37374 | ||
37375 | if test "$WXGTK20" = 1 ; then | |
37376 | cat >>confdefs.h <<_ACEOF | |
37377 | #define __WXGTK20__ $WXGTK20 | |
37378 | _ACEOF | |
37379 | ||
37380 | WXGTK12=1 | |
37381 | fi | |
37382 | ||
37383 | if test "$WXGTK12" = 1 ; then | |
37384 | cat >>confdefs.h <<_ACEOF | |
37385 | #define __WXGTK12__ $WXGTK12 | |
37386 | _ACEOF | |
37387 | ||
37388 | fi | |
37389 | ||
37390 | if test "$WXGTK127" = 1 ; then | |
37391 | cat >>confdefs.h <<_ACEOF | |
37392 | #define __WXGTK127__ $WXGTK127 | |
37393 | _ACEOF | |
37394 | ||
37395 | fi | |
37396 | ||
37397 | if test "$WXGPE" = 1 ; then | |
37398 | cat >>confdefs.h <<_ACEOF | |
37399 | #define __WXGPE__ $WXGPE | |
37400 | _ACEOF | |
37401 | ||
37402 | fi | |
37403 | ||
37404 | WXDEBUG= | |
37405 | ||
37406 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
37407 | WXDEBUG="-g" | |
37408 | wxUSE_OPTIMISE=no | |
37409 | fi | |
37410 | ||
37411 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
37412 | wxUSE_DEBUG_INFO=yes | |
18228ab4 MW |
37413 | if test "$GCC" = yes; then |
37414 | WXDEBUG="-ggdb" | |
37415 | fi | |
a848cd7e SC |
37416 | fi |
37417 | ||
37418 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
37419 | cat >>confdefs.h <<\_ACEOF | |
37420 | #define WXDEBUG 1 | |
37421 | _ACEOF | |
37422 | ||
37423 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
37424 | else | |
37425 | if test "$wxUSE_GTK" = 1 ; then | |
37426 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
37427 | fi | |
37428 | fi | |
37429 | ||
37430 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
37431 | cat >>confdefs.h <<\_ACEOF | |
37432 | #define wxUSE_MEMORY_TRACING 1 | |
37433 | _ACEOF | |
37434 | ||
37435 | cat >>confdefs.h <<\_ACEOF | |
37436 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
37437 | _ACEOF | |
37438 | ||
37439 | cat >>confdefs.h <<\_ACEOF | |
37440 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
37441 | _ACEOF | |
37442 | ||
37443 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
37444 | fi | |
37445 | ||
37446 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
df1b269d | 37447 | DMALLOC_LIBS="-ldmallocthcxx" |
a848cd7e SC |
37448 | fi |
37449 | ||
37450 | PROFILE= | |
37451 | if test "$wxUSE_PROFILE" = "yes" ; then | |
37452 | PROFILE=" -pg" | |
37453 | fi | |
37454 | ||
37455 | CODE_GEN_FLAGS= | |
37456 | CODE_GEN_FLAGS_CXX= | |
37457 | if test "$GCC" = "yes" ; then | |
37458 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
37459 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
37460 | fi | |
37461 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
37462 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
37463 | fi | |
37464 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
37465 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
37466 | fi | |
37467 | ||
37468 | case "${host}" in | |
37469 | powerpc*-*-aix* ) | |
37470 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
37471 | ;; | |
37472 | *-hppa* ) | |
37473 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
37474 | ;; | |
37475 | esac | |
37476 | fi | |
37477 | ||
37478 | OPTIMISE= | |
37479 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
37480 | if test "$GCC" = yes ; then | |
37481 | OPTIMISE="-O0" | |
37482 | fi | |
37483 | else | |
37484 | if test "$GCC" = yes ; then | |
37485 | OPTIMISE="-O2" | |
37486 | ||
37487 | case "${host}" in | |
37488 | i586-*-*|i686-*-* ) | |
37489 | OPTIMISE="${OPTIMISE} " | |
37490 | ;; | |
37491 | esac | |
37492 | else | |
37493 | OPTIMISE="-O" | |
37494 | fi | |
37495 | fi | |
37496 | ||
37497 | ||
37498 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
37499 | cat >>confdefs.h <<\_ACEOF | |
37500 | #define WXWIN_COMPATIBILITY_2_2 1 | |
37501 | _ACEOF | |
37502 | ||
37503 | ||
37504 | WXWIN_COMPATIBILITY_2_4="yes" | |
37505 | fi | |
37506 | ||
37507 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
37508 | cat >>confdefs.h <<\_ACEOF | |
37509 | #define WXWIN_COMPATIBILITY_2_4 1 | |
37510 | _ACEOF | |
37511 | ||
37512 | fi | |
37513 | ||
37514 | ||
37515 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 37516 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
37517 | #define wxUSE_GUI 1 |
37518 | _ACEOF | |
37519 | ||
37520 | ||
370fd4c2 | 37521 | fi |
a848cd7e SC |
37522 | |
37523 | ||
37524 | if test "$wxUSE_UNIX" = "yes"; then | |
37525 | cat >>confdefs.h <<\_ACEOF | |
37526 | #define wxUSE_UNIX 1 | |
37527 | _ACEOF | |
37528 | ||
37529 | fi | |
37530 | ||
37531 | ||
37532 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
37533 | ||
37534 | HAVE_DL_FUNCS=0 | |
37535 | HAVE_SHL_FUNCS=0 | |
37536 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
37537 | if test "$USE_DARWIN" = 1; then | |
37538 | HAVE_DL_FUNCS=1 | |
47a7e797 MW |
37539 | elif test "$USE_DOS" = 1; then |
37540 | HAVE_DL_FUNCS=0 | |
a848cd7e SC |
37541 | else |
37542 | ||
37543 | for ac_func in dlopen | |
37544 | do | |
37545 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37546 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37547 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37548 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37550 | else | |
37551 | cat >conftest.$ac_ext <<_ACEOF | |
37552 | /* confdefs.h. */ | |
37553 | _ACEOF | |
37554 | cat confdefs.h >>conftest.$ac_ext | |
37555 | cat >>conftest.$ac_ext <<_ACEOF | |
37556 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37557 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37558 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37559 | #define $ac_func innocuous_$ac_func | |
37560 | ||
a848cd7e SC |
37561 | /* System header to define __stub macros and hopefully few prototypes, |
37562 | which can conflict with char $ac_func (); below. | |
37563 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37564 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37565 | |
a848cd7e SC |
37566 | #ifdef __STDC__ |
37567 | # include <limits.h> | |
37568 | #else | |
37569 | # include <assert.h> | |
37570 | #endif | |
ac1cb8d3 VS |
37571 | |
37572 | #undef $ac_func | |
37573 | ||
a848cd7e SC |
37574 | /* Override any gcc2 internal prototype to avoid an error. */ |
37575 | #ifdef __cplusplus | |
37576 | extern "C" | |
37577 | { | |
37578 | #endif | |
37579 | /* We use char because int might match the return type of a gcc2 | |
37580 | builtin and then its argument prototype would still apply. */ | |
37581 | char $ac_func (); | |
37582 | /* The GNU C library defines this for functions which it implements | |
37583 | to always fail with ENOSYS. Some functions are actually named | |
37584 | something starting with __ and the normal name is an alias. */ | |
37585 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37586 | choke me | |
37587 | #else | |
37588 | char (*f) () = $ac_func; | |
37589 | #endif | |
37590 | #ifdef __cplusplus | |
37591 | } | |
37592 | #endif | |
37593 | ||
37594 | int | |
37595 | main () | |
37596 | { | |
37597 | return f != $ac_func; | |
37598 | ; | |
37599 | return 0; | |
37600 | } | |
37601 | _ACEOF | |
37602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37604 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37605 | ac_status=$? |
ac1cb8d3 VS |
37606 | grep -v '^ *+' conftest.er1 >conftest.err |
37607 | rm -f conftest.er1 | |
37608 | cat conftest.err >&5 | |
a848cd7e SC |
37609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37610 | (exit $ac_status); } && | |
6ebeb4c7 | 37611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37613 | (eval $ac_try) 2>&5 | |
37614 | ac_status=$? | |
37615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37616 | (exit $ac_status); }; } && | |
37617 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37619 | (eval $ac_try) 2>&5 | |
37620 | ac_status=$? | |
37621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37622 | (exit $ac_status); }; }; then | |
37623 | eval "$as_ac_var=yes" | |
37624 | else | |
37625 | echo "$as_me: failed program was:" >&5 | |
37626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37627 | ||
37628 | eval "$as_ac_var=no" | |
37629 | fi | |
ac1cb8d3 VS |
37630 | rm -f conftest.err conftest.$ac_objext \ |
37631 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37632 | fi |
37633 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37634 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37635 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37636 | cat >>confdefs.h <<_ACEOF | |
37637 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37638 | _ACEOF | |
37639 | ||
37640 | cat >>confdefs.h <<\_ACEOF | |
37641 | #define HAVE_DLOPEN 1 | |
37642 | _ACEOF | |
37643 | ||
37644 | HAVE_DL_FUNCS=1 | |
37645 | ||
37646 | else | |
37647 | ||
37648 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
37649 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
37650 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
37651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37652 | else | |
37653 | ac_check_lib_save_LIBS=$LIBS | |
37654 | LIBS="-ldl $LIBS" | |
37655 | cat >conftest.$ac_ext <<_ACEOF | |
37656 | /* confdefs.h. */ | |
37657 | _ACEOF | |
37658 | cat confdefs.h >>conftest.$ac_ext | |
37659 | cat >>conftest.$ac_ext <<_ACEOF | |
37660 | /* end confdefs.h. */ | |
37661 | ||
37662 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37663 | #ifdef __cplusplus | |
37664 | extern "C" | |
37665 | #endif | |
37666 | /* We use char because int might match the return type of a gcc2 | |
37667 | builtin and then its argument prototype would still apply. */ | |
37668 | char dlopen (); | |
37669 | int | |
37670 | main () | |
37671 | { | |
37672 | dlopen (); | |
37673 | ; | |
37674 | return 0; | |
37675 | } | |
37676 | _ACEOF | |
37677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37679 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37680 | ac_status=$? |
ac1cb8d3 VS |
37681 | grep -v '^ *+' conftest.er1 >conftest.err |
37682 | rm -f conftest.er1 | |
37683 | cat conftest.err >&5 | |
a848cd7e SC |
37684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37685 | (exit $ac_status); } && | |
6ebeb4c7 | 37686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37688 | (eval $ac_try) 2>&5 | |
37689 | ac_status=$? | |
37690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37691 | (exit $ac_status); }; } && | |
37692 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37694 | (eval $ac_try) 2>&5 | |
37695 | ac_status=$? | |
37696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37697 | (exit $ac_status); }; }; then | |
37698 | ac_cv_lib_dl_dlopen=yes | |
37699 | else | |
37700 | echo "$as_me: failed program was:" >&5 | |
37701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37702 | ||
37703 | ac_cv_lib_dl_dlopen=no | |
37704 | fi | |
ac1cb8d3 VS |
37705 | rm -f conftest.err conftest.$ac_objext \ |
37706 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37707 | LIBS=$ac_check_lib_save_LIBS |
37708 | fi | |
37709 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
37710 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
37711 | if test $ac_cv_lib_dl_dlopen = yes; then | |
37712 | ||
37713 | cat >>confdefs.h <<\_ACEOF | |
37714 | #define HAVE_DLOPEN 1 | |
37715 | _ACEOF | |
37716 | ||
37717 | HAVE_DL_FUNCS=1 | |
37718 | DL_LINK=" -ldl$DL_LINK" | |
37719 | ||
37720 | else | |
37721 | ||
37722 | ||
37723 | for ac_func in shl_load | |
37724 | do | |
37725 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37726 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37727 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37728 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37730 | else | |
37731 | cat >conftest.$ac_ext <<_ACEOF | |
37732 | /* confdefs.h. */ | |
37733 | _ACEOF | |
37734 | cat confdefs.h >>conftest.$ac_ext | |
37735 | cat >>conftest.$ac_ext <<_ACEOF | |
37736 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37737 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37738 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37739 | #define $ac_func innocuous_$ac_func | |
37740 | ||
a848cd7e SC |
37741 | /* System header to define __stub macros and hopefully few prototypes, |
37742 | which can conflict with char $ac_func (); below. | |
37743 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37744 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37745 | |
a848cd7e SC |
37746 | #ifdef __STDC__ |
37747 | # include <limits.h> | |
37748 | #else | |
37749 | # include <assert.h> | |
37750 | #endif | |
ac1cb8d3 VS |
37751 | |
37752 | #undef $ac_func | |
37753 | ||
a848cd7e SC |
37754 | /* Override any gcc2 internal prototype to avoid an error. */ |
37755 | #ifdef __cplusplus | |
37756 | extern "C" | |
37757 | { | |
37758 | #endif | |
37759 | /* We use char because int might match the return type of a gcc2 | |
37760 | builtin and then its argument prototype would still apply. */ | |
37761 | char $ac_func (); | |
37762 | /* The GNU C library defines this for functions which it implements | |
37763 | to always fail with ENOSYS. Some functions are actually named | |
37764 | something starting with __ and the normal name is an alias. */ | |
37765 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37766 | choke me | |
37767 | #else | |
37768 | char (*f) () = $ac_func; | |
37769 | #endif | |
37770 | #ifdef __cplusplus | |
37771 | } | |
37772 | #endif | |
37773 | ||
37774 | int | |
37775 | main () | |
37776 | { | |
37777 | return f != $ac_func; | |
37778 | ; | |
37779 | return 0; | |
37780 | } | |
37781 | _ACEOF | |
37782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37784 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37785 | ac_status=$? |
ac1cb8d3 VS |
37786 | grep -v '^ *+' conftest.er1 >conftest.err |
37787 | rm -f conftest.er1 | |
37788 | cat conftest.err >&5 | |
a848cd7e SC |
37789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37790 | (exit $ac_status); } && | |
6ebeb4c7 | 37791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37793 | (eval $ac_try) 2>&5 | |
37794 | ac_status=$? | |
37795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37796 | (exit $ac_status); }; } && | |
37797 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37799 | (eval $ac_try) 2>&5 | |
37800 | ac_status=$? | |
37801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37802 | (exit $ac_status); }; }; then | |
37803 | eval "$as_ac_var=yes" | |
37804 | else | |
37805 | echo "$as_me: failed program was:" >&5 | |
37806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37807 | ||
37808 | eval "$as_ac_var=no" | |
37809 | fi | |
ac1cb8d3 VS |
37810 | rm -f conftest.err conftest.$ac_objext \ |
37811 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37812 | fi |
37813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37814 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37815 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37816 | cat >>confdefs.h <<_ACEOF | |
37817 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37818 | _ACEOF | |
37819 | ||
37820 | cat >>confdefs.h <<\_ACEOF | |
37821 | #define HAVE_SHL_LOAD 1 | |
37822 | _ACEOF | |
37823 | ||
37824 | HAVE_SHL_FUNCS=1 | |
37825 | ||
37826 | else | |
37827 | ||
37828 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
37829 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
37830 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
37831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37832 | else | |
37833 | ac_check_lib_save_LIBS=$LIBS | |
37834 | LIBS="-lshl_load $LIBS" | |
37835 | cat >conftest.$ac_ext <<_ACEOF | |
37836 | /* confdefs.h. */ | |
37837 | _ACEOF | |
37838 | cat confdefs.h >>conftest.$ac_ext | |
37839 | cat >>conftest.$ac_ext <<_ACEOF | |
37840 | /* end confdefs.h. */ | |
37841 | ||
37842 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37843 | #ifdef __cplusplus | |
37844 | extern "C" | |
37845 | #endif | |
37846 | /* We use char because int might match the return type of a gcc2 | |
37847 | builtin and then its argument prototype would still apply. */ | |
37848 | char dld (); | |
37849 | int | |
37850 | main () | |
37851 | { | |
37852 | dld (); | |
37853 | ; | |
37854 | return 0; | |
37855 | } | |
37856 | _ACEOF | |
37857 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37859 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37860 | ac_status=$? |
ac1cb8d3 VS |
37861 | grep -v '^ *+' conftest.er1 >conftest.err |
37862 | rm -f conftest.er1 | |
37863 | cat conftest.err >&5 | |
a848cd7e SC |
37864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37865 | (exit $ac_status); } && | |
6ebeb4c7 | 37866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37868 | (eval $ac_try) 2>&5 | |
37869 | ac_status=$? | |
37870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37871 | (exit $ac_status); }; } && | |
37872 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37874 | (eval $ac_try) 2>&5 | |
37875 | ac_status=$? | |
37876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37877 | (exit $ac_status); }; }; then | |
37878 | ac_cv_lib_shl_load_dld=yes | |
37879 | else | |
37880 | echo "$as_me: failed program was:" >&5 | |
37881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37882 | ||
37883 | ac_cv_lib_shl_load_dld=no | |
37884 | fi | |
ac1cb8d3 VS |
37885 | rm -f conftest.err conftest.$ac_objext \ |
37886 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37887 | LIBS=$ac_check_lib_save_LIBS |
37888 | fi | |
37889 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
37890 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
37891 | if test $ac_cv_lib_shl_load_dld = yes; then | |
37892 | ||
37893 | HAVE_SHL_FUNCS=1 | |
37894 | DL_LINK=" -ldld$DL_LINK" | |
37895 | ||
37896 | fi | |
37897 | ||
37898 | ||
37899 | fi | |
37900 | done | |
37901 | ||
37902 | ||
37903 | fi | |
37904 | ||
37905 | ||
37906 | fi | |
37907 | done | |
37908 | ||
37909 | ||
37910 | if test "$HAVE_DL_FUNCS" = 1; then | |
37911 | ||
37912 | for ac_func in dlerror | |
37913 | do | |
37914 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37915 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37916 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37917 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37919 | else | |
37920 | cat >conftest.$ac_ext <<_ACEOF | |
37921 | /* confdefs.h. */ | |
37922 | _ACEOF | |
37923 | cat confdefs.h >>conftest.$ac_ext | |
37924 | cat >>conftest.$ac_ext <<_ACEOF | |
37925 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37926 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37927 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37928 | #define $ac_func innocuous_$ac_func | |
37929 | ||
a848cd7e SC |
37930 | /* System header to define __stub macros and hopefully few prototypes, |
37931 | which can conflict with char $ac_func (); below. | |
37932 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37933 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37934 | |
a848cd7e SC |
37935 | #ifdef __STDC__ |
37936 | # include <limits.h> | |
37937 | #else | |
37938 | # include <assert.h> | |
37939 | #endif | |
ac1cb8d3 VS |
37940 | |
37941 | #undef $ac_func | |
37942 | ||
a848cd7e SC |
37943 | /* Override any gcc2 internal prototype to avoid an error. */ |
37944 | #ifdef __cplusplus | |
37945 | extern "C" | |
37946 | { | |
37947 | #endif | |
37948 | /* We use char because int might match the return type of a gcc2 | |
37949 | builtin and then its argument prototype would still apply. */ | |
37950 | char $ac_func (); | |
37951 | /* The GNU C library defines this for functions which it implements | |
37952 | to always fail with ENOSYS. Some functions are actually named | |
37953 | something starting with __ and the normal name is an alias. */ | |
37954 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37955 | choke me | |
37956 | #else | |
37957 | char (*f) () = $ac_func; | |
37958 | #endif | |
37959 | #ifdef __cplusplus | |
37960 | } | |
37961 | #endif | |
37962 | ||
37963 | int | |
37964 | main () | |
37965 | { | |
37966 | return f != $ac_func; | |
37967 | ; | |
37968 | return 0; | |
37969 | } | |
37970 | _ACEOF | |
37971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37973 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37974 | ac_status=$? |
ac1cb8d3 VS |
37975 | grep -v '^ *+' conftest.er1 >conftest.err |
37976 | rm -f conftest.er1 | |
37977 | cat conftest.err >&5 | |
a848cd7e SC |
37978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37979 | (exit $ac_status); } && | |
6ebeb4c7 | 37980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37982 | (eval $ac_try) 2>&5 | |
37983 | ac_status=$? | |
37984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37985 | (exit $ac_status); }; } && | |
37986 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37988 | (eval $ac_try) 2>&5 | |
37989 | ac_status=$? | |
37990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37991 | (exit $ac_status); }; }; then | |
37992 | eval "$as_ac_var=yes" | |
37993 | else | |
37994 | echo "$as_me: failed program was:" >&5 | |
37995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37996 | ||
37997 | eval "$as_ac_var=no" | |
37998 | fi | |
ac1cb8d3 VS |
37999 | rm -f conftest.err conftest.$ac_objext \ |
38000 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38001 | fi |
38002 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38003 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38004 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38005 | cat >>confdefs.h <<_ACEOF | |
38006 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38007 | _ACEOF | |
38008 | cat >>confdefs.h <<\_ACEOF | |
38009 | #define HAVE_DLERROR 1 | |
38010 | _ACEOF | |
38011 | ||
38012 | else | |
38013 | ||
38014 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
38015 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
38016 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
38017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38018 | else | |
38019 | ac_check_lib_save_LIBS=$LIBS | |
38020 | LIBS="-ldl $LIBS" | |
38021 | cat >conftest.$ac_ext <<_ACEOF | |
38022 | /* confdefs.h. */ | |
38023 | _ACEOF | |
38024 | cat confdefs.h >>conftest.$ac_ext | |
38025 | cat >>conftest.$ac_ext <<_ACEOF | |
38026 | /* end confdefs.h. */ | |
38027 | ||
38028 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38029 | #ifdef __cplusplus | |
38030 | extern "C" | |
38031 | #endif | |
38032 | /* We use char because int might match the return type of a gcc2 | |
38033 | builtin and then its argument prototype would still apply. */ | |
38034 | char dlerror (); | |
38035 | int | |
38036 | main () | |
38037 | { | |
38038 | dlerror (); | |
38039 | ; | |
38040 | return 0; | |
38041 | } | |
38042 | _ACEOF | |
38043 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38045 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38046 | ac_status=$? |
ac1cb8d3 VS |
38047 | grep -v '^ *+' conftest.er1 >conftest.err |
38048 | rm -f conftest.er1 | |
38049 | cat conftest.err >&5 | |
a848cd7e SC |
38050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38051 | (exit $ac_status); } && | |
6ebeb4c7 | 38052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38054 | (eval $ac_try) 2>&5 | |
38055 | ac_status=$? | |
38056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38057 | (exit $ac_status); }; } && | |
38058 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38060 | (eval $ac_try) 2>&5 | |
38061 | ac_status=$? | |
38062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38063 | (exit $ac_status); }; }; then | |
38064 | ac_cv_lib_dl_dlerror=yes | |
38065 | else | |
38066 | echo "$as_me: failed program was:" >&5 | |
38067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38068 | ||
38069 | ac_cv_lib_dl_dlerror=no | |
38070 | fi | |
ac1cb8d3 VS |
38071 | rm -f conftest.err conftest.$ac_objext \ |
38072 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38073 | LIBS=$ac_check_lib_save_LIBS |
38074 | fi | |
38075 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
38076 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
38077 | if test $ac_cv_lib_dl_dlerror = yes; then | |
38078 | cat >>confdefs.h <<\_ACEOF | |
38079 | #define HAVE_DLERROR 1 | |
38080 | _ACEOF | |
38081 | ||
38082 | fi | |
38083 | ||
38084 | ||
38085 | ||
38086 | fi | |
38087 | done | |
38088 | ||
38089 | fi | |
38090 | fi | |
38091 | ||
38092 | if test "$HAVE_DL_FUNCS" = 0; then | |
38093 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 38094 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
38095 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
38096 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
38097 | wxUSE_DYNAMIC_LOADER=no | |
38098 | wxUSE_DYNLIB_CLASS=no | |
38099 | else | |
38100 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
38101 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
38102 | fi | |
38103 | fi | |
38104 | fi | |
38105 | fi | |
38106 | fi | |
38107 | ||
38108 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
38109 | cat >>confdefs.h <<\_ACEOF | |
38110 | #define wxUSE_DYNAMIC_LOADER 1 | |
38111 | _ACEOF | |
38112 | ||
38113 | fi | |
38114 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
38115 | cat >>confdefs.h <<\_ACEOF | |
38116 | #define wxUSE_DYNLIB_CLASS 1 | |
38117 | _ACEOF | |
38118 | ||
38119 | fi | |
38120 | ||
38121 | ||
38122 | ||
38123 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
38124 | if test "$wxUSE_SHARED" = "no" ; then | |
38125 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
38126 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
38127 | wxUSE_PLUGINS=no | |
38128 | fi | |
38129 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
38130 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
38131 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
38132 | wxUSE_PLUGINS=no | |
38133 | fi | |
38134 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
38135 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
38136 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
38137 | wxUSE_PLUGINS=no | |
38138 | fi | |
38139 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
38140 | cat >>confdefs.h <<\_ACEOF | |
38141 | #define wxUSE_PLUGINS 1 | |
38142 | _ACEOF | |
38143 | ||
38144 | fi | |
38145 | fi | |
38146 | ||
38147 | ||
38148 | if test "$wxUSE_STL" = "yes"; then | |
38149 | cat >>confdefs.h <<\_ACEOF | |
38150 | #define wxUSE_STL 1 | |
38151 | _ACEOF | |
38152 | ||
38153 | fi | |
38154 | ||
38155 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
38156 | cat >>confdefs.h <<\_ACEOF | |
38157 | #define wxUSE_APPLE_IEEE 1 | |
38158 | _ACEOF | |
38159 | ||
38160 | fi | |
38161 | ||
38162 | if test "$wxUSE_TIMER" = "yes"; then | |
38163 | cat >>confdefs.h <<\_ACEOF | |
38164 | #define wxUSE_TIMER 1 | |
38165 | _ACEOF | |
38166 | ||
38167 | fi | |
38168 | ||
9c112555 | 38169 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
38170 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
38171 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
38172 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 38173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 38174 | else |
d12aef51 VZ |
38175 | |
38176 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
38177 | /* confdefs.h. */ |
38178 | _ACEOF | |
38179 | cat confdefs.h >>conftest.$ac_ext | |
38180 | cat >>conftest.$ac_ext <<_ACEOF | |
38181 | /* end confdefs.h. */ | |
d12aef51 VZ |
38182 | |
38183 | #include <sys/soundcard.h> | |
38184 | ||
38185 | int | |
38186 | main () | |
38187 | { | |
38188 | ||
38189 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
38190 | ||
38191 | ; | |
38192 | return 0; | |
38193 | } | |
a848cd7e | 38194 | _ACEOF |
d12aef51 VZ |
38195 | rm -f conftest.$ac_objext conftest$ac_exeext |
38196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38197 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 38198 | ac_status=$? |
ac1cb8d3 VS |
38199 | grep -v '^ *+' conftest.er1 >conftest.err |
38200 | rm -f conftest.er1 | |
38201 | cat conftest.err >&5 | |
a848cd7e SC |
38202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38203 | (exit $ac_status); } && | |
6ebeb4c7 | 38204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38206 | (eval $ac_try) 2>&5 | |
38207 | ac_status=$? | |
38208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38209 | (exit $ac_status); }; } && | |
d12aef51 | 38210 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
38211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38212 | (eval $ac_try) 2>&5 | |
38213 | ac_status=$? | |
38214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38215 | (exit $ac_status); }; }; then | |
d12aef51 | 38216 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
38217 | else |
38218 | echo "$as_me: failed program was:" >&5 | |
38219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38220 | ||
a848cd7e | 38221 | |
d12aef51 VZ |
38222 | saveLibs="$LIBS" |
38223 | LIBS="$saveLibs -lossaudio" | |
38224 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
38225 | /* confdefs.h. */ |
38226 | _ACEOF | |
38227 | cat confdefs.h >>conftest.$ac_ext | |
38228 | cat >>conftest.$ac_ext <<_ACEOF | |
38229 | /* end confdefs.h. */ | |
d12aef51 VZ |
38230 | |
38231 | #include <sys/soundcard.h> | |
38232 | ||
38233 | int | |
38234 | main () | |
38235 | { | |
38236 | ||
38237 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
38238 | ||
38239 | ; | |
38240 | return 0; | |
38241 | } | |
a848cd7e | 38242 | _ACEOF |
d12aef51 VZ |
38243 | rm -f conftest.$ac_objext conftest$ac_exeext |
38244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38245 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
38246 | ac_status=$? |
38247 | grep -v '^ *+' conftest.er1 >conftest.err | |
38248 | rm -f conftest.er1 | |
38249 | cat conftest.err >&5 | |
38250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 VZ |
38251 | (exit $ac_status); } && |
38252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
38253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38254 | (eval $ac_try) 2>&5 | |
38255 | ac_status=$? | |
38256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38257 | (exit $ac_status); }; } && | |
38258 | { ac_try='test -s conftest$ac_exeext' | |
38259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38260 | (eval $ac_try) 2>&5 | |
38261 | ac_status=$? | |
38262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38263 | (exit $ac_status); }; }; then | |
38264 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
38265 | else |
38266 | echo "$as_me: failed program was:" >&5 | |
38267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38268 | ||
a848cd7e | 38269 | |
d12aef51 VZ |
38270 | LIBS="$saveLibs" |
38271 | ac_cv_header_sys_soundcard=no | |
38272 | ||
38273 | ||
a848cd7e | 38274 | fi |
d12aef51 VZ |
38275 | rm -f conftest.err conftest.$ac_objext \ |
38276 | conftest$ac_exeext conftest.$ac_ext | |
38277 | ||
a848cd7e SC |
38278 | |
38279 | fi | |
d12aef51 VZ |
38280 | rm -f conftest.err conftest.$ac_objext \ |
38281 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38282 | |
38283 | fi | |
d12aef51 VZ |
38284 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
38285 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 38286 | |
d12aef51 VZ |
38287 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
38288 | cat >>confdefs.h <<\_ACEOF | |
38289 | #define HAVE_SYS_SOUNDCARD_H 1 | |
38290 | _ACEOF | |
a848cd7e | 38291 | |
d12aef51 VZ |
38292 | else |
38293 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
38294 | fi | |
9c112555 MW |
38295 | fi |
38296 | WITH_PLUGIN_SDL=0 | |
38297 | if test "$wxUSE_SOUND" = "yes"; then | |
38298 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
38299 | if test "$wxUSE_LIBSDL" != "no"; then |
38300 | ||
38301 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
38302 | if test "${with_sdl_prefix+set}" = set; then | |
38303 | withval="$with_sdl_prefix" | |
38304 | sdl_prefix="$withval" | |
38305 | else | |
38306 | sdl_prefix="" | |
38307 | fi; | |
38308 | ||
38309 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
38310 | if test "${with_sdl_exec_prefix+set}" = set; then | |
38311 | withval="$with_sdl_exec_prefix" | |
38312 | sdl_exec_prefix="$withval" | |
38313 | else | |
38314 | sdl_exec_prefix="" | |
38315 | fi; | |
38316 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
38317 | if test "${enable_sdltest+set}" = set; then | |
38318 | enableval="$enable_sdltest" | |
38319 | ||
38320 | else | |
38321 | enable_sdltest=yes | |
38322 | fi; | |
38323 | ||
38324 | if test x$sdl_exec_prefix != x ; then | |
38325 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
38326 | if test x${SDL_CONFIG+set} != xset ; then | |
38327 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
38328 | fi | |
38329 | fi | |
38330 | if test x$sdl_prefix != x ; then | |
38331 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
38332 | if test x${SDL_CONFIG+set} != xset ; then | |
38333 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
38334 | fi | |
38335 | fi | |
38336 | ||
38337 | ||
38338 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
38339 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
38340 | set dummy sdl-config; ac_word=$2 | |
38341 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38343 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
38344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38345 | else | |
38346 | case $SDL_CONFIG in | |
38347 | [\\/]* | ?:[\\/]*) | |
38348 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
38349 | ;; | |
38350 | *) | |
38351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38352 | for as_dir in $PATH | |
38353 | do | |
38354 | IFS=$as_save_IFS | |
38355 | test -z "$as_dir" && as_dir=. | |
38356 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38357 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38358 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38360 | break 2 | |
38361 | fi | |
38362 | done | |
38363 | done | |
38364 | ||
38365 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
38366 | ;; | |
38367 | esac | |
38368 | fi | |
38369 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
38370 | ||
38371 | if test -n "$SDL_CONFIG"; then | |
38372 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
38373 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
38374 | else | |
38375 | echo "$as_me:$LINENO: result: no" >&5 | |
38376 | echo "${ECHO_T}no" >&6 | |
38377 | fi | |
38378 | ||
38379 | min_sdl_version=1.2.0 | |
38380 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
38381 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
38382 | no_sdl="" | |
38383 | if test "$SDL_CONFIG" = "no" ; then | |
38384 | no_sdl=yes | |
38385 | else | |
38386 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
38387 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
38388 | ||
38389 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
38390 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
38391 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
38392 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
38393 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
38394 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
38395 | if test "x$enable_sdltest" = "xyes" ; then | |
38396 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 38397 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
38398 | ac_save_LIBS="$LIBS" |
38399 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 38400 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
38401 | LIBS="$LIBS $SDL_LIBS" |
38402 | rm -f conf.sdltest | |
38403 | if test "$cross_compiling" = yes; then | |
38404 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
38405 | else | |
38406 | cat >conftest.$ac_ext <<_ACEOF | |
38407 | /* confdefs.h. */ | |
38408 | _ACEOF | |
38409 | cat confdefs.h >>conftest.$ac_ext | |
38410 | cat >>conftest.$ac_ext <<_ACEOF | |
38411 | /* end confdefs.h. */ | |
38412 | ||
38413 | #include <stdio.h> | |
38414 | #include <stdlib.h> | |
38415 | #include <string.h> | |
38416 | #include "SDL.h" | |
38417 | ||
38418 | char* | |
38419 | my_strdup (char *str) | |
38420 | { | |
38421 | char *new_str; | |
38422 | ||
38423 | if (str) | |
38424 | { | |
38425 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
38426 | strcpy (new_str, str); | |
38427 | } | |
38428 | else | |
38429 | new_str = NULL; | |
38430 | ||
38431 | return new_str; | |
38432 | } | |
38433 | ||
38434 | int main (int argc, char *argv[]) | |
38435 | { | |
38436 | int major, minor, micro; | |
38437 | char *tmp_version; | |
38438 | ||
38439 | /* This hangs on some systems (?) | |
38440 | system ("touch conf.sdltest"); | |
38441 | */ | |
38442 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
38443 | ||
38444 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
38445 | tmp_version = my_strdup("$min_sdl_version"); | |
38446 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
38447 | printf("%s, bad version string\n", "$min_sdl_version"); | |
38448 | exit(1); | |
38449 | } | |
38450 | ||
38451 | if (($sdl_major_version > major) || | |
38452 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
38453 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
38454 | { | |
38455 | return 0; | |
38456 | } | |
38457 | else | |
38458 | { | |
38459 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
38460 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
38461 | printf("*** best to upgrade to the required version.\n"); | |
38462 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
38463 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
38464 | printf("*** config.cache before re-running configure\n"); | |
38465 | return 1; | |
38466 | } | |
38467 | } | |
38468 | ||
38469 | ||
38470 | _ACEOF | |
38471 | rm -f conftest$ac_exeext | |
38472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38473 | (eval $ac_link) 2>&5 | |
38474 | ac_status=$? | |
38475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38476 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
38477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38478 | (eval $ac_try) 2>&5 | |
38479 | ac_status=$? | |
38480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38481 | (exit $ac_status); }; }; then | |
38482 | : | |
38483 | else | |
38484 | echo "$as_me: program exited with status $ac_status" >&5 | |
38485 | echo "$as_me: failed program was:" >&5 | |
38486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38487 | ||
38488 | ( exit $ac_status ) | |
38489 | no_sdl=yes | |
38490 | fi | |
ac1cb8d3 | 38491 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38492 | fi |
38493 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 38494 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
38495 | LIBS="$ac_save_LIBS" |
38496 | fi | |
38497 | fi | |
38498 | if test "x$no_sdl" = x ; then | |
38499 | echo "$as_me:$LINENO: result: yes" >&5 | |
38500 | echo "${ECHO_T}yes" >&6 | |
38501 | ||
38502 | EXTRALIBS_SDL="$SDL_LIBS" | |
38503 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
38504 | cat >>confdefs.h <<\_ACEOF | |
38505 | #define wxUSE_LIBSDL 1 | |
38506 | _ACEOF | |
38507 | ||
38508 | ||
38509 | else | |
38510 | echo "$as_me:$LINENO: result: no" >&5 | |
38511 | echo "${ECHO_T}no" >&6 | |
38512 | if test "$SDL_CONFIG" = "no" ; then | |
38513 | echo "*** The sdl-config script installed by SDL could not be found" | |
38514 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
38515 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
38516 | echo "*** full path to sdl-config." | |
38517 | else | |
38518 | if test -f conf.sdltest ; then | |
38519 | : | |
38520 | else | |
38521 | echo "*** Could not run SDL test program, checking why..." | |
38522 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 38523 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
38524 | LIBS="$LIBS $SDL_LIBS" |
38525 | cat >conftest.$ac_ext <<_ACEOF | |
38526 | /* confdefs.h. */ | |
38527 | _ACEOF | |
38528 | cat confdefs.h >>conftest.$ac_ext | |
38529 | cat >>conftest.$ac_ext <<_ACEOF | |
38530 | /* end confdefs.h. */ | |
38531 | ||
38532 | #include <stdio.h> | |
38533 | #include "SDL.h" | |
38534 | ||
38535 | int main(int argc, char *argv[]) | |
38536 | { return 0; } | |
38537 | #undef main | |
38538 | #define main K_and_R_C_main | |
38539 | ||
38540 | int | |
38541 | main () | |
38542 | { | |
38543 | return 0; | |
38544 | ; | |
38545 | return 0; | |
38546 | } | |
38547 | _ACEOF | |
38548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38550 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38551 | ac_status=$? |
ac1cb8d3 VS |
38552 | grep -v '^ *+' conftest.er1 >conftest.err |
38553 | rm -f conftest.er1 | |
38554 | cat conftest.err >&5 | |
a848cd7e SC |
38555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38556 | (exit $ac_status); } && | |
6ebeb4c7 | 38557 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38559 | (eval $ac_try) 2>&5 | |
38560 | ac_status=$? | |
38561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38562 | (exit $ac_status); }; } && | |
38563 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38565 | (eval $ac_try) 2>&5 | |
38566 | ac_status=$? | |
38567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38568 | (exit $ac_status); }; }; then | |
38569 | echo "*** The test program compiled, but did not run. This usually means" | |
38570 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
38571 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
38572 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
38573 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
38574 | echo "*** is required on your system" | |
38575 | echo "***" | |
38576 | echo "*** If you have an old version installed, it is best to remove it, although" | |
38577 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
38578 | else | |
38579 | echo "$as_me: failed program was:" >&5 | |
38580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38581 | ||
38582 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
38583 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
38584 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
38585 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
38586 | fi | |
ac1cb8d3 VS |
38587 | rm -f conftest.err conftest.$ac_objext \ |
38588 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 38589 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 38590 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
38591 | LIBS="$ac_save_LIBS" |
38592 | fi | |
38593 | fi | |
38594 | SDL_CFLAGS="" | |
38595 | SDL_LIBS="" | |
38596 | wxUSE_LIBSDL="no" | |
38597 | fi | |
38598 | ||
38599 | ||
38600 | rm -f conf.sdltest | |
38601 | ||
38602 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
38603 | WITH_PLUGIN_SDL=1 | |
38604 | fi | |
38605 | fi | |
38606 | fi | |
38607 | ||
38608 | cat >>confdefs.h <<\_ACEOF | |
38609 | #define wxUSE_SOUND 1 | |
38610 | _ACEOF | |
38611 | ||
38612 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
38613 | fi | |
38614 | ||
d1c38808 VZ |
38615 | if test "$WXGTK20" = 1; then |
38616 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
38617 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
38618 | ||
38619 | ||
38620 | succeeded=no | |
38621 | ||
38622 | if test -z "$PKG_CONFIG"; then | |
38623 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
38624 | set dummy pkg-config; ac_word=$2 | |
38625 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38627 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
38628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38629 | else | |
38630 | case $PKG_CONFIG in | |
38631 | [\\/]* | ?:[\\/]*) | |
38632 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
38633 | ;; | |
38634 | *) | |
38635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38636 | for as_dir in $PATH | |
38637 | do | |
38638 | IFS=$as_save_IFS | |
38639 | test -z "$as_dir" && as_dir=. | |
38640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38642 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38644 | break 2 | |
38645 | fi | |
38646 | done | |
38647 | done | |
38648 | ||
38649 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
38650 | ;; | |
38651 | esac | |
38652 | fi | |
38653 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
38654 | ||
38655 | if test -n "$PKG_CONFIG"; then | |
38656 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
38657 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
38658 | else | |
38659 | echo "$as_me:$LINENO: result: no" >&5 | |
38660 | echo "${ECHO_T}no" >&6 | |
38661 | fi | |
38662 | ||
38663 | fi | |
38664 | ||
38665 | if test "$PKG_CONFIG" = "no" ; then | |
38666 | echo "*** The pkg-config script could not be found. Make sure it is" | |
38667 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
38668 | echo "*** to the full path to pkg-config." | |
38669 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
38670 | else | |
38671 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
38672 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
38673 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
38674 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 38675 | |
ffa762ff | 38676 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
38677 | echo "$as_me:$LINENO: result: yes" >&5 |
38678 | echo "${ECHO_T}yes" >&6 | |
38679 | succeeded=yes | |
38680 | ||
38681 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
38682 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 38683 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38684 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
38685 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
38686 | ||
38687 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
38688 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 38689 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38690 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
38691 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
38692 | else | |
38693 | LIBGNOMEPRINTUI_CFLAGS="" | |
38694 | LIBGNOMEPRINTUI_LIBS="" | |
38695 | ## If we have a custom action on failure, don't print errors, but | |
38696 | ## do set a variable so people can do so. | |
ffa762ff | 38697 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38698 | |
38699 | fi | |
38700 | ||
38701 | ||
38702 | ||
38703 | else | |
38704 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
38705 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
38706 | fi | |
38707 | fi | |
38708 | ||
38709 | if test $succeeded = yes; then | |
38710 | ||
d1c38808 VZ |
38711 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
38712 | cat >>confdefs.h <<\_ACEOF | |
38713 | #define wxUSE_LIBGNOMEPRINT 1 | |
38714 | _ACEOF | |
38715 | ||
38716 | ||
38717 | else | |
38718 | ||
38719 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
38720 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
38721 | wxUSE_LIBGNOMEPRINT="no" | |
38722 | ||
38723 | ||
38724 | fi | |
38725 | ||
38726 | fi | |
38727 | fi | |
38728 | fi | |
38729 | ||
38730 | ||
a848cd7e SC |
38731 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
38732 | cat >>confdefs.h <<\_ACEOF | |
38733 | #define wxUSE_CMDLINE_PARSER 1 | |
38734 | _ACEOF | |
38735 | ||
38736 | fi | |
38737 | ||
38738 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
38739 | cat >>confdefs.h <<\_ACEOF | |
38740 | #define wxUSE_STOPWATCH 1 | |
38741 | _ACEOF | |
38742 | ||
38743 | fi | |
38744 | ||
38745 | if test "$wxUSE_DATETIME" = "yes"; then | |
38746 | cat >>confdefs.h <<\_ACEOF | |
38747 | #define wxUSE_DATETIME 1 | |
38748 | _ACEOF | |
38749 | ||
38750 | fi | |
38751 | ||
38752 | if test "$wxUSE_FILE" = "yes"; then | |
38753 | cat >>confdefs.h <<\_ACEOF | |
38754 | #define wxUSE_FILE 1 | |
38755 | _ACEOF | |
38756 | ||
38757 | fi | |
38758 | ||
38759 | if test "$wxUSE_FFILE" = "yes"; then | |
38760 | cat >>confdefs.h <<\_ACEOF | |
38761 | #define wxUSE_FFILE 1 | |
38762 | _ACEOF | |
38763 | ||
38764 | fi | |
38765 | ||
38766 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
38767 | cat >>confdefs.h <<\_ACEOF | |
38768 | #define wxUSE_FILESYSTEM 1 | |
38769 | _ACEOF | |
38770 | ||
38771 | fi | |
38772 | ||
38773 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
38774 | cat >>confdefs.h <<\_ACEOF | |
38775 | #define wxUSE_FS_ZIP 1 | |
38776 | _ACEOF | |
38777 | ||
38778 | fi | |
38779 | ||
9e8e867f | 38780 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 38781 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 38782 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
38783 | _ACEOF |
38784 | ||
38785 | fi | |
38786 | ||
38787 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 38788 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
38789 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
38790 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
38791 | elif test "$wxUSE_ZLIB" = "no"; then | |
38792 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
38793 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
38794 | else | |
38795 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38796 | #define wxUSE_ZIPSTREAM 1 |
38797 | _ACEOF | |
38798 | ||
81f90336 | 38799 | fi |
a848cd7e SC |
38800 | fi |
38801 | ||
a848cd7e | 38802 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
38803 | if test "$USE_UNIX" != 1; then |
38804 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
38805 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
38806 | wxUSE_ON_FATAL_EXCEPTION=no | |
38807 | else | |
38808 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38809 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
38810 | _ACEOF | |
38811 | ||
18228ab4 | 38812 | fi |
a848cd7e SC |
38813 | fi |
38814 | ||
eaff0f0d VZ |
38815 | if test "$wxUSE_STACKWALKER" = "yes"; then |
38816 | cat >>confdefs.h <<\_ACEOF | |
38817 | #define wxUSE_STACKWALKER 1 | |
38818 | _ACEOF | |
38819 | ||
38820 | fi | |
38821 | ||
36b6448c | 38822 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
38823 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
38824 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
38825 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
38826 | wxUSE_DEBUGREPORT=no |
38827 | else | |
38828 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
38829 | #define wxUSE_DEBUGREPORT 1 |
38830 | _ACEOF | |
38831 | ||
21dfc162 MW |
38832 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
38833 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
38834 | fi | |
dfe0c803 | 38835 | fi |
36b6448c VZ |
38836 | fi |
38837 | ||
a848cd7e SC |
38838 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
38839 | cat >>confdefs.h <<\_ACEOF | |
38840 | #define wxUSE_SNGLINST_CHECKER 1 | |
38841 | _ACEOF | |
38842 | ||
38843 | fi | |
38844 | ||
38845 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
38846 | cat >>confdefs.h <<\_ACEOF | |
38847 | #define wxUSE_BUSYINFO 1 | |
38848 | _ACEOF | |
38849 | ||
38850 | fi | |
38851 | ||
38852 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
38853 | cat >>confdefs.h <<\_ACEOF | |
38854 | #define wxUSE_STD_IOSTREAM 1 | |
38855 | _ACEOF | |
38856 | ||
38857 | fi | |
38858 | ||
59746b65 MW |
38859 | if test "$wxUSE_STD_STRING" = "yes"; then |
38860 | cat >>confdefs.h <<\_ACEOF | |
38861 | #define wxUSE_STD_STRING 1 | |
38862 | _ACEOF | |
38863 | ||
38864 | fi | |
38865 | ||
07158944 VZ |
38866 | if test "$wxUSE_STDPATHS" = "yes"; then |
38867 | cat >>confdefs.h <<\_ACEOF | |
38868 | #define wxUSE_STDPATHS 1 | |
38869 | _ACEOF | |
38870 | ||
38871 | fi | |
38872 | ||
a848cd7e SC |
38873 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
38874 | cat >>confdefs.h <<\_ACEOF | |
38875 | #define wxUSE_TEXTBUFFER 1 | |
38876 | _ACEOF | |
38877 | ||
38878 | fi | |
38879 | ||
38880 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
38881 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
38882 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
38883 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
38884 | else | |
38885 | cat >>confdefs.h <<\_ACEOF | |
38886 | #define wxUSE_TEXTFILE 1 | |
38887 | _ACEOF | |
38888 | ||
38889 | fi | |
38890 | fi | |
38891 | ||
38892 | if test "$wxUSE_CONFIG" = "yes" ; then | |
38893 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
38894 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
38895 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
38896 | else | |
38897 | cat >>confdefs.h <<\_ACEOF | |
38898 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
38899 | _ACEOF |
38900 | ||
38901 | cat >>confdefs.h <<\_ACEOF | |
38902 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
38903 | _ACEOF |
38904 | ||
38905 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
38906 | fi | |
38907 | fi | |
38908 | ||
38909 | if test "$wxUSE_INTL" = "yes" ; then | |
38910 | if test "$wxUSE_FILE" != "yes"; then | |
38911 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
38912 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
38913 | else | |
38914 | cat >>confdefs.h <<\_ACEOF | |
38915 | #define wxUSE_INTL 1 | |
38916 | _ACEOF | |
38917 | ||
38918 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
38919 | GUIDIST="$GUIDIST INTL_DIST" | |
38920 | fi | |
38921 | fi | |
38922 | ||
38923 | if test "$wxUSE_LOG" = "yes"; then | |
38924 | cat >>confdefs.h <<\_ACEOF | |
38925 | #define wxUSE_LOG 1 | |
38926 | _ACEOF | |
38927 | ||
38928 | ||
38929 | if test "$wxUSE_LOGGUI" = "yes"; then | |
38930 | cat >>confdefs.h <<\_ACEOF | |
38931 | #define wxUSE_LOGGUI 1 | |
38932 | _ACEOF | |
38933 | ||
38934 | fi | |
38935 | ||
38936 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
38937 | cat >>confdefs.h <<\_ACEOF | |
38938 | #define wxUSE_LOGWINDOW 1 | |
38939 | _ACEOF | |
38940 | ||
38941 | fi | |
38942 | ||
38943 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
38944 | cat >>confdefs.h <<\_ACEOF | |
38945 | #define wxUSE_LOG_DIALOG 1 | |
38946 | _ACEOF | |
38947 | ||
38948 | fi | |
0b78747f MW |
38949 | |
38950 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
38951 | fi |
38952 | ||
38953 | if test "$wxUSE_LONGLONG" = "yes"; then | |
38954 | cat >>confdefs.h <<\_ACEOF | |
38955 | #define wxUSE_LONGLONG 1 | |
38956 | _ACEOF | |
38957 | ||
38958 | fi | |
38959 | ||
38960 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
38961 | cat >>confdefs.h <<\_ACEOF | |
38962 | #define wxUSE_GEOMETRY 1 | |
38963 | _ACEOF | |
38964 | ||
38965 | fi | |
38966 | ||
a848cd7e SC |
38967 | if test "$wxUSE_STREAMS" = "yes" ; then |
38968 | cat >>confdefs.h <<\_ACEOF | |
38969 | #define wxUSE_STREAMS 1 | |
38970 | _ACEOF | |
38971 | ||
38972 | fi | |
38973 | ||
38974 | ||
38975 | if test "$wxUSE_DATETIME" = "yes"; then | |
38976 | ||
38977 | for ac_func in strptime | |
38978 | do | |
38979 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38980 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38981 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38982 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38984 | else | |
38985 | cat >conftest.$ac_ext <<_ACEOF | |
38986 | /* confdefs.h. */ | |
38987 | _ACEOF | |
38988 | cat confdefs.h >>conftest.$ac_ext | |
38989 | cat >>conftest.$ac_ext <<_ACEOF | |
38990 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38991 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38992 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38993 | #define $ac_func innocuous_$ac_func | |
38994 | ||
a848cd7e SC |
38995 | /* System header to define __stub macros and hopefully few prototypes, |
38996 | which can conflict with char $ac_func (); below. | |
38997 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38998 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38999 | |
a848cd7e SC |
39000 | #ifdef __STDC__ |
39001 | # include <limits.h> | |
39002 | #else | |
39003 | # include <assert.h> | |
39004 | #endif | |
ac1cb8d3 VS |
39005 | |
39006 | #undef $ac_func | |
39007 | ||
a848cd7e SC |
39008 | /* Override any gcc2 internal prototype to avoid an error. */ |
39009 | #ifdef __cplusplus | |
39010 | extern "C" | |
39011 | { | |
39012 | #endif | |
39013 | /* We use char because int might match the return type of a gcc2 | |
39014 | builtin and then its argument prototype would still apply. */ | |
39015 | char $ac_func (); | |
39016 | /* The GNU C library defines this for functions which it implements | |
39017 | to always fail with ENOSYS. Some functions are actually named | |
39018 | something starting with __ and the normal name is an alias. */ | |
39019 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39020 | choke me | |
39021 | #else | |
39022 | char (*f) () = $ac_func; | |
39023 | #endif | |
39024 | #ifdef __cplusplus | |
39025 | } | |
39026 | #endif | |
39027 | ||
39028 | int | |
39029 | main () | |
39030 | { | |
39031 | return f != $ac_func; | |
39032 | ; | |
39033 | return 0; | |
39034 | } | |
39035 | _ACEOF | |
39036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39038 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39039 | ac_status=$? |
ac1cb8d3 VS |
39040 | grep -v '^ *+' conftest.er1 >conftest.err |
39041 | rm -f conftest.er1 | |
39042 | cat conftest.err >&5 | |
a848cd7e SC |
39043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39044 | (exit $ac_status); } && | |
6ebeb4c7 | 39045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39047 | (eval $ac_try) 2>&5 | |
39048 | ac_status=$? | |
39049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39050 | (exit $ac_status); }; } && | |
39051 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39053 | (eval $ac_try) 2>&5 | |
39054 | ac_status=$? | |
39055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39056 | (exit $ac_status); }; }; then | |
39057 | eval "$as_ac_var=yes" | |
39058 | else | |
39059 | echo "$as_me: failed program was:" >&5 | |
39060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39061 | ||
39062 | eval "$as_ac_var=no" | |
39063 | fi | |
ac1cb8d3 VS |
39064 | rm -f conftest.err conftest.$ac_objext \ |
39065 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39066 | fi |
39067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39068 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39069 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39070 | cat >>confdefs.h <<_ACEOF | |
39071 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39072 | _ACEOF | |
39073 | ||
39074 | fi | |
39075 | done | |
39076 | ||
f536f005 VZ |
39077 | if test "$ac_cv_func_strptime" = "yes"; then |
39078 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
39079 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
39080 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
39081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39082 | else | |
39083 | ||
39084 | ||
39085 | ||
39086 | ac_ext=cc | |
39087 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39088 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39089 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39090 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39091 | ||
39092 | cat >conftest.$ac_ext <<_ACEOF | |
39093 | /* confdefs.h. */ | |
39094 | _ACEOF | |
39095 | cat confdefs.h >>conftest.$ac_ext | |
39096 | cat >>conftest.$ac_ext <<_ACEOF | |
39097 | /* end confdefs.h. */ | |
39098 | ||
39099 | #include <time.h> | |
39100 | ||
39101 | int | |
39102 | main () | |
39103 | { | |
39104 | ||
39105 | struct tm t; | |
39106 | strptime("foo", "bar", &t); | |
39107 | ||
39108 | ; | |
39109 | return 0; | |
39110 | } | |
39111 | _ACEOF | |
39112 | rm -f conftest.$ac_objext | |
39113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39114 | (eval $ac_compile) 2>conftest.er1 | |
39115 | ac_status=$? | |
39116 | grep -v '^ *+' conftest.er1 >conftest.err | |
39117 | rm -f conftest.er1 | |
39118 | cat conftest.err >&5 | |
39119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39120 | (exit $ac_status); } && | |
39121 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
39122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39123 | (eval $ac_try) 2>&5 | |
39124 | ac_status=$? | |
39125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39126 | (exit $ac_status); }; } && | |
39127 | { ac_try='test -s conftest.$ac_objext' | |
39128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39129 | (eval $ac_try) 2>&5 | |
39130 | ac_status=$? | |
39131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39132 | (exit $ac_status); }; }; then | |
39133 | wx_cv_func_strptime_decl=yes | |
39134 | else | |
39135 | echo "$as_me: failed program was:" >&5 | |
39136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39137 | ||
39138 | wx_cv_func_strptime_decl=no | |
39139 | ||
39140 | fi | |
39141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39142 | ac_ext=c | |
39143 | ac_cpp='$CPP $CPPFLAGS' | |
39144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39147 | ||
39148 | ||
39149 | ||
39150 | fi | |
39151 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
39152 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
39153 | fi | |
39154 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
39155 | cat >>confdefs.h <<\_ACEOF | |
39156 | #define HAVE_STRPTIME_DECL 1 | |
39157 | _ACEOF | |
39158 | ||
39159 | fi | |
a848cd7e SC |
39160 | |
39161 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
39162 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
39163 | if test "${wx_cv_var_timezone+set}" = set; then | |
39164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39165 | else | |
39166 | ||
39167 | cat >conftest.$ac_ext <<_ACEOF | |
39168 | /* confdefs.h. */ | |
39169 | _ACEOF | |
39170 | cat confdefs.h >>conftest.$ac_ext | |
39171 | cat >>conftest.$ac_ext <<_ACEOF | |
39172 | /* end confdefs.h. */ | |
39173 | ||
39174 | #include <time.h> | |
39175 | ||
39176 | int | |
39177 | main () | |
39178 | { | |
39179 | ||
39180 | int tz; | |
39181 | tz = timezone; | |
39182 | ||
39183 | ; | |
39184 | return 0; | |
39185 | } | |
39186 | _ACEOF | |
39187 | rm -f conftest.$ac_objext | |
39188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39189 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39190 | ac_status=$? |
ac1cb8d3 VS |
39191 | grep -v '^ *+' conftest.er1 >conftest.err |
39192 | rm -f conftest.er1 | |
39193 | cat conftest.err >&5 | |
a848cd7e SC |
39194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39195 | (exit $ac_status); } && | |
6ebeb4c7 | 39196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39198 | (eval $ac_try) 2>&5 | |
39199 | ac_status=$? | |
39200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39201 | (exit $ac_status); }; } && | |
39202 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39204 | (eval $ac_try) 2>&5 | |
39205 | ac_status=$? | |
39206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39207 | (exit $ac_status); }; }; then | |
39208 | ||
39209 | wx_cv_var_timezone=timezone | |
39210 | ||
39211 | else | |
39212 | echo "$as_me: failed program was:" >&5 | |
39213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39214 | ||
39215 | ||
39216 | cat >conftest.$ac_ext <<_ACEOF | |
39217 | /* confdefs.h. */ | |
39218 | _ACEOF | |
39219 | cat confdefs.h >>conftest.$ac_ext | |
39220 | cat >>conftest.$ac_ext <<_ACEOF | |
39221 | /* end confdefs.h. */ | |
39222 | ||
39223 | #include <time.h> | |
39224 | ||
39225 | int | |
39226 | main () | |
39227 | { | |
39228 | ||
39229 | int tz; | |
39230 | tz = _timezone; | |
39231 | ||
39232 | ; | |
39233 | return 0; | |
39234 | } | |
39235 | _ACEOF | |
39236 | rm -f conftest.$ac_objext | |
39237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39238 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39239 | ac_status=$? |
ac1cb8d3 VS |
39240 | grep -v '^ *+' conftest.er1 >conftest.err |
39241 | rm -f conftest.er1 | |
39242 | cat conftest.err >&5 | |
a848cd7e SC |
39243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39244 | (exit $ac_status); } && | |
6ebeb4c7 | 39245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39247 | (eval $ac_try) 2>&5 | |
39248 | ac_status=$? | |
39249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39250 | (exit $ac_status); }; } && | |
39251 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39253 | (eval $ac_try) 2>&5 | |
39254 | ac_status=$? | |
39255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39256 | (exit $ac_status); }; }; then | |
39257 | ||
39258 | wx_cv_var_timezone=_timezone | |
39259 | ||
39260 | else | |
39261 | echo "$as_me: failed program was:" >&5 | |
39262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39263 | ||
39264 | ||
39265 | cat >conftest.$ac_ext <<_ACEOF | |
39266 | /* confdefs.h. */ | |
39267 | _ACEOF | |
39268 | cat confdefs.h >>conftest.$ac_ext | |
39269 | cat >>conftest.$ac_ext <<_ACEOF | |
39270 | /* end confdefs.h. */ | |
39271 | ||
39272 | #include <time.h> | |
39273 | ||
39274 | int | |
39275 | main () | |
39276 | { | |
39277 | ||
39278 | int tz; | |
39279 | tz = __timezone; | |
39280 | ||
39281 | ; | |
39282 | return 0; | |
39283 | } | |
39284 | _ACEOF | |
39285 | rm -f conftest.$ac_objext | |
39286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39287 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39288 | ac_status=$? |
ac1cb8d3 VS |
39289 | grep -v '^ *+' conftest.er1 >conftest.err |
39290 | rm -f conftest.er1 | |
39291 | cat conftest.err >&5 | |
a848cd7e SC |
39292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39293 | (exit $ac_status); } && | |
6ebeb4c7 | 39294 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39296 | (eval $ac_try) 2>&5 | |
39297 | ac_status=$? | |
39298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39299 | (exit $ac_status); }; } && | |
39300 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39302 | (eval $ac_try) 2>&5 | |
39303 | ac_status=$? | |
39304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39305 | (exit $ac_status); }; }; then | |
39306 | ||
39307 | wx_cv_var_timezone=__timezone | |
39308 | ||
39309 | else | |
39310 | echo "$as_me: failed program was:" >&5 | |
39311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39312 | ||
39313 | ||
39314 | if test "$USE_DOS" = 0 ; then | |
39315 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
39316 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
39317 | fi | |
39318 | ||
39319 | ||
39320 | fi | |
ac1cb8d3 | 39321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39322 | |
39323 | ||
39324 | fi | |
ac1cb8d3 | 39325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39326 | |
39327 | ||
39328 | fi | |
ac1cb8d3 | 39329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39330 | |
39331 | ||
39332 | fi | |
39333 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
39334 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
39335 | ||
39336 | if test "x$wx_cv_var_timezone" != x ; then | |
39337 | cat >>confdefs.h <<_ACEOF | |
39338 | #define WX_TIMEZONE $wx_cv_var_timezone | |
39339 | _ACEOF | |
39340 | ||
39341 | fi | |
39342 | ||
39343 | ||
39344 | for ac_func in localtime | |
39345 | do | |
39346 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39347 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39348 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39349 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39351 | else | |
39352 | cat >conftest.$ac_ext <<_ACEOF | |
39353 | /* confdefs.h. */ | |
39354 | _ACEOF | |
39355 | cat confdefs.h >>conftest.$ac_ext | |
39356 | cat >>conftest.$ac_ext <<_ACEOF | |
39357 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39358 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39359 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39360 | #define $ac_func innocuous_$ac_func | |
39361 | ||
a848cd7e SC |
39362 | /* System header to define __stub macros and hopefully few prototypes, |
39363 | which can conflict with char $ac_func (); below. | |
39364 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39365 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39366 | |
a848cd7e SC |
39367 | #ifdef __STDC__ |
39368 | # include <limits.h> | |
39369 | #else | |
39370 | # include <assert.h> | |
39371 | #endif | |
ac1cb8d3 VS |
39372 | |
39373 | #undef $ac_func | |
39374 | ||
a848cd7e SC |
39375 | /* Override any gcc2 internal prototype to avoid an error. */ |
39376 | #ifdef __cplusplus | |
39377 | extern "C" | |
39378 | { | |
39379 | #endif | |
39380 | /* We use char because int might match the return type of a gcc2 | |
39381 | builtin and then its argument prototype would still apply. */ | |
39382 | char $ac_func (); | |
39383 | /* The GNU C library defines this for functions which it implements | |
39384 | to always fail with ENOSYS. Some functions are actually named | |
39385 | something starting with __ and the normal name is an alias. */ | |
39386 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39387 | choke me | |
39388 | #else | |
39389 | char (*f) () = $ac_func; | |
39390 | #endif | |
39391 | #ifdef __cplusplus | |
39392 | } | |
39393 | #endif | |
39394 | ||
39395 | int | |
39396 | main () | |
39397 | { | |
39398 | return f != $ac_func; | |
39399 | ; | |
39400 | return 0; | |
39401 | } | |
39402 | _ACEOF | |
39403 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39405 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39406 | ac_status=$? |
ac1cb8d3 VS |
39407 | grep -v '^ *+' conftest.er1 >conftest.err |
39408 | rm -f conftest.er1 | |
39409 | cat conftest.err >&5 | |
a848cd7e SC |
39410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39411 | (exit $ac_status); } && | |
6ebeb4c7 | 39412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39414 | (eval $ac_try) 2>&5 | |
39415 | ac_status=$? | |
39416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39417 | (exit $ac_status); }; } && | |
39418 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39420 | (eval $ac_try) 2>&5 | |
39421 | ac_status=$? | |
39422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39423 | (exit $ac_status); }; }; then | |
39424 | eval "$as_ac_var=yes" | |
39425 | else | |
39426 | echo "$as_me: failed program was:" >&5 | |
39427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39428 | ||
39429 | eval "$as_ac_var=no" | |
39430 | fi | |
ac1cb8d3 VS |
39431 | rm -f conftest.err conftest.$ac_objext \ |
39432 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39433 | fi |
39434 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39435 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39436 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39437 | cat >>confdefs.h <<_ACEOF | |
39438 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39439 | _ACEOF | |
39440 | ||
39441 | fi | |
39442 | done | |
39443 | ||
39444 | ||
39445 | if test "$ac_cv_func_localtime" = "yes"; then | |
39446 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
39447 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
39448 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
39449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39450 | else | |
39451 | ||
39452 | cat >conftest.$ac_ext <<_ACEOF | |
39453 | /* confdefs.h. */ | |
39454 | _ACEOF | |
39455 | cat confdefs.h >>conftest.$ac_ext | |
39456 | cat >>conftest.$ac_ext <<_ACEOF | |
39457 | /* end confdefs.h. */ | |
39458 | ||
39459 | #include <time.h> | |
39460 | ||
39461 | int | |
39462 | main () | |
39463 | { | |
39464 | ||
39465 | struct tm tm; | |
39466 | tm.tm_gmtoff++; | |
39467 | ||
39468 | ; | |
39469 | return 0; | |
39470 | } | |
39471 | _ACEOF | |
39472 | rm -f conftest.$ac_objext | |
39473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39474 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39475 | ac_status=$? |
ac1cb8d3 VS |
39476 | grep -v '^ *+' conftest.er1 >conftest.err |
39477 | rm -f conftest.er1 | |
39478 | cat conftest.err >&5 | |
a848cd7e SC |
39479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39480 | (exit $ac_status); } && | |
6ebeb4c7 | 39481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39483 | (eval $ac_try) 2>&5 | |
39484 | ac_status=$? | |
39485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39486 | (exit $ac_status); }; } && | |
39487 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39489 | (eval $ac_try) 2>&5 | |
39490 | ac_status=$? | |
39491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39492 | (exit $ac_status); }; }; then | |
39493 | ||
39494 | wx_cv_struct_tm_has_gmtoff=yes | |
39495 | ||
39496 | else | |
39497 | echo "$as_me: failed program was:" >&5 | |
39498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39499 | ||
39500 | wx_cv_struct_tm_has_gmtoff=no | |
39501 | ||
39502 | fi | |
ac1cb8d3 | 39503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39504 | |
39505 | fi | |
39506 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
39507 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
39508 | fi | |
39509 | ||
39510 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
39511 | cat >>confdefs.h <<\_ACEOF | |
39512 | #define WX_GMTOFF_IN_TM 1 | |
39513 | _ACEOF | |
39514 | ||
39515 | fi | |
39516 | ||
39517 | ||
39518 | ||
39519 | for ac_func in gettimeofday ftime | |
39520 | do | |
39521 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39522 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39523 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39524 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39526 | else | |
39527 | cat >conftest.$ac_ext <<_ACEOF | |
39528 | /* confdefs.h. */ | |
39529 | _ACEOF | |
39530 | cat confdefs.h >>conftest.$ac_ext | |
39531 | cat >>conftest.$ac_ext <<_ACEOF | |
39532 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39533 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39534 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39535 | #define $ac_func innocuous_$ac_func | |
39536 | ||
a848cd7e SC |
39537 | /* System header to define __stub macros and hopefully few prototypes, |
39538 | which can conflict with char $ac_func (); below. | |
39539 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39540 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39541 | |
a848cd7e SC |
39542 | #ifdef __STDC__ |
39543 | # include <limits.h> | |
39544 | #else | |
39545 | # include <assert.h> | |
39546 | #endif | |
ac1cb8d3 VS |
39547 | |
39548 | #undef $ac_func | |
39549 | ||
a848cd7e SC |
39550 | /* Override any gcc2 internal prototype to avoid an error. */ |
39551 | #ifdef __cplusplus | |
39552 | extern "C" | |
39553 | { | |
39554 | #endif | |
39555 | /* We use char because int might match the return type of a gcc2 | |
39556 | builtin and then its argument prototype would still apply. */ | |
39557 | char $ac_func (); | |
39558 | /* The GNU C library defines this for functions which it implements | |
39559 | to always fail with ENOSYS. Some functions are actually named | |
39560 | something starting with __ and the normal name is an alias. */ | |
39561 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39562 | choke me | |
39563 | #else | |
39564 | char (*f) () = $ac_func; | |
39565 | #endif | |
39566 | #ifdef __cplusplus | |
39567 | } | |
39568 | #endif | |
39569 | ||
39570 | int | |
39571 | main () | |
39572 | { | |
39573 | return f != $ac_func; | |
39574 | ; | |
39575 | return 0; | |
39576 | } | |
39577 | _ACEOF | |
39578 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39580 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39581 | ac_status=$? |
ac1cb8d3 VS |
39582 | grep -v '^ *+' conftest.er1 >conftest.err |
39583 | rm -f conftest.er1 | |
39584 | cat conftest.err >&5 | |
a848cd7e SC |
39585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39586 | (exit $ac_status); } && | |
6ebeb4c7 | 39587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39589 | (eval $ac_try) 2>&5 | |
39590 | ac_status=$? | |
39591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39592 | (exit $ac_status); }; } && | |
39593 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39595 | (eval $ac_try) 2>&5 | |
39596 | ac_status=$? | |
39597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39598 | (exit $ac_status); }; }; then | |
39599 | eval "$as_ac_var=yes" | |
39600 | else | |
39601 | echo "$as_me: failed program was:" >&5 | |
39602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39603 | ||
39604 | eval "$as_ac_var=no" | |
39605 | fi | |
ac1cb8d3 VS |
39606 | rm -f conftest.err conftest.$ac_objext \ |
39607 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39608 | fi |
39609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39610 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39611 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39612 | cat >>confdefs.h <<_ACEOF | |
39613 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39614 | _ACEOF | |
39615 | break | |
39616 | fi | |
39617 | done | |
39618 | ||
39619 | ||
39620 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
39621 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
39622 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
39623 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
39624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39625 | else | |
39626 | ||
39627 | ||
39628 | ||
39629 | ac_ext=cc | |
39630 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39631 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39632 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39633 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39634 | ||
39635 | ||
39636 | cat >conftest.$ac_ext <<_ACEOF | |
39637 | /* confdefs.h. */ | |
39638 | _ACEOF | |
39639 | cat confdefs.h >>conftest.$ac_ext | |
39640 | cat >>conftest.$ac_ext <<_ACEOF | |
39641 | /* end confdefs.h. */ | |
39642 | ||
39643 | #include <sys/time.h> | |
39644 | #include <unistd.h> | |
39645 | ||
39646 | int | |
39647 | main () | |
39648 | { | |
39649 | ||
39650 | struct timeval tv; | |
39651 | gettimeofday(&tv, NULL); | |
39652 | ||
39653 | ; | |
39654 | return 0; | |
39655 | } | |
39656 | _ACEOF | |
39657 | rm -f conftest.$ac_objext | |
39658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39659 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39660 | ac_status=$? |
ac1cb8d3 VS |
39661 | grep -v '^ *+' conftest.er1 >conftest.err |
39662 | rm -f conftest.er1 | |
39663 | cat conftest.err >&5 | |
a848cd7e SC |
39664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39665 | (exit $ac_status); } && | |
6ebeb4c7 | 39666 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39668 | (eval $ac_try) 2>&5 | |
39669 | ac_status=$? | |
39670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39671 | (exit $ac_status); }; } && | |
39672 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39674 | (eval $ac_try) 2>&5 | |
39675 | ac_status=$? | |
39676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39677 | (exit $ac_status); }; }; then | |
39678 | wx_cv_func_gettimeofday_has_2_args=yes | |
39679 | else | |
39680 | echo "$as_me: failed program was:" >&5 | |
39681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39682 | ||
39683 | cat >conftest.$ac_ext <<_ACEOF | |
39684 | /* confdefs.h. */ | |
39685 | _ACEOF | |
39686 | cat confdefs.h >>conftest.$ac_ext | |
39687 | cat >>conftest.$ac_ext <<_ACEOF | |
39688 | /* end confdefs.h. */ | |
39689 | ||
39690 | #include <sys/time.h> | |
39691 | #include <unistd.h> | |
39692 | ||
39693 | int | |
39694 | main () | |
39695 | { | |
39696 | ||
39697 | struct timeval tv; | |
39698 | gettimeofday(&tv); | |
39699 | ||
39700 | ; | |
39701 | return 0; | |
39702 | } | |
39703 | _ACEOF | |
39704 | rm -f conftest.$ac_objext | |
39705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39706 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39707 | ac_status=$? |
ac1cb8d3 VS |
39708 | grep -v '^ *+' conftest.er1 >conftest.err |
39709 | rm -f conftest.er1 | |
39710 | cat conftest.err >&5 | |
a848cd7e SC |
39711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39712 | (exit $ac_status); } && | |
6ebeb4c7 | 39713 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39715 | (eval $ac_try) 2>&5 | |
39716 | ac_status=$? | |
39717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39718 | (exit $ac_status); }; } && | |
39719 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39721 | (eval $ac_try) 2>&5 | |
39722 | ac_status=$? | |
39723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39724 | (exit $ac_status); }; }; then | |
39725 | wx_cv_func_gettimeofday_has_2_args=no | |
39726 | else | |
39727 | echo "$as_me: failed program was:" >&5 | |
39728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39729 | ||
39730 | ||
39731 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
39732 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
39733 | wx_cv_func_gettimeofday_has_2_args=unknown | |
39734 | ||
39735 | ||
39736 | fi | |
ac1cb8d3 | 39737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39738 | |
39739 | fi | |
ac1cb8d3 | 39740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39741 | ac_ext=c |
39742 | ac_cpp='$CPP $CPPFLAGS' | |
39743 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39744 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39746 | ||
39747 | ||
39748 | fi | |
39749 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
39750 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
39751 | ||
39752 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
39753 | cat >>confdefs.h <<\_ACEOF | |
39754 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
39755 | _ACEOF | |
39756 | ||
39757 | fi | |
39758 | fi | |
39759 | ||
39760 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
39761 | fi | |
39762 | ||
39763 | ||
39764 | if test "$wxUSE_SOCKETS" = "yes"; then | |
39765 | if test "$wxUSE_MGL" = "1"; then | |
39766 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
39767 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
39768 | wxUSE_SOCKETS="no" | |
39769 | fi | |
39770 | fi | |
39771 | ||
39772 | if test "$wxUSE_SOCKETS" = "yes"; then | |
39773 | if test "$TOOLKIT" != "MSW"; then | |
39774 | echo "$as_me:$LINENO: checking for socket" >&5 | |
39775 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
39776 | if test "${ac_cv_func_socket+set}" = set; then | |
39777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39778 | else | |
39779 | cat >conftest.$ac_ext <<_ACEOF | |
39780 | /* confdefs.h. */ | |
39781 | _ACEOF | |
39782 | cat confdefs.h >>conftest.$ac_ext | |
39783 | cat >>conftest.$ac_ext <<_ACEOF | |
39784 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39785 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
39786 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39787 | #define socket innocuous_socket | |
39788 | ||
a848cd7e SC |
39789 | /* System header to define __stub macros and hopefully few prototypes, |
39790 | which can conflict with char socket (); below. | |
39791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39792 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39793 | |
a848cd7e SC |
39794 | #ifdef __STDC__ |
39795 | # include <limits.h> | |
39796 | #else | |
39797 | # include <assert.h> | |
39798 | #endif | |
ac1cb8d3 VS |
39799 | |
39800 | #undef socket | |
39801 | ||
a848cd7e SC |
39802 | /* Override any gcc2 internal prototype to avoid an error. */ |
39803 | #ifdef __cplusplus | |
39804 | extern "C" | |
39805 | { | |
39806 | #endif | |
39807 | /* We use char because int might match the return type of a gcc2 | |
39808 | builtin and then its argument prototype would still apply. */ | |
39809 | char socket (); | |
39810 | /* The GNU C library defines this for functions which it implements | |
39811 | to always fail with ENOSYS. Some functions are actually named | |
39812 | something starting with __ and the normal name is an alias. */ | |
39813 | #if defined (__stub_socket) || defined (__stub___socket) | |
39814 | choke me | |
39815 | #else | |
39816 | char (*f) () = socket; | |
39817 | #endif | |
39818 | #ifdef __cplusplus | |
39819 | } | |
39820 | #endif | |
39821 | ||
39822 | int | |
39823 | main () | |
39824 | { | |
39825 | return f != socket; | |
39826 | ; | |
39827 | return 0; | |
39828 | } | |
39829 | _ACEOF | |
39830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39832 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39833 | ac_status=$? |
ac1cb8d3 VS |
39834 | grep -v '^ *+' conftest.er1 >conftest.err |
39835 | rm -f conftest.er1 | |
39836 | cat conftest.err >&5 | |
a848cd7e SC |
39837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39838 | (exit $ac_status); } && | |
6ebeb4c7 | 39839 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39841 | (eval $ac_try) 2>&5 | |
39842 | ac_status=$? | |
39843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39844 | (exit $ac_status); }; } && | |
39845 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39847 | (eval $ac_try) 2>&5 | |
39848 | ac_status=$? | |
39849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39850 | (exit $ac_status); }; }; then | |
39851 | ac_cv_func_socket=yes | |
39852 | else | |
39853 | echo "$as_me: failed program was:" >&5 | |
39854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39855 | ||
39856 | ac_cv_func_socket=no | |
39857 | fi | |
ac1cb8d3 VS |
39858 | rm -f conftest.err conftest.$ac_objext \ |
39859 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39860 | fi |
39861 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
39862 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
39863 | if test $ac_cv_func_socket = yes; then | |
39864 | : | |
39865 | else | |
39866 | ||
39867 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
39868 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
39869 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
39870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39871 | else | |
39872 | ac_check_lib_save_LIBS=$LIBS | |
39873 | LIBS="-lsocket $LIBS" | |
39874 | cat >conftest.$ac_ext <<_ACEOF | |
39875 | /* confdefs.h. */ | |
39876 | _ACEOF | |
39877 | cat confdefs.h >>conftest.$ac_ext | |
39878 | cat >>conftest.$ac_ext <<_ACEOF | |
39879 | /* end confdefs.h. */ | |
39880 | ||
39881 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39882 | #ifdef __cplusplus | |
39883 | extern "C" | |
39884 | #endif | |
39885 | /* We use char because int might match the return type of a gcc2 | |
39886 | builtin and then its argument prototype would still apply. */ | |
39887 | char socket (); | |
39888 | int | |
39889 | main () | |
39890 | { | |
39891 | socket (); | |
39892 | ; | |
39893 | return 0; | |
39894 | } | |
39895 | _ACEOF | |
39896 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39898 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39899 | ac_status=$? |
ac1cb8d3 VS |
39900 | grep -v '^ *+' conftest.er1 >conftest.err |
39901 | rm -f conftest.er1 | |
39902 | cat conftest.err >&5 | |
a848cd7e SC |
39903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39904 | (exit $ac_status); } && | |
6ebeb4c7 | 39905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39907 | (eval $ac_try) 2>&5 | |
39908 | ac_status=$? | |
39909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39910 | (exit $ac_status); }; } && | |
39911 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39913 | (eval $ac_try) 2>&5 | |
39914 | ac_status=$? | |
39915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39916 | (exit $ac_status); }; }; then | |
39917 | ac_cv_lib_socket_socket=yes | |
39918 | else | |
39919 | echo "$as_me: failed program was:" >&5 | |
39920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39921 | ||
39922 | ac_cv_lib_socket_socket=no | |
39923 | fi | |
ac1cb8d3 VS |
39924 | rm -f conftest.err conftest.$ac_objext \ |
39925 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39926 | LIBS=$ac_check_lib_save_LIBS |
39927 | fi | |
39928 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
39929 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
39930 | if test $ac_cv_lib_socket_socket = yes; then | |
39931 | if test "$INET_LINK" != " -lsocket"; then | |
39932 | INET_LINK="$INET_LINK -lsocket" | |
39933 | fi | |
39934 | else | |
39935 | ||
39936 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
39937 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
39938 | wxUSE_SOCKETS=no | |
39939 | ||
39940 | ||
39941 | fi | |
39942 | ||
39943 | ||
39944 | ||
39945 | fi | |
39946 | ||
39947 | fi | |
39948 | fi | |
39949 | ||
39950 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
39951 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
39952 | ac_ext=cc |
39953 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39954 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39955 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39956 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39957 | ||
39958 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
39959 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
39960 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
39961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39962 | else | |
39963 | ||
39964 | cat >conftest.$ac_ext <<_ACEOF | |
39965 | /* confdefs.h. */ | |
39966 | _ACEOF | |
39967 | cat confdefs.h >>conftest.$ac_ext | |
39968 | cat >>conftest.$ac_ext <<_ACEOF | |
39969 | /* end confdefs.h. */ | |
39970 | ||
39971 | #include <sys/types.h> | |
39972 | #include <sys/socket.h> | |
39973 | ||
39974 | int | |
39975 | main () | |
39976 | { | |
39977 | ||
39978 | socklen_t len; | |
39979 | getsockname(0, 0, &len); | |
39980 | ||
39981 | ; | |
39982 | return 0; | |
39983 | } | |
39984 | _ACEOF | |
39985 | rm -f conftest.$ac_objext | |
39986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39987 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39988 | ac_status=$? |
ac1cb8d3 VS |
39989 | grep -v '^ *+' conftest.er1 >conftest.err |
39990 | rm -f conftest.er1 | |
39991 | cat conftest.err >&5 | |
a848cd7e SC |
39992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39993 | (exit $ac_status); } && | |
6ebeb4c7 | 39994 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39996 | (eval $ac_try) 2>&5 | |
39997 | ac_status=$? | |
39998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39999 | (exit $ac_status); }; } && | |
40000 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40002 | (eval $ac_try) 2>&5 | |
40003 | ac_status=$? | |
40004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40005 | (exit $ac_status); }; }; then | |
40006 | wx_cv_type_getsockname3=socklen_t | |
40007 | else | |
40008 | echo "$as_me: failed program was:" >&5 | |
40009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40010 | ||
40011 | ||
6459a506 | 40012 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 40013 | if test "$GCC" = yes ; then |
6459a506 | 40014 | CXXFLAGS="$CXXFLAGS -Werror" |
a848cd7e SC |
40015 | fi |
40016 | ||
40017 | cat >conftest.$ac_ext <<_ACEOF | |
40018 | /* confdefs.h. */ | |
40019 | _ACEOF | |
40020 | cat confdefs.h >>conftest.$ac_ext | |
40021 | cat >>conftest.$ac_ext <<_ACEOF | |
40022 | /* end confdefs.h. */ | |
40023 | ||
40024 | #include <sys/types.h> | |
40025 | #include <sys/socket.h> | |
40026 | ||
40027 | int | |
40028 | main () | |
40029 | { | |
40030 | ||
40031 | size_t len; | |
40032 | getsockname(0, 0, &len); | |
40033 | ||
40034 | ; | |
40035 | return 0; | |
40036 | } | |
40037 | _ACEOF | |
40038 | rm -f conftest.$ac_objext | |
40039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40040 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40041 | ac_status=$? |
ac1cb8d3 VS |
40042 | grep -v '^ *+' conftest.er1 >conftest.err |
40043 | rm -f conftest.er1 | |
40044 | cat conftest.err >&5 | |
a848cd7e SC |
40045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40046 | (exit $ac_status); } && | |
6ebeb4c7 | 40047 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40049 | (eval $ac_try) 2>&5 | |
40050 | ac_status=$? | |
40051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40052 | (exit $ac_status); }; } && | |
40053 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40055 | (eval $ac_try) 2>&5 | |
40056 | ac_status=$? | |
40057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40058 | (exit $ac_status); }; }; then | |
40059 | wx_cv_type_getsockname3=size_t | |
40060 | else | |
40061 | echo "$as_me: failed program was:" >&5 | |
40062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40063 | ||
40064 | cat >conftest.$ac_ext <<_ACEOF | |
40065 | /* confdefs.h. */ | |
40066 | _ACEOF | |
40067 | cat confdefs.h >>conftest.$ac_ext | |
40068 | cat >>conftest.$ac_ext <<_ACEOF | |
40069 | /* end confdefs.h. */ | |
40070 | ||
40071 | #include <sys/types.h> | |
40072 | #include <sys/socket.h> | |
40073 | ||
40074 | int | |
40075 | main () | |
40076 | { | |
40077 | ||
40078 | int len; | |
40079 | getsockname(0, 0, &len); | |
40080 | ||
40081 | ; | |
40082 | return 0; | |
40083 | } | |
40084 | _ACEOF | |
40085 | rm -f conftest.$ac_objext | |
40086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40087 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40088 | ac_status=$? |
ac1cb8d3 VS |
40089 | grep -v '^ *+' conftest.er1 >conftest.err |
40090 | rm -f conftest.er1 | |
40091 | cat conftest.err >&5 | |
a848cd7e SC |
40092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40093 | (exit $ac_status); } && | |
6ebeb4c7 | 40094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40096 | (eval $ac_try) 2>&5 | |
40097 | ac_status=$? | |
40098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40099 | (exit $ac_status); }; } && | |
40100 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40102 | (eval $ac_try) 2>&5 | |
40103 | ac_status=$? | |
40104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40105 | (exit $ac_status); }; }; then | |
40106 | wx_cv_type_getsockname3=int | |
40107 | else | |
40108 | echo "$as_me: failed program was:" >&5 | |
40109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40110 | ||
40111 | wx_cv_type_getsockname3=unknown | |
40112 | ||
40113 | fi | |
ac1cb8d3 | 40114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40115 | |
40116 | fi | |
ac1cb8d3 | 40117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 40118 | |
6459a506 | 40119 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
40120 | |
40121 | ||
40122 | fi | |
ac1cb8d3 | 40123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40124 | |
40125 | fi | |
40126 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
40127 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
40128 | ||
40129 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
40130 | wxUSE_SOCKETS=no | |
40131 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
40132 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
40133 | else | |
40134 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 40135 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
40136 | _ACEOF |
40137 | ||
40138 | fi | |
40139 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
40140 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
40141 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
40142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40143 | else | |
40144 | ||
40145 | cat >conftest.$ac_ext <<_ACEOF | |
40146 | /* confdefs.h. */ | |
40147 | _ACEOF | |
40148 | cat confdefs.h >>conftest.$ac_ext | |
40149 | cat >>conftest.$ac_ext <<_ACEOF | |
40150 | /* end confdefs.h. */ | |
40151 | ||
40152 | #include <sys/types.h> | |
40153 | #include <sys/socket.h> | |
40154 | ||
40155 | int | |
40156 | main () | |
40157 | { | |
40158 | ||
40159 | socklen_t len; | |
40160 | getsockopt(0, 0, 0, 0, &len); | |
40161 | ||
40162 | ; | |
40163 | return 0; | |
40164 | } | |
40165 | _ACEOF | |
40166 | rm -f conftest.$ac_objext | |
40167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40168 | (eval $ac_compile) 2>conftest.er1 | |
40169 | ac_status=$? | |
40170 | grep -v '^ *+' conftest.er1 >conftest.err | |
40171 | rm -f conftest.er1 | |
40172 | cat conftest.err >&5 | |
40173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40174 | (exit $ac_status); } && | |
6ebeb4c7 | 40175 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
40176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40177 | (eval $ac_try) 2>&5 | |
40178 | ac_status=$? | |
40179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40180 | (exit $ac_status); }; } && | |
40181 | { ac_try='test -s conftest.$ac_objext' | |
40182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40183 | (eval $ac_try) 2>&5 | |
40184 | ac_status=$? | |
40185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40186 | (exit $ac_status); }; }; then | |
40187 | wx_cv_type_getsockopt5=socklen_t | |
40188 | else | |
40189 | echo "$as_me: failed program was:" >&5 | |
40190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40191 | ||
40192 | ||
6459a506 | 40193 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 40194 | if test "$GCC" = yes ; then |
6459a506 | 40195 | CXXFLAGS="$CXXFLAGS -Werror" |
5b674b9d DE |
40196 | fi |
40197 | ||
40198 | cat >conftest.$ac_ext <<_ACEOF | |
40199 | /* confdefs.h. */ | |
40200 | _ACEOF | |
40201 | cat confdefs.h >>conftest.$ac_ext | |
40202 | cat >>conftest.$ac_ext <<_ACEOF | |
40203 | /* end confdefs.h. */ | |
40204 | ||
40205 | #include <sys/types.h> | |
40206 | #include <sys/socket.h> | |
40207 | ||
40208 | int | |
40209 | main () | |
40210 | { | |
40211 | ||
40212 | size_t len; | |
40213 | getsockopt(0, 0, 0, 0, &len); | |
40214 | ||
40215 | ; | |
40216 | return 0; | |
40217 | } | |
40218 | _ACEOF | |
40219 | rm -f conftest.$ac_objext | |
40220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40221 | (eval $ac_compile) 2>conftest.er1 | |
40222 | ac_status=$? | |
40223 | grep -v '^ *+' conftest.er1 >conftest.err | |
40224 | rm -f conftest.er1 | |
40225 | cat conftest.err >&5 | |
40226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40227 | (exit $ac_status); } && | |
6ebeb4c7 | 40228 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
40229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40230 | (eval $ac_try) 2>&5 | |
40231 | ac_status=$? | |
40232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40233 | (exit $ac_status); }; } && | |
40234 | { ac_try='test -s conftest.$ac_objext' | |
40235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40236 | (eval $ac_try) 2>&5 | |
40237 | ac_status=$? | |
40238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40239 | (exit $ac_status); }; }; then | |
40240 | wx_cv_type_getsockopt5=size_t | |
40241 | else | |
40242 | echo "$as_me: failed program was:" >&5 | |
40243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40244 | ||
40245 | cat >conftest.$ac_ext <<_ACEOF | |
40246 | /* confdefs.h. */ | |
40247 | _ACEOF | |
40248 | cat confdefs.h >>conftest.$ac_ext | |
40249 | cat >>conftest.$ac_ext <<_ACEOF | |
40250 | /* end confdefs.h. */ | |
40251 | ||
40252 | #include <sys/types.h> | |
40253 | #include <sys/socket.h> | |
40254 | ||
40255 | int | |
40256 | main () | |
40257 | { | |
40258 | ||
40259 | int len; | |
40260 | getsockopt(0, 0, 0, 0, &len); | |
40261 | ||
40262 | ; | |
40263 | return 0; | |
40264 | } | |
40265 | _ACEOF | |
40266 | rm -f conftest.$ac_objext | |
40267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40268 | (eval $ac_compile) 2>conftest.er1 | |
40269 | ac_status=$? | |
40270 | grep -v '^ *+' conftest.er1 >conftest.err | |
40271 | rm -f conftest.er1 | |
40272 | cat conftest.err >&5 | |
40273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40274 | (exit $ac_status); } && | |
6ebeb4c7 | 40275 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
40276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40277 | (eval $ac_try) 2>&5 | |
40278 | ac_status=$? | |
40279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40280 | (exit $ac_status); }; } && | |
40281 | { ac_try='test -s conftest.$ac_objext' | |
40282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40283 | (eval $ac_try) 2>&5 | |
40284 | ac_status=$? | |
40285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40286 | (exit $ac_status); }; }; then | |
40287 | wx_cv_type_getsockopt5=int | |
40288 | else | |
40289 | echo "$as_me: failed program was:" >&5 | |
40290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40291 | ||
40292 | wx_cv_type_getsockopt5=unknown | |
40293 | ||
40294 | fi | |
40295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40296 | ||
40297 | fi | |
40298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40299 | ||
6459a506 | 40300 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
40301 | |
40302 | ||
40303 | fi | |
40304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40305 | ||
40306 | fi | |
40307 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
40308 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
40309 | ||
40310 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
40311 | wxUSE_SOCKETS=no | |
40312 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
40313 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
40314 | else | |
40315 | cat >>confdefs.h <<_ACEOF | |
40316 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
40317 | _ACEOF |
40318 | ||
40319 | fi | |
4d4ff94c VZ |
40320 | ac_ext=c |
40321 | ac_cpp='$CPP $CPPFLAGS' | |
40322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40325 | ||
a848cd7e SC |
40326 | fi |
40327 | fi | |
40328 | ||
40329 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
40330 | cat >>confdefs.h <<\_ACEOF | |
40331 | #define wxUSE_SOCKETS 1 | |
40332 | _ACEOF | |
40333 | ||
40334 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
40335 | fi | |
40336 | ||
40337 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
40338 | if test "$wxUSE_SOCKETS" != "yes"; then | |
40339 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
40340 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
40341 | wxUSE_PROTOCOL=no | |
40342 | fi | |
40343 | fi | |
40344 | ||
40345 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
40346 | cat >>confdefs.h <<\_ACEOF | |
40347 | #define wxUSE_PROTOCOL 1 | |
40348 | _ACEOF | |
40349 | ||
40350 | ||
40351 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
40352 | cat >>confdefs.h <<\_ACEOF | |
40353 | #define wxUSE_PROTOCOL_HTTP 1 | |
40354 | _ACEOF | |
40355 | ||
40356 | fi | |
40357 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
40358 | cat >>confdefs.h <<\_ACEOF | |
40359 | #define wxUSE_PROTOCOL_FTP 1 | |
40360 | _ACEOF | |
40361 | ||
40362 | fi | |
40363 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
40364 | cat >>confdefs.h <<\_ACEOF | |
40365 | #define wxUSE_PROTOCOL_FILE 1 | |
40366 | _ACEOF | |
40367 | ||
40368 | fi | |
40369 | else | |
40370 | if test "$wxUSE_FS_INET" = "yes"; then | |
40371 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
40372 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
40373 | wxUSE_FS_INET="no" | |
40374 | fi | |
40375 | fi | |
40376 | ||
40377 | if test "$wxUSE_URL" = "yes"; then | |
40378 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
40379 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
40380 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
40381 | wxUSE_URL=no | |
40382 | fi | |
40383 | if test "$wxUSE_URL" = "yes"; then | |
40384 | cat >>confdefs.h <<\_ACEOF | |
40385 | #define wxUSE_URL 1 | |
40386 | _ACEOF | |
40387 | ||
40388 | fi | |
40389 | fi | |
40390 | ||
40391 | if test "$wxUSE_FS_INET" = "yes"; then | |
40392 | cat >>confdefs.h <<\_ACEOF | |
40393 | #define wxUSE_FS_INET 1 | |
40394 | _ACEOF | |
40395 | ||
40396 | fi | |
40397 | ||
40398 | ||
ee45c548 MW |
40399 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
40400 | wxUSE_JOYSTICK=no | |
40401 | ||
40402 | if test "$TOOLKIT" = "MSW"; then | |
40403 | wxUSE_JOYSTICK=yes | |
40404 | ||
40405 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
40406 | if test "$USE_DARWIN" = 1; then | |
40407 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
40408 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
40409 | ac_ext=cc | |
40410 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40411 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40412 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40413 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
40414 | ||
40415 | cat >conftest.$ac_ext <<_ACEOF | |
40416 | /* confdefs.h. */ | |
40417 | _ACEOF | |
40418 | cat confdefs.h >>conftest.$ac_ext | |
40419 | cat >>conftest.$ac_ext <<_ACEOF | |
40420 | /* end confdefs.h. */ | |
40421 | #include <IOKit/hid/IOHIDLib.h> | |
40422 | int | |
40423 | main () | |
40424 | { | |
40425 | IOHIDQueueInterface *qi = NULL; | |
40426 | IOHIDCallbackFunction cb = NULL; | |
40427 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
40428 | ; | |
40429 | return 0; | |
40430 | } | |
40431 | _ACEOF | |
40432 | rm -f conftest.$ac_objext | |
40433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40434 | (eval $ac_compile) 2>conftest.er1 | |
40435 | ac_status=$? | |
40436 | grep -v '^ *+' conftest.er1 >conftest.err | |
40437 | rm -f conftest.er1 | |
40438 | cat conftest.err >&5 | |
40439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40440 | (exit $ac_status); } && | |
6ebeb4c7 | 40441 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
40442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40443 | (eval $ac_try) 2>&5 | |
40444 | ac_status=$? | |
40445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40446 | (exit $ac_status); }; } && | |
40447 | { ac_try='test -s conftest.$ac_objext' | |
40448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40449 | (eval $ac_try) 2>&5 | |
40450 | ac_status=$? | |
40451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40452 | (exit $ac_status); }; }; then | |
40453 | wxUSE_JOYSTICK=yes | |
a848cd7e | 40454 | |
ee45c548 MW |
40455 | else |
40456 | echo "$as_me: failed program was:" >&5 | |
40457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40458 | ||
40459 | fi | |
40460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40461 | ac_ext=c | |
40462 | ac_cpp='$CPP $CPPFLAGS' | |
40463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40466 | ||
40467 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
40468 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
40469 | fi | |
40470 | ||
40471 | else | |
a848cd7e SC |
40472 | |
40473 | for ac_header in linux/joystick.h | |
40474 | do | |
40475 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
40476 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40477 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40478 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40479 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40481 | fi | |
40482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40484 | else | |
40485 | # Is the header compilable? | |
40486 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
40487 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
40488 | cat >conftest.$ac_ext <<_ACEOF | |
40489 | /* confdefs.h. */ | |
40490 | _ACEOF | |
40491 | cat confdefs.h >>conftest.$ac_ext | |
40492 | cat >>conftest.$ac_ext <<_ACEOF | |
40493 | /* end confdefs.h. */ | |
40494 | $ac_includes_default | |
40495 | #include <$ac_header> | |
40496 | _ACEOF | |
40497 | rm -f conftest.$ac_objext | |
40498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40499 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40500 | ac_status=$? |
ac1cb8d3 VS |
40501 | grep -v '^ *+' conftest.er1 >conftest.err |
40502 | rm -f conftest.er1 | |
40503 | cat conftest.err >&5 | |
a848cd7e SC |
40504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40505 | (exit $ac_status); } && | |
6ebeb4c7 | 40506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40508 | (eval $ac_try) 2>&5 | |
40509 | ac_status=$? | |
40510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40511 | (exit $ac_status); }; } && | |
40512 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40514 | (eval $ac_try) 2>&5 | |
40515 | ac_status=$? | |
40516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40517 | (exit $ac_status); }; }; then | |
40518 | ac_header_compiler=yes | |
40519 | else | |
40520 | echo "$as_me: failed program was:" >&5 | |
40521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40522 | ||
40523 | ac_header_compiler=no | |
40524 | fi | |
ac1cb8d3 | 40525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40526 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
40527 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
40528 | ||
40529 | # Is the header present? | |
40530 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
40531 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
40532 | cat >conftest.$ac_ext <<_ACEOF | |
40533 | /* confdefs.h. */ | |
40534 | _ACEOF | |
40535 | cat confdefs.h >>conftest.$ac_ext | |
40536 | cat >>conftest.$ac_ext <<_ACEOF | |
40537 | /* end confdefs.h. */ | |
40538 | #include <$ac_header> | |
40539 | _ACEOF | |
40540 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
40541 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
40542 | ac_status=$? | |
40543 | grep -v '^ *+' conftest.er1 >conftest.err | |
40544 | rm -f conftest.er1 | |
40545 | cat conftest.err >&5 | |
40546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40547 | (exit $ac_status); } >/dev/null; then | |
40548 | if test -s conftest.err; then | |
40549 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 40550 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
40551 | else |
40552 | ac_cpp_err= | |
40553 | fi | |
40554 | else | |
40555 | ac_cpp_err=yes | |
40556 | fi | |
40557 | if test -z "$ac_cpp_err"; then | |
40558 | ac_header_preproc=yes | |
40559 | else | |
40560 | echo "$as_me: failed program was:" >&5 | |
40561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40562 | ||
40563 | ac_header_preproc=no | |
40564 | fi | |
40565 | rm -f conftest.err conftest.$ac_ext | |
40566 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
40567 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
40568 | ||
40569 | # So? What about this header? | |
ac1cb8d3 VS |
40570 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
40571 | yes:no: ) | |
a848cd7e SC |
40572 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
40573 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
40574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
40575 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
40576 | ac_header_preproc=yes | |
a848cd7e | 40577 | ;; |
ac1cb8d3 | 40578 | no:yes:* ) |
a848cd7e SC |
40579 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
40580 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
40581 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
40582 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
40583 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
40584 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
40585 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
40586 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
40587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
40588 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
40589 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
40590 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
40591 | ( |
40592 | cat <<\_ASBOX | |
ac1cb8d3 VS |
40593 | ## ----------------------------------------- ## |
40594 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
40595 | ## ----------------------------------------- ## | |
a848cd7e SC |
40596 | _ASBOX |
40597 | ) | | |
40598 | sed "s/^/$as_me: WARNING: /" >&2 | |
40599 | ;; | |
40600 | esac | |
40601 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40602 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40605 | else | |
ac1cb8d3 | 40606 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
40607 | fi |
40608 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40609 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40610 | ||
40611 | fi | |
40612 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
40613 | cat >>confdefs.h <<_ACEOF | |
40614 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
40615 | _ACEOF | |
ee45c548 | 40616 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
40617 | fi |
40618 | ||
40619 | done | |
40620 | ||
ee45c548 | 40621 | fi |
4cb1d3da | 40622 | |
ee45c548 MW |
40623 | if test "$wxUSE_JOYSTICK" = "yes"; then |
40624 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40625 | #define wxUSE_JOYSTICK 1 |
40626 | _ACEOF | |
40627 | ||
ee45c548 MW |
40628 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
40629 | else | |
40630 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
40631 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
40632 | fi |
40633 | fi | |
40634 | ||
40635 | ||
40636 | ||
40637 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
40638 | cat >>confdefs.h <<\_ACEOF | |
40639 | #define wxUSE_FONTMAP 1 | |
40640 | _ACEOF | |
40641 | ||
40642 | fi | |
40643 | ||
40644 | if test "$wxUSE_UNICODE" = "yes" ; then | |
40645 | cat >>confdefs.h <<\_ACEOF | |
40646 | #define wxUSE_UNICODE 1 | |
40647 | _ACEOF | |
40648 | ||
40649 | ||
40650 | if test "$USE_WIN32" != 1; then | |
40651 | wxUSE_UNICODE_MSLU=no | |
40652 | fi | |
40653 | ||
40654 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
40655 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
40656 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
40657 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
40658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40659 | else | |
40660 | ac_check_lib_save_LIBS=$LIBS | |
40661 | LIBS="-lunicows $LIBS" | |
40662 | cat >conftest.$ac_ext <<_ACEOF | |
40663 | /* confdefs.h. */ | |
40664 | _ACEOF | |
40665 | cat confdefs.h >>conftest.$ac_ext | |
40666 | cat >>conftest.$ac_ext <<_ACEOF | |
40667 | /* end confdefs.h. */ | |
40668 | ||
40669 | ||
40670 | int | |
40671 | main () | |
40672 | { | |
40673 | main (); | |
40674 | ; | |
40675 | return 0; | |
40676 | } | |
40677 | _ACEOF | |
40678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40680 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40681 | ac_status=$? |
ac1cb8d3 VS |
40682 | grep -v '^ *+' conftest.er1 >conftest.err |
40683 | rm -f conftest.er1 | |
40684 | cat conftest.err >&5 | |
a848cd7e SC |
40685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40686 | (exit $ac_status); } && | |
6ebeb4c7 | 40687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40689 | (eval $ac_try) 2>&5 | |
40690 | ac_status=$? | |
40691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40692 | (exit $ac_status); }; } && | |
40693 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40695 | (eval $ac_try) 2>&5 | |
40696 | ac_status=$? | |
40697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40698 | (exit $ac_status); }; }; then | |
40699 | ac_cv_lib_unicows_main=yes | |
40700 | else | |
40701 | echo "$as_me: failed program was:" >&5 | |
40702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40703 | ||
40704 | ac_cv_lib_unicows_main=no | |
40705 | fi | |
ac1cb8d3 VS |
40706 | rm -f conftest.err conftest.$ac_objext \ |
40707 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40708 | LIBS=$ac_check_lib_save_LIBS |
40709 | fi | |
40710 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
40711 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
40712 | if test $ac_cv_lib_unicows_main = yes; then | |
40713 | ||
40714 | cat >>confdefs.h <<\_ACEOF | |
40715 | #define wxUSE_UNICODE_MSLU 1 | |
40716 | _ACEOF | |
40717 | ||
40718 | ||
40719 | else | |
40720 | ||
40721 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
40722 | Applications will only run on Windows NT/2000/XP!" >&5 | |
40723 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
40724 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
40725 | wxUSE_UNICODE_MSLU=no | |
40726 | ||
40727 | fi | |
40728 | ||
40729 | fi | |
40730 | fi | |
40731 | ||
40732 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
40733 | cat >>confdefs.h <<\_ACEOF | |
40734 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
40735 | _ACEOF | |
40736 | ||
40737 | fi | |
40738 | ||
40739 | ||
40740 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
40741 | cat >>confdefs.h <<\_ACEOF | |
40742 | #define wxUSE_POSTSCRIPT 1 | |
40743 | _ACEOF | |
40744 | ||
40745 | fi | |
40746 | ||
40747 | cat >>confdefs.h <<\_ACEOF | |
40748 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
40749 | _ACEOF | |
40750 | ||
40751 | ||
40752 | cat >>confdefs.h <<\_ACEOF | |
40753 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
40754 | _ACEOF | |
40755 | ||
40756 | ||
40757 | ||
40758 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
40759 | cat >>confdefs.h <<\_ACEOF | |
40760 | #define wxUSE_CONSTRAINTS 1 | |
40761 | _ACEOF | |
40762 | ||
40763 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
40764 | fi | |
40765 | ||
8a7b1113 VZ |
40766 | if test "$wxUSE_MDI" = "yes"; then |
40767 | cat >>confdefs.h <<\_ACEOF | |
40768 | #define wxUSE_MDI 1 | |
40769 | _ACEOF | |
40770 | ||
40771 | ||
40772 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
40773 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40774 | #define wxUSE_MDI_ARCHITECTURE 1 |
40775 | _ACEOF | |
40776 | ||
8a7b1113 VZ |
40777 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
40778 | fi | |
a848cd7e SC |
40779 | fi |
40780 | ||
40781 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
40782 | cat >>confdefs.h <<\_ACEOF | |
40783 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
40784 | _ACEOF | |
40785 | ||
40786 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
40787 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
40788 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
40789 | fi | |
40790 | fi | |
40791 | ||
40792 | if test "$wxUSE_HELP" = "yes"; then | |
40793 | cat >>confdefs.h <<\_ACEOF | |
40794 | #define wxUSE_HELP 1 | |
40795 | _ACEOF | |
40796 | ||
40797 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
40798 | ||
40799 | if test "$wxUSE_MSW" = 1; then | |
40800 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
40801 | cat >>confdefs.h <<\_ACEOF | |
40802 | #define wxUSE_MS_HTML_HELP 1 | |
40803 | _ACEOF | |
40804 | ||
40805 | fi | |
40806 | fi | |
40807 | ||
40808 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
40809 | if test "$wxUSE_HTML" = "yes"; then | |
40810 | cat >>confdefs.h <<\_ACEOF | |
40811 | #define wxUSE_WXHTML_HELP 1 | |
40812 | _ACEOF | |
40813 | ||
40814 | else | |
40815 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
40816 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
40817 | wxUSE_WXHTML_HELP=no | |
40818 | fi | |
40819 | fi | |
40820 | fi | |
40821 | ||
40822 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
40823 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
40824 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
40825 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
40826 | else | |
40827 | cat >>confdefs.h <<\_ACEOF | |
40828 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
40829 | _ACEOF | |
40830 | ||
40831 | fi | |
40832 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
40833 | fi | |
40834 | ||
40835 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
40836 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
40837 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
40838 | { (exit 1); exit 1; }; } | |
40839 | fi | |
40840 | ||
40841 | ||
efdf6afe VZ |
40842 | if test "$wxUSE_METAFILE" = "yes"; then |
40843 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
40844 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
40845 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
40846 | wxUSE_METAFILE=no | |
40847 | fi | |
40848 | fi | |
40849 | ||
40850 | ||
a848cd7e SC |
40851 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
40852 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
40853 | -o "$wxUSE_OLE" = "yes" \ | |
40854 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
40855 | ||
40856 | for ac_header in ole2.h | |
40857 | do | |
40858 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
40859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40860 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40861 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40862 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40864 | fi | |
40865 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40866 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40867 | else | |
40868 | # Is the header compilable? | |
40869 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
40870 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
40871 | cat >conftest.$ac_ext <<_ACEOF | |
40872 | /* confdefs.h. */ | |
40873 | _ACEOF | |
40874 | cat confdefs.h >>conftest.$ac_ext | |
40875 | cat >>conftest.$ac_ext <<_ACEOF | |
40876 | /* end confdefs.h. */ | |
40877 | $ac_includes_default | |
40878 | #include <$ac_header> | |
40879 | _ACEOF | |
40880 | rm -f conftest.$ac_objext | |
40881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40882 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40883 | ac_status=$? |
ac1cb8d3 VS |
40884 | grep -v '^ *+' conftest.er1 >conftest.err |
40885 | rm -f conftest.er1 | |
40886 | cat conftest.err >&5 | |
a848cd7e SC |
40887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40888 | (exit $ac_status); } && | |
6ebeb4c7 | 40889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40891 | (eval $ac_try) 2>&5 | |
40892 | ac_status=$? | |
40893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40894 | (exit $ac_status); }; } && | |
40895 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40897 | (eval $ac_try) 2>&5 | |
40898 | ac_status=$? | |
40899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40900 | (exit $ac_status); }; }; then | |
40901 | ac_header_compiler=yes | |
40902 | else | |
40903 | echo "$as_me: failed program was:" >&5 | |
40904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40905 | ||
40906 | ac_header_compiler=no | |
40907 | fi | |
ac1cb8d3 | 40908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40909 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
40910 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
40911 | ||
40912 | # Is the header present? | |
40913 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
40914 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
40915 | cat >conftest.$ac_ext <<_ACEOF | |
40916 | /* confdefs.h. */ | |
40917 | _ACEOF | |
40918 | cat confdefs.h >>conftest.$ac_ext | |
40919 | cat >>conftest.$ac_ext <<_ACEOF | |
40920 | /* end confdefs.h. */ | |
40921 | #include <$ac_header> | |
40922 | _ACEOF | |
40923 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
40924 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
40925 | ac_status=$? | |
40926 | grep -v '^ *+' conftest.er1 >conftest.err | |
40927 | rm -f conftest.er1 | |
40928 | cat conftest.err >&5 | |
40929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40930 | (exit $ac_status); } >/dev/null; then | |
40931 | if test -s conftest.err; then | |
40932 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 40933 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
40934 | else |
40935 | ac_cpp_err= | |
40936 | fi | |
40937 | else | |
40938 | ac_cpp_err=yes | |
40939 | fi | |
40940 | if test -z "$ac_cpp_err"; then | |
40941 | ac_header_preproc=yes | |
40942 | else | |
40943 | echo "$as_me: failed program was:" >&5 | |
40944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40945 | ||
40946 | ac_header_preproc=no | |
40947 | fi | |
40948 | rm -f conftest.err conftest.$ac_ext | |
40949 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
40950 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
40951 | ||
40952 | # So? What about this header? | |
ac1cb8d3 VS |
40953 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
40954 | yes:no: ) | |
a848cd7e SC |
40955 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
40956 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
40957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
40958 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
40959 | ac_header_preproc=yes | |
a848cd7e | 40960 | ;; |
ac1cb8d3 | 40961 | no:yes:* ) |
a848cd7e SC |
40962 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
40963 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
40964 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
40965 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
40966 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
40967 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
40968 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
40969 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
40970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
40971 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
40972 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
40973 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
40974 | ( |
40975 | cat <<\_ASBOX | |
ac1cb8d3 VS |
40976 | ## ----------------------------------------- ## |
40977 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
40978 | ## ----------------------------------------- ## | |
a848cd7e SC |
40979 | _ASBOX |
40980 | ) | | |
40981 | sed "s/^/$as_me: WARNING: /" >&2 | |
40982 | ;; | |
40983 | esac | |
40984 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40985 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40986 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40988 | else | |
ac1cb8d3 | 40989 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
40990 | fi |
40991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40992 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40993 | ||
40994 | fi | |
40995 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
40996 | cat >>confdefs.h <<_ACEOF | |
40997 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
40998 | _ACEOF | |
40999 | ||
41000 | fi | |
41001 | ||
41002 | done | |
41003 | ||
41004 | ||
41005 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
41006 | if test "$GCC" = yes ; then | |
41007 | ||
41008 | ||
41009 | ac_ext=cc | |
41010 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41011 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41012 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41013 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41014 | ||
41015 | ||
41016 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
41017 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
41018 | cat >conftest.$ac_ext <<_ACEOF | |
41019 | /* confdefs.h. */ | |
41020 | _ACEOF | |
41021 | cat confdefs.h >>conftest.$ac_ext | |
41022 | cat >>conftest.$ac_ext <<_ACEOF | |
41023 | /* end confdefs.h. */ | |
41024 | #include <windows.h> | |
41025 | #include <ole2.h> | |
41026 | int | |
41027 | main () | |
41028 | { | |
41029 | ||
41030 | ; | |
41031 | return 0; | |
41032 | } | |
41033 | _ACEOF | |
41034 | rm -f conftest.$ac_objext | |
41035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41036 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41037 | ac_status=$? |
ac1cb8d3 VS |
41038 | grep -v '^ *+' conftest.er1 >conftest.err |
41039 | rm -f conftest.er1 | |
41040 | cat conftest.err >&5 | |
a848cd7e SC |
41041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41042 | (exit $ac_status); } && | |
6ebeb4c7 | 41043 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41045 | (eval $ac_try) 2>&5 | |
41046 | ac_status=$? | |
41047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41048 | (exit $ac_status); }; } && | |
41049 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41051 | (eval $ac_try) 2>&5 | |
41052 | ac_status=$? | |
41053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41054 | (exit $ac_status); }; }; then | |
41055 | echo "$as_me:$LINENO: result: no" >&5 | |
41056 | echo "${ECHO_T}no" >&6 | |
41057 | else | |
41058 | echo "$as_me: failed program was:" >&5 | |
41059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41060 | ||
41061 | echo "$as_me:$LINENO: result: yes" >&5 | |
41062 | echo "${ECHO_T}yes" >&6 | |
41063 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
41064 | fi | |
ac1cb8d3 | 41065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41066 | ac_ext=c |
41067 | ac_cpp='$CPP $CPPFLAGS' | |
41068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41071 | ||
a848cd7e SC |
41072 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
41073 | if test "$wxUSE_OLE" = "yes" ; then | |
41074 | cat >>confdefs.h <<\_ACEOF | |
41075 | #define wxUSE_OLE 1 | |
41076 | _ACEOF | |
41077 | ||
0b78747f | 41078 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
41079 | fi |
41080 | fi | |
41081 | ||
41082 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
41083 | cat >>confdefs.h <<\_ACEOF | |
41084 | #define wxUSE_DATAOBJ 1 | |
41085 | _ACEOF | |
41086 | ||
41087 | fi | |
41088 | else | |
41089 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
41090 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
41091 | ||
41092 | wxUSE_CLIPBOARD=no | |
41093 | wxUSE_DRAG_AND_DROP=no | |
41094 | wxUSE_DATAOBJ=no | |
41095 | wxUSE_OLE=no | |
41096 | fi | |
41097 | ||
41098 | if test "$wxUSE_METAFILE" = "yes"; then | |
41099 | cat >>confdefs.h <<\_ACEOF | |
41100 | #define wxUSE_METAFILE 1 | |
41101 | _ACEOF | |
41102 | ||
41103 | ||
41104 | cat >>confdefs.h <<\_ACEOF | |
41105 | #define wxUSE_ENH_METAFILE 1 | |
41106 | _ACEOF | |
41107 | ||
41108 | fi | |
41109 | fi | |
41110 | ||
41111 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 41112 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
41113 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
41114 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 41115 | wxUSE_IPC=no |
a848cd7e SC |
41116 | fi |
41117 | ||
0b78747f MW |
41118 | if test "$wxUSE_IPC" = "yes"; then |
41119 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41120 | #define wxUSE_IPC 1 |
41121 | _ACEOF | |
41122 | ||
0b78747f MW |
41123 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
41124 | fi | |
a848cd7e SC |
41125 | fi |
41126 | ||
eb730a0c | 41127 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
41128 | if test "$wxUSE_MGL" = 1; then |
41129 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
41130 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
41131 | wxUSE_DATAOBJ=no | |
41132 | else | |
41133 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
41134 | #define wxUSE_DATAOBJ 1 |
41135 | _ACEOF | |
41136 | ||
2113bc77 | 41137 | fi |
eb730a0c JS |
41138 | else |
41139 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
41140 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
41141 | wxUSE_CLIPBOARD=no | |
41142 | wxUSE_DRAG_AND_DROP=no | |
41143 | fi | |
41144 | ||
a848cd7e SC |
41145 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
41146 | if test "$wxUSE_MGL" = 1; then | |
41147 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
41148 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
41149 | wxUSE_CLIPBOARD=no | |
41150 | fi | |
41151 | ||
41152 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
41153 | cat >>confdefs.h <<\_ACEOF | |
41154 | #define wxUSE_CLIPBOARD 1 | |
41155 | _ACEOF | |
41156 | ||
a848cd7e SC |
41157 | fi |
41158 | fi | |
41159 | ||
41160 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
41161 | if test "$wxUSE_GTK" = 1; then | |
41162 | if test "$WXGTK12" != 1; then | |
41163 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
41164 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
41165 | wxUSE_DRAG_AND_DROP=no | |
41166 | fi | |
41167 | fi | |
41168 | ||
41169 | if test "$wxUSE_MOTIF" = 1; then | |
41170 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
41171 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
41172 | wxUSE_DRAG_AND_DROP=no | |
41173 | fi | |
41174 | ||
41175 | if test "$wxUSE_X11" = 1; then | |
41176 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
41177 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
41178 | wxUSE_DRAG_AND_DROP=no | |
41179 | fi | |
41180 | ||
41181 | if test "$wxUSE_MGL" = 1; then | |
41182 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
41183 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
41184 | wxUSE_DRAG_AND_DROP=no | |
41185 | fi | |
41186 | ||
41187 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
41188 | cat >>confdefs.h <<\_ACEOF | |
41189 | #define wxUSE_DRAG_AND_DROP 1 | |
41190 | _ACEOF | |
41191 | ||
41192 | fi | |
41193 | ||
41194 | fi | |
41195 | ||
41196 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
41197 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
41198 | fi | |
41199 | ||
41200 | if test "$wxUSE_SPLINES" = "yes" ; then | |
41201 | cat >>confdefs.h <<\_ACEOF | |
41202 | #define wxUSE_SPLINES 1 | |
41203 | _ACEOF | |
41204 | ||
41205 | fi | |
41206 | ||
fbe2ca43 SN |
41207 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
41208 | cat >>confdefs.h <<\_ACEOF | |
41209 | #define wxUSE_MOUSEWHEEL 1 | |
41210 | _ACEOF | |
41211 | ||
41212 | fi | |
41213 | ||
a848cd7e SC |
41214 | |
41215 | USES_CONTROLS=0 | |
41216 | if test "$wxUSE_CONTROLS" = "yes"; then | |
41217 | USES_CONTROLS=1 | |
41218 | fi | |
41219 | ||
41220 | if test "$wxUSE_ACCEL" = "yes"; then | |
41221 | cat >>confdefs.h <<\_ACEOF | |
41222 | #define wxUSE_ACCEL 1 | |
41223 | _ACEOF | |
41224 | ||
41225 | USES_CONTROLS=1 | |
41226 | fi | |
41227 | ||
41228 | if test "$wxUSE_BUTTON" = "yes"; then | |
41229 | cat >>confdefs.h <<\_ACEOF | |
41230 | #define wxUSE_BUTTON 1 | |
41231 | _ACEOF | |
41232 | ||
41233 | USES_CONTROLS=1 | |
41234 | fi | |
41235 | ||
41236 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
41237 | cat >>confdefs.h <<\_ACEOF | |
41238 | #define wxUSE_BMPBUTTON 1 | |
41239 | _ACEOF | |
41240 | ||
41241 | USES_CONTROLS=1 | |
41242 | fi | |
41243 | ||
41244 | if test "$wxUSE_CALCTRL" = "yes"; then | |
41245 | cat >>confdefs.h <<\_ACEOF | |
41246 | #define wxUSE_CALENDARCTRL 1 | |
41247 | _ACEOF | |
41248 | ||
41249 | USES_CONTROLS=1 | |
41250 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
41251 | fi | |
41252 | ||
41253 | if test "$wxUSE_CARET" = "yes"; then | |
41254 | cat >>confdefs.h <<\_ACEOF | |
41255 | #define wxUSE_CARET 1 | |
41256 | _ACEOF | |
41257 | ||
41258 | USES_CONTROLS=1 | |
41259 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
41260 | fi | |
41261 | ||
41262 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
41263 | cat >>confdefs.h <<\_ACEOF | |
41264 | #define wxUSE_COMBOBOX 1 | |
41265 | _ACEOF | |
41266 | ||
41267 | USES_CONTROLS=1 | |
41268 | fi | |
41269 | ||
41270 | if test "$wxUSE_CHOICE" = "yes"; then | |
41271 | cat >>confdefs.h <<\_ACEOF | |
41272 | #define wxUSE_CHOICE 1 | |
41273 | _ACEOF | |
41274 | ||
41275 | USES_CONTROLS=1 | |
41276 | fi | |
41277 | ||
92bbdbcd WS |
41278 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
41279 | cat >>confdefs.h <<\_ACEOF | |
41280 | #define wxUSE_CHOICEBOOK 1 | |
41281 | _ACEOF | |
41282 | ||
41283 | USES_CONTROLS=1 | |
41284 | fi | |
41285 | ||
a848cd7e SC |
41286 | if test "$wxUSE_CHECKBOX" = "yes"; then |
41287 | cat >>confdefs.h <<\_ACEOF | |
41288 | #define wxUSE_CHECKBOX 1 | |
41289 | _ACEOF | |
41290 | ||
41291 | USES_CONTROLS=1 | |
41292 | fi | |
41293 | ||
41294 | if test "$wxUSE_CHECKLST" = "yes"; then | |
41295 | cat >>confdefs.h <<\_ACEOF | |
41296 | #define wxUSE_CHECKLISTBOX 1 | |
41297 | _ACEOF | |
41298 | ||
41299 | USES_CONTROLS=1 | |
41300 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
41301 | fi | |
41302 | ||
da98e9be VZ |
41303 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
41304 | cat >>confdefs.h <<\_ACEOF | |
41305 | #define wxUSE_DATEPICKCTRL 1 | |
41306 | _ACEOF | |
41307 | ||
41308 | USES_CONTROLS=1 | |
41309 | fi | |
41310 | ||
a848cd7e SC |
41311 | if test "$wxUSE_DISPLAY" = "yes"; then |
41312 | cat >>confdefs.h <<\_ACEOF | |
41313 | #define wxUSE_DISPLAY 1 | |
41314 | _ACEOF | |
41315 | ||
0b78747f | 41316 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
41317 | fi |
41318 | ||
41319 | if test "$wxUSE_GAUGE" = "yes"; then | |
41320 | cat >>confdefs.h <<\_ACEOF | |
41321 | #define wxUSE_GAUGE 1 | |
41322 | _ACEOF | |
41323 | ||
41324 | USES_CONTROLS=1 | |
41325 | fi | |
41326 | ||
41327 | if test "$wxUSE_GRID" = "yes"; then | |
41328 | cat >>confdefs.h <<\_ACEOF | |
41329 | #define wxUSE_GRID 1 | |
41330 | _ACEOF | |
41331 | ||
41332 | USES_CONTROLS=1 | |
41333 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
41334 | fi | |
41335 | ||
41336 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
41337 | cat >>confdefs.h <<\_ACEOF | |
41338 | #define wxUSE_IMAGLIST 1 | |
41339 | _ACEOF | |
41340 | ||
41341 | fi | |
41342 | ||
41343 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
41344 | cat >>confdefs.h <<\_ACEOF | |
41345 | #define wxUSE_LISTBOOK 1 | |
41346 | _ACEOF | |
41347 | ||
41348 | USES_CONTROLS=1 | |
41349 | fi | |
41350 | ||
41351 | if test "$wxUSE_LISTBOX" = "yes"; then | |
41352 | cat >>confdefs.h <<\_ACEOF | |
41353 | #define wxUSE_LISTBOX 1 | |
41354 | _ACEOF | |
41355 | ||
41356 | USES_CONTROLS=1 | |
0b78747f | 41357 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
41358 | fi |
41359 | ||
41360 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
41361 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
41362 | cat >>confdefs.h <<\_ACEOF | |
41363 | #define wxUSE_LISTCTRL 1 | |
41364 | _ACEOF | |
41365 | ||
41366 | USES_CONTROLS=1 | |
41367 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
41368 | else | |
41369 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
41370 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
41371 | fi | |
41372 | fi | |
41373 | ||
41374 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
41375 | cat >>confdefs.h <<\_ACEOF | |
41376 | #define wxUSE_NOTEBOOK 1 | |
41377 | _ACEOF | |
41378 | ||
41379 | USES_CONTROLS=1 | |
41380 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
41381 | fi | |
41382 | ||
41383 | ||
41384 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
41385 | cat >>confdefs.h <<\_ACEOF | |
41386 | #define wxUSE_RADIOBOX 1 | |
41387 | _ACEOF | |
41388 | ||
41389 | USES_CONTROLS=1 | |
41390 | fi | |
41391 | ||
41392 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
41393 | cat >>confdefs.h <<\_ACEOF | |
41394 | #define wxUSE_RADIOBTN 1 | |
41395 | _ACEOF | |
41396 | ||
41397 | USES_CONTROLS=1 | |
41398 | fi | |
41399 | ||
41400 | if test "$wxUSE_SASH" = "yes"; then | |
41401 | cat >>confdefs.h <<\_ACEOF | |
41402 | #define wxUSE_SASH 1 | |
41403 | _ACEOF | |
41404 | ||
41405 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
41406 | fi | |
41407 | ||
41408 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
41409 | cat >>confdefs.h <<\_ACEOF | |
41410 | #define wxUSE_SCROLLBAR 1 | |
41411 | _ACEOF | |
41412 | ||
41413 | USES_CONTROLS=1 | |
41414 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
41415 | fi | |
41416 | ||
41417 | if test "$wxUSE_SLIDER" = "yes"; then | |
41418 | cat >>confdefs.h <<\_ACEOF | |
41419 | #define wxUSE_SLIDER 1 | |
41420 | _ACEOF | |
41421 | ||
41422 | USES_CONTROLS=1 | |
41423 | fi | |
41424 | ||
41425 | if test "$wxUSE_SPINBTN" = "yes"; then | |
41426 | cat >>confdefs.h <<\_ACEOF | |
41427 | #define wxUSE_SPINBTN 1 | |
41428 | _ACEOF | |
41429 | ||
41430 | USES_CONTROLS=1 | |
41431 | fi | |
41432 | ||
41433 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
41434 | cat >>confdefs.h <<\_ACEOF | |
41435 | #define wxUSE_SPINCTRL 1 | |
41436 | _ACEOF | |
41437 | ||
41438 | USES_CONTROLS=1 | |
41439 | fi | |
41440 | ||
41441 | if test "$wxUSE_SPLITTER" = "yes"; then | |
41442 | cat >>confdefs.h <<\_ACEOF | |
41443 | #define wxUSE_SPLITTER 1 | |
41444 | _ACEOF | |
41445 | ||
41446 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
41447 | fi | |
41448 | ||
41449 | if test "$wxUSE_STATBMP" = "yes"; then | |
41450 | cat >>confdefs.h <<\_ACEOF | |
41451 | #define wxUSE_STATBMP 1 | |
41452 | _ACEOF | |
41453 | ||
41454 | USES_CONTROLS=1 | |
41455 | fi | |
41456 | ||
41457 | if test "$wxUSE_STATBOX" = "yes"; then | |
41458 | cat >>confdefs.h <<\_ACEOF | |
41459 | #define wxUSE_STATBOX 1 | |
41460 | _ACEOF | |
41461 | ||
41462 | USES_CONTROLS=1 | |
41463 | fi | |
41464 | ||
41465 | if test "$wxUSE_STATTEXT" = "yes"; then | |
41466 | cat >>confdefs.h <<\_ACEOF | |
41467 | #define wxUSE_STATTEXT 1 | |
41468 | _ACEOF | |
41469 | ||
41470 | USES_CONTROLS=1 | |
41471 | fi | |
41472 | ||
41473 | if test "$wxUSE_STATLINE" = "yes"; then | |
41474 | cat >>confdefs.h <<\_ACEOF | |
41475 | #define wxUSE_STATLINE 1 | |
41476 | _ACEOF | |
41477 | ||
41478 | USES_CONTROLS=1 | |
41479 | fi | |
41480 | ||
41481 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
41482 | cat >>confdefs.h <<\_ACEOF |
41483 | #define wxUSE_NATIVE_STATUSBAR 1 | |
41484 | _ACEOF | |
41485 | ||
a848cd7e SC |
41486 | cat >>confdefs.h <<\_ACEOF |
41487 | #define wxUSE_STATUSBAR 1 | |
41488 | _ACEOF | |
41489 | ||
41490 | USES_CONTROLS=1 | |
41491 | ||
41492 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
41493 | fi | |
41494 | ||
41495 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
41496 | cat >>confdefs.h <<\_ACEOF | |
41497 | #define wxUSE_TAB_DIALOG 1 | |
41498 | _ACEOF | |
41499 | ||
a848cd7e SC |
41500 | fi |
41501 | ||
41502 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
41503 | cat >>confdefs.h <<\_ACEOF | |
41504 | #define wxUSE_TEXTCTRL 1 | |
41505 | _ACEOF | |
41506 | ||
41507 | USES_CONTROLS=1 | |
41508 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
41509 | fi | |
41510 | ||
41511 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
41512 | if test "$wxUSE_COCOA" = 1 ; then | |
41513 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
41514 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
41515 | wxUSE_TOGGLEBTN=no | |
41516 | fi | |
41517 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
41518 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
41519 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
41520 | wxUSE_TOGGLEBTN=no | |
41521 | fi | |
41522 | ||
41523 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
41524 | cat >>confdefs.h <<\_ACEOF | |
41525 | #define wxUSE_TOGGLEBTN 1 | |
41526 | _ACEOF | |
41527 | ||
41528 | USES_CONTROLS=1 | |
41529 | fi | |
41530 | fi | |
41531 | ||
41532 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
41533 | cat >>confdefs.h <<\_ACEOF | |
41534 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
41535 | _ACEOF | |
41536 | ||
41537 | wxUSE_TOOLBAR="yes" | |
41538 | USES_CONTROLS=1 | |
41539 | fi | |
41540 | ||
41541 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
41542 | cat >>confdefs.h <<\_ACEOF | |
41543 | #define wxUSE_TOOLBAR 1 | |
41544 | _ACEOF | |
41545 | ||
41546 | USES_CONTROLS=1 | |
41547 | ||
41548 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
41549 | wxUSE_TOOLBAR_NATIVE="yes" | |
41550 | fi | |
41551 | ||
41552 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
41553 | cat >>confdefs.h <<\_ACEOF | |
41554 | #define wxUSE_TOOLBAR_NATIVE 1 | |
41555 | _ACEOF | |
41556 | ||
41557 | USES_CONTROLS=1 | |
41558 | fi | |
41559 | ||
41560 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
41561 | fi | |
41562 | ||
41563 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
41564 | if test "$wxUSE_MOTIF" = 1; then | |
41565 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
41566 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
41567 | else | |
41568 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
41569 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
41570 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
41571 | else | |
41572 | cat >>confdefs.h <<\_ACEOF | |
41573 | #define wxUSE_TOOLTIPS 1 | |
41574 | _ACEOF | |
41575 | ||
41576 | fi | |
41577 | fi | |
41578 | fi | |
41579 | ||
41580 | if test "$wxUSE_TREECTRL" = "yes"; then | |
41581 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
41582 | cat >>confdefs.h <<\_ACEOF | |
41583 | #define wxUSE_TREECTRL 1 | |
41584 | _ACEOF | |
41585 | ||
41586 | USES_CONTROLS=1 | |
41587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
41588 | else | |
41589 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
41590 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
41591 | fi | |
41592 | fi | |
41593 | ||
41594 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
41595 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
41596 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
41597 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
41598 | else | |
41599 | if test "$wxUSE_PM" = 1; then | |
41600 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
41601 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
41602 | else | |
41603 | cat >>confdefs.h <<\_ACEOF | |
41604 | #define wxUSE_POPUPWIN 1 | |
41605 | _ACEOF | |
41606 | ||
0b78747f | 41607 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
41608 | |
41609 | USES_CONTROLS=1 | |
41610 | fi | |
41611 | fi | |
41612 | fi | |
41613 | ||
0dcd06dd | 41614 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
41615 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
41616 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
41617 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
41618 | else | |
41619 | cat >>confdefs.h <<\_ACEOF | |
41620 | #define wxUSE_DIALUP_MANAGER 1 | |
41621 | _ACEOF | |
41622 | ||
41623 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
41624 | fi | |
41625 | fi | |
41626 | ||
a848cd7e SC |
41627 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
41628 | if test "$wxUSE_PM" = 1; then | |
41629 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
41630 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
41631 | else | |
41632 | cat >>confdefs.h <<\_ACEOF | |
41633 | #define wxUSE_TIPWINDOW 1 | |
41634 | _ACEOF | |
41635 | ||
41636 | fi | |
41637 | fi | |
41638 | ||
41639 | if test "$USES_CONTROLS" = 1; then | |
41640 | cat >>confdefs.h <<\_ACEOF | |
41641 | #define wxUSE_CONTROLS 1 | |
41642 | _ACEOF | |
41643 | ||
41644 | fi | |
41645 | ||
41646 | ||
41647 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
41648 | cat >>confdefs.h <<\_ACEOF | |
41649 | #define wxUSE_ACCESSIBILITY 1 | |
41650 | _ACEOF | |
41651 | ||
41652 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
41653 | fi | |
41654 | ||
38b4a946 VZ |
41655 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
41656 | cat >>confdefs.h <<\_ACEOF | |
41657 | #define wxUSE_DC_CACHEING 1 | |
41658 | _ACEOF | |
41659 | ||
41660 | fi | |
41661 | ||
a848cd7e SC |
41662 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
41663 | cat >>confdefs.h <<\_ACEOF | |
41664 | #define wxUSE_DRAGIMAGE 1 | |
41665 | _ACEOF | |
41666 | ||
41667 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
41668 | fi | |
41669 | ||
41670 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
41671 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
41672 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
41673 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
41674 | else | |
41675 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41676 | #define wxUSE_EXCEPTIONS 1 |
41677 | _ACEOF | |
41678 | ||
07bea8f0 VS |
41679 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
41680 | fi | |
a848cd7e SC |
41681 | fi |
41682 | ||
41683 | USE_HTML=0 | |
41684 | if test "$wxUSE_HTML" = "yes"; then | |
41685 | cat >>confdefs.h <<\_ACEOF | |
41686 | #define wxUSE_HTML 1 | |
41687 | _ACEOF | |
41688 | ||
41689 | USE_HTML=1 | |
41690 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
41691 | if test "$wxUSE_MAC" = 1; then |
41692 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
41693 | fi | |
a848cd7e | 41694 | fi |
646b6ec1 | 41695 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 41696 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
41697 | old_CPPFLAGS="$CPPFLAGS" |
41698 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
41699 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
41700 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
41701 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
41702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41703 | else | |
41704 | cat >conftest.$ac_ext <<_ACEOF | |
41705 | /* confdefs.h. */ | |
41706 | _ACEOF | |
41707 | cat confdefs.h >>conftest.$ac_ext | |
41708 | cat >>conftest.$ac_ext <<_ACEOF | |
41709 | /* end confdefs.h. */ | |
41710 | #include <Carbon/Carbon.h> | |
41711 | ||
41712 | #include <WebKit/HIWebView.h> | |
41713 | _ACEOF | |
41714 | rm -f conftest.$ac_objext | |
41715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41716 | (eval $ac_compile) 2>conftest.er1 | |
41717 | ac_status=$? | |
41718 | grep -v '^ *+' conftest.er1 >conftest.err | |
41719 | rm -f conftest.er1 | |
41720 | cat conftest.err >&5 | |
41721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41722 | (exit $ac_status); } && | |
6ebeb4c7 | 41723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
41724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41725 | (eval $ac_try) 2>&5 | |
41726 | ac_status=$? | |
41727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41728 | (exit $ac_status); }; } && | |
41729 | { ac_try='test -s conftest.$ac_objext' | |
41730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41731 | (eval $ac_try) 2>&5 | |
41732 | ac_status=$? | |
41733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41734 | (exit $ac_status); }; }; then | |
41735 | ac_cv_header_WebKit_HIWebView_h=yes | |
41736 | else | |
41737 | echo "$as_me: failed program was:" >&5 | |
41738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41739 | ||
41740 | ac_cv_header_WebKit_HIWebView_h=no | |
41741 | fi | |
41742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41743 | fi | |
41744 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
41745 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
41746 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
41747 | ||
41748 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
41749 | #define wxUSE_WEBKIT 1 |
41750 | _ACEOF | |
41751 | ||
07bea8f0 VS |
41752 | WEBKIT_LINK="-framework WebKit" |
41753 | ||
41754 | else | |
41755 | ||
41756 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
41757 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
41758 | wxUSE_WEBKIT=no | |
41759 | ||
646b6ec1 VS |
41760 | fi |
41761 | ||
07bea8f0 VS |
41762 | |
41763 | CPPFLAGS="$old_CPPFLAGS" | |
41764 | elif test "$wxUSE_COCOA" = 1; then | |
41765 | cat >>confdefs.h <<\_ACEOF | |
41766 | #define wxUSE_WEBKIT 1 | |
41767 | _ACEOF | |
41768 | ||
41769 | else | |
41770 | wxUSE_WEBKIT=no | |
41771 | fi | |
41772 | fi | |
41773 | ||
9a8f0513 VS |
41774 | USE_XRC=0 |
41775 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
41776 | if test "$wxUSE_XML" != "yes"; then |
41777 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
41778 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
41779 | wxUSE_XRC=no | |
41780 | else | |
41781 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
41782 | #define wxUSE_XRC 1 |
41783 | _ACEOF | |
41784 | ||
d2ebf0b7 VS |
41785 | USE_XRC=1 |
41786 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
41787 | fi | |
9a8f0513 | 41788 | fi |
07bea8f0 | 41789 | |
a848cd7e SC |
41790 | if test "$wxUSE_MENUS" = "yes"; then |
41791 | cat >>confdefs.h <<\_ACEOF | |
41792 | #define wxUSE_MENUS 1 | |
41793 | _ACEOF | |
41794 | ||
41795 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
41796 | fi | |
41797 | ||
41798 | if test "$wxUSE_METAFILE" = "yes"; then | |
41799 | cat >>confdefs.h <<\_ACEOF | |
41800 | #define wxUSE_METAFILE 1 | |
41801 | _ACEOF | |
41802 | ||
41803 | fi | |
41804 | ||
41805 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
41806 | cat >>confdefs.h <<\_ACEOF | |
41807 | #define wxUSE_MIMETYPE 1 | |
41808 | _ACEOF | |
41809 | ||
41810 | fi | |
41811 | ||
41812 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
41813 | cat >>confdefs.h <<\_ACEOF | |
41814 | #define wxUSE_MINIFRAME 1 | |
41815 | _ACEOF | |
41816 | ||
41817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
41818 | fi | |
41819 | ||
41820 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
41821 | cat >>confdefs.h <<\_ACEOF | |
41822 | #define wxUSE_SYSTEM_OPTIONS 1 | |
41823 | _ACEOF | |
41824 | ||
41825 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 41826 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
41827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
41828 | fi | |
41829 | fi | |
41830 | ||
41831 | ||
41832 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
41833 | cat >>confdefs.h <<\_ACEOF | |
41834 | #define wxUSE_VALIDATORS 1 | |
41835 | _ACEOF | |
41836 | ||
41837 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
41838 | fi | |
41839 | ||
41840 | if test "$wxUSE_PALETTE" = "yes" ; then | |
41841 | cat >>confdefs.h <<\_ACEOF | |
41842 | #define wxUSE_PALETTE 1 | |
41843 | _ACEOF | |
41844 | ||
41845 | fi | |
41846 | ||
41847 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
41848 | LIBS=" -lunicows $LIBS" | |
41849 | fi | |
41850 | ||
41851 | ||
41852 | if test "$wxUSE_IMAGE" = "yes" ; then | |
41853 | cat >>confdefs.h <<\_ACEOF | |
41854 | #define wxUSE_IMAGE 1 | |
41855 | _ACEOF | |
41856 | ||
41857 | ||
41858 | if test "$wxUSE_GIF" = "yes" ; then | |
41859 | cat >>confdefs.h <<\_ACEOF | |
41860 | #define wxUSE_GIF 1 | |
41861 | _ACEOF | |
41862 | ||
41863 | fi | |
41864 | ||
41865 | if test "$wxUSE_PCX" = "yes" ; then | |
41866 | cat >>confdefs.h <<\_ACEOF | |
41867 | #define wxUSE_PCX 1 | |
41868 | _ACEOF | |
41869 | ||
41870 | fi | |
41871 | ||
41872 | if test "$wxUSE_IFF" = "yes" ; then | |
41873 | cat >>confdefs.h <<\_ACEOF | |
41874 | #define wxUSE_IFF 1 | |
41875 | _ACEOF | |
41876 | ||
41877 | fi | |
41878 | ||
41879 | if test "$wxUSE_PNM" = "yes" ; then | |
41880 | cat >>confdefs.h <<\_ACEOF | |
41881 | #define wxUSE_PNM 1 | |
41882 | _ACEOF | |
41883 | ||
41884 | fi | |
41885 | ||
41886 | if test "$wxUSE_XPM" = "yes" ; then | |
41887 | cat >>confdefs.h <<\_ACEOF | |
41888 | #define wxUSE_XPM 1 | |
41889 | _ACEOF | |
41890 | ||
41891 | fi | |
41892 | ||
41893 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
41894 | cat >>confdefs.h <<\_ACEOF | |
41895 | #define wxUSE_ICO_CUR 1 | |
41896 | _ACEOF | |
41897 | ||
41898 | fi | |
41899 | fi | |
41900 | ||
41901 | ||
41902 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
41903 | cat >>confdefs.h <<\_ACEOF | |
41904 | #define wxUSE_CHOICEDLG 1 | |
41905 | _ACEOF | |
41906 | ||
41907 | fi | |
41908 | ||
41909 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
41910 | cat >>confdefs.h <<\_ACEOF | |
41911 | #define wxUSE_COLOURDLG 1 | |
41912 | _ACEOF | |
41913 | ||
41914 | fi | |
41915 | ||
41916 | if test "$wxUSE_FILEDLG" = "yes"; then | |
41917 | cat >>confdefs.h <<\_ACEOF | |
41918 | #define wxUSE_FILEDLG 1 | |
41919 | _ACEOF | |
41920 | ||
41921 | fi | |
41922 | ||
41923 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
41924 | cat >>confdefs.h <<\_ACEOF | |
41925 | #define wxUSE_FINDREPLDLG 1 | |
41926 | _ACEOF | |
41927 | ||
41928 | fi | |
41929 | ||
41930 | if test "$wxUSE_FONTDLG" = "yes"; then | |
41931 | cat >>confdefs.h <<\_ACEOF | |
41932 | #define wxUSE_FONTDLG 1 | |
41933 | _ACEOF | |
41934 | ||
41935 | fi | |
41936 | ||
41937 | if test "$wxUSE_DIRDLG" = "yes"; then | |
41938 | if test "$wxUSE_TREECTRL" != "yes"; then | |
41939 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
41940 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
41941 | else | |
41942 | cat >>confdefs.h <<\_ACEOF | |
41943 | #define wxUSE_DIRDLG 1 | |
41944 | _ACEOF | |
41945 | ||
41946 | fi | |
41947 | fi | |
41948 | ||
41949 | if test "$wxUSE_MSGDLG" = "yes"; then | |
41950 | cat >>confdefs.h <<\_ACEOF | |
41951 | #define wxUSE_MSGDLG 1 | |
41952 | _ACEOF | |
41953 | ||
41954 | fi | |
41955 | ||
41956 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
41957 | cat >>confdefs.h <<\_ACEOF | |
41958 | #define wxUSE_NUMBERDLG 1 | |
41959 | _ACEOF | |
41960 | ||
41961 | fi | |
41962 | ||
41963 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
41964 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
41965 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
41966 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
41967 | else | |
41968 | cat >>confdefs.h <<\_ACEOF | |
41969 | #define wxUSE_PROGRESSDLG 1 | |
41970 | _ACEOF | |
41971 | ||
41972 | fi | |
41973 | fi | |
41974 | ||
41975 | if test "$wxUSE_SPLASH" = "yes"; then | |
41976 | cat >>confdefs.h <<\_ACEOF | |
41977 | #define wxUSE_SPLASH 1 | |
41978 | _ACEOF | |
41979 | ||
2057db16 | 41980 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
41981 | fi |
41982 | ||
41983 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
41984 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
41985 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
41986 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
41987 | else | |
41988 | cat >>confdefs.h <<\_ACEOF | |
41989 | #define wxUSE_STARTUP_TIPS 1 | |
41990 | _ACEOF | |
41991 | ||
41992 | fi | |
41993 | fi | |
41994 | ||
41995 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
41996 | cat >>confdefs.h <<\_ACEOF | |
41997 | #define wxUSE_TEXTDLG 1 | |
41998 | _ACEOF | |
41999 | ||
42000 | fi | |
42001 | ||
42002 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
42003 | cat >>confdefs.h <<\_ACEOF | |
42004 | #define wxUSE_WIZARDDLG 1 | |
42005 | _ACEOF | |
42006 | ||
42007 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
42008 | fi | |
42009 | ||
42010 | ||
ce756cb0 | 42011 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
42012 | if test "$wxUSE_GTK" = 1; then |
42013 | wxUSE_GSTREAMER="yes" | |
42014 | ||
ce756cb0 | 42015 | |
dae87f93 | 42016 | succeeded=no |
ce756cb0 | 42017 | |
dae87f93 RN |
42018 | if test -z "$PKG_CONFIG"; then |
42019 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
42020 | set dummy pkg-config; ac_word=$2 | |
42021 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42022 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42023 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
42024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42025 | else | |
42026 | case $PKG_CONFIG in | |
42027 | [\\/]* | ?:[\\/]*) | |
42028 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
42029 | ;; | |
42030 | *) | |
42031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42032 | for as_dir in $PATH | |
42033 | do | |
42034 | IFS=$as_save_IFS | |
42035 | test -z "$as_dir" && as_dir=. | |
42036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42037 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42038 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
42039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42040 | break 2 | |
42041 | fi | |
42042 | done | |
42043 | done | |
42044 | ||
42045 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
42046 | ;; | |
42047 | esac | |
42048 | fi | |
42049 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
42050 | ||
42051 | if test -n "$PKG_CONFIG"; then | |
42052 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
42053 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
42054 | else | |
42055 | echo "$as_me:$LINENO: result: no" >&5 | |
42056 | echo "${ECHO_T}no" >&6 | |
42057 | fi | |
42058 | ||
42059 | fi | |
42060 | ||
42061 | if test "$PKG_CONFIG" = "no" ; then | |
42062 | echo "*** The pkg-config script could not be found. Make sure it is" | |
42063 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
42064 | echo "*** to the full path to pkg-config." | |
42065 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
42066 | else | |
42067 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
42068 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
42069 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
42070 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
42071 | ||
42072 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
42073 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 42074 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 42075 | succeeded=yes |
ce756cb0 | 42076 | |
dae87f93 RN |
42077 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
42078 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
42079 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
42080 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
42081 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
42082 | ||
42083 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
42084 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
42085 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
42086 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
42087 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
42088 | else | |
42089 | GSTREAMER_CFLAGS="" | |
42090 | GSTREAMER_LIBS="" | |
42091 | ## If we have a custom action on failure, don't print errors, but | |
42092 | ## do set a variable so people can do so. | |
42093 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 42094 | |
dae87f93 RN |
42095 | fi |
42096 | ||
42097 | ||
42098 | ||
42099 | else | |
42100 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
42101 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
42102 | fi | |
42103 | fi | |
42104 | ||
42105 | if test $succeeded = yes; then | |
42106 | ||
42107 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
42108 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 42109 | |
ce756cb0 | 42110 | else |
dae87f93 RN |
42111 | |
42112 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
42113 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
42114 | wxUSE_GSTREAMER="no" | |
42115 | ||
42116 | fi | |
42117 | ||
42118 | ||
42119 | ||
42120 | ||
42121 | ||
42122 | if test "x$GST_INSPECT" == "x"; then | |
42123 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
42124 | set dummy gst-inspect; ac_word=$2 | |
42125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42127 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
42128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42129 | else | |
42130 | if test -n "$GST_INSPECT"; then | |
42131 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
42132 | else | |
42133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42134 | for as_dir in $PATH | |
42135 | do | |
42136 | IFS=$as_save_IFS | |
42137 | test -z "$as_dir" && as_dir=. | |
42138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42139 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42140 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
42141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42142 | break 2 | |
ce756cb0 | 42143 | fi |
dae87f93 RN |
42144 | done |
42145 | done | |
42146 | ||
42147 | fi | |
42148 | fi | |
42149 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
42150 | if test -n "$GST_INSPECT"; then | |
42151 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
42152 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
42153 | else | |
42154 | echo "$as_me:$LINENO: result: no" >&5 | |
42155 | echo "${ECHO_T}no" >&6 | |
42156 | fi | |
42157 | ||
42158 | fi | |
42159 | ||
42160 | if test "x$GST_INSPECT" != "x"; then | |
42161 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
42162 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
42163 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
42164 | echo "$as_me:$LINENO: result: found." >&5 | |
42165 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 42166 | |
ce756cb0 | 42167 | else |
dae87f93 RN |
42168 | echo "$as_me:$LINENO: result: not found." >&5 |
42169 | echo "${ECHO_T}not found." >&6 | |
42170 | ||
42171 | wxUSE_GSTREAMER="no" | |
42172 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
42173 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
42174 | ||
42175 | fi | |
42176 | fi | |
42177 | ||
42178 | ||
42179 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
42180 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
42181 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
42182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42183 | else | |
42184 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
42185 | /* confdefs.h. */ |
42186 | _ACEOF | |
42187 | cat confdefs.h >>conftest.$ac_ext | |
42188 | cat >>conftest.$ac_ext <<_ACEOF | |
42189 | /* end confdefs.h. */ | |
dae87f93 | 42190 | #include <gst/gst.h> |
ce756cb0 | 42191 | |
dae87f93 | 42192 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
42193 | _ACEOF |
42194 | rm -f conftest.$ac_objext | |
42195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42196 | (eval $ac_compile) 2>conftest.er1 | |
42197 | ac_status=$? | |
42198 | grep -v '^ *+' conftest.er1 >conftest.err | |
42199 | rm -f conftest.er1 | |
42200 | cat conftest.err >&5 | |
42201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42202 | (exit $ac_status); } && | |
6ebeb4c7 | 42203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
42204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42205 | (eval $ac_try) 2>&5 | |
42206 | ac_status=$? | |
42207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42208 | (exit $ac_status); }; } && | |
42209 | { ac_try='test -s conftest.$ac_objext' | |
42210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42211 | (eval $ac_try) 2>&5 | |
42212 | ac_status=$? | |
42213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42214 | (exit $ac_status); }; }; then | |
dae87f93 | 42215 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
42216 | else |
42217 | echo "$as_me: failed program was:" >&5 | |
42218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42219 | ||
dae87f93 | 42220 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
42221 | fi |
42222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
42223 | fi |
42224 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
42225 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
42226 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
42227 | : | |
42228 | else | |
ce756cb0 | 42229 | |
dae87f93 RN |
42230 | wxUSE_GSTREAMER="no" |
42231 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
42232 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 42233 | |
dae87f93 | 42234 | fi |
ce756cb0 | 42235 | |
dae87f93 RN |
42236 | |
42237 | ||
42238 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
42239 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
42240 | ||
0ad5d837 VZ |
42241 | ac_find_libraries= |
42242 | for ac_dir in $SEARCH_LIB; | |
ce756cb0 | 42243 | do |
3eca31dc | 42244 | for ac_extension in a so sl dylib dll.a; do |
ce756cb0 RN |
42245 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then |
42246 | ac_find_libraries=$ac_dir | |
42247 | break 2 | |
42248 | fi | |
42249 | done | |
42250 | done | |
42251 | ||
ce756cb0 | 42252 | |
dae87f93 RN |
42253 | if test "$ac_find_libraries" = "" ; then |
42254 | echo "$as_me:$LINENO: result: no" >&5 | |
42255 | echo "${ECHO_T}no" >&6 | |
42256 | wxUSE_GSTREAMER="no" | |
42257 | else | |
42258 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 42259 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 42260 | fi |
ce756cb0 | 42261 | |
dae87f93 RN |
42262 | if test "$wxUSE_GSTREAMER" = "yes"; then |
42263 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
42264 | #define wxUSE_GSTREAMER 1 |
42265 | _ACEOF | |
42266 | ||
dae87f93 RN |
42267 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
42268 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
42269 | fi |
42270 | fi | |
42271 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
42272 | cat >>confdefs.h <<\_ACEOF | |
42273 | #define wxUSE_MEDIACTRL 1 | |
42274 | _ACEOF | |
42275 | ||
42276 | fi | |
42277 | ||
42278 | ||
a848cd7e SC |
42279 | if test "$cross_compiling" = "yes"; then |
42280 | OSINFO="\"$host\"" | |
42281 | else | |
42282 | OSINFO=`uname -s -r -m` | |
42283 | OSINFO="\"$OSINFO\"" | |
42284 | fi | |
42285 | ||
42286 | cat >>confdefs.h <<_ACEOF | |
42287 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
42288 | _ACEOF | |
42289 | ||
42290 | ||
42291 | ||
42292 | if test "x$prefix" != "xNONE"; then | |
42293 | wxPREFIX=$prefix | |
42294 | else | |
42295 | wxPREFIX=$ac_default_prefix | |
42296 | fi | |
42297 | ||
42298 | cat >>confdefs.h <<_ACEOF | |
42299 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
42300 | _ACEOF | |
42301 | ||
42302 | ||
a848cd7e SC |
42303 | |
42304 | ||
42305 | CORE_BASE_LIBS="net base" | |
42306 | CORE_GUI_LIBS="adv core" | |
42307 | ||
42308 | if test "$wxUSE_XML" = "yes" ; then | |
42309 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
42310 | fi | |
42311 | if test "$wxUSE_ODBC" != "no" ; then | |
42312 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
42313 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
42314 | fi | |
42315 | if test "$wxUSE_HTML" = "yes" ; then | |
42316 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
42317 | fi | |
61639efb VZ |
42318 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
42319 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
42320 | fi | |
9a8f0513 VS |
42321 | if test "$wxUSE_XRC" = "yes" ; then |
42322 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
42323 | fi | |
a848cd7e SC |
42324 | |
42325 | if test "$wxUSE_GUI" != "yes"; then | |
42326 | CORE_GUI_LIBS="" | |
42327 | fi | |
42328 | ||
42329 | ||
42330 | ||
42331 | ||
42332 | ||
42333 | ||
42334 | ||
42335 | ||
42336 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 42337 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
42338 | if test "$USE_DARWIN" = 1; then |
42339 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
42340 | else | |
42341 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
42342 | fi | |
07bea8f0 | 42343 | fi |
5dcf30a0 | 42344 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
42345 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
42346 | else | |
42347 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 42348 | fi |
a848cd7e SC |
42349 | fi |
42350 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 42351 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
42352 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
42353 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
42354 | fi | |
a848cd7e | 42355 | fi |
19b27e78 MW |
42356 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
42357 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
42358 | fi | |
a848cd7e SC |
42359 | |
42360 | ||
42361 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
42362 | ||
42363 | have_cos=0 | |
42364 | have_floor=0 | |
42365 | ||
42366 | for ac_func in cos | |
42367 | do | |
42368 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42369 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42370 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42371 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42373 | else | |
42374 | cat >conftest.$ac_ext <<_ACEOF | |
42375 | /* confdefs.h. */ | |
42376 | _ACEOF | |
42377 | cat confdefs.h >>conftest.$ac_ext | |
42378 | cat >>conftest.$ac_ext <<_ACEOF | |
42379 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42380 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42381 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42382 | #define $ac_func innocuous_$ac_func | |
42383 | ||
a848cd7e SC |
42384 | /* System header to define __stub macros and hopefully few prototypes, |
42385 | which can conflict with char $ac_func (); below. | |
42386 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42387 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42388 | |
a848cd7e SC |
42389 | #ifdef __STDC__ |
42390 | # include <limits.h> | |
42391 | #else | |
42392 | # include <assert.h> | |
42393 | #endif | |
ac1cb8d3 VS |
42394 | |
42395 | #undef $ac_func | |
42396 | ||
a848cd7e SC |
42397 | /* Override any gcc2 internal prototype to avoid an error. */ |
42398 | #ifdef __cplusplus | |
42399 | extern "C" | |
42400 | { | |
42401 | #endif | |
42402 | /* We use char because int might match the return type of a gcc2 | |
42403 | builtin and then its argument prototype would still apply. */ | |
42404 | char $ac_func (); | |
42405 | /* The GNU C library defines this for functions which it implements | |
42406 | to always fail with ENOSYS. Some functions are actually named | |
42407 | something starting with __ and the normal name is an alias. */ | |
42408 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42409 | choke me | |
42410 | #else | |
42411 | char (*f) () = $ac_func; | |
42412 | #endif | |
42413 | #ifdef __cplusplus | |
42414 | } | |
42415 | #endif | |
42416 | ||
42417 | int | |
42418 | main () | |
42419 | { | |
42420 | return f != $ac_func; | |
42421 | ; | |
42422 | return 0; | |
42423 | } | |
42424 | _ACEOF | |
42425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42427 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42428 | ac_status=$? |
ac1cb8d3 VS |
42429 | grep -v '^ *+' conftest.er1 >conftest.err |
42430 | rm -f conftest.er1 | |
42431 | cat conftest.err >&5 | |
a848cd7e SC |
42432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42433 | (exit $ac_status); } && | |
6ebeb4c7 | 42434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42436 | (eval $ac_try) 2>&5 | |
42437 | ac_status=$? | |
42438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42439 | (exit $ac_status); }; } && | |
42440 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42442 | (eval $ac_try) 2>&5 | |
42443 | ac_status=$? | |
42444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42445 | (exit $ac_status); }; }; then | |
42446 | eval "$as_ac_var=yes" | |
42447 | else | |
42448 | echo "$as_me: failed program was:" >&5 | |
42449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42450 | ||
42451 | eval "$as_ac_var=no" | |
42452 | fi | |
ac1cb8d3 VS |
42453 | rm -f conftest.err conftest.$ac_objext \ |
42454 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42455 | fi |
42456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42457 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42458 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42459 | cat >>confdefs.h <<_ACEOF | |
42460 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42461 | _ACEOF | |
42462 | have_cos=1 | |
42463 | fi | |
42464 | done | |
42465 | ||
42466 | ||
42467 | for ac_func in floor | |
42468 | do | |
42469 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42470 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42471 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42472 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42474 | else | |
42475 | cat >conftest.$ac_ext <<_ACEOF | |
42476 | /* confdefs.h. */ | |
42477 | _ACEOF | |
42478 | cat confdefs.h >>conftest.$ac_ext | |
42479 | cat >>conftest.$ac_ext <<_ACEOF | |
42480 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42481 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42482 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42483 | #define $ac_func innocuous_$ac_func | |
42484 | ||
a848cd7e SC |
42485 | /* System header to define __stub macros and hopefully few prototypes, |
42486 | which can conflict with char $ac_func (); below. | |
42487 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42488 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42489 | |
a848cd7e SC |
42490 | #ifdef __STDC__ |
42491 | # include <limits.h> | |
42492 | #else | |
42493 | # include <assert.h> | |
42494 | #endif | |
ac1cb8d3 VS |
42495 | |
42496 | #undef $ac_func | |
42497 | ||
a848cd7e SC |
42498 | /* Override any gcc2 internal prototype to avoid an error. */ |
42499 | #ifdef __cplusplus | |
42500 | extern "C" | |
42501 | { | |
42502 | #endif | |
42503 | /* We use char because int might match the return type of a gcc2 | |
42504 | builtin and then its argument prototype would still apply. */ | |
42505 | char $ac_func (); | |
42506 | /* The GNU C library defines this for functions which it implements | |
42507 | to always fail with ENOSYS. Some functions are actually named | |
42508 | something starting with __ and the normal name is an alias. */ | |
42509 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42510 | choke me | |
42511 | #else | |
42512 | char (*f) () = $ac_func; | |
42513 | #endif | |
42514 | #ifdef __cplusplus | |
42515 | } | |
42516 | #endif | |
42517 | ||
42518 | int | |
42519 | main () | |
42520 | { | |
42521 | return f != $ac_func; | |
42522 | ; | |
42523 | return 0; | |
42524 | } | |
42525 | _ACEOF | |
42526 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42528 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42529 | ac_status=$? |
ac1cb8d3 VS |
42530 | grep -v '^ *+' conftest.er1 >conftest.err |
42531 | rm -f conftest.er1 | |
42532 | cat conftest.err >&5 | |
a848cd7e SC |
42533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42534 | (exit $ac_status); } && | |
6ebeb4c7 | 42535 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42537 | (eval $ac_try) 2>&5 | |
42538 | ac_status=$? | |
42539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42540 | (exit $ac_status); }; } && | |
42541 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42543 | (eval $ac_try) 2>&5 | |
42544 | ac_status=$? | |
42545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42546 | (exit $ac_status); }; }; then | |
42547 | eval "$as_ac_var=yes" | |
42548 | else | |
42549 | echo "$as_me: failed program was:" >&5 | |
42550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42551 | ||
42552 | eval "$as_ac_var=no" | |
42553 | fi | |
ac1cb8d3 VS |
42554 | rm -f conftest.err conftest.$ac_objext \ |
42555 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42556 | fi |
42557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42558 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42559 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42560 | cat >>confdefs.h <<_ACEOF | |
42561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42562 | _ACEOF | |
42563 | have_floor=1 | |
42564 | fi | |
42565 | done | |
42566 | ||
42567 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
42568 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
42569 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
42570 | echo "$as_me:$LINENO: result: yes" >&5 | |
42571 | echo "${ECHO_T}yes" >&6 | |
42572 | else | |
42573 | echo "$as_me:$LINENO: result: no" >&5 | |
42574 | echo "${ECHO_T}no" >&6 | |
42575 | LIBS="$LIBS -lm" | |
42576 | # use different functions to avoid configure caching | |
42577 | have_sin=0 | |
42578 | have_ceil=0 | |
42579 | ||
42580 | for ac_func in sin | |
42581 | do | |
42582 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42583 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42584 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42585 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42587 | else | |
42588 | cat >conftest.$ac_ext <<_ACEOF | |
42589 | /* confdefs.h. */ | |
42590 | _ACEOF | |
42591 | cat confdefs.h >>conftest.$ac_ext | |
42592 | cat >>conftest.$ac_ext <<_ACEOF | |
42593 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42594 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42595 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42596 | #define $ac_func innocuous_$ac_func | |
42597 | ||
a848cd7e SC |
42598 | /* System header to define __stub macros and hopefully few prototypes, |
42599 | which can conflict with char $ac_func (); below. | |
42600 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42601 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42602 | |
a848cd7e SC |
42603 | #ifdef __STDC__ |
42604 | # include <limits.h> | |
42605 | #else | |
42606 | # include <assert.h> | |
42607 | #endif | |
ac1cb8d3 VS |
42608 | |
42609 | #undef $ac_func | |
42610 | ||
a848cd7e SC |
42611 | /* Override any gcc2 internal prototype to avoid an error. */ |
42612 | #ifdef __cplusplus | |
42613 | extern "C" | |
42614 | { | |
42615 | #endif | |
42616 | /* We use char because int might match the return type of a gcc2 | |
42617 | builtin and then its argument prototype would still apply. */ | |
42618 | char $ac_func (); | |
42619 | /* The GNU C library defines this for functions which it implements | |
42620 | to always fail with ENOSYS. Some functions are actually named | |
42621 | something starting with __ and the normal name is an alias. */ | |
42622 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42623 | choke me | |
42624 | #else | |
42625 | char (*f) () = $ac_func; | |
42626 | #endif | |
42627 | #ifdef __cplusplus | |
42628 | } | |
42629 | #endif | |
42630 | ||
42631 | int | |
42632 | main () | |
42633 | { | |
42634 | return f != $ac_func; | |
42635 | ; | |
42636 | return 0; | |
42637 | } | |
42638 | _ACEOF | |
42639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42641 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42642 | ac_status=$? |
ac1cb8d3 VS |
42643 | grep -v '^ *+' conftest.er1 >conftest.err |
42644 | rm -f conftest.er1 | |
42645 | cat conftest.err >&5 | |
a848cd7e SC |
42646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42647 | (exit $ac_status); } && | |
6ebeb4c7 | 42648 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42650 | (eval $ac_try) 2>&5 | |
42651 | ac_status=$? | |
42652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42653 | (exit $ac_status); }; } && | |
42654 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42656 | (eval $ac_try) 2>&5 | |
42657 | ac_status=$? | |
42658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42659 | (exit $ac_status); }; }; then | |
42660 | eval "$as_ac_var=yes" | |
42661 | else | |
42662 | echo "$as_me: failed program was:" >&5 | |
42663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42664 | ||
42665 | eval "$as_ac_var=no" | |
42666 | fi | |
ac1cb8d3 VS |
42667 | rm -f conftest.err conftest.$ac_objext \ |
42668 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42669 | fi |
42670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42671 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42672 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42673 | cat >>confdefs.h <<_ACEOF | |
42674 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42675 | _ACEOF | |
42676 | have_sin=1 | |
42677 | fi | |
42678 | done | |
42679 | ||
42680 | ||
42681 | for ac_func in ceil | |
42682 | do | |
42683 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42684 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42685 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42686 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42688 | else | |
42689 | cat >conftest.$ac_ext <<_ACEOF | |
42690 | /* confdefs.h. */ | |
42691 | _ACEOF | |
42692 | cat confdefs.h >>conftest.$ac_ext | |
42693 | cat >>conftest.$ac_ext <<_ACEOF | |
42694 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42695 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42696 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42697 | #define $ac_func innocuous_$ac_func | |
42698 | ||
a848cd7e SC |
42699 | /* System header to define __stub macros and hopefully few prototypes, |
42700 | which can conflict with char $ac_func (); below. | |
42701 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42702 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42703 | |
a848cd7e SC |
42704 | #ifdef __STDC__ |
42705 | # include <limits.h> | |
42706 | #else | |
42707 | # include <assert.h> | |
42708 | #endif | |
ac1cb8d3 VS |
42709 | |
42710 | #undef $ac_func | |
42711 | ||
a848cd7e SC |
42712 | /* Override any gcc2 internal prototype to avoid an error. */ |
42713 | #ifdef __cplusplus | |
42714 | extern "C" | |
42715 | { | |
42716 | #endif | |
42717 | /* We use char because int might match the return type of a gcc2 | |
42718 | builtin and then its argument prototype would still apply. */ | |
42719 | char $ac_func (); | |
42720 | /* The GNU C library defines this for functions which it implements | |
42721 | to always fail with ENOSYS. Some functions are actually named | |
42722 | something starting with __ and the normal name is an alias. */ | |
42723 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42724 | choke me | |
42725 | #else | |
42726 | char (*f) () = $ac_func; | |
42727 | #endif | |
42728 | #ifdef __cplusplus | |
42729 | } | |
42730 | #endif | |
42731 | ||
42732 | int | |
42733 | main () | |
42734 | { | |
42735 | return f != $ac_func; | |
42736 | ; | |
42737 | return 0; | |
42738 | } | |
42739 | _ACEOF | |
42740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42742 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42743 | ac_status=$? |
ac1cb8d3 VS |
42744 | grep -v '^ *+' conftest.er1 >conftest.err |
42745 | rm -f conftest.er1 | |
42746 | cat conftest.err >&5 | |
a848cd7e SC |
42747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42748 | (exit $ac_status); } && | |
6ebeb4c7 | 42749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42751 | (eval $ac_try) 2>&5 | |
42752 | ac_status=$? | |
42753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42754 | (exit $ac_status); }; } && | |
42755 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42757 | (eval $ac_try) 2>&5 | |
42758 | ac_status=$? | |
42759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42760 | (exit $ac_status); }; }; then | |
42761 | eval "$as_ac_var=yes" | |
42762 | else | |
42763 | echo "$as_me: failed program was:" >&5 | |
42764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42765 | ||
42766 | eval "$as_ac_var=no" | |
42767 | fi | |
ac1cb8d3 VS |
42768 | rm -f conftest.err conftest.$ac_objext \ |
42769 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42770 | fi |
42771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42772 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42773 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42774 | cat >>confdefs.h <<_ACEOF | |
42775 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42776 | _ACEOF | |
42777 | have_ceil=1 | |
42778 | fi | |
42779 | done | |
42780 | ||
42781 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
42782 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
42783 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
42784 | echo "$as_me:$LINENO: result: yes" >&5 | |
42785 | echo "${ECHO_T}yes" >&6 | |
42786 | else | |
42787 | echo "$as_me:$LINENO: result: no" >&5 | |
42788 | echo "${ECHO_T}no" >&6 | |
42789 | # not sure we should warn the user, crash, etc. | |
42790 | fi | |
42791 | fi | |
42792 | ||
42793 | if test "$wxUSE_GUI" = "yes"; then | |
42794 | ||
42795 | ||
8bce5cda MW |
42796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
42797 | dynamic erase event exec font image minimal mobile \ | |
42798 | mobile/wxedit mobile/styles propsize render \ | |
42799 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
42800 | |
42801 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
42802 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
42803 | fi | |
0b78747f | 42804 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
42805 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
42806 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
42807 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
42808 | fi | |
42809 | fi | |
42810 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
42811 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 42812 | fi |
a848cd7e SC |
42813 | else |
42814 | SAMPLES_SUBDIRS="console" | |
42815 | fi | |
42816 | ||
42817 | ||
ceec2216 | 42818 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
42819 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
42820 | ||
48f625bc | 42821 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
42822 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
42823 | elif test "$GCC" = yes ; then | |
42824 | CWARNINGS="-Wall -Wundef" | |
42825 | fi | |
42826 | ||
48f625bc | 42827 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 42828 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
42829 | elif test "$GXX" = yes ; then |
42830 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 42831 | fi |
a848cd7e SC |
42832 | |
42833 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
42834 | ||
0c3c69fc | 42835 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 42836 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 42837 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 42838 | |
95986553 DE |
42839 | if test "x$MWCC" = "xyes"; then |
42840 | ||
42841 | CC="$CC -cwd source -I-" | |
42842 | CXX="$CXX -cwd source -I-" | |
42843 | fi | |
42844 | ||
a848cd7e | 42845 | |
0c3c69fc | 42846 | LIBS=`echo $LIBS` |
a848cd7e SC |
42847 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
42848 | EXTRALIBS_XML="$EXPAT_LINK" | |
42849 | EXTRALIBS_HTML="$MSPACK_LINK" | |
42850 | EXTRALIBS_ODBC="$ODBC_LINK" | |
42851 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 42852 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
42853 | fi |
42854 | if test "$wxUSE_OPENGL" = "yes"; then | |
42855 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
42856 | fi | |
42857 | ||
42858 | LDFLAGS="$LDFLAGS $PROFILE" | |
42859 | ||
42860 | if test "$wxUSE_GTK" = 1; then | |
42861 | WXCONFIG_INCLUDE= | |
42862 | else | |
42863 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
42864 | fi | |
42865 | ||
42866 | WXCONFIG_EXTRALIBS="$LIBS" | |
42867 | ||
42868 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 42869 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
42870 | fi |
42871 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 42872 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
42873 | fi |
42874 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 42875 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
42876 | fi |
42877 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 42878 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
42879 | fi |
42880 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 42881 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
42882 | fi |
42883 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 42884 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
42885 | fi |
42886 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 42887 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
42888 | fi |
42889 | ||
42890 | for i in $wxconfig_3rdparty ; do | |
74802184 | 42891 | WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS" |
a848cd7e SC |
42892 | done |
42893 | ||
42894 | ||
42895 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
42896 | WXUNIV=1 | |
42897 | else | |
42898 | WXUNIV=0 | |
42899 | fi | |
42900 | ||
42901 | ||
42902 | ||
42903 | ||
42904 | ||
42905 | ||
42906 | ||
42907 | ||
42908 | ||
42909 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
42910 | MONOLITHIC=1 | |
42911 | else | |
42912 | MONOLITHIC=0 | |
42913 | fi | |
42914 | ||
42915 | if test $wxUSE_PLUGINS = "yes" ; then | |
42916 | USE_PLUGINS=1 | |
42917 | else | |
42918 | USE_PLUGINS=0 | |
42919 | fi | |
42920 | ||
42921 | if test $wxUSE_ODBC != "no" ; then | |
42922 | USE_ODBC=1 | |
42923 | else | |
42924 | USE_ODBC=0 | |
42925 | fi | |
42926 | ||
16358932 VZ |
42927 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
42928 | USE_QA=1 | |
42929 | else | |
42930 | USE_QA=0 | |
42931 | fi | |
42932 | ||
a848cd7e SC |
42933 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
42934 | OFFICIAL_BUILD=1 | |
42935 | else | |
42936 | OFFICIAL_BUILD=0 | |
42937 | fi | |
42938 | ||
42939 | ||
42940 | ||
42941 | ||
42942 | ||
42943 | ||
42944 | ||
42945 | ||
42946 | ||
42947 | ||
42948 | ||
42949 | ||
42950 | ||
42951 | ||
42952 | ||
42953 | ||
42954 | ||
42955 | ||
42956 | ||
ceec2216 | 42957 | |
d1c38808 | 42958 | |
a848cd7e SC |
42959 | |
42960 | ||
42961 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
42962 | ||
42963 | ||
42964 | ||
42965 | ||
42966 | ||
42967 | ||
42968 | ||
42969 | ||
4d4ff94c VZ |
42970 | case "$TOOLKIT" in |
42971 | GTK) | |
42972 | TOOLKIT_USER="GTK+" | |
42973 | if test "$WXGTK20" = 1; then | |
42974 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
42975 | fi | |
9a8f0513 | 42976 | ;; |
4d4ff94c VZ |
42977 | |
42978 | *) | |
42979 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 42980 | ;; |
4d4ff94c | 42981 | esac |
a848cd7e | 42982 | |
fb00f58d JS |
42983 | if test "$wxUSE_WINE" = "yes"; then |
42984 | BAKEFILE_FORCE_PLATFORM=win32 | |
42985 | fi | |
42986 | ||
9a8f0513 | 42987 | |
1e9e8aba DE |
42988 | |
42989 | ||
a848cd7e SC |
42990 | if test "x$BAKEFILE_HOST" = "x"; then |
42991 | BAKEFILE_HOST="${host}" | |
42992 | fi | |
42993 | ||
42994 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
42995 | ||
42996 | if test -n "$ac_tool_prefix"; then | |
42997 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
42998 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
42999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43001 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
43002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43003 | else | |
43004 | if test -n "$RANLIB"; then | |
43005 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
43006 | else | |
43007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43008 | for as_dir in $PATH | |
43009 | do | |
43010 | IFS=$as_save_IFS | |
43011 | test -z "$as_dir" && as_dir=. | |
43012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43014 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
43015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43016 | break 2 | |
43017 | fi | |
43018 | done | |
43019 | done | |
43020 | ||
43021 | fi | |
43022 | fi | |
43023 | RANLIB=$ac_cv_prog_RANLIB | |
43024 | if test -n "$RANLIB"; then | |
43025 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
43026 | echo "${ECHO_T}$RANLIB" >&6 | |
43027 | else | |
43028 | echo "$as_me:$LINENO: result: no" >&5 | |
43029 | echo "${ECHO_T}no" >&6 | |
43030 | fi | |
43031 | ||
43032 | fi | |
43033 | if test -z "$ac_cv_prog_RANLIB"; then | |
43034 | ac_ct_RANLIB=$RANLIB | |
43035 | # Extract the first word of "ranlib", so it can be a program name with args. | |
43036 | set dummy ranlib; ac_word=$2 | |
43037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43039 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
43040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43041 | else | |
43042 | if test -n "$ac_ct_RANLIB"; then | |
43043 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
43044 | else | |
43045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43046 | for as_dir in $PATH | |
43047 | do | |
43048 | IFS=$as_save_IFS | |
43049 | test -z "$as_dir" && as_dir=. | |
43050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43051 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43052 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
43053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43054 | break 2 | |
43055 | fi | |
43056 | done | |
43057 | done | |
43058 | ||
43059 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
43060 | fi | |
43061 | fi | |
43062 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
43063 | if test -n "$ac_ct_RANLIB"; then | |
43064 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
43065 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
43066 | else | |
43067 | echo "$as_me:$LINENO: result: no" >&5 | |
43068 | echo "${ECHO_T}no" >&6 | |
43069 | fi | |
43070 | ||
43071 | RANLIB=$ac_ct_RANLIB | |
43072 | else | |
43073 | RANLIB="$ac_cv_prog_RANLIB" | |
43074 | fi | |
43075 | ||
43076 | # Find a good install program. We prefer a C program (faster), | |
43077 | # so one script is as good as another. But avoid the broken or | |
43078 | # incompatible versions: | |
43079 | # SysV /etc/install, /usr/sbin/install | |
43080 | # SunOS /usr/etc/install | |
43081 | # IRIX /sbin/install | |
43082 | # AIX /bin/install | |
43083 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
43084 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
43085 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
43086 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 43087 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
43088 | # ./install, which can be erroneously created by make from ./install.sh. |
43089 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
43090 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
43091 | if test -z "$INSTALL"; then | |
43092 | if test "${ac_cv_path_install+set}" = set; then | |
43093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43094 | else | |
43095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43096 | for as_dir in $PATH | |
43097 | do | |
43098 | IFS=$as_save_IFS | |
43099 | test -z "$as_dir" && as_dir=. | |
43100 | # Account for people who put trailing slashes in PATH elements. | |
43101 | case $as_dir/ in | |
43102 | ./ | .// | /cC/* | \ | |
43103 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 43104 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
43105 | /usr/ucb/* ) ;; |
43106 | *) | |
43107 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
43108 | # Don't use installbsd from OSF since it installs stuff as root | |
43109 | # by default. | |
43110 | for ac_prog in ginstall scoinst install; do | |
43111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
43112 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
43113 | if test $ac_prog = install && | |
43114 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
43115 | # AIX install. It has an incompatible calling convention. | |
43116 | : | |
43117 | elif test $ac_prog = install && | |
43118 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
43119 | # program-specific install script used by HP pwplus--don't use. | |
43120 | : | |
43121 | else | |
43122 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
43123 | break 3 | |
43124 | fi | |
43125 | fi | |
a848cd7e SC |
43126 | done |
43127 | done | |
43128 | ;; | |
43129 | esac | |
43130 | done | |
43131 | ||
43132 | ||
43133 | fi | |
43134 | if test "${ac_cv_path_install+set}" = set; then | |
43135 | INSTALL=$ac_cv_path_install | |
43136 | else | |
43137 | # As a last resort, use the slow shell script. We don't cache a | |
43138 | # path for INSTALL within a source directory, because that will | |
43139 | # break other packages using the cache if that directory is | |
43140 | # removed, or if the path is relative. | |
43141 | INSTALL=$ac_install_sh | |
43142 | fi | |
43143 | fi | |
43144 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
43145 | echo "${ECHO_T}$INSTALL" >&6 | |
43146 | ||
43147 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
43148 | # It thinks the first close brace ends the variable substitution. | |
43149 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
43150 | ||
43151 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
43152 | ||
43153 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
43154 | ||
43155 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
43156 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
43157 | LN_S=$as_ln_s | |
43158 | if test "$LN_S" = "ln -s"; then | |
43159 | echo "$as_me:$LINENO: result: yes" >&5 | |
43160 | echo "${ECHO_T}yes" >&6 | |
43161 | else | |
43162 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
43163 | echo "${ECHO_T}no, using $LN_S" >&6 | |
43164 | fi | |
43165 | ||
43166 | ||
43167 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
43168 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 43169 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
43170 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
43171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43172 | else | |
43173 | cat >conftest.make <<\_ACEOF | |
43174 | all: | |
43175 | @echo 'ac_maketemp="$(MAKE)"' | |
43176 | _ACEOF | |
43177 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
43178 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
43179 | if test -n "$ac_maketemp"; then | |
43180 | eval ac_cv_prog_make_${ac_make}_set=yes | |
43181 | else | |
43182 | eval ac_cv_prog_make_${ac_make}_set=no | |
43183 | fi | |
43184 | rm -f conftest.make | |
43185 | fi | |
43186 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
43187 | echo "$as_me:$LINENO: result: yes" >&5 | |
43188 | echo "${ECHO_T}yes" >&6 | |
43189 | SET_MAKE= | |
43190 | else | |
43191 | echo "$as_me:$LINENO: result: no" >&5 | |
43192 | echo "${ECHO_T}no" >&6 | |
43193 | SET_MAKE="MAKE=${MAKE-make}" | |
43194 | fi | |
43195 | ||
43196 | ||
43197 | ||
43198 | if test -n "$ac_tool_prefix"; then | |
43199 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
43200 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
43201 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43202 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43203 | if test "${ac_cv_prog_AR+set}" = set; then | |
43204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43205 | else | |
43206 | if test -n "$AR"; then | |
43207 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
43208 | else | |
43209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43210 | for as_dir in $PATH | |
43211 | do | |
43212 | IFS=$as_save_IFS | |
43213 | test -z "$as_dir" && as_dir=. | |
43214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43215 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43216 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
43217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43218 | break 2 | |
43219 | fi | |
43220 | done | |
43221 | done | |
43222 | ||
43223 | fi | |
43224 | fi | |
43225 | AR=$ac_cv_prog_AR | |
43226 | if test -n "$AR"; then | |
43227 | echo "$as_me:$LINENO: result: $AR" >&5 | |
43228 | echo "${ECHO_T}$AR" >&6 | |
43229 | else | |
43230 | echo "$as_me:$LINENO: result: no" >&5 | |
43231 | echo "${ECHO_T}no" >&6 | |
43232 | fi | |
43233 | ||
43234 | fi | |
43235 | if test -z "$ac_cv_prog_AR"; then | |
43236 | ac_ct_AR=$AR | |
43237 | # Extract the first word of "ar", so it can be a program name with args. | |
43238 | set dummy ar; ac_word=$2 | |
43239 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43241 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
43242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43243 | else | |
43244 | if test -n "$ac_ct_AR"; then | |
43245 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
43246 | else | |
43247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43248 | for as_dir in $PATH | |
43249 | do | |
43250 | IFS=$as_save_IFS | |
43251 | test -z "$as_dir" && as_dir=. | |
43252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43253 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43254 | ac_cv_prog_ac_ct_AR="ar" | |
43255 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43256 | break 2 | |
43257 | fi | |
43258 | done | |
43259 | done | |
43260 | ||
43261 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
43262 | fi | |
43263 | fi | |
43264 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
43265 | if test -n "$ac_ct_AR"; then | |
43266 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
43267 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
43268 | else | |
43269 | echo "$as_me:$LINENO: result: no" >&5 | |
43270 | echo "${ECHO_T}no" >&6 | |
43271 | fi | |
43272 | ||
43273 | AR=$ac_ct_AR | |
43274 | else | |
43275 | AR="$ac_cv_prog_AR" | |
43276 | fi | |
43277 | ||
43278 | if test -n "$ac_tool_prefix"; then | |
43279 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
43280 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
43281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43283 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
43284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43285 | else | |
43286 | if test -n "$STRIP"; then | |
43287 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
43288 | else | |
43289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43290 | for as_dir in $PATH | |
43291 | do | |
43292 | IFS=$as_save_IFS | |
43293 | test -z "$as_dir" && as_dir=. | |
43294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43296 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
43297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43298 | break 2 | |
43299 | fi | |
43300 | done | |
43301 | done | |
43302 | ||
43303 | fi | |
43304 | fi | |
43305 | STRIP=$ac_cv_prog_STRIP | |
43306 | if test -n "$STRIP"; then | |
43307 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
43308 | echo "${ECHO_T}$STRIP" >&6 | |
43309 | else | |
43310 | echo "$as_me:$LINENO: result: no" >&5 | |
43311 | echo "${ECHO_T}no" >&6 | |
43312 | fi | |
43313 | ||
43314 | fi | |
43315 | if test -z "$ac_cv_prog_STRIP"; then | |
43316 | ac_ct_STRIP=$STRIP | |
43317 | # Extract the first word of "strip", so it can be a program name with args. | |
43318 | set dummy strip; ac_word=$2 | |
43319 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43321 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
43322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43323 | else | |
43324 | if test -n "$ac_ct_STRIP"; then | |
43325 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
43326 | else | |
43327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43328 | for as_dir in $PATH | |
43329 | do | |
43330 | IFS=$as_save_IFS | |
43331 | test -z "$as_dir" && as_dir=. | |
43332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43333 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43334 | ac_cv_prog_ac_ct_STRIP="strip" | |
43335 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43336 | break 2 | |
43337 | fi | |
43338 | done | |
43339 | done | |
43340 | ||
43341 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
43342 | fi | |
43343 | fi | |
43344 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
43345 | if test -n "$ac_ct_STRIP"; then | |
43346 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
43347 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
43348 | else | |
43349 | echo "$as_me:$LINENO: result: no" >&5 | |
43350 | echo "${ECHO_T}no" >&6 | |
43351 | fi | |
43352 | ||
43353 | STRIP=$ac_ct_STRIP | |
43354 | else | |
43355 | STRIP="$ac_cv_prog_STRIP" | |
43356 | fi | |
43357 | ||
43358 | if test -n "$ac_tool_prefix"; then | |
43359 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
43360 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
43361 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43362 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43363 | if test "${ac_cv_prog_NM+set}" = set; then | |
43364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43365 | else | |
43366 | if test -n "$NM"; then | |
43367 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
43368 | else | |
43369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43370 | for as_dir in $PATH | |
43371 | do | |
43372 | IFS=$as_save_IFS | |
43373 | test -z "$as_dir" && as_dir=. | |
43374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43375 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43376 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
43377 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43378 | break 2 | |
43379 | fi | |
43380 | done | |
43381 | done | |
43382 | ||
43383 | fi | |
43384 | fi | |
43385 | NM=$ac_cv_prog_NM | |
43386 | if test -n "$NM"; then | |
43387 | echo "$as_me:$LINENO: result: $NM" >&5 | |
43388 | echo "${ECHO_T}$NM" >&6 | |
43389 | else | |
43390 | echo "$as_me:$LINENO: result: no" >&5 | |
43391 | echo "${ECHO_T}no" >&6 | |
43392 | fi | |
43393 | ||
43394 | fi | |
43395 | if test -z "$ac_cv_prog_NM"; then | |
43396 | ac_ct_NM=$NM | |
43397 | # Extract the first word of "nm", so it can be a program name with args. | |
43398 | set dummy nm; ac_word=$2 | |
43399 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43401 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
43402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43403 | else | |
43404 | if test -n "$ac_ct_NM"; then | |
43405 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
43406 | else | |
43407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43408 | for as_dir in $PATH | |
43409 | do | |
43410 | IFS=$as_save_IFS | |
43411 | test -z "$as_dir" && as_dir=. | |
43412 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43413 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43414 | ac_cv_prog_ac_ct_NM="nm" | |
43415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43416 | break 2 | |
43417 | fi | |
43418 | done | |
43419 | done | |
43420 | ||
43421 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
43422 | fi | |
43423 | fi | |
43424 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
43425 | if test -n "$ac_ct_NM"; then | |
43426 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
43427 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
43428 | else | |
43429 | echo "$as_me:$LINENO: result: no" >&5 | |
43430 | echo "${ECHO_T}no" >&6 | |
43431 | fi | |
43432 | ||
43433 | NM=$ac_ct_NM | |
43434 | else | |
43435 | NM="$ac_cv_prog_NM" | |
43436 | fi | |
43437 | ||
43438 | ||
43439 | case ${BAKEFILE_HOST} in | |
43440 | *-hp-hpux* ) | |
1e9e8aba | 43441 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
43442 | ;; |
43443 | *) INSTALL_DIR="$INSTALL -d" | |
43444 | ;; | |
43445 | esac | |
43446 | ||
43447 | ||
43448 | LDFLAGS_GUI= | |
43449 | case ${BAKEFILE_HOST} in | |
43450 | *-*-cygwin* | *-*-mingw32* ) | |
43451 | LDFLAGS_GUI="-mwindows" | |
43452 | esac | |
43453 | ||
43454 | ||
43455 | fi | |
43456 | ||
43457 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
43458 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
43459 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
43460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43461 | else | |
43462 | ||
43463 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
43464 | egrep -s GNU > /dev/null); then | |
43465 | bakefile_cv_prog_makeisgnu="yes" | |
43466 | else | |
43467 | bakefile_cv_prog_makeisgnu="no" | |
43468 | fi | |
43469 | ||
43470 | fi | |
43471 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
43472 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
43473 | ||
43474 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
43475 | IF_GNU_MAKE="" | |
43476 | else | |
43477 | IF_GNU_MAKE="#" | |
43478 | fi | |
43479 | ||
43480 | ||
43481 | ||
43482 | PLATFORM_UNIX=0 | |
43483 | PLATFORM_WIN32=0 | |
43484 | PLATFORM_MSDOS=0 | |
43485 | PLATFORM_MAC=0 | |
1e9e8aba | 43486 | PLATFORM_MACOS=0 |
a848cd7e SC |
43487 | PLATFORM_MACOSX=0 |
43488 | PLATFORM_OS2=0 | |
1e9e8aba | 43489 | PLATFORM_BEOS=0 |
a848cd7e SC |
43490 | |
43491 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
43492 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 43493 | *-*-mingw32* ) |
a848cd7e SC |
43494 | PLATFORM_WIN32=1 |
43495 | ;; | |
43496 | *-pc-msdosdjgpp ) | |
43497 | PLATFORM_MSDOS=1 | |
43498 | ;; | |
43499 | *-pc-os2_emx | *-pc-os2-emx ) | |
43500 | PLATFORM_OS2=1 | |
43501 | ;; | |
47bd5406 | 43502 | *-*-darwin* ) |
a848cd7e SC |
43503 | PLATFORM_MAC=1 |
43504 | PLATFORM_MACOSX=1 | |
43505 | ;; | |
1e9e8aba DE |
43506 | *-*-beos* ) |
43507 | PLATFORM_BEOS=1 | |
43508 | ;; | |
43509 | powerpc-apple-macos* ) | |
43510 | PLATFORM_MAC=1 | |
43511 | PLATFORM_MACOS=1 | |
43512 | ;; | |
a848cd7e SC |
43513 | * ) |
43514 | PLATFORM_UNIX=1 | |
43515 | ;; | |
43516 | esac | |
43517 | else | |
43518 | case "$BAKEFILE_FORCE_PLATFORM" in | |
43519 | win32 ) | |
43520 | PLATFORM_WIN32=1 | |
43521 | ;; | |
43522 | msdos ) | |
43523 | PLATFORM_MSDOS=1 | |
43524 | ;; | |
43525 | os2 ) | |
43526 | PLATFORM_OS2=1 | |
43527 | ;; | |
43528 | darwin ) | |
43529 | PLATFORM_MAC=1 | |
43530 | PLATFORM_MACOSX=1 | |
43531 | ;; | |
43532 | unix ) | |
43533 | PLATFORM_UNIX=1 | |
43534 | ;; | |
1e9e8aba DE |
43535 | beos ) |
43536 | PLATFORM_BEOS=1 | |
43537 | ;; | |
a848cd7e SC |
43538 | * ) |
43539 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
43540 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
43541 | { (exit 1); exit 1; }; } | |
43542 | ;; | |
43543 | esac | |
43544 | fi | |
43545 | ||
43546 | ||
43547 | ||
43548 | ||
43549 | ||
43550 | ||
43551 | ||
43552 | ||
43553 | ||
1e9e8aba DE |
43554 | |
43555 | ||
a848cd7e SC |
43556 | # Check whether --enable-omf or --disable-omf was given. |
43557 | if test "${enable_omf+set}" = set; then | |
43558 | enableval="$enable_omf" | |
43559 | bk_os2_use_omf="$enableval" | |
43560 | fi; | |
43561 | ||
43562 | case "${BAKEFILE_HOST}" in | |
43563 | *-*-darwin* ) | |
47bd5406 VZ |
43564 | if test "x$GCC" = "xyes"; then |
43565 | CFLAGS="$CFLAGS -fno-common" | |
43566 | CXXFLAGS="$CXXFLAGS -fno-common" | |
43567 | fi | |
43568 | if test "x$XLCC" = "xyes"; then | |
43569 | CFLAGS="$CFLAGS -qnocommon" | |
43570 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
43571 | fi | |
a848cd7e SC |
43572 | ;; |
43573 | ||
43574 | *-pc-os2_emx | *-pc-os2-emx ) | |
43575 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
43576 | AR=emxomfar | |
43577 | RANLIB=: | |
43578 | LDFLAGS="-Zomf $LDFLAGS" | |
43579 | CFLAGS="-Zomf $CFLAGS" | |
43580 | CXXFLAGS="-Zomf $CXXFLAGS" | |
43581 | OS2_LIBEXT="lib" | |
43582 | else | |
43583 | OS2_LIBEXT="a" | |
43584 | fi | |
43585 | ;; | |
1e9e8aba DE |
43586 | |
43587 | i*86-*-beos* ) | |
43588 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
43589 | ;; | |
a848cd7e SC |
43590 | esac |
43591 | ||
43592 | ||
43593 | SO_SUFFIX="so" | |
43594 | SO_SUFFIX_MODULE="so" | |
43595 | EXEEXT="" | |
43596 | LIBPREFIX="lib" | |
43597 | LIBEXT=".a" | |
43598 | DLLPREFIX="lib" | |
43599 | DLLPREFIX_MODULE="" | |
43600 | DLLIMP_SUFFIX="" | |
810b94f0 | 43601 | dlldir="$libdir" |
a848cd7e SC |
43602 | |
43603 | case "${BAKEFILE_HOST}" in | |
43604 | *-hp-hpux* ) | |
43605 | SO_SUFFIX="sl" | |
43606 | SO_SUFFIX_MODULE="sl" | |
43607 | ;; | |
43608 | *-*-aix* ) | |
43609 | SO_SUFFIX="a" | |
43610 | SO_SUFFIX_MODULE="a" | |
43611 | ;; | |
810b94f0 MW |
43612 | *-*-cygwin* ) |
43613 | SO_SUFFIX="dll" | |
43614 | SO_SUFFIX_MODULE="dll" | |
43615 | DLLIMP_SUFFIX="dll.a" | |
43616 | EXEEXT=".exe" | |
43617 | DLLPREFIX="cyg" | |
43618 | dlldir="$bindir" | |
43619 | ;; | |
43620 | *-*-mingw32* ) | |
a848cd7e SC |
43621 | SO_SUFFIX="dll" |
43622 | SO_SUFFIX_MODULE="dll" | |
43623 | DLLIMP_SUFFIX="dll.a" | |
43624 | EXEEXT=".exe" | |
43625 | DLLPREFIX="" | |
810b94f0 | 43626 | dlldir="$bindir" |
a848cd7e SC |
43627 | ;; |
43628 | *-pc-msdosdjgpp ) | |
43629 | EXEEXT=".exe" | |
43630 | DLLPREFIX="" | |
810b94f0 | 43631 | dlldir="$bindir" |
a848cd7e SC |
43632 | ;; |
43633 | *-pc-os2_emx | *-pc-os2-emx ) | |
43634 | SO_SUFFIX="dll" | |
43635 | SO_SUFFIX_MODULE="dll" | |
43636 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
43637 | EXEEXT=".exe" | |
43638 | DLLPREFIX="" | |
43639 | LIBPREFIX="" | |
43640 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 43641 | dlldir="$bindir" |
a848cd7e | 43642 | ;; |
47bd5406 | 43643 | *-*-darwin* ) |
a848cd7e SC |
43644 | SO_SUFFIX="dylib" |
43645 | SO_SUFFIX_MODULE="bundle" | |
43646 | ;; | |
43647 | esac | |
43648 | ||
43649 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
43650 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
43651 | fi | |
43652 | ||
43653 | ||
43654 | ||
43655 | ||
43656 | ||
43657 | ||
43658 | ||
43659 | ||
43660 | ||
43661 | ||
43662 | ||
810b94f0 | 43663 | |
1e9e8aba DE |
43664 | PIC_FLAG="" |
43665 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
43666 | PIC_FLAG="-fPIC" |
43667 | fi | |
43668 | ||
1e9e8aba DE |
43669 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
43670 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 43671 | WINDOWS_IMPLIB=0 |
1e9e8aba | 43672 | |
a848cd7e SC |
43673 | case "${BAKEFILE_HOST}" in |
43674 | *-hp-hpux* ) | |
1e9e8aba | 43675 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
43676 | LDFLAGS="$LDFLAGS -L/usr/lib" |
43677 | ||
43678 | SHARED_LD_CC="${CC} -b -o" | |
43679 | SHARED_LD_CXX="${CXX} -b -o" | |
43680 | PIC_FLAG="+Z" | |
43681 | fi | |
43682 | ;; | |
43683 | ||
43684 | *-*-linux* ) | |
43685 | if test "x$GCC" != "xyes"; then | |
43686 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
43687 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
43688 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
43689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43690 | else | |
43691 | ||
43692 | cat >conftest.$ac_ext <<_ACEOF | |
43693 | /* confdefs.h. */ | |
43694 | _ACEOF | |
43695 | cat confdefs.h >>conftest.$ac_ext | |
43696 | cat >>conftest.$ac_ext <<_ACEOF | |
43697 | /* end confdefs.h. */ | |
43698 | ||
43699 | int | |
43700 | main () | |
43701 | { | |
43702 | ||
43703 | #ifndef __INTEL_COMPILER | |
43704 | #error Not icc | |
43705 | #endif | |
43706 | ||
43707 | ; | |
43708 | return 0; | |
43709 | } | |
43710 | _ACEOF | |
43711 | rm -f conftest.$ac_objext | |
43712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43713 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43714 | ac_status=$? |
ac1cb8d3 VS |
43715 | grep -v '^ *+' conftest.er1 >conftest.err |
43716 | rm -f conftest.er1 | |
43717 | cat conftest.err >&5 | |
a848cd7e SC |
43718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43719 | (exit $ac_status); } && | |
6ebeb4c7 | 43720 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43722 | (eval $ac_try) 2>&5 | |
43723 | ac_status=$? | |
43724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43725 | (exit $ac_status); }; } && | |
43726 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43728 | (eval $ac_try) 2>&5 | |
43729 | ac_status=$? | |
43730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43731 | (exit $ac_status); }; }; then | |
43732 | bakefile_cv_prog_icc=yes | |
43733 | else | |
43734 | echo "$as_me: failed program was:" >&5 | |
43735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43736 | ||
43737 | bakefile_cv_prog_icc=no | |
43738 | ||
43739 | fi | |
ac1cb8d3 | 43740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43741 | |
43742 | fi | |
43743 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
43744 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
43745 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
43746 | PIC_FLAG="-KPIC" | |
43747 | fi | |
43748 | fi | |
43749 | ;; | |
43750 | ||
43751 | *-*-solaris2* ) | |
43752 | if test "x$GCC" != xyes ; then | |
43753 | SHARED_LD_CC="${CC} -G -o" | |
43754 | SHARED_LD_CXX="${CXX} -G -o" | |
43755 | PIC_FLAG="-KPIC" | |
43756 | fi | |
43757 | ;; | |
43758 | ||
43759 | *-*-darwin* ) | |
43760 | ||
43761 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
43762 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
43763 | if test "${wx_cv_gcc31+set}" = set; then | |
43764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43765 | else | |
43766 | ||
43767 | cat >conftest.$ac_ext <<_ACEOF | |
43768 | /* confdefs.h. */ | |
43769 | _ACEOF | |
43770 | cat confdefs.h >>conftest.$ac_ext | |
43771 | cat >>conftest.$ac_ext <<_ACEOF | |
43772 | /* end confdefs.h. */ | |
43773 | ||
43774 | int | |
43775 | main () | |
43776 | { | |
43777 | ||
43778 | #if (__GNUC__ < 3) || \ | |
43779 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
43780 | #error old gcc | |
43781 | #endif | |
43782 | ||
43783 | ; | |
43784 | return 0; | |
43785 | } | |
43786 | _ACEOF | |
43787 | rm -f conftest.$ac_objext | |
43788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43789 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43790 | ac_status=$? |
ac1cb8d3 VS |
43791 | grep -v '^ *+' conftest.er1 >conftest.err |
43792 | rm -f conftest.er1 | |
43793 | cat conftest.err >&5 | |
a848cd7e SC |
43794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43795 | (exit $ac_status); } && | |
6ebeb4c7 | 43796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43798 | (eval $ac_try) 2>&5 | |
43799 | ac_status=$? | |
43800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43801 | (exit $ac_status); }; } && | |
43802 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43804 | (eval $ac_try) 2>&5 | |
43805 | ac_status=$? | |
43806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43807 | (exit $ac_status); }; }; then | |
43808 | ||
43809 | wx_cv_gcc31=yes | |
43810 | ||
43811 | else | |
43812 | echo "$as_me: failed program was:" >&5 | |
43813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43814 | ||
43815 | ||
43816 | wx_cv_gcc31=no | |
43817 | ||
43818 | ||
43819 | fi | |
ac1cb8d3 | 43820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43821 | |
43822 | fi | |
43823 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
43824 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
43825 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
43826 | |
43827 | D='$' | |
43828 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
43829 | #!/bin/sh |
43830 | #----------------------------------------------------------------------------- | |
43831 | #-- Name: distrib/mac/shared-ld-sh | |
43832 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
43833 | #-- Author: Gilles Depeyrot | |
43834 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
43835 | #-- Licence: any use permitted | |
43836 | #----------------------------------------------------------------------------- | |
43837 | ||
43838 | verbose=0 | |
43839 | args="" | |
43840 | objects="" | |
43841 | linking_flag="-dynamiclib" | |
810b94f0 | 43842 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 43843 | |
473276a9 VS |
43844 | while test ${D}# -gt 0; do |
43845 | case ${D}1 in | |
a848cd7e SC |
43846 | |
43847 | -v) | |
43848 | verbose=1 | |
43849 | ;; | |
43850 | ||
43851 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
43852 | # collect these options and values | |
473276a9 | 43853 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
43854 | shift |
43855 | ;; | |
43856 | ||
810b94f0 MW |
43857 | -s|-Wl,*) |
43858 | # collect these load args | |
43859 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 43860 | ;; |
810b94f0 MW |
43861 | |
43862 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 43863 | # collect these options |
473276a9 | 43864 | args="${D}{args} ${D}1" |
a848cd7e SC |
43865 | ;; |
43866 | ||
43867 | -dynamiclib|-bundle) | |
473276a9 | 43868 | linking_flag="${D}1" |
a848cd7e SC |
43869 | ;; |
43870 | ||
43871 | -*) | |
473276a9 | 43872 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
43873 | exit 1 |
43874 | ;; | |
43875 | ||
43876 | *.o | *.a | *.dylib) | |
43877 | # collect object files | |
473276a9 | 43878 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
43879 | ;; |
43880 | ||
43881 | *) | |
473276a9 | 43882 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
43883 | exit 1 |
43884 | ;; | |
43885 | ||
43886 | esac | |
43887 | shift | |
43888 | done | |
43889 | ||
810b94f0 MW |
43890 | status=0 |
43891 | ||
a848cd7e SC |
43892 | # |
43893 | # Link one module containing all the others | |
43894 | # | |
473276a9 | 43895 | if test ${D}{verbose} = 1; then |
810b94f0 | 43896 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 43897 | fi |
810b94f0 | 43898 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 43899 | status=${D}? |
a848cd7e SC |
43900 | |
43901 | # | |
810b94f0 MW |
43902 | # Link the shared library from the single module created, but only if the |
43903 | # previous command didn't fail: | |
a848cd7e | 43904 | # |
810b94f0 MW |
43905 | if test ${D}{status} = 0; then |
43906 | if test ${D}{verbose} = 1; then | |
43907 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
43908 | fi | |
43909 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
43910 | status=${D}? | |
a848cd7e SC |
43911 | fi |
43912 | ||
43913 | # | |
43914 | # Remove intermediate module | |
43915 | # | |
473276a9 | 43916 | rm -f master.${D}${D}.o |
a848cd7e | 43917 | |
810b94f0 | 43918 | exit ${D}status |
a848cd7e | 43919 | EOF |
473276a9 | 43920 | |
a848cd7e SC |
43921 | chmod +x shared-ld-sh |
43922 | ||
43923 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
43924 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
43925 | SHARED_LD_CXX="$SHARED_LD_CC" | |
43926 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
43927 | else | |
43928 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
43929 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
43930 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
43931 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
43932 | fi | |
43933 | ||
47bd5406 VZ |
43934 | if test "x$GCC" == "xyes"; then |
43935 | PIC_FLAG="-dynamic -fPIC" | |
43936 | fi | |
43937 | if test "x$XLCC" = "xyes"; then | |
43938 | PIC_FLAG="-dynamic -DPIC" | |
43939 | fi | |
a848cd7e SC |
43940 | ;; |
43941 | ||
43942 | *-*-aix* ) | |
f6b50c59 VZ |
43943 | if test "x$GCC" = "xyes"; then |
43944 | PIC_FLAG="" | |
43945 | ||
43946 | case "${BAKEFILE_HOST}" in | |
43947 | *-*-aix5* ) | |
43948 | LD_EXPFULL="-Wl,-bexpfull" | |
43949 | ;; | |
43950 | esac | |
43951 | ||
7b94a67c VZ |
43952 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
43953 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
0ad5d837 | 43954 | else |
f6b50c59 | 43955 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
a848cd7e SC |
43956 | set dummy makeC++SharedLib; ac_word=$2 |
43957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43959 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
43960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43961 | else | |
43962 | if test -n "$AIX_CXX_LD"; then | |
43963 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
43964 | else | |
43965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43966 | for as_dir in $PATH | |
43967 | do | |
43968 | IFS=$as_save_IFS | |
43969 | test -z "$as_dir" && as_dir=. | |
43970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43972 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
43973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43974 | break 2 | |
43975 | fi | |
43976 | done | |
43977 | done | |
43978 | ||
43979 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
43980 | fi | |
43981 | fi | |
43982 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
43983 | if test -n "$AIX_CXX_LD"; then | |
43984 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
43985 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
43986 | else | |
43987 | echo "$as_me:$LINENO: result: no" >&5 | |
43988 | echo "${ECHO_T}no" >&6 | |
43989 | fi | |
43990 | ||
f6b50c59 | 43991 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
43992 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
43993 | fi | |
43994 | ;; | |
43995 | ||
43996 | *-*-beos* ) | |
1e9e8aba DE |
43997 | SHARED_LD_CC="${LD} -nostart -o" |
43998 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
43999 | ;; |
44000 | ||
44001 | *-*-irix* ) | |
44002 | if test "x$GCC" != "xyes"; then | |
44003 | PIC_FLAG="-KPIC" | |
44004 | fi | |
44005 | ;; | |
44006 | ||
44007 | *-*-cygwin* | *-*-mingw32* ) | |
44008 | PIC_FLAG="" | |
1e9e8aba DE |
44009 | SHARED_LD_CC="\$(CC) -shared -o" |
44010 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 44011 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
44012 | ;; |
44013 | ||
44014 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
44015 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
44016 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 44017 | PIC_FLAG="" |
473276a9 VS |
44018 | |
44019 | D='$' | |
44020 | cat <<EOF >dllar.sh | |
44021 | #!/bin/sh | |
44022 | # | |
44023 | # dllar - a tool to build both a .dll and an .a file | |
44024 | # from a set of object (.o) files for EMX/OS2. | |
44025 | # | |
44026 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
44027 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
44028 | # | |
44029 | # This script will accept a set of files on the command line. | |
44030 | # All the public symbols from the .o files will be exported into | |
44031 | # a .DEF file, then linker will be run (through gcc) against them to | |
44032 | # build a shared library consisting of all given .o files. All libraries | |
44033 | # (.a) will be first decompressed into component .o files then act as | |
44034 | # described above. You can optionally give a description (-d "description") | |
44035 | # which will be put into .DLL. To see the list of accepted options (as well | |
44036 | # as command-line format) simply run this program without options. The .DLL | |
44037 | # is built to be imported by name (there is no guarantee that new versions | |
44038 | # of the library you build will have same ordinals for same symbols). | |
44039 | # | |
44040 | # dllar is free software; you can redistribute it and/or modify | |
44041 | # it under the terms of the GNU General Public License as published by | |
44042 | # the Free Software Foundation; either version 2, or (at your option) | |
44043 | # any later version. | |
44044 | # | |
44045 | # dllar is distributed in the hope that it will be useful, | |
44046 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
44047 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
44048 | # GNU General Public License for more details. | |
44049 | # | |
44050 | # You should have received a copy of the GNU General Public License | |
44051 | # along with dllar; see the file COPYING. If not, write to the Free | |
44052 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
44053 | # 02111-1307, USA. | |
44054 | ||
44055 | # To successfuly run this program you will need: | |
44056 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
44057 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
44058 | # - gcc | |
44059 | # (used to build the .dll) | |
44060 | # - emxexp | |
44061 | # (used to create .def file from .o files) | |
44062 | # - emximp | |
44063 | # (used to create .a file from .def file) | |
44064 | # - GNU text utilites (cat, sort, uniq) | |
44065 | # used to process emxexp output | |
44066 | # - GNU file utilities (mv, rm) | |
44067 | # - GNU sed | |
44068 | # - lxlite (optional, see flag below) | |
44069 | # (used for general .dll cleanup) | |
44070 | # | |
44071 | ||
44072 | flag_USE_LXLITE=1; | |
44073 | ||
44074 | # | |
44075 | # helper functions | |
44076 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
44077 | # second argument (suffix to remove) is given | |
44078 | basnam(){ | |
44079 | case ${D}# in | |
44080 | 1) | |
1e9e8aba | 44081 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
44082 | ;; |
44083 | 2) | |
44084 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
44085 | ;; | |
44086 | *) | |
44087 | echo "error in basnam ${D}*" | |
44088 | exit 8 | |
44089 | ;; | |
44090 | esac | |
44091 | } | |
44092 | ||
44093 | # Cleanup temporary files and output | |
44094 | CleanUp() { | |
44095 | cd ${D}curDir | |
44096 | for i in ${D}inputFiles ; do | |
44097 | case ${D}i in | |
44098 | *!) | |
44099 | rm -rf \`basnam ${D}i !\` | |
44100 | ;; | |
44101 | *) | |
44102 | ;; | |
44103 | esac | |
44104 | done | |
44105 | ||
44106 | # Kill result in case of failure as there is just to many stupid make/nmake | |
44107 | # things out there which doesn't do this. | |
1e9e8aba | 44108 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
44109 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
44110 | fi | |
44111 | } | |
44112 | ||
44113 | # Print usage and exit script with rc=1. | |
44114 | PrintHelp() { | |
b1d22ded DE |
44115 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
44116 | echo ' [-name-mangler-script script.sh]' | |
44117 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
44118 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
44119 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 44120 | echo ' [*.o] [*.a]' |
473276a9 VS |
44121 | echo '*> "output_file" should have no extension.' |
44122 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
44123 | echo ' The import library name is derived from this and is set to "name".a,' | |
44124 | echo ' unless overridden by -import' | |
44125 | echo '*> "importlib_name" should have no extension.' | |
44126 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
44127 | echo ' This name is used as the import library name and may be longer and' | |
44128 | echo ' more descriptive than the DLL name which has to follow the old ' | |
44129 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
44130 | echo '*> "script.sh may be given to override the output_file name by a' |
44131 | echo ' different name. It is mainly useful if the regular make process' | |
44132 | echo ' of some package does not take into account OS/2 restriction of' | |
44133 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
44134 | echo ' supposed to procude a shorter name as output. The script should' | |
44135 | echo ' expect to get importlib_name without extension and should produce' | |
44136 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
44137 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
44138 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
44139 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
44140 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
44141 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
44142 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
44143 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
44144 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 44145 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 44146 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 44147 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 44148 | echo ' C runtime DLLs.' |
b1d22ded | 44149 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
44150 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
44151 | echo ' unchanged to GCC at the end of command line.' | |
44152 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
44153 | echo ' the basename for DLL and import library will be set to library name,' | |
44154 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
44155 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
44156 | echo ' library will be renamed into gcc_s.a.' | |
44157 | echo '--------' | |
44158 | echo 'Example:' | |
44159 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
44160 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
44161 | CleanUp | |
44162 | exit 1 | |
44163 | } | |
44164 | ||
44165 | # Execute a command. | |
44166 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
44167 | # @Uses Whatever CleanUp() uses. | |
44168 | doCommand() { | |
44169 | echo "${D}*" | |
44170 | eval ${D}* | |
44171 | rcCmd=${D}? | |
44172 | ||
1e9e8aba | 44173 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
44174 | echo "command failed, exit code="${D}rcCmd |
44175 | CleanUp | |
44176 | exit ${D}rcCmd | |
44177 | fi | |
44178 | } | |
44179 | ||
44180 | # main routine | |
44181 | # setup globals | |
44182 | cmdLine=${D}* | |
44183 | outFile="" | |
44184 | outimpFile="" | |
44185 | inputFiles="" | |
b1d22ded | 44186 | renameScript="" |
473276a9 VS |
44187 | description="" |
44188 | CC=gcc.exe | |
44189 | CFLAGS="-s -Zcrtdll" | |
44190 | EXTRA_CFLAGS="" | |
44191 | EXPORT_BY_ORDINALS=0 | |
44192 | exclude_symbols="" | |
44193 | library_flags="" | |
44194 | curDir=\`pwd\` | |
44195 | curDirS=curDir | |
44196 | case ${D}curDirS in | |
44197 | */) | |
44198 | ;; | |
44199 | *) | |
44200 | curDirS=${D}{curDirS}"/" | |
44201 | ;; | |
44202 | esac | |
44203 | # Parse commandline | |
44204 | libsToLink=0 | |
b1d22ded | 44205 | omfLinking=0 |
1e9e8aba | 44206 | while [ ${D}1 ]; do |
473276a9 VS |
44207 | case ${D}1 in |
44208 | -ord*) | |
44209 | EXPORT_BY_ORDINALS=1; | |
44210 | ;; | |
44211 | -o*) | |
44212 | shift | |
44213 | outFile=${D}1 | |
44214 | ;; | |
44215 | -i*) | |
44216 | shift | |
44217 | outimpFile=${D}1 | |
44218 | ;; | |
b1d22ded DE |
44219 | -name-mangler-script) |
44220 | shift | |
44221 | renameScript=${D}1 | |
44222 | ;; | |
473276a9 VS |
44223 | -d*) |
44224 | shift | |
44225 | description=${D}1 | |
44226 | ;; | |
44227 | -f*) | |
44228 | shift | |
44229 | CFLAGS=${D}1 | |
44230 | ;; | |
44231 | -c*) | |
44232 | shift | |
44233 | CC=${D}1 | |
44234 | ;; | |
44235 | -h*) | |
44236 | PrintHelp | |
44237 | ;; | |
44238 | -ex*) | |
44239 | shift | |
44240 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
44241 | ;; | |
44242 | -libf*) | |
44243 | shift | |
44244 | library_flags=${D}{library_flags}${D}1" " | |
44245 | ;; | |
44246 | -nocrt*) | |
44247 | CFLAGS="-s" | |
44248 | ;; | |
44249 | -nolxl*) | |
44250 | flag_USE_LXLITE=0 | |
44251 | ;; | |
44252 | -* | /*) | |
44253 | case ${D}1 in | |
44254 | -L* | -l*) | |
44255 | libsToLink=1 | |
44256 | ;; | |
b1d22ded DE |
44257 | -Zomf) |
44258 | omfLinking=1 | |
44259 | ;; | |
473276a9 VS |
44260 | *) |
44261 | ;; | |
44262 | esac | |
44263 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
44264 | ;; | |
b1d22ded DE |
44265 | *.dll) |
44266 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
44267 | if [ ${D}omfLinking -eq 1 ]; then | |
44268 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
44269 | else | |
44270 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
44271 | fi | |
44272 | ;; | |
473276a9 VS |
44273 | *) |
44274 | found=0; | |
1e9e8aba | 44275 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
44276 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
44277 | else | |
44278 | for file in ${D}1 ; do | |
1e9e8aba | 44279 | if [ -f ${D}file ]; then |
473276a9 VS |
44280 | inputFiles="${D}{inputFiles} ${D}file" |
44281 | found=1 | |
44282 | fi | |
44283 | done | |
1e9e8aba | 44284 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
44285 | echo "ERROR: No file(s) found: "${D}1 |
44286 | exit 8 | |
44287 | fi | |
44288 | fi | |
44289 | ;; | |
44290 | esac | |
44291 | shift | |
44292 | done # iterate cmdline words | |
44293 | ||
44294 | # | |
1e9e8aba | 44295 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
44296 | echo "dllar: no input files" |
44297 | PrintHelp | |
44298 | fi | |
44299 | ||
44300 | # Now extract all .o files from .a files | |
44301 | newInputFiles="" | |
44302 | for file in ${D}inputFiles ; do | |
44303 | case ${D}file in | |
44304 | *.a | *.lib) | |
44305 | case ${D}file in | |
44306 | *.a) | |
44307 | suffix=".a" | |
44308 | AR="ar" | |
44309 | ;; | |
44310 | *.lib) | |
44311 | suffix=".lib" | |
44312 | AR="emxomfar" | |
44313 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
44314 | ;; | |
44315 | *) | |
44316 | ;; | |
44317 | esac | |
44318 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
44319 | mkdir ${D}dirname | |
1e9e8aba | 44320 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
44321 | echo "Failed to create subdirectory ./${D}dirname" |
44322 | CleanUp | |
44323 | exit 8; | |
44324 | fi | |
44325 | # Append '!' to indicate archive | |
44326 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
44327 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
44328 | cd ${D}curDir | |
44329 | found=0; | |
44330 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 44331 | if [ -f ${D}subfile ]; then |
473276a9 | 44332 | found=1 |
1e9e8aba | 44333 | if [ -s ${D}subfile ]; then |
473276a9 VS |
44334 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
44335 | newInputFiles="${D}newInputFiles ${D}subfile" | |
44336 | fi | |
44337 | fi | |
44338 | done | |
1e9e8aba DE |
44339 | if [ ${D}found -eq 0 ]; then |
44340 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
44341 | fi |
44342 | ;; | |
44343 | *) | |
44344 | newInputFiles="${D}{newInputFiles} ${D}file" | |
44345 | ;; | |
44346 | esac | |
44347 | done | |
44348 | inputFiles="${D}newInputFiles" | |
44349 | ||
44350 | # Output filename(s). | |
44351 | do_backup=0; | |
1e9e8aba | 44352 | if [ -z ${D}outFile ]; then |
473276a9 VS |
44353 | do_backup=1; |
44354 | set outFile ${D}inputFiles; outFile=${D}2 | |
44355 | fi | |
44356 | ||
44357 | # If it is an archive, remove the '!' and the '_%' suffixes | |
44358 | case ${D}outFile in | |
44359 | *_%!) | |
44360 | outFile=\`basnam ${D}outFile _%!\` | |
44361 | ;; | |
44362 | *) | |
44363 | ;; | |
44364 | esac | |
44365 | case ${D}outFile in | |
44366 | *.dll) | |
44367 | outFile=\`basnam ${D}outFile .dll\` | |
44368 | ;; | |
44369 | *.DLL) | |
44370 | outFile=\`basnam ${D}outFile .DLL\` | |
44371 | ;; | |
44372 | *.o) | |
44373 | outFile=\`basnam ${D}outFile .o\` | |
44374 | ;; | |
44375 | *.obj) | |
44376 | outFile=\`basnam ${D}outFile .obj\` | |
44377 | ;; | |
44378 | *.a) | |
44379 | outFile=\`basnam ${D}outFile .a\` | |
44380 | ;; | |
44381 | *.lib) | |
44382 | outFile=\`basnam ${D}outFile .lib\` | |
44383 | ;; | |
44384 | *) | |
44385 | ;; | |
44386 | esac | |
44387 | case ${D}outimpFile in | |
44388 | *.a) | |
44389 | outimpFile=\`basnam ${D}outimpFile .a\` | |
44390 | ;; | |
44391 | *.lib) | |
44392 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
44393 | ;; | |
44394 | *) | |
44395 | ;; | |
44396 | esac | |
1e9e8aba | 44397 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
44398 | outimpFile=${D}outFile |
44399 | fi | |
44400 | defFile="${D}{outFile}.def" | |
44401 | arcFile="${D}{outimpFile}.a" | |
44402 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
44403 | |
44404 | #create ${D}dllFile as something matching 8.3 restrictions, | |
44405 | if [ -z ${D}renameScript ] ; then | |
44406 | dllFile="${D}outFile" | |
44407 | else | |
44408 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
44409 | fi | |
473276a9 | 44410 | |
1e9e8aba DE |
44411 | if [ ${D}do_backup -ne 0 ] ; then |
44412 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
44413 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
44414 | fi | |
1e9e8aba | 44415 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
44416 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
44417 | fi | |
44418 | fi | |
44419 | ||
44420 | # Extract public symbols from all the object files. | |
44421 | tmpdefFile=${D}{defFile}_% | |
44422 | rm -f ${D}tmpdefFile | |
44423 | for file in ${D}inputFiles ; do | |
44424 | case ${D}file in | |
44425 | *!) | |
44426 | ;; | |
44427 | *) | |
44428 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
44429 | ;; | |
44430 | esac | |
44431 | done | |
44432 | ||
44433 | # Create the def file. | |
44434 | rm -f ${D}defFile | |
44435 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
44436 | dllFile="${D}{dllFile}.dll" |
44437 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 44438 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
44439 | fi |
44440 | echo "EXPORTS" >> ${D}defFile | |
44441 | ||
44442 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
44443 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
44444 | ||
44445 | # Checks if the export is ok or not. | |
44446 | for word in ${D}exclude_symbols; do | |
44447 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
44448 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
44449 | done | |
44450 | ||
44451 | ||
1e9e8aba DE |
44452 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
44453 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
44454 | sed ' |
44455 | N | |
44456 | : loop | |
1e9e8aba | 44457 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
44458 | t loop |
44459 | ' > ${D}{tmpdefFile}% | |
44460 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
44461 | else | |
44462 | rm -f ${D}{tmpdefFile}% | |
44463 | fi | |
44464 | cat ${D}tmpdefFile >> ${D}defFile | |
44465 | rm -f ${D}tmpdefFile | |
44466 | ||
44467 | # Do linking, create implib, and apply lxlite. | |
44468 | gccCmdl=""; | |
44469 | for file in ${D}inputFiles ; do | |
44470 | case ${D}file in | |
44471 | *!) | |
44472 | ;; | |
44473 | *) | |
44474 | gccCmdl="${D}gccCmdl ${D}file" | |
44475 | ;; | |
44476 | esac | |
44477 | done | |
44478 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
44479 | touch "${D}{outFile}.dll" | |
44480 | ||
44481 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 44482 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 44483 | add_flags=""; |
1e9e8aba | 44484 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
44485 | add_flags="-ynd" |
44486 | fi | |
44487 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
44488 | fi | |
44489 | doCommand "emxomf -s -l ${D}arcFile" | |
44490 | ||
44491 | # Successful exit. | |
44492 | CleanUp 1 | |
44493 | exit 0 | |
44494 | EOF | |
44495 | ||
44496 | chmod +x dllar.sh | |
a848cd7e SC |
44497 | ;; |
44498 | ||
1e9e8aba | 44499 | powerpc-apple-macos* | \ |
0ad5d837 | 44500 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
44501 | *-*-sunos4* | \ |
44502 | *-*-osf* | \ | |
44503 | *-*-dgux5* | \ | |
47a7e797 MW |
44504 | *-*-sysv5* | \ |
44505 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
44506 | ;; |
44507 | ||
44508 | *) | |
44509 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
44510 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
44511 | { (exit 1); exit 1; }; } | |
44512 | esac | |
44513 | ||
2057db16 VS |
44514 | if test "x$PIC_FLAG" != "x" ; then |
44515 | PIC_FLAG="$PIC_FLAG -DPIC" | |
44516 | fi | |
44517 | ||
a848cd7e SC |
44518 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
44519 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
44520 | fi | |
44521 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
44522 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
44523 | fi | |
44524 | ||
44525 | ||
44526 | ||
44527 | ||
44528 | ||
44529 | ||
44530 | ||
44531 | ||
810b94f0 | 44532 | |
a848cd7e SC |
44533 | USE_SOVERSION=0 |
44534 | USE_SOVERLINUX=0 | |
44535 | USE_SOVERSOLARIS=0 | |
810b94f0 | 44536 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
44537 | USE_SOSYMLINKS=0 |
44538 | USE_MACVERSION=0 | |
44539 | SONAME_FLAG= | |
44540 | ||
44541 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 44542 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
44543 | SONAME_FLAG="-Wl,-soname," |
44544 | USE_SOVERSION=1 | |
44545 | USE_SOVERLINUX=1 | |
44546 | USE_SOSYMLINKS=1 | |
44547 | ;; | |
44548 | ||
a848cd7e SC |
44549 | *-*-solaris2* ) |
44550 | SONAME_FLAG="-h " | |
44551 | USE_SOVERSION=1 | |
44552 | USE_SOVERSOLARIS=1 | |
44553 | USE_SOSYMLINKS=1 | |
44554 | ;; | |
44555 | ||
44556 | *-*-darwin* ) | |
44557 | USE_MACVERSION=1 | |
44558 | USE_SOVERSION=1 | |
44559 | USE_SOSYMLINKS=1 | |
44560 | ;; | |
810b94f0 MW |
44561 | |
44562 | *-*-cygwin* ) | |
44563 | USE_SOVERSION=1 | |
44564 | USE_SOVERCYGWIN=1 | |
44565 | ;; | |
a848cd7e SC |
44566 | esac |
44567 | ||
44568 | ||
44569 | ||
44570 | ||
44571 | ||
44572 | ||
44573 | ||
44574 | ||
44575 | ||
810b94f0 | 44576 | |
a848cd7e SC |
44577 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
44578 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
0ad5d837 | 44579 | DEPS_TRACKING=1 |
a848cd7e SC |
44580 | |
44581 | if test "x$GCC" = "xyes"; then | |
44582 | DEPSMODE=gcc | |
a848cd7e | 44583 | case "${BAKEFILE_HOST}" in |
47bd5406 | 44584 | *-*-darwin* ) |
0ad5d837 | 44585 | DEPSFLAG="-no-cpp-precomp -MMD" |
a848cd7e SC |
44586 | ;; |
44587 | * ) | |
0ad5d837 | 44588 | DEPSFLAG="-MMD" |
a848cd7e SC |
44589 | ;; |
44590 | esac | |
44591 | echo "$as_me:$LINENO: result: gcc" >&5 | |
44592 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 44593 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 44594 | DEPSMODE=mwcc |
0ad5d837 | 44595 | DEPSFLAG="-MM" |
b1d22ded DE |
44596 | echo "$as_me:$LINENO: result: mwcc" >&5 |
44597 | echo "${ECHO_T}mwcc" >&6 | |
a9e5b1f0 | 44598 | elif test "x$SUNCC" = "xyes"; then |
0ad5d837 VZ |
44599 | DEPSMODE=unixcc |
44600 | DEPSFLAG="-xM1" | |
44601 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
44602 | echo "${ECHO_T}Sun cc" >&6 | |
44603 | elif test "x$SGICC" = "xyes"; then | |
44604 | DEPSMODE=unixcc | |
44605 | DEPSFLAG="-M" | |
44606 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
44607 | echo "${ECHO_T}SGI cc" >&6 | |
a848cd7e | 44608 | else |
0ad5d837 | 44609 | DEPS_TRACKING=0 |
a848cd7e SC |
44610 | echo "$as_me:$LINENO: result: none" >&5 |
44611 | echo "${ECHO_T}none" >&6 | |
44612 | fi | |
44613 | ||
44614 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
44615 | |
44616 | D='$' | |
44617 | cat <<EOF >bk-deps | |
a848cd7e SC |
44618 | #!/bin/sh |
44619 | ||
44620 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
44621 | # script. It is used to track C/C++ files dependencies in portable way. | |
44622 | # | |
44623 | # Permission is given to use this file in any way. | |
44624 | ||
473276a9 | 44625 | DEPSMODE=${DEPSMODE} |
a848cd7e | 44626 | DEPSDIR=.deps |
0ad5d837 | 44627 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 44628 | |
473276a9 | 44629 | mkdir -p ${D}DEPSDIR |
a848cd7e | 44630 | |
473276a9 | 44631 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 44632 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
44633 | status=${D}? |
44634 | if test ${D}{status} != 0 ; then | |
44635 | exit ${D}{status} | |
a848cd7e SC |
44636 | fi |
44637 | # move created file to the location we want it in: | |
473276a9 VS |
44638 | while test ${D}# -gt 0; do |
44639 | case "${D}1" in | |
a848cd7e SC |
44640 | -o ) |
44641 | shift | |
473276a9 | 44642 | objfile=${D}1 |
a848cd7e SC |
44643 | ;; |
44644 | -* ) | |
44645 | ;; | |
44646 | * ) | |
473276a9 | 44647 | srcfile=${D}1 |
a848cd7e SC |
44648 | ;; |
44649 | esac | |
44650 | shift | |
44651 | done | |
1e9e8aba DE |
44652 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
44653 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
44654 | if test -f ${D}depfile ; then |
44655 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
44656 | rm -f ${D}depfile | |
a848cd7e | 44657 | else |
1e9e8aba | 44658 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
44659 | if test -f ${D}depfile ; then |
44660 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
44661 | rm -f ${D}depfile | |
a848cd7e SC |
44662 | fi |
44663 | fi | |
44664 | exit 0 | |
81f90336 | 44665 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 44666 | ${D}* || exit ${D}? |
81f90336 MW |
44667 | # Run mwcc again with -MM and redirect into the dep file we want |
44668 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
44669 | prevarg= | |
44670 | for arg in ${D}* ; do | |
44671 | if test "${D}prevarg" = "-o"; then | |
44672 | objfile=${D}arg | |
44673 | else | |
44674 | case "${D}arg" in | |
44675 | -* ) | |
44676 | ;; | |
44677 | * ) | |
44678 | srcfile=${D}arg | |
44679 | ;; | |
44680 | esac | |
44681 | fi | |
44682 | prevarg="${D}arg" | |
44683 | done | |
0ad5d837 | 44684 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 44685 | exit 0 |
0ad5d837 | 44686 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 44687 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
44688 | # Run compiler again with deps flag and redirect into the dep file. |
44689 | # It doesn't work if the '-o FILE' option is used, but without it the | |
44690 | # dependency file will contain the wrong name for the object. So it is | |
44691 | # removed from the command line, and the dep file is fixed with sed. | |
44692 | cmd="" | |
44693 | while test ${D}# -gt 0; do | |
44694 | case "${D}1" in | |
44695 | -o ) | |
44696 | shift | |
44697 | objfile=${D}1 | |
44698 | ;; | |
44699 | * ) | |
44700 | eval arg${D}#=\\${D}1 | |
44701 | cmd="${D}cmd \\${D}arg${D}#" | |
44702 | ;; | |
44703 | esac | |
44704 | shift | |
44705 | done | |
0ad5d837 | 44706 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 44707 | exit 0 |
a848cd7e | 44708 | else |
473276a9 VS |
44709 | ${D}* |
44710 | exit ${D}? | |
a848cd7e SC |
44711 | fi |
44712 | EOF | |
473276a9 | 44713 | |
a848cd7e SC |
44714 | chmod +x bk-deps |
44715 | fi | |
44716 | ||
44717 | ||
44718 | ||
44719 | ||
44720 | RESCOMP= | |
44721 | SETFILE= | |
44722 | ||
44723 | case ${BAKEFILE_HOST} in | |
44724 | *-*-cygwin* | *-*-mingw32* ) | |
44725 | if test "$build" != "$host" ; then | |
44726 | RESCOMP=$host_alias-windres | |
44727 | else | |
44728 | # Extract the first word of "windres", so it can be a program name with args. | |
44729 | set dummy windres; ac_word=$2 | |
44730 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44732 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
44733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44734 | else | |
44735 | if test -n "$RESCOMP"; then | |
44736 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
44737 | else | |
44738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44739 | for as_dir in $PATH | |
44740 | do | |
44741 | IFS=$as_save_IFS | |
44742 | test -z "$as_dir" && as_dir=. | |
44743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44744 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44745 | ac_cv_prog_RESCOMP="windres" | |
44746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44747 | break 2 | |
44748 | fi | |
44749 | done | |
44750 | done | |
44751 | ||
44752 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
44753 | fi | |
44754 | fi | |
44755 | RESCOMP=$ac_cv_prog_RESCOMP | |
44756 | if test -n "$RESCOMP"; then | |
44757 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
44758 | echo "${ECHO_T}$RESCOMP" >&6 | |
44759 | else | |
44760 | echo "$as_me:$LINENO: result: no" >&5 | |
44761 | echo "${ECHO_T}no" >&6 | |
44762 | fi | |
44763 | ||
44764 | fi | |
44765 | ;; | |
44766 | ||
1e9e8aba | 44767 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
44768 | # Extract the first word of "Rez", so it can be a program name with args. |
44769 | set dummy Rez; ac_word=$2 | |
44770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44772 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
44773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44774 | else | |
44775 | if test -n "$RESCOMP"; then | |
44776 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
44777 | else | |
44778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44779 | for as_dir in $PATH | |
44780 | do | |
44781 | IFS=$as_save_IFS | |
44782 | test -z "$as_dir" && as_dir=. | |
44783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44785 | ac_cv_prog_RESCOMP="Rez" | |
44786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44787 | break 2 | |
44788 | fi | |
44789 | done | |
44790 | done | |
44791 | ||
44792 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
44793 | fi | |
44794 | fi | |
44795 | RESCOMP=$ac_cv_prog_RESCOMP | |
44796 | if test -n "$RESCOMP"; then | |
44797 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
44798 | echo "${ECHO_T}$RESCOMP" >&6 | |
44799 | else | |
44800 | echo "$as_me:$LINENO: result: no" >&5 | |
44801 | echo "${ECHO_T}no" >&6 | |
44802 | fi | |
44803 | ||
44804 | # Extract the first word of "SetFile", so it can be a program name with args. | |
44805 | set dummy SetFile; ac_word=$2 | |
44806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44808 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
44809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44810 | else | |
44811 | if test -n "$SETFILE"; then | |
44812 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
44813 | else | |
44814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44815 | for as_dir in $PATH | |
44816 | do | |
44817 | IFS=$as_save_IFS | |
44818 | test -z "$as_dir" && as_dir=. | |
44819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44821 | ac_cv_prog_SETFILE="SetFile" | |
44822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44823 | break 2 | |
44824 | fi | |
44825 | done | |
44826 | done | |
44827 | ||
44828 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
44829 | fi | |
44830 | fi | |
44831 | SETFILE=$ac_cv_prog_SETFILE | |
44832 | if test -n "$SETFILE"; then | |
44833 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
44834 | echo "${ECHO_T}$SETFILE" >&6 | |
44835 | else | |
44836 | echo "$as_me:$LINENO: result: no" >&5 | |
44837 | echo "${ECHO_T}no" >&6 | |
44838 | fi | |
44839 | ||
44840 | ;; | |
44841 | esac | |
44842 | ||
44843 | ||
44844 | ||
44845 | ||
44846 | ||
c9469659 | 44847 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.9" |
a848cd7e | 44848 | |
dcc1b6ad | 44849 | |
c9469659 | 44850 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9" |
a848cd7e | 44851 | |
646b6ec1 | 44852 | |
74b84332 | 44853 | |
a848cd7e SC |
44854 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
44855 | if test "${enable_precomp_headers+set}" = set; then | |
44856 | enableval="$enable_precomp_headers" | |
44857 | bk_use_pch="$enableval" | |
44858 | fi; | |
44859 | ||
44860 | GCC_PCH=0 | |
44861 | ||
44862 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
44863 | if test "x$GCC" = "xyes"; then | |
44864 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
44865 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
44866 | cat >conftest.$ac_ext <<_ACEOF | |
44867 | /* confdefs.h. */ | |
44868 | _ACEOF | |
44869 | cat confdefs.h >>conftest.$ac_ext | |
44870 | cat >>conftest.$ac_ext <<_ACEOF | |
44871 | /* end confdefs.h. */ | |
44872 | ||
44873 | int | |
44874 | main () | |
44875 | { | |
44876 | ||
44877 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
44878 | #error "no pch support" | |
44879 | #endif | |
44880 | #if (__GNUC__ < 3) | |
44881 | #error "no pch support" | |
44882 | #endif | |
44883 | #if (__GNUC__ == 3) && \ | |
44884 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
44885 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
44886 | #error "no pch support" | |
44887 | #endif | |
44888 | ||
44889 | ; | |
44890 | return 0; | |
44891 | } | |
44892 | _ACEOF | |
44893 | rm -f conftest.$ac_objext | |
44894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44895 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44896 | ac_status=$? |
ac1cb8d3 VS |
44897 | grep -v '^ *+' conftest.er1 >conftest.err |
44898 | rm -f conftest.er1 | |
44899 | cat conftest.err >&5 | |
a848cd7e SC |
44900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44901 | (exit $ac_status); } && | |
6ebeb4c7 | 44902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44904 | (eval $ac_try) 2>&5 | |
44905 | ac_status=$? | |
44906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44907 | (exit $ac_status); }; } && | |
44908 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44910 | (eval $ac_try) 2>&5 | |
44911 | ac_status=$? | |
44912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44913 | (exit $ac_status); }; }; then | |
44914 | ||
44915 | echo "$as_me:$LINENO: result: yes" >&5 | |
44916 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
44917 | GCC_PCH=1 |
44918 | ||
44919 | else | |
44920 | echo "$as_me: failed program was:" >&5 | |
44921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44922 | ||
44923 | ||
44924 | echo "$as_me:$LINENO: result: no" >&5 | |
44925 | echo "${ECHO_T}no" >&6 | |
44926 | ||
44927 | fi | |
ac1cb8d3 | 44928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 44929 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
44930 | |
44931 | D='$' | |
44932 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
44933 | #!/bin/sh |
44934 | ||
44935 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
44936 | # script. It is used to generated precompiled headers. | |
44937 | # | |
44938 | # Permission is given to use this file in any way. | |
44939 | ||
1e9e8aba DE |
44940 | outfile="${D}{1}" |
44941 | header="${D}{2}" | |
a848cd7e SC |
44942 | shift |
44943 | shift | |
44944 | ||
44945 | compiler= | |
44946 | headerfile= | |
1e9e8aba DE |
44947 | while test ${D}{#} -gt 0; do |
44948 | case "${D}{1}" in | |
a848cd7e | 44949 | -I* ) |
1e9e8aba DE |
44950 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
44951 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
44952 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
44953 | fi |
44954 | ;; | |
44955 | esac | |
1e9e8aba | 44956 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
44957 | shift |
44958 | done | |
44959 | ||
1e9e8aba DE |
44960 | if test "x${D}{headerfile}" = "x" ; then |
44961 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 44962 | else |
1e9e8aba DE |
44963 | if test -f ${D}{outfile} ; then |
44964 | rm -f ${D}{outfile} | |
a848cd7e | 44965 | else |
1e9e8aba | 44966 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 44967 | fi |
1e9e8aba | 44968 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
44969 | mkdir -p .deps |
44970 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
44971 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
44972 | exit ${D}{?} | |
a848cd7e SC |
44973 | fi |
44974 | EOF | |
1e9e8aba | 44975 | |
a848cd7e SC |
44976 | chmod +x bk-make-pch |
44977 | fi | |
44978 | fi | |
44979 | fi | |
44980 | ||
44981 | ||
44982 | ||
a848cd7e SC |
44983 | COND_BUILD_DEBUG="#" |
44984 | if test "x$BUILD" = "xdebug" ; then | |
44985 | COND_BUILD_DEBUG="" | |
44986 | fi | |
44987 | ||
44988 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
44989 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
44990 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
44991 | fi | |
44992 | ||
44993 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
44994 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
44995 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
44996 | fi | |
44997 | ||
44998 | COND_BUILD_DEBUG_UNICODE_0="#" | |
44999 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
45000 | COND_BUILD_DEBUG_UNICODE_0="" | |
45001 | fi | |
45002 | ||
45003 | COND_BUILD_DEBUG_UNICODE_1="#" | |
45004 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
45005 | COND_BUILD_DEBUG_UNICODE_1="" | |
45006 | fi | |
45007 | ||
45008 | COND_BUILD_RELEASE="#" | |
45009 | if test "x$BUILD" = "xrelease" ; then | |
45010 | COND_BUILD_RELEASE="" | |
45011 | fi | |
45012 | ||
45013 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
45014 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
45015 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
45016 | fi | |
45017 | ||
45018 | COND_BUILD_RELEASE_UNICODE_0="#" | |
45019 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
45020 | COND_BUILD_RELEASE_UNICODE_0="" | |
45021 | fi | |
45022 | ||
45023 | COND_BUILD_RELEASE_UNICODE_1="#" | |
45024 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
45025 | COND_BUILD_RELEASE_UNICODE_1="" | |
45026 | fi | |
45027 | ||
45028 | COND_DEBUG_FLAG_1="#" | |
45029 | if test "x$DEBUG_FLAG" = "x1" ; then | |
45030 | COND_DEBUG_FLAG_1="" | |
45031 | fi | |
45032 | ||
45033 | COND_DEBUG_INFO_0="#" | |
45034 | if test "x$DEBUG_INFO" = "x0" ; then | |
45035 | COND_DEBUG_INFO_0="" | |
45036 | fi | |
45037 | ||
45038 | COND_DEBUG_INFO_1="#" | |
45039 | if test "x$DEBUG_INFO" = "x1" ; then | |
45040 | COND_DEBUG_INFO_1="" | |
45041 | fi | |
45042 | ||
45043 | COND_DEPS_TRACKING_0="#" | |
45044 | if test "x$DEPS_TRACKING" = "x0" ; then | |
45045 | COND_DEPS_TRACKING_0="" | |
45046 | fi | |
45047 | ||
45048 | COND_DEPS_TRACKING_1="#" | |
45049 | if test "x$DEPS_TRACKING" = "x1" ; then | |
45050 | COND_DEPS_TRACKING_1="" | |
45051 | fi | |
45052 | ||
45053 | COND_GCC_PCH_1="#" | |
45054 | if test "x$GCC_PCH" = "x1" ; then | |
45055 | COND_GCC_PCH_1="" | |
45056 | fi | |
45057 | ||
45058 | COND_MONOLITHIC_0="#" | |
45059 | if test "x$MONOLITHIC" = "x0" ; then | |
45060 | COND_MONOLITHIC_0="" | |
45061 | fi | |
45062 | ||
45063 | COND_MONOLITHIC_0_SHARED_0="#" | |
45064 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
45065 | COND_MONOLITHIC_0_SHARED_0="" | |
45066 | fi | |
45067 | ||
45068 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
45069 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
45070 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
45071 | fi | |
45072 | ||
90970d69 DE |
45073 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
45074 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
45075 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
45076 | fi | |
45077 | ||
a848cd7e SC |
45078 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
45079 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45080 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
45081 | fi | |
45082 | ||
6671c68b VZ |
45083 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
45084 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
45085 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
45086 | fi | |
45087 | ||
a848cd7e SC |
45088 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
45089 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
45090 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
45091 | fi | |
45092 | ||
ceec2216 RL |
45093 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
45094 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
45095 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
45096 | fi | |
45097 | ||
a848cd7e SC |
45098 | COND_MONOLITHIC_0_SHARED_1="#" |
45099 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
45100 | COND_MONOLITHIC_0_SHARED_1="" | |
45101 | fi | |
45102 | ||
45103 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
45104 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45105 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
45106 | fi | |
45107 | ||
90970d69 DE |
45108 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
45109 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
45110 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
45111 | fi | |
45112 | ||
a848cd7e SC |
45113 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
45114 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45115 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
45116 | fi | |
45117 | ||
6671c68b VZ |
45118 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
45119 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
45120 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
45121 | fi | |
45122 | ||
a848cd7e SC |
45123 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
45124 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45125 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
45126 | fi | |
45127 | ||
ceec2216 RL |
45128 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
45129 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
45130 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
45131 | fi | |
45132 | ||
a848cd7e SC |
45133 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
45134 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
45135 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
45136 | fi | |
45137 | ||
45138 | COND_MONOLITHIC_1="#" | |
45139 | if test "x$MONOLITHIC" = "x1" ; then | |
45140 | COND_MONOLITHIC_1="" | |
45141 | fi | |
45142 | ||
45143 | COND_MONOLITHIC_1_SHARED_0="#" | |
45144 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
45145 | COND_MONOLITHIC_1_SHARED_0="" | |
45146 | fi | |
45147 | ||
45148 | COND_MONOLITHIC_1_SHARED_1="#" | |
45149 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
45150 | COND_MONOLITHIC_1_SHARED_1="" | |
45151 | fi | |
45152 | ||
45153 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
45154 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
45155 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
45156 | fi | |
45157 | ||
45158 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
45159 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
45160 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
45161 | fi | |
45162 | ||
eb730a0c JS |
45163 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
45164 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
45165 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
45166 | fi | |
45167 | ||
a848cd7e SC |
45168 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
45169 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
45170 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
45171 | fi | |
45172 | ||
45173 | COND_PLATFORM_MACOSX_1="#" | |
45174 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
45175 | COND_PLATFORM_MACOSX_1="" | |
45176 | fi | |
45177 | ||
a30f955f VS |
45178 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
45179 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
45180 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
45181 | fi | |
45182 | ||
a848cd7e SC |
45183 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
45184 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
45185 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
45186 | fi | |
45187 | ||
45188 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
45189 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
45190 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
45191 | fi | |
45192 | ||
45193 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
45194 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
45195 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
45196 | fi | |
45197 | ||
fc480dc1 DE |
45198 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
45199 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
45200 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
45201 | fi | |
45202 | ||
1e9e8aba DE |
45203 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
45204 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45205 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
45206 | fi | |
45207 | ||
ebee3cd0 VS |
45208 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
45209 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
45210 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
45211 | fi | |
45212 | ||
45213 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
45214 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
45215 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
45216 | fi | |
45217 | ||
a848cd7e SC |
45218 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
45219 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45220 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
45221 | fi | |
45222 | ||
45223 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
45224 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
45225 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
45226 | fi | |
45227 | ||
b48a2016 DE |
45228 | COND_PLATFORM_MACOS_1="#" |
45229 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
45230 | COND_PLATFORM_MACOS_1="" | |
45231 | fi | |
45232 | ||
083508af MW |
45233 | COND_PLATFORM_MAC_1="#" |
45234 | if test "x$PLATFORM_MAC" = "x1" ; then | |
45235 | COND_PLATFORM_MAC_1="" | |
45236 | fi | |
45237 | ||
83d8eb47 MW |
45238 | COND_PLATFORM_MSDOS_1="#" |
45239 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
45240 | COND_PLATFORM_MSDOS_1="" | |
45241 | fi | |
45242 | ||
a848cd7e SC |
45243 | COND_PLATFORM_OS2_1="#" |
45244 | if test "x$PLATFORM_OS2" = "x1" ; then | |
45245 | COND_PLATFORM_OS2_1="" | |
45246 | fi | |
45247 | ||
45248 | COND_PLATFORM_UNIX_0="#" | |
45249 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
45250 | COND_PLATFORM_UNIX_0="" | |
45251 | fi | |
45252 | ||
45253 | COND_PLATFORM_UNIX_1="#" | |
45254 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
45255 | COND_PLATFORM_UNIX_1="" | |
45256 | fi | |
45257 | ||
45258 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
45259 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45260 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
45261 | fi | |
45262 | ||
45263 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
45264 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
45265 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
45266 | fi | |
45267 | ||
45268 | COND_PLATFORM_WIN32_0="#" | |
45269 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
45270 | COND_PLATFORM_WIN32_0="" | |
45271 | fi | |
45272 | ||
45273 | COND_PLATFORM_WIN32_1="#" | |
45274 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
45275 | COND_PLATFORM_WIN32_1="" | |
45276 | fi | |
45277 | ||
45278 | COND_SHARED_0="#" | |
45279 | if test "x$SHARED" = "x0" ; then | |
45280 | COND_SHARED_0="" | |
45281 | fi | |
45282 | ||
083508af MW |
45283 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
45284 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
45285 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
45286 | fi | |
45287 | ||
45288 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
45289 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
45290 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
45291 | fi | |
45292 | ||
45293 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
45294 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
45295 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
45296 | fi | |
45297 | ||
a848cd7e SC |
45298 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
45299 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
45300 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
45301 | fi | |
45302 | ||
45303 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
45304 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
45305 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
45306 | fi | |
45307 | ||
45308 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
45309 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
45310 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
45311 | fi | |
45312 | ||
45313 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
45314 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
45315 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
45316 | fi | |
45317 | ||
083508af MW |
45318 | COND_SHARED_0_USE_XRC_1="#" |
45319 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
45320 | COND_SHARED_0_USE_XRC_1="" | |
45321 | fi | |
45322 | ||
a848cd7e SC |
45323 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
45324 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
45325 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
45326 | fi | |
45327 | ||
45328 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
45329 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
45330 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
45331 | fi | |
45332 | ||
45333 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
45334 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
45335 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
45336 | fi | |
45337 | ||
45338 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
45339 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
45340 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
45341 | fi | |
45342 | ||
45343 | COND_SHARED_1="#" | |
45344 | if test "x$SHARED" = "x1" ; then | |
45345 | COND_SHARED_1="" | |
45346 | fi | |
45347 | ||
45348 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
45349 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
45350 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
45351 | fi | |
45352 | ||
083508af MW |
45353 | COND_SHARED_1_USE_XRC_1="#" |
45354 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
45355 | COND_SHARED_1_USE_XRC_1="" | |
45356 | fi | |
45357 | ||
a30f955f VS |
45358 | COND_TOOLKIT_="#" |
45359 | if test "x$TOOLKIT" = "x" ; then | |
45360 | COND_TOOLKIT_="" | |
45361 | fi | |
45362 | ||
a848cd7e SC |
45363 | COND_TOOLKIT_COCOA="#" |
45364 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
45365 | COND_TOOLKIT_COCOA="" | |
45366 | fi | |
45367 | ||
a49baeab DE |
45368 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
45369 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
45370 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
45371 | fi | |
45372 | ||
a848cd7e SC |
45373 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
45374 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45375 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
45376 | fi | |
45377 | ||
45378 | COND_TOOLKIT_GTK="#" | |
45379 | if test "x$TOOLKIT" = "xGTK" ; then | |
45380 | COND_TOOLKIT_GTK="" | |
45381 | fi | |
45382 | ||
45383 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
45384 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
45385 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
45386 | fi | |
45387 | ||
45388 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
45389 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45390 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
45391 | fi | |
45392 | ||
45393 | COND_TOOLKIT_MAC="#" | |
45394 | if test "x$TOOLKIT" = "xMAC" ; then | |
45395 | COND_TOOLKIT_MAC="" | |
45396 | fi | |
45397 | ||
45398 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
45399 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
45400 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
45401 | fi | |
45402 | ||
45403 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
45404 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45405 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
45406 | fi | |
45407 | ||
45408 | COND_TOOLKIT_MGL="#" | |
45409 | if test "x$TOOLKIT" = "xMGL" ; then | |
45410 | COND_TOOLKIT_MGL="" | |
45411 | fi | |
45412 | ||
45413 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
45414 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
45415 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
45416 | fi | |
45417 | ||
45418 | COND_TOOLKIT_MOTIF="#" | |
45419 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
45420 | COND_TOOLKIT_MOTIF="" | |
45421 | fi | |
45422 | ||
45423 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
45424 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
45425 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
45426 | fi | |
45427 | ||
45428 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
45429 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45430 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
45431 | fi | |
45432 | ||
45433 | COND_TOOLKIT_MSW="#" | |
45434 | if test "x$TOOLKIT" = "xMSW" ; then | |
45435 | COND_TOOLKIT_MSW="" | |
45436 | fi | |
45437 | ||
45438 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
45439 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
45440 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
45441 | fi | |
45442 | ||
45443 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
45444 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45445 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
45446 | fi | |
45447 | ||
0ee4059d DE |
45448 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
45449 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
45450 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
45451 | fi | |
45452 | ||
a848cd7e SC |
45453 | COND_TOOLKIT_PM="#" |
45454 | if test "x$TOOLKIT" = "xPM" ; then | |
45455 | COND_TOOLKIT_PM="" | |
45456 | fi | |
45457 | ||
45458 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
45459 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
45460 | COND_TOOLKIT_PM_USE_GUI_1="" | |
45461 | fi | |
45462 | ||
45463 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
45464 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45465 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
45466 | fi | |
45467 | ||
3fd9c298 DE |
45468 | COND_TOOLKIT_WINCE="#" |
45469 | if test "x$TOOLKIT" = "xWINCE" ; then | |
45470 | COND_TOOLKIT_WINCE="" | |
45471 | fi | |
45472 | ||
45473 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
45474 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
45475 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
45476 | fi | |
45477 | ||
45478 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
45479 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45480 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
45481 | fi | |
45482 | ||
0ee4059d DE |
45483 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
45484 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
45485 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
45486 | fi | |
45487 | ||
a848cd7e SC |
45488 | COND_TOOLKIT_X11="#" |
45489 | if test "x$TOOLKIT" = "xX11" ; then | |
45490 | COND_TOOLKIT_X11="" | |
45491 | fi | |
45492 | ||
45493 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
45494 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
45495 | COND_TOOLKIT_X11_USE_GUI_1="" | |
45496 | fi | |
45497 | ||
45498 | COND_UNICODE_1="#" | |
45499 | if test "x$UNICODE" = "x1" ; then | |
45500 | COND_UNICODE_1="" | |
45501 | fi | |
45502 | ||
45503 | COND_USE_EXCEPTIONS_0="#" | |
45504 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
45505 | COND_USE_EXCEPTIONS_0="" | |
45506 | fi | |
45507 | ||
45508 | COND_USE_EXCEPTIONS_1="#" | |
45509 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
45510 | COND_USE_EXCEPTIONS_1="" | |
45511 | fi | |
45512 | ||
45513 | COND_USE_GUI_0="#" | |
45514 | if test "x$USE_GUI" = "x0" ; then | |
45515 | COND_USE_GUI_0="" | |
45516 | fi | |
45517 | ||
45518 | COND_USE_GUI_1="#" | |
45519 | if test "x$USE_GUI" = "x1" ; then | |
45520 | COND_USE_GUI_1="" | |
45521 | fi | |
45522 | ||
45523 | COND_USE_GUI_1_WXUNIV_0="#" | |
45524 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45525 | COND_USE_GUI_1_WXUNIV_0="" | |
45526 | fi | |
45527 | ||
45528 | COND_USE_GUI_1_WXUNIV_1="#" | |
45529 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
45530 | COND_USE_GUI_1_WXUNIV_1="" | |
45531 | fi | |
45532 | ||
45533 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
45534 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
45535 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
45536 | fi | |
45537 | ||
45538 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
45539 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
45540 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
45541 | fi | |
45542 | ||
45543 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
45544 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
45545 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
45546 | fi | |
45547 | ||
083508af MW |
45548 | COND_USE_ODBC_1="#" |
45549 | if test "x$USE_ODBC" = "x1" ; then | |
45550 | COND_USE_ODBC_1="" | |
45551 | fi | |
45552 | ||
45553 | COND_USE_OPENGL_1="#" | |
45554 | if test "x$USE_OPENGL" = "x1" ; then | |
45555 | COND_USE_OPENGL_1="" | |
45556 | fi | |
45557 | ||
a848cd7e SC |
45558 | COND_USE_PLUGINS_0="#" |
45559 | if test "x$USE_PLUGINS" = "x0" ; then | |
45560 | COND_USE_PLUGINS_0="" | |
45561 | fi | |
45562 | ||
0b78747f MW |
45563 | COND_USE_RTTI_0="#" |
45564 | if test "x$USE_RTTI" = "x0" ; then | |
45565 | COND_USE_RTTI_0="" | |
45566 | fi | |
45567 | ||
45568 | COND_USE_RTTI_1="#" | |
45569 | if test "x$USE_RTTI" = "x1" ; then | |
45570 | COND_USE_RTTI_1="" | |
45571 | fi | |
45572 | ||
a848cd7e SC |
45573 | COND_USE_SOSYMLINKS_1="#" |
45574 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
45575 | COND_USE_SOSYMLINKS_1="" | |
45576 | fi | |
45577 | ||
eb730a0c JS |
45578 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
45579 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
45580 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
45581 | fi | |
45582 | ||
a848cd7e SC |
45583 | COND_USE_SOVERLINUX_1="#" |
45584 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
45585 | COND_USE_SOVERLINUX_1="" | |
45586 | fi | |
45587 | ||
45588 | COND_USE_SOVERSION_0="#" | |
45589 | if test "x$USE_SOVERSION" = "x0" ; then | |
45590 | COND_USE_SOVERSION_0="" | |
45591 | fi | |
45592 | ||
45593 | COND_USE_SOVERSOLARIS_1="#" | |
45594 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
45595 | COND_USE_SOVERSOLARIS_1="" | |
45596 | fi | |
45597 | ||
0b78747f MW |
45598 | COND_USE_THREADS_0="#" |
45599 | if test "x$USE_THREADS" = "x0" ; then | |
45600 | COND_USE_THREADS_0="" | |
45601 | fi | |
45602 | ||
45603 | COND_USE_THREADS_1="#" | |
45604 | if test "x$USE_THREADS" = "x1" ; then | |
45605 | COND_USE_THREADS_1="" | |
45606 | fi | |
45607 | ||
a13a7f89 RL |
45608 | COND_USE_XRC_1="#" |
45609 | if test "x$USE_XRC" = "x1" ; then | |
45610 | COND_USE_XRC_1="" | |
45611 | fi | |
45612 | ||
eb730a0c JS |
45613 | COND_WINDOWS_IMPLIB_1="#" |
45614 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
45615 | COND_WINDOWS_IMPLIB_1="" | |
45616 | fi | |
45617 | ||
a848cd7e SC |
45618 | COND_WITH_PLUGIN_SDL_1="#" |
45619 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
45620 | COND_WITH_PLUGIN_SDL_1="" | |
45621 | fi | |
45622 | ||
1e6eb025 VZ |
45623 | COND_WXUNIV_0="#" |
45624 | if test "x$WXUNIV" = "x0" ; then | |
45625 | COND_WXUNIV_0="" | |
45626 | fi | |
45627 | ||
a848cd7e SC |
45628 | COND_WXUNIV_1="#" |
45629 | if test "x$WXUNIV" = "x1" ; then | |
45630 | COND_WXUNIV_1="" | |
45631 | fi | |
45632 | ||
45633 | COND_WXUSE_EXPAT_BUILTIN="#" | |
45634 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
45635 | COND_WXUSE_EXPAT_BUILTIN="" | |
45636 | fi | |
45637 | ||
45638 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
45639 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
45640 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
45641 | fi | |
45642 | ||
45643 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
45644 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
45645 | COND_WXUSE_LIBPNG_BUILTIN="" | |
45646 | fi | |
45647 | ||
45648 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
45649 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
45650 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
45651 | fi | |
45652 | ||
45653 | COND_WXUSE_ODBC_BUILTIN="#" | |
45654 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
45655 | COND_WXUSE_ODBC_BUILTIN="" | |
45656 | fi | |
45657 | ||
45658 | COND_WXUSE_REGEX_BUILTIN="#" | |
45659 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
45660 | COND_WXUSE_REGEX_BUILTIN="" | |
45661 | fi | |
45662 | ||
45663 | COND_WXUSE_ZLIB_BUILTIN="#" | |
45664 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
45665 | COND_WXUSE_ZLIB_BUILTIN="" | |
45666 | fi | |
45667 | ||
45668 | ||
45669 | ||
810b94f0 MW |
45670 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
45671 | { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5 | |
45672 | echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;} | |
45673 | { (exit 1); exit 1; }; } | |
45674 | fi | |
45675 | ||
2057db16 VS |
45676 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
45677 | { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5 | |
45678 | echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;} | |
45679 | { (exit 1); exit 1; }; } | |
45680 | fi | |
45681 | ||
a848cd7e | 45682 | |
ceec2216 RL |
45683 | if test "$wxUSE_SHARED" = "yes"; then |
45684 | ||
45685 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
45686 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
45687 | ||
5b674b9d DE |
45688 | case "${host}" in |
45689 | *-pc-os2_emx | *-pc-os2-emx ) | |
45690 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
45691 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
45692 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
45693 | cp -p ${srcdir}/src/os2/dllar.sh . | |
45694 | ;; | |
45695 | esac | |
ceec2216 RL |
45696 | else |
45697 | ||
45698 | EXE_LINKER="$CXX -o" | |
45699 | ||
45700 | fi | |
69120ee4 VZ |
45701 | if test "$wxUSE_OMF" = "yes"; then |
45702 | case "${host}" in | |
45703 | *-pc-os2_emx | *-pc-os2-emx ) | |
45704 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
45705 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
45706 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
45707 | ;; | |
45708 | esac | |
45709 | fi | |
a848cd7e | 45710 | |
c08ebc62 | 45711 | if test $GCC_PCH = 1 ; then |
254e8e29 | 45712 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 45713 | fi |
a848cd7e SC |
45714 | |
45715 | ||
45716 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
45717 | ||
45718 | ||
45719 | ||
45720 | ||
45721 | ||
45722 | ||
45723 | ||
45724 | ||
45725 | ||
45726 | ||
45727 | ||
45728 | ||
45729 | ||
45730 | ||
45731 | ||
45732 | ||
45733 | ||
45734 | ||
45735 | ||
45736 | ||
45737 | ||
45738 | ||
45739 | ||
45740 | ||
45741 | ||
45742 | ||
45743 | ||
45744 | ||
45745 | ||
45746 | ||
45747 | ||
45748 | ||
45749 | ||
45750 | ||
45751 | ||
45752 | ||
45753 | ||
45754 | ||
45755 | ||
45756 | ||
45757 | ||
45758 | ||
a848cd7e SC |
45759 | |
45760 | ||
45761 | ||
45762 | ||
45763 | ||
45764 | ||
45765 | ||
45766 | ||
45767 | ||
45768 | ||
45769 | ||
45770 | ||
45771 | ||
45772 | ||
45773 | ||
45774 | ||
45775 | ||
45776 | ||
ddd14b14 | 45777 | |
a848cd7e SC |
45778 | |
45779 | ||
45780 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45781 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45782 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45783 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45785 | else | |
45786 | cat >conftest.make <<\_ACEOF | |
45787 | all: | |
45788 | @echo 'ac_maketemp="$(MAKE)"' | |
45789 | _ACEOF | |
45790 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45791 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45792 | if test -n "$ac_maketemp"; then | |
45793 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45794 | else | |
45795 | eval ac_cv_prog_make_${ac_make}_set=no | |
45796 | fi | |
45797 | rm -f conftest.make | |
45798 | fi | |
45799 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45800 | echo "$as_me:$LINENO: result: yes" >&5 | |
45801 | echo "${ECHO_T}yes" >&6 | |
45802 | SET_MAKE= | |
45803 | else | |
45804 | echo "$as_me:$LINENO: result: no" >&5 | |
45805 | echo "${ECHO_T}no" >&6 | |
45806 | SET_MAKE="MAKE=${MAKE-make}" | |
45807 | fi | |
45808 | ||
45809 | ||
a848cd7e | 45810 | |
ceec2216 RL |
45811 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
45812 | ||
a848cd7e | 45813 | |
ceec2216 | 45814 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 45815 | |
a848cd7e | 45816 | |
ceec2216 | 45817 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 45818 | |
ceec2216 RL |
45819 | |
45820 | ac_config_files="$ac_config_files version-script Makefile" | |
45821 | ||
45822 | ||
45823 | ac_config_commands="$ac_config_commands wx-config | |
45824 | " | |
a848cd7e SC |
45825 | |
45826 | ||
9103d280 | 45827 | |
1c14217d | 45828 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
45829 | if test "$wxUSE_GUI" = "yes"; then |
45830 | SUBDIRS="samples demos utils contrib" | |
45831 | else SUBDIRS="samples utils" | |
45832 | fi | |
45833 | ||
45834 | ||
45835 | ||
45836 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
45837 | if test "${with_cppunit_prefix+set}" = set; then | |
45838 | withval="$with_cppunit_prefix" | |
45839 | cppunit_config_prefix="$withval" | |
45840 | else | |
45841 | cppunit_config_prefix="" | |
45842 | fi; | |
45843 | ||
45844 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
45845 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
45846 | withval="$with_cppunit_exec_prefix" | |
45847 | cppunit_config_exec_prefix="$withval" | |
45848 | else | |
45849 | cppunit_config_exec_prefix="" | |
45850 | fi; | |
45851 | ||
45852 | if test x$cppunit_config_exec_prefix != x ; then | |
45853 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
45854 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
45855 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
45856 | fi | |
45857 | fi | |
45858 | if test x$cppunit_config_prefix != x ; then | |
45859 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
45860 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
45861 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
45862 | fi | |
45863 | fi | |
45864 | ||
45865 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
45866 | set dummy cppunit-config; ac_word=$2 | |
45867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45869 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
45870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45871 | else | |
45872 | case $CPPUNIT_CONFIG in | |
45873 | [\\/]* | ?:[\\/]*) | |
45874 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
45875 | ;; | |
45876 | *) | |
45877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45878 | for as_dir in $PATH | |
45879 | do | |
45880 | IFS=$as_save_IFS | |
45881 | test -z "$as_dir" && as_dir=. | |
45882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45884 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
45885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45886 | break 2 | |
45887 | fi | |
45888 | done | |
45889 | done | |
45890 | ||
45891 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
45892 | ;; | |
45893 | esac | |
45894 | fi | |
45895 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
45896 | ||
45897 | if test -n "$CPPUNIT_CONFIG"; then | |
45898 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
45899 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
45900 | else | |
45901 | echo "$as_me:$LINENO: result: no" >&5 | |
45902 | echo "${ECHO_T}no" >&6 | |
45903 | fi | |
45904 | ||
45905 | cppunit_version_min=1.8.0 | |
45906 | ||
45907 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
45908 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
45909 | no_cppunit="" | |
45910 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
45911 | no_cppunit=yes | |
45912 | else | |
45913 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
45914 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
45915 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
45916 | ||
45917 | cppunit_major_version=`echo $cppunit_version | \ | |
45918 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
45919 | cppunit_minor_version=`echo $cppunit_version | \ | |
45920 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
45921 | cppunit_micro_version=`echo $cppunit_version | \ | |
45922 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
45923 | ||
45924 | cppunit_major_min=`echo $cppunit_version_min | \ | |
45925 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
45926 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
45927 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
45928 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
45929 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
45930 | ||
45931 | cppunit_version_proper=`expr \ | |
45932 | $cppunit_major_version \> $cppunit_major_min \| \ | |
45933 | $cppunit_major_version \= $cppunit_major_min \& \ | |
45934 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
45935 | $cppunit_major_version \= $cppunit_major_min \& \ | |
45936 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
45937 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
45938 | ||
45939 | if test "$cppunit_version_proper" = "1" ; then | |
45940 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
45941 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
45942 | else | |
45943 | echo "$as_me:$LINENO: result: no" >&5 | |
45944 | echo "${ECHO_T}no" >&6 | |
45945 | no_cppunit=yes | |
45946 | fi | |
45947 | fi | |
45948 | ||
45949 | if test "x$no_cppunit" = x ; then | |
c2218763 | 45950 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
45951 | else |
45952 | CPPUNIT_CFLAGS="" | |
45953 | CPPUNIT_LIBS="" | |
c2218763 | 45954 | : |
a848cd7e SC |
45955 | fi |
45956 | ||
45957 | ||
45958 | ||
45959 | ||
45960 | ||
45961 | for subdir in `echo $SUBDIRS`; do | |
45962 | if test -d ${srcdir}/${subdir} ; then | |
45963 | if test "$wxUSE_GUI" = "yes"; then | |
45964 | if test ${subdir} = "samples"; then | |
45965 | makefiles="samples/Makefile.in $makefiles" | |
45966 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
45967 | if test -d $srcdir/samples/$sample; then | |
45968 | makefiles="samples/$sample/Makefile.in $makefiles" | |
45969 | fi | |
45970 | done | |
9c112555 MW |
45971 | else |
45972 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
45973 | eval "disabled=\$$disabled_var" | |
45974 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
45975 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
45976 | fi |
45977 | else if test ${subdir} = "samples"; then | |
45978 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
45979 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
45980 | makefiles="" |
45981 | for util in HelpGen tex2rtf ; do | |
45982 | if test -d $srcdir/utils/$util ; then | |
45983 | makefiles="utils/$util/Makefile.in \ | |
45984 | utils/$util/src/Makefile.in \ | |
45985 | $makefiles" | |
45986 | fi | |
45987 | done | |
a848cd7e SC |
45988 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
45989 | fi | |
45990 | fi | |
45991 | ||
45992 | for mkin in $makefiles ; do | |
45993 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
45994 | ac_config_files="$ac_config_files $mk" | |
45995 | ||
45996 | done | |
45997 | fi | |
45998 | done | |
1c14217d | 45999 | fi |
a848cd7e SC |
46000 | cat >confcache <<\_ACEOF |
46001 | # This file is a shell script that caches the results of configure | |
46002 | # tests run on this system so they can be shared between configure | |
46003 | # scripts and configure runs, see configure's option --config-cache. | |
46004 | # It is not useful on other systems. If it contains results you don't | |
46005 | # want to keep, you may remove or edit it. | |
46006 | # | |
46007 | # config.status only pays attention to the cache file if you give it | |
46008 | # the --recheck option to rerun configure. | |
46009 | # | |
46010 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
46011 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
46012 | # following values. | |
46013 | ||
46014 | _ACEOF | |
46015 | ||
46016 | # The following way of writing the cache mishandles newlines in values, | |
46017 | # but we know of no workaround that is simple, portable, and efficient. | |
46018 | # So, don't put newlines in cache variables' values. | |
46019 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
46020 | # and sets the high bit in the cache file unless we assign to the vars. | |
46021 | { | |
46022 | (set) 2>&1 | | |
46023 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
46024 | *ac_space=\ *) | |
46025 | # `set' does not quote correctly, so add quotes (double-quote | |
46026 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
46027 | sed -n \ | |
ac1cb8d3 VS |
46028 | "s/'/'\\\\''/g; |
46029 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
46030 | ;; |
46031 | *) | |
46032 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
46033 | sed -n \ | |
ac1cb8d3 | 46034 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
46035 | ;; |
46036 | esac; | |
46037 | } | | |
46038 | sed ' | |
46039 | t clear | |
46040 | : clear | |
46041 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
46042 | t end | |
46043 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
46044 | : end' >>confcache | |
46045 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
46046 | if test -w $cache_file; then | |
46047 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
46048 | cat confcache >$cache_file | |
46049 | else | |
46050 | echo "not updating unwritable cache $cache_file" | |
46051 | fi | |
46052 | fi | |
46053 | rm -f confcache | |
46054 | ||
46055 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
46056 | # Let make expand exec_prefix. | |
46057 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
46058 | ||
46059 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
46060 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
46061 | # trailing colons and then remove the whole line if VPATH becomes empty | |
46062 | # (actually we leave an empty line to preserve line numbers). | |
46063 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 46064 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
46065 | s/:*\$(srcdir):*/:/; |
46066 | s/:*\${srcdir}:*/:/; | |
46067 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 46068 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 46069 | s/:*$//; |
ac1cb8d3 | 46070 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
46071 | }' |
46072 | fi | |
46073 | ||
46074 | DEFS=-DHAVE_CONFIG_H | |
46075 | ||
46076 | ac_libobjs= | |
46077 | ac_ltlibobjs= | |
46078 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
46079 | # 1. Remove the extension, and $U if already installed. | |
46080 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 46081 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
46082 | # 2. Add them. |
46083 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
46084 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
46085 | done | |
46086 | LIBOBJS=$ac_libobjs | |
46087 | ||
46088 | LTLIBOBJS=$ac_ltlibobjs | |
46089 | ||
46090 | ||
46091 | ||
46092 | : ${CONFIG_STATUS=./config.status} | |
46093 | ac_clean_files_save=$ac_clean_files | |
46094 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
46095 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
46096 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
46097 | cat >$CONFIG_STATUS <<_ACEOF | |
46098 | #! $SHELL | |
46099 | # Generated by $as_me. | |
46100 | # Run this file to recreate the current configuration. | |
46101 | # Compiler output produced by configure, useful for debugging | |
46102 | # configure, is in config.log if it exists. | |
46103 | ||
46104 | debug=false | |
46105 | ac_cs_recheck=false | |
46106 | ac_cs_silent=false | |
46107 | SHELL=\${CONFIG_SHELL-$SHELL} | |
46108 | _ACEOF | |
46109 | ||
46110 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46111 | ## --------------------- ## | |
46112 | ## M4sh Initialization. ## | |
46113 | ## --------------------- ## | |
46114 | ||
46115 | # Be Bourne compatible | |
46116 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
46117 | emulate sh | |
46118 | NULLCMD=: | |
46119 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
46120 | # is contrary to our usage. Disable this feature. | |
46121 | alias -g '${1+"$@"}'='"$@"' | |
46122 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
46123 | set -o posix | |
46124 | fi | |
ac1cb8d3 | 46125 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
46126 | |
46127 | # Support unset when possible. | |
ac1cb8d3 | 46128 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
46129 | as_unset=unset |
46130 | else | |
46131 | as_unset=false | |
46132 | fi | |
46133 | ||
46134 | ||
46135 | # Work around bugs in pre-3.0 UWIN ksh. | |
46136 | $as_unset ENV MAIL MAILPATH | |
46137 | PS1='$ ' | |
46138 | PS2='> ' | |
46139 | PS4='+ ' | |
46140 | ||
46141 | # NLS nuisances. | |
46142 | for as_var in \ | |
46143 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
46144 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
46145 | LC_TELEPHONE LC_TIME | |
46146 | do | |
ac1cb8d3 | 46147 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
46148 | eval $as_var=C; export $as_var |
46149 | else | |
46150 | $as_unset $as_var | |
46151 | fi | |
46152 | done | |
46153 | ||
46154 | # Required to use basename. | |
46155 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
46156 | as_expr=expr | |
46157 | else | |
46158 | as_expr=false | |
46159 | fi | |
46160 | ||
46161 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
46162 | as_basename=basename | |
46163 | else | |
46164 | as_basename=false | |
46165 | fi | |
46166 | ||
46167 | ||
46168 | # Name of the executable. | |
46169 | as_me=`$as_basename "$0" || | |
46170 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
46171 | X"$0" : 'X\(//\)$' \| \ | |
46172 | X"$0" : 'X\(/\)$' \| \ | |
46173 | . : '\(.\)' 2>/dev/null || | |
46174 | echo X/"$0" | | |
46175 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
46176 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
46177 | /^X\/\(\/\).*/{ s//\1/; q; } | |
46178 | s/.*/./; q'` | |
46179 | ||
46180 | ||
46181 | # PATH needs CR, and LINENO needs CR and PATH. | |
46182 | # Avoid depending upon Character Ranges. | |
46183 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
46184 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
46185 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
46186 | as_cr_digits='0123456789' | |
46187 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
46188 | ||
46189 | # The user is always right. | |
46190 | if test "${PATH_SEPARATOR+set}" != set; then | |
46191 | echo "#! /bin/sh" >conf$$.sh | |
46192 | echo "exit 0" >>conf$$.sh | |
46193 | chmod +x conf$$.sh | |
46194 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46195 | PATH_SEPARATOR=';' | |
46196 | else | |
46197 | PATH_SEPARATOR=: | |
46198 | fi | |
46199 | rm -f conf$$.sh | |
46200 | fi | |
46201 | ||
46202 | ||
46203 | as_lineno_1=$LINENO | |
46204 | as_lineno_2=$LINENO | |
46205 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
46206 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
46207 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
46208 | # Find who we are. Look in the path if we contain no path at all | |
46209 | # relative or not. | |
46210 | case $0 in | |
46211 | *[\\/]* ) as_myself=$0 ;; | |
46212 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46213 | for as_dir in $PATH | |
46214 | do | |
46215 | IFS=$as_save_IFS | |
46216 | test -z "$as_dir" && as_dir=. | |
46217 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
46218 | done | |
46219 | ||
46220 | ;; | |
46221 | esac | |
46222 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
46223 | # in which case we are not to be found in the path. | |
46224 | if test "x$as_myself" = x; then | |
46225 | as_myself=$0 | |
46226 | fi | |
46227 | if test ! -f "$as_myself"; then | |
46228 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
46229 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
46230 | { (exit 1); exit 1; }; } | |
46231 | fi | |
46232 | case $CONFIG_SHELL in | |
46233 | '') | |
46234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46235 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
46236 | do | |
46237 | IFS=$as_save_IFS | |
46238 | test -z "$as_dir" && as_dir=. | |
46239 | for as_base in sh bash ksh sh5; do | |
46240 | case $as_dir in | |
46241 | /*) | |
46242 | if ("$as_dir/$as_base" -c ' | |
46243 | as_lineno_1=$LINENO | |
46244 | as_lineno_2=$LINENO | |
46245 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
46246 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
46247 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
46248 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
46249 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
46250 | CONFIG_SHELL=$as_dir/$as_base | |
46251 | export CONFIG_SHELL | |
46252 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
46253 | fi;; | |
46254 | esac | |
46255 | done | |
46256 | done | |
46257 | ;; | |
46258 | esac | |
46259 | ||
46260 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
46261 | # uniformly replaced by the line number. The first 'sed' inserts a | |
46262 | # line-number line before each line; the second 'sed' does the real | |
46263 | # work. The second script uses 'N' to pair each line-number line | |
46264 | # with the numbered line, and appends trailing '-' during | |
46265 | # substitution so that $LINENO is not a special case at line end. | |
46266 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
46267 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
46268 | sed '=' <$as_myself | | |
46269 | sed ' | |
46270 | N | |
46271 | s,$,-, | |
46272 | : loop | |
46273 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
46274 | t loop | |
46275 | s,-$,, | |
46276 | s,^['$as_cr_digits']*\n,, | |
46277 | ' >$as_me.lineno && | |
46278 | chmod +x $as_me.lineno || | |
46279 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
46280 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
46281 | { (exit 1); exit 1; }; } | |
46282 | ||
46283 | # Don't try to exec as it changes $[0], causing all sort of problems | |
46284 | # (the dirname of $[0] is not the place where we might find the | |
46285 | # original and so on. Autoconf is especially sensible to this). | |
46286 | . ./$as_me.lineno | |
46287 | # Exit status is that of the last command. | |
46288 | exit | |
46289 | } | |
46290 | ||
46291 | ||
46292 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
46293 | *c*,-n*) ECHO_N= ECHO_C=' | |
46294 | ' ECHO_T=' ' ;; | |
46295 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
46296 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
46297 | esac | |
46298 | ||
46299 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
46300 | as_expr=expr | |
46301 | else | |
46302 | as_expr=false | |
46303 | fi | |
46304 | ||
46305 | rm -f conf$$ conf$$.exe conf$$.file | |
46306 | echo >conf$$.file | |
46307 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
46308 | # We could just check for DJGPP; but this test a) works b) is more generic | |
46309 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
46310 | if test -f conf$$.exe; then | |
46311 | # Don't use ln at all; we don't have any links | |
46312 | as_ln_s='cp -p' | |
46313 | else | |
46314 | as_ln_s='ln -s' | |
46315 | fi | |
46316 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
46317 | as_ln_s=ln | |
46318 | else | |
46319 | as_ln_s='cp -p' | |
46320 | fi | |
46321 | rm -f conf$$ conf$$.exe conf$$.file | |
46322 | ||
46323 | if mkdir -p . 2>/dev/null; then | |
46324 | as_mkdir_p=: | |
46325 | else | |
ac1cb8d3 | 46326 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
46327 | as_mkdir_p=false |
46328 | fi | |
46329 | ||
46330 | as_executable_p="test -f" | |
46331 | ||
46332 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 46333 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
46334 | |
46335 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 46336 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
46337 | |
46338 | ||
46339 | # IFS | |
46340 | # We need space, tab and new line, in precisely that order. | |
46341 | as_nl=' | |
46342 | ' | |
46343 | IFS=" $as_nl" | |
46344 | ||
46345 | # CDPATH. | |
46346 | $as_unset CDPATH | |
46347 | ||
46348 | exec 6>&1 | |
46349 | ||
46350 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
46351 | # report actual input values of CONFIG_FILES etc. instead of their | |
46352 | # values after options handling. Logging --version etc. is OK. | |
46353 | exec 5>>config.log | |
46354 | { | |
46355 | echo | |
46356 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
46357 | ## Running $as_me. ## | |
46358 | _ASBOX | |
46359 | } >&5 | |
46360 | cat >&5 <<_CSEOF | |
46361 | ||
dd8df4fc | 46362 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 46363 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
46364 | |
46365 | CONFIG_FILES = $CONFIG_FILES | |
46366 | CONFIG_HEADERS = $CONFIG_HEADERS | |
46367 | CONFIG_LINKS = $CONFIG_LINKS | |
46368 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
46369 | $ $0 $@ | |
46370 | ||
46371 | _CSEOF | |
46372 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
46373 | echo >&5 | |
46374 | _ACEOF | |
46375 | ||
46376 | # Files that config.status was made for. | |
46377 | if test -n "$ac_config_files"; then | |
46378 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
46379 | fi | |
46380 | ||
46381 | if test -n "$ac_config_headers"; then | |
46382 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
46383 | fi | |
46384 | ||
46385 | if test -n "$ac_config_links"; then | |
46386 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
46387 | fi | |
46388 | ||
46389 | if test -n "$ac_config_commands"; then | |
46390 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
46391 | fi | |
46392 | ||
46393 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46394 | ||
46395 | ac_cs_usage="\ | |
46396 | \`$as_me' instantiates files from templates according to the | |
46397 | current configuration. | |
46398 | ||
46399 | Usage: $0 [OPTIONS] [FILE]... | |
46400 | ||
46401 | -h, --help print this help, then exit | |
46402 | -V, --version print version number, then exit | |
46403 | -q, --quiet do not print progress messages | |
46404 | -d, --debug don't remove temporary files | |
46405 | --recheck update $as_me by reconfiguring in the same conditions | |
46406 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 46407 | instantiate the configuration file FILE |
a848cd7e | 46408 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 46409 | instantiate the configuration header FILE |
a848cd7e SC |
46410 | |
46411 | Configuration files: | |
46412 | $config_files | |
46413 | ||
46414 | Configuration headers: | |
46415 | $config_headers | |
46416 | ||
46417 | Configuration commands: | |
46418 | $config_commands | |
46419 | ||
46420 | Report bugs to <bug-autoconf@gnu.org>." | |
46421 | _ACEOF | |
46422 | ||
46423 | cat >>$CONFIG_STATUS <<_ACEOF | |
46424 | ac_cs_version="\\ | |
dd8df4fc | 46425 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 46426 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
46427 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
46428 | ||
ac1cb8d3 | 46429 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
46430 | This config.status script is free software; the Free Software Foundation |
46431 | gives unlimited permission to copy, distribute and modify it." | |
46432 | srcdir=$srcdir | |
46433 | INSTALL="$INSTALL" | |
46434 | _ACEOF | |
46435 | ||
46436 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46437 | # If no file are specified by the user, then we need to provide default | |
46438 | # value. By we need to know if files were specified by the user. | |
46439 | ac_need_defaults=: | |
46440 | while test $# != 0 | |
46441 | do | |
46442 | case $1 in | |
46443 | --*=*) | |
46444 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
46445 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
46446 | ac_shift=: | |
46447 | ;; | |
46448 | -*) | |
46449 | ac_option=$1 | |
46450 | ac_optarg=$2 | |
46451 | ac_shift=shift | |
46452 | ;; | |
46453 | *) # This is not an option, so the user has probably given explicit | |
46454 | # arguments. | |
46455 | ac_option=$1 | |
46456 | ac_need_defaults=false;; | |
46457 | esac | |
46458 | ||
46459 | case $ac_option in | |
46460 | # Handling of the options. | |
46461 | _ACEOF | |
46462 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46463 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
46464 | ac_cs_recheck=: ;; | |
46465 | --version | --vers* | -V ) | |
46466 | echo "$ac_cs_version"; exit 0 ;; | |
46467 | --he | --h) | |
46468 | # Conflict between --help and --header | |
46469 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
46470 | Try \`$0 --help' for more information." >&5 | |
46471 | echo "$as_me: error: ambiguous option: $1 | |
46472 | Try \`$0 --help' for more information." >&2;} | |
46473 | { (exit 1); exit 1; }; };; | |
46474 | --help | --hel | -h ) | |
46475 | echo "$ac_cs_usage"; exit 0 ;; | |
46476 | --debug | --d* | -d ) | |
46477 | debug=: ;; | |
46478 | --file | --fil | --fi | --f ) | |
46479 | $ac_shift | |
46480 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
46481 | ac_need_defaults=false;; | |
46482 | --header | --heade | --head | --hea ) | |
46483 | $ac_shift | |
46484 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
46485 | ac_need_defaults=false;; | |
46486 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
46487 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
46488 | ac_cs_silent=: ;; | |
46489 | ||
46490 | # This is an error. | |
46491 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
46492 | Try \`$0 --help' for more information." >&5 | |
46493 | echo "$as_me: error: unrecognized option: $1 | |
46494 | Try \`$0 --help' for more information." >&2;} | |
46495 | { (exit 1); exit 1; }; } ;; | |
46496 | ||
46497 | *) ac_config_targets="$ac_config_targets $1" ;; | |
46498 | ||
46499 | esac | |
46500 | shift | |
46501 | done | |
46502 | ||
46503 | ac_configure_extra_args= | |
46504 | ||
46505 | if $ac_cs_silent; then | |
46506 | exec 6>/dev/null | |
46507 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
46508 | fi | |
46509 | ||
46510 | _ACEOF | |
46511 | cat >>$CONFIG_STATUS <<_ACEOF | |
46512 | if \$ac_cs_recheck; then | |
46513 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
46514 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
46515 | fi | |
46516 | ||
46517 | _ACEOF | |
46518 | ||
46519 | cat >>$CONFIG_STATUS <<_ACEOF | |
46520 | # | |
46521 | # INIT-COMMANDS section. | |
46522 | # | |
46523 | ||
ceec2216 RL |
46524 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
46525 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
46526 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
46527 | LN_S="${LN_S}" | |
a848cd7e SC |
46528 | |
46529 | ||
46530 | _ACEOF | |
46531 | ||
46532 | ||
46533 | ||
46534 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46535 | for ac_config_target in $ac_config_targets | |
46536 | do | |
46537 | case "$ac_config_target" in | |
46538 | # Handling of arguments. | |
ceec2216 RL |
46539 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
46540 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
46541 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
46542 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
46543 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
46544 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
46545 | "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;; | |
a848cd7e SC |
46546 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
46547 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
46548 | { (exit 1); exit 1; }; };; | |
46549 | esac | |
46550 | done | |
46551 | ||
46552 | # If the user did not use the arguments to specify the items to instantiate, | |
46553 | # then the envvar interface is used. Set only those that are not. | |
46554 | # We use the long form for the default assignment because of an extremely | |
46555 | # bizarre bug on SunOS 4.1.3. | |
46556 | if $ac_need_defaults; then | |
46557 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
46558 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
46559 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
46560 | fi | |
46561 | ||
46562 | # Have a temporary directory for convenience. Make it in the build tree | |
46563 | # simply because there is no reason to put it here, and in addition, | |
46564 | # creating and moving files from /tmp can sometimes cause problems. | |
46565 | # Create a temporary directory, and hook for its removal unless debugging. | |
46566 | $debug || | |
46567 | { | |
46568 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
46569 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
46570 | } | |
46571 | ||
46572 | # Create a (secure) tmp directory for tmp files. | |
46573 | ||
46574 | { | |
46575 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
46576 | test -n "$tmp" && test -d "$tmp" | |
46577 | } || | |
46578 | { | |
46579 | tmp=./confstat$$-$RANDOM | |
46580 | (umask 077 && mkdir $tmp) | |
46581 | } || | |
46582 | { | |
46583 | echo "$me: cannot create a temporary directory in ." >&2 | |
46584 | { (exit 1); exit 1; } | |
46585 | } | |
46586 | ||
46587 | _ACEOF | |
46588 | ||
46589 | cat >>$CONFIG_STATUS <<_ACEOF | |
46590 | ||
46591 | # | |
46592 | # CONFIG_FILES section. | |
46593 | # | |
46594 | ||
46595 | # No need to generate the scripts if there are no CONFIG_FILES. | |
46596 | # This happens for instance when ./config.status config.h | |
46597 | if test -n "\$CONFIG_FILES"; then | |
46598 | # Protect against being on the right side of a sed subst in config.status. | |
46599 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
46600 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
46601 | s,@SHELL@,$SHELL,;t t | |
46602 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
46603 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
46604 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
46605 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
46606 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
46607 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
46608 | s,@exec_prefix@,$exec_prefix,;t t | |
46609 | s,@prefix@,$prefix,;t t | |
46610 | s,@program_transform_name@,$program_transform_name,;t t | |
46611 | s,@bindir@,$bindir,;t t | |
46612 | s,@sbindir@,$sbindir,;t t | |
46613 | s,@libexecdir@,$libexecdir,;t t | |
46614 | s,@datadir@,$datadir,;t t | |
46615 | s,@sysconfdir@,$sysconfdir,;t t | |
46616 | s,@sharedstatedir@,$sharedstatedir,;t t | |
46617 | s,@localstatedir@,$localstatedir,;t t | |
46618 | s,@libdir@,$libdir,;t t | |
46619 | s,@includedir@,$includedir,;t t | |
46620 | s,@oldincludedir@,$oldincludedir,;t t | |
46621 | s,@infodir@,$infodir,;t t | |
46622 | s,@mandir@,$mandir,;t t | |
46623 | s,@build_alias@,$build_alias,;t t | |
46624 | s,@host_alias@,$host_alias,;t t | |
46625 | s,@target_alias@,$target_alias,;t t | |
46626 | s,@DEFS@,$DEFS,;t t | |
46627 | s,@ECHO_C@,$ECHO_C,;t t | |
46628 | s,@ECHO_N@,$ECHO_N,;t t | |
46629 | s,@ECHO_T@,$ECHO_T,;t t | |
46630 | s,@LIBS@,$LIBS,;t t | |
46631 | s,@build@,$build,;t t | |
46632 | s,@build_cpu@,$build_cpu,;t t | |
46633 | s,@build_vendor@,$build_vendor,;t t | |
46634 | s,@build_os@,$build_os,;t t | |
46635 | s,@host@,$host,;t t | |
46636 | s,@host_cpu@,$host_cpu,;t t | |
46637 | s,@host_vendor@,$host_vendor,;t t | |
46638 | s,@host_os@,$host_os,;t t | |
46639 | s,@target@,$target,;t t | |
46640 | s,@target_cpu@,$target_cpu,;t t | |
46641 | s,@target_vendor@,$target_vendor,;t t | |
46642 | s,@target_os@,$target_os,;t t | |
46643 | s,@CC@,$CC,;t t | |
46644 | s,@CFLAGS@,$CFLAGS,;t t | |
46645 | s,@LDFLAGS@,$LDFLAGS,;t t | |
46646 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
46647 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
46648 | s,@EXEEXT@,$EXEEXT,;t t | |
46649 | s,@OBJEXT@,$OBJEXT,;t t | |
46650 | s,@CPP@,$CPP,;t t | |
46651 | s,@EGREP@,$EGREP,;t t | |
46652 | s,@CXX@,$CXX,;t t | |
46653 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
46654 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
46655 | s,@RANLIB@,$RANLIB,;t t | |
46656 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
46657 | s,@AR@,$AR,;t t | |
8c80d384 | 46658 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
46659 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
46660 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
46661 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
46662 | s,@STRIP@,$STRIP,;t t | |
8c80d384 DE |
46663 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
46664 | s,@RESCOMP@,$RESCOMP,;t t | |
46665 | s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t | |
46666 | s,@DLLTOOL@,$DLLTOOL,;t t | |
46667 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
46668 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
46669 | s,@LN_S@,$LN_S,;t t | |
46670 | s,@CXXCPP@,$CXXCPP,;t t | |
46671 | s,@subdirs@,$subdirs,;t t | |
46672 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
46673 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
46674 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
46675 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
46676 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
46677 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
46678 | s,@X_LIBS@,$X_LIBS,;t t | |
46679 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
46680 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
46681 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
46682 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
46683 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
46684 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
46685 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
a848cd7e SC |
46686 | s,@DEREZ@,$DEREZ,;t t |
46687 | s,@SETFILE@,$SETFILE,;t t | |
46688 | s,@LIBICONV@,$LIBICONV,;t t | |
46689 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
46690 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
46691 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
46692 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
46693 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
46694 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
46695 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
46696 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
46697 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
46698 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
46699 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
46700 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
46701 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
46702 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
46703 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
46704 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
46705 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
46706 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
46707 | s,@VENDOR@,$VENDOR,;t t | |
46708 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
46709 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
46710 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
46711 | s,@WXUNIV@,$WXUNIV,;t t |
46712 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
46713 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
46714 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
46715 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
46716 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
46717 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
46718 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
46719 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
46720 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
46721 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 46722 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
46723 | s,@UNICODE@,$UNICODE,;t t |
46724 | s,@BUILD@,$BUILD,;t t | |
46725 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
46726 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
46727 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
46728 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
46729 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
46730 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
46731 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
46732 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
46733 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
46734 | s,@SET_MAKE@,$SET_MAKE,;t t | |
46735 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
46736 | s,@NM@,$NM,;t t |
46737 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
46738 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
46739 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
46740 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
46741 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
46742 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
46743 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 46744 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
46745 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
46746 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 46747 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
46748 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
46749 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
46750 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
46751 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
46752 | s,@LIBEXT@,$LIBEXT,;t t | |
46753 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
46754 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 46755 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
46756 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
46757 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
46758 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
46759 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
46760 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
46761 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 46762 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
46763 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
46764 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
46765 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 46766 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
46767 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
46768 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
46769 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
46770 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
46771 | s,@GCC_PCH@,$GCC_PCH,;t t | |
46772 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
46773 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
46774 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
46775 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
46776 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
46777 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
46778 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
46779 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
46780 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
46781 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
46782 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
46783 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
46784 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
46785 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
46786 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
46787 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
46788 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
46789 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 46790 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 46791 | 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 |
6671c68b | 46792 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t |
a848cd7e | 46793 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 46794 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
46795 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
46796 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 46797 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 46798 | 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 |
6671c68b | 46799 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t |
a848cd7e | 46800 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 46801 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
46802 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
46803 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
46804 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
46805 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
46806 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
46807 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 46808 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t |
a848cd7e SC |
46809 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
46810 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 46811 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
46812 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
46813 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
46814 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 46815 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 46816 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
ebee3cd0 VS |
46817 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
46818 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
46819 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
46820 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 46821 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 46822 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 46823 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
46824 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
46825 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
46826 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
46827 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
46828 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
46829 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
46830 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
46831 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
46832 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
46833 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
46834 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
46835 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
46836 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
46837 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
46838 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 46839 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
46840 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
46841 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
46842 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
46843 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
46844 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
46845 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 46846 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 46847 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 46848 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 46849 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
46850 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
46851 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
46852 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
46853 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
46854 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
46855 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
46856 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
46857 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
46858 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
46859 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
46860 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
46861 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
46862 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
46863 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
46864 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 46865 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
46866 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
46867 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
46868 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
46869 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
46870 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
46871 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 46872 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
46873 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
46874 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
46875 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
46876 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
46877 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
46878 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
46879 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
46880 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
46881 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
46882 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
46883 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
46884 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
46885 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
46886 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
a848cd7e | 46887 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
46888 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
46889 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 46890 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 46891 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
46892 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
46893 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
46894 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
46895 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
46896 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 46897 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 46898 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 46899 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 46900 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
46901 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
46902 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
46903 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
46904 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
46905 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
46906 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
46907 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
46908 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 46909 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
46910 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
46911 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
46912 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
46913 | s,@USE_GUI@,$USE_GUI,;t t | |
46914 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
46915 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
46916 | s,@TOOLKIT@,$TOOLKIT,;t t | |
46917 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 46918 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 46919 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
46920 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
46921 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 46922 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
46923 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
46924 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
46925 | s,@WX_VERSION@,$WX_VERSION,;t t | |
46926 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
46927 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
46928 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 46929 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
46930 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
46931 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
46932 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
46933 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
ddd14b14 | 46934 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
46935 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
46936 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 46937 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 46938 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
46939 | s,@DISTDIR@,$DISTDIR,;t t |
46940 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
46941 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
46942 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
46943 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
46944 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
46945 | s,@RESFLAGS@,$RESFLAGS,;t t | |
46946 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
46947 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
46948 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
46949 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
46950 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
46951 | s,@MACSETFILE@,$MACSETFILE,;t t | |
46952 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
46953 | s,@GCC@,$GCC,;t t | |
a848cd7e SC |
46954 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
46955 | s,@LIBOBJS@,$LIBOBJS,;t t | |
46956 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
46957 | CEOF | |
46958 | ||
46959 | _ACEOF | |
46960 | ||
46961 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46962 | # Split the substitutions into bite-sized pieces for seds with | |
46963 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
46964 | ac_max_sed_lines=48 | |
46965 | ac_sed_frag=1 # Number of current file. | |
46966 | ac_beg=1 # First line for current file. | |
46967 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
46968 | ac_more_lines=: | |
46969 | ac_sed_cmds= | |
46970 | while $ac_more_lines; do | |
46971 | if test $ac_beg -gt 1; then | |
46972 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
46973 | else | |
46974 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
46975 | fi | |
46976 | if test ! -s $tmp/subs.frag; then | |
46977 | ac_more_lines=false | |
46978 | else | |
46979 | # The purpose of the label and of the branching condition is to | |
46980 | # speed up the sed processing (if there are no `@' at all, there | |
46981 | # is no need to browse any of the substitutions). | |
46982 | # These are the two extra sed commands mentioned above. | |
46983 | (echo ':t | |
46984 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
46985 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 46986 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 46987 | else |
ac1cb8d3 | 46988 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
46989 | fi |
46990 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
46991 | ac_beg=$ac_end | |
46992 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
46993 | fi | |
46994 | done | |
46995 | if test -z "$ac_sed_cmds"; then | |
46996 | ac_sed_cmds=cat | |
46997 | fi | |
46998 | fi # test -n "$CONFIG_FILES" | |
46999 | ||
47000 | _ACEOF | |
47001 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47002 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
47003 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
47004 | case $ac_file in | |
47005 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
47006 | cat >$tmp/stdin |
47007 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
47008 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 47009 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 47010 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
47011 | * ) ac_file_in=$ac_file.in ;; |
47012 | esac | |
47013 | ||
47014 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
47015 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
47016 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47017 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
47018 | X"$ac_file" : 'X\(//\)$' \| \ | |
47019 | X"$ac_file" : 'X\(/\)' \| \ | |
47020 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47021 | echo X"$ac_file" | |
47022 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47023 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47024 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47025 | /^X\(\/\).*/{ s//\1/; q; } | |
47026 | s/.*/./; q'` | |
47027 | { if $as_mkdir_p; then | |
47028 | mkdir -p "$ac_dir" | |
47029 | else | |
47030 | as_dir="$ac_dir" | |
47031 | as_dirs= | |
47032 | while test ! -d "$as_dir"; do | |
47033 | as_dirs="$as_dir $as_dirs" | |
47034 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47035 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47036 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
47037 | X"$as_dir" : 'X\(//\)$' \| \ | |
47038 | X"$as_dir" : 'X\(/\)' \| \ | |
47039 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47040 | echo X"$as_dir" | |
47041 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47042 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47043 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47044 | /^X\(\/\).*/{ s//\1/; q; } | |
47045 | s/.*/./; q'` | |
47046 | done | |
47047 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47048 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47049 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47050 | { (exit 1); exit 1; }; }; } | |
47051 | ||
47052 | ac_builddir=. | |
47053 | ||
47054 | if test "$ac_dir" != .; then | |
47055 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
47056 | # A "../" for each directory in $ac_dir_suffix. | |
47057 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
47058 | else | |
47059 | ac_dir_suffix= ac_top_builddir= | |
47060 | fi | |
47061 | ||
47062 | case $srcdir in | |
47063 | .) # No --srcdir option. We are building in place. | |
47064 | ac_srcdir=. | |
47065 | if test -z "$ac_top_builddir"; then | |
47066 | ac_top_srcdir=. | |
47067 | else | |
47068 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
47069 | fi ;; | |
47070 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
47071 | ac_srcdir=$srcdir$ac_dir_suffix; | |
47072 | ac_top_srcdir=$srcdir ;; | |
47073 | *) # Relative path. | |
47074 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47075 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47076 | esac | |
ac1cb8d3 VS |
47077 | |
47078 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47079 | # the directories may not exist. | |
47080 | case `pwd` in | |
47081 | .) ac_abs_builddir="$ac_dir";; | |
47082 | *) | |
47083 | case "$ac_dir" in | |
47084 | .) ac_abs_builddir=`pwd`;; | |
47085 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47086 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47087 | esac;; | |
47088 | esac | |
47089 | case $ac_abs_builddir in | |
47090 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47091 | *) | |
47092 | case ${ac_top_builddir}. in | |
47093 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47094 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47095 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47096 | esac;; | |
47097 | esac | |
47098 | case $ac_abs_builddir in | |
47099 | .) ac_abs_srcdir=$ac_srcdir;; | |
47100 | *) | |
47101 | case $ac_srcdir in | |
47102 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47103 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47104 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47105 | esac;; | |
47106 | esac | |
47107 | case $ac_abs_builddir in | |
47108 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47109 | *) | |
47110 | case $ac_top_srcdir in | |
47111 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47112 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47113 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47114 | esac;; | |
47115 | esac | |
a848cd7e SC |
47116 | |
47117 | ||
47118 | case $INSTALL in | |
47119 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
47120 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
47121 | esac | |
47122 | ||
a848cd7e SC |
47123 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
47124 | # use $as_me), people would be surprised to read: | |
47125 | # /* config.h. Generated by config.status. */ | |
47126 | if test x"$ac_file" = x-; then | |
47127 | configure_input= | |
47128 | else | |
47129 | configure_input="$ac_file. " | |
47130 | fi | |
47131 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 47132 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
47133 | |
47134 | # First look for the input files in the build tree, otherwise in the | |
47135 | # src tree. | |
47136 | ac_file_inputs=`IFS=: | |
47137 | for f in $ac_file_in; do | |
47138 | case $f in | |
47139 | -) echo $tmp/stdin ;; | |
47140 | [\\/$]*) | |
ac1cb8d3 VS |
47141 | # Absolute (can't be DOS-style, as IFS=:) |
47142 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47143 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47144 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47145 | echo "$f";; |
a848cd7e | 47146 | *) # Relative |
ac1cb8d3 VS |
47147 | if test -f "$f"; then |
47148 | # Build tree | |
47149 | echo "$f" | |
47150 | elif test -f "$srcdir/$f"; then | |
47151 | # Source tree | |
47152 | echo "$srcdir/$f" | |
47153 | else | |
47154 | # /dev/null tree | |
47155 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47156 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47157 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47158 | fi;; |
a848cd7e SC |
47159 | esac |
47160 | done` || { (exit 1); exit 1; } | |
6ebeb4c7 VZ |
47161 | |
47162 | if test x"$ac_file" != x-; then | |
47163 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
47164 | echo "$as_me: creating $ac_file" >&6;} | |
47165 | rm -f "$ac_file" | |
47166 | fi | |
a848cd7e SC |
47167 | _ACEOF |
47168 | cat >>$CONFIG_STATUS <<_ACEOF | |
47169 | sed "$ac_vpsub | |
47170 | $extrasub | |
47171 | _ACEOF | |
47172 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47173 | :t | |
47174 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
47175 | s,@configure_input@,$configure_input,;t t | |
47176 | s,@srcdir@,$ac_srcdir,;t t | |
47177 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
47178 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
47179 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
47180 | s,@builddir@,$ac_builddir,;t t | |
47181 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
47182 | s,@top_builddir@,$ac_top_builddir,;t t | |
47183 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
47184 | s,@INSTALL@,$ac_INSTALL,;t t | |
47185 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
47186 | rm -f $tmp/stdin | |
47187 | if test x"$ac_file" != x-; then | |
47188 | mv $tmp/out $ac_file | |
47189 | else | |
47190 | cat $tmp/out | |
47191 | rm -f $tmp/out | |
47192 | fi | |
47193 | ||
ceec2216 RL |
47194 | # Run the commands associated with the file. |
47195 | case $ac_file in | |
47196 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
47197 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
47198 | esac | |
a848cd7e SC |
47199 | done |
47200 | _ACEOF | |
47201 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47202 | ||
47203 | # | |
47204 | # CONFIG_HEADER section. | |
47205 | # | |
47206 | ||
47207 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
47208 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
47209 | # | |
47210 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
47211 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
47212 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
47213 | ac_dC=' ' |
47214 | ac_dD=',;t' | |
47215 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 47216 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
47217 | ac_uB='$,\1#\2define\3' |
47218 | ac_uC=' ' | |
47219 | ac_uD=',;t' | |
47220 | ||
47221 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
47222 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
47223 | case $ac_file in | |
47224 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
47225 | cat >$tmp/stdin |
47226 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
47227 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 47228 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 47229 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
47230 | * ) ac_file_in=$ac_file.in ;; |
47231 | esac | |
47232 | ||
47233 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
47234 | echo "$as_me: creating $ac_file" >&6;} | |
47235 | ||
47236 | # First look for the input files in the build tree, otherwise in the | |
47237 | # src tree. | |
47238 | ac_file_inputs=`IFS=: | |
47239 | for f in $ac_file_in; do | |
47240 | case $f in | |
47241 | -) echo $tmp/stdin ;; | |
47242 | [\\/$]*) | |
ac1cb8d3 VS |
47243 | # Absolute (can't be DOS-style, as IFS=:) |
47244 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47245 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47246 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
47247 | # Do quote $f, to prevent DOS paths from being IFS'd. |
47248 | echo "$f";; | |
a848cd7e | 47249 | *) # Relative |
ac1cb8d3 VS |
47250 | if test -f "$f"; then |
47251 | # Build tree | |
47252 | echo "$f" | |
47253 | elif test -f "$srcdir/$f"; then | |
47254 | # Source tree | |
47255 | echo "$srcdir/$f" | |
47256 | else | |
47257 | # /dev/null tree | |
47258 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47259 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47260 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47261 | fi;; |
a848cd7e SC |
47262 | esac |
47263 | done` || { (exit 1); exit 1; } | |
47264 | # Remove the trailing spaces. | |
ac1cb8d3 | 47265 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
47266 | |
47267 | _ACEOF | |
47268 | ||
47269 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
47270 | # `conftest.undefs', that substitutes the proper values into | |
47271 | # config.h.in to produce config.h. The first handles `#define' | |
47272 | # templates, and the second `#undef' templates. | |
47273 | # And first: Protect against being on the right side of a sed subst in | |
47274 | # config.status. Protect against being in an unquoted here document | |
47275 | # in config.status. | |
47276 | rm -f conftest.defines conftest.undefs | |
47277 | # Using a here document instead of a string reduces the quoting nightmare. | |
47278 | # Putting comments in sed scripts is not portable. | |
47279 | # | |
47280 | # `end' is used to avoid that the second main sed command (meant for | |
47281 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
47282 | # See the Autoconf documentation for `clear'. | |
47283 | cat >confdef2sed.sed <<\_ACEOF | |
47284 | s/[\\&,]/\\&/g | |
47285 | s,[\\$`],\\&,g | |
47286 | t clear | |
47287 | : clear | |
ac1cb8d3 | 47288 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 47289 | t end |
ac1cb8d3 | 47290 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
47291 | : end |
47292 | _ACEOF | |
47293 | # If some macros were called several times there might be several times | |
47294 | # the same #defines, which is useless. Nevertheless, we may not want to | |
47295 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
47296 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
47297 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
47298 | rm -f confdef2sed.sed | |
47299 | ||
47300 | # This sed command replaces #undef with comments. This is necessary, for | |
47301 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
47302 | # on some systems where configure will not decide to define it. | |
47303 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 47304 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
47305 | _ACEOF |
47306 | ||
47307 | # Break up conftest.defines because some shells have a limit on the size | |
47308 | # of here documents, and old seds have small limits too (100 cmds). | |
47309 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 47310 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
47311 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
47312 | echo ' :' >>$CONFIG_STATUS | |
47313 | rm -f conftest.tail | |
47314 | while grep . conftest.defines >/dev/null | |
47315 | do | |
47316 | # Write a limited-size here document to $tmp/defines.sed. | |
47317 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
47318 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 47319 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
47320 | # Work around the forget-to-reset-the-flag bug. |
47321 | echo 't clr' >>$CONFIG_STATUS | |
47322 | echo ': clr' >>$CONFIG_STATUS | |
47323 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
47324 | echo 'CEOF | |
47325 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
47326 | rm -f $tmp/in | |
47327 | mv $tmp/out $tmp/in | |
47328 | ' >>$CONFIG_STATUS | |
47329 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
47330 | rm -f conftest.defines | |
47331 | mv conftest.tail conftest.defines | |
47332 | done | |
47333 | rm -f conftest.defines | |
47334 | echo ' fi # grep' >>$CONFIG_STATUS | |
47335 | echo >>$CONFIG_STATUS | |
47336 | ||
47337 | # Break up conftest.undefs because some shells have a limit on the size | |
47338 | # of here documents, and old seds have small limits too (100 cmds). | |
47339 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
47340 | rm -f conftest.tail | |
47341 | while grep . conftest.undefs >/dev/null | |
47342 | do | |
47343 | # Write a limited-size here document to $tmp/undefs.sed. | |
47344 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
47345 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 47346 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
47347 | # Work around the forget-to-reset-the-flag bug. |
47348 | echo 't clr' >>$CONFIG_STATUS | |
47349 | echo ': clr' >>$CONFIG_STATUS | |
47350 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
47351 | echo 'CEOF | |
47352 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
47353 | rm -f $tmp/in | |
47354 | mv $tmp/out $tmp/in | |
47355 | ' >>$CONFIG_STATUS | |
47356 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
47357 | rm -f conftest.undefs | |
47358 | mv conftest.tail conftest.undefs | |
47359 | done | |
47360 | rm -f conftest.undefs | |
47361 | ||
47362 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47363 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
47364 | # use $as_me), people would be surprised to read: | |
47365 | # /* config.h. Generated by config.status. */ | |
47366 | if test x"$ac_file" = x-; then | |
47367 | echo "/* Generated by configure. */" >$tmp/config.h | |
47368 | else | |
47369 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
47370 | fi | |
47371 | cat $tmp/in >>$tmp/config.h | |
47372 | rm -f $tmp/in | |
47373 | if test x"$ac_file" != x-; then | |
47374 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
47375 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
47376 | echo "$as_me: $ac_file is unchanged" >&6;} | |
47377 | else | |
47378 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
47379 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47380 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
47381 | X"$ac_file" : 'X\(//\)$' \| \ | |
47382 | X"$ac_file" : 'X\(/\)' \| \ | |
47383 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47384 | echo X"$ac_file" | |
47385 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47386 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47387 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47388 | /^X\(\/\).*/{ s//\1/; q; } | |
47389 | s/.*/./; q'` | |
47390 | { if $as_mkdir_p; then | |
47391 | mkdir -p "$ac_dir" | |
47392 | else | |
47393 | as_dir="$ac_dir" | |
47394 | as_dirs= | |
47395 | while test ! -d "$as_dir"; do | |
47396 | as_dirs="$as_dir $as_dirs" | |
47397 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47398 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47399 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
47400 | X"$as_dir" : 'X\(//\)$' \| \ | |
47401 | X"$as_dir" : 'X\(/\)' \| \ | |
47402 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47403 | echo X"$as_dir" | |
47404 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47405 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47406 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47407 | /^X\(\/\).*/{ s//\1/; q; } | |
47408 | s/.*/./; q'` | |
47409 | done | |
47410 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47411 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47412 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47413 | { (exit 1); exit 1; }; }; } | |
47414 | ||
47415 | rm -f $ac_file | |
47416 | mv $tmp/config.h $ac_file | |
47417 | fi | |
47418 | else | |
47419 | cat $tmp/config.h | |
47420 | rm -f $tmp/config.h | |
47421 | fi | |
47422 | done | |
47423 | _ACEOF | |
47424 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47425 | ||
47426 | # | |
47427 | # CONFIG_COMMANDS section. | |
47428 | # | |
47429 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
47430 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
47431 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
47432 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
47433 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47434 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
47435 | X"$ac_dest" : 'X\(//\)$' \| \ | |
47436 | X"$ac_dest" : 'X\(/\)' \| \ | |
47437 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47438 | echo X"$ac_dest" | |
47439 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47440 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47441 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47442 | /^X\(\/\).*/{ s//\1/; q; } | |
47443 | s/.*/./; q'` | |
ac1cb8d3 VS |
47444 | { if $as_mkdir_p; then |
47445 | mkdir -p "$ac_dir" | |
47446 | else | |
47447 | as_dir="$ac_dir" | |
47448 | as_dirs= | |
47449 | while test ! -d "$as_dir"; do | |
47450 | as_dirs="$as_dir $as_dirs" | |
47451 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47452 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
47453 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
47454 | X"$as_dir" : 'X\(//\)$' \| \ | |
47455 | X"$as_dir" : 'X\(/\)' \| \ | |
47456 | . : '\(.\)' 2>/dev/null || | |
47457 | echo X"$as_dir" | | |
47458 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47459 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47460 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47461 | /^X\(\/\).*/{ s//\1/; q; } | |
47462 | s/.*/./; q'` | |
47463 | done | |
47464 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47465 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47466 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47467 | { (exit 1); exit 1; }; }; } | |
47468 | ||
a848cd7e SC |
47469 | ac_builddir=. |
47470 | ||
47471 | if test "$ac_dir" != .; then | |
47472 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
47473 | # A "../" for each directory in $ac_dir_suffix. | |
47474 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
47475 | else | |
47476 | ac_dir_suffix= ac_top_builddir= | |
47477 | fi | |
47478 | ||
47479 | case $srcdir in | |
47480 | .) # No --srcdir option. We are building in place. | |
47481 | ac_srcdir=. | |
47482 | if test -z "$ac_top_builddir"; then | |
47483 | ac_top_srcdir=. | |
47484 | else | |
47485 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
47486 | fi ;; | |
47487 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
47488 | ac_srcdir=$srcdir$ac_dir_suffix; | |
47489 | ac_top_srcdir=$srcdir ;; | |
47490 | *) # Relative path. | |
47491 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47492 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47493 | esac | |
ac1cb8d3 VS |
47494 | |
47495 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47496 | # the directories may not exist. | |
47497 | case `pwd` in | |
47498 | .) ac_abs_builddir="$ac_dir";; | |
47499 | *) | |
47500 | case "$ac_dir" in | |
47501 | .) ac_abs_builddir=`pwd`;; | |
47502 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47503 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47504 | esac;; | |
47505 | esac | |
47506 | case $ac_abs_builddir in | |
47507 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47508 | *) | |
47509 | case ${ac_top_builddir}. in | |
47510 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47511 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47512 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47513 | esac;; | |
47514 | esac | |
47515 | case $ac_abs_builddir in | |
47516 | .) ac_abs_srcdir=$ac_srcdir;; | |
47517 | *) | |
47518 | case $ac_srcdir in | |
47519 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47520 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47521 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47522 | esac;; | |
47523 | esac | |
47524 | case $ac_abs_builddir in | |
47525 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47526 | *) | |
47527 | case $ac_top_srcdir in | |
47528 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47529 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47530 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47531 | esac;; | |
47532 | esac | |
a848cd7e SC |
47533 | |
47534 | ||
47535 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
47536 | echo "$as_me: executing $ac_dest commands" >&6;} | |
47537 | case $ac_dest in | |
ceec2216 RL |
47538 | wx-config ) rm -f wx-config |
47539 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
47540 | ;; | |
a848cd7e SC |
47541 | esac |
47542 | done | |
47543 | _ACEOF | |
47544 | ||
47545 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47546 | ||
47547 | { (exit 0); exit 0; } | |
47548 | _ACEOF | |
47549 | chmod +x $CONFIG_STATUS | |
47550 | ac_clean_files=$ac_clean_files_save | |
47551 | ||
47552 | ||
47553 | # configure is writing to config.log, and then calls config.status. | |
47554 | # config.status does its own redirection, appending to config.log. | |
47555 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
47556 | # by configure, so config.status won't be able to write to it; its | |
47557 | # output is simply discarded. So we exec the FD to /dev/null, | |
47558 | # effectively closing config.log, so it can be properly (re)opened and | |
47559 | # appended to by config.status. When coming back to configure, we | |
47560 | # need to make the FD available again. | |
47561 | if test "$no_create" != yes; then | |
47562 | ac_cs_success=: | |
47563 | ac_config_status_args= | |
47564 | test "$silent" = yes && | |
47565 | ac_config_status_args="$ac_config_status_args --quiet" | |
47566 | exec 5>/dev/null | |
47567 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
47568 | exec 5>>config.log | |
47569 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
47570 | # would make configure fail if this is the last instruction. | |
47571 | $ac_cs_success || { (exit 1); exit 1; } | |
47572 | fi | |
47573 | ||
47574 | # | |
47575 | # CONFIG_SUBDIRS section. | |
47576 | # | |
47577 | if test "$no_recursion" != yes; then | |
47578 | ||
47579 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
47580 | ac_sub_configure_args= | |
47581 | ac_prev= | |
47582 | for ac_arg in $ac_configure_args; do | |
47583 | if test -n "$ac_prev"; then | |
47584 | ac_prev= | |
47585 | continue | |
47586 | fi | |
47587 | case $ac_arg in | |
47588 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
47589 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
47590 | ac_prev=cache_file ;; | |
47591 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
47592 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
47593 | | --c=*) | |
47594 | ;; | |
47595 | --config-cache | -C) | |
47596 | ;; | |
47597 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
47598 | ac_prev=srcdir ;; | |
47599 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
47600 | ;; | |
47601 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
47602 | ac_prev=prefix ;; | |
47603 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
47604 | ;; | |
47605 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
47606 | esac | |
47607 | done | |
47608 | ||
47609 | # Always prepend --prefix to ensure using the same prefix | |
47610 | # in subdir configurations. | |
47611 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
47612 | ||
47613 | ac_popdir=`pwd` | |
47614 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
47615 | ||
47616 | # Do not complain, so a configure script can configure whichever | |
47617 | # parts of a large source tree are present. | |
47618 | test -d $srcdir/$ac_dir || continue | |
47619 | ||
47620 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
47621 | echo "$as_me: configuring in $ac_dir" >&6;} | |
47622 | { if $as_mkdir_p; then | |
47623 | mkdir -p "$ac_dir" | |
47624 | else | |
47625 | as_dir="$ac_dir" | |
47626 | as_dirs= | |
47627 | while test ! -d "$as_dir"; do | |
47628 | as_dirs="$as_dir $as_dirs" | |
47629 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47630 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47631 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
47632 | X"$as_dir" : 'X\(//\)$' \| \ | |
47633 | X"$as_dir" : 'X\(/\)' \| \ | |
47634 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47635 | echo X"$as_dir" | |
47636 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47637 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47638 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47639 | /^X\(\/\).*/{ s//\1/; q; } | |
47640 | s/.*/./; q'` | |
47641 | done | |
47642 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47643 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47644 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47645 | { (exit 1); exit 1; }; }; } | |
47646 | ||
47647 | ac_builddir=. | |
47648 | ||
47649 | if test "$ac_dir" != .; then | |
47650 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
47651 | # A "../" for each directory in $ac_dir_suffix. | |
47652 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
47653 | else | |
47654 | ac_dir_suffix= ac_top_builddir= | |
47655 | fi | |
47656 | ||
47657 | case $srcdir in | |
47658 | .) # No --srcdir option. We are building in place. | |
47659 | ac_srcdir=. | |
47660 | if test -z "$ac_top_builddir"; then | |
47661 | ac_top_srcdir=. | |
47662 | else | |
47663 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
47664 | fi ;; | |
47665 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
47666 | ac_srcdir=$srcdir$ac_dir_suffix; | |
47667 | ac_top_srcdir=$srcdir ;; | |
47668 | *) # Relative path. | |
47669 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47670 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47671 | esac | |
ac1cb8d3 VS |
47672 | |
47673 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47674 | # the directories may not exist. | |
47675 | case `pwd` in | |
47676 | .) ac_abs_builddir="$ac_dir";; | |
47677 | *) | |
47678 | case "$ac_dir" in | |
47679 | .) ac_abs_builddir=`pwd`;; | |
47680 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47681 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47682 | esac;; | |
47683 | esac | |
47684 | case $ac_abs_builddir in | |
47685 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47686 | *) | |
47687 | case ${ac_top_builddir}. in | |
47688 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47689 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47690 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47691 | esac;; | |
47692 | esac | |
47693 | case $ac_abs_builddir in | |
47694 | .) ac_abs_srcdir=$ac_srcdir;; | |
47695 | *) | |
47696 | case $ac_srcdir in | |
47697 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47698 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47699 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47700 | esac;; | |
47701 | esac | |
47702 | case $ac_abs_builddir in | |
47703 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47704 | *) | |
47705 | case $ac_top_srcdir in | |
47706 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47707 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47708 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47709 | esac;; | |
47710 | esac | |
a848cd7e SC |
47711 | |
47712 | ||
47713 | cd $ac_dir | |
47714 | ||
47715 | # Check for guested configure; otherwise get Cygnus style configure. | |
47716 | if test -f $ac_srcdir/configure.gnu; then | |
47717 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
47718 | elif test -f $ac_srcdir/configure; then | |
47719 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
47720 | elif test -f $ac_srcdir/configure.in; then | |
47721 | ac_sub_configure=$ac_configure | |
47722 | else | |
47723 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
47724 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
47725 | ac_sub_configure= | |
47726 | fi | |
47727 | ||
47728 | # The recursion is here. | |
47729 | if test -n "$ac_sub_configure"; then | |
47730 | # Make the cache file name correct relative to the subdirectory. | |
47731 | case $cache_file in | |
47732 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
47733 | *) # Relative path. | |
ac1cb8d3 | 47734 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
47735 | esac |
47736 | ||
47737 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
47738 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
47739 | # The eval makes quoting arguments work. | |
47740 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
47741 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
47742 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
47743 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
47744 | { (exit 1); exit 1; }; } | |
47745 | fi | |
47746 | ||
6ebeb4c7 | 47747 | cd "$ac_popdir" |
a848cd7e SC |
47748 | done |
47749 | fi | |
47750 | ||
47751 | ||
47752 | echo | |
77ffb593 | 47753 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 47754 | echo "" |
4d4ff94c | 47755 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 47756 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 47757 | |
77ffb593 JS |
47758 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
47759 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
47760 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 47761 | |
77ffb593 JS |
47762 | echo " What level of wxWidgets compatibility should be enabled?" |
47763 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
47764 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 47765 | |
77ffb593 | 47766 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
47767 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
47768 | echo " png ${wxUSE_LIBPNG-none}" | |
47769 | echo " regex ${wxUSE_REGEX}" | |
47770 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
47771 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
47772 | echo " xpm ${wxUSE_LIBXPM-none}" | |
47773 | fi | |
47774 | echo " zlib ${wxUSE_ZLIB}" | |
47775 | echo " odbc ${wxUSE_ODBC}" | |
47776 | echo " expat ${wxUSE_EXPAT}" | |
47777 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
47778 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 47779 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
47780 | |
47781 | echo "" | |
47782 |