]>
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. | |
eb730a0c | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2. |
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' | |
eb730a0c JS |
273 | PACKAGE_VERSION='2.6.2' |
274 | PACKAGE_STRING='wxWidgets 2.6.2' | |
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" | |
8c80d384 | 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_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_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 | |
eb730a0c | 797 | \`configure' configures wxWidgets 2.6.2 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 | |
eb730a0c | 863 | short | recursive ) echo "Configuration of wxWidgets 2.6.2:";; |
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) | |
f34ca037 | 1057 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1058 | --with-motif use Motif/Lesstif |
1059 | --with-mac use Mac OS X | |
1060 | --with-cocoa use Cocoa | |
1061 | --with-wine use Wine | |
1062 | --with-msw use MS-Windows | |
1063 | --with-pm use OS/2 Presentation Manager | |
1064 | --with-mgl use SciTech MGL | |
1065 | --with-microwin use MicroWindows | |
1066 | --with-x11 use X11 | |
1067 | --with-libpng use libpng (PNG image format) | |
1068 | --with-libjpeg use libjpeg (JPEG file format) | |
1069 | --with-libtiff use libtiff (TIFF file format) | |
1070 | --with-libxpm use libxpm (XPM file format) | |
1071 | --with-libmspack use libmspack (CHM help files loading) | |
1072 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1073 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1074 | --with-opengl use OpenGL (or Mesa) |
1075 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1076 | --with-regex enable support for wxRegEx class | |
1077 | --with-zlib use zlib for LZW compression | |
1078 | --with-odbc use the IODBC and wxODBC classes | |
1079 | --with-expat enable XML support using expat parser | |
ceec2216 | 1080 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1081 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1082 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1083 | --with-x use the X Window System | |
1084 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1085 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1086 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1087 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1088 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1089 | ||
1090 | Some influential environment variables: | |
dcc1b6ad VS |
1091 | CC C compiler command |
1092 | CFLAGS C compiler flags | |
1093 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1094 | nonstandard directory <lib dir> | |
1095 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1096 | headers in a nonstandard directory <include dir> | |
1097 | CPP C preprocessor | |
1098 | CXX C++ compiler command | |
1099 | CXXFLAGS C++ compiler flags | |
1100 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1101 | |
1102 | Use these variables to override the choices made by `configure' or to help | |
1103 | it to find libraries and programs with nonstandard names/locations. | |
1104 | ||
77ffb593 | 1105 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1106 | _ACEOF |
1107 | fi | |
1108 | ||
1109 | if test "$ac_init_help" = "recursive"; then | |
1110 | # If there are subdirs, report their specific --help. | |
1111 | ac_popdir=`pwd` | |
1112 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1113 | test -d $ac_dir || continue | |
1114 | ac_builddir=. | |
1115 | ||
1116 | if test "$ac_dir" != .; then | |
1117 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1118 | # A "../" for each directory in $ac_dir_suffix. | |
1119 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1120 | else | |
1121 | ac_dir_suffix= ac_top_builddir= | |
1122 | fi | |
1123 | ||
1124 | case $srcdir in | |
1125 | .) # No --srcdir option. We are building in place. | |
1126 | ac_srcdir=. | |
1127 | if test -z "$ac_top_builddir"; then | |
1128 | ac_top_srcdir=. | |
1129 | else | |
1130 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1131 | fi ;; | |
1132 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1133 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1134 | ac_top_srcdir=$srcdir ;; | |
1135 | *) # Relative path. | |
1136 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1137 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1138 | esac | |
ac1cb8d3 VS |
1139 | |
1140 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1141 | # the directories may not exist. | |
1142 | case `pwd` in | |
1143 | .) ac_abs_builddir="$ac_dir";; | |
1144 | *) | |
1145 | case "$ac_dir" in | |
1146 | .) ac_abs_builddir=`pwd`;; | |
1147 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1148 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1149 | esac;; | |
1150 | esac | |
1151 | case $ac_abs_builddir in | |
1152 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1153 | *) | |
1154 | case ${ac_top_builddir}. in | |
1155 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1156 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1157 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1158 | esac;; | |
1159 | esac | |
1160 | case $ac_abs_builddir in | |
1161 | .) ac_abs_srcdir=$ac_srcdir;; | |
1162 | *) | |
1163 | case $ac_srcdir in | |
1164 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1165 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1166 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1167 | esac;; | |
1168 | esac | |
1169 | case $ac_abs_builddir in | |
1170 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1171 | *) | |
1172 | case $ac_top_srcdir in | |
1173 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1174 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1175 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1176 | esac;; | |
1177 | esac | |
a848cd7e SC |
1178 | |
1179 | cd $ac_dir | |
1180 | # Check for guested configure; otherwise get Cygnus style configure. | |
1181 | if test -f $ac_srcdir/configure.gnu; then | |
1182 | echo | |
1183 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1184 | elif test -f $ac_srcdir/configure; then | |
1185 | echo | |
1186 | $SHELL $ac_srcdir/configure --help=recursive | |
1187 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1188 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1189 | echo |
1190 | $ac_configure --help | |
1191 | else | |
1192 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1193 | fi | |
6ebeb4c7 | 1194 | cd "$ac_popdir" |
a848cd7e SC |
1195 | done |
1196 | fi | |
1197 | ||
1198 | test -n "$ac_init_help" && exit 0 | |
1199 | if $ac_init_version; then | |
1200 | cat <<\_ACEOF | |
eb730a0c | 1201 | wxWidgets configure 2.6.2 |
ac1cb8d3 | 1202 | generated by GNU Autoconf 2.59 |
a848cd7e | 1203 | |
ac1cb8d3 | 1204 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1205 | This configure script is free software; the Free Software Foundation |
1206 | gives unlimited permission to copy, distribute and modify it. | |
1207 | _ACEOF | |
1208 | exit 0 | |
1209 | fi | |
1210 | exec 5>config.log | |
1211 | cat >&5 <<_ACEOF | |
1212 | This file contains any messages produced by compilers while | |
1213 | running configure, to aid debugging if configure makes a mistake. | |
1214 | ||
eb730a0c | 1215 | It was created by wxWidgets $as_me 2.6.2, which was |
ac1cb8d3 | 1216 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1217 | |
1218 | $ $0 $@ | |
1219 | ||
1220 | _ACEOF | |
1221 | { | |
1222 | cat <<_ASUNAME | |
1223 | ## --------- ## | |
1224 | ## Platform. ## | |
1225 | ## --------- ## | |
1226 | ||
1227 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1228 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1229 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1230 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1231 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1232 | ||
1233 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1234 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1235 | ||
1236 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1237 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1238 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1239 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1240 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1241 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1242 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1243 | ||
1244 | _ASUNAME | |
1245 | ||
1246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1247 | for as_dir in $PATH | |
1248 | do | |
1249 | IFS=$as_save_IFS | |
1250 | test -z "$as_dir" && as_dir=. | |
1251 | echo "PATH: $as_dir" | |
1252 | done | |
1253 | ||
1254 | } >&5 | |
1255 | ||
1256 | cat >&5 <<_ACEOF | |
1257 | ||
1258 | ||
1259 | ## ----------- ## | |
1260 | ## Core tests. ## | |
1261 | ## ----------- ## | |
1262 | ||
1263 | _ACEOF | |
1264 | ||
1265 | ||
1266 | # Keep a trace of the command line. | |
1267 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1268 | # Strip out --silent because we don't want to record it for future runs. | |
1269 | # Also quote any args containing shell meta-characters. | |
1270 | # Make two passes to allow for proper duplicate-argument suppression. | |
1271 | ac_configure_args= | |
1272 | ac_configure_args0= | |
1273 | ac_configure_args1= | |
1274 | ac_sep= | |
1275 | ac_must_keep_next=false | |
1276 | for ac_pass in 1 2 | |
1277 | do | |
1278 | for ac_arg | |
1279 | do | |
1280 | case $ac_arg in | |
1281 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1282 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1283 | | -silent | --silent | --silen | --sile | --sil) | |
1284 | continue ;; | |
1285 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1286 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1287 | esac | |
1288 | case $ac_pass in | |
1289 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1290 | 2) | |
1291 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1292 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1293 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1294 | else |
ac1cb8d3 VS |
1295 | case $ac_arg in |
1296 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1297 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1298 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1299 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1300 | case "$ac_configure_args0 " in | |
1301 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1302 | esac | |
1303 | ;; | |
1304 | -* ) ac_must_keep_next=true ;; | |
1305 | esac | |
a848cd7e SC |
1306 | fi |
1307 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1308 | # Get rid of the leading space. | |
1309 | ac_sep=" " | |
1310 | ;; | |
1311 | esac | |
1312 | done | |
1313 | done | |
1314 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1315 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1316 | ||
1317 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1318 | # config.log. We remove comments because anyway the quotes in there | |
1319 | # would cause problems or look ugly. | |
1320 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1321 | # such as our DU 5.0 friend, will then `close' the trap. | |
1322 | trap 'exit_status=$? | |
1323 | # Save into config.log some information that might help in debugging. | |
1324 | { | |
1325 | echo | |
1326 | ||
1327 | cat <<\_ASBOX | |
1328 | ## ---------------- ## | |
1329 | ## Cache variables. ## | |
1330 | ## ---------------- ## | |
1331 | _ASBOX | |
1332 | echo | |
1333 | # The following way of writing the cache mishandles newlines in values, | |
1334 | { | |
1335 | (set) 2>&1 | | |
1336 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1337 | *ac_space=\ *) | |
1338 | sed -n \ | |
ac1cb8d3 VS |
1339 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1340 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1341 | ;; |
1342 | *) | |
1343 | sed -n \ | |
ac1cb8d3 | 1344 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1345 | ;; |
1346 | esac; | |
1347 | } | |
1348 | echo | |
1349 | ||
1350 | cat <<\_ASBOX | |
1351 | ## ----------------- ## | |
1352 | ## Output variables. ## | |
1353 | ## ----------------- ## | |
1354 | _ASBOX | |
1355 | echo | |
1356 | for ac_var in $ac_subst_vars | |
1357 | do | |
1358 | eval ac_val=$`echo $ac_var` | |
1359 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1360 | done | sort | |
1361 | echo | |
1362 | ||
1363 | if test -n "$ac_subst_files"; then | |
1364 | cat <<\_ASBOX | |
1365 | ## ------------- ## | |
1366 | ## Output files. ## | |
1367 | ## ------------- ## | |
1368 | _ASBOX | |
1369 | echo | |
1370 | for ac_var in $ac_subst_files | |
1371 | do | |
1372 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1373 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1374 | done | sort |
1375 | echo | |
1376 | fi | |
1377 | ||
1378 | if test -s confdefs.h; then | |
1379 | cat <<\_ASBOX | |
1380 | ## ----------- ## | |
1381 | ## confdefs.h. ## | |
1382 | ## ----------- ## | |
1383 | _ASBOX | |
1384 | echo | |
1385 | sed "/^$/d" confdefs.h | sort | |
1386 | echo | |
1387 | fi | |
1388 | test "$ac_signal" != 0 && | |
1389 | echo "$as_me: caught signal $ac_signal" | |
1390 | echo "$as_me: exit $exit_status" | |
1391 | } >&5 | |
ac1cb8d3 | 1392 | rm -f core *.core && |
a848cd7e SC |
1393 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1394 | exit $exit_status | |
1395 | ' 0 | |
1396 | for ac_signal in 1 2 13 15; do | |
1397 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1398 | done | |
1399 | ac_signal=0 | |
1400 | ||
1401 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1402 | rm -rf conftest* confdefs.h | |
1403 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1404 | echo >confdefs.h | |
1405 | ||
1406 | # Predefined preprocessor variables. | |
1407 | ||
1408 | cat >>confdefs.h <<_ACEOF | |
1409 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1410 | _ACEOF | |
1411 | ||
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | cat >>confdefs.h <<_ACEOF | |
1424 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1425 | _ACEOF | |
1426 | ||
1427 | ||
1428 | cat >>confdefs.h <<_ACEOF | |
1429 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1430 | _ACEOF | |
1431 | ||
1432 | ||
1433 | # Let the site file select an alternate cache file if it wants to. | |
1434 | # Prefer explicitly selected file to automatically selected ones. | |
1435 | if test -z "$CONFIG_SITE"; then | |
1436 | if test "x$prefix" != xNONE; then | |
1437 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1438 | else | |
1439 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1440 | fi | |
1441 | fi | |
1442 | for ac_site_file in $CONFIG_SITE; do | |
1443 | if test -r "$ac_site_file"; then | |
1444 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1445 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1446 | sed 's/^/| /' "$ac_site_file" >&5 | |
1447 | . "$ac_site_file" | |
1448 | fi | |
1449 | done | |
1450 | ||
1451 | if test -r "$cache_file"; then | |
1452 | # Some versions of bash will fail to source /dev/null (special | |
1453 | # files actually), so we avoid doing that. | |
1454 | if test -f "$cache_file"; then | |
1455 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1456 | echo "$as_me: loading cache $cache_file" >&6;} | |
1457 | case $cache_file in | |
1458 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1459 | *) . ./$cache_file;; | |
1460 | esac | |
1461 | fi | |
1462 | else | |
1463 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1464 | echo "$as_me: creating cache $cache_file" >&6;} | |
1465 | >$cache_file | |
1466 | fi | |
1467 | ||
1468 | # Check that the precious variables saved in the cache have kept the same | |
1469 | # value. | |
1470 | ac_cache_corrupted=false | |
1471 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1472 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1473 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1474 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1475 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1476 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1477 | case $ac_old_set,$ac_new_set in | |
1478 | set,) | |
1479 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1480 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1481 | ac_cache_corrupted=: ;; | |
1482 | ,set) | |
1483 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1484 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1485 | ac_cache_corrupted=: ;; | |
1486 | ,);; | |
1487 | *) | |
1488 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1489 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1490 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1491 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1492 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1493 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1494 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1495 | ac_cache_corrupted=: |
a848cd7e SC |
1496 | fi;; |
1497 | esac | |
1498 | # Pass precious variables to config.status. | |
1499 | if test "$ac_new_set" = set; then | |
1500 | case $ac_new_val in | |
1501 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1502 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1503 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1504 | esac | |
1505 | case " $ac_configure_args " in | |
1506 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1507 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1508 | esac | |
1509 | fi | |
1510 | done | |
1511 | if $ac_cache_corrupted; then | |
1512 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1513 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1514 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1515 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1516 | { (exit 1); exit 1; }; } | |
1517 | fi | |
1518 | ||
1519 | ac_ext=c | |
1520 | ac_cpp='$CPP $CPPFLAGS' | |
1521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1524 | ||
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 | ac_aux_dir= | |
1555 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1556 | if test -f $ac_dir/install-sh; then | |
1557 | ac_aux_dir=$ac_dir | |
1558 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1559 | break | |
1560 | elif test -f $ac_dir/install.sh; then | |
1561 | ac_aux_dir=$ac_dir | |
1562 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1563 | break | |
1564 | elif test -f $ac_dir/shtool; then | |
1565 | ac_aux_dir=$ac_dir | |
1566 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1567 | break | |
1568 | fi | |
1569 | done | |
1570 | if test -z "$ac_aux_dir"; then | |
1571 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1572 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1573 | { (exit 1); exit 1; }; } | |
1574 | fi | |
1575 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1576 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1577 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1578 | ||
1579 | # Make sure we can run config.sub. | |
1580 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1581 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1582 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1583 | { (exit 1); exit 1; }; } | |
1584 | ||
1585 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1586 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1587 | if test "${ac_cv_build+set}" = set; then | |
1588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1589 | else | |
1590 | ac_cv_build_alias=$build_alias | |
1591 | test -z "$ac_cv_build_alias" && | |
1592 | ac_cv_build_alias=`$ac_config_guess` | |
1593 | test -z "$ac_cv_build_alias" && | |
1594 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1595 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1596 | { (exit 1); exit 1; }; } | |
1597 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1598 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1599 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1600 | { (exit 1); exit 1; }; } | |
1601 | ||
1602 | fi | |
1603 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1604 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1605 | build=$ac_cv_build | |
1606 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1607 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1608 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1609 | ||
1610 | ||
1611 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1612 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1613 | if test "${ac_cv_host+set}" = set; then | |
1614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1615 | else | |
1616 | ac_cv_host_alias=$host_alias | |
1617 | test -z "$ac_cv_host_alias" && | |
1618 | ac_cv_host_alias=$ac_cv_build_alias | |
1619 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1620 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1621 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1622 | { (exit 1); exit 1; }; } | |
1623 | ||
1624 | fi | |
1625 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1626 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1627 | host=$ac_cv_host | |
1628 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1629 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1630 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1631 | ||
1632 | ||
1633 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1634 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1635 | if test "${ac_cv_target+set}" = set; then | |
1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1637 | else | |
1638 | ac_cv_target_alias=$target_alias | |
1639 | test "x$ac_cv_target_alias" = "x" && | |
1640 | ac_cv_target_alias=$ac_cv_host_alias | |
1641 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1642 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1643 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1644 | { (exit 1); exit 1; }; } | |
1645 | ||
1646 | fi | |
1647 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1648 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1649 | target=$ac_cv_target | |
1650 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1651 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1652 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1653 | ||
1654 | ||
1655 | # The aliases save the names the user supplied, while $host etc. | |
1656 | # will get canonicalized. | |
1657 | test -n "$target_alias" && | |
1658 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1659 | NONENONEs,x,x, && | |
1660 | program_prefix=${target_alias}- | |
1661 | ||
1662 | ||
1663 | ||
ceec2216 | 1664 | wx_major_version_number=2 |
e0d84535 | 1665 | wx_minor_version_number=6 |
eb730a0c | 1666 | wx_release_number=2 |
063c96c1 | 1667 | wx_subrelease_number=1 |
a848cd7e | 1668 | |
ceec2216 RL |
1669 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1670 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1671 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1672 | |
ceec2216 | 1673 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1674 | |
a848cd7e SC |
1675 | |
1676 | ||
1677 | ||
1678 | USE_UNIX=1 | |
1679 | USE_OS2=0 | |
1680 | USE_WIN32=0 | |
1681 | USE_DOS=0 | |
1682 | USE_BEOS=0 | |
1683 | USE_MAC=0 | |
1684 | ||
1685 | USE_AIX= | |
1686 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1687 | USE_GNU= USE_HPUX= | |
1688 | USE_LINUX= | |
1689 | USE_NETBSD= | |
1690 | USE_OPENBSD= | |
1691 | USE_OSF= USE_SGI= | |
1692 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1693 | USE_ULTRIX= | |
1694 | USE_UNIXWARE= | |
1695 | ||
1696 | USE_ALPHA= | |
1697 | ||
1698 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1699 | ||
1700 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1701 | ||
1702 | DEFAULT_wxUSE_COCOA=0 | |
1703 | DEFAULT_wxUSE_GTK=0 | |
1704 | DEFAULT_wxUSE_MAC=0 | |
1705 | DEFAULT_wxUSE_MGL=0 | |
1706 | DEFAULT_wxUSE_MICROWIN=0 | |
1707 | DEFAULT_wxUSE_MOTIF=0 | |
1708 | DEFAULT_wxUSE_MSW=0 | |
1709 | DEFAULT_wxUSE_PM=0 | |
1710 | DEFAULT_wxUSE_X11=0 | |
1711 | ||
1712 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1720 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1721 | ||
1722 | PROGRAM_EXT= | |
1723 | SO_SUFFIX=so | |
1724 | SAMPLES_RPATH_FLAG= | |
1725 | SAMPLES_RPATH_POSTLINK= | |
1726 | ||
a03b8b04 RD |
1727 | DEFAULT_STD_FLAG=yes |
1728 | ||
a848cd7e SC |
1729 | case "${host}" in |
1730 | *-hp-hpux* ) | |
1731 | USE_HPUX=1 | |
1732 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1733 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1734 | SO_SUFFIX=sl | |
1735 | cat >>confdefs.h <<\_ACEOF | |
1736 | #define __HPUX__ 1 | |
1737 | _ACEOF | |
1738 | ||
1739 | ;; | |
1740 | *-*-linux* ) | |
1741 | USE_LINUX=1 | |
1742 | cat >>confdefs.h <<\_ACEOF | |
1743 | #define __LINUX__ 1 | |
1744 | _ACEOF | |
1745 | ||
1746 | TMP=`uname -m` | |
1747 | if test "x$TMP" = "xalpha"; then | |
1748 | USE_ALPHA=1 | |
1749 | cat >>confdefs.h <<\_ACEOF | |
1750 | #define __ALPHA__ 1 | |
1751 | _ACEOF | |
1752 | ||
1753 | fi | |
1754 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1755 | ;; | |
1756 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1757 | USE_GNU=1 | |
1758 | TMP=`uname -m` | |
1759 | if test "x$TMP" = "xalpha"; then | |
1760 | USE_ALPHA=1 | |
1761 | cat >>confdefs.h <<\_ACEOF | |
1762 | #define __ALPHA__ 1 | |
1763 | _ACEOF | |
1764 | ||
1765 | fi | |
1766 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1767 | ;; | |
1768 | *-*-irix5* | *-*-irix6* ) | |
1769 | USE_SGI=1 | |
1770 | USE_SVR4=1 | |
1771 | cat >>confdefs.h <<\_ACEOF | |
1772 | #define __SGI__ 1 | |
1773 | _ACEOF | |
1774 | ||
1775 | cat >>confdefs.h <<\_ACEOF | |
1776 | #define __SVR4__ 1 | |
1777 | _ACEOF | |
1778 | ||
1779 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1780 | ;; | |
1781 | *-*-solaris2* ) | |
1782 | USE_SUN=1 | |
1783 | USE_SOLARIS=1 | |
1784 | USE_SVR4=1 | |
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __SUN__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SOLARIS__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | cat >>confdefs.h <<\_ACEOF | |
1794 | #define __SVR4__ 1 | |
1795 | _ACEOF | |
1796 | ||
1797 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1798 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1799 | ;; | |
1800 | *-*-sunos4* ) | |
1801 | USE_SUN=1 | |
1802 | USE_SUNOS=1 | |
1803 | USE_BSD=1 | |
1804 | cat >>confdefs.h <<\_ACEOF | |
1805 | #define __SUN__ 1 | |
1806 | _ACEOF | |
1807 | ||
1808 | cat >>confdefs.h <<\_ACEOF | |
1809 | #define __SUNOS__ 1 | |
1810 | _ACEOF | |
1811 | ||
1812 | cat >>confdefs.h <<\_ACEOF | |
1813 | #define __BSD__ 1 | |
1814 | _ACEOF | |
1815 | ||
1816 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1817 | ;; | |
1818 | *-*-freebsd*) | |
1819 | USE_BSD=1 | |
1820 | USE_FREEBSD=1 | |
1821 | cat >>confdefs.h <<\_ACEOF | |
1822 | #define __FREEBSD__ 1 | |
1823 | _ACEOF | |
1824 | ||
1825 | cat >>confdefs.h <<\_ACEOF | |
1826 | #define __BSD__ 1 | |
1827 | _ACEOF | |
1828 | ||
1829 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1830 | ;; | |
1831 | *-*-openbsd*) | |
1832 | USE_BSD=1 | |
1833 | USE_OPENBSD=1 | |
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __OPENBSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | cat >>confdefs.h <<\_ACEOF | |
1839 | #define __BSD__ 1 | |
1840 | _ACEOF | |
1841 | ||
1842 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1843 | ;; | |
1844 | *-*-netbsd*) | |
1845 | USE_BSD=1 | |
1846 | USE_NETBSD=1 | |
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __NETBSD__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | cat >>confdefs.h <<\_ACEOF | |
1852 | #define __BSD__ 1 | |
1853 | _ACEOF | |
1854 | ||
1855 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1856 | ;; | |
1857 | *-*-osf* ) | |
1858 | USE_ALPHA=1 | |
1859 | USE_OSF=1 | |
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __ALPHA__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | cat >>confdefs.h <<\_ACEOF | |
1865 | #define __OSF__ 1 | |
1866 | _ACEOF | |
1867 | ||
1868 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1869 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1870 | ;; | |
1871 | *-*-dgux5* ) | |
1872 | USE_ALPHA=1 | |
1873 | USE_SVR4=1 | |
1874 | cat >>confdefs.h <<\_ACEOF | |
1875 | #define __ALPHA__ 1 | |
1876 | _ACEOF | |
1877 | ||
1878 | cat >>confdefs.h <<\_ACEOF | |
1879 | #define __SVR4__ 1 | |
1880 | _ACEOF | |
1881 | ||
1882 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1883 | ;; | |
1884 | *-*-sysv5* ) | |
1885 | USE_SYSV=1 | |
1886 | USE_SVR4=1 | |
1887 | cat >>confdefs.h <<\_ACEOF | |
1888 | #define __SYSV__ 1 | |
1889 | _ACEOF | |
1890 | ||
1891 | cat >>confdefs.h <<\_ACEOF | |
1892 | #define __SVR4__ 1 | |
1893 | _ACEOF | |
1894 | ||
1895 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1896 | ;; | |
1897 | *-*-aix* ) | |
1898 | USE_AIX=1 | |
1899 | USE_SYSV=1 | |
1900 | USE_SVR4=1 | |
1901 | SO_SUFFIX=a | |
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __AIX__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __SYSV__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | cat >>confdefs.h <<\_ACEOF | |
1911 | #define __SVR4__ 1 | |
1912 | _ACEOF | |
1913 | ||
1914 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1915 | ;; | |
1916 | ||
1917 | *-*-*UnixWare*) | |
1918 | USE_SYSV=1 | |
1919 | USE_SVR4=1 | |
1920 | USE_UNIXWARE=1 | |
1921 | cat >>confdefs.h <<\_ACEOF | |
1922 | #define __UNIXWARE__ 1 | |
1923 | _ACEOF | |
1924 | ||
1925 | ;; | |
1926 | ||
1927 | *-*-cygwin* | *-*-mingw32* ) | |
1928 | SO_SUFFIX=dll | |
1929 | PROGRAM_EXT=".exe" | |
a848cd7e | 1930 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1931 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1932 | ;; |
1933 | ||
1934 | *-pc-msdosdjgpp ) | |
1935 | USE_UNIX=0 | |
1936 | USE_DOS=1 | |
1937 | cat >>confdefs.h <<\_ACEOF | |
1938 | #define __DOS__ 1 | |
1939 | _ACEOF | |
1940 | ||
1941 | PROGRAM_EXT=".exe" | |
1942 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1943 | ;; |
1944 | ||
1945 | *-pc-os2_emx | *-pc-os2-emx ) | |
1946 | cat >>confdefs.h <<\_ACEOF | |
1947 | #define __EMX__ 1 | |
1948 | _ACEOF | |
1949 | ||
1950 | USE_OS2=1 | |
1951 | cat >>confdefs.h <<\_ACEOF | |
1952 | #define __OS2__ 1 | |
1953 | _ACEOF | |
1954 | ||
1955 | PROGRAM_EXT=".exe" | |
1956 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1957 | CXX=gcc | |
1958 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1959 | ac_executable_extensions=".exe" | |
1960 | export ac_executable_extensions | |
1961 | ac_save_IFS="$IFS" | |
1962 | IFS='\\' | |
1963 | ac_TEMP_PATH= | |
1964 | for ac_dir in $PATH; do | |
1965 | IFS=$ac_save_IFS | |
1966 | if test -z "$ac_TEMP_PATH"; then | |
1967 | ac_TEMP_PATH="$ac_dir" | |
1968 | else | |
1969 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1970 | fi | |
1971 | done | |
1972 | export PATH="$ac_TEMP_PATH" | |
1973 | unset ac_TEMP_PATH | |
a03b8b04 | 1974 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1975 | ;; |
1976 | ||
cfda0ea8 | 1977 | *-*-darwin* ) |
a848cd7e SC |
1978 | USE_BSD=1 |
1979 | USE_DARWIN=1 | |
1980 | SO_SUFFIX=dylib | |
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define __BSD__ 1 | |
1983 | _ACEOF | |
1984 | ||
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define __DARWIN__ 1 | |
a848cd7e SC |
1987 | _ACEOF |
1988 | ||
1989 | cat >>confdefs.h <<\_ACEOF | |
1990 | #define TARGET_CARBON 1 | |
1991 | _ACEOF | |
1992 | ||
1993 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 1994 | DEFAULT_STD_FLAG=no |
a848cd7e | 1995 | ;; |
1e9e8aba DE |
1996 | powerpc-apple-macos* ) |
1997 | USE_UNIX=0 | |
1998 | ac_cv_c_bigendian=yes | |
1999 | SO_SUFFIX=shlib | |
2000 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2001 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2002 | ;; |
a848cd7e SC |
2003 | |
2004 | *-*-beos* ) | |
2005 | USE_BEOS=1 | |
2006 | cat >>confdefs.h <<\_ACEOF | |
2007 | #define __BEOS__ 1 | |
2008 | _ACEOF | |
2009 | ||
2010 | ;; | |
2011 | ||
2012 | *) | |
2013 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2014 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2015 | { (exit 1); exit 1; }; } | |
2016 | esac | |
2017 | ||
2018 | ||
2019 | ||
2020 | ||
2021 | wx_arg_cache_file="configarg.cache" | |
2022 | echo "loading argument cache $wx_arg_cache_file" | |
2023 | rm -f ${wx_arg_cache_file}.tmp | |
2024 | touch ${wx_arg_cache_file}.tmp | |
2025 | touch ${wx_arg_cache_file} | |
2026 | ||
2027 | ||
2028 | DEBUG_CONFIGURE=0 | |
2029 | if test $DEBUG_CONFIGURE = 1; then | |
2030 | DEFAULT_wxUSE_UNIVERSAL=no | |
2031 | DEFAULT_wxUSE_STL=no | |
2032 | ||
2033 | DEFAULT_wxUSE_NANOX=no | |
2034 | ||
2035 | DEFAULT_wxUSE_THREADS=yes | |
2036 | ||
2037 | DEFAULT_wxUSE_SHARED=yes | |
2038 | DEFAULT_wxUSE_OPTIMISE=no | |
2039 | DEFAULT_wxUSE_PROFILE=no | |
2040 | DEFAULT_wxUSE_NO_DEPS=no | |
2041 | DEFAULT_wxUSE_NO_RTTI=no | |
2042 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2043 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2044 | DEFAULT_wxUSE_PERMISSIVE=no |
2045 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2046 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2047 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2048 | DEFAULT_wxUSE_MEM_TRACING=no | |
2049 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2050 | DEFAULT_wxUSE_DMALLOC=no | |
2051 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2052 | ||
2053 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2054 | DEFAULT_wxUSE_LOG=yes | |
2055 | DEFAULT_wxUSE_LOGWINDOW=no | |
2056 | DEFAULT_wxUSE_LOGGUI=no | |
2057 | DEFAULT_wxUSE_LOGDIALOG=no | |
2058 | ||
2059 | DEFAULT_wxUSE_GUI=yes | |
2060 | DEFAULT_wxUSE_CONTROLS=no | |
2061 | ||
2062 | DEFAULT_wxUSE_REGEX=no | |
2063 | DEFAULT_wxUSE_XML=no | |
2064 | DEFAULT_wxUSE_EXPAT=no | |
2065 | DEFAULT_wxUSE_ZLIB=no | |
2066 | DEFAULT_wxUSE_LIBPNG=no | |
2067 | DEFAULT_wxUSE_LIBJPEG=no | |
2068 | DEFAULT_wxUSE_LIBTIFF=no | |
2069 | DEFAULT_wxUSE_LIBXPM=no | |
2070 | DEFAULT_wxUSE_LIBMSPACK=no | |
2071 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2072 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2073 | DEFAULT_wxUSE_ODBC=no |
2074 | DEFAULT_wxUSE_OPENGL=no | |
2075 | ||
2076 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2077 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2078 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2079 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2080 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2081 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2082 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2083 | DEFAULT_wxUSE_DATETIME=no | |
2084 | DEFAULT_wxUSE_TIMER=no | |
2085 | DEFAULT_wxUSE_STOPWATCH=no | |
2086 | DEFAULT_wxUSE_FILE=no | |
2087 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2088 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2089 | DEFAULT_wxUSE_TEXTBUFFER=no |
2090 | DEFAULT_wxUSE_TEXTFILE=no | |
2091 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2092 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2093 | DEFAULT_wxUSE_INTL=no |
2094 | DEFAULT_wxUSE_CONFIG=no | |
2095 | DEFAULT_wxUSE_FONTMAP=no | |
2096 | DEFAULT_wxUSE_STREAMS=no | |
2097 | DEFAULT_wxUSE_SOCKETS=no | |
2098 | DEFAULT_wxUSE_OLE=no | |
2099 | DEFAULT_wxUSE_DATAOBJ=no | |
2100 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2101 | DEFAULT_wxUSE_JOYSTICK=no | |
2102 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2103 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2104 | DEFAULT_wxUSE_LONGLONG=no | |
2105 | DEFAULT_wxUSE_GEOMETRY=no | |
2106 | ||
2107 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2108 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2109 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2110 | ||
2111 | DEFAULT_wxUSE_CLIPBOARD=no | |
2112 | DEFAULT_wxUSE_TOOLTIPS=no | |
2113 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2114 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2115 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2116 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2117 | |
8a7b1113 | 2118 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2119 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2120 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2121 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2122 | ||
2123 | DEFAULT_wxUSE_RESOURCES=no | |
2124 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2125 | DEFAULT_wxUSE_IPC=no | |
2126 | DEFAULT_wxUSE_HELP=no | |
2127 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2128 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2129 | DEFAULT_wxUSE_TREELAYOUT=no | |
2130 | DEFAULT_wxUSE_METAFILE=no | |
2131 | DEFAULT_wxUSE_MIMETYPE=no | |
2132 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2133 | DEFAULT_wxUSE_PROTOCOL=no | |
2134 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2135 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2136 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2137 | DEFAULT_wxUSE_URL=no | |
2138 | ||
2139 | DEFAULT_wxUSE_COMMONDLGS=no | |
2140 | DEFAULT_wxUSE_CHOICEDLG=no | |
2141 | DEFAULT_wxUSE_COLOURDLG=no | |
2142 | DEFAULT_wxUSE_DIRDLG=no | |
2143 | DEFAULT_wxUSE_FILEDLG=no | |
2144 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2145 | DEFAULT_wxUSE_FONTDLG=no | |
2146 | DEFAULT_wxUSE_MSGDLG=no | |
2147 | DEFAULT_wxUSE_NUMBERDLG=no | |
2148 | DEFAULT_wxUSE_TEXTDLG=no | |
2149 | DEFAULT_wxUSE_SPLASH=no | |
2150 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2151 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2152 | DEFAULT_wxUSE_WIZARDDLG=no | |
2153 | ||
2154 | DEFAULT_wxUSE_MENUS=no | |
2155 | DEFAULT_wxUSE_MINIFRAME=no | |
2156 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2157 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2158 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2159 | DEFAULT_wxUSE_FILESYSTEM=no |
2160 | DEFAULT_wxUSE_FS_INET=no | |
2161 | DEFAULT_wxUSE_FS_ZIP=no | |
2162 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2163 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2164 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2165 | DEFAULT_wxUSE_VALIDATORS=no |
2166 | ||
2167 | DEFAULT_wxUSE_ACCEL=no | |
2168 | DEFAULT_wxUSE_BUTTON=no | |
2169 | DEFAULT_wxUSE_BMPBUTTON=no | |
2170 | DEFAULT_wxUSE_CALCTRL=no | |
2171 | DEFAULT_wxUSE_CARET=no | |
2172 | DEFAULT_wxUSE_CHECKBOX=no | |
2173 | DEFAULT_wxUSE_CHECKLST=no | |
2174 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2175 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2176 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2177 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2178 | DEFAULT_wxUSE_DISPLAY=no |
2179 | DEFAULT_wxUSE_GAUGE=no | |
2180 | DEFAULT_wxUSE_GRID=no | |
2181 | DEFAULT_wxUSE_IMAGLIST=no | |
2182 | DEFAULT_wxUSE_LISTBOOK=no | |
2183 | DEFAULT_wxUSE_LISTBOX=no | |
2184 | DEFAULT_wxUSE_LISTCTRL=no | |
2185 | DEFAULT_wxUSE_NOTEBOOK=no | |
2186 | DEFAULT_wxUSE_RADIOBOX=no | |
2187 | DEFAULT_wxUSE_RADIOBTN=no | |
2188 | DEFAULT_wxUSE_SASH=no | |
2189 | DEFAULT_wxUSE_SCROLLBAR=no | |
2190 | DEFAULT_wxUSE_SLIDER=no | |
2191 | DEFAULT_wxUSE_SPINBTN=no | |
2192 | DEFAULT_wxUSE_SPINCTRL=no | |
2193 | DEFAULT_wxUSE_SPLITTER=no | |
2194 | DEFAULT_wxUSE_STATBMP=no | |
2195 | DEFAULT_wxUSE_STATBOX=no | |
2196 | DEFAULT_wxUSE_STATLINE=no | |
2197 | DEFAULT_wxUSE_STATTEXT=no | |
2198 | DEFAULT_wxUSE_STATUSBAR=yes | |
2199 | DEFAULT_wxUSE_TABDIALOG=no | |
2200 | DEFAULT_wxUSE_TEXTCTRL=no | |
2201 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2202 | DEFAULT_wxUSE_TOOLBAR=no | |
2203 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2204 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2205 | DEFAULT_wxUSE_TREECTRL=no | |
2206 | DEFAULT_wxUSE_POPUPWIN=no | |
2207 | DEFAULT_wxUSE_TIPWINDOW=no | |
2208 | ||
2209 | DEFAULT_wxUSE_UNICODE=no | |
2210 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2211 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2212 | ||
2213 | DEFAULT_wxUSE_PALETTE=no | |
2214 | DEFAULT_wxUSE_IMAGE=no | |
2215 | DEFAULT_wxUSE_GIF=no | |
2216 | DEFAULT_wxUSE_PCX=no | |
2217 | DEFAULT_wxUSE_PNM=no | |
2218 | DEFAULT_wxUSE_IFF=no | |
2219 | DEFAULT_wxUSE_XPM=no | |
2220 | DEFAULT_wxUSE_ICO_CUR=no | |
2221 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2222 | ||
2223 | DEFAULT_wxUSE_MONOLITHIC=no | |
2224 | DEFAULT_wxUSE_PLUGINS=no | |
2225 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2226 | else | |
2227 | DEFAULT_wxUSE_UNIVERSAL=no | |
2228 | DEFAULT_wxUSE_STL=no | |
2229 | ||
2230 | DEFAULT_wxUSE_NANOX=no | |
2231 | ||
2232 | DEFAULT_wxUSE_THREADS=yes | |
2233 | ||
2234 | DEFAULT_wxUSE_SHARED=yes | |
2235 | DEFAULT_wxUSE_OPTIMISE=yes | |
2236 | DEFAULT_wxUSE_PROFILE=no | |
2237 | DEFAULT_wxUSE_NO_DEPS=no | |
2238 | DEFAULT_wxUSE_NO_RTTI=no | |
2239 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2240 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2241 | DEFAULT_wxUSE_PERMISSIVE=no |
2242 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2243 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2244 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2245 | DEFAULT_wxUSE_MEM_TRACING=no | |
2246 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2247 | DEFAULT_wxUSE_DMALLOC=no | |
2248 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2249 | ||
2250 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2251 | DEFAULT_wxUSE_LOG=yes | |
2252 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2253 | DEFAULT_wxUSE_LOGGUI=yes | |
2254 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2255 | ||
2256 | DEFAULT_wxUSE_GUI=yes | |
2257 | ||
2258 | DEFAULT_wxUSE_REGEX=yes | |
2259 | DEFAULT_wxUSE_XML=yes | |
2260 | DEFAULT_wxUSE_EXPAT=yes | |
2261 | DEFAULT_wxUSE_ZLIB=yes | |
2262 | DEFAULT_wxUSE_LIBPNG=yes | |
2263 | DEFAULT_wxUSE_LIBJPEG=yes | |
2264 | DEFAULT_wxUSE_LIBTIFF=yes | |
2265 | DEFAULT_wxUSE_LIBXPM=yes | |
2266 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2267 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2268 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e | 2269 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2270 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2271 | |
2272 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2273 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2274 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2275 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2276 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2277 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2278 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2279 | DEFAULT_wxUSE_DATETIME=yes | |
2280 | DEFAULT_wxUSE_TIMER=yes | |
2281 | DEFAULT_wxUSE_STOPWATCH=yes | |
2282 | DEFAULT_wxUSE_FILE=yes | |
2283 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2284 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2285 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2286 | DEFAULT_wxUSE_TEXTFILE=yes | |
2287 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2288 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2289 | DEFAULT_wxUSE_INTL=yes |
2290 | DEFAULT_wxUSE_CONFIG=yes | |
2291 | DEFAULT_wxUSE_FONTMAP=yes | |
2292 | DEFAULT_wxUSE_STREAMS=yes | |
2293 | DEFAULT_wxUSE_SOCKETS=yes | |
2294 | DEFAULT_wxUSE_OLE=yes | |
2295 | DEFAULT_wxUSE_DATAOBJ=yes | |
2296 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2297 | DEFAULT_wxUSE_JOYSTICK=yes | |
2298 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2299 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2300 | DEFAULT_wxUSE_LONGLONG=yes | |
2301 | DEFAULT_wxUSE_GEOMETRY=yes | |
2302 | ||
2303 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2304 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2305 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2306 | ||
2307 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2308 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2309 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2310 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2311 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2312 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2313 | |
8a7b1113 | 2314 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2315 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2316 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2317 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2318 | ||
2319 | DEFAULT_wxUSE_RESOURCES=no | |
2320 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2321 | DEFAULT_wxUSE_IPC=yes | |
2322 | DEFAULT_wxUSE_HELP=yes | |
2323 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2324 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2325 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2326 | DEFAULT_wxUSE_METAFILE=yes | |
2327 | DEFAULT_wxUSE_MIMETYPE=yes | |
2328 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2329 | DEFAULT_wxUSE_PROTOCOL=yes | |
2330 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2331 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2332 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2333 | DEFAULT_wxUSE_URL=yes | |
2334 | ||
2335 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2336 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2337 | DEFAULT_wxUSE_COLOURDLG=yes | |
2338 | DEFAULT_wxUSE_DIRDLG=yes | |
2339 | DEFAULT_wxUSE_FILEDLG=yes | |
2340 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2341 | DEFAULT_wxUSE_FONTDLG=yes | |
2342 | DEFAULT_wxUSE_MSGDLG=yes | |
2343 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2344 | DEFAULT_wxUSE_TEXTDLG=yes | |
2345 | DEFAULT_wxUSE_SPLASH=yes | |
2346 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2347 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2348 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2349 | ||
2350 | DEFAULT_wxUSE_MENUS=yes | |
2351 | DEFAULT_wxUSE_MINIFRAME=yes | |
2352 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2353 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2354 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2355 | DEFAULT_wxUSE_FILESYSTEM=yes |
2356 | DEFAULT_wxUSE_FS_INET=yes | |
2357 | DEFAULT_wxUSE_FS_ZIP=yes | |
2358 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2359 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2360 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2361 | DEFAULT_wxUSE_VALIDATORS=yes |
2362 | ||
2363 | DEFAULT_wxUSE_ACCEL=yes | |
2364 | DEFAULT_wxUSE_BUTTON=yes | |
2365 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2366 | DEFAULT_wxUSE_CALCTRL=yes | |
2367 | DEFAULT_wxUSE_CARET=yes | |
2368 | DEFAULT_wxUSE_CHECKBOX=yes | |
2369 | DEFAULT_wxUSE_CHECKLST=yes | |
2370 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2371 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2372 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2373 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2374 | DEFAULT_wxUSE_DISPLAY=yes |
2375 | DEFAULT_wxUSE_GAUGE=yes | |
2376 | DEFAULT_wxUSE_GRID=yes | |
2377 | DEFAULT_wxUSE_IMAGLIST=yes | |
2378 | DEFAULT_wxUSE_LISTBOOK=yes | |
2379 | DEFAULT_wxUSE_LISTBOX=yes | |
2380 | DEFAULT_wxUSE_LISTCTRL=yes | |
2381 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2382 | DEFAULT_wxUSE_RADIOBOX=yes | |
2383 | DEFAULT_wxUSE_RADIOBTN=yes | |
2384 | DEFAULT_wxUSE_SASH=yes | |
2385 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2386 | DEFAULT_wxUSE_SLIDER=yes | |
2387 | DEFAULT_wxUSE_SPINBTN=yes | |
2388 | DEFAULT_wxUSE_SPINCTRL=yes | |
2389 | DEFAULT_wxUSE_SPLITTER=yes | |
2390 | DEFAULT_wxUSE_STATBMP=yes | |
2391 | DEFAULT_wxUSE_STATBOX=yes | |
2392 | DEFAULT_wxUSE_STATLINE=yes | |
2393 | DEFAULT_wxUSE_STATTEXT=yes | |
2394 | DEFAULT_wxUSE_STATUSBAR=yes | |
2395 | DEFAULT_wxUSE_TABDIALOG=no | |
2396 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2397 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2398 | DEFAULT_wxUSE_TOOLBAR=yes | |
2399 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2400 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2401 | DEFAULT_wxUSE_TREECTRL=yes | |
2402 | DEFAULT_wxUSE_POPUPWIN=yes | |
2403 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2404 | ||
78de529b | 2405 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2406 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2407 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2408 | ||
2409 | DEFAULT_wxUSE_PALETTE=yes | |
2410 | DEFAULT_wxUSE_IMAGE=yes | |
2411 | DEFAULT_wxUSE_GIF=yes | |
2412 | DEFAULT_wxUSE_PCX=yes | |
2413 | DEFAULT_wxUSE_IFF=no | |
2414 | DEFAULT_wxUSE_PNM=yes | |
2415 | DEFAULT_wxUSE_XPM=yes | |
2416 | DEFAULT_wxUSE_ICO_CUR=yes | |
2417 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2418 | ||
2419 | DEFAULT_wxUSE_MONOLITHIC=no | |
2420 | DEFAULT_wxUSE_PLUGINS=no | |
2421 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2422 | |
f34ca037 | 2423 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2424 | fi |
2425 | ||
2426 | ||
2427 | ||
f34ca037 | 2428 | |
a848cd7e SC |
2429 | for toolkit in `echo $ALL_TOOLKITS`; do |
2430 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2431 | if test "x$LINE" != "x" ; then | |
2432 | has_toolkit_in_cache=1 | |
2433 | eval "DEFAULT_$LINE" | |
2434 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2435 | |
2436 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2437 | if test "x$LINE" != "x" ; then | |
2438 | eval "DEFAULT_$LINE" | |
2439 | fi | |
a848cd7e SC |
2440 | fi |
2441 | done | |
2442 | ||
2443 | ||
2444 | ||
2445 | enablestring= | |
2446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2447 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2448 | no_cache=0 | |
2449 | # Check whether --enable-gui or --disable-gui was given. | |
2450 | if test "${enable_gui+set}" = set; then | |
2451 | enableval="$enable_gui" | |
2452 | ||
2453 | if test "$enableval" = yes; then | |
2454 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2455 | else | |
2456 | ac_cv_use_gui='wxUSE_GUI=no' | |
2457 | fi | |
2458 | ||
2459 | else | |
2460 | ||
2461 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2462 | if test "x$LINE" != x ; then | |
2463 | eval "DEFAULT_$LINE" | |
2464 | else | |
2465 | no_cache=1 | |
2466 | fi | |
2467 | ||
2468 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2469 | ||
2470 | fi; | |
2471 | ||
2472 | eval "$ac_cv_use_gui" | |
2473 | if test "$no_cache" != 1; then | |
2474 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2475 | fi | |
2476 | ||
2477 | if test "$wxUSE_GUI" = yes; then | |
2478 | echo "$as_me:$LINENO: result: yes" >&5 | |
2479 | echo "${ECHO_T}yes" >&6 | |
2480 | else | |
2481 | echo "$as_me:$LINENO: result: no" >&5 | |
2482 | echo "${ECHO_T}no" >&6 | |
2483 | fi | |
2484 | ||
2485 | ||
2486 | enablestring= | |
2487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2488 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2489 | no_cache=0 | |
2490 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2491 | if test "${enable_monolithic+set}" = set; then | |
2492 | enableval="$enable_monolithic" | |
2493 | ||
2494 | if test "$enableval" = yes; then | |
2495 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2496 | else | |
2497 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2498 | fi | |
2499 | ||
2500 | else | |
2501 | ||
2502 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2503 | if test "x$LINE" != x ; then | |
2504 | eval "DEFAULT_$LINE" | |
2505 | else | |
2506 | no_cache=1 | |
2507 | fi | |
2508 | ||
2509 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2510 | ||
2511 | fi; | |
2512 | ||
2513 | eval "$ac_cv_use_monolithic" | |
2514 | if test "$no_cache" != 1; then | |
2515 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2516 | fi | |
2517 | ||
2518 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2519 | echo "$as_me:$LINENO: result: yes" >&5 | |
2520 | echo "${ECHO_T}yes" >&6 | |
2521 | else | |
2522 | echo "$as_me:$LINENO: result: no" >&5 | |
2523 | echo "${ECHO_T}no" >&6 | |
2524 | fi | |
2525 | ||
2526 | ||
2527 | enablestring= | |
2528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2529 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2530 | no_cache=0 | |
2531 | # Check whether --enable-plugins or --disable-plugins was given. | |
2532 | if test "${enable_plugins+set}" = set; then | |
2533 | enableval="$enable_plugins" | |
2534 | ||
2535 | if test "$enableval" = yes; then | |
2536 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2537 | else | |
2538 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2539 | fi | |
2540 | ||
2541 | else | |
2542 | ||
2543 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2544 | if test "x$LINE" != x ; then | |
2545 | eval "DEFAULT_$LINE" | |
2546 | else | |
2547 | no_cache=1 | |
2548 | fi | |
2549 | ||
2550 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2551 | ||
2552 | fi; | |
2553 | ||
2554 | eval "$ac_cv_use_plugins" | |
2555 | if test "$no_cache" != 1; then | |
2556 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2557 | fi | |
2558 | ||
2559 | if test "$wxUSE_PLUGINS" = yes; then | |
2560 | echo "$as_me:$LINENO: result: yes" >&5 | |
2561 | echo "${ECHO_T}yes" >&6 | |
2562 | else | |
2563 | echo "$as_me:$LINENO: result: no" >&5 | |
2564 | echo "${ECHO_T}no" >&6 | |
2565 | fi | |
2566 | ||
2567 | ||
2568 | if test "$wxUSE_GUI" = "yes"; then | |
2569 | ||
2570 | ||
2571 | enablestring= | |
2572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2573 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2574 | no_cache=0 | |
2575 | # Check whether --enable-universal or --disable-universal was given. | |
2576 | if test "${enable_universal+set}" = set; then | |
2577 | enableval="$enable_universal" | |
2578 | ||
2579 | if test "$enableval" = yes; then | |
2580 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2581 | else | |
2582 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2583 | fi | |
2584 | ||
2585 | else | |
2586 | ||
2587 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2588 | if test "x$LINE" != x ; then | |
2589 | eval "DEFAULT_$LINE" | |
2590 | else | |
2591 | no_cache=1 | |
2592 | fi | |
2593 | ||
2594 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2595 | ||
2596 | fi; | |
2597 | ||
2598 | eval "$ac_cv_use_universal" | |
2599 | if test "$no_cache" != 1; then | |
2600 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2601 | fi | |
2602 | ||
2603 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2604 | echo "$as_me:$LINENO: result: yes" >&5 | |
2605 | echo "${ECHO_T}yes" >&6 | |
2606 | else | |
2607 | echo "$as_me:$LINENO: result: no" >&5 | |
2608 | echo "${ECHO_T}no" >&6 | |
2609 | fi | |
2610 | ||
2611 | ||
2612 | # Check whether --with-gtk or --without-gtk was given. | |
2613 | if test "${with_gtk+set}" = set; then | |
2614 | withval="$with_gtk" | |
2615 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2616 | fi; | |
2617 | ||
2618 | # Check whether --with-motif or --without-motif was given. | |
2619 | if test "${with_motif+set}" = set; then | |
2620 | withval="$with_motif" | |
2621 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2622 | fi; | |
2623 | ||
2624 | # Check whether --with-mac or --without-mac was given. | |
2625 | if test "${with_mac+set}" = set; then | |
2626 | withval="$with_mac" | |
c228d3a4 | 2627 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2628 | fi; |
2629 | ||
2630 | # Check whether --with-cocoa or --without-cocoa was given. | |
2631 | if test "${with_cocoa+set}" = set; then | |
2632 | withval="$with_cocoa" | |
c228d3a4 | 2633 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2634 | fi; |
2635 | ||
2636 | # Check whether --with-wine or --without-wine was given. | |
2637 | if test "${with_wine+set}" = set; then | |
2638 | withval="$with_wine" | |
2639 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2640 | fi; | |
2641 | ||
2642 | # Check whether --with-msw or --without-msw was given. | |
2643 | if test "${with_msw+set}" = set; then | |
2644 | withval="$with_msw" | |
2645 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2646 | fi; | |
2647 | ||
2648 | # Check whether --with-pm or --without-pm was given. | |
2649 | if test "${with_pm+set}" = set; then | |
2650 | withval="$with_pm" | |
2651 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2652 | fi; | |
2653 | ||
2654 | # Check whether --with-mgl or --without-mgl was given. | |
2655 | if test "${with_mgl+set}" = set; then | |
2656 | withval="$with_mgl" | |
2657 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2658 | fi; | |
2659 | ||
2660 | # Check whether --with-microwin or --without-microwin was given. | |
2661 | if test "${with_microwin+set}" = set; then | |
2662 | withval="$with_microwin" | |
2663 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2664 | fi; | |
2665 | ||
2666 | # Check whether --with-x11 or --without-x11 was given. | |
2667 | if test "${with_x11+set}" = set; then | |
2668 | withval="$with_x11" | |
2669 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2670 | fi; | |
2671 | ||
2672 | enablestring= | |
2673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2674 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2675 | no_cache=0 | |
2676 | # Check whether --enable-nanox or --disable-nanox was given. | |
2677 | if test "${enable_nanox+set}" = set; then | |
2678 | enableval="$enable_nanox" | |
2679 | ||
2680 | if test "$enableval" = yes; then | |
2681 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2682 | else | |
2683 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2684 | fi | |
2685 | ||
2686 | else | |
2687 | ||
2688 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2689 | if test "x$LINE" != x ; then | |
2690 | eval "DEFAULT_$LINE" | |
2691 | else | |
2692 | no_cache=1 | |
2693 | fi | |
2694 | ||
2695 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2696 | ||
2697 | fi; | |
2698 | ||
2699 | eval "$ac_cv_use_nanox" | |
2700 | if test "$no_cache" != 1; then | |
2701 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2702 | fi | |
2703 | ||
2704 | if test "$wxUSE_NANOX" = yes; then | |
2705 | echo "$as_me:$LINENO: result: yes" >&5 | |
2706 | echo "${ECHO_T}yes" >&6 | |
2707 | else | |
2708 | echo "$as_me:$LINENO: result: no" >&5 | |
2709 | echo "${ECHO_T}no" >&6 | |
2710 | fi | |
2711 | ||
2712 | ||
f34ca037 MW |
2713 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2714 | if test "${enable_gtk2+set}" = set; then | |
2715 | enableval="$enable_gtk2" | |
2716 | wxUSE_GTK2="$enableval" | |
2717 | fi; | |
a848cd7e | 2718 | |
a848cd7e SC |
2719 | enablestring= |
2720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2721 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2722 | no_cache=0 | |
2723 | # Check whether --enable-gpe or --disable-gpe was given. | |
2724 | if test "${enable_gpe+set}" = set; then | |
2725 | enableval="$enable_gpe" | |
2726 | ||
2727 | if test "$enableval" = yes; then | |
2728 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2729 | else | |
2730 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2731 | fi | |
2732 | ||
2733 | else | |
2734 | ||
2735 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2736 | if test "x$LINE" != x ; then | |
2737 | eval "DEFAULT_$LINE" | |
2738 | else | |
2739 | no_cache=1 | |
2740 | fi | |
2741 | ||
2742 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2743 | ||
2744 | fi; | |
2745 | ||
2746 | eval "$ac_cv_use_gpe" | |
2747 | if test "$no_cache" != 1; then | |
2748 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2749 | fi | |
2750 | ||
2751 | if test "$wxUSE_GPE" = yes; then | |
2752 | echo "$as_me:$LINENO: result: yes" >&5 | |
2753 | echo "${ECHO_T}yes" >&6 | |
2754 | else | |
2755 | echo "$as_me:$LINENO: result: no" >&5 | |
2756 | echo "${ECHO_T}no" >&6 | |
2757 | fi | |
2758 | ||
2759 | ||
2760 | ||
2761 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2762 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2763 | no_cache=0 | |
2764 | ||
2765 | # Check whether --with-libpng or --without-libpng was given. | |
2766 | if test "${with_libpng+set}" = set; then | |
2767 | withval="$with_libpng" | |
2768 | ||
2769 | if test "$withval" = yes; then | |
2770 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2771 | elif test "$withval" = no; then | |
2772 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2773 | elif test "$withval" = sys; then | |
2774 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2775 | elif test "$withval" = builtin; then | |
2776 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2777 | else | |
2778 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2779 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2780 | { (exit 1); exit 1; }; } | |
2781 | fi | |
2782 | ||
2783 | else | |
2784 | ||
2785 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2786 | if test "x$LINE" != x ; then | |
2787 | eval "DEFAULT_$LINE" | |
2788 | else | |
2789 | no_cache=1 | |
2790 | fi | |
2791 | ||
2792 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2793 | ||
2794 | fi; | |
2795 | ||
2796 | eval "$ac_cv_use_libpng" | |
2797 | if test "$no_cache" != 1; then | |
2798 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2799 | fi | |
2800 | ||
2801 | if test "$wxUSE_LIBPNG" = yes; then | |
2802 | echo "$as_me:$LINENO: result: yes" >&5 | |
2803 | echo "${ECHO_T}yes" >&6 | |
2804 | elif test "$wxUSE_LIBPNG" = no; then | |
2805 | echo "$as_me:$LINENO: result: no" >&5 | |
2806 | echo "${ECHO_T}no" >&6 | |
2807 | elif test "$wxUSE_LIBPNG" = sys; then | |
2808 | echo "$as_me:$LINENO: result: system version" >&5 | |
2809 | echo "${ECHO_T}system version" >&6 | |
2810 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2811 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2812 | echo "${ECHO_T}builtin version" >&6 | |
2813 | else | |
2814 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2815 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2816 | { (exit 1); exit 1; }; } | |
2817 | fi | |
2818 | ||
2819 | ||
2820 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2821 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2822 | no_cache=0 | |
2823 | ||
2824 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2825 | if test "${with_libjpeg+set}" = set; then | |
2826 | withval="$with_libjpeg" | |
2827 | ||
2828 | if test "$withval" = yes; then | |
2829 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2830 | elif test "$withval" = no; then | |
2831 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2832 | elif test "$withval" = sys; then | |
2833 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2834 | elif test "$withval" = builtin; then | |
2835 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2836 | else | |
2837 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2838 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2839 | { (exit 1); exit 1; }; } | |
2840 | fi | |
2841 | ||
2842 | else | |
2843 | ||
2844 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2845 | if test "x$LINE" != x ; then | |
2846 | eval "DEFAULT_$LINE" | |
2847 | else | |
2848 | no_cache=1 | |
2849 | fi | |
2850 | ||
2851 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2852 | ||
2853 | fi; | |
2854 | ||
2855 | eval "$ac_cv_use_libjpeg" | |
2856 | if test "$no_cache" != 1; then | |
2857 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2858 | fi | |
2859 | ||
2860 | if test "$wxUSE_LIBJPEG" = yes; then | |
2861 | echo "$as_me:$LINENO: result: yes" >&5 | |
2862 | echo "${ECHO_T}yes" >&6 | |
2863 | elif test "$wxUSE_LIBJPEG" = no; then | |
2864 | echo "$as_me:$LINENO: result: no" >&5 | |
2865 | echo "${ECHO_T}no" >&6 | |
2866 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2867 | echo "$as_me:$LINENO: result: system version" >&5 | |
2868 | echo "${ECHO_T}system version" >&6 | |
2869 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2870 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2871 | echo "${ECHO_T}builtin version" >&6 | |
2872 | else | |
2873 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2874 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2875 | { (exit 1); exit 1; }; } | |
2876 | fi | |
2877 | ||
2878 | ||
2879 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2880 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2881 | no_cache=0 | |
2882 | ||
2883 | # Check whether --with-libtiff or --without-libtiff was given. | |
2884 | if test "${with_libtiff+set}" = set; then | |
2885 | withval="$with_libtiff" | |
2886 | ||
2887 | if test "$withval" = yes; then | |
2888 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2889 | elif test "$withval" = no; then | |
2890 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2891 | elif test "$withval" = sys; then | |
2892 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2893 | elif test "$withval" = builtin; then | |
2894 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2895 | else | |
2896 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2897 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2898 | { (exit 1); exit 1; }; } | |
2899 | fi | |
2900 | ||
2901 | else | |
2902 | ||
2903 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2904 | if test "x$LINE" != x ; then | |
2905 | eval "DEFAULT_$LINE" | |
2906 | else | |
2907 | no_cache=1 | |
2908 | fi | |
2909 | ||
2910 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2911 | ||
2912 | fi; | |
2913 | ||
2914 | eval "$ac_cv_use_libtiff" | |
2915 | if test "$no_cache" != 1; then | |
2916 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2917 | fi | |
2918 | ||
2919 | if test "$wxUSE_LIBTIFF" = yes; then | |
2920 | echo "$as_me:$LINENO: result: yes" >&5 | |
2921 | echo "${ECHO_T}yes" >&6 | |
2922 | elif test "$wxUSE_LIBTIFF" = no; then | |
2923 | echo "$as_me:$LINENO: result: no" >&5 | |
2924 | echo "${ECHO_T}no" >&6 | |
2925 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2926 | echo "$as_me:$LINENO: result: system version" >&5 | |
2927 | echo "${ECHO_T}system version" >&6 | |
2928 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2929 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2930 | echo "${ECHO_T}builtin version" >&6 | |
2931 | else | |
2932 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2933 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2934 | { (exit 1); exit 1; }; } | |
2935 | fi | |
2936 | ||
2937 | ||
2938 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2939 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2940 | no_cache=0 | |
2941 | ||
2942 | # Check whether --with-libxpm or --without-libxpm was given. | |
2943 | if test "${with_libxpm+set}" = set; then | |
2944 | withval="$with_libxpm" | |
2945 | ||
2946 | if test "$withval" = yes; then | |
2947 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2948 | elif test "$withval" = no; then | |
2949 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2950 | elif test "$withval" = sys; then | |
2951 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2952 | elif test "$withval" = builtin; then | |
2953 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2954 | else | |
2955 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2956 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2957 | { (exit 1); exit 1; }; } | |
2958 | fi | |
2959 | ||
2960 | else | |
2961 | ||
2962 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2963 | if test "x$LINE" != x ; then | |
2964 | eval "DEFAULT_$LINE" | |
2965 | else | |
2966 | no_cache=1 | |
2967 | fi | |
2968 | ||
2969 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2970 | ||
2971 | fi; | |
2972 | ||
2973 | eval "$ac_cv_use_libxpm" | |
2974 | if test "$no_cache" != 1; then | |
2975 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2976 | fi | |
2977 | ||
2978 | if test "$wxUSE_LIBXPM" = yes; then | |
2979 | echo "$as_me:$LINENO: result: yes" >&5 | |
2980 | echo "${ECHO_T}yes" >&6 | |
2981 | elif test "$wxUSE_LIBXPM" = no; then | |
2982 | echo "$as_me:$LINENO: result: no" >&5 | |
2983 | echo "${ECHO_T}no" >&6 | |
2984 | elif test "$wxUSE_LIBXPM" = sys; then | |
2985 | echo "$as_me:$LINENO: result: system version" >&5 | |
2986 | echo "${ECHO_T}system version" >&6 | |
2987 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2988 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2989 | echo "${ECHO_T}builtin version" >&6 | |
2990 | else | |
2991 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2992 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2993 | { (exit 1); exit 1; }; } | |
2994 | fi | |
2995 | ||
2996 | ||
2997 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2998 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2999 | no_cache=0 | |
3000 | ||
3001 | # Check whether --with-libmspack or --without-libmspack was given. | |
3002 | if test "${with_libmspack+set}" = set; then | |
3003 | withval="$with_libmspack" | |
3004 | ||
3005 | if test "$withval" = yes; then | |
3006 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3007 | else | |
3008 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3009 | fi | |
3010 | ||
3011 | else | |
3012 | ||
3013 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3014 | if test "x$LINE" != x ; then | |
3015 | eval "DEFAULT_$LINE" | |
3016 | else | |
3017 | no_cache=1 | |
3018 | fi | |
3019 | ||
3020 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3021 | ||
3022 | fi; | |
3023 | ||
3024 | eval "$ac_cv_use_libmspack" | |
3025 | if test "$no_cache" != 1; then | |
3026 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3027 | fi | |
3028 | ||
3029 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3030 | echo "$as_me:$LINENO: result: yes" >&5 | |
3031 | echo "${ECHO_T}yes" >&6 | |
3032 | else | |
3033 | echo "$as_me:$LINENO: result: no" >&5 | |
3034 | echo "${ECHO_T}no" >&6 | |
3035 | fi | |
3036 | ||
3037 | ||
3038 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3039 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3040 | no_cache=0 | |
3041 | ||
3042 | # Check whether --with-sdl or --without-sdl was given. | |
3043 | if test "${with_sdl+set}" = set; then | |
3044 | withval="$with_sdl" | |
3045 | ||
3046 | if test "$withval" = yes; then | |
3047 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3048 | else | |
3049 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3050 | fi | |
3051 | ||
3052 | else | |
3053 | ||
3054 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3055 | if test "x$LINE" != x ; then | |
3056 | eval "DEFAULT_$LINE" | |
3057 | else | |
3058 | no_cache=1 | |
3059 | fi | |
3060 | ||
3061 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3062 | ||
3063 | fi; | |
3064 | ||
3065 | eval "$ac_cv_use_sdl" | |
3066 | if test "$no_cache" != 1; then | |
3067 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3068 | fi | |
3069 | ||
3070 | if test "$wxUSE_LIBSDL" = yes; then | |
3071 | echo "$as_me:$LINENO: result: yes" >&5 | |
3072 | echo "${ECHO_T}yes" >&6 | |
3073 | else | |
3074 | echo "$as_me:$LINENO: result: no" >&5 | |
3075 | echo "${ECHO_T}no" >&6 | |
3076 | fi | |
3077 | ||
3078 | ||
d1c38808 VZ |
3079 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3080 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3081 | no_cache=0 | |
3082 | ||
3083 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3084 | if test "${with_gnomeprint+set}" = set; then | |
3085 | withval="$with_gnomeprint" | |
3086 | ||
3087 | if test "$withval" = yes; then | |
3088 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3089 | else | |
3090 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3091 | fi | |
3092 | ||
3093 | else | |
3094 | ||
3095 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3096 | if test "x$LINE" != x ; then | |
3097 | eval "DEFAULT_$LINE" | |
3098 | else | |
3099 | no_cache=1 | |
3100 | fi | |
3101 | ||
3102 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3103 | ||
3104 | fi; | |
3105 | ||
3106 | eval "$ac_cv_use_gnomeprint" | |
3107 | if test "$no_cache" != 1; then | |
3108 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3109 | fi | |
3110 | ||
3111 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3112 | echo "$as_me:$LINENO: result: yes" >&5 | |
3113 | echo "${ECHO_T}yes" >&6 | |
3114 | else | |
3115 | echo "$as_me:$LINENO: result: no" >&5 | |
3116 | echo "${ECHO_T}no" >&6 | |
3117 | fi | |
3118 | ||
3119 | ||
a848cd7e SC |
3120 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3121 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3122 | no_cache=0 | |
3123 | ||
3124 | # Check whether --with-opengl or --without-opengl was given. | |
3125 | if test "${with_opengl+set}" = set; then | |
3126 | withval="$with_opengl" | |
3127 | ||
3128 | if test "$withval" = yes; then | |
3129 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3130 | else | |
3131 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3132 | fi | |
3133 | ||
3134 | else | |
3135 | ||
3136 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3137 | if test "x$LINE" != x ; then | |
3138 | eval "DEFAULT_$LINE" | |
3139 | else | |
3140 | no_cache=1 | |
3141 | fi | |
3142 | ||
3143 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3144 | ||
3145 | fi; | |
3146 | ||
3147 | eval "$ac_cv_use_opengl" | |
3148 | if test "$no_cache" != 1; then | |
3149 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3150 | fi | |
3151 | ||
3152 | if test "$wxUSE_OPENGL" = yes; then | |
3153 | echo "$as_me:$LINENO: result: yes" >&5 | |
3154 | echo "${ECHO_T}yes" >&6 | |
3155 | else | |
3156 | echo "$as_me:$LINENO: result: no" >&5 | |
3157 | echo "${ECHO_T}no" >&6 | |
3158 | fi | |
3159 | ||
3160 | ||
3161 | fi | |
3162 | ||
3163 | ||
3164 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3165 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3166 | no_cache=0 | |
3167 | ||
3168 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3169 | if test "${with_dmalloc+set}" = set; then | |
3170 | withval="$with_dmalloc" | |
3171 | ||
3172 | if test "$withval" = yes; then | |
3173 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3174 | else | |
3175 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3176 | fi | |
3177 | ||
3178 | else | |
3179 | ||
3180 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3181 | if test "x$LINE" != x ; then | |
3182 | eval "DEFAULT_$LINE" | |
3183 | else | |
3184 | no_cache=1 | |
3185 | fi | |
3186 | ||
3187 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3188 | ||
3189 | fi; | |
3190 | ||
3191 | eval "$ac_cv_use_dmalloc" | |
3192 | if test "$no_cache" != 1; then | |
3193 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3194 | fi | |
3195 | ||
3196 | if test "$wxUSE_DMALLOC" = yes; then | |
3197 | echo "$as_me:$LINENO: result: yes" >&5 | |
3198 | echo "${ECHO_T}yes" >&6 | |
3199 | else | |
3200 | echo "$as_me:$LINENO: result: no" >&5 | |
3201 | echo "${ECHO_T}no" >&6 | |
3202 | fi | |
3203 | ||
3204 | ||
3205 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3206 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3207 | no_cache=0 | |
3208 | ||
3209 | # Check whether --with-regex or --without-regex was given. | |
3210 | if test "${with_regex+set}" = set; then | |
3211 | withval="$with_regex" | |
3212 | ||
3213 | if test "$withval" = yes; then | |
3214 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3215 | elif test "$withval" = no; then | |
3216 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3217 | elif test "$withval" = sys; then | |
3218 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3219 | elif test "$withval" = builtin; then | |
3220 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3221 | else | |
3222 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3223 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3224 | { (exit 1); exit 1; }; } | |
3225 | fi | |
3226 | ||
3227 | else | |
3228 | ||
3229 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3230 | if test "x$LINE" != x ; then | |
3231 | eval "DEFAULT_$LINE" | |
3232 | else | |
3233 | no_cache=1 | |
3234 | fi | |
3235 | ||
3236 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3237 | ||
3238 | fi; | |
3239 | ||
3240 | eval "$ac_cv_use_regex" | |
3241 | if test "$no_cache" != 1; then | |
3242 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3243 | fi | |
3244 | ||
3245 | if test "$wxUSE_REGEX" = yes; then | |
3246 | echo "$as_me:$LINENO: result: yes" >&5 | |
3247 | echo "${ECHO_T}yes" >&6 | |
3248 | elif test "$wxUSE_REGEX" = no; then | |
3249 | echo "$as_me:$LINENO: result: no" >&5 | |
3250 | echo "${ECHO_T}no" >&6 | |
3251 | elif test "$wxUSE_REGEX" = sys; then | |
3252 | echo "$as_me:$LINENO: result: system version" >&5 | |
3253 | echo "${ECHO_T}system version" >&6 | |
3254 | elif test "$wxUSE_REGEX" = builtin; then | |
3255 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3256 | echo "${ECHO_T}builtin version" >&6 | |
3257 | else | |
3258 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3259 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3260 | { (exit 1); exit 1; }; } | |
3261 | fi | |
3262 | ||
3263 | ||
3264 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3265 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3266 | no_cache=0 | |
3267 | ||
3268 | # Check whether --with-zlib or --without-zlib was given. | |
3269 | if test "${with_zlib+set}" = set; then | |
3270 | withval="$with_zlib" | |
3271 | ||
3272 | if test "$withval" = yes; then | |
3273 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3274 | elif test "$withval" = no; then | |
3275 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3276 | elif test "$withval" = sys; then | |
3277 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3278 | elif test "$withval" = builtin; then | |
3279 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3280 | else | |
3281 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3282 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3283 | { (exit 1); exit 1; }; } | |
3284 | fi | |
3285 | ||
3286 | else | |
3287 | ||
3288 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3289 | if test "x$LINE" != x ; then | |
3290 | eval "DEFAULT_$LINE" | |
3291 | else | |
3292 | no_cache=1 | |
3293 | fi | |
3294 | ||
3295 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3296 | ||
3297 | fi; | |
3298 | ||
3299 | eval "$ac_cv_use_zlib" | |
3300 | if test "$no_cache" != 1; then | |
3301 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3302 | fi | |
3303 | ||
3304 | if test "$wxUSE_ZLIB" = yes; then | |
3305 | echo "$as_me:$LINENO: result: yes" >&5 | |
3306 | echo "${ECHO_T}yes" >&6 | |
3307 | elif test "$wxUSE_ZLIB" = no; then | |
3308 | echo "$as_me:$LINENO: result: no" >&5 | |
3309 | echo "${ECHO_T}no" >&6 | |
3310 | elif test "$wxUSE_ZLIB" = sys; then | |
3311 | echo "$as_me:$LINENO: result: system version" >&5 | |
3312 | echo "${ECHO_T}system version" >&6 | |
3313 | elif test "$wxUSE_ZLIB" = builtin; then | |
3314 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3315 | echo "${ECHO_T}builtin version" >&6 | |
3316 | else | |
3317 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3318 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3319 | { (exit 1); exit 1; }; } | |
3320 | fi | |
3321 | ||
3322 | ||
3323 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3324 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3325 | no_cache=0 | |
3326 | ||
3327 | # Check whether --with-odbc or --without-odbc was given. | |
3328 | if test "${with_odbc+set}" = set; then | |
3329 | withval="$with_odbc" | |
3330 | ||
3331 | if test "$withval" = yes; then | |
3332 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3333 | elif test "$withval" = no; then | |
3334 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3335 | elif test "$withval" = sys; then | |
3336 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3337 | elif test "$withval" = builtin; then | |
3338 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3339 | else | |
3340 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3341 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3342 | { (exit 1); exit 1; }; } | |
3343 | fi | |
3344 | ||
3345 | else | |
3346 | ||
3347 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3348 | if test "x$LINE" != x ; then | |
3349 | eval "DEFAULT_$LINE" | |
3350 | else | |
3351 | no_cache=1 | |
3352 | fi | |
3353 | ||
3354 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3355 | ||
3356 | fi; | |
3357 | ||
3358 | eval "$ac_cv_use_odbc" | |
3359 | if test "$no_cache" != 1; then | |
3360 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3361 | fi | |
3362 | ||
3363 | if test "$wxUSE_ODBC" = yes; then | |
3364 | echo "$as_me:$LINENO: result: yes" >&5 | |
3365 | echo "${ECHO_T}yes" >&6 | |
3366 | elif test "$wxUSE_ODBC" = no; then | |
3367 | echo "$as_me:$LINENO: result: no" >&5 | |
3368 | echo "${ECHO_T}no" >&6 | |
3369 | elif test "$wxUSE_ODBC" = sys; then | |
3370 | echo "$as_me:$LINENO: result: system version" >&5 | |
3371 | echo "${ECHO_T}system version" >&6 | |
3372 | elif test "$wxUSE_ODBC" = builtin; then | |
3373 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3374 | echo "${ECHO_T}builtin version" >&6 | |
3375 | else | |
3376 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3377 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3378 | { (exit 1); exit 1; }; } | |
3379 | fi | |
3380 | ||
3381 | ||
3382 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3383 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3384 | no_cache=0 | |
3385 | ||
3386 | # Check whether --with-expat or --without-expat was given. | |
3387 | if test "${with_expat+set}" = set; then | |
3388 | withval="$with_expat" | |
3389 | ||
3390 | if test "$withval" = yes; then | |
3391 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3392 | elif test "$withval" = no; then | |
3393 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3394 | elif test "$withval" = sys; then | |
3395 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3396 | elif test "$withval" = builtin; then | |
3397 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3398 | else | |
3399 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3400 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3401 | { (exit 1); exit 1; }; } | |
3402 | fi | |
3403 | ||
3404 | else | |
3405 | ||
3406 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3407 | if test "x$LINE" != x ; then | |
3408 | eval "DEFAULT_$LINE" | |
3409 | else | |
3410 | no_cache=1 | |
3411 | fi | |
3412 | ||
3413 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3414 | ||
3415 | fi; | |
3416 | ||
3417 | eval "$ac_cv_use_expat" | |
3418 | if test "$no_cache" != 1; then | |
3419 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3420 | fi | |
3421 | ||
3422 | if test "$wxUSE_EXPAT" = yes; then | |
3423 | echo "$as_me:$LINENO: result: yes" >&5 | |
3424 | echo "${ECHO_T}yes" >&6 | |
3425 | elif test "$wxUSE_EXPAT" = no; then | |
3426 | echo "$as_me:$LINENO: result: no" >&5 | |
3427 | echo "${ECHO_T}no" >&6 | |
3428 | elif test "$wxUSE_EXPAT" = sys; then | |
3429 | echo "$as_me:$LINENO: result: system version" >&5 | |
3430 | echo "${ECHO_T}system version" >&6 | |
3431 | elif test "$wxUSE_EXPAT" = builtin; then | |
3432 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3433 | echo "${ECHO_T}builtin version" >&6 | |
3434 | else | |
3435 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3436 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3437 | { (exit 1); exit 1; }; } | |
3438 | fi | |
3439 | ||
3440 | ||
3441 | ||
3442 | ||
3443 | enablestring= | |
3444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3445 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3446 | no_cache=0 | |
3447 | # Check whether --enable-shared or --disable-shared was given. | |
3448 | if test "${enable_shared+set}" = set; then | |
3449 | enableval="$enable_shared" | |
3450 | ||
3451 | if test "$enableval" = yes; then | |
3452 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3453 | else | |
3454 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3455 | fi | |
3456 | ||
3457 | else | |
3458 | ||
3459 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3460 | if test "x$LINE" != x ; then | |
3461 | eval "DEFAULT_$LINE" | |
3462 | else | |
3463 | no_cache=1 | |
3464 | fi | |
3465 | ||
3466 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3467 | ||
3468 | fi; | |
3469 | ||
3470 | eval "$ac_cv_use_shared" | |
3471 | if test "$no_cache" != 1; then | |
3472 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3473 | fi | |
3474 | ||
3475 | if test "$wxUSE_SHARED" = yes; then | |
3476 | echo "$as_me:$LINENO: result: yes" >&5 | |
3477 | echo "${ECHO_T}yes" >&6 | |
3478 | else | |
3479 | echo "$as_me:$LINENO: result: no" >&5 | |
3480 | echo "${ECHO_T}no" >&6 | |
3481 | fi | |
3482 | ||
3483 | ||
3484 | enablestring= | |
3485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3486 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3487 | no_cache=0 | |
3488 | # Check whether --enable-optimise or --disable-optimise was given. | |
3489 | if test "${enable_optimise+set}" = set; then | |
3490 | enableval="$enable_optimise" | |
3491 | ||
3492 | if test "$enableval" = yes; then | |
3493 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3494 | else | |
3495 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3496 | fi | |
3497 | ||
3498 | else | |
3499 | ||
3500 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3501 | if test "x$LINE" != x ; then | |
3502 | eval "DEFAULT_$LINE" | |
3503 | else | |
3504 | no_cache=1 | |
3505 | fi | |
3506 | ||
3507 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3508 | ||
3509 | fi; | |
3510 | ||
3511 | eval "$ac_cv_use_optimise" | |
3512 | if test "$no_cache" != 1; then | |
3513 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3514 | fi | |
3515 | ||
3516 | if test "$wxUSE_OPTIMISE" = yes; then | |
3517 | echo "$as_me:$LINENO: result: yes" >&5 | |
3518 | echo "${ECHO_T}yes" >&6 | |
3519 | else | |
3520 | echo "$as_me:$LINENO: result: no" >&5 | |
3521 | echo "${ECHO_T}no" >&6 | |
3522 | fi | |
3523 | ||
3524 | ||
3525 | enablestring= | |
3526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3527 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3528 | no_cache=0 | |
3529 | # Check whether --enable-debug or --disable-debug was given. | |
3530 | if test "${enable_debug+set}" = set; then | |
3531 | enableval="$enable_debug" | |
3532 | ||
3533 | if test "$enableval" = yes; then | |
3534 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3535 | else | |
3536 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3537 | fi | |
3538 | ||
3539 | else | |
3540 | ||
3541 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3542 | if test "x$LINE" != x ; then | |
3543 | eval "DEFAULT_$LINE" | |
3544 | else | |
3545 | no_cache=1 | |
3546 | fi | |
3547 | ||
3548 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3549 | ||
3550 | fi; | |
3551 | ||
3552 | eval "$ac_cv_use_debug" | |
3553 | if test "$no_cache" != 1; then | |
3554 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3555 | fi | |
3556 | ||
3557 | if test "$wxUSE_DEBUG" = yes; then | |
3558 | echo "$as_me:$LINENO: result: yes" >&5 | |
3559 | echo "${ECHO_T}yes" >&6 | |
3560 | else | |
3561 | echo "$as_me:$LINENO: result: no" >&5 | |
3562 | echo "${ECHO_T}no" >&6 | |
3563 | fi | |
3564 | ||
3565 | ||
3566 | enablestring= | |
3567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3568 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3569 | no_cache=0 | |
3570 | # Check whether --enable-stl or --disable-stl was given. | |
3571 | if test "${enable_stl+set}" = set; then | |
3572 | enableval="$enable_stl" | |
3573 | ||
3574 | if test "$enableval" = yes; then | |
3575 | ac_cv_use_stl='wxUSE_STL=yes' | |
3576 | else | |
3577 | ac_cv_use_stl='wxUSE_STL=no' | |
3578 | fi | |
3579 | ||
3580 | else | |
3581 | ||
3582 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3583 | if test "x$LINE" != x ; then | |
3584 | eval "DEFAULT_$LINE" | |
3585 | else | |
3586 | no_cache=1 | |
3587 | fi | |
3588 | ||
3589 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3590 | ||
3591 | fi; | |
3592 | ||
3593 | eval "$ac_cv_use_stl" | |
3594 | if test "$no_cache" != 1; then | |
3595 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3596 | fi | |
3597 | ||
3598 | if test "$wxUSE_STL" = yes; then | |
3599 | echo "$as_me:$LINENO: result: yes" >&5 | |
3600 | echo "${ECHO_T}yes" >&6 | |
3601 | else | |
3602 | echo "$as_me:$LINENO: result: no" >&5 | |
3603 | echo "${ECHO_T}no" >&6 | |
3604 | fi | |
3605 | ||
3606 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3607 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3608 | |
3609 | enablestring= | |
3610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3611 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3612 | no_cache=0 | |
3613 | # Check whether --enable-omf or --disable-omf was given. | |
3614 | if test "${enable_omf+set}" = set; then | |
3615 | enableval="$enable_omf" | |
3616 | ||
3617 | if test "$enableval" = yes; then | |
3618 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3619 | else | |
3620 | ac_cv_use_omf='wxUSE_OMF=no' | |
3621 | fi | |
3622 | ||
3623 | else | |
3624 | ||
3625 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3626 | if test "x$LINE" != x ; then | |
3627 | eval "DEFAULT_$LINE" | |
3628 | else | |
3629 | no_cache=1 | |
3630 | fi | |
3631 | ||
3632 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3633 | ||
3634 | fi; | |
3635 | ||
3636 | eval "$ac_cv_use_omf" | |
3637 | if test "$no_cache" != 1; then | |
3638 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3639 | fi | |
3640 | ||
3641 | if test "$wxUSE_OMF" = yes; then | |
3642 | echo "$as_me:$LINENO: result: yes" >&5 | |
3643 | echo "${ECHO_T}yes" >&6 | |
3644 | else | |
3645 | echo "$as_me:$LINENO: result: no" >&5 | |
3646 | echo "${ECHO_T}no" >&6 | |
3647 | fi | |
3648 | ||
3649 | fi | |
3650 | ||
3651 | if test "$wxUSE_DEBUG" = "yes"; then | |
3652 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3653 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3654 | BUILD=debug | |
3655 | elif test "$wxUSE_DEBUG" = "no"; then | |
3656 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3657 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3658 | BUILD=release | |
3659 | fi | |
3660 | ||
3661 | ||
3662 | enablestring= | |
3663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3664 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3665 | no_cache=0 | |
3666 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3667 | if test "${enable_debug_flag+set}" = set; then | |
3668 | enableval="$enable_debug_flag" | |
3669 | ||
3670 | if test "$enableval" = yes; then | |
3671 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3672 | else | |
3673 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3674 | fi | |
3675 | ||
3676 | else | |
3677 | ||
3678 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3679 | if test "x$LINE" != x ; then | |
3680 | eval "DEFAULT_$LINE" | |
3681 | else | |
3682 | no_cache=1 | |
3683 | fi | |
3684 | ||
3685 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3686 | ||
3687 | fi; | |
3688 | ||
3689 | eval "$ac_cv_use_debug_flag" | |
3690 | if test "$no_cache" != 1; then | |
3691 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3692 | fi | |
3693 | ||
3694 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3695 | echo "$as_me:$LINENO: result: yes" >&5 | |
3696 | echo "${ECHO_T}yes" >&6 | |
3697 | else | |
3698 | echo "$as_me:$LINENO: result: no" >&5 | |
3699 | echo "${ECHO_T}no" >&6 | |
3700 | fi | |
3701 | ||
3702 | ||
3703 | enablestring= | |
3704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3705 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3706 | no_cache=0 | |
3707 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3708 | if test "${enable_debug_info+set}" = set; then | |
3709 | enableval="$enable_debug_info" | |
3710 | ||
3711 | if test "$enableval" = yes; then | |
3712 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3713 | else | |
3714 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3715 | fi | |
3716 | ||
3717 | else | |
3718 | ||
3719 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3720 | if test "x$LINE" != x ; then | |
3721 | eval "DEFAULT_$LINE" | |
3722 | else | |
3723 | no_cache=1 | |
3724 | fi | |
3725 | ||
3726 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3727 | ||
3728 | fi; | |
3729 | ||
3730 | eval "$ac_cv_use_debug_info" | |
3731 | if test "$no_cache" != 1; then | |
3732 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3733 | fi | |
3734 | ||
3735 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3736 | echo "$as_me:$LINENO: result: yes" >&5 | |
3737 | echo "${ECHO_T}yes" >&6 | |
3738 | else | |
3739 | echo "$as_me:$LINENO: result: no" >&5 | |
3740 | echo "${ECHO_T}no" >&6 | |
3741 | fi | |
3742 | ||
3743 | ||
3744 | enablestring= | |
3745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3746 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3747 | no_cache=0 | |
3748 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3749 | if test "${enable_debug_gdb+set}" = set; then | |
3750 | enableval="$enable_debug_gdb" | |
3751 | ||
3752 | if test "$enableval" = yes; then | |
3753 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3754 | else | |
3755 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3756 | fi | |
3757 | ||
3758 | else | |
3759 | ||
3760 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3761 | if test "x$LINE" != x ; then | |
3762 | eval "DEFAULT_$LINE" | |
3763 | else | |
3764 | no_cache=1 | |
3765 | fi | |
3766 | ||
3767 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3768 | ||
3769 | fi; | |
3770 | ||
3771 | eval "$ac_cv_use_debug_gdb" | |
3772 | if test "$no_cache" != 1; then | |
3773 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3774 | fi | |
3775 | ||
3776 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3777 | echo "$as_me:$LINENO: result: yes" >&5 | |
3778 | echo "${ECHO_T}yes" >&6 | |
3779 | else | |
3780 | echo "$as_me:$LINENO: result: no" >&5 | |
3781 | echo "${ECHO_T}no" >&6 | |
3782 | fi | |
3783 | ||
3784 | ||
3785 | enablestring= | |
3786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3787 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3788 | no_cache=0 | |
3789 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3790 | if test "${enable_debug_cntxt+set}" = set; then | |
3791 | enableval="$enable_debug_cntxt" | |
3792 | ||
3793 | if test "$enableval" = yes; then | |
3794 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3795 | else | |
3796 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3797 | fi | |
3798 | ||
3799 | else | |
3800 | ||
3801 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3802 | if test "x$LINE" != x ; then | |
3803 | eval "DEFAULT_$LINE" | |
3804 | else | |
3805 | no_cache=1 | |
3806 | fi | |
3807 | ||
3808 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3809 | ||
3810 | fi; | |
3811 | ||
3812 | eval "$ac_cv_use_debug_cntxt" | |
3813 | if test "$no_cache" != 1; then | |
3814 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3815 | fi | |
3816 | ||
3817 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3818 | echo "$as_me:$LINENO: result: yes" >&5 | |
3819 | echo "${ECHO_T}yes" >&6 | |
3820 | else | |
3821 | echo "$as_me:$LINENO: result: no" >&5 | |
3822 | echo "${ECHO_T}no" >&6 | |
3823 | fi | |
3824 | ||
3825 | ||
3826 | enablestring= | |
3827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3828 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3829 | no_cache=0 | |
3830 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3831 | if test "${enable_mem_tracing+set}" = set; then | |
3832 | enableval="$enable_mem_tracing" | |
3833 | ||
3834 | if test "$enableval" = yes; then | |
3835 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3836 | else | |
3837 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3838 | fi | |
3839 | ||
3840 | else | |
3841 | ||
3842 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3843 | if test "x$LINE" != x ; then | |
3844 | eval "DEFAULT_$LINE" | |
3845 | else | |
3846 | no_cache=1 | |
3847 | fi | |
3848 | ||
3849 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3850 | ||
3851 | fi; | |
3852 | ||
3853 | eval "$ac_cv_use_mem_tracing" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3859 | echo "$as_me:$LINENO: result: yes" >&5 | |
3860 | echo "${ECHO_T}yes" >&6 | |
3861 | else | |
3862 | echo "$as_me:$LINENO: result: no" >&5 | |
3863 | echo "${ECHO_T}no" >&6 | |
3864 | fi | |
3865 | ||
3866 | ||
3867 | enablestring= | |
3868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3869 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3870 | no_cache=0 | |
3871 | # Check whether --enable-profile or --disable-profile was given. | |
3872 | if test "${enable_profile+set}" = set; then | |
3873 | enableval="$enable_profile" | |
3874 | ||
3875 | if test "$enableval" = yes; then | |
3876 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3877 | else | |
3878 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3879 | fi | |
3880 | ||
3881 | else | |
3882 | ||
3883 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3891 | ||
3892 | fi; | |
3893 | ||
3894 | eval "$ac_cv_use_profile" | |
3895 | if test "$no_cache" != 1; then | |
3896 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3897 | fi | |
3898 | ||
3899 | if test "$wxUSE_PROFILE" = yes; then | |
3900 | echo "$as_me:$LINENO: result: yes" >&5 | |
3901 | echo "${ECHO_T}yes" >&6 | |
3902 | else | |
3903 | echo "$as_me:$LINENO: result: no" >&5 | |
3904 | echo "${ECHO_T}no" >&6 | |
3905 | fi | |
3906 | ||
3907 | ||
3908 | enablestring= | |
3909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3910 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3911 | no_cache=0 | |
3912 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3913 | if test "${enable_no_rtti+set}" = set; then | |
3914 | enableval="$enable_no_rtti" | |
3915 | ||
3916 | if test "$enableval" = yes; then | |
3917 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3918 | else | |
3919 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3920 | fi | |
3921 | ||
3922 | else | |
3923 | ||
3924 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3925 | if test "x$LINE" != x ; then | |
3926 | eval "DEFAULT_$LINE" | |
3927 | else | |
3928 | no_cache=1 | |
3929 | fi | |
3930 | ||
3931 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3932 | ||
3933 | fi; | |
3934 | ||
3935 | eval "$ac_cv_use_no_rtti" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_NO_RTTI" = yes; then | |
3941 | echo "$as_me:$LINENO: result: yes" >&5 | |
3942 | echo "${ECHO_T}yes" >&6 | |
3943 | else | |
3944 | echo "$as_me:$LINENO: result: no" >&5 | |
3945 | echo "${ECHO_T}no" >&6 | |
3946 | fi | |
3947 | ||
3948 | ||
3949 | enablestring= | |
3950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3951 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3952 | no_cache=0 | |
3953 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3954 | if test "${enable_no_exceptions+set}" = set; then | |
3955 | enableval="$enable_no_exceptions" | |
3956 | ||
3957 | if test "$enableval" = yes; then | |
3958 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3959 | else | |
3960 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3961 | fi | |
3962 | ||
3963 | else | |
3964 | ||
3965 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3966 | if test "x$LINE" != x ; then | |
3967 | eval "DEFAULT_$LINE" | |
3968 | else | |
3969 | no_cache=1 | |
3970 | fi | |
3971 | ||
3972 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3973 | ||
3974 | fi; | |
3975 | ||
3976 | eval "$ac_cv_use_no_exceptions" | |
3977 | if test "$no_cache" != 1; then | |
3978 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3979 | fi | |
3980 | ||
3981 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3982 | echo "$as_me:$LINENO: result: yes" >&5 | |
3983 | echo "${ECHO_T}yes" >&6 | |
3984 | else | |
3985 | echo "$as_me:$LINENO: result: no" >&5 | |
3986 | echo "${ECHO_T}no" >&6 | |
3987 | fi | |
3988 | ||
3989 | ||
3990 | enablestring= | |
3991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3992 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3993 | no_cache=0 | |
3994 | # Check whether --enable-permissive or --disable-permissive was given. | |
3995 | if test "${enable_permissive+set}" = set; then | |
3996 | enableval="$enable_permissive" | |
3997 | ||
3998 | if test "$enableval" = yes; then | |
3999 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4000 | else | |
4001 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4002 | fi | |
4003 | ||
4004 | else | |
4005 | ||
4006 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4007 | if test "x$LINE" != x ; then | |
4008 | eval "DEFAULT_$LINE" | |
4009 | else | |
4010 | no_cache=1 | |
4011 | fi | |
4012 | ||
4013 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4014 | ||
4015 | fi; | |
4016 | ||
4017 | eval "$ac_cv_use_permissive" | |
4018 | if test "$no_cache" != 1; then | |
4019 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4020 | fi | |
4021 | ||
4022 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4023 | echo "$as_me:$LINENO: result: yes" >&5 | |
4024 | echo "${ECHO_T}yes" >&6 | |
4025 | else | |
4026 | echo "$as_me:$LINENO: result: no" >&5 | |
4027 | echo "${ECHO_T}no" >&6 | |
4028 | fi | |
4029 | ||
4030 | ||
4031 | enablestring= | |
4032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4033 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4034 | no_cache=0 | |
4035 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4036 | if test "${enable_no_deps+set}" = set; then | |
4037 | enableval="$enable_no_deps" | |
4038 | ||
4039 | if test "$enableval" = yes; then | |
4040 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4041 | else | |
4042 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4043 | fi | |
4044 | ||
4045 | else | |
4046 | ||
4047 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4048 | if test "x$LINE" != x ; then | |
4049 | eval "DEFAULT_$LINE" | |
4050 | else | |
4051 | no_cache=1 | |
4052 | fi | |
4053 | ||
4054 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4055 | ||
4056 | fi; | |
4057 | ||
4058 | eval "$ac_cv_use_no_deps" | |
4059 | if test "$no_cache" != 1; then | |
4060 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4061 | fi | |
4062 | ||
4063 | if test "$wxUSE_NO_DEPS" = yes; then | |
4064 | echo "$as_me:$LINENO: result: yes" >&5 | |
4065 | echo "${ECHO_T}yes" >&6 | |
4066 | else | |
4067 | echo "$as_me:$LINENO: result: no" >&5 | |
4068 | echo "${ECHO_T}no" >&6 | |
4069 | fi | |
4070 | ||
4071 | ||
4072 | ||
4073 | enablestring= | |
4074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4075 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4076 | no_cache=0 | |
4077 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4078 | if test "${enable_compat22+set}" = set; then | |
4079 | enableval="$enable_compat22" | |
4080 | ||
4081 | if test "$enableval" = yes; then | |
4082 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4083 | else | |
4084 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4085 | fi | |
4086 | ||
4087 | else | |
4088 | ||
4089 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4090 | if test "x$LINE" != x ; then | |
4091 | eval "DEFAULT_$LINE" | |
4092 | else | |
4093 | no_cache=1 | |
4094 | fi | |
4095 | ||
4096 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4097 | ||
4098 | fi; | |
4099 | ||
4100 | eval "$ac_cv_use_compat22" | |
4101 | if test "$no_cache" != 1; then | |
4102 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4103 | fi | |
4104 | ||
4105 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4106 | echo "$as_me:$LINENO: result: yes" >&5 | |
4107 | echo "${ECHO_T}yes" >&6 | |
4108 | else | |
4109 | echo "$as_me:$LINENO: result: no" >&5 | |
4110 | echo "${ECHO_T}no" >&6 | |
4111 | fi | |
4112 | ||
4113 | ||
4114 | enablestring=disable | |
4115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4116 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4117 | no_cache=0 | |
4118 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4119 | if test "${enable_compat24+set}" = set; then | |
4120 | enableval="$enable_compat24" | |
4121 | ||
4122 | if test "$enableval" = yes; then | |
4123 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4124 | else | |
4125 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4126 | fi | |
4127 | ||
4128 | else | |
4129 | ||
4130 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4131 | if test "x$LINE" != x ; then | |
4132 | eval "DEFAULT_$LINE" | |
4133 | else | |
4134 | no_cache=1 | |
4135 | fi | |
4136 | ||
4137 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4138 | ||
4139 | fi; | |
4140 | ||
4141 | eval "$ac_cv_use_compat24" | |
4142 | if test "$no_cache" != 1; then | |
4143 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4144 | fi | |
4145 | ||
4146 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4147 | echo "$as_me:$LINENO: result: yes" >&5 | |
4148 | echo "${ECHO_T}yes" >&6 | |
4149 | else | |
4150 | echo "$as_me:$LINENO: result: no" >&5 | |
4151 | echo "${ECHO_T}no" >&6 | |
4152 | fi | |
4153 | ||
4154 | ||
ffa0583f RL |
4155 | |
4156 | enablestring= | |
4157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4158 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4159 | no_cache=0 | |
4160 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4161 | if test "${enable_rpath+set}" = set; then |
4162 | enableval="$enable_rpath" | |
ffa0583f RL |
4163 | |
4164 | if test "$enableval" = yes; then | |
4165 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4166 | else | |
4167 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4168 | fi | |
4169 | ||
4170 | else | |
4171 | ||
4172 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4173 | if test "x$LINE" != x ; then | |
4174 | eval "DEFAULT_$LINE" | |
4175 | else | |
4176 | no_cache=1 | |
4177 | fi | |
4178 | ||
4179 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4180 | ||
a848cd7e SC |
4181 | fi; |
4182 | ||
ffa0583f RL |
4183 | eval "$ac_cv_use_rpath" |
4184 | if test "$no_cache" != 1; then | |
4185 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4186 | fi | |
4187 | ||
4188 | if test "$wxUSE_RPATH" = yes; then | |
4189 | echo "$as_me:$LINENO: result: yes" >&5 | |
4190 | echo "${ECHO_T}yes" >&6 | |
4191 | else | |
4192 | echo "$as_me:$LINENO: result: no" >&5 | |
4193 | echo "${ECHO_T}no" >&6 | |
4194 | fi | |
4195 | ||
a848cd7e SC |
4196 | |
4197 | ||
4198 | ||
4199 | ||
4200 | enablestring= | |
4201 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4202 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4203 | no_cache=0 | |
4204 | # Check whether --enable-intl or --disable-intl was given. | |
4205 | if test "${enable_intl+set}" = set; then | |
4206 | enableval="$enable_intl" | |
4207 | ||
4208 | if test "$enableval" = yes; then | |
4209 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4210 | else | |
4211 | ac_cv_use_intl='wxUSE_INTL=no' | |
4212 | fi | |
4213 | ||
4214 | else | |
4215 | ||
4216 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4217 | if test "x$LINE" != x ; then | |
4218 | eval "DEFAULT_$LINE" | |
4219 | else | |
4220 | no_cache=1 | |
4221 | fi | |
4222 | ||
4223 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4224 | ||
4225 | fi; | |
4226 | ||
4227 | eval "$ac_cv_use_intl" | |
4228 | if test "$no_cache" != 1; then | |
4229 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4230 | fi | |
4231 | ||
4232 | if test "$wxUSE_INTL" = yes; then | |
4233 | echo "$as_me:$LINENO: result: yes" >&5 | |
4234 | echo "${ECHO_T}yes" >&6 | |
4235 | else | |
4236 | echo "$as_me:$LINENO: result: no" >&5 | |
4237 | echo "${ECHO_T}no" >&6 | |
4238 | fi | |
4239 | ||
4240 | ||
4241 | enablestring= | |
4242 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4243 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4244 | no_cache=0 | |
4245 | # Check whether --enable-config or --disable-config was given. | |
4246 | if test "${enable_config+set}" = set; then | |
4247 | enableval="$enable_config" | |
4248 | ||
4249 | if test "$enableval" = yes; then | |
4250 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4251 | else | |
4252 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4253 | fi | |
4254 | ||
4255 | else | |
4256 | ||
4257 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4258 | if test "x$LINE" != x ; then | |
4259 | eval "DEFAULT_$LINE" | |
4260 | else | |
4261 | no_cache=1 | |
4262 | fi | |
4263 | ||
4264 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4265 | ||
4266 | fi; | |
4267 | ||
4268 | eval "$ac_cv_use_config" | |
4269 | if test "$no_cache" != 1; then | |
4270 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4271 | fi | |
4272 | ||
4273 | if test "$wxUSE_CONFIG" = yes; then | |
4274 | echo "$as_me:$LINENO: result: yes" >&5 | |
4275 | echo "${ECHO_T}yes" >&6 | |
4276 | else | |
4277 | echo "$as_me:$LINENO: result: no" >&5 | |
4278 | echo "${ECHO_T}no" >&6 | |
4279 | fi | |
4280 | ||
4281 | ||
4282 | ||
4283 | enablestring= | |
4284 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4285 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4286 | no_cache=0 | |
4287 | # Check whether --enable-protocols or --disable-protocols was given. | |
4288 | if test "${enable_protocols+set}" = set; then | |
4289 | enableval="$enable_protocols" | |
4290 | ||
4291 | if test "$enableval" = yes; then | |
4292 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4293 | else | |
4294 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4295 | fi | |
4296 | ||
4297 | else | |
4298 | ||
4299 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4300 | if test "x$LINE" != x ; then | |
4301 | eval "DEFAULT_$LINE" | |
4302 | else | |
4303 | no_cache=1 | |
4304 | fi | |
4305 | ||
4306 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4307 | ||
4308 | fi; | |
4309 | ||
4310 | eval "$ac_cv_use_protocols" | |
4311 | if test "$no_cache" != 1; then | |
4312 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4313 | fi | |
4314 | ||
4315 | if test "$wxUSE_PROTOCOL" = yes; then | |
4316 | echo "$as_me:$LINENO: result: yes" >&5 | |
4317 | echo "${ECHO_T}yes" >&6 | |
4318 | else | |
4319 | echo "$as_me:$LINENO: result: no" >&5 | |
4320 | echo "${ECHO_T}no" >&6 | |
4321 | fi | |
4322 | ||
4323 | ||
4324 | enablestring= | |
4325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4326 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4327 | no_cache=0 | |
4328 | # Check whether --enable-ftp or --disable-ftp was given. | |
4329 | if test "${enable_ftp+set}" = set; then | |
4330 | enableval="$enable_ftp" | |
4331 | ||
4332 | if test "$enableval" = yes; then | |
4333 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4334 | else | |
4335 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4336 | fi | |
4337 | ||
4338 | else | |
4339 | ||
4340 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4341 | if test "x$LINE" != x ; then | |
4342 | eval "DEFAULT_$LINE" | |
4343 | else | |
4344 | no_cache=1 | |
4345 | fi | |
4346 | ||
4347 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4348 | ||
4349 | fi; | |
4350 | ||
4351 | eval "$ac_cv_use_ftp" | |
4352 | if test "$no_cache" != 1; then | |
4353 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4354 | fi | |
4355 | ||
4356 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4357 | echo "$as_me:$LINENO: result: yes" >&5 | |
4358 | echo "${ECHO_T}yes" >&6 | |
4359 | else | |
4360 | echo "$as_me:$LINENO: result: no" >&5 | |
4361 | echo "${ECHO_T}no" >&6 | |
4362 | fi | |
4363 | ||
4364 | ||
4365 | enablestring= | |
4366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4367 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4368 | no_cache=0 | |
4369 | # Check whether --enable-http or --disable-http was given. | |
4370 | if test "${enable_http+set}" = set; then | |
4371 | enableval="$enable_http" | |
4372 | ||
4373 | if test "$enableval" = yes; then | |
4374 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4375 | else | |
4376 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4377 | fi | |
4378 | ||
4379 | else | |
4380 | ||
4381 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4382 | if test "x$LINE" != x ; then | |
4383 | eval "DEFAULT_$LINE" | |
4384 | else | |
4385 | no_cache=1 | |
4386 | fi | |
4387 | ||
4388 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4389 | ||
4390 | fi; | |
4391 | ||
4392 | eval "$ac_cv_use_http" | |
4393 | if test "$no_cache" != 1; then | |
4394 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4395 | fi | |
4396 | ||
4397 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4398 | echo "$as_me:$LINENO: result: yes" >&5 | |
4399 | echo "${ECHO_T}yes" >&6 | |
4400 | else | |
4401 | echo "$as_me:$LINENO: result: no" >&5 | |
4402 | echo "${ECHO_T}no" >&6 | |
4403 | fi | |
4404 | ||
4405 | ||
4406 | enablestring= | |
4407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4408 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4409 | no_cache=0 | |
4410 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4411 | if test "${enable_fileproto+set}" = set; then | |
4412 | enableval="$enable_fileproto" | |
4413 | ||
4414 | if test "$enableval" = yes; then | |
4415 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4416 | else | |
4417 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4418 | fi | |
4419 | ||
4420 | else | |
4421 | ||
4422 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4423 | if test "x$LINE" != x ; then | |
4424 | eval "DEFAULT_$LINE" | |
4425 | else | |
4426 | no_cache=1 | |
4427 | fi | |
4428 | ||
4429 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4430 | ||
4431 | fi; | |
4432 | ||
4433 | eval "$ac_cv_use_fileproto" | |
4434 | if test "$no_cache" != 1; then | |
4435 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4436 | fi | |
4437 | ||
4438 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4439 | echo "$as_me:$LINENO: result: yes" >&5 | |
4440 | echo "${ECHO_T}yes" >&6 | |
4441 | else | |
4442 | echo "$as_me:$LINENO: result: no" >&5 | |
4443 | echo "${ECHO_T}no" >&6 | |
4444 | fi | |
4445 | ||
4446 | ||
4447 | enablestring= | |
4448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4449 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4450 | no_cache=0 | |
4451 | # Check whether --enable-sockets or --disable-sockets was given. | |
4452 | if test "${enable_sockets+set}" = set; then | |
4453 | enableval="$enable_sockets" | |
4454 | ||
4455 | if test "$enableval" = yes; then | |
4456 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4457 | else | |
4458 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4459 | fi | |
4460 | ||
4461 | else | |
4462 | ||
4463 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4464 | if test "x$LINE" != x ; then | |
4465 | eval "DEFAULT_$LINE" | |
4466 | else | |
4467 | no_cache=1 | |
4468 | fi | |
4469 | ||
4470 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4471 | ||
4472 | fi; | |
4473 | ||
4474 | eval "$ac_cv_use_sockets" | |
4475 | if test "$no_cache" != 1; then | |
4476 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4477 | fi | |
4478 | ||
4479 | if test "$wxUSE_SOCKETS" = yes; then | |
4480 | echo "$as_me:$LINENO: result: yes" >&5 | |
4481 | echo "${ECHO_T}yes" >&6 | |
4482 | else | |
4483 | echo "$as_me:$LINENO: result: no" >&5 | |
4484 | echo "${ECHO_T}no" >&6 | |
4485 | fi | |
4486 | ||
4487 | ||
4488 | enablestring= | |
4489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4490 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4491 | no_cache=0 | |
4492 | # Check whether --enable-ole or --disable-ole was given. | |
4493 | if test "${enable_ole+set}" = set; then | |
4494 | enableval="$enable_ole" | |
4495 | ||
4496 | if test "$enableval" = yes; then | |
4497 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4498 | else | |
4499 | ac_cv_use_ole='wxUSE_OLE=no' | |
4500 | fi | |
4501 | ||
4502 | else | |
4503 | ||
4504 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4505 | if test "x$LINE" != x ; then | |
4506 | eval "DEFAULT_$LINE" | |
4507 | else | |
4508 | no_cache=1 | |
4509 | fi | |
4510 | ||
4511 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4512 | ||
4513 | fi; | |
4514 | ||
4515 | eval "$ac_cv_use_ole" | |
4516 | if test "$no_cache" != 1; then | |
4517 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4518 | fi | |
4519 | ||
4520 | if test "$wxUSE_OLE" = yes; then | |
4521 | echo "$as_me:$LINENO: result: yes" >&5 | |
4522 | echo "${ECHO_T}yes" >&6 | |
4523 | else | |
4524 | echo "$as_me:$LINENO: result: no" >&5 | |
4525 | echo "${ECHO_T}no" >&6 | |
4526 | fi | |
4527 | ||
4528 | ||
4529 | enablestring= | |
4530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4531 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4532 | no_cache=0 | |
4533 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4534 | if test "${enable_dataobj+set}" = set; then | |
4535 | enableval="$enable_dataobj" | |
4536 | ||
4537 | if test "$enableval" = yes; then | |
4538 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4539 | else | |
4540 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4541 | fi | |
4542 | ||
4543 | else | |
4544 | ||
4545 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4546 | if test "x$LINE" != x ; then | |
4547 | eval "DEFAULT_$LINE" | |
4548 | else | |
4549 | no_cache=1 | |
4550 | fi | |
4551 | ||
4552 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4553 | ||
4554 | fi; | |
4555 | ||
4556 | eval "$ac_cv_use_dataobj" | |
4557 | if test "$no_cache" != 1; then | |
4558 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4559 | fi | |
4560 | ||
4561 | if test "$wxUSE_DATAOBJ" = yes; then | |
4562 | echo "$as_me:$LINENO: result: yes" >&5 | |
4563 | echo "${ECHO_T}yes" >&6 | |
4564 | else | |
4565 | echo "$as_me:$LINENO: result: no" >&5 | |
4566 | echo "${ECHO_T}no" >&6 | |
4567 | fi | |
4568 | ||
4569 | ||
4570 | ||
4571 | enablestring= | |
4572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4573 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4574 | no_cache=0 | |
4575 | # Check whether --enable-ipc or --disable-ipc was given. | |
4576 | if test "${enable_ipc+set}" = set; then | |
4577 | enableval="$enable_ipc" | |
4578 | ||
4579 | if test "$enableval" = yes; then | |
4580 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4581 | else | |
4582 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4583 | fi | |
4584 | ||
4585 | else | |
4586 | ||
4587 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4588 | if test "x$LINE" != x ; then | |
4589 | eval "DEFAULT_$LINE" | |
4590 | else | |
4591 | no_cache=1 | |
4592 | fi | |
4593 | ||
4594 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4595 | ||
4596 | fi; | |
4597 | ||
4598 | eval "$ac_cv_use_ipc" | |
4599 | if test "$no_cache" != 1; then | |
4600 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4601 | fi | |
4602 | ||
4603 | if test "$wxUSE_IPC" = yes; then | |
4604 | echo "$as_me:$LINENO: result: yes" >&5 | |
4605 | echo "${ECHO_T}yes" >&6 | |
4606 | else | |
4607 | echo "$as_me:$LINENO: result: no" >&5 | |
4608 | echo "${ECHO_T}no" >&6 | |
4609 | fi | |
4610 | ||
4611 | ||
4612 | ||
4613 | enablestring= | |
4614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4615 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4616 | no_cache=0 | |
4617 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4618 | if test "${enable_apple_ieee+set}" = set; then | |
4619 | enableval="$enable_apple_ieee" | |
4620 | ||
4621 | if test "$enableval" = yes; then | |
4622 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4623 | else | |
4624 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4625 | fi | |
4626 | ||
4627 | else | |
4628 | ||
4629 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4630 | if test "x$LINE" != x ; then | |
4631 | eval "DEFAULT_$LINE" | |
4632 | else | |
4633 | no_cache=1 | |
4634 | fi | |
4635 | ||
4636 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4637 | ||
4638 | fi; | |
4639 | ||
4640 | eval "$ac_cv_use_apple_ieee" | |
4641 | if test "$no_cache" != 1; then | |
4642 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4643 | fi | |
4644 | ||
4645 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4646 | echo "$as_me:$LINENO: result: yes" >&5 | |
4647 | echo "${ECHO_T}yes" >&6 | |
4648 | else | |
4649 | echo "$as_me:$LINENO: result: no" >&5 | |
4650 | echo "${ECHO_T}no" >&6 | |
4651 | fi | |
4652 | ||
4653 | ||
81f90336 MW |
4654 | enablestring= |
4655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4656 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4657 | no_cache=0 | |
4658 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4659 | if test "${enable_arcstream+set}" = set; then | |
4660 | enableval="$enable_arcstream" | |
4661 | ||
4662 | if test "$enableval" = yes; then | |
9e8e867f | 4663 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4664 | else |
9e8e867f | 4665 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4666 | fi |
4667 | ||
4668 | else | |
4669 | ||
9e8e867f | 4670 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4671 | if test "x$LINE" != x ; then |
4672 | eval "DEFAULT_$LINE" | |
4673 | else | |
4674 | no_cache=1 | |
4675 | fi | |
4676 | ||
9e8e867f | 4677 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4678 | |
4679 | fi; | |
4680 | ||
4681 | eval "$ac_cv_use_arcstream" | |
4682 | if test "$no_cache" != 1; then | |
4683 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4684 | fi | |
4685 | ||
9e8e867f | 4686 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4687 | echo "$as_me:$LINENO: result: yes" >&5 |
4688 | echo "${ECHO_T}yes" >&6 | |
4689 | else | |
4690 | echo "$as_me:$LINENO: result: no" >&5 | |
4691 | echo "${ECHO_T}no" >&6 | |
4692 | fi | |
4693 | ||
4694 | ||
a848cd7e | 4695 | enablestring= |
36b6448c VZ |
4696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4697 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4698 | no_cache=0 |
36b6448c VZ |
4699 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4700 | if test "${enable_backtrace+set}" = set; then | |
4701 | enableval="$enable_backtrace" | |
a848cd7e SC |
4702 | |
4703 | if test "$enableval" = yes; then | |
36b6448c | 4704 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4705 | else |
36b6448c | 4706 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4707 | fi |
4708 | ||
4709 | else | |
4710 | ||
36b6448c | 4711 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4712 | if test "x$LINE" != x ; then |
4713 | eval "DEFAULT_$LINE" | |
4714 | else | |
4715 | no_cache=1 | |
4716 | fi | |
4717 | ||
36b6448c | 4718 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4719 | |
4720 | fi; | |
4721 | ||
36b6448c | 4722 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4723 | if test "$no_cache" != 1; then |
36b6448c | 4724 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4725 | fi |
4726 | ||
36b6448c | 4727 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4728 | echo "$as_me:$LINENO: result: yes" >&5 |
4729 | echo "${ECHO_T}yes" >&6 | |
4730 | else | |
4731 | echo "$as_me:$LINENO: result: no" >&5 | |
4732 | echo "${ECHO_T}no" >&6 | |
4733 | fi | |
4734 | ||
4735 | ||
eaff0f0d | 4736 | enablestring= |
36b6448c VZ |
4737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4738 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4739 | no_cache=0 |
36b6448c VZ |
4740 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4741 | if test "${enable_catch_segvs+set}" = set; then | |
4742 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4743 | |
4744 | if test "$enableval" = yes; then | |
36b6448c | 4745 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4746 | else |
36b6448c | 4747 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4748 | fi |
4749 | ||
4750 | else | |
4751 | ||
36b6448c | 4752 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4753 | if test "x$LINE" != x ; then |
4754 | eval "DEFAULT_$LINE" | |
4755 | else | |
4756 | no_cache=1 | |
4757 | fi | |
4758 | ||
36b6448c | 4759 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4760 | |
4761 | fi; | |
4762 | ||
36b6448c | 4763 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4764 | if test "$no_cache" != 1; then |
36b6448c | 4765 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4766 | fi |
4767 | ||
36b6448c | 4768 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4769 | echo "$as_me:$LINENO: result: yes" >&5 |
4770 | echo "${ECHO_T}yes" >&6 | |
4771 | else | |
4772 | echo "$as_me:$LINENO: result: no" >&5 | |
4773 | echo "${ECHO_T}no" >&6 | |
4774 | fi | |
4775 | ||
4776 | ||
a848cd7e SC |
4777 | enablestring= |
4778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4779 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4780 | no_cache=0 | |
4781 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4782 | if test "${enable_cmdline+set}" = set; then | |
4783 | enableval="$enable_cmdline" | |
4784 | ||
4785 | if test "$enableval" = yes; then | |
4786 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4787 | else | |
4788 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4789 | fi | |
4790 | ||
4791 | else | |
4792 | ||
4793 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4794 | if test "x$LINE" != x ; then | |
4795 | eval "DEFAULT_$LINE" | |
4796 | else | |
4797 | no_cache=1 | |
4798 | fi | |
4799 | ||
4800 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4801 | ||
4802 | fi; | |
4803 | ||
4804 | eval "$ac_cv_use_cmdline" | |
4805 | if test "$no_cache" != 1; then | |
4806 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4807 | fi | |
4808 | ||
4809 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4810 | echo "$as_me:$LINENO: result: yes" >&5 | |
4811 | echo "${ECHO_T}yes" >&6 | |
4812 | else | |
4813 | echo "$as_me:$LINENO: result: no" >&5 | |
4814 | echo "${ECHO_T}no" >&6 | |
4815 | fi | |
4816 | ||
4817 | ||
4818 | enablestring= | |
4819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4820 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4821 | no_cache=0 | |
4822 | # Check whether --enable-datetime or --disable-datetime was given. | |
4823 | if test "${enable_datetime+set}" = set; then | |
4824 | enableval="$enable_datetime" | |
4825 | ||
4826 | if test "$enableval" = yes; then | |
4827 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4828 | else | |
4829 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4830 | fi | |
4831 | ||
4832 | else | |
4833 | ||
4834 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4842 | ||
4843 | fi; | |
4844 | ||
4845 | eval "$ac_cv_use_datetime" | |
4846 | if test "$no_cache" != 1; then | |
4847 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4848 | fi | |
4849 | ||
4850 | if test "$wxUSE_DATETIME" = yes; then | |
4851 | echo "$as_me:$LINENO: result: yes" >&5 | |
4852 | echo "${ECHO_T}yes" >&6 | |
4853 | else | |
4854 | echo "$as_me:$LINENO: result: no" >&5 | |
4855 | echo "${ECHO_T}no" >&6 | |
4856 | fi | |
4857 | ||
4858 | ||
36b6448c VZ |
4859 | enablestring= |
4860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4861 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4862 | no_cache=0 | |
4863 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4864 | if test "${enable_debugreport+set}" = set; then | |
4865 | enableval="$enable_debugreport" | |
4866 | ||
4867 | if test "$enableval" = yes; then | |
4868 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4869 | else | |
4870 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4871 | fi | |
4872 | ||
4873 | else | |
4874 | ||
4875 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4876 | if test "x$LINE" != x ; then | |
4877 | eval "DEFAULT_$LINE" | |
4878 | else | |
4879 | no_cache=1 | |
4880 | fi | |
4881 | ||
4882 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4883 | ||
4884 | fi; | |
4885 | ||
4886 | eval "$ac_cv_use_debugreport" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
4891 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
4892 | echo "$as_me:$LINENO: result: yes" >&5 | |
4893 | echo "${ECHO_T}yes" >&6 | |
4894 | else | |
4895 | echo "$as_me:$LINENO: result: no" >&5 | |
4896 | echo "${ECHO_T}no" >&6 | |
4897 | fi | |
4898 | ||
4899 | ||
a848cd7e SC |
4900 | enablestring= |
4901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4902 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4903 | no_cache=0 | |
4904 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4905 | if test "${enable_dialupman+set}" = set; then | |
4906 | enableval="$enable_dialupman" | |
4907 | ||
4908 | if test "$enableval" = yes; then | |
4909 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4910 | else | |
4911 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4912 | fi | |
4913 | ||
4914 | else | |
4915 | ||
4916 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4917 | if test "x$LINE" != x ; then | |
4918 | eval "DEFAULT_$LINE" | |
4919 | else | |
4920 | no_cache=1 | |
4921 | fi | |
4922 | ||
4923 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4924 | ||
4925 | fi; | |
4926 | ||
4927 | eval "$ac_cv_use_dialupman" | |
4928 | if test "$no_cache" != 1; then | |
4929 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4930 | fi | |
4931 | ||
4932 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4933 | echo "$as_me:$LINENO: result: yes" >&5 | |
4934 | echo "${ECHO_T}yes" >&6 | |
4935 | else | |
4936 | echo "$as_me:$LINENO: result: no" >&5 | |
4937 | echo "${ECHO_T}no" >&6 | |
4938 | fi | |
4939 | ||
4940 | ||
4941 | enablestring= | |
4942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4943 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4944 | no_cache=0 | |
4945 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4946 | if test "${enable_dynlib+set}" = set; then | |
4947 | enableval="$enable_dynlib" | |
4948 | ||
4949 | if test "$enableval" = yes; then | |
4950 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4951 | else | |
4952 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4953 | fi | |
4954 | ||
4955 | else | |
4956 | ||
4957 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4958 | if test "x$LINE" != x ; then | |
4959 | eval "DEFAULT_$LINE" | |
4960 | else | |
4961 | no_cache=1 | |
4962 | fi | |
4963 | ||
4964 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4965 | ||
4966 | fi; | |
4967 | ||
4968 | eval "$ac_cv_use_dynlib" | |
4969 | if test "$no_cache" != 1; then | |
4970 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4971 | fi | |
4972 | ||
4973 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4974 | echo "$as_me:$LINENO: result: yes" >&5 | |
4975 | echo "${ECHO_T}yes" >&6 | |
4976 | else | |
4977 | echo "$as_me:$LINENO: result: no" >&5 | |
4978 | echo "${ECHO_T}no" >&6 | |
4979 | fi | |
4980 | ||
4981 | ||
4982 | enablestring= | |
4983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4984 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4985 | no_cache=0 | |
4986 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4987 | if test "${enable_dynamicloader+set}" = set; then | |
4988 | enableval="$enable_dynamicloader" | |
4989 | ||
4990 | if test "$enableval" = yes; then | |
4991 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4992 | else | |
4993 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4994 | fi | |
4995 | ||
4996 | else | |
4997 | ||
4998 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4999 | if test "x$LINE" != x ; then | |
5000 | eval "DEFAULT_$LINE" | |
5001 | else | |
5002 | no_cache=1 | |
5003 | fi | |
5004 | ||
5005 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5006 | ||
5007 | fi; | |
5008 | ||
5009 | eval "$ac_cv_use_dynamicloader" | |
5010 | if test "$no_cache" != 1; then | |
5011 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5012 | fi | |
5013 | ||
5014 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5015 | echo "$as_me:$LINENO: result: yes" >&5 | |
5016 | echo "${ECHO_T}yes" >&6 | |
5017 | else | |
5018 | echo "$as_me:$LINENO: result: no" >&5 | |
5019 | echo "${ECHO_T}no" >&6 | |
5020 | fi | |
5021 | ||
5022 | ||
5023 | enablestring= | |
5024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5025 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5026 | no_cache=0 | |
5027 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5028 | if test "${enable_exceptions+set}" = set; then | |
5029 | enableval="$enable_exceptions" | |
5030 | ||
5031 | if test "$enableval" = yes; then | |
5032 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5033 | else | |
5034 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5035 | fi | |
5036 | ||
5037 | else | |
5038 | ||
5039 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5040 | if test "x$LINE" != x ; then | |
5041 | eval "DEFAULT_$LINE" | |
5042 | else | |
5043 | no_cache=1 | |
5044 | fi | |
5045 | ||
5046 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5047 | ||
5048 | fi; | |
5049 | ||
5050 | eval "$ac_cv_use_exceptions" | |
5051 | if test "$no_cache" != 1; then | |
5052 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5053 | fi | |
5054 | ||
5055 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5056 | echo "$as_me:$LINENO: result: yes" >&5 | |
5057 | echo "${ECHO_T}yes" >&6 | |
5058 | else | |
5059 | echo "$as_me:$LINENO: result: no" >&5 | |
5060 | echo "${ECHO_T}no" >&6 | |
5061 | fi | |
5062 | ||
5063 | ||
5064 | enablestring= | |
5065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5066 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5067 | no_cache=0 | |
5068 | # Check whether --enable-ffile or --disable-ffile was given. | |
5069 | if test "${enable_ffile+set}" = set; then | |
5070 | enableval="$enable_ffile" | |
5071 | ||
5072 | if test "$enableval" = yes; then | |
5073 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5074 | else | |
5075 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5076 | fi | |
5077 | ||
5078 | else | |
5079 | ||
5080 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5081 | if test "x$LINE" != x ; then | |
5082 | eval "DEFAULT_$LINE" | |
5083 | else | |
5084 | no_cache=1 | |
5085 | fi | |
5086 | ||
5087 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5088 | ||
5089 | fi; | |
5090 | ||
5091 | eval "$ac_cv_use_ffile" | |
5092 | if test "$no_cache" != 1; then | |
5093 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5094 | fi | |
5095 | ||
5096 | if test "$wxUSE_FFILE" = yes; then | |
5097 | echo "$as_me:$LINENO: result: yes" >&5 | |
5098 | echo "${ECHO_T}yes" >&6 | |
5099 | else | |
5100 | echo "$as_me:$LINENO: result: no" >&5 | |
5101 | echo "${ECHO_T}no" >&6 | |
5102 | fi | |
5103 | ||
5104 | ||
5105 | enablestring= | |
5106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5107 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5108 | no_cache=0 | |
5109 | # Check whether --enable-file or --disable-file was given. | |
5110 | if test "${enable_file+set}" = set; then | |
5111 | enableval="$enable_file" | |
5112 | ||
5113 | if test "$enableval" = yes; then | |
5114 | ac_cv_use_file='wxUSE_FILE=yes' | |
5115 | else | |
5116 | ac_cv_use_file='wxUSE_FILE=no' | |
5117 | fi | |
5118 | ||
5119 | else | |
5120 | ||
5121 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5122 | if test "x$LINE" != x ; then | |
5123 | eval "DEFAULT_$LINE" | |
5124 | else | |
5125 | no_cache=1 | |
5126 | fi | |
5127 | ||
5128 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5129 | ||
5130 | fi; | |
5131 | ||
5132 | eval "$ac_cv_use_file" | |
5133 | if test "$no_cache" != 1; then | |
5134 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5135 | fi | |
5136 | ||
5137 | if test "$wxUSE_FILE" = yes; then | |
5138 | echo "$as_me:$LINENO: result: yes" >&5 | |
5139 | echo "${ECHO_T}yes" >&6 | |
5140 | else | |
5141 | echo "$as_me:$LINENO: result: no" >&5 | |
5142 | echo "${ECHO_T}no" >&6 | |
5143 | fi | |
5144 | ||
5145 | ||
5146 | enablestring= | |
5147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5148 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5149 | no_cache=0 | |
5150 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5151 | if test "${enable_filesystem+set}" = set; then | |
5152 | enableval="$enable_filesystem" | |
5153 | ||
5154 | if test "$enableval" = yes; then | |
5155 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5156 | else | |
5157 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5158 | fi | |
5159 | ||
5160 | else | |
5161 | ||
5162 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5163 | if test "x$LINE" != x ; then | |
5164 | eval "DEFAULT_$LINE" | |
5165 | else | |
5166 | no_cache=1 | |
5167 | fi | |
5168 | ||
5169 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5170 | ||
5171 | fi; | |
5172 | ||
5173 | eval "$ac_cv_use_filesystem" | |
5174 | if test "$no_cache" != 1; then | |
5175 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5176 | fi | |
5177 | ||
5178 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5179 | echo "$as_me:$LINENO: result: yes" >&5 | |
5180 | echo "${ECHO_T}yes" >&6 | |
5181 | else | |
5182 | echo "$as_me:$LINENO: result: no" >&5 | |
5183 | echo "${ECHO_T}no" >&6 | |
5184 | fi | |
5185 | ||
5186 | ||
5187 | enablestring= | |
5188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5189 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5190 | no_cache=0 | |
5191 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5192 | if test "${enable_fontmap+set}" = set; then | |
5193 | enableval="$enable_fontmap" | |
5194 | ||
5195 | if test "$enableval" = yes; then | |
5196 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5197 | else | |
5198 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5199 | fi | |
5200 | ||
5201 | else | |
5202 | ||
5203 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5204 | if test "x$LINE" != x ; then | |
5205 | eval "DEFAULT_$LINE" | |
5206 | else | |
5207 | no_cache=1 | |
5208 | fi | |
5209 | ||
5210 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5211 | ||
5212 | fi; | |
5213 | ||
5214 | eval "$ac_cv_use_fontmap" | |
5215 | if test "$no_cache" != 1; then | |
5216 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5217 | fi | |
5218 | ||
5219 | if test "$wxUSE_FONTMAP" = yes; then | |
5220 | echo "$as_me:$LINENO: result: yes" >&5 | |
5221 | echo "${ECHO_T}yes" >&6 | |
5222 | else | |
5223 | echo "$as_me:$LINENO: result: no" >&5 | |
5224 | echo "${ECHO_T}no" >&6 | |
5225 | fi | |
5226 | ||
5227 | ||
5228 | enablestring= | |
5229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5230 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5231 | no_cache=0 | |
5232 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5233 | if test "${enable_fs_inet+set}" = set; then | |
5234 | enableval="$enable_fs_inet" | |
5235 | ||
5236 | if test "$enableval" = yes; then | |
5237 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5238 | else | |
5239 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5240 | fi | |
5241 | ||
5242 | else | |
5243 | ||
5244 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5245 | if test "x$LINE" != x ; then | |
5246 | eval "DEFAULT_$LINE" | |
5247 | else | |
5248 | no_cache=1 | |
5249 | fi | |
5250 | ||
5251 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5252 | ||
5253 | fi; | |
5254 | ||
5255 | eval "$ac_cv_use_fs_inet" | |
5256 | if test "$no_cache" != 1; then | |
5257 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5258 | fi | |
5259 | ||
5260 | if test "$wxUSE_FS_INET" = yes; then | |
5261 | echo "$as_me:$LINENO: result: yes" >&5 | |
5262 | echo "${ECHO_T}yes" >&6 | |
5263 | else | |
5264 | echo "$as_me:$LINENO: result: no" >&5 | |
5265 | echo "${ECHO_T}no" >&6 | |
5266 | fi | |
5267 | ||
5268 | ||
5269 | enablestring= | |
5270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5271 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5272 | no_cache=0 | |
5273 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5274 | if test "${enable_fs_zip+set}" = set; then | |
5275 | enableval="$enable_fs_zip" | |
5276 | ||
5277 | if test "$enableval" = yes; then | |
5278 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5279 | else | |
5280 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5281 | fi | |
5282 | ||
5283 | else | |
5284 | ||
5285 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5286 | if test "x$LINE" != x ; then | |
5287 | eval "DEFAULT_$LINE" | |
5288 | else | |
5289 | no_cache=1 | |
5290 | fi | |
5291 | ||
5292 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5293 | ||
5294 | fi; | |
5295 | ||
5296 | eval "$ac_cv_use_fs_zip" | |
5297 | if test "$no_cache" != 1; then | |
5298 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5299 | fi | |
5300 | ||
5301 | if test "$wxUSE_FS_ZIP" = yes; then | |
5302 | echo "$as_me:$LINENO: result: yes" >&5 | |
5303 | echo "${ECHO_T}yes" >&6 | |
5304 | else | |
5305 | echo "$as_me:$LINENO: result: no" >&5 | |
5306 | echo "${ECHO_T}no" >&6 | |
5307 | fi | |
5308 | ||
5309 | ||
5310 | enablestring= | |
5311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5312 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5313 | no_cache=0 | |
5314 | # Check whether --enable-geometry or --disable-geometry was given. | |
5315 | if test "${enable_geometry+set}" = set; then | |
5316 | enableval="$enable_geometry" | |
5317 | ||
5318 | if test "$enableval" = yes; then | |
5319 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5320 | else | |
5321 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5322 | fi | |
5323 | ||
5324 | else | |
5325 | ||
5326 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5327 | if test "x$LINE" != x ; then | |
5328 | eval "DEFAULT_$LINE" | |
5329 | else | |
5330 | no_cache=1 | |
5331 | fi | |
5332 | ||
5333 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5334 | ||
5335 | fi; | |
5336 | ||
5337 | eval "$ac_cv_use_geometry" | |
5338 | if test "$no_cache" != 1; then | |
5339 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5340 | fi | |
5341 | ||
5342 | if test "$wxUSE_GEOMETRY" = yes; then | |
5343 | echo "$as_me:$LINENO: result: yes" >&5 | |
5344 | echo "${ECHO_T}yes" >&6 | |
5345 | else | |
5346 | echo "$as_me:$LINENO: result: no" >&5 | |
5347 | echo "${ECHO_T}no" >&6 | |
5348 | fi | |
5349 | ||
5350 | ||
5351 | enablestring= | |
5352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5353 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5354 | no_cache=0 | |
5355 | # Check whether --enable-log or --disable-log was given. | |
5356 | if test "${enable_log+set}" = set; then | |
5357 | enableval="$enable_log" | |
5358 | ||
5359 | if test "$enableval" = yes; then | |
5360 | ac_cv_use_log='wxUSE_LOG=yes' | |
5361 | else | |
5362 | ac_cv_use_log='wxUSE_LOG=no' | |
5363 | fi | |
5364 | ||
5365 | else | |
5366 | ||
5367 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5368 | if test "x$LINE" != x ; then | |
5369 | eval "DEFAULT_$LINE" | |
5370 | else | |
5371 | no_cache=1 | |
5372 | fi | |
5373 | ||
5374 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5375 | ||
5376 | fi; | |
5377 | ||
5378 | eval "$ac_cv_use_log" | |
5379 | if test "$no_cache" != 1; then | |
5380 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5381 | fi | |
5382 | ||
5383 | if test "$wxUSE_LOG" = yes; then | |
5384 | echo "$as_me:$LINENO: result: yes" >&5 | |
5385 | echo "${ECHO_T}yes" >&6 | |
5386 | else | |
5387 | echo "$as_me:$LINENO: result: no" >&5 | |
5388 | echo "${ECHO_T}no" >&6 | |
5389 | fi | |
5390 | ||
5391 | ||
5392 | enablestring= | |
5393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5394 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5395 | no_cache=0 | |
5396 | # Check whether --enable-longlong or --disable-longlong was given. | |
5397 | if test "${enable_longlong+set}" = set; then | |
5398 | enableval="$enable_longlong" | |
5399 | ||
5400 | if test "$enableval" = yes; then | |
5401 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5402 | else | |
5403 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5404 | fi | |
5405 | ||
5406 | else | |
5407 | ||
5408 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5409 | if test "x$LINE" != x ; then | |
5410 | eval "DEFAULT_$LINE" | |
5411 | else | |
5412 | no_cache=1 | |
5413 | fi | |
5414 | ||
5415 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5416 | ||
5417 | fi; | |
5418 | ||
5419 | eval "$ac_cv_use_longlong" | |
5420 | if test "$no_cache" != 1; then | |
5421 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5422 | fi | |
5423 | ||
5424 | if test "$wxUSE_LONGLONG" = yes; then | |
5425 | echo "$as_me:$LINENO: result: yes" >&5 | |
5426 | echo "${ECHO_T}yes" >&6 | |
5427 | else | |
5428 | echo "$as_me:$LINENO: result: no" >&5 | |
5429 | echo "${ECHO_T}no" >&6 | |
5430 | fi | |
5431 | ||
5432 | ||
5433 | enablestring= | |
5434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5435 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5436 | no_cache=0 | |
5437 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5438 | if test "${enable_mimetype+set}" = set; then | |
5439 | enableval="$enable_mimetype" | |
5440 | ||
5441 | if test "$enableval" = yes; then | |
5442 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5443 | else | |
5444 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5445 | fi | |
5446 | ||
5447 | else | |
5448 | ||
5449 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5450 | if test "x$LINE" != x ; then | |
5451 | eval "DEFAULT_$LINE" | |
5452 | else | |
5453 | no_cache=1 | |
5454 | fi | |
5455 | ||
5456 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5457 | ||
5458 | fi; | |
5459 | ||
5460 | eval "$ac_cv_use_mimetype" | |
5461 | if test "$no_cache" != 1; then | |
5462 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5463 | fi | |
5464 | ||
5465 | if test "$wxUSE_MIMETYPE" = yes; then | |
5466 | echo "$as_me:$LINENO: result: yes" >&5 | |
5467 | echo "${ECHO_T}yes" >&6 | |
5468 | else | |
5469 | echo "$as_me:$LINENO: result: no" >&5 | |
5470 | echo "${ECHO_T}no" >&6 | |
5471 | fi | |
5472 | ||
5473 | ||
5474 | enablestring= | |
5475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5476 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5477 | no_cache=0 | |
5478 | # Check whether --enable-mslu or --disable-mslu was given. | |
5479 | if test "${enable_mslu+set}" = set; then | |
5480 | enableval="$enable_mslu" | |
5481 | ||
5482 | if test "$enableval" = yes; then | |
5483 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5484 | else | |
5485 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5486 | fi | |
5487 | ||
5488 | else | |
5489 | ||
5490 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5491 | if test "x$LINE" != x ; then | |
5492 | eval "DEFAULT_$LINE" | |
5493 | else | |
5494 | no_cache=1 | |
5495 | fi | |
5496 | ||
5497 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5498 | ||
5499 | fi; | |
5500 | ||
5501 | eval "$ac_cv_use_mslu" | |
5502 | if test "$no_cache" != 1; then | |
5503 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5504 | fi | |
5505 | ||
5506 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5507 | echo "$as_me:$LINENO: result: yes" >&5 | |
5508 | echo "${ECHO_T}yes" >&6 | |
5509 | else | |
5510 | echo "$as_me:$LINENO: result: no" >&5 | |
5511 | echo "${ECHO_T}no" >&6 | |
5512 | fi | |
5513 | ||
5514 | ||
5515 | enablestring= | |
5516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5517 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5518 | no_cache=0 | |
5519 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5520 | if test "${enable_snglinst+set}" = set; then | |
5521 | enableval="$enable_snglinst" | |
5522 | ||
5523 | if test "$enableval" = yes; then | |
5524 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5525 | else | |
5526 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5527 | fi | |
5528 | ||
5529 | else | |
5530 | ||
5531 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5532 | if test "x$LINE" != x ; then | |
5533 | eval "DEFAULT_$LINE" | |
5534 | else | |
5535 | no_cache=1 | |
5536 | fi | |
5537 | ||
5538 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5539 | ||
5540 | fi; | |
5541 | ||
5542 | eval "$ac_cv_use_snglinst" | |
5543 | if test "$no_cache" != 1; then | |
5544 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5545 | fi | |
5546 | ||
5547 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5548 | echo "$as_me:$LINENO: result: yes" >&5 | |
5549 | echo "${ECHO_T}yes" >&6 | |
5550 | else | |
5551 | echo "$as_me:$LINENO: result: no" >&5 | |
5552 | echo "${ECHO_T}no" >&6 | |
5553 | fi | |
5554 | ||
5555 | ||
5556 | enablestring= | |
07158944 VZ |
5557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5558 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5559 | no_cache=0 |
07158944 VZ |
5560 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5561 | if test "${enable_std_iostreams+set}" = set; then | |
5562 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5563 | |
5564 | if test "$enableval" = yes; then | |
07158944 | 5565 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5566 | else |
07158944 | 5567 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5568 | fi |
5569 | ||
5570 | else | |
5571 | ||
07158944 | 5572 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5573 | if test "x$LINE" != x ; then |
5574 | eval "DEFAULT_$LINE" | |
5575 | else | |
5576 | no_cache=1 | |
5577 | fi | |
5578 | ||
07158944 | 5579 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5580 | |
5581 | fi; | |
5582 | ||
07158944 | 5583 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5584 | if test "$no_cache" != 1; then |
07158944 | 5585 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5586 | fi |
5587 | ||
07158944 | 5588 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5589 | echo "$as_me:$LINENO: result: yes" >&5 |
5590 | echo "${ECHO_T}yes" >&6 | |
5591 | else | |
5592 | echo "$as_me:$LINENO: result: no" >&5 | |
5593 | echo "${ECHO_T}no" >&6 | |
5594 | fi | |
5595 | ||
5596 | ||
59746b65 MW |
5597 | enablestring= |
5598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5599 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5600 | no_cache=0 | |
5601 | # Check whether --enable-std_string or --disable-std_string was given. | |
5602 | if test "${enable_std_string+set}" = set; then | |
5603 | enableval="$enable_std_string" | |
5604 | ||
5605 | if test "$enableval" = yes; then | |
5606 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5607 | else | |
5608 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5609 | fi | |
5610 | ||
5611 | else | |
5612 | ||
5613 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5614 | if test "x$LINE" != x ; then | |
5615 | eval "DEFAULT_$LINE" | |
5616 | else | |
5617 | no_cache=1 | |
5618 | fi | |
5619 | ||
5620 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5621 | ||
5622 | fi; | |
5623 | ||
5624 | eval "$ac_cv_use_std_string" | |
5625 | if test "$no_cache" != 1; then | |
5626 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5627 | fi | |
5628 | ||
5629 | if test "$wxUSE_STD_STRING" = yes; then | |
5630 | echo "$as_me:$LINENO: result: yes" >&5 | |
5631 | echo "${ECHO_T}yes" >&6 | |
5632 | else | |
5633 | echo "$as_me:$LINENO: result: no" >&5 | |
5634 | echo "${ECHO_T}no" >&6 | |
5635 | fi | |
5636 | ||
5637 | ||
a848cd7e | 5638 | enablestring= |
07158944 VZ |
5639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5640 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5641 | no_cache=0 |
07158944 VZ |
5642 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5643 | if test "${enable_stdpaths+set}" = set; then | |
5644 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5645 | |
5646 | if test "$enableval" = yes; then | |
07158944 | 5647 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5648 | else |
07158944 | 5649 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5650 | fi |
5651 | ||
5652 | else | |
5653 | ||
07158944 | 5654 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5655 | if test "x$LINE" != x ; then |
5656 | eval "DEFAULT_$LINE" | |
5657 | else | |
5658 | no_cache=1 | |
5659 | fi | |
5660 | ||
07158944 | 5661 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5662 | |
5663 | fi; | |
5664 | ||
07158944 | 5665 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5666 | if test "$no_cache" != 1; then |
07158944 | 5667 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5668 | fi |
5669 | ||
07158944 | 5670 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5671 | echo "$as_me:$LINENO: result: yes" >&5 |
5672 | echo "${ECHO_T}yes" >&6 | |
5673 | else | |
5674 | echo "$as_me:$LINENO: result: no" >&5 | |
5675 | echo "${ECHO_T}no" >&6 | |
5676 | fi | |
5677 | ||
5678 | ||
5679 | enablestring= | |
5680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5681 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5682 | no_cache=0 | |
5683 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5684 | if test "${enable_stopwatch+set}" = set; then | |
5685 | enableval="$enable_stopwatch" | |
5686 | ||
5687 | if test "$enableval" = yes; then | |
5688 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5689 | else | |
5690 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5691 | fi | |
5692 | ||
5693 | else | |
5694 | ||
5695 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5696 | if test "x$LINE" != x ; then | |
5697 | eval "DEFAULT_$LINE" | |
5698 | else | |
5699 | no_cache=1 | |
5700 | fi | |
5701 | ||
5702 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5703 | ||
5704 | fi; | |
5705 | ||
5706 | eval "$ac_cv_use_stopwatch" | |
5707 | if test "$no_cache" != 1; then | |
5708 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5709 | fi | |
5710 | ||
5711 | if test "$wxUSE_STOPWATCH" = yes; then | |
5712 | echo "$as_me:$LINENO: result: yes" >&5 | |
5713 | echo "${ECHO_T}yes" >&6 | |
5714 | else | |
5715 | echo "$as_me:$LINENO: result: no" >&5 | |
5716 | echo "${ECHO_T}no" >&6 | |
5717 | fi | |
5718 | ||
5719 | ||
07158944 VZ |
5720 | enablestring= |
5721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5722 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5723 | no_cache=0 | |
5724 | # Check whether --enable-streams or --disable-streams was given. | |
5725 | if test "${enable_streams+set}" = set; then | |
5726 | enableval="$enable_streams" | |
5727 | ||
5728 | if test "$enableval" = yes; then | |
5729 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5730 | else | |
5731 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5732 | fi | |
5733 | ||
5734 | else | |
5735 | ||
5736 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5737 | if test "x$LINE" != x ; then | |
5738 | eval "DEFAULT_$LINE" | |
5739 | else | |
5740 | no_cache=1 | |
5741 | fi | |
5742 | ||
5743 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5744 | ||
5745 | fi; | |
5746 | ||
5747 | eval "$ac_cv_use_streams" | |
5748 | if test "$no_cache" != 1; then | |
5749 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5750 | fi | |
5751 | ||
5752 | if test "$wxUSE_STREAMS" = yes; then | |
5753 | echo "$as_me:$LINENO: result: yes" >&5 | |
5754 | echo "${ECHO_T}yes" >&6 | |
5755 | else | |
5756 | echo "$as_me:$LINENO: result: no" >&5 | |
5757 | echo "${ECHO_T}no" >&6 | |
5758 | fi | |
5759 | ||
5760 | ||
a848cd7e SC |
5761 | enablestring= |
5762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5763 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5764 | no_cache=0 | |
5765 | # Check whether --enable-system_options or --disable-system_options was given. | |
5766 | if test "${enable_system_options+set}" = set; then | |
5767 | enableval="$enable_system_options" | |
5768 | ||
5769 | if test "$enableval" = yes; then | |
5770 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5771 | else | |
5772 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5773 | fi | |
5774 | ||
5775 | else | |
5776 | ||
5777 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5778 | if test "x$LINE" != x ; then | |
5779 | eval "DEFAULT_$LINE" | |
5780 | else | |
5781 | no_cache=1 | |
5782 | fi | |
5783 | ||
5784 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5785 | ||
5786 | fi; | |
5787 | ||
5788 | eval "$ac_cv_use_system_options" | |
5789 | if test "$no_cache" != 1; then | |
5790 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5791 | fi | |
5792 | ||
5793 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5794 | echo "$as_me:$LINENO: result: yes" >&5 | |
5795 | echo "${ECHO_T}yes" >&6 | |
5796 | else | |
5797 | echo "$as_me:$LINENO: result: no" >&5 | |
5798 | echo "${ECHO_T}no" >&6 | |
5799 | fi | |
5800 | ||
5801 | ||
5802 | enablestring= | |
5803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5804 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5805 | no_cache=0 | |
5806 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5807 | if test "${enable_textbuf+set}" = set; then | |
5808 | enableval="$enable_textbuf" | |
5809 | ||
5810 | if test "$enableval" = yes; then | |
5811 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5812 | else | |
5813 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5814 | fi | |
5815 | ||
5816 | else | |
5817 | ||
5818 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5819 | if test "x$LINE" != x ; then | |
5820 | eval "DEFAULT_$LINE" | |
5821 | else | |
5822 | no_cache=1 | |
5823 | fi | |
5824 | ||
5825 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5826 | ||
5827 | fi; | |
5828 | ||
5829 | eval "$ac_cv_use_textbuf" | |
5830 | if test "$no_cache" != 1; then | |
5831 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5832 | fi | |
5833 | ||
5834 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5835 | echo "$as_me:$LINENO: result: yes" >&5 | |
5836 | echo "${ECHO_T}yes" >&6 | |
5837 | else | |
5838 | echo "$as_me:$LINENO: result: no" >&5 | |
5839 | echo "${ECHO_T}no" >&6 | |
5840 | fi | |
5841 | ||
5842 | ||
5843 | enablestring= | |
5844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5845 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5846 | no_cache=0 | |
5847 | # Check whether --enable-textfile or --disable-textfile was given. | |
5848 | if test "${enable_textfile+set}" = set; then | |
5849 | enableval="$enable_textfile" | |
5850 | ||
5851 | if test "$enableval" = yes; then | |
5852 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5853 | else | |
5854 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5855 | fi | |
5856 | ||
5857 | else | |
5858 | ||
5859 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5860 | if test "x$LINE" != x ; then | |
5861 | eval "DEFAULT_$LINE" | |
5862 | else | |
5863 | no_cache=1 | |
5864 | fi | |
5865 | ||
5866 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5867 | ||
5868 | fi; | |
5869 | ||
5870 | eval "$ac_cv_use_textfile" | |
5871 | if test "$no_cache" != 1; then | |
5872 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5873 | fi | |
5874 | ||
5875 | if test "$wxUSE_TEXTFILE" = yes; then | |
5876 | echo "$as_me:$LINENO: result: yes" >&5 | |
5877 | echo "${ECHO_T}yes" >&6 | |
5878 | else | |
5879 | echo "$as_me:$LINENO: result: no" >&5 | |
5880 | echo "${ECHO_T}no" >&6 | |
5881 | fi | |
5882 | ||
5883 | ||
5884 | enablestring= | |
5885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5886 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5887 | no_cache=0 | |
5888 | # Check whether --enable-timer or --disable-timer was given. | |
5889 | if test "${enable_timer+set}" = set; then | |
5890 | enableval="$enable_timer" | |
5891 | ||
5892 | if test "$enableval" = yes; then | |
5893 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5894 | else | |
5895 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5896 | fi | |
5897 | ||
5898 | else | |
5899 | ||
5900 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5901 | if test "x$LINE" != x ; then | |
5902 | eval "DEFAULT_$LINE" | |
5903 | else | |
5904 | no_cache=1 | |
5905 | fi | |
5906 | ||
5907 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5908 | ||
5909 | fi; | |
5910 | ||
5911 | eval "$ac_cv_use_timer" | |
5912 | if test "$no_cache" != 1; then | |
5913 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5914 | fi | |
5915 | ||
5916 | if test "$wxUSE_TIMER" = yes; then | |
5917 | echo "$as_me:$LINENO: result: yes" >&5 | |
5918 | echo "${ECHO_T}yes" >&6 | |
5919 | else | |
5920 | echo "$as_me:$LINENO: result: no" >&5 | |
5921 | echo "${ECHO_T}no" >&6 | |
5922 | fi | |
5923 | ||
5924 | ||
5925 | enablestring= | |
5926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5927 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5928 | no_cache=0 | |
5929 | # Check whether --enable-unicode or --disable-unicode was given. | |
5930 | if test "${enable_unicode+set}" = set; then | |
5931 | enableval="$enable_unicode" | |
5932 | ||
5933 | if test "$enableval" = yes; then | |
5934 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5935 | else | |
5936 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5937 | fi | |
5938 | ||
5939 | else | |
5940 | ||
5941 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5942 | if test "x$LINE" != x ; then | |
5943 | eval "DEFAULT_$LINE" | |
5944 | else | |
5945 | no_cache=1 | |
5946 | fi | |
5947 | ||
5948 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5949 | ||
5950 | fi; | |
5951 | ||
5952 | eval "$ac_cv_use_unicode" | |
5953 | if test "$no_cache" != 1; then | |
5954 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5955 | fi | |
5956 | ||
5957 | if test "$wxUSE_UNICODE" = yes; then | |
5958 | echo "$as_me:$LINENO: result: yes" >&5 | |
5959 | echo "${ECHO_T}yes" >&6 | |
5960 | else | |
5961 | echo "$as_me:$LINENO: result: no" >&5 | |
5962 | echo "${ECHO_T}no" >&6 | |
5963 | fi | |
5964 | ||
5965 | ||
5966 | enablestring= | |
5967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5968 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5969 | no_cache=0 | |
5970 | # Check whether --enable-sound or --disable-sound was given. | |
5971 | if test "${enable_sound+set}" = set; then | |
5972 | enableval="$enable_sound" | |
5973 | ||
5974 | if test "$enableval" = yes; then | |
5975 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5976 | else | |
5977 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5978 | fi | |
5979 | ||
5980 | else | |
5981 | ||
5982 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5983 | if test "x$LINE" != x ; then | |
5984 | eval "DEFAULT_$LINE" | |
5985 | else | |
5986 | no_cache=1 | |
5987 | fi | |
5988 | ||
5989 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5990 | ||
5991 | fi; | |
5992 | ||
5993 | eval "$ac_cv_use_sound" | |
5994 | if test "$no_cache" != 1; then | |
5995 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5996 | fi | |
5997 | ||
5998 | if test "$wxUSE_SOUND" = yes; then | |
5999 | echo "$as_me:$LINENO: result: yes" >&5 | |
6000 | echo "${ECHO_T}yes" >&6 | |
6001 | else | |
6002 | echo "$as_me:$LINENO: result: no" >&5 | |
6003 | echo "${ECHO_T}no" >&6 | |
6004 | fi | |
6005 | ||
6006 | ||
3b57de8b RL |
6007 | enablestring= |
6008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6009 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6010 | no_cache=0 | |
6011 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6012 | if test "${enable_mediactrl+set}" = set; then | |
6013 | enableval="$enable_mediactrl" | |
6014 | ||
6015 | if test "$enableval" = yes; then | |
6016 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6017 | else | |
6018 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6019 | fi | |
6020 | ||
6021 | else | |
6022 | ||
6023 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6024 | if test "x$LINE" != x ; then | |
6025 | eval "DEFAULT_$LINE" | |
6026 | else | |
6027 | no_cache=1 | |
6028 | fi | |
6029 | ||
6030 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6031 | ||
6032 | fi; | |
6033 | ||
6034 | eval "$ac_cv_use_mediactrl" | |
6035 | if test "$no_cache" != 1; then | |
6036 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6037 | fi | |
6038 | ||
6039 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6040 | echo "$as_me:$LINENO: result: yes" >&5 | |
6041 | echo "${ECHO_T}yes" >&6 | |
6042 | else | |
6043 | echo "$as_me:$LINENO: result: no" >&5 | |
6044 | echo "${ECHO_T}no" >&6 | |
6045 | fi | |
6046 | ||
6047 | ||
a848cd7e SC |
6048 | enablestring= |
6049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6050 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6051 | no_cache=0 | |
6052 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6053 | if test "${enable_wxprintfv+set}" = set; then | |
6054 | enableval="$enable_wxprintfv" | |
6055 | ||
6056 | if test "$enableval" = yes; then | |
6057 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6058 | else | |
6059 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6060 | fi | |
6061 | ||
6062 | else | |
6063 | ||
6064 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6065 | if test "x$LINE" != x ; then | |
6066 | eval "DEFAULT_$LINE" | |
6067 | else | |
6068 | no_cache=1 | |
6069 | fi | |
6070 | ||
6071 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6072 | ||
6073 | fi; | |
6074 | ||
6075 | eval "$ac_cv_use_wxprintfv" | |
6076 | if test "$no_cache" != 1; then | |
6077 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6078 | fi | |
6079 | ||
6080 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6081 | echo "$as_me:$LINENO: result: yes" >&5 | |
6082 | echo "${ECHO_T}yes" >&6 | |
6083 | else | |
6084 | echo "$as_me:$LINENO: result: no" >&5 | |
6085 | echo "${ECHO_T}no" >&6 | |
6086 | fi | |
6087 | ||
6088 | ||
6089 | enablestring= | |
6090 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6091 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6092 | no_cache=0 | |
6093 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6094 | if test "${enable_zipstream+set}" = set; then | |
6095 | enableval="$enable_zipstream" | |
6096 | ||
6097 | if test "$enableval" = yes; then | |
6098 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6099 | else | |
6100 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6101 | fi | |
6102 | ||
6103 | else | |
6104 | ||
6105 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6106 | if test "x$LINE" != x ; then | |
6107 | eval "DEFAULT_$LINE" | |
6108 | else | |
6109 | no_cache=1 | |
6110 | fi | |
6111 | ||
6112 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6113 | ||
6114 | fi; | |
6115 | ||
6116 | eval "$ac_cv_use_zipstream" | |
6117 | if test "$no_cache" != 1; then | |
6118 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6119 | fi | |
6120 | ||
6121 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6122 | echo "$as_me:$LINENO: result: yes" >&5 | |
6123 | echo "${ECHO_T}yes" >&6 | |
6124 | else | |
6125 | echo "$as_me:$LINENO: result: no" >&5 | |
6126 | echo "${ECHO_T}no" >&6 | |
6127 | fi | |
6128 | ||
6129 | ||
a848cd7e SC |
6130 | |
6131 | enablestring= | |
6132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6133 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6134 | no_cache=0 | |
6135 | # Check whether --enable-url or --disable-url was given. | |
6136 | if test "${enable_url+set}" = set; then | |
6137 | enableval="$enable_url" | |
6138 | ||
6139 | if test "$enableval" = yes; then | |
6140 | ac_cv_use_url='wxUSE_URL=yes' | |
6141 | else | |
6142 | ac_cv_use_url='wxUSE_URL=no' | |
6143 | fi | |
6144 | ||
6145 | else | |
6146 | ||
6147 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6148 | if test "x$LINE" != x ; then | |
6149 | eval "DEFAULT_$LINE" | |
6150 | else | |
6151 | no_cache=1 | |
6152 | fi | |
6153 | ||
6154 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6155 | ||
6156 | fi; | |
6157 | ||
6158 | eval "$ac_cv_use_url" | |
6159 | if test "$no_cache" != 1; then | |
6160 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6161 | fi | |
6162 | ||
6163 | if test "$wxUSE_URL" = yes; then | |
6164 | echo "$as_me:$LINENO: result: yes" >&5 | |
6165 | echo "${ECHO_T}yes" >&6 | |
6166 | else | |
6167 | echo "$as_me:$LINENO: result: no" >&5 | |
6168 | echo "${ECHO_T}no" >&6 | |
6169 | fi | |
6170 | ||
6171 | ||
6172 | enablestring= | |
6173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6174 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6175 | no_cache=0 | |
6176 | # Check whether --enable-protocol or --disable-protocol was given. | |
6177 | if test "${enable_protocol+set}" = set; then | |
6178 | enableval="$enable_protocol" | |
6179 | ||
6180 | if test "$enableval" = yes; then | |
6181 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6182 | else | |
6183 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6184 | fi | |
6185 | ||
6186 | else | |
6187 | ||
6188 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6189 | if test "x$LINE" != x ; then | |
6190 | eval "DEFAULT_$LINE" | |
6191 | else | |
6192 | no_cache=1 | |
6193 | fi | |
6194 | ||
6195 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6196 | ||
6197 | fi; | |
6198 | ||
6199 | eval "$ac_cv_use_protocol" | |
6200 | if test "$no_cache" != 1; then | |
6201 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6202 | fi | |
6203 | ||
6204 | if test "$wxUSE_PROTOCOL" = yes; then | |
6205 | echo "$as_me:$LINENO: result: yes" >&5 | |
6206 | echo "${ECHO_T}yes" >&6 | |
6207 | else | |
6208 | echo "$as_me:$LINENO: result: no" >&5 | |
6209 | echo "${ECHO_T}no" >&6 | |
6210 | fi | |
6211 | ||
6212 | ||
6213 | enablestring= | |
6214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6215 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6216 | no_cache=0 | |
6217 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6218 | if test "${enable_protocol_http+set}" = set; then | |
6219 | enableval="$enable_protocol_http" | |
6220 | ||
6221 | if test "$enableval" = yes; then | |
6222 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6223 | else | |
6224 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6225 | fi | |
6226 | ||
6227 | else | |
6228 | ||
6229 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6230 | if test "x$LINE" != x ; then | |
6231 | eval "DEFAULT_$LINE" | |
6232 | else | |
6233 | no_cache=1 | |
6234 | fi | |
6235 | ||
6236 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6237 | ||
6238 | fi; | |
6239 | ||
6240 | eval "$ac_cv_use_protocol_http" | |
6241 | if test "$no_cache" != 1; then | |
6242 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6243 | fi | |
6244 | ||
6245 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6246 | echo "$as_me:$LINENO: result: yes" >&5 | |
6247 | echo "${ECHO_T}yes" >&6 | |
6248 | else | |
6249 | echo "$as_me:$LINENO: result: no" >&5 | |
6250 | echo "${ECHO_T}no" >&6 | |
6251 | fi | |
6252 | ||
6253 | ||
6254 | enablestring= | |
6255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6256 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6257 | no_cache=0 | |
6258 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6259 | if test "${enable_protocol_ftp+set}" = set; then | |
6260 | enableval="$enable_protocol_ftp" | |
6261 | ||
6262 | if test "$enableval" = yes; then | |
6263 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6264 | else | |
6265 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6266 | fi | |
6267 | ||
6268 | else | |
6269 | ||
6270 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6271 | if test "x$LINE" != x ; then | |
6272 | eval "DEFAULT_$LINE" | |
6273 | else | |
6274 | no_cache=1 | |
6275 | fi | |
6276 | ||
6277 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6278 | ||
6279 | fi; | |
6280 | ||
6281 | eval "$ac_cv_use_protocol_ftp" | |
6282 | if test "$no_cache" != 1; then | |
6283 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6284 | fi | |
6285 | ||
6286 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6287 | echo "$as_me:$LINENO: result: yes" >&5 | |
6288 | echo "${ECHO_T}yes" >&6 | |
6289 | else | |
6290 | echo "$as_me:$LINENO: result: no" >&5 | |
6291 | echo "${ECHO_T}no" >&6 | |
6292 | fi | |
6293 | ||
6294 | ||
6295 | enablestring= | |
6296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6297 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6298 | no_cache=0 | |
6299 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6300 | if test "${enable_protocol_file+set}" = set; then | |
6301 | enableval="$enable_protocol_file" | |
6302 | ||
6303 | if test "$enableval" = yes; then | |
6304 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6305 | else | |
6306 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6307 | fi | |
6308 | ||
6309 | else | |
6310 | ||
6311 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6312 | if test "x$LINE" != x ; then | |
6313 | eval "DEFAULT_$LINE" | |
6314 | else | |
6315 | no_cache=1 | |
6316 | fi | |
6317 | ||
6318 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6319 | ||
6320 | fi; | |
6321 | ||
6322 | eval "$ac_cv_use_protocol_file" | |
6323 | if test "$no_cache" != 1; then | |
6324 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6325 | fi | |
6326 | ||
6327 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6328 | echo "$as_me:$LINENO: result: yes" >&5 | |
6329 | echo "${ECHO_T}yes" >&6 | |
6330 | else | |
6331 | echo "$as_me:$LINENO: result: no" >&5 | |
6332 | echo "${ECHO_T}no" >&6 | |
6333 | fi | |
6334 | ||
6335 | ||
6336 | ||
6337 | ||
6338 | ||
6339 | enablestring= | |
6340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6341 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6342 | no_cache=0 | |
6343 | # Check whether --enable-threads or --disable-threads was given. | |
6344 | if test "${enable_threads+set}" = set; then | |
6345 | enableval="$enable_threads" | |
6346 | ||
6347 | if test "$enableval" = yes; then | |
6348 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6349 | else | |
6350 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6351 | fi | |
6352 | ||
6353 | else | |
6354 | ||
6355 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6356 | if test "x$LINE" != x ; then | |
6357 | eval "DEFAULT_$LINE" | |
6358 | else | |
6359 | no_cache=1 | |
6360 | fi | |
6361 | ||
6362 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6363 | ||
6364 | fi; | |
6365 | ||
6366 | eval "$ac_cv_use_threads" | |
6367 | if test "$no_cache" != 1; then | |
6368 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6369 | fi | |
6370 | ||
6371 | if test "$wxUSE_THREADS" = yes; then | |
6372 | echo "$as_me:$LINENO: result: yes" >&5 | |
6373 | echo "${ECHO_T}yes" >&6 | |
6374 | else | |
6375 | echo "$as_me:$LINENO: result: no" >&5 | |
6376 | echo "${ECHO_T}no" >&6 | |
6377 | fi | |
6378 | ||
6379 | ||
6380 | if test "$wxUSE_GUI" = "yes"; then | |
6381 | ||
6382 | ||
6383 | ||
6384 | enablestring= | |
6385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6386 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6387 | no_cache=0 | |
6388 | # Check whether --enable-docview or --disable-docview was given. | |
6389 | if test "${enable_docview+set}" = set; then | |
6390 | enableval="$enable_docview" | |
6391 | ||
6392 | if test "$enableval" = yes; then | |
6393 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6394 | else | |
6395 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6396 | fi | |
6397 | ||
6398 | else | |
6399 | ||
6400 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6401 | if test "x$LINE" != x ; then | |
6402 | eval "DEFAULT_$LINE" | |
6403 | else | |
6404 | no_cache=1 | |
6405 | fi | |
6406 | ||
6407 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6408 | ||
6409 | fi; | |
6410 | ||
6411 | eval "$ac_cv_use_docview" | |
6412 | if test "$no_cache" != 1; then | |
6413 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6414 | fi | |
6415 | ||
6416 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6417 | echo "$as_me:$LINENO: result: yes" >&5 | |
6418 | echo "${ECHO_T}yes" >&6 | |
6419 | else | |
6420 | echo "$as_me:$LINENO: result: no" >&5 | |
6421 | echo "${ECHO_T}no" >&6 | |
6422 | fi | |
6423 | ||
6424 | ||
6425 | enablestring= | |
6426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6427 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6428 | no_cache=0 | |
6429 | # Check whether --enable-help or --disable-help was given. | |
6430 | if test "${enable_help+set}" = set; then | |
6431 | enableval="$enable_help" | |
6432 | ||
6433 | if test "$enableval" = yes; then | |
6434 | ac_cv_use_help='wxUSE_HELP=yes' | |
6435 | else | |
6436 | ac_cv_use_help='wxUSE_HELP=no' | |
6437 | fi | |
6438 | ||
6439 | else | |
6440 | ||
6441 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6442 | if test "x$LINE" != x ; then | |
6443 | eval "DEFAULT_$LINE" | |
6444 | else | |
6445 | no_cache=1 | |
6446 | fi | |
6447 | ||
6448 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6449 | ||
6450 | fi; | |
6451 | ||
6452 | eval "$ac_cv_use_help" | |
6453 | if test "$no_cache" != 1; then | |
6454 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6455 | fi | |
6456 | ||
6457 | if test "$wxUSE_HELP" = yes; then | |
6458 | echo "$as_me:$LINENO: result: yes" >&5 | |
6459 | echo "${ECHO_T}yes" >&6 | |
6460 | else | |
6461 | echo "$as_me:$LINENO: result: no" >&5 | |
6462 | echo "${ECHO_T}no" >&6 | |
6463 | fi | |
6464 | ||
6465 | ||
6466 | enablestring= | |
6467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6468 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6469 | no_cache=0 | |
6470 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6471 | if test "${enable_mshtmlhelp+set}" = set; then | |
6472 | enableval="$enable_mshtmlhelp" | |
6473 | ||
6474 | if test "$enableval" = yes; then | |
6475 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6476 | else | |
6477 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6478 | fi | |
6479 | ||
6480 | else | |
6481 | ||
6482 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6483 | if test "x$LINE" != x ; then | |
6484 | eval "DEFAULT_$LINE" | |
6485 | else | |
6486 | no_cache=1 | |
6487 | fi | |
6488 | ||
6489 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6490 | ||
6491 | fi; | |
6492 | ||
6493 | eval "$ac_cv_use_mshtmlhelp" | |
6494 | if test "$no_cache" != 1; then | |
6495 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6496 | fi | |
6497 | ||
6498 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6499 | echo "$as_me:$LINENO: result: yes" >&5 | |
6500 | echo "${ECHO_T}yes" >&6 | |
6501 | else | |
6502 | echo "$as_me:$LINENO: result: no" >&5 | |
6503 | echo "${ECHO_T}no" >&6 | |
6504 | fi | |
6505 | ||
6506 | ||
6507 | enablestring= | |
6508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6509 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6510 | no_cache=0 | |
6511 | # Check whether --enable-html or --disable-html was given. | |
6512 | if test "${enable_html+set}" = set; then | |
6513 | enableval="$enable_html" | |
6514 | ||
6515 | if test "$enableval" = yes; then | |
6516 | ac_cv_use_html='wxUSE_HTML=yes' | |
6517 | else | |
6518 | ac_cv_use_html='wxUSE_HTML=no' | |
6519 | fi | |
6520 | ||
6521 | else | |
6522 | ||
6523 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6524 | if test "x$LINE" != x ; then | |
6525 | eval "DEFAULT_$LINE" | |
6526 | else | |
6527 | no_cache=1 | |
6528 | fi | |
6529 | ||
6530 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6531 | ||
6532 | fi; | |
6533 | ||
6534 | eval "$ac_cv_use_html" | |
6535 | if test "$no_cache" != 1; then | |
6536 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6537 | fi | |
6538 | ||
6539 | if test "$wxUSE_HTML" = yes; then | |
6540 | echo "$as_me:$LINENO: result: yes" >&5 | |
6541 | echo "${ECHO_T}yes" >&6 | |
6542 | else | |
6543 | echo "$as_me:$LINENO: result: no" >&5 | |
6544 | echo "${ECHO_T}no" >&6 | |
6545 | fi | |
6546 | ||
6547 | ||
6548 | enablestring= | |
6549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6550 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6551 | no_cache=0 | |
6552 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6553 | if test "${enable_htmlhelp+set}" = set; then | |
6554 | enableval="$enable_htmlhelp" | |
6555 | ||
6556 | if test "$enableval" = yes; then | |
6557 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6558 | else | |
6559 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6560 | fi | |
6561 | ||
6562 | else | |
6563 | ||
6564 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6565 | if test "x$LINE" != x ; then | |
6566 | eval "DEFAULT_$LINE" | |
6567 | else | |
6568 | no_cache=1 | |
6569 | fi | |
6570 | ||
6571 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6572 | ||
6573 | fi; | |
6574 | ||
6575 | eval "$ac_cv_use_htmlhelp" | |
6576 | if test "$no_cache" != 1; then | |
6577 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6578 | fi | |
6579 | ||
6580 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6581 | echo "$as_me:$LINENO: result: yes" >&5 | |
6582 | echo "${ECHO_T}yes" >&6 | |
6583 | else | |
6584 | echo "$as_me:$LINENO: result: no" >&5 | |
6585 | echo "${ECHO_T}no" >&6 | |
6586 | fi | |
6587 | ||
6588 | ||
9a8f0513 VS |
6589 | enablestring= |
6590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6591 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6592 | no_cache=0 | |
6593 | # Check whether --enable-xrc or --disable-xrc was given. | |
6594 | if test "${enable_xrc+set}" = set; then | |
6595 | enableval="$enable_xrc" | |
6596 | ||
6597 | if test "$enableval" = yes; then | |
6598 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6599 | else | |
6600 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6601 | fi | |
6602 | ||
6603 | else | |
6604 | ||
6605 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6606 | if test "x$LINE" != x ; then | |
6607 | eval "DEFAULT_$LINE" | |
6608 | else | |
6609 | no_cache=1 | |
6610 | fi | |
6611 | ||
6612 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6613 | ||
6614 | fi; | |
6615 | ||
6616 | eval "$ac_cv_use_xrc" | |
6617 | if test "$no_cache" != 1; then | |
6618 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6619 | fi | |
6620 | ||
6621 | if test "$wxUSE_XRC" = yes; then | |
6622 | echo "$as_me:$LINENO: result: yes" >&5 | |
6623 | echo "${ECHO_T}yes" >&6 | |
6624 | else | |
6625 | echo "$as_me:$LINENO: result: no" >&5 | |
6626 | echo "${ECHO_T}no" >&6 | |
6627 | fi | |
6628 | ||
6629 | ||
a848cd7e SC |
6630 | enablestring= |
6631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6632 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6633 | no_cache=0 | |
6634 | # Check whether --enable-constraints or --disable-constraints was given. | |
6635 | if test "${enable_constraints+set}" = set; then | |
6636 | enableval="$enable_constraints" | |
6637 | ||
6638 | if test "$enableval" = yes; then | |
6639 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6640 | else | |
6641 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6642 | fi | |
6643 | ||
6644 | else | |
6645 | ||
6646 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6647 | if test "x$LINE" != x ; then | |
6648 | eval "DEFAULT_$LINE" | |
6649 | else | |
6650 | no_cache=1 | |
6651 | fi | |
6652 | ||
6653 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6654 | ||
6655 | fi; | |
6656 | ||
6657 | eval "$ac_cv_use_constraints" | |
6658 | if test "$no_cache" != 1; then | |
6659 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6660 | fi | |
6661 | ||
6662 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6663 | echo "$as_me:$LINENO: result: yes" >&5 | |
6664 | echo "${ECHO_T}yes" >&6 | |
6665 | else | |
6666 | echo "$as_me:$LINENO: result: no" >&5 | |
6667 | echo "${ECHO_T}no" >&6 | |
6668 | fi | |
6669 | ||
6670 | ||
6671 | enablestring= | |
6672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6673 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6674 | no_cache=0 | |
6675 | # Check whether --enable-printarch or --disable-printarch was given. | |
6676 | if test "${enable_printarch+set}" = set; then | |
6677 | enableval="$enable_printarch" | |
6678 | ||
6679 | if test "$enableval" = yes; then | |
6680 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6681 | else | |
6682 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6683 | fi | |
6684 | ||
6685 | else | |
6686 | ||
6687 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6688 | if test "x$LINE" != x ; then | |
6689 | eval "DEFAULT_$LINE" | |
6690 | else | |
6691 | no_cache=1 | |
6692 | fi | |
6693 | ||
6694 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6695 | ||
6696 | fi; | |
6697 | ||
6698 | eval "$ac_cv_use_printarch" | |
6699 | if test "$no_cache" != 1; then | |
6700 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6701 | fi | |
6702 | ||
6703 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6704 | echo "$as_me:$LINENO: result: yes" >&5 | |
6705 | echo "${ECHO_T}yes" >&6 | |
6706 | else | |
6707 | echo "$as_me:$LINENO: result: no" >&5 | |
6708 | echo "${ECHO_T}no" >&6 | |
6709 | fi | |
6710 | ||
6711 | ||
6712 | enablestring= | |
6713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6714 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6715 | no_cache=0 | |
6716 | # Check whether --enable-mdi or --disable-mdi was given. | |
6717 | if test "${enable_mdi+set}" = set; then | |
6718 | enableval="$enable_mdi" | |
6719 | ||
6720 | if test "$enableval" = yes; then | |
8a7b1113 | 6721 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6722 | else |
8a7b1113 | 6723 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6724 | fi |
6725 | ||
6726 | else | |
6727 | ||
8a7b1113 | 6728 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6729 | if test "x$LINE" != x ; then |
6730 | eval "DEFAULT_$LINE" | |
6731 | else | |
6732 | no_cache=1 | |
6733 | fi | |
6734 | ||
8a7b1113 | 6735 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6736 | |
6737 | fi; | |
6738 | ||
6739 | eval "$ac_cv_use_mdi" | |
6740 | if test "$no_cache" != 1; then | |
6741 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6742 | fi | |
6743 | ||
8a7b1113 VZ |
6744 | if test "$wxUSE_MDI" = yes; then |
6745 | echo "$as_me:$LINENO: result: yes" >&5 | |
6746 | echo "${ECHO_T}yes" >&6 | |
6747 | else | |
6748 | echo "$as_me:$LINENO: result: no" >&5 | |
6749 | echo "${ECHO_T}no" >&6 | |
6750 | fi | |
6751 | ||
6752 | ||
6753 | enablestring= | |
6754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6755 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6756 | no_cache=0 | |
6757 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6758 | if test "${enable_mdidoc+set}" = set; then | |
6759 | enableval="$enable_mdidoc" | |
6760 | ||
6761 | if test "$enableval" = yes; then | |
6762 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6763 | else | |
6764 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6765 | fi | |
6766 | ||
6767 | else | |
6768 | ||
6769 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6770 | if test "x$LINE" != x ; then | |
6771 | eval "DEFAULT_$LINE" | |
6772 | else | |
6773 | no_cache=1 | |
6774 | fi | |
6775 | ||
6776 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6777 | ||
6778 | fi; | |
6779 | ||
6780 | eval "$ac_cv_use_mdidoc" | |
6781 | if test "$no_cache" != 1; then | |
6782 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6783 | fi | |
6784 | ||
a848cd7e SC |
6785 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6786 | echo "$as_me:$LINENO: result: yes" >&5 | |
6787 | echo "${ECHO_T}yes" >&6 | |
6788 | else | |
6789 | echo "$as_me:$LINENO: result: no" >&5 | |
6790 | echo "${ECHO_T}no" >&6 | |
6791 | fi | |
6792 | ||
6793 | ||
6794 | enablestring= | |
6795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6796 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6797 | no_cache=0 | |
6798 | # Check whether --enable-loggui or --disable-loggui was given. | |
6799 | if test "${enable_loggui+set}" = set; then | |
6800 | enableval="$enable_loggui" | |
6801 | ||
6802 | if test "$enableval" = yes; then | |
6803 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6804 | else | |
6805 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6806 | fi | |
6807 | ||
6808 | else | |
6809 | ||
6810 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6811 | if test "x$LINE" != x ; then | |
6812 | eval "DEFAULT_$LINE" | |
6813 | else | |
6814 | no_cache=1 | |
6815 | fi | |
6816 | ||
6817 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6818 | ||
6819 | fi; | |
6820 | ||
6821 | eval "$ac_cv_use_loggui" | |
6822 | if test "$no_cache" != 1; then | |
6823 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6824 | fi | |
6825 | ||
6826 | if test "$wxUSE_LOGGUI" = yes; then | |
6827 | echo "$as_me:$LINENO: result: yes" >&5 | |
6828 | echo "${ECHO_T}yes" >&6 | |
6829 | else | |
6830 | echo "$as_me:$LINENO: result: no" >&5 | |
6831 | echo "${ECHO_T}no" >&6 | |
6832 | fi | |
6833 | ||
6834 | ||
6835 | enablestring= | |
6836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6837 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6838 | no_cache=0 | |
6839 | # Check whether --enable-logwin or --disable-logwin was given. | |
6840 | if test "${enable_logwin+set}" = set; then | |
6841 | enableval="$enable_logwin" | |
6842 | ||
6843 | if test "$enableval" = yes; then | |
6844 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6845 | else | |
6846 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6847 | fi | |
6848 | ||
6849 | else | |
6850 | ||
6851 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6852 | if test "x$LINE" != x ; then | |
6853 | eval "DEFAULT_$LINE" | |
6854 | else | |
6855 | no_cache=1 | |
6856 | fi | |
6857 | ||
6858 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6859 | ||
6860 | fi; | |
6861 | ||
6862 | eval "$ac_cv_use_logwin" | |
6863 | if test "$no_cache" != 1; then | |
6864 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6865 | fi | |
6866 | ||
6867 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6868 | echo "$as_me:$LINENO: result: yes" >&5 | |
6869 | echo "${ECHO_T}yes" >&6 | |
6870 | else | |
6871 | echo "$as_me:$LINENO: result: no" >&5 | |
6872 | echo "${ECHO_T}no" >&6 | |
6873 | fi | |
6874 | ||
6875 | ||
6876 | enablestring= | |
6877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6878 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6879 | no_cache=0 | |
6880 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6881 | if test "${enable_logdialog+set}" = set; then | |
6882 | enableval="$enable_logdialog" | |
6883 | ||
6884 | if test "$enableval" = yes; then | |
6885 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6886 | else | |
6887 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6888 | fi | |
6889 | ||
6890 | else | |
6891 | ||
6892 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6893 | if test "x$LINE" != x ; then | |
6894 | eval "DEFAULT_$LINE" | |
6895 | else | |
6896 | no_cache=1 | |
6897 | fi | |
6898 | ||
6899 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6900 | ||
6901 | fi; | |
6902 | ||
6903 | eval "$ac_cv_use_logdialog" | |
6904 | if test "$no_cache" != 1; then | |
6905 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6906 | fi | |
6907 | ||
6908 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6909 | echo "$as_me:$LINENO: result: yes" >&5 | |
6910 | echo "${ECHO_T}yes" >&6 | |
6911 | else | |
6912 | echo "$as_me:$LINENO: result: no" >&5 | |
6913 | echo "${ECHO_T}no" >&6 | |
6914 | fi | |
6915 | ||
6916 | ||
646b6ec1 VS |
6917 | enablestring= |
6918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6919 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6920 | no_cache=0 | |
6921 | # Check whether --enable-webkit or --disable-webkit was given. | |
6922 | if test "${enable_webkit+set}" = set; then | |
6923 | enableval="$enable_webkit" | |
6924 | ||
6925 | if test "$enableval" = yes; then | |
6926 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6927 | else | |
6928 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6929 | fi | |
6930 | ||
6931 | else | |
6932 | ||
6933 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6934 | if test "x$LINE" != x ; then | |
6935 | eval "DEFAULT_$LINE" | |
6936 | else | |
6937 | no_cache=1 | |
6938 | fi | |
6939 | ||
6940 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6941 | ||
6942 | fi; | |
6943 | ||
6944 | eval "$ac_cv_use_webkit" | |
6945 | if test "$no_cache" != 1; then | |
6946 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6947 | fi | |
6948 | ||
6949 | if test "$wxUSE_WEBKIT" = yes; then | |
6950 | echo "$as_me:$LINENO: result: yes" >&5 | |
6951 | echo "${ECHO_T}yes" >&6 | |
6952 | else | |
6953 | echo "$as_me:$LINENO: result: no" >&5 | |
6954 | echo "${ECHO_T}no" >&6 | |
6955 | fi | |
6956 | ||
6957 | ||
a848cd7e SC |
6958 | |
6959 | enablestring= | |
6960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6961 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6962 | no_cache=0 | |
6963 | # Check whether --enable-postscript or --disable-postscript was given. | |
6964 | if test "${enable_postscript+set}" = set; then | |
6965 | enableval="$enable_postscript" | |
6966 | ||
6967 | if test "$enableval" = yes; then | |
6968 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6969 | else | |
6970 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6971 | fi | |
6972 | ||
6973 | else | |
6974 | ||
6975 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6976 | if test "x$LINE" != x ; then | |
6977 | eval "DEFAULT_$LINE" | |
6978 | else | |
6979 | no_cache=1 | |
6980 | fi | |
6981 | ||
6982 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6983 | ||
6984 | fi; | |
6985 | ||
6986 | eval "$ac_cv_use_postscript" | |
6987 | if test "$no_cache" != 1; then | |
6988 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6989 | fi | |
6990 | ||
6991 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6992 | echo "$as_me:$LINENO: result: yes" >&5 | |
6993 | echo "${ECHO_T}yes" >&6 | |
6994 | else | |
6995 | echo "$as_me:$LINENO: result: no" >&5 | |
6996 | echo "${ECHO_T}no" >&6 | |
6997 | fi | |
6998 | ||
6999 | ||
7000 | ||
7001 | ||
7002 | ||
7003 | enablestring= | |
7004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7005 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7006 | no_cache=0 | |
7007 | # Check whether --enable-prologio or --disable-prologio was given. | |
7008 | if test "${enable_prologio+set}" = set; then | |
7009 | enableval="$enable_prologio" | |
7010 | ||
7011 | if test "$enableval" = yes; then | |
7012 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7013 | else | |
7014 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7015 | fi | |
7016 | ||
7017 | else | |
7018 | ||
7019 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7020 | if test "x$LINE" != x ; then | |
7021 | eval "DEFAULT_$LINE" | |
7022 | else | |
7023 | no_cache=1 | |
7024 | fi | |
7025 | ||
7026 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7027 | ||
7028 | fi; | |
7029 | ||
7030 | eval "$ac_cv_use_prologio" | |
7031 | if test "$no_cache" != 1; then | |
7032 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7033 | fi | |
7034 | ||
7035 | if test "$wxUSE_PROLOGIO" = yes; then | |
7036 | echo "$as_me:$LINENO: result: yes" >&5 | |
7037 | echo "${ECHO_T}yes" >&6 | |
7038 | else | |
7039 | echo "$as_me:$LINENO: result: no" >&5 | |
7040 | echo "${ECHO_T}no" >&6 | |
7041 | fi | |
7042 | ||
7043 | ||
7044 | enablestring= | |
7045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7046 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7047 | no_cache=0 | |
7048 | # Check whether --enable-resources or --disable-resources was given. | |
7049 | if test "${enable_resources+set}" = set; then | |
7050 | enableval="$enable_resources" | |
7051 | ||
7052 | if test "$enableval" = yes; then | |
7053 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7054 | else | |
7055 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7056 | fi | |
7057 | ||
7058 | else | |
7059 | ||
7060 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7061 | if test "x$LINE" != x ; then | |
7062 | eval "DEFAULT_$LINE" | |
7063 | else | |
7064 | no_cache=1 | |
7065 | fi | |
7066 | ||
7067 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7068 | ||
7069 | fi; | |
7070 | ||
7071 | eval "$ac_cv_use_resources" | |
7072 | if test "$no_cache" != 1; then | |
7073 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7074 | fi | |
7075 | ||
7076 | if test "$wxUSE_RESOURCES" = yes; then | |
7077 | echo "$as_me:$LINENO: result: yes" >&5 | |
7078 | echo "${ECHO_T}yes" >&6 | |
7079 | else | |
7080 | echo "$as_me:$LINENO: result: no" >&5 | |
7081 | echo "${ECHO_T}no" >&6 | |
7082 | fi | |
7083 | ||
7084 | ||
7085 | ||
7086 | ||
7087 | enablestring= | |
7088 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7089 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7090 | no_cache=0 | |
7091 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7092 | if test "${enable_clipboard+set}" = set; then | |
7093 | enableval="$enable_clipboard" | |
7094 | ||
7095 | if test "$enableval" = yes; then | |
7096 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7097 | else | |
7098 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7099 | fi | |
7100 | ||
7101 | else | |
7102 | ||
7103 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7104 | if test "x$LINE" != x ; then | |
7105 | eval "DEFAULT_$LINE" | |
7106 | else | |
7107 | no_cache=1 | |
7108 | fi | |
7109 | ||
7110 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7111 | ||
7112 | fi; | |
7113 | ||
7114 | eval "$ac_cv_use_clipboard" | |
7115 | if test "$no_cache" != 1; then | |
7116 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7117 | fi | |
7118 | ||
7119 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7120 | echo "$as_me:$LINENO: result: yes" >&5 | |
7121 | echo "${ECHO_T}yes" >&6 | |
7122 | else | |
7123 | echo "$as_me:$LINENO: result: no" >&5 | |
7124 | echo "${ECHO_T}no" >&6 | |
7125 | fi | |
7126 | ||
7127 | ||
7128 | enablestring= | |
7129 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7130 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7131 | no_cache=0 | |
7132 | # Check whether --enable-dnd or --disable-dnd was given. | |
7133 | if test "${enable_dnd+set}" = set; then | |
7134 | enableval="$enable_dnd" | |
7135 | ||
7136 | if test "$enableval" = yes; then | |
7137 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7138 | else | |
7139 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7140 | fi | |
7141 | ||
7142 | else | |
7143 | ||
7144 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7145 | if test "x$LINE" != x ; then | |
7146 | eval "DEFAULT_$LINE" | |
7147 | else | |
7148 | no_cache=1 | |
7149 | fi | |
7150 | ||
7151 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7152 | ||
7153 | fi; | |
7154 | ||
7155 | eval "$ac_cv_use_dnd" | |
7156 | if test "$no_cache" != 1; then | |
7157 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7158 | fi | |
7159 | ||
7160 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7161 | echo "$as_me:$LINENO: result: yes" >&5 | |
7162 | echo "${ECHO_T}yes" >&6 | |
7163 | else | |
7164 | echo "$as_me:$LINENO: result: no" >&5 | |
7165 | echo "${ECHO_T}no" >&6 | |
7166 | fi | |
7167 | ||
7168 | ||
7169 | enablestring= | |
7170 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7171 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7172 | no_cache=0 | |
7173 | # Check whether --enable-metafile or --disable-metafile was given. | |
7174 | if test "${enable_metafile+set}" = set; then | |
7175 | enableval="$enable_metafile" | |
7176 | ||
7177 | if test "$enableval" = yes; then | |
7178 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7179 | else | |
7180 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7181 | fi | |
7182 | ||
7183 | else | |
7184 | ||
7185 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7186 | if test "x$LINE" != x ; then | |
7187 | eval "DEFAULT_$LINE" | |
7188 | else | |
7189 | no_cache=1 | |
7190 | fi | |
7191 | ||
7192 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7193 | ||
7194 | fi; | |
7195 | ||
7196 | eval "$ac_cv_use_metafile" | |
7197 | if test "$no_cache" != 1; then | |
7198 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7199 | fi | |
7200 | ||
7201 | if test "$wxUSE_METAFILE" = yes; then | |
7202 | echo "$as_me:$LINENO: result: yes" >&5 | |
7203 | echo "${ECHO_T}yes" >&6 | |
7204 | else | |
7205 | echo "$as_me:$LINENO: result: no" >&5 | |
7206 | echo "${ECHO_T}no" >&6 | |
7207 | fi | |
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | enablestring= | |
7214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7215 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7216 | no_cache=0 | |
7217 | # Check whether --enable-controls or --disable-controls was given. | |
7218 | if test "${enable_controls+set}" = set; then | |
7219 | enableval="$enable_controls" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7223 | else | |
7224 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7237 | ||
7238 | fi; | |
7239 | ||
7240 | eval "$ac_cv_use_controls" | |
7241 | if test "$no_cache" != 1; then | |
7242 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7243 | fi | |
7244 | ||
7245 | if test "$wxUSE_CONTROLS" = yes; then | |
7246 | echo "$as_me:$LINENO: result: yes" >&5 | |
7247 | echo "${ECHO_T}yes" >&6 | |
7248 | else | |
7249 | echo "$as_me:$LINENO: result: no" >&5 | |
7250 | echo "${ECHO_T}no" >&6 | |
7251 | fi | |
7252 | ||
7253 | ||
7254 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7255 | DEFAULT_wxUSE_ACCEL=yes | |
7256 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7257 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7258 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7259 | DEFAULT_wxUSE_CARET=yes |
7260 | DEFAULT_wxUSE_COMBOBOX=yes | |
7261 | DEFAULT_wxUSE_CHECKBOX=yes | |
7262 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7263 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7264 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7265 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7266 | DEFAULT_wxUSE_GAUGE=yes |
7267 | DEFAULT_wxUSE_GRID=yes | |
7268 | DEFAULT_wxUSE_IMAGLIST=yes | |
7269 | DEFAULT_wxUSE_LISTBOOK=yes | |
7270 | DEFAULT_wxUSE_LISTBOX=yes | |
7271 | DEFAULT_wxUSE_LISTCTRL=yes | |
7272 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7273 | DEFAULT_wxUSE_RADIOBOX=yes | |
7274 | DEFAULT_wxUSE_RADIOBTN=yes | |
7275 | DEFAULT_wxUSE_SASH=yes | |
7276 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7277 | DEFAULT_wxUSE_SLIDER=yes | |
7278 | DEFAULT_wxUSE_SPINBTN=yes | |
7279 | DEFAULT_wxUSE_SPINCTRL=yes | |
7280 | DEFAULT_wxUSE_SPLITTER=yes | |
7281 | DEFAULT_wxUSE_STATBMP=yes | |
7282 | DEFAULT_wxUSE_STATBOX=yes | |
7283 | DEFAULT_wxUSE_STATLINE=yes | |
7284 | DEFAULT_wxUSE_STATUSBAR=yes | |
7285 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7286 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7287 | DEFAULT_wxUSE_TOOLBAR=yes | |
7288 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7289 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7290 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7291 | DEFAULT_wxUSE_TREECTRL=yes | |
7292 | DEFAULT_wxUSE_POPUPWIN=yes | |
7293 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7294 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7295 | DEFAULT_wxUSE_ACCEL=no | |
7296 | DEFAULT_wxUSE_BMPBUTTON=no | |
7297 | DEFAULT_wxUSE_BUTTON=no | |
7298 | DEFAULT_wxUSE_CALCTRL=no | |
7299 | DEFAULT_wxUSE_CARET=no | |
7300 | DEFAULT_wxUSE_COMBOBOX=no | |
7301 | DEFAULT_wxUSE_CHECKBOX=no | |
7302 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7303 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7304 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7305 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7306 | DEFAULT_wxUSE_GAUGE=no |
7307 | DEFAULT_wxUSE_GRID=no | |
7308 | DEFAULT_wxUSE_IMAGLIST=no | |
7309 | DEFAULT_wxUSE_LISTBOOK=no | |
7310 | DEFAULT_wxUSE_LISTBOX=no | |
7311 | DEFAULT_wxUSE_LISTCTRL=no | |
7312 | DEFAULT_wxUSE_NOTEBOOK=no | |
7313 | DEFAULT_wxUSE_RADIOBOX=no | |
7314 | DEFAULT_wxUSE_RADIOBTN=no | |
7315 | DEFAULT_wxUSE_SASH=no | |
7316 | DEFAULT_wxUSE_SCROLLBAR=no | |
7317 | DEFAULT_wxUSE_SLIDER=no | |
7318 | DEFAULT_wxUSE_SPINBTN=no | |
7319 | DEFAULT_wxUSE_SPINCTRL=no | |
7320 | DEFAULT_wxUSE_SPLITTER=no | |
7321 | DEFAULT_wxUSE_STATBMP=no | |
7322 | DEFAULT_wxUSE_STATBOX=no | |
7323 | DEFAULT_wxUSE_STATLINE=no | |
7324 | DEFAULT_wxUSE_STATUSBAR=no | |
7325 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7326 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7327 | DEFAULT_wxUSE_TOOLBAR=no | |
7328 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7329 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7330 | DEFAULT_wxUSE_TOOLTIPS=no | |
7331 | DEFAULT_wxUSE_TREECTRL=no | |
7332 | DEFAULT_wxUSE_POPUPWIN=no | |
7333 | DEFAULT_wxUSE_TIPWINDOW=no | |
7334 | fi | |
7335 | ||
a848cd7e SC |
7336 | |
7337 | enablestring= | |
7338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7339 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7340 | no_cache=0 | |
7341 | # Check whether --enable-accel or --disable-accel was given. | |
7342 | if test "${enable_accel+set}" = set; then | |
7343 | enableval="$enable_accel" | |
7344 | ||
7345 | if test "$enableval" = yes; then | |
7346 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7347 | else | |
7348 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7349 | fi | |
7350 | ||
7351 | else | |
7352 | ||
7353 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7354 | if test "x$LINE" != x ; then | |
7355 | eval "DEFAULT_$LINE" | |
7356 | else | |
7357 | no_cache=1 | |
7358 | fi | |
7359 | ||
7360 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7361 | ||
7362 | fi; | |
7363 | ||
7364 | eval "$ac_cv_use_accel" | |
7365 | if test "$no_cache" != 1; then | |
7366 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7367 | fi | |
7368 | ||
7369 | if test "$wxUSE_ACCEL" = yes; then | |
7370 | echo "$as_me:$LINENO: result: yes" >&5 | |
7371 | echo "${ECHO_T}yes" >&6 | |
7372 | else | |
7373 | echo "$as_me:$LINENO: result: no" >&5 | |
7374 | echo "${ECHO_T}no" >&6 | |
7375 | fi | |
7376 | ||
7377 | ||
7378 | enablestring= | |
7379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7380 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7381 | no_cache=0 | |
7382 | # Check whether --enable-button or --disable-button was given. | |
7383 | if test "${enable_button+set}" = set; then | |
7384 | enableval="$enable_button" | |
7385 | ||
7386 | if test "$enableval" = yes; then | |
7387 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7388 | else | |
7389 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7390 | fi | |
7391 | ||
7392 | else | |
7393 | ||
7394 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7395 | if test "x$LINE" != x ; then | |
7396 | eval "DEFAULT_$LINE" | |
7397 | else | |
7398 | no_cache=1 | |
7399 | fi | |
7400 | ||
7401 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7402 | ||
7403 | fi; | |
7404 | ||
7405 | eval "$ac_cv_use_button" | |
7406 | if test "$no_cache" != 1; then | |
7407 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7408 | fi | |
7409 | ||
7410 | if test "$wxUSE_BUTTON" = yes; then | |
7411 | echo "$as_me:$LINENO: result: yes" >&5 | |
7412 | echo "${ECHO_T}yes" >&6 | |
7413 | else | |
7414 | echo "$as_me:$LINENO: result: no" >&5 | |
7415 | echo "${ECHO_T}no" >&6 | |
7416 | fi | |
7417 | ||
7418 | ||
7419 | enablestring= | |
7420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7421 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7422 | no_cache=0 | |
7423 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7424 | if test "${enable_bmpbutton+set}" = set; then | |
7425 | enableval="$enable_bmpbutton" | |
7426 | ||
7427 | if test "$enableval" = yes; then | |
7428 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7429 | else | |
7430 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7431 | fi | |
7432 | ||
7433 | else | |
7434 | ||
7435 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7436 | if test "x$LINE" != x ; then | |
7437 | eval "DEFAULT_$LINE" | |
7438 | else | |
7439 | no_cache=1 | |
7440 | fi | |
7441 | ||
7442 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7443 | ||
7444 | fi; | |
7445 | ||
7446 | eval "$ac_cv_use_bmpbutton" | |
7447 | if test "$no_cache" != 1; then | |
7448 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7449 | fi | |
7450 | ||
7451 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7452 | echo "$as_me:$LINENO: result: yes" >&5 | |
7453 | echo "${ECHO_T}yes" >&6 | |
7454 | else | |
7455 | echo "$as_me:$LINENO: result: no" >&5 | |
7456 | echo "${ECHO_T}no" >&6 | |
7457 | fi | |
7458 | ||
7459 | ||
7460 | enablestring= | |
7461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7462 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7463 | no_cache=0 | |
7464 | # Check whether --enable-calendar or --disable-calendar was given. | |
7465 | if test "${enable_calendar+set}" = set; then | |
7466 | enableval="$enable_calendar" | |
7467 | ||
7468 | if test "$enableval" = yes; then | |
7469 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7470 | else | |
7471 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7472 | fi | |
7473 | ||
7474 | else | |
7475 | ||
7476 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7477 | if test "x$LINE" != x ; then | |
7478 | eval "DEFAULT_$LINE" | |
7479 | else | |
7480 | no_cache=1 | |
7481 | fi | |
7482 | ||
7483 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7484 | ||
7485 | fi; | |
7486 | ||
7487 | eval "$ac_cv_use_calendar" | |
7488 | if test "$no_cache" != 1; then | |
7489 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7490 | fi | |
7491 | ||
7492 | if test "$wxUSE_CALCTRL" = yes; then | |
7493 | echo "$as_me:$LINENO: result: yes" >&5 | |
7494 | echo "${ECHO_T}yes" >&6 | |
7495 | else | |
7496 | echo "$as_me:$LINENO: result: no" >&5 | |
7497 | echo "${ECHO_T}no" >&6 | |
7498 | fi | |
7499 | ||
7500 | ||
7501 | enablestring= | |
7502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7503 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7504 | no_cache=0 | |
7505 | # Check whether --enable-caret or --disable-caret was given. | |
7506 | if test "${enable_caret+set}" = set; then | |
7507 | enableval="$enable_caret" | |
7508 | ||
7509 | if test "$enableval" = yes; then | |
7510 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7511 | else | |
7512 | ac_cv_use_caret='wxUSE_CARET=no' | |
7513 | fi | |
7514 | ||
7515 | else | |
7516 | ||
7517 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7518 | if test "x$LINE" != x ; then | |
7519 | eval "DEFAULT_$LINE" | |
7520 | else | |
7521 | no_cache=1 | |
7522 | fi | |
7523 | ||
7524 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7525 | ||
7526 | fi; | |
7527 | ||
7528 | eval "$ac_cv_use_caret" | |
7529 | if test "$no_cache" != 1; then | |
7530 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7531 | fi | |
7532 | ||
7533 | if test "$wxUSE_CARET" = yes; then | |
7534 | echo "$as_me:$LINENO: result: yes" >&5 | |
7535 | echo "${ECHO_T}yes" >&6 | |
7536 | else | |
7537 | echo "$as_me:$LINENO: result: no" >&5 | |
7538 | echo "${ECHO_T}no" >&6 | |
7539 | fi | |
7540 | ||
7541 | ||
7542 | enablestring= | |
7543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7544 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7545 | no_cache=0 | |
7546 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7547 | if test "${enable_checkbox+set}" = set; then | |
7548 | enableval="$enable_checkbox" | |
7549 | ||
7550 | if test "$enableval" = yes; then | |
7551 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7552 | else | |
7553 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7554 | fi | |
7555 | ||
7556 | else | |
7557 | ||
7558 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7559 | if test "x$LINE" != x ; then | |
7560 | eval "DEFAULT_$LINE" | |
7561 | else | |
7562 | no_cache=1 | |
7563 | fi | |
7564 | ||
7565 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7566 | ||
7567 | fi; | |
7568 | ||
7569 | eval "$ac_cv_use_checkbox" | |
7570 | if test "$no_cache" != 1; then | |
7571 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7572 | fi | |
7573 | ||
7574 | if test "$wxUSE_CHECKBOX" = yes; then | |
7575 | echo "$as_me:$LINENO: result: yes" >&5 | |
7576 | echo "${ECHO_T}yes" >&6 | |
7577 | else | |
7578 | echo "$as_me:$LINENO: result: no" >&5 | |
7579 | echo "${ECHO_T}no" >&6 | |
7580 | fi | |
7581 | ||
7582 | ||
7583 | enablestring= | |
7584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7585 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7586 | no_cache=0 | |
7587 | # Check whether --enable-checklst or --disable-checklst was given. | |
7588 | if test "${enable_checklst+set}" = set; then | |
7589 | enableval="$enable_checklst" | |
7590 | ||
7591 | if test "$enableval" = yes; then | |
7592 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7593 | else | |
7594 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7595 | fi | |
7596 | ||
7597 | else | |
7598 | ||
7599 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7600 | if test "x$LINE" != x ; then | |
7601 | eval "DEFAULT_$LINE" | |
7602 | else | |
7603 | no_cache=1 | |
7604 | fi | |
7605 | ||
7606 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7607 | ||
7608 | fi; | |
7609 | ||
7610 | eval "$ac_cv_use_checklst" | |
7611 | if test "$no_cache" != 1; then | |
7612 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7613 | fi | |
7614 | ||
7615 | if test "$wxUSE_CHECKLST" = yes; then | |
7616 | echo "$as_me:$LINENO: result: yes" >&5 | |
7617 | echo "${ECHO_T}yes" >&6 | |
7618 | else | |
7619 | echo "$as_me:$LINENO: result: no" >&5 | |
7620 | echo "${ECHO_T}no" >&6 | |
7621 | fi | |
7622 | ||
7623 | ||
7624 | enablestring= | |
7625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7626 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7627 | no_cache=0 | |
7628 | # Check whether --enable-choice or --disable-choice was given. | |
7629 | if test "${enable_choice+set}" = set; then | |
7630 | enableval="$enable_choice" | |
7631 | ||
7632 | if test "$enableval" = yes; then | |
7633 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7634 | else | |
7635 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7636 | fi | |
7637 | ||
7638 | else | |
7639 | ||
7640 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7641 | if test "x$LINE" != x ; then | |
7642 | eval "DEFAULT_$LINE" | |
7643 | else | |
7644 | no_cache=1 | |
7645 | fi | |
7646 | ||
7647 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7648 | ||
7649 | fi; | |
7650 | ||
7651 | eval "$ac_cv_use_choice" | |
7652 | if test "$no_cache" != 1; then | |
7653 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7654 | fi | |
7655 | ||
7656 | if test "$wxUSE_CHOICE" = yes; then | |
7657 | echo "$as_me:$LINENO: result: yes" >&5 | |
7658 | echo "${ECHO_T}yes" >&6 | |
7659 | else | |
7660 | echo "$as_me:$LINENO: result: no" >&5 | |
7661 | echo "${ECHO_T}no" >&6 | |
7662 | fi | |
7663 | ||
7664 | ||
92bbdbcd WS |
7665 | enablestring= |
7666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7667 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7668 | no_cache=0 | |
7669 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7670 | if test "${enable_choicebook+set}" = set; then | |
7671 | enableval="$enable_choicebook" | |
7672 | ||
7673 | if test "$enableval" = yes; then | |
7674 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7675 | else | |
7676 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7677 | fi | |
7678 | ||
7679 | else | |
7680 | ||
7681 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7682 | if test "x$LINE" != x ; then | |
7683 | eval "DEFAULT_$LINE" | |
7684 | else | |
7685 | no_cache=1 | |
7686 | fi | |
7687 | ||
7688 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7689 | ||
7690 | fi; | |
7691 | ||
7692 | eval "$ac_cv_use_choicebook" | |
7693 | if test "$no_cache" != 1; then | |
7694 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7695 | fi | |
7696 | ||
7697 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7698 | echo "$as_me:$LINENO: result: yes" >&5 | |
7699 | echo "${ECHO_T}yes" >&6 | |
7700 | else | |
7701 | echo "$as_me:$LINENO: result: no" >&5 | |
7702 | echo "${ECHO_T}no" >&6 | |
7703 | fi | |
7704 | ||
7705 | ||
a848cd7e SC |
7706 | enablestring= |
7707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7708 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7709 | no_cache=0 | |
7710 | # Check whether --enable-combobox or --disable-combobox was given. | |
7711 | if test "${enable_combobox+set}" = set; then | |
7712 | enableval="$enable_combobox" | |
7713 | ||
7714 | if test "$enableval" = yes; then | |
7715 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7716 | else | |
7717 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7718 | fi | |
7719 | ||
7720 | else | |
7721 | ||
7722 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7723 | if test "x$LINE" != x ; then | |
7724 | eval "DEFAULT_$LINE" | |
7725 | else | |
7726 | no_cache=1 | |
7727 | fi | |
7728 | ||
7729 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7730 | ||
7731 | fi; | |
7732 | ||
7733 | eval "$ac_cv_use_combobox" | |
7734 | if test "$no_cache" != 1; then | |
7735 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7736 | fi | |
7737 | ||
7738 | if test "$wxUSE_COMBOBOX" = yes; then | |
7739 | echo "$as_me:$LINENO: result: yes" >&5 | |
7740 | echo "${ECHO_T}yes" >&6 | |
7741 | else | |
7742 | echo "$as_me:$LINENO: result: no" >&5 | |
7743 | echo "${ECHO_T}no" >&6 | |
7744 | fi | |
7745 | ||
7746 | ||
da98e9be VZ |
7747 | enablestring= |
7748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7749 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7750 | no_cache=0 | |
7751 | # Check whether --enable-datepick or --disable-datepick was given. | |
7752 | if test "${enable_datepick+set}" = set; then | |
7753 | enableval="$enable_datepick" | |
7754 | ||
7755 | if test "$enableval" = yes; then | |
7756 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7757 | else | |
7758 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7759 | fi | |
7760 | ||
7761 | else | |
7762 | ||
7763 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7764 | if test "x$LINE" != x ; then | |
7765 | eval "DEFAULT_$LINE" | |
7766 | else | |
7767 | no_cache=1 | |
7768 | fi | |
7769 | ||
7770 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7771 | ||
7772 | fi; | |
7773 | ||
7774 | eval "$ac_cv_use_datepick" | |
7775 | if test "$no_cache" != 1; then | |
7776 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7777 | fi | |
7778 | ||
7779 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7780 | echo "$as_me:$LINENO: result: yes" >&5 | |
7781 | echo "${ECHO_T}yes" >&6 | |
7782 | else | |
7783 | echo "$as_me:$LINENO: result: no" >&5 | |
7784 | echo "${ECHO_T}no" >&6 | |
7785 | fi | |
7786 | ||
7787 | ||
a848cd7e SC |
7788 | enablestring= |
7789 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7790 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7791 | no_cache=0 | |
7792 | # Check whether --enable-display or --disable-display was given. | |
7793 | if test "${enable_display+set}" = set; then | |
7794 | enableval="$enable_display" | |
7795 | ||
7796 | if test "$enableval" = yes; then | |
7797 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7798 | else | |
7799 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7800 | fi | |
7801 | ||
7802 | else | |
7803 | ||
7804 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7805 | if test "x$LINE" != x ; then | |
7806 | eval "DEFAULT_$LINE" | |
7807 | else | |
7808 | no_cache=1 | |
7809 | fi | |
7810 | ||
7811 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7812 | ||
7813 | fi; | |
7814 | ||
7815 | eval "$ac_cv_use_display" | |
7816 | if test "$no_cache" != 1; then | |
7817 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7818 | fi | |
7819 | ||
7820 | if test "$wxUSE_DISPLAY" = yes; then | |
7821 | echo "$as_me:$LINENO: result: yes" >&5 | |
7822 | echo "${ECHO_T}yes" >&6 | |
7823 | else | |
7824 | echo "$as_me:$LINENO: result: no" >&5 | |
7825 | echo "${ECHO_T}no" >&6 | |
7826 | fi | |
7827 | ||
7828 | ||
7829 | enablestring= | |
7830 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7831 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7832 | no_cache=0 | |
7833 | # Check whether --enable-gauge or --disable-gauge was given. | |
7834 | if test "${enable_gauge+set}" = set; then | |
7835 | enableval="$enable_gauge" | |
7836 | ||
7837 | if test "$enableval" = yes; then | |
7838 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7839 | else | |
7840 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7841 | fi | |
7842 | ||
7843 | else | |
7844 | ||
7845 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7846 | if test "x$LINE" != x ; then | |
7847 | eval "DEFAULT_$LINE" | |
7848 | else | |
7849 | no_cache=1 | |
7850 | fi | |
7851 | ||
7852 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7853 | ||
7854 | fi; | |
7855 | ||
7856 | eval "$ac_cv_use_gauge" | |
7857 | if test "$no_cache" != 1; then | |
7858 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7859 | fi | |
7860 | ||
7861 | if test "$wxUSE_GAUGE" = yes; then | |
7862 | echo "$as_me:$LINENO: result: yes" >&5 | |
7863 | echo "${ECHO_T}yes" >&6 | |
7864 | else | |
7865 | echo "$as_me:$LINENO: result: no" >&5 | |
7866 | echo "${ECHO_T}no" >&6 | |
7867 | fi | |
7868 | ||
7869 | ||
7870 | enablestring= | |
7871 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7872 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7873 | no_cache=0 | |
7874 | # Check whether --enable-grid or --disable-grid was given. | |
7875 | if test "${enable_grid+set}" = set; then | |
7876 | enableval="$enable_grid" | |
7877 | ||
7878 | if test "$enableval" = yes; then | |
7879 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7880 | else | |
7881 | ac_cv_use_grid='wxUSE_GRID=no' | |
7882 | fi | |
7883 | ||
7884 | else | |
7885 | ||
7886 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7887 | if test "x$LINE" != x ; then | |
7888 | eval "DEFAULT_$LINE" | |
7889 | else | |
7890 | no_cache=1 | |
7891 | fi | |
7892 | ||
7893 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7894 | ||
7895 | fi; | |
7896 | ||
7897 | eval "$ac_cv_use_grid" | |
7898 | if test "$no_cache" != 1; then | |
7899 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7900 | fi | |
7901 | ||
7902 | if test "$wxUSE_GRID" = yes; then | |
7903 | echo "$as_me:$LINENO: result: yes" >&5 | |
7904 | echo "${ECHO_T}yes" >&6 | |
7905 | else | |
7906 | echo "$as_me:$LINENO: result: no" >&5 | |
7907 | echo "${ECHO_T}no" >&6 | |
7908 | fi | |
7909 | ||
7910 | ||
7911 | enablestring= | |
7912 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7913 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7914 | no_cache=0 | |
7915 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7916 | if test "${enable_imaglist+set}" = set; then | |
7917 | enableval="$enable_imaglist" | |
7918 | ||
7919 | if test "$enableval" = yes; then | |
7920 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7921 | else | |
7922 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7923 | fi | |
7924 | ||
7925 | else | |
7926 | ||
7927 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7928 | if test "x$LINE" != x ; then | |
7929 | eval "DEFAULT_$LINE" | |
7930 | else | |
7931 | no_cache=1 | |
7932 | fi | |
7933 | ||
7934 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7935 | ||
7936 | fi; | |
7937 | ||
7938 | eval "$ac_cv_use_imaglist" | |
7939 | if test "$no_cache" != 1; then | |
7940 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7941 | fi | |
7942 | ||
7943 | if test "$wxUSE_IMAGLIST" = yes; then | |
7944 | echo "$as_me:$LINENO: result: yes" >&5 | |
7945 | echo "${ECHO_T}yes" >&6 | |
7946 | else | |
7947 | echo "$as_me:$LINENO: result: no" >&5 | |
7948 | echo "${ECHO_T}no" >&6 | |
7949 | fi | |
7950 | ||
7951 | ||
7952 | enablestring= | |
7953 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7954 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7955 | no_cache=0 | |
7956 | # Check whether --enable-listbook or --disable-listbook was given. | |
7957 | if test "${enable_listbook+set}" = set; then | |
7958 | enableval="$enable_listbook" | |
7959 | ||
7960 | if test "$enableval" = yes; then | |
7961 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7962 | else | |
7963 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7964 | fi | |
7965 | ||
7966 | else | |
7967 | ||
7968 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7969 | if test "x$LINE" != x ; then | |
7970 | eval "DEFAULT_$LINE" | |
7971 | else | |
7972 | no_cache=1 | |
7973 | fi | |
7974 | ||
7975 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7976 | ||
7977 | fi; | |
7978 | ||
7979 | eval "$ac_cv_use_listbook" | |
7980 | if test "$no_cache" != 1; then | |
7981 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7982 | fi | |
7983 | ||
7984 | if test "$wxUSE_LISTBOOK" = yes; then | |
7985 | echo "$as_me:$LINENO: result: yes" >&5 | |
7986 | echo "${ECHO_T}yes" >&6 | |
7987 | else | |
7988 | echo "$as_me:$LINENO: result: no" >&5 | |
7989 | echo "${ECHO_T}no" >&6 | |
7990 | fi | |
7991 | ||
7992 | ||
7993 | enablestring= | |
7994 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7995 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7996 | no_cache=0 | |
7997 | # Check whether --enable-listbox or --disable-listbox was given. | |
7998 | if test "${enable_listbox+set}" = set; then | |
7999 | enableval="$enable_listbox" | |
8000 | ||
8001 | if test "$enableval" = yes; then | |
8002 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8003 | else | |
8004 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8005 | fi | |
8006 | ||
8007 | else | |
8008 | ||
8009 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8010 | if test "x$LINE" != x ; then | |
8011 | eval "DEFAULT_$LINE" | |
8012 | else | |
8013 | no_cache=1 | |
8014 | fi | |
8015 | ||
8016 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8017 | ||
8018 | fi; | |
8019 | ||
8020 | eval "$ac_cv_use_listbox" | |
8021 | if test "$no_cache" != 1; then | |
8022 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8023 | fi | |
8024 | ||
8025 | if test "$wxUSE_LISTBOX" = yes; then | |
8026 | echo "$as_me:$LINENO: result: yes" >&5 | |
8027 | echo "${ECHO_T}yes" >&6 | |
8028 | else | |
8029 | echo "$as_me:$LINENO: result: no" >&5 | |
8030 | echo "${ECHO_T}no" >&6 | |
8031 | fi | |
8032 | ||
8033 | ||
8034 | enablestring= | |
8035 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8036 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8037 | no_cache=0 | |
8038 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8039 | if test "${enable_listctrl+set}" = set; then | |
8040 | enableval="$enable_listctrl" | |
8041 | ||
8042 | if test "$enableval" = yes; then | |
8043 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8044 | else | |
8045 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8046 | fi | |
8047 | ||
8048 | else | |
8049 | ||
8050 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8051 | if test "x$LINE" != x ; then | |
8052 | eval "DEFAULT_$LINE" | |
8053 | else | |
8054 | no_cache=1 | |
8055 | fi | |
8056 | ||
8057 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8058 | ||
8059 | fi; | |
8060 | ||
8061 | eval "$ac_cv_use_listctrl" | |
8062 | if test "$no_cache" != 1; then | |
8063 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8064 | fi | |
8065 | ||
8066 | if test "$wxUSE_LISTCTRL" = yes; then | |
8067 | echo "$as_me:$LINENO: result: yes" >&5 | |
8068 | echo "${ECHO_T}yes" >&6 | |
8069 | else | |
8070 | echo "$as_me:$LINENO: result: no" >&5 | |
8071 | echo "${ECHO_T}no" >&6 | |
8072 | fi | |
8073 | ||
8074 | ||
8075 | enablestring= | |
8076 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8077 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8078 | no_cache=0 | |
8079 | # Check whether --enable-notebook or --disable-notebook was given. | |
8080 | if test "${enable_notebook+set}" = set; then | |
8081 | enableval="$enable_notebook" | |
8082 | ||
8083 | if test "$enableval" = yes; then | |
8084 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8085 | else | |
8086 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8087 | fi | |
8088 | ||
8089 | else | |
8090 | ||
8091 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8092 | if test "x$LINE" != x ; then | |
8093 | eval "DEFAULT_$LINE" | |
8094 | else | |
8095 | no_cache=1 | |
8096 | fi | |
8097 | ||
8098 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8099 | ||
8100 | fi; | |
8101 | ||
8102 | eval "$ac_cv_use_notebook" | |
8103 | if test "$no_cache" != 1; then | |
8104 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8105 | fi | |
8106 | ||
8107 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8108 | echo "$as_me:$LINENO: result: yes" >&5 | |
8109 | echo "${ECHO_T}yes" >&6 | |
8110 | else | |
8111 | echo "$as_me:$LINENO: result: no" >&5 | |
8112 | echo "${ECHO_T}no" >&6 | |
8113 | fi | |
8114 | ||
8115 | ||
8116 | enablestring= | |
8117 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8118 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8119 | no_cache=0 | |
8120 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8121 | if test "${enable_radiobox+set}" = set; then | |
8122 | enableval="$enable_radiobox" | |
8123 | ||
8124 | if test "$enableval" = yes; then | |
8125 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8126 | else | |
8127 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8128 | fi | |
8129 | ||
8130 | else | |
8131 | ||
8132 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8133 | if test "x$LINE" != x ; then | |
8134 | eval "DEFAULT_$LINE" | |
8135 | else | |
8136 | no_cache=1 | |
8137 | fi | |
8138 | ||
8139 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8140 | ||
8141 | fi; | |
8142 | ||
8143 | eval "$ac_cv_use_radiobox" | |
8144 | if test "$no_cache" != 1; then | |
8145 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8146 | fi | |
8147 | ||
8148 | if test "$wxUSE_RADIOBOX" = yes; then | |
8149 | echo "$as_me:$LINENO: result: yes" >&5 | |
8150 | echo "${ECHO_T}yes" >&6 | |
8151 | else | |
8152 | echo "$as_me:$LINENO: result: no" >&5 | |
8153 | echo "${ECHO_T}no" >&6 | |
8154 | fi | |
8155 | ||
8156 | ||
8157 | enablestring= | |
8158 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8159 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8160 | no_cache=0 | |
8161 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8162 | if test "${enable_radiobtn+set}" = set; then | |
8163 | enableval="$enable_radiobtn" | |
8164 | ||
8165 | if test "$enableval" = yes; then | |
8166 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8167 | else | |
8168 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8169 | fi | |
8170 | ||
8171 | else | |
8172 | ||
8173 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8174 | if test "x$LINE" != x ; then | |
8175 | eval "DEFAULT_$LINE" | |
8176 | else | |
8177 | no_cache=1 | |
8178 | fi | |
8179 | ||
8180 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8181 | ||
8182 | fi; | |
8183 | ||
8184 | eval "$ac_cv_use_radiobtn" | |
8185 | if test "$no_cache" != 1; then | |
8186 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8187 | fi | |
8188 | ||
8189 | if test "$wxUSE_RADIOBTN" = yes; then | |
8190 | echo "$as_me:$LINENO: result: yes" >&5 | |
8191 | echo "${ECHO_T}yes" >&6 | |
8192 | else | |
8193 | echo "$as_me:$LINENO: result: no" >&5 | |
8194 | echo "${ECHO_T}no" >&6 | |
8195 | fi | |
8196 | ||
8197 | ||
8198 | enablestring= | |
8199 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8200 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8201 | no_cache=0 | |
8202 | # Check whether --enable-sash or --disable-sash was given. | |
8203 | if test "${enable_sash+set}" = set; then | |
8204 | enableval="$enable_sash" | |
8205 | ||
8206 | if test "$enableval" = yes; then | |
8207 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8208 | else | |
8209 | ac_cv_use_sash='wxUSE_SASH=no' | |
8210 | fi | |
8211 | ||
8212 | else | |
8213 | ||
8214 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8215 | if test "x$LINE" != x ; then | |
8216 | eval "DEFAULT_$LINE" | |
8217 | else | |
8218 | no_cache=1 | |
8219 | fi | |
8220 | ||
8221 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8222 | ||
8223 | fi; | |
8224 | ||
8225 | eval "$ac_cv_use_sash" | |
8226 | if test "$no_cache" != 1; then | |
8227 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8228 | fi | |
8229 | ||
8230 | if test "$wxUSE_SASH" = yes; then | |
8231 | echo "$as_me:$LINENO: result: yes" >&5 | |
8232 | echo "${ECHO_T}yes" >&6 | |
8233 | else | |
8234 | echo "$as_me:$LINENO: result: no" >&5 | |
8235 | echo "${ECHO_T}no" >&6 | |
8236 | fi | |
8237 | ||
8238 | ||
8239 | enablestring= | |
8240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8241 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8242 | no_cache=0 | |
8243 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8244 | if test "${enable_scrollbar+set}" = set; then | |
8245 | enableval="$enable_scrollbar" | |
8246 | ||
8247 | if test "$enableval" = yes; then | |
8248 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8249 | else | |
8250 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8251 | fi | |
8252 | ||
8253 | else | |
8254 | ||
8255 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8256 | if test "x$LINE" != x ; then | |
8257 | eval "DEFAULT_$LINE" | |
8258 | else | |
8259 | no_cache=1 | |
8260 | fi | |
8261 | ||
8262 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8263 | ||
8264 | fi; | |
8265 | ||
8266 | eval "$ac_cv_use_scrollbar" | |
8267 | if test "$no_cache" != 1; then | |
8268 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8269 | fi | |
8270 | ||
8271 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8272 | echo "$as_me:$LINENO: result: yes" >&5 | |
8273 | echo "${ECHO_T}yes" >&6 | |
8274 | else | |
8275 | echo "$as_me:$LINENO: result: no" >&5 | |
8276 | echo "${ECHO_T}no" >&6 | |
8277 | fi | |
8278 | ||
8279 | ||
8280 | enablestring= | |
8281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8282 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8283 | no_cache=0 | |
8284 | # Check whether --enable-slider or --disable-slider was given. | |
8285 | if test "${enable_slider+set}" = set; then | |
8286 | enableval="$enable_slider" | |
8287 | ||
8288 | if test "$enableval" = yes; then | |
8289 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8290 | else | |
8291 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8292 | fi | |
8293 | ||
8294 | else | |
8295 | ||
8296 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8297 | if test "x$LINE" != x ; then | |
8298 | eval "DEFAULT_$LINE" | |
8299 | else | |
8300 | no_cache=1 | |
8301 | fi | |
8302 | ||
8303 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8304 | ||
8305 | fi; | |
8306 | ||
8307 | eval "$ac_cv_use_slider" | |
8308 | if test "$no_cache" != 1; then | |
8309 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8310 | fi | |
8311 | ||
8312 | if test "$wxUSE_SLIDER" = yes; then | |
8313 | echo "$as_me:$LINENO: result: yes" >&5 | |
8314 | echo "${ECHO_T}yes" >&6 | |
8315 | else | |
8316 | echo "$as_me:$LINENO: result: no" >&5 | |
8317 | echo "${ECHO_T}no" >&6 | |
8318 | fi | |
8319 | ||
8320 | ||
8321 | enablestring= | |
8322 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8323 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8324 | no_cache=0 | |
8325 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8326 | if test "${enable_spinbtn+set}" = set; then | |
8327 | enableval="$enable_spinbtn" | |
8328 | ||
8329 | if test "$enableval" = yes; then | |
8330 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8331 | else | |
8332 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8333 | fi | |
8334 | ||
8335 | else | |
8336 | ||
8337 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8338 | if test "x$LINE" != x ; then | |
8339 | eval "DEFAULT_$LINE" | |
8340 | else | |
8341 | no_cache=1 | |
8342 | fi | |
8343 | ||
8344 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8345 | ||
8346 | fi; | |
8347 | ||
8348 | eval "$ac_cv_use_spinbtn" | |
8349 | if test "$no_cache" != 1; then | |
8350 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8351 | fi | |
8352 | ||
8353 | if test "$wxUSE_SPINBTN" = yes; then | |
8354 | echo "$as_me:$LINENO: result: yes" >&5 | |
8355 | echo "${ECHO_T}yes" >&6 | |
8356 | else | |
8357 | echo "$as_me:$LINENO: result: no" >&5 | |
8358 | echo "${ECHO_T}no" >&6 | |
8359 | fi | |
8360 | ||
8361 | ||
8362 | enablestring= | |
8363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8364 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8365 | no_cache=0 | |
8366 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8367 | if test "${enable_spinctrl+set}" = set; then | |
8368 | enableval="$enable_spinctrl" | |
8369 | ||
8370 | if test "$enableval" = yes; then | |
8371 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8372 | else | |
8373 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8374 | fi | |
8375 | ||
8376 | else | |
8377 | ||
8378 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8379 | if test "x$LINE" != x ; then | |
8380 | eval "DEFAULT_$LINE" | |
8381 | else | |
8382 | no_cache=1 | |
8383 | fi | |
8384 | ||
8385 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8386 | ||
8387 | fi; | |
8388 | ||
8389 | eval "$ac_cv_use_spinctrl" | |
8390 | if test "$no_cache" != 1; then | |
8391 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8392 | fi | |
8393 | ||
8394 | if test "$wxUSE_SPINCTRL" = yes; then | |
8395 | echo "$as_me:$LINENO: result: yes" >&5 | |
8396 | echo "${ECHO_T}yes" >&6 | |
8397 | else | |
8398 | echo "$as_me:$LINENO: result: no" >&5 | |
8399 | echo "${ECHO_T}no" >&6 | |
8400 | fi | |
8401 | ||
8402 | ||
8403 | enablestring= | |
8404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8405 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8406 | no_cache=0 | |
8407 | # Check whether --enable-splitter or --disable-splitter was given. | |
8408 | if test "${enable_splitter+set}" = set; then | |
8409 | enableval="$enable_splitter" | |
8410 | ||
8411 | if test "$enableval" = yes; then | |
8412 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8413 | else | |
8414 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8415 | fi | |
8416 | ||
8417 | else | |
8418 | ||
8419 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8420 | if test "x$LINE" != x ; then | |
8421 | eval "DEFAULT_$LINE" | |
8422 | else | |
8423 | no_cache=1 | |
8424 | fi | |
8425 | ||
8426 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8427 | ||
8428 | fi; | |
8429 | ||
8430 | eval "$ac_cv_use_splitter" | |
8431 | if test "$no_cache" != 1; then | |
8432 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8433 | fi | |
8434 | ||
8435 | if test "$wxUSE_SPLITTER" = yes; then | |
8436 | echo "$as_me:$LINENO: result: yes" >&5 | |
8437 | echo "${ECHO_T}yes" >&6 | |
8438 | else | |
8439 | echo "$as_me:$LINENO: result: no" >&5 | |
8440 | echo "${ECHO_T}no" >&6 | |
8441 | fi | |
8442 | ||
8443 | ||
8444 | enablestring= | |
8445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8446 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8447 | no_cache=0 | |
8448 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8449 | if test "${enable_statbmp+set}" = set; then | |
8450 | enableval="$enable_statbmp" | |
8451 | ||
8452 | if test "$enableval" = yes; then | |
8453 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8454 | else | |
8455 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8456 | fi | |
8457 | ||
8458 | else | |
8459 | ||
8460 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8461 | if test "x$LINE" != x ; then | |
8462 | eval "DEFAULT_$LINE" | |
8463 | else | |
8464 | no_cache=1 | |
8465 | fi | |
8466 | ||
8467 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8468 | ||
8469 | fi; | |
8470 | ||
8471 | eval "$ac_cv_use_statbmp" | |
8472 | if test "$no_cache" != 1; then | |
8473 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8474 | fi | |
8475 | ||
8476 | if test "$wxUSE_STATBMP" = yes; then | |
8477 | echo "$as_me:$LINENO: result: yes" >&5 | |
8478 | echo "${ECHO_T}yes" >&6 | |
8479 | else | |
8480 | echo "$as_me:$LINENO: result: no" >&5 | |
8481 | echo "${ECHO_T}no" >&6 | |
8482 | fi | |
8483 | ||
8484 | ||
8485 | enablestring= | |
8486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8487 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8488 | no_cache=0 | |
8489 | # Check whether --enable-statbox or --disable-statbox was given. | |
8490 | if test "${enable_statbox+set}" = set; then | |
8491 | enableval="$enable_statbox" | |
8492 | ||
8493 | if test "$enableval" = yes; then | |
8494 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8495 | else | |
8496 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8497 | fi | |
8498 | ||
8499 | else | |
8500 | ||
8501 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8502 | if test "x$LINE" != x ; then | |
8503 | eval "DEFAULT_$LINE" | |
8504 | else | |
8505 | no_cache=1 | |
8506 | fi | |
8507 | ||
8508 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8509 | ||
8510 | fi; | |
8511 | ||
8512 | eval "$ac_cv_use_statbox" | |
8513 | if test "$no_cache" != 1; then | |
8514 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8515 | fi | |
8516 | ||
8517 | if test "$wxUSE_STATBOX" = yes; then | |
8518 | echo "$as_me:$LINENO: result: yes" >&5 | |
8519 | echo "${ECHO_T}yes" >&6 | |
8520 | else | |
8521 | echo "$as_me:$LINENO: result: no" >&5 | |
8522 | echo "${ECHO_T}no" >&6 | |
8523 | fi | |
8524 | ||
8525 | ||
8526 | enablestring= | |
8527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8528 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8529 | no_cache=0 | |
8530 | # Check whether --enable-statline or --disable-statline was given. | |
8531 | if test "${enable_statline+set}" = set; then | |
8532 | enableval="$enable_statline" | |
8533 | ||
8534 | if test "$enableval" = yes; then | |
8535 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8536 | else | |
8537 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8538 | fi | |
8539 | ||
8540 | else | |
8541 | ||
8542 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8543 | if test "x$LINE" != x ; then | |
8544 | eval "DEFAULT_$LINE" | |
8545 | else | |
8546 | no_cache=1 | |
8547 | fi | |
8548 | ||
8549 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8550 | ||
8551 | fi; | |
8552 | ||
8553 | eval "$ac_cv_use_statline" | |
8554 | if test "$no_cache" != 1; then | |
8555 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8556 | fi | |
8557 | ||
8558 | if test "$wxUSE_STATLINE" = yes; then | |
8559 | echo "$as_me:$LINENO: result: yes" >&5 | |
8560 | echo "${ECHO_T}yes" >&6 | |
8561 | else | |
8562 | echo "$as_me:$LINENO: result: no" >&5 | |
8563 | echo "${ECHO_T}no" >&6 | |
8564 | fi | |
8565 | ||
8566 | ||
8567 | enablestring= | |
8568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8569 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8570 | no_cache=0 | |
8571 | # Check whether --enable-stattext or --disable-stattext was given. | |
8572 | if test "${enable_stattext+set}" = set; then | |
8573 | enableval="$enable_stattext" | |
8574 | ||
8575 | if test "$enableval" = yes; then | |
8576 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8577 | else | |
8578 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8579 | fi | |
8580 | ||
8581 | else | |
8582 | ||
8583 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8584 | if test "x$LINE" != x ; then | |
8585 | eval "DEFAULT_$LINE" | |
8586 | else | |
8587 | no_cache=1 | |
8588 | fi | |
8589 | ||
8590 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8591 | ||
8592 | fi; | |
8593 | ||
8594 | eval "$ac_cv_use_stattext" | |
8595 | if test "$no_cache" != 1; then | |
8596 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8597 | fi | |
8598 | ||
8599 | if test "$wxUSE_STATTEXT" = yes; then | |
8600 | echo "$as_me:$LINENO: result: yes" >&5 | |
8601 | echo "${ECHO_T}yes" >&6 | |
8602 | else | |
8603 | echo "$as_me:$LINENO: result: no" >&5 | |
8604 | echo "${ECHO_T}no" >&6 | |
8605 | fi | |
8606 | ||
8607 | ||
8608 | enablestring= | |
8609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8610 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8611 | no_cache=0 | |
8612 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8613 | if test "${enable_statusbar+set}" = set; then | |
8614 | enableval="$enable_statusbar" | |
8615 | ||
8616 | if test "$enableval" = yes; then | |
8617 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8618 | else | |
8619 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8620 | fi | |
8621 | ||
8622 | else | |
8623 | ||
8624 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8625 | if test "x$LINE" != x ; then | |
8626 | eval "DEFAULT_$LINE" | |
8627 | else | |
8628 | no_cache=1 | |
8629 | fi | |
8630 | ||
8631 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8632 | ||
8633 | fi; | |
8634 | ||
8635 | eval "$ac_cv_use_statusbar" | |
8636 | if test "$no_cache" != 1; then | |
8637 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8638 | fi | |
8639 | ||
8640 | if test "$wxUSE_STATUSBAR" = yes; then | |
8641 | echo "$as_me:$LINENO: result: yes" >&5 | |
8642 | echo "${ECHO_T}yes" >&6 | |
8643 | else | |
8644 | echo "$as_me:$LINENO: result: no" >&5 | |
8645 | echo "${ECHO_T}no" >&6 | |
8646 | fi | |
8647 | ||
8648 | ||
8649 | enablestring= | |
8650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8651 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8652 | no_cache=0 | |
8653 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8654 | if test "${enable_tabdialog+set}" = set; then | |
8655 | enableval="$enable_tabdialog" | |
8656 | ||
8657 | if test "$enableval" = yes; then | |
8658 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8659 | else | |
8660 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8661 | fi | |
8662 | ||
8663 | else | |
8664 | ||
8665 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8666 | if test "x$LINE" != x ; then | |
8667 | eval "DEFAULT_$LINE" | |
8668 | else | |
8669 | no_cache=1 | |
8670 | fi | |
8671 | ||
8672 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8673 | ||
8674 | fi; | |
8675 | ||
8676 | eval "$ac_cv_use_tabdialog" | |
8677 | if test "$no_cache" != 1; then | |
8678 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8679 | fi | |
8680 | ||
8681 | if test "$wxUSE_TABDIALOG" = yes; then | |
8682 | echo "$as_me:$LINENO: result: yes" >&5 | |
8683 | echo "${ECHO_T}yes" >&6 | |
8684 | else | |
8685 | echo "$as_me:$LINENO: result: no" >&5 | |
8686 | echo "${ECHO_T}no" >&6 | |
8687 | fi | |
8688 | ||
8689 | ||
8690 | enablestring= | |
8691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8692 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8693 | no_cache=0 | |
8694 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8695 | if test "${enable_textctrl+set}" = set; then | |
8696 | enableval="$enable_textctrl" | |
8697 | ||
8698 | if test "$enableval" = yes; then | |
8699 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8700 | else | |
8701 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8702 | fi | |
8703 | ||
8704 | else | |
8705 | ||
8706 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8707 | if test "x$LINE" != x ; then | |
8708 | eval "DEFAULT_$LINE" | |
8709 | else | |
8710 | no_cache=1 | |
8711 | fi | |
8712 | ||
8713 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8714 | ||
8715 | fi; | |
8716 | ||
8717 | eval "$ac_cv_use_textctrl" | |
8718 | if test "$no_cache" != 1; then | |
8719 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8720 | fi | |
8721 | ||
8722 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8723 | echo "$as_me:$LINENO: result: yes" >&5 | |
8724 | echo "${ECHO_T}yes" >&6 | |
8725 | else | |
8726 | echo "$as_me:$LINENO: result: no" >&5 | |
8727 | echo "${ECHO_T}no" >&6 | |
8728 | fi | |
8729 | ||
8730 | ||
8731 | enablestring= | |
8732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8733 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8734 | no_cache=0 | |
8735 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8736 | if test "${enable_togglebtn+set}" = set; then | |
8737 | enableval="$enable_togglebtn" | |
8738 | ||
8739 | if test "$enableval" = yes; then | |
8740 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8741 | else | |
8742 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8743 | fi | |
8744 | ||
8745 | else | |
8746 | ||
8747 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8748 | if test "x$LINE" != x ; then | |
8749 | eval "DEFAULT_$LINE" | |
8750 | else | |
8751 | no_cache=1 | |
8752 | fi | |
8753 | ||
8754 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8755 | ||
8756 | fi; | |
8757 | ||
8758 | eval "$ac_cv_use_togglebtn" | |
8759 | if test "$no_cache" != 1; then | |
8760 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8761 | fi | |
8762 | ||
8763 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8764 | echo "$as_me:$LINENO: result: yes" >&5 | |
8765 | echo "${ECHO_T}yes" >&6 | |
8766 | else | |
8767 | echo "$as_me:$LINENO: result: no" >&5 | |
8768 | echo "${ECHO_T}no" >&6 | |
8769 | fi | |
8770 | ||
8771 | ||
8772 | enablestring= | |
8773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8774 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8775 | no_cache=0 | |
8776 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8777 | if test "${enable_toolbar+set}" = set; then | |
8778 | enableval="$enable_toolbar" | |
8779 | ||
8780 | if test "$enableval" = yes; then | |
8781 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8782 | else | |
8783 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8784 | fi | |
8785 | ||
8786 | else | |
8787 | ||
8788 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8789 | if test "x$LINE" != x ; then | |
8790 | eval "DEFAULT_$LINE" | |
8791 | else | |
8792 | no_cache=1 | |
8793 | fi | |
8794 | ||
8795 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8796 | ||
8797 | fi; | |
8798 | ||
8799 | eval "$ac_cv_use_toolbar" | |
8800 | if test "$no_cache" != 1; then | |
8801 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8802 | fi | |
8803 | ||
8804 | if test "$wxUSE_TOOLBAR" = yes; then | |
8805 | echo "$as_me:$LINENO: result: yes" >&5 | |
8806 | echo "${ECHO_T}yes" >&6 | |
8807 | else | |
8808 | echo "$as_me:$LINENO: result: no" >&5 | |
8809 | echo "${ECHO_T}no" >&6 | |
8810 | fi | |
8811 | ||
8812 | ||
8813 | enablestring= | |
8814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8815 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8816 | no_cache=0 | |
8817 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8818 | if test "${enable_tbarnative+set}" = set; then | |
8819 | enableval="$enable_tbarnative" | |
8820 | ||
8821 | if test "$enableval" = yes; then | |
8822 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8823 | else | |
8824 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8825 | fi | |
8826 | ||
8827 | else | |
8828 | ||
8829 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8830 | if test "x$LINE" != x ; then | |
8831 | eval "DEFAULT_$LINE" | |
8832 | else | |
8833 | no_cache=1 | |
8834 | fi | |
8835 | ||
8836 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8837 | ||
8838 | fi; | |
8839 | ||
8840 | eval "$ac_cv_use_tbarnative" | |
8841 | if test "$no_cache" != 1; then | |
8842 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8843 | fi | |
8844 | ||
8845 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8846 | echo "$as_me:$LINENO: result: yes" >&5 | |
8847 | echo "${ECHO_T}yes" >&6 | |
8848 | else | |
8849 | echo "$as_me:$LINENO: result: no" >&5 | |
8850 | echo "${ECHO_T}no" >&6 | |
8851 | fi | |
8852 | ||
8853 | ||
8854 | enablestring= | |
8855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8856 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8857 | no_cache=0 | |
8858 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8859 | if test "${enable_tbarsmpl+set}" = set; then | |
8860 | enableval="$enable_tbarsmpl" | |
8861 | ||
8862 | if test "$enableval" = yes; then | |
8863 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8864 | else | |
8865 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8866 | fi | |
8867 | ||
8868 | else | |
8869 | ||
8870 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8871 | if test "x$LINE" != x ; then | |
8872 | eval "DEFAULT_$LINE" | |
8873 | else | |
8874 | no_cache=1 | |
8875 | fi | |
8876 | ||
8877 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8878 | ||
8879 | fi; | |
8880 | ||
8881 | eval "$ac_cv_use_tbarsmpl" | |
8882 | if test "$no_cache" != 1; then | |
8883 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8884 | fi | |
8885 | ||
8886 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8887 | echo "$as_me:$LINENO: result: yes" >&5 | |
8888 | echo "${ECHO_T}yes" >&6 | |
8889 | else | |
8890 | echo "$as_me:$LINENO: result: no" >&5 | |
8891 | echo "${ECHO_T}no" >&6 | |
8892 | fi | |
8893 | ||
8894 | ||
8895 | enablestring= | |
8896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8897 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8898 | no_cache=0 | |
8899 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8900 | if test "${enable_treectrl+set}" = set; then | |
8901 | enableval="$enable_treectrl" | |
8902 | ||
8903 | if test "$enableval" = yes; then | |
8904 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8905 | else | |
8906 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8907 | fi | |
8908 | ||
8909 | else | |
8910 | ||
8911 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8912 | if test "x$LINE" != x ; then | |
8913 | eval "DEFAULT_$LINE" | |
8914 | else | |
8915 | no_cache=1 | |
8916 | fi | |
8917 | ||
8918 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8919 | ||
8920 | fi; | |
8921 | ||
8922 | eval "$ac_cv_use_treectrl" | |
8923 | if test "$no_cache" != 1; then | |
8924 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8925 | fi | |
8926 | ||
8927 | if test "$wxUSE_TREECTRL" = yes; then | |
8928 | echo "$as_me:$LINENO: result: yes" >&5 | |
8929 | echo "${ECHO_T}yes" >&6 | |
8930 | else | |
8931 | echo "$as_me:$LINENO: result: no" >&5 | |
8932 | echo "${ECHO_T}no" >&6 | |
8933 | fi | |
8934 | ||
8935 | ||
8936 | enablestring= | |
8937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8938 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8939 | no_cache=0 | |
8940 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8941 | if test "${enable_tipwindow+set}" = set; then | |
8942 | enableval="$enable_tipwindow" | |
8943 | ||
8944 | if test "$enableval" = yes; then | |
8945 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8946 | else | |
8947 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8948 | fi | |
8949 | ||
8950 | else | |
8951 | ||
8952 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8953 | if test "x$LINE" != x ; then | |
8954 | eval "DEFAULT_$LINE" | |
8955 | else | |
8956 | no_cache=1 | |
8957 | fi | |
8958 | ||
8959 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8960 | ||
8961 | fi; | |
8962 | ||
8963 | eval "$ac_cv_use_tipwindow" | |
8964 | if test "$no_cache" != 1; then | |
8965 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8966 | fi | |
8967 | ||
8968 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8969 | echo "$as_me:$LINENO: result: yes" >&5 | |
8970 | echo "${ECHO_T}yes" >&6 | |
8971 | else | |
8972 | echo "$as_me:$LINENO: result: no" >&5 | |
8973 | echo "${ECHO_T}no" >&6 | |
8974 | fi | |
8975 | ||
8976 | ||
8977 | enablestring= | |
8978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8979 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8980 | no_cache=0 | |
8981 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8982 | if test "${enable_popupwin+set}" = set; then | |
8983 | enableval="$enable_popupwin" | |
8984 | ||
8985 | if test "$enableval" = yes; then | |
8986 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8987 | else | |
8988 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8989 | fi | |
8990 | ||
8991 | else | |
8992 | ||
8993 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8994 | if test "x$LINE" != x ; then | |
8995 | eval "DEFAULT_$LINE" | |
8996 | else | |
8997 | no_cache=1 | |
8998 | fi | |
8999 | ||
9000 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9001 | ||
9002 | fi; | |
9003 | ||
9004 | eval "$ac_cv_use_popupwin" | |
9005 | if test "$no_cache" != 1; then | |
9006 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9007 | fi | |
9008 | ||
9009 | if test "$wxUSE_POPUPWIN" = yes; then | |
9010 | echo "$as_me:$LINENO: result: yes" >&5 | |
9011 | echo "${ECHO_T}yes" >&6 | |
9012 | else | |
9013 | echo "$as_me:$LINENO: result: no" >&5 | |
9014 | echo "${ECHO_T}no" >&6 | |
9015 | fi | |
9016 | ||
9017 | ||
9018 | ||
9019 | ||
9020 | enablestring= | |
9021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9022 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9023 | no_cache=0 | |
9024 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9025 | if test "${enable_commondlg+set}" = set; then | |
9026 | enableval="$enable_commondlg" | |
9027 | ||
9028 | if test "$enableval" = yes; then | |
9029 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9030 | else | |
9031 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9032 | fi | |
9033 | ||
9034 | else | |
9035 | ||
9036 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9037 | if test "x$LINE" != x ; then | |
9038 | eval "DEFAULT_$LINE" | |
9039 | else | |
9040 | no_cache=1 | |
9041 | fi | |
9042 | ||
9043 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9044 | ||
9045 | fi; | |
9046 | ||
9047 | eval "$ac_cv_use_commondlg" | |
9048 | if test "$no_cache" != 1; then | |
9049 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9050 | fi | |
9051 | ||
9052 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9053 | echo "$as_me:$LINENO: result: yes" >&5 | |
9054 | echo "${ECHO_T}yes" >&6 | |
9055 | else | |
9056 | echo "$as_me:$LINENO: result: no" >&5 | |
9057 | echo "${ECHO_T}no" >&6 | |
9058 | fi | |
9059 | ||
9060 | ||
9061 | enablestring= | |
9062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9063 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9064 | no_cache=0 | |
9065 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9066 | if test "${enable_choicedlg+set}" = set; then | |
9067 | enableval="$enable_choicedlg" | |
9068 | ||
9069 | if test "$enableval" = yes; then | |
9070 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9071 | else | |
9072 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9073 | fi | |
9074 | ||
9075 | else | |
9076 | ||
9077 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9078 | if test "x$LINE" != x ; then | |
9079 | eval "DEFAULT_$LINE" | |
9080 | else | |
9081 | no_cache=1 | |
9082 | fi | |
9083 | ||
9084 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9085 | ||
9086 | fi; | |
9087 | ||
9088 | eval "$ac_cv_use_choicedlg" | |
9089 | if test "$no_cache" != 1; then | |
9090 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9091 | fi | |
9092 | ||
9093 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9094 | echo "$as_me:$LINENO: result: yes" >&5 | |
9095 | echo "${ECHO_T}yes" >&6 | |
9096 | else | |
9097 | echo "$as_me:$LINENO: result: no" >&5 | |
9098 | echo "${ECHO_T}no" >&6 | |
9099 | fi | |
9100 | ||
9101 | ||
9102 | enablestring= | |
9103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9104 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9105 | no_cache=0 | |
9106 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9107 | if test "${enable_coldlg+set}" = set; then | |
9108 | enableval="$enable_coldlg" | |
9109 | ||
9110 | if test "$enableval" = yes; then | |
9111 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9112 | else | |
9113 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9114 | fi | |
9115 | ||
9116 | else | |
9117 | ||
9118 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9119 | if test "x$LINE" != x ; then | |
9120 | eval "DEFAULT_$LINE" | |
9121 | else | |
9122 | no_cache=1 | |
9123 | fi | |
9124 | ||
9125 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9126 | ||
9127 | fi; | |
9128 | ||
9129 | eval "$ac_cv_use_coldlg" | |
9130 | if test "$no_cache" != 1; then | |
9131 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9132 | fi | |
9133 | ||
9134 | if test "$wxUSE_COLOURDLG" = yes; then | |
9135 | echo "$as_me:$LINENO: result: yes" >&5 | |
9136 | echo "${ECHO_T}yes" >&6 | |
9137 | else | |
9138 | echo "$as_me:$LINENO: result: no" >&5 | |
9139 | echo "${ECHO_T}no" >&6 | |
9140 | fi | |
9141 | ||
9142 | ||
9143 | enablestring= | |
9144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9145 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9146 | no_cache=0 | |
9147 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9148 | if test "${enable_filedlg+set}" = set; then | |
9149 | enableval="$enable_filedlg" | |
9150 | ||
9151 | if test "$enableval" = yes; then | |
9152 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9153 | else | |
9154 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9155 | fi | |
9156 | ||
9157 | else | |
9158 | ||
9159 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9160 | if test "x$LINE" != x ; then | |
9161 | eval "DEFAULT_$LINE" | |
9162 | else | |
9163 | no_cache=1 | |
9164 | fi | |
9165 | ||
9166 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9167 | ||
9168 | fi; | |
9169 | ||
9170 | eval "$ac_cv_use_filedlg" | |
9171 | if test "$no_cache" != 1; then | |
9172 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9173 | fi | |
9174 | ||
9175 | if test "$wxUSE_FILEDLG" = yes; then | |
9176 | echo "$as_me:$LINENO: result: yes" >&5 | |
9177 | echo "${ECHO_T}yes" >&6 | |
9178 | else | |
9179 | echo "$as_me:$LINENO: result: no" >&5 | |
9180 | echo "${ECHO_T}no" >&6 | |
9181 | fi | |
9182 | ||
9183 | ||
9184 | enablestring= | |
9185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9186 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9187 | no_cache=0 | |
9188 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9189 | if test "${enable_finddlg+set}" = set; then | |
9190 | enableval="$enable_finddlg" | |
9191 | ||
9192 | if test "$enableval" = yes; then | |
9193 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9194 | else | |
9195 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9196 | fi | |
9197 | ||
9198 | else | |
9199 | ||
9200 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9201 | if test "x$LINE" != x ; then | |
9202 | eval "DEFAULT_$LINE" | |
9203 | else | |
9204 | no_cache=1 | |
9205 | fi | |
9206 | ||
9207 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9208 | ||
9209 | fi; | |
9210 | ||
9211 | eval "$ac_cv_use_finddlg" | |
9212 | if test "$no_cache" != 1; then | |
9213 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9214 | fi | |
9215 | ||
9216 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9217 | echo "$as_me:$LINENO: result: yes" >&5 | |
9218 | echo "${ECHO_T}yes" >&6 | |
9219 | else | |
9220 | echo "$as_me:$LINENO: result: no" >&5 | |
9221 | echo "${ECHO_T}no" >&6 | |
9222 | fi | |
9223 | ||
9224 | ||
9225 | enablestring= | |
9226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9227 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9228 | no_cache=0 | |
9229 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9230 | if test "${enable_fontdlg+set}" = set; then | |
9231 | enableval="$enable_fontdlg" | |
9232 | ||
9233 | if test "$enableval" = yes; then | |
9234 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9235 | else | |
9236 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9237 | fi | |
9238 | ||
9239 | else | |
9240 | ||
9241 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9242 | if test "x$LINE" != x ; then | |
9243 | eval "DEFAULT_$LINE" | |
9244 | else | |
9245 | no_cache=1 | |
9246 | fi | |
9247 | ||
9248 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9249 | ||
9250 | fi; | |
9251 | ||
9252 | eval "$ac_cv_use_fontdlg" | |
9253 | if test "$no_cache" != 1; then | |
9254 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9255 | fi | |
9256 | ||
9257 | if test "$wxUSE_FONTDLG" = yes; then | |
9258 | echo "$as_me:$LINENO: result: yes" >&5 | |
9259 | echo "${ECHO_T}yes" >&6 | |
9260 | else | |
9261 | echo "$as_me:$LINENO: result: no" >&5 | |
9262 | echo "${ECHO_T}no" >&6 | |
9263 | fi | |
9264 | ||
9265 | ||
9266 | enablestring= | |
9267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9268 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9269 | no_cache=0 | |
9270 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9271 | if test "${enable_dirdlg+set}" = set; then | |
9272 | enableval="$enable_dirdlg" | |
9273 | ||
9274 | if test "$enableval" = yes; then | |
9275 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9276 | else | |
9277 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9278 | fi | |
9279 | ||
9280 | else | |
9281 | ||
9282 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9283 | if test "x$LINE" != x ; then | |
9284 | eval "DEFAULT_$LINE" | |
9285 | else | |
9286 | no_cache=1 | |
9287 | fi | |
9288 | ||
9289 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9290 | ||
9291 | fi; | |
9292 | ||
9293 | eval "$ac_cv_use_dirdlg" | |
9294 | if test "$no_cache" != 1; then | |
9295 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9296 | fi | |
9297 | ||
9298 | if test "$wxUSE_DIRDLG" = yes; then | |
9299 | echo "$as_me:$LINENO: result: yes" >&5 | |
9300 | echo "${ECHO_T}yes" >&6 | |
9301 | else | |
9302 | echo "$as_me:$LINENO: result: no" >&5 | |
9303 | echo "${ECHO_T}no" >&6 | |
9304 | fi | |
9305 | ||
9306 | ||
9307 | enablestring= | |
9308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9309 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9310 | no_cache=0 | |
9311 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9312 | if test "${enable_msgdlg+set}" = set; then | |
9313 | enableval="$enable_msgdlg" | |
9314 | ||
9315 | if test "$enableval" = yes; then | |
9316 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9317 | else | |
9318 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9319 | fi | |
9320 | ||
9321 | else | |
9322 | ||
9323 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9324 | if test "x$LINE" != x ; then | |
9325 | eval "DEFAULT_$LINE" | |
9326 | else | |
9327 | no_cache=1 | |
9328 | fi | |
9329 | ||
9330 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9331 | ||
9332 | fi; | |
9333 | ||
9334 | eval "$ac_cv_use_msgdlg" | |
9335 | if test "$no_cache" != 1; then | |
9336 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9337 | fi | |
9338 | ||
9339 | if test "$wxUSE_MSGDLG" = yes; then | |
9340 | echo "$as_me:$LINENO: result: yes" >&5 | |
9341 | echo "${ECHO_T}yes" >&6 | |
9342 | else | |
9343 | echo "$as_me:$LINENO: result: no" >&5 | |
9344 | echo "${ECHO_T}no" >&6 | |
9345 | fi | |
9346 | ||
9347 | ||
9348 | enablestring= | |
9349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9350 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9351 | no_cache=0 | |
9352 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9353 | if test "${enable_numberdlg+set}" = set; then | |
9354 | enableval="$enable_numberdlg" | |
9355 | ||
9356 | if test "$enableval" = yes; then | |
9357 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9358 | else | |
9359 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9360 | fi | |
9361 | ||
9362 | else | |
9363 | ||
9364 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9365 | if test "x$LINE" != x ; then | |
9366 | eval "DEFAULT_$LINE" | |
9367 | else | |
9368 | no_cache=1 | |
9369 | fi | |
9370 | ||
9371 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9372 | ||
9373 | fi; | |
9374 | ||
9375 | eval "$ac_cv_use_numberdlg" | |
9376 | if test "$no_cache" != 1; then | |
9377 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9378 | fi | |
9379 | ||
9380 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9381 | echo "$as_me:$LINENO: result: yes" >&5 | |
9382 | echo "${ECHO_T}yes" >&6 | |
9383 | else | |
9384 | echo "$as_me:$LINENO: result: no" >&5 | |
9385 | echo "${ECHO_T}no" >&6 | |
9386 | fi | |
9387 | ||
9388 | ||
9389 | enablestring= | |
9390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9391 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9392 | no_cache=0 | |
9393 | # Check whether --enable-splash or --disable-splash was given. | |
9394 | if test "${enable_splash+set}" = set; then | |
9395 | enableval="$enable_splash" | |
9396 | ||
9397 | if test "$enableval" = yes; then | |
9398 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9399 | else | |
9400 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9401 | fi | |
9402 | ||
9403 | else | |
9404 | ||
9405 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9406 | if test "x$LINE" != x ; then | |
9407 | eval "DEFAULT_$LINE" | |
9408 | else | |
9409 | no_cache=1 | |
9410 | fi | |
9411 | ||
9412 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9413 | ||
9414 | fi; | |
9415 | ||
9416 | eval "$ac_cv_use_splash" | |
9417 | if test "$no_cache" != 1; then | |
9418 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9419 | fi | |
9420 | ||
9421 | if test "$wxUSE_SPLASH" = yes; then | |
9422 | echo "$as_me:$LINENO: result: yes" >&5 | |
9423 | echo "${ECHO_T}yes" >&6 | |
9424 | else | |
9425 | echo "$as_me:$LINENO: result: no" >&5 | |
9426 | echo "${ECHO_T}no" >&6 | |
9427 | fi | |
9428 | ||
9429 | ||
9430 | enablestring= | |
9431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9432 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9433 | no_cache=0 | |
9434 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9435 | if test "${enable_textdlg+set}" = set; then | |
9436 | enableval="$enable_textdlg" | |
9437 | ||
9438 | if test "$enableval" = yes; then | |
9439 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9440 | else | |
9441 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9442 | fi | |
9443 | ||
9444 | else | |
9445 | ||
9446 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9447 | if test "x$LINE" != x ; then | |
9448 | eval "DEFAULT_$LINE" | |
9449 | else | |
9450 | no_cache=1 | |
9451 | fi | |
9452 | ||
9453 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9454 | ||
9455 | fi; | |
9456 | ||
9457 | eval "$ac_cv_use_textdlg" | |
9458 | if test "$no_cache" != 1; then | |
9459 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9460 | fi | |
9461 | ||
9462 | if test "$wxUSE_TEXTDLG" = yes; then | |
9463 | echo "$as_me:$LINENO: result: yes" >&5 | |
9464 | echo "${ECHO_T}yes" >&6 | |
9465 | else | |
9466 | echo "$as_me:$LINENO: result: no" >&5 | |
9467 | echo "${ECHO_T}no" >&6 | |
9468 | fi | |
9469 | ||
9470 | ||
9471 | enablestring= | |
9472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9473 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9474 | no_cache=0 | |
9475 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9476 | if test "${enable_tipdlg+set}" = set; then | |
9477 | enableval="$enable_tipdlg" | |
9478 | ||
9479 | if test "$enableval" = yes; then | |
9480 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9481 | else | |
9482 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9483 | fi | |
9484 | ||
9485 | else | |
9486 | ||
9487 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9488 | if test "x$LINE" != x ; then | |
9489 | eval "DEFAULT_$LINE" | |
9490 | else | |
9491 | no_cache=1 | |
9492 | fi | |
9493 | ||
9494 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9495 | ||
9496 | fi; | |
9497 | ||
9498 | eval "$ac_cv_use_tipdlg" | |
9499 | if test "$no_cache" != 1; then | |
9500 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9501 | fi | |
9502 | ||
9503 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9504 | echo "$as_me:$LINENO: result: yes" >&5 | |
9505 | echo "${ECHO_T}yes" >&6 | |
9506 | else | |
9507 | echo "$as_me:$LINENO: result: no" >&5 | |
9508 | echo "${ECHO_T}no" >&6 | |
9509 | fi | |
9510 | ||
9511 | ||
9512 | enablestring= | |
9513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9514 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9515 | no_cache=0 | |
9516 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9517 | if test "${enable_progressdlg+set}" = set; then | |
9518 | enableval="$enable_progressdlg" | |
9519 | ||
9520 | if test "$enableval" = yes; then | |
9521 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9522 | else | |
9523 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9524 | fi | |
9525 | ||
9526 | else | |
9527 | ||
9528 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9529 | if test "x$LINE" != x ; then | |
9530 | eval "DEFAULT_$LINE" | |
9531 | else | |
9532 | no_cache=1 | |
9533 | fi | |
9534 | ||
9535 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9536 | ||
9537 | fi; | |
9538 | ||
9539 | eval "$ac_cv_use_progressdlg" | |
9540 | if test "$no_cache" != 1; then | |
9541 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9542 | fi | |
9543 | ||
9544 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9545 | echo "$as_me:$LINENO: result: yes" >&5 | |
9546 | echo "${ECHO_T}yes" >&6 | |
9547 | else | |
9548 | echo "$as_me:$LINENO: result: no" >&5 | |
9549 | echo "${ECHO_T}no" >&6 | |
9550 | fi | |
9551 | ||
9552 | ||
9553 | enablestring= | |
9554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9555 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9556 | no_cache=0 | |
9557 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9558 | if test "${enable_wizarddlg+set}" = set; then | |
9559 | enableval="$enable_wizarddlg" | |
9560 | ||
9561 | if test "$enableval" = yes; then | |
9562 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9563 | else | |
9564 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9565 | fi | |
9566 | ||
9567 | else | |
9568 | ||
9569 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9570 | if test "x$LINE" != x ; then | |
9571 | eval "DEFAULT_$LINE" | |
9572 | else | |
9573 | no_cache=1 | |
9574 | fi | |
9575 | ||
9576 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9577 | ||
9578 | fi; | |
9579 | ||
9580 | eval "$ac_cv_use_wizarddlg" | |
9581 | if test "$no_cache" != 1; then | |
9582 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9583 | fi | |
9584 | ||
9585 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9586 | echo "$as_me:$LINENO: result: yes" >&5 | |
9587 | echo "${ECHO_T}yes" >&6 | |
9588 | else | |
9589 | echo "$as_me:$LINENO: result: no" >&5 | |
9590 | echo "${ECHO_T}no" >&6 | |
9591 | fi | |
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | enablestring= | |
9597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9598 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9599 | no_cache=0 | |
9600 | # Check whether --enable-menus or --disable-menus was given. | |
9601 | if test "${enable_menus+set}" = set; then | |
9602 | enableval="$enable_menus" | |
9603 | ||
9604 | if test "$enableval" = yes; then | |
9605 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9606 | else | |
9607 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9608 | fi | |
9609 | ||
9610 | else | |
9611 | ||
9612 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9613 | if test "x$LINE" != x ; then | |
9614 | eval "DEFAULT_$LINE" | |
9615 | else | |
9616 | no_cache=1 | |
9617 | fi | |
9618 | ||
9619 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9620 | ||
9621 | fi; | |
9622 | ||
9623 | eval "$ac_cv_use_menus" | |
9624 | if test "$no_cache" != 1; then | |
9625 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9626 | fi | |
9627 | ||
9628 | if test "$wxUSE_MENUS" = yes; then | |
9629 | echo "$as_me:$LINENO: result: yes" >&5 | |
9630 | echo "${ECHO_T}yes" >&6 | |
9631 | else | |
9632 | echo "$as_me:$LINENO: result: no" >&5 | |
9633 | echo "${ECHO_T}no" >&6 | |
9634 | fi | |
9635 | ||
9636 | ||
9637 | enablestring= | |
9638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9639 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9640 | no_cache=0 | |
9641 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9642 | if test "${enable_miniframe+set}" = set; then | |
9643 | enableval="$enable_miniframe" | |
9644 | ||
9645 | if test "$enableval" = yes; then | |
9646 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9647 | else | |
9648 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9649 | fi | |
9650 | ||
9651 | else | |
9652 | ||
9653 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9654 | if test "x$LINE" != x ; then | |
9655 | eval "DEFAULT_$LINE" | |
9656 | else | |
9657 | no_cache=1 | |
9658 | fi | |
9659 | ||
9660 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9661 | ||
9662 | fi; | |
9663 | ||
9664 | eval "$ac_cv_use_miniframe" | |
9665 | if test "$no_cache" != 1; then | |
9666 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9667 | fi | |
9668 | ||
9669 | if test "$wxUSE_MINIFRAME" = yes; then | |
9670 | echo "$as_me:$LINENO: result: yes" >&5 | |
9671 | echo "${ECHO_T}yes" >&6 | |
9672 | else | |
9673 | echo "$as_me:$LINENO: result: no" >&5 | |
9674 | echo "${ECHO_T}no" >&6 | |
9675 | fi | |
9676 | ||
9677 | ||
9678 | enablestring= | |
9679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9680 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9681 | no_cache=0 | |
9682 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9683 | if test "${enable_tooltips+set}" = set; then | |
9684 | enableval="$enable_tooltips" | |
9685 | ||
9686 | if test "$enableval" = yes; then | |
9687 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9688 | else | |
9689 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9690 | fi | |
9691 | ||
9692 | else | |
9693 | ||
9694 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9695 | if test "x$LINE" != x ; then | |
9696 | eval "DEFAULT_$LINE" | |
9697 | else | |
9698 | no_cache=1 | |
9699 | fi | |
9700 | ||
9701 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9702 | ||
9703 | fi; | |
9704 | ||
9705 | eval "$ac_cv_use_tooltips" | |
9706 | if test "$no_cache" != 1; then | |
9707 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9708 | fi | |
9709 | ||
9710 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9711 | echo "$as_me:$LINENO: result: yes" >&5 | |
9712 | echo "${ECHO_T}yes" >&6 | |
9713 | else | |
9714 | echo "$as_me:$LINENO: result: no" >&5 | |
9715 | echo "${ECHO_T}no" >&6 | |
9716 | fi | |
9717 | ||
9718 | ||
9719 | enablestring= | |
9720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9721 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9722 | no_cache=0 | |
9723 | # Check whether --enable-splines or --disable-splines was given. | |
9724 | if test "${enable_splines+set}" = set; then | |
9725 | enableval="$enable_splines" | |
9726 | ||
9727 | if test "$enableval" = yes; then | |
9728 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9729 | else | |
9730 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9731 | fi | |
9732 | ||
9733 | else | |
9734 | ||
9735 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9736 | if test "x$LINE" != x ; then | |
9737 | eval "DEFAULT_$LINE" | |
9738 | else | |
9739 | no_cache=1 | |
9740 | fi | |
9741 | ||
9742 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9743 | ||
9744 | fi; | |
9745 | ||
9746 | eval "$ac_cv_use_splines" | |
9747 | if test "$no_cache" != 1; then | |
9748 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9749 | fi | |
9750 | ||
9751 | if test "$wxUSE_SPLINES" = yes; then | |
9752 | echo "$as_me:$LINENO: result: yes" >&5 | |
9753 | echo "${ECHO_T}yes" >&6 | |
9754 | else | |
9755 | echo "$as_me:$LINENO: result: no" >&5 | |
9756 | echo "${ECHO_T}no" >&6 | |
9757 | fi | |
9758 | ||
9759 | ||
fbe2ca43 SN |
9760 | enablestring= |
9761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9762 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9763 | no_cache=0 | |
9764 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9765 | if test "${enable_mousewheel+set}" = set; then | |
9766 | enableval="$enable_mousewheel" | |
9767 | ||
9768 | if test "$enableval" = yes; then | |
9769 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
9770 | else | |
9771 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
9772 | fi | |
9773 | ||
9774 | else | |
9775 | ||
9776 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
9777 | if test "x$LINE" != x ; then | |
9778 | eval "DEFAULT_$LINE" | |
9779 | else | |
9780 | no_cache=1 | |
9781 | fi | |
9782 | ||
9783 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
9784 | ||
9785 | fi; | |
9786 | ||
9787 | eval "$ac_cv_use_mousewheel" | |
9788 | if test "$no_cache" != 1; then | |
9789 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
9790 | fi | |
9791 | ||
9792 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
9793 | echo "$as_me:$LINENO: result: yes" >&5 | |
9794 | echo "${ECHO_T}yes" >&6 | |
9795 | else | |
9796 | echo "$as_me:$LINENO: result: no" >&5 | |
9797 | echo "${ECHO_T}no" >&6 | |
9798 | fi | |
9799 | ||
9800 | ||
a848cd7e SC |
9801 | enablestring= |
9802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9803 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9804 | no_cache=0 | |
9805 | # Check whether --enable-validators or --disable-validators was given. | |
9806 | if test "${enable_validators+set}" = set; then | |
9807 | enableval="$enable_validators" | |
9808 | ||
9809 | if test "$enableval" = yes; then | |
9810 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9811 | else | |
9812 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9813 | fi | |
9814 | ||
9815 | else | |
9816 | ||
9817 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9818 | if test "x$LINE" != x ; then | |
9819 | eval "DEFAULT_$LINE" | |
9820 | else | |
9821 | no_cache=1 | |
9822 | fi | |
9823 | ||
9824 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9825 | ||
9826 | fi; | |
9827 | ||
9828 | eval "$ac_cv_use_validators" | |
9829 | if test "$no_cache" != 1; then | |
9830 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9831 | fi | |
9832 | ||
9833 | if test "$wxUSE_VALIDATORS" = yes; then | |
9834 | echo "$as_me:$LINENO: result: yes" >&5 | |
9835 | echo "${ECHO_T}yes" >&6 | |
9836 | else | |
9837 | echo "$as_me:$LINENO: result: no" >&5 | |
9838 | echo "${ECHO_T}no" >&6 | |
9839 | fi | |
9840 | ||
9841 | ||
9842 | enablestring= | |
9843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9844 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9845 | no_cache=0 | |
9846 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9847 | if test "${enable_busyinfo+set}" = set; then | |
9848 | enableval="$enable_busyinfo" | |
9849 | ||
9850 | if test "$enableval" = yes; then | |
9851 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9852 | else | |
9853 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9854 | fi | |
9855 | ||
9856 | else | |
9857 | ||
9858 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9859 | if test "x$LINE" != x ; then | |
9860 | eval "DEFAULT_$LINE" | |
9861 | else | |
9862 | no_cache=1 | |
9863 | fi | |
9864 | ||
9865 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9866 | ||
9867 | fi; | |
9868 | ||
9869 | eval "$ac_cv_use_busyinfo" | |
9870 | if test "$no_cache" != 1; then | |
9871 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9872 | fi | |
9873 | ||
9874 | if test "$wxUSE_BUSYINFO" = yes; then | |
9875 | echo "$as_me:$LINENO: result: yes" >&5 | |
9876 | echo "${ECHO_T}yes" >&6 | |
9877 | else | |
9878 | echo "$as_me:$LINENO: result: no" >&5 | |
9879 | echo "${ECHO_T}no" >&6 | |
9880 | fi | |
9881 | ||
9882 | ||
9883 | enablestring= | |
9884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9885 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9886 | no_cache=0 | |
9887 | # Check whether --enable-joystick or --disable-joystick was given. | |
9888 | if test "${enable_joystick+set}" = set; then | |
9889 | enableval="$enable_joystick" | |
9890 | ||
9891 | if test "$enableval" = yes; then | |
9892 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9893 | else | |
9894 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9895 | fi | |
9896 | ||
9897 | else | |
9898 | ||
9899 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9900 | if test "x$LINE" != x ; then | |
9901 | eval "DEFAULT_$LINE" | |
9902 | else | |
9903 | no_cache=1 | |
9904 | fi | |
9905 | ||
9906 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9907 | ||
9908 | fi; | |
9909 | ||
9910 | eval "$ac_cv_use_joystick" | |
9911 | if test "$no_cache" != 1; then | |
9912 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9913 | fi | |
9914 | ||
9915 | if test "$wxUSE_JOYSTICK" = yes; then | |
9916 | echo "$as_me:$LINENO: result: yes" >&5 | |
9917 | echo "${ECHO_T}yes" >&6 | |
9918 | else | |
9919 | echo "$as_me:$LINENO: result: no" >&5 | |
9920 | echo "${ECHO_T}no" >&6 | |
9921 | fi | |
9922 | ||
9923 | ||
9924 | enablestring= | |
9925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9926 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9927 | no_cache=0 | |
9928 | # Check whether --enable-metafile or --disable-metafile was given. | |
9929 | if test "${enable_metafile+set}" = set; then | |
9930 | enableval="$enable_metafile" | |
9931 | ||
9932 | if test "$enableval" = yes; then | |
9933 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9934 | else | |
9935 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9936 | fi | |
9937 | ||
9938 | else | |
9939 | ||
9940 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9941 | if test "x$LINE" != x ; then | |
9942 | eval "DEFAULT_$LINE" | |
9943 | else | |
9944 | no_cache=1 | |
9945 | fi | |
9946 | ||
9947 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9948 | ||
9949 | fi; | |
9950 | ||
9951 | eval "$ac_cv_use_metafile" | |
9952 | if test "$no_cache" != 1; then | |
9953 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9954 | fi | |
9955 | ||
9956 | if test "$wxUSE_METAFILE" = yes; then | |
9957 | echo "$as_me:$LINENO: result: yes" >&5 | |
9958 | echo "${ECHO_T}yes" >&6 | |
9959 | else | |
9960 | echo "$as_me:$LINENO: result: no" >&5 | |
9961 | echo "${ECHO_T}no" >&6 | |
9962 | fi | |
9963 | ||
9964 | ||
9965 | enablestring= | |
9966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9967 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9968 | no_cache=0 | |
9969 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9970 | if test "${enable_dragimage+set}" = set; then | |
9971 | enableval="$enable_dragimage" | |
9972 | ||
9973 | if test "$enableval" = yes; then | |
9974 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9975 | else | |
9976 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9977 | fi | |
9978 | ||
9979 | else | |
9980 | ||
9981 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9982 | if test "x$LINE" != x ; then | |
9983 | eval "DEFAULT_$LINE" | |
9984 | else | |
9985 | no_cache=1 | |
9986 | fi | |
9987 | ||
9988 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9989 | ||
9990 | fi; | |
9991 | ||
9992 | eval "$ac_cv_use_dragimage" | |
9993 | if test "$no_cache" != 1; then | |
9994 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9995 | fi | |
9996 | ||
9997 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9998 | echo "$as_me:$LINENO: result: yes" >&5 | |
9999 | echo "${ECHO_T}yes" >&6 | |
10000 | else | |
10001 | echo "$as_me:$LINENO: result: no" >&5 | |
10002 | echo "${ECHO_T}no" >&6 | |
10003 | fi | |
10004 | ||
10005 | ||
10006 | enablestring= | |
10007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10008 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10009 | no_cache=0 | |
10010 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10011 | if test "${enable_accessibility+set}" = set; then | |
10012 | enableval="$enable_accessibility" | |
10013 | ||
10014 | if test "$enableval" = yes; then | |
10015 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10016 | else | |
10017 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10018 | fi | |
10019 | ||
10020 | else | |
10021 | ||
10022 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10023 | if test "x$LINE" != x ; then | |
10024 | eval "DEFAULT_$LINE" | |
10025 | else | |
10026 | no_cache=1 | |
10027 | fi | |
10028 | ||
10029 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10030 | ||
10031 | fi; | |
10032 | ||
10033 | eval "$ac_cv_use_accessibility" | |
10034 | if test "$no_cache" != 1; then | |
10035 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10036 | fi | |
10037 | ||
10038 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10039 | echo "$as_me:$LINENO: result: yes" >&5 | |
10040 | echo "${ECHO_T}yes" >&6 | |
10041 | else | |
10042 | echo "$as_me:$LINENO: result: no" >&5 | |
10043 | echo "${ECHO_T}no" >&6 | |
10044 | fi | |
10045 | ||
10046 | ||
38b4a946 VZ |
10047 | if test "$wxUSE_MSW" = "1"; then |
10048 | ||
10049 | enablestring= | |
10050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10051 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10052 | no_cache=0 | |
10053 | # Check whether --enable-dccache or --disable-dccache was given. | |
10054 | if test "${enable_dccache+set}" = set; then | |
10055 | enableval="$enable_dccache" | |
10056 | ||
10057 | if test "$enableval" = yes; then | |
10058 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10059 | else | |
10060 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10061 | fi | |
10062 | ||
10063 | else | |
10064 | ||
10065 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10066 | if test "x$LINE" != x ; then | |
10067 | eval "DEFAULT_$LINE" | |
10068 | else | |
10069 | no_cache=1 | |
10070 | fi | |
10071 | ||
10072 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10073 | ||
10074 | fi; | |
10075 | ||
10076 | eval "$ac_cv_use_dccache" | |
10077 | if test "$no_cache" != 1; then | |
10078 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10079 | fi | |
10080 | ||
10081 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10082 | echo "$as_me:$LINENO: result: yes" >&5 | |
10083 | echo "${ECHO_T}yes" >&6 | |
10084 | else | |
10085 | echo "$as_me:$LINENO: result: no" >&5 | |
10086 | echo "${ECHO_T}no" >&6 | |
10087 | fi | |
10088 | ||
10089 | fi | |
10090 | ||
a848cd7e SC |
10091 | |
10092 | ||
10093 | enablestring= | |
10094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10095 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10096 | no_cache=0 | |
10097 | # Check whether --enable-palette or --disable-palette was given. | |
10098 | if test "${enable_palette+set}" = set; then | |
10099 | enableval="$enable_palette" | |
10100 | ||
10101 | if test "$enableval" = yes; then | |
10102 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10103 | else | |
10104 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10105 | fi | |
10106 | ||
10107 | else | |
10108 | ||
10109 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10110 | if test "x$LINE" != x ; then | |
10111 | eval "DEFAULT_$LINE" | |
10112 | else | |
10113 | no_cache=1 | |
10114 | fi | |
10115 | ||
10116 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10117 | ||
10118 | fi; | |
10119 | ||
10120 | eval "$ac_cv_use_palette" | |
10121 | if test "$no_cache" != 1; then | |
10122 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10123 | fi | |
10124 | ||
10125 | if test "$wxUSE_PALETTE" = yes; then | |
10126 | echo "$as_me:$LINENO: result: yes" >&5 | |
10127 | echo "${ECHO_T}yes" >&6 | |
10128 | else | |
10129 | echo "$as_me:$LINENO: result: no" >&5 | |
10130 | echo "${ECHO_T}no" >&6 | |
10131 | fi | |
10132 | ||
10133 | ||
10134 | enablestring= | |
10135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10136 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10137 | no_cache=0 | |
10138 | # Check whether --enable-image or --disable-image was given. | |
10139 | if test "${enable_image+set}" = set; then | |
10140 | enableval="$enable_image" | |
10141 | ||
10142 | if test "$enableval" = yes; then | |
10143 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10144 | else | |
10145 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10146 | fi | |
10147 | ||
10148 | else | |
10149 | ||
10150 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10151 | if test "x$LINE" != x ; then | |
10152 | eval "DEFAULT_$LINE" | |
10153 | else | |
10154 | no_cache=1 | |
10155 | fi | |
10156 | ||
10157 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10158 | ||
10159 | fi; | |
10160 | ||
10161 | eval "$ac_cv_use_image" | |
10162 | if test "$no_cache" != 1; then | |
10163 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10164 | fi | |
10165 | ||
10166 | if test "$wxUSE_IMAGE" = yes; then | |
10167 | echo "$as_me:$LINENO: result: yes" >&5 | |
10168 | echo "${ECHO_T}yes" >&6 | |
10169 | else | |
10170 | echo "$as_me:$LINENO: result: no" >&5 | |
10171 | echo "${ECHO_T}no" >&6 | |
10172 | fi | |
10173 | ||
10174 | ||
10175 | enablestring= | |
10176 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10177 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10178 | no_cache=0 | |
10179 | # Check whether --enable-gif or --disable-gif was given. | |
10180 | if test "${enable_gif+set}" = set; then | |
10181 | enableval="$enable_gif" | |
10182 | ||
10183 | if test "$enableval" = yes; then | |
10184 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10185 | else | |
10186 | ac_cv_use_gif='wxUSE_GIF=no' | |
10187 | fi | |
10188 | ||
10189 | else | |
10190 | ||
10191 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10192 | if test "x$LINE" != x ; then | |
10193 | eval "DEFAULT_$LINE" | |
10194 | else | |
10195 | no_cache=1 | |
10196 | fi | |
10197 | ||
10198 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10199 | ||
10200 | fi; | |
10201 | ||
10202 | eval "$ac_cv_use_gif" | |
10203 | if test "$no_cache" != 1; then | |
10204 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10205 | fi | |
10206 | ||
10207 | if test "$wxUSE_GIF" = yes; then | |
10208 | echo "$as_me:$LINENO: result: yes" >&5 | |
10209 | echo "${ECHO_T}yes" >&6 | |
10210 | else | |
10211 | echo "$as_me:$LINENO: result: no" >&5 | |
10212 | echo "${ECHO_T}no" >&6 | |
10213 | fi | |
10214 | ||
10215 | ||
10216 | enablestring= | |
10217 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10218 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10219 | no_cache=0 | |
10220 | # Check whether --enable-pcx or --disable-pcx was given. | |
10221 | if test "${enable_pcx+set}" = set; then | |
10222 | enableval="$enable_pcx" | |
10223 | ||
10224 | if test "$enableval" = yes; then | |
10225 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10226 | else | |
10227 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10228 | fi | |
10229 | ||
10230 | else | |
10231 | ||
10232 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10233 | if test "x$LINE" != x ; then | |
10234 | eval "DEFAULT_$LINE" | |
10235 | else | |
10236 | no_cache=1 | |
10237 | fi | |
10238 | ||
10239 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10240 | ||
10241 | fi; | |
10242 | ||
10243 | eval "$ac_cv_use_pcx" | |
10244 | if test "$no_cache" != 1; then | |
10245 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10246 | fi | |
10247 | ||
10248 | if test "$wxUSE_PCX" = yes; then | |
10249 | echo "$as_me:$LINENO: result: yes" >&5 | |
10250 | echo "${ECHO_T}yes" >&6 | |
10251 | else | |
10252 | echo "$as_me:$LINENO: result: no" >&5 | |
10253 | echo "${ECHO_T}no" >&6 | |
10254 | fi | |
10255 | ||
10256 | ||
10257 | enablestring= | |
10258 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10259 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10260 | no_cache=0 | |
10261 | # Check whether --enable-iff or --disable-iff was given. | |
10262 | if test "${enable_iff+set}" = set; then | |
10263 | enableval="$enable_iff" | |
10264 | ||
10265 | if test "$enableval" = yes; then | |
10266 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10267 | else | |
10268 | ac_cv_use_iff='wxUSE_IFF=no' | |
10269 | fi | |
10270 | ||
10271 | else | |
10272 | ||
10273 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10274 | if test "x$LINE" != x ; then | |
10275 | eval "DEFAULT_$LINE" | |
10276 | else | |
10277 | no_cache=1 | |
10278 | fi | |
10279 | ||
10280 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10281 | ||
10282 | fi; | |
10283 | ||
10284 | eval "$ac_cv_use_iff" | |
10285 | if test "$no_cache" != 1; then | |
10286 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10287 | fi | |
10288 | ||
10289 | if test "$wxUSE_IFF" = yes; then | |
10290 | echo "$as_me:$LINENO: result: yes" >&5 | |
10291 | echo "${ECHO_T}yes" >&6 | |
10292 | else | |
10293 | echo "$as_me:$LINENO: result: no" >&5 | |
10294 | echo "${ECHO_T}no" >&6 | |
10295 | fi | |
10296 | ||
10297 | ||
10298 | enablestring= | |
10299 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10300 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10301 | no_cache=0 | |
10302 | # Check whether --enable-pnm or --disable-pnm was given. | |
10303 | if test "${enable_pnm+set}" = set; then | |
10304 | enableval="$enable_pnm" | |
10305 | ||
10306 | if test "$enableval" = yes; then | |
10307 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10308 | else | |
10309 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10310 | fi | |
10311 | ||
10312 | else | |
10313 | ||
10314 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10315 | if test "x$LINE" != x ; then | |
10316 | eval "DEFAULT_$LINE" | |
10317 | else | |
10318 | no_cache=1 | |
10319 | fi | |
10320 | ||
10321 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10322 | ||
10323 | fi; | |
10324 | ||
10325 | eval "$ac_cv_use_pnm" | |
10326 | if test "$no_cache" != 1; then | |
10327 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10328 | fi | |
10329 | ||
10330 | if test "$wxUSE_PNM" = yes; then | |
10331 | echo "$as_me:$LINENO: result: yes" >&5 | |
10332 | echo "${ECHO_T}yes" >&6 | |
10333 | else | |
10334 | echo "$as_me:$LINENO: result: no" >&5 | |
10335 | echo "${ECHO_T}no" >&6 | |
10336 | fi | |
10337 | ||
10338 | ||
10339 | enablestring= | |
10340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10341 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10342 | no_cache=0 | |
10343 | # Check whether --enable-xpm or --disable-xpm was given. | |
10344 | if test "${enable_xpm+set}" = set; then | |
10345 | enableval="$enable_xpm" | |
10346 | ||
10347 | if test "$enableval" = yes; then | |
10348 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10349 | else | |
10350 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10351 | fi | |
10352 | ||
10353 | else | |
10354 | ||
10355 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10356 | if test "x$LINE" != x ; then | |
10357 | eval "DEFAULT_$LINE" | |
10358 | else | |
10359 | no_cache=1 | |
10360 | fi | |
10361 | ||
10362 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10363 | ||
10364 | fi; | |
10365 | ||
10366 | eval "$ac_cv_use_xpm" | |
10367 | if test "$no_cache" != 1; then | |
10368 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10369 | fi | |
10370 | ||
10371 | if test "$wxUSE_XPM" = yes; then | |
10372 | echo "$as_me:$LINENO: result: yes" >&5 | |
10373 | echo "${ECHO_T}yes" >&6 | |
10374 | else | |
10375 | echo "$as_me:$LINENO: result: no" >&5 | |
10376 | echo "${ECHO_T}no" >&6 | |
10377 | fi | |
10378 | ||
10379 | ||
10380 | enablestring= | |
10381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10382 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10383 | no_cache=0 | |
10384 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10385 | if test "${enable_ico_cur+set}" = set; then | |
10386 | enableval="$enable_ico_cur" | |
10387 | ||
10388 | if test "$enableval" = yes; then | |
10389 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10390 | else | |
10391 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10392 | fi | |
10393 | ||
10394 | else | |
10395 | ||
10396 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10397 | if test "x$LINE" != x ; then | |
10398 | eval "DEFAULT_$LINE" | |
10399 | else | |
10400 | no_cache=1 | |
10401 | fi | |
10402 | ||
10403 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10404 | ||
10405 | fi; | |
10406 | ||
10407 | eval "$ac_cv_use_ico_cur" | |
10408 | if test "$no_cache" != 1; then | |
10409 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10410 | fi | |
10411 | ||
10412 | if test "$wxUSE_ICO_CUR" = yes; then | |
10413 | echo "$as_me:$LINENO: result: yes" >&5 | |
10414 | echo "${ECHO_T}yes" >&6 | |
10415 | else | |
10416 | echo "$as_me:$LINENO: result: no" >&5 | |
10417 | echo "${ECHO_T}no" >&6 | |
10418 | fi | |
10419 | ||
10420 | ||
10421 | fi | |
10422 | ||
10423 | ||
10424 | ||
ceec2216 RL |
10425 | # Check whether --with-flavour or --without-flavour was given. |
10426 | if test "${with_flavour+set}" = set; then | |
10427 | withval="$with_flavour" | |
10428 | WX_FLAVOUR="$withval" | |
10429 | fi; | |
10430 | ||
10431 | ||
10432 | ||
a848cd7e SC |
10433 | enablestring= |
10434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10435 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10436 | no_cache=0 | |
10437 | # Check whether --enable-official_build or --disable-official_build was given. | |
10438 | if test "${enable_official_build+set}" = set; then | |
10439 | enableval="$enable_official_build" | |
10440 | ||
10441 | if test "$enableval" = yes; then | |
10442 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10443 | else | |
10444 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10445 | fi | |
10446 | ||
10447 | else | |
10448 | ||
10449 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10450 | if test "x$LINE" != x ; then | |
10451 | eval "DEFAULT_$LINE" | |
10452 | else | |
10453 | no_cache=1 | |
10454 | fi | |
10455 | ||
10456 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10457 | ||
10458 | fi; | |
10459 | ||
10460 | eval "$ac_cv_use_official_build" | |
10461 | if test "$no_cache" != 1; then | |
10462 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10463 | fi | |
10464 | ||
10465 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10466 | echo "$as_me:$LINENO: result: yes" >&5 | |
10467 | echo "${ECHO_T}yes" >&6 | |
10468 | else | |
10469 | echo "$as_me:$LINENO: result: no" >&5 | |
10470 | echo "${ECHO_T}no" >&6 | |
10471 | fi | |
10472 | ||
10473 | # Check whether --enable-vendor or --disable-vendor was given. | |
10474 | if test "${enable_vendor+set}" = set; then | |
10475 | enableval="$enable_vendor" | |
10476 | VENDOR="$enableval" | |
10477 | fi; | |
10478 | if test "x$VENDOR" = "x"; then | |
10479 | VENDOR="custom" | |
10480 | fi | |
10481 | ||
a848cd7e SC |
10482 | |
10483 | ||
10484 | ||
10485 | echo "saving argument cache $wx_arg_cache_file" | |
10486 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10487 | ||
10488 | ||
10489 | ||
10490 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10491 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10492 | ||
10493 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10494 | if test "$wxUSE_WINE" = "yes"; then | |
10495 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10496 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10497 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10498 | wxUSE_SHARED=no | |
10499 | fi | |
10500 | ||
f597b41c | 10501 | |
a848cd7e SC |
10502 | if test "$wxUSE_GUI" = "yes"; then |
10503 | ||
10504 | if test "$USE_BEOS" = 1; then | |
10505 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10506 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10507 | { (exit 1); exit 1; }; } | |
10508 | fi | |
10509 | ||
10510 | if test "$TOOLKIT_GIVEN" = 1; then | |
10511 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10512 | var=wxUSE_$toolkit | |
10513 | eval "value=\$${var}" | |
f34ca037 MW |
10514 | if test "x$value" = "xno"; then |
10515 | eval "$var=0" | |
10516 | elif test "x$value" != "x"; then | |
10517 | eval "$var=1" | |
10518 | fi | |
10519 | ||
10520 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10521 | eval "wx${toolkit}_VERSION=$value" | |
10522 | fi | |
a848cd7e SC |
10523 | done |
10524 | else | |
10525 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10526 | if test "$has_toolkit_in_cache" != 1; then | |
10527 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10528 | else | |
10529 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10530 | |
10531 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10532 | if test "x$version" != "x"; then | |
10533 | eval "wx${toolkit}_VERSION=$version" | |
10534 | fi | |
a848cd7e SC |
10535 | fi |
10536 | eval "wxUSE_$toolkit=\$${var}" | |
10537 | done | |
10538 | fi | |
10539 | ||
10540 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10541 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10542 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10543 | ||
10544 | case "${host}" in | |
10545 | *-pc-os2_emx | *-pc-os2-emx ) | |
10546 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10547 | esac | |
10548 | ||
10549 | case "$NUM_TOOLKITS" in | |
10550 | 1) | |
10551 | ;; | |
10552 | 0) | |
10553 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10554 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10555 | { (exit 1); exit 1; }; } | |
10556 | ;; | |
10557 | *) | |
10558 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10559 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10560 | { (exit 1); exit 1; }; } | |
10561 | esac | |
10562 | ||
f34ca037 MW |
10563 | # to be removed when --disable-gtk2 isn't needed |
10564 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10565 | wxGTK_VERSION=2 | |
10566 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10567 | wxGTK_VERSION=1 | |
10568 | fi | |
10569 | ||
a848cd7e SC |
10570 | for toolkit in `echo $ALL_TOOLKITS`; do |
10571 | var=wxUSE_$toolkit | |
10572 | eval "value=\$${var}" | |
10573 | if test "x$value" != x; then | |
10574 | cache_var=CACHE_$toolkit | |
10575 | eval "cache=\$${cache_var}" | |
10576 | if test "$cache" = 1; then | |
10577 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10578 | eval "version=\$wx${toolkit}_VERSION" |
10579 | if test "x$version" != "x"; then | |
10580 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10581 | fi | |
a848cd7e SC |
10582 | fi |
10583 | if test "$value" = 1; then | |
10584 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10585 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10586 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10587 | fi | |
10588 | fi | |
10589 | done | |
10590 | else | |
10591 | if test "x$host_alias" != "x"; then | |
10592 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10593 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10594 | else | |
10595 | echo "$as_me:$LINENO: result: base only" >&5 | |
10596 | echo "${ECHO_T}base only" >&6 | |
10597 | fi | |
10598 | fi | |
10599 | ||
10600 | wants_win32=0 | |
10601 | doesnt_want_win32=0 | |
10602 | case "${host}" in | |
10603 | *-*-cygwin*) | |
10604 | if test "$wxUSE_MSW" = 1 ; then | |
10605 | wants_win32=1 | |
7275146d | 10606 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
10607 | else |
10608 | doesnt_want_win32=1 | |
10609 | fi | |
10610 | ;; | |
10611 | *-*-mingw*) | |
10612 | wants_win32=1 | |
10613 | ;; | |
10614 | esac | |
10615 | ||
10616 | if test "$wxUSE_WINE" = "yes"; then | |
10617 | wants_win32=1 | |
10618 | CC=winegcc | |
10619 | CXX=wineg++ | |
a848cd7e SC |
10620 | LDFLAGS_GUI="-mwindows" |
10621 | fi | |
10622 | ||
10623 | if test "$wants_win32" = 1 ; then | |
10624 | USE_UNIX=0 | |
10625 | USE_WIN32=1 | |
10626 | cat >>confdefs.h <<\_ACEOF | |
10627 | #define __WIN32__ 1 | |
10628 | _ACEOF | |
10629 | ||
10630 | cat >>confdefs.h <<\_ACEOF | |
10631 | #define __WIN95__ 1 | |
10632 | _ACEOF | |
10633 | ||
10634 | cat >>confdefs.h <<\_ACEOF | |
10635 | #define __WINDOWS__ 1 | |
10636 | _ACEOF | |
10637 | ||
10638 | cat >>confdefs.h <<\_ACEOF | |
10639 | #define __GNUWIN32__ 1 | |
10640 | _ACEOF | |
10641 | ||
10642 | cat >>confdefs.h <<\_ACEOF | |
10643 | #define STRICT 1 | |
10644 | _ACEOF | |
10645 | ||
10646 | cat >>confdefs.h <<\_ACEOF | |
10647 | #define WINVER 0x0400 | |
10648 | _ACEOF | |
10649 | ||
10650 | fi | |
10651 | if test "$doesnt_want_win32" = 1 ; then | |
10652 | USE_UNIX=1 | |
10653 | USE_WIN32=0 | |
10654 | fi | |
10655 | ||
10656 | if test "$USE_UNIX" = 1 ; then | |
10657 | wxUSE_UNIX=yes | |
10658 | cat >>confdefs.h <<\_ACEOF | |
10659 | #define __UNIX__ 1 | |
10660 | _ACEOF | |
10661 | ||
10662 | fi | |
10663 | ||
10664 | ||
10665 | cat >confcache <<\_ACEOF | |
10666 | # This file is a shell script that caches the results of configure | |
10667 | # tests run on this system so they can be shared between configure | |
10668 | # scripts and configure runs, see configure's option --config-cache. | |
10669 | # It is not useful on other systems. If it contains results you don't | |
10670 | # want to keep, you may remove or edit it. | |
10671 | # | |
10672 | # config.status only pays attention to the cache file if you give it | |
10673 | # the --recheck option to rerun configure. | |
10674 | # | |
10675 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10676 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10677 | # following values. | |
10678 | ||
10679 | _ACEOF | |
10680 | ||
10681 | # The following way of writing the cache mishandles newlines in values, | |
10682 | # but we know of no workaround that is simple, portable, and efficient. | |
10683 | # So, don't put newlines in cache variables' values. | |
10684 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10685 | # and sets the high bit in the cache file unless we assign to the vars. | |
10686 | { | |
10687 | (set) 2>&1 | | |
10688 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10689 | *ac_space=\ *) | |
10690 | # `set' does not quote correctly, so add quotes (double-quote | |
10691 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10692 | sed -n \ | |
ac1cb8d3 VS |
10693 | "s/'/'\\\\''/g; |
10694 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10695 | ;; |
10696 | *) | |
10697 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10698 | sed -n \ | |
ac1cb8d3 | 10699 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10700 | ;; |
10701 | esac; | |
10702 | } | | |
10703 | sed ' | |
10704 | t clear | |
10705 | : clear | |
10706 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10707 | t end | |
10708 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10709 | : end' >>confcache | |
10710 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10711 | if test -w $cache_file; then | |
10712 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10713 | cat confcache >$cache_file | |
10714 | else | |
10715 | echo "not updating unwritable cache $cache_file" | |
10716 | fi | |
10717 | fi | |
10718 | rm -f confcache | |
10719 | ||
a848cd7e | 10720 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
10721 | |
10722 | ||
10723 | ac_ext=c | |
a848cd7e SC |
10724 | ac_cpp='$CPP $CPPFLAGS' |
10725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10728 | if test -n "$ac_tool_prefix"; then | |
10729 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10730 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10731 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10733 | if test "${ac_cv_prog_CC+set}" = set; then | |
10734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10735 | else | |
10736 | if test -n "$CC"; then | |
10737 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10738 | else | |
10739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10740 | for as_dir in $PATH | |
10741 | do | |
10742 | IFS=$as_save_IFS | |
10743 | test -z "$as_dir" && as_dir=. | |
10744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10746 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10748 | break 2 | |
10749 | fi | |
10750 | done | |
10751 | done | |
10752 | ||
10753 | fi | |
10754 | fi | |
10755 | CC=$ac_cv_prog_CC | |
10756 | if test -n "$CC"; then | |
10757 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10758 | echo "${ECHO_T}$CC" >&6 | |
10759 | else | |
10760 | echo "$as_me:$LINENO: result: no" >&5 | |
10761 | echo "${ECHO_T}no" >&6 | |
10762 | fi | |
10763 | ||
10764 | fi | |
10765 | if test -z "$ac_cv_prog_CC"; then | |
10766 | ac_ct_CC=$CC | |
10767 | # Extract the first word of "gcc", so it can be a program name with args. | |
10768 | set dummy gcc; ac_word=$2 | |
10769 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10771 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10773 | else | |
10774 | if test -n "$ac_ct_CC"; then | |
10775 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10776 | else | |
10777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10778 | for as_dir in $PATH | |
10779 | do | |
10780 | IFS=$as_save_IFS | |
10781 | test -z "$as_dir" && as_dir=. | |
10782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10783 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10784 | ac_cv_prog_ac_ct_CC="gcc" | |
10785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10786 | break 2 | |
10787 | fi | |
10788 | done | |
10789 | done | |
10790 | ||
10791 | fi | |
10792 | fi | |
10793 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10794 | if test -n "$ac_ct_CC"; then | |
10795 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10796 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10797 | else | |
10798 | echo "$as_me:$LINENO: result: no" >&5 | |
10799 | echo "${ECHO_T}no" >&6 | |
10800 | fi | |
10801 | ||
10802 | CC=$ac_ct_CC | |
10803 | else | |
10804 | CC="$ac_cv_prog_CC" | |
10805 | fi | |
10806 | ||
10807 | if test -z "$CC"; then | |
10808 | if test -n "$ac_tool_prefix"; then | |
10809 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10810 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10813 | if test "${ac_cv_prog_CC+set}" = set; then | |
10814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10815 | else | |
10816 | if test -n "$CC"; then | |
10817 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10818 | else | |
10819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10820 | for as_dir in $PATH | |
10821 | do | |
10822 | IFS=$as_save_IFS | |
10823 | test -z "$as_dir" && as_dir=. | |
10824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10826 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10828 | break 2 | |
10829 | fi | |
10830 | done | |
10831 | done | |
10832 | ||
10833 | fi | |
10834 | fi | |
10835 | CC=$ac_cv_prog_CC | |
10836 | if test -n "$CC"; then | |
10837 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10838 | echo "${ECHO_T}$CC" >&6 | |
10839 | else | |
10840 | echo "$as_me:$LINENO: result: no" >&5 | |
10841 | echo "${ECHO_T}no" >&6 | |
10842 | fi | |
10843 | ||
10844 | fi | |
10845 | if test -z "$ac_cv_prog_CC"; then | |
10846 | ac_ct_CC=$CC | |
10847 | # Extract the first word of "cc", so it can be a program name with args. | |
10848 | set dummy cc; ac_word=$2 | |
10849 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10851 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10853 | else | |
10854 | if test -n "$ac_ct_CC"; then | |
10855 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10856 | else | |
10857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10858 | for as_dir in $PATH | |
10859 | do | |
10860 | IFS=$as_save_IFS | |
10861 | test -z "$as_dir" && as_dir=. | |
10862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10863 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10864 | ac_cv_prog_ac_ct_CC="cc" | |
10865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10866 | break 2 | |
10867 | fi | |
10868 | done | |
10869 | done | |
10870 | ||
10871 | fi | |
10872 | fi | |
10873 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10874 | if test -n "$ac_ct_CC"; then | |
10875 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10876 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10877 | else | |
10878 | echo "$as_me:$LINENO: result: no" >&5 | |
10879 | echo "${ECHO_T}no" >&6 | |
10880 | fi | |
10881 | ||
10882 | CC=$ac_ct_CC | |
10883 | else | |
10884 | CC="$ac_cv_prog_CC" | |
10885 | fi | |
10886 | ||
10887 | fi | |
10888 | if test -z "$CC"; then | |
10889 | # Extract the first word of "cc", so it can be a program name with args. | |
10890 | set dummy cc; ac_word=$2 | |
10891 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10893 | if test "${ac_cv_prog_CC+set}" = set; then | |
10894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10895 | else | |
10896 | if test -n "$CC"; then | |
10897 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10898 | else | |
10899 | ac_prog_rejected=no | |
10900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10901 | for as_dir in $PATH | |
10902 | do | |
10903 | IFS=$as_save_IFS | |
10904 | test -z "$as_dir" && as_dir=. | |
10905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10907 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10908 | ac_prog_rejected=yes | |
10909 | continue | |
10910 | fi | |
10911 | ac_cv_prog_CC="cc" | |
10912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10913 | break 2 | |
10914 | fi | |
10915 | done | |
10916 | done | |
10917 | ||
10918 | if test $ac_prog_rejected = yes; then | |
10919 | # We found a bogon in the path, so make sure we never use it. | |
10920 | set dummy $ac_cv_prog_CC | |
10921 | shift | |
10922 | if test $# != 0; then | |
10923 | # We chose a different compiler from the bogus one. | |
10924 | # However, it has the same basename, so the bogon will be chosen | |
10925 | # first if we set CC to just the basename; use the full file name. | |
10926 | shift | |
10927 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10928 | fi | |
10929 | fi | |
10930 | fi | |
10931 | fi | |
10932 | CC=$ac_cv_prog_CC | |
10933 | if test -n "$CC"; then | |
10934 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10935 | echo "${ECHO_T}$CC" >&6 | |
10936 | else | |
10937 | echo "$as_me:$LINENO: result: no" >&5 | |
10938 | echo "${ECHO_T}no" >&6 | |
10939 | fi | |
10940 | ||
10941 | fi | |
10942 | if test -z "$CC"; then | |
10943 | if test -n "$ac_tool_prefix"; then | |
10944 | for ac_prog in cl | |
10945 | do | |
10946 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10947 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10950 | if test "${ac_cv_prog_CC+set}" = set; then | |
10951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10952 | else | |
10953 | if test -n "$CC"; then | |
10954 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10955 | else | |
10956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10957 | for as_dir in $PATH | |
10958 | do | |
10959 | IFS=$as_save_IFS | |
10960 | test -z "$as_dir" && as_dir=. | |
10961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10962 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10963 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10965 | break 2 | |
10966 | fi | |
10967 | done | |
10968 | done | |
10969 | ||
10970 | fi | |
10971 | fi | |
10972 | CC=$ac_cv_prog_CC | |
10973 | if test -n "$CC"; then | |
10974 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10975 | echo "${ECHO_T}$CC" >&6 | |
10976 | else | |
10977 | echo "$as_me:$LINENO: result: no" >&5 | |
10978 | echo "${ECHO_T}no" >&6 | |
10979 | fi | |
10980 | ||
10981 | test -n "$CC" && break | |
10982 | done | |
10983 | fi | |
10984 | if test -z "$CC"; then | |
10985 | ac_ct_CC=$CC | |
10986 | for ac_prog in cl | |
10987 | do | |
10988 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10989 | set dummy $ac_prog; ac_word=$2 | |
10990 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10992 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10994 | else | |
10995 | if test -n "$ac_ct_CC"; then | |
10996 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10997 | else | |
10998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10999 | for as_dir in $PATH | |
11000 | do | |
11001 | IFS=$as_save_IFS | |
11002 | test -z "$as_dir" && as_dir=. | |
11003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11004 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11005 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11007 | break 2 | |
11008 | fi | |
11009 | done | |
11010 | done | |
11011 | ||
11012 | fi | |
11013 | fi | |
11014 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11015 | if test -n "$ac_ct_CC"; then | |
11016 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11017 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11018 | else | |
11019 | echo "$as_me:$LINENO: result: no" >&5 | |
11020 | echo "${ECHO_T}no" >&6 | |
11021 | fi | |
11022 | ||
11023 | test -n "$ac_ct_CC" && break | |
11024 | done | |
11025 | ||
11026 | CC=$ac_ct_CC | |
11027 | fi | |
11028 | ||
11029 | fi | |
11030 | ||
11031 | ||
11032 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11033 | See \`config.log' for more details." >&5 | |
11034 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11035 | See \`config.log' for more details." >&2;} | |
11036 | { (exit 1); exit 1; }; } | |
11037 | ||
11038 | # Provide some information about the compiler. | |
11039 | echo "$as_me:$LINENO:" \ | |
11040 | "checking for C compiler version" >&5 | |
11041 | ac_compiler=`set X $ac_compile; echo $2` | |
11042 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11043 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11044 | ac_status=$? | |
11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11046 | (exit $ac_status); } | |
11047 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11048 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11049 | ac_status=$? | |
11050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11051 | (exit $ac_status); } | |
11052 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11053 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11054 | ac_status=$? | |
11055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11056 | (exit $ac_status); } | |
11057 | ||
11058 | cat >conftest.$ac_ext <<_ACEOF | |
11059 | /* confdefs.h. */ | |
11060 | _ACEOF | |
11061 | cat confdefs.h >>conftest.$ac_ext | |
11062 | cat >>conftest.$ac_ext <<_ACEOF | |
11063 | /* end confdefs.h. */ | |
11064 | ||
11065 | int | |
11066 | main () | |
11067 | { | |
11068 | ||
11069 | ; | |
11070 | return 0; | |
11071 | } | |
11072 | _ACEOF | |
11073 | ac_clean_files_save=$ac_clean_files | |
11074 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11075 | # Try to create an executable without -o first, disregard a.out. | |
11076 | # It will help us diagnose broken compilers, and finding out an intuition | |
11077 | # of exeext. | |
ac1cb8d3 VS |
11078 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11079 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11080 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11081 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11082 | (eval $ac_link_default) 2>&5 | |
11083 | ac_status=$? | |
11084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11085 | (exit $ac_status); }; then | |
11086 | # Find the output, starting from the most likely. This scheme is | |
11087 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11088 | # resort. | |
11089 | ||
11090 | # Be careful to initialize this variable, since it used to be cached. | |
11091 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11092 | ac_cv_exeext= | |
11093 | # b.out is created by i960 compilers. | |
11094 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11095 | do | |
11096 | test -f "$ac_file" || continue | |
11097 | case $ac_file in | |
11098 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11099 | ;; |
a848cd7e | 11100 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11101 | # This is the source file. |
11102 | ;; | |
a848cd7e | 11103 | [ab].out ) |
ac1cb8d3 VS |
11104 | # We found the default executable, but exeext='' is most |
11105 | # certainly right. | |
11106 | break;; | |
a848cd7e | 11107 | *.* ) |
ac1cb8d3 VS |
11108 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11109 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11110 | # but it would be cool to find out if it's true. Does anybody | |
11111 | # maintain Libtool? --akim. | |
11112 | export ac_cv_exeext | |
11113 | break;; | |
a848cd7e | 11114 | * ) |
ac1cb8d3 | 11115 | break;; |
a848cd7e SC |
11116 | esac |
11117 | done | |
11118 | else | |
11119 | echo "$as_me: failed program was:" >&5 | |
11120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11121 | ||
11122 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11123 | See \`config.log' for more details." >&5 | |
11124 | echo "$as_me: error: C compiler cannot create executables | |
11125 | See \`config.log' for more details." >&2;} | |
11126 | { (exit 77); exit 77; }; } | |
11127 | fi | |
11128 | ||
11129 | ac_exeext=$ac_cv_exeext | |
11130 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11131 | echo "${ECHO_T}$ac_file" >&6 | |
11132 | ||
11133 | # Check the compiler produces executables we can run. If not, either | |
11134 | # the compiler is broken, or we cross compile. | |
11135 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11136 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11137 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11138 | # If not cross compiling, check that we can run a simple program. | |
11139 | if test "$cross_compiling" != yes; then | |
11140 | if { ac_try='./$ac_file' | |
11141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11142 | (eval $ac_try) 2>&5 | |
11143 | ac_status=$? | |
11144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11145 | (exit $ac_status); }; }; then | |
11146 | cross_compiling=no | |
11147 | else | |
11148 | if test "$cross_compiling" = maybe; then | |
11149 | cross_compiling=yes | |
11150 | else | |
11151 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11152 | If you meant to cross compile, use \`--host'. | |
11153 | See \`config.log' for more details." >&5 | |
11154 | echo "$as_me: error: cannot run C compiled programs. | |
11155 | If you meant to cross compile, use \`--host'. | |
11156 | See \`config.log' for more details." >&2;} | |
11157 | { (exit 1); exit 1; }; } | |
11158 | fi | |
11159 | fi | |
11160 | fi | |
11161 | echo "$as_me:$LINENO: result: yes" >&5 | |
11162 | echo "${ECHO_T}yes" >&6 | |
11163 | ||
11164 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11165 | ac_clean_files=$ac_clean_files_save | |
11166 | # Check the compiler produces executables we can run. If not, either | |
11167 | # the compiler is broken, or we cross compile. | |
11168 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11169 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11170 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11171 | echo "${ECHO_T}$cross_compiling" >&6 | |
11172 | ||
11173 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11174 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11176 | (eval $ac_link) 2>&5 | |
11177 | ac_status=$? | |
11178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11179 | (exit $ac_status); }; then | |
11180 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11181 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11182 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11183 | # `rm'. | |
11184 | for ac_file in conftest.exe conftest conftest.*; do | |
11185 | test -f "$ac_file" || continue | |
11186 | case $ac_file in | |
11187 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11188 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11189 | export ac_cv_exeext |
11190 | break;; | |
a848cd7e SC |
11191 | * ) break;; |
11192 | esac | |
11193 | done | |
11194 | else | |
11195 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11196 | See \`config.log' for more details." >&5 | |
11197 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11198 | See \`config.log' for more details." >&2;} | |
11199 | { (exit 1); exit 1; }; } | |
11200 | fi | |
11201 | ||
11202 | rm -f conftest$ac_cv_exeext | |
11203 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11204 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11205 | ||
11206 | rm -f conftest.$ac_ext | |
11207 | EXEEXT=$ac_cv_exeext | |
11208 | ac_exeext=$EXEEXT | |
11209 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11210 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11211 | if test "${ac_cv_objext+set}" = set; then | |
11212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11213 | else | |
11214 | cat >conftest.$ac_ext <<_ACEOF | |
11215 | /* confdefs.h. */ | |
11216 | _ACEOF | |
11217 | cat confdefs.h >>conftest.$ac_ext | |
11218 | cat >>conftest.$ac_ext <<_ACEOF | |
11219 | /* end confdefs.h. */ | |
11220 | ||
11221 | int | |
11222 | main () | |
11223 | { | |
11224 | ||
11225 | ; | |
11226 | return 0; | |
11227 | } | |
11228 | _ACEOF | |
11229 | rm -f conftest.o conftest.obj | |
11230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11231 | (eval $ac_compile) 2>&5 | |
11232 | ac_status=$? | |
11233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11234 | (exit $ac_status); }; then | |
11235 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11236 | case $ac_file in | |
11237 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11238 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11239 | break;; | |
11240 | esac | |
11241 | done | |
11242 | else | |
11243 | echo "$as_me: failed program was:" >&5 | |
11244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11245 | ||
11246 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11247 | See \`config.log' for more details." >&5 | |
11248 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11249 | See \`config.log' for more details." >&2;} | |
11250 | { (exit 1); exit 1; }; } | |
11251 | fi | |
11252 | ||
11253 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11254 | fi | |
11255 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11256 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11257 | OBJEXT=$ac_cv_objext | |
11258 | ac_objext=$OBJEXT | |
11259 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11260 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11261 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11263 | else | |
11264 | cat >conftest.$ac_ext <<_ACEOF | |
11265 | /* confdefs.h. */ | |
11266 | _ACEOF | |
11267 | cat confdefs.h >>conftest.$ac_ext | |
11268 | cat >>conftest.$ac_ext <<_ACEOF | |
11269 | /* end confdefs.h. */ | |
11270 | ||
11271 | int | |
11272 | main () | |
11273 | { | |
11274 | #ifndef __GNUC__ | |
11275 | choke me | |
11276 | #endif | |
11277 | ||
11278 | ; | |
11279 | return 0; | |
11280 | } | |
11281 | _ACEOF | |
11282 | rm -f conftest.$ac_objext | |
11283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11285 | ac_status=$? |
ac1cb8d3 VS |
11286 | grep -v '^ *+' conftest.er1 >conftest.err |
11287 | rm -f conftest.er1 | |
11288 | cat conftest.err >&5 | |
a848cd7e SC |
11289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11290 | (exit $ac_status); } && | |
6ebeb4c7 | 11291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11293 | (eval $ac_try) 2>&5 | |
11294 | ac_status=$? | |
11295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11296 | (exit $ac_status); }; } && | |
11297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11299 | (eval $ac_try) 2>&5 | |
11300 | ac_status=$? | |
11301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11302 | (exit $ac_status); }; }; then | |
11303 | ac_compiler_gnu=yes | |
11304 | else | |
11305 | echo "$as_me: failed program was:" >&5 | |
11306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11307 | ||
11308 | ac_compiler_gnu=no | |
11309 | fi | |
ac1cb8d3 | 11310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11311 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11312 | ||
11313 | fi | |
11314 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11315 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11316 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11317 | ac_test_CFLAGS=${CFLAGS+set} | |
11318 | ac_save_CFLAGS=$CFLAGS | |
8c80d384 | 11319 | CFLAGS="$CFLAGS -g" |
a848cd7e SC |
11320 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11321 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11322 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11324 | else | |
11325 | cat >conftest.$ac_ext <<_ACEOF | |
11326 | /* confdefs.h. */ | |
11327 | _ACEOF | |
11328 | cat confdefs.h >>conftest.$ac_ext | |
11329 | cat >>conftest.$ac_ext <<_ACEOF | |
11330 | /* end confdefs.h. */ | |
11331 | ||
11332 | int | |
11333 | main () | |
11334 | { | |
11335 | ||
11336 | ; | |
11337 | return 0; | |
11338 | } | |
11339 | _ACEOF | |
11340 | rm -f conftest.$ac_objext | |
11341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11342 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11343 | ac_status=$? |
ac1cb8d3 VS |
11344 | grep -v '^ *+' conftest.er1 >conftest.err |
11345 | rm -f conftest.er1 | |
11346 | cat conftest.err >&5 | |
a848cd7e SC |
11347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11348 | (exit $ac_status); } && | |
6ebeb4c7 | 11349 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11351 | (eval $ac_try) 2>&5 | |
11352 | ac_status=$? | |
11353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11354 | (exit $ac_status); }; } && | |
11355 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11357 | (eval $ac_try) 2>&5 | |
11358 | ac_status=$? | |
11359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11360 | (exit $ac_status); }; }; then | |
11361 | ac_cv_prog_cc_g=yes | |
11362 | else | |
11363 | echo "$as_me: failed program was:" >&5 | |
11364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11365 | ||
11366 | ac_cv_prog_cc_g=no | |
11367 | fi | |
ac1cb8d3 | 11368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11369 | fi |
11370 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11371 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11372 | if test "$ac_test_CFLAGS" = set; then | |
11373 | CFLAGS=$ac_save_CFLAGS | |
11374 | elif test $ac_cv_prog_cc_g = yes; then | |
11375 | if test "$GCC" = yes; then | |
11376 | CFLAGS="-g -O2" | |
11377 | else | |
11378 | CFLAGS="-g" | |
11379 | fi | |
11380 | else | |
11381 | if test "$GCC" = yes; then | |
11382 | CFLAGS="-O2" | |
11383 | else | |
11384 | CFLAGS= | |
11385 | fi | |
11386 | fi | |
11387 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11388 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11389 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11391 | else | |
11392 | ac_cv_prog_cc_stdc=no | |
11393 | ac_save_CC=$CC | |
11394 | cat >conftest.$ac_ext <<_ACEOF | |
11395 | /* confdefs.h. */ | |
11396 | _ACEOF | |
11397 | cat confdefs.h >>conftest.$ac_ext | |
11398 | cat >>conftest.$ac_ext <<_ACEOF | |
11399 | /* end confdefs.h. */ | |
11400 | #include <stdarg.h> | |
11401 | #include <stdio.h> | |
11402 | #include <sys/types.h> | |
11403 | #include <sys/stat.h> | |
11404 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11405 | struct buf { int x; }; | |
11406 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11407 | static char *e (p, i) | |
11408 | char **p; | |
11409 | int i; | |
11410 | { | |
11411 | return p[i]; | |
11412 | } | |
11413 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11414 | { | |
11415 | char *s; | |
11416 | va_list v; | |
11417 | va_start (v,p); | |
11418 | s = g (p, va_arg (v,int)); | |
11419 | va_end (v); | |
11420 | return s; | |
11421 | } | |
ac1cb8d3 VS |
11422 | |
11423 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11424 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11425 | These don't provoke an error unfortunately, instead are silently treated | |
11426 | as 'x'. The following induces an error, until -std1 is added to get | |
11427 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11428 | array size at least. It's necessary to write '\x00'==0 to get something | |
11429 | that's true only with -std1. */ | |
11430 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11431 | ||
a848cd7e SC |
11432 | int test (int i, double x); |
11433 | struct s1 {int (*f) (int a);}; | |
11434 | struct s2 {int (*f) (double a);}; | |
11435 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11436 | int argc; | |
11437 | char **argv; | |
11438 | int | |
11439 | main () | |
11440 | { | |
11441 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11442 | ; | |
11443 | return 0; | |
11444 | } | |
11445 | _ACEOF | |
11446 | # Don't try gcc -ansi; that turns off useful extensions and | |
11447 | # breaks some systems' header files. | |
11448 | # AIX -qlanglvl=ansi | |
11449 | # Ultrix and OSF/1 -std1 | |
11450 | # HP-UX 10.20 and later -Ae | |
11451 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11452 | # SVR4 -Xc -D__EXTENSIONS__ | |
11453 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11454 | do | |
11455 | CC="$ac_save_CC $ac_arg" | |
11456 | rm -f conftest.$ac_objext | |
11457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11458 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11459 | ac_status=$? |
ac1cb8d3 VS |
11460 | grep -v '^ *+' conftest.er1 >conftest.err |
11461 | rm -f conftest.er1 | |
11462 | cat conftest.err >&5 | |
a848cd7e SC |
11463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11464 | (exit $ac_status); } && | |
6ebeb4c7 | 11465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11467 | (eval $ac_try) 2>&5 | |
11468 | ac_status=$? | |
11469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11470 | (exit $ac_status); }; } && | |
11471 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11473 | (eval $ac_try) 2>&5 | |
11474 | ac_status=$? | |
11475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11476 | (exit $ac_status); }; }; then | |
11477 | ac_cv_prog_cc_stdc=$ac_arg | |
11478 | break | |
11479 | else | |
11480 | echo "$as_me: failed program was:" >&5 | |
11481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11482 | ||
11483 | fi | |
ac1cb8d3 | 11484 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11485 | done |
11486 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11487 | CC=$ac_save_CC | |
11488 | ||
11489 | fi | |
11490 | ||
11491 | case "x$ac_cv_prog_cc_stdc" in | |
11492 | x|xno) | |
11493 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11494 | echo "${ECHO_T}none needed" >&6 ;; | |
11495 | *) | |
11496 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11497 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11498 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11499 | esac | |
11500 | ||
11501 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11502 | # in C++ we need to declare it. In case someone uses the same compiler | |
11503 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11504 | # the declaration of exit, since it's the most demanding environment. | |
11505 | cat >conftest.$ac_ext <<_ACEOF | |
11506 | #ifndef __cplusplus | |
11507 | choke me | |
11508 | #endif | |
11509 | _ACEOF | |
11510 | rm -f conftest.$ac_objext | |
11511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11512 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11513 | ac_status=$? |
ac1cb8d3 VS |
11514 | grep -v '^ *+' conftest.er1 >conftest.err |
11515 | rm -f conftest.er1 | |
11516 | cat conftest.err >&5 | |
a848cd7e SC |
11517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11518 | (exit $ac_status); } && | |
6ebeb4c7 | 11519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
11525 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11527 | (eval $ac_try) 2>&5 | |
11528 | ac_status=$? | |
11529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11530 | (exit $ac_status); }; }; then | |
11531 | for ac_declaration in \ | |
ac1cb8d3 | 11532 | '' \ |
a848cd7e SC |
11533 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11534 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11535 | 'extern "C" void exit (int) throw ();' \ | |
11536 | 'extern "C" void exit (int);' \ | |
11537 | 'void exit (int);' | |
11538 | do | |
11539 | cat >conftest.$ac_ext <<_ACEOF | |
11540 | /* confdefs.h. */ | |
11541 | _ACEOF | |
11542 | cat confdefs.h >>conftest.$ac_ext | |
11543 | cat >>conftest.$ac_ext <<_ACEOF | |
11544 | /* end confdefs.h. */ | |
de59c161 | 11545 | $ac_declaration |
ac1cb8d3 | 11546 | #include <stdlib.h> |
a848cd7e SC |
11547 | int |
11548 | main () | |
11549 | { | |
11550 | exit (42); | |
11551 | ; | |
11552 | return 0; | |
11553 | } | |
11554 | _ACEOF | |
11555 | rm -f conftest.$ac_objext | |
11556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11557 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11558 | ac_status=$? |
ac1cb8d3 VS |
11559 | grep -v '^ *+' conftest.er1 >conftest.err |
11560 | rm -f conftest.er1 | |
11561 | cat conftest.err >&5 | |
a848cd7e SC |
11562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11563 | (exit $ac_status); } && | |
6ebeb4c7 | 11564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11566 | (eval $ac_try) 2>&5 | |
11567 | ac_status=$? | |
11568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11569 | (exit $ac_status); }; } && | |
11570 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11572 | (eval $ac_try) 2>&5 | |
11573 | ac_status=$? | |
11574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11575 | (exit $ac_status); }; }; then | |
11576 | : | |
11577 | else | |
11578 | echo "$as_me: failed program was:" >&5 | |
11579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11580 | ||
11581 | continue | |
11582 | fi | |
ac1cb8d3 | 11583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11584 | cat >conftest.$ac_ext <<_ACEOF |
11585 | /* confdefs.h. */ | |
11586 | _ACEOF | |
11587 | cat confdefs.h >>conftest.$ac_ext | |
11588 | cat >>conftest.$ac_ext <<_ACEOF | |
11589 | /* end confdefs.h. */ | |
11590 | $ac_declaration | |
11591 | int | |
11592 | main () | |
11593 | { | |
11594 | exit (42); | |
11595 | ; | |
11596 | return 0; | |
11597 | } | |
11598 | _ACEOF | |
11599 | rm -f conftest.$ac_objext | |
11600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11601 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11602 | ac_status=$? |
ac1cb8d3 VS |
11603 | grep -v '^ *+' conftest.er1 >conftest.err |
11604 | rm -f conftest.er1 | |
11605 | cat conftest.err >&5 | |
a848cd7e SC |
11606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11607 | (exit $ac_status); } && | |
6ebeb4c7 | 11608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11610 | (eval $ac_try) 2>&5 | |
11611 | ac_status=$? | |
11612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11613 | (exit $ac_status); }; } && | |
11614 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11616 | (eval $ac_try) 2>&5 | |
11617 | ac_status=$? | |
11618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11619 | (exit $ac_status); }; }; then | |
11620 | break | |
11621 | else | |
11622 | echo "$as_me: failed program was:" >&5 | |
11623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11624 | ||
11625 | fi | |
ac1cb8d3 | 11626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11627 | done |
11628 | rm -f conftest* | |
11629 | if test -n "$ac_declaration"; then | |
11630 | echo '#ifdef __cplusplus' >>confdefs.h | |
11631 | echo $ac_declaration >>confdefs.h | |
11632 | echo '#endif' >>confdefs.h | |
11633 | fi | |
11634 | ||
11635 | else | |
11636 | echo "$as_me: failed program was:" >&5 | |
11637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11638 | ||
11639 | fi | |
ac1cb8d3 | 11640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11641 | ac_ext=c |
11642 | ac_cpp='$CPP $CPPFLAGS' | |
11643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11646 | ||
6dcfc289 | 11647 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
480ccd21 DE |
11648 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
11649 | if test "${wx_cv_c_exto+set}" = set; then | |
11650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11651 | else | |
11652 | cat >conftest.$ac_ext <<_ACEOF | |
11653 | /* confdefs.h. */ | |
11654 | _ACEOF | |
11655 | cat confdefs.h >>conftest.$ac_ext | |
11656 | cat >>conftest.$ac_ext <<_ACEOF | |
11657 | /* end confdefs.h. */ | |
11658 | ||
11659 | int | |
11660 | main () | |
11661 | { | |
11662 | ||
11663 | ; | |
11664 | return 0; | |
11665 | } | |
11666 | _ACEOF | |
11667 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11669 | (eval $ac_compile) 2>&5 | |
11670 | ac_status=$? | |
11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11672 | (exit $ac_status); }; then | |
11673 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11674 | case $ac_file in | |
11675 | conftest.$ac_ext.o) | |
11676 | wx_cv_c_exto="-ext o" | |
11677 | ;; | |
11678 | *) | |
11679 | ;; | |
11680 | esac | |
11681 | done | |
11682 | else | |
11683 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11684 | See \`config.log' for more details." >&5 | |
11685 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11686 | See \`config.log' for more details." >&2;} | |
11687 | { (exit 1); exit 1; }; } | |
11688 | ||
11689 | fi | |
11690 | ||
11691 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11692 | ||
11693 | fi | |
11694 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11695 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11696 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11697 | if test "c" = "c"; then | |
11698 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11699 | fi | |
11700 | if test "c" = "cxx"; then | |
11701 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11702 | fi | |
11703 | fi | |
11704 | ||
6dcfc289 DE |
11705 | if test "x$wx_cv_c_exto" '!=' "x"; then |
11706 | unset ac_cv_prog_cc_g | |
11707 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 11708 | ac_save_CFLAGS=$CFLAGS |
8c80d384 | 11709 | CFLAGS="$CFLAGS -g" |
480ccd21 DE |
11710 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11711 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11712 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11714 | else | |
11715 | cat >conftest.$ac_ext <<_ACEOF | |
11716 | /* confdefs.h. */ | |
11717 | _ACEOF | |
11718 | cat confdefs.h >>conftest.$ac_ext | |
11719 | cat >>conftest.$ac_ext <<_ACEOF | |
11720 | /* end confdefs.h. */ | |
11721 | ||
11722 | int | |
11723 | main () | |
11724 | { | |
11725 | ||
11726 | ; | |
11727 | return 0; | |
11728 | } | |
11729 | _ACEOF | |
11730 | rm -f conftest.$ac_objext | |
11731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11732 | (eval $ac_compile) 2>conftest.er1 | |
11733 | ac_status=$? | |
11734 | grep -v '^ *+' conftest.er1 >conftest.err | |
11735 | rm -f conftest.er1 | |
11736 | cat conftest.err >&5 | |
11737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11738 | (exit $ac_status); } && | |
6ebeb4c7 | 11739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
11740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11741 | (eval $ac_try) 2>&5 | |
11742 | ac_status=$? | |
11743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11744 | (exit $ac_status); }; } && | |
11745 | { ac_try='test -s conftest.$ac_objext' | |
11746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11747 | (eval $ac_try) 2>&5 | |
11748 | ac_status=$? | |
11749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11750 | (exit $ac_status); }; }; then | |
11751 | ac_cv_prog_cc_g=yes | |
11752 | else | |
11753 | echo "$as_me: failed program was:" >&5 | |
11754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11755 | ||
11756 | ac_cv_prog_cc_g=no | |
11757 | fi | |
11758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11759 | fi | |
11760 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11761 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11762 | if test "$ac_test_CFLAGS" = set; then | |
11763 | CFLAGS=$ac_save_CFLAGS | |
11764 | elif test $ac_cv_prog_cc_g = yes; then | |
11765 | if test "$GCC" = yes; then | |
11766 | CFLAGS="-g -O2" | |
11767 | else | |
11768 | CFLAGS="-g" | |
11769 | fi | |
11770 | else | |
11771 | if test "$GCC" = yes; then | |
11772 | CFLAGS="-O2" | |
11773 | else | |
11774 | CFLAGS= | |
11775 | fi | |
11776 | fi | |
6dcfc289 DE |
11777 | fi |
11778 | ac_ext=c | |
95986553 DE |
11779 | ac_cpp='$CPP $CPPFLAGS' |
11780 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11781 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11783 | ||
11784 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11785 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11786 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11788 | else | |
11789 | cat >conftest.$ac_ext <<_ACEOF | |
11790 | /* confdefs.h. */ | |
11791 | _ACEOF | |
11792 | cat confdefs.h >>conftest.$ac_ext | |
11793 | cat >>conftest.$ac_ext <<_ACEOF | |
11794 | /* end confdefs.h. */ | |
11795 | ||
11796 | int | |
11797 | main () | |
11798 | { | |
11799 | #ifndef __MWERKS__ | |
11800 | choke me | |
11801 | #endif | |
11802 | ||
11803 | ; | |
11804 | return 0; | |
11805 | } | |
11806 | _ACEOF | |
11807 | rm -f conftest.$ac_objext | |
11808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11809 | (eval $ac_compile) 2>conftest.er1 | |
11810 | ac_status=$? | |
11811 | grep -v '^ *+' conftest.er1 >conftest.err | |
11812 | rm -f conftest.er1 | |
11813 | cat conftest.err >&5 | |
11814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11815 | (exit $ac_status); } && | |
6ebeb4c7 | 11816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
11817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11818 | (eval $ac_try) 2>&5 | |
11819 | ac_status=$? | |
11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11821 | (exit $ac_status); }; } && | |
11822 | { ac_try='test -s conftest.$ac_objext' | |
11823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11824 | (eval $ac_try) 2>&5 | |
11825 | ac_status=$? | |
11826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11827 | (exit $ac_status); }; }; then | |
11828 | bakefile_compiler_mwerks=yes | |
11829 | else | |
11830 | echo "$as_me: failed program was:" >&5 | |
11831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11832 | ||
11833 | bakefile_compiler_mwerks=no | |
11834 | fi | |
11835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11836 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11837 | ||
11838 | fi | |
11839 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11840 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11841 | ||
0e6fa1d9 | 11842 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
11843 | ac_ext=c |
11844 | ac_cpp='$CPP $CPPFLAGS' | |
11845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11848 | ||
11849 | ||
6dcfc289 | 11850 | ac_ext=c |
9273ffba DE |
11851 | ac_cpp='$CPP $CPPFLAGS' |
11852 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11853 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11854 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11855 | ||
11856 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11857 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
11858 | if test "${wx_cv_c_compiler_xlc+set}" = set; then | |
11859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11860 | else | |
11861 | cat >conftest.$ac_ext <<_ACEOF | |
11862 | /* confdefs.h. */ | |
11863 | _ACEOF | |
11864 | cat confdefs.h >>conftest.$ac_ext | |
11865 | cat >>conftest.$ac_ext <<_ACEOF | |
11866 | /* end confdefs.h. */ | |
11867 | ||
11868 | int | |
11869 | main () | |
11870 | { | |
11871 | #ifndef __xlC__ | |
11872 | choke me | |
11873 | #endif | |
11874 | ||
11875 | ; | |
11876 | return 0; | |
11877 | } | |
11878 | _ACEOF | |
11879 | rm -f conftest.$ac_objext | |
11880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11881 | (eval $ac_compile) 2>conftest.er1 | |
11882 | ac_status=$? | |
11883 | grep -v '^ *+' conftest.er1 >conftest.err | |
11884 | rm -f conftest.er1 | |
11885 | cat conftest.err >&5 | |
11886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11887 | (exit $ac_status); } && | |
6ebeb4c7 | 11888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
11889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11890 | (eval $ac_try) 2>&5 | |
11891 | ac_status=$? | |
11892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11893 | (exit $ac_status); }; } && | |
11894 | { ac_try='test -s conftest.$ac_objext' | |
11895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11896 | (eval $ac_try) 2>&5 | |
11897 | ac_status=$? | |
11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11899 | (exit $ac_status); }; }; then | |
11900 | wx_compiler_xlc=yes | |
11901 | else | |
11902 | echo "$as_me: failed program was:" >&5 | |
11903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11904 | ||
11905 | wx_compiler_xlc=no | |
11906 | fi | |
11907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11908 | wx_cv_c_compiler_xlc=$wx_compiler_xlc | |
11909 | ||
11910 | fi | |
11911 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 | |
11912 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
11913 | ||
0e6fa1d9 | 11914 | XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
11915 | ac_ext=c |
11916 | ac_cpp='$CPP $CPPFLAGS' | |
11917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11920 | ||
11921 | ||
a848cd7e | 11922 | |
6dcfc289 | 11923 | |
a9e5b1f0 MW |
11924 | ac_ext=c |
11925 | ac_cpp='$CPP $CPPFLAGS' | |
11926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11929 | ||
11930 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
11931 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
11932 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
11933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11934 | else | |
11935 | cat >conftest.$ac_ext <<_ACEOF | |
11936 | /* confdefs.h. */ | |
11937 | _ACEOF | |
11938 | cat confdefs.h >>conftest.$ac_ext | |
11939 | cat >>conftest.$ac_ext <<_ACEOF | |
11940 | /* end confdefs.h. */ | |
11941 | ||
11942 | int | |
11943 | main () | |
11944 | { | |
11945 | ||
11946 | #ifndef __SUNPRO_C | |
11947 | choke me | |
11948 | #endif | |
11949 | ||
11950 | ; | |
11951 | return 0; | |
11952 | } | |
11953 | _ACEOF | |
11954 | rm -f conftest.$ac_objext | |
11955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11956 | (eval $ac_compile) 2>conftest.er1 | |
11957 | ac_status=$? | |
11958 | grep -v '^ *+' conftest.er1 >conftest.err | |
11959 | rm -f conftest.er1 | |
11960 | cat conftest.err >&5 | |
11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11962 | (exit $ac_status); } && | |
6ebeb4c7 | 11963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a9e5b1f0 MW |
11964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11965 | (eval $ac_try) 2>&5 | |
11966 | ac_status=$? | |
11967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11968 | (exit $ac_status); }; } && | |
11969 | { ac_try='test -s conftest.$ac_objext' | |
11970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11971 | (eval $ac_try) 2>&5 | |
11972 | ac_status=$? | |
11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11974 | (exit $ac_status); }; }; then | |
11975 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
11976 | else | |
11977 | echo "$as_me: failed program was:" >&5 | |
11978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11979 | ||
11980 | bakefile_cv_c_compiler___SUNPRO_C=no | |
11981 | ||
11982 | fi | |
11983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11984 | ||
11985 | ||
11986 | fi | |
11987 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
11988 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
11989 | ac_ext=c | |
11990 | ac_cpp='$CPP $CPPFLAGS' | |
11991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11994 | ||
11995 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
11996 | :; SUNCC=yes | |
11997 | else | |
11998 | :; | |
11999 | fi | |
12000 | ||
12001 | ||
12002 | ||
12003 | ||
a848cd7e SC |
12004 | ac_ext=c |
12005 | ac_cpp='$CPP $CPPFLAGS' | |
12006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12009 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12010 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12011 | # On Suns, sometimes $CPP names a directory. | |
12012 | if test -n "$CPP" && test -d "$CPP"; then | |
12013 | CPP= | |
12014 | fi | |
12015 | if test -z "$CPP"; then | |
12016 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12018 | else | |
12019 | # Double quotes because CPP needs to be expanded | |
12020 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12021 | do | |
12022 | ac_preproc_ok=false | |
12023 | for ac_c_preproc_warn_flag in '' yes | |
12024 | do | |
12025 | # Use a header file that comes with gcc, so configuring glibc | |
12026 | # with a fresh cross-compiler works. | |
12027 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12028 | # <limits.h> exists even on freestanding compilers. | |
12029 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12030 | # not just through cpp. "Syntax error" is here to catch this case. | |
12031 | cat >conftest.$ac_ext <<_ACEOF | |
12032 | /* confdefs.h. */ | |
12033 | _ACEOF | |
12034 | cat confdefs.h >>conftest.$ac_ext | |
12035 | cat >>conftest.$ac_ext <<_ACEOF | |
12036 | /* end confdefs.h. */ | |
12037 | #ifdef __STDC__ | |
12038 | # include <limits.h> | |
12039 | #else | |
12040 | # include <assert.h> | |
12041 | #endif | |
ac1cb8d3 | 12042 | Syntax error |
a848cd7e SC |
12043 | _ACEOF |
12044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12046 | ac_status=$? | |
12047 | grep -v '^ *+' conftest.er1 >conftest.err | |
12048 | rm -f conftest.er1 | |
12049 | cat conftest.err >&5 | |
12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12051 | (exit $ac_status); } >/dev/null; then | |
12052 | if test -s conftest.err; then | |
12053 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12054 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12055 | else |
12056 | ac_cpp_err= | |
12057 | fi | |
12058 | else | |
12059 | ac_cpp_err=yes | |
12060 | fi | |
12061 | if test -z "$ac_cpp_err"; then | |
12062 | : | |
12063 | else | |
12064 | echo "$as_me: failed program was:" >&5 | |
12065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12066 | ||
12067 | # Broken: fails on valid input. | |
12068 | continue | |
12069 | fi | |
12070 | rm -f conftest.err conftest.$ac_ext | |
12071 | ||
12072 | # OK, works on sane cases. Now check whether non-existent headers | |
12073 | # can be detected and how. | |
12074 | cat >conftest.$ac_ext <<_ACEOF | |
12075 | /* confdefs.h. */ | |
12076 | _ACEOF | |
12077 | cat confdefs.h >>conftest.$ac_ext | |
12078 | cat >>conftest.$ac_ext <<_ACEOF | |
12079 | /* end confdefs.h. */ | |
12080 | #include <ac_nonexistent.h> | |
12081 | _ACEOF | |
12082 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12083 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12084 | ac_status=$? | |
12085 | grep -v '^ *+' conftest.er1 >conftest.err | |
12086 | rm -f conftest.er1 | |
12087 | cat conftest.err >&5 | |
12088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12089 | (exit $ac_status); } >/dev/null; then | |
12090 | if test -s conftest.err; then | |
12091 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12092 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12093 | else |
12094 | ac_cpp_err= | |
12095 | fi | |
12096 | else | |
12097 | ac_cpp_err=yes | |
12098 | fi | |
12099 | if test -z "$ac_cpp_err"; then | |
12100 | # Broken: success on invalid input. | |
12101 | continue | |
12102 | else | |
12103 | echo "$as_me: failed program was:" >&5 | |
12104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12105 | ||
12106 | # Passes both tests. | |
12107 | ac_preproc_ok=: | |
12108 | break | |
12109 | fi | |
12110 | rm -f conftest.err conftest.$ac_ext | |
12111 | ||
12112 | done | |
12113 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12114 | rm -f conftest.err conftest.$ac_ext | |
12115 | if $ac_preproc_ok; then | |
12116 | break | |
12117 | fi | |
12118 | ||
12119 | done | |
12120 | ac_cv_prog_CPP=$CPP | |
12121 | ||
12122 | fi | |
12123 | CPP=$ac_cv_prog_CPP | |
12124 | else | |
12125 | ac_cv_prog_CPP=$CPP | |
12126 | fi | |
12127 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12128 | echo "${ECHO_T}$CPP" >&6 | |
12129 | ac_preproc_ok=false | |
12130 | for ac_c_preproc_warn_flag in '' yes | |
12131 | do | |
12132 | # Use a header file that comes with gcc, so configuring glibc | |
12133 | # with a fresh cross-compiler works. | |
12134 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12135 | # <limits.h> exists even on freestanding compilers. | |
12136 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12137 | # not just through cpp. "Syntax error" is here to catch this case. | |
12138 | cat >conftest.$ac_ext <<_ACEOF | |
12139 | /* confdefs.h. */ | |
12140 | _ACEOF | |
12141 | cat confdefs.h >>conftest.$ac_ext | |
12142 | cat >>conftest.$ac_ext <<_ACEOF | |
12143 | /* end confdefs.h. */ | |
12144 | #ifdef __STDC__ | |
12145 | # include <limits.h> | |
12146 | #else | |
12147 | # include <assert.h> | |
12148 | #endif | |
ac1cb8d3 | 12149 | Syntax error |
a848cd7e SC |
12150 | _ACEOF |
12151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12153 | ac_status=$? | |
12154 | grep -v '^ *+' conftest.er1 >conftest.err | |
12155 | rm -f conftest.er1 | |
12156 | cat conftest.err >&5 | |
12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12158 | (exit $ac_status); } >/dev/null; then | |
12159 | if test -s conftest.err; then | |
12160 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12161 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12162 | else |
12163 | ac_cpp_err= | |
12164 | fi | |
12165 | else | |
12166 | ac_cpp_err=yes | |
12167 | fi | |
12168 | if test -z "$ac_cpp_err"; then | |
12169 | : | |
12170 | else | |
12171 | echo "$as_me: failed program was:" >&5 | |
12172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12173 | ||
12174 | # Broken: fails on valid input. | |
12175 | continue | |
12176 | fi | |
12177 | rm -f conftest.err conftest.$ac_ext | |
12178 | ||
12179 | # OK, works on sane cases. Now check whether non-existent headers | |
12180 | # can be detected and how. | |
12181 | cat >conftest.$ac_ext <<_ACEOF | |
12182 | /* confdefs.h. */ | |
12183 | _ACEOF | |
12184 | cat confdefs.h >>conftest.$ac_ext | |
12185 | cat >>conftest.$ac_ext <<_ACEOF | |
12186 | /* end confdefs.h. */ | |
12187 | #include <ac_nonexistent.h> | |
12188 | _ACEOF | |
12189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12191 | ac_status=$? | |
12192 | grep -v '^ *+' conftest.er1 >conftest.err | |
12193 | rm -f conftest.er1 | |
12194 | cat conftest.err >&5 | |
12195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12196 | (exit $ac_status); } >/dev/null; then | |
12197 | if test -s conftest.err; then | |
12198 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12200 | else |
12201 | ac_cpp_err= | |
12202 | fi | |
12203 | else | |
12204 | ac_cpp_err=yes | |
12205 | fi | |
12206 | if test -z "$ac_cpp_err"; then | |
12207 | # Broken: success on invalid input. | |
12208 | continue | |
12209 | else | |
12210 | echo "$as_me: failed program was:" >&5 | |
12211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12212 | ||
12213 | # Passes both tests. | |
12214 | ac_preproc_ok=: | |
12215 | break | |
12216 | fi | |
12217 | rm -f conftest.err conftest.$ac_ext | |
12218 | ||
12219 | done | |
12220 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12221 | rm -f conftest.err conftest.$ac_ext | |
12222 | if $ac_preproc_ok; then | |
12223 | : | |
12224 | else | |
12225 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12226 | See \`config.log' for more details." >&5 | |
12227 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12228 | See \`config.log' for more details." >&2;} | |
12229 | { (exit 1); exit 1; }; } | |
12230 | fi | |
12231 | ||
12232 | ac_ext=c | |
12233 | ac_cpp='$CPP $CPPFLAGS' | |
12234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12237 | ||
12238 | ||
12239 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12240 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12241 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12243 | else | |
12244 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12245 | then ac_cv_prog_egrep='grep -E' | |
12246 | else ac_cv_prog_egrep='egrep' | |
12247 | fi | |
12248 | fi | |
12249 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12250 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12251 | EGREP=$ac_cv_prog_egrep | |
12252 | ||
12253 | ||
12254 | if test $ac_cv_c_compiler_gnu = yes; then | |
12255 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12256 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12257 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12259 | else | |
12260 | ac_pattern="Autoconf.*'x'" | |
12261 | cat >conftest.$ac_ext <<_ACEOF | |
12262 | /* confdefs.h. */ | |
12263 | _ACEOF | |
12264 | cat confdefs.h >>conftest.$ac_ext | |
12265 | cat >>conftest.$ac_ext <<_ACEOF | |
12266 | /* end confdefs.h. */ | |
12267 | #include <sgtty.h> | |
12268 | Autoconf TIOCGETP | |
12269 | _ACEOF | |
12270 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12271 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12272 | ac_cv_prog_gcc_traditional=yes | |
12273 | else | |
12274 | ac_cv_prog_gcc_traditional=no | |
12275 | fi | |
12276 | rm -f conftest* | |
12277 | ||
12278 | ||
12279 | if test $ac_cv_prog_gcc_traditional = no; then | |
12280 | cat >conftest.$ac_ext <<_ACEOF | |
12281 | /* confdefs.h. */ | |
12282 | _ACEOF | |
12283 | cat confdefs.h >>conftest.$ac_ext | |
12284 | cat >>conftest.$ac_ext <<_ACEOF | |
12285 | /* end confdefs.h. */ | |
12286 | #include <termio.h> | |
12287 | Autoconf TCGETA | |
12288 | _ACEOF | |
12289 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12290 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12291 | ac_cv_prog_gcc_traditional=yes | |
12292 | fi | |
12293 | rm -f conftest* | |
12294 | ||
12295 | fi | |
12296 | fi | |
12297 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12298 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12299 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12300 | CC="$CC -traditional" | |
12301 | fi | |
12302 | fi | |
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | ac_ext=cc | |
12308 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12309 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12310 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12311 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12312 | ||
12313 | ||
12314 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12315 | |
12316 | ||
12317 | ac_ext=cc | |
a848cd7e SC |
12318 | ac_cpp='$CXXCPP $CPPFLAGS' |
12319 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12320 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12321 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12322 | if test -n "$ac_tool_prefix"; then | |
12323 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12324 | do | |
12325 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12326 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12327 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12329 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12331 | else | |
12332 | if test -n "$CXX"; then | |
12333 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12334 | else | |
12335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12336 | for as_dir in $PATH | |
12337 | do | |
12338 | IFS=$as_save_IFS | |
12339 | test -z "$as_dir" && as_dir=. | |
12340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12342 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12344 | break 2 | |
12345 | fi | |
12346 | done | |
12347 | done | |
12348 | ||
12349 | fi | |
12350 | fi | |
12351 | CXX=$ac_cv_prog_CXX | |
12352 | if test -n "$CXX"; then | |
12353 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12354 | echo "${ECHO_T}$CXX" >&6 | |
12355 | else | |
12356 | echo "$as_me:$LINENO: result: no" >&5 | |
12357 | echo "${ECHO_T}no" >&6 | |
12358 | fi | |
12359 | ||
12360 | test -n "$CXX" && break | |
12361 | done | |
12362 | fi | |
12363 | if test -z "$CXX"; then | |
12364 | ac_ct_CXX=$CXX | |
12365 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12366 | do | |
12367 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12368 | set dummy $ac_prog; ac_word=$2 | |
12369 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12371 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12373 | else | |
12374 | if test -n "$ac_ct_CXX"; then | |
12375 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12376 | else | |
12377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12378 | for as_dir in $PATH | |
12379 | do | |
12380 | IFS=$as_save_IFS | |
12381 | test -z "$as_dir" && as_dir=. | |
12382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12383 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12384 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12386 | break 2 | |
12387 | fi | |
12388 | done | |
12389 | done | |
12390 | ||
12391 | fi | |
12392 | fi | |
12393 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12394 | if test -n "$ac_ct_CXX"; then | |
12395 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12396 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12397 | else | |
12398 | echo "$as_me:$LINENO: result: no" >&5 | |
12399 | echo "${ECHO_T}no" >&6 | |
12400 | fi | |
12401 | ||
12402 | test -n "$ac_ct_CXX" && break | |
12403 | done | |
12404 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12405 | ||
12406 | CXX=$ac_ct_CXX | |
12407 | fi | |
12408 | ||
12409 | ||
12410 | # Provide some information about the compiler. | |
12411 | echo "$as_me:$LINENO:" \ | |
12412 | "checking for C++ compiler version" >&5 | |
12413 | ac_compiler=`set X $ac_compile; echo $2` | |
12414 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12415 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12416 | ac_status=$? | |
12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12418 | (exit $ac_status); } | |
12419 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12420 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12421 | ac_status=$? | |
12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12423 | (exit $ac_status); } | |
12424 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12425 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12426 | ac_status=$? | |
12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12428 | (exit $ac_status); } | |
12429 | ||
12430 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12431 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12432 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12434 | else | |
12435 | cat >conftest.$ac_ext <<_ACEOF | |
12436 | /* confdefs.h. */ | |
12437 | _ACEOF | |
12438 | cat confdefs.h >>conftest.$ac_ext | |
12439 | cat >>conftest.$ac_ext <<_ACEOF | |
12440 | /* end confdefs.h. */ | |
12441 | ||
12442 | int | |
12443 | main () | |
12444 | { | |
12445 | #ifndef __GNUC__ | |
12446 | choke me | |
12447 | #endif | |
12448 | ||
12449 | ; | |
12450 | return 0; | |
12451 | } | |
12452 | _ACEOF | |
12453 | rm -f conftest.$ac_objext | |
12454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12455 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12456 | ac_status=$? |
ac1cb8d3 VS |
12457 | grep -v '^ *+' conftest.er1 >conftest.err |
12458 | rm -f conftest.er1 | |
12459 | cat conftest.err >&5 | |
a848cd7e SC |
12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12461 | (exit $ac_status); } && | |
6ebeb4c7 | 12462 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12464 | (eval $ac_try) 2>&5 | |
12465 | ac_status=$? | |
12466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12467 | (exit $ac_status); }; } && | |
12468 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12470 | (eval $ac_try) 2>&5 | |
12471 | ac_status=$? | |
12472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12473 | (exit $ac_status); }; }; then | |
12474 | ac_compiler_gnu=yes | |
12475 | else | |
12476 | echo "$as_me: failed program was:" >&5 | |
12477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12478 | ||
12479 | ac_compiler_gnu=no | |
12480 | fi | |
ac1cb8d3 | 12481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12482 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12483 | ||
12484 | fi | |
12485 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12486 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12487 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12488 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12489 | ac_save_CXXFLAGS=$CXXFLAGS | |
12490 | CXXFLAGS="-g" | |
12491 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12492 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12493 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12495 | else | |
12496 | cat >conftest.$ac_ext <<_ACEOF | |
12497 | /* confdefs.h. */ | |
12498 | _ACEOF | |
12499 | cat confdefs.h >>conftest.$ac_ext | |
12500 | cat >>conftest.$ac_ext <<_ACEOF | |
12501 | /* end confdefs.h. */ | |
12502 | ||
12503 | int | |
12504 | main () | |
12505 | { | |
12506 | ||
12507 | ; | |
12508 | return 0; | |
12509 | } | |
12510 | _ACEOF | |
12511 | rm -f conftest.$ac_objext | |
12512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12513 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12514 | ac_status=$? |
ac1cb8d3 VS |
12515 | grep -v '^ *+' conftest.er1 >conftest.err |
12516 | rm -f conftest.er1 | |
12517 | cat conftest.err >&5 | |
a848cd7e SC |
12518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12519 | (exit $ac_status); } && | |
6ebeb4c7 | 12520 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12522 | (eval $ac_try) 2>&5 | |
12523 | ac_status=$? | |
12524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12525 | (exit $ac_status); }; } && | |
12526 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12528 | (eval $ac_try) 2>&5 | |
12529 | ac_status=$? | |
12530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12531 | (exit $ac_status); }; }; then | |
12532 | ac_cv_prog_cxx_g=yes | |
12533 | else | |
12534 | echo "$as_me: failed program was:" >&5 | |
12535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12536 | ||
12537 | ac_cv_prog_cxx_g=no | |
12538 | fi | |
ac1cb8d3 | 12539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12540 | fi |
12541 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12542 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12543 | if test "$ac_test_CXXFLAGS" = set; then | |
12544 | CXXFLAGS=$ac_save_CXXFLAGS | |
12545 | elif test $ac_cv_prog_cxx_g = yes; then | |
12546 | if test "$GXX" = yes; then | |
8c80d384 | 12547 | CXXFLAGS="$CXXFLAGS -g -O2" |
a848cd7e | 12548 | else |
8c80d384 | 12549 | CXXFLAGS="$CXXFLAGS -g" |
a848cd7e SC |
12550 | fi |
12551 | else | |
12552 | if test "$GXX" = yes; then | |
12553 | CXXFLAGS="-O2" | |
12554 | else | |
12555 | CXXFLAGS= | |
12556 | fi | |
12557 | fi | |
12558 | for ac_declaration in \ | |
ac1cb8d3 | 12559 | '' \ |
a848cd7e SC |
12560 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12561 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12562 | 'extern "C" void exit (int) throw ();' \ | |
12563 | 'extern "C" void exit (int);' \ | |
12564 | 'void exit (int);' | |
12565 | do | |
12566 | cat >conftest.$ac_ext <<_ACEOF | |
12567 | /* confdefs.h. */ | |
12568 | _ACEOF | |
12569 | cat confdefs.h >>conftest.$ac_ext | |
12570 | cat >>conftest.$ac_ext <<_ACEOF | |
12571 | /* end confdefs.h. */ | |
de59c161 | 12572 | $ac_declaration |
ac1cb8d3 | 12573 | #include <stdlib.h> |
a848cd7e SC |
12574 | int |
12575 | main () | |
12576 | { | |
12577 | exit (42); | |
12578 | ; | |
12579 | return 0; | |
12580 | } | |
12581 | _ACEOF | |
12582 | rm -f conftest.$ac_objext | |
12583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12584 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12585 | ac_status=$? |
ac1cb8d3 VS |
12586 | grep -v '^ *+' conftest.er1 >conftest.err |
12587 | rm -f conftest.er1 | |
12588 | cat conftest.err >&5 | |
a848cd7e SC |
12589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12590 | (exit $ac_status); } && | |
6ebeb4c7 | 12591 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12593 | (eval $ac_try) 2>&5 | |
12594 | ac_status=$? | |
12595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12596 | (exit $ac_status); }; } && | |
12597 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12599 | (eval $ac_try) 2>&5 | |
12600 | ac_status=$? | |
12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12602 | (exit $ac_status); }; }; then | |
12603 | : | |
12604 | else | |
12605 | echo "$as_me: failed program was:" >&5 | |
12606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12607 | ||
12608 | continue | |
12609 | fi | |
ac1cb8d3 | 12610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12611 | cat >conftest.$ac_ext <<_ACEOF |
12612 | /* confdefs.h. */ | |
12613 | _ACEOF | |
12614 | cat confdefs.h >>conftest.$ac_ext | |
12615 | cat >>conftest.$ac_ext <<_ACEOF | |
12616 | /* end confdefs.h. */ | |
12617 | $ac_declaration | |
12618 | int | |
12619 | main () | |
12620 | { | |
12621 | exit (42); | |
12622 | ; | |
12623 | return 0; | |
12624 | } | |
12625 | _ACEOF | |
12626 | rm -f conftest.$ac_objext | |
12627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12628 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12629 | ac_status=$? |
ac1cb8d3 VS |
12630 | grep -v '^ *+' conftest.er1 >conftest.err |
12631 | rm -f conftest.er1 | |
12632 | cat conftest.err >&5 | |
a848cd7e SC |
12633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12634 | (exit $ac_status); } && | |
6ebeb4c7 | 12635 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12637 | (eval $ac_try) 2>&5 | |
12638 | ac_status=$? | |
12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12640 | (exit $ac_status); }; } && | |
12641 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12643 | (eval $ac_try) 2>&5 | |
12644 | ac_status=$? | |
12645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12646 | (exit $ac_status); }; }; then | |
12647 | break | |
12648 | else | |
12649 | echo "$as_me: failed program was:" >&5 | |
12650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12651 | ||
12652 | fi | |
ac1cb8d3 | 12653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12654 | done |
12655 | rm -f conftest* | |
12656 | if test -n "$ac_declaration"; then | |
12657 | echo '#ifdef __cplusplus' >>confdefs.h | |
12658 | echo $ac_declaration >>confdefs.h | |
12659 | echo '#endif' >>confdefs.h | |
12660 | fi | |
12661 | ||
12662 | ac_ext=cc | |
12663 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12664 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12665 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12666 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12667 | ||
6dcfc289 | 12668 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 |
480ccd21 DE |
12669 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
12670 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12672 | else | |
12673 | cat >conftest.$ac_ext <<_ACEOF | |
12674 | /* confdefs.h. */ | |
12675 | _ACEOF | |
12676 | cat confdefs.h >>conftest.$ac_ext | |
12677 | cat >>conftest.$ac_ext <<_ACEOF | |
12678 | /* end confdefs.h. */ | |
12679 | ||
12680 | int | |
12681 | main () | |
12682 | { | |
12683 | ||
12684 | ; | |
12685 | return 0; | |
12686 | } | |
12687 | _ACEOF | |
12688 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12690 | (eval $ac_compile) 2>&5 | |
12691 | ac_status=$? | |
12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12693 | (exit $ac_status); }; then | |
12694 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12695 | case $ac_file in | |
12696 | conftest.$ac_ext.o) | |
12697 | wx_cv_cxx_exto="-ext o" | |
12698 | ;; | |
12699 | *) | |
12700 | ;; | |
12701 | esac | |
12702 | done | |
12703 | else | |
12704 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12705 | See \`config.log' for more details." >&5 | |
12706 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12707 | See \`config.log' for more details." >&2;} | |
12708 | { (exit 1); exit 1; }; } | |
12709 | ||
12710 | fi | |
12711 | ||
12712 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12713 | ||
12714 | fi | |
12715 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
12716 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
12717 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12718 | if test "cxx" = "c"; then | |
12719 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
12720 | fi | |
12721 | if test "cxx" = "cxx"; then | |
12722 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
12723 | fi | |
12724 | fi | |
12725 | ||
6dcfc289 DE |
12726 | if test "x$wx_cv_cxx_exto" '!=' "x"; then |
12727 | unset ac_cv_prog_cxx_g | |
12728 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
480ccd21 DE |
12729 | ac_save_CXXFLAGS=$CXXFLAGS |
12730 | CXXFLAGS="-g" | |
12731 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12732 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12733 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12735 | else | |
12736 | cat >conftest.$ac_ext <<_ACEOF | |
12737 | /* confdefs.h. */ | |
12738 | _ACEOF | |
12739 | cat confdefs.h >>conftest.$ac_ext | |
12740 | cat >>conftest.$ac_ext <<_ACEOF | |
12741 | /* end confdefs.h. */ | |
12742 | ||
12743 | int | |
12744 | main () | |
12745 | { | |
12746 | ||
12747 | ; | |
12748 | return 0; | |
12749 | } | |
12750 | _ACEOF | |
12751 | rm -f conftest.$ac_objext | |
12752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12753 | (eval $ac_compile) 2>conftest.er1 | |
12754 | ac_status=$? | |
12755 | grep -v '^ *+' conftest.er1 >conftest.err | |
12756 | rm -f conftest.er1 | |
12757 | cat conftest.err >&5 | |
12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12759 | (exit $ac_status); } && | |
6ebeb4c7 | 12760 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12762 | (eval $ac_try) 2>&5 | |
12763 | ac_status=$? | |
12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12765 | (exit $ac_status); }; } && | |
12766 | { ac_try='test -s conftest.$ac_objext' | |
12767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12768 | (eval $ac_try) 2>&5 | |
12769 | ac_status=$? | |
12770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12771 | (exit $ac_status); }; }; then | |
12772 | ac_cv_prog_cxx_g=yes | |
12773 | else | |
12774 | echo "$as_me: failed program was:" >&5 | |
12775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12776 | ||
12777 | ac_cv_prog_cxx_g=no | |
12778 | fi | |
12779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12780 | fi | |
12781 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12782 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12783 | if test "$ac_test_CXXFLAGS" = set; then | |
12784 | CXXFLAGS=$ac_save_CXXFLAGS | |
12785 | elif test $ac_cv_prog_cxx_g = yes; then | |
12786 | if test "$GXX" = yes; then | |
8c80d384 | 12787 | CXXFLAGS="$CXXFLAGS -g -O2" |
480ccd21 | 12788 | else |
8c80d384 | 12789 | CXXFLAGS="$CXXFLAGS -g" |
480ccd21 DE |
12790 | fi |
12791 | else | |
12792 | if test "$GXX" = yes; then | |
12793 | CXXFLAGS="-O2" | |
12794 | else | |
12795 | CXXFLAGS= | |
12796 | fi | |
12797 | fi | |
6dcfc289 DE |
12798 | fi |
12799 | ac_ext=cc | |
95986553 DE |
12800 | ac_cpp='$CXXCPP $CPPFLAGS' |
12801 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12802 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12803 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12804 | ||
12805 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12806 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12807 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12809 | else | |
12810 | cat >conftest.$ac_ext <<_ACEOF | |
12811 | /* confdefs.h. */ | |
12812 | _ACEOF | |
12813 | cat confdefs.h >>conftest.$ac_ext | |
12814 | cat >>conftest.$ac_ext <<_ACEOF | |
12815 | /* end confdefs.h. */ | |
12816 | ||
12817 | int | |
12818 | main () | |
12819 | { | |
12820 | #ifndef __MWERKS__ | |
12821 | choke me | |
12822 | #endif | |
12823 | ||
12824 | ; | |
12825 | return 0; | |
12826 | } | |
12827 | _ACEOF | |
12828 | rm -f conftest.$ac_objext | |
12829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12830 | (eval $ac_compile) 2>conftest.er1 | |
12831 | ac_status=$? | |
12832 | grep -v '^ *+' conftest.er1 >conftest.err | |
12833 | rm -f conftest.er1 | |
12834 | cat conftest.err >&5 | |
12835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12836 | (exit $ac_status); } && | |
6ebeb4c7 | 12837 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12839 | (eval $ac_try) 2>&5 | |
12840 | ac_status=$? | |
12841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12842 | (exit $ac_status); }; } && | |
12843 | { ac_try='test -s conftest.$ac_objext' | |
12844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12845 | (eval $ac_try) 2>&5 | |
12846 | ac_status=$? | |
12847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12848 | (exit $ac_status); }; }; then | |
12849 | bakefile_compiler_mwerks=yes | |
12850 | else | |
12851 | echo "$as_me: failed program was:" >&5 | |
12852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12853 | ||
12854 | bakefile_compiler_mwerks=no | |
12855 | fi | |
12856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12857 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12858 | ||
12859 | fi | |
12860 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12861 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12862 | ||
0e6fa1d9 | 12863 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
12864 | ac_ext=cc |
12865 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12866 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12867 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12868 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12869 | ||
12870 | ||
6dcfc289 | 12871 | ac_ext=cc |
9273ffba DE |
12872 | ac_cpp='$CXXCPP $CPPFLAGS' |
12873 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12874 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12875 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12876 | ||
12877 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
12878 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
12879 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then | |
12880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12881 | else | |
12882 | cat >conftest.$ac_ext <<_ACEOF | |
12883 | /* confdefs.h. */ | |
12884 | _ACEOF | |
12885 | cat confdefs.h >>conftest.$ac_ext | |
12886 | cat >>conftest.$ac_ext <<_ACEOF | |
12887 | /* end confdefs.h. */ | |
12888 | ||
12889 | int | |
12890 | main () | |
12891 | { | |
12892 | #ifndef __xlC__ | |
12893 | choke me | |
12894 | #endif | |
12895 | ||
12896 | ; | |
12897 | return 0; | |
12898 | } | |
12899 | _ACEOF | |
12900 | rm -f conftest.$ac_objext | |
12901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12902 | (eval $ac_compile) 2>conftest.er1 | |
12903 | ac_status=$? | |
12904 | grep -v '^ *+' conftest.er1 >conftest.err | |
12905 | rm -f conftest.er1 | |
12906 | cat conftest.err >&5 | |
12907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12908 | (exit $ac_status); } && | |
6ebeb4c7 | 12909 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12911 | (eval $ac_try) 2>&5 | |
12912 | ac_status=$? | |
12913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12914 | (exit $ac_status); }; } && | |
12915 | { ac_try='test -s conftest.$ac_objext' | |
12916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12917 | (eval $ac_try) 2>&5 | |
12918 | ac_status=$? | |
12919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12920 | (exit $ac_status); }; }; then | |
12921 | wx_compiler_xlc=yes | |
12922 | else | |
12923 | echo "$as_me: failed program was:" >&5 | |
12924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12925 | ||
12926 | wx_compiler_xlc=no | |
12927 | fi | |
12928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12929 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc | |
12930 | ||
12931 | fi | |
12932 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 | |
12933 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
12934 | ||
0e6fa1d9 | 12935 | XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
12936 | ac_ext=cc |
12937 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12938 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12939 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12940 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12941 | ||
12942 | ||
95986553 | 12943 | |
6dcfc289 | 12944 | |
a9e5b1f0 MW |
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 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
12952 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
12953 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
12954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12955 | else | |
12956 | cat >conftest.$ac_ext <<_ACEOF | |
12957 | /* confdefs.h. */ | |
12958 | _ACEOF | |
12959 | cat confdefs.h >>conftest.$ac_ext | |
12960 | cat >>conftest.$ac_ext <<_ACEOF | |
12961 | /* end confdefs.h. */ | |
12962 | ||
12963 | int | |
12964 | main () | |
12965 | { | |
12966 | ||
12967 | #ifndef __SUNPRO_CC | |
12968 | choke me | |
12969 | #endif | |
12970 | ||
12971 | ; | |
12972 | return 0; | |
12973 | } | |
12974 | _ACEOF | |
12975 | rm -f conftest.$ac_objext | |
12976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12977 | (eval $ac_compile) 2>conftest.er1 | |
12978 | ac_status=$? | |
12979 | grep -v '^ *+' conftest.er1 >conftest.err | |
12980 | rm -f conftest.er1 | |
12981 | cat conftest.err >&5 | |
12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12983 | (exit $ac_status); } && | |
6ebeb4c7 | 12984 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a9e5b1f0 MW |
12985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12986 | (eval $ac_try) 2>&5 | |
12987 | ac_status=$? | |
12988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12989 | (exit $ac_status); }; } && | |
12990 | { ac_try='test -s conftest.$ac_objext' | |
12991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12992 | (eval $ac_try) 2>&5 | |
12993 | ac_status=$? | |
12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12995 | (exit $ac_status); }; }; then | |
12996 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
12997 | else | |
12998 | echo "$as_me: failed program was:" >&5 | |
12999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13000 | ||
13001 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
13002 | ||
13003 | fi | |
13004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13005 | ||
13006 | ||
13007 | fi | |
13008 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
13009 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
13010 | ac_ext=cc | |
13011 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13012 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13013 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13014 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13015 | ||
13016 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
13017 | :; SUNCXX=yes | |
13018 | else | |
13019 | :; | |
13020 | fi | |
13021 | ||
13022 | ||
13023 | ||
13024 | ||
a848cd7e SC |
13025 | ac_ext=c |
13026 | ac_cpp='$CPP $CPPFLAGS' | |
13027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13030 | ||
13031 | ||
a848cd7e SC |
13032 | if test -n "$ac_tool_prefix"; then |
13033 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
13034 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
13035 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13037 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
13038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13039 | else | |
13040 | if test -n "$RANLIB"; then | |
13041 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
13042 | else | |
13043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13044 | for as_dir in $PATH | |
13045 | do | |
13046 | IFS=$as_save_IFS | |
13047 | test -z "$as_dir" && as_dir=. | |
13048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13049 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13050 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
13051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13052 | break 2 | |
13053 | fi | |
13054 | done | |
13055 | done | |
13056 | ||
13057 | fi | |
13058 | fi | |
13059 | RANLIB=$ac_cv_prog_RANLIB | |
13060 | if test -n "$RANLIB"; then | |
13061 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
13062 | echo "${ECHO_T}$RANLIB" >&6 | |
13063 | else | |
13064 | echo "$as_me:$LINENO: result: no" >&5 | |
13065 | echo "${ECHO_T}no" >&6 | |
13066 | fi | |
13067 | ||
13068 | fi | |
13069 | if test -z "$ac_cv_prog_RANLIB"; then | |
13070 | ac_ct_RANLIB=$RANLIB | |
13071 | # Extract the first word of "ranlib", so it can be a program name with args. | |
13072 | set dummy ranlib; ac_word=$2 | |
13073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13075 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
13076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13077 | else | |
13078 | if test -n "$ac_ct_RANLIB"; then | |
13079 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
13080 | else | |
13081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13082 | for as_dir in $PATH | |
13083 | do | |
13084 | IFS=$as_save_IFS | |
13085 | test -z "$as_dir" && as_dir=. | |
13086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13088 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
13089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13090 | break 2 | |
13091 | fi | |
13092 | done | |
13093 | done | |
13094 | ||
13095 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
13096 | fi | |
13097 | fi | |
13098 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
13099 | if test -n "$ac_ct_RANLIB"; then | |
13100 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
13101 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
13102 | else | |
13103 | echo "$as_me:$LINENO: result: no" >&5 | |
13104 | echo "${ECHO_T}no" >&6 | |
13105 | fi | |
13106 | ||
13107 | RANLIB=$ac_ct_RANLIB | |
13108 | else | |
13109 | RANLIB="$ac_cv_prog_RANLIB" | |
13110 | fi | |
13111 | ||
13112 | ||
8c80d384 DE |
13113 | if test -n "$ac_tool_prefix"; then |
13114 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
13115 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
13116 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13118 | if test "${ac_cv_prog_AR+set}" = set; then | |
13119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13120 | else | |
13121 | if test -n "$AR"; then | |
13122 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
13123 | else | |
13124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13125 | for as_dir in $PATH | |
13126 | do | |
13127 | IFS=$as_save_IFS | |
13128 | test -z "$as_dir" && as_dir=. | |
13129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13130 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 13131 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
13132 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13133 | break 2 | |
13134 | fi | |
13135 | done | |
13136 | done | |
13137 | ||
13138 | fi | |
13139 | fi | |
13140 | AR=$ac_cv_prog_AR | |
13141 | if test -n "$AR"; then | |
13142 | echo "$as_me:$LINENO: result: $AR" >&5 | |
13143 | echo "${ECHO_T}$AR" >&6 | |
13144 | else | |
13145 | echo "$as_me:$LINENO: result: no" >&5 | |
13146 | echo "${ECHO_T}no" >&6 | |
13147 | fi | |
13148 | ||
8c80d384 DE |
13149 | fi |
13150 | if test -z "$ac_cv_prog_AR"; then | |
13151 | ac_ct_AR=$AR | |
13152 | # Extract the first word of "ar", so it can be a program name with args. | |
13153 | set dummy ar; ac_word=$2 | |
13154 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13155 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13156 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
13157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13158 | else | |
13159 | if test -n "$ac_ct_AR"; then | |
13160 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13161 | else | |
13162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13163 | for as_dir in $PATH | |
13164 | do | |
13165 | IFS=$as_save_IFS | |
13166 | test -z "$as_dir" && as_dir=. | |
13167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13168 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13169 | ac_cv_prog_ac_ct_AR="ar" | |
13170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13171 | break 2 | |
13172 | fi | |
13173 | done | |
13174 | done | |
13175 | ||
13176 | fi | |
13177 | fi | |
13178 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13179 | if test -n "$ac_ct_AR"; then | |
13180 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
13181 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
13182 | else | |
13183 | echo "$as_me:$LINENO: result: no" >&5 | |
13184 | echo "${ECHO_T}no" >&6 | |
13185 | fi | |
13186 | ||
13187 | AR=$ac_ct_AR | |
13188 | else | |
13189 | AR="$ac_cv_prog_AR" | |
13190 | fi | |
13191 | ||
a848cd7e | 13192 | if test "x$AR" = "x" ; then |
77ffb593 JS |
13193 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
13194 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
13195 | { (exit 1); exit 1; }; } |
13196 | fi | |
13197 | ||
13198 | # Find a good install program. We prefer a C program (faster), | |
13199 | # so one script is as good as another. But avoid the broken or | |
13200 | # incompatible versions: | |
13201 | # SysV /etc/install, /usr/sbin/install | |
13202 | # SunOS /usr/etc/install | |
13203 | # IRIX /sbin/install | |
13204 | # AIX /bin/install | |
13205 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
13206 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
13207 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
13208 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 13209 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
13210 | # ./install, which can be erroneously created by make from ./install.sh. |
13211 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
13212 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
13213 | if test -z "$INSTALL"; then | |
13214 | if test "${ac_cv_path_install+set}" = set; then | |
13215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13216 | else | |
13217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13218 | for as_dir in $PATH | |
13219 | do | |
13220 | IFS=$as_save_IFS | |
13221 | test -z "$as_dir" && as_dir=. | |
13222 | # Account for people who put trailing slashes in PATH elements. | |
13223 | case $as_dir/ in | |
13224 | ./ | .// | /cC/* | \ | |
13225 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 13226 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
13227 | /usr/ucb/* ) ;; |
13228 | *) | |
13229 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
13230 | # Don't use installbsd from OSF since it installs stuff as root | |
13231 | # by default. | |
13232 | for ac_prog in ginstall scoinst install; do | |
13233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
13234 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
13235 | if test $ac_prog = install && | |
13236 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13237 | # AIX install. It has an incompatible calling convention. | |
13238 | : | |
13239 | elif test $ac_prog = install && | |
13240 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13241 | # program-specific install script used by HP pwplus--don't use. | |
13242 | : | |
13243 | else | |
13244 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
13245 | break 3 | |
13246 | fi | |
13247 | fi | |
a848cd7e SC |
13248 | done |
13249 | done | |
13250 | ;; | |
13251 | esac | |
13252 | done | |
13253 | ||
13254 | ||
13255 | fi | |
13256 | if test "${ac_cv_path_install+set}" = set; then | |
13257 | INSTALL=$ac_cv_path_install | |
13258 | else | |
13259 | # As a last resort, use the slow shell script. We don't cache a | |
13260 | # path for INSTALL within a source directory, because that will | |
13261 | # break other packages using the cache if that directory is | |
13262 | # removed, or if the path is relative. | |
13263 | INSTALL=$ac_install_sh | |
13264 | fi | |
13265 | fi | |
13266 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
13267 | echo "${ECHO_T}$INSTALL" >&6 | |
13268 | ||
13269 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
13270 | # It thinks the first close brace ends the variable substitution. | |
13271 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
13272 | ||
13273 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
13274 | ||
13275 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
13276 | ||
13277 | ||
13278 | case ${INSTALL} in | |
13279 | /* ) # Absolute | |
13280 | ;; | |
13281 | ?:* ) # Drive letter, considered as absolute. | |
13282 | ;; | |
13283 | *) | |
13284 | INSTALL=`pwd`/${INSTALL} ;; | |
13285 | esac | |
13286 | ||
a848cd7e SC |
13287 | |
13288 | case "${host}" in | |
13289 | ||
cfda0ea8 | 13290 | *-*-darwin* ) |
a848cd7e SC |
13291 | INSTALL_PROGRAM="cp -fp" |
13292 | INSTALL_DATA="cp -fp" | |
13293 | ;; | |
13294 | *) | |
13295 | ;; | |
13296 | esac | |
13297 | ||
8c80d384 DE |
13298 | if test -n "$ac_tool_prefix"; then |
13299 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
13300 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
13301 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13303 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
13304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13305 | else | |
13306 | if test -n "$STRIP"; then | |
13307 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13308 | else | |
13309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13310 | for as_dir in $PATH | |
13311 | do | |
13312 | IFS=$as_save_IFS | |
13313 | test -z "$as_dir" && as_dir=. | |
13314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13315 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 13316 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
13317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13318 | break 2 | |
13319 | fi | |
13320 | done | |
13321 | done | |
13322 | ||
a848cd7e SC |
13323 | fi |
13324 | fi | |
13325 | STRIP=$ac_cv_prog_STRIP | |
13326 | if test -n "$STRIP"; then | |
13327 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
13328 | echo "${ECHO_T}$STRIP" >&6 | |
13329 | else | |
13330 | echo "$as_me:$LINENO: result: no" >&5 | |
13331 | echo "${ECHO_T}no" >&6 | |
13332 | fi | |
13333 | ||
8c80d384 DE |
13334 | fi |
13335 | if test -z "$ac_cv_prog_STRIP"; then | |
13336 | ac_ct_STRIP=$STRIP | |
13337 | # Extract the first word of "strip", so it can be a program name with args. | |
13338 | set dummy strip; ac_word=$2 | |
13339 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13341 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
13342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13343 | else | |
13344 | if test -n "$ac_ct_STRIP"; then | |
13345 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
13346 | else | |
13347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13348 | for as_dir in $PATH | |
13349 | do | |
13350 | IFS=$as_save_IFS | |
13351 | test -z "$as_dir" && as_dir=. | |
13352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13353 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13354 | ac_cv_prog_ac_ct_STRIP="strip" | |
13355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13356 | break 2 | |
13357 | fi | |
13358 | done | |
13359 | done | |
13360 | ||
13361 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
13362 | fi | |
13363 | fi | |
13364 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
13365 | if test -n "$ac_ct_STRIP"; then | |
13366 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
13367 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
13368 | else | |
13369 | echo "$as_me:$LINENO: result: no" >&5 | |
13370 | echo "${ECHO_T}no" >&6 | |
13371 | fi | |
13372 | ||
13373 | STRIP=$ac_ct_STRIP | |
13374 | else | |
13375 | STRIP="$ac_cv_prog_STRIP" | |
13376 | fi | |
13377 | ||
13378 | ||
13379 | if test "$wxUSE_WINE" = "yes"; then | |
13380 | if test -n "$ac_tool_prefix"; then | |
13381 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
13382 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
13383 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13385 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
13386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13387 | else | |
13388 | if test -n "$RESCOMP"; then | |
13389 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13390 | else | |
13391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13392 | for as_dir in $PATH | |
13393 | do | |
13394 | IFS=$as_save_IFS | |
13395 | test -z "$as_dir" && as_dir=. | |
13396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13397 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13398 | ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc" | |
13399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13400 | break 2 | |
13401 | fi | |
13402 | done | |
13403 | done | |
13404 | ||
13405 | fi | |
13406 | fi | |
13407 | RESCOMP=$ac_cv_prog_RESCOMP | |
13408 | if test -n "$RESCOMP"; then | |
13409 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
13410 | echo "${ECHO_T}$RESCOMP" >&6 | |
13411 | else | |
13412 | echo "$as_me:$LINENO: result: no" >&5 | |
13413 | echo "${ECHO_T}no" >&6 | |
13414 | fi | |
13415 | ||
13416 | fi | |
13417 | if test -z "$ac_cv_prog_RESCOMP"; then | |
13418 | ac_ct_RESCOMP=$RESCOMP | |
13419 | # Extract the first word of "wrc", so it can be a program name with args. | |
13420 | set dummy wrc; ac_word=$2 | |
13421 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13423 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
13424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13425 | else | |
13426 | if test -n "$ac_ct_RESCOMP"; then | |
13427 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
13428 | else | |
13429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13430 | for as_dir in $PATH | |
13431 | do | |
13432 | IFS=$as_save_IFS | |
13433 | test -z "$as_dir" && as_dir=. | |
13434 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13435 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13436 | ac_cv_prog_ac_ct_RESCOMP="wrc" | |
13437 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13438 | break 2 | |
13439 | fi | |
13440 | done | |
13441 | done | |
13442 | ||
13443 | fi | |
13444 | fi | |
13445 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
13446 | if test -n "$ac_ct_RESCOMP"; then | |
13447 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
13448 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
13449 | else | |
13450 | echo "$as_me:$LINENO: result: no" >&5 | |
13451 | echo "${ECHO_T}no" >&6 | |
13452 | fi | |
13453 | ||
13454 | RESCOMP=$ac_ct_RESCOMP | |
13455 | else | |
13456 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13457 | fi | |
13458 | ||
13459 | else | |
13460 | case "${host}" in | |
13461 | *-*-cygwin* | *-*-mingw32* ) | |
13462 | if test -n "$ac_tool_prefix"; then | |
13463 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
13464 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
13465 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13467 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
13468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13469 | else | |
13470 | if test -n "$RESCOMP"; then | |
13471 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13472 | else | |
13473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13474 | for as_dir in $PATH | |
13475 | do | |
13476 | IFS=$as_save_IFS | |
13477 | test -z "$as_dir" && as_dir=. | |
13478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13479 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13480 | ac_cv_prog_RESCOMP="${ac_tool_prefix}windres" | |
13481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13482 | break 2 | |
13483 | fi | |
13484 | done | |
13485 | done | |
13486 | ||
13487 | fi | |
13488 | fi | |
13489 | RESCOMP=$ac_cv_prog_RESCOMP | |
13490 | if test -n "$RESCOMP"; then | |
13491 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
13492 | echo "${ECHO_T}$RESCOMP" >&6 | |
13493 | else | |
13494 | echo "$as_me:$LINENO: result: no" >&5 | |
13495 | echo "${ECHO_T}no" >&6 | |
13496 | fi | |
13497 | ||
13498 | fi | |
13499 | if test -z "$ac_cv_prog_RESCOMP"; then | |
13500 | ac_ct_RESCOMP=$RESCOMP | |
13501 | # Extract the first word of "windres", so it can be a program name with args. | |
13502 | set dummy windres; ac_word=$2 | |
13503 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13505 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
13506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13507 | else | |
13508 | if test -n "$ac_ct_RESCOMP"; then | |
13509 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
13510 | else | |
13511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13512 | for as_dir in $PATH | |
13513 | do | |
13514 | IFS=$as_save_IFS | |
13515 | test -z "$as_dir" && as_dir=. | |
13516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13518 | ac_cv_prog_ac_ct_RESCOMP="windres" | |
13519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13520 | break 2 | |
13521 | fi | |
13522 | done | |
13523 | done | |
13524 | ||
13525 | fi | |
13526 | fi | |
13527 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
13528 | if test -n "$ac_ct_RESCOMP"; then | |
13529 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
13530 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
13531 | else | |
13532 | echo "$as_me:$LINENO: result: no" >&5 | |
13533 | echo "${ECHO_T}no" >&6 | |
13534 | fi | |
13535 | ||
13536 | RESCOMP=$ac_ct_RESCOMP | |
13537 | else | |
13538 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13539 | fi | |
13540 | ||
13541 | if test -n "$ac_tool_prefix"; then | |
13542 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
13543 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
13544 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13546 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
13547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13548 | else | |
13549 | if test -n "$DLLTOOL"; then | |
13550 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
13551 | else | |
13552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13553 | for as_dir in $PATH | |
13554 | do | |
13555 | IFS=$as_save_IFS | |
13556 | test -z "$as_dir" && as_dir=. | |
13557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13558 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13559 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
13560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13561 | break 2 | |
13562 | fi | |
13563 | done | |
13564 | done | |
13565 | ||
13566 | fi | |
13567 | fi | |
13568 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
13569 | if test -n "$DLLTOOL"; then | |
13570 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
13571 | echo "${ECHO_T}$DLLTOOL" >&6 | |
13572 | else | |
13573 | echo "$as_me:$LINENO: result: no" >&5 | |
13574 | echo "${ECHO_T}no" >&6 | |
13575 | fi | |
13576 | ||
13577 | fi | |
13578 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
13579 | ac_ct_DLLTOOL=$DLLTOOL | |
13580 | # Extract the first word of "dlltool", so it can be a program name with args. | |
13581 | set dummy dlltool; ac_word=$2 | |
13582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13584 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
13585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13586 | else | |
13587 | if test -n "$ac_ct_DLLTOOL"; then | |
13588 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
13589 | else | |
13590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13591 | for as_dir in $PATH | |
13592 | do | |
13593 | IFS=$as_save_IFS | |
13594 | test -z "$as_dir" && as_dir=. | |
13595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13596 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13597 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
13598 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13599 | break 2 | |
13600 | fi | |
13601 | done | |
13602 | done | |
13603 | ||
13604 | fi | |
13605 | fi | |
13606 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
13607 | if test -n "$ac_ct_DLLTOOL"; then | |
13608 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
13609 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
13610 | else | |
13611 | echo "$as_me:$LINENO: result: no" >&5 | |
13612 | echo "${ECHO_T}no" >&6 | |
13613 | fi | |
13614 | ||
13615 | DLLTOOL=$ac_ct_DLLTOOL | |
13616 | else | |
13617 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
13618 | fi | |
13619 | ||
13620 | ;; | |
13621 | esac | |
13622 | fi | |
a848cd7e SC |
13623 | |
13624 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
13625 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
13626 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
13627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13628 | else | |
13629 | ||
13630 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
13631 | egrep -s GNU > /dev/null); then | |
13632 | wx_cv_prog_makeisgnu="yes" | |
13633 | else | |
13634 | wx_cv_prog_makeisgnu="no" | |
13635 | fi | |
13636 | ||
13637 | fi | |
13638 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
13639 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
13640 | ||
13641 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
13642 | IF_GNU_MAKE="" | |
13643 | else | |
13644 | IF_GNU_MAKE="#" | |
13645 | fi | |
13646 | ||
13647 | ||
13648 | ||
13649 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
13650 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
13651 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
13652 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
13653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13654 | else | |
13655 | ||
13656 | cat - << EOF > confMake | |
13657 | check : file | |
13658 | cp \$? \$@ | |
13659 | cp \$? final_file | |
13660 | EOF | |
13661 | ||
13662 | if test ! -d sub ; then | |
13663 | mkdir sub | |
13664 | fi | |
13665 | echo dummy > sub/file | |
13666 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
13667 | RESULT=$? | |
13668 | rm -f sub/file check final_file confMake | |
13669 | rmdir sub | |
13670 | if test "$RESULT" = 0; then | |
13671 | wx_cv_prog_makevpath="yes" | |
13672 | else | |
13673 | wx_cv_prog_makevpath="no" | |
13674 | fi | |
13675 | ||
13676 | fi | |
13677 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
13678 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
13679 | ||
13680 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
13681 | { { echo "$as_me:$LINENO: error: | |
13682 | You need a make-utility that is able to use the variable | |
13683 | VPATH correctly. | |
13684 | If your version of make does not support VPATH correctly, | |
13685 | please install GNU-make (possibly as gmake), and start | |
13686 | configure with the following command: | |
13687 | export MAKE=gmake; ./configure for sh-type shells | |
13688 | setenv MAKE gmake; ./configure for csh-type shells | |
13689 | Also please do remember to use gmake in this case every time | |
13690 | you are trying to compile. | |
13691 | " >&5 | |
13692 | echo "$as_me: error: | |
13693 | You need a make-utility that is able to use the variable | |
13694 | VPATH correctly. | |
13695 | If your version of make does not support VPATH correctly, | |
13696 | please install GNU-make (possibly as gmake), and start | |
13697 | configure with the following command: | |
13698 | export MAKE=gmake; ./configure for sh-type shells | |
13699 | setenv MAKE gmake; ./configure for csh-type shells | |
13700 | Also please do remember to use gmake in this case every time | |
13701 | you are trying to compile. | |
13702 | " >&2;} | |
13703 | { (exit 1); exit 1; }; } | |
13704 | fi fi | |
13705 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
13706 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
13707 | LN_S=$as_ln_s | |
13708 | if test "$LN_S" = "ln -s"; then | |
13709 | echo "$as_me:$LINENO: result: yes" >&5 | |
13710 | echo "${ECHO_T}yes" >&6 | |
13711 | else | |
13712 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
13713 | echo "${ECHO_T}no, using $LN_S" >&6 | |
13714 | fi | |
13715 | ||
13716 | ||
13717 | ||
2113bc77 | 13718 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
9273ffba DE |
13719 | CXXFLAGS="$CXXFLAGS -qunique" |
13720 | fi | |
13721 | ||
13722 | ||
4d7ec9f1 DE |
13723 | case "${host}" in |
13724 | powerpc-*-darwin* ) | |
13725 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
13726 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
13727 | cat >conftest.$ac_ext <<_ACEOF | |
13728 | /* confdefs.h. */ | |
13729 | _ACEOF | |
13730 | cat confdefs.h >>conftest.$ac_ext | |
13731 | cat >>conftest.$ac_ext <<_ACEOF | |
13732 | /* end confdefs.h. */ | |
13733 | ||
13734 | int | |
13735 | main () | |
13736 | { | |
13737 | #ifndef __POWERPC__ | |
13738 | choke me for lack of PowerPC | |
13739 | #endif | |
13740 | ||
13741 | ; | |
13742 | return 0; | |
13743 | } | |
13744 | _ACEOF | |
13745 | rm -f conftest.$ac_objext | |
13746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13747 | (eval $ac_compile) 2>conftest.er1 | |
13748 | ac_status=$? | |
13749 | grep -v '^ *+' conftest.er1 >conftest.err | |
13750 | rm -f conftest.er1 | |
13751 | cat conftest.err >&5 | |
13752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13753 | (exit $ac_status); } && | |
6ebeb4c7 | 13754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13756 | (eval $ac_try) 2>&5 | |
13757 | ac_status=$? | |
13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13759 | (exit $ac_status); }; } && | |
13760 | { ac_try='test -s conftest.$ac_objext' | |
13761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13762 | (eval $ac_try) 2>&5 | |
13763 | ac_status=$? | |
13764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13765 | (exit $ac_status); }; }; then | |
13766 | echo "$as_me:$LINENO: result: yes" >&5 | |
13767 | echo "${ECHO_T}yes" >&6 | |
13768 | else | |
13769 | echo "$as_me: failed program was:" >&5 | |
13770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13771 | ||
13772 | echo "$as_me:$LINENO: result: no" >&5 | |
13773 | echo "${ECHO_T}no" >&6 | |
13774 | cat >>confdefs.h <<\_ACEOF | |
13775 | #define __POWERPC__ 1 | |
13776 | _ACEOF | |
13777 | ||
13778 | ||
13779 | fi | |
13780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
13781 | ;; |
13782 | esac | |
13783 | ||
13784 | case "${host}" in | |
13785 | *-*-darwin* ) | |
4d7ec9f1 DE |
13786 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
13787 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
13788 | cat >conftest.$ac_ext <<_ACEOF | |
13789 | /* confdefs.h. */ | |
13790 | _ACEOF | |
13791 | cat confdefs.h >>conftest.$ac_ext | |
13792 | cat >>conftest.$ac_ext <<_ACEOF | |
13793 | /* end confdefs.h. */ | |
13794 | #include <CoreFoundation/CFBase.h> | |
13795 | ||
13796 | int | |
13797 | main () | |
13798 | { | |
13799 | ||
13800 | ; | |
13801 | return 0; | |
13802 | } | |
13803 | _ACEOF | |
13804 | rm -f conftest.$ac_objext | |
13805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13806 | (eval $ac_compile) 2>conftest.er1 | |
13807 | ac_status=$? | |
13808 | grep -v '^ *+' conftest.er1 >conftest.err | |
13809 | rm -f conftest.er1 | |
13810 | cat conftest.err >&5 | |
13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13812 | (exit $ac_status); } && | |
6ebeb4c7 | 13813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13815 | (eval $ac_try) 2>&5 | |
13816 | ac_status=$? | |
13817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13818 | (exit $ac_status); }; } && | |
13819 | { ac_try='test -s conftest.$ac_objext' | |
13820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13821 | (eval $ac_try) 2>&5 | |
13822 | ac_status=$? | |
13823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13824 | (exit $ac_status); }; }; then | |
13825 | echo "$as_me:$LINENO: result: yes" >&5 | |
13826 | echo "${ECHO_T}yes" >&6 | |
13827 | else | |
13828 | echo "$as_me: failed program was:" >&5 | |
13829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13830 | ||
13831 | echo "$as_me:$LINENO: result: no" >&5 | |
13832 | echo "${ECHO_T}no" >&6 | |
13833 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
13834 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
13835 | cat >conftest.$ac_ext <<_ACEOF | |
13836 | /* confdefs.h. */ | |
13837 | _ACEOF | |
13838 | cat confdefs.h >>conftest.$ac_ext | |
13839 | cat >>conftest.$ac_ext <<_ACEOF | |
13840 | /* end confdefs.h. */ | |
13841 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
13842 | #include <CoreFoundation/CFBase.h> | |
13843 | ||
13844 | int | |
13845 | main () | |
13846 | { | |
13847 | ||
13848 | ; | |
13849 | return 0; | |
13850 | } | |
13851 | _ACEOF | |
13852 | rm -f conftest.$ac_objext | |
13853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13854 | (eval $ac_compile) 2>conftest.er1 | |
13855 | ac_status=$? | |
13856 | grep -v '^ *+' conftest.er1 >conftest.err | |
13857 | rm -f conftest.er1 | |
13858 | cat conftest.err >&5 | |
13859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13860 | (exit $ac_status); } && | |
6ebeb4c7 | 13861 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13863 | (eval $ac_try) 2>&5 | |
13864 | ac_status=$? | |
13865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13866 | (exit $ac_status); }; } && | |
13867 | { ac_try='test -s conftest.$ac_objext' | |
13868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13869 | (eval $ac_try) 2>&5 | |
13870 | ac_status=$? | |
13871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13872 | (exit $ac_status); }; }; then | |
13873 | echo "$as_me:$LINENO: result: yes" >&5 | |
13874 | echo "${ECHO_T}yes" >&6 | |
13875 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
13876 | else | |
13877 | echo "$as_me: failed program was:" >&5 | |
13878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13879 | ||
13880 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
13881 | See \`config.log' for more details." >&5 | |
13882 | echo "$as_me: error: no. CoreFoundation not available. | |
13883 | See \`config.log' for more details." >&2;} | |
13884 | { (exit 1); exit 1; }; } | |
13885 | ||
13886 | fi | |
13887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13888 | ||
13889 | ||
13890 | fi | |
13891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13892 | ;; | |
13893 | esac | |
13894 | ||
a848cd7e SC |
13895 | case "${host}" in |
13896 | *-pc-os2_emx | *-pc-os2-emx ) | |
13897 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
13898 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
13899 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
13900 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
13901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13902 | else | |
13903 | ac_check_lib_save_LIBS=$LIBS | |
13904 | LIBS="-lcExt $LIBS" | |
13905 | cat >conftest.$ac_ext <<_ACEOF | |
13906 | /* confdefs.h. */ | |
13907 | _ACEOF | |
13908 | cat confdefs.h >>conftest.$ac_ext | |
13909 | cat >>conftest.$ac_ext <<_ACEOF | |
13910 | /* end confdefs.h. */ | |
13911 | ||
13912 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13913 | #ifdef __cplusplus | |
13914 | extern "C" | |
13915 | #endif | |
13916 | /* We use char because int might match the return type of a gcc2 | |
13917 | builtin and then its argument prototype would still apply. */ | |
13918 | char drand48 (); | |
13919 | int | |
13920 | main () | |
13921 | { | |
13922 | drand48 (); | |
13923 | ; | |
13924 | return 0; | |
13925 | } | |
13926 | _ACEOF | |
13927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13929 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13930 | ac_status=$? |
ac1cb8d3 VS |
13931 | grep -v '^ *+' conftest.er1 >conftest.err |
13932 | rm -f conftest.er1 | |
13933 | cat conftest.err >&5 | |
a848cd7e SC |
13934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13935 | (exit $ac_status); } && | |
6ebeb4c7 | 13936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13938 | (eval $ac_try) 2>&5 | |
13939 | ac_status=$? | |
13940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13941 | (exit $ac_status); }; } && | |
13942 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13944 | (eval $ac_try) 2>&5 | |
13945 | ac_status=$? | |
13946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13947 | (exit $ac_status); }; }; then | |
13948 | ac_cv_lib_cExt_drand48=yes | |
13949 | else | |
13950 | echo "$as_me: failed program was:" >&5 | |
13951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13952 | ||
13953 | ac_cv_lib_cExt_drand48=no | |
13954 | fi | |
ac1cb8d3 VS |
13955 | rm -f conftest.err conftest.$ac_objext \ |
13956 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13957 | LIBS=$ac_check_lib_save_LIBS |
13958 | fi | |
13959 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
13960 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
13961 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
13962 | LIBS="$LIBS -lcExt" | |
13963 | fi | |
13964 | ||
13965 | else | |
13966 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
13967 | fi | |
69120ee4 VZ |
13968 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
13969 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
13970 | if test "${wx_cv_gccversion+set}" = set; then |
13971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13972 | else | |
13973 | ||
391a765e VS |
13974 | if test "$cross_compiling" = yes; then |
13975 | wx_cv_gccversion="EMX2" | |
13976 | ||
13977 | else | |
13978 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
13979 | /* confdefs.h. */ |
13980 | _ACEOF | |
13981 | cat confdefs.h >>conftest.$ac_ext | |
13982 | cat >>conftest.$ac_ext <<_ACEOF | |
13983 | /* end confdefs.h. */ | |
13984 | ||
391a765e | 13985 | #include <stdio.h> |
a848cd7e | 13986 | |
391a765e VS |
13987 | int main() |
13988 | { | |
13989 | FILE *f=fopen("conftestval", "w"); | |
13990 | if (!f) exit(1); | |
13991 | fprintf(f, | |
a848cd7e | 13992 | #if (__GNUC__ < 3) |
391a765e VS |
13993 | "EMX2" |
13994 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
13995 | "EMX3" | |
13996 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
13997 | "Innotek5" | |
13998 | #else | |
13999 | "Innotek6" | |
a848cd7e | 14000 | #endif |
391a765e VS |
14001 | ); |
14002 | exit(0); | |
14003 | } | |
a848cd7e | 14004 | |
a848cd7e | 14005 | _ACEOF |
391a765e VS |
14006 | rm -f conftest$ac_exeext |
14007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14008 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
14009 | ac_status=$? |
14010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 14011 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
14012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14013 | (eval $ac_try) 2>&5 | |
14014 | ac_status=$? | |
14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14016 | (exit $ac_status); }; }; then | |
391a765e | 14017 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 14018 | else |
391a765e VS |
14019 | echo "$as_me: program exited with status $ac_status" >&5 |
14020 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
14021 | sed 's/^/| /' conftest.$ac_ext >&5 |
14022 | ||
391a765e VS |
14023 | ( exit $ac_status ) |
14024 | wx_cv_gccversion="EMX2" | |
a848cd7e | 14025 | fi |
391a765e | 14026 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14027 | fi |
a848cd7e SC |
14028 | |
14029 | fi | |
14030 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
14031 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 14032 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
14033 | LIBS="$LIBS -lstdcpp" |
14034 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
14035 | else | |
391a765e | 14036 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 14037 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
14038 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
14039 | else | |
14040 | LIBS="$LIBS -lstdc++" | |
14041 | fi | |
14042 | fi | |
94acd38e DE |
14043 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
14044 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
14045 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
14046 | wxUSE_OMF=yes | |
2da0c077 | 14047 | enable_omf=yes |
a848cd7e SC |
14048 | fi |
14049 | ;; | |
14050 | *) | |
14051 | ||
14052 | ||
14053 | ||
14054 | ac_ext=cc | |
14055 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14056 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14057 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14058 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14059 | ||
14060 | ||
95986553 | 14061 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
14062 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
14063 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
14064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14065 | else | |
14066 | ||
14067 | cat >conftest.$ac_ext <<_ACEOF | |
14068 | /* confdefs.h. */ | |
14069 | _ACEOF | |
14070 | cat confdefs.h >>conftest.$ac_ext | |
14071 | cat >>conftest.$ac_ext <<_ACEOF | |
14072 | /* end confdefs.h. */ | |
14073 | ||
14074 | #include <string.h> | |
14075 | ||
14076 | int | |
14077 | main () | |
14078 | { | |
14079 | ||
14080 | strcasecmp("foo", "bar"); | |
14081 | ||
14082 | ; | |
14083 | return 0; | |
14084 | } | |
14085 | _ACEOF | |
14086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14088 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14089 | ac_status=$? |
ac1cb8d3 VS |
14090 | grep -v '^ *+' conftest.er1 >conftest.err |
14091 | rm -f conftest.er1 | |
14092 | cat conftest.err >&5 | |
a848cd7e SC |
14093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14094 | (exit $ac_status); } && | |
6ebeb4c7 | 14095 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14097 | (eval $ac_try) 2>&5 | |
14098 | ac_status=$? | |
14099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14100 | (exit $ac_status); }; } && | |
14101 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14103 | (eval $ac_try) 2>&5 | |
14104 | ac_status=$? | |
14105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14106 | (exit $ac_status); }; }; then | |
14107 | ac_cv_string_strcasecmp=yes | |
14108 | else | |
14109 | echo "$as_me: failed program was:" >&5 | |
14110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14111 | ||
14112 | ac_cv_string_strcasecmp=no | |
14113 | ||
14114 | fi | |
ac1cb8d3 VS |
14115 | rm -f conftest.err conftest.$ac_objext \ |
14116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14117 | |
14118 | fi | |
14119 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
14120 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
14121 | ||
14122 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
14123 | cat >>confdefs.h <<\_ACEOF | |
14124 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
14125 | _ACEOF | |
14126 | ||
14127 | else | |
14128 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
14129 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
14130 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
14131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14132 | else | |
14133 | ||
14134 | cat >conftest.$ac_ext <<_ACEOF | |
14135 | /* confdefs.h. */ | |
14136 | _ACEOF | |
14137 | cat confdefs.h >>conftest.$ac_ext | |
14138 | cat >>conftest.$ac_ext <<_ACEOF | |
14139 | /* end confdefs.h. */ | |
14140 | ||
14141 | #include <strings.h> | |
14142 | ||
14143 | int | |
14144 | main () | |
14145 | { | |
14146 | ||
14147 | strcasecmp("foo", "bar"); | |
14148 | ||
14149 | ; | |
14150 | return 0; | |
14151 | } | |
14152 | _ACEOF | |
14153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14155 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14156 | ac_status=$? |
ac1cb8d3 VS |
14157 | grep -v '^ *+' conftest.er1 >conftest.err |
14158 | rm -f conftest.er1 | |
14159 | cat conftest.err >&5 | |
a848cd7e SC |
14160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14161 | (exit $ac_status); } && | |
6ebeb4c7 | 14162 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14164 | (eval $ac_try) 2>&5 | |
14165 | ac_status=$? | |
14166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14167 | (exit $ac_status); }; } && | |
14168 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14170 | (eval $ac_try) 2>&5 | |
14171 | ac_status=$? | |
14172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14173 | (exit $ac_status); }; }; then | |
14174 | ac_cv_strings_strcasecmp=yes | |
14175 | else | |
14176 | echo "$as_me: failed program was:" >&5 | |
14177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14178 | ||
14179 | ac_cv_strings_strcasecmp=no | |
14180 | ||
14181 | fi | |
ac1cb8d3 VS |
14182 | rm -f conftest.err conftest.$ac_objext \ |
14183 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14184 | |
14185 | fi | |
14186 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
14187 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
14188 | ||
0c3c69fc | 14189 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
14190 | cat >>confdefs.h <<\_ACEOF |
14191 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
14192 | _ACEOF | |
14193 | ||
14194 | else | |
14195 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
14196 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
14197 | { (exit 1); exit 1; }; } | |
14198 | fi | |
14199 | fi | |
14200 | ||
14201 | ac_ext=c | |
14202 | ac_cpp='$CPP $CPPFLAGS' | |
14203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14206 | ||
14207 | ;; | |
14208 | esac | |
14209 | ||
14210 | ||
14211 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
14212 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
14213 | if test "${ac_cv_header_stdc+set}" = set; then | |
14214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14215 | else | |
14216 | cat >conftest.$ac_ext <<_ACEOF | |
14217 | /* confdefs.h. */ | |
14218 | _ACEOF | |
14219 | cat confdefs.h >>conftest.$ac_ext | |
14220 | cat >>conftest.$ac_ext <<_ACEOF | |
14221 | /* end confdefs.h. */ | |
14222 | #include <stdlib.h> | |
14223 | #include <stdarg.h> | |
14224 | #include <string.h> | |
14225 | #include <float.h> | |
14226 | ||
14227 | int | |
14228 | main () | |
14229 | { | |
14230 | ||
14231 | ; | |
14232 | return 0; | |
14233 | } | |
14234 | _ACEOF | |
14235 | rm -f conftest.$ac_objext | |
14236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14237 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14238 | ac_status=$? |
ac1cb8d3 VS |
14239 | grep -v '^ *+' conftest.er1 >conftest.err |
14240 | rm -f conftest.er1 | |
14241 | cat conftest.err >&5 | |
a848cd7e SC |
14242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14243 | (exit $ac_status); } && | |
6ebeb4c7 | 14244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14246 | (eval $ac_try) 2>&5 | |
14247 | ac_status=$? | |
14248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14249 | (exit $ac_status); }; } && | |
14250 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14252 | (eval $ac_try) 2>&5 | |
14253 | ac_status=$? | |
14254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14255 | (exit $ac_status); }; }; then | |
14256 | ac_cv_header_stdc=yes | |
14257 | else | |
14258 | echo "$as_me: failed program was:" >&5 | |
14259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14260 | ||
14261 | ac_cv_header_stdc=no | |
14262 | fi | |
ac1cb8d3 | 14263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14264 | |
14265 | if test $ac_cv_header_stdc = yes; then | |
14266 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14267 | cat >conftest.$ac_ext <<_ACEOF | |
14268 | /* confdefs.h. */ | |
14269 | _ACEOF | |
14270 | cat confdefs.h >>conftest.$ac_ext | |
14271 | cat >>conftest.$ac_ext <<_ACEOF | |
14272 | /* end confdefs.h. */ | |
14273 | #include <string.h> | |
14274 | ||
14275 | _ACEOF | |
14276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14277 | $EGREP "memchr" >/dev/null 2>&1; then | |
14278 | : | |
14279 | else | |
14280 | ac_cv_header_stdc=no | |
14281 | fi | |
14282 | rm -f conftest* | |
14283 | ||
14284 | fi | |
14285 | ||
14286 | if test $ac_cv_header_stdc = yes; then | |
14287 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14288 | cat >conftest.$ac_ext <<_ACEOF | |
14289 | /* confdefs.h. */ | |
14290 | _ACEOF | |
14291 | cat confdefs.h >>conftest.$ac_ext | |
14292 | cat >>conftest.$ac_ext <<_ACEOF | |
14293 | /* end confdefs.h. */ | |
14294 | #include <stdlib.h> | |
14295 | ||
14296 | _ACEOF | |
14297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14298 | $EGREP "free" >/dev/null 2>&1; then | |
14299 | : | |
14300 | else | |
14301 | ac_cv_header_stdc=no | |
14302 | fi | |
14303 | rm -f conftest* | |
14304 | ||
14305 | fi | |
14306 | ||
14307 | if test $ac_cv_header_stdc = yes; then | |
14308 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14309 | if test "$cross_compiling" = yes; then | |
14310 | : | |
14311 | else | |
14312 | cat >conftest.$ac_ext <<_ACEOF | |
14313 | /* confdefs.h. */ | |
14314 | _ACEOF | |
14315 | cat confdefs.h >>conftest.$ac_ext | |
14316 | cat >>conftest.$ac_ext <<_ACEOF | |
14317 | /* end confdefs.h. */ | |
14318 | #include <ctype.h> | |
14319 | #if ((' ' & 0x0FF) == 0x020) | |
14320 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14321 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14322 | #else | |
14323 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
14324 | (('a' <= (c) && (c) <= 'i') \ |
14325 | || ('j' <= (c) && (c) <= 'r') \ | |
14326 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
14327 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
14328 | #endif | |
14329 | ||
14330 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
14331 | int | |
14332 | main () | |
14333 | { | |
14334 | int i; | |
14335 | for (i = 0; i < 256; i++) | |
14336 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 14337 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
14338 | exit(2); |
14339 | exit (0); | |
14340 | } | |
14341 | _ACEOF | |
14342 | rm -f conftest$ac_exeext | |
14343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14344 | (eval $ac_link) 2>&5 | |
14345 | ac_status=$? | |
14346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14347 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14349 | (eval $ac_try) 2>&5 | |
14350 | ac_status=$? | |
14351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14352 | (exit $ac_status); }; }; then | |
14353 | : | |
14354 | else | |
14355 | echo "$as_me: program exited with status $ac_status" >&5 | |
14356 | echo "$as_me: failed program was:" >&5 | |
14357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14358 | ||
14359 | ( exit $ac_status ) | |
14360 | ac_cv_header_stdc=no | |
14361 | fi | |
ac1cb8d3 | 14362 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14363 | fi |
14364 | fi | |
14365 | fi | |
14366 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
14367 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
14368 | if test $ac_cv_header_stdc = yes; then | |
14369 | ||
14370 | cat >>confdefs.h <<\_ACEOF | |
14371 | #define STDC_HEADERS 1 | |
14372 | _ACEOF | |
14373 | ||
14374 | fi | |
14375 | ||
14376 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
14377 | ||
14378 | ||
14379 | ||
14380 | ||
14381 | ||
14382 | ||
14383 | ||
14384 | ||
14385 | ||
14386 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 14387 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
14388 | do |
14389 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14390 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14392 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14394 | else | |
14395 | cat >conftest.$ac_ext <<_ACEOF | |
14396 | /* confdefs.h. */ | |
14397 | _ACEOF | |
14398 | cat confdefs.h >>conftest.$ac_ext | |
14399 | cat >>conftest.$ac_ext <<_ACEOF | |
14400 | /* end confdefs.h. */ | |
14401 | $ac_includes_default | |
14402 | ||
14403 | #include <$ac_header> | |
14404 | _ACEOF | |
14405 | rm -f conftest.$ac_objext | |
14406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14407 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14408 | ac_status=$? |
ac1cb8d3 VS |
14409 | grep -v '^ *+' conftest.er1 >conftest.err |
14410 | rm -f conftest.er1 | |
14411 | cat conftest.err >&5 | |
a848cd7e SC |
14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14413 | (exit $ac_status); } && | |
6ebeb4c7 | 14414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14416 | (eval $ac_try) 2>&5 | |
14417 | ac_status=$? | |
14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14419 | (exit $ac_status); }; } && | |
14420 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14422 | (eval $ac_try) 2>&5 | |
14423 | ac_status=$? | |
14424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14425 | (exit $ac_status); }; }; then | |
14426 | eval "$as_ac_Header=yes" | |
14427 | else | |
14428 | echo "$as_me: failed program was:" >&5 | |
14429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14430 | ||
14431 | eval "$as_ac_Header=no" | |
14432 | fi | |
ac1cb8d3 | 14433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14434 | fi |
14435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14436 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14437 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14438 | cat >>confdefs.h <<_ACEOF | |
14439 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14440 | _ACEOF | |
14441 | ||
14442 | fi | |
14443 | ||
14444 | done | |
14445 | ||
14446 | ||
14447 | ||
14448 | for ac_header in stdlib.h | |
14449 | do | |
14450 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14451 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14452 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14453 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14454 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14456 | fi | |
14457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14458 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14459 | else | |
14460 | # Is the header compilable? | |
14461 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14462 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14463 | cat >conftest.$ac_ext <<_ACEOF | |
14464 | /* confdefs.h. */ | |
14465 | _ACEOF | |
14466 | cat confdefs.h >>conftest.$ac_ext | |
14467 | cat >>conftest.$ac_ext <<_ACEOF | |
14468 | /* end confdefs.h. */ | |
14469 | $ac_includes_default | |
14470 | #include <$ac_header> | |
14471 | _ACEOF | |
14472 | rm -f conftest.$ac_objext | |
14473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14474 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14475 | ac_status=$? |
ac1cb8d3 VS |
14476 | grep -v '^ *+' conftest.er1 >conftest.err |
14477 | rm -f conftest.er1 | |
14478 | cat conftest.err >&5 | |
a848cd7e SC |
14479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14480 | (exit $ac_status); } && | |
6ebeb4c7 | 14481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14483 | (eval $ac_try) 2>&5 | |
14484 | ac_status=$? | |
14485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14486 | (exit $ac_status); }; } && | |
14487 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14489 | (eval $ac_try) 2>&5 | |
14490 | ac_status=$? | |
14491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14492 | (exit $ac_status); }; }; then | |
14493 | ac_header_compiler=yes | |
14494 | else | |
14495 | echo "$as_me: failed program was:" >&5 | |
14496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14497 | ||
14498 | ac_header_compiler=no | |
14499 | fi | |
ac1cb8d3 | 14500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14501 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14502 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14503 | ||
14504 | # Is the header present? | |
14505 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14506 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14507 | cat >conftest.$ac_ext <<_ACEOF | |
14508 | /* confdefs.h. */ | |
14509 | _ACEOF | |
14510 | cat confdefs.h >>conftest.$ac_ext | |
14511 | cat >>conftest.$ac_ext <<_ACEOF | |
14512 | /* end confdefs.h. */ | |
14513 | #include <$ac_header> | |
14514 | _ACEOF | |
14515 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14516 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14517 | ac_status=$? | |
14518 | grep -v '^ *+' conftest.er1 >conftest.err | |
14519 | rm -f conftest.er1 | |
14520 | cat conftest.err >&5 | |
14521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14522 | (exit $ac_status); } >/dev/null; then | |
14523 | if test -s conftest.err; then | |
14524 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14525 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14526 | else |
14527 | ac_cpp_err= | |
14528 | fi | |
14529 | else | |
14530 | ac_cpp_err=yes | |
14531 | fi | |
14532 | if test -z "$ac_cpp_err"; then | |
14533 | ac_header_preproc=yes | |
14534 | else | |
14535 | echo "$as_me: failed program was:" >&5 | |
14536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14537 | ||
14538 | ac_header_preproc=no | |
14539 | fi | |
14540 | rm -f conftest.err conftest.$ac_ext | |
14541 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14542 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14543 | ||
14544 | # So? What about this header? | |
ac1cb8d3 VS |
14545 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14546 | yes:no: ) | |
a848cd7e SC |
14547 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14548 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14550 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14551 | ac_header_preproc=yes | |
a848cd7e | 14552 | ;; |
ac1cb8d3 | 14553 | no:yes:* ) |
a848cd7e SC |
14554 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14555 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14556 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14557 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14558 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14559 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14560 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14561 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14562 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14563 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14564 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14565 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14566 | ( |
14567 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14568 | ## ----------------------------------------- ## |
14569 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14570 | ## ----------------------------------------- ## | |
a848cd7e SC |
14571 | _ASBOX |
14572 | ) | | |
14573 | sed "s/^/$as_me: WARNING: /" >&2 | |
14574 | ;; | |
14575 | esac | |
14576 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14578 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14580 | else | |
ac1cb8d3 | 14581 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14582 | fi |
14583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14584 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14585 | ||
14586 | fi | |
14587 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14588 | cat >>confdefs.h <<_ACEOF | |
14589 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14590 | _ACEOF | |
14591 | ||
14592 | fi | |
14593 | ||
14594 | done | |
14595 | ||
14596 | ||
14597 | for ac_header in malloc.h | |
14598 | do | |
14599 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14601 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14602 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14605 | fi | |
14606 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14607 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14608 | else | |
14609 | # Is the header compilable? | |
14610 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14611 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14612 | cat >conftest.$ac_ext <<_ACEOF | |
14613 | /* confdefs.h. */ | |
14614 | _ACEOF | |
14615 | cat confdefs.h >>conftest.$ac_ext | |
14616 | cat >>conftest.$ac_ext <<_ACEOF | |
14617 | /* end confdefs.h. */ | |
14618 | $ac_includes_default | |
14619 | #include <$ac_header> | |
14620 | _ACEOF | |
14621 | rm -f conftest.$ac_objext | |
14622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14623 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14624 | ac_status=$? |
ac1cb8d3 VS |
14625 | grep -v '^ *+' conftest.er1 >conftest.err |
14626 | rm -f conftest.er1 | |
14627 | cat conftest.err >&5 | |
a848cd7e SC |
14628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14629 | (exit $ac_status); } && | |
6ebeb4c7 | 14630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14632 | (eval $ac_try) 2>&5 | |
14633 | ac_status=$? | |
14634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14635 | (exit $ac_status); }; } && | |
14636 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14638 | (eval $ac_try) 2>&5 | |
14639 | ac_status=$? | |
14640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14641 | (exit $ac_status); }; }; then | |
14642 | ac_header_compiler=yes | |
14643 | else | |
14644 | echo "$as_me: failed program was:" >&5 | |
14645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14646 | ||
14647 | ac_header_compiler=no | |
14648 | fi | |
ac1cb8d3 | 14649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14650 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14651 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14652 | ||
14653 | # Is the header present? | |
14654 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14655 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14656 | cat >conftest.$ac_ext <<_ACEOF | |
14657 | /* confdefs.h. */ | |
14658 | _ACEOF | |
14659 | cat confdefs.h >>conftest.$ac_ext | |
14660 | cat >>conftest.$ac_ext <<_ACEOF | |
14661 | /* end confdefs.h. */ | |
14662 | #include <$ac_header> | |
14663 | _ACEOF | |
14664 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14665 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14666 | ac_status=$? | |
14667 | grep -v '^ *+' conftest.er1 >conftest.err | |
14668 | rm -f conftest.er1 | |
14669 | cat conftest.err >&5 | |
14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14671 | (exit $ac_status); } >/dev/null; then | |
14672 | if test -s conftest.err; then | |
14673 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14674 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14675 | else |
14676 | ac_cpp_err= | |
14677 | fi | |
14678 | else | |
14679 | ac_cpp_err=yes | |
14680 | fi | |
14681 | if test -z "$ac_cpp_err"; then | |
14682 | ac_header_preproc=yes | |
14683 | else | |
14684 | echo "$as_me: failed program was:" >&5 | |
14685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14686 | ||
14687 | ac_header_preproc=no | |
14688 | fi | |
14689 | rm -f conftest.err conftest.$ac_ext | |
14690 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14691 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14692 | ||
14693 | # So? What about this header? | |
ac1cb8d3 VS |
14694 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14695 | yes:no: ) | |
a848cd7e SC |
14696 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14697 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14699 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14700 | ac_header_preproc=yes | |
a848cd7e | 14701 | ;; |
ac1cb8d3 | 14702 | no:yes:* ) |
a848cd7e SC |
14703 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14704 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14705 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14706 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14707 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14708 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14709 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14710 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14712 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14713 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14714 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14715 | ( |
14716 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14717 | ## ----------------------------------------- ## |
14718 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14719 | ## ----------------------------------------- ## | |
a848cd7e SC |
14720 | _ASBOX |
14721 | ) | | |
14722 | sed "s/^/$as_me: WARNING: /" >&2 | |
14723 | ;; | |
14724 | esac | |
14725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14729 | else | |
ac1cb8d3 | 14730 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14731 | fi |
14732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14734 | ||
14735 | fi | |
14736 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14737 | cat >>confdefs.h <<_ACEOF | |
14738 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14739 | _ACEOF | |
14740 | ||
14741 | fi | |
14742 | ||
14743 | done | |
14744 | ||
14745 | ||
14746 | for ac_header in unistd.h | |
14747 | do | |
14748 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14749 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14750 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14751 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14752 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14754 | fi | |
14755 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14756 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14757 | else | |
14758 | # Is the header compilable? | |
14759 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14760 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14761 | cat >conftest.$ac_ext <<_ACEOF | |
14762 | /* confdefs.h. */ | |
14763 | _ACEOF | |
14764 | cat confdefs.h >>conftest.$ac_ext | |
14765 | cat >>conftest.$ac_ext <<_ACEOF | |
14766 | /* end confdefs.h. */ | |
14767 | $ac_includes_default | |
14768 | #include <$ac_header> | |
14769 | _ACEOF | |
14770 | rm -f conftest.$ac_objext | |
14771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14772 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14773 | ac_status=$? |
ac1cb8d3 VS |
14774 | grep -v '^ *+' conftest.er1 >conftest.err |
14775 | rm -f conftest.er1 | |
14776 | cat conftest.err >&5 | |
a848cd7e SC |
14777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14778 | (exit $ac_status); } && | |
6ebeb4c7 | 14779 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14781 | (eval $ac_try) 2>&5 | |
14782 | ac_status=$? | |
14783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14784 | (exit $ac_status); }; } && | |
14785 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
14791 | ac_header_compiler=yes | |
14792 | else | |
14793 | echo "$as_me: failed program was:" >&5 | |
14794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14795 | ||
14796 | ac_header_compiler=no | |
14797 | fi | |
ac1cb8d3 | 14798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14799 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14800 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14801 | ||
14802 | # Is the header present? | |
14803 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14804 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14805 | cat >conftest.$ac_ext <<_ACEOF | |
14806 | /* confdefs.h. */ | |
14807 | _ACEOF | |
14808 | cat confdefs.h >>conftest.$ac_ext | |
14809 | cat >>conftest.$ac_ext <<_ACEOF | |
14810 | /* end confdefs.h. */ | |
14811 | #include <$ac_header> | |
14812 | _ACEOF | |
14813 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14814 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14815 | ac_status=$? | |
14816 | grep -v '^ *+' conftest.er1 >conftest.err | |
14817 | rm -f conftest.er1 | |
14818 | cat conftest.err >&5 | |
14819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14820 | (exit $ac_status); } >/dev/null; then | |
14821 | if test -s conftest.err; then | |
14822 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14823 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14824 | else |
14825 | ac_cpp_err= | |
14826 | fi | |
14827 | else | |
14828 | ac_cpp_err=yes | |
14829 | fi | |
14830 | if test -z "$ac_cpp_err"; then | |
14831 | ac_header_preproc=yes | |
14832 | else | |
14833 | echo "$as_me: failed program was:" >&5 | |
14834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14835 | ||
14836 | ac_header_preproc=no | |
14837 | fi | |
14838 | rm -f conftest.err conftest.$ac_ext | |
14839 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14840 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14841 | ||
14842 | # So? What about this header? | |
ac1cb8d3 VS |
14843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14844 | yes:no: ) | |
a848cd7e SC |
14845 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14846 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14848 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14849 | ac_header_preproc=yes | |
a848cd7e | 14850 | ;; |
ac1cb8d3 | 14851 | no:yes:* ) |
a848cd7e SC |
14852 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14853 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14854 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14855 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14856 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14857 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14858 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14859 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14861 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14862 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14863 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14864 | ( |
14865 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14866 | ## ----------------------------------------- ## |
14867 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14868 | ## ----------------------------------------- ## | |
a848cd7e SC |
14869 | _ASBOX |
14870 | ) | | |
14871 | sed "s/^/$as_me: WARNING: /" >&2 | |
14872 | ;; | |
14873 | esac | |
14874 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14878 | else | |
ac1cb8d3 | 14879 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14880 | fi |
14881 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14882 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14883 | ||
14884 | fi | |
14885 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14886 | cat >>confdefs.h <<_ACEOF | |
14887 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14888 | _ACEOF | |
14889 | ||
14890 | fi | |
14891 | ||
14892 | done | |
14893 | ||
14894 | ||
14895 | for ac_header in wchar.h | |
14896 | do | |
14897 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14903 | fi | |
14904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14905 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14906 | else | |
14907 | # Is the header compilable? | |
14908 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14909 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14910 | cat >conftest.$ac_ext <<_ACEOF | |
14911 | /* confdefs.h. */ | |
14912 | _ACEOF | |
14913 | cat confdefs.h >>conftest.$ac_ext | |
14914 | cat >>conftest.$ac_ext <<_ACEOF | |
14915 | /* end confdefs.h. */ | |
14916 | $ac_includes_default | |
14917 | #include <$ac_header> | |
14918 | _ACEOF | |
14919 | rm -f conftest.$ac_objext | |
14920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14921 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14922 | ac_status=$? |
ac1cb8d3 VS |
14923 | grep -v '^ *+' conftest.er1 >conftest.err |
14924 | rm -f conftest.er1 | |
14925 | cat conftest.err >&5 | |
a848cd7e SC |
14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14927 | (exit $ac_status); } && | |
6ebeb4c7 | 14928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14930 | (eval $ac_try) 2>&5 | |
14931 | ac_status=$? | |
14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14933 | (exit $ac_status); }; } && | |
14934 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14936 | (eval $ac_try) 2>&5 | |
14937 | ac_status=$? | |
14938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14939 | (exit $ac_status); }; }; then | |
14940 | ac_header_compiler=yes | |
14941 | else | |
14942 | echo "$as_me: failed program was:" >&5 | |
14943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14944 | ||
14945 | ac_header_compiler=no | |
14946 | fi | |
ac1cb8d3 | 14947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14948 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14949 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14950 | ||
14951 | # Is the header present? | |
14952 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14953 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14954 | cat >conftest.$ac_ext <<_ACEOF | |
14955 | /* confdefs.h. */ | |
14956 | _ACEOF | |
14957 | cat confdefs.h >>conftest.$ac_ext | |
14958 | cat >>conftest.$ac_ext <<_ACEOF | |
14959 | /* end confdefs.h. */ | |
14960 | #include <$ac_header> | |
14961 | _ACEOF | |
14962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14964 | ac_status=$? | |
14965 | grep -v '^ *+' conftest.er1 >conftest.err | |
14966 | rm -f conftest.er1 | |
14967 | cat conftest.err >&5 | |
14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14969 | (exit $ac_status); } >/dev/null; then | |
14970 | if test -s conftest.err; then | |
14971 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14972 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14973 | else |
14974 | ac_cpp_err= | |
14975 | fi | |
14976 | else | |
14977 | ac_cpp_err=yes | |
14978 | fi | |
14979 | if test -z "$ac_cpp_err"; then | |
14980 | ac_header_preproc=yes | |
14981 | else | |
14982 | echo "$as_me: failed program was:" >&5 | |
14983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14984 | ||
14985 | ac_header_preproc=no | |
14986 | fi | |
14987 | rm -f conftest.err conftest.$ac_ext | |
14988 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14989 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14990 | ||
14991 | # So? What about this header? | |
ac1cb8d3 VS |
14992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14993 | yes:no: ) | |
a848cd7e SC |
14994 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14995 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14997 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14998 | ac_header_preproc=yes | |
a848cd7e | 14999 | ;; |
ac1cb8d3 | 15000 | no:yes:* ) |
a848cd7e SC |
15001 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15002 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15003 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15004 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15005 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15006 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15007 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15008 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15010 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15011 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15012 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15013 | ( |
15014 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15015 | ## ----------------------------------------- ## |
15016 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15017 | ## ----------------------------------------- ## | |
a848cd7e SC |
15018 | _ASBOX |
15019 | ) | | |
15020 | sed "s/^/$as_me: WARNING: /" >&2 | |
15021 | ;; | |
15022 | esac | |
15023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15027 | else | |
ac1cb8d3 | 15028 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15029 | fi |
15030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15032 | ||
15033 | fi | |
15034 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15035 | cat >>confdefs.h <<_ACEOF | |
15036 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15037 | _ACEOF | |
15038 | ||
15039 | fi | |
15040 | ||
15041 | done | |
15042 | ||
15043 | ||
15044 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
15045 | ||
15046 | for ac_header in wcstr.h | |
15047 | do | |
15048 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15050 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15054 | fi | |
15055 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15056 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15057 | else | |
15058 | # Is the header compilable? | |
15059 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15060 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15061 | cat >conftest.$ac_ext <<_ACEOF | |
15062 | /* confdefs.h. */ | |
15063 | _ACEOF | |
15064 | cat confdefs.h >>conftest.$ac_ext | |
15065 | cat >>conftest.$ac_ext <<_ACEOF | |
15066 | /* end confdefs.h. */ | |
15067 | $ac_includes_default | |
15068 | #include <$ac_header> | |
15069 | _ACEOF | |
15070 | rm -f conftest.$ac_objext | |
15071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15072 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15073 | ac_status=$? |
ac1cb8d3 VS |
15074 | grep -v '^ *+' conftest.er1 >conftest.err |
15075 | rm -f conftest.er1 | |
15076 | cat conftest.err >&5 | |
a848cd7e SC |
15077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15078 | (exit $ac_status); } && | |
6ebeb4c7 | 15079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15081 | (eval $ac_try) 2>&5 | |
15082 | ac_status=$? | |
15083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15084 | (exit $ac_status); }; } && | |
15085 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15087 | (eval $ac_try) 2>&5 | |
15088 | ac_status=$? | |
15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15090 | (exit $ac_status); }; }; then | |
15091 | ac_header_compiler=yes | |
15092 | else | |
15093 | echo "$as_me: failed program was:" >&5 | |
15094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15095 | ||
15096 | ac_header_compiler=no | |
15097 | fi | |
ac1cb8d3 | 15098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15099 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15100 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15101 | ||
15102 | # Is the header present? | |
15103 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15105 | cat >conftest.$ac_ext <<_ACEOF | |
15106 | /* confdefs.h. */ | |
15107 | _ACEOF | |
15108 | cat confdefs.h >>conftest.$ac_ext | |
15109 | cat >>conftest.$ac_ext <<_ACEOF | |
15110 | /* end confdefs.h. */ | |
15111 | #include <$ac_header> | |
15112 | _ACEOF | |
15113 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15114 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15115 | ac_status=$? | |
15116 | grep -v '^ *+' conftest.er1 >conftest.err | |
15117 | rm -f conftest.er1 | |
15118 | cat conftest.err >&5 | |
15119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15120 | (exit $ac_status); } >/dev/null; then | |
15121 | if test -s conftest.err; then | |
15122 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15123 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15124 | else |
15125 | ac_cpp_err= | |
15126 | fi | |
15127 | else | |
15128 | ac_cpp_err=yes | |
15129 | fi | |
15130 | if test -z "$ac_cpp_err"; then | |
15131 | ac_header_preproc=yes | |
15132 | else | |
15133 | echo "$as_me: failed program was:" >&5 | |
15134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15135 | ||
15136 | ac_header_preproc=no | |
15137 | fi | |
15138 | rm -f conftest.err conftest.$ac_ext | |
15139 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15140 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15141 | ||
15142 | # So? What about this header? | |
ac1cb8d3 VS |
15143 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15144 | yes:no: ) | |
a848cd7e SC |
15145 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15146 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15148 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15149 | ac_header_preproc=yes | |
a848cd7e | 15150 | ;; |
ac1cb8d3 | 15151 | no:yes:* ) |
a848cd7e SC |
15152 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15153 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15154 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15155 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15156 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15157 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15158 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15159 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15161 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15162 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15163 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15164 | ( |
15165 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15166 | ## ----------------------------------------- ## |
15167 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15168 | ## ----------------------------------------- ## | |
a848cd7e SC |
15169 | _ASBOX |
15170 | ) | | |
15171 | sed "s/^/$as_me: WARNING: /" >&2 | |
15172 | ;; | |
15173 | esac | |
15174 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15178 | else | |
ac1cb8d3 | 15179 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15180 | fi |
15181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15182 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15183 | ||
15184 | fi | |
15185 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15186 | cat >>confdefs.h <<_ACEOF | |
15187 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15188 | _ACEOF | |
15189 | ||
15190 | fi | |
15191 | ||
15192 | done | |
15193 | ||
15194 | fi | |
15195 | ||
15196 | ||
15197 | for ac_header in fnmatch.h | |
15198 | do | |
15199 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15200 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15201 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15202 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15203 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15205 | fi | |
15206 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15207 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15208 | else | |
15209 | # Is the header compilable? | |
15210 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15211 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15212 | cat >conftest.$ac_ext <<_ACEOF | |
15213 | /* confdefs.h. */ | |
15214 | _ACEOF | |
15215 | cat confdefs.h >>conftest.$ac_ext | |
15216 | cat >>conftest.$ac_ext <<_ACEOF | |
15217 | /* end confdefs.h. */ | |
15218 | $ac_includes_default | |
15219 | #include <$ac_header> | |
15220 | _ACEOF | |
15221 | rm -f conftest.$ac_objext | |
15222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15223 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15224 | ac_status=$? |
ac1cb8d3 VS |
15225 | grep -v '^ *+' conftest.er1 >conftest.err |
15226 | rm -f conftest.er1 | |
15227 | cat conftest.err >&5 | |
a848cd7e SC |
15228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15229 | (exit $ac_status); } && | |
6ebeb4c7 | 15230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15232 | (eval $ac_try) 2>&5 | |
15233 | ac_status=$? | |
15234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15235 | (exit $ac_status); }; } && | |
15236 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15238 | (eval $ac_try) 2>&5 | |
15239 | ac_status=$? | |
15240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15241 | (exit $ac_status); }; }; then | |
15242 | ac_header_compiler=yes | |
15243 | else | |
15244 | echo "$as_me: failed program was:" >&5 | |
15245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15246 | ||
15247 | ac_header_compiler=no | |
15248 | fi | |
ac1cb8d3 | 15249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15250 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15251 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15252 | ||
15253 | # Is the header present? | |
15254 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15255 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15256 | cat >conftest.$ac_ext <<_ACEOF | |
15257 | /* confdefs.h. */ | |
15258 | _ACEOF | |
15259 | cat confdefs.h >>conftest.$ac_ext | |
15260 | cat >>conftest.$ac_ext <<_ACEOF | |
15261 | /* end confdefs.h. */ | |
15262 | #include <$ac_header> | |
15263 | _ACEOF | |
15264 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15265 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15266 | ac_status=$? | |
15267 | grep -v '^ *+' conftest.er1 >conftest.err | |
15268 | rm -f conftest.er1 | |
15269 | cat conftest.err >&5 | |
15270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15271 | (exit $ac_status); } >/dev/null; then | |
15272 | if test -s conftest.err; then | |
15273 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15274 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15275 | else |
15276 | ac_cpp_err= | |
15277 | fi | |
15278 | else | |
15279 | ac_cpp_err=yes | |
15280 | fi | |
15281 | if test -z "$ac_cpp_err"; then | |
15282 | ac_header_preproc=yes | |
15283 | else | |
15284 | echo "$as_me: failed program was:" >&5 | |
15285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15286 | ||
15287 | ac_header_preproc=no | |
15288 | fi | |
15289 | rm -f conftest.err conftest.$ac_ext | |
15290 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15291 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15292 | ||
15293 | # So? What about this header? | |
ac1cb8d3 VS |
15294 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15295 | yes:no: ) | |
a848cd7e SC |
15296 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15297 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15298 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15299 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15300 | ac_header_preproc=yes | |
a848cd7e | 15301 | ;; |
ac1cb8d3 | 15302 | no:yes:* ) |
a848cd7e SC |
15303 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15304 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15305 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15306 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15307 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15308 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15309 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15310 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15311 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15312 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15313 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15314 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15315 | ( |
15316 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15317 | ## ----------------------------------------- ## |
15318 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15319 | ## ----------------------------------------- ## | |
a848cd7e SC |
15320 | _ASBOX |
15321 | ) | | |
15322 | sed "s/^/$as_me: WARNING: /" >&2 | |
15323 | ;; | |
15324 | esac | |
15325 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15326 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15329 | else | |
ac1cb8d3 | 15330 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15331 | fi |
15332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15333 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15334 | ||
15335 | fi | |
15336 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15337 | cat >>confdefs.h <<_ACEOF | |
15338 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15339 | _ACEOF | |
15340 | ||
15341 | fi | |
15342 | ||
15343 | done | |
15344 | ||
15345 | ||
a848cd7e SC |
15346 | |
15347 | for ac_header in langinfo.h | |
15348 | do | |
15349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15350 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15351 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15355 | fi | |
15356 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15357 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15358 | else | |
15359 | # Is the header compilable? | |
15360 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15361 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15362 | cat >conftest.$ac_ext <<_ACEOF | |
15363 | /* confdefs.h. */ | |
15364 | _ACEOF | |
15365 | cat confdefs.h >>conftest.$ac_ext | |
15366 | cat >>conftest.$ac_ext <<_ACEOF | |
15367 | /* end confdefs.h. */ | |
15368 | $ac_includes_default | |
15369 | #include <$ac_header> | |
15370 | _ACEOF | |
15371 | rm -f conftest.$ac_objext | |
15372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15373 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15374 | ac_status=$? |
ac1cb8d3 VS |
15375 | grep -v '^ *+' conftest.er1 >conftest.err |
15376 | rm -f conftest.er1 | |
15377 | cat conftest.err >&5 | |
a848cd7e SC |
15378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15379 | (exit $ac_status); } && | |
6ebeb4c7 | 15380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15382 | (eval $ac_try) 2>&5 | |
15383 | ac_status=$? | |
15384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15385 | (exit $ac_status); }; } && | |
15386 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15388 | (eval $ac_try) 2>&5 | |
15389 | ac_status=$? | |
15390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15391 | (exit $ac_status); }; }; then | |
15392 | ac_header_compiler=yes | |
15393 | else | |
15394 | echo "$as_me: failed program was:" >&5 | |
15395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15396 | ||
15397 | ac_header_compiler=no | |
15398 | fi | |
ac1cb8d3 | 15399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15400 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15401 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15402 | ||
15403 | # Is the header present? | |
15404 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15405 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15406 | cat >conftest.$ac_ext <<_ACEOF | |
15407 | /* confdefs.h. */ | |
15408 | _ACEOF | |
15409 | cat confdefs.h >>conftest.$ac_ext | |
15410 | cat >>conftest.$ac_ext <<_ACEOF | |
15411 | /* end confdefs.h. */ | |
15412 | #include <$ac_header> | |
15413 | _ACEOF | |
15414 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15415 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15416 | ac_status=$? | |
15417 | grep -v '^ *+' conftest.er1 >conftest.err | |
15418 | rm -f conftest.er1 | |
15419 | cat conftest.err >&5 | |
15420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15421 | (exit $ac_status); } >/dev/null; then | |
15422 | if test -s conftest.err; then | |
15423 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15424 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15425 | else |
15426 | ac_cpp_err= | |
15427 | fi | |
15428 | else | |
15429 | ac_cpp_err=yes | |
15430 | fi | |
15431 | if test -z "$ac_cpp_err"; then | |
15432 | ac_header_preproc=yes | |
15433 | else | |
15434 | echo "$as_me: failed program was:" >&5 | |
15435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15436 | ||
15437 | ac_header_preproc=no | |
15438 | fi | |
15439 | rm -f conftest.err conftest.$ac_ext | |
15440 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15441 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15442 | ||
15443 | # So? What about this header? | |
ac1cb8d3 VS |
15444 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15445 | yes:no: ) | |
a848cd7e SC |
15446 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15447 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15448 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15449 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15450 | ac_header_preproc=yes | |
a848cd7e | 15451 | ;; |
ac1cb8d3 | 15452 | no:yes:* ) |
a848cd7e SC |
15453 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15454 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15455 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15456 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15457 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15458 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15459 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15460 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15462 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15463 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15464 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15465 | ( |
15466 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15467 | ## ----------------------------------------- ## |
15468 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15469 | ## ----------------------------------------- ## | |
a848cd7e SC |
15470 | _ASBOX |
15471 | ) | | |
15472 | sed "s/^/$as_me: WARNING: /" >&2 | |
15473 | ;; | |
15474 | esac | |
15475 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15476 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15477 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15479 | else | |
ac1cb8d3 | 15480 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15481 | fi |
15482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15484 | ||
15485 | fi | |
15486 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15487 | cat >>confdefs.h <<_ACEOF | |
15488 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15489 | _ACEOF | |
15490 | ||
15491 | fi | |
15492 | ||
15493 | done | |
15494 | ||
15495 | ||
15496 | case "${host}" in | |
15497 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
15498 | if test $ac_cv_header_langinfo_h = "yes" \ |
15499 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
15500 | -o "$wx_cv_gccversion" = "EMX3" \ | |
15501 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
15502 | LIBS="$LIBS -lintl" |
15503 | fi | |
15504 | ;; | |
15505 | esac | |
15506 | ||
a848cd7e SC |
15507 | |
15508 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15509 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15510 | if test "${ac_cv_c_const+set}" = set; then | |
15511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15512 | else | |
15513 | cat >conftest.$ac_ext <<_ACEOF | |
15514 | /* confdefs.h. */ | |
15515 | _ACEOF | |
15516 | cat confdefs.h >>conftest.$ac_ext | |
15517 | cat >>conftest.$ac_ext <<_ACEOF | |
15518 | /* end confdefs.h. */ | |
15519 | ||
15520 | int | |
15521 | main () | |
15522 | { | |
15523 | /* FIXME: Include the comments suggested by Paul. */ | |
15524 | #ifndef __cplusplus | |
15525 | /* Ultrix mips cc rejects this. */ | |
15526 | typedef int charset[2]; | |
15527 | const charset x; | |
15528 | /* SunOS 4.1.1 cc rejects this. */ | |
15529 | char const *const *ccp; | |
15530 | char **p; | |
15531 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15532 | struct point {int x, y;}; | |
15533 | static struct point const zero = {0,0}; | |
15534 | /* AIX XL C 1.02.0.0 rejects this. | |
15535 | It does not let you subtract one const X* pointer from another in | |
15536 | an arm of an if-expression whose if-part is not a constant | |
15537 | expression */ | |
15538 | const char *g = "string"; | |
15539 | ccp = &g + (g ? g-g : 0); | |
15540 | /* HPUX 7.0 cc rejects these. */ | |
15541 | ++ccp; | |
15542 | p = (char**) ccp; | |
15543 | ccp = (char const *const *) p; | |
15544 | { /* SCO 3.2v4 cc rejects this. */ | |
15545 | char *t; | |
15546 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15547 | ||
15548 | *t++ = 0; | |
15549 | } | |
15550 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15551 | int x[] = {25, 17}; | |
15552 | const int *foo = &x[0]; | |
15553 | ++foo; | |
15554 | } | |
15555 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15556 | typedef const int *iptr; | |
15557 | iptr p = 0; | |
15558 | ++p; | |
15559 | } | |
15560 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15561 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15562 | struct s { int j; const int *ap[3]; }; | |
15563 | struct s *b; b->j = 5; | |
15564 | } | |
15565 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15566 | const int foo = 10; | |
15567 | } | |
15568 | #endif | |
15569 | ||
15570 | ; | |
15571 | return 0; | |
15572 | } | |
15573 | _ACEOF | |
15574 | rm -f conftest.$ac_objext | |
15575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15576 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15577 | ac_status=$? |
ac1cb8d3 VS |
15578 | grep -v '^ *+' conftest.er1 >conftest.err |
15579 | rm -f conftest.er1 | |
15580 | cat conftest.err >&5 | |
a848cd7e SC |
15581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15582 | (exit $ac_status); } && | |
6ebeb4c7 | 15583 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15585 | (eval $ac_try) 2>&5 | |
15586 | ac_status=$? | |
15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15588 | (exit $ac_status); }; } && | |
15589 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15591 | (eval $ac_try) 2>&5 | |
15592 | ac_status=$? | |
15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15594 | (exit $ac_status); }; }; then | |
15595 | ac_cv_c_const=yes | |
15596 | else | |
15597 | echo "$as_me: failed program was:" >&5 | |
15598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15599 | ||
15600 | ac_cv_c_const=no | |
15601 | fi | |
ac1cb8d3 | 15602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15603 | fi |
15604 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15605 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15606 | if test $ac_cv_c_const = no; then | |
15607 | ||
15608 | cat >>confdefs.h <<\_ACEOF | |
15609 | #define const | |
15610 | _ACEOF | |
15611 | ||
15612 | fi | |
15613 | ||
15614 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15615 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15616 | if test "${ac_cv_c_inline+set}" = set; then | |
15617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15618 | else | |
15619 | ac_cv_c_inline=no | |
15620 | for ac_kw in inline __inline__ __inline; do | |
15621 | cat >conftest.$ac_ext <<_ACEOF | |
15622 | /* confdefs.h. */ | |
15623 | _ACEOF | |
15624 | cat confdefs.h >>conftest.$ac_ext | |
15625 | cat >>conftest.$ac_ext <<_ACEOF | |
15626 | /* end confdefs.h. */ | |
15627 | #ifndef __cplusplus | |
15628 | typedef int foo_t; | |
15629 | static $ac_kw foo_t static_foo () {return 0; } | |
15630 | $ac_kw foo_t foo () {return 0; } | |
15631 | #endif | |
15632 | ||
15633 | _ACEOF | |
15634 | rm -f conftest.$ac_objext | |
15635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15636 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15637 | ac_status=$? |
ac1cb8d3 VS |
15638 | grep -v '^ *+' conftest.er1 >conftest.err |
15639 | rm -f conftest.er1 | |
15640 | cat conftest.err >&5 | |
a848cd7e SC |
15641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15642 | (exit $ac_status); } && | |
6ebeb4c7 | 15643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15645 | (eval $ac_try) 2>&5 | |
15646 | ac_status=$? | |
15647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15648 | (exit $ac_status); }; } && | |
15649 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15651 | (eval $ac_try) 2>&5 | |
15652 | ac_status=$? | |
15653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15654 | (exit $ac_status); }; }; then | |
15655 | ac_cv_c_inline=$ac_kw; break | |
15656 | else | |
15657 | echo "$as_me: failed program was:" >&5 | |
15658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15659 | ||
15660 | fi | |
ac1cb8d3 | 15661 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15662 | done |
15663 | ||
15664 | fi | |
15665 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
15666 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
15667 | |
15668 | ||
a848cd7e SC |
15669 | case $ac_cv_c_inline in |
15670 | inline | yes) ;; | |
ac1cb8d3 VS |
15671 | *) |
15672 | case $ac_cv_c_inline in | |
15673 | no) ac_val=;; | |
15674 | *) ac_val=$ac_cv_c_inline;; | |
15675 | esac | |
15676 | cat >>confdefs.h <<_ACEOF | |
15677 | #ifndef __cplusplus | |
15678 | #define inline $ac_val | |
15679 | #endif | |
de59c161 | 15680 | _ACEOF |
ac1cb8d3 | 15681 | ;; |
a848cd7e SC |
15682 | esac |
15683 | ||
15684 | ||
15685 | echo "$as_me:$LINENO: checking for char" >&5 | |
15686 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15687 | if test "${ac_cv_type_char+set}" = set; then | |
15688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15689 | else | |
15690 | cat >conftest.$ac_ext <<_ACEOF | |
15691 | /* confdefs.h. */ | |
15692 | _ACEOF | |
15693 | cat confdefs.h >>conftest.$ac_ext | |
15694 | cat >>conftest.$ac_ext <<_ACEOF | |
15695 | /* end confdefs.h. */ | |
15696 | $ac_includes_default | |
15697 | int | |
15698 | main () | |
15699 | { | |
15700 | if ((char *) 0) | |
15701 | return 0; | |
15702 | if (sizeof (char)) | |
15703 | return 0; | |
15704 | ; | |
15705 | return 0; | |
15706 | } | |
15707 | _ACEOF | |
15708 | rm -f conftest.$ac_objext | |
15709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15710 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15711 | ac_status=$? |
ac1cb8d3 VS |
15712 | grep -v '^ *+' conftest.er1 >conftest.err |
15713 | rm -f conftest.er1 | |
15714 | cat conftest.err >&5 | |
a848cd7e SC |
15715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15716 | (exit $ac_status); } && | |
6ebeb4c7 | 15717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15719 | (eval $ac_try) 2>&5 | |
15720 | ac_status=$? | |
15721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15722 | (exit $ac_status); }; } && | |
15723 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15725 | (eval $ac_try) 2>&5 | |
15726 | ac_status=$? | |
15727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15728 | (exit $ac_status); }; }; then | |
15729 | ac_cv_type_char=yes | |
15730 | else | |
15731 | echo "$as_me: failed program was:" >&5 | |
15732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15733 | ||
15734 | ac_cv_type_char=no | |
15735 | fi | |
ac1cb8d3 | 15736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15737 | fi |
15738 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15739 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15740 | ||
15741 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15742 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15743 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15745 | else | |
15746 | if test "$ac_cv_type_char" = yes; then | |
15747 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15748 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15749 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15750 | # This bug is HP SR number 8606223364. | |
15751 | if test "$cross_compiling" = yes; then | |
15752 | # Depending upon the size, compute the lo and hi bounds. | |
15753 | cat >conftest.$ac_ext <<_ACEOF | |
15754 | /* confdefs.h. */ | |
15755 | _ACEOF | |
15756 | cat confdefs.h >>conftest.$ac_ext | |
15757 | cat >>conftest.$ac_ext <<_ACEOF | |
15758 | /* end confdefs.h. */ | |
15759 | $ac_includes_default | |
15760 | int | |
15761 | main () | |
15762 | { | |
15763 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15764 | test_array [0] = 0 | |
15765 | ||
15766 | ; | |
15767 | return 0; | |
15768 | } | |
15769 | _ACEOF | |
15770 | rm -f conftest.$ac_objext | |
15771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15772 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15773 | ac_status=$? |
ac1cb8d3 VS |
15774 | grep -v '^ *+' conftest.er1 >conftest.err |
15775 | rm -f conftest.er1 | |
15776 | cat conftest.err >&5 | |
a848cd7e SC |
15777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15778 | (exit $ac_status); } && | |
6ebeb4c7 | 15779 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15781 | (eval $ac_try) 2>&5 | |
15782 | ac_status=$? | |
15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15784 | (exit $ac_status); }; } && | |
15785 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15787 | (eval $ac_try) 2>&5 | |
15788 | ac_status=$? | |
15789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15790 | (exit $ac_status); }; }; then | |
15791 | ac_lo=0 ac_mid=0 | |
15792 | while :; do | |
15793 | cat >conftest.$ac_ext <<_ACEOF | |
15794 | /* confdefs.h. */ | |
15795 | _ACEOF | |
15796 | cat confdefs.h >>conftest.$ac_ext | |
15797 | cat >>conftest.$ac_ext <<_ACEOF | |
15798 | /* end confdefs.h. */ | |
15799 | $ac_includes_default | |
15800 | int | |
15801 | main () | |
15802 | { | |
15803 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15804 | test_array [0] = 0 | |
15805 | ||
15806 | ; | |
15807 | return 0; | |
15808 | } | |
15809 | _ACEOF | |
15810 | rm -f conftest.$ac_objext | |
15811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15812 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15813 | ac_status=$? |
ac1cb8d3 VS |
15814 | grep -v '^ *+' conftest.er1 >conftest.err |
15815 | rm -f conftest.er1 | |
15816 | cat conftest.err >&5 | |
a848cd7e SC |
15817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15818 | (exit $ac_status); } && | |
6ebeb4c7 | 15819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15821 | (eval $ac_try) 2>&5 | |
15822 | ac_status=$? | |
15823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15824 | (exit $ac_status); }; } && | |
15825 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15827 | (eval $ac_try) 2>&5 | |
15828 | ac_status=$? | |
15829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15830 | (exit $ac_status); }; }; then | |
15831 | ac_hi=$ac_mid; break | |
15832 | else | |
15833 | echo "$as_me: failed program was:" >&5 | |
15834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15835 | ||
15836 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15837 | if test $ac_lo -le $ac_mid; then |
15838 | ac_lo= ac_hi= | |
15839 | break | |
15840 | fi | |
15841 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15842 | fi |
ac1cb8d3 | 15843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15844 | done |
15845 | else | |
15846 | echo "$as_me: failed program was:" >&5 | |
15847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15848 | ||
15849 | cat >conftest.$ac_ext <<_ACEOF | |
15850 | /* confdefs.h. */ | |
15851 | _ACEOF | |
15852 | cat confdefs.h >>conftest.$ac_ext | |
15853 | cat >>conftest.$ac_ext <<_ACEOF | |
15854 | /* end confdefs.h. */ | |
15855 | $ac_includes_default | |
15856 | int | |
15857 | main () | |
15858 | { | |
15859 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
15860 | test_array [0] = 0 | |
15861 | ||
15862 | ; | |
15863 | return 0; | |
15864 | } | |
15865 | _ACEOF | |
15866 | rm -f conftest.$ac_objext | |
15867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15869 | ac_status=$? |
ac1cb8d3 VS |
15870 | grep -v '^ *+' conftest.er1 >conftest.err |
15871 | rm -f conftest.er1 | |
15872 | cat conftest.err >&5 | |
a848cd7e SC |
15873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15874 | (exit $ac_status); } && | |
6ebeb4c7 | 15875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15877 | (eval $ac_try) 2>&5 | |
15878 | ac_status=$? | |
15879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15880 | (exit $ac_status); }; } && | |
15881 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15883 | (eval $ac_try) 2>&5 | |
15884 | ac_status=$? | |
15885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15886 | (exit $ac_status); }; }; then | |
15887 | ac_hi=-1 ac_mid=-1 | |
15888 | while :; do | |
15889 | cat >conftest.$ac_ext <<_ACEOF | |
15890 | /* confdefs.h. */ | |
15891 | _ACEOF | |
15892 | cat confdefs.h >>conftest.$ac_ext | |
15893 | cat >>conftest.$ac_ext <<_ACEOF | |
15894 | /* end confdefs.h. */ | |
15895 | $ac_includes_default | |
15896 | int | |
15897 | main () | |
15898 | { | |
15899 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15900 | test_array [0] = 0 | |
15901 | ||
15902 | ; | |
15903 | return 0; | |
15904 | } | |
15905 | _ACEOF | |
15906 | rm -f conftest.$ac_objext | |
15907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15908 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15909 | ac_status=$? |
ac1cb8d3 VS |
15910 | grep -v '^ *+' conftest.er1 >conftest.err |
15911 | rm -f conftest.er1 | |
15912 | cat conftest.err >&5 | |
a848cd7e SC |
15913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15914 | (exit $ac_status); } && | |
6ebeb4c7 | 15915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15917 | (eval $ac_try) 2>&5 | |
15918 | ac_status=$? | |
15919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15920 | (exit $ac_status); }; } && | |
15921 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15923 | (eval $ac_try) 2>&5 | |
15924 | ac_status=$? | |
15925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15926 | (exit $ac_status); }; }; then | |
15927 | ac_lo=$ac_mid; break | |
15928 | else | |
15929 | echo "$as_me: failed program was:" >&5 | |
15930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15931 | ||
15932 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15933 | if test $ac_mid -le $ac_hi; then |
15934 | ac_lo= ac_hi= | |
15935 | break | |
15936 | fi | |
15937 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15938 | fi |
ac1cb8d3 | 15939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15940 | done |
15941 | else | |
15942 | echo "$as_me: failed program was:" >&5 | |
15943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15944 | ||
15945 | ac_lo= ac_hi= | |
15946 | fi | |
ac1cb8d3 | 15947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15948 | fi |
ac1cb8d3 | 15949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15950 | # Binary search between lo and hi bounds. |
15951 | while test "x$ac_lo" != "x$ac_hi"; do | |
15952 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15953 | cat >conftest.$ac_ext <<_ACEOF | |
15954 | /* confdefs.h. */ | |
15955 | _ACEOF | |
15956 | cat confdefs.h >>conftest.$ac_ext | |
15957 | cat >>conftest.$ac_ext <<_ACEOF | |
15958 | /* end confdefs.h. */ | |
15959 | $ac_includes_default | |
15960 | int | |
15961 | main () | |
15962 | { | |
15963 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15964 | test_array [0] = 0 | |
15965 | ||
15966 | ; | |
15967 | return 0; | |
15968 | } | |
15969 | _ACEOF | |
15970 | rm -f conftest.$ac_objext | |
15971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15972 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15973 | ac_status=$? |
ac1cb8d3 VS |
15974 | grep -v '^ *+' conftest.er1 >conftest.err |
15975 | rm -f conftest.er1 | |
15976 | cat conftest.err >&5 | |
a848cd7e SC |
15977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15978 | (exit $ac_status); } && | |
6ebeb4c7 | 15979 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15981 | (eval $ac_try) 2>&5 | |
15982 | ac_status=$? | |
15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15984 | (exit $ac_status); }; } && | |
15985 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15987 | (eval $ac_try) 2>&5 | |
15988 | ac_status=$? | |
15989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15990 | (exit $ac_status); }; }; then | |
15991 | ac_hi=$ac_mid | |
15992 | else | |
15993 | echo "$as_me: failed program was:" >&5 | |
15994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15995 | ||
15996 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15997 | fi | |
ac1cb8d3 | 15998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15999 | done |
16000 | case $ac_lo in | |
16001 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
16002 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16003 | See \`config.log' for more details." >&5 | |
16004 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16005 | See \`config.log' for more details." >&2;} | |
16006 | { (exit 1); exit 1; }; } ;; | |
16007 | esac | |
16008 | else | |
16009 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
16010 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16011 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16012 | { (exit 1); exit 1; }; } |
16013 | else | |
16014 | cat >conftest.$ac_ext <<_ACEOF | |
16015 | /* confdefs.h. */ | |
16016 | _ACEOF | |
16017 | cat confdefs.h >>conftest.$ac_ext | |
16018 | cat >>conftest.$ac_ext <<_ACEOF | |
16019 | /* end confdefs.h. */ | |
16020 | $ac_includes_default | |
16021 | long longval () { return (long) (sizeof (char)); } | |
16022 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
16023 | #include <stdio.h> | |
16024 | #include <stdlib.h> | |
16025 | int | |
16026 | main () | |
16027 | { | |
16028 | ||
16029 | FILE *f = fopen ("conftest.val", "w"); | |
16030 | if (! f) | |
16031 | exit (1); | |
16032 | if (((long) (sizeof (char))) < 0) | |
16033 | { | |
16034 | long i = longval (); | |
16035 | if (i != ((long) (sizeof (char)))) | |
16036 | exit (1); | |
16037 | fprintf (f, "%ld\n", i); | |
16038 | } | |
16039 | else | |
16040 | { | |
16041 | unsigned long i = ulongval (); | |
16042 | if (i != ((long) (sizeof (char)))) | |
16043 | exit (1); | |
16044 | fprintf (f, "%lu\n", i); | |
16045 | } | |
16046 | exit (ferror (f) || fclose (f) != 0); | |
16047 | ||
16048 | ; | |
16049 | return 0; | |
16050 | } | |
16051 | _ACEOF | |
16052 | rm -f conftest$ac_exeext | |
16053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16054 | (eval $ac_link) 2>&5 | |
16055 | ac_status=$? | |
16056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16057 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16059 | (eval $ac_try) 2>&5 | |
16060 | ac_status=$? | |
16061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16062 | (exit $ac_status); }; }; then | |
16063 | ac_cv_sizeof_char=`cat conftest.val` | |
16064 | else | |
16065 | echo "$as_me: program exited with status $ac_status" >&5 | |
16066 | echo "$as_me: failed program was:" >&5 | |
16067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16068 | ||
16069 | ( exit $ac_status ) | |
16070 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16071 | See \`config.log' for more details." >&5 | |
16072 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16073 | See \`config.log' for more details." >&2;} | |
16074 | { (exit 1); exit 1; }; } | |
16075 | fi | |
ac1cb8d3 | 16076 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16077 | fi |
16078 | fi | |
16079 | rm -f conftest.val | |
16080 | else | |
16081 | ac_cv_sizeof_char=0 | |
16082 | fi | |
16083 | fi | |
16084 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
16085 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
16086 | cat >>confdefs.h <<_ACEOF | |
16087 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
16088 | _ACEOF | |
16089 | ||
16090 | ||
16091 | echo "$as_me:$LINENO: checking for short" >&5 | |
16092 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
16093 | if test "${ac_cv_type_short+set}" = set; then | |
16094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16095 | else | |
16096 | cat >conftest.$ac_ext <<_ACEOF | |
16097 | /* confdefs.h. */ | |
16098 | _ACEOF | |
16099 | cat confdefs.h >>conftest.$ac_ext | |
16100 | cat >>conftest.$ac_ext <<_ACEOF | |
16101 | /* end confdefs.h. */ | |
16102 | $ac_includes_default | |
16103 | int | |
16104 | main () | |
16105 | { | |
16106 | if ((short *) 0) | |
16107 | return 0; | |
16108 | if (sizeof (short)) | |
16109 | return 0; | |
16110 | ; | |
16111 | return 0; | |
16112 | } | |
16113 | _ACEOF | |
16114 | rm -f conftest.$ac_objext | |
16115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16116 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16117 | ac_status=$? |
ac1cb8d3 VS |
16118 | grep -v '^ *+' conftest.er1 >conftest.err |
16119 | rm -f conftest.er1 | |
16120 | cat conftest.err >&5 | |
a848cd7e SC |
16121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16122 | (exit $ac_status); } && | |
6ebeb4c7 | 16123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16125 | (eval $ac_try) 2>&5 | |
16126 | ac_status=$? | |
16127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16128 | (exit $ac_status); }; } && | |
16129 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16131 | (eval $ac_try) 2>&5 | |
16132 | ac_status=$? | |
16133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16134 | (exit $ac_status); }; }; then | |
16135 | ac_cv_type_short=yes | |
16136 | else | |
16137 | echo "$as_me: failed program was:" >&5 | |
16138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16139 | ||
16140 | ac_cv_type_short=no | |
16141 | fi | |
ac1cb8d3 | 16142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16143 | fi |
16144 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
16145 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
16146 | ||
16147 | echo "$as_me:$LINENO: checking size of short" >&5 | |
16148 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
16149 | if test "${ac_cv_sizeof_short+set}" = set; then | |
16150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16151 | else | |
16152 | if test "$ac_cv_type_short" = yes; then | |
16153 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16154 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16155 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16156 | # This bug is HP SR number 8606223364. | |
16157 | if test "$cross_compiling" = yes; then | |
16158 | # Depending upon the size, compute the lo and hi bounds. | |
16159 | cat >conftest.$ac_ext <<_ACEOF | |
16160 | /* confdefs.h. */ | |
16161 | _ACEOF | |
16162 | cat confdefs.h >>conftest.$ac_ext | |
16163 | cat >>conftest.$ac_ext <<_ACEOF | |
16164 | /* end confdefs.h. */ | |
16165 | $ac_includes_default | |
16166 | int | |
16167 | main () | |
16168 | { | |
16169 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
16170 | test_array [0] = 0 | |
16171 | ||
16172 | ; | |
16173 | return 0; | |
16174 | } | |
16175 | _ACEOF | |
16176 | rm -f conftest.$ac_objext | |
16177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16178 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16179 | ac_status=$? |
ac1cb8d3 VS |
16180 | grep -v '^ *+' conftest.er1 >conftest.err |
16181 | rm -f conftest.er1 | |
16182 | cat conftest.err >&5 | |
a848cd7e SC |
16183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16184 | (exit $ac_status); } && | |
6ebeb4c7 | 16185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16187 | (eval $ac_try) 2>&5 | |
16188 | ac_status=$? | |
16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16190 | (exit $ac_status); }; } && | |
16191 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16193 | (eval $ac_try) 2>&5 | |
16194 | ac_status=$? | |
16195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16196 | (exit $ac_status); }; }; then | |
16197 | ac_lo=0 ac_mid=0 | |
16198 | while :; do | |
16199 | cat >conftest.$ac_ext <<_ACEOF | |
16200 | /* confdefs.h. */ | |
16201 | _ACEOF | |
16202 | cat confdefs.h >>conftest.$ac_ext | |
16203 | cat >>conftest.$ac_ext <<_ACEOF | |
16204 | /* end confdefs.h. */ | |
16205 | $ac_includes_default | |
16206 | int | |
16207 | main () | |
16208 | { | |
16209 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16210 | test_array [0] = 0 | |
16211 | ||
16212 | ; | |
16213 | return 0; | |
16214 | } | |
16215 | _ACEOF | |
16216 | rm -f conftest.$ac_objext | |
16217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16218 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16219 | ac_status=$? |
ac1cb8d3 VS |
16220 | grep -v '^ *+' conftest.er1 >conftest.err |
16221 | rm -f conftest.er1 | |
16222 | cat conftest.err >&5 | |
a848cd7e SC |
16223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16224 | (exit $ac_status); } && | |
6ebeb4c7 | 16225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16227 | (eval $ac_try) 2>&5 | |
16228 | ac_status=$? | |
16229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16230 | (exit $ac_status); }; } && | |
16231 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16233 | (eval $ac_try) 2>&5 | |
16234 | ac_status=$? | |
16235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16236 | (exit $ac_status); }; }; then | |
16237 | ac_hi=$ac_mid; break | |
16238 | else | |
16239 | echo "$as_me: failed program was:" >&5 | |
16240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16241 | ||
16242 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16243 | if test $ac_lo -le $ac_mid; then |
16244 | ac_lo= ac_hi= | |
16245 | break | |
16246 | fi | |
16247 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16248 | fi |
ac1cb8d3 | 16249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16250 | done |
16251 | else | |
16252 | echo "$as_me: failed program was:" >&5 | |
16253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16254 | ||
16255 | cat >conftest.$ac_ext <<_ACEOF | |
16256 | /* confdefs.h. */ | |
16257 | _ACEOF | |
16258 | cat confdefs.h >>conftest.$ac_ext | |
16259 | cat >>conftest.$ac_ext <<_ACEOF | |
16260 | /* end confdefs.h. */ | |
16261 | $ac_includes_default | |
16262 | int | |
16263 | main () | |
16264 | { | |
16265 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
16266 | test_array [0] = 0 | |
16267 | ||
16268 | ; | |
16269 | return 0; | |
16270 | } | |
16271 | _ACEOF | |
16272 | rm -f conftest.$ac_objext | |
16273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16274 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16275 | ac_status=$? |
ac1cb8d3 VS |
16276 | grep -v '^ *+' conftest.er1 >conftest.err |
16277 | rm -f conftest.er1 | |
16278 | cat conftest.err >&5 | |
a848cd7e SC |
16279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16280 | (exit $ac_status); } && | |
6ebeb4c7 | 16281 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16283 | (eval $ac_try) 2>&5 | |
16284 | ac_status=$? | |
16285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16286 | (exit $ac_status); }; } && | |
16287 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16289 | (eval $ac_try) 2>&5 | |
16290 | ac_status=$? | |
16291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16292 | (exit $ac_status); }; }; then | |
16293 | ac_hi=-1 ac_mid=-1 | |
16294 | while :; do | |
16295 | cat >conftest.$ac_ext <<_ACEOF | |
16296 | /* confdefs.h. */ | |
16297 | _ACEOF | |
16298 | cat confdefs.h >>conftest.$ac_ext | |
16299 | cat >>conftest.$ac_ext <<_ACEOF | |
16300 | /* end confdefs.h. */ | |
16301 | $ac_includes_default | |
16302 | int | |
16303 | main () | |
16304 | { | |
16305 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
16306 | test_array [0] = 0 | |
16307 | ||
16308 | ; | |
16309 | return 0; | |
16310 | } | |
16311 | _ACEOF | |
16312 | rm -f conftest.$ac_objext | |
16313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16314 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16315 | ac_status=$? |
ac1cb8d3 VS |
16316 | grep -v '^ *+' conftest.er1 >conftest.err |
16317 | rm -f conftest.er1 | |
16318 | cat conftest.err >&5 | |
a848cd7e SC |
16319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16320 | (exit $ac_status); } && | |
6ebeb4c7 | 16321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16323 | (eval $ac_try) 2>&5 | |
16324 | ac_status=$? | |
16325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16326 | (exit $ac_status); }; } && | |
16327 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16329 | (eval $ac_try) 2>&5 | |
16330 | ac_status=$? | |
16331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16332 | (exit $ac_status); }; }; then | |
16333 | ac_lo=$ac_mid; break | |
16334 | else | |
16335 | echo "$as_me: failed program was:" >&5 | |
16336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16337 | ||
16338 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16339 | if test $ac_mid -le $ac_hi; then |
16340 | ac_lo= ac_hi= | |
16341 | break | |
16342 | fi | |
16343 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16344 | fi |
ac1cb8d3 | 16345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16346 | done |
16347 | else | |
16348 | echo "$as_me: failed program was:" >&5 | |
16349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16350 | ||
16351 | ac_lo= ac_hi= | |
16352 | fi | |
ac1cb8d3 | 16353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16354 | fi |
ac1cb8d3 | 16355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16356 | # Binary search between lo and hi bounds. |
16357 | while test "x$ac_lo" != "x$ac_hi"; do | |
16358 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16359 | cat >conftest.$ac_ext <<_ACEOF | |
16360 | /* confdefs.h. */ | |
16361 | _ACEOF | |
16362 | cat confdefs.h >>conftest.$ac_ext | |
16363 | cat >>conftest.$ac_ext <<_ACEOF | |
16364 | /* end confdefs.h. */ | |
16365 | $ac_includes_default | |
16366 | int | |
16367 | main () | |
16368 | { | |
16369 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16370 | test_array [0] = 0 | |
16371 | ||
16372 | ; | |
16373 | return 0; | |
16374 | } | |
16375 | _ACEOF | |
16376 | rm -f conftest.$ac_objext | |
16377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16378 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16379 | ac_status=$? |
ac1cb8d3 VS |
16380 | grep -v '^ *+' conftest.er1 >conftest.err |
16381 | rm -f conftest.er1 | |
16382 | cat conftest.err >&5 | |
a848cd7e SC |
16383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16384 | (exit $ac_status); } && | |
6ebeb4c7 | 16385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16387 | (eval $ac_try) 2>&5 | |
16388 | ac_status=$? | |
16389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16390 | (exit $ac_status); }; } && | |
16391 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16393 | (eval $ac_try) 2>&5 | |
16394 | ac_status=$? | |
16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16396 | (exit $ac_status); }; }; then | |
16397 | ac_hi=$ac_mid | |
16398 | else | |
16399 | echo "$as_me: failed program was:" >&5 | |
16400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16401 | ||
16402 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16403 | fi | |
ac1cb8d3 | 16404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16405 | done |
16406 | case $ac_lo in | |
16407 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
16408 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16409 | See \`config.log' for more details." >&5 | |
16410 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16411 | See \`config.log' for more details." >&2;} | |
16412 | { (exit 1); exit 1; }; } ;; | |
16413 | esac | |
16414 | else | |
16415 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
16416 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16417 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16418 | { (exit 1); exit 1; }; } |
16419 | else | |
16420 | cat >conftest.$ac_ext <<_ACEOF | |
16421 | /* confdefs.h. */ | |
16422 | _ACEOF | |
16423 | cat confdefs.h >>conftest.$ac_ext | |
16424 | cat >>conftest.$ac_ext <<_ACEOF | |
16425 | /* end confdefs.h. */ | |
16426 | $ac_includes_default | |
16427 | long longval () { return (long) (sizeof (short)); } | |
16428 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16429 | #include <stdio.h> | |
16430 | #include <stdlib.h> | |
16431 | int | |
16432 | main () | |
16433 | { | |
16434 | ||
16435 | FILE *f = fopen ("conftest.val", "w"); | |
16436 | if (! f) | |
16437 | exit (1); | |
16438 | if (((long) (sizeof (short))) < 0) | |
16439 | { | |
16440 | long i = longval (); | |
16441 | if (i != ((long) (sizeof (short)))) | |
16442 | exit (1); | |
16443 | fprintf (f, "%ld\n", i); | |
16444 | } | |
16445 | else | |
16446 | { | |
16447 | unsigned long i = ulongval (); | |
16448 | if (i != ((long) (sizeof (short)))) | |
16449 | exit (1); | |
16450 | fprintf (f, "%lu\n", i); | |
16451 | } | |
16452 | exit (ferror (f) || fclose (f) != 0); | |
16453 | ||
16454 | ; | |
16455 | return 0; | |
16456 | } | |
16457 | _ACEOF | |
16458 | rm -f conftest$ac_exeext | |
16459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16460 | (eval $ac_link) 2>&5 | |
16461 | ac_status=$? | |
16462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16463 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16465 | (eval $ac_try) 2>&5 | |
16466 | ac_status=$? | |
16467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16468 | (exit $ac_status); }; }; then | |
16469 | ac_cv_sizeof_short=`cat conftest.val` | |
16470 | else | |
16471 | echo "$as_me: program exited with status $ac_status" >&5 | |
16472 | echo "$as_me: failed program was:" >&5 | |
16473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16474 | ||
16475 | ( exit $ac_status ) | |
16476 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16477 | See \`config.log' for more details." >&5 | |
16478 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16479 | See \`config.log' for more details." >&2;} | |
16480 | { (exit 1); exit 1; }; } | |
16481 | fi | |
ac1cb8d3 | 16482 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16483 | fi |
16484 | fi | |
16485 | rm -f conftest.val | |
16486 | else | |
16487 | ac_cv_sizeof_short=0 | |
16488 | fi | |
16489 | fi | |
16490 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16491 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16492 | cat >>confdefs.h <<_ACEOF | |
16493 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16494 | _ACEOF | |
16495 | ||
16496 | ||
16497 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16498 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16499 | if test "${ac_cv_type_void_p+set}" = set; then | |
16500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16501 | else | |
16502 | cat >conftest.$ac_ext <<_ACEOF | |
16503 | /* confdefs.h. */ | |
16504 | _ACEOF | |
16505 | cat confdefs.h >>conftest.$ac_ext | |
16506 | cat >>conftest.$ac_ext <<_ACEOF | |
16507 | /* end confdefs.h. */ | |
16508 | $ac_includes_default | |
16509 | int | |
16510 | main () | |
16511 | { | |
16512 | if ((void * *) 0) | |
16513 | return 0; | |
16514 | if (sizeof (void *)) | |
16515 | return 0; | |
16516 | ; | |
16517 | return 0; | |
16518 | } | |
16519 | _ACEOF | |
16520 | rm -f conftest.$ac_objext | |
16521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16522 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16523 | ac_status=$? |
ac1cb8d3 VS |
16524 | grep -v '^ *+' conftest.er1 >conftest.err |
16525 | rm -f conftest.er1 | |
16526 | cat conftest.err >&5 | |
a848cd7e SC |
16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16528 | (exit $ac_status); } && | |
6ebeb4c7 | 16529 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16531 | (eval $ac_try) 2>&5 | |
16532 | ac_status=$? | |
16533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16534 | (exit $ac_status); }; } && | |
16535 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16537 | (eval $ac_try) 2>&5 | |
16538 | ac_status=$? | |
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16540 | (exit $ac_status); }; }; then | |
16541 | ac_cv_type_void_p=yes | |
16542 | else | |
16543 | echo "$as_me: failed program was:" >&5 | |
16544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16545 | ||
16546 | ac_cv_type_void_p=no | |
16547 | fi | |
ac1cb8d3 | 16548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16549 | fi |
16550 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16551 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16552 | ||
16553 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16554 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16555 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16557 | else | |
16558 | if test "$ac_cv_type_void_p" = yes; then | |
16559 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16560 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16561 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16562 | # This bug is HP SR number 8606223364. | |
16563 | if test "$cross_compiling" = yes; then | |
16564 | # Depending upon the size, compute the lo and hi bounds. | |
16565 | cat >conftest.$ac_ext <<_ACEOF | |
16566 | /* confdefs.h. */ | |
16567 | _ACEOF | |
16568 | cat confdefs.h >>conftest.$ac_ext | |
16569 | cat >>conftest.$ac_ext <<_ACEOF | |
16570 | /* end confdefs.h. */ | |
16571 | $ac_includes_default | |
16572 | int | |
16573 | main () | |
16574 | { | |
16575 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16576 | test_array [0] = 0 | |
16577 | ||
16578 | ; | |
16579 | return 0; | |
16580 | } | |
16581 | _ACEOF | |
16582 | rm -f conftest.$ac_objext | |
16583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16584 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16585 | ac_status=$? |
ac1cb8d3 VS |
16586 | grep -v '^ *+' conftest.er1 >conftest.err |
16587 | rm -f conftest.er1 | |
16588 | cat conftest.err >&5 | |
a848cd7e SC |
16589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16590 | (exit $ac_status); } && | |
6ebeb4c7 | 16591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16593 | (eval $ac_try) 2>&5 | |
16594 | ac_status=$? | |
16595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16596 | (exit $ac_status); }; } && | |
16597 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16599 | (eval $ac_try) 2>&5 | |
16600 | ac_status=$? | |
16601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16602 | (exit $ac_status); }; }; then | |
16603 | ac_lo=0 ac_mid=0 | |
16604 | while :; do | |
16605 | cat >conftest.$ac_ext <<_ACEOF | |
16606 | /* confdefs.h. */ | |
16607 | _ACEOF | |
16608 | cat confdefs.h >>conftest.$ac_ext | |
16609 | cat >>conftest.$ac_ext <<_ACEOF | |
16610 | /* end confdefs.h. */ | |
16611 | $ac_includes_default | |
16612 | int | |
16613 | main () | |
16614 | { | |
16615 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16616 | test_array [0] = 0 | |
16617 | ||
16618 | ; | |
16619 | return 0; | |
16620 | } | |
16621 | _ACEOF | |
16622 | rm -f conftest.$ac_objext | |
16623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16624 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16625 | ac_status=$? |
ac1cb8d3 VS |
16626 | grep -v '^ *+' conftest.er1 >conftest.err |
16627 | rm -f conftest.er1 | |
16628 | cat conftest.err >&5 | |
a848cd7e SC |
16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16630 | (exit $ac_status); } && | |
6ebeb4c7 | 16631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16633 | (eval $ac_try) 2>&5 | |
16634 | ac_status=$? | |
16635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16636 | (exit $ac_status); }; } && | |
16637 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16639 | (eval $ac_try) 2>&5 | |
16640 | ac_status=$? | |
16641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16642 | (exit $ac_status); }; }; then | |
16643 | ac_hi=$ac_mid; break | |
16644 | else | |
16645 | echo "$as_me: failed program was:" >&5 | |
16646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16647 | ||
16648 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16649 | if test $ac_lo -le $ac_mid; then |
16650 | ac_lo= ac_hi= | |
16651 | break | |
16652 | fi | |
16653 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16654 | fi |
ac1cb8d3 | 16655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16656 | done |
16657 | else | |
16658 | echo "$as_me: failed program was:" >&5 | |
16659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16660 | ||
16661 | cat >conftest.$ac_ext <<_ACEOF | |
16662 | /* confdefs.h. */ | |
16663 | _ACEOF | |
16664 | cat confdefs.h >>conftest.$ac_ext | |
16665 | cat >>conftest.$ac_ext <<_ACEOF | |
16666 | /* end confdefs.h. */ | |
16667 | $ac_includes_default | |
16668 | int | |
16669 | main () | |
16670 | { | |
16671 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
16672 | test_array [0] = 0 | |
16673 | ||
16674 | ; | |
16675 | return 0; | |
16676 | } | |
16677 | _ACEOF | |
16678 | rm -f conftest.$ac_objext | |
16679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16680 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16681 | ac_status=$? |
ac1cb8d3 VS |
16682 | grep -v '^ *+' conftest.er1 >conftest.err |
16683 | rm -f conftest.er1 | |
16684 | cat conftest.err >&5 | |
a848cd7e SC |
16685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16686 | (exit $ac_status); } && | |
6ebeb4c7 | 16687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16689 | (eval $ac_try) 2>&5 | |
16690 | ac_status=$? | |
16691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16692 | (exit $ac_status); }; } && | |
16693 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16695 | (eval $ac_try) 2>&5 | |
16696 | ac_status=$? | |
16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16698 | (exit $ac_status); }; }; then | |
16699 | ac_hi=-1 ac_mid=-1 | |
16700 | while :; do | |
16701 | cat >conftest.$ac_ext <<_ACEOF | |
16702 | /* confdefs.h. */ | |
16703 | _ACEOF | |
16704 | cat confdefs.h >>conftest.$ac_ext | |
16705 | cat >>conftest.$ac_ext <<_ACEOF | |
16706 | /* end confdefs.h. */ | |
16707 | $ac_includes_default | |
16708 | int | |
16709 | main () | |
16710 | { | |
16711 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
16712 | test_array [0] = 0 | |
16713 | ||
16714 | ; | |
16715 | return 0; | |
16716 | } | |
16717 | _ACEOF | |
16718 | rm -f conftest.$ac_objext | |
16719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16720 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16721 | ac_status=$? |
ac1cb8d3 VS |
16722 | grep -v '^ *+' conftest.er1 >conftest.err |
16723 | rm -f conftest.er1 | |
16724 | cat conftest.err >&5 | |
a848cd7e SC |
16725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16726 | (exit $ac_status); } && | |
6ebeb4c7 | 16727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16729 | (eval $ac_try) 2>&5 | |
16730 | ac_status=$? | |
16731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16732 | (exit $ac_status); }; } && | |
16733 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16735 | (eval $ac_try) 2>&5 | |
16736 | ac_status=$? | |
16737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16738 | (exit $ac_status); }; }; then | |
16739 | ac_lo=$ac_mid; break | |
16740 | else | |
16741 | echo "$as_me: failed program was:" >&5 | |
16742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16743 | ||
16744 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16745 | if test $ac_mid -le $ac_hi; then |
16746 | ac_lo= ac_hi= | |
16747 | break | |
16748 | fi | |
16749 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16750 | fi |
ac1cb8d3 | 16751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16752 | done |
16753 | else | |
16754 | echo "$as_me: failed program was:" >&5 | |
16755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16756 | ||
16757 | ac_lo= ac_hi= | |
16758 | fi | |
ac1cb8d3 | 16759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16760 | fi |
ac1cb8d3 | 16761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16762 | # Binary search between lo and hi bounds. |
16763 | while test "x$ac_lo" != "x$ac_hi"; do | |
16764 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16765 | cat >conftest.$ac_ext <<_ACEOF | |
16766 | /* confdefs.h. */ | |
16767 | _ACEOF | |
16768 | cat confdefs.h >>conftest.$ac_ext | |
16769 | cat >>conftest.$ac_ext <<_ACEOF | |
16770 | /* end confdefs.h. */ | |
16771 | $ac_includes_default | |
16772 | int | |
16773 | main () | |
16774 | { | |
16775 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16776 | test_array [0] = 0 | |
16777 | ||
16778 | ; | |
16779 | return 0; | |
16780 | } | |
16781 | _ACEOF | |
16782 | rm -f conftest.$ac_objext | |
16783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16785 | ac_status=$? |
ac1cb8d3 VS |
16786 | grep -v '^ *+' conftest.er1 >conftest.err |
16787 | rm -f conftest.er1 | |
16788 | cat conftest.err >&5 | |
a848cd7e SC |
16789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16790 | (exit $ac_status); } && | |
6ebeb4c7 | 16791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16793 | (eval $ac_try) 2>&5 | |
16794 | ac_status=$? | |
16795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16796 | (exit $ac_status); }; } && | |
16797 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16799 | (eval $ac_try) 2>&5 | |
16800 | ac_status=$? | |
16801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16802 | (exit $ac_status); }; }; then | |
16803 | ac_hi=$ac_mid | |
16804 | else | |
16805 | echo "$as_me: failed program was:" >&5 | |
16806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16807 | ||
16808 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16809 | fi | |
ac1cb8d3 | 16810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16811 | done |
16812 | case $ac_lo in | |
16813 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
16814 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16815 | See \`config.log' for more details." >&5 | |
16816 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16817 | See \`config.log' for more details." >&2;} | |
16818 | { (exit 1); exit 1; }; } ;; | |
16819 | esac | |
16820 | else | |
16821 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
16822 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16823 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16824 | { (exit 1); exit 1; }; } |
16825 | else | |
16826 | cat >conftest.$ac_ext <<_ACEOF | |
16827 | /* confdefs.h. */ | |
16828 | _ACEOF | |
16829 | cat confdefs.h >>conftest.$ac_ext | |
16830 | cat >>conftest.$ac_ext <<_ACEOF | |
16831 | /* end confdefs.h. */ | |
16832 | $ac_includes_default | |
16833 | long longval () { return (long) (sizeof (void *)); } | |
16834 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
16835 | #include <stdio.h> | |
16836 | #include <stdlib.h> | |
16837 | int | |
16838 | main () | |
16839 | { | |
16840 | ||
16841 | FILE *f = fopen ("conftest.val", "w"); | |
16842 | if (! f) | |
16843 | exit (1); | |
16844 | if (((long) (sizeof (void *))) < 0) | |
16845 | { | |
16846 | long i = longval (); | |
16847 | if (i != ((long) (sizeof (void *)))) | |
16848 | exit (1); | |
16849 | fprintf (f, "%ld\n", i); | |
16850 | } | |
16851 | else | |
16852 | { | |
16853 | unsigned long i = ulongval (); | |
16854 | if (i != ((long) (sizeof (void *)))) | |
16855 | exit (1); | |
16856 | fprintf (f, "%lu\n", i); | |
16857 | } | |
16858 | exit (ferror (f) || fclose (f) != 0); | |
16859 | ||
16860 | ; | |
16861 | return 0; | |
16862 | } | |
16863 | _ACEOF | |
16864 | rm -f conftest$ac_exeext | |
16865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16866 | (eval $ac_link) 2>&5 | |
16867 | ac_status=$? | |
16868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16869 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16871 | (eval $ac_try) 2>&5 | |
16872 | ac_status=$? | |
16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16874 | (exit $ac_status); }; }; then | |
16875 | ac_cv_sizeof_void_p=`cat conftest.val` | |
16876 | else | |
16877 | echo "$as_me: program exited with status $ac_status" >&5 | |
16878 | echo "$as_me: failed program was:" >&5 | |
16879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16880 | ||
16881 | ( exit $ac_status ) | |
16882 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16883 | See \`config.log' for more details." >&5 | |
16884 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16885 | See \`config.log' for more details." >&2;} | |
16886 | { (exit 1); exit 1; }; } | |
16887 | fi | |
ac1cb8d3 | 16888 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16889 | fi |
16890 | fi | |
16891 | rm -f conftest.val | |
16892 | else | |
16893 | ac_cv_sizeof_void_p=0 | |
16894 | fi | |
16895 | fi | |
16896 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
16897 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
16898 | cat >>confdefs.h <<_ACEOF | |
16899 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16900 | _ACEOF | |
16901 | ||
16902 | ||
16903 | echo "$as_me:$LINENO: checking for int" >&5 | |
16904 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
16905 | if test "${ac_cv_type_int+set}" = set; then | |
16906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16907 | else | |
16908 | cat >conftest.$ac_ext <<_ACEOF | |
16909 | /* confdefs.h. */ | |
16910 | _ACEOF | |
16911 | cat confdefs.h >>conftest.$ac_ext | |
16912 | cat >>conftest.$ac_ext <<_ACEOF | |
16913 | /* end confdefs.h. */ | |
16914 | $ac_includes_default | |
16915 | int | |
16916 | main () | |
16917 | { | |
16918 | if ((int *) 0) | |
16919 | return 0; | |
16920 | if (sizeof (int)) | |
16921 | return 0; | |
16922 | ; | |
16923 | return 0; | |
16924 | } | |
16925 | _ACEOF | |
16926 | rm -f conftest.$ac_objext | |
16927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16928 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16929 | ac_status=$? |
ac1cb8d3 VS |
16930 | grep -v '^ *+' conftest.er1 >conftest.err |
16931 | rm -f conftest.er1 | |
16932 | cat conftest.err >&5 | |
a848cd7e SC |
16933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16934 | (exit $ac_status); } && | |
6ebeb4c7 | 16935 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16937 | (eval $ac_try) 2>&5 | |
16938 | ac_status=$? | |
16939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16940 | (exit $ac_status); }; } && | |
16941 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16943 | (eval $ac_try) 2>&5 | |
16944 | ac_status=$? | |
16945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16946 | (exit $ac_status); }; }; then | |
16947 | ac_cv_type_int=yes | |
16948 | else | |
16949 | echo "$as_me: failed program was:" >&5 | |
16950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16951 | ||
16952 | ac_cv_type_int=no | |
16953 | fi | |
ac1cb8d3 | 16954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16955 | fi |
16956 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16957 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16958 | ||
16959 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16960 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16961 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16963 | else | |
16964 | if test "$ac_cv_type_int" = yes; then | |
16965 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16966 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16967 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16968 | # This bug is HP SR number 8606223364. | |
16969 | if test "$cross_compiling" = yes; then | |
16970 | # Depending upon the size, compute the lo and hi bounds. | |
16971 | cat >conftest.$ac_ext <<_ACEOF | |
16972 | /* confdefs.h. */ | |
16973 | _ACEOF | |
16974 | cat confdefs.h >>conftest.$ac_ext | |
16975 | cat >>conftest.$ac_ext <<_ACEOF | |
16976 | /* end confdefs.h. */ | |
16977 | $ac_includes_default | |
16978 | int | |
16979 | main () | |
16980 | { | |
16981 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
16982 | test_array [0] = 0 | |
16983 | ||
16984 | ; | |
16985 | return 0; | |
16986 | } | |
16987 | _ACEOF | |
16988 | rm -f conftest.$ac_objext | |
16989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16990 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16991 | ac_status=$? |
ac1cb8d3 VS |
16992 | grep -v '^ *+' conftest.er1 >conftest.err |
16993 | rm -f conftest.er1 | |
16994 | cat conftest.err >&5 | |
a848cd7e SC |
16995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16996 | (exit $ac_status); } && | |
6ebeb4c7 | 16997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16999 | (eval $ac_try) 2>&5 | |
17000 | ac_status=$? | |
17001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17002 | (exit $ac_status); }; } && | |
17003 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17005 | (eval $ac_try) 2>&5 | |
17006 | ac_status=$? | |
17007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17008 | (exit $ac_status); }; }; then | |
17009 | ac_lo=0 ac_mid=0 | |
17010 | while :; do | |
17011 | cat >conftest.$ac_ext <<_ACEOF | |
17012 | /* confdefs.h. */ | |
17013 | _ACEOF | |
17014 | cat confdefs.h >>conftest.$ac_ext | |
17015 | cat >>conftest.$ac_ext <<_ACEOF | |
17016 | /* end confdefs.h. */ | |
17017 | $ac_includes_default | |
17018 | int | |
17019 | main () | |
17020 | { | |
17021 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17022 | test_array [0] = 0 | |
17023 | ||
17024 | ; | |
17025 | return 0; | |
17026 | } | |
17027 | _ACEOF | |
17028 | rm -f conftest.$ac_objext | |
17029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17030 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17031 | ac_status=$? |
ac1cb8d3 VS |
17032 | grep -v '^ *+' conftest.er1 >conftest.err |
17033 | rm -f conftest.er1 | |
17034 | cat conftest.err >&5 | |
a848cd7e SC |
17035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17036 | (exit $ac_status); } && | |
6ebeb4c7 | 17037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17039 | (eval $ac_try) 2>&5 | |
17040 | ac_status=$? | |
17041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17042 | (exit $ac_status); }; } && | |
17043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17045 | (eval $ac_try) 2>&5 | |
17046 | ac_status=$? | |
17047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17048 | (exit $ac_status); }; }; then | |
17049 | ac_hi=$ac_mid; break | |
17050 | else | |
17051 | echo "$as_me: failed program was:" >&5 | |
17052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17053 | ||
17054 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17055 | if test $ac_lo -le $ac_mid; then |
17056 | ac_lo= ac_hi= | |
17057 | break | |
17058 | fi | |
17059 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17060 | fi |
ac1cb8d3 | 17061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17062 | done |
17063 | else | |
17064 | echo "$as_me: failed program was:" >&5 | |
17065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17066 | ||
17067 | cat >conftest.$ac_ext <<_ACEOF | |
17068 | /* confdefs.h. */ | |
17069 | _ACEOF | |
17070 | cat confdefs.h >>conftest.$ac_ext | |
17071 | cat >>conftest.$ac_ext <<_ACEOF | |
17072 | /* end confdefs.h. */ | |
17073 | $ac_includes_default | |
17074 | int | |
17075 | main () | |
17076 | { | |
17077 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
17078 | test_array [0] = 0 | |
17079 | ||
17080 | ; | |
17081 | return 0; | |
17082 | } | |
17083 | _ACEOF | |
17084 | rm -f conftest.$ac_objext | |
17085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17086 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17087 | ac_status=$? |
ac1cb8d3 VS |
17088 | grep -v '^ *+' conftest.er1 >conftest.err |
17089 | rm -f conftest.er1 | |
17090 | cat conftest.err >&5 | |
a848cd7e SC |
17091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17092 | (exit $ac_status); } && | |
6ebeb4c7 | 17093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17095 | (eval $ac_try) 2>&5 | |
17096 | ac_status=$? | |
17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17098 | (exit $ac_status); }; } && | |
17099 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17101 | (eval $ac_try) 2>&5 | |
17102 | ac_status=$? | |
17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17104 | (exit $ac_status); }; }; then | |
17105 | ac_hi=-1 ac_mid=-1 | |
17106 | while :; do | |
17107 | cat >conftest.$ac_ext <<_ACEOF | |
17108 | /* confdefs.h. */ | |
17109 | _ACEOF | |
17110 | cat confdefs.h >>conftest.$ac_ext | |
17111 | cat >>conftest.$ac_ext <<_ACEOF | |
17112 | /* end confdefs.h. */ | |
17113 | $ac_includes_default | |
17114 | int | |
17115 | main () | |
17116 | { | |
17117 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
17118 | test_array [0] = 0 | |
17119 | ||
17120 | ; | |
17121 | return 0; | |
17122 | } | |
17123 | _ACEOF | |
17124 | rm -f conftest.$ac_objext | |
17125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17126 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17127 | ac_status=$? |
ac1cb8d3 VS |
17128 | grep -v '^ *+' conftest.er1 >conftest.err |
17129 | rm -f conftest.er1 | |
17130 | cat conftest.err >&5 | |
a848cd7e SC |
17131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17132 | (exit $ac_status); } && | |
6ebeb4c7 | 17133 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17135 | (eval $ac_try) 2>&5 | |
17136 | ac_status=$? | |
17137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17138 | (exit $ac_status); }; } && | |
17139 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17141 | (eval $ac_try) 2>&5 | |
17142 | ac_status=$? | |
17143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17144 | (exit $ac_status); }; }; then | |
17145 | ac_lo=$ac_mid; break | |
17146 | else | |
17147 | echo "$as_me: failed program was:" >&5 | |
17148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17149 | ||
17150 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17151 | if test $ac_mid -le $ac_hi; then |
17152 | ac_lo= ac_hi= | |
17153 | break | |
17154 | fi | |
17155 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17156 | fi |
ac1cb8d3 | 17157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17158 | done |
17159 | else | |
17160 | echo "$as_me: failed program was:" >&5 | |
17161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17162 | ||
17163 | ac_lo= ac_hi= | |
17164 | fi | |
ac1cb8d3 | 17165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17166 | fi |
ac1cb8d3 | 17167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17168 | # Binary search between lo and hi bounds. |
17169 | while test "x$ac_lo" != "x$ac_hi"; do | |
17170 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17171 | cat >conftest.$ac_ext <<_ACEOF | |
17172 | /* confdefs.h. */ | |
17173 | _ACEOF | |
17174 | cat confdefs.h >>conftest.$ac_ext | |
17175 | cat >>conftest.$ac_ext <<_ACEOF | |
17176 | /* end confdefs.h. */ | |
17177 | $ac_includes_default | |
17178 | int | |
17179 | main () | |
17180 | { | |
17181 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17182 | test_array [0] = 0 | |
17183 | ||
17184 | ; | |
17185 | return 0; | |
17186 | } | |
17187 | _ACEOF | |
17188 | rm -f conftest.$ac_objext | |
17189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17190 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17191 | ac_status=$? |
ac1cb8d3 VS |
17192 | grep -v '^ *+' conftest.er1 >conftest.err |
17193 | rm -f conftest.er1 | |
17194 | cat conftest.err >&5 | |
a848cd7e SC |
17195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17196 | (exit $ac_status); } && | |
6ebeb4c7 | 17197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17199 | (eval $ac_try) 2>&5 | |
17200 | ac_status=$? | |
17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17202 | (exit $ac_status); }; } && | |
17203 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17205 | (eval $ac_try) 2>&5 | |
17206 | ac_status=$? | |
17207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17208 | (exit $ac_status); }; }; then | |
17209 | ac_hi=$ac_mid | |
17210 | else | |
17211 | echo "$as_me: failed program was:" >&5 | |
17212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17213 | ||
17214 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17215 | fi | |
ac1cb8d3 | 17216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17217 | done |
17218 | case $ac_lo in | |
17219 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
17220 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17221 | See \`config.log' for more details." >&5 | |
17222 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17223 | See \`config.log' for more details." >&2;} | |
17224 | { (exit 1); exit 1; }; } ;; | |
17225 | esac | |
17226 | else | |
17227 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
17228 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17229 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17230 | { (exit 1); exit 1; }; } |
17231 | else | |
17232 | cat >conftest.$ac_ext <<_ACEOF | |
17233 | /* confdefs.h. */ | |
17234 | _ACEOF | |
17235 | cat confdefs.h >>conftest.$ac_ext | |
17236 | cat >>conftest.$ac_ext <<_ACEOF | |
17237 | /* end confdefs.h. */ | |
17238 | $ac_includes_default | |
17239 | long longval () { return (long) (sizeof (int)); } | |
17240 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
17241 | #include <stdio.h> | |
17242 | #include <stdlib.h> | |
17243 | int | |
17244 | main () | |
17245 | { | |
17246 | ||
17247 | FILE *f = fopen ("conftest.val", "w"); | |
17248 | if (! f) | |
17249 | exit (1); | |
17250 | if (((long) (sizeof (int))) < 0) | |
17251 | { | |
17252 | long i = longval (); | |
17253 | if (i != ((long) (sizeof (int)))) | |
17254 | exit (1); | |
17255 | fprintf (f, "%ld\n", i); | |
17256 | } | |
17257 | else | |
17258 | { | |
17259 | unsigned long i = ulongval (); | |
17260 | if (i != ((long) (sizeof (int)))) | |
17261 | exit (1); | |
17262 | fprintf (f, "%lu\n", i); | |
17263 | } | |
17264 | exit (ferror (f) || fclose (f) != 0); | |
17265 | ||
17266 | ; | |
17267 | return 0; | |
17268 | } | |
17269 | _ACEOF | |
17270 | rm -f conftest$ac_exeext | |
17271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17272 | (eval $ac_link) 2>&5 | |
17273 | ac_status=$? | |
17274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17275 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17277 | (eval $ac_try) 2>&5 | |
17278 | ac_status=$? | |
17279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17280 | (exit $ac_status); }; }; then | |
17281 | ac_cv_sizeof_int=`cat conftest.val` | |
17282 | else | |
17283 | echo "$as_me: program exited with status $ac_status" >&5 | |
17284 | echo "$as_me: failed program was:" >&5 | |
17285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17286 | ||
17287 | ( exit $ac_status ) | |
17288 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17289 | See \`config.log' for more details." >&5 | |
17290 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17291 | See \`config.log' for more details." >&2;} | |
17292 | { (exit 1); exit 1; }; } | |
17293 | fi | |
ac1cb8d3 | 17294 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17295 | fi |
17296 | fi | |
17297 | rm -f conftest.val | |
17298 | else | |
17299 | ac_cv_sizeof_int=0 | |
17300 | fi | |
17301 | fi | |
17302 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
17303 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
17304 | cat >>confdefs.h <<_ACEOF | |
17305 | #define SIZEOF_INT $ac_cv_sizeof_int | |
17306 | _ACEOF | |
17307 | ||
17308 | ||
17309 | echo "$as_me:$LINENO: checking for long" >&5 | |
17310 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
17311 | if test "${ac_cv_type_long+set}" = set; then | |
17312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17313 | else | |
17314 | cat >conftest.$ac_ext <<_ACEOF | |
17315 | /* confdefs.h. */ | |
17316 | _ACEOF | |
17317 | cat confdefs.h >>conftest.$ac_ext | |
17318 | cat >>conftest.$ac_ext <<_ACEOF | |
17319 | /* end confdefs.h. */ | |
17320 | $ac_includes_default | |
17321 | int | |
17322 | main () | |
17323 | { | |
17324 | if ((long *) 0) | |
17325 | return 0; | |
17326 | if (sizeof (long)) | |
17327 | return 0; | |
17328 | ; | |
17329 | return 0; | |
17330 | } | |
17331 | _ACEOF | |
17332 | rm -f conftest.$ac_objext | |
17333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17334 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17335 | ac_status=$? |
ac1cb8d3 VS |
17336 | grep -v '^ *+' conftest.er1 >conftest.err |
17337 | rm -f conftest.er1 | |
17338 | cat conftest.err >&5 | |
a848cd7e SC |
17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17340 | (exit $ac_status); } && | |
6ebeb4c7 | 17341 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17343 | (eval $ac_try) 2>&5 | |
17344 | ac_status=$? | |
17345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17346 | (exit $ac_status); }; } && | |
17347 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17349 | (eval $ac_try) 2>&5 | |
17350 | ac_status=$? | |
17351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17352 | (exit $ac_status); }; }; then | |
17353 | ac_cv_type_long=yes | |
17354 | else | |
17355 | echo "$as_me: failed program was:" >&5 | |
17356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17357 | ||
17358 | ac_cv_type_long=no | |
17359 | fi | |
ac1cb8d3 | 17360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17361 | fi |
17362 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
17363 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
17364 | ||
17365 | echo "$as_me:$LINENO: checking size of long" >&5 | |
17366 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
17367 | if test "${ac_cv_sizeof_long+set}" = set; then | |
17368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17369 | else | |
17370 | if test "$ac_cv_type_long" = yes; then | |
17371 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17372 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17373 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17374 | # This bug is HP SR number 8606223364. | |
17375 | if test "$cross_compiling" = yes; then | |
17376 | # Depending upon the size, compute the lo and hi bounds. | |
17377 | cat >conftest.$ac_ext <<_ACEOF | |
17378 | /* confdefs.h. */ | |
17379 | _ACEOF | |
17380 | cat confdefs.h >>conftest.$ac_ext | |
17381 | cat >>conftest.$ac_ext <<_ACEOF | |
17382 | /* end confdefs.h. */ | |
17383 | $ac_includes_default | |
17384 | int | |
17385 | main () | |
17386 | { | |
17387 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
17388 | test_array [0] = 0 | |
17389 | ||
17390 | ; | |
17391 | return 0; | |
17392 | } | |
17393 | _ACEOF | |
17394 | rm -f conftest.$ac_objext | |
17395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17396 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17397 | ac_status=$? |
ac1cb8d3 VS |
17398 | grep -v '^ *+' conftest.er1 >conftest.err |
17399 | rm -f conftest.er1 | |
17400 | cat conftest.err >&5 | |
a848cd7e SC |
17401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17402 | (exit $ac_status); } && | |
6ebeb4c7 | 17403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17405 | (eval $ac_try) 2>&5 | |
17406 | ac_status=$? | |
17407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17408 | (exit $ac_status); }; } && | |
17409 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17411 | (eval $ac_try) 2>&5 | |
17412 | ac_status=$? | |
17413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17414 | (exit $ac_status); }; }; then | |
17415 | ac_lo=0 ac_mid=0 | |
17416 | while :; do | |
17417 | cat >conftest.$ac_ext <<_ACEOF | |
17418 | /* confdefs.h. */ | |
17419 | _ACEOF | |
17420 | cat confdefs.h >>conftest.$ac_ext | |
17421 | cat >>conftest.$ac_ext <<_ACEOF | |
17422 | /* end confdefs.h. */ | |
17423 | $ac_includes_default | |
17424 | int | |
17425 | main () | |
17426 | { | |
17427 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17428 | test_array [0] = 0 | |
17429 | ||
17430 | ; | |
17431 | return 0; | |
17432 | } | |
17433 | _ACEOF | |
17434 | rm -f conftest.$ac_objext | |
17435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17436 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17437 | ac_status=$? |
ac1cb8d3 VS |
17438 | grep -v '^ *+' conftest.er1 >conftest.err |
17439 | rm -f conftest.er1 | |
17440 | cat conftest.err >&5 | |
a848cd7e SC |
17441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17442 | (exit $ac_status); } && | |
6ebeb4c7 | 17443 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17445 | (eval $ac_try) 2>&5 | |
17446 | ac_status=$? | |
17447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17448 | (exit $ac_status); }; } && | |
17449 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17451 | (eval $ac_try) 2>&5 | |
17452 | ac_status=$? | |
17453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17454 | (exit $ac_status); }; }; then | |
17455 | ac_hi=$ac_mid; break | |
17456 | else | |
17457 | echo "$as_me: failed program was:" >&5 | |
17458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17459 | ||
17460 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17461 | if test $ac_lo -le $ac_mid; then |
17462 | ac_lo= ac_hi= | |
17463 | break | |
17464 | fi | |
17465 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17466 | fi |
ac1cb8d3 | 17467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17468 | done |
17469 | else | |
17470 | echo "$as_me: failed program was:" >&5 | |
17471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17472 | ||
17473 | cat >conftest.$ac_ext <<_ACEOF | |
17474 | /* confdefs.h. */ | |
17475 | _ACEOF | |
17476 | cat confdefs.h >>conftest.$ac_ext | |
17477 | cat >>conftest.$ac_ext <<_ACEOF | |
17478 | /* end confdefs.h. */ | |
17479 | $ac_includes_default | |
17480 | int | |
17481 | main () | |
17482 | { | |
17483 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17484 | test_array [0] = 0 | |
17485 | ||
17486 | ; | |
17487 | return 0; | |
17488 | } | |
17489 | _ACEOF | |
17490 | rm -f conftest.$ac_objext | |
17491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17492 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17493 | ac_status=$? |
ac1cb8d3 VS |
17494 | grep -v '^ *+' conftest.er1 >conftest.err |
17495 | rm -f conftest.er1 | |
17496 | cat conftest.err >&5 | |
a848cd7e SC |
17497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17498 | (exit $ac_status); } && | |
6ebeb4c7 | 17499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17501 | (eval $ac_try) 2>&5 | |
17502 | ac_status=$? | |
17503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17504 | (exit $ac_status); }; } && | |
17505 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17507 | (eval $ac_try) 2>&5 | |
17508 | ac_status=$? | |
17509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17510 | (exit $ac_status); }; }; then | |
17511 | ac_hi=-1 ac_mid=-1 | |
17512 | while :; do | |
17513 | cat >conftest.$ac_ext <<_ACEOF | |
17514 | /* confdefs.h. */ | |
17515 | _ACEOF | |
17516 | cat confdefs.h >>conftest.$ac_ext | |
17517 | cat >>conftest.$ac_ext <<_ACEOF | |
17518 | /* end confdefs.h. */ | |
17519 | $ac_includes_default | |
17520 | int | |
17521 | main () | |
17522 | { | |
17523 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17524 | test_array [0] = 0 | |
17525 | ||
17526 | ; | |
17527 | return 0; | |
17528 | } | |
17529 | _ACEOF | |
17530 | rm -f conftest.$ac_objext | |
17531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17532 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17533 | ac_status=$? |
ac1cb8d3 VS |
17534 | grep -v '^ *+' conftest.er1 >conftest.err |
17535 | rm -f conftest.er1 | |
17536 | cat conftest.err >&5 | |
a848cd7e SC |
17537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17538 | (exit $ac_status); } && | |
6ebeb4c7 | 17539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17541 | (eval $ac_try) 2>&5 | |
17542 | ac_status=$? | |
17543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17544 | (exit $ac_status); }; } && | |
17545 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17547 | (eval $ac_try) 2>&5 | |
17548 | ac_status=$? | |
17549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17550 | (exit $ac_status); }; }; then | |
17551 | ac_lo=$ac_mid; break | |
17552 | else | |
17553 | echo "$as_me: failed program was:" >&5 | |
17554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17555 | ||
17556 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17557 | if test $ac_mid -le $ac_hi; then |
17558 | ac_lo= ac_hi= | |
17559 | break | |
17560 | fi | |
17561 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17562 | fi |
ac1cb8d3 | 17563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17564 | done |
17565 | else | |
17566 | echo "$as_me: failed program was:" >&5 | |
17567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17568 | ||
17569 | ac_lo= ac_hi= | |
17570 | fi | |
ac1cb8d3 | 17571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17572 | fi |
ac1cb8d3 | 17573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17574 | # Binary search between lo and hi bounds. |
17575 | while test "x$ac_lo" != "x$ac_hi"; do | |
17576 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17577 | cat >conftest.$ac_ext <<_ACEOF | |
17578 | /* confdefs.h. */ | |
17579 | _ACEOF | |
17580 | cat confdefs.h >>conftest.$ac_ext | |
17581 | cat >>conftest.$ac_ext <<_ACEOF | |
17582 | /* end confdefs.h. */ | |
17583 | $ac_includes_default | |
17584 | int | |
17585 | main () | |
17586 | { | |
17587 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17588 | test_array [0] = 0 | |
17589 | ||
17590 | ; | |
17591 | return 0; | |
17592 | } | |
17593 | _ACEOF | |
17594 | rm -f conftest.$ac_objext | |
17595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17596 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17597 | ac_status=$? |
ac1cb8d3 VS |
17598 | grep -v '^ *+' conftest.er1 >conftest.err |
17599 | rm -f conftest.er1 | |
17600 | cat conftest.err >&5 | |
a848cd7e SC |
17601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17602 | (exit $ac_status); } && | |
6ebeb4c7 | 17603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17605 | (eval $ac_try) 2>&5 | |
17606 | ac_status=$? | |
17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17608 | (exit $ac_status); }; } && | |
17609 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17611 | (eval $ac_try) 2>&5 | |
17612 | ac_status=$? | |
17613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17614 | (exit $ac_status); }; }; then | |
17615 | ac_hi=$ac_mid | |
17616 | else | |
17617 | echo "$as_me: failed program was:" >&5 | |
17618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17619 | ||
17620 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17621 | fi | |
ac1cb8d3 | 17622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17623 | done |
17624 | case $ac_lo in | |
17625 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17626 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17627 | See \`config.log' for more details." >&5 | |
17628 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17629 | See \`config.log' for more details." >&2;} | |
17630 | { (exit 1); exit 1; }; } ;; | |
17631 | esac | |
17632 | else | |
17633 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
17634 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17635 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17636 | { (exit 1); exit 1; }; } |
17637 | else | |
17638 | cat >conftest.$ac_ext <<_ACEOF | |
17639 | /* confdefs.h. */ | |
17640 | _ACEOF | |
17641 | cat confdefs.h >>conftest.$ac_ext | |
17642 | cat >>conftest.$ac_ext <<_ACEOF | |
17643 | /* end confdefs.h. */ | |
17644 | $ac_includes_default | |
17645 | long longval () { return (long) (sizeof (long)); } | |
17646 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
17647 | #include <stdio.h> | |
17648 | #include <stdlib.h> | |
17649 | int | |
17650 | main () | |
17651 | { | |
17652 | ||
17653 | FILE *f = fopen ("conftest.val", "w"); | |
17654 | if (! f) | |
17655 | exit (1); | |
17656 | if (((long) (sizeof (long))) < 0) | |
17657 | { | |
17658 | long i = longval (); | |
17659 | if (i != ((long) (sizeof (long)))) | |
17660 | exit (1); | |
17661 | fprintf (f, "%ld\n", i); | |
17662 | } | |
17663 | else | |
17664 | { | |
17665 | unsigned long i = ulongval (); | |
17666 | if (i != ((long) (sizeof (long)))) | |
17667 | exit (1); | |
17668 | fprintf (f, "%lu\n", i); | |
17669 | } | |
17670 | exit (ferror (f) || fclose (f) != 0); | |
17671 | ||
17672 | ; | |
17673 | return 0; | |
17674 | } | |
17675 | _ACEOF | |
17676 | rm -f conftest$ac_exeext | |
17677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17678 | (eval $ac_link) 2>&5 | |
17679 | ac_status=$? | |
17680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17681 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17683 | (eval $ac_try) 2>&5 | |
17684 | ac_status=$? | |
17685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17686 | (exit $ac_status); }; }; then | |
17687 | ac_cv_sizeof_long=`cat conftest.val` | |
17688 | else | |
17689 | echo "$as_me: program exited with status $ac_status" >&5 | |
17690 | echo "$as_me: failed program was:" >&5 | |
17691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17692 | ||
17693 | ( exit $ac_status ) | |
17694 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17695 | See \`config.log' for more details." >&5 | |
17696 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17697 | See \`config.log' for more details." >&2;} | |
17698 | { (exit 1); exit 1; }; } | |
17699 | fi | |
ac1cb8d3 | 17700 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17701 | fi |
17702 | fi | |
17703 | rm -f conftest.val | |
17704 | else | |
17705 | ac_cv_sizeof_long=0 | |
17706 | fi | |
17707 | fi | |
17708 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
17709 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
17710 | cat >>confdefs.h <<_ACEOF | |
17711 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17712 | _ACEOF | |
17713 | ||
17714 | ||
17715 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
17716 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
17717 | if test "${ac_cv_type_size_t+set}" = set; then | |
17718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17719 | else | |
17720 | cat >conftest.$ac_ext <<_ACEOF | |
17721 | /* confdefs.h. */ | |
17722 | _ACEOF | |
17723 | cat confdefs.h >>conftest.$ac_ext | |
17724 | cat >>conftest.$ac_ext <<_ACEOF | |
17725 | /* end confdefs.h. */ | |
17726 | $ac_includes_default | |
17727 | int | |
17728 | main () | |
17729 | { | |
17730 | if ((size_t *) 0) | |
17731 | return 0; | |
17732 | if (sizeof (size_t)) | |
17733 | return 0; | |
17734 | ; | |
17735 | return 0; | |
17736 | } | |
17737 | _ACEOF | |
17738 | rm -f conftest.$ac_objext | |
17739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17740 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17741 | ac_status=$? |
ac1cb8d3 VS |
17742 | grep -v '^ *+' conftest.er1 >conftest.err |
17743 | rm -f conftest.er1 | |
17744 | cat conftest.err >&5 | |
a848cd7e SC |
17745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17746 | (exit $ac_status); } && | |
6ebeb4c7 | 17747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17749 | (eval $ac_try) 2>&5 | |
17750 | ac_status=$? | |
17751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17752 | (exit $ac_status); }; } && | |
17753 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17755 | (eval $ac_try) 2>&5 | |
17756 | ac_status=$? | |
17757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17758 | (exit $ac_status); }; }; then | |
17759 | ac_cv_type_size_t=yes | |
17760 | else | |
17761 | echo "$as_me: failed program was:" >&5 | |
17762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17763 | ||
17764 | ac_cv_type_size_t=no | |
17765 | fi | |
ac1cb8d3 | 17766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17767 | fi |
17768 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
17769 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
17770 | ||
17771 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
17772 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
17773 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
17774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17775 | else | |
17776 | if test "$ac_cv_type_size_t" = yes; then | |
17777 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17778 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17779 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17780 | # This bug is HP SR number 8606223364. | |
17781 | if test "$cross_compiling" = yes; then | |
17782 | # Depending upon the size, compute the lo and hi bounds. | |
17783 | cat >conftest.$ac_ext <<_ACEOF | |
17784 | /* confdefs.h. */ | |
17785 | _ACEOF | |
17786 | cat confdefs.h >>conftest.$ac_ext | |
17787 | cat >>conftest.$ac_ext <<_ACEOF | |
17788 | /* end confdefs.h. */ | |
17789 | $ac_includes_default | |
17790 | int | |
17791 | main () | |
17792 | { | |
17793 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
17794 | test_array [0] = 0 | |
17795 | ||
17796 | ; | |
17797 | return 0; | |
17798 | } | |
17799 | _ACEOF | |
17800 | rm -f conftest.$ac_objext | |
17801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17802 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17803 | ac_status=$? |
ac1cb8d3 VS |
17804 | grep -v '^ *+' conftest.er1 >conftest.err |
17805 | rm -f conftest.er1 | |
17806 | cat conftest.err >&5 | |
a848cd7e SC |
17807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17808 | (exit $ac_status); } && | |
6ebeb4c7 | 17809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17811 | (eval $ac_try) 2>&5 | |
17812 | ac_status=$? | |
17813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17814 | (exit $ac_status); }; } && | |
17815 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17817 | (eval $ac_try) 2>&5 | |
17818 | ac_status=$? | |
17819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17820 | (exit $ac_status); }; }; then | |
17821 | ac_lo=0 ac_mid=0 | |
17822 | while :; do | |
17823 | cat >conftest.$ac_ext <<_ACEOF | |
17824 | /* confdefs.h. */ | |
17825 | _ACEOF | |
17826 | cat confdefs.h >>conftest.$ac_ext | |
17827 | cat >>conftest.$ac_ext <<_ACEOF | |
17828 | /* end confdefs.h. */ | |
17829 | $ac_includes_default | |
17830 | int | |
17831 | main () | |
17832 | { | |
17833 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17834 | test_array [0] = 0 | |
17835 | ||
17836 | ; | |
17837 | return 0; | |
17838 | } | |
17839 | _ACEOF | |
17840 | rm -f conftest.$ac_objext | |
17841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17842 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17843 | ac_status=$? |
ac1cb8d3 VS |
17844 | grep -v '^ *+' conftest.er1 >conftest.err |
17845 | rm -f conftest.er1 | |
17846 | cat conftest.err >&5 | |
a848cd7e SC |
17847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17848 | (exit $ac_status); } && | |
6ebeb4c7 | 17849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17851 | (eval $ac_try) 2>&5 | |
17852 | ac_status=$? | |
17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17854 | (exit $ac_status); }; } && | |
17855 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17857 | (eval $ac_try) 2>&5 | |
17858 | ac_status=$? | |
17859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17860 | (exit $ac_status); }; }; then | |
17861 | ac_hi=$ac_mid; break | |
17862 | else | |
17863 | echo "$as_me: failed program was:" >&5 | |
17864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17865 | ||
17866 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17867 | if test $ac_lo -le $ac_mid; then |
17868 | ac_lo= ac_hi= | |
17869 | break | |
17870 | fi | |
17871 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17872 | fi |
ac1cb8d3 | 17873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17874 | done |
17875 | else | |
17876 | echo "$as_me: failed program was:" >&5 | |
17877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17878 | ||
17879 | cat >conftest.$ac_ext <<_ACEOF | |
17880 | /* confdefs.h. */ | |
17881 | _ACEOF | |
17882 | cat confdefs.h >>conftest.$ac_ext | |
17883 | cat >>conftest.$ac_ext <<_ACEOF | |
17884 | /* end confdefs.h. */ | |
17885 | $ac_includes_default | |
17886 | int | |
17887 | main () | |
17888 | { | |
17889 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
17890 | test_array [0] = 0 | |
17891 | ||
17892 | ; | |
17893 | return 0; | |
17894 | } | |
17895 | _ACEOF | |
17896 | rm -f conftest.$ac_objext | |
17897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17898 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17899 | ac_status=$? |
ac1cb8d3 VS |
17900 | grep -v '^ *+' conftest.er1 >conftest.err |
17901 | rm -f conftest.er1 | |
17902 | cat conftest.err >&5 | |
a848cd7e SC |
17903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17904 | (exit $ac_status); } && | |
6ebeb4c7 | 17905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17907 | (eval $ac_try) 2>&5 | |
17908 | ac_status=$? | |
17909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17910 | (exit $ac_status); }; } && | |
17911 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17913 | (eval $ac_try) 2>&5 | |
17914 | ac_status=$? | |
17915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17916 | (exit $ac_status); }; }; then | |
17917 | ac_hi=-1 ac_mid=-1 | |
17918 | while :; do | |
17919 | cat >conftest.$ac_ext <<_ACEOF | |
17920 | /* confdefs.h. */ | |
17921 | _ACEOF | |
17922 | cat confdefs.h >>conftest.$ac_ext | |
17923 | cat >>conftest.$ac_ext <<_ACEOF | |
17924 | /* end confdefs.h. */ | |
17925 | $ac_includes_default | |
17926 | int | |
17927 | main () | |
17928 | { | |
17929 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
17930 | test_array [0] = 0 | |
17931 | ||
17932 | ; | |
17933 | return 0; | |
17934 | } | |
17935 | _ACEOF | |
17936 | rm -f conftest.$ac_objext | |
17937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17938 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17939 | ac_status=$? |
ac1cb8d3 VS |
17940 | grep -v '^ *+' conftest.er1 >conftest.err |
17941 | rm -f conftest.er1 | |
17942 | cat conftest.err >&5 | |
a848cd7e SC |
17943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17944 | (exit $ac_status); } && | |
6ebeb4c7 | 17945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17947 | (eval $ac_try) 2>&5 | |
17948 | ac_status=$? | |
17949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17950 | (exit $ac_status); }; } && | |
17951 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17953 | (eval $ac_try) 2>&5 | |
17954 | ac_status=$? | |
17955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17956 | (exit $ac_status); }; }; then | |
17957 | ac_lo=$ac_mid; break | |
17958 | else | |
17959 | echo "$as_me: failed program was:" >&5 | |
17960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17961 | ||
17962 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17963 | if test $ac_mid -le $ac_hi; then |
17964 | ac_lo= ac_hi= | |
17965 | break | |
17966 | fi | |
17967 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17968 | fi |
ac1cb8d3 | 17969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17970 | done |
17971 | else | |
17972 | echo "$as_me: failed program was:" >&5 | |
17973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17974 | ||
17975 | ac_lo= ac_hi= | |
17976 | fi | |
ac1cb8d3 | 17977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17978 | fi |
ac1cb8d3 | 17979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17980 | # Binary search between lo and hi bounds. |
17981 | while test "x$ac_lo" != "x$ac_hi"; do | |
17982 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17983 | cat >conftest.$ac_ext <<_ACEOF | |
17984 | /* confdefs.h. */ | |
17985 | _ACEOF | |
17986 | cat confdefs.h >>conftest.$ac_ext | |
17987 | cat >>conftest.$ac_ext <<_ACEOF | |
17988 | /* end confdefs.h. */ | |
17989 | $ac_includes_default | |
17990 | int | |
17991 | main () | |
17992 | { | |
17993 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17994 | test_array [0] = 0 | |
17995 | ||
17996 | ; | |
17997 | return 0; | |
17998 | } | |
17999 | _ACEOF | |
18000 | rm -f conftest.$ac_objext | |
18001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18002 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18003 | ac_status=$? |
ac1cb8d3 VS |
18004 | grep -v '^ *+' conftest.er1 >conftest.err |
18005 | rm -f conftest.er1 | |
18006 | cat conftest.err >&5 | |
a848cd7e SC |
18007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18008 | (exit $ac_status); } && | |
6ebeb4c7 | 18009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18011 | (eval $ac_try) 2>&5 | |
18012 | ac_status=$? | |
18013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18014 | (exit $ac_status); }; } && | |
18015 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18017 | (eval $ac_try) 2>&5 | |
18018 | ac_status=$? | |
18019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18020 | (exit $ac_status); }; }; then | |
18021 | ac_hi=$ac_mid | |
18022 | else | |
18023 | echo "$as_me: failed program was:" >&5 | |
18024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18025 | ||
18026 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18027 | fi | |
ac1cb8d3 | 18028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18029 | done |
18030 | case $ac_lo in | |
18031 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
18032 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18033 | See \`config.log' for more details." >&5 | |
18034 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18035 | See \`config.log' for more details." >&2;} | |
18036 | { (exit 1); exit 1; }; } ;; | |
18037 | esac | |
18038 | else | |
18039 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
18040 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18041 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18042 | { (exit 1); exit 1; }; } |
18043 | else | |
18044 | cat >conftest.$ac_ext <<_ACEOF | |
18045 | /* confdefs.h. */ | |
18046 | _ACEOF | |
18047 | cat confdefs.h >>conftest.$ac_ext | |
18048 | cat >>conftest.$ac_ext <<_ACEOF | |
18049 | /* end confdefs.h. */ | |
18050 | $ac_includes_default | |
18051 | long longval () { return (long) (sizeof (size_t)); } | |
18052 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
18053 | #include <stdio.h> | |
18054 | #include <stdlib.h> | |
18055 | int | |
18056 | main () | |
18057 | { | |
18058 | ||
18059 | FILE *f = fopen ("conftest.val", "w"); | |
18060 | if (! f) | |
18061 | exit (1); | |
18062 | if (((long) (sizeof (size_t))) < 0) | |
18063 | { | |
18064 | long i = longval (); | |
18065 | if (i != ((long) (sizeof (size_t)))) | |
18066 | exit (1); | |
18067 | fprintf (f, "%ld\n", i); | |
18068 | } | |
18069 | else | |
18070 | { | |
18071 | unsigned long i = ulongval (); | |
18072 | if (i != ((long) (sizeof (size_t)))) | |
18073 | exit (1); | |
18074 | fprintf (f, "%lu\n", i); | |
18075 | } | |
18076 | exit (ferror (f) || fclose (f) != 0); | |
18077 | ||
18078 | ; | |
18079 | return 0; | |
18080 | } | |
18081 | _ACEOF | |
18082 | rm -f conftest$ac_exeext | |
18083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18084 | (eval $ac_link) 2>&5 | |
18085 | ac_status=$? | |
18086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18087 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18089 | (eval $ac_try) 2>&5 | |
18090 | ac_status=$? | |
18091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18092 | (exit $ac_status); }; }; then | |
18093 | ac_cv_sizeof_size_t=`cat conftest.val` | |
18094 | else | |
18095 | echo "$as_me: program exited with status $ac_status" >&5 | |
18096 | echo "$as_me: failed program was:" >&5 | |
18097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18098 | ||
18099 | ( exit $ac_status ) | |
18100 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18101 | See \`config.log' for more details." >&5 | |
18102 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18103 | See \`config.log' for more details." >&2;} | |
18104 | { (exit 1); exit 1; }; } | |
18105 | fi | |
ac1cb8d3 | 18106 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18107 | fi |
18108 | fi | |
18109 | rm -f conftest.val | |
18110 | else | |
18111 | ac_cv_sizeof_size_t=0 | |
18112 | fi | |
18113 | fi | |
18114 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
18115 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
18116 | cat >>confdefs.h <<_ACEOF | |
18117 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
18118 | _ACEOF | |
18119 | ||
18120 | ||
18121 | ||
18122 | case "${host}" in | |
18123 | arm-*-linux* ) | |
18124 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18125 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18126 | if test "${ac_cv_type_long_long+set}" = set; then | |
18127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18128 | else | |
18129 | cat >conftest.$ac_ext <<_ACEOF | |
18130 | /* confdefs.h. */ | |
18131 | _ACEOF | |
18132 | cat confdefs.h >>conftest.$ac_ext | |
18133 | cat >>conftest.$ac_ext <<_ACEOF | |
18134 | /* end confdefs.h. */ | |
18135 | $ac_includes_default | |
18136 | int | |
18137 | main () | |
18138 | { | |
18139 | if ((long long *) 0) | |
18140 | return 0; | |
18141 | if (sizeof (long long)) | |
18142 | return 0; | |
18143 | ; | |
18144 | return 0; | |
18145 | } | |
18146 | _ACEOF | |
18147 | rm -f conftest.$ac_objext | |
18148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18149 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18150 | ac_status=$? |
ac1cb8d3 VS |
18151 | grep -v '^ *+' conftest.er1 >conftest.err |
18152 | rm -f conftest.er1 | |
18153 | cat conftest.err >&5 | |
a848cd7e SC |
18154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18155 | (exit $ac_status); } && | |
6ebeb4c7 | 18156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18158 | (eval $ac_try) 2>&5 | |
18159 | ac_status=$? | |
18160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18161 | (exit $ac_status); }; } && | |
18162 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18164 | (eval $ac_try) 2>&5 | |
18165 | ac_status=$? | |
18166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18167 | (exit $ac_status); }; }; then | |
18168 | ac_cv_type_long_long=yes | |
18169 | else | |
18170 | echo "$as_me: failed program was:" >&5 | |
18171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18172 | ||
18173 | ac_cv_type_long_long=no | |
18174 | fi | |
ac1cb8d3 | 18175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18176 | fi |
18177 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18178 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18179 | ||
18180 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18181 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18182 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18184 | else | |
18185 | if test "$ac_cv_type_long_long" = yes; then | |
18186 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18187 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18188 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18189 | # This bug is HP SR number 8606223364. | |
18190 | if test "$cross_compiling" = yes; then | |
18191 | # Depending upon the size, compute the lo and hi bounds. | |
18192 | cat >conftest.$ac_ext <<_ACEOF | |
18193 | /* confdefs.h. */ | |
18194 | _ACEOF | |
18195 | cat confdefs.h >>conftest.$ac_ext | |
18196 | cat >>conftest.$ac_ext <<_ACEOF | |
18197 | /* end confdefs.h. */ | |
18198 | $ac_includes_default | |
18199 | int | |
18200 | main () | |
18201 | { | |
18202 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18203 | test_array [0] = 0 | |
18204 | ||
18205 | ; | |
18206 | return 0; | |
18207 | } | |
18208 | _ACEOF | |
18209 | rm -f conftest.$ac_objext | |
18210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18211 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18212 | ac_status=$? |
ac1cb8d3 VS |
18213 | grep -v '^ *+' conftest.er1 >conftest.err |
18214 | rm -f conftest.er1 | |
18215 | cat conftest.err >&5 | |
a848cd7e SC |
18216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18217 | (exit $ac_status); } && | |
6ebeb4c7 | 18218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18220 | (eval $ac_try) 2>&5 | |
18221 | ac_status=$? | |
18222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18223 | (exit $ac_status); }; } && | |
18224 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18226 | (eval $ac_try) 2>&5 | |
18227 | ac_status=$? | |
18228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18229 | (exit $ac_status); }; }; then | |
18230 | ac_lo=0 ac_mid=0 | |
18231 | while :; do | |
18232 | cat >conftest.$ac_ext <<_ACEOF | |
18233 | /* confdefs.h. */ | |
18234 | _ACEOF | |
18235 | cat confdefs.h >>conftest.$ac_ext | |
18236 | cat >>conftest.$ac_ext <<_ACEOF | |
18237 | /* end confdefs.h. */ | |
18238 | $ac_includes_default | |
18239 | int | |
18240 | main () | |
18241 | { | |
18242 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18243 | test_array [0] = 0 | |
18244 | ||
18245 | ; | |
18246 | return 0; | |
18247 | } | |
18248 | _ACEOF | |
18249 | rm -f conftest.$ac_objext | |
18250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18252 | ac_status=$? |
ac1cb8d3 VS |
18253 | grep -v '^ *+' conftest.er1 >conftest.err |
18254 | rm -f conftest.er1 | |
18255 | cat conftest.err >&5 | |
a848cd7e SC |
18256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18257 | (exit $ac_status); } && | |
6ebeb4c7 | 18258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18260 | (eval $ac_try) 2>&5 | |
18261 | ac_status=$? | |
18262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18263 | (exit $ac_status); }; } && | |
18264 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18266 | (eval $ac_try) 2>&5 | |
18267 | ac_status=$? | |
18268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18269 | (exit $ac_status); }; }; then | |
18270 | ac_hi=$ac_mid; break | |
18271 | else | |
18272 | echo "$as_me: failed program was:" >&5 | |
18273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18274 | ||
18275 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18276 | if test $ac_lo -le $ac_mid; then |
18277 | ac_lo= ac_hi= | |
18278 | break | |
18279 | fi | |
18280 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18281 | fi |
ac1cb8d3 | 18282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18283 | done |
18284 | else | |
18285 | echo "$as_me: failed program was:" >&5 | |
18286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18287 | ||
18288 | cat >conftest.$ac_ext <<_ACEOF | |
18289 | /* confdefs.h. */ | |
18290 | _ACEOF | |
18291 | cat confdefs.h >>conftest.$ac_ext | |
18292 | cat >>conftest.$ac_ext <<_ACEOF | |
18293 | /* end confdefs.h. */ | |
18294 | $ac_includes_default | |
18295 | int | |
18296 | main () | |
18297 | { | |
18298 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18299 | test_array [0] = 0 | |
18300 | ||
18301 | ; | |
18302 | return 0; | |
18303 | } | |
18304 | _ACEOF | |
18305 | rm -f conftest.$ac_objext | |
18306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18307 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18308 | ac_status=$? |
ac1cb8d3 VS |
18309 | grep -v '^ *+' conftest.er1 >conftest.err |
18310 | rm -f conftest.er1 | |
18311 | cat conftest.err >&5 | |
a848cd7e SC |
18312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18313 | (exit $ac_status); } && | |
6ebeb4c7 | 18314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18316 | (eval $ac_try) 2>&5 | |
18317 | ac_status=$? | |
18318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18319 | (exit $ac_status); }; } && | |
18320 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18322 | (eval $ac_try) 2>&5 | |
18323 | ac_status=$? | |
18324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18325 | (exit $ac_status); }; }; then | |
18326 | ac_hi=-1 ac_mid=-1 | |
18327 | while :; do | |
18328 | cat >conftest.$ac_ext <<_ACEOF | |
18329 | /* confdefs.h. */ | |
18330 | _ACEOF | |
18331 | cat confdefs.h >>conftest.$ac_ext | |
18332 | cat >>conftest.$ac_ext <<_ACEOF | |
18333 | /* end confdefs.h. */ | |
18334 | $ac_includes_default | |
18335 | int | |
18336 | main () | |
18337 | { | |
18338 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18339 | test_array [0] = 0 | |
18340 | ||
18341 | ; | |
18342 | return 0; | |
18343 | } | |
18344 | _ACEOF | |
18345 | rm -f conftest.$ac_objext | |
18346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18347 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18348 | ac_status=$? |
ac1cb8d3 VS |
18349 | grep -v '^ *+' conftest.er1 >conftest.err |
18350 | rm -f conftest.er1 | |
18351 | cat conftest.err >&5 | |
a848cd7e SC |
18352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18353 | (exit $ac_status); } && | |
6ebeb4c7 | 18354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18356 | (eval $ac_try) 2>&5 | |
18357 | ac_status=$? | |
18358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18359 | (exit $ac_status); }; } && | |
18360 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18362 | (eval $ac_try) 2>&5 | |
18363 | ac_status=$? | |
18364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18365 | (exit $ac_status); }; }; then | |
18366 | ac_lo=$ac_mid; break | |
18367 | else | |
18368 | echo "$as_me: failed program was:" >&5 | |
18369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18370 | ||
18371 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18372 | if test $ac_mid -le $ac_hi; then |
18373 | ac_lo= ac_hi= | |
18374 | break | |
18375 | fi | |
18376 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18377 | fi |
ac1cb8d3 | 18378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18379 | done |
18380 | else | |
18381 | echo "$as_me: failed program was:" >&5 | |
18382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18383 | ||
18384 | ac_lo= ac_hi= | |
18385 | fi | |
ac1cb8d3 | 18386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18387 | fi |
ac1cb8d3 | 18388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18389 | # Binary search between lo and hi bounds. |
18390 | while test "x$ac_lo" != "x$ac_hi"; do | |
18391 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18392 | cat >conftest.$ac_ext <<_ACEOF | |
18393 | /* confdefs.h. */ | |
18394 | _ACEOF | |
18395 | cat confdefs.h >>conftest.$ac_ext | |
18396 | cat >>conftest.$ac_ext <<_ACEOF | |
18397 | /* end confdefs.h. */ | |
18398 | $ac_includes_default | |
18399 | int | |
18400 | main () | |
18401 | { | |
18402 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18403 | test_array [0] = 0 | |
18404 | ||
18405 | ; | |
18406 | return 0; | |
18407 | } | |
18408 | _ACEOF | |
18409 | rm -f conftest.$ac_objext | |
18410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18411 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18412 | ac_status=$? |
ac1cb8d3 VS |
18413 | grep -v '^ *+' conftest.er1 >conftest.err |
18414 | rm -f conftest.er1 | |
18415 | cat conftest.err >&5 | |
a848cd7e SC |
18416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18417 | (exit $ac_status); } && | |
6ebeb4c7 | 18418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18420 | (eval $ac_try) 2>&5 | |
18421 | ac_status=$? | |
18422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18423 | (exit $ac_status); }; } && | |
18424 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18426 | (eval $ac_try) 2>&5 | |
18427 | ac_status=$? | |
18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18429 | (exit $ac_status); }; }; then | |
18430 | ac_hi=$ac_mid | |
18431 | else | |
18432 | echo "$as_me: failed program was:" >&5 | |
18433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18434 | ||
18435 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18436 | fi | |
ac1cb8d3 | 18437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18438 | done |
18439 | case $ac_lo in | |
18440 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18441 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18442 | See \`config.log' for more details." >&5 | |
18443 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18444 | See \`config.log' for more details." >&2;} | |
18445 | { (exit 1); exit 1; }; } ;; | |
18446 | esac | |
18447 | else | |
18448 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
18449 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18450 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18451 | { (exit 1); exit 1; }; } |
18452 | else | |
18453 | cat >conftest.$ac_ext <<_ACEOF | |
18454 | /* confdefs.h. */ | |
18455 | _ACEOF | |
18456 | cat confdefs.h >>conftest.$ac_ext | |
18457 | cat >>conftest.$ac_ext <<_ACEOF | |
18458 | /* end confdefs.h. */ | |
18459 | $ac_includes_default | |
18460 | long longval () { return (long) (sizeof (long long)); } | |
18461 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18462 | #include <stdio.h> | |
18463 | #include <stdlib.h> | |
18464 | int | |
18465 | main () | |
18466 | { | |
18467 | ||
18468 | FILE *f = fopen ("conftest.val", "w"); | |
18469 | if (! f) | |
18470 | exit (1); | |
18471 | if (((long) (sizeof (long long))) < 0) | |
18472 | { | |
18473 | long i = longval (); | |
18474 | if (i != ((long) (sizeof (long long)))) | |
18475 | exit (1); | |
18476 | fprintf (f, "%ld\n", i); | |
18477 | } | |
18478 | else | |
18479 | { | |
18480 | unsigned long i = ulongval (); | |
18481 | if (i != ((long) (sizeof (long long)))) | |
18482 | exit (1); | |
18483 | fprintf (f, "%lu\n", i); | |
18484 | } | |
18485 | exit (ferror (f) || fclose (f) != 0); | |
18486 | ||
18487 | ; | |
18488 | return 0; | |
18489 | } | |
18490 | _ACEOF | |
18491 | rm -f conftest$ac_exeext | |
18492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18493 | (eval $ac_link) 2>&5 | |
18494 | ac_status=$? | |
18495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18498 | (eval $ac_try) 2>&5 | |
18499 | ac_status=$? | |
18500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18501 | (exit $ac_status); }; }; then | |
18502 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18503 | else | |
18504 | echo "$as_me: program exited with status $ac_status" >&5 | |
18505 | echo "$as_me: failed program was:" >&5 | |
18506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18507 | ||
18508 | ( exit $ac_status ) | |
18509 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18510 | See \`config.log' for more details." >&5 | |
18511 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18512 | See \`config.log' for more details." >&2;} | |
18513 | { (exit 1); exit 1; }; } | |
18514 | fi | |
ac1cb8d3 | 18515 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18516 | fi |
18517 | fi | |
18518 | rm -f conftest.val | |
18519 | else | |
18520 | ac_cv_sizeof_long_long=0 | |
18521 | fi | |
18522 | fi | |
18523 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18524 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18525 | cat >>confdefs.h <<_ACEOF | |
18526 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18527 | _ACEOF | |
18528 | ||
18529 | ||
18530 | ;; | |
18531 | *-hp-hpux* ) | |
18532 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18533 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18534 | if test "${ac_cv_type_long_long+set}" = set; then | |
18535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18536 | else | |
18537 | cat >conftest.$ac_ext <<_ACEOF | |
18538 | /* confdefs.h. */ | |
18539 | _ACEOF | |
18540 | cat confdefs.h >>conftest.$ac_ext | |
18541 | cat >>conftest.$ac_ext <<_ACEOF | |
18542 | /* end confdefs.h. */ | |
18543 | $ac_includes_default | |
18544 | int | |
18545 | main () | |
18546 | { | |
18547 | if ((long long *) 0) | |
18548 | return 0; | |
18549 | if (sizeof (long long)) | |
18550 | return 0; | |
18551 | ; | |
18552 | return 0; | |
18553 | } | |
18554 | _ACEOF | |
18555 | rm -f conftest.$ac_objext | |
18556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18557 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18558 | ac_status=$? |
ac1cb8d3 VS |
18559 | grep -v '^ *+' conftest.er1 >conftest.err |
18560 | rm -f conftest.er1 | |
18561 | cat conftest.err >&5 | |
a848cd7e SC |
18562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18563 | (exit $ac_status); } && | |
6ebeb4c7 | 18564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18566 | (eval $ac_try) 2>&5 | |
18567 | ac_status=$? | |
18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18569 | (exit $ac_status); }; } && | |
18570 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18572 | (eval $ac_try) 2>&5 | |
18573 | ac_status=$? | |
18574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18575 | (exit $ac_status); }; }; then | |
18576 | ac_cv_type_long_long=yes | |
18577 | else | |
18578 | echo "$as_me: failed program was:" >&5 | |
18579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18580 | ||
18581 | ac_cv_type_long_long=no | |
18582 | fi | |
ac1cb8d3 | 18583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18584 | fi |
18585 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18586 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18587 | ||
18588 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18589 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18590 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18592 | else | |
18593 | if test "$ac_cv_type_long_long" = yes; then | |
18594 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18595 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18596 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18597 | # This bug is HP SR number 8606223364. | |
18598 | if test "$cross_compiling" = yes; then | |
18599 | # Depending upon the size, compute the lo and hi bounds. | |
18600 | cat >conftest.$ac_ext <<_ACEOF | |
18601 | /* confdefs.h. */ | |
18602 | _ACEOF | |
18603 | cat confdefs.h >>conftest.$ac_ext | |
18604 | cat >>conftest.$ac_ext <<_ACEOF | |
18605 | /* end confdefs.h. */ | |
18606 | $ac_includes_default | |
18607 | int | |
18608 | main () | |
18609 | { | |
18610 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18611 | test_array [0] = 0 | |
18612 | ||
18613 | ; | |
18614 | return 0; | |
18615 | } | |
18616 | _ACEOF | |
18617 | rm -f conftest.$ac_objext | |
18618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18619 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18620 | ac_status=$? |
ac1cb8d3 VS |
18621 | grep -v '^ *+' conftest.er1 >conftest.err |
18622 | rm -f conftest.er1 | |
18623 | cat conftest.err >&5 | |
a848cd7e SC |
18624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18625 | (exit $ac_status); } && | |
6ebeb4c7 | 18626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18628 | (eval $ac_try) 2>&5 | |
18629 | ac_status=$? | |
18630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18631 | (exit $ac_status); }; } && | |
18632 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18634 | (eval $ac_try) 2>&5 | |
18635 | ac_status=$? | |
18636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18637 | (exit $ac_status); }; }; then | |
18638 | ac_lo=0 ac_mid=0 | |
18639 | while :; do | |
18640 | cat >conftest.$ac_ext <<_ACEOF | |
18641 | /* confdefs.h. */ | |
18642 | _ACEOF | |
18643 | cat confdefs.h >>conftest.$ac_ext | |
18644 | cat >>conftest.$ac_ext <<_ACEOF | |
18645 | /* end confdefs.h. */ | |
18646 | $ac_includes_default | |
18647 | int | |
18648 | main () | |
18649 | { | |
18650 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18651 | test_array [0] = 0 | |
18652 | ||
18653 | ; | |
18654 | return 0; | |
18655 | } | |
18656 | _ACEOF | |
18657 | rm -f conftest.$ac_objext | |
18658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18659 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18660 | ac_status=$? |
ac1cb8d3 VS |
18661 | grep -v '^ *+' conftest.er1 >conftest.err |
18662 | rm -f conftest.er1 | |
18663 | cat conftest.err >&5 | |
a848cd7e SC |
18664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18665 | (exit $ac_status); } && | |
6ebeb4c7 | 18666 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18668 | (eval $ac_try) 2>&5 | |
18669 | ac_status=$? | |
18670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18671 | (exit $ac_status); }; } && | |
18672 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18674 | (eval $ac_try) 2>&5 | |
18675 | ac_status=$? | |
18676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18677 | (exit $ac_status); }; }; then | |
18678 | ac_hi=$ac_mid; break | |
18679 | else | |
18680 | echo "$as_me: failed program was:" >&5 | |
18681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18682 | ||
18683 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18684 | if test $ac_lo -le $ac_mid; then |
18685 | ac_lo= ac_hi= | |
18686 | break | |
18687 | fi | |
18688 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18689 | fi |
ac1cb8d3 | 18690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18691 | done |
18692 | else | |
18693 | echo "$as_me: failed program was:" >&5 | |
18694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18695 | ||
18696 | cat >conftest.$ac_ext <<_ACEOF | |
18697 | /* confdefs.h. */ | |
18698 | _ACEOF | |
18699 | cat confdefs.h >>conftest.$ac_ext | |
18700 | cat >>conftest.$ac_ext <<_ACEOF | |
18701 | /* end confdefs.h. */ | |
18702 | $ac_includes_default | |
18703 | int | |
18704 | main () | |
18705 | { | |
18706 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18707 | test_array [0] = 0 | |
18708 | ||
18709 | ; | |
18710 | return 0; | |
18711 | } | |
18712 | _ACEOF | |
18713 | rm -f conftest.$ac_objext | |
18714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18715 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18716 | ac_status=$? |
ac1cb8d3 VS |
18717 | grep -v '^ *+' conftest.er1 >conftest.err |
18718 | rm -f conftest.er1 | |
18719 | cat conftest.err >&5 | |
a848cd7e SC |
18720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18721 | (exit $ac_status); } && | |
6ebeb4c7 | 18722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18724 | (eval $ac_try) 2>&5 | |
18725 | ac_status=$? | |
18726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18727 | (exit $ac_status); }; } && | |
18728 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18730 | (eval $ac_try) 2>&5 | |
18731 | ac_status=$? | |
18732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18733 | (exit $ac_status); }; }; then | |
18734 | ac_hi=-1 ac_mid=-1 | |
18735 | while :; do | |
18736 | cat >conftest.$ac_ext <<_ACEOF | |
18737 | /* confdefs.h. */ | |
18738 | _ACEOF | |
18739 | cat confdefs.h >>conftest.$ac_ext | |
18740 | cat >>conftest.$ac_ext <<_ACEOF | |
18741 | /* end confdefs.h. */ | |
18742 | $ac_includes_default | |
18743 | int | |
18744 | main () | |
18745 | { | |
18746 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18747 | test_array [0] = 0 | |
18748 | ||
18749 | ; | |
18750 | return 0; | |
18751 | } | |
18752 | _ACEOF | |
18753 | rm -f conftest.$ac_objext | |
18754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18755 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18756 | ac_status=$? |
ac1cb8d3 VS |
18757 | grep -v '^ *+' conftest.er1 >conftest.err |
18758 | rm -f conftest.er1 | |
18759 | cat conftest.err >&5 | |
a848cd7e SC |
18760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18761 | (exit $ac_status); } && | |
6ebeb4c7 | 18762 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18764 | (eval $ac_try) 2>&5 | |
18765 | ac_status=$? | |
18766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18767 | (exit $ac_status); }; } && | |
18768 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18770 | (eval $ac_try) 2>&5 | |
18771 | ac_status=$? | |
18772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18773 | (exit $ac_status); }; }; then | |
18774 | ac_lo=$ac_mid; break | |
18775 | else | |
18776 | echo "$as_me: failed program was:" >&5 | |
18777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18778 | ||
18779 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18780 | if test $ac_mid -le $ac_hi; then |
18781 | ac_lo= ac_hi= | |
18782 | break | |
18783 | fi | |
18784 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18785 | fi |
ac1cb8d3 | 18786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18787 | done |
18788 | else | |
18789 | echo "$as_me: failed program was:" >&5 | |
18790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18791 | ||
18792 | ac_lo= ac_hi= | |
18793 | fi | |
ac1cb8d3 | 18794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18795 | fi |
ac1cb8d3 | 18796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18797 | # Binary search between lo and hi bounds. |
18798 | while test "x$ac_lo" != "x$ac_hi"; do | |
18799 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18800 | cat >conftest.$ac_ext <<_ACEOF | |
18801 | /* confdefs.h. */ | |
18802 | _ACEOF | |
18803 | cat confdefs.h >>conftest.$ac_ext | |
18804 | cat >>conftest.$ac_ext <<_ACEOF | |
18805 | /* end confdefs.h. */ | |
18806 | $ac_includes_default | |
18807 | int | |
18808 | main () | |
18809 | { | |
18810 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18811 | test_array [0] = 0 | |
18812 | ||
18813 | ; | |
18814 | return 0; | |
18815 | } | |
18816 | _ACEOF | |
18817 | rm -f conftest.$ac_objext | |
18818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18819 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18820 | ac_status=$? |
ac1cb8d3 VS |
18821 | grep -v '^ *+' conftest.er1 >conftest.err |
18822 | rm -f conftest.er1 | |
18823 | cat conftest.err >&5 | |
a848cd7e SC |
18824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18825 | (exit $ac_status); } && | |
6ebeb4c7 | 18826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18828 | (eval $ac_try) 2>&5 | |
18829 | ac_status=$? | |
18830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18831 | (exit $ac_status); }; } && | |
18832 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18834 | (eval $ac_try) 2>&5 | |
18835 | ac_status=$? | |
18836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18837 | (exit $ac_status); }; }; then | |
18838 | ac_hi=$ac_mid | |
18839 | else | |
18840 | echo "$as_me: failed program was:" >&5 | |
18841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18842 | ||
18843 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18844 | fi | |
ac1cb8d3 | 18845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18846 | done |
18847 | case $ac_lo in | |
18848 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18849 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18850 | See \`config.log' for more details." >&5 | |
18851 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18852 | See \`config.log' for more details." >&2;} | |
18853 | { (exit 1); exit 1; }; } ;; | |
18854 | esac | |
18855 | else | |
18856 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
18857 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18858 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18859 | { (exit 1); exit 1; }; } |
18860 | else | |
18861 | cat >conftest.$ac_ext <<_ACEOF | |
18862 | /* confdefs.h. */ | |
18863 | _ACEOF | |
18864 | cat confdefs.h >>conftest.$ac_ext | |
18865 | cat >>conftest.$ac_ext <<_ACEOF | |
18866 | /* end confdefs.h. */ | |
18867 | $ac_includes_default | |
18868 | long longval () { return (long) (sizeof (long long)); } | |
18869 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18870 | #include <stdio.h> | |
18871 | #include <stdlib.h> | |
18872 | int | |
18873 | main () | |
18874 | { | |
18875 | ||
18876 | FILE *f = fopen ("conftest.val", "w"); | |
18877 | if (! f) | |
18878 | exit (1); | |
18879 | if (((long) (sizeof (long long))) < 0) | |
18880 | { | |
18881 | long i = longval (); | |
18882 | if (i != ((long) (sizeof (long long)))) | |
18883 | exit (1); | |
18884 | fprintf (f, "%ld\n", i); | |
18885 | } | |
18886 | else | |
18887 | { | |
18888 | unsigned long i = ulongval (); | |
18889 | if (i != ((long) (sizeof (long long)))) | |
18890 | exit (1); | |
18891 | fprintf (f, "%lu\n", i); | |
18892 | } | |
18893 | exit (ferror (f) || fclose (f) != 0); | |
18894 | ||
18895 | ; | |
18896 | return 0; | |
18897 | } | |
18898 | _ACEOF | |
18899 | rm -f conftest$ac_exeext | |
18900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18901 | (eval $ac_link) 2>&5 | |
18902 | ac_status=$? | |
18903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18904 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18906 | (eval $ac_try) 2>&5 | |
18907 | ac_status=$? | |
18908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18909 | (exit $ac_status); }; }; then | |
18910 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18911 | else | |
18912 | echo "$as_me: program exited with status $ac_status" >&5 | |
18913 | echo "$as_me: failed program was:" >&5 | |
18914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18915 | ||
18916 | ( exit $ac_status ) | |
18917 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18918 | See \`config.log' for more details." >&5 | |
18919 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18920 | See \`config.log' for more details." >&2;} | |
18921 | { (exit 1); exit 1; }; } | |
18922 | fi | |
ac1cb8d3 | 18923 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18924 | fi |
18925 | fi | |
18926 | rm -f conftest.val | |
18927 | else | |
18928 | ac_cv_sizeof_long_long=0 | |
18929 | fi | |
18930 | fi | |
18931 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18932 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18933 | cat >>confdefs.h <<_ACEOF | |
18934 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18935 | _ACEOF | |
18936 | ||
18937 | ||
18938 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
18939 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
18940 | fi | |
18941 | ;; | |
18942 | * ) | |
18943 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18944 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18945 | if test "${ac_cv_type_long_long+set}" = set; then | |
18946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18947 | else | |
18948 | cat >conftest.$ac_ext <<_ACEOF | |
18949 | /* confdefs.h. */ | |
18950 | _ACEOF | |
18951 | cat confdefs.h >>conftest.$ac_ext | |
18952 | cat >>conftest.$ac_ext <<_ACEOF | |
18953 | /* end confdefs.h. */ | |
18954 | $ac_includes_default | |
18955 | int | |
18956 | main () | |
18957 | { | |
18958 | if ((long long *) 0) | |
18959 | return 0; | |
18960 | if (sizeof (long long)) | |
18961 | return 0; | |
18962 | ; | |
18963 | return 0; | |
18964 | } | |
18965 | _ACEOF | |
18966 | rm -f conftest.$ac_objext | |
18967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18968 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18969 | ac_status=$? |
ac1cb8d3 VS |
18970 | grep -v '^ *+' conftest.er1 >conftest.err |
18971 | rm -f conftest.er1 | |
18972 | cat conftest.err >&5 | |
a848cd7e SC |
18973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18974 | (exit $ac_status); } && | |
6ebeb4c7 | 18975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18977 | (eval $ac_try) 2>&5 | |
18978 | ac_status=$? | |
18979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18980 | (exit $ac_status); }; } && | |
18981 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18983 | (eval $ac_try) 2>&5 | |
18984 | ac_status=$? | |
18985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18986 | (exit $ac_status); }; }; then | |
18987 | ac_cv_type_long_long=yes | |
18988 | else | |
18989 | echo "$as_me: failed program was:" >&5 | |
18990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18991 | ||
18992 | ac_cv_type_long_long=no | |
18993 | fi | |
ac1cb8d3 | 18994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18995 | fi |
18996 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18997 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18998 | ||
18999 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19000 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19001 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19003 | else | |
19004 | if test "$ac_cv_type_long_long" = yes; then | |
19005 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19006 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19007 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19008 | # This bug is HP SR number 8606223364. | |
19009 | if test "$cross_compiling" = yes; then | |
19010 | # Depending upon the size, compute the lo and hi bounds. | |
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))) >= 0)]; | |
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_lo=0 ac_mid=0 | |
19050 | while :; do | |
19051 | cat >conftest.$ac_ext <<_ACEOF | |
19052 | /* confdefs.h. */ | |
19053 | _ACEOF | |
19054 | cat confdefs.h >>conftest.$ac_ext | |
19055 | cat >>conftest.$ac_ext <<_ACEOF | |
19056 | /* end confdefs.h. */ | |
19057 | $ac_includes_default | |
19058 | int | |
19059 | main () | |
19060 | { | |
19061 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19062 | test_array [0] = 0 | |
19063 | ||
19064 | ; | |
19065 | return 0; | |
19066 | } | |
19067 | _ACEOF | |
19068 | rm -f conftest.$ac_objext | |
19069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19070 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19071 | ac_status=$? |
ac1cb8d3 VS |
19072 | grep -v '^ *+' conftest.er1 >conftest.err |
19073 | rm -f conftest.er1 | |
19074 | cat conftest.err >&5 | |
a848cd7e SC |
19075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19076 | (exit $ac_status); } && | |
6ebeb4c7 | 19077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19079 | (eval $ac_try) 2>&5 | |
19080 | ac_status=$? | |
19081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19082 | (exit $ac_status); }; } && | |
19083 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19085 | (eval $ac_try) 2>&5 | |
19086 | ac_status=$? | |
19087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19088 | (exit $ac_status); }; }; then | |
19089 | ac_hi=$ac_mid; break | |
19090 | else | |
19091 | echo "$as_me: failed program was:" >&5 | |
19092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19093 | ||
19094 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19095 | if test $ac_lo -le $ac_mid; then |
19096 | ac_lo= ac_hi= | |
19097 | break | |
19098 | fi | |
19099 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19100 | fi |
ac1cb8d3 | 19101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19102 | done |
19103 | else | |
19104 | echo "$as_me: failed program was:" >&5 | |
19105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19106 | ||
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))) < 0)]; | |
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_hi=-1 ac_mid=-1 | |
19146 | while :; do | |
19147 | cat >conftest.$ac_ext <<_ACEOF | |
19148 | /* confdefs.h. */ | |
19149 | _ACEOF | |
19150 | cat confdefs.h >>conftest.$ac_ext | |
19151 | cat >>conftest.$ac_ext <<_ACEOF | |
19152 | /* end confdefs.h. */ | |
19153 | $ac_includes_default | |
19154 | int | |
19155 | main () | |
19156 | { | |
19157 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19158 | test_array [0] = 0 | |
19159 | ||
19160 | ; | |
19161 | return 0; | |
19162 | } | |
19163 | _ACEOF | |
19164 | rm -f conftest.$ac_objext | |
19165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19166 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19167 | ac_status=$? |
ac1cb8d3 VS |
19168 | grep -v '^ *+' conftest.er1 >conftest.err |
19169 | rm -f conftest.er1 | |
19170 | cat conftest.err >&5 | |
a848cd7e SC |
19171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19172 | (exit $ac_status); } && | |
6ebeb4c7 | 19173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19175 | (eval $ac_try) 2>&5 | |
19176 | ac_status=$? | |
19177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19178 | (exit $ac_status); }; } && | |
19179 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19181 | (eval $ac_try) 2>&5 | |
19182 | ac_status=$? | |
19183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19184 | (exit $ac_status); }; }; then | |
19185 | ac_lo=$ac_mid; break | |
19186 | else | |
19187 | echo "$as_me: failed program was:" >&5 | |
19188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19189 | ||
19190 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19191 | if test $ac_mid -le $ac_hi; then |
19192 | ac_lo= ac_hi= | |
19193 | break | |
19194 | fi | |
19195 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19196 | fi |
ac1cb8d3 | 19197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19198 | done |
19199 | else | |
19200 | echo "$as_me: failed program was:" >&5 | |
19201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19202 | ||
19203 | ac_lo= ac_hi= | |
19204 | fi | |
ac1cb8d3 | 19205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19206 | fi |
ac1cb8d3 | 19207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19208 | # Binary search between lo and hi bounds. |
19209 | while test "x$ac_lo" != "x$ac_hi"; do | |
19210 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19211 | cat >conftest.$ac_ext <<_ACEOF | |
19212 | /* confdefs.h. */ | |
19213 | _ACEOF | |
19214 | cat confdefs.h >>conftest.$ac_ext | |
19215 | cat >>conftest.$ac_ext <<_ACEOF | |
19216 | /* end confdefs.h. */ | |
19217 | $ac_includes_default | |
19218 | int | |
19219 | main () | |
19220 | { | |
19221 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19222 | test_array [0] = 0 | |
19223 | ||
19224 | ; | |
19225 | return 0; | |
19226 | } | |
19227 | _ACEOF | |
19228 | rm -f conftest.$ac_objext | |
19229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19230 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19231 | ac_status=$? |
ac1cb8d3 VS |
19232 | grep -v '^ *+' conftest.er1 >conftest.err |
19233 | rm -f conftest.er1 | |
19234 | cat conftest.err >&5 | |
a848cd7e SC |
19235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19236 | (exit $ac_status); } && | |
6ebeb4c7 | 19237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19239 | (eval $ac_try) 2>&5 | |
19240 | ac_status=$? | |
19241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19242 | (exit $ac_status); }; } && | |
19243 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19245 | (eval $ac_try) 2>&5 | |
19246 | ac_status=$? | |
19247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19248 | (exit $ac_status); }; }; then | |
19249 | ac_hi=$ac_mid | |
19250 | else | |
19251 | echo "$as_me: failed program was:" >&5 | |
19252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19253 | ||
19254 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19255 | fi | |
ac1cb8d3 | 19256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19257 | done |
19258 | case $ac_lo in | |
19259 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19260 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19261 | See \`config.log' for more details." >&5 | |
19262 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19263 | See \`config.log' for more details." >&2;} | |
19264 | { (exit 1); exit 1; }; } ;; | |
19265 | esac | |
19266 | else | |
19267 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
19268 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19269 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19270 | { (exit 1); exit 1; }; } |
19271 | else | |
19272 | cat >conftest.$ac_ext <<_ACEOF | |
19273 | /* confdefs.h. */ | |
19274 | _ACEOF | |
19275 | cat confdefs.h >>conftest.$ac_ext | |
19276 | cat >>conftest.$ac_ext <<_ACEOF | |
19277 | /* end confdefs.h. */ | |
19278 | $ac_includes_default | |
19279 | long longval () { return (long) (sizeof (long long)); } | |
19280 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19281 | #include <stdio.h> | |
19282 | #include <stdlib.h> | |
19283 | int | |
19284 | main () | |
19285 | { | |
19286 | ||
19287 | FILE *f = fopen ("conftest.val", "w"); | |
19288 | if (! f) | |
19289 | exit (1); | |
19290 | if (((long) (sizeof (long long))) < 0) | |
19291 | { | |
19292 | long i = longval (); | |
19293 | if (i != ((long) (sizeof (long long)))) | |
19294 | exit (1); | |
19295 | fprintf (f, "%ld\n", i); | |
19296 | } | |
19297 | else | |
19298 | { | |
19299 | unsigned long i = ulongval (); | |
19300 | if (i != ((long) (sizeof (long long)))) | |
19301 | exit (1); | |
19302 | fprintf (f, "%lu\n", i); | |
19303 | } | |
19304 | exit (ferror (f) || fclose (f) != 0); | |
19305 | ||
19306 | ; | |
19307 | return 0; | |
19308 | } | |
19309 | _ACEOF | |
19310 | rm -f conftest$ac_exeext | |
19311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19312 | (eval $ac_link) 2>&5 | |
19313 | ac_status=$? | |
19314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19315 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19317 | (eval $ac_try) 2>&5 | |
19318 | ac_status=$? | |
19319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19320 | (exit $ac_status); }; }; then | |
19321 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19322 | else | |
19323 | echo "$as_me: program exited with status $ac_status" >&5 | |
19324 | echo "$as_me: failed program was:" >&5 | |
19325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19326 | ||
19327 | ( exit $ac_status ) | |
19328 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19329 | See \`config.log' for more details." >&5 | |
19330 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19331 | See \`config.log' for more details." >&2;} | |
19332 | { (exit 1); exit 1; }; } | |
19333 | fi | |
ac1cb8d3 | 19334 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19335 | fi |
19336 | fi | |
19337 | rm -f conftest.val | |
19338 | else | |
19339 | ac_cv_sizeof_long_long=0 | |
19340 | fi | |
19341 | fi | |
19342 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19343 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19344 | cat >>confdefs.h <<_ACEOF | |
19345 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19346 | _ACEOF | |
19347 | ||
19348 | ||
19349 | esac | |
19350 | ||
238ecede MW |
19351 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
19352 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
19353 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
19354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19355 | else | |
19356 | cat >conftest.$ac_ext <<_ACEOF | |
19357 | /* confdefs.h. */ | |
19358 | _ACEOF | |
19359 | cat confdefs.h >>conftest.$ac_ext | |
19360 | cat >>conftest.$ac_ext <<_ACEOF | |
19361 | /* end confdefs.h. */ | |
19362 | ||
83d8eb47 MW |
19363 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19364 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19365 | # error "fake wchar_t" |
19366 | #endif | |
19367 | #ifdef HAVE_WCHAR_H | |
19368 | # ifdef __CYGWIN__ | |
19369 | # include <stddef.h> | |
19370 | # endif | |
19371 | # include <wchar.h> | |
19372 | #endif | |
19373 | #ifdef HAVE_STDLIB_H | |
19374 | # include <stdlib.h> | |
19375 | #endif | |
19376 | #include <stdio.h> | |
19377 | ||
19378 | ||
19379 | ||
19380 | int | |
19381 | main () | |
19382 | { | |
19383 | if ((wchar_t *) 0) | |
19384 | return 0; | |
19385 | if (sizeof (wchar_t)) | |
19386 | return 0; | |
19387 | ; | |
19388 | return 0; | |
19389 | } | |
19390 | _ACEOF | |
19391 | rm -f conftest.$ac_objext | |
19392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19393 | (eval $ac_compile) 2>conftest.er1 | |
19394 | ac_status=$? | |
19395 | grep -v '^ *+' conftest.er1 >conftest.err | |
19396 | rm -f conftest.er1 | |
19397 | cat conftest.err >&5 | |
19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19399 | (exit $ac_status); } && | |
6ebeb4c7 | 19400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19402 | (eval $ac_try) 2>&5 | |
19403 | ac_status=$? | |
19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19405 | (exit $ac_status); }; } && | |
19406 | { ac_try='test -s conftest.$ac_objext' | |
19407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19408 | (eval $ac_try) 2>&5 | |
19409 | ac_status=$? | |
19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19411 | (exit $ac_status); }; }; then | |
19412 | ac_cv_type_wchar_t=yes | |
19413 | else | |
19414 | echo "$as_me: failed program was:" >&5 | |
19415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19416 | ||
19417 | ac_cv_type_wchar_t=no | |
19418 | fi | |
19419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19420 | fi | |
19421 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
19422 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
19423 | ||
a848cd7e SC |
19424 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
19425 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 19426 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
19427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19428 | else | |
238ecede MW |
19429 | if test "$ac_cv_type_wchar_t" = yes; then |
19430 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19431 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19432 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19433 | # This bug is HP SR number 8606223364. | |
19434 | if test "$cross_compiling" = yes; then | |
19435 | # Depending upon the size, compute the lo and hi bounds. | |
19436 | cat >conftest.$ac_ext <<_ACEOF | |
19437 | /* confdefs.h. */ | |
19438 | _ACEOF | |
19439 | cat confdefs.h >>conftest.$ac_ext | |
19440 | cat >>conftest.$ac_ext <<_ACEOF | |
19441 | /* end confdefs.h. */ | |
19442 | ||
83d8eb47 MW |
19443 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19444 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19445 | # error "fake wchar_t" |
19446 | #endif | |
19447 | #ifdef HAVE_WCHAR_H | |
19448 | # ifdef __CYGWIN__ | |
19449 | # include <stddef.h> | |
19450 | # endif | |
19451 | # include <wchar.h> | |
19452 | #endif | |
19453 | #ifdef HAVE_STDLIB_H | |
19454 | # include <stdlib.h> | |
19455 | #endif | |
19456 | #include <stdio.h> | |
19457 | ||
19458 | ||
19459 | ||
19460 | int | |
19461 | main () | |
19462 | { | |
19463 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
19464 | test_array [0] = 0 | |
19465 | ||
19466 | ; | |
19467 | return 0; | |
19468 | } | |
19469 | _ACEOF | |
19470 | rm -f conftest.$ac_objext | |
19471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19472 | (eval $ac_compile) 2>conftest.er1 | |
19473 | ac_status=$? | |
19474 | grep -v '^ *+' conftest.er1 >conftest.err | |
19475 | rm -f conftest.er1 | |
19476 | cat conftest.err >&5 | |
19477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19478 | (exit $ac_status); } && | |
6ebeb4c7 | 19479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19481 | (eval $ac_try) 2>&5 | |
19482 | ac_status=$? | |
19483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19484 | (exit $ac_status); }; } && | |
19485 | { ac_try='test -s conftest.$ac_objext' | |
19486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19487 | (eval $ac_try) 2>&5 | |
19488 | ac_status=$? | |
19489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19490 | (exit $ac_status); }; }; then | |
19491 | ac_lo=0 ac_mid=0 | |
19492 | while :; do | |
19493 | cat >conftest.$ac_ext <<_ACEOF | |
19494 | /* confdefs.h. */ | |
19495 | _ACEOF | |
19496 | cat confdefs.h >>conftest.$ac_ext | |
19497 | cat >>conftest.$ac_ext <<_ACEOF | |
19498 | /* end confdefs.h. */ | |
19499 | ||
83d8eb47 MW |
19500 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19501 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19502 | # error "fake wchar_t" |
19503 | #endif | |
19504 | #ifdef HAVE_WCHAR_H | |
19505 | # ifdef __CYGWIN__ | |
19506 | # include <stddef.h> | |
19507 | # endif | |
19508 | # include <wchar.h> | |
19509 | #endif | |
19510 | #ifdef HAVE_STDLIB_H | |
19511 | # include <stdlib.h> | |
19512 | #endif | |
19513 | #include <stdio.h> | |
19514 | ||
19515 | ||
19516 | ||
19517 | int | |
19518 | main () | |
19519 | { | |
19520 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19521 | test_array [0] = 0 | |
19522 | ||
19523 | ; | |
19524 | return 0; | |
19525 | } | |
19526 | _ACEOF | |
19527 | rm -f conftest.$ac_objext | |
19528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19529 | (eval $ac_compile) 2>conftest.er1 | |
19530 | ac_status=$? | |
19531 | grep -v '^ *+' conftest.er1 >conftest.err | |
19532 | rm -f conftest.er1 | |
19533 | cat conftest.err >&5 | |
19534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19535 | (exit $ac_status); } && | |
6ebeb4c7 | 19536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19538 | (eval $ac_try) 2>&5 | |
19539 | ac_status=$? | |
19540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19541 | (exit $ac_status); }; } && | |
19542 | { ac_try='test -s conftest.$ac_objext' | |
19543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19544 | (eval $ac_try) 2>&5 | |
19545 | ac_status=$? | |
19546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19547 | (exit $ac_status); }; }; then | |
19548 | ac_hi=$ac_mid; break | |
19549 | else | |
19550 | echo "$as_me: failed program was:" >&5 | |
19551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19552 | ||
19553 | ac_lo=`expr $ac_mid + 1` | |
19554 | if test $ac_lo -le $ac_mid; then | |
19555 | ac_lo= ac_hi= | |
19556 | break | |
19557 | fi | |
19558 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19559 | fi | |
19560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19561 | done | |
19562 | else | |
19563 | echo "$as_me: failed program was:" >&5 | |
19564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19565 | ||
19566 | cat >conftest.$ac_ext <<_ACEOF | |
19567 | /* confdefs.h. */ | |
19568 | _ACEOF | |
19569 | cat confdefs.h >>conftest.$ac_ext | |
19570 | cat >>conftest.$ac_ext <<_ACEOF | |
19571 | /* end confdefs.h. */ | |
19572 | ||
83d8eb47 MW |
19573 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19574 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19575 | # error "fake wchar_t" |
19576 | #endif | |
19577 | #ifdef HAVE_WCHAR_H | |
19578 | # ifdef __CYGWIN__ | |
19579 | # include <stddef.h> | |
19580 | # endif | |
19581 | # include <wchar.h> | |
19582 | #endif | |
19583 | #ifdef HAVE_STDLIB_H | |
19584 | # include <stdlib.h> | |
19585 | #endif | |
19586 | #include <stdio.h> | |
19587 | ||
19588 | ||
19589 | ||
19590 | int | |
19591 | main () | |
19592 | { | |
19593 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
19594 | test_array [0] = 0 | |
19595 | ||
19596 | ; | |
19597 | return 0; | |
19598 | } | |
19599 | _ACEOF | |
19600 | rm -f conftest.$ac_objext | |
19601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19602 | (eval $ac_compile) 2>conftest.er1 | |
19603 | ac_status=$? | |
19604 | grep -v '^ *+' conftest.er1 >conftest.err | |
19605 | rm -f conftest.er1 | |
19606 | cat conftest.err >&5 | |
19607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19608 | (exit $ac_status); } && | |
6ebeb4c7 | 19609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19611 | (eval $ac_try) 2>&5 | |
19612 | ac_status=$? | |
19613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19614 | (exit $ac_status); }; } && | |
19615 | { ac_try='test -s conftest.$ac_objext' | |
19616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19617 | (eval $ac_try) 2>&5 | |
19618 | ac_status=$? | |
19619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19620 | (exit $ac_status); }; }; then | |
19621 | ac_hi=-1 ac_mid=-1 | |
19622 | while :; do | |
19623 | cat >conftest.$ac_ext <<_ACEOF | |
19624 | /* confdefs.h. */ | |
19625 | _ACEOF | |
19626 | cat confdefs.h >>conftest.$ac_ext | |
19627 | cat >>conftest.$ac_ext <<_ACEOF | |
19628 | /* end confdefs.h. */ | |
19629 | ||
83d8eb47 MW |
19630 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19631 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19632 | # error "fake wchar_t" |
19633 | #endif | |
19634 | #ifdef HAVE_WCHAR_H | |
19635 | # ifdef __CYGWIN__ | |
19636 | # include <stddef.h> | |
19637 | # endif | |
19638 | # include <wchar.h> | |
19639 | #endif | |
19640 | #ifdef HAVE_STDLIB_H | |
19641 | # include <stdlib.h> | |
19642 | #endif | |
19643 | #include <stdio.h> | |
19644 | ||
19645 | ||
19646 | ||
19647 | int | |
19648 | main () | |
19649 | { | |
19650 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
19651 | test_array [0] = 0 | |
19652 | ||
19653 | ; | |
19654 | return 0; | |
19655 | } | |
19656 | _ACEOF | |
19657 | rm -f conftest.$ac_objext | |
19658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19659 | (eval $ac_compile) 2>conftest.er1 | |
19660 | ac_status=$? | |
19661 | grep -v '^ *+' conftest.er1 >conftest.err | |
19662 | rm -f conftest.er1 | |
19663 | cat conftest.err >&5 | |
19664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19665 | (exit $ac_status); } && | |
6ebeb4c7 | 19666 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19668 | (eval $ac_try) 2>&5 | |
19669 | ac_status=$? | |
19670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19671 | (exit $ac_status); }; } && | |
19672 | { ac_try='test -s conftest.$ac_objext' | |
19673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19674 | (eval $ac_try) 2>&5 | |
19675 | ac_status=$? | |
19676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19677 | (exit $ac_status); }; }; then | |
19678 | ac_lo=$ac_mid; break | |
19679 | else | |
19680 | echo "$as_me: failed program was:" >&5 | |
19681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19682 | ||
19683 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19684 | if test $ac_mid -le $ac_hi; then | |
19685 | ac_lo= ac_hi= | |
19686 | break | |
19687 | fi | |
19688 | ac_mid=`expr 2 '*' $ac_mid` | |
19689 | fi | |
19690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19691 | done | |
19692 | else | |
19693 | echo "$as_me: failed program was:" >&5 | |
19694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19695 | ||
19696 | ac_lo= ac_hi= | |
19697 | fi | |
19698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19699 | fi | |
19700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19701 | # Binary search between lo and hi bounds. | |
19702 | while test "x$ac_lo" != "x$ac_hi"; do | |
19703 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19704 | cat >conftest.$ac_ext <<_ACEOF | |
19705 | /* confdefs.h. */ | |
19706 | _ACEOF | |
19707 | cat confdefs.h >>conftest.$ac_ext | |
19708 | cat >>conftest.$ac_ext <<_ACEOF | |
19709 | /* end confdefs.h. */ | |
19710 | ||
83d8eb47 MW |
19711 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19712 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19713 | # error "fake wchar_t" |
19714 | #endif | |
19715 | #ifdef HAVE_WCHAR_H | |
19716 | # ifdef __CYGWIN__ | |
19717 | # include <stddef.h> | |
19718 | # endif | |
19719 | # include <wchar.h> | |
19720 | #endif | |
19721 | #ifdef HAVE_STDLIB_H | |
19722 | # include <stdlib.h> | |
19723 | #endif | |
19724 | #include <stdio.h> | |
a848cd7e | 19725 | |
a848cd7e | 19726 | |
a848cd7e | 19727 | |
238ecede MW |
19728 | int |
19729 | main () | |
19730 | { | |
19731 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19732 | test_array [0] = 0 | |
a848cd7e | 19733 | |
238ecede MW |
19734 | ; |
19735 | return 0; | |
19736 | } | |
19737 | _ACEOF | |
19738 | rm -f conftest.$ac_objext | |
19739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19740 | (eval $ac_compile) 2>conftest.er1 | |
19741 | ac_status=$? | |
19742 | grep -v '^ *+' conftest.er1 >conftest.err | |
19743 | rm -f conftest.er1 | |
19744 | cat conftest.err >&5 | |
19745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19746 | (exit $ac_status); } && | |
6ebeb4c7 | 19747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19749 | (eval $ac_try) 2>&5 | |
19750 | ac_status=$? | |
19751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19752 | (exit $ac_status); }; } && | |
19753 | { ac_try='test -s conftest.$ac_objext' | |
19754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19755 | (eval $ac_try) 2>&5 | |
19756 | ac_status=$? | |
19757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19758 | (exit $ac_status); }; }; then | |
19759 | ac_hi=$ac_mid | |
19760 | else | |
19761 | echo "$as_me: failed program was:" >&5 | |
19762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19763 | ||
19764 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19765 | fi | |
19766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19767 | done | |
19768 | case $ac_lo in | |
19769 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
19770 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
19771 | See \`config.log' for more details." >&5 | |
19772 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19773 | See \`config.log' for more details." >&2;} | |
19774 | { (exit 1); exit 1; }; } ;; | |
19775 | esac | |
19776 | else | |
19777 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
19778 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19779 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 19780 | { (exit 1); exit 1; }; } |
a848cd7e SC |
19781 | else |
19782 | cat >conftest.$ac_ext <<_ACEOF | |
19783 | /* confdefs.h. */ | |
19784 | _ACEOF | |
19785 | cat confdefs.h >>conftest.$ac_ext | |
19786 | cat >>conftest.$ac_ext <<_ACEOF | |
19787 | /* end confdefs.h. */ | |
19788 | ||
83d8eb47 MW |
19789 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19790 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19791 | # error "fake wchar_t" |
19792 | #endif | |
19793 | #ifdef HAVE_WCHAR_H | |
19794 | # ifdef __CYGWIN__ | |
19795 | # include <stddef.h> | |
19796 | # endif | |
19797 | # include <wchar.h> | |
19798 | #endif | |
19799 | #ifdef HAVE_STDLIB_H | |
19800 | # include <stdlib.h> | |
19801 | #endif | |
19802 | #include <stdio.h> | |
19803 | ||
19804 | ||
19805 | ||
19806 | long longval () { return (long) (sizeof (wchar_t)); } | |
19807 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
19808 | #include <stdio.h> | |
19809 | #include <stdlib.h> | |
19810 | int | |
19811 | main () | |
19812 | { | |
a848cd7e | 19813 | |
238ecede MW |
19814 | FILE *f = fopen ("conftest.val", "w"); |
19815 | if (! f) | |
19816 | exit (1); | |
19817 | if (((long) (sizeof (wchar_t))) < 0) | |
19818 | { | |
19819 | long i = longval (); | |
19820 | if (i != ((long) (sizeof (wchar_t)))) | |
19821 | exit (1); | |
19822 | fprintf (f, "%ld\n", i); | |
19823 | } | |
19824 | else | |
19825 | { | |
19826 | unsigned long i = ulongval (); | |
19827 | if (i != ((long) (sizeof (wchar_t)))) | |
19828 | exit (1); | |
19829 | fprintf (f, "%lu\n", i); | |
19830 | } | |
19831 | exit (ferror (f) || fclose (f) != 0); | |
19832 | ||
19833 | ; | |
19834 | return 0; | |
19835 | } | |
a848cd7e SC |
19836 | _ACEOF |
19837 | rm -f conftest$ac_exeext | |
19838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19839 | (eval $ac_link) 2>&5 | |
19840 | ac_status=$? | |
19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19844 | (eval $ac_try) 2>&5 | |
19845 | ac_status=$? | |
19846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19847 | (exit $ac_status); }; }; then | |
238ecede | 19848 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
19849 | else |
19850 | echo "$as_me: program exited with status $ac_status" >&5 | |
19851 | echo "$as_me: failed program was:" >&5 | |
19852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19853 | ||
19854 | ( exit $ac_status ) | |
238ecede MW |
19855 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
19856 | See \`config.log' for more details." >&5 | |
19857 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19858 | See \`config.log' for more details." >&2;} | |
19859 | { (exit 1); exit 1; }; } | |
a848cd7e | 19860 | fi |
ac1cb8d3 | 19861 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19862 | fi |
a848cd7e | 19863 | fi |
238ecede MW |
19864 | rm -f conftest.val |
19865 | else | |
19866 | ac_cv_sizeof_wchar_t=0 | |
19867 | fi | |
19868 | fi | |
19869 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
19870 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 19871 | cat >>confdefs.h <<_ACEOF |
238ecede | 19872 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
19873 | _ACEOF |
19874 | ||
19875 | ||
47a7e797 MW |
19876 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
19877 | wxUSE_WCHAR_T=yes | |
19878 | else | |
19879 | wxUSE_WCHAR_T=no | |
19880 | fi | |
238ecede | 19881 | |
ba3d13e1 VZ |
19882 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
19883 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
19884 | if test "${wx_cv_func_va_copy+set}" = set; then | |
19885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19886 | else | |
19887 | ||
19888 | cat >conftest.$ac_ext <<_ACEOF | |
19889 | ||
19890 | #include <stdarg.h> | |
19891 | void foo(char *f, ...) | |
19892 | { | |
19893 | va_list ap1, ap2; | |
19894 | va_start(ap1, f); | |
19895 | va_copy(ap2, ap1); | |
19896 | va_end(ap2); | |
19897 | va_end(ap1); | |
19898 | } | |
5886b072 VZ |
19899 | int main() |
19900 | { | |
b902e639 VZ |
19901 | foo("hi", 17); |
19902 | return 0; | |
5886b072 | 19903 | } |
ba3d13e1 VZ |
19904 | _ACEOF |
19905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19907 | (eval $ac_link) 2>conftest.er1 | |
19908 | ac_status=$? | |
19909 | grep -v '^ *+' conftest.er1 >conftest.err | |
19910 | rm -f conftest.er1 | |
19911 | cat conftest.err >&5 | |
19912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19913 | (exit $ac_status); } && | |
6ebeb4c7 | 19914 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
19915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19916 | (eval $ac_try) 2>&5 | |
19917 | ac_status=$? | |
19918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19919 | (exit $ac_status); }; } && | |
19920 | { ac_try='test -s conftest$ac_exeext' | |
19921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19922 | (eval $ac_try) 2>&5 | |
19923 | ac_status=$? | |
19924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19925 | (exit $ac_status); }; }; then | |
19926 | wx_cv_func_va_copy=yes | |
19927 | else | |
19928 | echo "$as_me: failed program was:" >&5 | |
19929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19930 | ||
19931 | wx_cv_func_va_copy=no | |
19932 | ||
19933 | fi | |
19934 | rm -f conftest.err conftest.$ac_objext \ | |
19935 | conftest$ac_exeext conftest.$ac_ext | |
19936 | ||
19937 | ||
19938 | fi | |
19939 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
19940 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
19941 | ||
19942 | if test $wx_cv_func_va_copy = "yes"; then | |
19943 | cat >>confdefs.h <<\_ACEOF | |
19944 | #define HAVE_VA_COPY 1 | |
19945 | _ACEOF | |
19946 | ||
19947 | else | |
19948 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
19949 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
19950 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
19951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19952 | else | |
19953 | ||
19954 | if test "$cross_compiling" = yes; then | |
19955 | wx_cv_type_va_list_lvalue=yes | |
19956 | ||
19957 | else | |
19958 | cat >conftest.$ac_ext <<_ACEOF | |
19959 | ||
19960 | #include <stdarg.h> | |
19961 | int foo(char *f, ...) | |
19962 | { | |
19963 | va_list ap1, ap2; | |
19964 | va_start(ap1, f); | |
19965 | ap2 = ap1; | |
19966 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
19967 | return 1; | |
19968 | va_end(ap2); | |
19969 | va_end(ap1); | |
19970 | return 0; | |
19971 | } | |
19972 | int main() | |
19973 | { | |
19974 | return foo("hi", 17); | |
19975 | } | |
19976 | _ACEOF | |
19977 | rm -f conftest$ac_exeext | |
19978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19979 | (eval $ac_link) 2>&5 | |
19980 | ac_status=$? | |
19981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19984 | (eval $ac_try) 2>&5 | |
19985 | ac_status=$? | |
19986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19987 | (exit $ac_status); }; }; then | |
19988 | wx_cv_type_va_list_lvalue=yes | |
19989 | else | |
19990 | echo "$as_me: program exited with status $ac_status" >&5 | |
19991 | echo "$as_me: failed program was:" >&5 | |
19992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19993 | ||
19994 | ( exit $ac_status ) | |
19995 | wx_cv_type_va_list_lvalue=no | |
19996 | fi | |
19997 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19998 | fi | |
19999 | ||
20000 | ||
20001 | fi | |
20002 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
20003 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
20004 | ||
20005 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
20006 | cat >>confdefs.h <<\_ACEOF | |
20007 | #define VA_LIST_IS_ARRAY 1 | |
20008 | _ACEOF | |
20009 | ||
20010 | fi | |
20011 | fi | |
20012 | ||
a848cd7e SC |
20013 | # Check whether --enable-largefile or --disable-largefile was given. |
20014 | if test "${enable_largefile+set}" = set; then | |
20015 | enableval="$enable_largefile" | |
20016 | ||
20017 | fi; | |
20018 | if test "$enable_largefile" != no; then | |
20019 | wx_largefile=no | |
20020 | ||
20021 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
20022 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
20023 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
20024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20025 | else | |
20026 | ||
20027 | cat >conftest.$ac_ext <<_ACEOF | |
20028 | /* confdefs.h. */ | |
20029 | _ACEOF | |
20030 | cat confdefs.h >>conftest.$ac_ext | |
20031 | cat >>conftest.$ac_ext <<_ACEOF | |
20032 | /* end confdefs.h. */ | |
20033 | #define _FILE_OFFSET_BITS 64 | |
20034 | #include <sys/types.h> | |
20035 | int | |
20036 | main () | |
20037 | { | |
20038 | typedef struct { | |
20039 | unsigned int field: sizeof(off_t) == 8; | |
20040 | } wxlf; | |
20041 | ||
20042 | ; | |
20043 | return 0; | |
20044 | } | |
20045 | _ACEOF | |
20046 | rm -f conftest.$ac_objext | |
20047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20048 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20049 | ac_status=$? |
ac1cb8d3 VS |
20050 | grep -v '^ *+' conftest.er1 >conftest.err |
20051 | rm -f conftest.er1 | |
20052 | cat conftest.err >&5 | |
a848cd7e SC |
20053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20054 | (exit $ac_status); } && | |
6ebeb4c7 | 20055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20057 | (eval $ac_try) 2>&5 | |
20058 | ac_status=$? | |
20059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20060 | (exit $ac_status); }; } && | |
20061 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20063 | (eval $ac_try) 2>&5 | |
20064 | ac_status=$? | |
20065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20066 | (exit $ac_status); }; }; then | |
20067 | ac_cv_sys_file_offset_bits=64 | |
20068 | else | |
20069 | echo "$as_me: failed program was:" >&5 | |
20070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20071 | ||
20072 | ac_cv_sys_file_offset_bits=no | |
20073 | fi | |
ac1cb8d3 | 20074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20075 | |
20076 | ||
20077 | fi | |
20078 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
20079 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
20080 | ||
20081 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
20082 | wx_largefile=yes | |
20083 | cat >>confdefs.h <<_ACEOF | |
20084 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
20085 | _ACEOF | |
20086 | ||
20087 | fi | |
20088 | ||
20089 | if test "x$wx_largefile" != "xyes"; then | |
20090 | ||
20091 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
20092 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
20093 | if test "${ac_cv_sys_large_files+set}" = set; then | |
20094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20095 | else | |
20096 | ||
20097 | cat >conftest.$ac_ext <<_ACEOF | |
20098 | /* confdefs.h. */ | |
20099 | _ACEOF | |
20100 | cat confdefs.h >>conftest.$ac_ext | |
20101 | cat >>conftest.$ac_ext <<_ACEOF | |
20102 | /* end confdefs.h. */ | |
20103 | #define _LARGE_FILES 1 | |
20104 | #include <sys/types.h> | |
20105 | int | |
20106 | main () | |
20107 | { | |
20108 | typedef struct { | |
20109 | unsigned int field: sizeof(off_t) == 8; | |
20110 | } wxlf; | |
20111 | ||
20112 | ; | |
20113 | return 0; | |
20114 | } | |
20115 | _ACEOF | |
20116 | rm -f conftest.$ac_objext | |
20117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20118 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20119 | ac_status=$? |
ac1cb8d3 VS |
20120 | grep -v '^ *+' conftest.er1 >conftest.err |
20121 | rm -f conftest.er1 | |
20122 | cat conftest.err >&5 | |
a848cd7e SC |
20123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20124 | (exit $ac_status); } && | |
6ebeb4c7 | 20125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20127 | (eval $ac_try) 2>&5 | |
20128 | ac_status=$? | |
20129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20130 | (exit $ac_status); }; } && | |
20131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20133 | (eval $ac_try) 2>&5 | |
20134 | ac_status=$? | |
20135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20136 | (exit $ac_status); }; }; then | |
20137 | ac_cv_sys_large_files=1 | |
20138 | else | |
20139 | echo "$as_me: failed program was:" >&5 | |
20140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20141 | ||
20142 | ac_cv_sys_large_files=no | |
20143 | fi | |
ac1cb8d3 | 20144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20145 | |
20146 | ||
20147 | fi | |
20148 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
20149 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
20150 | ||
20151 | if test "$ac_cv_sys_large_files" != no; then | |
20152 | wx_largefile=yes | |
20153 | cat >>confdefs.h <<_ACEOF | |
20154 | #define _LARGE_FILES $ac_cv_sys_large_files | |
20155 | _ACEOF | |
20156 | ||
20157 | fi | |
20158 | ||
20159 | fi | |
20160 | ||
20161 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
20162 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
20163 | if test "x$wx_largefile" = "xyes"; then | |
20164 | cat >>confdefs.h <<\_ACEOF | |
20165 | #define HAVE_LARGEFILE_SUPPORT 1 | |
20166 | _ACEOF | |
20167 | ||
20168 | fi | |
20169 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
20170 | echo "${ECHO_T}$wx_largefile" >&6 | |
20171 | fi | |
20172 | ||
5b674b9d DE |
20173 | |
20174 | if test "x$wx_largefile" = "xyes"; then | |
20175 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
20176 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
00421666 MW |
20177 | |
20178 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
20179 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
20180 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
20181 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
20182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20183 | else | |
20184 | ||
20185 | ||
20186 | ||
20187 | ac_ext=cc | |
20188 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20189 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20190 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20191 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20192 | ||
20193 | cat >conftest.$ac_ext <<_ACEOF | |
20194 | /* confdefs.h. */ | |
20195 | _ACEOF | |
20196 | cat confdefs.h >>conftest.$ac_ext | |
20197 | cat >>conftest.$ac_ext <<_ACEOF | |
20198 | /* end confdefs.h. */ | |
20199 | ||
20200 | int | |
20201 | main () | |
20202 | { | |
20203 | ||
20204 | #ifndef __STDC_EXT__ | |
20205 | choke me | |
20206 | #endif | |
20207 | ||
20208 | ; | |
20209 | return 0; | |
20210 | } | |
20211 | _ACEOF | |
20212 | rm -f conftest.$ac_objext | |
20213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20214 | (eval $ac_compile) 2>conftest.er1 | |
20215 | ac_status=$? | |
20216 | grep -v '^ *+' conftest.er1 >conftest.err | |
20217 | rm -f conftest.er1 | |
20218 | cat conftest.err >&5 | |
20219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20220 | (exit $ac_status); } && | |
20221 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
20222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20223 | (eval $ac_try) 2>&5 | |
20224 | ac_status=$? | |
20225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20226 | (exit $ac_status); }; } && | |
20227 | { ac_try='test -s conftest.$ac_objext' | |
20228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20229 | (eval $ac_try) 2>&5 | |
20230 | ac_status=$? | |
20231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20232 | (exit $ac_status); }; }; then | |
20233 | wx_cv_STDC_EXT_required=no | |
20234 | else | |
20235 | echo "$as_me: failed program was:" >&5 | |
20236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20237 | ||
20238 | wx_cv_STDC_EXT_required=yes | |
20239 | ||
20240 | fi | |
20241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20242 | ac_ext=c | |
20243 | ac_cpp='$CPP $CPPFLAGS' | |
20244 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20245 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20246 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20247 | ||
20248 | ||
20249 | ||
20250 | fi | |
20251 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
20252 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
20253 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
20254 | CXXFLAGS="$CXXFLAGS -D__STDC_EXT__" | |
20255 | fi | |
20256 | fi | |
5b674b9d DE |
20257 | else |
20258 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
20259 | fi | |
20260 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
20261 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
20262 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
20263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20264 | else | |
20265 | while :; do | |
20266 | ac_cv_sys_largefile_source=no | |
20267 | cat >conftest.$ac_ext <<_ACEOF | |
20268 | /* confdefs.h. */ | |
20269 | _ACEOF | |
20270 | cat confdefs.h >>conftest.$ac_ext | |
20271 | cat >>conftest.$ac_ext <<_ACEOF | |
20272 | /* end confdefs.h. */ | |
20273 | #include <stdio.h> | |
20274 | int | |
20275 | main () | |
20276 | { | |
20277 | return !fseeko; | |
20278 | ; | |
20279 | return 0; | |
20280 | } | |
20281 | _ACEOF | |
20282 | rm -f conftest.$ac_objext | |
20283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20284 | (eval $ac_compile) 2>conftest.er1 | |
20285 | ac_status=$? | |
20286 | grep -v '^ *+' conftest.er1 >conftest.err | |
20287 | rm -f conftest.er1 | |
20288 | cat conftest.err >&5 | |
20289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20290 | (exit $ac_status); } && | |
6ebeb4c7 | 20291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
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); }; } && | |
20297 | { ac_try='test -s conftest.$ac_objext' | |
20298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20299 | (eval $ac_try) 2>&5 | |
20300 | ac_status=$? | |
20301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20302 | (exit $ac_status); }; }; then | |
20303 | break | |
20304 | else | |
20305 | echo "$as_me: failed program was:" >&5 | |
20306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20307 | ||
20308 | fi | |
20309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20310 | cat >conftest.$ac_ext <<_ACEOF | |
20311 | /* confdefs.h. */ | |
20312 | _ACEOF | |
20313 | cat confdefs.h >>conftest.$ac_ext | |
20314 | cat >>conftest.$ac_ext <<_ACEOF | |
20315 | /* end confdefs.h. */ | |
20316 | #define _LARGEFILE_SOURCE 1 | |
20317 | #include <stdio.h> | |
20318 | int | |
20319 | main () | |
20320 | { | |
20321 | return !fseeko; | |
20322 | ; | |
20323 | return 0; | |
20324 | } | |
20325 | _ACEOF | |
20326 | rm -f conftest.$ac_objext | |
20327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20328 | (eval $ac_compile) 2>conftest.er1 | |
20329 | ac_status=$? | |
20330 | grep -v '^ *+' conftest.er1 >conftest.err | |
20331 | rm -f conftest.er1 | |
20332 | cat conftest.err >&5 | |
20333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20334 | (exit $ac_status); } && | |
6ebeb4c7 | 20335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20337 | (eval $ac_try) 2>&5 | |
20338 | ac_status=$? | |
20339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20340 | (exit $ac_status); }; } && | |
20341 | { ac_try='test -s conftest.$ac_objext' | |
20342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20343 | (eval $ac_try) 2>&5 | |
20344 | ac_status=$? | |
20345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20346 | (exit $ac_status); }; }; then | |
20347 | ac_cv_sys_largefile_source=1; break | |
20348 | else | |
20349 | echo "$as_me: failed program was:" >&5 | |
20350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20351 | ||
20352 | fi | |
20353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20354 | break | |
20355 | done | |
20356 | fi | |
20357 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
20358 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
20359 | if test "$ac_cv_sys_largefile_source" != no; then | |
20360 | ||
20361 | cat >>confdefs.h <<_ACEOF | |
20362 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20363 | _ACEOF | |
20364 | ||
20365 | fi | |
20366 | rm -f conftest* | |
20367 | ||
20368 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
20369 | # in glibc 2.1.3, but that breaks too many other things. | |
20370 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
20371 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
20372 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
20373 | if test "${ac_cv_func_fseeko+set}" = set; then | |
20374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20375 | else | |
20376 | cat >conftest.$ac_ext <<_ACEOF | |
20377 | /* confdefs.h. */ | |
20378 | _ACEOF | |
20379 | cat confdefs.h >>conftest.$ac_ext | |
20380 | cat >>conftest.$ac_ext <<_ACEOF | |
20381 | /* end confdefs.h. */ | |
20382 | #include <stdio.h> | |
20383 | int | |
20384 | main () | |
20385 | { | |
20386 | return fseeko && fseeko (stdin, 0, 0); | |
20387 | ; | |
20388 | return 0; | |
20389 | } | |
20390 | _ACEOF | |
20391 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20393 | (eval $ac_link) 2>conftest.er1 | |
20394 | ac_status=$? | |
20395 | grep -v '^ *+' conftest.er1 >conftest.err | |
20396 | rm -f conftest.er1 | |
20397 | cat conftest.err >&5 | |
20398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20399 | (exit $ac_status); } && | |
6ebeb4c7 | 20400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20402 | (eval $ac_try) 2>&5 | |
20403 | ac_status=$? | |
20404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20405 | (exit $ac_status); }; } && | |
20406 | { ac_try='test -s conftest$ac_exeext' | |
20407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20408 | (eval $ac_try) 2>&5 | |
20409 | ac_status=$? | |
20410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20411 | (exit $ac_status); }; }; then | |
20412 | ac_cv_func_fseeko=yes | |
20413 | else | |
20414 | echo "$as_me: failed program was:" >&5 | |
20415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20416 | ||
20417 | ac_cv_func_fseeko=no | |
20418 | fi | |
20419 | rm -f conftest.err conftest.$ac_objext \ | |
20420 | conftest$ac_exeext conftest.$ac_ext | |
20421 | fi | |
20422 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
20423 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
20424 | if test $ac_cv_func_fseeko = yes; then | |
20425 | ||
20426 | cat >>confdefs.h <<\_ACEOF | |
20427 | #define HAVE_FSEEKO 1 | |
20428 | _ACEOF | |
20429 | ||
20430 | fi | |
20431 | ||
5b674b9d DE |
20432 | if test "$ac_cv_sys_largefile_source" != no; then |
20433 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
20434 | fi |
20435 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
20436 | fi | |
20437 | ||
20438 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
20439 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
20440 | if test "${ac_cv_c_bigendian+set}" = set; then | |
20441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20442 | else | |
20443 | ac_cv_c_bigendian=unknown | |
20444 | # See if sys/param.h defines the BYTE_ORDER macro. | |
20445 | cat >conftest.$ac_ext <<_ACEOF | |
20446 | /* confdefs.h. */ | |
20447 | _ACEOF | |
20448 | cat confdefs.h >>conftest.$ac_ext | |
20449 | cat >>conftest.$ac_ext <<_ACEOF | |
20450 | /* end confdefs.h. */ | |
20451 | #include <sys/types.h> | |
20452 | #include <sys/param.h> | |
20453 | int | |
20454 | main () | |
20455 | { | |
20456 | ||
20457 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20458 | bogus endian macros | |
20459 | #endif | |
20460 | ; | |
20461 | return 0; | |
20462 | } | |
20463 | _ACEOF | |
20464 | rm -f conftest.$ac_objext | |
20465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20466 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20467 | ac_status=$? |
ac1cb8d3 VS |
20468 | grep -v '^ *+' conftest.er1 >conftest.err |
20469 | rm -f conftest.er1 | |
20470 | cat conftest.err >&5 | |
a848cd7e SC |
20471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20472 | (exit $ac_status); } && | |
6ebeb4c7 | 20473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20475 | (eval $ac_try) 2>&5 | |
20476 | ac_status=$? | |
20477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20478 | (exit $ac_status); }; } && | |
20479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20481 | (eval $ac_try) 2>&5 | |
20482 | ac_status=$? | |
20483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20484 | (exit $ac_status); }; }; then | |
20485 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
20486 | cat >conftest.$ac_ext <<_ACEOF | |
20487 | /* confdefs.h. */ | |
20488 | _ACEOF | |
20489 | cat confdefs.h >>conftest.$ac_ext | |
20490 | cat >>conftest.$ac_ext <<_ACEOF | |
20491 | /* end confdefs.h. */ | |
20492 | #include <sys/types.h> | |
20493 | #include <sys/param.h> | |
20494 | int | |
20495 | main () | |
20496 | { | |
20497 | ||
20498 | #if BYTE_ORDER != BIG_ENDIAN | |
20499 | not big endian | |
20500 | #endif | |
20501 | ; | |
20502 | return 0; | |
20503 | } | |
20504 | _ACEOF | |
20505 | rm -f conftest.$ac_objext | |
20506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20507 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20508 | ac_status=$? |
ac1cb8d3 VS |
20509 | grep -v '^ *+' conftest.er1 >conftest.err |
20510 | rm -f conftest.er1 | |
20511 | cat conftest.err >&5 | |
a848cd7e SC |
20512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20513 | (exit $ac_status); } && | |
6ebeb4c7 | 20514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20516 | (eval $ac_try) 2>&5 | |
20517 | ac_status=$? | |
20518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20519 | (exit $ac_status); }; } && | |
20520 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20522 | (eval $ac_try) 2>&5 | |
20523 | ac_status=$? | |
20524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20525 | (exit $ac_status); }; }; then | |
20526 | ac_cv_c_bigendian=yes | |
20527 | else | |
20528 | echo "$as_me: failed program was:" >&5 | |
20529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20530 | ||
20531 | ac_cv_c_bigendian=no | |
20532 | fi | |
ac1cb8d3 | 20533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20534 | else |
20535 | echo "$as_me: failed program was:" >&5 | |
20536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20537 | ||
20538 | fi | |
ac1cb8d3 | 20539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20540 | if test $ac_cv_c_bigendian = unknown; then |
20541 | if test "$cross_compiling" = yes; then | |
20542 | ac_cv_c_bigendian=unknown | |
20543 | else | |
20544 | cat >conftest.$ac_ext <<_ACEOF | |
20545 | /* confdefs.h. */ | |
20546 | _ACEOF | |
20547 | cat confdefs.h >>conftest.$ac_ext | |
20548 | cat >>conftest.$ac_ext <<_ACEOF | |
20549 | /* end confdefs.h. */ | |
20550 | main () { | |
20551 | /* Are we little or big endian? From Harbison&Steele. */ | |
20552 | union | |
20553 | { | |
20554 | long l; | |
20555 | char c[sizeof (long)]; | |
20556 | } u; | |
20557 | u.l = 1; | |
20558 | exit (u.c[sizeof (long) - 1] == 1); | |
20559 | } | |
20560 | _ACEOF | |
20561 | rm -f conftest$ac_exeext | |
20562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20563 | (eval $ac_link) 2>&5 | |
20564 | ac_status=$? | |
20565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20566 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20568 | (eval $ac_try) 2>&5 | |
20569 | ac_status=$? | |
20570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20571 | (exit $ac_status); }; }; then | |
20572 | ac_cv_c_bigendian=no | |
20573 | else | |
20574 | echo "$as_me: program exited with status $ac_status" >&5 | |
20575 | echo "$as_me: failed program was:" >&5 | |
20576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20577 | ||
20578 | ( exit $ac_status ) | |
20579 | ac_cv_c_bigendian=yes | |
20580 | fi | |
ac1cb8d3 | 20581 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20582 | fi |
20583 | fi | |
20584 | fi | |
20585 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20586 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
20587 | if test $ac_cv_c_bigendian = unknown; then | |
20588 | { 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 | |
20589 | 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;} | |
20590 | fi | |
20591 | if test $ac_cv_c_bigendian = yes; then | |
20592 | cat >>confdefs.h <<\_ACEOF | |
20593 | #define WORDS_BIGENDIAN 1 | |
20594 | _ACEOF | |
20595 | ||
20596 | fi | |
20597 | ||
20598 | ||
20599 | ac_ext=cc | |
20600 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20601 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20602 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20603 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20604 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
20605 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
20606 | if test -z "$CXXCPP"; then | |
20607 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
20608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20609 | else | |
20610 | # Double quotes because CXXCPP needs to be expanded | |
20611 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
20612 | do | |
20613 | ac_preproc_ok=false | |
20614 | for ac_cxx_preproc_warn_flag in '' yes | |
20615 | do | |
20616 | # Use a header file that comes with gcc, so configuring glibc | |
20617 | # with a fresh cross-compiler works. | |
20618 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20619 | # <limits.h> exists even on freestanding compilers. | |
20620 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20621 | # not just through cpp. "Syntax error" is here to catch this case. | |
20622 | cat >conftest.$ac_ext <<_ACEOF | |
20623 | /* confdefs.h. */ | |
20624 | _ACEOF | |
20625 | cat confdefs.h >>conftest.$ac_ext | |
20626 | cat >>conftest.$ac_ext <<_ACEOF | |
20627 | /* end confdefs.h. */ | |
20628 | #ifdef __STDC__ | |
20629 | # include <limits.h> | |
20630 | #else | |
20631 | # include <assert.h> | |
20632 | #endif | |
ac1cb8d3 | 20633 | Syntax error |
a848cd7e SC |
20634 | _ACEOF |
20635 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20636 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20637 | ac_status=$? | |
20638 | grep -v '^ *+' conftest.er1 >conftest.err | |
20639 | rm -f conftest.er1 | |
20640 | cat conftest.err >&5 | |
20641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20642 | (exit $ac_status); } >/dev/null; then | |
20643 | if test -s conftest.err; then | |
20644 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20645 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20646 | else |
20647 | ac_cpp_err= | |
20648 | fi | |
20649 | else | |
20650 | ac_cpp_err=yes | |
20651 | fi | |
20652 | if test -z "$ac_cpp_err"; then | |
20653 | : | |
20654 | else | |
20655 | echo "$as_me: failed program was:" >&5 | |
20656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20657 | ||
20658 | # Broken: fails on valid input. | |
20659 | continue | |
20660 | fi | |
20661 | rm -f conftest.err conftest.$ac_ext | |
20662 | ||
20663 | # OK, works on sane cases. Now check whether non-existent headers | |
20664 | # can be detected and how. | |
20665 | cat >conftest.$ac_ext <<_ACEOF | |
20666 | /* confdefs.h. */ | |
20667 | _ACEOF | |
20668 | cat confdefs.h >>conftest.$ac_ext | |
20669 | cat >>conftest.$ac_ext <<_ACEOF | |
20670 | /* end confdefs.h. */ | |
20671 | #include <ac_nonexistent.h> | |
20672 | _ACEOF | |
20673 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20674 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20675 | ac_status=$? | |
20676 | grep -v '^ *+' conftest.er1 >conftest.err | |
20677 | rm -f conftest.er1 | |
20678 | cat conftest.err >&5 | |
20679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20680 | (exit $ac_status); } >/dev/null; then | |
20681 | if test -s conftest.err; then | |
20682 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20683 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20684 | else |
20685 | ac_cpp_err= | |
20686 | fi | |
20687 | else | |
20688 | ac_cpp_err=yes | |
20689 | fi | |
20690 | if test -z "$ac_cpp_err"; then | |
20691 | # Broken: success on invalid input. | |
20692 | continue | |
20693 | else | |
20694 | echo "$as_me: failed program was:" >&5 | |
20695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20696 | ||
20697 | # Passes both tests. | |
20698 | ac_preproc_ok=: | |
20699 | break | |
20700 | fi | |
20701 | rm -f conftest.err conftest.$ac_ext | |
20702 | ||
20703 | done | |
20704 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20705 | rm -f conftest.err conftest.$ac_ext | |
20706 | if $ac_preproc_ok; then | |
20707 | break | |
20708 | fi | |
20709 | ||
20710 | done | |
20711 | ac_cv_prog_CXXCPP=$CXXCPP | |
20712 | ||
20713 | fi | |
20714 | CXXCPP=$ac_cv_prog_CXXCPP | |
20715 | else | |
20716 | ac_cv_prog_CXXCPP=$CXXCPP | |
20717 | fi | |
20718 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
20719 | echo "${ECHO_T}$CXXCPP" >&6 | |
20720 | ac_preproc_ok=false | |
20721 | for ac_cxx_preproc_warn_flag in '' yes | |
20722 | do | |
20723 | # Use a header file that comes with gcc, so configuring glibc | |
20724 | # with a fresh cross-compiler works. | |
20725 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20726 | # <limits.h> exists even on freestanding compilers. | |
20727 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20728 | # not just through cpp. "Syntax error" is here to catch this case. | |
20729 | cat >conftest.$ac_ext <<_ACEOF | |
20730 | /* confdefs.h. */ | |
20731 | _ACEOF | |
20732 | cat confdefs.h >>conftest.$ac_ext | |
20733 | cat >>conftest.$ac_ext <<_ACEOF | |
20734 | /* end confdefs.h. */ | |
20735 | #ifdef __STDC__ | |
20736 | # include <limits.h> | |
20737 | #else | |
20738 | # include <assert.h> | |
20739 | #endif | |
ac1cb8d3 | 20740 | Syntax error |
a848cd7e SC |
20741 | _ACEOF |
20742 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20743 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20744 | ac_status=$? | |
20745 | grep -v '^ *+' conftest.er1 >conftest.err | |
20746 | rm -f conftest.er1 | |
20747 | cat conftest.err >&5 | |
20748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20749 | (exit $ac_status); } >/dev/null; then | |
20750 | if test -s conftest.err; then | |
20751 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20752 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20753 | else |
20754 | ac_cpp_err= | |
20755 | fi | |
20756 | else | |
20757 | ac_cpp_err=yes | |
20758 | fi | |
20759 | if test -z "$ac_cpp_err"; then | |
20760 | : | |
20761 | else | |
20762 | echo "$as_me: failed program was:" >&5 | |
20763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20764 | ||
20765 | # Broken: fails on valid input. | |
20766 | continue | |
20767 | fi | |
20768 | rm -f conftest.err conftest.$ac_ext | |
20769 | ||
20770 | # OK, works on sane cases. Now check whether non-existent headers | |
20771 | # can be detected and how. | |
20772 | cat >conftest.$ac_ext <<_ACEOF | |
20773 | /* confdefs.h. */ | |
20774 | _ACEOF | |
20775 | cat confdefs.h >>conftest.$ac_ext | |
20776 | cat >>conftest.$ac_ext <<_ACEOF | |
20777 | /* end confdefs.h. */ | |
20778 | #include <ac_nonexistent.h> | |
20779 | _ACEOF | |
20780 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20781 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20782 | ac_status=$? | |
20783 | grep -v '^ *+' conftest.er1 >conftest.err | |
20784 | rm -f conftest.er1 | |
20785 | cat conftest.err >&5 | |
20786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20787 | (exit $ac_status); } >/dev/null; then | |
20788 | if test -s conftest.err; then | |
20789 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20790 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20791 | else |
20792 | ac_cpp_err= | |
20793 | fi | |
20794 | else | |
20795 | ac_cpp_err=yes | |
20796 | fi | |
20797 | if test -z "$ac_cpp_err"; then | |
20798 | # Broken: success on invalid input. | |
20799 | continue | |
20800 | else | |
20801 | echo "$as_me: failed program was:" >&5 | |
20802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20803 | ||
20804 | # Passes both tests. | |
20805 | ac_preproc_ok=: | |
20806 | break | |
20807 | fi | |
20808 | rm -f conftest.err conftest.$ac_ext | |
20809 | ||
20810 | done | |
20811 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20812 | rm -f conftest.err conftest.$ac_ext | |
20813 | if $ac_preproc_ok; then | |
20814 | : | |
20815 | else | |
20816 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20817 | See \`config.log' for more details." >&5 | |
20818 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20819 | See \`config.log' for more details." >&2;} | |
20820 | { (exit 1); exit 1; }; } | |
20821 | fi | |
20822 | ||
20823 | ac_ext=cc | |
20824 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20825 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20826 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20827 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20828 | ||
20829 | ||
20830 | ||
20831 | ||
20832 | ||
20833 | ac_ext=cc | |
20834 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20835 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20836 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20837 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20838 | ||
20839 | ||
20840 | ||
20841 | for ac_header in iostream | |
20842 | do | |
20843 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20844 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20845 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20846 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20847 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20849 | fi | |
20850 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20851 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20852 | else | |
20853 | # Is the header compilable? | |
20854 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20855 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20856 | cat >conftest.$ac_ext <<_ACEOF | |
20857 | /* confdefs.h. */ | |
20858 | _ACEOF | |
20859 | cat confdefs.h >>conftest.$ac_ext | |
20860 | cat >>conftest.$ac_ext <<_ACEOF | |
20861 | /* end confdefs.h. */ | |
20862 | $ac_includes_default | |
20863 | #include <$ac_header> | |
20864 | _ACEOF | |
20865 | rm -f conftest.$ac_objext | |
20866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20867 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20868 | ac_status=$? |
ac1cb8d3 VS |
20869 | grep -v '^ *+' conftest.er1 >conftest.err |
20870 | rm -f conftest.er1 | |
20871 | cat conftest.err >&5 | |
a848cd7e SC |
20872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20873 | (exit $ac_status); } && | |
6ebeb4c7 | 20874 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20876 | (eval $ac_try) 2>&5 | |
20877 | ac_status=$? | |
20878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20879 | (exit $ac_status); }; } && | |
20880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20882 | (eval $ac_try) 2>&5 | |
20883 | ac_status=$? | |
20884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20885 | (exit $ac_status); }; }; then | |
20886 | ac_header_compiler=yes | |
20887 | else | |
20888 | echo "$as_me: failed program was:" >&5 | |
20889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20890 | ||
20891 | ac_header_compiler=no | |
20892 | fi | |
ac1cb8d3 | 20893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20894 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20895 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20896 | ||
20897 | # Is the header present? | |
20898 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20899 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20900 | cat >conftest.$ac_ext <<_ACEOF | |
20901 | /* confdefs.h. */ | |
20902 | _ACEOF | |
20903 | cat confdefs.h >>conftest.$ac_ext | |
20904 | cat >>conftest.$ac_ext <<_ACEOF | |
20905 | /* end confdefs.h. */ | |
20906 | #include <$ac_header> | |
20907 | _ACEOF | |
20908 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20909 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20910 | ac_status=$? | |
20911 | grep -v '^ *+' conftest.er1 >conftest.err | |
20912 | rm -f conftest.er1 | |
20913 | cat conftest.err >&5 | |
20914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20915 | (exit $ac_status); } >/dev/null; then | |
20916 | if test -s conftest.err; then | |
20917 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20918 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20919 | else |
20920 | ac_cpp_err= | |
20921 | fi | |
20922 | else | |
20923 | ac_cpp_err=yes | |
20924 | fi | |
20925 | if test -z "$ac_cpp_err"; then | |
20926 | ac_header_preproc=yes | |
20927 | else | |
20928 | echo "$as_me: failed program was:" >&5 | |
20929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20930 | ||
20931 | ac_header_preproc=no | |
20932 | fi | |
20933 | rm -f conftest.err conftest.$ac_ext | |
20934 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20935 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20936 | ||
20937 | # So? What about this header? | |
ac1cb8d3 VS |
20938 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20939 | yes:no: ) | |
a848cd7e SC |
20940 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20941 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20942 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20943 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20944 | ac_header_preproc=yes | |
a848cd7e | 20945 | ;; |
ac1cb8d3 | 20946 | no:yes:* ) |
a848cd7e SC |
20947 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20948 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20949 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20950 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20951 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20952 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20953 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20954 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20955 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20956 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20957 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20958 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20959 | ( |
20960 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20961 | ## ----------------------------------------- ## |
20962 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20963 | ## ----------------------------------------- ## | |
a848cd7e SC |
20964 | _ASBOX |
20965 | ) | | |
20966 | sed "s/^/$as_me: WARNING: /" >&2 | |
20967 | ;; | |
20968 | esac | |
20969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20973 | else | |
ac1cb8d3 | 20974 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
20975 | fi |
20976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20977 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20978 | ||
20979 | fi | |
20980 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20981 | cat >>confdefs.h <<_ACEOF | |
20982 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20983 | _ACEOF | |
20984 | ||
20985 | fi | |
20986 | ||
20987 | done | |
20988 | ||
20989 | ||
20990 | if test "$ac_cv_header_iostream" = "yes" ; then | |
20991 | : | |
20992 | else | |
20993 | cat >>confdefs.h <<\_ACEOF | |
20994 | #define wxUSE_IOSTREAMH 1 | |
20995 | _ACEOF | |
20996 | ||
20997 | fi | |
20998 | ||
20999 | ac_ext=c | |
21000 | ac_cpp='$CPP $CPPFLAGS' | |
21001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21004 | ||
21005 | ||
21006 | ||
21007 | ||
21008 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
21009 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
21010 | if test "${wx_cv_cpp_bool+set}" = set; then | |
21011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21012 | else | |
21013 | ||
21014 | ||
21015 | ||
21016 | ac_ext=cc | |
21017 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21018 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21019 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21020 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21021 | ||
21022 | ||
21023 | cat >conftest.$ac_ext <<_ACEOF | |
21024 | /* confdefs.h. */ | |
21025 | _ACEOF | |
21026 | cat confdefs.h >>conftest.$ac_ext | |
21027 | cat >>conftest.$ac_ext <<_ACEOF | |
21028 | /* end confdefs.h. */ | |
21029 | ||
21030 | ||
21031 | int | |
21032 | main () | |
21033 | { | |
21034 | ||
21035 | bool b = true; | |
21036 | ||
21037 | return 0; | |
21038 | ||
21039 | ; | |
21040 | return 0; | |
21041 | } | |
21042 | _ACEOF | |
21043 | rm -f conftest.$ac_objext | |
21044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21045 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21046 | ac_status=$? |
ac1cb8d3 VS |
21047 | grep -v '^ *+' conftest.er1 >conftest.err |
21048 | rm -f conftest.er1 | |
21049 | cat conftest.err >&5 | |
a848cd7e SC |
21050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21051 | (exit $ac_status); } && | |
6ebeb4c7 | 21052 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21054 | (eval $ac_try) 2>&5 | |
21055 | ac_status=$? | |
21056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21057 | (exit $ac_status); }; } && | |
21058 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21060 | (eval $ac_try) 2>&5 | |
21061 | ac_status=$? | |
21062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21063 | (exit $ac_status); }; }; then | |
21064 | ||
21065 | wx_cv_cpp_bool=yes | |
21066 | ||
21067 | else | |
21068 | echo "$as_me: failed program was:" >&5 | |
21069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21070 | ||
21071 | ||
21072 | wx_cv_cpp_bool=no | |
21073 | ||
21074 | ||
21075 | fi | |
ac1cb8d3 | 21076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21077 | |
21078 | ac_ext=c | |
21079 | ac_cpp='$CPP $CPPFLAGS' | |
21080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21083 | ||
21084 | ||
21085 | fi | |
21086 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
21087 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21088 | ||
21089 | if test "$wx_cv_cpp_bool" = "yes"; then | |
21090 | cat >>confdefs.h <<\_ACEOF | |
21091 | #define HAVE_BOOL 1 | |
21092 | _ACEOF | |
21093 | ||
21094 | fi | |
21095 | ||
21096 | ||
21097 | ||
21098 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
21099 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
21100 | if test "${wx_cv_explicit+set}" = set; then | |
21101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21102 | else | |
21103 | ||
21104 | ||
21105 | ||
21106 | ac_ext=cc | |
21107 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21108 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21109 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21110 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21111 | ||
21112 | ||
21113 | cat >conftest.$ac_ext <<_ACEOF | |
21114 | /* confdefs.h. */ | |
21115 | _ACEOF | |
21116 | cat confdefs.h >>conftest.$ac_ext | |
21117 | cat >>conftest.$ac_ext <<_ACEOF | |
21118 | /* end confdefs.h. */ | |
21119 | ||
21120 | class Foo { public: explicit Foo(int) {} }; | |
21121 | ||
21122 | int | |
21123 | main () | |
21124 | { | |
21125 | ||
21126 | return 0; | |
21127 | ||
21128 | ; | |
21129 | return 0; | |
21130 | } | |
21131 | _ACEOF | |
21132 | rm -f conftest.$ac_objext | |
21133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21134 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21135 | ac_status=$? |
ac1cb8d3 VS |
21136 | grep -v '^ *+' conftest.er1 >conftest.err |
21137 | rm -f conftest.er1 | |
21138 | cat conftest.err >&5 | |
a848cd7e SC |
21139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21140 | (exit $ac_status); } && | |
6ebeb4c7 | 21141 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21143 | (eval $ac_try) 2>&5 | |
21144 | ac_status=$? | |
21145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21146 | (exit $ac_status); }; } && | |
21147 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21149 | (eval $ac_try) 2>&5 | |
21150 | ac_status=$? | |
21151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21152 | (exit $ac_status); }; }; then | |
21153 | ||
21154 | cat >conftest.$ac_ext <<_ACEOF | |
21155 | /* confdefs.h. */ | |
21156 | _ACEOF | |
21157 | cat confdefs.h >>conftest.$ac_ext | |
21158 | cat >>conftest.$ac_ext <<_ACEOF | |
21159 | /* end confdefs.h. */ | |
21160 | ||
21161 | class Foo { public: explicit Foo(int) {} }; | |
21162 | static void TakeFoo(const Foo& foo) { } | |
21163 | ||
21164 | int | |
21165 | main () | |
21166 | { | |
21167 | ||
21168 | TakeFoo(17); | |
21169 | return 0; | |
21170 | ||
21171 | ; | |
21172 | return 0; | |
21173 | } | |
21174 | _ACEOF | |
21175 | rm -f conftest.$ac_objext | |
21176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21177 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21178 | ac_status=$? |
ac1cb8d3 VS |
21179 | grep -v '^ *+' conftest.er1 >conftest.err |
21180 | rm -f conftest.er1 | |
21181 | cat conftest.err >&5 | |
a848cd7e SC |
21182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21183 | (exit $ac_status); } && | |
6ebeb4c7 | 21184 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21186 | (eval $ac_try) 2>&5 | |
21187 | ac_status=$? | |
21188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21189 | (exit $ac_status); }; } && | |
21190 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21192 | (eval $ac_try) 2>&5 | |
21193 | ac_status=$? | |
21194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21195 | (exit $ac_status); }; }; then | |
21196 | wx_cv_explicit=no | |
21197 | else | |
21198 | echo "$as_me: failed program was:" >&5 | |
21199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21200 | ||
21201 | wx_cv_explicit=yes | |
21202 | ||
21203 | fi | |
ac1cb8d3 | 21204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21205 | |
21206 | else | |
21207 | echo "$as_me: failed program was:" >&5 | |
21208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21209 | ||
21210 | wx_cv_explicit=no | |
21211 | ||
21212 | fi | |
ac1cb8d3 | 21213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21214 | |
21215 | ac_ext=c | |
21216 | ac_cpp='$CPP $CPPFLAGS' | |
21217 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21218 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21219 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21220 | ||
21221 | ||
21222 | fi | |
21223 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
21224 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
21225 | ||
21226 | if test "$wx_cv_explicit" = "yes"; then | |
21227 | cat >>confdefs.h <<\_ACEOF | |
21228 | #define HAVE_EXPLICIT 1 | |
21229 | _ACEOF | |
21230 | ||
21231 | fi | |
21232 | ||
21233 | ||
21234 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
21235 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
21236 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
21237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21238 | else | |
21239 | ||
21240 | ||
21241 | ac_ext=cc | |
21242 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21243 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21244 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21245 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21246 | ||
21247 | cat >conftest.$ac_ext <<_ACEOF | |
21248 | /* confdefs.h. */ | |
21249 | _ACEOF | |
21250 | cat confdefs.h >>conftest.$ac_ext | |
21251 | cat >>conftest.$ac_ext <<_ACEOF | |
21252 | /* end confdefs.h. */ | |
21253 | ||
21254 | int | |
21255 | main () | |
21256 | { | |
21257 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
21258 | ; | |
21259 | return 0; | |
21260 | } | |
21261 | _ACEOF | |
21262 | rm -f conftest.$ac_objext | |
21263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21264 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21265 | ac_status=$? |
ac1cb8d3 VS |
21266 | grep -v '^ *+' conftest.er1 >conftest.err |
21267 | rm -f conftest.er1 | |
21268 | cat conftest.err >&5 | |
a848cd7e SC |
21269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21270 | (exit $ac_status); } && | |
6ebeb4c7 | 21271 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21273 | (eval $ac_try) 2>&5 | |
21274 | ac_status=$? | |
21275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21276 | (exit $ac_status); }; } && | |
21277 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21279 | (eval $ac_try) 2>&5 | |
21280 | ac_status=$? | |
21281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21282 | (exit $ac_status); }; }; then | |
21283 | ac_cv_cxx_const_cast=yes | |
21284 | else | |
21285 | echo "$as_me: failed program was:" >&5 | |
21286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21287 | ||
21288 | ac_cv_cxx_const_cast=no | |
21289 | fi | |
ac1cb8d3 | 21290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21291 | ac_ext=c |
21292 | ac_cpp='$CPP $CPPFLAGS' | |
21293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21296 | ||
21297 | ||
21298 | fi | |
21299 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
21300 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
21301 | if test "$ac_cv_cxx_const_cast" = yes; then | |
21302 | ||
21303 | cat >>confdefs.h <<\_ACEOF | |
21304 | #define HAVE_CONST_CAST | |
21305 | _ACEOF | |
21306 | ||
21307 | fi | |
21308 | ||
7714864e RL |
21309 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
21310 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
21311 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
21312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21313 | else | |
21314 | ||
21315 | ||
21316 | ac_ext=cc | |
21317 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21318 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21319 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21320 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21321 | ||
21322 | cat >conftest.$ac_ext <<_ACEOF | |
21323 | /* confdefs.h. */ | |
21324 | _ACEOF | |
21325 | cat confdefs.h >>conftest.$ac_ext | |
21326 | cat >>conftest.$ac_ext <<_ACEOF | |
21327 | /* end confdefs.h. */ | |
21328 | #include <typeinfo> | |
21329 | class Base { public : Base () {} virtual void f () = 0;}; | |
21330 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21331 | class Unrelated { public : Unrelated () {} }; | |
21332 | int g (Unrelated&) { return 0; } | |
21333 | int | |
21334 | main () | |
21335 | { | |
21336 | ||
21337 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
21338 | ; | |
21339 | return 0; | |
21340 | } | |
21341 | _ACEOF | |
21342 | rm -f conftest.$ac_objext | |
21343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21344 | (eval $ac_compile) 2>conftest.er1 | |
21345 | ac_status=$? | |
21346 | grep -v '^ *+' conftest.er1 >conftest.err | |
21347 | rm -f conftest.er1 | |
21348 | cat conftest.err >&5 | |
21349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21350 | (exit $ac_status); } && | |
6ebeb4c7 | 21351 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
21352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21353 | (eval $ac_try) 2>&5 | |
21354 | ac_status=$? | |
21355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21356 | (exit $ac_status); }; } && | |
21357 | { ac_try='test -s conftest.$ac_objext' | |
21358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21359 | (eval $ac_try) 2>&5 | |
21360 | ac_status=$? | |
21361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21362 | (exit $ac_status); }; }; then | |
21363 | ac_cv_cxx_reinterpret_cast=yes | |
21364 | else | |
21365 | echo "$as_me: failed program was:" >&5 | |
21366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21367 | ||
21368 | ac_cv_cxx_reinterpret_cast=no | |
21369 | fi | |
21370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21371 | ac_ext=c | |
21372 | ac_cpp='$CPP $CPPFLAGS' | |
21373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21376 | ||
21377 | ||
21378 | fi | |
21379 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
21380 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
21381 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
21382 | ||
21383 | cat >>confdefs.h <<\_ACEOF | |
21384 | #define HAVE_REINTERPRET_CAST | |
21385 | _ACEOF | |
21386 | ||
21387 | fi | |
21388 | ||
a848cd7e SC |
21389 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
21390 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
21391 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
21392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21393 | else | |
21394 | ||
21395 | ||
21396 | ac_ext=cc | |
21397 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21398 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21399 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21400 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21401 | ||
21402 | cat >conftest.$ac_ext <<_ACEOF | |
21403 | /* confdefs.h. */ | |
21404 | _ACEOF | |
21405 | cat confdefs.h >>conftest.$ac_ext | |
21406 | cat >>conftest.$ac_ext <<_ACEOF | |
21407 | /* end confdefs.h. */ | |
21408 | #include <typeinfo> | |
21409 | class Base { public : Base () {} virtual void f () = 0; }; | |
21410 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21411 | int g (Derived&) { return 0; } | |
21412 | int | |
21413 | main () | |
21414 | { | |
21415 | ||
21416 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
21417 | ; | |
21418 | return 0; | |
21419 | } | |
21420 | _ACEOF | |
21421 | rm -f conftest.$ac_objext | |
21422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21423 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21424 | ac_status=$? |
ac1cb8d3 VS |
21425 | grep -v '^ *+' conftest.er1 >conftest.err |
21426 | rm -f conftest.er1 | |
21427 | cat conftest.err >&5 | |
a848cd7e SC |
21428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21429 | (exit $ac_status); } && | |
6ebeb4c7 | 21430 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21432 | (eval $ac_try) 2>&5 | |
21433 | ac_status=$? | |
21434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21435 | (exit $ac_status); }; } && | |
21436 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21438 | (eval $ac_try) 2>&5 | |
21439 | ac_status=$? | |
21440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21441 | (exit $ac_status); }; }; then | |
21442 | ac_cv_cxx_static_cast=yes | |
21443 | else | |
21444 | echo "$as_me: failed program was:" >&5 | |
21445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21446 | ||
21447 | ac_cv_cxx_static_cast=no | |
21448 | fi | |
ac1cb8d3 | 21449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21450 | ac_ext=c |
21451 | ac_cpp='$CPP $CPPFLAGS' | |
21452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21455 | ||
21456 | ||
21457 | fi | |
21458 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
21459 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
21460 | if test "$ac_cv_cxx_static_cast" = yes; then | |
21461 | ||
21462 | cat >>confdefs.h <<\_ACEOF | |
21463 | #define HAVE_STATIC_CAST | |
21464 | _ACEOF | |
21465 | ||
21466 | fi | |
21467 | ||
21468 | ||
3c28b7cb MW |
21469 | if test "x$SUNCXX" = xyes; then |
21470 | CXXFLAGS="$CXXFLAGS -features=tmplife" | |
21471 | fi | |
21472 | ||
f56c22b4 | 21473 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
21474 | ac_ext=cc |
21475 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21476 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21477 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21478 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21479 | ||
21480 | ||
f56c22b4 MW |
21481 | if test "$wxUSE_UNICODE" = "yes"; then |
21482 | std_string="std::wstring" | |
21483 | char_type="wchar_t" | |
21484 | else | |
21485 | std_string="std::string" | |
21486 | char_type="char" | |
21487 | fi | |
21488 | ||
21489 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
21490 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
21491 | cat >conftest.$ac_ext <<_ACEOF |
21492 | /* confdefs.h. */ | |
21493 | _ACEOF | |
21494 | cat confdefs.h >>conftest.$ac_ext | |
21495 | cat >>conftest.$ac_ext <<_ACEOF | |
21496 | /* end confdefs.h. */ | |
21497 | #include <string> | |
a848cd7e SC |
21498 | int |
21499 | main () | |
21500 | { | |
f56c22b4 | 21501 | $std_string foo; |
a848cd7e SC |
21502 | ; |
21503 | return 0; | |
21504 | } | |
21505 | _ACEOF | |
21506 | rm -f conftest.$ac_objext | |
21507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21508 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21509 | ac_status=$? |
ac1cb8d3 VS |
21510 | grep -v '^ *+' conftest.er1 >conftest.err |
21511 | rm -f conftest.er1 | |
21512 | cat conftest.err >&5 | |
a848cd7e SC |
21513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21514 | (exit $ac_status); } && | |
6ebeb4c7 | 21515 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21517 | (eval $ac_try) 2>&5 | |
21518 | ac_status=$? | |
21519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21520 | (exit $ac_status); }; } && | |
21521 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21523 | (eval $ac_try) 2>&5 | |
21524 | ac_status=$? | |
21525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21526 | (exit $ac_status); }; }; then | |
21527 | echo "$as_me:$LINENO: result: yes" >&5 | |
21528 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
21529 | cat >>confdefs.h <<\_ACEOF |
21530 | #define HAVE_STD_WSTRING 1 | |
21531 | _ACEOF | |
21532 | ||
a848cd7e SC |
21533 | else |
21534 | echo "$as_me: failed program was:" >&5 | |
21535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21536 | ||
21537 | echo "$as_me:$LINENO: result: no" >&5 | |
21538 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
21539 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
21540 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
21541 | cat >conftest.$ac_ext <<_ACEOF |
21542 | /* confdefs.h. */ | |
21543 | _ACEOF | |
21544 | cat confdefs.h >>conftest.$ac_ext | |
21545 | cat >>conftest.$ac_ext <<_ACEOF | |
21546 | /* end confdefs.h. */ | |
21547 | ||
21548 | #ifdef HAVE_WCHAR_H | |
21549 | # ifdef __CYGWIN__ | |
21550 | # include <stddef.h> | |
21551 | # endif | |
21552 | # include <wchar.h> | |
21553 | #endif | |
21554 | #ifdef HAVE_STDLIB_H | |
21555 | # include <stdlib.h> | |
21556 | #endif | |
21557 | #include <stdio.h> | |
21558 | #include <string> | |
21559 | ||
21560 | int | |
21561 | main () | |
21562 | { | |
f56c22b4 MW |
21563 | std::basic_string<$char_type> foo; |
21564 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
21565 | ; |
21566 | return 0; | |
21567 | } | |
21568 | _ACEOF | |
21569 | rm -f conftest.$ac_objext | |
21570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21571 | (eval $ac_compile) 2>conftest.er1 | |
21572 | ac_status=$? | |
21573 | grep -v '^ *+' conftest.er1 >conftest.err | |
21574 | rm -f conftest.er1 | |
21575 | cat conftest.err >&5 | |
21576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21577 | (exit $ac_status); } && | |
6ebeb4c7 | 21578 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
21579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21580 | (eval $ac_try) 2>&5 | |
21581 | ac_status=$? | |
21582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21583 | (exit $ac_status); }; } && | |
21584 | { ac_try='test -s conftest.$ac_objext' | |
21585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21586 | (eval $ac_try) 2>&5 | |
21587 | ac_status=$? | |
21588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21589 | (exit $ac_status); }; }; then | |
21590 | echo "$as_me:$LINENO: result: yes" >&5 | |
21591 | echo "${ECHO_T}yes" >&6 | |
21592 | else | |
21593 | echo "$as_me: failed program was:" >&5 | |
21594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21595 | ||
21596 | echo "$as_me:$LINENO: result: no" >&5 | |
21597 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 21598 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
21599 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
21600 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
21601 | { (exit 1); exit 1; }; } | |
21602 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
21603 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
21604 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 21605 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
21606 | else |
21607 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
21608 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
21609 | wxUSE_STD_STRING=no | |
21610 | fi | |
21611 | ||
0a08f02a | 21612 | |
a848cd7e | 21613 | fi |
ac1cb8d3 | 21614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21615 | |
0a08f02a MB |
21616 | fi |
21617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21618 | ||
21619 | ac_ext=c | |
21620 | ac_cpp='$CPP $CPPFLAGS' | |
21621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
21623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
21624 | ||
21625 | fi | |
21626 | ||
21627 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
21628 | ac_ext=cc | |
21629 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21630 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21631 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21632 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21633 | ||
21634 | ||
21635 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
21636 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
21637 | if test "${ac_cv_type_std__istream+set}" = set; then | |
21638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21639 | else | |
21640 | cat >conftest.$ac_ext <<_ACEOF | |
21641 | /* confdefs.h. */ | |
21642 | _ACEOF | |
21643 | cat confdefs.h >>conftest.$ac_ext | |
21644 | cat >>conftest.$ac_ext <<_ACEOF | |
21645 | /* end confdefs.h. */ | |
21646 | #include <iostream> | |
21647 | ||
21648 | int | |
21649 | main () | |
21650 | { | |
21651 | if ((std::istream *) 0) | |
21652 | return 0; | |
21653 | if (sizeof (std::istream)) | |
21654 | return 0; | |
21655 | ; | |
21656 | return 0; | |
21657 | } | |
21658 | _ACEOF | |
21659 | rm -f conftest.$ac_objext | |
21660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21661 | (eval $ac_compile) 2>conftest.er1 | |
21662 | ac_status=$? | |
21663 | grep -v '^ *+' conftest.er1 >conftest.err | |
21664 | rm -f conftest.er1 | |
21665 | cat conftest.err >&5 | |
21666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21667 | (exit $ac_status); } && | |
6ebeb4c7 | 21668 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
21669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21670 | (eval $ac_try) 2>&5 | |
21671 | ac_status=$? | |
21672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21673 | (exit $ac_status); }; } && | |
21674 | { ac_try='test -s conftest.$ac_objext' | |
21675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21676 | (eval $ac_try) 2>&5 | |
21677 | ac_status=$? | |
21678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21679 | (exit $ac_status); }; }; then | |
21680 | ac_cv_type_std__istream=yes | |
21681 | else | |
21682 | echo "$as_me: failed program was:" >&5 | |
21683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21684 | ||
21685 | ac_cv_type_std__istream=no | |
21686 | fi | |
21687 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21688 | fi | |
21689 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
21690 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
21691 | if test $ac_cv_type_std__istream = yes; then | |
21692 | ||
21693 | cat >>confdefs.h <<_ACEOF | |
21694 | #define HAVE_STD__ISTREAM 1 | |
21695 | _ACEOF | |
21696 | ||
21697 | ||
21698 | else | |
21699 | wxUSE_STD_IOSTREAM=no | |
21700 | fi | |
21701 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
21702 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
21703 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
21704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21705 | else | |
21706 | cat >conftest.$ac_ext <<_ACEOF | |
21707 | /* confdefs.h. */ | |
21708 | _ACEOF | |
21709 | cat confdefs.h >>conftest.$ac_ext | |
21710 | cat >>conftest.$ac_ext <<_ACEOF | |
21711 | /* end confdefs.h. */ | |
21712 | #include <iostream> | |
21713 | ||
21714 | int | |
21715 | main () | |
21716 | { | |
21717 | if ((std::ostream *) 0) | |
21718 | return 0; | |
21719 | if (sizeof (std::ostream)) | |
21720 | return 0; | |
21721 | ; | |
21722 | return 0; | |
21723 | } | |
21724 | _ACEOF | |
21725 | rm -f conftest.$ac_objext | |
21726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21727 | (eval $ac_compile) 2>conftest.er1 | |
21728 | ac_status=$? | |
21729 | grep -v '^ *+' conftest.er1 >conftest.err | |
21730 | rm -f conftest.er1 | |
21731 | cat conftest.err >&5 | |
21732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21733 | (exit $ac_status); } && | |
6ebeb4c7 | 21734 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
21735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21736 | (eval $ac_try) 2>&5 | |
21737 | ac_status=$? | |
21738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21739 | (exit $ac_status); }; } && | |
21740 | { ac_try='test -s conftest.$ac_objext' | |
21741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21742 | (eval $ac_try) 2>&5 | |
21743 | ac_status=$? | |
21744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21745 | (exit $ac_status); }; }; then | |
21746 | ac_cv_type_std__ostream=yes | |
21747 | else | |
21748 | echo "$as_me: failed program was:" >&5 | |
21749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21750 | ||
21751 | ac_cv_type_std__ostream=no | |
21752 | fi | |
21753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21754 | fi | |
21755 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
21756 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
21757 | if test $ac_cv_type_std__ostream = yes; then | |
21758 | ||
21759 | cat >>confdefs.h <<_ACEOF | |
21760 | #define HAVE_STD__OSTREAM 1 | |
21761 | _ACEOF | |
21762 | ||
21763 | ||
21764 | else | |
21765 | wxUSE_STD_IOSTREAM=no | |
21766 | fi | |
21767 | ||
21768 | ||
21769 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
21770 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
21771 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
21772 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
21773 | { (exit 1); exit 1; }; } | |
21774 | else | |
21775 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 21776 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 21777 | fi |
f56c22b4 MW |
21778 | fi |
21779 | ||
21780 | ac_ext=c | |
21781 | ac_cpp='$CPP $CPPFLAGS' | |
21782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
21784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
21785 | ||
21786 | fi | |
21787 | ||
21788 | if test "$wxUSE_STL" = "yes"; then | |
21789 | ac_ext=cc | |
21790 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21791 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21792 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21793 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21794 | ||
21795 | ||
21796 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
21797 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
21798 | cat >conftest.$ac_ext <<_ACEOF |
21799 | /* confdefs.h. */ | |
21800 | _ACEOF | |
21801 | cat confdefs.h >>conftest.$ac_ext | |
21802 | cat >>conftest.$ac_ext <<_ACEOF | |
21803 | /* end confdefs.h. */ | |
21804 | #include <string> | |
0a08f02a MB |
21805 | #include <functional> |
21806 | #include <algorithm> | |
21807 | #include <vector> | |
21808 | #include <list> | |
a848cd7e SC |
21809 | int |
21810 | main () | |
21811 | { | |
0a08f02a MB |
21812 | std::vector<int> moo; |
21813 | std::list<int> foo; | |
21814 | std::vector<int>::iterator it = | |
21815 | std::find_if(moo.begin(), moo.end(), | |
21816 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
21817 | ; |
21818 | return 0; | |
21819 | } | |
21820 | _ACEOF | |
21821 | rm -f conftest.$ac_objext | |
21822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21823 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21824 | ac_status=$? |
ac1cb8d3 VS |
21825 | grep -v '^ *+' conftest.er1 >conftest.err |
21826 | rm -f conftest.er1 | |
21827 | cat conftest.err >&5 | |
a848cd7e SC |
21828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21829 | (exit $ac_status); } && | |
6ebeb4c7 | 21830 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21832 | (eval $ac_try) 2>&5 | |
21833 | ac_status=$? | |
21834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21835 | (exit $ac_status); }; } && | |
21836 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21838 | (eval $ac_try) 2>&5 | |
21839 | ac_status=$? | |
21840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21841 | (exit $ac_status); }; }; then | |
21842 | echo "$as_me:$LINENO: result: yes" >&5 | |
21843 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
21844 | else |
21845 | echo "$as_me: failed program was:" >&5 | |
21846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21847 | ||
21848 | echo "$as_me:$LINENO: result: no" >&5 | |
21849 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
21850 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
21851 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
21852 | { (exit 1); exit 1; }; } | |
a848cd7e | 21853 | fi |
ac1cb8d3 | 21854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21855 | |
21856 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
21857 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
21858 | cat >conftest.$ac_ext <<_ACEOF | |
21859 | /* confdefs.h. */ | |
21860 | _ACEOF | |
21861 | cat confdefs.h >>conftest.$ac_ext | |
21862 | cat >>conftest.$ac_ext <<_ACEOF | |
21863 | /* end confdefs.h. */ | |
21864 | #include <string> | |
21865 | int | |
21866 | main () | |
21867 | { | |
21868 | std::string foo, bar; | |
21869 | foo.compare(bar); | |
21870 | foo.compare(1, 1, bar); | |
21871 | foo.compare(1, 1, bar, 1, 1); | |
21872 | foo.compare(""); | |
21873 | foo.compare(1, 1, ""); | |
21874 | foo.compare(1, 1, "", 2); | |
21875 | ; | |
21876 | return 0; | |
21877 | } | |
21878 | _ACEOF | |
21879 | rm -f conftest.$ac_objext | |
21880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21881 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21882 | ac_status=$? |
ac1cb8d3 VS |
21883 | grep -v '^ *+' conftest.er1 >conftest.err |
21884 | rm -f conftest.er1 | |
21885 | cat conftest.err >&5 | |
a848cd7e SC |
21886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21887 | (exit $ac_status); } && | |
6ebeb4c7 | 21888 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21890 | (eval $ac_try) 2>&5 | |
21891 | ac_status=$? | |
21892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21893 | (exit $ac_status); }; } && | |
21894 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21896 | (eval $ac_try) 2>&5 | |
21897 | ac_status=$? | |
21898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21899 | (exit $ac_status); }; }; then | |
21900 | echo "$as_me:$LINENO: result: yes" >&5 | |
21901 | echo "${ECHO_T}yes" >&6 | |
21902 | cat >>confdefs.h <<\_ACEOF | |
21903 | #define HAVE_STD_STRING_COMPARE 1 | |
21904 | _ACEOF | |
21905 | ||
21906 | else | |
21907 | echo "$as_me: failed program was:" >&5 | |
21908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21909 | ||
21910 | echo "$as_me:$LINENO: result: no" >&5 | |
21911 | echo "${ECHO_T}no" >&6 | |
21912 | fi | |
ac1cb8d3 | 21913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21914 | |
21915 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21916 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
21917 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
21918 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21920 | fi | |
21921 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21922 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21923 | else | |
21924 | # Is the header compilable? | |
21925 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
21926 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
21927 | cat >conftest.$ac_ext <<_ACEOF | |
21928 | /* confdefs.h. */ | |
21929 | _ACEOF | |
21930 | cat confdefs.h >>conftest.$ac_ext | |
21931 | cat >>conftest.$ac_ext <<_ACEOF | |
21932 | /* end confdefs.h. */ | |
21933 | $ac_includes_default | |
21934 | #include <hash_map> | |
21935 | _ACEOF | |
21936 | rm -f conftest.$ac_objext | |
21937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21938 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21939 | ac_status=$? |
ac1cb8d3 VS |
21940 | grep -v '^ *+' conftest.er1 >conftest.err |
21941 | rm -f conftest.er1 | |
21942 | cat conftest.err >&5 | |
bdcade0a MB |
21943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21944 | (exit $ac_status); } && | |
6ebeb4c7 | 21945 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21947 | (eval $ac_try) 2>&5 | |
21948 | ac_status=$? | |
21949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21950 | (exit $ac_status); }; } && | |
21951 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21953 | (eval $ac_try) 2>&5 | |
21954 | ac_status=$? | |
21955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21956 | (exit $ac_status); }; }; then | |
21957 | ac_header_compiler=yes | |
21958 | else | |
21959 | echo "$as_me: failed program was:" >&5 | |
21960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21961 | ||
21962 | ac_header_compiler=no | |
21963 | fi | |
ac1cb8d3 | 21964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21965 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21966 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21967 | ||
21968 | # Is the header present? | |
21969 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
21970 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
21971 | cat >conftest.$ac_ext <<_ACEOF | |
21972 | /* confdefs.h. */ | |
21973 | _ACEOF | |
21974 | cat confdefs.h >>conftest.$ac_ext | |
21975 | cat >>conftest.$ac_ext <<_ACEOF | |
21976 | /* end confdefs.h. */ | |
21977 | #include <hash_map> | |
21978 | _ACEOF | |
21979 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21980 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21981 | ac_status=$? | |
21982 | grep -v '^ *+' conftest.er1 >conftest.err | |
21983 | rm -f conftest.er1 | |
21984 | cat conftest.err >&5 | |
21985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21986 | (exit $ac_status); } >/dev/null; then | |
21987 | if test -s conftest.err; then | |
21988 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21989 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
21990 | else |
21991 | ac_cpp_err= | |
21992 | fi | |
21993 | else | |
21994 | ac_cpp_err=yes | |
21995 | fi | |
21996 | if test -z "$ac_cpp_err"; then | |
21997 | ac_header_preproc=yes | |
21998 | else | |
21999 | echo "$as_me: failed program was:" >&5 | |
22000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22001 | ||
22002 | ac_header_preproc=no | |
22003 | fi | |
22004 | rm -f conftest.err conftest.$ac_ext | |
22005 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22006 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22007 | ||
22008 | # So? What about this header? | |
ac1cb8d3 VS |
22009 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22010 | yes:no: ) | |
bdcade0a MB |
22011 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22012 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22013 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
22014 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
22015 | ac_header_preproc=yes | |
bdcade0a | 22016 | ;; |
ac1cb8d3 | 22017 | no:yes:* ) |
bdcade0a MB |
22018 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
22019 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22020 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
22021 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
22022 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
22023 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
22024 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22025 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22026 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
22027 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22028 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
22029 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22030 | ( |
22031 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22032 | ## ----------------------------------------- ## |
22033 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22034 | ## ----------------------------------------- ## | |
bdcade0a MB |
22035 | _ASBOX |
22036 | ) | | |
22037 | sed "s/^/$as_me: WARNING: /" >&2 | |
22038 | ;; | |
22039 | esac | |
22040 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22041 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22042 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22044 | else | |
22045 | ac_cv_header_hash_map=$ac_header_preproc | |
22046 | fi | |
22047 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22048 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22049 | ||
22050 | fi | |
22051 | if test $ac_cv_header_hash_map = yes; then | |
22052 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22053 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22054 | cat >conftest.$ac_ext <<_ACEOF | |
22055 | /* confdefs.h. */ | |
22056 | _ACEOF | |
22057 | cat confdefs.h >>conftest.$ac_ext | |
22058 | cat >>conftest.$ac_ext <<_ACEOF | |
22059 | /* end confdefs.h. */ | |
22060 | #include <hash_map> | |
22061 | #include <hash_set> | |
22062 | int | |
22063 | main () | |
22064 | { | |
22065 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
22066 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
22067 | ; | |
22068 | return 0; | |
22069 | } | |
22070 | _ACEOF | |
22071 | rm -f conftest.$ac_objext | |
22072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22073 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22074 | ac_status=$? |
ac1cb8d3 VS |
22075 | grep -v '^ *+' conftest.er1 >conftest.err |
22076 | rm -f conftest.er1 | |
22077 | cat conftest.err >&5 | |
bdcade0a MB |
22078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22079 | (exit $ac_status); } && | |
6ebeb4c7 | 22080 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22082 | (eval $ac_try) 2>&5 | |
22083 | ac_status=$? | |
22084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22085 | (exit $ac_status); }; } && | |
22086 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22088 | (eval $ac_try) 2>&5 | |
22089 | ac_status=$? | |
22090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22091 | (exit $ac_status); }; }; then | |
22092 | echo "$as_me:$LINENO: result: yes" >&5 | |
22093 | echo "${ECHO_T}yes" >&6 | |
22094 | cat >>confdefs.h <<\_ACEOF | |
22095 | #define HAVE_HASH_MAP 1 | |
22096 | _ACEOF | |
22097 | ||
22098 | cat >>confdefs.h <<\_ACEOF | |
22099 | #define HAVE_STD_HASH_MAP 1 | |
22100 | _ACEOF | |
22101 | ||
22102 | else | |
22103 | echo "$as_me: failed program was:" >&5 | |
22104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22105 | ||
22106 | echo "$as_me:$LINENO: result: no" >&5 | |
22107 | echo "${ECHO_T}no" >&6 | |
22108 | fi | |
ac1cb8d3 | 22109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22110 | |
22111 | fi | |
22112 | ||
22113 | ||
22114 | ||
22115 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22116 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
22117 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
22118 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22120 | fi | |
22121 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
22122 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
22123 | else | |
22124 | # Is the header compilable? | |
22125 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
22126 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
22127 | cat >conftest.$ac_ext <<_ACEOF | |
22128 | /* confdefs.h. */ | |
22129 | _ACEOF | |
22130 | cat confdefs.h >>conftest.$ac_ext | |
22131 | cat >>conftest.$ac_ext <<_ACEOF | |
22132 | /* end confdefs.h. */ | |
22133 | $ac_includes_default | |
22134 | #include <ext/hash_map> | |
22135 | _ACEOF | |
22136 | rm -f conftest.$ac_objext | |
22137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22138 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22139 | ac_status=$? |
ac1cb8d3 VS |
22140 | grep -v '^ *+' conftest.er1 >conftest.err |
22141 | rm -f conftest.er1 | |
22142 | cat conftest.err >&5 | |
bdcade0a MB |
22143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22144 | (exit $ac_status); } && | |
6ebeb4c7 | 22145 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22147 | (eval $ac_try) 2>&5 | |
22148 | ac_status=$? | |
22149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22150 | (exit $ac_status); }; } && | |
22151 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22153 | (eval $ac_try) 2>&5 | |
22154 | ac_status=$? | |
22155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22156 | (exit $ac_status); }; }; then | |
22157 | ac_header_compiler=yes | |
22158 | else | |
22159 | echo "$as_me: failed program was:" >&5 | |
22160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22161 | ||
22162 | ac_header_compiler=no | |
22163 | fi | |
ac1cb8d3 | 22164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22165 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22166 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22167 | ||
22168 | # Is the header present? | |
22169 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
22170 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
22171 | cat >conftest.$ac_ext <<_ACEOF | |
22172 | /* confdefs.h. */ | |
22173 | _ACEOF | |
22174 | cat confdefs.h >>conftest.$ac_ext | |
22175 | cat >>conftest.$ac_ext <<_ACEOF | |
22176 | /* end confdefs.h. */ | |
22177 | #include <ext/hash_map> | |
22178 | _ACEOF | |
22179 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22180 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22181 | ac_status=$? | |
22182 | grep -v '^ *+' conftest.er1 >conftest.err | |
22183 | rm -f conftest.er1 | |
22184 | cat conftest.err >&5 | |
22185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22186 | (exit $ac_status); } >/dev/null; then | |
22187 | if test -s conftest.err; then | |
22188 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22189 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22190 | else |
22191 | ac_cpp_err= | |
22192 | fi | |
22193 | else | |
22194 | ac_cpp_err=yes | |
22195 | fi | |
22196 | if test -z "$ac_cpp_err"; then | |
22197 | ac_header_preproc=yes | |
22198 | else | |
22199 | echo "$as_me: failed program was:" >&5 | |
22200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22201 | ||
22202 | ac_header_preproc=no | |
22203 | fi | |
22204 | rm -f conftest.err conftest.$ac_ext | |
22205 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22206 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22207 | ||
22208 | # So? What about this header? | |
ac1cb8d3 VS |
22209 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22210 | yes:no: ) | |
bdcade0a MB |
22211 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22212 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22213 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
22214 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
22215 | ac_header_preproc=yes | |
bdcade0a | 22216 | ;; |
ac1cb8d3 | 22217 | no:yes:* ) |
bdcade0a MB |
22218 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
22219 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22220 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
22221 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
22222 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
22223 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
22224 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22225 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22226 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
22227 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22228 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
22229 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22230 | ( |
22231 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22232 | ## ----------------------------------------- ## |
22233 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22234 | ## ----------------------------------------- ## | |
bdcade0a MB |
22235 | _ASBOX |
22236 | ) | | |
22237 | sed "s/^/$as_me: WARNING: /" >&2 | |
22238 | ;; | |
22239 | esac | |
22240 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
22241 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
22242 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22244 | else | |
22245 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
22246 | fi | |
22247 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
22248 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
22249 | ||
22250 | fi | |
22251 | if test $ac_cv_header_ext_hash_map = yes; then | |
22252 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22253 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22254 | cat >conftest.$ac_ext <<_ACEOF | |
22255 | /* confdefs.h. */ | |
22256 | _ACEOF | |
22257 | cat confdefs.h >>conftest.$ac_ext | |
22258 | cat >>conftest.$ac_ext <<_ACEOF | |
22259 | /* end confdefs.h. */ | |
22260 | #include <ext/hash_map> | |
22261 | #include <ext/hash_set> | |
22262 | int | |
22263 | main () | |
22264 | { | |
22265 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
22266 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
22267 | ; | |
22268 | return 0; | |
22269 | } | |
22270 | _ACEOF | |
22271 | rm -f conftest.$ac_objext | |
22272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22273 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22274 | ac_status=$? |
ac1cb8d3 VS |
22275 | grep -v '^ *+' conftest.er1 >conftest.err |
22276 | rm -f conftest.er1 | |
22277 | cat conftest.err >&5 | |
bdcade0a MB |
22278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22279 | (exit $ac_status); } && | |
6ebeb4c7 | 22280 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22282 | (eval $ac_try) 2>&5 | |
22283 | ac_status=$? | |
22284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22285 | (exit $ac_status); }; } && | |
22286 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22288 | (eval $ac_try) 2>&5 | |
22289 | ac_status=$? | |
22290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22291 | (exit $ac_status); }; }; then | |
22292 | echo "$as_me:$LINENO: result: yes" >&5 | |
22293 | echo "${ECHO_T}yes" >&6 | |
22294 | cat >>confdefs.h <<\_ACEOF | |
22295 | #define HAVE_EXT_HASH_MAP 1 | |
22296 | _ACEOF | |
22297 | ||
22298 | cat >>confdefs.h <<\_ACEOF | |
22299 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
22300 | _ACEOF | |
22301 | ||
22302 | else | |
22303 | echo "$as_me: failed program was:" >&5 | |
22304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22305 | ||
22306 | echo "$as_me:$LINENO: result: no" >&5 | |
22307 | echo "${ECHO_T}no" >&6 | |
22308 | fi | |
ac1cb8d3 | 22309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22310 | |
22311 | fi | |
22312 | ||
22313 | ||
a848cd7e SC |
22314 | |
22315 | ac_ext=c | |
22316 | ac_cpp='$CPP $CPPFLAGS' | |
22317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22319 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22320 | ||
22321 | fi | |
22322 | ||
22323 | ||
22324 | SEARCH_INCLUDE="\ | |
22325 | /usr/local/include \ | |
22326 | \ | |
22327 | /usr/Motif-2.1/include \ | |
22328 | /usr/Motif-1.2/include \ | |
22329 | /usr/include/Motif1.2 \ | |
22330 | /opt/xpm/include/X11 \ | |
22331 | /opt/GBxpm/include/ \ | |
22332 | /opt/GBxpm/X11/include/ \ | |
22333 | \ | |
22334 | /usr/dt/include \ | |
22335 | /usr/openwin/include \ | |
22336 | \ | |
22337 | /usr/include/Xm \ | |
22338 | \ | |
22339 | /usr/X11R6/include \ | |
22340 | /usr/X11R6.4/include \ | |
22341 | /usr/X11R5/include \ | |
22342 | /usr/X11R4/include \ | |
22343 | \ | |
22344 | /usr/include/X11R6 \ | |
22345 | /usr/include/X11R5 \ | |
22346 | /usr/include/X11R4 \ | |
22347 | \ | |
22348 | /usr/local/X11R6/include \ | |
22349 | /usr/local/X11R5/include \ | |
22350 | /usr/local/X11R4/include \ | |
22351 | \ | |
22352 | /usr/local/include/X11R6 \ | |
22353 | /usr/local/include/X11R5 \ | |
22354 | /usr/local/include/X11R4 \ | |
22355 | \ | |
22356 | /usr/X11/include \ | |
22357 | /usr/include/X11 \ | |
22358 | /usr/local/X11/include \ | |
22359 | /usr/local/include/X11 \ | |
22360 | \ | |
22361 | /usr/X386/include \ | |
22362 | /usr/x386/include \ | |
22363 | /usr/XFree86/include/X11 \ | |
22364 | \ | |
e051b34e MW |
22365 | /usr/pkg/include \ |
22366 | \ | |
a848cd7e SC |
22367 | X:/XFree86/include \ |
22368 | X:/XFree86/include/X11 \ | |
22369 | \ | |
22370 | /usr/include/gtk \ | |
22371 | /usr/local/include/gtk \ | |
22372 | /usr/include/glib \ | |
22373 | /usr/local/include/glib \ | |
22374 | \ | |
22375 | /usr/include/qt \ | |
22376 | /usr/local/include/qt \ | |
22377 | \ | |
22378 | /usr/local/arm/3.3.2/include \ | |
22379 | \ | |
22380 | /usr/include/windows \ | |
22381 | /usr/include/wine \ | |
22382 | /usr/local/include/wine \ | |
22383 | \ | |
22384 | /usr/unsupported/include \ | |
22385 | /usr/athena/include \ | |
22386 | /usr/local/x11r5/include \ | |
22387 | /usr/lpp/Xamples/include \ | |
22388 | \ | |
22389 | /usr/openwin/share/include" | |
22390 | ||
07158944 | 22391 | SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`" |
a848cd7e | 22392 | |
3eca31dc MW |
22393 | if test "$build" != "$host" -a "$GCC" = yes; then |
22394 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
22395 | cross_root=`dirname $cross_root` | |
22396 | cross_root=`dirname $cross_root` | |
22397 | ||
22398 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
22399 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
22400 | ||
22401 | if test -z "$PKG_CONFIG_PATH"; then | |
22402 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
22403 | export PKG_CONFIG_PATH | |
22404 | fi | |
22405 | ||
22406 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
22407 | ||
22408 | ac_find_includes= | |
22409 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
22410 | do | |
22411 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
22412 | ac_find_includes=$ac_dir | |
22413 | break | |
22414 | fi | |
22415 | done | |
22416 | ||
22417 | x_includes=$ac_find_includes | |
22418 | fi | |
22419 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
22420 | ||
22421 | ac_find_libraries= | |
22422 | for ac_dir in $SEARCH_LIB /usr/lib; | |
22423 | do | |
22424 | for ac_extension in a so sl dylib dll.a; do | |
22425 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
22426 | ac_find_libraries=$ac_dir | |
22427 | break 2 | |
22428 | fi | |
22429 | done | |
22430 | done | |
22431 | ||
22432 | x_libraries=$ac_find_libraries | |
22433 | fi | |
22434 | fi | |
22435 | fi | |
22436 | ||
a848cd7e SC |
22437 | |
22438 | cat >confcache <<\_ACEOF | |
22439 | # This file is a shell script that caches the results of configure | |
22440 | # tests run on this system so they can be shared between configure | |
22441 | # scripts and configure runs, see configure's option --config-cache. | |
22442 | # It is not useful on other systems. If it contains results you don't | |
22443 | # want to keep, you may remove or edit it. | |
22444 | # | |
22445 | # config.status only pays attention to the cache file if you give it | |
22446 | # the --recheck option to rerun configure. | |
22447 | # | |
22448 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
22449 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
22450 | # following values. | |
22451 | ||
22452 | _ACEOF | |
22453 | ||
22454 | # The following way of writing the cache mishandles newlines in values, | |
22455 | # but we know of no workaround that is simple, portable, and efficient. | |
22456 | # So, don't put newlines in cache variables' values. | |
22457 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22458 | # and sets the high bit in the cache file unless we assign to the vars. | |
22459 | { | |
22460 | (set) 2>&1 | | |
22461 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22462 | *ac_space=\ *) | |
22463 | # `set' does not quote correctly, so add quotes (double-quote | |
22464 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
22465 | sed -n \ | |
ac1cb8d3 VS |
22466 | "s/'/'\\\\''/g; |
22467 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
22468 | ;; |
22469 | *) | |
22470 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22471 | sed -n \ | |
ac1cb8d3 | 22472 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
22473 | ;; |
22474 | esac; | |
22475 | } | | |
22476 | sed ' | |
22477 | t clear | |
22478 | : clear | |
22479 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
22480 | t end | |
22481 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
22482 | : end' >>confcache | |
22483 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
22484 | if test -w $cache_file; then | |
22485 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
22486 | cat confcache >$cache_file | |
22487 | else | |
22488 | echo "not updating unwritable cache $cache_file" | |
22489 | fi | |
22490 | fi | |
22491 | rm -f confcache | |
22492 | ||
22493 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
22494 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
22495 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
22496 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
22497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22498 | else | |
22499 | ||
22500 | cat >conftest.$ac_ext <<_ACEOF | |
22501 | /* confdefs.h. */ | |
22502 | _ACEOF | |
22503 | cat confdefs.h >>conftest.$ac_ext | |
22504 | cat >>conftest.$ac_ext <<_ACEOF | |
22505 | /* end confdefs.h. */ | |
22506 | #include <features.h> | |
22507 | int | |
22508 | main () | |
22509 | { | |
22510 | ||
22511 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 22512 | not glibc 2.1 |
a848cd7e SC |
22513 | #endif |
22514 | ||
22515 | ; | |
22516 | return 0; | |
22517 | } | |
22518 | _ACEOF | |
22519 | rm -f conftest.$ac_objext | |
22520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22521 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22522 | ac_status=$? |
ac1cb8d3 VS |
22523 | grep -v '^ *+' conftest.er1 >conftest.err |
22524 | rm -f conftest.er1 | |
22525 | cat conftest.err >&5 | |
a848cd7e SC |
22526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22527 | (exit $ac_status); } && | |
6ebeb4c7 | 22528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22530 | (eval $ac_try) 2>&5 | |
22531 | ac_status=$? | |
22532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22533 | (exit $ac_status); }; } && | |
22534 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22536 | (eval $ac_try) 2>&5 | |
22537 | ac_status=$? | |
22538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22539 | (exit $ac_status); }; }; then | |
22540 | ||
22541 | wx_cv_lib_glibc21=yes | |
22542 | ||
22543 | else | |
22544 | echo "$as_me: failed program was:" >&5 | |
22545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22546 | ||
22547 | ||
22548 | wx_cv_lib_glibc21=no | |
22549 | ||
22550 | ||
22551 | fi | |
ac1cb8d3 | 22552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22553 | |
22554 | fi | |
22555 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
22556 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
22557 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
22558 | cat >>confdefs.h <<\_ACEOF | |
22559 | #define wxHAVE_GLIBC2 1 | |
22560 | _ACEOF | |
22561 | ||
22562 | fi | |
22563 | fi | |
22564 | ||
22565 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
22566 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
22567 | cat >>confdefs.h <<\_ACEOF | |
22568 | #define _GNU_SOURCE 1 | |
22569 | _ACEOF | |
22570 | ||
22571 | fi | |
22572 | fi | |
22573 | ||
22574 | ||
22575 | ||
22576 | if test "$wxUSE_REGEX" != "no"; then | |
22577 | cat >>confdefs.h <<\_ACEOF | |
22578 | #define wxUSE_REGEX 1 | |
22579 | _ACEOF | |
22580 | ||
22581 | ||
22582 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
22583 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
22584 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
22585 | wxUSE_REGEX=builtin | |
22586 | fi | |
22587 | ||
22588 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
22589 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22590 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22591 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22592 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22594 | fi | |
22595 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22596 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22597 | else | |
22598 | # Is the header compilable? | |
22599 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
22600 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
22601 | cat >conftest.$ac_ext <<_ACEOF | |
22602 | /* confdefs.h. */ | |
22603 | _ACEOF | |
22604 | cat confdefs.h >>conftest.$ac_ext | |
22605 | cat >>conftest.$ac_ext <<_ACEOF | |
22606 | /* end confdefs.h. */ | |
22607 | $ac_includes_default | |
22608 | #include <regex.h> | |
22609 | _ACEOF | |
22610 | rm -f conftest.$ac_objext | |
22611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22612 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22613 | ac_status=$? |
ac1cb8d3 VS |
22614 | grep -v '^ *+' conftest.er1 >conftest.err |
22615 | rm -f conftest.er1 | |
22616 | cat conftest.err >&5 | |
a848cd7e SC |
22617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22618 | (exit $ac_status); } && | |
6ebeb4c7 | 22619 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22621 | (eval $ac_try) 2>&5 | |
22622 | ac_status=$? | |
22623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22624 | (exit $ac_status); }; } && | |
22625 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22627 | (eval $ac_try) 2>&5 | |
22628 | ac_status=$? | |
22629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22630 | (exit $ac_status); }; }; then | |
22631 | ac_header_compiler=yes | |
22632 | else | |
22633 | echo "$as_me: failed program was:" >&5 | |
22634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22635 | ||
22636 | ac_header_compiler=no | |
22637 | fi | |
ac1cb8d3 | 22638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22639 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22640 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22641 | ||
22642 | # Is the header present? | |
22643 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
22644 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
22645 | cat >conftest.$ac_ext <<_ACEOF | |
22646 | /* confdefs.h. */ | |
22647 | _ACEOF | |
22648 | cat confdefs.h >>conftest.$ac_ext | |
22649 | cat >>conftest.$ac_ext <<_ACEOF | |
22650 | /* end confdefs.h. */ | |
22651 | #include <regex.h> | |
22652 | _ACEOF | |
22653 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22654 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22655 | ac_status=$? | |
22656 | grep -v '^ *+' conftest.er1 >conftest.err | |
22657 | rm -f conftest.er1 | |
22658 | cat conftest.err >&5 | |
22659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22660 | (exit $ac_status); } >/dev/null; then | |
22661 | if test -s conftest.err; then | |
22662 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22663 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22664 | else |
22665 | ac_cpp_err= | |
22666 | fi | |
22667 | else | |
22668 | ac_cpp_err=yes | |
22669 | fi | |
22670 | if test -z "$ac_cpp_err"; then | |
22671 | ac_header_preproc=yes | |
22672 | else | |
22673 | echo "$as_me: failed program was:" >&5 | |
22674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22675 | ||
22676 | ac_header_preproc=no | |
22677 | fi | |
22678 | rm -f conftest.err conftest.$ac_ext | |
22679 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22680 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22681 | ||
22682 | # So? What about this header? | |
ac1cb8d3 VS |
22683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22684 | yes:no: ) | |
a848cd7e SC |
22685 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22686 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22687 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
22688 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
22689 | ac_header_preproc=yes | |
a848cd7e | 22690 | ;; |
ac1cb8d3 | 22691 | no:yes:* ) |
a848cd7e SC |
22692 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
22693 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22694 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
22695 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
22696 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
22697 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
22698 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22699 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22700 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
22701 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22702 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
22703 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22704 | ( |
22705 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22706 | ## ----------------------------------------- ## |
22707 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22708 | ## ----------------------------------------- ## | |
a848cd7e SC |
22709 | _ASBOX |
22710 | ) | | |
22711 | sed "s/^/$as_me: WARNING: /" >&2 | |
22712 | ;; | |
22713 | esac | |
22714 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22715 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22716 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22718 | else | |
22719 | ac_cv_header_regex_h=$ac_header_preproc | |
22720 | fi | |
22721 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22722 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22723 | ||
22724 | fi | |
22725 | if test $ac_cv_header_regex_h = yes; then | |
22726 | ||
22727 | for ac_func in regcomp | |
22728 | do | |
22729 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22730 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22731 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22732 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22734 | else | |
22735 | cat >conftest.$ac_ext <<_ACEOF | |
22736 | /* confdefs.h. */ | |
22737 | _ACEOF | |
22738 | cat confdefs.h >>conftest.$ac_ext | |
22739 | cat >>conftest.$ac_ext <<_ACEOF | |
22740 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
22741 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22742 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22743 | #define $ac_func innocuous_$ac_func | |
22744 | ||
a848cd7e SC |
22745 | /* System header to define __stub macros and hopefully few prototypes, |
22746 | which can conflict with char $ac_func (); below. | |
22747 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22748 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 22749 | |
a848cd7e SC |
22750 | #ifdef __STDC__ |
22751 | # include <limits.h> | |
22752 | #else | |
22753 | # include <assert.h> | |
22754 | #endif | |
ac1cb8d3 VS |
22755 | |
22756 | #undef $ac_func | |
22757 | ||
a848cd7e SC |
22758 | /* Override any gcc2 internal prototype to avoid an error. */ |
22759 | #ifdef __cplusplus | |
22760 | extern "C" | |
22761 | { | |
22762 | #endif | |
22763 | /* We use char because int might match the return type of a gcc2 | |
22764 | builtin and then its argument prototype would still apply. */ | |
22765 | char $ac_func (); | |
22766 | /* The GNU C library defines this for functions which it implements | |
22767 | to always fail with ENOSYS. Some functions are actually named | |
22768 | something starting with __ and the normal name is an alias. */ | |
22769 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22770 | choke me | |
22771 | #else | |
22772 | char (*f) () = $ac_func; | |
22773 | #endif | |
22774 | #ifdef __cplusplus | |
22775 | } | |
22776 | #endif | |
22777 | ||
22778 | int | |
22779 | main () | |
22780 | { | |
22781 | return f != $ac_func; | |
22782 | ; | |
22783 | return 0; | |
22784 | } | |
22785 | _ACEOF | |
22786 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22788 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22789 | ac_status=$? |
ac1cb8d3 VS |
22790 | grep -v '^ *+' conftest.er1 >conftest.err |
22791 | rm -f conftest.er1 | |
22792 | cat conftest.err >&5 | |
a848cd7e SC |
22793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22794 | (exit $ac_status); } && | |
6ebeb4c7 | 22795 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22797 | (eval $ac_try) 2>&5 | |
22798 | ac_status=$? | |
22799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22800 | (exit $ac_status); }; } && | |
22801 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22803 | (eval $ac_try) 2>&5 | |
22804 | ac_status=$? | |
22805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22806 | (exit $ac_status); }; }; then | |
22807 | eval "$as_ac_var=yes" | |
22808 | else | |
22809 | echo "$as_me: failed program was:" >&5 | |
22810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22811 | ||
22812 | eval "$as_ac_var=no" | |
22813 | fi | |
ac1cb8d3 VS |
22814 | rm -f conftest.err conftest.$ac_objext \ |
22815 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22816 | fi |
22817 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22818 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22819 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22820 | cat >>confdefs.h <<_ACEOF | |
22821 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22822 | _ACEOF | |
22823 | ||
22824 | fi | |
22825 | done | |
22826 | ||
22827 | fi | |
22828 | ||
22829 | ||
22830 | ||
22831 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
22832 | if test "$wxUSE_REGEX" = "sys" ; then | |
22833 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
22834 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
22835 | { (exit 1); exit 1; }; } | |
22836 | else | |
22837 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
22838 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
22839 | wxUSE_REGEX=builtin | |
22840 | fi | |
22841 | else | |
22842 | wxUSE_REGEX=sys | |
22843 | cat >>confdefs.h <<\_ACEOF | |
22844 | #define WX_NO_REGEX_ADVANCED 1 | |
22845 | _ACEOF | |
22846 | ||
22847 | fi | |
22848 | fi | |
22849 | fi | |
22850 | ||
22851 | ||
22852 | ZLIB_LINK= | |
22853 | if test "$wxUSE_ZLIB" != "no" ; then | |
22854 | cat >>confdefs.h <<\_ACEOF | |
22855 | #define wxUSE_ZLIB 1 | |
22856 | _ACEOF | |
22857 | ||
22858 | ||
22859 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
22860 | if test "$USE_DARWIN" = 1; then | |
22861 | system_zlib_h_ok="yes" | |
22862 | else | |
22863 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
22864 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
22865 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22867 | else | |
22868 | if test "$cross_compiling" = yes; then | |
22869 | unset ac_cv_header_zlib_h | |
22870 | ||
22871 | else | |
22872 | cat >conftest.$ac_ext <<_ACEOF | |
22873 | /* confdefs.h. */ | |
22874 | _ACEOF | |
22875 | cat confdefs.h >>conftest.$ac_ext | |
22876 | cat >>conftest.$ac_ext <<_ACEOF | |
22877 | /* end confdefs.h. */ | |
22878 | ||
22879 | #include <zlib.h> | |
22880 | #include <stdio.h> | |
22881 | ||
22882 | int main() | |
22883 | { | |
22884 | FILE *f=fopen("conftestval", "w"); | |
22885 | if (!f) exit(1); | |
22886 | fprintf(f, "%s", | |
22887 | ZLIB_VERSION[0] == '1' && | |
22888 | (ZLIB_VERSION[2] > '1' || | |
22889 | (ZLIB_VERSION[2] == '1' && | |
22890 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
22891 | exit(0); | |
22892 | } | |
22893 | ||
22894 | _ACEOF | |
22895 | rm -f conftest$ac_exeext | |
22896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22897 | (eval $ac_link) 2>&5 | |
22898 | ac_status=$? | |
22899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22900 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22902 | (eval $ac_try) 2>&5 | |
22903 | ac_status=$? | |
22904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22905 | (exit $ac_status); }; }; then | |
22906 | ac_cv_header_zlib_h=`cat conftestval` | |
22907 | else | |
22908 | echo "$as_me: program exited with status $ac_status" >&5 | |
22909 | echo "$as_me: failed program was:" >&5 | |
22910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22911 | ||
22912 | ( exit $ac_status ) | |
22913 | ac_cv_header_zlib_h=no | |
22914 | fi | |
ac1cb8d3 | 22915 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22916 | fi |
22917 | ||
22918 | fi | |
22919 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22920 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22921 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22922 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
22923 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
22924 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22926 | fi | |
22927 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22928 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22929 | else | |
22930 | # Is the header compilable? | |
22931 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
22932 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
22933 | cat >conftest.$ac_ext <<_ACEOF | |
22934 | /* confdefs.h. */ | |
22935 | _ACEOF | |
22936 | cat confdefs.h >>conftest.$ac_ext | |
22937 | cat >>conftest.$ac_ext <<_ACEOF | |
22938 | /* end confdefs.h. */ | |
22939 | $ac_includes_default | |
22940 | #include <zlib.h> | |
22941 | _ACEOF | |
22942 | rm -f conftest.$ac_objext | |
22943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22944 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22945 | ac_status=$? |
ac1cb8d3 VS |
22946 | grep -v '^ *+' conftest.er1 >conftest.err |
22947 | rm -f conftest.er1 | |
22948 | cat conftest.err >&5 | |
a848cd7e SC |
22949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22950 | (exit $ac_status); } && | |
6ebeb4c7 | 22951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22953 | (eval $ac_try) 2>&5 | |
22954 | ac_status=$? | |
22955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22956 | (exit $ac_status); }; } && | |
22957 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22959 | (eval $ac_try) 2>&5 | |
22960 | ac_status=$? | |
22961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22962 | (exit $ac_status); }; }; then | |
22963 | ac_header_compiler=yes | |
22964 | else | |
22965 | echo "$as_me: failed program was:" >&5 | |
22966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22967 | ||
22968 | ac_header_compiler=no | |
22969 | fi | |
ac1cb8d3 | 22970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22971 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22972 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22973 | ||
22974 | # Is the header present? | |
22975 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
22976 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
22977 | cat >conftest.$ac_ext <<_ACEOF | |
22978 | /* confdefs.h. */ | |
22979 | _ACEOF | |
22980 | cat confdefs.h >>conftest.$ac_ext | |
22981 | cat >>conftest.$ac_ext <<_ACEOF | |
22982 | /* end confdefs.h. */ | |
22983 | #include <zlib.h> | |
22984 | _ACEOF | |
22985 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22986 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22987 | ac_status=$? | |
22988 | grep -v '^ *+' conftest.er1 >conftest.err | |
22989 | rm -f conftest.er1 | |
22990 | cat conftest.err >&5 | |
22991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22992 | (exit $ac_status); } >/dev/null; then | |
22993 | if test -s conftest.err; then | |
22994 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22995 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22996 | else |
22997 | ac_cpp_err= | |
22998 | fi | |
22999 | else | |
23000 | ac_cpp_err=yes | |
23001 | fi | |
23002 | if test -z "$ac_cpp_err"; then | |
23003 | ac_header_preproc=yes | |
23004 | else | |
23005 | echo "$as_me: failed program was:" >&5 | |
23006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23007 | ||
23008 | ac_header_preproc=no | |
23009 | fi | |
23010 | rm -f conftest.err conftest.$ac_ext | |
23011 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23012 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23013 | ||
23014 | # So? What about this header? | |
ac1cb8d3 VS |
23015 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23016 | yes:no: ) | |
a848cd7e SC |
23017 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23018 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23019 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
23020 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
23021 | ac_header_preproc=yes | |
a848cd7e | 23022 | ;; |
ac1cb8d3 | 23023 | no:yes:* ) |
a848cd7e SC |
23024 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
23025 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23026 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
23027 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
23028 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
23029 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
23030 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23031 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23032 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
23033 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23034 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
23035 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23036 | ( |
23037 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23038 | ## ----------------------------------------- ## |
23039 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23040 | ## ----------------------------------------- ## | |
a848cd7e SC |
23041 | _ASBOX |
23042 | ) | | |
23043 | sed "s/^/$as_me: WARNING: /" >&2 | |
23044 | ;; | |
23045 | esac | |
23046 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
23047 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
23048 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23050 | else | |
23051 | ac_cv_header_zlib_h=$ac_header_preproc | |
23052 | fi | |
23053 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23054 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23055 | ||
23056 | fi | |
23057 | ||
23058 | ||
23059 | ||
23060 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
23061 | fi | |
23062 | ||
23063 | if test "$system_zlib_h_ok" = "yes"; then | |
23064 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
23065 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
23066 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
23067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23068 | else | |
23069 | ac_check_lib_save_LIBS=$LIBS | |
23070 | LIBS="-lz $LIBS" | |
23071 | cat >conftest.$ac_ext <<_ACEOF | |
23072 | /* confdefs.h. */ | |
23073 | _ACEOF | |
23074 | cat confdefs.h >>conftest.$ac_ext | |
23075 | cat >>conftest.$ac_ext <<_ACEOF | |
23076 | /* end confdefs.h. */ | |
23077 | ||
23078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23079 | #ifdef __cplusplus | |
23080 | extern "C" | |
23081 | #endif | |
23082 | /* We use char because int might match the return type of a gcc2 | |
23083 | builtin and then its argument prototype would still apply. */ | |
23084 | char deflate (); | |
23085 | int | |
23086 | main () | |
23087 | { | |
23088 | deflate (); | |
23089 | ; | |
23090 | return 0; | |
23091 | } | |
23092 | _ACEOF | |
23093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23095 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23096 | ac_status=$? |
ac1cb8d3 VS |
23097 | grep -v '^ *+' conftest.er1 >conftest.err |
23098 | rm -f conftest.er1 | |
23099 | cat conftest.err >&5 | |
a848cd7e SC |
23100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23101 | (exit $ac_status); } && | |
6ebeb4c7 | 23102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23104 | (eval $ac_try) 2>&5 | |
23105 | ac_status=$? | |
23106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23107 | (exit $ac_status); }; } && | |
23108 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23110 | (eval $ac_try) 2>&5 | |
23111 | ac_status=$? | |
23112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23113 | (exit $ac_status); }; }; then | |
23114 | ac_cv_lib_z_deflate=yes | |
23115 | else | |
23116 | echo "$as_me: failed program was:" >&5 | |
23117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23118 | ||
23119 | ac_cv_lib_z_deflate=no | |
23120 | fi | |
ac1cb8d3 VS |
23121 | rm -f conftest.err conftest.$ac_objext \ |
23122 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23123 | LIBS=$ac_check_lib_save_LIBS |
23124 | fi | |
23125 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
23126 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
23127 | if test $ac_cv_lib_z_deflate = yes; then | |
23128 | ZLIB_LINK=" -lz" | |
23129 | fi | |
23130 | ||
23131 | fi | |
23132 | ||
23133 | if test "x$ZLIB_LINK" = "x" ; then | |
23134 | if test "$wxUSE_ZLIB" = "sys" ; then | |
23135 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
23136 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
23137 | { (exit 1); exit 1; }; } | |
23138 | else | |
23139 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
23140 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
23141 | wxUSE_ZLIB=builtin | |
23142 | fi | |
23143 | else | |
23144 | wxUSE_ZLIB=sys | |
23145 | fi | |
23146 | fi | |
23147 | fi | |
23148 | ||
23149 | ||
23150 | PNG_LINK= | |
23151 | if test "$wxUSE_LIBPNG" != "no" ; then | |
23152 | cat >>confdefs.h <<\_ACEOF | |
23153 | #define wxUSE_LIBPNG 1 | |
23154 | _ACEOF | |
23155 | ||
23156 | ||
23157 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
23158 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
23159 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
23160 | wxUSE_LIBPNG=sys | |
23161 | fi | |
23162 | ||
23163 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
23164 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
23165 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
23166 | wxUSE_LIBPNG=builtin | |
23167 | fi | |
23168 | ||
23169 | if test "$wxUSE_MGL" != 1 ; then | |
23170 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
23171 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
23172 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
23173 | if test "${ac_cv_header_png_h+set}" = set; then | |
23174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23175 | else | |
23176 | if test "$cross_compiling" = yes; then | |
23177 | unset ac_cv_header_png_h | |
23178 | ||
23179 | else | |
23180 | cat >conftest.$ac_ext <<_ACEOF | |
23181 | /* confdefs.h. */ | |
23182 | _ACEOF | |
23183 | cat confdefs.h >>conftest.$ac_ext | |
23184 | cat >>conftest.$ac_ext <<_ACEOF | |
23185 | /* end confdefs.h. */ | |
23186 | ||
23187 | #include <png.h> | |
23188 | #include <stdio.h> | |
23189 | ||
23190 | int main() | |
23191 | { | |
23192 | FILE *f=fopen("conftestval", "w"); | |
23193 | if (!f) exit(1); | |
23194 | fprintf(f, "%s", | |
23195 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
23196 | exit(0); | |
23197 | } | |
23198 | ||
23199 | _ACEOF | |
23200 | rm -f conftest$ac_exeext | |
23201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23202 | (eval $ac_link) 2>&5 | |
23203 | ac_status=$? | |
23204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23205 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23207 | (eval $ac_try) 2>&5 | |
23208 | ac_status=$? | |
23209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23210 | (exit $ac_status); }; }; then | |
23211 | ac_cv_header_png_h=`cat conftestval` | |
23212 | else | |
23213 | echo "$as_me: program exited with status $ac_status" >&5 | |
23214 | echo "$as_me: failed program was:" >&5 | |
23215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23216 | ||
23217 | ( exit $ac_status ) | |
23218 | ac_cv_header_png_h=no | |
23219 | fi | |
ac1cb8d3 | 23220 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23221 | fi |
23222 | ||
23223 | fi | |
23224 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23225 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23226 | if test "${ac_cv_header_png_h+set}" = set; then | |
23227 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
23228 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
23229 | if test "${ac_cv_header_png_h+set}" = set; then | |
23230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23231 | fi | |
23232 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23233 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23234 | else | |
23235 | # Is the header compilable? | |
23236 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
23237 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
23238 | cat >conftest.$ac_ext <<_ACEOF | |
23239 | /* confdefs.h. */ | |
23240 | _ACEOF | |
23241 | cat confdefs.h >>conftest.$ac_ext | |
23242 | cat >>conftest.$ac_ext <<_ACEOF | |
23243 | /* end confdefs.h. */ | |
23244 | $ac_includes_default | |
23245 | #include <png.h> | |
23246 | _ACEOF | |
23247 | rm -f conftest.$ac_objext | |
23248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23249 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23250 | ac_status=$? |
ac1cb8d3 VS |
23251 | grep -v '^ *+' conftest.er1 >conftest.err |
23252 | rm -f conftest.er1 | |
23253 | cat conftest.err >&5 | |
a848cd7e SC |
23254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23255 | (exit $ac_status); } && | |
6ebeb4c7 | 23256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23258 | (eval $ac_try) 2>&5 | |
23259 | ac_status=$? | |
23260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23261 | (exit $ac_status); }; } && | |
23262 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23264 | (eval $ac_try) 2>&5 | |
23265 | ac_status=$? | |
23266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23267 | (exit $ac_status); }; }; then | |
23268 | ac_header_compiler=yes | |
23269 | else | |
23270 | echo "$as_me: failed program was:" >&5 | |
23271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23272 | ||
23273 | ac_header_compiler=no | |
23274 | fi | |
ac1cb8d3 | 23275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23276 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23277 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23278 | ||
23279 | # Is the header present? | |
23280 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
23281 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
23282 | cat >conftest.$ac_ext <<_ACEOF | |
23283 | /* confdefs.h. */ | |
23284 | _ACEOF | |
23285 | cat confdefs.h >>conftest.$ac_ext | |
23286 | cat >>conftest.$ac_ext <<_ACEOF | |
23287 | /* end confdefs.h. */ | |
23288 | #include <png.h> | |
23289 | _ACEOF | |
23290 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23291 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23292 | ac_status=$? | |
23293 | grep -v '^ *+' conftest.er1 >conftest.err | |
23294 | rm -f conftest.er1 | |
23295 | cat conftest.err >&5 | |
23296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23297 | (exit $ac_status); } >/dev/null; then | |
23298 | if test -s conftest.err; then | |
23299 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23300 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23301 | else |
23302 | ac_cpp_err= | |
23303 | fi | |
23304 | else | |
23305 | ac_cpp_err=yes | |
23306 | fi | |
23307 | if test -z "$ac_cpp_err"; then | |
23308 | ac_header_preproc=yes | |
23309 | else | |
23310 | echo "$as_me: failed program was:" >&5 | |
23311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23312 | ||
23313 | ac_header_preproc=no | |
23314 | fi | |
23315 | rm -f conftest.err conftest.$ac_ext | |
23316 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23317 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23318 | ||
23319 | # So? What about this header? | |
ac1cb8d3 VS |
23320 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23321 | yes:no: ) | |
a848cd7e SC |
23322 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23323 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23324 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
23325 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
23326 | ac_header_preproc=yes | |
a848cd7e | 23327 | ;; |
ac1cb8d3 | 23328 | no:yes:* ) |
a848cd7e SC |
23329 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
23330 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23331 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
23332 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
23333 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
23334 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
23335 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23336 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23337 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
23338 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23339 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
23340 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23341 | ( |
23342 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23343 | ## ----------------------------------------- ## |
23344 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23345 | ## ----------------------------------------- ## | |
a848cd7e SC |
23346 | _ASBOX |
23347 | ) | | |
23348 | sed "s/^/$as_me: WARNING: /" >&2 | |
23349 | ;; | |
23350 | esac | |
23351 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
23352 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
23353 | if test "${ac_cv_header_png_h+set}" = set; then | |
23354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23355 | else | |
23356 | ac_cv_header_png_h=$ac_header_preproc | |
23357 | fi | |
23358 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23359 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23360 | ||
23361 | fi | |
23362 | ||
23363 | ||
23364 | ||
23365 | if test "$ac_cv_header_png_h" = "yes"; then | |
23366 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
23367 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
23368 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
23369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23370 | else | |
23371 | ac_check_lib_save_LIBS=$LIBS | |
23372 | LIBS="-lpng -lz -lm $LIBS" | |
23373 | cat >conftest.$ac_ext <<_ACEOF | |
23374 | /* confdefs.h. */ | |
23375 | _ACEOF | |
23376 | cat confdefs.h >>conftest.$ac_ext | |
23377 | cat >>conftest.$ac_ext <<_ACEOF | |
23378 | /* end confdefs.h. */ | |
23379 | ||
23380 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23381 | #ifdef __cplusplus | |
23382 | extern "C" | |
23383 | #endif | |
23384 | /* We use char because int might match the return type of a gcc2 | |
23385 | builtin and then its argument prototype would still apply. */ | |
23386 | char png_check_sig (); | |
23387 | int | |
23388 | main () | |
23389 | { | |
23390 | png_check_sig (); | |
23391 | ; | |
23392 | return 0; | |
23393 | } | |
23394 | _ACEOF | |
23395 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23397 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23398 | ac_status=$? |
ac1cb8d3 VS |
23399 | grep -v '^ *+' conftest.er1 >conftest.err |
23400 | rm -f conftest.er1 | |
23401 | cat conftest.err >&5 | |
a848cd7e SC |
23402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23403 | (exit $ac_status); } && | |
6ebeb4c7 | 23404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23406 | (eval $ac_try) 2>&5 | |
23407 | ac_status=$? | |
23408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23409 | (exit $ac_status); }; } && | |
23410 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23412 | (eval $ac_try) 2>&5 | |
23413 | ac_status=$? | |
23414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23415 | (exit $ac_status); }; }; then | |
23416 | ac_cv_lib_png_png_check_sig=yes | |
23417 | else | |
23418 | echo "$as_me: failed program was:" >&5 | |
23419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23420 | ||
23421 | ac_cv_lib_png_png_check_sig=no | |
23422 | fi | |
ac1cb8d3 VS |
23423 | rm -f conftest.err conftest.$ac_objext \ |
23424 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23425 | LIBS=$ac_check_lib_save_LIBS |
23426 | fi | |
23427 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
23428 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
23429 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
23430 | PNG_LINK=" -lpng -lz" | |
23431 | fi | |
23432 | ||
23433 | fi | |
23434 | ||
23435 | if test "x$PNG_LINK" = "x" ; then | |
23436 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
23437 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
23438 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
23439 | { (exit 1); exit 1; }; } | |
23440 | else | |
23441 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
23442 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
23443 | wxUSE_LIBPNG=builtin | |
23444 | fi | |
23445 | else | |
23446 | wxUSE_LIBPNG=sys | |
23447 | fi | |
23448 | fi | |
23449 | fi | |
23450 | ||
23451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
23452 | fi | |
23453 | ||
23454 | ||
23455 | JPEG_LINK= | |
23456 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
23457 | cat >>confdefs.h <<\_ACEOF | |
23458 | #define wxUSE_LIBJPEG 1 | |
23459 | _ACEOF | |
23460 | ||
23461 | ||
23462 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
23463 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
23464 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
23465 | wxUSE_LIBJPEG=sys | |
23466 | fi | |
23467 | ||
23468 | if test "$wxUSE_MGL" != 1 ; then | |
23469 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
23470 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
23471 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
23472 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
23473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23474 | else | |
23475 | cat >conftest.$ac_ext <<_ACEOF | |
23476 | /* confdefs.h. */ | |
23477 | _ACEOF | |
23478 | cat confdefs.h >>conftest.$ac_ext | |
23479 | cat >>conftest.$ac_ext <<_ACEOF | |
23480 | /* end confdefs.h. */ | |
23481 | ||
23482 | #undef HAVE_STDLIB_H | |
23483 | #include <stdio.h> | |
23484 | #include <jpeglib.h> | |
23485 | ||
23486 | int | |
23487 | main () | |
23488 | { | |
23489 | ||
23490 | ||
23491 | ; | |
23492 | return 0; | |
23493 | } | |
23494 | _ACEOF | |
23495 | rm -f conftest.$ac_objext | |
23496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23497 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23498 | ac_status=$? |
ac1cb8d3 VS |
23499 | grep -v '^ *+' conftest.er1 >conftest.err |
23500 | rm -f conftest.er1 | |
23501 | cat conftest.err >&5 | |
a848cd7e SC |
23502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23503 | (exit $ac_status); } && | |
6ebeb4c7 | 23504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23506 | (eval $ac_try) 2>&5 | |
23507 | ac_status=$? | |
23508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23509 | (exit $ac_status); }; } && | |
23510 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23512 | (eval $ac_try) 2>&5 | |
23513 | ac_status=$? | |
23514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23515 | (exit $ac_status); }; }; then | |
23516 | ac_cv_header_jpeglib_h=yes | |
23517 | else | |
23518 | echo "$as_me: failed program was:" >&5 | |
23519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23520 | ||
23521 | ac_cv_header_jpeglib_h=no | |
23522 | ||
23523 | fi | |
ac1cb8d3 | 23524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23525 | |
23526 | fi | |
23527 | ||
23528 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
23529 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
23530 | ||
23531 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
23532 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
23533 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
23534 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
23535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23536 | else | |
23537 | ac_check_lib_save_LIBS=$LIBS | |
23538 | LIBS="-ljpeg $LIBS" | |
23539 | cat >conftest.$ac_ext <<_ACEOF | |
23540 | /* confdefs.h. */ | |
23541 | _ACEOF | |
23542 | cat confdefs.h >>conftest.$ac_ext | |
23543 | cat >>conftest.$ac_ext <<_ACEOF | |
23544 | /* end confdefs.h. */ | |
23545 | ||
23546 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23547 | #ifdef __cplusplus | |
23548 | extern "C" | |
23549 | #endif | |
23550 | /* We use char because int might match the return type of a gcc2 | |
23551 | builtin and then its argument prototype would still apply. */ | |
23552 | char jpeg_read_header (); | |
23553 | int | |
23554 | main () | |
23555 | { | |
23556 | jpeg_read_header (); | |
23557 | ; | |
23558 | return 0; | |
23559 | } | |
23560 | _ACEOF | |
23561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23563 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23564 | ac_status=$? |
ac1cb8d3 VS |
23565 | grep -v '^ *+' conftest.er1 >conftest.err |
23566 | rm -f conftest.er1 | |
23567 | cat conftest.err >&5 | |
a848cd7e SC |
23568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23569 | (exit $ac_status); } && | |
6ebeb4c7 | 23570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23572 | (eval $ac_try) 2>&5 | |
23573 | ac_status=$? | |
23574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23575 | (exit $ac_status); }; } && | |
23576 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23578 | (eval $ac_try) 2>&5 | |
23579 | ac_status=$? | |
23580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23581 | (exit $ac_status); }; }; then | |
23582 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
23583 | else | |
23584 | echo "$as_me: failed program was:" >&5 | |
23585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23586 | ||
23587 | ac_cv_lib_jpeg_jpeg_read_header=no | |
23588 | fi | |
ac1cb8d3 VS |
23589 | rm -f conftest.err conftest.$ac_objext \ |
23590 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23591 | LIBS=$ac_check_lib_save_LIBS |
23592 | fi | |
23593 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
23594 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
23595 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
23596 | JPEG_LINK=" -ljpeg" | |
23597 | fi | |
23598 | ||
23599 | fi | |
23600 | ||
23601 | if test "x$JPEG_LINK" = "x" ; then | |
23602 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
23603 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
23604 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
23605 | { (exit 1); exit 1; }; } | |
23606 | else | |
23607 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
23608 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
23609 | wxUSE_LIBJPEG=builtin | |
23610 | fi | |
23611 | else | |
23612 | wxUSE_LIBJPEG=sys | |
23613 | fi | |
23614 | fi | |
23615 | fi | |
23616 | fi | |
23617 | ||
23618 | ||
23619 | TIFF_LINK= | |
23620 | TIFF_PREREQ_LINKS=-lm | |
23621 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
23622 | cat >>confdefs.h <<\_ACEOF | |
23623 | #define wxUSE_LIBTIFF 1 | |
23624 | _ACEOF | |
23625 | ||
23626 | ||
23627 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
23628 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
23629 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
23630 | fi | |
23631 | if test "$wxUSE_ZLIB" = "sys"; then | |
23632 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
23633 | fi | |
23634 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23635 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23636 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23637 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23639 | fi | |
23640 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23641 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23642 | else | |
23643 | # Is the header compilable? | |
23644 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
23645 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
23646 | cat >conftest.$ac_ext <<_ACEOF | |
23647 | /* confdefs.h. */ | |
23648 | _ACEOF | |
23649 | cat confdefs.h >>conftest.$ac_ext | |
23650 | cat >>conftest.$ac_ext <<_ACEOF | |
23651 | /* end confdefs.h. */ | |
23652 | $ac_includes_default | |
23653 | #include <tiffio.h> | |
23654 | _ACEOF | |
23655 | rm -f conftest.$ac_objext | |
23656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23657 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23658 | ac_status=$? |
ac1cb8d3 VS |
23659 | grep -v '^ *+' conftest.er1 >conftest.err |
23660 | rm -f conftest.er1 | |
23661 | cat conftest.err >&5 | |
a848cd7e SC |
23662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23663 | (exit $ac_status); } && | |
6ebeb4c7 | 23664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23666 | (eval $ac_try) 2>&5 | |
23667 | ac_status=$? | |
23668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23669 | (exit $ac_status); }; } && | |
23670 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23672 | (eval $ac_try) 2>&5 | |
23673 | ac_status=$? | |
23674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23675 | (exit $ac_status); }; }; then | |
23676 | ac_header_compiler=yes | |
23677 | else | |
23678 | echo "$as_me: failed program was:" >&5 | |
23679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23680 | ||
23681 | ac_header_compiler=no | |
23682 | fi | |
ac1cb8d3 | 23683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23684 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23685 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23686 | ||
23687 | # Is the header present? | |
23688 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
23689 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
23690 | cat >conftest.$ac_ext <<_ACEOF | |
23691 | /* confdefs.h. */ | |
23692 | _ACEOF | |
23693 | cat confdefs.h >>conftest.$ac_ext | |
23694 | cat >>conftest.$ac_ext <<_ACEOF | |
23695 | /* end confdefs.h. */ | |
23696 | #include <tiffio.h> | |
23697 | _ACEOF | |
23698 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23699 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23700 | ac_status=$? | |
23701 | grep -v '^ *+' conftest.er1 >conftest.err | |
23702 | rm -f conftest.er1 | |
23703 | cat conftest.err >&5 | |
23704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23705 | (exit $ac_status); } >/dev/null; then | |
23706 | if test -s conftest.err; then | |
23707 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23708 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23709 | else |
23710 | ac_cpp_err= | |
23711 | fi | |
23712 | else | |
23713 | ac_cpp_err=yes | |
23714 | fi | |
23715 | if test -z "$ac_cpp_err"; then | |
23716 | ac_header_preproc=yes | |
23717 | else | |
23718 | echo "$as_me: failed program was:" >&5 | |
23719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23720 | ||
23721 | ac_header_preproc=no | |
23722 | fi | |
23723 | rm -f conftest.err conftest.$ac_ext | |
23724 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23725 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23726 | ||
23727 | # So? What about this header? | |
ac1cb8d3 VS |
23728 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23729 | yes:no: ) | |
a848cd7e SC |
23730 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23731 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23732 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
23733 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
23734 | ac_header_preproc=yes | |
a848cd7e | 23735 | ;; |
ac1cb8d3 | 23736 | no:yes:* ) |
a848cd7e SC |
23737 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
23738 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23739 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
23740 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
23741 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
23742 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
23743 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23744 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23745 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
23746 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23747 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
23748 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23749 | ( |
23750 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23751 | ## ----------------------------------------- ## |
23752 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23753 | ## ----------------------------------------- ## | |
a848cd7e SC |
23754 | _ASBOX |
23755 | ) | | |
23756 | sed "s/^/$as_me: WARNING: /" >&2 | |
23757 | ;; | |
23758 | esac | |
23759 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23760 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23761 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23763 | else | |
23764 | ac_cv_header_tiffio_h=$ac_header_preproc | |
23765 | fi | |
23766 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23767 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23768 | ||
23769 | fi | |
23770 | if test $ac_cv_header_tiffio_h = yes; then | |
23771 | ||
23772 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
23773 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
23774 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
23775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23776 | else | |
23777 | ac_check_lib_save_LIBS=$LIBS | |
23778 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
23779 | cat >conftest.$ac_ext <<_ACEOF | |
23780 | /* confdefs.h. */ | |
23781 | _ACEOF | |
23782 | cat confdefs.h >>conftest.$ac_ext | |
23783 | cat >>conftest.$ac_ext <<_ACEOF | |
23784 | /* end confdefs.h. */ | |
23785 | ||
23786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23787 | #ifdef __cplusplus | |
23788 | extern "C" | |
23789 | #endif | |
23790 | /* We use char because int might match the return type of a gcc2 | |
23791 | builtin and then its argument prototype would still apply. */ | |
23792 | char TIFFError (); | |
23793 | int | |
23794 | main () | |
23795 | { | |
23796 | TIFFError (); | |
23797 | ; | |
23798 | return 0; | |
23799 | } | |
23800 | _ACEOF | |
23801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23803 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23804 | ac_status=$? |
ac1cb8d3 VS |
23805 | grep -v '^ *+' conftest.er1 >conftest.err |
23806 | rm -f conftest.er1 | |
23807 | cat conftest.err >&5 | |
a848cd7e SC |
23808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23809 | (exit $ac_status); } && | |
6ebeb4c7 | 23810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23812 | (eval $ac_try) 2>&5 | |
23813 | ac_status=$? | |
23814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23815 | (exit $ac_status); }; } && | |
23816 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23818 | (eval $ac_try) 2>&5 | |
23819 | ac_status=$? | |
23820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23821 | (exit $ac_status); }; }; then | |
23822 | ac_cv_lib_tiff_TIFFError=yes | |
23823 | else | |
23824 | echo "$as_me: failed program was:" >&5 | |
23825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23826 | ||
23827 | ac_cv_lib_tiff_TIFFError=no | |
23828 | fi | |
ac1cb8d3 VS |
23829 | rm -f conftest.err conftest.$ac_objext \ |
23830 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23831 | LIBS=$ac_check_lib_save_LIBS |
23832 | fi | |
23833 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
23834 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
23835 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
23836 | TIFF_LINK=" -ltiff" | |
23837 | fi | |
23838 | ||
23839 | ||
23840 | ||
23841 | fi | |
23842 | ||
23843 | ||
23844 | ||
23845 | if test "x$TIFF_LINK" = "x" ; then | |
23846 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
23847 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
23848 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
23849 | { (exit 1); exit 1; }; } | |
23850 | else | |
23851 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
23852 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
23853 | wxUSE_LIBTIFF=builtin | |
23854 | fi | |
23855 | else | |
23856 | wxUSE_LIBTIFF=sys | |
23857 | fi | |
23858 | fi | |
23859 | fi | |
23860 | ||
23861 | ||
47a7e797 MW |
23862 | if test "$wxUSE_WCHAR_T" != "yes"; then |
23863 | if test "$wxUSE_EXPAT" != "no"; then | |
23864 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
23865 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
23866 | wxUSE_EXPAT=no | |
23867 | fi | |
23868 | if test "$wxUSE_XML" != "no"; then | |
23869 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
23870 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
23871 | wxUSE_XML=no | |
23872 | fi | |
23873 | fi | |
23874 | ||
a848cd7e SC |
23875 | if test "$wxUSE_EXPAT" != "no"; then |
23876 | wxUSE_XML=yes | |
23877 | cat >>confdefs.h <<\_ACEOF | |
23878 | #define wxUSE_EXPAT 1 | |
23879 | _ACEOF | |
23880 | ||
23881 | cat >>confdefs.h <<\_ACEOF | |
23882 | #define wxUSE_XML 1 | |
23883 | _ACEOF | |
23884 | ||
23885 | ||
23886 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
23887 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23888 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23889 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23890 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23892 | fi | |
23893 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
23894 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
23895 | else | |
23896 | # Is the header compilable? | |
23897 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
23898 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
23899 | cat >conftest.$ac_ext <<_ACEOF | |
23900 | /* confdefs.h. */ | |
23901 | _ACEOF | |
23902 | cat confdefs.h >>conftest.$ac_ext | |
23903 | cat >>conftest.$ac_ext <<_ACEOF | |
23904 | /* end confdefs.h. */ | |
23905 | $ac_includes_default | |
23906 | #include <expat.h> | |
23907 | _ACEOF | |
23908 | rm -f conftest.$ac_objext | |
23909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23910 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23911 | ac_status=$? |
ac1cb8d3 VS |
23912 | grep -v '^ *+' conftest.er1 >conftest.err |
23913 | rm -f conftest.er1 | |
23914 | cat conftest.err >&5 | |
a848cd7e SC |
23915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23916 | (exit $ac_status); } && | |
6ebeb4c7 | 23917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23919 | (eval $ac_try) 2>&5 | |
23920 | ac_status=$? | |
23921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23922 | (exit $ac_status); }; } && | |
23923 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23925 | (eval $ac_try) 2>&5 | |
23926 | ac_status=$? | |
23927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23928 | (exit $ac_status); }; }; then | |
23929 | ac_header_compiler=yes | |
23930 | else | |
23931 | echo "$as_me: failed program was:" >&5 | |
23932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23933 | ||
23934 | ac_header_compiler=no | |
23935 | fi | |
ac1cb8d3 | 23936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23937 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23938 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23939 | ||
23940 | # Is the header present? | |
23941 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
23942 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
23943 | cat >conftest.$ac_ext <<_ACEOF | |
23944 | /* confdefs.h. */ | |
23945 | _ACEOF | |
23946 | cat confdefs.h >>conftest.$ac_ext | |
23947 | cat >>conftest.$ac_ext <<_ACEOF | |
23948 | /* end confdefs.h. */ | |
23949 | #include <expat.h> | |
23950 | _ACEOF | |
23951 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23952 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23953 | ac_status=$? | |
23954 | grep -v '^ *+' conftest.er1 >conftest.err | |
23955 | rm -f conftest.er1 | |
23956 | cat conftest.err >&5 | |
23957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23958 | (exit $ac_status); } >/dev/null; then | |
23959 | if test -s conftest.err; then | |
23960 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23961 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23962 | else |
23963 | ac_cpp_err= | |
23964 | fi | |
23965 | else | |
23966 | ac_cpp_err=yes | |
23967 | fi | |
23968 | if test -z "$ac_cpp_err"; then | |
23969 | ac_header_preproc=yes | |
23970 | else | |
23971 | echo "$as_me: failed program was:" >&5 | |
23972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23973 | ||
23974 | ac_header_preproc=no | |
23975 | fi | |
23976 | rm -f conftest.err conftest.$ac_ext | |
23977 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23978 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23979 | ||
23980 | # So? What about this header? | |
ac1cb8d3 VS |
23981 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23982 | yes:no: ) | |
a848cd7e SC |
23983 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23984 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23985 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
23986 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
23987 | ac_header_preproc=yes | |
a848cd7e | 23988 | ;; |
ac1cb8d3 | 23989 | no:yes:* ) |
a848cd7e SC |
23990 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
23991 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23992 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
23993 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
23994 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
23995 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
23996 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23997 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23998 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
23999 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24000 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
24001 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24002 | ( |
24003 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24004 | ## ----------------------------------------- ## |
24005 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24006 | ## ----------------------------------------- ## | |
a848cd7e SC |
24007 | _ASBOX |
24008 | ) | | |
24009 | sed "s/^/$as_me: WARNING: /" >&2 | |
24010 | ;; | |
24011 | esac | |
24012 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
24013 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
24014 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24016 | else | |
24017 | ac_cv_header_expat_h=$ac_header_preproc | |
24018 | fi | |
24019 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24020 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24021 | ||
24022 | fi | |
24023 | if test $ac_cv_header_expat_h = yes; then | |
24024 | found_expat_h=1 | |
24025 | fi | |
24026 | ||
24027 | ||
24028 | if test "x$found_expat_h" = "x1"; then | |
24029 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
24030 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
24031 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
24032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24033 | else | |
24034 | ||
24035 | ||
24036 | ||
24037 | ac_ext=cc | |
24038 | ac_cpp='$CXXCPP $CPPFLAGS' | |
24039 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24040 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24041 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24042 | ||
24043 | cat >conftest.$ac_ext <<_ACEOF | |
24044 | /* confdefs.h. */ | |
24045 | _ACEOF | |
24046 | cat confdefs.h >>conftest.$ac_ext | |
24047 | cat >>conftest.$ac_ext <<_ACEOF | |
24048 | /* end confdefs.h. */ | |
24049 | #include <expat.h> | |
24050 | int | |
24051 | main () | |
24052 | { | |
24053 | ||
24054 | ; | |
24055 | return 0; | |
24056 | } | |
24057 | _ACEOF | |
24058 | rm -f conftest.$ac_objext | |
24059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24060 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24061 | ac_status=$? |
ac1cb8d3 VS |
24062 | grep -v '^ *+' conftest.er1 >conftest.err |
24063 | rm -f conftest.er1 | |
24064 | cat conftest.err >&5 | |
a848cd7e SC |
24065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24066 | (exit $ac_status); } && | |
6ebeb4c7 | 24067 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24069 | (eval $ac_try) 2>&5 | |
24070 | ac_status=$? | |
24071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24072 | (exit $ac_status); }; } && | |
24073 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24075 | (eval $ac_try) 2>&5 | |
24076 | ac_status=$? | |
24077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24078 | (exit $ac_status); }; }; then | |
24079 | wx_cv_expat_is_not_broken=yes | |
24080 | else | |
24081 | echo "$as_me: failed program was:" >&5 | |
24082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24083 | ||
24084 | wx_cv_expat_is_not_broken=no | |
24085 | ||
24086 | fi | |
ac1cb8d3 | 24087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24088 | ac_ext=c |
24089 | ac_cpp='$CPP $CPPFLAGS' | |
24090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24093 | ||
24094 | ||
24095 | ||
24096 | fi | |
24097 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
24098 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
24099 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
24100 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
24101 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
24102 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
24103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24104 | else | |
24105 | ac_check_lib_save_LIBS=$LIBS | |
24106 | LIBS="-lexpat $LIBS" | |
24107 | cat >conftest.$ac_ext <<_ACEOF | |
24108 | /* confdefs.h. */ | |
24109 | _ACEOF | |
24110 | cat confdefs.h >>conftest.$ac_ext | |
24111 | cat >>conftest.$ac_ext <<_ACEOF | |
24112 | /* end confdefs.h. */ | |
24113 | ||
24114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24115 | #ifdef __cplusplus | |
24116 | extern "C" | |
24117 | #endif | |
24118 | /* We use char because int might match the return type of a gcc2 | |
24119 | builtin and then its argument prototype would still apply. */ | |
24120 | char XML_ParserCreate (); | |
24121 | int | |
24122 | main () | |
24123 | { | |
24124 | XML_ParserCreate (); | |
24125 | ; | |
24126 | return 0; | |
24127 | } | |
24128 | _ACEOF | |
24129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24131 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24132 | ac_status=$? |
ac1cb8d3 VS |
24133 | grep -v '^ *+' conftest.er1 >conftest.err |
24134 | rm -f conftest.er1 | |
24135 | cat conftest.err >&5 | |
a848cd7e SC |
24136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24137 | (exit $ac_status); } && | |
6ebeb4c7 | 24138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24140 | (eval $ac_try) 2>&5 | |
24141 | ac_status=$? | |
24142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24143 | (exit $ac_status); }; } && | |
24144 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24146 | (eval $ac_try) 2>&5 | |
24147 | ac_status=$? | |
24148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24149 | (exit $ac_status); }; }; then | |
24150 | ac_cv_lib_expat_XML_ParserCreate=yes | |
24151 | else | |
24152 | echo "$as_me: failed program was:" >&5 | |
24153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24154 | ||
24155 | ac_cv_lib_expat_XML_ParserCreate=no | |
24156 | fi | |
ac1cb8d3 VS |
24157 | rm -f conftest.err conftest.$ac_objext \ |
24158 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24159 | LIBS=$ac_check_lib_save_LIBS |
24160 | fi | |
24161 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
24162 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
24163 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
24164 | EXPAT_LINK=" -lexpat" | |
24165 | fi | |
24166 | ||
24167 | fi | |
24168 | fi | |
24169 | if test "x$EXPAT_LINK" = "x" ; then | |
24170 | if test "$wxUSE_EXPAT" = "sys" ; then | |
24171 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
24172 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
24173 | { (exit 1); exit 1; }; } | |
24174 | else | |
24175 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
24176 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
24177 | wxUSE_EXPAT=builtin | |
24178 | fi | |
24179 | else | |
24180 | wxUSE_EXPAT=sys | |
24181 | fi | |
24182 | fi | |
24183 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
24184 | ||
24185 | ||
24186 | subdirs="$subdirs src/expat" | |
24187 | ||
24188 | fi | |
24189 | fi | |
24190 | ||
24191 | ||
24192 | ||
24193 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
24194 | if test "${ac_cv_header_mspack_h+set}" = set; then |
24195 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
24196 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
24197 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
24198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24199 | fi | |
24200 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
24201 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
24202 | else | |
24203 | # Is the header compilable? | |
24204 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
24205 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
24206 | cat >conftest.$ac_ext <<_ACEOF | |
24207 | /* confdefs.h. */ | |
24208 | _ACEOF | |
24209 | cat confdefs.h >>conftest.$ac_ext | |
24210 | cat >>conftest.$ac_ext <<_ACEOF | |
24211 | /* end confdefs.h. */ | |
24212 | $ac_includes_default | |
24213 | #include <mspack.h> | |
24214 | _ACEOF | |
24215 | rm -f conftest.$ac_objext | |
24216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24217 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24218 | ac_status=$? |
ac1cb8d3 VS |
24219 | grep -v '^ *+' conftest.er1 >conftest.err |
24220 | rm -f conftest.er1 | |
24221 | cat conftest.err >&5 | |
a848cd7e SC |
24222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24223 | (exit $ac_status); } && | |
6ebeb4c7 | 24224 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24226 | (eval $ac_try) 2>&5 | |
24227 | ac_status=$? | |
24228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24229 | (exit $ac_status); }; } && | |
24230 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24232 | (eval $ac_try) 2>&5 | |
24233 | ac_status=$? | |
24234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24235 | (exit $ac_status); }; }; then | |
24236 | ac_header_compiler=yes | |
24237 | else | |
24238 | echo "$as_me: failed program was:" >&5 | |
24239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24240 | ||
24241 | ac_header_compiler=no | |
24242 | fi | |
ac1cb8d3 | 24243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24244 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24245 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24246 | ||
24247 | # Is the header present? | |
24248 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
24249 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
24250 | cat >conftest.$ac_ext <<_ACEOF | |
24251 | /* confdefs.h. */ | |
24252 | _ACEOF | |
24253 | cat confdefs.h >>conftest.$ac_ext | |
24254 | cat >>conftest.$ac_ext <<_ACEOF | |
24255 | /* end confdefs.h. */ | |
24256 | #include <mspack.h> | |
24257 | _ACEOF | |
24258 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24259 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24260 | ac_status=$? | |
24261 | grep -v '^ *+' conftest.er1 >conftest.err | |
24262 | rm -f conftest.er1 | |
24263 | cat conftest.err >&5 | |
24264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24265 | (exit $ac_status); } >/dev/null; then | |
24266 | if test -s conftest.err; then | |
24267 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24268 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24269 | else |
24270 | ac_cpp_err= | |
24271 | fi | |
24272 | else | |
24273 | ac_cpp_err=yes | |
24274 | fi | |
24275 | if test -z "$ac_cpp_err"; then | |
24276 | ac_header_preproc=yes | |
24277 | else | |
24278 | echo "$as_me: failed program was:" >&5 | |
24279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24280 | ||
24281 | ac_header_preproc=no | |
24282 | fi | |
24283 | rm -f conftest.err conftest.$ac_ext | |
24284 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24285 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24286 | ||
24287 | # So? What about this header? | |
ac1cb8d3 VS |
24288 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24289 | yes:no: ) | |
a848cd7e SC |
24290 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24291 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24292 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
24293 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
24294 | ac_header_preproc=yes | |
a848cd7e | 24295 | ;; |
ac1cb8d3 | 24296 | no:yes:* ) |
a848cd7e SC |
24297 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
24298 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24299 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
24300 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
24301 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
24302 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
24303 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24304 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24305 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
24306 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24307 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
24308 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24309 | ( |
24310 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24311 | ## ----------------------------------------- ## |
24312 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24313 | ## ----------------------------------------- ## | |
a848cd7e SC |
24314 | _ASBOX |
24315 | ) | | |
24316 | sed "s/^/$as_me: WARNING: /" >&2 | |
24317 | ;; | |
24318 | esac | |
24319 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
24320 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
24321 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
24322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24323 | else | |
24324 | ac_cv_header_mspack_h=$ac_header_preproc | |
24325 | fi | |
24326 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
24327 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
24328 | ||
24329 | fi | |
24330 | if test $ac_cv_header_mspack_h = yes; then | |
24331 | found_mspack_h=1 | |
24332 | fi | |
24333 | ||
24334 | ||
24335 | if test "x$found_mspack_h" = "x1"; then | |
24336 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
24337 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
24338 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
24339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24340 | else | |
24341 | ac_check_lib_save_LIBS=$LIBS | |
24342 | LIBS="-lmspack $LIBS" | |
24343 | cat >conftest.$ac_ext <<_ACEOF | |
24344 | /* confdefs.h. */ | |
24345 | _ACEOF | |
24346 | cat confdefs.h >>conftest.$ac_ext | |
24347 | cat >>conftest.$ac_ext <<_ACEOF | |
24348 | /* end confdefs.h. */ | |
24349 | ||
24350 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24351 | #ifdef __cplusplus | |
24352 | extern "C" | |
24353 | #endif | |
24354 | /* We use char because int might match the return type of a gcc2 | |
24355 | builtin and then its argument prototype would still apply. */ | |
24356 | char mspack_create_chm_decompressor (); | |
24357 | int | |
24358 | main () | |
24359 | { | |
24360 | mspack_create_chm_decompressor (); | |
24361 | ; | |
24362 | return 0; | |
24363 | } | |
24364 | _ACEOF | |
24365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24367 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24368 | ac_status=$? |
ac1cb8d3 VS |
24369 | grep -v '^ *+' conftest.er1 >conftest.err |
24370 | rm -f conftest.er1 | |
24371 | cat conftest.err >&5 | |
a848cd7e SC |
24372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24373 | (exit $ac_status); } && | |
6ebeb4c7 | 24374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24376 | (eval $ac_try) 2>&5 | |
24377 | ac_status=$? | |
24378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24379 | (exit $ac_status); }; } && | |
24380 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24382 | (eval $ac_try) 2>&5 | |
24383 | ac_status=$? | |
24384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24385 | (exit $ac_status); }; }; then | |
24386 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
24387 | else | |
24388 | echo "$as_me: failed program was:" >&5 | |
24389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24390 | ||
24391 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
24392 | fi | |
ac1cb8d3 VS |
24393 | rm -f conftest.err conftest.$ac_objext \ |
24394 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24395 | LIBS=$ac_check_lib_save_LIBS |
24396 | fi | |
24397 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
24398 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
24399 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
24400 | MSPACK_LINK=" -lmspack" | |
24401 | fi | |
24402 | ||
24403 | fi | |
24404 | if test "x$MSPACK_LINK" = "x" ; then | |
24405 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
24406 | fi |
24407 | fi | |
24408 | ||
24409 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
24410 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
24411 | #define wxUSE_LIBMSPACK 1 |
24412 | _ACEOF | |
24413 | ||
a848cd7e SC |
24414 | fi |
24415 | ||
24416 | ||
24417 | ||
24418 | AFMINSTALL= | |
24419 | WIN32INSTALL= | |
24420 | ||
24421 | TOOLKIT= | |
24422 | TOOLKIT_INCLUDE= | |
24423 | WIDGET_SET= | |
24424 | ||
24425 | if test "$USE_WIN32" = 1 ; then | |
24426 | ||
24427 | for ac_header in w32api.h | |
24428 | do | |
24429 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
24430 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24431 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24432 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24433 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24435 | fi | |
24436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24437 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24438 | else | |
24439 | # Is the header compilable? | |
24440 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24441 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
24442 | cat >conftest.$ac_ext <<_ACEOF | |
24443 | /* confdefs.h. */ | |
24444 | _ACEOF | |
24445 | cat confdefs.h >>conftest.$ac_ext | |
24446 | cat >>conftest.$ac_ext <<_ACEOF | |
24447 | /* end confdefs.h. */ | |
24448 | $ac_includes_default | |
24449 | #include <$ac_header> | |
24450 | _ACEOF | |
24451 | rm -f conftest.$ac_objext | |
24452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24453 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24454 | ac_status=$? |
ac1cb8d3 VS |
24455 | grep -v '^ *+' conftest.er1 >conftest.err |
24456 | rm -f conftest.er1 | |
24457 | cat conftest.err >&5 | |
a848cd7e SC |
24458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24459 | (exit $ac_status); } && | |
6ebeb4c7 | 24460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24462 | (eval $ac_try) 2>&5 | |
24463 | ac_status=$? | |
24464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24465 | (exit $ac_status); }; } && | |
24466 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24468 | (eval $ac_try) 2>&5 | |
24469 | ac_status=$? | |
24470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24471 | (exit $ac_status); }; }; then | |
24472 | ac_header_compiler=yes | |
24473 | else | |
24474 | echo "$as_me: failed program was:" >&5 | |
24475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24476 | ||
24477 | ac_header_compiler=no | |
24478 | fi | |
ac1cb8d3 | 24479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24480 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24481 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24482 | ||
24483 | # Is the header present? | |
24484 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24485 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
24486 | cat >conftest.$ac_ext <<_ACEOF | |
24487 | /* confdefs.h. */ | |
24488 | _ACEOF | |
24489 | cat confdefs.h >>conftest.$ac_ext | |
24490 | cat >>conftest.$ac_ext <<_ACEOF | |
24491 | /* end confdefs.h. */ | |
24492 | #include <$ac_header> | |
24493 | _ACEOF | |
24494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24496 | ac_status=$? | |
24497 | grep -v '^ *+' conftest.er1 >conftest.err | |
24498 | rm -f conftest.er1 | |
24499 | cat conftest.err >&5 | |
24500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24501 | (exit $ac_status); } >/dev/null; then | |
24502 | if test -s conftest.err; then | |
24503 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24504 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24505 | else |
24506 | ac_cpp_err= | |
24507 | fi | |
24508 | else | |
24509 | ac_cpp_err=yes | |
24510 | fi | |
24511 | if test -z "$ac_cpp_err"; then | |
24512 | ac_header_preproc=yes | |
24513 | else | |
24514 | echo "$as_me: failed program was:" >&5 | |
24515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24516 | ||
24517 | ac_header_preproc=no | |
24518 | fi | |
24519 | rm -f conftest.err conftest.$ac_ext | |
24520 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24521 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24522 | ||
24523 | # So? What about this header? | |
ac1cb8d3 VS |
24524 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24525 | yes:no: ) | |
a848cd7e SC |
24526 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24527 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24528 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24529 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24530 | ac_header_preproc=yes | |
a848cd7e | 24531 | ;; |
ac1cb8d3 | 24532 | no:yes:* ) |
a848cd7e SC |
24533 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24534 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24535 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24536 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24537 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24538 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24539 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24540 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24541 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24542 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24543 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24544 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24545 | ( |
24546 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24547 | ## ----------------------------------------- ## |
24548 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24549 | ## ----------------------------------------- ## | |
a848cd7e SC |
24550 | _ASBOX |
24551 | ) | | |
24552 | sed "s/^/$as_me: WARNING: /" >&2 | |
24553 | ;; | |
24554 | esac | |
24555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24559 | else | |
ac1cb8d3 | 24560 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
24561 | fi |
24562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24563 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24564 | ||
24565 | fi | |
24566 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24567 | cat >>confdefs.h <<_ACEOF | |
24568 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24569 | _ACEOF | |
24570 | ||
24571 | fi | |
24572 | ||
24573 | done | |
24574 | ||
24575 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24576 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24577 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24578 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24580 | fi | |
24581 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24582 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24583 | else | |
24584 | # Is the header compilable? | |
24585 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
24586 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
24587 | cat >conftest.$ac_ext <<_ACEOF | |
24588 | /* confdefs.h. */ | |
24589 | _ACEOF | |
24590 | cat confdefs.h >>conftest.$ac_ext | |
24591 | cat >>conftest.$ac_ext <<_ACEOF | |
24592 | /* end confdefs.h. */ | |
24593 | $ac_includes_default | |
24594 | #include <windows.h> | |
24595 | _ACEOF | |
24596 | rm -f conftest.$ac_objext | |
24597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24598 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24599 | ac_status=$? |
ac1cb8d3 VS |
24600 | grep -v '^ *+' conftest.er1 >conftest.err |
24601 | rm -f conftest.er1 | |
24602 | cat conftest.err >&5 | |
a848cd7e SC |
24603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24604 | (exit $ac_status); } && | |
6ebeb4c7 | 24605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24607 | (eval $ac_try) 2>&5 | |
24608 | ac_status=$? | |
24609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24610 | (exit $ac_status); }; } && | |
24611 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24613 | (eval $ac_try) 2>&5 | |
24614 | ac_status=$? | |
24615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24616 | (exit $ac_status); }; }; then | |
24617 | ac_header_compiler=yes | |
24618 | else | |
24619 | echo "$as_me: failed program was:" >&5 | |
24620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24621 | ||
24622 | ac_header_compiler=no | |
24623 | fi | |
ac1cb8d3 | 24624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24625 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24626 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24627 | ||
24628 | # Is the header present? | |
24629 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
24630 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
24631 | cat >conftest.$ac_ext <<_ACEOF | |
24632 | /* confdefs.h. */ | |
24633 | _ACEOF | |
24634 | cat confdefs.h >>conftest.$ac_ext | |
24635 | cat >>conftest.$ac_ext <<_ACEOF | |
24636 | /* end confdefs.h. */ | |
24637 | #include <windows.h> | |
24638 | _ACEOF | |
24639 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24640 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24641 | ac_status=$? | |
24642 | grep -v '^ *+' conftest.er1 >conftest.err | |
24643 | rm -f conftest.er1 | |
24644 | cat conftest.err >&5 | |
24645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24646 | (exit $ac_status); } >/dev/null; then | |
24647 | if test -s conftest.err; then | |
24648 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24649 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24650 | else |
24651 | ac_cpp_err= | |
24652 | fi | |
24653 | else | |
24654 | ac_cpp_err=yes | |
24655 | fi | |
24656 | if test -z "$ac_cpp_err"; then | |
24657 | ac_header_preproc=yes | |
24658 | else | |
24659 | echo "$as_me: failed program was:" >&5 | |
24660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24661 | ||
24662 | ac_header_preproc=no | |
24663 | fi | |
24664 | rm -f conftest.err conftest.$ac_ext | |
24665 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24666 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24667 | ||
24668 | # So? What about this header? | |
ac1cb8d3 VS |
24669 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24670 | yes:no: ) | |
a848cd7e SC |
24671 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24672 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24673 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
24674 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
24675 | ac_header_preproc=yes | |
a848cd7e | 24676 | ;; |
ac1cb8d3 | 24677 | no:yes:* ) |
a848cd7e SC |
24678 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
24679 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24680 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
24681 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
24682 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
24683 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
24684 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24685 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24686 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
24687 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24688 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
24689 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24690 | ( |
24691 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24692 | ## ----------------------------------------- ## |
24693 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24694 | ## ----------------------------------------- ## | |
a848cd7e SC |
24695 | _ASBOX |
24696 | ) | | |
24697 | sed "s/^/$as_me: WARNING: /" >&2 | |
24698 | ;; | |
24699 | esac | |
24700 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24701 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24702 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24704 | else | |
24705 | ac_cv_header_windows_h=$ac_header_preproc | |
24706 | fi | |
24707 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24708 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24709 | ||
24710 | fi | |
24711 | if test $ac_cv_header_windows_h = yes; then | |
24712 | : | |
24713 | else | |
24714 | ||
24715 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
24716 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
24717 | { (exit 1); exit 1; }; } | |
24718 | ||
24719 | fi | |
24720 | ||
24721 | ||
24722 | ||
24723 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
24724 | ||
24725 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
24726 | LIBS="$LIBS -loleacc" | |
24727 | fi | |
24728 | ||
24729 | case "${host}" in | |
24730 | *-*-cygwin* ) | |
24731 | LIBS="$LIBS -lkernel32 -luser32" | |
24732 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
24733 | esac | |
24734 | ||
24735 | if test "$wxUSE_ODBC" = "sys" ; then | |
24736 | wxUSE_ODBC = "yes" | |
24737 | fi | |
24738 | if test "$wxUSE_ODBC" = "yes" ; then | |
24739 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
24740 | cat >>confdefs.h <<\_ACEOF | |
24741 | #define wxUSE_ODBC 1 | |
24742 | _ACEOF | |
24743 | ||
24744 | fi | |
24745 | ||
24746 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
24747 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
24748 | ||
24749 | WIN32INSTALL=win32install | |
24750 | fi | |
24751 | ||
24752 | if test "$wxUSE_GUI" = "yes"; then | |
24753 | USE_GUI=1 | |
24754 | ||
24755 | GUI_TK_LIBRARY= | |
24756 | ||
24757 | WXGTK12= | |
24758 | WXGTK127= | |
24759 | WXGTK20= | |
24760 | WXGPE= | |
24761 | ||
207bc66c RN |
24762 | if test "$wxUSE_COCOA" = 1 ; then |
24763 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
24764 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
24765 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
24766 | wxUSE_PRINTING_ARCHITECTURE=no | |
24767 | fi | |
24768 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
24769 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
24770 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
24771 | wxUSE_DRAG_AND_DROP=no | |
24772 | fi | |
24773 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
24774 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
24775 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
24776 | wxUSE_DRAGIMAGE=no | |
24777 | fi | |
24778 | fi | |
24779 | ||
a848cd7e SC |
24780 | if test "$wxUSE_MSW" = 1 ; then |
24781 | TOOLKIT=MSW | |
24782 | GUIDIST=MSW_DIST | |
24783 | ||
ceec2216 | 24784 | case "${host}" in |
a848cd7e SC |
24785 | *-*-mingw32* ) |
24786 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
24787 | esac | |
24788 | fi | |
24789 | ||
24790 | if test "$wxUSE_GTK" = 1; then | |
24791 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
24792 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
24793 | ||
24794 | gtk_version_cached=1 | |
24795 | if test "${wx_cv_lib_gtk+set}" = set; then | |
24796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24797 | else | |
24798 | ||
24799 | gtk_version_cached=0 | |
24800 | echo "$as_me:$LINENO: result: " >&5 | |
24801 | echo "${ECHO_T}" >&6 | |
24802 | ||
24803 | GTK_MODULES= | |
24804 | if test "$wxUSE_THREADS" = "yes"; then | |
24805 | GTK_MODULES=gthread | |
24806 | fi | |
24807 | ||
f597b41c | 24808 | wx_cv_lib_gtk= |
f34ca037 | 24809 | if test "x$wxGTK_VERSION" != "x1"; then |
a848cd7e SC |
24810 | # Check whether --enable-gtktest or --disable-gtktest was given. |
24811 | if test "${enable_gtktest+set}" = set; then | |
24812 | enableval="$enable_gtktest" | |
24813 | ||
24814 | else | |
24815 | enable_gtktest=yes | |
24816 | fi; | |
24817 | ||
24818 | pkg_config_args=gtk+-2.0 | |
24819 | for module in . $GTK_MODULES | |
24820 | do | |
24821 | case "$module" in | |
24822 | gthread) | |
24823 | pkg_config_args="$pkg_config_args gthread-2.0" | |
24824 | ;; | |
24825 | esac | |
24826 | done | |
24827 | ||
24828 | no_gtk="" | |
24829 | ||
24830 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24831 | set dummy pkg-config; ac_word=$2 | |
24832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24834 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24836 | else | |
24837 | case $PKG_CONFIG in | |
24838 | [\\/]* | ?:[\\/]*) | |
24839 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
24840 | ;; | |
24841 | *) | |
24842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24843 | for as_dir in $PATH | |
24844 | do | |
24845 | IFS=$as_save_IFS | |
24846 | test -z "$as_dir" && as_dir=. | |
24847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24849 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24851 | break 2 | |
24852 | fi | |
24853 | done | |
24854 | done | |
24855 | ||
24856 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
24857 | ;; | |
24858 | esac | |
24859 | fi | |
24860 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
24861 | ||
24862 | if test -n "$PKG_CONFIG"; then | |
24863 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
24864 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
24865 | else | |
24866 | echo "$as_me:$LINENO: result: no" >&5 | |
24867 | echo "${ECHO_T}no" >&6 | |
24868 | fi | |
24869 | ||
24870 | ||
24871 | if test x$PKG_CONFIG != xno ; then | |
24872 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
24873 | : | |
24874 | else | |
c2218763 | 24875 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
24876 | no_gtk=yes |
24877 | PKG_CONFIG=no | |
24878 | fi | |
24879 | else | |
24880 | no_gtk=yes | |
24881 | fi | |
24882 | ||
24883 | min_gtk_version=2.0.0 | |
24884 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
24885 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
24886 | ||
24887 | if test x$PKG_CONFIG != xno ; then | |
24888 | ## don't try to run the test against uninstalled libtool libs | |
24889 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
24890 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
24891 | enable_gtktest=no | |
24892 | fi | |
24893 | ||
24894 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
24895 | : | |
24896 | else | |
24897 | no_gtk=yes | |
24898 | fi | |
24899 | fi | |
24900 | ||
24901 | if test x"$no_gtk" = x ; then | |
24902 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
24903 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
24904 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24905 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24906 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24907 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24908 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24909 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24910 | if test "x$enable_gtktest" = "xyes" ; then | |
24911 | ac_save_CFLAGS="$CFLAGS" | |
24912 | ac_save_LIBS="$LIBS" | |
24913 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24914 | LIBS="$GTK_LIBS $LIBS" | |
24915 | rm -f conf.gtktest | |
24916 | if test "$cross_compiling" = yes; then | |
24917 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24918 | else | |
24919 | cat >conftest.$ac_ext <<_ACEOF | |
24920 | /* confdefs.h. */ | |
24921 | _ACEOF | |
24922 | cat confdefs.h >>conftest.$ac_ext | |
24923 | cat >>conftest.$ac_ext <<_ACEOF | |
24924 | /* end confdefs.h. */ | |
24925 | ||
24926 | #include <gtk/gtk.h> | |
24927 | #include <stdio.h> | |
24928 | #include <stdlib.h> | |
24929 | ||
24930 | int | |
24931 | main () | |
24932 | { | |
24933 | int major, minor, micro; | |
24934 | char *tmp_version; | |
24935 | ||
24936 | system ("touch conf.gtktest"); | |
24937 | ||
24938 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24939 | tmp_version = g_strdup("$min_gtk_version"); | |
24940 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24941 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24942 | exit(1); | |
24943 | } | |
24944 | ||
24945 | if ((gtk_major_version != $gtk_config_major_version) || | |
24946 | (gtk_minor_version != $gtk_config_minor_version) || | |
24947 | (gtk_micro_version != $gtk_config_micro_version)) | |
24948 | { | |
24949 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24950 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24951 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24952 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
24953 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24954 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24955 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24956 | printf("*** required on your system.\n"); | |
24957 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
24958 | printf("*** to point to the correct configuration files\n"); | |
24959 | } | |
24960 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24961 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24962 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24963 | { | |
24964 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24965 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24966 | printf("*** library (version %d.%d.%d)\n", | |
24967 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24968 | } | |
24969 | else | |
24970 | { | |
24971 | if ((gtk_major_version > major) || | |
24972 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24973 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24974 | { | |
24975 | return 0; | |
24976 | } | |
24977 | else | |
24978 | { | |
24979 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24980 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24981 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24982 | major, minor, micro); | |
24983 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24984 | printf("***\n"); | |
24985 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24986 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
24987 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24988 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
24989 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
24990 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24991 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24992 | } | |
24993 | } | |
24994 | return 1; | |
24995 | } | |
24996 | ||
24997 | _ACEOF | |
24998 | rm -f conftest$ac_exeext | |
24999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25000 | (eval $ac_link) 2>&5 | |
25001 | ac_status=$? | |
25002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25003 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25005 | (eval $ac_try) 2>&5 | |
25006 | ac_status=$? | |
25007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25008 | (exit $ac_status); }; }; then | |
25009 | : | |
25010 | else | |
25011 | echo "$as_me: program exited with status $ac_status" >&5 | |
25012 | echo "$as_me: failed program was:" >&5 | |
25013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25014 | ||
25015 | ( exit $ac_status ) | |
25016 | no_gtk=yes | |
25017 | fi | |
ac1cb8d3 | 25018 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25019 | fi |
25020 | CFLAGS="$ac_save_CFLAGS" | |
25021 | LIBS="$ac_save_LIBS" | |
25022 | fi | |
25023 | fi | |
25024 | if test "x$no_gtk" = x ; then | |
25025 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
25026 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
25027 | wx_cv_lib_gtk=2.0 | |
25028 | else | |
25029 | echo "$as_me:$LINENO: result: no" >&5 | |
25030 | echo "${ECHO_T}no" >&6 | |
25031 | if test "$PKG_CONFIG" = "no" ; then | |
25032 | echo "*** A new enough version of pkg-config was not found." | |
25033 | echo "*** See http://pkgconfig.sourceforge.net" | |
25034 | else | |
25035 | if test -f conf.gtktest ; then | |
25036 | : | |
25037 | else | |
25038 | echo "*** Could not run GTK+ test program, checking why..." | |
25039 | ac_save_CFLAGS="$CFLAGS" | |
25040 | ac_save_LIBS="$LIBS" | |
25041 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25042 | LIBS="$LIBS $GTK_LIBS" | |
25043 | cat >conftest.$ac_ext <<_ACEOF | |
25044 | /* confdefs.h. */ | |
25045 | _ACEOF | |
25046 | cat confdefs.h >>conftest.$ac_ext | |
25047 | cat >>conftest.$ac_ext <<_ACEOF | |
25048 | /* end confdefs.h. */ | |
25049 | ||
25050 | #include <gtk/gtk.h> | |
25051 | #include <stdio.h> | |
25052 | ||
25053 | int | |
25054 | main () | |
25055 | { | |
25056 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25057 | ; | |
25058 | return 0; | |
25059 | } | |
25060 | _ACEOF | |
25061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25063 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25064 | ac_status=$? |
ac1cb8d3 VS |
25065 | grep -v '^ *+' conftest.er1 >conftest.err |
25066 | rm -f conftest.er1 | |
25067 | cat conftest.err >&5 | |
a848cd7e SC |
25068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25069 | (exit $ac_status); } && | |
6ebeb4c7 | 25070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25072 | (eval $ac_try) 2>&5 | |
25073 | ac_status=$? | |
25074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25075 | (exit $ac_status); }; } && | |
25076 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25078 | (eval $ac_try) 2>&5 | |
25079 | ac_status=$? | |
25080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25081 | (exit $ac_status); }; }; then | |
25082 | echo "*** The test program compiled, but did not run. This usually means" | |
25083 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
25084 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
25085 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25086 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25087 | echo "*** is required on your system" | |
25088 | echo "***" | |
25089 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25090 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25091 | else | |
25092 | echo "$as_me: failed program was:" >&5 | |
25093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25094 | ||
25095 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25096 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
25097 | fi | |
ac1cb8d3 VS |
25098 | rm -f conftest.err conftest.$ac_objext \ |
25099 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25100 | CFLAGS="$ac_save_CFLAGS" |
25101 | LIBS="$ac_save_LIBS" | |
25102 | fi | |
25103 | fi | |
25104 | GTK_CFLAGS="" | |
25105 | GTK_LIBS="" | |
25106 | : | |
25107 | fi | |
25108 | ||
25109 | ||
25110 | rm -f conf.gtktest | |
25111 | ||
f597b41c MW |
25112 | fi |
25113 | ||
f34ca037 MW |
25114 | if test -z "$wx_cv_lib_gtk"; then |
25115 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
25116 | |
25117 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
25118 | if test "${with_gtk_prefix+set}" = set; then | |
25119 | withval="$with_gtk_prefix" | |
25120 | gtk_config_prefix="$withval" | |
25121 | else | |
25122 | gtk_config_prefix="" | |
25123 | fi; | |
25124 | ||
25125 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
25126 | if test "${with_gtk_exec_prefix+set}" = set; then | |
25127 | withval="$with_gtk_exec_prefix" | |
25128 | gtk_config_exec_prefix="$withval" | |
25129 | else | |
25130 | gtk_config_exec_prefix="" | |
25131 | fi; | |
25132 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
25133 | if test "${enable_gtktest+set}" = set; then | |
25134 | enableval="$enable_gtktest" | |
25135 | ||
25136 | else | |
25137 | enable_gtktest=yes | |
25138 | fi; | |
25139 | ||
25140 | for module in . $GTK_MODULES | |
25141 | do | |
25142 | case "$module" in | |
25143 | gthread) | |
25144 | gtk_config_args="$gtk_config_args gthread" | |
25145 | ;; | |
25146 | esac | |
25147 | done | |
25148 | ||
25149 | if test x$gtk_config_exec_prefix != x ; then | |
25150 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
25151 | if test x${GTK_CONFIG+set} != xset ; then | |
25152 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
25153 | fi | |
25154 | fi | |
25155 | if test x$gtk_config_prefix != x ; then | |
25156 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
25157 | if test x${GTK_CONFIG+set} != xset ; then | |
25158 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
25159 | fi | |
25160 | fi | |
25161 | ||
25162 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
25163 | set dummy gtk-config; ac_word=$2 | |
25164 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25165 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25166 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
25167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25168 | else | |
25169 | case $GTK_CONFIG in | |
25170 | [\\/]* | ?:[\\/]*) | |
25171 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
25172 | ;; | |
25173 | *) | |
25174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25175 | for as_dir in $PATH | |
25176 | do | |
25177 | IFS=$as_save_IFS | |
25178 | test -z "$as_dir" && as_dir=. | |
25179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25181 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25183 | break 2 | |
25184 | fi | |
25185 | done | |
25186 | done | |
25187 | ||
25188 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
25189 | ;; | |
25190 | esac | |
25191 | fi | |
25192 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25193 | ||
25194 | if test -n "$GTK_CONFIG"; then | |
25195 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25196 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25197 | else | |
25198 | echo "$as_me:$LINENO: result: no" >&5 | |
25199 | echo "${ECHO_T}no" >&6 | |
25200 | fi | |
25201 | ||
25202 | min_gtk_version=1.2.7 | |
25203 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25204 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25205 | no_gtk="" | |
25206 | if test "$GTK_CONFIG" = "no" ; then | |
25207 | no_gtk=yes | |
25208 | else | |
25209 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25210 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25211 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25212 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25213 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25214 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25215 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25216 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25217 | if test "x$enable_gtktest" = "xyes" ; then | |
25218 | ac_save_CFLAGS="$CFLAGS" | |
25219 | ac_save_LIBS="$LIBS" | |
25220 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25221 | LIBS="$GTK_LIBS $LIBS" | |
25222 | rm -f conf.gtktest | |
25223 | if test "$cross_compiling" = yes; then | |
25224 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25225 | else | |
25226 | cat >conftest.$ac_ext <<_ACEOF | |
25227 | /* confdefs.h. */ | |
25228 | _ACEOF | |
25229 | cat confdefs.h >>conftest.$ac_ext | |
25230 | cat >>conftest.$ac_ext <<_ACEOF | |
25231 | /* end confdefs.h. */ | |
25232 | ||
25233 | #include <gtk/gtk.h> | |
25234 | #include <stdio.h> | |
25235 | #include <stdlib.h> | |
25236 | ||
25237 | int | |
25238 | main () | |
25239 | { | |
25240 | int major, minor, micro; | |
25241 | char *tmp_version; | |
25242 | ||
25243 | system ("touch conf.gtktest"); | |
25244 | ||
25245 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25246 | tmp_version = g_strdup("$min_gtk_version"); | |
25247 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25248 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25249 | exit(1); | |
25250 | } | |
25251 | ||
25252 | if ((gtk_major_version != $gtk_config_major_version) || | |
25253 | (gtk_minor_version != $gtk_config_minor_version) || | |
25254 | (gtk_micro_version != $gtk_config_micro_version)) | |
25255 | { | |
25256 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25257 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25258 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25259 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25260 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25261 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25262 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25263 | printf("*** required on your system.\n"); | |
25264 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25265 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25266 | printf("*** before re-running configure\n"); | |
25267 | } | |
25268 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25269 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25270 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25271 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25272 | { | |
25273 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25274 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25275 | printf("*** library (version %d.%d.%d)\n", | |
25276 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25277 | } | |
25278 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25279 | else | |
25280 | { | |
25281 | if ((gtk_major_version > major) || | |
25282 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25283 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25284 | { | |
25285 | return 0; | |
25286 | } | |
25287 | else | |
25288 | { | |
25289 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25290 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25291 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25292 | major, minor, micro); | |
25293 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25294 | printf("***\n"); | |
25295 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25296 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25297 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25298 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25299 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25300 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25301 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25302 | } | |
25303 | } | |
25304 | return 1; | |
25305 | } | |
25306 | ||
25307 | _ACEOF | |
25308 | rm -f conftest$ac_exeext | |
25309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25310 | (eval $ac_link) 2>&5 | |
25311 | ac_status=$? | |
25312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25313 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25315 | (eval $ac_try) 2>&5 | |
25316 | ac_status=$? | |
25317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25318 | (exit $ac_status); }; }; then | |
25319 | : | |
25320 | else | |
25321 | echo "$as_me: program exited with status $ac_status" >&5 | |
25322 | echo "$as_me: failed program was:" >&5 | |
25323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25324 | ||
25325 | ( exit $ac_status ) | |
25326 | no_gtk=yes | |
25327 | fi | |
ac1cb8d3 | 25328 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25329 | fi |
25330 | CFLAGS="$ac_save_CFLAGS" | |
25331 | LIBS="$ac_save_LIBS" | |
25332 | fi | |
25333 | fi | |
25334 | if test "x$no_gtk" = x ; then | |
25335 | echo "$as_me:$LINENO: result: yes" >&5 | |
25336 | echo "${ECHO_T}yes" >&6 | |
25337 | wx_cv_lib_gtk=1.2.7 | |
25338 | else | |
25339 | echo "$as_me:$LINENO: result: no" >&5 | |
25340 | echo "${ECHO_T}no" >&6 | |
25341 | if test "$GTK_CONFIG" = "no" ; then | |
25342 | echo "*** The gtk-config script installed by GTK could not be found" | |
25343 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25344 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25345 | echo "*** full path to gtk-config." | |
25346 | else | |
25347 | if test -f conf.gtktest ; then | |
25348 | : | |
25349 | else | |
25350 | echo "*** Could not run GTK test program, checking why..." | |
25351 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25352 | LIBS="$LIBS $GTK_LIBS" | |
25353 | cat >conftest.$ac_ext <<_ACEOF | |
25354 | /* confdefs.h. */ | |
25355 | _ACEOF | |
25356 | cat confdefs.h >>conftest.$ac_ext | |
25357 | cat >>conftest.$ac_ext <<_ACEOF | |
25358 | /* end confdefs.h. */ | |
25359 | ||
25360 | #include <gtk/gtk.h> | |
25361 | #include <stdio.h> | |
25362 | ||
25363 | int | |
25364 | main () | |
25365 | { | |
25366 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25367 | ; | |
25368 | return 0; | |
25369 | } | |
25370 | _ACEOF | |
25371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25373 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25374 | ac_status=$? |
ac1cb8d3 VS |
25375 | grep -v '^ *+' conftest.er1 >conftest.err |
25376 | rm -f conftest.er1 | |
25377 | cat conftest.err >&5 | |
a848cd7e SC |
25378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25379 | (exit $ac_status); } && | |
6ebeb4c7 | 25380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25382 | (eval $ac_try) 2>&5 | |
25383 | ac_status=$? | |
25384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25385 | (exit $ac_status); }; } && | |
25386 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25388 | (eval $ac_try) 2>&5 | |
25389 | ac_status=$? | |
25390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25391 | (exit $ac_status); }; }; then | |
25392 | echo "*** The test program compiled, but did not run. This usually means" | |
25393 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25394 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25395 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25396 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25397 | echo "*** is required on your system" | |
25398 | echo "***" | |
25399 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25400 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25401 | echo "***" | |
25402 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25403 | echo "*** came with the system with the command" | |
25404 | echo "***" | |
25405 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25406 | else | |
25407 | echo "$as_me: failed program was:" >&5 | |
25408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25409 | ||
25410 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25411 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25412 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25413 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25414 | fi | |
ac1cb8d3 VS |
25415 | rm -f conftest.err conftest.$ac_objext \ |
25416 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25417 | CFLAGS="$ac_save_CFLAGS" |
25418 | LIBS="$ac_save_LIBS" | |
25419 | fi | |
25420 | fi | |
25421 | GTK_CFLAGS="" | |
25422 | GTK_LIBS="" | |
25423 | : | |
25424 | fi | |
25425 | ||
25426 | ||
25427 | rm -f conf.gtktest | |
25428 | ||
25429 | ||
f34ca037 | 25430 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
25431 | |
25432 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
25433 | if test "${with_gtk_prefix+set}" = set; then | |
25434 | withval="$with_gtk_prefix" | |
25435 | gtk_config_prefix="$withval" | |
25436 | else | |
25437 | gtk_config_prefix="" | |
25438 | fi; | |
25439 | ||
25440 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
25441 | if test "${with_gtk_exec_prefix+set}" = set; then | |
25442 | withval="$with_gtk_exec_prefix" | |
25443 | gtk_config_exec_prefix="$withval" | |
25444 | else | |
25445 | gtk_config_exec_prefix="" | |
25446 | fi; | |
25447 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
25448 | if test "${enable_gtktest+set}" = set; then | |
25449 | enableval="$enable_gtktest" | |
25450 | ||
25451 | else | |
25452 | enable_gtktest=yes | |
25453 | fi; | |
25454 | ||
25455 | for module in . $GTK_MODULES | |
25456 | do | |
25457 | case "$module" in | |
25458 | gthread) | |
25459 | gtk_config_args="$gtk_config_args gthread" | |
25460 | ;; | |
25461 | esac | |
25462 | done | |
25463 | ||
25464 | if test x$gtk_config_exec_prefix != x ; then | |
25465 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
25466 | if test x${GTK_CONFIG+set} != xset ; then | |
25467 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
25468 | fi | |
25469 | fi | |
25470 | if test x$gtk_config_prefix != x ; then | |
25471 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
25472 | if test x${GTK_CONFIG+set} != xset ; then | |
25473 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
25474 | fi | |
25475 | fi | |
25476 | ||
25477 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
25478 | set dummy gtk-config; ac_word=$2 | |
25479 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25481 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
25482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25483 | else | |
25484 | case $GTK_CONFIG in | |
25485 | [\\/]* | ?:[\\/]*) | |
25486 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
25487 | ;; | |
25488 | *) | |
25489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25490 | for as_dir in $PATH | |
25491 | do | |
25492 | IFS=$as_save_IFS | |
25493 | test -z "$as_dir" && as_dir=. | |
25494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25496 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25498 | break 2 | |
25499 | fi | |
25500 | done | |
25501 | done | |
25502 | ||
25503 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
25504 | ;; | |
25505 | esac | |
25506 | fi | |
25507 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25508 | ||
25509 | if test -n "$GTK_CONFIG"; then | |
25510 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25511 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25512 | else | |
25513 | echo "$as_me:$LINENO: result: no" >&5 | |
25514 | echo "${ECHO_T}no" >&6 | |
25515 | fi | |
25516 | ||
25517 | min_gtk_version=1.2.3 | |
25518 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25519 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25520 | no_gtk="" | |
25521 | if test "$GTK_CONFIG" = "no" ; then | |
25522 | no_gtk=yes | |
25523 | else | |
25524 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25525 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25526 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25527 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25528 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25529 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25530 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25531 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25532 | if test "x$enable_gtktest" = "xyes" ; then | |
25533 | ac_save_CFLAGS="$CFLAGS" | |
25534 | ac_save_LIBS="$LIBS" | |
25535 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25536 | LIBS="$GTK_LIBS $LIBS" | |
25537 | rm -f conf.gtktest | |
25538 | if test "$cross_compiling" = yes; then | |
25539 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25540 | else | |
25541 | cat >conftest.$ac_ext <<_ACEOF | |
25542 | /* confdefs.h. */ | |
25543 | _ACEOF | |
25544 | cat confdefs.h >>conftest.$ac_ext | |
25545 | cat >>conftest.$ac_ext <<_ACEOF | |
25546 | /* end confdefs.h. */ | |
25547 | ||
25548 | #include <gtk/gtk.h> | |
25549 | #include <stdio.h> | |
25550 | #include <stdlib.h> | |
25551 | ||
25552 | int | |
25553 | main () | |
25554 | { | |
25555 | int major, minor, micro; | |
25556 | char *tmp_version; | |
25557 | ||
25558 | system ("touch conf.gtktest"); | |
25559 | ||
25560 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25561 | tmp_version = g_strdup("$min_gtk_version"); | |
25562 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25563 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25564 | exit(1); | |
25565 | } | |
25566 | ||
25567 | if ((gtk_major_version != $gtk_config_major_version) || | |
25568 | (gtk_minor_version != $gtk_config_minor_version) || | |
25569 | (gtk_micro_version != $gtk_config_micro_version)) | |
25570 | { | |
25571 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25572 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25573 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25574 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25575 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25576 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25577 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25578 | printf("*** required on your system.\n"); | |
25579 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25580 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25581 | printf("*** before re-running configure\n"); | |
25582 | } | |
25583 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25584 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25585 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25586 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25587 | { | |
25588 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25589 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25590 | printf("*** library (version %d.%d.%d)\n", | |
25591 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25592 | } | |
25593 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25594 | else | |
25595 | { | |
25596 | if ((gtk_major_version > major) || | |
25597 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25598 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25599 | { | |
25600 | return 0; | |
25601 | } | |
25602 | else | |
25603 | { | |
25604 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25605 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25606 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25607 | major, minor, micro); | |
25608 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25609 | printf("***\n"); | |
25610 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25611 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25612 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25613 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25614 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25615 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25616 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25617 | } | |
25618 | } | |
25619 | return 1; | |
25620 | } | |
25621 | ||
25622 | _ACEOF | |
25623 | rm -f conftest$ac_exeext | |
25624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25625 | (eval $ac_link) 2>&5 | |
25626 | ac_status=$? | |
25627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25628 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25630 | (eval $ac_try) 2>&5 | |
25631 | ac_status=$? | |
25632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25633 | (exit $ac_status); }; }; then | |
25634 | : | |
25635 | else | |
25636 | echo "$as_me: program exited with status $ac_status" >&5 | |
25637 | echo "$as_me: failed program was:" >&5 | |
25638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25639 | ||
25640 | ( exit $ac_status ) | |
25641 | no_gtk=yes | |
25642 | fi | |
ac1cb8d3 | 25643 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25644 | fi |
25645 | CFLAGS="$ac_save_CFLAGS" | |
25646 | LIBS="$ac_save_LIBS" | |
25647 | fi | |
25648 | fi | |
25649 | if test "x$no_gtk" = x ; then | |
25650 | echo "$as_me:$LINENO: result: yes" >&5 | |
25651 | echo "${ECHO_T}yes" >&6 | |
25652 | wx_cv_lib_gtk=1.2.3 | |
25653 | else | |
25654 | echo "$as_me:$LINENO: result: no" >&5 | |
25655 | echo "${ECHO_T}no" >&6 | |
25656 | if test "$GTK_CONFIG" = "no" ; then | |
25657 | echo "*** The gtk-config script installed by GTK could not be found" | |
25658 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25659 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25660 | echo "*** full path to gtk-config." | |
25661 | else | |
25662 | if test -f conf.gtktest ; then | |
25663 | : | |
25664 | else | |
25665 | echo "*** Could not run GTK test program, checking why..." | |
25666 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25667 | LIBS="$LIBS $GTK_LIBS" | |
25668 | cat >conftest.$ac_ext <<_ACEOF | |
25669 | /* confdefs.h. */ | |
25670 | _ACEOF | |
25671 | cat confdefs.h >>conftest.$ac_ext | |
25672 | cat >>conftest.$ac_ext <<_ACEOF | |
25673 | /* end confdefs.h. */ | |
25674 | ||
25675 | #include <gtk/gtk.h> | |
25676 | #include <stdio.h> | |
25677 | ||
25678 | int | |
25679 | main () | |
25680 | { | |
25681 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25682 | ; | |
25683 | return 0; | |
25684 | } | |
25685 | _ACEOF | |
25686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25688 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25689 | ac_status=$? |
ac1cb8d3 VS |
25690 | grep -v '^ *+' conftest.er1 >conftest.err |
25691 | rm -f conftest.er1 | |
25692 | cat conftest.err >&5 | |
a848cd7e SC |
25693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25694 | (exit $ac_status); } && | |
6ebeb4c7 | 25695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25697 | (eval $ac_try) 2>&5 | |
25698 | ac_status=$? | |
25699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25700 | (exit $ac_status); }; } && | |
25701 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25703 | (eval $ac_try) 2>&5 | |
25704 | ac_status=$? | |
25705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25706 | (exit $ac_status); }; }; then | |
25707 | echo "*** The test program compiled, but did not run. This usually means" | |
25708 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25709 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25710 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25711 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25712 | echo "*** is required on your system" | |
25713 | echo "***" | |
25714 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25715 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25716 | echo "***" | |
25717 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25718 | echo "*** came with the system with the command" | |
25719 | echo "***" | |
25720 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25721 | else | |
25722 | echo "$as_me: failed program was:" >&5 | |
25723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25724 | ||
25725 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25726 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25727 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25728 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25729 | fi | |
ac1cb8d3 VS |
25730 | rm -f conftest.err conftest.$ac_objext \ |
25731 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25732 | CFLAGS="$ac_save_CFLAGS" |
25733 | LIBS="$ac_save_LIBS" | |
25734 | fi | |
25735 | fi | |
25736 | GTK_CFLAGS="" | |
25737 | GTK_LIBS="" | |
25738 | : | |
25739 | fi | |
25740 | ||
25741 | ||
25742 | rm -f conf.gtktest | |
25743 | ||
f34ca037 | 25744 | fi |
a848cd7e SC |
25745 | fi |
25746 | fi | |
25747 | ||
25748 | if test -z "$wx_cv_lib_gtk"; then | |
25749 | wx_cv_lib_gtk=none | |
25750 | else | |
25751 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 25752 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
25753 | fi |
25754 | ||
25755 | ||
25756 | fi | |
25757 | ||
25758 | ||
25759 | if test "$gtk_version_cached" = 1; then | |
25760 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
25761 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
25762 | fi | |
25763 | ||
25764 | case "$wx_cv_lib_gtk" in | |
25765 | 2.0) WXGTK20=1 | |
25766 | TOOLKIT_VERSION=2 | |
25767 | ;; | |
25768 | 1.2.7) WXGTK127=1 | |
25769 | WXGTK12=1 | |
25770 | ;; | |
25771 | 1.2.3) WXGTK12=1 | |
25772 | ;; | |
25773 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
25774 | The development files for GTK+ were not found. For GTK+ 2, please |
25775 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
25776 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
25777 | and that the version is 1.2.3 or above. Also check that the | |
25778 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
25779 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
25780 | " >&5 |
25781 | echo "$as_me: error: | |
f597b41c MW |
25782 | The development files for GTK+ were not found. For GTK+ 2, please |
25783 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
25784 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
25785 | and that the version is 1.2.3 or above. Also check that the | |
25786 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
25787 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
25788 | " >&2;} |
25789 | { (exit 1); exit 1; }; } | |
25790 | ;; | |
25791 | esac | |
25792 | ||
25793 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
25794 | save_CFLAGS="$CFLAGS" |
25795 | save_LIBS="$LIBS" | |
9d271838 | 25796 | CFLAGS="$CFLAGS $wx_cv_cflags_gtk" |
abc736fd | 25797 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 25798 | |
d12aef51 VZ |
25799 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
25800 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
25801 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
25802 | /* confdefs.h. */ |
25803 | _ACEOF | |
25804 | cat confdefs.h >>conftest.$ac_ext | |
25805 | cat >>conftest.$ac_ext <<_ACEOF | |
25806 | /* end confdefs.h. */ | |
304205f1 | 25807 | |
d12aef51 | 25808 | #include <gtk/gtk.h> |
304205f1 | 25809 | |
d12aef51 VZ |
25810 | int |
25811 | main () | |
25812 | { | |
304205f1 | 25813 | |
d12aef51 | 25814 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
25815 | |
25816 | ; | |
25817 | return 0; | |
25818 | } | |
25819 | _ACEOF | |
25820 | rm -f conftest.$ac_objext | |
25821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25822 | (eval $ac_compile) 2>conftest.er1 | |
25823 | ac_status=$? | |
25824 | grep -v '^ *+' conftest.er1 >conftest.err | |
25825 | rm -f conftest.er1 | |
25826 | cat conftest.err >&5 | |
25827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25828 | (exit $ac_status); } && | |
6ebeb4c7 | 25829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
25830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25831 | (eval $ac_try) 2>&5 | |
25832 | ac_status=$? | |
25833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25834 | (exit $ac_status); }; } && | |
25835 | { ac_try='test -s conftest.$ac_objext' | |
25836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25837 | (eval $ac_try) 2>&5 | |
25838 | ac_status=$? | |
25839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25840 | (exit $ac_status); }; }; then | |
25841 | ||
25842 | echo "$as_me:$LINENO: result: no" >&5 | |
25843 | echo "${ECHO_T}no" >&6 | |
25844 | ||
25845 | else | |
25846 | echo "$as_me: failed program was:" >&5 | |
25847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25848 | ||
25849 | ||
25850 | cat >>confdefs.h <<\_ACEOF | |
25851 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
25852 | _ACEOF | |
25853 | ||
25854 | echo "$as_me:$LINENO: result: yes" >&5 | |
25855 | echo "${ECHO_T}yes" >&6 | |
25856 | ||
25857 | fi | |
25858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25859 | ||
9755e73b VS |
25860 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
25861 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
25862 | cat >conftest.$ac_ext <<_ACEOF | |
25863 | /* confdefs.h. */ | |
25864 | _ACEOF | |
25865 | cat confdefs.h >>conftest.$ac_ext | |
25866 | cat >>conftest.$ac_ext <<_ACEOF | |
25867 | /* end confdefs.h. */ | |
25868 | ||
25869 | #include <gtk/gtk.h> | |
25870 | ||
25871 | int | |
25872 | main () | |
25873 | { | |
25874 | ||
25875 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 25876 | Not GTK+ 2.4 |
9755e73b VS |
25877 | #endif |
25878 | ||
25879 | ; | |
25880 | return 0; | |
25881 | } | |
25882 | _ACEOF | |
25883 | rm -f conftest.$ac_objext | |
25884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25885 | (eval $ac_compile) 2>conftest.er1 | |
25886 | ac_status=$? | |
25887 | grep -v '^ *+' conftest.er1 >conftest.err | |
25888 | rm -f conftest.er1 | |
25889 | cat conftest.err >&5 | |
25890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25891 | (exit $ac_status); } && | |
6ebeb4c7 | 25892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
25893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25894 | (eval $ac_try) 2>&5 | |
25895 | ac_status=$? | |
25896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25897 | (exit $ac_status); }; } && | |
25898 | { ac_try='test -s conftest.$ac_objext' | |
25899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25900 | (eval $ac_try) 2>&5 | |
25901 | ac_status=$? | |
25902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25903 | (exit $ac_status); }; }; then | |
25904 | ||
25905 | cat >>confdefs.h <<\_ACEOF | |
25906 | #define __WXGTK24__ 1 | |
25907 | _ACEOF | |
25908 | ||
25909 | echo "$as_me:$LINENO: result: yes" >&5 | |
25910 | echo "${ECHO_T}yes" >&6 | |
25911 | ||
25912 | else | |
25913 | echo "$as_me: failed program was:" >&5 | |
25914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25915 | ||
25916 | ||
25917 | echo "$as_me:$LINENO: result: no" >&5 | |
25918 | echo "${ECHO_T}no" >&6 | |
25919 | ||
25920 | fi | |
25921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25922 | ||
304205f1 VS |
25923 | CFLAGS="$save_CFLAGS" |
25924 | LIBS="$save_LIBS" | |
a848cd7e SC |
25925 | else |
25926 | if test "$wxUSE_UNICODE" = "yes"; then | |
25927 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
25928 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
25929 | wxUSE_UNICODE=no | |
25930 | fi | |
25931 | fi | |
25932 | ||
25933 | if test "$USE_DARWIN" != 1; then | |
25934 | ||
25935 | for ac_func in poll | |
25936 | do | |
25937 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25938 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25939 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25940 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25942 | else | |
25943 | cat >conftest.$ac_ext <<_ACEOF | |
25944 | /* confdefs.h. */ | |
25945 | _ACEOF | |
25946 | cat confdefs.h >>conftest.$ac_ext | |
25947 | cat >>conftest.$ac_ext <<_ACEOF | |
25948 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25949 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
25950 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25951 | #define $ac_func innocuous_$ac_func | |
25952 | ||
a848cd7e SC |
25953 | /* System header to define __stub macros and hopefully few prototypes, |
25954 | which can conflict with char $ac_func (); below. | |
25955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25956 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25957 | |
a848cd7e SC |
25958 | #ifdef __STDC__ |
25959 | # include <limits.h> | |
25960 | #else | |
25961 | # include <assert.h> | |
25962 | #endif | |
ac1cb8d3 VS |
25963 | |
25964 | #undef $ac_func | |
25965 | ||
a848cd7e SC |
25966 | /* Override any gcc2 internal prototype to avoid an error. */ |
25967 | #ifdef __cplusplus | |
25968 | extern "C" | |
25969 | { | |
25970 | #endif | |
25971 | /* We use char because int might match the return type of a gcc2 | |
25972 | builtin and then its argument prototype would still apply. */ | |
25973 | char $ac_func (); | |
25974 | /* The GNU C library defines this for functions which it implements | |
25975 | to always fail with ENOSYS. Some functions are actually named | |
25976 | something starting with __ and the normal name is an alias. */ | |
25977 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25978 | choke me | |
25979 | #else | |
25980 | char (*f) () = $ac_func; | |
25981 | #endif | |
25982 | #ifdef __cplusplus | |
25983 | } | |
25984 | #endif | |
25985 | ||
25986 | int | |
25987 | main () | |
25988 | { | |
25989 | return f != $ac_func; | |
25990 | ; | |
25991 | return 0; | |
25992 | } | |
25993 | _ACEOF | |
25994 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25996 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25997 | ac_status=$? |
ac1cb8d3 VS |
25998 | grep -v '^ *+' conftest.er1 >conftest.err |
25999 | rm -f conftest.er1 | |
26000 | cat conftest.err >&5 | |
a848cd7e SC |
26001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26002 | (exit $ac_status); } && | |
6ebeb4c7 | 26003 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26005 | (eval $ac_try) 2>&5 | |
26006 | ac_status=$? | |
26007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26008 | (exit $ac_status); }; } && | |
26009 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26011 | (eval $ac_try) 2>&5 | |
26012 | ac_status=$? | |
26013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26014 | (exit $ac_status); }; }; then | |
26015 | eval "$as_ac_var=yes" | |
26016 | else | |
26017 | echo "$as_me: failed program was:" >&5 | |
26018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26019 | ||
26020 | eval "$as_ac_var=no" | |
26021 | fi | |
ac1cb8d3 VS |
26022 | rm -f conftest.err conftest.$ac_objext \ |
26023 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26024 | fi |
26025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26026 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26027 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26028 | cat >>confdefs.h <<_ACEOF | |
26029 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26030 | _ACEOF | |
26031 | ||
26032 | fi | |
26033 | done | |
26034 | ||
26035 | fi | |
26036 | ||
26037 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
26038 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
26039 | ||
26040 | AFMINSTALL=afminstall | |
26041 | TOOLKIT=GTK | |
26042 | GUIDIST=GTK_DIST | |
26043 | ||
26044 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
26045 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
26046 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
26047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26048 | else | |
26049 | ac_check_lib_save_LIBS=$LIBS | |
26050 | LIBS="-lgdk $LIBS" | |
26051 | cat >conftest.$ac_ext <<_ACEOF | |
26052 | /* confdefs.h. */ | |
26053 | _ACEOF | |
26054 | cat confdefs.h >>conftest.$ac_ext | |
26055 | cat >>conftest.$ac_ext <<_ACEOF | |
26056 | /* end confdefs.h. */ | |
26057 | ||
26058 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26059 | #ifdef __cplusplus | |
26060 | extern "C" | |
26061 | #endif | |
26062 | /* We use char because int might match the return type of a gcc2 | |
26063 | builtin and then its argument prototype would still apply. */ | |
26064 | char gdk_im_open (); | |
26065 | int | |
26066 | main () | |
26067 | { | |
26068 | gdk_im_open (); | |
26069 | ; | |
26070 | return 0; | |
26071 | } | |
26072 | _ACEOF | |
26073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26075 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26076 | ac_status=$? |
ac1cb8d3 VS |
26077 | grep -v '^ *+' conftest.er1 >conftest.err |
26078 | rm -f conftest.er1 | |
26079 | cat conftest.err >&5 | |
a848cd7e SC |
26080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26081 | (exit $ac_status); } && | |
6ebeb4c7 | 26082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26084 | (eval $ac_try) 2>&5 | |
26085 | ac_status=$? | |
26086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26087 | (exit $ac_status); }; } && | |
26088 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26090 | (eval $ac_try) 2>&5 | |
26091 | ac_status=$? | |
26092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26093 | (exit $ac_status); }; }; then | |
26094 | ac_cv_lib_gdk_gdk_im_open=yes | |
26095 | else | |
26096 | echo "$as_me: failed program was:" >&5 | |
26097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26098 | ||
26099 | ac_cv_lib_gdk_gdk_im_open=no | |
26100 | fi | |
ac1cb8d3 VS |
26101 | rm -f conftest.err conftest.$ac_objext \ |
26102 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26103 | LIBS=$ac_check_lib_save_LIBS |
26104 | fi | |
26105 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
26106 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
26107 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
26108 | cat >>confdefs.h <<\_ACEOF | |
26109 | #define HAVE_XIM 1 | |
26110 | _ACEOF | |
26111 | ||
26112 | fi | |
26113 | ||
26114 | ||
26115 | ||
26116 | if test "$wxUSE_GPE" = "yes"; then | |
26117 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
26118 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
26119 | ||
26120 | ac_find_libraries= | |
26121 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26122 | do | |
3eca31dc | 26123 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
26124 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
26125 | ac_find_libraries=$ac_dir | |
26126 | break 2 | |
26127 | fi | |
26128 | done | |
26129 | done | |
26130 | ||
26131 | if test "$ac_find_libraries" != "" ; then | |
26132 | ||
26133 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26134 | result=$? | |
26135 | if test $result = 0; then | |
26136 | ac_path_to_link="" | |
26137 | else | |
26138 | ac_path_to_link=" -L$ac_find_libraries" | |
26139 | fi | |
26140 | ||
26141 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
26142 | WXGPE=1 | |
26143 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26144 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26145 | else | |
26146 | echo "$as_me:$LINENO: result: not found" >&5 | |
26147 | echo "${ECHO_T}not found" >&6 | |
26148 | fi | |
26149 | ||
26150 | fi | |
26151 | fi | |
26152 | ||
26153 | if test "$wxUSE_MGL" = 1; then | |
26154 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
26155 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
26156 | if test "x$MGL_ROOT" = x ; then | |
26157 | echo "$as_me:$LINENO: result: not found" >&5 | |
26158 | echo "${ECHO_T}not found" >&6 | |
26159 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
26160 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
26161 | { (exit 1); exit 1; }; } | |
26162 | else | |
26163 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
26164 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
26165 | fi | |
26166 | ||
26167 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
26168 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
26169 | case "${host}" in | |
26170 | *-*-linux* ) | |
26171 | if test "x$wxUSE_SHARED" = xyes ; then | |
26172 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
26173 | else | |
26174 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
26175 | fi | |
26176 | ;; | |
26177 | *-pc-msdosdjgpp ) | |
26178 | mgl_os_candidates="dos32/dj2" | |
26179 | ;; | |
26180 | *) | |
26181 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
26182 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
26183 | { (exit 1); exit 1; }; } | |
26184 | esac | |
26185 | ||
26186 | mgl_lib_type="" | |
26187 | mgl_os="" | |
26188 | ||
26189 | for mgl_os_i in $mgl_os_candidates ; do | |
26190 | if test "x$mgl_os" = x ; then | |
26191 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
26192 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
26193 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
26194 | mgl_lib_type=debug | |
26195 | mgl_os=$mgl_os_i | |
26196 | fi | |
26197 | fi | |
26198 | if test "x$mgl_lib_type" = x ; then | |
26199 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
26200 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
26201 | mgl_lib_type=release | |
26202 | mgl_os=$mgl_os_i | |
26203 | fi | |
26204 | fi | |
26205 | fi | |
26206 | done | |
26207 | ||
26208 | if test "x$mgl_os" = x ; then | |
26209 | echo "$as_me:$LINENO: result: not found" >&5 | |
26210 | echo "${ECHO_T}not found" >&6 | |
26211 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
26212 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
26213 | { (exit 1); exit 1; }; } | |
26214 | fi | |
26215 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
26216 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
26217 | ||
26218 | wxUSE_UNIVERSAL="yes" | |
26219 | ||
26220 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
26221 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
26222 | ||
26223 | AFMINSTALL=afminstall | |
26224 | TOOLKIT=MGL | |
26225 | GUIDIST=MGL_DIST | |
26226 | fi | |
26227 | ||
26228 | if test "$wxUSE_MICROWIN" = 1; then | |
26229 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
26230 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
26231 | if test "x$MICROWINDOWS" = x ; then | |
26232 | echo "$as_me:$LINENO: result: not found" >&5 | |
26233 | echo "${ECHO_T}not found" >&6 | |
26234 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
26235 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
26236 | { (exit 1); exit 1; }; } | |
26237 | else | |
26238 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
26239 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
26240 | fi | |
26241 | ||
26242 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
26243 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
26244 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
26245 | else | |
26246 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
26247 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
26248 | { (exit 1); exit 1; }; } | |
26249 | fi | |
26250 | ||
26251 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
26252 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
26253 | ||
26254 | wxUSE_UNIVERSAL="yes" | |
26255 | ||
26256 | AFMINSTALL=afminstall | |
26257 | TOOLKIT=MICROWIN | |
26258 | GUIDIST=MICROWIN_DIST | |
26259 | ||
26260 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
26261 | fi | |
26262 | ||
74b84332 | 26263 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
6ebeb4c7 VZ |
26264 | |
26265 | if test "x$ac_path_x_has_been_run" != xyes; then | |
26266 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
26267 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
26268 | ||
6ebeb4c7 | 26269 | ac_path_x_has_been_run=yes |
a848cd7e SC |
26270 | |
26271 | # Check whether --with-x or --without-x was given. | |
26272 | if test "${with_x+set}" = set; then | |
26273 | withval="$with_x" | |
26274 | ||
26275 | fi; | |
26276 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
26277 | if test "x$with_x" = xno; then | |
26278 | # The user explicitly disabled X. | |
26279 | have_x=disabled | |
26280 | else | |
26281 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
26282 | # Both variables are already set. | |
26283 | have_x=yes | |
26284 | else | |
26285 | if test "${ac_cv_have_x+set}" = set; then | |
26286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26287 | else | |
26288 | # One or both of the vars are not set, and there is no cached value. | |
26289 | ac_x_includes=no ac_x_libraries=no | |
26290 | rm -fr conftest.dir | |
26291 | if mkdir conftest.dir; then | |
26292 | cd conftest.dir | |
26293 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
26294 | cat >Imakefile <<'_ACEOF' | |
26295 | acfindx: | |
26296 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
26297 | _ACEOF | |
26298 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
26299 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
26300 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
26301 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
26302 | for ac_extension in a so sl; do | |
26303 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
26304 | test -f $ac_im_libdir/libX11.$ac_extension; then |
26305 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
26306 | fi |
26307 | done | |
26308 | # Screen out bogus values from the imake configuration. They are | |
26309 | # bogus both because they are the default anyway, and because | |
26310 | # using them would break gcc on systems where it needs fixed includes. | |
26311 | case $ac_im_incroot in | |
26312 | /usr/include) ;; | |
26313 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
26314 | esac | |
26315 | case $ac_im_usrlibdir in | |
26316 | /usr/lib | /lib) ;; | |
26317 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
26318 | esac | |
26319 | fi | |
26320 | cd .. | |
26321 | rm -fr conftest.dir | |
26322 | fi | |
26323 | ||
26324 | # Standard set of common directories for X headers. | |
26325 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
26326 | ac_x_header_dirs=' | |
26327 | /usr/X11/include | |
26328 | /usr/X11R6/include | |
26329 | /usr/X11R5/include | |
26330 | /usr/X11R4/include | |
26331 | ||
26332 | /usr/include/X11 | |
26333 | /usr/include/X11R6 | |
26334 | /usr/include/X11R5 | |
26335 | /usr/include/X11R4 | |
26336 | ||
26337 | /usr/local/X11/include | |
26338 | /usr/local/X11R6/include | |
26339 | /usr/local/X11R5/include | |
26340 | /usr/local/X11R4/include | |
26341 | ||
26342 | /usr/local/include/X11 | |
26343 | /usr/local/include/X11R6 | |
26344 | /usr/local/include/X11R5 | |
26345 | /usr/local/include/X11R4 | |
26346 | ||
26347 | /usr/X386/include | |
26348 | /usr/x386/include | |
26349 | /usr/XFree86/include/X11 | |
26350 | ||
26351 | /usr/include | |
26352 | /usr/local/include | |
26353 | /usr/unsupported/include | |
26354 | /usr/athena/include | |
26355 | /usr/local/x11r5/include | |
26356 | /usr/lpp/Xamples/include | |
26357 | ||
26358 | /usr/openwin/include | |
26359 | /usr/openwin/share/include' | |
26360 | ||
26361 | if test "$ac_x_includes" = no; then | |
6ebeb4c7 | 26362 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
26363 | # First, try using that file with no special directory specified. |
26364 | cat >conftest.$ac_ext <<_ACEOF | |
26365 | /* confdefs.h. */ | |
26366 | _ACEOF | |
26367 | cat confdefs.h >>conftest.$ac_ext | |
26368 | cat >>conftest.$ac_ext <<_ACEOF | |
26369 | /* end confdefs.h. */ | |
26370 | #include <X11/Intrinsic.h> | |
26371 | _ACEOF | |
26372 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26373 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26374 | ac_status=$? | |
26375 | grep -v '^ *+' conftest.er1 >conftest.err | |
26376 | rm -f conftest.er1 | |
26377 | cat conftest.err >&5 | |
26378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26379 | (exit $ac_status); } >/dev/null; then | |
26380 | if test -s conftest.err; then | |
26381 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26382 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26383 | else |
26384 | ac_cpp_err= | |
26385 | fi | |
26386 | else | |
26387 | ac_cpp_err=yes | |
26388 | fi | |
26389 | if test -z "$ac_cpp_err"; then | |
26390 | # We can compile using X headers with no special include directory. | |
26391 | ac_x_includes= | |
26392 | else | |
26393 | echo "$as_me: failed program was:" >&5 | |
26394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26395 | ||
26396 | for ac_dir in $ac_x_header_dirs; do | |
26397 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
26398 | ac_x_includes=$ac_dir | |
26399 | break | |
26400 | fi | |
26401 | done | |
26402 | fi | |
26403 | rm -f conftest.err conftest.$ac_ext | |
26404 | fi # $ac_x_includes = no | |
26405 | ||
26406 | if test "$ac_x_libraries" = no; then | |
26407 | # Check for the libraries. | |
26408 | # See if we find them without any special options. | |
26409 | # Don't add to $LIBS permanently. | |
26410 | ac_save_LIBS=$LIBS | |
26411 | LIBS="-lXt $LIBS" | |
26412 | cat >conftest.$ac_ext <<_ACEOF | |
26413 | /* confdefs.h. */ | |
26414 | _ACEOF | |
26415 | cat confdefs.h >>conftest.$ac_ext | |
26416 | cat >>conftest.$ac_ext <<_ACEOF | |
26417 | /* end confdefs.h. */ | |
26418 | #include <X11/Intrinsic.h> | |
26419 | int | |
26420 | main () | |
26421 | { | |
26422 | XtMalloc (0) | |
26423 | ; | |
26424 | return 0; | |
26425 | } | |
26426 | _ACEOF | |
26427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26429 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26430 | ac_status=$? |
ac1cb8d3 VS |
26431 | grep -v '^ *+' conftest.er1 >conftest.err |
26432 | rm -f conftest.er1 | |
26433 | cat conftest.err >&5 | |
a848cd7e SC |
26434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26435 | (exit $ac_status); } && | |
6ebeb4c7 | 26436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26438 | (eval $ac_try) 2>&5 | |
26439 | ac_status=$? | |
26440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26441 | (exit $ac_status); }; } && | |
26442 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26444 | (eval $ac_try) 2>&5 | |
26445 | ac_status=$? | |
26446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26447 | (exit $ac_status); }; }; then | |
26448 | LIBS=$ac_save_LIBS | |
26449 | # We can link X programs with no special library path. | |
26450 | ac_x_libraries= | |
26451 | else | |
26452 | echo "$as_me: failed program was:" >&5 | |
26453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26454 | ||
26455 | LIBS=$ac_save_LIBS | |
26456 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
26457 | do | |
26458 | # Don't even attempt the hair of trying to link an X program! | |
26459 | for ac_extension in a so sl; do | |
26460 | if test -r $ac_dir/libXt.$ac_extension; then | |
26461 | ac_x_libraries=$ac_dir | |
26462 | break 2 | |
26463 | fi | |
26464 | done | |
26465 | done | |
26466 | fi | |
ac1cb8d3 VS |
26467 | rm -f conftest.err conftest.$ac_objext \ |
26468 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26469 | fi # $ac_x_libraries = no |
26470 | ||
26471 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
26472 | # Didn't find X anywhere. Cache the known absence of X. | |
26473 | ac_cv_have_x="have_x=no" | |
26474 | else | |
26475 | # Record where we found X for the cache. | |
26476 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 26477 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
26478 | fi |
26479 | fi | |
26480 | ||
26481 | fi | |
26482 | eval "$ac_cv_have_x" | |
26483 | fi # $with_x != no | |
26484 | ||
26485 | if test "$have_x" != yes; then | |
26486 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
26487 | echo "${ECHO_T}$have_x" >&6 | |
26488 | no_x=yes | |
26489 | else | |
26490 | # If each of the values was on the command line, it overrides each guess. | |
26491 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
26492 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
26493 | # Update the cache value to reflect the command line values. | |
26494 | ac_cv_have_x="have_x=yes \ | |
26495 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
6ebeb4c7 VZ |
26496 | # It might be that x_includes is empty (headers are found in the |
26497 | # standard search path. Then output the corresponding message | |
26498 | ac_out_x_includes=$x_includes | |
26499 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
26500 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
26501 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
26502 | fi |
26503 | ||
6ebeb4c7 | 26504 | fi |
a848cd7e SC |
26505 | if test "$no_x" = yes; then |
26506 | # Not all programs may use this symbol, but it does not hurt to define it. | |
26507 | ||
26508 | cat >>confdefs.h <<\_ACEOF | |
26509 | #define X_DISPLAY_MISSING 1 | |
26510 | _ACEOF | |
26511 | ||
26512 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
26513 | else | |
26514 | if test -n "$x_includes"; then | |
26515 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
26516 | fi | |
26517 | ||
26518 | # It would also be nice to do this for all -L options, not just this one. | |
26519 | if test -n "$x_libraries"; then | |
26520 | X_LIBS="$X_LIBS -L$x_libraries" | |
26521 | # For Solaris; some versions of Sun CC require a space after -R and | |
26522 | # others require no space. Words are not sufficient . . . . | |
26523 | case `(uname -sr) 2>/dev/null` in | |
26524 | "SunOS 5"*) | |
26525 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
26526 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
26527 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
26528 | cat >conftest.$ac_ext <<_ACEOF | |
26529 | /* confdefs.h. */ | |
26530 | _ACEOF | |
26531 | cat confdefs.h >>conftest.$ac_ext | |
26532 | cat >>conftest.$ac_ext <<_ACEOF | |
26533 | /* end confdefs.h. */ | |
26534 | ||
26535 | int | |
26536 | main () | |
26537 | { | |
26538 | ||
26539 | ; | |
26540 | return 0; | |
26541 | } | |
26542 | _ACEOF | |
26543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26545 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26546 | ac_status=$? |
ac1cb8d3 VS |
26547 | grep -v '^ *+' conftest.er1 >conftest.err |
26548 | rm -f conftest.er1 | |
26549 | cat conftest.err >&5 | |
a848cd7e SC |
26550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26551 | (exit $ac_status); } && | |
6ebeb4c7 | 26552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26554 | (eval $ac_try) 2>&5 | |
26555 | ac_status=$? | |
26556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26557 | (exit $ac_status); }; } && | |
26558 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26560 | (eval $ac_try) 2>&5 | |
26561 | ac_status=$? | |
26562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26563 | (exit $ac_status); }; }; then | |
26564 | ac_R_nospace=yes | |
26565 | else | |
26566 | echo "$as_me: failed program was:" >&5 | |
26567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26568 | ||
26569 | ac_R_nospace=no | |
26570 | fi | |
ac1cb8d3 VS |
26571 | rm -f conftest.err conftest.$ac_objext \ |
26572 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26573 | if test $ac_R_nospace = yes; then |
26574 | echo "$as_me:$LINENO: result: no" >&5 | |
26575 | echo "${ECHO_T}no" >&6 | |
26576 | X_LIBS="$X_LIBS -R$x_libraries" | |
26577 | else | |
26578 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
26579 | cat >conftest.$ac_ext <<_ACEOF | |
26580 | /* confdefs.h. */ | |
26581 | _ACEOF | |
26582 | cat confdefs.h >>conftest.$ac_ext | |
26583 | cat >>conftest.$ac_ext <<_ACEOF | |
26584 | /* end confdefs.h. */ | |
26585 | ||
26586 | int | |
26587 | main () | |
26588 | { | |
26589 | ||
26590 | ; | |
26591 | return 0; | |
26592 | } | |
26593 | _ACEOF | |
26594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26596 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26597 | ac_status=$? |
ac1cb8d3 VS |
26598 | grep -v '^ *+' conftest.er1 >conftest.err |
26599 | rm -f conftest.er1 | |
26600 | cat conftest.err >&5 | |
a848cd7e SC |
26601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26602 | (exit $ac_status); } && | |
6ebeb4c7 | 26603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26605 | (eval $ac_try) 2>&5 | |
26606 | ac_status=$? | |
26607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26608 | (exit $ac_status); }; } && | |
26609 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26611 | (eval $ac_try) 2>&5 | |
26612 | ac_status=$? | |
26613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26614 | (exit $ac_status); }; }; then | |
26615 | ac_R_space=yes | |
26616 | else | |
26617 | echo "$as_me: failed program was:" >&5 | |
26618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26619 | ||
26620 | ac_R_space=no | |
26621 | fi | |
ac1cb8d3 VS |
26622 | rm -f conftest.err conftest.$ac_objext \ |
26623 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26624 | if test $ac_R_space = yes; then |
26625 | echo "$as_me:$LINENO: result: yes" >&5 | |
26626 | echo "${ECHO_T}yes" >&6 | |
26627 | X_LIBS="$X_LIBS -R $x_libraries" | |
26628 | else | |
26629 | echo "$as_me:$LINENO: result: neither works" >&5 | |
26630 | echo "${ECHO_T}neither works" >&6 | |
26631 | fi | |
26632 | fi | |
26633 | LIBS=$ac_xsave_LIBS | |
26634 | esac | |
26635 | fi | |
26636 | ||
26637 | # Check for system-dependent libraries X programs must link with. | |
26638 | # Do this before checking for the system-independent R6 libraries | |
26639 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
26640 | ||
26641 | if test "$ISC" = yes; then | |
26642 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
26643 | else | |
26644 | # Martyn Johnson says this is needed for Ultrix, if the X | |
26645 | # libraries were built with DECnet support. And Karl Berry says | |
26646 | # the Alpha needs dnet_stub (dnet does not exist). | |
26647 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
26648 | cat >conftest.$ac_ext <<_ACEOF | |
26649 | /* confdefs.h. */ | |
26650 | _ACEOF | |
26651 | cat confdefs.h >>conftest.$ac_ext | |
26652 | cat >>conftest.$ac_ext <<_ACEOF | |
26653 | /* end confdefs.h. */ | |
26654 | ||
26655 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26656 | #ifdef __cplusplus | |
26657 | extern "C" | |
26658 | #endif | |
26659 | /* We use char because int might match the return type of a gcc2 | |
26660 | builtin and then its argument prototype would still apply. */ | |
26661 | char XOpenDisplay (); | |
26662 | int | |
26663 | main () | |
26664 | { | |
26665 | XOpenDisplay (); | |
26666 | ; | |
26667 | return 0; | |
26668 | } | |
26669 | _ACEOF | |
26670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26672 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26673 | ac_status=$? |
ac1cb8d3 VS |
26674 | grep -v '^ *+' conftest.er1 >conftest.err |
26675 | rm -f conftest.er1 | |
26676 | cat conftest.err >&5 | |
a848cd7e SC |
26677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26678 | (exit $ac_status); } && | |
6ebeb4c7 | 26679 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26681 | (eval $ac_try) 2>&5 | |
26682 | ac_status=$? | |
26683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26684 | (exit $ac_status); }; } && | |
26685 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26687 | (eval $ac_try) 2>&5 | |
26688 | ac_status=$? | |
26689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26690 | (exit $ac_status); }; }; then | |
26691 | : | |
26692 | else | |
26693 | echo "$as_me: failed program was:" >&5 | |
26694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26695 | ||
26696 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
26697 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
26698 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
26699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26700 | else | |
26701 | ac_check_lib_save_LIBS=$LIBS | |
26702 | LIBS="-ldnet $LIBS" | |
26703 | cat >conftest.$ac_ext <<_ACEOF | |
26704 | /* confdefs.h. */ | |
26705 | _ACEOF | |
26706 | cat confdefs.h >>conftest.$ac_ext | |
26707 | cat >>conftest.$ac_ext <<_ACEOF | |
26708 | /* end confdefs.h. */ | |
26709 | ||
26710 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26711 | #ifdef __cplusplus | |
26712 | extern "C" | |
26713 | #endif | |
26714 | /* We use char because int might match the return type of a gcc2 | |
26715 | builtin and then its argument prototype would still apply. */ | |
26716 | char dnet_ntoa (); | |
26717 | int | |
26718 | main () | |
26719 | { | |
26720 | dnet_ntoa (); | |
26721 | ; | |
26722 | return 0; | |
26723 | } | |
26724 | _ACEOF | |
26725 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26727 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26728 | ac_status=$? |
ac1cb8d3 VS |
26729 | grep -v '^ *+' conftest.er1 >conftest.err |
26730 | rm -f conftest.er1 | |
26731 | cat conftest.err >&5 | |
a848cd7e SC |
26732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26733 | (exit $ac_status); } && | |
6ebeb4c7 | 26734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26736 | (eval $ac_try) 2>&5 | |
26737 | ac_status=$? | |
26738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26739 | (exit $ac_status); }; } && | |
26740 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26742 | (eval $ac_try) 2>&5 | |
26743 | ac_status=$? | |
26744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26745 | (exit $ac_status); }; }; then | |
26746 | ac_cv_lib_dnet_dnet_ntoa=yes | |
26747 | else | |
26748 | echo "$as_me: failed program was:" >&5 | |
26749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26750 | ||
26751 | ac_cv_lib_dnet_dnet_ntoa=no | |
26752 | fi | |
ac1cb8d3 VS |
26753 | rm -f conftest.err conftest.$ac_objext \ |
26754 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26755 | LIBS=$ac_check_lib_save_LIBS |
26756 | fi | |
26757 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
26758 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
26759 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
26760 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
26761 | fi | |
26762 | ||
26763 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
26764 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
26765 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
26766 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
26767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26768 | else | |
26769 | ac_check_lib_save_LIBS=$LIBS | |
26770 | LIBS="-ldnet_stub $LIBS" | |
26771 | cat >conftest.$ac_ext <<_ACEOF | |
26772 | /* confdefs.h. */ | |
26773 | _ACEOF | |
26774 | cat confdefs.h >>conftest.$ac_ext | |
26775 | cat >>conftest.$ac_ext <<_ACEOF | |
26776 | /* end confdefs.h. */ | |
26777 | ||
26778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26779 | #ifdef __cplusplus | |
26780 | extern "C" | |
26781 | #endif | |
26782 | /* We use char because int might match the return type of a gcc2 | |
26783 | builtin and then its argument prototype would still apply. */ | |
26784 | char dnet_ntoa (); | |
26785 | int | |
26786 | main () | |
26787 | { | |
26788 | dnet_ntoa (); | |
26789 | ; | |
26790 | return 0; | |
26791 | } | |
26792 | _ACEOF | |
26793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26794 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26795 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26796 | ac_status=$? |
ac1cb8d3 VS |
26797 | grep -v '^ *+' conftest.er1 >conftest.err |
26798 | rm -f conftest.er1 | |
26799 | cat conftest.err >&5 | |
a848cd7e SC |
26800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26801 | (exit $ac_status); } && | |
6ebeb4c7 | 26802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26804 | (eval $ac_try) 2>&5 | |
26805 | ac_status=$? | |
26806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26807 | (exit $ac_status); }; } && | |
26808 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26810 | (eval $ac_try) 2>&5 | |
26811 | ac_status=$? | |
26812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26813 | (exit $ac_status); }; }; then | |
26814 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
26815 | else | |
26816 | echo "$as_me: failed program was:" >&5 | |
26817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26818 | ||
26819 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
26820 | fi | |
ac1cb8d3 VS |
26821 | rm -f conftest.err conftest.$ac_objext \ |
26822 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26823 | LIBS=$ac_check_lib_save_LIBS |
26824 | fi | |
26825 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
26826 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
26827 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
26828 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
26829 | fi | |
26830 | ||
26831 | fi | |
26832 | fi | |
ac1cb8d3 VS |
26833 | rm -f conftest.err conftest.$ac_objext \ |
26834 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26835 | LIBS="$ac_xsave_LIBS" |
26836 | ||
26837 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
26838 | # to get the SysV transport functions. | |
26839 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
26840 | # needs -lnsl. | |
26841 | # The nsl library prevents programs from opening the X display | |
26842 | # on Irix 5.2, according to T.E. Dickey. | |
26843 | # The functions gethostbyname, getservbyname, and inet_addr are | |
26844 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
26845 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
26846 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
26847 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
26848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26849 | else | |
26850 | cat >conftest.$ac_ext <<_ACEOF | |
26851 | /* confdefs.h. */ | |
26852 | _ACEOF | |
26853 | cat confdefs.h >>conftest.$ac_ext | |
26854 | cat >>conftest.$ac_ext <<_ACEOF | |
26855 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26856 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
26857 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26858 | #define gethostbyname innocuous_gethostbyname | |
26859 | ||
a848cd7e SC |
26860 | /* System header to define __stub macros and hopefully few prototypes, |
26861 | which can conflict with char gethostbyname (); below. | |
26862 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26863 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26864 | |
a848cd7e SC |
26865 | #ifdef __STDC__ |
26866 | # include <limits.h> | |
26867 | #else | |
26868 | # include <assert.h> | |
26869 | #endif | |
ac1cb8d3 VS |
26870 | |
26871 | #undef gethostbyname | |
26872 | ||
a848cd7e SC |
26873 | /* Override any gcc2 internal prototype to avoid an error. */ |
26874 | #ifdef __cplusplus | |
26875 | extern "C" | |
26876 | { | |
26877 | #endif | |
26878 | /* We use char because int might match the return type of a gcc2 | |
26879 | builtin and then its argument prototype would still apply. */ | |
26880 | char gethostbyname (); | |
26881 | /* The GNU C library defines this for functions which it implements | |
26882 | to always fail with ENOSYS. Some functions are actually named | |
26883 | something starting with __ and the normal name is an alias. */ | |
26884 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
26885 | choke me | |
26886 | #else | |
26887 | char (*f) () = gethostbyname; | |
26888 | #endif | |
26889 | #ifdef __cplusplus | |
26890 | } | |
26891 | #endif | |
26892 | ||
26893 | int | |
26894 | main () | |
26895 | { | |
26896 | return f != gethostbyname; | |
26897 | ; | |
26898 | return 0; | |
26899 | } | |
26900 | _ACEOF | |
26901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26903 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26904 | ac_status=$? |
ac1cb8d3 VS |
26905 | grep -v '^ *+' conftest.er1 >conftest.err |
26906 | rm -f conftest.er1 | |
26907 | cat conftest.err >&5 | |
a848cd7e SC |
26908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26909 | (exit $ac_status); } && | |
6ebeb4c7 | 26910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26912 | (eval $ac_try) 2>&5 | |
26913 | ac_status=$? | |
26914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26915 | (exit $ac_status); }; } && | |
26916 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26918 | (eval $ac_try) 2>&5 | |
26919 | ac_status=$? | |
26920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26921 | (exit $ac_status); }; }; then | |
26922 | ac_cv_func_gethostbyname=yes | |
26923 | else | |
26924 | echo "$as_me: failed program was:" >&5 | |
26925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26926 | ||
26927 | ac_cv_func_gethostbyname=no | |
26928 | fi | |
ac1cb8d3 VS |
26929 | rm -f conftest.err conftest.$ac_objext \ |
26930 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26931 | fi |
26932 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
26933 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
26934 | ||
26935 | if test $ac_cv_func_gethostbyname = no; then | |
26936 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
26937 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
26938 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
26939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26940 | else | |
26941 | ac_check_lib_save_LIBS=$LIBS | |
26942 | LIBS="-lnsl $LIBS" | |
26943 | cat >conftest.$ac_ext <<_ACEOF | |
26944 | /* confdefs.h. */ | |
26945 | _ACEOF | |
26946 | cat confdefs.h >>conftest.$ac_ext | |
26947 | cat >>conftest.$ac_ext <<_ACEOF | |
26948 | /* end confdefs.h. */ | |
26949 | ||
26950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26951 | #ifdef __cplusplus | |
26952 | extern "C" | |
26953 | #endif | |
26954 | /* We use char because int might match the return type of a gcc2 | |
26955 | builtin and then its argument prototype would still apply. */ | |
26956 | char gethostbyname (); | |
26957 | int | |
26958 | main () | |
26959 | { | |
26960 | gethostbyname (); | |
26961 | ; | |
26962 | return 0; | |
26963 | } | |
26964 | _ACEOF | |
26965 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
26967 | (eval $ac_link) 2>conftest.er1 |
26968 | ac_status=$? | |
26969 | grep -v '^ *+' conftest.er1 >conftest.err | |
26970 | rm -f conftest.er1 | |
26971 | cat conftest.err >&5 | |
26972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26973 | (exit $ac_status); } && | |
6ebeb4c7 | 26974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26976 | (eval $ac_try) 2>&5 | |
26977 | ac_status=$? | |
26978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26979 | (exit $ac_status); }; } && | |
26980 | { ac_try='test -s conftest$ac_exeext' | |
26981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26982 | (eval $ac_try) 2>&5 | |
26983 | ac_status=$? | |
26984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26985 | (exit $ac_status); }; }; then | |
26986 | ac_cv_lib_nsl_gethostbyname=yes | |
26987 | else | |
26988 | echo "$as_me: failed program was:" >&5 | |
26989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26990 | ||
26991 | ac_cv_lib_nsl_gethostbyname=no | |
26992 | fi | |
26993 | rm -f conftest.err conftest.$ac_objext \ | |
26994 | conftest$ac_exeext conftest.$ac_ext | |
26995 | LIBS=$ac_check_lib_save_LIBS | |
26996 | fi | |
26997 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
26998 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
26999 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
27000 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
27001 | fi | |
27002 | ||
27003 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
27004 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
27005 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
27006 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
27007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27008 | else | |
27009 | ac_check_lib_save_LIBS=$LIBS | |
27010 | LIBS="-lbsd $LIBS" | |
27011 | cat >conftest.$ac_ext <<_ACEOF | |
27012 | /* confdefs.h. */ | |
27013 | _ACEOF | |
27014 | cat confdefs.h >>conftest.$ac_ext | |
27015 | cat >>conftest.$ac_ext <<_ACEOF | |
27016 | /* end confdefs.h. */ | |
27017 | ||
27018 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27019 | #ifdef __cplusplus | |
27020 | extern "C" | |
27021 | #endif | |
27022 | /* We use char because int might match the return type of a gcc2 | |
27023 | builtin and then its argument prototype would still apply. */ | |
27024 | char gethostbyname (); | |
27025 | int | |
27026 | main () | |
27027 | { | |
27028 | gethostbyname (); | |
27029 | ; | |
27030 | return 0; | |
27031 | } | |
27032 | _ACEOF | |
27033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27035 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 27036 | ac_status=$? |
ac1cb8d3 VS |
27037 | grep -v '^ *+' conftest.er1 >conftest.err |
27038 | rm -f conftest.er1 | |
27039 | cat conftest.err >&5 | |
a848cd7e SC |
27040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27041 | (exit $ac_status); } && | |
6ebeb4c7 | 27042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
27043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27044 | (eval $ac_try) 2>&5 | |
27045 | ac_status=$? | |
27046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
27047 | (exit $ac_status); }; } && |
27048 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27050 | (eval $ac_try) 2>&5 | |
27051 | ac_status=$? | |
27052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27053 | (exit $ac_status); }; }; then | |
27054 | ac_cv_lib_bsd_gethostbyname=yes | |
27055 | else | |
27056 | echo "$as_me: failed program was:" >&5 | |
27057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27058 | ||
27059 | ac_cv_lib_bsd_gethostbyname=no | |
27060 | fi | |
ac1cb8d3 VS |
27061 | rm -f conftest.err conftest.$ac_objext \ |
27062 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27063 | LIBS=$ac_check_lib_save_LIBS |
27064 | fi | |
27065 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
27066 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
27067 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
27068 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
27069 | fi | |
27070 | ||
27071 | fi | |
27072 | fi | |
27073 | ||
27074 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
27075 | # socket/setsockopt and other routines are undefined under SCO ODT | |
27076 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
27077 | # on later versions), says Simon Leinen: it contains gethostby* | |
27078 | # variants that don't use the name server (or something). -lsocket | |
27079 | # must be given before -lnsl if both are needed. We assume that | |
27080 | # if connect needs -lnsl, so does gethostbyname. | |
27081 | echo "$as_me:$LINENO: checking for connect" >&5 | |
27082 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
27083 | if test "${ac_cv_func_connect+set}" = set; then | |
27084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27085 | else | |
27086 | cat >conftest.$ac_ext <<_ACEOF | |
27087 | /* confdefs.h. */ | |
27088 | _ACEOF | |
27089 | cat confdefs.h >>conftest.$ac_ext | |
27090 | cat >>conftest.$ac_ext <<_ACEOF | |
27091 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27092 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
27093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27094 | #define connect innocuous_connect | |
27095 | ||
a848cd7e SC |
27096 | /* System header to define __stub macros and hopefully few prototypes, |
27097 | which can conflict with char connect (); below. | |
27098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27099 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27100 | |
a848cd7e SC |
27101 | #ifdef __STDC__ |
27102 | # include <limits.h> | |
27103 | #else | |
27104 | # include <assert.h> | |
27105 | #endif | |
ac1cb8d3 VS |
27106 | |
27107 | #undef connect | |
27108 | ||
a848cd7e SC |
27109 | /* Override any gcc2 internal prototype to avoid an error. */ |
27110 | #ifdef __cplusplus | |
27111 | extern "C" | |
27112 | { | |
27113 | #endif | |
27114 | /* We use char because int might match the return type of a gcc2 | |
27115 | builtin and then its argument prototype would still apply. */ | |
27116 | char connect (); | |
27117 | /* The GNU C library defines this for functions which it implements | |
27118 | to always fail with ENOSYS. Some functions are actually named | |
27119 | something starting with __ and the normal name is an alias. */ | |
27120 | #if defined (__stub_connect) || defined (__stub___connect) | |
27121 | choke me | |
27122 | #else | |
27123 | char (*f) () = connect; | |
27124 | #endif | |
27125 | #ifdef __cplusplus | |
27126 | } | |
27127 | #endif | |
27128 | ||
27129 | int | |
27130 | main () | |
27131 | { | |
27132 | return f != connect; | |
27133 | ; | |
27134 | return 0; | |
27135 | } | |
27136 | _ACEOF | |
27137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27139 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27140 | ac_status=$? |
ac1cb8d3 VS |
27141 | grep -v '^ *+' conftest.er1 >conftest.err |
27142 | rm -f conftest.er1 | |
27143 | cat conftest.err >&5 | |
a848cd7e SC |
27144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27145 | (exit $ac_status); } && | |
6ebeb4c7 | 27146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27148 | (eval $ac_try) 2>&5 | |
27149 | ac_status=$? | |
27150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27151 | (exit $ac_status); }; } && | |
27152 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27154 | (eval $ac_try) 2>&5 | |
27155 | ac_status=$? | |
27156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27157 | (exit $ac_status); }; }; then | |
27158 | ac_cv_func_connect=yes | |
27159 | else | |
27160 | echo "$as_me: failed program was:" >&5 | |
27161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27162 | ||
27163 | ac_cv_func_connect=no | |
27164 | fi | |
ac1cb8d3 VS |
27165 | rm -f conftest.err conftest.$ac_objext \ |
27166 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27167 | fi |
27168 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
27169 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
27170 | ||
27171 | if test $ac_cv_func_connect = no; then | |
27172 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
27173 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
27174 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
27175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27176 | else | |
27177 | ac_check_lib_save_LIBS=$LIBS | |
27178 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
27179 | cat >conftest.$ac_ext <<_ACEOF | |
27180 | /* confdefs.h. */ | |
27181 | _ACEOF | |
27182 | cat confdefs.h >>conftest.$ac_ext | |
27183 | cat >>conftest.$ac_ext <<_ACEOF | |
27184 | /* end confdefs.h. */ | |
27185 | ||
27186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27187 | #ifdef __cplusplus | |
27188 | extern "C" | |
27189 | #endif | |
27190 | /* We use char because int might match the return type of a gcc2 | |
27191 | builtin and then its argument prototype would still apply. */ | |
27192 | char connect (); | |
27193 | int | |
27194 | main () | |
27195 | { | |
27196 | connect (); | |
27197 | ; | |
27198 | return 0; | |
27199 | } | |
27200 | _ACEOF | |
27201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27203 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27204 | ac_status=$? |
ac1cb8d3 VS |
27205 | grep -v '^ *+' conftest.er1 >conftest.err |
27206 | rm -f conftest.er1 | |
27207 | cat conftest.err >&5 | |
a848cd7e SC |
27208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27209 | (exit $ac_status); } && | |
6ebeb4c7 | 27210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27212 | (eval $ac_try) 2>&5 | |
27213 | ac_status=$? | |
27214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27215 | (exit $ac_status); }; } && | |
27216 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27218 | (eval $ac_try) 2>&5 | |
27219 | ac_status=$? | |
27220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27221 | (exit $ac_status); }; }; then | |
27222 | ac_cv_lib_socket_connect=yes | |
27223 | else | |
27224 | echo "$as_me: failed program was:" >&5 | |
27225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27226 | ||
27227 | ac_cv_lib_socket_connect=no | |
27228 | fi | |
ac1cb8d3 VS |
27229 | rm -f conftest.err conftest.$ac_objext \ |
27230 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27231 | LIBS=$ac_check_lib_save_LIBS |
27232 | fi | |
27233 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
27234 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
27235 | if test $ac_cv_lib_socket_connect = yes; then | |
27236 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
27237 | fi | |
27238 | ||
27239 | fi | |
27240 | ||
27241 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
27242 | echo "$as_me:$LINENO: checking for remove" >&5 | |
27243 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
27244 | if test "${ac_cv_func_remove+set}" = set; then | |
27245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27246 | else | |
27247 | cat >conftest.$ac_ext <<_ACEOF | |
27248 | /* confdefs.h. */ | |
27249 | _ACEOF | |
27250 | cat confdefs.h >>conftest.$ac_ext | |
27251 | cat >>conftest.$ac_ext <<_ACEOF | |
27252 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27253 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
27254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27255 | #define remove innocuous_remove | |
27256 | ||
a848cd7e SC |
27257 | /* System header to define __stub macros and hopefully few prototypes, |
27258 | which can conflict with char remove (); below. | |
27259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27260 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27261 | |
a848cd7e SC |
27262 | #ifdef __STDC__ |
27263 | # include <limits.h> | |
27264 | #else | |
27265 | # include <assert.h> | |
27266 | #endif | |
ac1cb8d3 VS |
27267 | |
27268 | #undef remove | |
27269 | ||
a848cd7e SC |
27270 | /* Override any gcc2 internal prototype to avoid an error. */ |
27271 | #ifdef __cplusplus | |
27272 | extern "C" | |
27273 | { | |
27274 | #endif | |
27275 | /* We use char because int might match the return type of a gcc2 | |
27276 | builtin and then its argument prototype would still apply. */ | |
27277 | char remove (); | |
27278 | /* The GNU C library defines this for functions which it implements | |
27279 | to always fail with ENOSYS. Some functions are actually named | |
27280 | something starting with __ and the normal name is an alias. */ | |
27281 | #if defined (__stub_remove) || defined (__stub___remove) | |
27282 | choke me | |
27283 | #else | |
27284 | char (*f) () = remove; | |
27285 | #endif | |
27286 | #ifdef __cplusplus | |
27287 | } | |
27288 | #endif | |
27289 | ||
27290 | int | |
27291 | main () | |
27292 | { | |
27293 | return f != remove; | |
27294 | ; | |
27295 | return 0; | |
27296 | } | |
27297 | _ACEOF | |
27298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27300 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27301 | ac_status=$? |
ac1cb8d3 VS |
27302 | grep -v '^ *+' conftest.er1 >conftest.err |
27303 | rm -f conftest.er1 | |
27304 | cat conftest.err >&5 | |
a848cd7e SC |
27305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27306 | (exit $ac_status); } && | |
6ebeb4c7 | 27307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27309 | (eval $ac_try) 2>&5 | |
27310 | ac_status=$? | |
27311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27312 | (exit $ac_status); }; } && | |
27313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27315 | (eval $ac_try) 2>&5 | |
27316 | ac_status=$? | |
27317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27318 | (exit $ac_status); }; }; then | |
27319 | ac_cv_func_remove=yes | |
27320 | else | |
27321 | echo "$as_me: failed program was:" >&5 | |
27322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27323 | ||
27324 | ac_cv_func_remove=no | |
27325 | fi | |
ac1cb8d3 VS |
27326 | rm -f conftest.err conftest.$ac_objext \ |
27327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27328 | fi |
27329 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
27330 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
27331 | ||
27332 | if test $ac_cv_func_remove = no; then | |
27333 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
27334 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
27335 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
27336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27337 | else | |
27338 | ac_check_lib_save_LIBS=$LIBS | |
27339 | LIBS="-lposix $LIBS" | |
27340 | cat >conftest.$ac_ext <<_ACEOF | |
27341 | /* confdefs.h. */ | |
27342 | _ACEOF | |
27343 | cat confdefs.h >>conftest.$ac_ext | |
27344 | cat >>conftest.$ac_ext <<_ACEOF | |
27345 | /* end confdefs.h. */ | |
27346 | ||
27347 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27348 | #ifdef __cplusplus | |
27349 | extern "C" | |
27350 | #endif | |
27351 | /* We use char because int might match the return type of a gcc2 | |
27352 | builtin and then its argument prototype would still apply. */ | |
27353 | char remove (); | |
27354 | int | |
27355 | main () | |
27356 | { | |
27357 | remove (); | |
27358 | ; | |
27359 | return 0; | |
27360 | } | |
27361 | _ACEOF | |
27362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27364 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27365 | ac_status=$? |
ac1cb8d3 VS |
27366 | grep -v '^ *+' conftest.er1 >conftest.err |
27367 | rm -f conftest.er1 | |
27368 | cat conftest.err >&5 | |
a848cd7e SC |
27369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27370 | (exit $ac_status); } && | |
6ebeb4c7 | 27371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27373 | (eval $ac_try) 2>&5 | |
27374 | ac_status=$? | |
27375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27376 | (exit $ac_status); }; } && | |
27377 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27379 | (eval $ac_try) 2>&5 | |
27380 | ac_status=$? | |
27381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27382 | (exit $ac_status); }; }; then | |
27383 | ac_cv_lib_posix_remove=yes | |
27384 | else | |
27385 | echo "$as_me: failed program was:" >&5 | |
27386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27387 | ||
27388 | ac_cv_lib_posix_remove=no | |
27389 | fi | |
ac1cb8d3 VS |
27390 | rm -f conftest.err conftest.$ac_objext \ |
27391 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27392 | LIBS=$ac_check_lib_save_LIBS |
27393 | fi | |
27394 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
27395 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
27396 | if test $ac_cv_lib_posix_remove = yes; then | |
27397 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
27398 | fi | |
27399 | ||
27400 | fi | |
27401 | ||
27402 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
27403 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
27404 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
27405 | if test "${ac_cv_func_shmat+set}" = set; then | |
27406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27407 | else | |
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. */ | |
ac1cb8d3 VS |
27414 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
27415 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27416 | #define shmat innocuous_shmat | |
27417 | ||
a848cd7e SC |
27418 | /* System header to define __stub macros and hopefully few prototypes, |
27419 | which can conflict with char shmat (); below. | |
27420 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27421 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27422 | |
a848cd7e SC |
27423 | #ifdef __STDC__ |
27424 | # include <limits.h> | |
27425 | #else | |
27426 | # include <assert.h> | |
27427 | #endif | |
ac1cb8d3 VS |
27428 | |
27429 | #undef shmat | |
27430 | ||
a848cd7e SC |
27431 | /* Override any gcc2 internal prototype to avoid an error. */ |
27432 | #ifdef __cplusplus | |
27433 | extern "C" | |
27434 | { | |
27435 | #endif | |
27436 | /* We use char because int might match the return type of a gcc2 | |
27437 | builtin and then its argument prototype would still apply. */ | |
27438 | char shmat (); | |
27439 | /* The GNU C library defines this for functions which it implements | |
27440 | to always fail with ENOSYS. Some functions are actually named | |
27441 | something starting with __ and the normal name is an alias. */ | |
27442 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
27443 | choke me | |
27444 | #else | |
27445 | char (*f) () = shmat; | |
27446 | #endif | |
27447 | #ifdef __cplusplus | |
27448 | } | |
27449 | #endif | |
27450 | ||
27451 | int | |
27452 | main () | |
27453 | { | |
27454 | return f != shmat; | |
27455 | ; | |
27456 | return 0; | |
27457 | } | |
27458 | _ACEOF | |
27459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27461 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27462 | ac_status=$? |
ac1cb8d3 VS |
27463 | grep -v '^ *+' conftest.er1 >conftest.err |
27464 | rm -f conftest.er1 | |
27465 | cat conftest.err >&5 | |
a848cd7e SC |
27466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27467 | (exit $ac_status); } && | |
6ebeb4c7 | 27468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27470 | (eval $ac_try) 2>&5 | |
27471 | ac_status=$? | |
27472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27473 | (exit $ac_status); }; } && | |
27474 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27476 | (eval $ac_try) 2>&5 | |
27477 | ac_status=$? | |
27478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27479 | (exit $ac_status); }; }; then | |
27480 | ac_cv_func_shmat=yes | |
27481 | else | |
27482 | echo "$as_me: failed program was:" >&5 | |
27483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27484 | ||
27485 | ac_cv_func_shmat=no | |
27486 | fi | |
ac1cb8d3 VS |
27487 | rm -f conftest.err conftest.$ac_objext \ |
27488 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27489 | fi |
27490 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
27491 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
27492 | ||
27493 | if test $ac_cv_func_shmat = no; then | |
27494 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
27495 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
27496 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
27497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27498 | else | |
27499 | ac_check_lib_save_LIBS=$LIBS | |
27500 | LIBS="-lipc $LIBS" | |
27501 | cat >conftest.$ac_ext <<_ACEOF | |
27502 | /* confdefs.h. */ | |
27503 | _ACEOF | |
27504 | cat confdefs.h >>conftest.$ac_ext | |
27505 | cat >>conftest.$ac_ext <<_ACEOF | |
27506 | /* end confdefs.h. */ | |
27507 | ||
27508 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27509 | #ifdef __cplusplus | |
27510 | extern "C" | |
27511 | #endif | |
27512 | /* We use char because int might match the return type of a gcc2 | |
27513 | builtin and then its argument prototype would still apply. */ | |
27514 | char shmat (); | |
27515 | int | |
27516 | main () | |
27517 | { | |
27518 | shmat (); | |
27519 | ; | |
27520 | return 0; | |
27521 | } | |
27522 | _ACEOF | |
27523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27525 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27526 | ac_status=$? |
ac1cb8d3 VS |
27527 | grep -v '^ *+' conftest.er1 >conftest.err |
27528 | rm -f conftest.er1 | |
27529 | cat conftest.err >&5 | |
a848cd7e SC |
27530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27531 | (exit $ac_status); } && | |
6ebeb4c7 | 27532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27534 | (eval $ac_try) 2>&5 | |
27535 | ac_status=$? | |
27536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27537 | (exit $ac_status); }; } && | |
27538 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27540 | (eval $ac_try) 2>&5 | |
27541 | ac_status=$? | |
27542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27543 | (exit $ac_status); }; }; then | |
27544 | ac_cv_lib_ipc_shmat=yes | |
27545 | else | |
27546 | echo "$as_me: failed program was:" >&5 | |
27547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27548 | ||
27549 | ac_cv_lib_ipc_shmat=no | |
27550 | fi | |
ac1cb8d3 VS |
27551 | rm -f conftest.err conftest.$ac_objext \ |
27552 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27553 | LIBS=$ac_check_lib_save_LIBS |
27554 | fi | |
27555 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
27556 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
27557 | if test $ac_cv_lib_ipc_shmat = yes; then | |
27558 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
27559 | fi | |
27560 | ||
27561 | fi | |
27562 | fi | |
27563 | ||
27564 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
27565 | ac_save_LDFLAGS=$LDFLAGS | |
27566 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
27567 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
27568 | # check for ICE first), but we must link in the order -lSM -lICE or | |
27569 | # we get undefined symbols. So assume we have SM if we have ICE. | |
27570 | # These have to be linked with before -lX11, unlike the other | |
27571 | # libraries we check for below, so use a different variable. | |
27572 | # John Interrante, Karl Berry | |
27573 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
27574 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
27575 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
27576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27577 | else | |
27578 | ac_check_lib_save_LIBS=$LIBS | |
27579 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
27580 | cat >conftest.$ac_ext <<_ACEOF | |
27581 | /* confdefs.h. */ | |
27582 | _ACEOF | |
27583 | cat confdefs.h >>conftest.$ac_ext | |
27584 | cat >>conftest.$ac_ext <<_ACEOF | |
27585 | /* end confdefs.h. */ | |
27586 | ||
27587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27588 | #ifdef __cplusplus | |
27589 | extern "C" | |
27590 | #endif | |
27591 | /* We use char because int might match the return type of a gcc2 | |
27592 | builtin and then its argument prototype would still apply. */ | |
27593 | char IceConnectionNumber (); | |
27594 | int | |
27595 | main () | |
27596 | { | |
27597 | IceConnectionNumber (); | |
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_lib_ICE_IceConnectionNumber=yes | |
27624 | else | |
27625 | echo "$as_me: failed program was:" >&5 | |
27626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27627 | ||
27628 | ac_cv_lib_ICE_IceConnectionNumber=no | |
27629 | fi | |
ac1cb8d3 VS |
27630 | rm -f conftest.err conftest.$ac_objext \ |
27631 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27632 | LIBS=$ac_check_lib_save_LIBS |
27633 | fi | |
27634 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
27635 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
27636 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
27637 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
27638 | fi | |
27639 | ||
27640 | LDFLAGS=$ac_save_LDFLAGS | |
27641 | ||
27642 | fi | |
27643 | ||
27644 | ||
27645 | if test "$no_x" = "yes"; then | |
27646 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
27647 | echo "$as_me: error: X11 not found" >&2;} | |
27648 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
27649 | fi | |
27650 | ||
74b84332 VS |
27651 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
27652 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
27653 | AFMINSTALL=afminstall |
27654 | COMPILED_X_PROGRAM=0 | |
27655 | ||
74b84332 VS |
27656 | fi |
27657 | ||
27658 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
27659 | if test "$wxUSE_NANOX" = "yes"; then |
27660 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
27661 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
27662 | if test "x$MICROWIN" = x ; then | |
27663 | echo "$as_me:$LINENO: result: not found" >&5 | |
27664 | echo "${ECHO_T}not found" >&6 | |
27665 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
27666 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
27667 | { (exit 1); exit 1; }; } | |
27668 | else | |
27669 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
27670 | echo "${ECHO_T}$MICROWIN" >&6 | |
27671 | cat >>confdefs.h <<\_ACEOF | |
27672 | #define wxUSE_NANOX 1 | |
27673 | _ACEOF | |
27674 | ||
27675 | fi | |
27676 | fi | |
27677 | ||
27678 | if test "$wxUSE_UNICODE" = "yes"; then | |
27679 | ||
27680 | succeeded=no | |
27681 | ||
27682 | if test -z "$PKG_CONFIG"; then | |
27683 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27684 | set dummy pkg-config; ac_word=$2 | |
27685 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27686 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27687 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27689 | else | |
27690 | case $PKG_CONFIG in | |
27691 | [\\/]* | ?:[\\/]*) | |
27692 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27693 | ;; | |
27694 | *) | |
27695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27696 | for as_dir in $PATH | |
27697 | do | |
27698 | IFS=$as_save_IFS | |
27699 | test -z "$as_dir" && as_dir=. | |
27700 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27701 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27702 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27703 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27704 | break 2 | |
27705 | fi | |
27706 | done | |
27707 | done | |
27708 | ||
27709 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27710 | ;; | |
27711 | esac | |
27712 | fi | |
27713 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27714 | ||
27715 | if test -n "$PKG_CONFIG"; then | |
27716 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27717 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27718 | else | |
27719 | echo "$as_me:$LINENO: result: no" >&5 | |
27720 | echo "${ECHO_T}no" >&6 | |
27721 | fi | |
27722 | ||
27723 | fi | |
27724 | ||
27725 | if test "$PKG_CONFIG" = "no" ; then | |
27726 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27727 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27728 | echo "*** to the full path to pkg-config." | |
27729 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27730 | else | |
27731 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27732 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27733 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
27734 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
27735 | ||
27736 | if $PKG_CONFIG --exists "pangox" ; then | |
27737 | echo "$as_me:$LINENO: result: yes" >&5 | |
27738 | echo "${ECHO_T}yes" >&6 | |
27739 | succeeded=yes | |
27740 | ||
27741 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
27742 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
27743 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
27744 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
27745 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
27746 | ||
27747 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
27748 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
27749 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
27750 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
27751 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
27752 | else | |
27753 | PANGOX_CFLAGS="" | |
27754 | PANGOX_LIBS="" | |
27755 | ## If we have a custom action on failure, don't print errors, but | |
27756 | ## do set a variable so people can do so. | |
27757 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
27758 | ||
27759 | fi | |
27760 | ||
27761 | ||
27762 | ||
27763 | else | |
27764 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27765 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27766 | fi | |
27767 | fi | |
27768 | ||
27769 | if test $succeeded = yes; then | |
27770 | ||
27771 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
27772 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
27773 | ||
27774 | else | |
27775 | ||
27776 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
27777 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
27778 | { (exit 1); exit 1; }; } | |
27779 | ||
27780 | ||
27781 | fi | |
27782 | ||
27783 | ||
27784 | succeeded=no | |
27785 | ||
27786 | if test -z "$PKG_CONFIG"; then | |
27787 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27788 | set dummy pkg-config; ac_word=$2 | |
27789 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27791 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27793 | else | |
27794 | case $PKG_CONFIG in | |
27795 | [\\/]* | ?:[\\/]*) | |
27796 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27797 | ;; | |
27798 | *) | |
27799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27800 | for as_dir in $PATH | |
27801 | do | |
27802 | IFS=$as_save_IFS | |
27803 | test -z "$as_dir" && as_dir=. | |
27804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27805 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27806 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27808 | break 2 | |
27809 | fi | |
27810 | done | |
27811 | done | |
27812 | ||
27813 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27814 | ;; | |
27815 | esac | |
27816 | fi | |
27817 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27818 | ||
27819 | if test -n "$PKG_CONFIG"; then | |
27820 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27821 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27822 | else | |
27823 | echo "$as_me:$LINENO: result: no" >&5 | |
27824 | echo "${ECHO_T}no" >&6 | |
27825 | fi | |
27826 | ||
27827 | fi | |
27828 | ||
27829 | if test "$PKG_CONFIG" = "no" ; then | |
27830 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27831 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27832 | echo "*** to the full path to pkg-config." | |
27833 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27834 | else | |
27835 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27836 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27837 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
27838 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
27839 | ||
27840 | if $PKG_CONFIG --exists "pangoft2" ; then | |
27841 | echo "$as_me:$LINENO: result: yes" >&5 | |
27842 | echo "${ECHO_T}yes" >&6 | |
27843 | succeeded=yes | |
27844 | ||
27845 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
27846 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
27847 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
27848 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
27849 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
27850 | ||
27851 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
27852 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
27853 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
27854 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
27855 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
27856 | else | |
27857 | PANGOFT2_CFLAGS="" | |
27858 | PANGOFT2_LIBS="" | |
27859 | ## If we have a custom action on failure, don't print errors, but | |
27860 | ## do set a variable so people can do so. | |
27861 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
27862 | ||
27863 | fi | |
27864 | ||
27865 | ||
27866 | ||
27867 | else | |
27868 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27869 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27870 | fi | |
27871 | fi | |
27872 | ||
27873 | if test $succeeded = yes; then | |
27874 | ||
27875 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
27876 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
27877 | ||
27878 | else | |
27879 | ||
27880 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
27881 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
27882 | wxUSE_PRINTING_ARCHITECTURE="no" | |
27883 | ||
27884 | ||
27885 | fi | |
27886 | ||
27887 | ||
27888 | succeeded=no | |
27889 | ||
27890 | if test -z "$PKG_CONFIG"; then | |
27891 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27892 | set dummy pkg-config; ac_word=$2 | |
27893 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27895 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27897 | else | |
27898 | case $PKG_CONFIG in | |
27899 | [\\/]* | ?:[\\/]*) | |
27900 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27901 | ;; | |
27902 | *) | |
27903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27904 | for as_dir in $PATH | |
27905 | do | |
27906 | IFS=$as_save_IFS | |
27907 | test -z "$as_dir" && as_dir=. | |
27908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27910 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27912 | break 2 | |
27913 | fi | |
27914 | done | |
27915 | done | |
27916 | ||
27917 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27918 | ;; | |
27919 | esac | |
27920 | fi | |
27921 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27922 | ||
27923 | if test -n "$PKG_CONFIG"; then | |
27924 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27925 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27926 | else | |
27927 | echo "$as_me:$LINENO: result: no" >&5 | |
27928 | echo "${ECHO_T}no" >&6 | |
27929 | fi | |
27930 | ||
27931 | fi | |
27932 | ||
27933 | if test "$PKG_CONFIG" = "no" ; then | |
27934 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27935 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27936 | echo "*** to the full path to pkg-config." | |
27937 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27938 | else | |
27939 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27940 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27941 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
27942 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
27943 | ||
27944 | if $PKG_CONFIG --exists "pangoxft" ; then | |
27945 | echo "$as_me:$LINENO: result: yes" >&5 | |
27946 | echo "${ECHO_T}yes" >&6 | |
27947 | succeeded=yes | |
27948 | ||
27949 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
27950 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
27951 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
27952 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
27953 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
27954 | ||
27955 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
27956 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
27957 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
27958 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
27959 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
27960 | else | |
27961 | PANGOXFT_CFLAGS="" | |
27962 | PANGOXFT_LIBS="" | |
27963 | ## If we have a custom action on failure, don't print errors, but | |
27964 | ## do set a variable so people can do so. | |
27965 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
27966 | ||
27967 | fi | |
27968 | ||
27969 | ||
27970 | ||
27971 | else | |
27972 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27973 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27974 | fi | |
27975 | fi | |
27976 | ||
27977 | if test $succeeded = yes; then | |
27978 | ||
4ae1af05 MB |
27979 | cat >>confdefs.h <<\_ACEOF |
27980 | #define HAVE_PANGO_XFT 1 | |
27981 | _ACEOF | |
27982 | ||
a848cd7e SC |
27983 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
27984 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
27985 | ||
27986 | else | |
27987 | ||
27988 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
27989 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
27990 | ||
27991 | ||
27992 | fi | |
27993 | ||
304205f1 VS |
27994 | save_CFLAGS="$CFLAGS" |
27995 | save_LIBS="$LIBS" | |
27996 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
27997 | LIBS="$LIBS $PANGOX_LIBS" | |
27998 | ||
27999 | for ac_func in pango_font_family_is_monospace | |
28000 | do | |
28001 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28002 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28003 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28004 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28006 | else | |
28007 | cat >conftest.$ac_ext <<_ACEOF | |
28008 | /* confdefs.h. */ | |
28009 | _ACEOF | |
28010 | cat confdefs.h >>conftest.$ac_ext | |
28011 | cat >>conftest.$ac_ext <<_ACEOF | |
28012 | /* end confdefs.h. */ | |
28013 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
28014 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28015 | #define $ac_func innocuous_$ac_func | |
28016 | ||
28017 | /* System header to define __stub macros and hopefully few prototypes, | |
28018 | which can conflict with char $ac_func (); below. | |
28019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28020 | <limits.h> exists even on freestanding compilers. */ | |
28021 | ||
28022 | #ifdef __STDC__ | |
28023 | # include <limits.h> | |
28024 | #else | |
28025 | # include <assert.h> | |
28026 | #endif | |
28027 | ||
28028 | #undef $ac_func | |
28029 | ||
28030 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28031 | #ifdef __cplusplus | |
28032 | extern "C" | |
28033 | { | |
28034 | #endif | |
28035 | /* We use char because int might match the return type of a gcc2 | |
28036 | builtin and then its argument prototype would still apply. */ | |
28037 | char $ac_func (); | |
28038 | /* The GNU C library defines this for functions which it implements | |
28039 | to always fail with ENOSYS. Some functions are actually named | |
28040 | something starting with __ and the normal name is an alias. */ | |
28041 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28042 | choke me | |
28043 | #else | |
28044 | char (*f) () = $ac_func; | |
28045 | #endif | |
28046 | #ifdef __cplusplus | |
28047 | } | |
28048 | #endif | |
28049 | ||
28050 | int | |
28051 | main () | |
28052 | { | |
28053 | return f != $ac_func; | |
28054 | ; | |
28055 | return 0; | |
28056 | } | |
28057 | _ACEOF | |
28058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28060 | (eval $ac_link) 2>conftest.er1 | |
28061 | ac_status=$? | |
28062 | grep -v '^ *+' conftest.er1 >conftest.err | |
28063 | rm -f conftest.er1 | |
28064 | cat conftest.err >&5 | |
28065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28066 | (exit $ac_status); } && | |
6ebeb4c7 | 28067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
28068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28069 | (eval $ac_try) 2>&5 | |
28070 | ac_status=$? | |
28071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28072 | (exit $ac_status); }; } && | |
28073 | { ac_try='test -s conftest$ac_exeext' | |
28074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28075 | (eval $ac_try) 2>&5 | |
28076 | ac_status=$? | |
28077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28078 | (exit $ac_status); }; }; then | |
28079 | eval "$as_ac_var=yes" | |
28080 | else | |
28081 | echo "$as_me: failed program was:" >&5 | |
28082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28083 | ||
28084 | eval "$as_ac_var=no" | |
28085 | fi | |
28086 | rm -f conftest.err conftest.$ac_objext \ | |
28087 | conftest$ac_exeext conftest.$ac_ext | |
28088 | fi | |
28089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28090 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28091 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28092 | cat >>confdefs.h <<_ACEOF | |
28093 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28094 | _ACEOF | |
28095 | ||
28096 | fi | |
28097 | done | |
28098 | ||
28099 | CFLAGS="$save_CFLAGS" | |
28100 | LIBS="$save_LIBS" | |
a848cd7e SC |
28101 | fi |
28102 | ||
28103 | wxUSE_UNIVERSAL="yes" | |
28104 | ||
28105 | if test "$wxUSE_NANOX" = "yes"; then | |
28106 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
28107 | 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" | |
28108 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
28109 | else | |
28110 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
28111 | fi | |
28112 | ||
a848cd7e SC |
28113 | TOOLKIT=X11 |
28114 | GUIDIST=X11_DIST | |
28115 | fi | |
28116 | ||
28117 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
28118 | if test "$wxUSE_UNICODE" = "yes"; then |
28119 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
28120 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
28121 | { (exit 1); exit 1; }; } | |
28122 | fi | |
28123 | ||
74b84332 VS |
28124 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
28125 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 28126 | |
74b84332 VS |
28127 | ac_find_includes= |
28128 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28129 | do | |
28130 | if test -f "$ac_dir/Xm/Xm.h"; then | |
28131 | ac_find_includes=$ac_dir | |
28132 | break | |
28133 | fi | |
28134 | done | |
a848cd7e | 28135 | |
74b84332 VS |
28136 | if test "$ac_find_includes" != "" ; then |
28137 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28138 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28139 | ||
28140 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28141 | ac_path_to_include="" | |
28142 | else | |
28143 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
28144 | result=$? | |
28145 | if test $result = 0; then | |
28146 | ac_path_to_include="" | |
28147 | else | |
28148 | ac_path_to_include=" -I$ac_find_includes" | |
28149 | fi | |
a848cd7e SC |
28150 | fi |
28151 | ||
74b84332 VS |
28152 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
28153 | else | |
e051b34e MW |
28154 | save_CFLAGS=$CFLAGS |
28155 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28156 | ||
74b84332 | 28157 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
28158 | /* confdefs.h. */ |
28159 | _ACEOF | |
28160 | cat confdefs.h >>conftest.$ac_ext | |
28161 | cat >>conftest.$ac_ext <<_ACEOF | |
28162 | /* end confdefs.h. */ | |
28163 | ||
74b84332 VS |
28164 | #include <Xm/Xm.h> |
28165 | ||
a848cd7e SC |
28166 | int |
28167 | main () | |
28168 | { | |
28169 | ||
74b84332 VS |
28170 | int version; |
28171 | version = xmUseVersion; | |
28172 | ||
a848cd7e SC |
28173 | ; |
28174 | return 0; | |
28175 | } | |
28176 | _ACEOF | |
74b84332 VS |
28177 | rm -f conftest.$ac_objext |
28178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28179 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 28180 | ac_status=$? |
ac1cb8d3 VS |
28181 | grep -v '^ *+' conftest.er1 >conftest.err |
28182 | rm -f conftest.er1 | |
28183 | cat conftest.err >&5 | |
a848cd7e SC |
28184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28185 | (exit $ac_status); } && | |
6ebeb4c7 | 28186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28188 | (eval $ac_try) 2>&5 | |
28189 | ac_status=$? | |
28190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28191 | (exit $ac_status); }; } && | |
74b84332 | 28192 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28194 | (eval $ac_try) 2>&5 | |
28195 | ac_status=$? | |
28196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28197 | (exit $ac_status); }; }; then | |
74b84332 VS |
28198 | |
28199 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
28200 | echo "${ECHO_T}found in default search path" >&6 | |
28201 | COMPILED_X_PROGRAM=1 | |
28202 | ||
a848cd7e SC |
28203 | else |
28204 | echo "$as_me: failed program was:" >&5 | |
28205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28206 | ||
a848cd7e | 28207 | |
74b84332 VS |
28208 | echo "$as_me:$LINENO: result: no" >&5 |
28209 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
28210 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
28211 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 28212 | { (exit 1); exit 1; }; } |
a848cd7e | 28213 | |
a848cd7e | 28214 | |
a848cd7e | 28215 | fi |
74b84332 | 28216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e MW |
28217 | |
28218 | CFLAGS=$save_CFLAGS | |
74b84332 VS |
28219 | fi |
28220 | ||
28221 | if test "$COMPILED_X_PROGRAM" = 0; then | |
28222 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
28223 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
28224 | ||
28225 | ac_find_libraries= | |
28226 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28227 | do | |
3eca31dc | 28228 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
28229 | if test -f "$ac_dir/libXm.$ac_extension"; then |
28230 | ac_find_libraries=$ac_dir | |
28231 | break 2 | |
a848cd7e | 28232 | fi |
74b84332 VS |
28233 | done |
28234 | done | |
a848cd7e | 28235 | |
74b84332 VS |
28236 | if test "$ac_find_libraries" != "" ; then |
28237 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
28238 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 28239 | |
74b84332 VS |
28240 | |
28241 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
28242 | result=$? | |
28243 | if test $result = 0; then | |
28244 | ac_path_to_link="" | |
a848cd7e | 28245 | else |
74b84332 VS |
28246 | ac_path_to_link=" -L$ac_find_libraries" |
28247 | fi | |
28248 | ||
28249 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
28250 | else | |
28251 | save_CFLAGS=$CFLAGS | |
28252 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28253 | ||
28254 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28255 | /* confdefs.h. */ |
28256 | _ACEOF | |
28257 | cat confdefs.h >>conftest.$ac_ext | |
28258 | cat >>conftest.$ac_ext <<_ACEOF | |
28259 | /* end confdefs.h. */ | |
28260 | ||
74b84332 VS |
28261 | #include <Xm/Xm.h> |
28262 | ||
a848cd7e SC |
28263 | int |
28264 | main () | |
28265 | { | |
74b84332 VS |
28266 | |
28267 | int version; | |
28268 | version = xmUseVersion; | |
28269 | ||
a848cd7e SC |
28270 | ; |
28271 | return 0; | |
28272 | } | |
28273 | _ACEOF | |
74b84332 VS |
28274 | rm -f conftest.$ac_objext |
28275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28276 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 28277 | ac_status=$? |
ac1cb8d3 VS |
28278 | grep -v '^ *+' conftest.er1 >conftest.err |
28279 | rm -f conftest.er1 | |
28280 | cat conftest.err >&5 | |
a848cd7e SC |
28281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28282 | (exit $ac_status); } && | |
6ebeb4c7 | 28283 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28285 | (eval $ac_try) 2>&5 | |
28286 | ac_status=$? | |
28287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28288 | (exit $ac_status); }; } && | |
74b84332 | 28289 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28291 | (eval $ac_try) 2>&5 | |
28292 | ac_status=$? | |
28293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28294 | (exit $ac_status); }; }; then | |
74b84332 VS |
28295 | |
28296 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
28297 | echo "${ECHO_T}found in default search path" >&6 | |
28298 | COMPILED_X_PROGRAM=1 | |
28299 | ||
a848cd7e SC |
28300 | else |
28301 | echo "$as_me: failed program was:" >&5 | |
28302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28303 | ||
74b84332 VS |
28304 | |
28305 | echo "$as_me:$LINENO: result: no" >&5 | |
28306 | echo "${ECHO_T}no" >&6 | |
28307 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
28308 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
28309 | { (exit 1); exit 1; }; } | |
28310 | ||
28311 | ||
28312 | fi | |
28313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28314 | ||
28315 | CFLAGS=$save_CFLAGS | |
28316 | fi | |
28317 | fi | |
28318 | ||
28319 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
28320 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
28321 | libp_link="" | |
28322 | libsm_ice_link="" | |
28323 | libs_found=0 | |
28324 | for libp in "" " -lXp"; do | |
28325 | if test "$libs_found" = "0"; then | |
28326 | for libsm_ice in "" " -lSM -lICE"; do | |
28327 | if test "$libs_found" = "0"; then | |
28328 | save_LIBS="$LIBS" | |
28329 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
28330 | save_CFLAGS=$CFLAGS | |
28331 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28332 | ||
28333 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28334 | /* confdefs.h. */ |
28335 | _ACEOF | |
28336 | cat confdefs.h >>conftest.$ac_ext | |
28337 | cat >>conftest.$ac_ext <<_ACEOF | |
28338 | /* end confdefs.h. */ | |
28339 | ||
74b84332 VS |
28340 | #include <Xm/Xm.h> |
28341 | #include <Xm/List.h> | |
28342 | ||
a848cd7e SC |
28343 | int |
28344 | main () | |
28345 | { | |
74b84332 VS |
28346 | |
28347 | XmString string = NULL; | |
28348 | Widget w = NULL; | |
28349 | int position = 0; | |
28350 | XmListAddItem(w, string, position); | |
28351 | ||
a848cd7e SC |
28352 | ; |
28353 | return 0; | |
28354 | } | |
28355 | _ACEOF | |
28356 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28358 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28359 | ac_status=$? |
ac1cb8d3 VS |
28360 | grep -v '^ *+' conftest.er1 >conftest.err |
28361 | rm -f conftest.er1 | |
28362 | cat conftest.err >&5 | |
a848cd7e SC |
28363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28364 | (exit $ac_status); } && | |
6ebeb4c7 | 28365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28367 | (eval $ac_try) 2>&5 | |
28368 | ac_status=$? | |
28369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28370 | (exit $ac_status); }; } && | |
28371 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28373 | (eval $ac_try) 2>&5 | |
28374 | ac_status=$? | |
28375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28376 | (exit $ac_status); }; }; then | |
28377 | ||
28378 | libp_link="$libp" | |
28379 | libsm_ice_link="$libsm_ice" | |
28380 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
28381 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
28382 | libs_found=1 | |
28383 | ||
28384 | else | |
28385 | echo "$as_me: failed program was:" >&5 | |
28386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28387 | ||
28388 | ||
28389 | ||
28390 | fi | |
ac1cb8d3 VS |
28391 | rm -f conftest.err conftest.$ac_objext \ |
28392 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28393 | |
28394 | LIBS="$save_LIBS" | |
28395 | CFLAGS=$save_CFLAGS | |
28396 | fi | |
28397 | done | |
28398 | fi | |
28399 | done | |
28400 | ||
28401 | if test "$libs_found" = "0"; then | |
28402 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
28403 | echo "${ECHO_T}can't find the right libraries" >&6 | |
28404 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
28405 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
28406 | { (exit 1); exit 1; }; } | |
28407 | fi | |
28408 | ||
62fa8b3a MW |
28409 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
28410 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
28411 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
28412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28413 | else | |
28414 | ac_check_lib_save_LIBS=$LIBS | |
28415 | LIBS="-lSgm $LIBS" | |
28416 | cat >conftest.$ac_ext <<_ACEOF | |
28417 | /* confdefs.h. */ | |
28418 | _ACEOF | |
28419 | cat confdefs.h >>conftest.$ac_ext | |
28420 | cat >>conftest.$ac_ext <<_ACEOF | |
28421 | /* end confdefs.h. */ | |
28422 | ||
28423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28424 | #ifdef __cplusplus | |
28425 | extern "C" | |
28426 | #endif | |
28427 | /* We use char because int might match the return type of a gcc2 | |
28428 | builtin and then its argument prototype would still apply. */ | |
28429 | char SgCreateList (); | |
28430 | int | |
28431 | main () | |
28432 | { | |
28433 | SgCreateList (); | |
28434 | ; | |
28435 | return 0; | |
28436 | } | |
28437 | _ACEOF | |
28438 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28440 | (eval $ac_link) 2>conftest.er1 | |
28441 | ac_status=$? | |
28442 | grep -v '^ *+' conftest.er1 >conftest.err | |
28443 | rm -f conftest.er1 | |
28444 | cat conftest.err >&5 | |
28445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28446 | (exit $ac_status); } && | |
28447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
28448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28449 | (eval $ac_try) 2>&5 | |
28450 | ac_status=$? | |
28451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28452 | (exit $ac_status); }; } && | |
28453 | { ac_try='test -s conftest$ac_exeext' | |
28454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28455 | (eval $ac_try) 2>&5 | |
28456 | ac_status=$? | |
28457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28458 | (exit $ac_status); }; }; then | |
28459 | ac_cv_lib_Sgm_SgCreateList=yes | |
28460 | else | |
28461 | echo "$as_me: failed program was:" >&5 | |
28462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28463 | ||
28464 | ac_cv_lib_Sgm_SgCreateList=no | |
28465 | fi | |
28466 | rm -f conftest.err conftest.$ac_objext \ | |
28467 | conftest$ac_exeext conftest.$ac_ext | |
28468 | LIBS=$ac_check_lib_save_LIBS | |
28469 | fi | |
28470 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
28471 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
28472 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
28473 | libsgm_link=" -lSgm" | |
28474 | fi | |
28475 | ||
28476 | ||
a848cd7e SC |
28477 | save_CFLAGS=$CFLAGS |
28478 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28479 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
28480 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
28481 | cat >conftest.$ac_ext <<_ACEOF | |
28482 | /* confdefs.h. */ | |
28483 | _ACEOF | |
28484 | cat confdefs.h >>conftest.$ac_ext | |
28485 | cat >>conftest.$ac_ext <<_ACEOF | |
28486 | /* end confdefs.h. */ | |
28487 | ||
28488 | #include <Xm/Xm.h> | |
28489 | ||
28490 | int | |
28491 | main () | |
28492 | { | |
28493 | ||
28494 | #if XmVersion < 2000 | |
04e525a0 | 28495 | Not Motif 2 |
a848cd7e SC |
28496 | #endif |
28497 | ||
28498 | ; | |
28499 | return 0; | |
28500 | } | |
28501 | _ACEOF | |
28502 | rm -f conftest.$ac_objext | |
28503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28504 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28505 | ac_status=$? |
ac1cb8d3 VS |
28506 | grep -v '^ *+' conftest.er1 >conftest.err |
28507 | rm -f conftest.er1 | |
28508 | cat conftest.err >&5 | |
a848cd7e SC |
28509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28510 | (exit $ac_status); } && | |
6ebeb4c7 | 28511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28513 | (eval $ac_try) 2>&5 | |
28514 | ac_status=$? | |
28515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28516 | (exit $ac_status); }; } && | |
28517 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28519 | (eval $ac_try) 2>&5 | |
28520 | ac_status=$? | |
28521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28522 | (exit $ac_status); }; }; then | |
28523 | ||
28524 | cat >>confdefs.h <<\_ACEOF | |
28525 | #define __WXMOTIF20__ 1 | |
28526 | _ACEOF | |
28527 | ||
28528 | echo "$as_me:$LINENO: result: found" >&5 | |
28529 | echo "${ECHO_T}found" >&6 | |
28530 | ||
28531 | else | |
28532 | echo "$as_me: failed program was:" >&5 | |
28533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28534 | ||
28535 | ||
28536 | cat >>confdefs.h <<\_ACEOF | |
28537 | #define __WXMOTIF20__ 0 | |
28538 | _ACEOF | |
28539 | ||
28540 | echo "$as_me:$LINENO: result: not found" >&5 | |
28541 | echo "${ECHO_T}not found" >&6 | |
28542 | ||
2113bc77 MW |
28543 | fi |
28544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28545 | ||
28546 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
28547 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
28548 | cat >conftest.$ac_ext <<_ACEOF | |
28549 | /* confdefs.h. */ | |
28550 | _ACEOF | |
28551 | cat confdefs.h >>conftest.$ac_ext | |
28552 | cat >>conftest.$ac_ext <<_ACEOF | |
28553 | /* end confdefs.h. */ | |
28554 | ||
28555 | #include <Xm/Xm.h> | |
28556 | ||
28557 | int | |
28558 | main () | |
28559 | { | |
28560 | ||
28561 | #if !defined(LesstifVersion) || LesstifVersion <= 0 | |
04e525a0 | 28562 | Not Lesstif |
2113bc77 MW |
28563 | #endif |
28564 | ||
28565 | ; | |
28566 | return 0; | |
28567 | } | |
28568 | _ACEOF | |
28569 | rm -f conftest.$ac_objext | |
28570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28571 | (eval $ac_compile) 2>conftest.er1 | |
28572 | ac_status=$? | |
28573 | grep -v '^ *+' conftest.er1 >conftest.err | |
28574 | rm -f conftest.er1 | |
28575 | cat conftest.err >&5 | |
28576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28577 | (exit $ac_status); } && | |
6ebeb4c7 | 28578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
28579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28580 | (eval $ac_try) 2>&5 | |
28581 | ac_status=$? | |
28582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28583 | (exit $ac_status); }; } && | |
28584 | { ac_try='test -s conftest.$ac_objext' | |
28585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28586 | (eval $ac_try) 2>&5 | |
28587 | ac_status=$? | |
28588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28589 | (exit $ac_status); }; }; then | |
28590 | ||
28591 | cat >>confdefs.h <<\_ACEOF | |
28592 | #define __WXLESSTIF__ 1 | |
28593 | _ACEOF | |
28594 | ||
28595 | echo "$as_me:$LINENO: result: yes" >&5 | |
28596 | echo "${ECHO_T}yes" >&6 | |
28597 | ||
28598 | else | |
28599 | echo "$as_me: failed program was:" >&5 | |
28600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28601 | ||
28602 | ||
28603 | cat >>confdefs.h <<\_ACEOF | |
28604 | #define __WXLESSTIF__ 0 | |
28605 | _ACEOF | |
28606 | ||
28607 | echo "$as_me:$LINENO: result: no" >&5 | |
28608 | echo "${ECHO_T}no" >&6 | |
28609 | ||
a848cd7e | 28610 | fi |
ac1cb8d3 | 28611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28612 | CFLAGS=$save_CFLAGS |
28613 | ||
62fa8b3a | 28614 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
28615 | TOOLKIT=MOTIF |
28616 | GUIDIST=MOTIF_DIST | |
28617 | fi | |
28618 | ||
74b84332 | 28619 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
28620 | if test "$wxUSE_LIBXPM" = "sys"; then |
28621 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
28622 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
28623 | ||
28624 | ac_find_libraries= | |
28625 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28626 | do | |
3eca31dc | 28627 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
28628 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
28629 | ac_find_libraries=$ac_dir | |
28630 | break 2 | |
28631 | fi | |
28632 | done | |
28633 | done | |
28634 | ||
28635 | if test "$ac_find_libraries" != "" ; then | |
28636 | ||
28637 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
28638 | result=$? | |
28639 | if test $result = 0; then | |
28640 | ac_path_to_link="" | |
28641 | else | |
28642 | ac_path_to_link=" -L$ac_find_libraries" | |
28643 | fi | |
28644 | ||
28645 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
28646 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
28647 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
28648 | ||
28649 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
28650 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
28651 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
28652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28653 | else | |
28654 | ||
28655 | save_CFLAGS=$CFLAGS | |
28656 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28657 | ||
28658 | cat >conftest.$ac_ext <<_ACEOF | |
28659 | /* confdefs.h. */ | |
28660 | _ACEOF | |
28661 | cat confdefs.h >>conftest.$ac_ext | |
28662 | cat >>conftest.$ac_ext <<_ACEOF | |
28663 | /* end confdefs.h. */ | |
28664 | ||
28665 | #include <X11/xpm.h> | |
28666 | ||
28667 | int | |
28668 | main () | |
28669 | { | |
28670 | ||
28671 | int version; | |
28672 | version = XpmLibraryVersion(); | |
28673 | ||
28674 | ; | |
28675 | return 0; | |
28676 | } | |
28677 | _ACEOF | |
28678 | rm -f conftest.$ac_objext | |
28679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28680 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28681 | ac_status=$? |
ac1cb8d3 VS |
28682 | grep -v '^ *+' conftest.er1 >conftest.err |
28683 | rm -f conftest.er1 | |
28684 | cat conftest.err >&5 | |
a848cd7e SC |
28685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28686 | (exit $ac_status); } && | |
6ebeb4c7 | 28687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28689 | (eval $ac_try) 2>&5 | |
28690 | ac_status=$? | |
28691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28692 | (exit $ac_status); }; } && | |
28693 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28695 | (eval $ac_try) 2>&5 | |
28696 | ac_status=$? | |
28697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28698 | (exit $ac_status); }; }; then | |
28699 | wx_cv_x11_xpm_h=yes | |
28700 | else | |
28701 | echo "$as_me: failed program was:" >&5 | |
28702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28703 | ||
28704 | wx_cv_x11_xpm_h=no | |
28705 | ||
28706 | fi | |
ac1cb8d3 | 28707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28708 | |
28709 | CFLAGS=$save_CFLAGS | |
28710 | ||
28711 | ||
28712 | fi | |
28713 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
28714 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
28715 | ||
28716 | if test $wx_cv_x11_xpm_h = "yes"; then | |
28717 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
28718 | cat >>confdefs.h <<\_ACEOF | |
28719 | #define wxHAVE_LIB_XPM 1 | |
28720 | _ACEOF | |
28721 | ||
28722 | else | |
28723 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
28724 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
28725 | fi | |
28726 | fi | |
28727 | ||
28728 | fi | |
28729 | ||
28730 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
28731 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
28732 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
28733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28734 | else | |
28735 | ac_check_lib_save_LIBS=$LIBS | |
28736 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
28737 | cat >conftest.$ac_ext <<_ACEOF | |
28738 | /* confdefs.h. */ | |
28739 | _ACEOF | |
28740 | cat confdefs.h >>conftest.$ac_ext | |
28741 | cat >>conftest.$ac_ext <<_ACEOF | |
28742 | /* end confdefs.h. */ | |
28743 | ||
28744 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28745 | #ifdef __cplusplus | |
28746 | extern "C" | |
28747 | #endif | |
28748 | /* We use char because int might match the return type of a gcc2 | |
28749 | builtin and then its argument prototype would still apply. */ | |
28750 | char XShapeQueryExtension (); | |
28751 | int | |
28752 | main () | |
28753 | { | |
28754 | XShapeQueryExtension (); | |
28755 | ; | |
28756 | return 0; | |
28757 | } | |
28758 | _ACEOF | |
28759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28761 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28762 | ac_status=$? |
ac1cb8d3 VS |
28763 | grep -v '^ *+' conftest.er1 >conftest.err |
28764 | rm -f conftest.er1 | |
28765 | cat conftest.err >&5 | |
a848cd7e SC |
28766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28767 | (exit $ac_status); } && | |
6ebeb4c7 | 28768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28770 | (eval $ac_try) 2>&5 | |
28771 | ac_status=$? | |
28772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28773 | (exit $ac_status); }; } && | |
28774 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28776 | (eval $ac_try) 2>&5 | |
28777 | ac_status=$? | |
28778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28779 | (exit $ac_status); }; }; then | |
28780 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
28781 | else | |
28782 | echo "$as_me: failed program was:" >&5 | |
28783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28784 | ||
28785 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
28786 | fi | |
ac1cb8d3 VS |
28787 | rm -f conftest.err conftest.$ac_objext \ |
28788 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28789 | LIBS=$ac_check_lib_save_LIBS |
28790 | fi | |
28791 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
28792 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
28793 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
28794 | ||
28795 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
28796 | wxHAVE_XEXT_LIB=1 | |
28797 | ||
28798 | fi | |
28799 | ||
28800 | ||
28801 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
28802 | save_CFLAGS="$CFLAGS" | |
28803 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28804 | ||
28805 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
28806 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
28807 | cat >conftest.$ac_ext <<_ACEOF | |
28808 | /* confdefs.h. */ | |
28809 | _ACEOF | |
28810 | cat confdefs.h >>conftest.$ac_ext | |
28811 | cat >>conftest.$ac_ext <<_ACEOF | |
28812 | /* end confdefs.h. */ | |
28813 | ||
28814 | #include <X11/Xlib.h> | |
28815 | #include <X11/extensions/shape.h> | |
28816 | ||
28817 | int | |
28818 | main () | |
28819 | { | |
28820 | ||
28821 | int dummy1, dummy2; | |
28822 | XShapeQueryExtension((Display*)NULL, | |
28823 | (int*)NULL, (int*)NULL); | |
28824 | ||
28825 | ; | |
28826 | return 0; | |
28827 | } | |
28828 | _ACEOF | |
28829 | rm -f conftest.$ac_objext | |
28830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28831 | (eval $ac_compile) 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_objext' | |
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 | cat >>confdefs.h <<\_ACEOF | |
28852 | #define HAVE_XSHAPE 1 | |
28853 | _ACEOF | |
28854 | ||
28855 | echo "$as_me:$LINENO: result: found" >&5 | |
28856 | echo "${ECHO_T}found" >&6 | |
28857 | ||
28858 | else | |
28859 | echo "$as_me: failed program was:" >&5 | |
28860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28861 | ||
28862 | ||
28863 | echo "$as_me:$LINENO: result: not found" >&5 | |
28864 | echo "${ECHO_T}not found" >&6 | |
28865 | ||
28866 | fi | |
ac1cb8d3 | 28867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28868 | CFLAGS="$save_CFLAGS" |
28869 | ||
28870 | fi | |
28871 | fi | |
28872 | ||
28873 | if test "$wxUSE_MAC" = 1; then | |
28874 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
28875 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
28876 | if test "$GCC" = yes; then | |
28877 | echo "$as_me:$LINENO: result: gcc" >&5 | |
28878 | echo "${ECHO_T}gcc" >&6 | |
28879 | CPPFLAGS_PASCAL="-fpascal-strings" | |
28880 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
28881 | echo "$as_me:$LINENO: result: xlc" >&5 | |
28882 | echo "${ECHO_T}xlc" >&6 | |
28883 | CPPFLAGS_PASCAL="-qmacpstr" | |
28884 | else | |
28885 | echo "$as_me:$LINENO: result: none" >&5 | |
28886 | echo "${ECHO_T}none" >&6 | |
28887 | fi | |
28888 | ||
1e9e8aba DE |
28889 | if test "x$wxUSE_UNIX" = "xyes"; then |
28890 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
28891 | else | |
28892 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
28893 | fi | |
a848cd7e | 28894 | |
a848cd7e SC |
28895 | TOOLKIT=MAC |
28896 | GUIDIST=MACX_DIST | |
dd21ced8 | 28897 | WXBASEPORT="_carbon" |
a848cd7e SC |
28898 | fi |
28899 | ||
28900 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
28901 | TOOLKIT=COCOA |
28902 | GUIDIST=COCOA_DIST | |
28903 | fi | |
28904 | ||
28905 | if test "$wxUSE_PM" = 1; then | |
28906 | TOOLKIT=PM | |
de59c161 RD |
28907 | GUIDIST=PM_DIST |
28908 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
28909 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
28910 | if test "${wx_cv_spbcdata+set}" = set; then | |
28911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28912 | else | |
28913 | ||
28914 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
28915 | /* confdefs.h. */ |
28916 | _ACEOF | |
28917 | cat confdefs.h >>conftest.$ac_ext | |
28918 | cat >>conftest.$ac_ext <<_ACEOF | |
28919 | /* end confdefs.h. */ | |
28920 | ||
28921 | #define INCL_PM | |
28922 | #include <os2.h> | |
28923 | ||
28924 | int | |
28925 | main () | |
28926 | { | |
28927 | ||
28928 | SPBCDATA test; | |
28929 | ||
28930 | ; | |
28931 | return 0; | |
28932 | } | |
28933 | _ACEOF | |
28934 | rm -f conftest.$ac_objext | |
28935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28936 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 28937 | ac_status=$? |
ac1cb8d3 VS |
28938 | grep -v '^ *+' conftest.er1 >conftest.err |
28939 | rm -f conftest.er1 | |
28940 | cat conftest.err >&5 | |
de59c161 RD |
28941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28942 | (exit $ac_status); } && | |
6ebeb4c7 | 28943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28945 | (eval $ac_try) 2>&5 | |
28946 | ac_status=$? | |
28947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28948 | (exit $ac_status); }; } && | |
28949 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
28950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28951 | (eval $ac_try) 2>&5 | |
28952 | ac_status=$? | |
28953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28954 | (exit $ac_status); }; }; then | |
28955 | wx_cv_spbcdata=yes | |
28956 | else | |
28957 | echo "$as_me: failed program was:" >&5 | |
28958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28959 | ||
28960 | wx_cv_spbcdata=no | |
28961 | ||
28962 | fi | |
ac1cb8d3 | 28963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
28964 | |
28965 | ||
28966 | fi | |
28967 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
28968 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
28969 | ||
28970 | if test $wx_cv_spbcdata = "yes"; then | |
28971 | cat >>confdefs.h <<\_ACEOF | |
28972 | #define HAVE_SPBCDATA 1 | |
28973 | _ACEOF | |
28974 | ||
28975 | fi | |
a848cd7e SC |
28976 | fi |
28977 | ||
28978 | if test "$TOOLKIT" = "PM" ; then | |
28979 | TOOLKIT_DIR="os2" | |
28980 | else | |
28981 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
28982 | fi | |
28983 | ||
a848cd7e | 28984 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
28985 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
28986 | WIDGET_SET=univ | |
a848cd7e SC |
28987 | fi |
28988 | ||
28989 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
28990 | DISTDIR="wx\$(TOOLKIT)" | |
28991 | else | |
28992 | USE_GUI=0 | |
28993 | ||
28994 | TOOLKIT_DIR="base" | |
28995 | ||
28996 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 28997 | TOOLKIT="MSW" |
a848cd7e SC |
28998 | fi |
28999 | ||
a848cd7e SC |
29000 | GUIDIST="BASE_DIST" |
29001 | DISTDIR="wxBase" | |
29002 | fi | |
29003 | ||
29004 | ||
d12aef51 VZ |
29005 | if test "$wxUSE_GUI" = "yes"; then |
29006 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
29007 | ||
29008 | for ac_header in X11/Xlib.h | |
29009 | do | |
29010 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29012 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29016 | fi | |
29017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29018 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29019 | else | |
29020 | # Is the header compilable? | |
29021 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29022 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29023 | cat >conftest.$ac_ext <<_ACEOF | |
29024 | /* confdefs.h. */ | |
29025 | _ACEOF | |
29026 | cat confdefs.h >>conftest.$ac_ext | |
29027 | cat >>conftest.$ac_ext <<_ACEOF | |
29028 | /* end confdefs.h. */ | |
29029 | $ac_includes_default | |
29030 | #include <$ac_header> | |
29031 | _ACEOF | |
29032 | rm -f conftest.$ac_objext | |
29033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29034 | (eval $ac_compile) 2>conftest.er1 | |
29035 | ac_status=$? | |
29036 | grep -v '^ *+' conftest.er1 >conftest.err | |
29037 | rm -f conftest.er1 | |
29038 | cat conftest.err >&5 | |
29039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29040 | (exit $ac_status); } && | |
29041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
29042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29043 | (eval $ac_try) 2>&5 | |
29044 | ac_status=$? | |
29045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29046 | (exit $ac_status); }; } && | |
29047 | { ac_try='test -s conftest.$ac_objext' | |
29048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29049 | (eval $ac_try) 2>&5 | |
29050 | ac_status=$? | |
29051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29052 | (exit $ac_status); }; }; then | |
29053 | ac_header_compiler=yes | |
29054 | else | |
29055 | echo "$as_me: failed program was:" >&5 | |
29056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29057 | ||
29058 | ac_header_compiler=no | |
29059 | fi | |
29060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29061 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
29062 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29063 | ||
29064 | # Is the header present? | |
29065 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29066 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29067 | cat >conftest.$ac_ext <<_ACEOF | |
29068 | /* confdefs.h. */ | |
29069 | _ACEOF | |
29070 | cat confdefs.h >>conftest.$ac_ext | |
29071 | cat >>conftest.$ac_ext <<_ACEOF | |
29072 | /* end confdefs.h. */ | |
29073 | #include <$ac_header> | |
29074 | _ACEOF | |
29075 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29076 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29077 | ac_status=$? | |
29078 | grep -v '^ *+' conftest.er1 >conftest.err | |
29079 | rm -f conftest.er1 | |
29080 | cat conftest.err >&5 | |
29081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29082 | (exit $ac_status); } >/dev/null; then | |
29083 | if test -s conftest.err; then | |
29084 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29085 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
29086 | else | |
29087 | ac_cpp_err= | |
29088 | fi | |
29089 | else | |
29090 | ac_cpp_err=yes | |
29091 | fi | |
29092 | if test -z "$ac_cpp_err"; then | |
29093 | ac_header_preproc=yes | |
29094 | else | |
29095 | echo "$as_me: failed program was:" >&5 | |
29096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29097 | ||
29098 | ac_header_preproc=no | |
29099 | fi | |
29100 | rm -f conftest.err conftest.$ac_ext | |
29101 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29102 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29103 | ||
29104 | # So? What about this header? | |
29105 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
29106 | yes:no: ) | |
29107 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
29108 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
29109 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
29110 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
29111 | ac_header_preproc=yes | |
29112 | ;; | |
29113 | no:yes:* ) | |
29114 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
29115 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
29116 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
29117 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
29118 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
29119 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
29120 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
29121 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
29122 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29123 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29124 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
29125 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
29126 | ( | |
29127 | cat <<\_ASBOX | |
29128 | ## ----------------------------------------- ## | |
29129 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29130 | ## ----------------------------------------- ## | |
29131 | _ASBOX | |
29132 | ) | | |
29133 | sed "s/^/$as_me: WARNING: /" >&2 | |
29134 | ;; | |
29135 | esac | |
29136 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29140 | else | |
29141 | eval "$as_ac_Header=\$ac_header_preproc" | |
29142 | fi | |
29143 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29144 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29145 | ||
29146 | fi | |
29147 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29148 | cat >>confdefs.h <<_ACEOF | |
29149 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29150 | _ACEOF | |
29151 | ||
29152 | fi | |
29153 | ||
29154 | done | |
29155 | ||
29156 | ||
29157 | for ac_header in X11/XKBlib.h | |
29158 | do | |
29159 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29160 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29164 | else | |
29165 | cat >conftest.$ac_ext <<_ACEOF | |
29166 | /* confdefs.h. */ | |
29167 | _ACEOF | |
29168 | cat confdefs.h >>conftest.$ac_ext | |
29169 | cat >>conftest.$ac_ext <<_ACEOF | |
29170 | /* end confdefs.h. */ | |
29171 | ||
29172 | #if HAVE_X11_XLIB_H | |
29173 | #include <X11/Xlib.h> | |
29174 | #endif | |
29175 | ||
29176 | ||
29177 | #include <$ac_header> | |
29178 | _ACEOF | |
29179 | rm -f conftest.$ac_objext | |
29180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29181 | (eval $ac_compile) 2>conftest.er1 | |
29182 | ac_status=$? | |
29183 | grep -v '^ *+' conftest.er1 >conftest.err | |
29184 | rm -f conftest.er1 | |
29185 | cat conftest.err >&5 | |
29186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29187 | (exit $ac_status); } && | |
29188 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
29189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29190 | (eval $ac_try) 2>&5 | |
29191 | ac_status=$? | |
29192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29193 | (exit $ac_status); }; } && | |
29194 | { ac_try='test -s conftest.$ac_objext' | |
29195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29196 | (eval $ac_try) 2>&5 | |
29197 | ac_status=$? | |
29198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29199 | (exit $ac_status); }; }; then | |
29200 | eval "$as_ac_Header=yes" | |
29201 | else | |
29202 | echo "$as_me: failed program was:" >&5 | |
29203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29204 | ||
29205 | eval "$as_ac_Header=no" | |
29206 | fi | |
29207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29208 | fi | |
29209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29210 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29211 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29212 | cat >>confdefs.h <<_ACEOF | |
29213 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29214 | _ACEOF | |
29215 | ||
29216 | fi | |
29217 | ||
29218 | done | |
29219 | ||
29220 | fi | |
29221 | fi | |
29222 | ||
a848cd7e SC |
29223 | |
29224 | ||
29225 | IODBC_C_SRC="" | |
29226 | ||
29227 | ||
29228 | if test "$TOOLKIT" != "MSW" ; then | |
29229 | ||
29230 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
29231 | ||
29232 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29233 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
29234 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
29235 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29237 | fi | |
29238 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
29239 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
29240 | else | |
29241 | # Is the header compilable? | |
29242 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
29243 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
29244 | cat >conftest.$ac_ext <<_ACEOF | |
29245 | /* confdefs.h. */ | |
29246 | _ACEOF | |
29247 | cat confdefs.h >>conftest.$ac_ext | |
29248 | cat >>conftest.$ac_ext <<_ACEOF | |
29249 | /* end confdefs.h. */ | |
29250 | $ac_includes_default | |
29251 | #include <sql.h> | |
29252 | _ACEOF | |
29253 | rm -f conftest.$ac_objext | |
29254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29255 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29256 | ac_status=$? |
ac1cb8d3 VS |
29257 | grep -v '^ *+' conftest.er1 >conftest.err |
29258 | rm -f conftest.er1 | |
29259 | cat conftest.err >&5 | |
a848cd7e SC |
29260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29261 | (exit $ac_status); } && | |
6ebeb4c7 | 29262 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29264 | (eval $ac_try) 2>&5 | |
29265 | ac_status=$? | |
29266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29267 | (exit $ac_status); }; } && | |
29268 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29270 | (eval $ac_try) 2>&5 | |
29271 | ac_status=$? | |
29272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29273 | (exit $ac_status); }; }; then | |
29274 | ac_header_compiler=yes | |
29275 | else | |
29276 | echo "$as_me: failed program was:" >&5 | |
29277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29278 | ||
29279 | ac_header_compiler=no | |
29280 | fi | |
ac1cb8d3 | 29281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29282 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29283 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29284 | ||
29285 | # Is the header present? | |
29286 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
29287 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
29288 | cat >conftest.$ac_ext <<_ACEOF | |
29289 | /* confdefs.h. */ | |
29290 | _ACEOF | |
29291 | cat confdefs.h >>conftest.$ac_ext | |
29292 | cat >>conftest.$ac_ext <<_ACEOF | |
29293 | /* end confdefs.h. */ | |
29294 | #include <sql.h> | |
29295 | _ACEOF | |
29296 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29297 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29298 | ac_status=$? | |
29299 | grep -v '^ *+' conftest.er1 >conftest.err | |
29300 | rm -f conftest.er1 | |
29301 | cat conftest.err >&5 | |
29302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29303 | (exit $ac_status); } >/dev/null; then | |
29304 | if test -s conftest.err; then | |
29305 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 29306 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
29307 | else |
29308 | ac_cpp_err= | |
29309 | fi | |
29310 | else | |
29311 | ac_cpp_err=yes | |
29312 | fi | |
29313 | if test -z "$ac_cpp_err"; then | |
29314 | ac_header_preproc=yes | |
29315 | else | |
29316 | echo "$as_me: failed program was:" >&5 | |
29317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29318 | ||
29319 | ac_header_preproc=no | |
29320 | fi | |
29321 | rm -f conftest.err conftest.$ac_ext | |
29322 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29323 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29324 | ||
29325 | # So? What about this header? | |
ac1cb8d3 VS |
29326 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
29327 | yes:no: ) | |
a848cd7e SC |
29328 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
29329 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
29330 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
29331 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
29332 | ac_header_preproc=yes | |
a848cd7e | 29333 | ;; |
ac1cb8d3 | 29334 | no:yes:* ) |
a848cd7e SC |
29335 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
29336 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
29337 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
29338 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
29339 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
29340 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
29341 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
29342 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
29343 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
29344 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
29345 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
29346 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
29347 | ( |
29348 | cat <<\_ASBOX | |
ac1cb8d3 VS |
29349 | ## ----------------------------------------- ## |
29350 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29351 | ## ----------------------------------------- ## | |
a848cd7e SC |
29352 | _ASBOX |
29353 | ) | | |
29354 | sed "s/^/$as_me: WARNING: /" >&2 | |
29355 | ;; | |
29356 | esac | |
29357 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
29358 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
29359 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29361 | else | |
29362 | ac_cv_header_sql_h=$ac_header_preproc | |
29363 | fi | |
29364 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
29365 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
29366 | ||
29367 | fi | |
29368 | if test $ac_cv_header_sql_h = yes; then | |
29369 | found_sql_h=1 | |
29370 | fi | |
29371 | ||
29372 | ||
29373 | if test "x$found_sql_h" = "x1" ; then | |
29374 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
29375 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
29376 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
29377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29378 | else | |
29379 | ac_check_lib_save_LIBS=$LIBS | |
29380 | LIBS="-liodbc $LIBS" | |
29381 | cat >conftest.$ac_ext <<_ACEOF | |
29382 | /* confdefs.h. */ | |
29383 | _ACEOF | |
29384 | cat confdefs.h >>conftest.$ac_ext | |
29385 | cat >>conftest.$ac_ext <<_ACEOF | |
29386 | /* end confdefs.h. */ | |
29387 | ||
29388 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29389 | #ifdef __cplusplus | |
29390 | extern "C" | |
29391 | #endif | |
29392 | /* We use char because int might match the return type of a gcc2 | |
29393 | builtin and then its argument prototype would still apply. */ | |
29394 | char SQLAllocEnv (); | |
29395 | int | |
29396 | main () | |
29397 | { | |
29398 | SQLAllocEnv (); | |
29399 | ; | |
29400 | return 0; | |
29401 | } | |
29402 | _ACEOF | |
29403 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29405 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29406 | ac_status=$? |
ac1cb8d3 VS |
29407 | grep -v '^ *+' conftest.er1 >conftest.err |
29408 | rm -f conftest.er1 | |
29409 | cat conftest.err >&5 | |
a848cd7e SC |
29410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29411 | (exit $ac_status); } && | |
6ebeb4c7 | 29412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29414 | (eval $ac_try) 2>&5 | |
29415 | ac_status=$? | |
29416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29417 | (exit $ac_status); }; } && | |
29418 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29420 | (eval $ac_try) 2>&5 | |
29421 | ac_status=$? | |
29422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29423 | (exit $ac_status); }; }; then | |
29424 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
29425 | else | |
29426 | echo "$as_me: failed program was:" >&5 | |
29427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29428 | ||
29429 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
29430 | fi | |
ac1cb8d3 VS |
29431 | rm -f conftest.err conftest.$ac_objext \ |
29432 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29433 | LIBS=$ac_check_lib_save_LIBS |
29434 | fi | |
29435 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
29436 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
29437 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
29438 | ODBC_LINK=" -liodbc" | |
29439 | else | |
29440 | ||
29441 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
29442 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
29443 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
29444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29445 | else | |
29446 | ac_check_lib_save_LIBS=$LIBS | |
29447 | LIBS="-lunixodbc $LIBS" | |
29448 | cat >conftest.$ac_ext <<_ACEOF | |
29449 | /* confdefs.h. */ | |
29450 | _ACEOF | |
29451 | cat confdefs.h >>conftest.$ac_ext | |
29452 | cat >>conftest.$ac_ext <<_ACEOF | |
29453 | /* end confdefs.h. */ | |
29454 | ||
29455 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29456 | #ifdef __cplusplus | |
29457 | extern "C" | |
29458 | #endif | |
29459 | /* We use char because int might match the return type of a gcc2 | |
29460 | builtin and then its argument prototype would still apply. */ | |
29461 | char SQLAllocEnv (); | |
29462 | int | |
29463 | main () | |
29464 | { | |
29465 | SQLAllocEnv (); | |
29466 | ; | |
29467 | return 0; | |
29468 | } | |
29469 | _ACEOF | |
29470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29472 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29473 | ac_status=$? |
ac1cb8d3 VS |
29474 | grep -v '^ *+' conftest.er1 >conftest.err |
29475 | rm -f conftest.er1 | |
29476 | cat conftest.err >&5 | |
a848cd7e SC |
29477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29478 | (exit $ac_status); } && | |
6ebeb4c7 | 29479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29481 | (eval $ac_try) 2>&5 | |
29482 | ac_status=$? | |
29483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29484 | (exit $ac_status); }; } && | |
29485 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29487 | (eval $ac_try) 2>&5 | |
29488 | ac_status=$? | |
29489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29490 | (exit $ac_status); }; }; then | |
29491 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
29492 | else | |
29493 | echo "$as_me: failed program was:" >&5 | |
29494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29495 | ||
29496 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
29497 | fi | |
ac1cb8d3 VS |
29498 | rm -f conftest.err conftest.$ac_objext \ |
29499 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29500 | LIBS=$ac_check_lib_save_LIBS |
29501 | fi | |
29502 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
29503 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
29504 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
29505 | ODBC_LINK=" -lunixodbc" | |
29506 | else | |
29507 | ||
29508 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
29509 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
29510 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
29511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29512 | else | |
29513 | ac_check_lib_save_LIBS=$LIBS | |
29514 | LIBS="-lodbc $LIBS" | |
29515 | cat >conftest.$ac_ext <<_ACEOF | |
29516 | /* confdefs.h. */ | |
29517 | _ACEOF | |
29518 | cat confdefs.h >>conftest.$ac_ext | |
29519 | cat >>conftest.$ac_ext <<_ACEOF | |
29520 | /* end confdefs.h. */ | |
29521 | ||
29522 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29523 | #ifdef __cplusplus | |
29524 | extern "C" | |
29525 | #endif | |
29526 | /* We use char because int might match the return type of a gcc2 | |
29527 | builtin and then its argument prototype would still apply. */ | |
29528 | char SQLAllocEnv (); | |
29529 | int | |
29530 | main () | |
29531 | { | |
29532 | SQLAllocEnv (); | |
29533 | ; | |
29534 | return 0; | |
29535 | } | |
29536 | _ACEOF | |
29537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29539 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29540 | ac_status=$? |
ac1cb8d3 VS |
29541 | grep -v '^ *+' conftest.er1 >conftest.err |
29542 | rm -f conftest.er1 | |
29543 | cat conftest.err >&5 | |
a848cd7e SC |
29544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29545 | (exit $ac_status); } && | |
6ebeb4c7 | 29546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29548 | (eval $ac_try) 2>&5 | |
29549 | ac_status=$? | |
29550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29551 | (exit $ac_status); }; } && | |
29552 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29554 | (eval $ac_try) 2>&5 | |
29555 | ac_status=$? | |
29556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29557 | (exit $ac_status); }; }; then | |
29558 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
29559 | else | |
29560 | echo "$as_me: failed program was:" >&5 | |
29561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29562 | ||
29563 | ac_cv_lib_odbc_SQLAllocEnv=no | |
29564 | fi | |
ac1cb8d3 VS |
29565 | rm -f conftest.err conftest.$ac_objext \ |
29566 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29567 | LIBS=$ac_check_lib_save_LIBS |
29568 | fi | |
29569 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
29570 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
29571 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
29572 | ODBC_LINK=" -lodbc" | |
29573 | fi | |
29574 | ||
29575 | ||
29576 | fi | |
29577 | ||
29578 | ||
29579 | fi | |
29580 | ||
29581 | fi | |
29582 | if test "x$ODBC_LINK" = "x" ; then | |
29583 | if test "$wxUSE_ODBC" = "sys" ; then | |
29584 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
29585 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
29586 | { (exit 1); exit 1; }; } | |
29587 | else | |
29588 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
29589 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
29590 | wxUSE_ODBC=builtin | |
29591 | fi | |
29592 | else | |
29593 | wxUSE_ODBC=sys | |
29594 | fi | |
29595 | fi | |
a848cd7e | 29596 | |
2da0c077 RD |
29597 | if test "$wxUSE_ODBC" = "builtin" ; then |
29598 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
29599 | #define wxUSE_BUILTIN_IODBC 1 |
29600 | _ACEOF | |
29601 | ||
a848cd7e SC |
29602 | fi |
29603 | fi | |
29604 | ||
2da0c077 RD |
29605 | if test "$wxUSE_ODBC" != "no" ; then |
29606 | cat >>confdefs.h <<\_ACEOF | |
29607 | #define wxUSE_ODBC 1 | |
29608 | _ACEOF | |
29609 | ||
29610 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
29611 | ||
29612 | WXODBCFLAG="-D_IODBC_" | |
29613 | fi | |
a848cd7e | 29614 | |
01cb68df | 29615 | |
a848cd7e | 29616 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 29617 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
29618 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
29619 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
29620 | ||
29621 | ac_find_libraries= | |
29622 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29623 | do | |
3eca31dc | 29624 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
29625 | if test -f "$ac_dir/libXinerama.$ac_extension"; then |
29626 | ac_find_libraries=$ac_dir | |
29627 | break 2 | |
29628 | fi | |
29629 | done | |
29630 | done | |
29631 | ||
29632 | if test "$ac_find_libraries" != "" ; then | |
29633 | ||
29634 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29635 | result=$? | |
29636 | if test $result = 0; then | |
29637 | ac_path_to_link="" | |
29638 | else | |
29639 | ac_path_to_link=" -L$ac_find_libraries" | |
29640 | fi | |
29641 | ||
29642 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
29643 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
29644 | fi | |
29645 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
29646 | echo "$as_me:$LINENO: result: yes" >&5 | |
29647 | echo "${ECHO_T}yes" >&6 | |
29648 | ||
29649 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
29650 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
29651 | ||
29652 | ac_find_libraries= | |
29653 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29654 | do | |
3eca31dc | 29655 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
29656 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
29657 | ac_find_libraries=$ac_dir | |
29658 | break 2 | |
29659 | fi | |
29660 | done | |
29661 | done | |
29662 | ||
29663 | if test "$ac_find_libraries" != "" ; then | |
29664 | echo "$as_me:$LINENO: result: yes" >&5 | |
29665 | echo "${ECHO_T}yes" >&6 | |
29666 | ||
29667 | for ac_header in X11/extensions/xf86vmode.h | |
29668 | do | |
29669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29670 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29671 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29672 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29674 | else | |
29675 | cat >conftest.$ac_ext <<_ACEOF | |
29676 | /* confdefs.h. */ | |
29677 | _ACEOF | |
29678 | cat confdefs.h >>conftest.$ac_ext | |
29679 | cat >>conftest.$ac_ext <<_ACEOF | |
29680 | /* end confdefs.h. */ | |
29681 | ||
29682 | #if HAVE_X11_XLIB_H | |
29683 | #include <X11/Xlib.h> | |
29684 | #endif | |
29685 | ||
29686 | ||
29687 | #include <$ac_header> | |
29688 | _ACEOF | |
29689 | rm -f conftest.$ac_objext | |
29690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29691 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29692 | ac_status=$? |
ac1cb8d3 VS |
29693 | grep -v '^ *+' conftest.er1 >conftest.err |
29694 | rm -f conftest.er1 | |
29695 | cat conftest.err >&5 | |
a848cd7e SC |
29696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29697 | (exit $ac_status); } && | |
6ebeb4c7 | 29698 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29700 | (eval $ac_try) 2>&5 | |
29701 | ac_status=$? | |
29702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29703 | (exit $ac_status); }; } && | |
29704 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29706 | (eval $ac_try) 2>&5 | |
29707 | ac_status=$? | |
29708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29709 | (exit $ac_status); }; }; then | |
29710 | eval "$as_ac_Header=yes" | |
29711 | else | |
29712 | echo "$as_me: failed program was:" >&5 | |
29713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29714 | ||
29715 | eval "$as_ac_Header=no" | |
29716 | fi | |
ac1cb8d3 | 29717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29718 | fi |
29719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29720 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29721 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29722 | cat >>confdefs.h <<_ACEOF | |
29723 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29724 | _ACEOF | |
29725 | ||
29726 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
29727 | ||
29728 | fi | |
29729 | ||
29730 | done | |
29731 | ||
29732 | else | |
29733 | echo "$as_me:$LINENO: result: no" >&5 | |
29734 | echo "${ECHO_T}no" >&6 | |
29735 | fi | |
29736 | ||
29737 | else | |
29738 | echo "$as_me:$LINENO: result: no" >&5 | |
29739 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
29740 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
29741 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
29742 | wxUSE_DISPLAY="no" |
29743 | fi | |
01cb68df RG |
29744 | elif test "$wxUSE_MSW" = 1; then |
29745 | ||
29746 | ||
29747 | for ac_header in multimon.h ddraw.h | |
29748 | do | |
29749 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 29750 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
29751 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
29752 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 29754 | else |
5294a27e | 29755 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
29756 | /* confdefs.h. */ |
29757 | _ACEOF | |
29758 | cat confdefs.h >>conftest.$ac_ext | |
29759 | cat >>conftest.$ac_ext <<_ACEOF | |
29760 | /* end confdefs.h. */ | |
5294a27e VZ |
29761 | #include <windows.h> |
29762 | ||
01cb68df RG |
29763 | #include <$ac_header> |
29764 | _ACEOF | |
29765 | rm -f conftest.$ac_objext | |
29766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29767 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 29768 | ac_status=$? |
ac1cb8d3 VS |
29769 | grep -v '^ *+' conftest.er1 >conftest.err |
29770 | rm -f conftest.er1 | |
29771 | cat conftest.err >&5 | |
01cb68df RG |
29772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29773 | (exit $ac_status); } && | |
6ebeb4c7 | 29774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29776 | (eval $ac_try) 2>&5 | |
29777 | ac_status=$? | |
29778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29779 | (exit $ac_status); }; } && | |
29780 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
29781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29782 | (eval $ac_try) 2>&5 | |
29783 | ac_status=$? | |
29784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29785 | (exit $ac_status); }; }; then | |
5294a27e | 29786 | eval "$as_ac_Header=yes" |
01cb68df RG |
29787 | else |
29788 | echo "$as_me: failed program was:" >&5 | |
29789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29790 | ||
5294a27e | 29791 | eval "$as_ac_Header=no" |
01cb68df | 29792 | fi |
ac1cb8d3 | 29793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
29794 | fi |
29795 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29796 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
29797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
29798 | cat >>confdefs.h <<_ACEOF | |
29799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29800 | _ACEOF | |
29801 | ||
29802 | else | |
29803 | ||
5294a27e VZ |
29804 | wxUSE_DISPLAY="no" |
29805 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 29806 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
29807 | |
29808 | fi | |
29809 | ||
29810 | done | |
29811 | ||
a848cd7e SC |
29812 | fi |
29813 | fi | |
29814 | ||
29815 | ||
29816 | USE_OPENGL=0 | |
29817 | if test "$wxUSE_OPENGL" = "yes"; then | |
29818 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
29819 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
29820 | elif test "$wxUSE_MSW" = 1; then | |
29821 | OPENGL_LIBS="-lopengl32 -lglu32" | |
29822 | else | |
29823 | ||
29824 | ||
29825 | ac_find_includes= | |
29826 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29827 | do | |
29828 | if test -f "$ac_dir/GL/gl.h"; then | |
29829 | ac_find_includes=$ac_dir | |
29830 | break | |
29831 | fi | |
29832 | done | |
29833 | ||
29834 | if test "$ac_find_includes" != "" ; then | |
29835 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29836 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29837 | ||
29838 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29839 | ac_path_to_include="" | |
29840 | else | |
29841 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
29842 | result=$? | |
29843 | if test $result = 0; then | |
29844 | ac_path_to_include="" | |
29845 | else | |
29846 | ac_path_to_include=" -I$ac_find_includes" | |
29847 | fi | |
29848 | fi | |
29849 | ||
29850 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
29851 | fi | |
29852 | ||
29853 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29854 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
29855 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
29856 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29858 | fi | |
29859 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
29860 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
29861 | else | |
29862 | # Is the header compilable? | |
29863 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
29864 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
29865 | cat >conftest.$ac_ext <<_ACEOF | |
29866 | /* confdefs.h. */ | |
29867 | _ACEOF | |
29868 | cat confdefs.h >>conftest.$ac_ext | |
29869 | cat >>conftest.$ac_ext <<_ACEOF | |
29870 | /* end confdefs.h. */ | |
29871 | $ac_includes_default | |
29872 | #include <GL/gl.h> | |
29873 | _ACEOF | |
29874 | rm -f conftest.$ac_objext | |
29875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29876 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29877 | ac_status=$? |
ac1cb8d3 VS |
29878 | grep -v '^ *+' conftest.er1 >conftest.err |
29879 | rm -f conftest.er1 | |
29880 | cat conftest.err >&5 | |
a848cd7e SC |
29881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29882 | (exit $ac_status); } && | |
6ebeb4c7 | 29883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29885 | (eval $ac_try) 2>&5 | |
29886 | ac_status=$? | |
29887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29888 | (exit $ac_status); }; } && | |
29889 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29891 | (eval $ac_try) 2>&5 | |
29892 | ac_status=$? | |
29893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29894 | (exit $ac_status); }; }; then | |
29895 | ac_header_compiler=yes | |
29896 | else | |
29897 | echo "$as_me: failed program was:" >&5 | |
29898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29899 | ||
29900 | ac_header_compiler=no | |
29901 | fi | |
ac1cb8d3 | 29902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29903 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29904 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29905 | ||
29906 | # Is the header present? | |
29907 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
29908 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
29909 | cat >conftest.$ac_ext <<_ACEOF | |
29910 | /* confdefs.h. */ | |
29911 | _ACEOF | |
29912 | cat confdefs.h >>conftest.$ac_ext | |
29913 | cat >>conftest.$ac_ext <<_ACEOF | |
29914 | /* end confdefs.h. */ | |
29915 | #include <GL/gl.h> | |
29916 | _ACEOF | |
29917 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29918 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29919 | ac_status=$? | |
29920 | grep -v '^ *+' conftest.er1 >conftest.err | |
29921 | rm -f conftest.er1 | |
29922 | cat conftest.err >&5 | |
29923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29924 | (exit $ac_status); } >/dev/null; then | |
29925 | if test -s conftest.err; then | |
29926 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 29927 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
29928 | else |
29929 | ac_cpp_err= | |
29930 | fi | |
29931 | else | |
29932 | ac_cpp_err=yes | |
29933 | fi | |
29934 | if test -z "$ac_cpp_err"; then | |
29935 | ac_header_preproc=yes | |
29936 | else | |
29937 | echo "$as_me: failed program was:" >&5 | |
29938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29939 | ||
29940 | ac_header_preproc=no | |
29941 | fi | |
29942 | rm -f conftest.err conftest.$ac_ext | |
29943 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29944 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29945 | ||
29946 | # So? What about this header? | |
ac1cb8d3 VS |
29947 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
29948 | yes:no: ) | |
a848cd7e SC |
29949 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
29950 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
29951 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
29952 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
29953 | ac_header_preproc=yes | |
a848cd7e | 29954 | ;; |
ac1cb8d3 | 29955 | no:yes:* ) |
a848cd7e SC |
29956 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
29957 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
29958 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
29959 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
29960 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
29961 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
29962 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
29963 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
29964 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
29965 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
29966 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
29967 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
29968 | ( |
29969 | cat <<\_ASBOX | |
ac1cb8d3 VS |
29970 | ## ----------------------------------------- ## |
29971 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29972 | ## ----------------------------------------- ## | |
a848cd7e SC |
29973 | _ASBOX |
29974 | ) | | |
29975 | sed "s/^/$as_me: WARNING: /" >&2 | |
29976 | ;; | |
29977 | esac | |
29978 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
29979 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
29980 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29982 | else | |
29983 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
29984 | fi | |
29985 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
29986 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
29987 | ||
29988 | fi | |
29989 | if test $ac_cv_header_GL_gl_h = yes; then | |
29990 | ||
29991 | found_gl=0 | |
29992 | ||
29993 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
29994 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
29995 | ||
29996 | ac_find_libraries= | |
29997 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29998 | do | |
3eca31dc | 29999 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30000 | if test -f "$ac_dir/libGL.$ac_extension"; then |
30001 | ac_find_libraries=$ac_dir | |
30002 | break 2 | |
30003 | fi | |
30004 | done | |
30005 | done | |
30006 | ||
30007 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
30008 | echo "$as_me:$LINENO: result: yes" >&5 |
30009 | echo "${ECHO_T}yes" >&6 | |
30010 | ||
a848cd7e SC |
30011 | |
30012 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
30013 | result=$? | |
30014 | if test $result = 0; then | |
30015 | ac_path_to_link="" | |
30016 | else | |
30017 | ac_path_to_link=" -L$ac_find_libraries" | |
30018 | fi | |
30019 | ||
30020 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
30021 | LDFLAGS_GL="$ac_path_to_link" | |
30022 | fi | |
30023 | ||
69120ee4 VZ |
30024 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
30025 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e SC |
30026 | |
30027 | ac_find_libraries= | |
30028 | for ac_dir in $SEARCH_LIB /usr/lib; | |
30029 | do | |
3eca31dc | 30030 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30031 | if test -f "$ac_dir/libGLU.$ac_extension"; then |
30032 | ac_find_libraries=$ac_dir | |
30033 | break 2 | |
30034 | fi | |
30035 | done | |
30036 | done | |
30037 | ||
30038 | if test "$ac_find_libraries" != "" ; then | |
30039 | ||
30040 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
30041 | result=$? | |
30042 | if test $result = 0; then | |
30043 | ac_path_to_link="" | |
30044 | else | |
30045 | ac_path_to_link=" -L$ac_find_libraries" | |
30046 | fi | |
30047 | ||
30048 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
30049 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
30050 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
30051 | fi | |
30052 | ||
30053 | found_gl=1 | |
30054 | OPENGL_LIBS="-lGL -lGLU" | |
30055 | echo "$as_me:$LINENO: result: yes" >&5 | |
30056 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
30057 | else |
30058 | echo "$as_me:$LINENO: result: no" >&5 | |
30059 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 30060 | fi |
69120ee4 VZ |
30061 | else |
30062 | echo "$as_me:$LINENO: result: no" >&5 | |
30063 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
30064 | fi |
30065 | ||
30066 | if test "$found_gl" != 1; then | |
a848cd7e SC |
30067 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
30068 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
30069 | ||
30070 | ac_find_libraries= | |
30071 | for ac_dir in $SEARCH_LIB /usr/lib; | |
30072 | do | |
3eca31dc | 30073 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30074 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
30075 | ac_find_libraries=$ac_dir | |
30076 | break 2 | |
30077 | fi | |
30078 | done | |
30079 | done | |
30080 | ||
30081 | if test "$ac_find_libraries" != "" ; then | |
30082 | ||
30083 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
30084 | result=$? | |
30085 | if test $result = 0; then | |
30086 | ac_path_to_link="" | |
30087 | else | |
30088 | ac_path_to_link=" -L$ac_find_libraries" | |
30089 | fi | |
30090 | ||
30091 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
30092 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
30093 | echo "$as_me:$LINENO: result: yes" >&5 | |
30094 | echo "${ECHO_T}yes" >&6 | |
30095 | else | |
30096 | echo "$as_me:$LINENO: result: no" >&5 | |
30097 | echo "${ECHO_T}no" >&6 | |
30098 | fi | |
30099 | fi | |
30100 | ||
30101 | fi | |
30102 | ||
30103 | ||
30104 | ||
30105 | if test "x$OPENGL_LIBS" = "x"; then | |
30106 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
30107 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
30108 | { (exit 1); exit 1; }; } | |
30109 | fi | |
30110 | fi | |
30111 | ||
30112 | if test "$wxUSE_OPENGL" = "yes"; then | |
30113 | USE_OPENGL=1 | |
30114 | cat >>confdefs.h <<\_ACEOF | |
30115 | #define wxUSE_OPENGL 1 | |
30116 | _ACEOF | |
30117 | ||
30118 | cat >>confdefs.h <<\_ACEOF | |
30119 | #define wxUSE_GLCANVAS 1 | |
30120 | _ACEOF | |
30121 | ||
30122 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
30123 | fi | |
30124 | fi | |
30125 | ||
a848cd7e SC |
30126 | |
30127 | if test -n "$TOOLKIT" ; then | |
30128 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
30129 | fi | |
30130 | ||
a848cd7e SC |
30131 | |
30132 | ||
30133 | if test "$wxUSE_SHARED" = "yes"; then | |
30134 | case "${host}" in | |
30135 | *-pc-msdosdjgpp ) | |
30136 | wxUSE_SHARED=no | |
30137 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
30138 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
30139 | ;; | |
30140 | esac | |
30141 | fi | |
30142 | ||
a848cd7e | 30143 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
30144 | |
30145 | ||
30146 | found_versioning=no | |
30147 | ||
30148 | ||
30149 | if test $found_versioning = no ; then | |
30150 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
30151 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
30152 | if test "${wx_cv_version_script+set}" = set; then | |
30153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30154 | else | |
30155 | ||
30156 | echo "VER_1 { *; };" >conftest.sym | |
30157 | echo "int main() { return 0; }" >conftest.cpp | |
30158 | ||
30159 | if { ac_try=' | |
30160 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30161 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
30162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30163 | (eval $ac_try) 2>&5 | |
30164 | ac_status=$? | |
30165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30166 | (exit $ac_status); }; } ; then | |
30167 | if test -s conftest.stderr ; then | |
30168 | wx_cv_version_script=no | |
30169 | else | |
30170 | wx_cv_version_script=yes | |
30171 | fi | |
30172 | else | |
30173 | wx_cv_version_script=no | |
30174 | fi | |
e5d4b470 MW |
30175 | |
30176 | if test $wx_cv_version_script = yes | |
30177 | then | |
30178 | echo "struct B { virtual ~B() { } }; \ | |
30179 | struct D : public B { }; \ | |
30180 | void F() { D d; }" > conftest.cpp | |
30181 | ||
30182 | if { ac_try=' | |
30183 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30184 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
30185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30186 | (eval $ac_try) 2>&5 | |
30187 | ac_status=$? | |
30188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30189 | (exit $ac_status); }; } && | |
30190 | { ac_try=' | |
30191 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30192 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
30193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30194 | (eval $ac_try) 2>&5 | |
30195 | ac_status=$? | |
30196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30197 | (exit $ac_status); }; } | |
30198 | then | |
30199 | if { ac_try=' | |
30200 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30201 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
30202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30203 | (eval $ac_try) 2>&5 | |
30204 | ac_status=$? | |
30205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30206 | (exit $ac_status); }; } | |
30207 | then | |
30208 | wx_cv_version_script=yes | |
30209 | else | |
30210 | wx_cv_version_script=no | |
30211 | fi | |
30212 | fi | |
30213 | fi | |
30214 | ||
a848cd7e | 30215 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 30216 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
30217 | |
30218 | fi | |
30219 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
30220 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
30221 | if test $wx_cv_version_script = yes ; then | |
30222 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
30223 | fi | |
30224 | fi | |
30225 | ||
30226 | ||
30227 | case "${host}" in | |
30228 | *-*-linux* | *-*-gnu* ) | |
30229 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 30230 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 30231 | ;; |
a848cd7e SC |
30232 | |
30233 | *-*-solaris2* ) | |
30234 | if test "$GCC" = yes ; then | |
30235 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
30236 | ||
30237 | saveLdflags="$LDFLAGS" | |
30238 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
30239 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
30240 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
30241 | cat >conftest.$ac_ext <<_ACEOF | |
30242 | /* confdefs.h. */ | |
30243 | _ACEOF | |
30244 | cat confdefs.h >>conftest.$ac_ext | |
30245 | cat >>conftest.$ac_ext <<_ACEOF | |
30246 | /* end confdefs.h. */ | |
30247 | ||
30248 | int | |
30249 | main () | |
30250 | { | |
30251 | ||
30252 | ; | |
30253 | return 0; | |
30254 | } | |
30255 | _ACEOF | |
30256 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30258 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30259 | ac_status=$? |
ac1cb8d3 VS |
30260 | grep -v '^ *+' conftest.er1 >conftest.err |
30261 | rm -f conftest.er1 | |
30262 | cat conftest.err >&5 | |
a848cd7e SC |
30263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30264 | (exit $ac_status); } && | |
6ebeb4c7 | 30265 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30267 | (eval $ac_try) 2>&5 | |
30268 | ac_status=$? | |
30269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30270 | (exit $ac_status); }; } && | |
30271 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30273 | (eval $ac_try) 2>&5 | |
30274 | ac_status=$? | |
30275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30276 | (exit $ac_status); }; }; then | |
30277 | ||
30278 | echo "$as_me:$LINENO: result: yes" >&5 | |
30279 | echo "${ECHO_T}yes" >&6 | |
30280 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 30281 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
30282 | |
30283 | else | |
30284 | echo "$as_me: failed program was:" >&5 | |
30285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30286 | ||
30287 | ||
30288 | echo "$as_me:$LINENO: result: no" >&5 | |
30289 | echo "${ECHO_T}no" >&6 | |
30290 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
30291 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
30292 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
30293 | cat >conftest.$ac_ext <<_ACEOF | |
30294 | /* confdefs.h. */ | |
30295 | _ACEOF | |
30296 | cat confdefs.h >>conftest.$ac_ext | |
30297 | cat >>conftest.$ac_ext <<_ACEOF | |
30298 | /* end confdefs.h. */ | |
30299 | ||
30300 | int | |
30301 | main () | |
30302 | { | |
30303 | ||
30304 | ; | |
30305 | return 0; | |
30306 | } | |
30307 | _ACEOF | |
30308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30310 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30311 | ac_status=$? |
ac1cb8d3 VS |
30312 | grep -v '^ *+' conftest.er1 >conftest.err |
30313 | rm -f conftest.er1 | |
30314 | cat conftest.err >&5 | |
a848cd7e SC |
30315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30316 | (exit $ac_status); } && | |
6ebeb4c7 | 30317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30319 | (eval $ac_try) 2>&5 | |
30320 | ac_status=$? | |
30321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30322 | (exit $ac_status); }; } && | |
30323 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30325 | (eval $ac_try) 2>&5 | |
30326 | ac_status=$? | |
30327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30328 | (exit $ac_status); }; }; then | |
30329 | ||
ffa0583f | 30330 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 30331 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
30332 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
30333 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
30334 | ||
a848cd7e SC |
30335 | else |
30336 | echo "$as_me: failed program was:" >&5 | |
30337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30338 | ||
30339 | ||
30340 | echo "$as_me:$LINENO: result: no" >&5 | |
30341 | echo "${ECHO_T}no" >&6 | |
30342 | ||
30343 | fi | |
ac1cb8d3 VS |
30344 | rm -f conftest.err conftest.$ac_objext \ |
30345 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30346 | |
30347 | fi | |
ac1cb8d3 VS |
30348 | rm -f conftest.err conftest.$ac_objext \ |
30349 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30350 | LDFLAGS="$saveLdflags" |
30351 | else | |
a848cd7e | 30352 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 30353 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
30354 | fi |
30355 | ;; | |
30356 | ||
cfda0ea8 | 30357 | *-*-darwin* ) |
0caebc27 MW |
30358 | install_name_tool=`which install_name_tool` |
30359 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
30360 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
30361 | cat <<EOF >change-install-names | |
a848cd7e SC |
30362 | #!/bin/sh |
30363 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
30364 | inst_cmd="install_name_tool " | |
30365 | for i in \${libnames} ; do | |
30366 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
30367 | done | |
30368 | \${inst_cmd} \${3} | |
30369 | EOF | |
0caebc27 MW |
30370 | chmod +x change-install-names |
30371 | fi | |
a848cd7e SC |
30372 | ;; |
30373 | ||
30374 | *-*-cygwin* | *-*-mingw32* ) | |
30375 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
30376 | ;; | |
30377 | ||
81f90336 MW |
30378 | *-*-hpux* ) |
30379 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
30380 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
30381 | ;; | |
30382 | ||
a848cd7e | 30383 | esac |
ceec2216 | 30384 | |
ffa0583f RL |
30385 | if test $wxUSE_RPATH = "no"; then |
30386 | SAMPLES_RPATH_FLAG='' | |
30387 | SAMPLES_RPATH_POSTLINK='' | |
30388 | WXCONFIG_RPATH='' | |
30389 | fi | |
30390 | ||
30391 | SHARED=1 | |
30392 | ||
30393 | else | |
30394 | ||
ceec2216 RL |
30395 | config_linkage_component="-static" |
30396 | SHARED=0 | |
ffa0583f | 30397 | |
ceec2216 | 30398 | fi |
a848cd7e | 30399 | |
a848cd7e | 30400 | |
ceec2216 RL |
30401 | UNICODE=0 |
30402 | lib_unicode_suffix= | |
30403 | WX_CHARTYPE="ansi" | |
30404 | if test "$wxUSE_UNICODE" = "yes"; then | |
30405 | lib_unicode_suffix=u | |
30406 | WX_CHARTYPE="unicode" | |
30407 | UNICODE=1 | |
a848cd7e SC |
30408 | fi |
30409 | ||
ceec2216 RL |
30410 | lib_debug_suffix= |
30411 | WX_DEBUGTYPE="release" | |
30412 | DEBUG_FLAG=0 | |
30413 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
30414 | lib_debug_suffix=d | |
30415 | WX_DEBUGTYPE="debug" | |
30416 | DEBUG_FLAG=1 | |
30417 | fi | |
a848cd7e | 30418 | |
ceec2216 RL |
30419 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
30420 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 30421 | |
ceec2216 RL |
30422 | DEBUG_INFO=0 |
30423 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
30424 | DEBUG_INFO=1 | |
30425 | fi | |
a848cd7e | 30426 | |
ceec2216 | 30427 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 30428 | |
ceec2216 | 30429 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 30430 | |
ceec2216 | 30431 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 30432 | |
ceec2216 RL |
30433 | if test "$cross_compiling" = "yes"; then |
30434 | HOST_SUFFIX="-$host_alias" | |
30435 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
30436 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
30437 | fi |
30438 | ||
dd21ced8 | 30439 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
30440 | if test "${TOOLKIT_DIR}" = "os2"; then |
30441 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
30442 | else | |
30443 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
30444 | fi | |
ceec2216 RL |
30445 | |
30446 | ||
30447 | ||
1d1af5ea DE |
30448 | if test "$wxUSE_COCOA" = 1; then |
30449 | ||
30450 | ||
30451 | ac_ext=c | |
30452 | ac_cpp='$CPP $CPPFLAGS' | |
30453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30456 | ||
30457 | ac_ext=m | |
30458 | ||
30459 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
30460 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
30461 | cat >conftest.$ac_ext <<_ACEOF | |
30462 | /* confdefs.h. */ | |
30463 | _ACEOF | |
30464 | cat confdefs.h >>conftest.$ac_ext | |
30465 | cat >>conftest.$ac_ext <<_ACEOF | |
30466 | /* end confdefs.h. */ | |
30467 | #include <AppKit/NSEvent.h> | |
30468 | #include <CoreFoundation/CoreFoundation.h> | |
30469 | ||
30470 | int | |
30471 | main () | |
30472 | { | |
30473 | ||
30474 | ; | |
30475 | return 0; | |
30476 | } | |
30477 | _ACEOF | |
30478 | rm -f conftest.$ac_objext | |
30479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30480 | (eval $ac_compile) 2>conftest.er1 | |
30481 | ac_status=$? | |
30482 | grep -v '^ *+' conftest.er1 >conftest.err | |
30483 | rm -f conftest.er1 | |
30484 | cat conftest.err >&5 | |
30485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30486 | (exit $ac_status); } && | |
6ebeb4c7 | 30487 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
30488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30489 | (eval $ac_try) 2>&5 | |
30490 | ac_status=$? | |
30491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30492 | (exit $ac_status); }; } && | |
30493 | { ac_try='test -s conftest.$ac_objext' | |
30494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30495 | (eval $ac_try) 2>&5 | |
30496 | ac_status=$? | |
30497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30498 | (exit $ac_status); }; }; then | |
30499 | echo "$as_me:$LINENO: result: no" >&5 | |
30500 | echo "${ECHO_T}no" >&6 | |
30501 | else | |
30502 | echo "$as_me: failed program was:" >&5 | |
30503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30504 | ||
30505 | echo "$as_me:$LINENO: result: yes" >&5 | |
30506 | echo "${ECHO_T}yes" >&6 | |
30507 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
30508 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
30509 | cat >conftest.$ac_ext <<_ACEOF | |
30510 | /* confdefs.h. */ | |
30511 | _ACEOF | |
30512 | cat confdefs.h >>conftest.$ac_ext | |
30513 | cat >>conftest.$ac_ext <<_ACEOF | |
30514 | /* end confdefs.h. */ | |
30515 | #define __Point__ 1 | |
30516 | #include <AppKit/NSEvent.h> | |
30517 | #include <CoreFoundation/CoreFoundation.h> | |
30518 | ||
30519 | int | |
30520 | main () | |
30521 | { | |
30522 | ||
30523 | ; | |
30524 | return 0; | |
30525 | } | |
30526 | _ACEOF | |
30527 | rm -f conftest.$ac_objext | |
30528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30529 | (eval $ac_compile) 2>conftest.er1 | |
30530 | ac_status=$? | |
30531 | grep -v '^ *+' conftest.er1 >conftest.err | |
30532 | rm -f conftest.er1 | |
30533 | cat conftest.err >&5 | |
30534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30535 | (exit $ac_status); } && | |
6ebeb4c7 | 30536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
30537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30538 | (eval $ac_try) 2>&5 | |
30539 | ac_status=$? | |
30540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30541 | (exit $ac_status); }; } && | |
30542 | { ac_try='test -s conftest.$ac_objext' | |
30543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30544 | (eval $ac_try) 2>&5 | |
30545 | ac_status=$? | |
30546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30547 | (exit $ac_status); }; }; then | |
30548 | echo "$as_me:$LINENO: result: yes" >&5 | |
30549 | echo "${ECHO_T}yes" >&6 | |
30550 | cat >>confdefs.h <<\_ACEOF | |
30551 | #define __Point__ 1 | |
30552 | _ACEOF | |
30553 | ||
30554 | ||
30555 | else | |
30556 | echo "$as_me: failed program was:" >&5 | |
30557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30558 | ||
30559 | { { echo "$as_me:$LINENO: error: no | |
30560 | See \`config.log' for more details." >&5 | |
30561 | echo "$as_me: error: no | |
30562 | See \`config.log' for more details." >&2;} | |
30563 | { (exit 1); exit 1; }; } | |
30564 | ||
30565 | fi | |
30566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30567 | ||
30568 | fi | |
30569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30570 | ac_ext=c | |
30571 | ac_cpp='$CPP $CPPFLAGS' | |
30572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30575 | ||
30576 | fi | |
30577 | ||
a848cd7e | 30578 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
30579 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
30580 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 30581 | |
a848cd7e | 30582 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
30583 | |
30584 | # Extract the first word of "Rez", so it can be a program name with args. | |
30585 | set dummy Rez; ac_word=$2 | |
30586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30588 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
30589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30590 | else | |
30591 | if test -n "$RESCOMP"; then | |
30592 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
30593 | else | |
30594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30595 | for as_dir in $PATH | |
30596 | do | |
30597 | IFS=$as_save_IFS | |
30598 | test -z "$as_dir" && as_dir=. | |
30599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30600 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30601 | ac_cv_prog_RESCOMP="Rez" | |
30602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30603 | break 2 | |
30604 | fi | |
30605 | done | |
30606 | done | |
30607 | ||
30608 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
30609 | fi | |
30610 | fi | |
30611 | RESCOMP=$ac_cv_prog_RESCOMP | |
30612 | if test -n "$RESCOMP"; then | |
30613 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
30614 | echo "${ECHO_T}$RESCOMP" >&6 | |
30615 | else | |
30616 | echo "$as_me:$LINENO: result: no" >&5 | |
30617 | echo "${ECHO_T}no" >&6 | |
30618 | fi | |
30619 | ||
30620 | # Extract the first word of "DeRez", so it can be a program name with args. | |
30621 | set dummy DeRez; ac_word=$2 | |
30622 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30624 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
30625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30626 | else | |
30627 | if test -n "$DEREZ"; then | |
30628 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
30629 | else | |
30630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30631 | for as_dir in $PATH | |
30632 | do | |
30633 | IFS=$as_save_IFS | |
30634 | test -z "$as_dir" && as_dir=. | |
30635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30636 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30637 | ac_cv_prog_DEREZ="DeRez" | |
30638 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30639 | break 2 | |
30640 | fi | |
30641 | done | |
30642 | done | |
30643 | ||
30644 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
30645 | fi | |
30646 | fi | |
30647 | DEREZ=$ac_cv_prog_DEREZ | |
30648 | if test -n "$DEREZ"; then | |
30649 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
30650 | echo "${ECHO_T}$DEREZ" >&6 | |
30651 | else | |
30652 | echo "$as_me:$LINENO: result: no" >&5 | |
30653 | echo "${ECHO_T}no" >&6 | |
30654 | fi | |
30655 | ||
30656 | # Extract the first word of "SetFile", so it can be a program name with args. | |
30657 | set dummy SetFile; ac_word=$2 | |
30658 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30660 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
30661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30662 | else | |
30663 | if test -n "$SETFILE"; then | |
30664 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
30665 | else | |
30666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30667 | for as_dir in $PATH | |
30668 | do | |
30669 | IFS=$as_save_IFS | |
30670 | test -z "$as_dir" && as_dir=. | |
30671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30672 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30673 | ac_cv_prog_SETFILE="SetFile" | |
30674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30675 | break 2 | |
30676 | fi | |
30677 | done | |
30678 | done | |
30679 | ||
30680 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
30681 | fi | |
30682 | fi | |
30683 | SETFILE=$ac_cv_prog_SETFILE | |
30684 | if test -n "$SETFILE"; then | |
30685 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
30686 | echo "${ECHO_T}$SETFILE" >&6 | |
30687 | else | |
30688 | echo "$as_me:$LINENO: result: no" >&5 | |
30689 | echo "${ECHO_T}no" >&6 | |
30690 | fi | |
30691 | ||
30692 | ||
30693 | MACSETFILE="\$(SETFILE)" | |
30694 | ||
30695 | if test "$wxUSE_MAC" = 1; then | |
1a79f136 | 30696 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e | 30697 | |
1a79f136 | 30698 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e SC |
30699 | else |
30700 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
30701 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
30702 | fi | |
30703 | else | |
ffa0583f RL |
30704 | MACSETFILE="@true" |
30705 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
30706 | |
30707 | if test "$wxUSE_PM" = 1; then | |
30708 | MACRESCOMP="emxbind -ep" | |
30709 | else | |
ffa0583f | 30710 | MACRESCOMP="@true" |
a848cd7e SC |
30711 | fi |
30712 | fi | |
30713 | ||
30714 | ||
30715 | ||
30716 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
30717 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
30718 | if test "${ac_cv_type_mode_t+set}" = set; then | |
30719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30720 | else | |
30721 | cat >conftest.$ac_ext <<_ACEOF | |
30722 | /* confdefs.h. */ | |
30723 | _ACEOF | |
30724 | cat confdefs.h >>conftest.$ac_ext | |
30725 | cat >>conftest.$ac_ext <<_ACEOF | |
30726 | /* end confdefs.h. */ | |
30727 | $ac_includes_default | |
30728 | int | |
30729 | main () | |
30730 | { | |
30731 | if ((mode_t *) 0) | |
30732 | return 0; | |
30733 | if (sizeof (mode_t)) | |
30734 | return 0; | |
30735 | ; | |
30736 | return 0; | |
30737 | } | |
30738 | _ACEOF | |
30739 | rm -f conftest.$ac_objext | |
30740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30741 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30742 | ac_status=$? |
ac1cb8d3 VS |
30743 | grep -v '^ *+' conftest.er1 >conftest.err |
30744 | rm -f conftest.er1 | |
30745 | cat conftest.err >&5 | |
a848cd7e SC |
30746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30747 | (exit $ac_status); } && | |
6ebeb4c7 | 30748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30750 | (eval $ac_try) 2>&5 | |
30751 | ac_status=$? | |
30752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30753 | (exit $ac_status); }; } && | |
30754 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30756 | (eval $ac_try) 2>&5 | |
30757 | ac_status=$? | |
30758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30759 | (exit $ac_status); }; }; then | |
30760 | ac_cv_type_mode_t=yes | |
30761 | else | |
30762 | echo "$as_me: failed program was:" >&5 | |
30763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30764 | ||
30765 | ac_cv_type_mode_t=no | |
30766 | fi | |
ac1cb8d3 | 30767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30768 | fi |
30769 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
30770 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
30771 | if test $ac_cv_type_mode_t = yes; then | |
30772 | : | |
30773 | else | |
30774 | ||
30775 | cat >>confdefs.h <<_ACEOF | |
30776 | #define mode_t int | |
30777 | _ACEOF | |
30778 | ||
30779 | fi | |
30780 | ||
30781 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
30782 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
30783 | if test "${ac_cv_type_off_t+set}" = set; then | |
30784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30785 | else | |
30786 | cat >conftest.$ac_ext <<_ACEOF | |
30787 | /* confdefs.h. */ | |
30788 | _ACEOF | |
30789 | cat confdefs.h >>conftest.$ac_ext | |
30790 | cat >>conftest.$ac_ext <<_ACEOF | |
30791 | /* end confdefs.h. */ | |
30792 | $ac_includes_default | |
30793 | int | |
30794 | main () | |
30795 | { | |
30796 | if ((off_t *) 0) | |
30797 | return 0; | |
30798 | if (sizeof (off_t)) | |
30799 | return 0; | |
30800 | ; | |
30801 | return 0; | |
30802 | } | |
30803 | _ACEOF | |
30804 | rm -f conftest.$ac_objext | |
30805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30806 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30807 | ac_status=$? |
ac1cb8d3 VS |
30808 | grep -v '^ *+' conftest.er1 >conftest.err |
30809 | rm -f conftest.er1 | |
30810 | cat conftest.err >&5 | |
a848cd7e SC |
30811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30812 | (exit $ac_status); } && | |
6ebeb4c7 | 30813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30815 | (eval $ac_try) 2>&5 | |
30816 | ac_status=$? | |
30817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30818 | (exit $ac_status); }; } && | |
30819 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
30825 | ac_cv_type_off_t=yes | |
30826 | else | |
30827 | echo "$as_me: failed program was:" >&5 | |
30828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30829 | ||
30830 | ac_cv_type_off_t=no | |
30831 | fi | |
ac1cb8d3 | 30832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30833 | fi |
30834 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
30835 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
30836 | if test $ac_cv_type_off_t = yes; then | |
30837 | : | |
30838 | else | |
30839 | ||
30840 | cat >>confdefs.h <<_ACEOF | |
30841 | #define off_t long | |
30842 | _ACEOF | |
30843 | ||
30844 | fi | |
30845 | ||
30846 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
30847 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
30848 | if test "${ac_cv_type_pid_t+set}" = set; then | |
30849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30850 | else | |
30851 | cat >conftest.$ac_ext <<_ACEOF | |
30852 | /* confdefs.h. */ | |
30853 | _ACEOF | |
30854 | cat confdefs.h >>conftest.$ac_ext | |
30855 | cat >>conftest.$ac_ext <<_ACEOF | |
30856 | /* end confdefs.h. */ | |
30857 | $ac_includes_default | |
30858 | int | |
30859 | main () | |
30860 | { | |
30861 | if ((pid_t *) 0) | |
30862 | return 0; | |
30863 | if (sizeof (pid_t)) | |
30864 | return 0; | |
30865 | ; | |
30866 | return 0; | |
30867 | } | |
30868 | _ACEOF | |
30869 | rm -f conftest.$ac_objext | |
30870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30871 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30872 | ac_status=$? |
ac1cb8d3 VS |
30873 | grep -v '^ *+' conftest.er1 >conftest.err |
30874 | rm -f conftest.er1 | |
30875 | cat conftest.err >&5 | |
a848cd7e SC |
30876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30877 | (exit $ac_status); } && | |
6ebeb4c7 | 30878 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30880 | (eval $ac_try) 2>&5 | |
30881 | ac_status=$? | |
30882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30883 | (exit $ac_status); }; } && | |
30884 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30886 | (eval $ac_try) 2>&5 | |
30887 | ac_status=$? | |
30888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30889 | (exit $ac_status); }; }; then | |
30890 | ac_cv_type_pid_t=yes | |
30891 | else | |
30892 | echo "$as_me: failed program was:" >&5 | |
30893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30894 | ||
30895 | ac_cv_type_pid_t=no | |
30896 | fi | |
ac1cb8d3 | 30897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30898 | fi |
30899 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
30900 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
30901 | if test $ac_cv_type_pid_t = yes; then | |
30902 | : | |
30903 | else | |
30904 | ||
30905 | cat >>confdefs.h <<_ACEOF | |
30906 | #define pid_t int | |
30907 | _ACEOF | |
30908 | ||
30909 | fi | |
30910 | ||
30911 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
30912 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
30913 | if test "${ac_cv_type_size_t+set}" = set; then | |
30914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30915 | else | |
30916 | cat >conftest.$ac_ext <<_ACEOF | |
30917 | /* confdefs.h. */ | |
30918 | _ACEOF | |
30919 | cat confdefs.h >>conftest.$ac_ext | |
30920 | cat >>conftest.$ac_ext <<_ACEOF | |
30921 | /* end confdefs.h. */ | |
30922 | $ac_includes_default | |
30923 | int | |
30924 | main () | |
30925 | { | |
30926 | if ((size_t *) 0) | |
30927 | return 0; | |
30928 | if (sizeof (size_t)) | |
30929 | return 0; | |
30930 | ; | |
30931 | return 0; | |
30932 | } | |
30933 | _ACEOF | |
30934 | rm -f conftest.$ac_objext | |
30935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30936 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30937 | ac_status=$? |
ac1cb8d3 VS |
30938 | grep -v '^ *+' conftest.er1 >conftest.err |
30939 | rm -f conftest.er1 | |
30940 | cat conftest.err >&5 | |
a848cd7e SC |
30941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30942 | (exit $ac_status); } && | |
6ebeb4c7 | 30943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30945 | (eval $ac_try) 2>&5 | |
30946 | ac_status=$? | |
30947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30948 | (exit $ac_status); }; } && | |
30949 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30951 | (eval $ac_try) 2>&5 | |
30952 | ac_status=$? | |
30953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30954 | (exit $ac_status); }; }; then | |
30955 | ac_cv_type_size_t=yes | |
30956 | else | |
30957 | echo "$as_me: failed program was:" >&5 | |
30958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30959 | ||
30960 | ac_cv_type_size_t=no | |
30961 | fi | |
ac1cb8d3 | 30962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30963 | fi |
30964 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
30965 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
30966 | if test $ac_cv_type_size_t = yes; then | |
30967 | : | |
30968 | else | |
30969 | ||
30970 | cat >>confdefs.h <<_ACEOF | |
30971 | #define size_t unsigned | |
30972 | _ACEOF | |
30973 | ||
30974 | fi | |
30975 | ||
30976 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
30977 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
30978 | if test "${ac_cv_type_uid_t+set}" = set; then | |
30979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30980 | else | |
30981 | cat >conftest.$ac_ext <<_ACEOF | |
30982 | /* confdefs.h. */ | |
30983 | _ACEOF | |
30984 | cat confdefs.h >>conftest.$ac_ext | |
30985 | cat >>conftest.$ac_ext <<_ACEOF | |
30986 | /* end confdefs.h. */ | |
30987 | #include <sys/types.h> | |
30988 | ||
30989 | _ACEOF | |
30990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
30991 | $EGREP "uid_t" >/dev/null 2>&1; then | |
30992 | ac_cv_type_uid_t=yes | |
30993 | else | |
30994 | ac_cv_type_uid_t=no | |
30995 | fi | |
30996 | rm -f conftest* | |
30997 | ||
30998 | fi | |
30999 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
31000 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
31001 | if test $ac_cv_type_uid_t = no; then | |
31002 | ||
31003 | cat >>confdefs.h <<\_ACEOF | |
31004 | #define uid_t int | |
31005 | _ACEOF | |
31006 | ||
31007 | ||
31008 | cat >>confdefs.h <<\_ACEOF | |
31009 | #define gid_t int | |
31010 | _ACEOF | |
31011 | ||
31012 | fi | |
31013 | ||
31014 | ||
d51253e8 RL |
31015 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
31016 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
31017 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
31018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31019 | else | |
31020 | cat >conftest.$ac_ext <<_ACEOF | |
31021 | /* confdefs.h. */ | |
31022 | _ACEOF | |
31023 | cat confdefs.h >>conftest.$ac_ext | |
31024 | cat >>conftest.$ac_ext <<_ACEOF | |
31025 | /* end confdefs.h. */ | |
31026 | $ac_includes_default | |
31027 | int | |
31028 | main () | |
31029 | { | |
31030 | if ((ssize_t *) 0) | |
31031 | return 0; | |
31032 | if (sizeof (ssize_t)) | |
31033 | return 0; | |
31034 | ; | |
31035 | return 0; | |
31036 | } | |
31037 | _ACEOF | |
31038 | rm -f conftest.$ac_objext | |
31039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31040 | (eval $ac_compile) 2>conftest.er1 | |
31041 | ac_status=$? | |
31042 | grep -v '^ *+' conftest.er1 >conftest.err | |
31043 | rm -f conftest.er1 | |
31044 | cat conftest.err >&5 | |
31045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31046 | (exit $ac_status); } && | |
6ebeb4c7 | 31047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
31048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31049 | (eval $ac_try) 2>&5 | |
31050 | ac_status=$? | |
31051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31052 | (exit $ac_status); }; } && | |
31053 | { ac_try='test -s conftest.$ac_objext' | |
31054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31055 | (eval $ac_try) 2>&5 | |
31056 | ac_status=$? | |
31057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31058 | (exit $ac_status); }; }; then | |
31059 | ac_cv_type_ssize_t=yes | |
31060 | else | |
31061 | echo "$as_me: failed program was:" >&5 | |
31062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31063 | ||
31064 | ac_cv_type_ssize_t=no | |
31065 | fi | |
31066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31067 | fi | |
31068 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
31069 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
31070 | if test $ac_cv_type_ssize_t = yes; then | |
31071 | ||
31072 | cat >>confdefs.h <<_ACEOF | |
31073 | #define HAVE_SSIZE_T 1 | |
31074 | _ACEOF | |
31075 | ||
31076 | ||
31077 | fi | |
31078 | ||
31079 | ||
a848cd7e SC |
31080 | |
31081 | ||
31082 | ac_ext=cc | |
31083 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31084 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31085 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31086 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31087 | ||
31088 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
31089 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
31090 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
31091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31092 | else | |
31093 | ||
31094 | cat >conftest.$ac_ext <<_ACEOF | |
31095 | /* confdefs.h. */ | |
31096 | _ACEOF | |
31097 | cat confdefs.h >>conftest.$ac_ext | |
31098 | cat >>conftest.$ac_ext <<_ACEOF | |
31099 | /* end confdefs.h. */ | |
31100 | #include <stddef.h> | |
31101 | int | |
31102 | main () | |
31103 | { | |
31104 | ||
31105 | return 0; } | |
31106 | ||
31107 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
31108 | ||
31109 | int bar() { | |
31110 | ||
31111 | ; | |
31112 | return 0; | |
31113 | } | |
31114 | _ACEOF | |
31115 | rm -f conftest.$ac_objext | |
31116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31117 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31118 | ac_status=$? |
ac1cb8d3 VS |
31119 | grep -v '^ *+' conftest.er1 >conftest.err |
31120 | rm -f conftest.er1 | |
31121 | cat conftest.err >&5 | |
a848cd7e SC |
31122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31123 | (exit $ac_status); } && | |
6ebeb4c7 | 31124 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31126 | (eval $ac_try) 2>&5 | |
31127 | ac_status=$? | |
31128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31129 | (exit $ac_status); }; } && | |
31130 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31132 | (eval $ac_try) 2>&5 | |
31133 | ac_status=$? | |
31134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31135 | (exit $ac_status); }; }; then | |
31136 | wx_cv_size_t_is_uint=no | |
31137 | else | |
31138 | echo "$as_me: failed program was:" >&5 | |
31139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31140 | ||
31141 | wx_cv_size_t_is_uint=yes | |
31142 | ||
31143 | fi | |
ac1cb8d3 | 31144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31145 | |
31146 | ||
31147 | fi | |
31148 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
31149 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
31150 | ||
31151 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
31152 | cat >>confdefs.h <<\_ACEOF | |
31153 | #define wxSIZE_T_IS_UINT 1 | |
31154 | _ACEOF | |
31155 | ||
31156 | else | |
31157 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
31158 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
31159 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
31160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31161 | else | |
31162 | cat >conftest.$ac_ext <<_ACEOF | |
31163 | /* confdefs.h. */ | |
31164 | _ACEOF | |
31165 | cat confdefs.h >>conftest.$ac_ext | |
31166 | cat >>conftest.$ac_ext <<_ACEOF | |
31167 | /* end confdefs.h. */ | |
31168 | #include <stddef.h> | |
31169 | int | |
31170 | main () | |
31171 | { | |
31172 | ||
31173 | return 0; } | |
31174 | ||
31175 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
31176 | ||
31177 | int bar() { | |
31178 | ||
31179 | ; | |
31180 | return 0; | |
31181 | } | |
31182 | _ACEOF | |
31183 | rm -f conftest.$ac_objext | |
31184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31186 | ac_status=$? |
ac1cb8d3 VS |
31187 | grep -v '^ *+' conftest.er1 >conftest.err |
31188 | rm -f conftest.er1 | |
31189 | cat conftest.err >&5 | |
a848cd7e SC |
31190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31191 | (exit $ac_status); } && | |
6ebeb4c7 | 31192 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31194 | (eval $ac_try) 2>&5 | |
31195 | ac_status=$? | |
31196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31197 | (exit $ac_status); }; } && | |
31198 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31200 | (eval $ac_try) 2>&5 | |
31201 | ac_status=$? | |
31202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31203 | (exit $ac_status); }; }; then | |
31204 | wx_cv_size_t_is_ulong=no | |
31205 | else | |
31206 | echo "$as_me: failed program was:" >&5 | |
31207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31208 | ||
31209 | wx_cv_size_t_is_ulong=yes | |
31210 | ||
31211 | fi | |
ac1cb8d3 | 31212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31213 | |
31214 | fi | |
31215 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
31216 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
31217 | ||
31218 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
31219 | cat >>confdefs.h <<\_ACEOF | |
31220 | #define wxSIZE_T_IS_ULONG 1 | |
31221 | _ACEOF | |
31222 | ||
31223 | fi | |
31224 | fi | |
31225 | ||
31226 | ac_ext=c | |
31227 | ac_cpp='$CPP $CPPFLAGS' | |
31228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31231 | ||
31232 | ||
31233 | ||
31234 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
31235 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
31236 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
31237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31238 | else | |
31239 | ||
31240 | cat >conftest.$ac_ext <<_ACEOF | |
31241 | /* confdefs.h. */ | |
31242 | _ACEOF | |
31243 | cat confdefs.h >>conftest.$ac_ext | |
31244 | cat >>conftest.$ac_ext <<_ACEOF | |
31245 | /* end confdefs.h. */ | |
31246 | #include <pwd.h> | |
31247 | int | |
31248 | main () | |
31249 | { | |
31250 | ||
31251 | char *p; | |
31252 | struct passwd *pw; | |
31253 | p = pw->pw_gecos; | |
31254 | ||
31255 | ; | |
31256 | return 0; | |
31257 | } | |
31258 | _ACEOF | |
31259 | rm -f conftest.$ac_objext | |
31260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31261 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31262 | ac_status=$? |
ac1cb8d3 VS |
31263 | grep -v '^ *+' conftest.er1 >conftest.err |
31264 | rm -f conftest.er1 | |
31265 | cat conftest.err >&5 | |
a848cd7e SC |
31266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31267 | (exit $ac_status); } && | |
6ebeb4c7 | 31268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31270 | (eval $ac_try) 2>&5 | |
31271 | ac_status=$? | |
31272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31273 | (exit $ac_status); }; } && | |
31274 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31276 | (eval $ac_try) 2>&5 | |
31277 | ac_status=$? | |
31278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31279 | (exit $ac_status); }; }; then | |
31280 | ||
31281 | wx_cv_struct_pw_gecos=yes | |
31282 | ||
31283 | else | |
31284 | echo "$as_me: failed program was:" >&5 | |
31285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31286 | ||
31287 | ||
31288 | wx_cv_struct_pw_gecos=no | |
31289 | ||
31290 | ||
31291 | fi | |
ac1cb8d3 | 31292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31293 | |
31294 | ||
31295 | fi | |
31296 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
31297 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
31298 | ||
31299 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
31300 | cat >>confdefs.h <<\_ACEOF | |
31301 | #define HAVE_PW_GECOS 1 | |
31302 | _ACEOF | |
31303 | ||
31304 | fi | |
31305 | ||
31306 | ||
47a7e797 | 31307 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
31308 | cat >>confdefs.h <<\_ACEOF |
31309 | #define wxUSE_WCHAR_T 1 | |
31310 | _ACEOF | |
31311 | ||
31312 | ||
31313 | WCSLEN_FOUND=0 | |
31314 | WCHAR_LINK= | |
31315 | ||
31316 | for ac_func in wcslen | |
31317 | do | |
31318 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31319 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31320 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31321 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31323 | else | |
31324 | cat >conftest.$ac_ext <<_ACEOF | |
31325 | /* confdefs.h. */ | |
31326 | _ACEOF | |
31327 | cat confdefs.h >>conftest.$ac_ext | |
31328 | cat >>conftest.$ac_ext <<_ACEOF | |
31329 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31330 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31331 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31332 | #define $ac_func innocuous_$ac_func | |
31333 | ||
a848cd7e SC |
31334 | /* System header to define __stub macros and hopefully few prototypes, |
31335 | which can conflict with char $ac_func (); below. | |
31336 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31337 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31338 | |
a848cd7e SC |
31339 | #ifdef __STDC__ |
31340 | # include <limits.h> | |
31341 | #else | |
31342 | # include <assert.h> | |
31343 | #endif | |
ac1cb8d3 VS |
31344 | |
31345 | #undef $ac_func | |
31346 | ||
a848cd7e SC |
31347 | /* Override any gcc2 internal prototype to avoid an error. */ |
31348 | #ifdef __cplusplus | |
31349 | extern "C" | |
31350 | { | |
31351 | #endif | |
31352 | /* We use char because int might match the return type of a gcc2 | |
31353 | builtin and then its argument prototype would still apply. */ | |
31354 | char $ac_func (); | |
31355 | /* The GNU C library defines this for functions which it implements | |
31356 | to always fail with ENOSYS. Some functions are actually named | |
31357 | something starting with __ and the normal name is an alias. */ | |
31358 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31359 | choke me | |
31360 | #else | |
31361 | char (*f) () = $ac_func; | |
31362 | #endif | |
31363 | #ifdef __cplusplus | |
31364 | } | |
31365 | #endif | |
31366 | ||
31367 | int | |
31368 | main () | |
31369 | { | |
31370 | return f != $ac_func; | |
31371 | ; | |
31372 | return 0; | |
31373 | } | |
31374 | _ACEOF | |
31375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31377 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31378 | ac_status=$? |
ac1cb8d3 VS |
31379 | grep -v '^ *+' conftest.er1 >conftest.err |
31380 | rm -f conftest.er1 | |
31381 | cat conftest.err >&5 | |
a848cd7e SC |
31382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31383 | (exit $ac_status); } && | |
6ebeb4c7 | 31384 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31386 | (eval $ac_try) 2>&5 | |
31387 | ac_status=$? | |
31388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31389 | (exit $ac_status); }; } && | |
31390 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31392 | (eval $ac_try) 2>&5 | |
31393 | ac_status=$? | |
31394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31395 | (exit $ac_status); }; }; then | |
31396 | eval "$as_ac_var=yes" | |
31397 | else | |
31398 | echo "$as_me: failed program was:" >&5 | |
31399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31400 | ||
31401 | eval "$as_ac_var=no" | |
31402 | fi | |
ac1cb8d3 VS |
31403 | rm -f conftest.err conftest.$ac_objext \ |
31404 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31405 | fi |
31406 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31407 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31408 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31409 | cat >>confdefs.h <<_ACEOF | |
31410 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31411 | _ACEOF | |
31412 | WCSLEN_FOUND=1 | |
31413 | fi | |
31414 | done | |
31415 | ||
31416 | ||
31417 | if test "$WCSLEN_FOUND" = 0; then | |
31418 | if test "$TOOLKIT" = "MSW"; then | |
31419 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
31420 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
31421 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
31422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31423 | else | |
31424 | ac_check_lib_save_LIBS=$LIBS | |
31425 | LIBS="-lmsvcrt $LIBS" | |
31426 | cat >conftest.$ac_ext <<_ACEOF | |
31427 | /* confdefs.h. */ | |
31428 | _ACEOF | |
31429 | cat confdefs.h >>conftest.$ac_ext | |
31430 | cat >>conftest.$ac_ext <<_ACEOF | |
31431 | /* end confdefs.h. */ | |
31432 | ||
31433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31434 | #ifdef __cplusplus | |
31435 | extern "C" | |
31436 | #endif | |
31437 | /* We use char because int might match the return type of a gcc2 | |
31438 | builtin and then its argument prototype would still apply. */ | |
31439 | char wcslen (); | |
31440 | int | |
31441 | main () | |
31442 | { | |
31443 | wcslen (); | |
31444 | ; | |
31445 | return 0; | |
31446 | } | |
31447 | _ACEOF | |
31448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31450 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31451 | ac_status=$? |
ac1cb8d3 VS |
31452 | grep -v '^ *+' conftest.er1 >conftest.err |
31453 | rm -f conftest.er1 | |
31454 | cat conftest.err >&5 | |
a848cd7e SC |
31455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31456 | (exit $ac_status); } && | |
6ebeb4c7 | 31457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31459 | (eval $ac_try) 2>&5 | |
31460 | ac_status=$? | |
31461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31462 | (exit $ac_status); }; } && | |
31463 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31465 | (eval $ac_try) 2>&5 | |
31466 | ac_status=$? | |
31467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31468 | (exit $ac_status); }; }; then | |
31469 | ac_cv_lib_msvcrt_wcslen=yes | |
31470 | else | |
31471 | echo "$as_me: failed program was:" >&5 | |
31472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31473 | ||
31474 | ac_cv_lib_msvcrt_wcslen=no | |
31475 | fi | |
ac1cb8d3 VS |
31476 | rm -f conftest.err conftest.$ac_objext \ |
31477 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31478 | LIBS=$ac_check_lib_save_LIBS |
31479 | fi | |
31480 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
31481 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
31482 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
31483 | WCHAR_OK=1 | |
31484 | fi | |
31485 | ||
31486 | else | |
31487 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
31488 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
31489 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
31490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31491 | else | |
31492 | ac_check_lib_save_LIBS=$LIBS | |
31493 | LIBS="-lw $LIBS" | |
31494 | cat >conftest.$ac_ext <<_ACEOF | |
31495 | /* confdefs.h. */ | |
31496 | _ACEOF | |
31497 | cat confdefs.h >>conftest.$ac_ext | |
31498 | cat >>conftest.$ac_ext <<_ACEOF | |
31499 | /* end confdefs.h. */ | |
31500 | ||
31501 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31502 | #ifdef __cplusplus | |
31503 | extern "C" | |
31504 | #endif | |
31505 | /* We use char because int might match the return type of a gcc2 | |
31506 | builtin and then its argument prototype would still apply. */ | |
31507 | char wcslen (); | |
31508 | int | |
31509 | main () | |
31510 | { | |
31511 | wcslen (); | |
31512 | ; | |
31513 | return 0; | |
31514 | } | |
31515 | _ACEOF | |
31516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31518 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31519 | ac_status=$? |
ac1cb8d3 VS |
31520 | grep -v '^ *+' conftest.er1 >conftest.err |
31521 | rm -f conftest.er1 | |
31522 | cat conftest.err >&5 | |
a848cd7e SC |
31523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31524 | (exit $ac_status); } && | |
6ebeb4c7 | 31525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31527 | (eval $ac_try) 2>&5 | |
31528 | ac_status=$? | |
31529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31530 | (exit $ac_status); }; } && | |
31531 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31533 | (eval $ac_try) 2>&5 | |
31534 | ac_status=$? | |
31535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31536 | (exit $ac_status); }; }; then | |
31537 | ac_cv_lib_w_wcslen=yes | |
31538 | else | |
31539 | echo "$as_me: failed program was:" >&5 | |
31540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31541 | ||
31542 | ac_cv_lib_w_wcslen=no | |
31543 | fi | |
ac1cb8d3 VS |
31544 | rm -f conftest.err conftest.$ac_objext \ |
31545 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31546 | LIBS=$ac_check_lib_save_LIBS |
31547 | fi | |
31548 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
31549 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
31550 | if test $ac_cv_lib_w_wcslen = yes; then | |
31551 | ||
31552 | WCHAR_LINK=" -lw" | |
31553 | WCSLEN_FOUND=1 | |
31554 | ||
31555 | fi | |
31556 | ||
31557 | fi | |
31558 | fi | |
31559 | ||
31560 | if test "$WCSLEN_FOUND" = 1; then | |
31561 | cat >>confdefs.h <<\_ACEOF | |
31562 | #define HAVE_WCSLEN 1 | |
31563 | _ACEOF | |
31564 | ||
31565 | fi | |
31566 | ||
efdf6afe | 31567 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
473276a9 VS |
31568 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
31569 | fi | |
31570 | ||
efdf6afe VZ |
31571 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
31572 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
31573 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
31574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31575 | else | |
31576 | cat >conftest.$ac_ext <<_ACEOF | |
31577 | /* confdefs.h. */ | |
31578 | _ACEOF | |
31579 | cat confdefs.h >>conftest.$ac_ext | |
31580 | cat >>conftest.$ac_ext <<_ACEOF | |
31581 | /* end confdefs.h. */ | |
31582 | #include <wchar.h> | |
31583 | ||
31584 | int | |
31585 | main () | |
31586 | { | |
31587 | if ((mbstate_t *) 0) | |
31588 | return 0; | |
31589 | if (sizeof (mbstate_t)) | |
31590 | return 0; | |
31591 | ; | |
31592 | return 0; | |
31593 | } | |
31594 | _ACEOF | |
31595 | rm -f conftest.$ac_objext | |
31596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31597 | (eval $ac_compile) 2>conftest.er1 | |
31598 | ac_status=$? | |
31599 | grep -v '^ *+' conftest.er1 >conftest.err | |
31600 | rm -f conftest.er1 | |
31601 | cat conftest.err >&5 | |
31602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31603 | (exit $ac_status); } && | |
31604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
31605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31606 | (eval $ac_try) 2>&5 | |
31607 | ac_status=$? | |
31608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31609 | (exit $ac_status); }; } && | |
31610 | { ac_try='test -s conftest.$ac_objext' | |
31611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31612 | (eval $ac_try) 2>&5 | |
31613 | ac_status=$? | |
31614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31615 | (exit $ac_status); }; }; then | |
31616 | ac_cv_type_mbstate_t=yes | |
31617 | else | |
31618 | echo "$as_me: failed program was:" >&5 | |
31619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31620 | ||
31621 | ac_cv_type_mbstate_t=no | |
31622 | fi | |
31623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31624 | fi | |
31625 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
31626 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
31627 | if test $ac_cv_type_mbstate_t = yes; then | |
31628 | ||
31629 | cat >>confdefs.h <<_ACEOF | |
31630 | #define HAVE_MBSTATE_T 1 | |
31631 | _ACEOF | |
31632 | ||
a848cd7e SC |
31633 | |
31634 | for ac_func in wcsrtombs | |
31635 | do | |
31636 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31637 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31638 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31639 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31641 | else | |
31642 | cat >conftest.$ac_ext <<_ACEOF | |
31643 | /* confdefs.h. */ | |
31644 | _ACEOF | |
31645 | cat confdefs.h >>conftest.$ac_ext | |
31646 | cat >>conftest.$ac_ext <<_ACEOF | |
31647 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31648 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31649 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31650 | #define $ac_func innocuous_$ac_func | |
31651 | ||
a848cd7e SC |
31652 | /* System header to define __stub macros and hopefully few prototypes, |
31653 | which can conflict with char $ac_func (); below. | |
31654 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31655 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31656 | |
a848cd7e SC |
31657 | #ifdef __STDC__ |
31658 | # include <limits.h> | |
31659 | #else | |
31660 | # include <assert.h> | |
31661 | #endif | |
ac1cb8d3 VS |
31662 | |
31663 | #undef $ac_func | |
31664 | ||
a848cd7e SC |
31665 | /* Override any gcc2 internal prototype to avoid an error. */ |
31666 | #ifdef __cplusplus | |
31667 | extern "C" | |
31668 | { | |
31669 | #endif | |
31670 | /* We use char because int might match the return type of a gcc2 | |
31671 | builtin and then its argument prototype would still apply. */ | |
31672 | char $ac_func (); | |
31673 | /* The GNU C library defines this for functions which it implements | |
31674 | to always fail with ENOSYS. Some functions are actually named | |
31675 | something starting with __ and the normal name is an alias. */ | |
31676 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31677 | choke me | |
31678 | #else | |
31679 | char (*f) () = $ac_func; | |
31680 | #endif | |
31681 | #ifdef __cplusplus | |
31682 | } | |
31683 | #endif | |
31684 | ||
31685 | int | |
31686 | main () | |
31687 | { | |
31688 | return f != $ac_func; | |
31689 | ; | |
31690 | return 0; | |
31691 | } | |
31692 | _ACEOF | |
31693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31695 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31696 | ac_status=$? |
ac1cb8d3 VS |
31697 | grep -v '^ *+' conftest.er1 >conftest.err |
31698 | rm -f conftest.er1 | |
31699 | cat conftest.err >&5 | |
a848cd7e SC |
31700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31701 | (exit $ac_status); } && | |
6ebeb4c7 | 31702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31704 | (eval $ac_try) 2>&5 | |
31705 | ac_status=$? | |
31706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31707 | (exit $ac_status); }; } && | |
31708 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31710 | (eval $ac_try) 2>&5 | |
31711 | ac_status=$? | |
31712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31713 | (exit $ac_status); }; }; then | |
31714 | eval "$as_ac_var=yes" | |
31715 | else | |
31716 | echo "$as_me: failed program was:" >&5 | |
31717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31718 | ||
31719 | eval "$as_ac_var=no" | |
31720 | fi | |
ac1cb8d3 VS |
31721 | rm -f conftest.err conftest.$ac_objext \ |
31722 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31723 | fi |
31724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31725 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31726 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31727 | cat >>confdefs.h <<_ACEOF | |
31728 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31729 | _ACEOF | |
31730 | ||
31731 | fi | |
31732 | done | |
31733 | ||
efdf6afe VZ |
31734 | fi |
31735 | ||
a848cd7e SC |
31736 | else |
31737 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
31738 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
31739 | fi | |
31740 | ||
31741 | ||
31742 | ||
31743 | ac_ext=cc | |
31744 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31745 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31746 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31747 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31748 | ||
31749 | ||
31750 | ||
4a767dd5 VZ |
31751 | |
31752 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
31753 | do |
31754 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31755 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31756 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31757 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31759 | else | |
31760 | cat >conftest.$ac_ext <<_ACEOF | |
31761 | /* confdefs.h. */ | |
31762 | _ACEOF | |
31763 | cat confdefs.h >>conftest.$ac_ext | |
31764 | cat >>conftest.$ac_ext <<_ACEOF | |
31765 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31766 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31767 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31768 | #define $ac_func innocuous_$ac_func | |
31769 | ||
a848cd7e SC |
31770 | /* System header to define __stub macros and hopefully few prototypes, |
31771 | which can conflict with char $ac_func (); below. | |
31772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31773 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31774 | |
a848cd7e SC |
31775 | #ifdef __STDC__ |
31776 | # include <limits.h> | |
31777 | #else | |
31778 | # include <assert.h> | |
31779 | #endif | |
ac1cb8d3 VS |
31780 | |
31781 | #undef $ac_func | |
31782 | ||
a848cd7e SC |
31783 | /* Override any gcc2 internal prototype to avoid an error. */ |
31784 | #ifdef __cplusplus | |
31785 | extern "C" | |
31786 | { | |
31787 | #endif | |
31788 | /* We use char because int might match the return type of a gcc2 | |
31789 | builtin and then its argument prototype would still apply. */ | |
31790 | char $ac_func (); | |
31791 | /* The GNU C library defines this for functions which it implements | |
31792 | to always fail with ENOSYS. Some functions are actually named | |
31793 | something starting with __ and the normal name is an alias. */ | |
31794 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31795 | choke me | |
31796 | #else | |
31797 | char (*f) () = $ac_func; | |
31798 | #endif | |
31799 | #ifdef __cplusplus | |
31800 | } | |
31801 | #endif | |
31802 | ||
31803 | int | |
31804 | main () | |
31805 | { | |
31806 | return f != $ac_func; | |
31807 | ; | |
31808 | return 0; | |
31809 | } | |
31810 | _ACEOF | |
31811 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31813 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31814 | ac_status=$? |
ac1cb8d3 VS |
31815 | grep -v '^ *+' conftest.er1 >conftest.err |
31816 | rm -f conftest.er1 | |
31817 | cat conftest.err >&5 | |
a848cd7e SC |
31818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31819 | (exit $ac_status); } && | |
6ebeb4c7 | 31820 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31822 | (eval $ac_try) 2>&5 | |
31823 | ac_status=$? | |
31824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31825 | (exit $ac_status); }; } && | |
31826 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31828 | (eval $ac_try) 2>&5 | |
31829 | ac_status=$? | |
31830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31831 | (exit $ac_status); }; }; then | |
31832 | eval "$as_ac_var=yes" | |
31833 | else | |
31834 | echo "$as_me: failed program was:" >&5 | |
31835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31836 | ||
31837 | eval "$as_ac_var=no" | |
31838 | fi | |
ac1cb8d3 VS |
31839 | rm -f conftest.err conftest.$ac_objext \ |
31840 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31841 | fi |
31842 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31843 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31844 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31845 | cat >>confdefs.h <<_ACEOF | |
31846 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31847 | _ACEOF | |
31848 | ||
31849 | fi | |
31850 | done | |
31851 | ||
31852 | ||
31853 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
31854 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
31855 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
31856 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
31857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31858 | else | |
31859 | ||
efdf6afe | 31860 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
31861 | /* confdefs.h. */ |
31862 | _ACEOF | |
31863 | cat confdefs.h >>conftest.$ac_ext | |
31864 | cat >>conftest.$ac_ext <<_ACEOF | |
31865 | /* end confdefs.h. */ | |
31866 | ||
31867 | #include <stdio.h> | |
31868 | #include <stdarg.h> | |
efdf6afe VZ |
31869 | #ifdef __MSL__ |
31870 | #if __MSL__ >= 0x6000 | |
31871 | namespace std {} | |
31872 | using namespace std; | |
31873 | #endif | |
31874 | #endif | |
a848cd7e SC |
31875 | |
31876 | int | |
31877 | main () | |
31878 | { | |
31879 | ||
31880 | char *buf; | |
31881 | va_list ap; | |
62fa8b3a | 31882 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
31883 | |
31884 | ; | |
31885 | return 0; | |
31886 | } | |
31887 | _ACEOF | |
31888 | rm -f conftest.$ac_objext | |
31889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31890 | (eval $ac_compile) 2>conftest.er1 | |
31891 | ac_status=$? | |
31892 | grep -v '^ *+' conftest.er1 >conftest.err | |
31893 | rm -f conftest.er1 | |
31894 | cat conftest.err >&5 | |
31895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31896 | (exit $ac_status); } && | |
6ebeb4c7 | 31897 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
31898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31899 | (eval $ac_try) 2>&5 | |
31900 | ac_status=$? | |
31901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31902 | (exit $ac_status); }; } && | |
31903 | { ac_try='test -s conftest.$ac_objext' | |
31904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31905 | (eval $ac_try) 2>&5 | |
31906 | ac_status=$? | |
31907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31908 | (exit $ac_status); }; }; then | |
31909 | wx_cv_func_vsnprintf_decl=yes | |
31910 | else | |
31911 | echo "$as_me: failed program was:" >&5 | |
31912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31913 | ||
a848cd7e SC |
31914 | wx_cv_func_vsnprintf_decl=no |
31915 | ||
31916 | fi | |
ac1cb8d3 | 31917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31918 | |
31919 | ||
31920 | fi | |
31921 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
31922 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
31923 | ||
31924 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
31925 | cat >>confdefs.h <<\_ACEOF | |
31926 | #define HAVE_VSNPRINTF_DECL 1 | |
31927 | _ACEOF | |
31928 | ||
62fa8b3a MW |
31929 | |
31930 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
31931 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
31932 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
31933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31934 | else | |
31935 | ||
31936 | cat >conftest.$ac_ext <<_ACEOF | |
31937 | /* confdefs.h. */ | |
31938 | _ACEOF | |
31939 | cat confdefs.h >>conftest.$ac_ext | |
31940 | cat >>conftest.$ac_ext <<_ACEOF | |
31941 | /* end confdefs.h. */ | |
31942 | ||
31943 | #include <stdio.h> | |
31944 | #include <stdarg.h> | |
31945 | #ifdef __MSL__ | |
31946 | #if __MSL__ >= 0x6000 | |
31947 | namespace std {} | |
31948 | using namespace std; | |
31949 | #endif | |
31950 | #endif | |
31951 | ||
31952 | int | |
31953 | main () | |
31954 | { | |
31955 | ||
31956 | char *buf; | |
31957 | va_list ap; | |
31958 | const char *fmt = "%s"; | |
31959 | vsnprintf(buf, 10u, fmt, ap); | |
31960 | ||
31961 | ; | |
31962 | return 0; | |
31963 | } | |
31964 | _ACEOF | |
31965 | rm -f conftest.$ac_objext | |
31966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31967 | (eval $ac_compile) 2>conftest.er1 | |
31968 | ac_status=$? | |
31969 | grep -v '^ *+' conftest.er1 >conftest.err | |
31970 | rm -f conftest.er1 | |
31971 | cat conftest.err >&5 | |
31972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31973 | (exit $ac_status); } && | |
31974 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
31975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31976 | (eval $ac_try) 2>&5 | |
31977 | ac_status=$? | |
31978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31979 | (exit $ac_status); }; } && | |
31980 | { ac_try='test -s conftest.$ac_objext' | |
31981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31982 | (eval $ac_try) 2>&5 | |
31983 | ac_status=$? | |
31984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31985 | (exit $ac_status); }; }; then | |
31986 | wx_cv_func_broken_vsnprintf_decl=no | |
31987 | else | |
31988 | echo "$as_me: failed program was:" >&5 | |
31989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31990 | ||
31991 | wx_cv_func_broken_vsnprintf_decl=yes | |
31992 | ||
31993 | fi | |
31994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31995 | ||
31996 | ||
31997 | fi | |
31998 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
31999 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
32000 | ||
32001 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
32002 | cat >>confdefs.h <<\_ACEOF | |
32003 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
32004 | _ACEOF | |
32005 | ||
32006 | fi | |
a848cd7e SC |
32007 | fi |
32008 | fi | |
32009 | ||
4a767dd5 VZ |
32010 | if test "$ac_cv_func_snprintf" = "yes"; then |
32011 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
32012 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
32013 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
32014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32015 | else | |
32016 | ||
32017 | cat >conftest.$ac_ext <<_ACEOF | |
32018 | /* confdefs.h. */ | |
32019 | _ACEOF | |
32020 | cat confdefs.h >>conftest.$ac_ext | |
32021 | cat >>conftest.$ac_ext <<_ACEOF | |
32022 | /* end confdefs.h. */ | |
32023 | ||
32024 | #include <stdio.h> | |
32025 | #include <stdarg.h> | |
32026 | #ifdef __MSL__ | |
32027 | #if __MSL__ >= 0x6000 | |
32028 | namespace std {} | |
32029 | using namespace std; | |
32030 | #endif | |
32031 | #endif | |
32032 | ||
32033 | int | |
32034 | main () | |
32035 | { | |
32036 | ||
32037 | char *buf; | |
62fa8b3a | 32038 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
32039 | |
32040 | ; | |
32041 | return 0; | |
32042 | } | |
32043 | _ACEOF | |
32044 | rm -f conftest.$ac_objext | |
32045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32046 | (eval $ac_compile) 2>conftest.er1 | |
32047 | ac_status=$? | |
32048 | grep -v '^ *+' conftest.er1 >conftest.err | |
32049 | rm -f conftest.er1 | |
32050 | cat conftest.err >&5 | |
32051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32052 | (exit $ac_status); } && | |
32053 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32055 | (eval $ac_try) 2>&5 | |
32056 | ac_status=$? | |
32057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32058 | (exit $ac_status); }; } && | |
32059 | { ac_try='test -s conftest.$ac_objext' | |
32060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32061 | (eval $ac_try) 2>&5 | |
32062 | ac_status=$? | |
32063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32064 | (exit $ac_status); }; }; then | |
32065 | wx_cv_func_snprintf_decl=yes | |
32066 | else | |
32067 | echo "$as_me: failed program was:" >&5 | |
32068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32069 | ||
32070 | wx_cv_func_snprintf_decl=no | |
32071 | ||
32072 | fi | |
32073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32074 | ||
32075 | ||
32076 | fi | |
32077 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
32078 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
32079 | ||
32080 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
32081 | cat >>confdefs.h <<\_ACEOF | |
32082 | #define HAVE_SNPRINTF_DECL 1 | |
32083 | _ACEOF | |
32084 | ||
62fa8b3a MW |
32085 | |
32086 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
32087 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
32088 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
32089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32090 | else | |
32091 | ||
32092 | cat >conftest.$ac_ext <<_ACEOF | |
32093 | /* confdefs.h. */ | |
32094 | _ACEOF | |
32095 | cat confdefs.h >>conftest.$ac_ext | |
32096 | cat >>conftest.$ac_ext <<_ACEOF | |
32097 | /* end confdefs.h. */ | |
32098 | ||
32099 | #include <stdio.h> | |
32100 | #include <stdarg.h> | |
32101 | #ifdef __MSL__ | |
32102 | #if __MSL__ >= 0x6000 | |
32103 | namespace std {} | |
32104 | using namespace std; | |
32105 | #endif | |
32106 | #endif | |
32107 | ||
32108 | int | |
32109 | main () | |
32110 | { | |
32111 | ||
32112 | char *buf; | |
32113 | const char *fmt = "%s"; | |
32114 | snprintf(buf, 10u, fmt, "wx"); | |
32115 | ||
32116 | ; | |
32117 | return 0; | |
32118 | } | |
32119 | _ACEOF | |
32120 | rm -f conftest.$ac_objext | |
32121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32122 | (eval $ac_compile) 2>conftest.er1 | |
32123 | ac_status=$? | |
32124 | grep -v '^ *+' conftest.er1 >conftest.err | |
32125 | rm -f conftest.er1 | |
32126 | cat conftest.err >&5 | |
32127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32128 | (exit $ac_status); } && | |
32129 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32131 | (eval $ac_try) 2>&5 | |
32132 | ac_status=$? | |
32133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32134 | (exit $ac_status); }; } && | |
32135 | { ac_try='test -s conftest.$ac_objext' | |
32136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32137 | (eval $ac_try) 2>&5 | |
32138 | ac_status=$? | |
32139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32140 | (exit $ac_status); }; }; then | |
32141 | wx_cv_func_broken_snprintf_decl=no | |
32142 | else | |
32143 | echo "$as_me: failed program was:" >&5 | |
32144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32145 | ||
32146 | wx_cv_func_broken_snprintf_decl=yes | |
32147 | ||
32148 | fi | |
32149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32150 | ||
32151 | ||
32152 | fi | |
32153 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
32154 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
32155 | ||
32156 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
32157 | cat >>confdefs.h <<\_ACEOF | |
32158 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
32159 | _ACEOF | |
32160 | ||
32161 | fi | |
4a767dd5 VZ |
32162 | fi |
32163 | fi | |
32164 | ||
a848cd7e SC |
32165 | if test "$wxUSE_UNICODE" = yes; then |
32166 | ||
32167 | ||
32168 | ||
fbe47c7b VS |
32169 | |
32170 | ||
32171 | ||
32172 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
32173 | do |
32174 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32175 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32176 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32177 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32179 | else | |
32180 | cat >conftest.$ac_ext <<_ACEOF | |
32181 | /* confdefs.h. */ | |
32182 | _ACEOF | |
32183 | cat confdefs.h >>conftest.$ac_ext | |
32184 | cat >>conftest.$ac_ext <<_ACEOF | |
32185 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32186 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32187 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32188 | #define $ac_func innocuous_$ac_func | |
32189 | ||
a848cd7e SC |
32190 | /* System header to define __stub macros and hopefully few prototypes, |
32191 | which can conflict with char $ac_func (); below. | |
32192 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32193 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32194 | |
a848cd7e SC |
32195 | #ifdef __STDC__ |
32196 | # include <limits.h> | |
32197 | #else | |
32198 | # include <assert.h> | |
32199 | #endif | |
ac1cb8d3 VS |
32200 | |
32201 | #undef $ac_func | |
32202 | ||
a848cd7e SC |
32203 | /* Override any gcc2 internal prototype to avoid an error. */ |
32204 | #ifdef __cplusplus | |
32205 | extern "C" | |
32206 | { | |
32207 | #endif | |
32208 | /* We use char because int might match the return type of a gcc2 | |
32209 | builtin and then its argument prototype would still apply. */ | |
32210 | char $ac_func (); | |
32211 | /* The GNU C library defines this for functions which it implements | |
32212 | to always fail with ENOSYS. Some functions are actually named | |
32213 | something starting with __ and the normal name is an alias. */ | |
32214 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32215 | choke me | |
32216 | #else | |
32217 | char (*f) () = $ac_func; | |
32218 | #endif | |
32219 | #ifdef __cplusplus | |
32220 | } | |
32221 | #endif | |
32222 | ||
32223 | int | |
32224 | main () | |
32225 | { | |
32226 | return f != $ac_func; | |
32227 | ; | |
32228 | return 0; | |
32229 | } | |
32230 | _ACEOF | |
32231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32233 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32234 | ac_status=$? |
ac1cb8d3 VS |
32235 | grep -v '^ *+' conftest.er1 >conftest.err |
32236 | rm -f conftest.er1 | |
32237 | cat conftest.err >&5 | |
a848cd7e SC |
32238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32239 | (exit $ac_status); } && | |
6ebeb4c7 | 32240 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32242 | (eval $ac_try) 2>&5 | |
32243 | ac_status=$? | |
32244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32245 | (exit $ac_status); }; } && | |
32246 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32248 | (eval $ac_try) 2>&5 | |
32249 | ac_status=$? | |
32250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32251 | (exit $ac_status); }; }; then | |
32252 | eval "$as_ac_var=yes" | |
32253 | else | |
32254 | echo "$as_me: failed program was:" >&5 | |
32255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32256 | ||
32257 | eval "$as_ac_var=no" | |
32258 | fi | |
ac1cb8d3 VS |
32259 | rm -f conftest.err conftest.$ac_objext \ |
32260 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32261 | fi |
32262 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32263 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32264 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32265 | cat >>confdefs.h <<_ACEOF | |
32266 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32267 | _ACEOF | |
32268 | ||
32269 | fi | |
32270 | done | |
32271 | ||
32272 | ||
32273 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
32274 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
32275 | cat >conftest.$ac_ext <<_ACEOF | |
32276 | /* confdefs.h. */ | |
32277 | _ACEOF | |
32278 | cat confdefs.h >>conftest.$ac_ext | |
32279 | cat >>conftest.$ac_ext <<_ACEOF | |
32280 | /* end confdefs.h. */ | |
32281 | #include <wchar.h> | |
32282 | int | |
32283 | main () | |
32284 | { | |
32285 | &_vsnwprintf; | |
32286 | ; | |
32287 | return 0; | |
32288 | } | |
32289 | _ACEOF | |
32290 | rm -f conftest.$ac_objext | |
32291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32292 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32293 | ac_status=$? |
ac1cb8d3 VS |
32294 | grep -v '^ *+' conftest.er1 >conftest.err |
32295 | rm -f conftest.er1 | |
32296 | cat conftest.err >&5 | |
a848cd7e SC |
32297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32298 | (exit $ac_status); } && | |
6ebeb4c7 | 32299 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32301 | (eval $ac_try) 2>&5 | |
32302 | ac_status=$? | |
32303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32304 | (exit $ac_status); }; } && | |
32305 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32307 | (eval $ac_try) 2>&5 | |
32308 | ac_status=$? | |
32309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32310 | (exit $ac_status); }; }; then | |
32311 | echo "$as_me:$LINENO: result: yes" >&5 | |
32312 | echo "${ECHO_T}yes" >&6 | |
32313 | cat >>confdefs.h <<\_ACEOF | |
32314 | #define HAVE__VSNWPRINTF 1 | |
32315 | _ACEOF | |
32316 | ||
32317 | else | |
32318 | echo "$as_me: failed program was:" >&5 | |
32319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32320 | ||
32321 | echo "$as_me:$LINENO: result: no" >&5 | |
32322 | echo "${ECHO_T}no" >&6 | |
32323 | fi | |
ac1cb8d3 | 32324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
32325 | fi |
32326 | ||
32327 | ac_ext=c | |
32328 | ac_cpp='$CPP $CPPFLAGS' | |
32329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32332 | ||
32333 | ||
6ebeb4c7 VZ |
32334 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
32335 | ||
32336 | for ac_func in fnmatch | |
32337 | do | |
32338 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32339 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32340 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32341 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32343 | else | |
32344 | cat >conftest.$ac_ext <<_ACEOF | |
32345 | /* confdefs.h. */ | |
32346 | _ACEOF | |
32347 | cat confdefs.h >>conftest.$ac_ext | |
32348 | cat >>conftest.$ac_ext <<_ACEOF | |
32349 | /* end confdefs.h. */ | |
32350 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
32351 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32352 | #define $ac_func innocuous_$ac_func | |
32353 | ||
32354 | /* System header to define __stub macros and hopefully few prototypes, | |
32355 | which can conflict with char $ac_func (); below. | |
32356 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32357 | <limits.h> exists even on freestanding compilers. */ | |
32358 | ||
32359 | #ifdef __STDC__ | |
32360 | # include <limits.h> | |
32361 | #else | |
32362 | # include <assert.h> | |
32363 | #endif | |
32364 | ||
32365 | #undef $ac_func | |
32366 | ||
32367 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32368 | #ifdef __cplusplus | |
32369 | extern "C" | |
32370 | { | |
32371 | #endif | |
32372 | /* We use char because int might match the return type of a gcc2 | |
32373 | builtin and then its argument prototype would still apply. */ | |
32374 | char $ac_func (); | |
32375 | /* The GNU C library defines this for functions which it implements | |
32376 | to always fail with ENOSYS. Some functions are actually named | |
32377 | something starting with __ and the normal name is an alias. */ | |
32378 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32379 | choke me | |
32380 | #else | |
32381 | char (*f) () = $ac_func; | |
32382 | #endif | |
32383 | #ifdef __cplusplus | |
32384 | } | |
32385 | #endif | |
32386 | ||
32387 | int | |
32388 | main () | |
32389 | { | |
32390 | return f != $ac_func; | |
32391 | ; | |
32392 | return 0; | |
32393 | } | |
32394 | _ACEOF | |
32395 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32397 | (eval $ac_link) 2>conftest.er1 | |
32398 | ac_status=$? | |
32399 | grep -v '^ *+' conftest.er1 >conftest.err | |
32400 | rm -f conftest.er1 | |
32401 | cat conftest.err >&5 | |
32402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32403 | (exit $ac_status); } && | |
32404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
32405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32406 | (eval $ac_try) 2>&5 | |
32407 | ac_status=$? | |
32408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32409 | (exit $ac_status); }; } && | |
32410 | { ac_try='test -s conftest$ac_exeext' | |
32411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32412 | (eval $ac_try) 2>&5 | |
32413 | ac_status=$? | |
32414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32415 | (exit $ac_status); }; }; then | |
32416 | eval "$as_ac_var=yes" | |
32417 | else | |
32418 | echo "$as_me: failed program was:" >&5 | |
32419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32420 | ||
32421 | eval "$as_ac_var=no" | |
32422 | fi | |
32423 | rm -f conftest.err conftest.$ac_objext \ | |
32424 | conftest$ac_exeext conftest.$ac_ext | |
32425 | fi | |
32426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32427 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32428 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32429 | cat >>confdefs.h <<_ACEOF | |
32430 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32431 | _ACEOF | |
32432 | ||
32433 | fi | |
32434 | done | |
32435 | ||
32436 | fi | |
32437 | ||
32438 | if test "$wxUSE_FILE" = "yes"; then | |
32439 | ||
32440 | for ac_func in fsync | |
32441 | do | |
32442 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32443 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32444 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32445 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32447 | else | |
32448 | cat >conftest.$ac_ext <<_ACEOF | |
32449 | /* confdefs.h. */ | |
32450 | _ACEOF | |
32451 | cat confdefs.h >>conftest.$ac_ext | |
32452 | cat >>conftest.$ac_ext <<_ACEOF | |
32453 | /* end confdefs.h. */ | |
32454 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
32455 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32456 | #define $ac_func innocuous_$ac_func | |
32457 | ||
32458 | /* System header to define __stub macros and hopefully few prototypes, | |
32459 | which can conflict with char $ac_func (); below. | |
32460 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32461 | <limits.h> exists even on freestanding compilers. */ | |
32462 | ||
32463 | #ifdef __STDC__ | |
32464 | # include <limits.h> | |
32465 | #else | |
32466 | # include <assert.h> | |
32467 | #endif | |
32468 | ||
32469 | #undef $ac_func | |
32470 | ||
32471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32472 | #ifdef __cplusplus | |
32473 | extern "C" | |
32474 | { | |
32475 | #endif | |
32476 | /* We use char because int might match the return type of a gcc2 | |
32477 | builtin and then its argument prototype would still apply. */ | |
32478 | char $ac_func (); | |
32479 | /* The GNU C library defines this for functions which it implements | |
32480 | to always fail with ENOSYS. Some functions are actually named | |
32481 | something starting with __ and the normal name is an alias. */ | |
32482 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32483 | choke me | |
32484 | #else | |
32485 | char (*f) () = $ac_func; | |
32486 | #endif | |
32487 | #ifdef __cplusplus | |
32488 | } | |
32489 | #endif | |
32490 | ||
32491 | int | |
32492 | main () | |
32493 | { | |
32494 | return f != $ac_func; | |
32495 | ; | |
32496 | return 0; | |
32497 | } | |
32498 | _ACEOF | |
32499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32501 | (eval $ac_link) 2>conftest.er1 | |
32502 | ac_status=$? | |
32503 | grep -v '^ *+' conftest.er1 >conftest.err | |
32504 | rm -f conftest.er1 | |
32505 | cat conftest.err >&5 | |
32506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32507 | (exit $ac_status); } && | |
32508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
32509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32510 | (eval $ac_try) 2>&5 | |
32511 | ac_status=$? | |
32512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32513 | (exit $ac_status); }; } && | |
32514 | { ac_try='test -s conftest$ac_exeext' | |
32515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32516 | (eval $ac_try) 2>&5 | |
32517 | ac_status=$? | |
32518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32519 | (exit $ac_status); }; }; then | |
32520 | eval "$as_ac_var=yes" | |
32521 | else | |
32522 | echo "$as_me: failed program was:" >&5 | |
32523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32524 | ||
32525 | eval "$as_ac_var=no" | |
32526 | fi | |
32527 | rm -f conftest.err conftest.$ac_objext \ | |
32528 | conftest$ac_exeext conftest.$ac_ext | |
32529 | fi | |
32530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32531 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32532 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32533 | cat >>confdefs.h <<_ACEOF | |
32534 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32535 | _ACEOF | |
32536 | ||
32537 | fi | |
32538 | done | |
32539 | ||
32540 | fi | |
a848cd7e SC |
32541 | |
32542 | ||
32543 | if test "$TOOLKIT" != "MSW"; then | |
32544 | ||
32545 | ||
32546 | ||
32547 | ||
32548 | ac_ext=cc | |
32549 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32550 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32551 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32552 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32553 | ||
32554 | ||
32555 | ||
32556 | ||
32557 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
32558 | if test "${with_libiconv_prefix+set}" = set; then | |
32559 | withval="$with_libiconv_prefix" | |
32560 | ||
32561 | for dir in `echo "$withval" | tr : ' '`; do | |
32562 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
32563 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
32564 | done | |
32565 | ||
32566 | fi; | |
32567 | ||
32568 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
32569 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
32570 | if test "${am_cv_func_iconv+set}" = set; then | |
32571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32572 | else | |
32573 | ||
32574 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
32575 | am_cv_lib_iconv=no | |
32576 | cat >conftest.$ac_ext <<_ACEOF | |
32577 | /* confdefs.h. */ | |
32578 | _ACEOF | |
32579 | cat confdefs.h >>conftest.$ac_ext | |
32580 | cat >>conftest.$ac_ext <<_ACEOF | |
32581 | /* end confdefs.h. */ | |
32582 | #include <stdlib.h> | |
32583 | #include <iconv.h> | |
32584 | int | |
32585 | main () | |
32586 | { | |
32587 | iconv_t cd = iconv_open("",""); | |
32588 | iconv(cd,NULL,NULL,NULL,NULL); | |
32589 | iconv_close(cd); | |
32590 | ; | |
32591 | return 0; | |
32592 | } | |
32593 | _ACEOF | |
32594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32596 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32597 | ac_status=$? |
ac1cb8d3 VS |
32598 | grep -v '^ *+' conftest.er1 >conftest.err |
32599 | rm -f conftest.er1 | |
32600 | cat conftest.err >&5 | |
a848cd7e SC |
32601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32602 | (exit $ac_status); } && | |
6ebeb4c7 | 32603 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32605 | (eval $ac_try) 2>&5 | |
32606 | ac_status=$? | |
32607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32608 | (exit $ac_status); }; } && | |
32609 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32611 | (eval $ac_try) 2>&5 | |
32612 | ac_status=$? | |
32613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32614 | (exit $ac_status); }; }; then | |
32615 | am_cv_func_iconv=yes | |
32616 | else | |
32617 | echo "$as_me: failed program was:" >&5 | |
32618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32619 | ||
32620 | fi | |
ac1cb8d3 VS |
32621 | rm -f conftest.err conftest.$ac_objext \ |
32622 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32623 | if test "$am_cv_func_iconv" != yes; then |
32624 | am_save_LIBS="$LIBS" | |
32625 | LIBS="$LIBS -liconv" | |
32626 | cat >conftest.$ac_ext <<_ACEOF | |
32627 | /* confdefs.h. */ | |
32628 | _ACEOF | |
32629 | cat confdefs.h >>conftest.$ac_ext | |
32630 | cat >>conftest.$ac_ext <<_ACEOF | |
32631 | /* end confdefs.h. */ | |
32632 | #include <stdlib.h> | |
32633 | #include <iconv.h> | |
32634 | int | |
32635 | main () | |
32636 | { | |
32637 | iconv_t cd = iconv_open("",""); | |
32638 | iconv(cd,NULL,NULL,NULL,NULL); | |
32639 | iconv_close(cd); | |
32640 | ; | |
32641 | return 0; | |
32642 | } | |
32643 | _ACEOF | |
32644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32646 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32647 | ac_status=$? |
ac1cb8d3 VS |
32648 | grep -v '^ *+' conftest.er1 >conftest.err |
32649 | rm -f conftest.er1 | |
32650 | cat conftest.err >&5 | |
a848cd7e SC |
32651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32652 | (exit $ac_status); } && | |
6ebeb4c7 | 32653 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32655 | (eval $ac_try) 2>&5 | |
32656 | ac_status=$? | |
32657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32658 | (exit $ac_status); }; } && | |
32659 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32661 | (eval $ac_try) 2>&5 | |
32662 | ac_status=$? | |
32663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32664 | (exit $ac_status); }; }; then | |
32665 | am_cv_lib_iconv=yes | |
32666 | am_cv_func_iconv=yes | |
32667 | else | |
32668 | echo "$as_me: failed program was:" >&5 | |
32669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32670 | ||
32671 | fi | |
ac1cb8d3 VS |
32672 | rm -f conftest.err conftest.$ac_objext \ |
32673 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32674 | LIBS="$am_save_LIBS" |
32675 | fi | |
32676 | ||
32677 | fi | |
32678 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
32679 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
32680 | if test "$am_cv_func_iconv" = yes; then | |
32681 | ||
32682 | cat >>confdefs.h <<\_ACEOF | |
32683 | #define HAVE_ICONV 1 | |
32684 | _ACEOF | |
32685 | ||
32686 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
32687 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
32688 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
32689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32690 | else | |
32691 | cat >conftest.$ac_ext <<_ACEOF | |
32692 | /* confdefs.h. */ | |
32693 | _ACEOF | |
32694 | cat confdefs.h >>conftest.$ac_ext | |
32695 | cat >>conftest.$ac_ext <<_ACEOF | |
32696 | /* end confdefs.h. */ | |
32697 | ||
32698 | #include <stdlib.h> | |
32699 | #include <iconv.h> | |
32700 | extern | |
32701 | #ifdef __cplusplus | |
32702 | "C" | |
32703 | #endif | |
32704 | #if defined(__STDC__) || defined(__cplusplus) | |
32705 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
32706 | #else | |
32707 | size_t iconv(); | |
32708 | #endif | |
32709 | ||
32710 | int | |
32711 | main () | |
32712 | { | |
32713 | ||
32714 | ; | |
32715 | return 0; | |
32716 | } | |
32717 | _ACEOF | |
32718 | rm -f conftest.$ac_objext | |
32719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32720 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32721 | ac_status=$? |
ac1cb8d3 VS |
32722 | grep -v '^ *+' conftest.er1 >conftest.err |
32723 | rm -f conftest.er1 | |
32724 | cat conftest.err >&5 | |
a848cd7e SC |
32725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32726 | (exit $ac_status); } && | |
6ebeb4c7 | 32727 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32729 | (eval $ac_try) 2>&5 | |
32730 | ac_status=$? | |
32731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32732 | (exit $ac_status); }; } && | |
32733 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32735 | (eval $ac_try) 2>&5 | |
32736 | ac_status=$? | |
32737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32738 | (exit $ac_status); }; }; then | |
32739 | wx_cv_func_iconv_const="no" | |
32740 | else | |
32741 | echo "$as_me: failed program was:" >&5 | |
32742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32743 | ||
32744 | wx_cv_func_iconv_const="yes" | |
32745 | ||
32746 | fi | |
ac1cb8d3 | 32747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32748 | |
32749 | fi | |
32750 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
32751 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
32752 | ||
32753 | iconv_const= | |
32754 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
32755 | iconv_const="const" | |
32756 | fi | |
32757 | ||
32758 | ||
32759 | cat >>confdefs.h <<_ACEOF | |
32760 | #define ICONV_CONST $iconv_const | |
32761 | _ACEOF | |
32762 | ||
32763 | fi | |
32764 | LIBICONV= | |
32765 | if test "$am_cv_lib_iconv" = yes; then | |
32766 | LIBICONV="-liconv" | |
32767 | fi | |
32768 | ||
32769 | ||
32770 | LIBS="$LIBICONV $LIBS" | |
32771 | ac_ext=c | |
32772 | ac_cpp='$CPP $CPPFLAGS' | |
32773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32776 | ||
32777 | ||
32778 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
32779 | ||
32780 | for ac_func in sigaction | |
32781 | do | |
32782 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32783 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32784 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32785 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32787 | else | |
32788 | cat >conftest.$ac_ext <<_ACEOF | |
32789 | /* confdefs.h. */ | |
32790 | _ACEOF | |
32791 | cat confdefs.h >>conftest.$ac_ext | |
32792 | cat >>conftest.$ac_ext <<_ACEOF | |
32793 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32794 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32795 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32796 | #define $ac_func innocuous_$ac_func | |
32797 | ||
a848cd7e SC |
32798 | /* System header to define __stub macros and hopefully few prototypes, |
32799 | which can conflict with char $ac_func (); below. | |
32800 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32801 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32802 | |
a848cd7e SC |
32803 | #ifdef __STDC__ |
32804 | # include <limits.h> | |
32805 | #else | |
32806 | # include <assert.h> | |
32807 | #endif | |
ac1cb8d3 VS |
32808 | |
32809 | #undef $ac_func | |
32810 | ||
a848cd7e SC |
32811 | /* Override any gcc2 internal prototype to avoid an error. */ |
32812 | #ifdef __cplusplus | |
32813 | extern "C" | |
32814 | { | |
32815 | #endif | |
32816 | /* We use char because int might match the return type of a gcc2 | |
32817 | builtin and then its argument prototype would still apply. */ | |
32818 | char $ac_func (); | |
32819 | /* The GNU C library defines this for functions which it implements | |
32820 | to always fail with ENOSYS. Some functions are actually named | |
32821 | something starting with __ and the normal name is an alias. */ | |
32822 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32823 | choke me | |
32824 | #else | |
32825 | char (*f) () = $ac_func; | |
32826 | #endif | |
32827 | #ifdef __cplusplus | |
32828 | } | |
32829 | #endif | |
32830 | ||
32831 | int | |
32832 | main () | |
32833 | { | |
32834 | return f != $ac_func; | |
32835 | ; | |
32836 | return 0; | |
32837 | } | |
32838 | _ACEOF | |
32839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32841 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32842 | ac_status=$? |
ac1cb8d3 VS |
32843 | grep -v '^ *+' conftest.er1 >conftest.err |
32844 | rm -f conftest.er1 | |
32845 | cat conftest.err >&5 | |
a848cd7e SC |
32846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32847 | (exit $ac_status); } && | |
6ebeb4c7 | 32848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32850 | (eval $ac_try) 2>&5 | |
32851 | ac_status=$? | |
32852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32853 | (exit $ac_status); }; } && | |
32854 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32856 | (eval $ac_try) 2>&5 | |
32857 | ac_status=$? | |
32858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32859 | (exit $ac_status); }; }; then | |
32860 | eval "$as_ac_var=yes" | |
32861 | else | |
32862 | echo "$as_me: failed program was:" >&5 | |
32863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32864 | ||
32865 | eval "$as_ac_var=no" | |
32866 | fi | |
ac1cb8d3 VS |
32867 | rm -f conftest.err conftest.$ac_objext \ |
32868 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32869 | fi |
32870 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32871 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32872 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32873 | cat >>confdefs.h <<_ACEOF | |
32874 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32875 | _ACEOF | |
32876 | ||
32877 | fi | |
32878 | done | |
32879 | ||
32880 | ||
32881 | if test "$ac_cv_func_sigaction" = "no"; then | |
32882 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
32883 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
32884 | wxUSE_ON_FATAL_EXCEPTION=no | |
32885 | fi | |
32886 | ||
32887 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
32888 | ||
32889 | ||
32890 | ac_ext=cc | |
32891 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32892 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32893 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32894 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32895 | ||
32896 | ||
32897 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
32898 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
32899 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
32900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32901 | else | |
32902 | ||
32903 | cat >conftest.$ac_ext <<_ACEOF | |
32904 | /* confdefs.h. */ | |
32905 | _ACEOF | |
32906 | cat confdefs.h >>conftest.$ac_ext | |
32907 | cat >>conftest.$ac_ext <<_ACEOF | |
32908 | /* end confdefs.h. */ | |
32909 | #include <signal.h> | |
32910 | int | |
32911 | main () | |
32912 | { | |
32913 | ||
32914 | extern void testSigHandler(int); | |
32915 | ||
32916 | struct sigaction sa; | |
32917 | sa.sa_handler = testSigHandler; | |
32918 | ||
32919 | ; | |
32920 | return 0; | |
32921 | } | |
32922 | _ACEOF | |
32923 | rm -f conftest.$ac_objext | |
32924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32925 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32926 | ac_status=$? |
ac1cb8d3 VS |
32927 | grep -v '^ *+' conftest.er1 >conftest.err |
32928 | rm -f conftest.er1 | |
32929 | cat conftest.err >&5 | |
a848cd7e SC |
32930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32931 | (exit $ac_status); } && | |
6ebeb4c7 | 32932 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32934 | (eval $ac_try) 2>&5 | |
32935 | ac_status=$? | |
32936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32937 | (exit $ac_status); }; } && | |
32938 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32940 | (eval $ac_try) 2>&5 | |
32941 | ac_status=$? | |
32942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32943 | (exit $ac_status); }; }; then | |
32944 | ||
32945 | wx_cv_type_sa_handler=int | |
32946 | ||
32947 | else | |
32948 | echo "$as_me: failed program was:" >&5 | |
32949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32950 | ||
32951 | ||
32952 | wx_cv_type_sa_handler=void | |
32953 | ||
32954 | fi | |
ac1cb8d3 | 32955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32956 | |
32957 | fi | |
32958 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
32959 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
32960 | ||
32961 | ac_ext=c | |
32962 | ac_cpp='$CPP $CPPFLAGS' | |
32963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32966 | ||
32967 | ||
32968 | cat >>confdefs.h <<_ACEOF | |
32969 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
32970 | _ACEOF | |
32971 | ||
32972 | fi | |
32973 | fi | |
32974 | ||
eaff0f0d VZ |
32975 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
32976 | ||
32977 | ||
32978 | ac_ext=cc | |
32979 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32980 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32981 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32982 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32983 | ||
32984 | ||
32985 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
32986 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
32987 | if test "${wx_cv_func_backtrace+set}" = set; then | |
32988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32989 | else | |
32990 | ||
32991 | cat >conftest.$ac_ext <<_ACEOF | |
32992 | /* confdefs.h. */ | |
32993 | _ACEOF | |
32994 | cat confdefs.h >>conftest.$ac_ext | |
32995 | cat >>conftest.$ac_ext <<_ACEOF | |
32996 | /* end confdefs.h. */ | |
32997 | #include <execinfo.h> | |
32998 | int | |
32999 | main () | |
33000 | { | |
33001 | ||
33002 | void *trace[1]; | |
33003 | char **messages; | |
33004 | ||
33005 | backtrace(trace, 1); | |
33006 | messages = backtrace_symbols(trace, 1); | |
33007 | ||
33008 | ; | |
33009 | return 0; | |
33010 | } | |
33011 | _ACEOF | |
33012 | rm -f conftest.$ac_objext | |
33013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33014 | (eval $ac_compile) 2>conftest.er1 | |
33015 | ac_status=$? | |
33016 | grep -v '^ *+' conftest.er1 >conftest.err | |
33017 | rm -f conftest.er1 | |
33018 | cat conftest.err >&5 | |
33019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33020 | (exit $ac_status); } && | |
6ebeb4c7 | 33021 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
33022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33023 | (eval $ac_try) 2>&5 | |
33024 | ac_status=$? | |
33025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33026 | (exit $ac_status); }; } && | |
33027 | { ac_try='test -s conftest.$ac_objext' | |
33028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33029 | (eval $ac_try) 2>&5 | |
33030 | ac_status=$? | |
33031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33032 | (exit $ac_status); }; }; then | |
33033 | wx_cv_func_backtrace=yes | |
33034 | else | |
33035 | echo "$as_me: failed program was:" >&5 | |
33036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33037 | ||
33038 | wx_cv_func_backtrace=no | |
33039 | ||
33040 | fi | |
33041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33042 | ||
33043 | ||
33044 | fi | |
33045 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
33046 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
33047 | ||
33048 | ||
33049 | if test "$wx_cv_func_backtrace" = "no"; then | |
33050 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
33051 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
33052 | wxUSE_STACKWALKER=no | |
33053 | else | |
33054 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
33055 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
33056 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
33057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33058 | else | |
33059 | ||
33060 | cat >conftest.$ac_ext <<_ACEOF | |
33061 | /* confdefs.h. */ | |
33062 | _ACEOF | |
33063 | cat confdefs.h >>conftest.$ac_ext | |
33064 | cat >>conftest.$ac_ext <<_ACEOF | |
33065 | /* end confdefs.h. */ | |
33066 | #include <cxxabi.h> | |
33067 | int | |
33068 | main () | |
33069 | { | |
33070 | ||
33071 | int rc; | |
33072 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
33073 | ||
33074 | ; | |
33075 | return 0; | |
33076 | } | |
33077 | _ACEOF | |
dfe0c803 JS |
33078 | rm -f conftest.$ac_objext conftest$ac_exeext |
33079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33080 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
33081 | ac_status=$? |
33082 | grep -v '^ *+' conftest.er1 >conftest.err | |
33083 | rm -f conftest.er1 | |
33084 | cat conftest.err >&5 | |
33085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33086 | (exit $ac_status); } && | |
6ebeb4c7 | 33087 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
33088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33089 | (eval $ac_try) 2>&5 | |
33090 | ac_status=$? | |
33091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33092 | (exit $ac_status); }; } && | |
dfe0c803 | 33093 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
33094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33095 | (eval $ac_try) 2>&5 | |
33096 | ac_status=$? | |
33097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33098 | (exit $ac_status); }; }; then | |
33099 | wx_cv_func_cxa_demangle=yes | |
33100 | else | |
33101 | echo "$as_me: failed program was:" >&5 | |
33102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33103 | ||
33104 | wx_cv_func_cxa_demangle=no | |
33105 | ||
33106 | fi | |
dfe0c803 JS |
33107 | rm -f conftest.err conftest.$ac_objext \ |
33108 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
33109 | |
33110 | ||
33111 | fi | |
33112 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
33113 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
33114 | ||
33115 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
33116 | cat >>confdefs.h <<\_ACEOF | |
33117 | #define HAVE_CXA_DEMANGLE 1 | |
33118 | _ACEOF | |
33119 | ||
33120 | fi | |
33121 | fi | |
33122 | ||
33123 | ac_ext=c | |
33124 | ac_cpp='$CPP $CPPFLAGS' | |
33125 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33126 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33127 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33128 | ||
33129 | fi | |
33130 | ||
898beab1 DE |
33131 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
33132 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
33133 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
33134 | wxUSE_STACKWALKER=no | |
33135 | fi | |
33136 | ||
33137 | ||
a848cd7e SC |
33138 | |
33139 | ||
33140 | for ac_func in mkstemp mktemp | |
33141 | do | |
33142 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33143 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33144 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33145 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33147 | else | |
33148 | cat >conftest.$ac_ext <<_ACEOF | |
33149 | /* confdefs.h. */ | |
33150 | _ACEOF | |
33151 | cat confdefs.h >>conftest.$ac_ext | |
33152 | cat >>conftest.$ac_ext <<_ACEOF | |
33153 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33154 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33156 | #define $ac_func innocuous_$ac_func | |
33157 | ||
a848cd7e SC |
33158 | /* System header to define __stub macros and hopefully few prototypes, |
33159 | which can conflict with char $ac_func (); below. | |
33160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33161 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33162 | |
a848cd7e SC |
33163 | #ifdef __STDC__ |
33164 | # include <limits.h> | |
33165 | #else | |
33166 | # include <assert.h> | |
33167 | #endif | |
ac1cb8d3 VS |
33168 | |
33169 | #undef $ac_func | |
33170 | ||
a848cd7e SC |
33171 | /* Override any gcc2 internal prototype to avoid an error. */ |
33172 | #ifdef __cplusplus | |
33173 | extern "C" | |
33174 | { | |
33175 | #endif | |
33176 | /* We use char because int might match the return type of a gcc2 | |
33177 | builtin and then its argument prototype would still apply. */ | |
33178 | char $ac_func (); | |
33179 | /* The GNU C library defines this for functions which it implements | |
33180 | to always fail with ENOSYS. Some functions are actually named | |
33181 | something starting with __ and the normal name is an alias. */ | |
33182 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33183 | choke me | |
33184 | #else | |
33185 | char (*f) () = $ac_func; | |
33186 | #endif | |
33187 | #ifdef __cplusplus | |
33188 | } | |
33189 | #endif | |
33190 | ||
33191 | int | |
33192 | main () | |
33193 | { | |
33194 | return f != $ac_func; | |
33195 | ; | |
33196 | return 0; | |
33197 | } | |
33198 | _ACEOF | |
33199 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33201 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33202 | ac_status=$? |
ac1cb8d3 VS |
33203 | grep -v '^ *+' conftest.er1 >conftest.err |
33204 | rm -f conftest.er1 | |
33205 | cat conftest.err >&5 | |
a848cd7e SC |
33206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33207 | (exit $ac_status); } && | |
6ebeb4c7 | 33208 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33210 | (eval $ac_try) 2>&5 | |
33211 | ac_status=$? | |
33212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33213 | (exit $ac_status); }; } && | |
33214 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33216 | (eval $ac_try) 2>&5 | |
33217 | ac_status=$? | |
33218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33219 | (exit $ac_status); }; }; then | |
33220 | eval "$as_ac_var=yes" | |
33221 | else | |
33222 | echo "$as_me: failed program was:" >&5 | |
33223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33224 | ||
33225 | eval "$as_ac_var=no" | |
33226 | fi | |
ac1cb8d3 VS |
33227 | rm -f conftest.err conftest.$ac_objext \ |
33228 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33229 | fi |
33230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33231 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33232 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33233 | cat >>confdefs.h <<_ACEOF | |
33234 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33235 | _ACEOF | |
33236 | break | |
33237 | fi | |
33238 | done | |
33239 | ||
33240 | ||
33241 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
33242 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
33243 | if test "${wx_cv_func_statfs+set}" = set; then | |
33244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33245 | else | |
33246 | cat >conftest.$ac_ext <<_ACEOF | |
33247 | /* confdefs.h. */ | |
33248 | _ACEOF | |
33249 | cat confdefs.h >>conftest.$ac_ext | |
33250 | cat >>conftest.$ac_ext <<_ACEOF | |
33251 | /* end confdefs.h. */ | |
33252 | ||
33253 | #if defined(__BSD__) | |
84ae7ca4 VZ |
33254 | #include <sys/param.h> |
33255 | #include <sys/mount.h> | |
a848cd7e | 33256 | #else |
84ae7ca4 | 33257 | #include <sys/vfs.h> |
a848cd7e SC |
33258 | #endif |
33259 | ||
33260 | int | |
33261 | main () | |
33262 | { | |
33263 | ||
33264 | long l; | |
33265 | struct statfs fs; | |
33266 | statfs("/", &fs); | |
33267 | l = fs.f_bsize; | |
33268 | l += fs.f_blocks; | |
33269 | l += fs.f_bavail; | |
33270 | ||
33271 | ; | |
33272 | return 0; | |
33273 | } | |
33274 | _ACEOF | |
33275 | rm -f conftest.$ac_objext | |
33276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33277 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33278 | ac_status=$? |
ac1cb8d3 VS |
33279 | grep -v '^ *+' conftest.er1 >conftest.err |
33280 | rm -f conftest.er1 | |
33281 | cat conftest.err >&5 | |
a848cd7e SC |
33282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33283 | (exit $ac_status); } && | |
6ebeb4c7 | 33284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33286 | (eval $ac_try) 2>&5 | |
33287 | ac_status=$? | |
33288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33289 | (exit $ac_status); }; } && | |
33290 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33292 | (eval $ac_try) 2>&5 | |
33293 | ac_status=$? | |
33294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33295 | (exit $ac_status); }; }; then | |
84ae7ca4 | 33296 | wx_cv_func_statfs=yes |
a848cd7e SC |
33297 | else |
33298 | echo "$as_me: failed program was:" >&5 | |
33299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33300 | ||
84ae7ca4 | 33301 | wx_cv_func_statfs=no |
a848cd7e SC |
33302 | |
33303 | fi | |
ac1cb8d3 | 33304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33305 | |
33306 | fi | |
33307 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
33308 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
33309 | ||
33310 | if test "$wx_cv_func_statfs" = "yes"; then | |
84ae7ca4 VZ |
33311 | |
33312 | ||
33313 | ac_ext=cc | |
33314 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33315 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33316 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33317 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33318 | ||
33319 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 | |
33320 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 | |
33321 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
33322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33323 | else | |
0683aca6 VZ |
33324 | cat >conftest.$ac_ext <<_ACEOF |
33325 | /* confdefs.h. */ | |
33326 | _ACEOF | |
33327 | cat confdefs.h >>conftest.$ac_ext | |
33328 | cat >>conftest.$ac_ext <<_ACEOF | |
33329 | /* end confdefs.h. */ | |
84ae7ca4 | 33330 | |
0683aca6 VZ |
33331 | #if defined(__BSD__) |
33332 | #include <sys/param.h> | |
33333 | #include <sys/mount.h> | |
33334 | #else | |
33335 | #include <sys/vfs.h> | |
33336 | #endif | |
33337 | ||
33338 | int | |
33339 | main () | |
33340 | { | |
33341 | ||
33342 | struct statfs fs; | |
33343 | statfs("", &fs); | |
33344 | ||
33345 | ; | |
33346 | return 0; | |
33347 | } | |
33348 | _ACEOF | |
33349 | rm -f conftest.$ac_objext | |
33350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33351 | (eval $ac_compile) 2>conftest.er1 | |
33352 | ac_status=$? | |
33353 | grep -v '^ *+' conftest.er1 >conftest.err | |
33354 | rm -f conftest.er1 | |
33355 | cat conftest.err >&5 | |
33356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33357 | (exit $ac_status); } && | |
33358 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
33359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33360 | (eval $ac_try) 2>&5 | |
33361 | ac_status=$? | |
33362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33363 | (exit $ac_status); }; } && | |
33364 | { ac_try='test -s conftest.$ac_objext' | |
33365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33366 | (eval $ac_try) 2>&5 | |
33367 | ac_status=$? | |
33368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33369 | (exit $ac_status); }; }; then | |
33370 | wx_cv_func_statfs_decl=yes | |
33371 | else | |
33372 | echo "$as_me: failed program was:" >&5 | |
33373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33374 | ||
33375 | wx_cv_func_statfs_decl=no | |
33376 | ||
33377 | fi | |
33378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
33379 | |
33380 | fi | |
33381 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
33382 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
33383 | ac_ext=c | |
33384 | ac_cpp='$CPP $CPPFLAGS' | |
33385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33388 | ||
33389 | ||
33390 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
33391 | cat >>confdefs.h <<\_ACEOF | |
33392 | #define HAVE_STATFS_DECL 1 | |
33393 | _ACEOF | |
33394 | ||
33395 | fi | |
33396 | ||
a848cd7e SC |
33397 | wx_cv_type_statvfs_t="struct statfs" |
33398 | cat >>confdefs.h <<\_ACEOF | |
33399 | #define HAVE_STATFS 1 | |
33400 | _ACEOF | |
33401 | ||
33402 | else | |
33403 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
33404 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
33405 | if test "${wx_cv_func_statvfs+set}" = set; then | |
33406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33407 | else | |
33408 | cat >conftest.$ac_ext <<_ACEOF | |
33409 | /* confdefs.h. */ | |
33410 | _ACEOF | |
33411 | cat confdefs.h >>conftest.$ac_ext | |
33412 | cat >>conftest.$ac_ext <<_ACEOF | |
33413 | /* end confdefs.h. */ | |
33414 | ||
33415 | #include <stddef.h> | |
33416 | #include <sys/statvfs.h> | |
33417 | ||
33418 | int | |
33419 | main () | |
33420 | { | |
33421 | ||
33422 | statvfs("/", NULL); | |
33423 | ||
33424 | ; | |
33425 | return 0; | |
33426 | } | |
33427 | _ACEOF | |
33428 | rm -f conftest.$ac_objext | |
33429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33430 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33431 | ac_status=$? |
ac1cb8d3 VS |
33432 | grep -v '^ *+' conftest.er1 >conftest.err |
33433 | rm -f conftest.er1 | |
33434 | cat conftest.err >&5 | |
a848cd7e SC |
33435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33436 | (exit $ac_status); } && | |
6ebeb4c7 | 33437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33439 | (eval $ac_try) 2>&5 | |
33440 | ac_status=$? | |
33441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33442 | (exit $ac_status); }; } && | |
33443 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33445 | (eval $ac_try) 2>&5 | |
33446 | ac_status=$? | |
33447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33448 | (exit $ac_status); }; }; then | |
33449 | wx_cv_func_statvfs=yes | |
33450 | else | |
33451 | echo "$as_me: failed program was:" >&5 | |
33452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33453 | ||
33454 | wx_cv_func_statvfs=no | |
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_func_statvfs" >&5 | |
33461 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
33462 | ||
33463 | if test "$wx_cv_func_statvfs" = "yes"; then | |
33464 | ||
33465 | ||
33466 | ac_ext=cc | |
33467 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33468 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33469 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33470 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33471 | ||
33472 | ||
33473 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
33474 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
33475 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
33476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33477 | else | |
33478 | cat >conftest.$ac_ext <<_ACEOF | |
33479 | /* confdefs.h. */ | |
33480 | _ACEOF | |
33481 | cat confdefs.h >>conftest.$ac_ext | |
33482 | cat >>conftest.$ac_ext <<_ACEOF | |
33483 | /* end confdefs.h. */ | |
33484 | ||
33485 | #include <sys/statvfs.h> | |
33486 | ||
33487 | int | |
33488 | main () | |
33489 | { | |
33490 | ||
33491 | long l; | |
33492 | statvfs_t fs; | |
33493 | statvfs("/", &fs); | |
33494 | l = fs.f_bsize; | |
33495 | l += fs.f_blocks; | |
33496 | l += fs.f_bavail; | |
33497 | ||
33498 | ; | |
33499 | return 0; | |
33500 | } | |
33501 | _ACEOF | |
33502 | rm -f conftest.$ac_objext | |
33503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33504 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33505 | ac_status=$? |
ac1cb8d3 VS |
33506 | grep -v '^ *+' conftest.er1 >conftest.err |
33507 | rm -f conftest.er1 | |
33508 | cat conftest.err >&5 | |
a848cd7e SC |
33509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33510 | (exit $ac_status); } && | |
6ebeb4c7 | 33511 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33513 | (eval $ac_try) 2>&5 | |
33514 | ac_status=$? | |
33515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33516 | (exit $ac_status); }; } && | |
33517 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33519 | (eval $ac_try) 2>&5 | |
33520 | ac_status=$? | |
33521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33522 | (exit $ac_status); }; }; then | |
33523 | wx_cv_type_statvfs_t=statvfs_t | |
33524 | else | |
33525 | echo "$as_me: failed program was:" >&5 | |
33526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33527 | ||
33528 | ||
33529 | cat >conftest.$ac_ext <<_ACEOF | |
33530 | /* confdefs.h. */ | |
33531 | _ACEOF | |
33532 | cat confdefs.h >>conftest.$ac_ext | |
33533 | cat >>conftest.$ac_ext <<_ACEOF | |
33534 | /* end confdefs.h. */ | |
33535 | ||
33536 | #include <sys/statvfs.h> | |
33537 | ||
33538 | int | |
33539 | main () | |
33540 | { | |
33541 | ||
33542 | long l; | |
33543 | struct statvfs fs; | |
33544 | statvfs("/", &fs); | |
33545 | l = fs.f_bsize; | |
33546 | l += fs.f_blocks; | |
33547 | l += fs.f_bavail; | |
33548 | ||
33549 | ; | |
33550 | return 0; | |
33551 | } | |
33552 | _ACEOF | |
33553 | rm -f conftest.$ac_objext | |
33554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33555 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33556 | ac_status=$? |
ac1cb8d3 VS |
33557 | grep -v '^ *+' conftest.er1 >conftest.err |
33558 | rm -f conftest.er1 | |
33559 | cat conftest.err >&5 | |
a848cd7e SC |
33560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33561 | (exit $ac_status); } && | |
6ebeb4c7 | 33562 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33564 | (eval $ac_try) 2>&5 | |
33565 | ac_status=$? | |
33566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33567 | (exit $ac_status); }; } && | |
33568 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33570 | (eval $ac_try) 2>&5 | |
33571 | ac_status=$? | |
33572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33573 | (exit $ac_status); }; }; then | |
33574 | wx_cv_type_statvfs_t="struct statvfs" | |
33575 | else | |
33576 | echo "$as_me: failed program was:" >&5 | |
33577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33578 | ||
33579 | wx_cv_type_statvfs_t="unknown" | |
33580 | ||
33581 | fi | |
ac1cb8d3 | 33582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33583 | |
33584 | ||
33585 | fi | |
ac1cb8d3 | 33586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33587 | |
33588 | fi | |
33589 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
33590 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
33591 | ||
33592 | ac_ext=c | |
33593 | ac_cpp='$CPP $CPPFLAGS' | |
33594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33597 | ||
33598 | ||
33599 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
33600 | cat >>confdefs.h <<\_ACEOF | |
33601 | #define HAVE_STATVFS 1 | |
33602 | _ACEOF | |
33603 | ||
33604 | fi | |
33605 | else | |
33606 | wx_cv_type_statvfs_t="unknown" | |
33607 | fi | |
33608 | fi | |
33609 | ||
33610 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
33611 | cat >>confdefs.h <<_ACEOF | |
33612 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
33613 | _ACEOF | |
33614 | ||
33615 | else | |
33616 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
33617 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
33618 | fi | |
33619 | ||
33620 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
33621 | ||
33622 | ||
33623 | for ac_func in fcntl flock | |
33624 | do | |
33625 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33626 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33627 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33628 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33630 | else | |
33631 | cat >conftest.$ac_ext <<_ACEOF | |
33632 | /* confdefs.h. */ | |
33633 | _ACEOF | |
33634 | cat confdefs.h >>conftest.$ac_ext | |
33635 | cat >>conftest.$ac_ext <<_ACEOF | |
33636 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33637 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33638 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33639 | #define $ac_func innocuous_$ac_func | |
33640 | ||
a848cd7e SC |
33641 | /* System header to define __stub macros and hopefully few prototypes, |
33642 | which can conflict with char $ac_func (); below. | |
33643 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33644 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33645 | |
a848cd7e SC |
33646 | #ifdef __STDC__ |
33647 | # include <limits.h> | |
33648 | #else | |
33649 | # include <assert.h> | |
33650 | #endif | |
ac1cb8d3 VS |
33651 | |
33652 | #undef $ac_func | |
33653 | ||
a848cd7e SC |
33654 | /* Override any gcc2 internal prototype to avoid an error. */ |
33655 | #ifdef __cplusplus | |
33656 | extern "C" | |
33657 | { | |
33658 | #endif | |
33659 | /* We use char because int might match the return type of a gcc2 | |
33660 | builtin and then its argument prototype would still apply. */ | |
33661 | char $ac_func (); | |
33662 | /* The GNU C library defines this for functions which it implements | |
33663 | to always fail with ENOSYS. Some functions are actually named | |
33664 | something starting with __ and the normal name is an alias. */ | |
33665 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33666 | choke me | |
33667 | #else | |
33668 | char (*f) () = $ac_func; | |
33669 | #endif | |
33670 | #ifdef __cplusplus | |
33671 | } | |
33672 | #endif | |
33673 | ||
33674 | int | |
33675 | main () | |
33676 | { | |
33677 | return f != $ac_func; | |
33678 | ; | |
33679 | return 0; | |
33680 | } | |
33681 | _ACEOF | |
33682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33684 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33685 | ac_status=$? |
ac1cb8d3 VS |
33686 | grep -v '^ *+' conftest.er1 >conftest.err |
33687 | rm -f conftest.er1 | |
33688 | cat conftest.err >&5 | |
a848cd7e SC |
33689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33690 | (exit $ac_status); } && | |
6ebeb4c7 | 33691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33693 | (eval $ac_try) 2>&5 | |
33694 | ac_status=$? | |
33695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33696 | (exit $ac_status); }; } && | |
33697 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33699 | (eval $ac_try) 2>&5 | |
33700 | ac_status=$? | |
33701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33702 | (exit $ac_status); }; }; then | |
33703 | eval "$as_ac_var=yes" | |
33704 | else | |
33705 | echo "$as_me: failed program was:" >&5 | |
33706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33707 | ||
33708 | eval "$as_ac_var=no" | |
33709 | fi | |
ac1cb8d3 VS |
33710 | rm -f conftest.err conftest.$ac_objext \ |
33711 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33712 | fi |
33713 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33714 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33715 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33716 | cat >>confdefs.h <<_ACEOF | |
33717 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33718 | _ACEOF | |
33719 | break | |
33720 | fi | |
33721 | done | |
33722 | ||
33723 | ||
33724 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
33725 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
33726 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
33727 | wxUSE_SNGLINST_CHECKER=no | |
33728 | fi | |
33729 | fi | |
33730 | ||
33731 | ||
33732 | for ac_func in timegm | |
33733 | do | |
33734 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33735 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33736 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33737 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33739 | else | |
33740 | cat >conftest.$ac_ext <<_ACEOF | |
33741 | /* confdefs.h. */ | |
33742 | _ACEOF | |
33743 | cat confdefs.h >>conftest.$ac_ext | |
33744 | cat >>conftest.$ac_ext <<_ACEOF | |
33745 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33746 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33747 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33748 | #define $ac_func innocuous_$ac_func | |
33749 | ||
a848cd7e SC |
33750 | /* System header to define __stub macros and hopefully few prototypes, |
33751 | which can conflict with char $ac_func (); below. | |
33752 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33753 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33754 | |
a848cd7e SC |
33755 | #ifdef __STDC__ |
33756 | # include <limits.h> | |
33757 | #else | |
33758 | # include <assert.h> | |
33759 | #endif | |
ac1cb8d3 VS |
33760 | |
33761 | #undef $ac_func | |
33762 | ||
a848cd7e SC |
33763 | /* Override any gcc2 internal prototype to avoid an error. */ |
33764 | #ifdef __cplusplus | |
33765 | extern "C" | |
33766 | { | |
33767 | #endif | |
33768 | /* We use char because int might match the return type of a gcc2 | |
33769 | builtin and then its argument prototype would still apply. */ | |
33770 | char $ac_func (); | |
33771 | /* The GNU C library defines this for functions which it implements | |
33772 | to always fail with ENOSYS. Some functions are actually named | |
33773 | something starting with __ and the normal name is an alias. */ | |
33774 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33775 | choke me | |
33776 | #else | |
33777 | char (*f) () = $ac_func; | |
33778 | #endif | |
33779 | #ifdef __cplusplus | |
33780 | } | |
33781 | #endif | |
33782 | ||
33783 | int | |
33784 | main () | |
33785 | { | |
33786 | return f != $ac_func; | |
33787 | ; | |
33788 | return 0; | |
33789 | } | |
33790 | _ACEOF | |
33791 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33793 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33794 | ac_status=$? |
ac1cb8d3 VS |
33795 | grep -v '^ *+' conftest.er1 >conftest.err |
33796 | rm -f conftest.er1 | |
33797 | cat conftest.err >&5 | |
a848cd7e SC |
33798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33799 | (exit $ac_status); } && | |
6ebeb4c7 | 33800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33802 | (eval $ac_try) 2>&5 | |
33803 | ac_status=$? | |
33804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33805 | (exit $ac_status); }; } && | |
33806 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33808 | (eval $ac_try) 2>&5 | |
33809 | ac_status=$? | |
33810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33811 | (exit $ac_status); }; }; then | |
33812 | eval "$as_ac_var=yes" | |
33813 | else | |
33814 | echo "$as_me: failed program was:" >&5 | |
33815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33816 | ||
33817 | eval "$as_ac_var=no" | |
33818 | fi | |
ac1cb8d3 VS |
33819 | rm -f conftest.err conftest.$ac_objext \ |
33820 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33821 | fi |
33822 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33823 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33824 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33825 | cat >>confdefs.h <<_ACEOF | |
33826 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33827 | _ACEOF | |
33828 | ||
33829 | fi | |
33830 | done | |
33831 | ||
33832 | ||
33833 | ||
33834 | ||
33835 | for ac_func in putenv setenv | |
33836 | do | |
33837 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33838 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33839 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33840 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33842 | else | |
33843 | cat >conftest.$ac_ext <<_ACEOF | |
33844 | /* confdefs.h. */ | |
33845 | _ACEOF | |
33846 | cat confdefs.h >>conftest.$ac_ext | |
33847 | cat >>conftest.$ac_ext <<_ACEOF | |
33848 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33849 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33850 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33851 | #define $ac_func innocuous_$ac_func | |
33852 | ||
a848cd7e SC |
33853 | /* System header to define __stub macros and hopefully few prototypes, |
33854 | which can conflict with char $ac_func (); below. | |
33855 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33856 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33857 | |
a848cd7e SC |
33858 | #ifdef __STDC__ |
33859 | # include <limits.h> | |
33860 | #else | |
33861 | # include <assert.h> | |
33862 | #endif | |
ac1cb8d3 VS |
33863 | |
33864 | #undef $ac_func | |
33865 | ||
a848cd7e SC |
33866 | /* Override any gcc2 internal prototype to avoid an error. */ |
33867 | #ifdef __cplusplus | |
33868 | extern "C" | |
33869 | { | |
33870 | #endif | |
33871 | /* We use char because int might match the return type of a gcc2 | |
33872 | builtin and then its argument prototype would still apply. */ | |
33873 | char $ac_func (); | |
33874 | /* The GNU C library defines this for functions which it implements | |
33875 | to always fail with ENOSYS. Some functions are actually named | |
33876 | something starting with __ and the normal name is an alias. */ | |
33877 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33878 | choke me | |
33879 | #else | |
33880 | char (*f) () = $ac_func; | |
33881 | #endif | |
33882 | #ifdef __cplusplus | |
33883 | } | |
33884 | #endif | |
33885 | ||
33886 | int | |
33887 | main () | |
33888 | { | |
33889 | return f != $ac_func; | |
33890 | ; | |
33891 | return 0; | |
33892 | } | |
33893 | _ACEOF | |
33894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33896 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33897 | ac_status=$? |
ac1cb8d3 VS |
33898 | grep -v '^ *+' conftest.er1 >conftest.err |
33899 | rm -f conftest.er1 | |
33900 | cat conftest.err >&5 | |
a848cd7e SC |
33901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33902 | (exit $ac_status); } && | |
6ebeb4c7 | 33903 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33905 | (eval $ac_try) 2>&5 | |
33906 | ac_status=$? | |
33907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33908 | (exit $ac_status); }; } && | |
33909 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33911 | (eval $ac_try) 2>&5 | |
33912 | ac_status=$? | |
33913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33914 | (exit $ac_status); }; }; then | |
33915 | eval "$as_ac_var=yes" | |
33916 | else | |
33917 | echo "$as_me: failed program was:" >&5 | |
33918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33919 | ||
33920 | eval "$as_ac_var=no" | |
33921 | fi | |
ac1cb8d3 VS |
33922 | rm -f conftest.err conftest.$ac_objext \ |
33923 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33924 | fi |
33925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33926 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33927 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33928 | cat >>confdefs.h <<_ACEOF | |
33929 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33930 | _ACEOF | |
33931 | break | |
33932 | fi | |
33933 | done | |
33934 | ||
33935 | ||
33936 | HAVE_SOME_SLEEP_FUNC=0 | |
33937 | if test "$USE_BEOS" = 1; then | |
33938 | cat >>confdefs.h <<\_ACEOF | |
33939 | #define HAVE_SLEEP 1 | |
33940 | _ACEOF | |
33941 | ||
33942 | HAVE_SOME_SLEEP_FUNC=1 | |
33943 | fi | |
33944 | ||
33945 | if test "$USE_DARWIN" = 1; then | |
33946 | cat >>confdefs.h <<\_ACEOF | |
33947 | #define HAVE_USLEEP 1 | |
33948 | _ACEOF | |
33949 | ||
33950 | HAVE_SOME_SLEEP_FUNC=1 | |
33951 | fi | |
33952 | ||
33953 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
33954 | POSIX4_LINK= | |
33955 | ||
33956 | for ac_func in nanosleep | |
33957 | do | |
33958 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33959 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33960 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33961 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33963 | else | |
33964 | cat >conftest.$ac_ext <<_ACEOF | |
33965 | /* confdefs.h. */ | |
33966 | _ACEOF | |
33967 | cat confdefs.h >>conftest.$ac_ext | |
33968 | cat >>conftest.$ac_ext <<_ACEOF | |
33969 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33970 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33971 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33972 | #define $ac_func innocuous_$ac_func | |
33973 | ||
a848cd7e SC |
33974 | /* System header to define __stub macros and hopefully few prototypes, |
33975 | which can conflict with char $ac_func (); below. | |
33976 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33977 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33978 | |
a848cd7e SC |
33979 | #ifdef __STDC__ |
33980 | # include <limits.h> | |
33981 | #else | |
33982 | # include <assert.h> | |
33983 | #endif | |
ac1cb8d3 VS |
33984 | |
33985 | #undef $ac_func | |
33986 | ||
a848cd7e SC |
33987 | /* Override any gcc2 internal prototype to avoid an error. */ |
33988 | #ifdef __cplusplus | |
33989 | extern "C" | |
33990 | { | |
33991 | #endif | |
33992 | /* We use char because int might match the return type of a gcc2 | |
33993 | builtin and then its argument prototype would still apply. */ | |
33994 | char $ac_func (); | |
33995 | /* The GNU C library defines this for functions which it implements | |
33996 | to always fail with ENOSYS. Some functions are actually named | |
33997 | something starting with __ and the normal name is an alias. */ | |
33998 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33999 | choke me | |
34000 | #else | |
34001 | char (*f) () = $ac_func; | |
34002 | #endif | |
34003 | #ifdef __cplusplus | |
34004 | } | |
34005 | #endif | |
34006 | ||
34007 | int | |
34008 | main () | |
34009 | { | |
34010 | return f != $ac_func; | |
34011 | ; | |
34012 | return 0; | |
34013 | } | |
34014 | _ACEOF | |
34015 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34017 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34018 | ac_status=$? |
ac1cb8d3 VS |
34019 | grep -v '^ *+' conftest.er1 >conftest.err |
34020 | rm -f conftest.er1 | |
34021 | cat conftest.err >&5 | |
a848cd7e SC |
34022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34023 | (exit $ac_status); } && | |
6ebeb4c7 | 34024 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34026 | (eval $ac_try) 2>&5 | |
34027 | ac_status=$? | |
34028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34029 | (exit $ac_status); }; } && | |
34030 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34032 | (eval $ac_try) 2>&5 | |
34033 | ac_status=$? | |
34034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34035 | (exit $ac_status); }; }; then | |
34036 | eval "$as_ac_var=yes" | |
34037 | else | |
34038 | echo "$as_me: failed program was:" >&5 | |
34039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34040 | ||
34041 | eval "$as_ac_var=no" | |
34042 | fi | |
ac1cb8d3 VS |
34043 | rm -f conftest.err conftest.$ac_objext \ |
34044 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34045 | fi |
34046 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34047 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34048 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34049 | cat >>confdefs.h <<_ACEOF | |
34050 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34051 | _ACEOF | |
34052 | cat >>confdefs.h <<\_ACEOF | |
34053 | #define HAVE_NANOSLEEP 1 | |
34054 | _ACEOF | |
34055 | ||
34056 | else | |
34057 | ||
34058 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
34059 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
34060 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
34061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34062 | else | |
34063 | ac_check_lib_save_LIBS=$LIBS | |
34064 | LIBS="-lposix4 $LIBS" | |
34065 | cat >conftest.$ac_ext <<_ACEOF | |
34066 | /* confdefs.h. */ | |
34067 | _ACEOF | |
34068 | cat confdefs.h >>conftest.$ac_ext | |
34069 | cat >>conftest.$ac_ext <<_ACEOF | |
34070 | /* end confdefs.h. */ | |
34071 | ||
34072 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34073 | #ifdef __cplusplus | |
34074 | extern "C" | |
34075 | #endif | |
34076 | /* We use char because int might match the return type of a gcc2 | |
34077 | builtin and then its argument prototype would still apply. */ | |
34078 | char nanosleep (); | |
34079 | int | |
34080 | main () | |
34081 | { | |
34082 | nanosleep (); | |
34083 | ; | |
34084 | return 0; | |
34085 | } | |
34086 | _ACEOF | |
34087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34089 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34090 | ac_status=$? |
ac1cb8d3 VS |
34091 | grep -v '^ *+' conftest.er1 >conftest.err |
34092 | rm -f conftest.er1 | |
34093 | cat conftest.err >&5 | |
a848cd7e SC |
34094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34095 | (exit $ac_status); } && | |
6ebeb4c7 | 34096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34098 | (eval $ac_try) 2>&5 | |
34099 | ac_status=$? | |
34100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34101 | (exit $ac_status); }; } && | |
34102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34104 | (eval $ac_try) 2>&5 | |
34105 | ac_status=$? | |
34106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34107 | (exit $ac_status); }; }; then | |
34108 | ac_cv_lib_posix4_nanosleep=yes | |
34109 | else | |
34110 | echo "$as_me: failed program was:" >&5 | |
34111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34112 | ||
34113 | ac_cv_lib_posix4_nanosleep=no | |
34114 | fi | |
ac1cb8d3 VS |
34115 | rm -f conftest.err conftest.$ac_objext \ |
34116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34117 | LIBS=$ac_check_lib_save_LIBS |
34118 | fi | |
34119 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
34120 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
34121 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
34122 | ||
34123 | cat >>confdefs.h <<\_ACEOF | |
34124 | #define HAVE_NANOSLEEP 1 | |
34125 | _ACEOF | |
34126 | ||
34127 | POSIX4_LINK=" -lposix4" | |
34128 | ||
34129 | else | |
34130 | ||
34131 | ||
34132 | for ac_func in usleep | |
34133 | do | |
34134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34135 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34137 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34139 | else | |
34140 | cat >conftest.$ac_ext <<_ACEOF | |
34141 | /* confdefs.h. */ | |
34142 | _ACEOF | |
34143 | cat confdefs.h >>conftest.$ac_ext | |
34144 | cat >>conftest.$ac_ext <<_ACEOF | |
34145 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34146 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34148 | #define $ac_func innocuous_$ac_func | |
34149 | ||
a848cd7e SC |
34150 | /* System header to define __stub macros and hopefully few prototypes, |
34151 | which can conflict with char $ac_func (); below. | |
34152 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34153 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34154 | |
a848cd7e SC |
34155 | #ifdef __STDC__ |
34156 | # include <limits.h> | |
34157 | #else | |
34158 | # include <assert.h> | |
34159 | #endif | |
ac1cb8d3 VS |
34160 | |
34161 | #undef $ac_func | |
34162 | ||
a848cd7e SC |
34163 | /* Override any gcc2 internal prototype to avoid an error. */ |
34164 | #ifdef __cplusplus | |
34165 | extern "C" | |
34166 | { | |
34167 | #endif | |
34168 | /* We use char because int might match the return type of a gcc2 | |
34169 | builtin and then its argument prototype would still apply. */ | |
34170 | char $ac_func (); | |
34171 | /* The GNU C library defines this for functions which it implements | |
34172 | to always fail with ENOSYS. Some functions are actually named | |
34173 | something starting with __ and the normal name is an alias. */ | |
34174 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34175 | choke me | |
34176 | #else | |
34177 | char (*f) () = $ac_func; | |
34178 | #endif | |
34179 | #ifdef __cplusplus | |
34180 | } | |
34181 | #endif | |
34182 | ||
34183 | int | |
34184 | main () | |
34185 | { | |
34186 | return f != $ac_func; | |
34187 | ; | |
34188 | return 0; | |
34189 | } | |
34190 | _ACEOF | |
34191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34193 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34194 | ac_status=$? |
ac1cb8d3 VS |
34195 | grep -v '^ *+' conftest.er1 >conftest.err |
34196 | rm -f conftest.er1 | |
34197 | cat conftest.err >&5 | |
a848cd7e SC |
34198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34199 | (exit $ac_status); } && | |
6ebeb4c7 | 34200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34202 | (eval $ac_try) 2>&5 | |
34203 | ac_status=$? | |
34204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34205 | (exit $ac_status); }; } && | |
34206 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34208 | (eval $ac_try) 2>&5 | |
34209 | ac_status=$? | |
34210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34211 | (exit $ac_status); }; }; then | |
34212 | eval "$as_ac_var=yes" | |
34213 | else | |
34214 | echo "$as_me: failed program was:" >&5 | |
34215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34216 | ||
34217 | eval "$as_ac_var=no" | |
34218 | fi | |
ac1cb8d3 VS |
34219 | rm -f conftest.err conftest.$ac_objext \ |
34220 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34221 | fi |
34222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34223 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34224 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34225 | cat >>confdefs.h <<_ACEOF | |
34226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34227 | _ACEOF | |
34228 | cat >>confdefs.h <<\_ACEOF | |
34229 | #define HAVE_USLEEP 1 | |
34230 | _ACEOF | |
34231 | ||
34232 | else | |
34233 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
34234 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
34235 | ||
34236 | fi | |
34237 | done | |
34238 | ||
34239 | ||
34240 | ||
34241 | fi | |
34242 | ||
34243 | ||
34244 | ||
34245 | fi | |
34246 | done | |
34247 | ||
34248 | fi | |
34249 | ||
34250 | ||
34251 | ||
34252 | for ac_func in uname gethostname | |
34253 | do | |
34254 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34255 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34256 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34257 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34259 | else | |
34260 | cat >conftest.$ac_ext <<_ACEOF | |
34261 | /* confdefs.h. */ | |
34262 | _ACEOF | |
34263 | cat confdefs.h >>conftest.$ac_ext | |
34264 | cat >>conftest.$ac_ext <<_ACEOF | |
34265 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34266 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34267 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34268 | #define $ac_func innocuous_$ac_func | |
34269 | ||
a848cd7e SC |
34270 | /* System header to define __stub macros and hopefully few prototypes, |
34271 | which can conflict with char $ac_func (); below. | |
34272 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34273 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34274 | |
a848cd7e SC |
34275 | #ifdef __STDC__ |
34276 | # include <limits.h> | |
34277 | #else | |
34278 | # include <assert.h> | |
34279 | #endif | |
ac1cb8d3 VS |
34280 | |
34281 | #undef $ac_func | |
34282 | ||
a848cd7e SC |
34283 | /* Override any gcc2 internal prototype to avoid an error. */ |
34284 | #ifdef __cplusplus | |
34285 | extern "C" | |
34286 | { | |
34287 | #endif | |
34288 | /* We use char because int might match the return type of a gcc2 | |
34289 | builtin and then its argument prototype would still apply. */ | |
34290 | char $ac_func (); | |
34291 | /* The GNU C library defines this for functions which it implements | |
34292 | to always fail with ENOSYS. Some functions are actually named | |
34293 | something starting with __ and the normal name is an alias. */ | |
34294 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34295 | choke me | |
34296 | #else | |
34297 | char (*f) () = $ac_func; | |
34298 | #endif | |
34299 | #ifdef __cplusplus | |
34300 | } | |
34301 | #endif | |
34302 | ||
34303 | int | |
34304 | main () | |
34305 | { | |
34306 | return f != $ac_func; | |
34307 | ; | |
34308 | return 0; | |
34309 | } | |
34310 | _ACEOF | |
34311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34313 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34314 | ac_status=$? |
ac1cb8d3 VS |
34315 | grep -v '^ *+' conftest.er1 >conftest.err |
34316 | rm -f conftest.er1 | |
34317 | cat conftest.err >&5 | |
a848cd7e SC |
34318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34319 | (exit $ac_status); } && | |
6ebeb4c7 | 34320 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34322 | (eval $ac_try) 2>&5 | |
34323 | ac_status=$? | |
34324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34325 | (exit $ac_status); }; } && | |
34326 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34328 | (eval $ac_try) 2>&5 | |
34329 | ac_status=$? | |
34330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34331 | (exit $ac_status); }; }; then | |
34332 | eval "$as_ac_var=yes" | |
34333 | else | |
34334 | echo "$as_me: failed program was:" >&5 | |
34335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34336 | ||
34337 | eval "$as_ac_var=no" | |
34338 | fi | |
ac1cb8d3 VS |
34339 | rm -f conftest.err conftest.$ac_objext \ |
34340 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34341 | fi |
34342 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34343 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34344 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34345 | cat >>confdefs.h <<_ACEOF | |
34346 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34347 | _ACEOF | |
34348 | break | |
34349 | fi | |
34350 | done | |
34351 | ||
34352 | ||
34353 | ||
34354 | ||
34355 | ac_ext=cc | |
34356 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34357 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34358 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34359 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34360 | ||
34361 | ||
34362 | ||
34363 | for ac_func in strtok_r | |
34364 | do | |
34365 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34366 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34367 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34368 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34370 | else | |
34371 | cat >conftest.$ac_ext <<_ACEOF | |
34372 | /* confdefs.h. */ | |
34373 | _ACEOF | |
34374 | cat confdefs.h >>conftest.$ac_ext | |
34375 | cat >>conftest.$ac_ext <<_ACEOF | |
34376 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34377 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34378 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34379 | #define $ac_func innocuous_$ac_func | |
34380 | ||
a848cd7e SC |
34381 | /* System header to define __stub macros and hopefully few prototypes, |
34382 | which can conflict with char $ac_func (); below. | |
34383 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34384 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34385 | |
a848cd7e SC |
34386 | #ifdef __STDC__ |
34387 | # include <limits.h> | |
34388 | #else | |
34389 | # include <assert.h> | |
34390 | #endif | |
ac1cb8d3 VS |
34391 | |
34392 | #undef $ac_func | |
34393 | ||
a848cd7e SC |
34394 | /* Override any gcc2 internal prototype to avoid an error. */ |
34395 | #ifdef __cplusplus | |
34396 | extern "C" | |
34397 | { | |
34398 | #endif | |
34399 | /* We use char because int might match the return type of a gcc2 | |
34400 | builtin and then its argument prototype would still apply. */ | |
34401 | char $ac_func (); | |
34402 | /* The GNU C library defines this for functions which it implements | |
34403 | to always fail with ENOSYS. Some functions are actually named | |
34404 | something starting with __ and the normal name is an alias. */ | |
34405 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34406 | choke me | |
34407 | #else | |
34408 | char (*f) () = $ac_func; | |
34409 | #endif | |
34410 | #ifdef __cplusplus | |
34411 | } | |
34412 | #endif | |
34413 | ||
34414 | int | |
34415 | main () | |
34416 | { | |
34417 | return f != $ac_func; | |
34418 | ; | |
34419 | return 0; | |
34420 | } | |
34421 | _ACEOF | |
34422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34424 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34425 | ac_status=$? |
ac1cb8d3 VS |
34426 | grep -v '^ *+' conftest.er1 >conftest.err |
34427 | rm -f conftest.er1 | |
34428 | cat conftest.err >&5 | |
a848cd7e SC |
34429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34430 | (exit $ac_status); } && | |
6ebeb4c7 | 34431 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34433 | (eval $ac_try) 2>&5 | |
34434 | ac_status=$? | |
34435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34436 | (exit $ac_status); }; } && | |
34437 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34439 | (eval $ac_try) 2>&5 | |
34440 | ac_status=$? | |
34441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34442 | (exit $ac_status); }; }; then | |
34443 | eval "$as_ac_var=yes" | |
34444 | else | |
34445 | echo "$as_me: failed program was:" >&5 | |
34446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34447 | ||
34448 | eval "$as_ac_var=no" | |
34449 | fi | |
ac1cb8d3 VS |
34450 | rm -f conftest.err conftest.$ac_objext \ |
34451 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34452 | fi |
34453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34454 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34455 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34456 | cat >>confdefs.h <<_ACEOF | |
34457 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34458 | _ACEOF | |
34459 | ||
34460 | fi | |
34461 | done | |
34462 | ||
34463 | ||
34464 | ac_ext=c | |
34465 | ac_cpp='$CPP $CPPFLAGS' | |
34466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34469 | ||
34470 | ||
34471 | INET_LINK= | |
34472 | ||
34473 | for ac_func in inet_addr | |
34474 | do | |
34475 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34476 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34477 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34478 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34480 | else | |
34481 | cat >conftest.$ac_ext <<_ACEOF | |
34482 | /* confdefs.h. */ | |
34483 | _ACEOF | |
34484 | cat confdefs.h >>conftest.$ac_ext | |
34485 | cat >>conftest.$ac_ext <<_ACEOF | |
34486 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34487 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34488 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34489 | #define $ac_func innocuous_$ac_func | |
34490 | ||
a848cd7e SC |
34491 | /* System header to define __stub macros and hopefully few prototypes, |
34492 | which can conflict with char $ac_func (); below. | |
34493 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34494 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34495 | |
a848cd7e SC |
34496 | #ifdef __STDC__ |
34497 | # include <limits.h> | |
34498 | #else | |
34499 | # include <assert.h> | |
34500 | #endif | |
ac1cb8d3 VS |
34501 | |
34502 | #undef $ac_func | |
34503 | ||
a848cd7e SC |
34504 | /* Override any gcc2 internal prototype to avoid an error. */ |
34505 | #ifdef __cplusplus | |
34506 | extern "C" | |
34507 | { | |
34508 | #endif | |
34509 | /* We use char because int might match the return type of a gcc2 | |
34510 | builtin and then its argument prototype would still apply. */ | |
34511 | char $ac_func (); | |
34512 | /* The GNU C library defines this for functions which it implements | |
34513 | to always fail with ENOSYS. Some functions are actually named | |
34514 | something starting with __ and the normal name is an alias. */ | |
34515 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34516 | choke me | |
34517 | #else | |
34518 | char (*f) () = $ac_func; | |
34519 | #endif | |
34520 | #ifdef __cplusplus | |
34521 | } | |
34522 | #endif | |
34523 | ||
34524 | int | |
34525 | main () | |
34526 | { | |
34527 | return f != $ac_func; | |
34528 | ; | |
34529 | return 0; | |
34530 | } | |
34531 | _ACEOF | |
34532 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34534 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34535 | ac_status=$? |
ac1cb8d3 VS |
34536 | grep -v '^ *+' conftest.er1 >conftest.err |
34537 | rm -f conftest.er1 | |
34538 | cat conftest.err >&5 | |
a848cd7e SC |
34539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34540 | (exit $ac_status); } && | |
6ebeb4c7 | 34541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34543 | (eval $ac_try) 2>&5 | |
34544 | ac_status=$? | |
34545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34546 | (exit $ac_status); }; } && | |
34547 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34549 | (eval $ac_try) 2>&5 | |
34550 | ac_status=$? | |
34551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34552 | (exit $ac_status); }; }; then | |
34553 | eval "$as_ac_var=yes" | |
34554 | else | |
34555 | echo "$as_me: failed program was:" >&5 | |
34556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34557 | ||
34558 | eval "$as_ac_var=no" | |
34559 | fi | |
ac1cb8d3 VS |
34560 | rm -f conftest.err conftest.$ac_objext \ |
34561 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34562 | fi |
34563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34564 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34565 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34566 | cat >>confdefs.h <<_ACEOF | |
34567 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34568 | _ACEOF | |
34569 | cat >>confdefs.h <<\_ACEOF | |
34570 | #define HAVE_INET_ADDR 1 | |
34571 | _ACEOF | |
34572 | ||
34573 | else | |
34574 | ||
34575 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
34576 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
34577 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
34578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34579 | else | |
34580 | ac_check_lib_save_LIBS=$LIBS | |
34581 | LIBS="-lnsl $LIBS" | |
34582 | cat >conftest.$ac_ext <<_ACEOF | |
34583 | /* confdefs.h. */ | |
34584 | _ACEOF | |
34585 | cat confdefs.h >>conftest.$ac_ext | |
34586 | cat >>conftest.$ac_ext <<_ACEOF | |
34587 | /* end confdefs.h. */ | |
34588 | ||
34589 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34590 | #ifdef __cplusplus | |
34591 | extern "C" | |
34592 | #endif | |
34593 | /* We use char because int might match the return type of a gcc2 | |
34594 | builtin and then its argument prototype would still apply. */ | |
34595 | char inet_addr (); | |
34596 | int | |
34597 | main () | |
34598 | { | |
34599 | inet_addr (); | |
34600 | ; | |
34601 | return 0; | |
34602 | } | |
34603 | _ACEOF | |
34604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34606 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34607 | ac_status=$? |
ac1cb8d3 VS |
34608 | grep -v '^ *+' conftest.er1 >conftest.err |
34609 | rm -f conftest.er1 | |
34610 | cat conftest.err >&5 | |
a848cd7e SC |
34611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34612 | (exit $ac_status); } && | |
6ebeb4c7 | 34613 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34615 | (eval $ac_try) 2>&5 | |
34616 | ac_status=$? | |
34617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34618 | (exit $ac_status); }; } && | |
34619 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34621 | (eval $ac_try) 2>&5 | |
34622 | ac_status=$? | |
34623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34624 | (exit $ac_status); }; }; then | |
34625 | ac_cv_lib_nsl_inet_addr=yes | |
34626 | else | |
34627 | echo "$as_me: failed program was:" >&5 | |
34628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34629 | ||
34630 | ac_cv_lib_nsl_inet_addr=no | |
34631 | fi | |
ac1cb8d3 VS |
34632 | rm -f conftest.err conftest.$ac_objext \ |
34633 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34634 | LIBS=$ac_check_lib_save_LIBS |
34635 | fi | |
34636 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
34637 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
34638 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
34639 | INET_LINK="nsl" | |
34640 | else | |
34641 | ||
34642 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
34643 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
34644 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
34645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34646 | else | |
34647 | ac_check_lib_save_LIBS=$LIBS | |
34648 | LIBS="-lresolv $LIBS" | |
34649 | cat >conftest.$ac_ext <<_ACEOF | |
34650 | /* confdefs.h. */ | |
34651 | _ACEOF | |
34652 | cat confdefs.h >>conftest.$ac_ext | |
34653 | cat >>conftest.$ac_ext <<_ACEOF | |
34654 | /* end confdefs.h. */ | |
34655 | ||
34656 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34657 | #ifdef __cplusplus | |
34658 | extern "C" | |
34659 | #endif | |
34660 | /* We use char because int might match the return type of a gcc2 | |
34661 | builtin and then its argument prototype would still apply. */ | |
34662 | char inet_addr (); | |
34663 | int | |
34664 | main () | |
34665 | { | |
34666 | inet_addr (); | |
34667 | ; | |
34668 | return 0; | |
34669 | } | |
34670 | _ACEOF | |
34671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34673 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34674 | ac_status=$? |
ac1cb8d3 VS |
34675 | grep -v '^ *+' conftest.er1 >conftest.err |
34676 | rm -f conftest.er1 | |
34677 | cat conftest.err >&5 | |
a848cd7e SC |
34678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34679 | (exit $ac_status); } && | |
6ebeb4c7 | 34680 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34682 | (eval $ac_try) 2>&5 | |
34683 | ac_status=$? | |
34684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34685 | (exit $ac_status); }; } && | |
34686 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34688 | (eval $ac_try) 2>&5 | |
34689 | ac_status=$? | |
34690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34691 | (exit $ac_status); }; }; then | |
34692 | ac_cv_lib_resolv_inet_addr=yes | |
34693 | else | |
34694 | echo "$as_me: failed program was:" >&5 | |
34695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34696 | ||
34697 | ac_cv_lib_resolv_inet_addr=no | |
34698 | fi | |
ac1cb8d3 VS |
34699 | rm -f conftest.err conftest.$ac_objext \ |
34700 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34701 | LIBS=$ac_check_lib_save_LIBS |
34702 | fi | |
34703 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
34704 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
34705 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
34706 | INET_LINK="resolv" | |
34707 | else | |
34708 | ||
34709 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
34710 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
34711 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
34712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34713 | else | |
34714 | ac_check_lib_save_LIBS=$LIBS | |
34715 | LIBS="-lsocket $LIBS" | |
34716 | cat >conftest.$ac_ext <<_ACEOF | |
34717 | /* confdefs.h. */ | |
34718 | _ACEOF | |
34719 | cat confdefs.h >>conftest.$ac_ext | |
34720 | cat >>conftest.$ac_ext <<_ACEOF | |
34721 | /* end confdefs.h. */ | |
34722 | ||
34723 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34724 | #ifdef __cplusplus | |
34725 | extern "C" | |
34726 | #endif | |
34727 | /* We use char because int might match the return type of a gcc2 | |
34728 | builtin and then its argument prototype would still apply. */ | |
34729 | char inet_addr (); | |
34730 | int | |
34731 | main () | |
34732 | { | |
34733 | inet_addr (); | |
34734 | ; | |
34735 | return 0; | |
34736 | } | |
34737 | _ACEOF | |
34738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34740 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34741 | ac_status=$? |
ac1cb8d3 VS |
34742 | grep -v '^ *+' conftest.er1 >conftest.err |
34743 | rm -f conftest.er1 | |
34744 | cat conftest.err >&5 | |
a848cd7e SC |
34745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34746 | (exit $ac_status); } && | |
6ebeb4c7 | 34747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34749 | (eval $ac_try) 2>&5 | |
34750 | ac_status=$? | |
34751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34752 | (exit $ac_status); }; } && | |
34753 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34755 | (eval $ac_try) 2>&5 | |
34756 | ac_status=$? | |
34757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34758 | (exit $ac_status); }; }; then | |
34759 | ac_cv_lib_socket_inet_addr=yes | |
34760 | else | |
34761 | echo "$as_me: failed program was:" >&5 | |
34762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34763 | ||
34764 | ac_cv_lib_socket_inet_addr=no | |
34765 | fi | |
ac1cb8d3 VS |
34766 | rm -f conftest.err conftest.$ac_objext \ |
34767 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34768 | LIBS=$ac_check_lib_save_LIBS |
34769 | fi | |
34770 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
34771 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
34772 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
34773 | INET_LINK="socket" | |
34774 | ||
34775 | fi | |
34776 | ||
34777 | ||
34778 | ||
34779 | fi | |
34780 | ||
34781 | ||
34782 | ||
34783 | fi | |
34784 | ||
34785 | ||
34786 | ||
34787 | fi | |
34788 | done | |
34789 | ||
34790 | ||
34791 | ||
34792 | for ac_func in inet_aton | |
34793 | do | |
34794 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34795 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34796 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34797 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34799 | else | |
34800 | cat >conftest.$ac_ext <<_ACEOF | |
34801 | /* confdefs.h. */ | |
34802 | _ACEOF | |
34803 | cat confdefs.h >>conftest.$ac_ext | |
34804 | cat >>conftest.$ac_ext <<_ACEOF | |
34805 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34806 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34807 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34808 | #define $ac_func innocuous_$ac_func | |
34809 | ||
a848cd7e SC |
34810 | /* System header to define __stub macros and hopefully few prototypes, |
34811 | which can conflict with char $ac_func (); below. | |
34812 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34813 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34814 | |
a848cd7e SC |
34815 | #ifdef __STDC__ |
34816 | # include <limits.h> | |
34817 | #else | |
34818 | # include <assert.h> | |
34819 | #endif | |
ac1cb8d3 VS |
34820 | |
34821 | #undef $ac_func | |
34822 | ||
a848cd7e SC |
34823 | /* Override any gcc2 internal prototype to avoid an error. */ |
34824 | #ifdef __cplusplus | |
34825 | extern "C" | |
34826 | { | |
34827 | #endif | |
34828 | /* We use char because int might match the return type of a gcc2 | |
34829 | builtin and then its argument prototype would still apply. */ | |
34830 | char $ac_func (); | |
34831 | /* The GNU C library defines this for functions which it implements | |
34832 | to always fail with ENOSYS. Some functions are actually named | |
34833 | something starting with __ and the normal name is an alias. */ | |
34834 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34835 | choke me | |
34836 | #else | |
34837 | char (*f) () = $ac_func; | |
34838 | #endif | |
34839 | #ifdef __cplusplus | |
34840 | } | |
34841 | #endif | |
34842 | ||
34843 | int | |
34844 | main () | |
34845 | { | |
34846 | return f != $ac_func; | |
34847 | ; | |
34848 | return 0; | |
34849 | } | |
34850 | _ACEOF | |
34851 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34853 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34854 | ac_status=$? |
ac1cb8d3 VS |
34855 | grep -v '^ *+' conftest.er1 >conftest.err |
34856 | rm -f conftest.er1 | |
34857 | cat conftest.err >&5 | |
a848cd7e SC |
34858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34859 | (exit $ac_status); } && | |
6ebeb4c7 | 34860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34862 | (eval $ac_try) 2>&5 | |
34863 | ac_status=$? | |
34864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34865 | (exit $ac_status); }; } && | |
34866 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34868 | (eval $ac_try) 2>&5 | |
34869 | ac_status=$? | |
34870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34871 | (exit $ac_status); }; }; then | |
34872 | eval "$as_ac_var=yes" | |
34873 | else | |
34874 | echo "$as_me: failed program was:" >&5 | |
34875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34876 | ||
34877 | eval "$as_ac_var=no" | |
34878 | fi | |
ac1cb8d3 VS |
34879 | rm -f conftest.err conftest.$ac_objext \ |
34880 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34881 | fi |
34882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34883 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34884 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34885 | cat >>confdefs.h <<_ACEOF | |
34886 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34887 | _ACEOF | |
34888 | cat >>confdefs.h <<\_ACEOF | |
34889 | #define HAVE_INET_ATON 1 | |
34890 | _ACEOF | |
34891 | ||
34892 | else | |
34893 | ||
34894 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
34895 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
34896 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
34897 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
34898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34899 | else | |
34900 | ac_check_lib_save_LIBS=$LIBS | |
34901 | LIBS="-l$INET_LINK $LIBS" | |
34902 | cat >conftest.$ac_ext <<_ACEOF | |
34903 | /* confdefs.h. */ | |
34904 | _ACEOF | |
34905 | cat confdefs.h >>conftest.$ac_ext | |
34906 | cat >>conftest.$ac_ext <<_ACEOF | |
34907 | /* end confdefs.h. */ | |
34908 | ||
34909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34910 | #ifdef __cplusplus | |
34911 | extern "C" | |
34912 | #endif | |
34913 | /* We use char because int might match the return type of a gcc2 | |
34914 | builtin and then its argument prototype would still apply. */ | |
34915 | char inet_aton (); | |
34916 | int | |
34917 | main () | |
34918 | { | |
34919 | inet_aton (); | |
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_c_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_Lib=yes" | |
34946 | else | |
34947 | echo "$as_me: failed program was:" >&5 | |
34948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34949 | ||
34950 | eval "$as_ac_Lib=no" | |
34951 | fi | |
ac1cb8d3 VS |
34952 | rm -f conftest.err conftest.$ac_objext \ |
34953 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34954 | LIBS=$ac_check_lib_save_LIBS |
34955 | fi | |
34956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
34957 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
34958 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
34959 | cat >>confdefs.h <<\_ACEOF | |
34960 | #define HAVE_INET_ATON 1 | |
34961 | _ACEOF | |
34962 | ||
34963 | fi | |
34964 | ||
34965 | ||
34966 | fi | |
34967 | done | |
34968 | ||
34969 | ||
34970 | if test "x$INET_LINK" != "x"; then | |
34971 | cat >>confdefs.h <<\_ACEOF | |
34972 | #define HAVE_INET_ADDR 1 | |
34973 | _ACEOF | |
34974 | ||
34975 | INET_LINK=" -l$INET_LINK" | |
34976 | fi | |
34977 | ||
34978 | fi | |
34979 | ||
34980 | ||
34981 | ||
34982 | EXTRALIBS_ESD= | |
34983 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
34984 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
34985 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
34986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34987 | else | |
34988 | ac_check_lib_save_LIBS=$LIBS | |
34989 | LIBS="-lesd $LIBS" | |
34990 | cat >conftest.$ac_ext <<_ACEOF | |
34991 | /* confdefs.h. */ | |
34992 | _ACEOF | |
34993 | cat confdefs.h >>conftest.$ac_ext | |
34994 | cat >>conftest.$ac_ext <<_ACEOF | |
34995 | /* end confdefs.h. */ | |
34996 | ||
34997 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34998 | #ifdef __cplusplus | |
34999 | extern "C" | |
35000 | #endif | |
35001 | /* We use char because int might match the return type of a gcc2 | |
35002 | builtin and then its argument prototype would still apply. */ | |
35003 | char esd_close (); | |
35004 | int | |
35005 | main () | |
35006 | { | |
35007 | esd_close (); | |
35008 | ; | |
35009 | return 0; | |
35010 | } | |
35011 | _ACEOF | |
35012 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35014 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35015 | ac_status=$? |
ac1cb8d3 VS |
35016 | grep -v '^ *+' conftest.er1 >conftest.err |
35017 | rm -f conftest.er1 | |
35018 | cat conftest.err >&5 | |
a848cd7e SC |
35019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35020 | (exit $ac_status); } && | |
6ebeb4c7 | 35021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35023 | (eval $ac_try) 2>&5 | |
35024 | ac_status=$? | |
35025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35026 | (exit $ac_status); }; } && | |
35027 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35029 | (eval $ac_try) 2>&5 | |
35030 | ac_status=$? | |
35031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35032 | (exit $ac_status); }; }; then | |
35033 | ac_cv_lib_esd_esd_close=yes | |
35034 | else | |
35035 | echo "$as_me: failed program was:" >&5 | |
35036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35037 | ||
35038 | ac_cv_lib_esd_esd_close=no | |
35039 | fi | |
ac1cb8d3 VS |
35040 | rm -f conftest.err conftest.$ac_objext \ |
35041 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35042 | LIBS=$ac_check_lib_save_LIBS |
35043 | fi | |
35044 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
35045 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
35046 | if test $ac_cv_lib_esd_esd_close = yes; then | |
35047 | ||
35048 | ||
35049 | for ac_header in esd.h | |
35050 | do | |
35051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35057 | fi | |
35058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35060 | else | |
35061 | # Is the header compilable? | |
35062 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35064 | cat >conftest.$ac_ext <<_ACEOF | |
35065 | /* confdefs.h. */ | |
35066 | _ACEOF | |
35067 | cat confdefs.h >>conftest.$ac_ext | |
35068 | cat >>conftest.$ac_ext <<_ACEOF | |
35069 | /* end confdefs.h. */ | |
35070 | $ac_includes_default | |
35071 | #include <$ac_header> | |
35072 | _ACEOF | |
35073 | rm -f conftest.$ac_objext | |
35074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35075 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35076 | ac_status=$? |
ac1cb8d3 VS |
35077 | grep -v '^ *+' conftest.er1 >conftest.err |
35078 | rm -f conftest.er1 | |
35079 | cat conftest.err >&5 | |
a848cd7e SC |
35080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35081 | (exit $ac_status); } && | |
6ebeb4c7 | 35082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35084 | (eval $ac_try) 2>&5 | |
35085 | ac_status=$? | |
35086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35087 | (exit $ac_status); }; } && | |
35088 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35090 | (eval $ac_try) 2>&5 | |
35091 | ac_status=$? | |
35092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35093 | (exit $ac_status); }; }; then | |
35094 | ac_header_compiler=yes | |
35095 | else | |
35096 | echo "$as_me: failed program was:" >&5 | |
35097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35098 | ||
35099 | ac_header_compiler=no | |
35100 | fi | |
ac1cb8d3 | 35101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35102 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35103 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35104 | ||
35105 | # Is the header present? | |
35106 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35107 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35108 | cat >conftest.$ac_ext <<_ACEOF | |
35109 | /* confdefs.h. */ | |
35110 | _ACEOF | |
35111 | cat confdefs.h >>conftest.$ac_ext | |
35112 | cat >>conftest.$ac_ext <<_ACEOF | |
35113 | /* end confdefs.h. */ | |
35114 | #include <$ac_header> | |
35115 | _ACEOF | |
35116 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35117 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35118 | ac_status=$? | |
35119 | grep -v '^ *+' conftest.er1 >conftest.err | |
35120 | rm -f conftest.er1 | |
35121 | cat conftest.err >&5 | |
35122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35123 | (exit $ac_status); } >/dev/null; then | |
35124 | if test -s conftest.err; then | |
35125 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35126 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35127 | else |
35128 | ac_cpp_err= | |
35129 | fi | |
35130 | else | |
35131 | ac_cpp_err=yes | |
35132 | fi | |
35133 | if test -z "$ac_cpp_err"; then | |
35134 | ac_header_preproc=yes | |
35135 | else | |
35136 | echo "$as_me: failed program was:" >&5 | |
35137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35138 | ||
35139 | ac_header_preproc=no | |
35140 | fi | |
35141 | rm -f conftest.err conftest.$ac_ext | |
35142 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35143 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35144 | ||
35145 | # So? What about this header? | |
ac1cb8d3 VS |
35146 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35147 | yes:no: ) | |
a848cd7e SC |
35148 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35149 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35151 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35152 | ac_header_preproc=yes | |
a848cd7e | 35153 | ;; |
ac1cb8d3 | 35154 | no:yes:* ) |
a848cd7e SC |
35155 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35156 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35157 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35158 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35159 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35160 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35161 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35162 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35164 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35165 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35166 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35167 | ( |
35168 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35169 | ## ----------------------------------------- ## |
35170 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35171 | ## ----------------------------------------- ## | |
a848cd7e SC |
35172 | _ASBOX |
35173 | ) | | |
35174 | sed "s/^/$as_me: WARNING: /" >&2 | |
35175 | ;; | |
35176 | esac | |
35177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35181 | else | |
ac1cb8d3 | 35182 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35183 | fi |
35184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35185 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35186 | ||
35187 | fi | |
35188 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35189 | cat >>confdefs.h <<_ACEOF | |
35190 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35191 | _ACEOF | |
35192 | ||
35193 | EXTRALIBS_ESD="-lesd" | |
35194 | ||
35195 | fi | |
35196 | ||
35197 | done | |
35198 | ||
35199 | ||
35200 | fi | |
35201 | ||
35202 | ||
35203 | ||
35204 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
35205 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
35206 | cat >conftest.$ac_ext <<_ACEOF | |
35207 | /* confdefs.h. */ | |
35208 | _ACEOF | |
35209 | cat confdefs.h >>conftest.$ac_ext | |
35210 | cat >>conftest.$ac_ext <<_ACEOF | |
35211 | /* end confdefs.h. */ | |
35212 | #ifdef __linux__ | |
35213 | #include <linux/cdrom.h> | |
35214 | #else | |
35215 | /* For Solaris */ | |
35216 | #include <sys/cdio.h> | |
35217 | #endif | |
35218 | ||
35219 | int | |
35220 | main () | |
35221 | { | |
35222 | struct cdrom_tocentry entry, old_entry; | |
35223 | ; | |
35224 | return 0; | |
35225 | } | |
35226 | _ACEOF | |
35227 | rm -f conftest.$ac_objext | |
35228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35229 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35230 | ac_status=$? |
ac1cb8d3 VS |
35231 | grep -v '^ *+' conftest.er1 >conftest.err |
35232 | rm -f conftest.er1 | |
35233 | cat conftest.err >&5 | |
a848cd7e SC |
35234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35235 | (exit $ac_status); } && | |
6ebeb4c7 | 35236 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35238 | (eval $ac_try) 2>&5 | |
35239 | ac_status=$? | |
35240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35241 | (exit $ac_status); }; } && | |
35242 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35244 | (eval $ac_try) 2>&5 | |
35245 | ac_status=$? | |
35246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35247 | (exit $ac_status); }; }; then | |
35248 | echo "$as_me:$LINENO: result: yes" >&5 | |
35249 | echo "${ECHO_T}yes" >&6 | |
35250 | cat >>confdefs.h <<\_ACEOF | |
35251 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
35252 | _ACEOF | |
35253 | ||
35254 | else | |
35255 | echo "$as_me: failed program was:" >&5 | |
35256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35257 | ||
35258 | echo "$as_me:$LINENO: result: no" >&5 | |
35259 | echo "${ECHO_T}no" >&6 | |
35260 | fi | |
ac1cb8d3 | 35261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35262 | |
35263 | ||
35264 | cat >confcache <<\_ACEOF | |
35265 | # This file is a shell script that caches the results of configure | |
35266 | # tests run on this system so they can be shared between configure | |
35267 | # scripts and configure runs, see configure's option --config-cache. | |
35268 | # It is not useful on other systems. If it contains results you don't | |
35269 | # want to keep, you may remove or edit it. | |
35270 | # | |
35271 | # config.status only pays attention to the cache file if you give it | |
35272 | # the --recheck option to rerun configure. | |
35273 | # | |
35274 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
35275 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
35276 | # following values. | |
35277 | ||
35278 | _ACEOF | |
35279 | ||
35280 | # The following way of writing the cache mishandles newlines in values, | |
35281 | # but we know of no workaround that is simple, portable, and efficient. | |
35282 | # So, don't put newlines in cache variables' values. | |
35283 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
35284 | # and sets the high bit in the cache file unless we assign to the vars. | |
35285 | { | |
35286 | (set) 2>&1 | | |
35287 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
35288 | *ac_space=\ *) | |
35289 | # `set' does not quote correctly, so add quotes (double-quote | |
35290 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
35291 | sed -n \ | |
ac1cb8d3 VS |
35292 | "s/'/'\\\\''/g; |
35293 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
35294 | ;; |
35295 | *) | |
35296 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
35297 | sed -n \ | |
ac1cb8d3 | 35298 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
35299 | ;; |
35300 | esac; | |
35301 | } | | |
35302 | sed ' | |
35303 | t clear | |
35304 | : clear | |
35305 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
35306 | t end | |
35307 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
35308 | : end' >>confcache | |
35309 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
35310 | if test -w $cache_file; then | |
35311 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
35312 | cat confcache >$cache_file | |
35313 | else | |
35314 | echo "not updating unwritable cache $cache_file" | |
35315 | fi | |
35316 | fi | |
35317 | rm -f confcache | |
35318 | ||
35319 | ||
35320 | CPP_MT_FLAG= | |
35321 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
35322 | ||
35323 | ||
35324 | THREADS_LINK= | |
35325 | THREADS_CFLAGS= | |
35326 | ||
35327 | if test "$wxUSE_THREADS" = "yes" ; then | |
35328 | if test "$USE_BEOS" = 1; then | |
35329 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
35330 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
35331 | wxUSE_THREADS="no" | |
35332 | fi | |
35333 | fi | |
35334 | ||
35335 | if test "$wxUSE_THREADS" = "yes" ; then | |
35336 | ||
35337 | ||
35338 | THREAD_OPTS="-pthread" | |
35339 | case "${host}" in | |
35340 | *-*-solaris2* | *-*-sunos4* ) | |
35341 | if test "x$GCC" = "xyes"; then | |
35342 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
35343 | else | |
35344 | THREAD_OPTS="-mt $THREAD_OPTS" | |
35345 | fi | |
35346 | ;; | |
35347 | *-*-freebsd*) | |
35348 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
35349 | ;; | |
35350 | *-*-darwin* | *-*-cygwin* ) | |
35351 | THREAD_OPTS="" | |
35352 | ;; | |
35353 | *-*-aix*) | |
35354 | THREAD_OPTS="pthreads" | |
35355 | ;; | |
35356 | *-hp-hpux* ) | |
00421666 MW |
35357 | if test "x$GCC" = "xyes"; then |
35358 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
35359 | THREAD_OPTS="" | |
35360 | else | |
efdf6afe | 35361 | THREAD_OPTS="" |
a848cd7e SC |
35362 | fi |
35363 | ;; | |
35364 | ||
35365 | *-*-irix* ) | |
35366 | if test "x$GCC" = "xyes"; then | |
35367 | THREAD_OPTS="" | |
35368 | fi | |
35369 | ;; | |
35370 | ||
35371 | *-*-*UnixWare*) | |
35372 | if test "x$GCC" != "xyes"; then | |
35373 | THREAD_OPTS="-Ethread" | |
35374 | fi | |
35375 | ;; | |
35376 | esac | |
35377 | ||
35378 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
35379 | ||
35380 | THREADS_OK=no | |
35381 | for flag in $THREAD_OPTS; do | |
35382 | case $flag in | |
35383 | none) | |
35384 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
35385 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
35386 | ;; | |
35387 | ||
35388 | -*) | |
35389 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
35390 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
35391 | THREADS_CFLAGS="$flag" | |
35392 | ;; | |
35393 | ||
35394 | *) | |
35395 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
35396 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
35397 | THREADS_LINK="-l$flag" | |
35398 | ;; | |
35399 | esac | |
35400 | ||
35401 | save_LIBS="$LIBS" | |
35402 | save_CFLAGS="$CFLAGS" | |
35403 | LIBS="$THREADS_LINK $LIBS" | |
35404 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
35405 | ||
35406 | cat >conftest.$ac_ext <<_ACEOF | |
35407 | /* confdefs.h. */ | |
35408 | _ACEOF | |
35409 | cat confdefs.h >>conftest.$ac_ext | |
35410 | cat >>conftest.$ac_ext <<_ACEOF | |
35411 | /* end confdefs.h. */ | |
35412 | #include <pthread.h> | |
35413 | int | |
35414 | main () | |
35415 | { | |
35416 | pthread_create(0,0,0,0); | |
35417 | ; | |
35418 | return 0; | |
35419 | } | |
35420 | _ACEOF | |
35421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35423 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35424 | ac_status=$? |
ac1cb8d3 VS |
35425 | grep -v '^ *+' conftest.er1 >conftest.err |
35426 | rm -f conftest.er1 | |
35427 | cat conftest.err >&5 | |
a848cd7e SC |
35428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35429 | (exit $ac_status); } && | |
6ebeb4c7 | 35430 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35432 | (eval $ac_try) 2>&5 | |
35433 | ac_status=$? | |
35434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35435 | (exit $ac_status); }; } && | |
35436 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35438 | (eval $ac_try) 2>&5 | |
35439 | ac_status=$? | |
35440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35441 | (exit $ac_status); }; }; then | |
35442 | THREADS_OK=yes | |
35443 | else | |
35444 | echo "$as_me: failed program was:" >&5 | |
35445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35446 | ||
35447 | fi | |
ac1cb8d3 VS |
35448 | rm -f conftest.err conftest.$ac_objext \ |
35449 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35450 | |
35451 | LIBS="$save_LIBS" | |
35452 | CFLAGS="$save_CFLAGS" | |
35453 | ||
35454 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
35455 | echo "${ECHO_T}$THREADS_OK" >&6 | |
35456 | if test "x$THREADS_OK" = "xyes"; then | |
35457 | break; | |
35458 | fi | |
35459 | ||
35460 | THREADS_LINK="" | |
35461 | THREADS_CFLAGS="" | |
35462 | done | |
35463 | ||
35464 | if test "x$THREADS_OK" != "xyes"; then | |
35465 | wxUSE_THREADS=no | |
35466 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
35467 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
35468 | else | |
35469 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
35470 | LIBS="$THREADS_LINK $LIBS" | |
35471 | ||
35472 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
35473 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
35474 | flag=no | |
35475 | case "${host}" in | |
35476 | *-aix*) | |
35477 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
35478 | flag="-D_THREAD_SAFE" | |
35479 | ;; | |
35480 | *-freebsd*) | |
35481 | flag="-D_THREAD_SAFE" | |
35482 | ;; | |
35483 | *-hp-hpux* ) | |
35484 | flag="-D_REENTRANT" | |
35485 | if test "x$GCC" != "xyes"; then | |
35486 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
35487 | fi | |
35488 | ;; | |
35489 | *solaris* | alpha*-osf*) | |
35490 | flag="-D_REENTRANT" | |
35491 | ;; | |
35492 | esac | |
35493 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
35494 | echo "${ECHO_T}${flag}" >&6 | |
35495 | if test "x$flag" != xno; then | |
35496 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
35497 | fi | |
35498 | ||
35499 | if test "x$THREADS_CFLAGS" != "x"; then | |
35500 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
35501 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
35502 | fi | |
35503 | fi | |
35504 | fi | |
35505 | ||
35506 | if test "$wxUSE_THREADS" = "yes" ; then | |
35507 | ||
35508 | for ac_func in thr_setconcurrency | |
35509 | do | |
35510 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35511 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35512 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35513 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35515 | else | |
35516 | cat >conftest.$ac_ext <<_ACEOF | |
35517 | /* confdefs.h. */ | |
35518 | _ACEOF | |
35519 | cat confdefs.h >>conftest.$ac_ext | |
35520 | cat >>conftest.$ac_ext <<_ACEOF | |
35521 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35522 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35524 | #define $ac_func innocuous_$ac_func | |
35525 | ||
a848cd7e SC |
35526 | /* System header to define __stub macros and hopefully few prototypes, |
35527 | which can conflict with char $ac_func (); below. | |
35528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35529 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35530 | |
a848cd7e SC |
35531 | #ifdef __STDC__ |
35532 | # include <limits.h> | |
35533 | #else | |
35534 | # include <assert.h> | |
35535 | #endif | |
ac1cb8d3 VS |
35536 | |
35537 | #undef $ac_func | |
35538 | ||
a848cd7e SC |
35539 | /* Override any gcc2 internal prototype to avoid an error. */ |
35540 | #ifdef __cplusplus | |
35541 | extern "C" | |
35542 | { | |
35543 | #endif | |
35544 | /* We use char because int might match the return type of a gcc2 | |
35545 | builtin and then its argument prototype would still apply. */ | |
35546 | char $ac_func (); | |
35547 | /* The GNU C library defines this for functions which it implements | |
35548 | to always fail with ENOSYS. Some functions are actually named | |
35549 | something starting with __ and the normal name is an alias. */ | |
35550 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35551 | choke me | |
35552 | #else | |
35553 | char (*f) () = $ac_func; | |
35554 | #endif | |
35555 | #ifdef __cplusplus | |
35556 | } | |
35557 | #endif | |
35558 | ||
35559 | int | |
35560 | main () | |
35561 | { | |
35562 | return f != $ac_func; | |
35563 | ; | |
35564 | return 0; | |
35565 | } | |
35566 | _ACEOF | |
35567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35569 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35570 | ac_status=$? |
ac1cb8d3 VS |
35571 | grep -v '^ *+' conftest.er1 >conftest.err |
35572 | rm -f conftest.er1 | |
35573 | cat conftest.err >&5 | |
a848cd7e SC |
35574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35575 | (exit $ac_status); } && | |
6ebeb4c7 | 35576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35578 | (eval $ac_try) 2>&5 | |
35579 | ac_status=$? | |
35580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35581 | (exit $ac_status); }; } && | |
35582 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35584 | (eval $ac_try) 2>&5 | |
35585 | ac_status=$? | |
35586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35587 | (exit $ac_status); }; }; then | |
35588 | eval "$as_ac_var=yes" | |
35589 | else | |
35590 | echo "$as_me: failed program was:" >&5 | |
35591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35592 | ||
35593 | eval "$as_ac_var=no" | |
35594 | fi | |
ac1cb8d3 VS |
35595 | rm -f conftest.err conftest.$ac_objext \ |
35596 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35597 | fi |
35598 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35599 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35600 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35601 | cat >>confdefs.h <<_ACEOF | |
35602 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35603 | _ACEOF | |
35604 | ||
35605 | fi | |
35606 | done | |
35607 | ||
35608 | ||
6ebeb4c7 VZ |
35609 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
35610 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
35611 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
35612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35613 | else | |
35614 | ||
35615 | cat >conftest.$ac_ext <<_ACEOF | |
35616 | /* confdefs.h. */ | |
35617 | _ACEOF | |
35618 | cat confdefs.h >>conftest.$ac_ext | |
35619 | cat >>conftest.$ac_ext <<_ACEOF | |
35620 | /* end confdefs.h. */ | |
35621 | #include <pthread.h> | |
35622 | void ThreadCleanupFunc(void *p); | |
35623 | ||
35624 | int | |
35625 | main () | |
35626 | { | |
35627 | ||
35628 | void *p; | |
35629 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
35630 | pthread_cleanup_pop(0); | |
35631 | ||
35632 | ; | |
35633 | return 0; | |
35634 | } | |
35635 | _ACEOF | |
35636 | rm -f conftest.$ac_objext | |
35637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35638 | (eval $ac_compile) 2>conftest.er1 | |
35639 | ac_status=$? | |
35640 | grep -v '^ *+' conftest.er1 >conftest.err | |
35641 | rm -f conftest.er1 | |
35642 | cat conftest.err >&5 | |
35643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35644 | (exit $ac_status); } && | |
35645 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
35646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35647 | (eval $ac_try) 2>&5 | |
35648 | ac_status=$? | |
35649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35650 | (exit $ac_status); }; } && | |
35651 | { ac_try='test -s conftest.$ac_objext' | |
35652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35653 | (eval $ac_try) 2>&5 | |
35654 | ac_status=$? | |
35655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35656 | (exit $ac_status); }; }; then | |
35657 | ||
35658 | wx_cv_func_pthread_cleanup=yes | |
35659 | ||
35660 | else | |
35661 | echo "$as_me: failed program was:" >&5 | |
35662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35663 | ||
35664 | ||
35665 | wx_cv_func_pthread_cleanup=no | |
35666 | ||
35667 | ||
35668 | fi | |
35669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35670 | ||
35671 | fi | |
35672 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
35673 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
35674 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
35675 | cat >>confdefs.h <<\_ACEOF | |
35676 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
35677 | _ACEOF | |
35678 | ||
35679 | fi | |
35680 | ||
a848cd7e SC |
35681 | |
35682 | for ac_header in sched.h | |
35683 | do | |
35684 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35686 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35687 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35688 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35690 | fi | |
35691 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35692 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35693 | else | |
35694 | # Is the header compilable? | |
35695 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35696 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35697 | cat >conftest.$ac_ext <<_ACEOF | |
35698 | /* confdefs.h. */ | |
35699 | _ACEOF | |
35700 | cat confdefs.h >>conftest.$ac_ext | |
35701 | cat >>conftest.$ac_ext <<_ACEOF | |
35702 | /* end confdefs.h. */ | |
35703 | $ac_includes_default | |
35704 | #include <$ac_header> | |
35705 | _ACEOF | |
35706 | rm -f conftest.$ac_objext | |
35707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35708 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35709 | ac_status=$? |
ac1cb8d3 VS |
35710 | grep -v '^ *+' conftest.er1 >conftest.err |
35711 | rm -f conftest.er1 | |
35712 | cat conftest.err >&5 | |
a848cd7e SC |
35713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35714 | (exit $ac_status); } && | |
6ebeb4c7 | 35715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35717 | (eval $ac_try) 2>&5 | |
35718 | ac_status=$? | |
35719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35720 | (exit $ac_status); }; } && | |
35721 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35723 | (eval $ac_try) 2>&5 | |
35724 | ac_status=$? | |
35725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35726 | (exit $ac_status); }; }; then | |
35727 | ac_header_compiler=yes | |
35728 | else | |
35729 | echo "$as_me: failed program was:" >&5 | |
35730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35731 | ||
35732 | ac_header_compiler=no | |
35733 | fi | |
ac1cb8d3 | 35734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35735 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35736 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35737 | ||
35738 | # Is the header present? | |
35739 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35740 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35741 | cat >conftest.$ac_ext <<_ACEOF | |
35742 | /* confdefs.h. */ | |
35743 | _ACEOF | |
35744 | cat confdefs.h >>conftest.$ac_ext | |
35745 | cat >>conftest.$ac_ext <<_ACEOF | |
35746 | /* end confdefs.h. */ | |
35747 | #include <$ac_header> | |
35748 | _ACEOF | |
35749 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35750 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35751 | ac_status=$? | |
35752 | grep -v '^ *+' conftest.er1 >conftest.err | |
35753 | rm -f conftest.er1 | |
35754 | cat conftest.err >&5 | |
35755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35756 | (exit $ac_status); } >/dev/null; then | |
35757 | if test -s conftest.err; then | |
35758 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35759 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35760 | else |
35761 | ac_cpp_err= | |
35762 | fi | |
35763 | else | |
35764 | ac_cpp_err=yes | |
35765 | fi | |
35766 | if test -z "$ac_cpp_err"; then | |
35767 | ac_header_preproc=yes | |
35768 | else | |
35769 | echo "$as_me: failed program was:" >&5 | |
35770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35771 | ||
35772 | ac_header_preproc=no | |
35773 | fi | |
35774 | rm -f conftest.err conftest.$ac_ext | |
35775 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35776 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35777 | ||
35778 | # So? What about this header? | |
ac1cb8d3 VS |
35779 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35780 | yes:no: ) | |
a848cd7e SC |
35781 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35782 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35783 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35784 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35785 | ac_header_preproc=yes | |
a848cd7e | 35786 | ;; |
ac1cb8d3 | 35787 | no:yes:* ) |
a848cd7e SC |
35788 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35789 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35790 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35791 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35792 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35793 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35794 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35795 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35796 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35797 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35798 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35799 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35800 | ( |
35801 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35802 | ## ----------------------------------------- ## |
35803 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35804 | ## ----------------------------------------- ## | |
a848cd7e SC |
35805 | _ASBOX |
35806 | ) | | |
35807 | sed "s/^/$as_me: WARNING: /" >&2 | |
35808 | ;; | |
35809 | esac | |
35810 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35811 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35814 | else | |
ac1cb8d3 | 35815 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35816 | fi |
35817 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35818 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35819 | ||
35820 | fi | |
35821 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35822 | cat >>confdefs.h <<_ACEOF | |
35823 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35824 | _ACEOF | |
35825 | ||
35826 | fi | |
35827 | ||
35828 | done | |
35829 | ||
35830 | if test "$ac_cv_header_sched_h" = "yes"; then | |
35831 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
35832 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
35833 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
35834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35835 | else | |
35836 | cat >conftest.$ac_ext <<_ACEOF | |
35837 | /* confdefs.h. */ | |
35838 | _ACEOF | |
35839 | cat confdefs.h >>conftest.$ac_ext | |
35840 | cat >>conftest.$ac_ext <<_ACEOF | |
35841 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35842 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
35843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35844 | #define sched_yield innocuous_sched_yield | |
35845 | ||
a848cd7e SC |
35846 | /* System header to define __stub macros and hopefully few prototypes, |
35847 | which can conflict with char sched_yield (); below. | |
35848 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35849 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35850 | |
a848cd7e SC |
35851 | #ifdef __STDC__ |
35852 | # include <limits.h> | |
35853 | #else | |
35854 | # include <assert.h> | |
35855 | #endif | |
ac1cb8d3 VS |
35856 | |
35857 | #undef sched_yield | |
35858 | ||
a848cd7e SC |
35859 | /* Override any gcc2 internal prototype to avoid an error. */ |
35860 | #ifdef __cplusplus | |
35861 | extern "C" | |
35862 | { | |
35863 | #endif | |
35864 | /* We use char because int might match the return type of a gcc2 | |
35865 | builtin and then its argument prototype would still apply. */ | |
35866 | char sched_yield (); | |
35867 | /* The GNU C library defines this for functions which it implements | |
35868 | to always fail with ENOSYS. Some functions are actually named | |
35869 | something starting with __ and the normal name is an alias. */ | |
35870 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
35871 | choke me | |
35872 | #else | |
35873 | char (*f) () = sched_yield; | |
35874 | #endif | |
35875 | #ifdef __cplusplus | |
35876 | } | |
35877 | #endif | |
35878 | ||
35879 | int | |
35880 | main () | |
35881 | { | |
35882 | return f != sched_yield; | |
35883 | ; | |
35884 | return 0; | |
35885 | } | |
35886 | _ACEOF | |
35887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35889 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35890 | ac_status=$? |
ac1cb8d3 VS |
35891 | grep -v '^ *+' conftest.er1 >conftest.err |
35892 | rm -f conftest.er1 | |
35893 | cat conftest.err >&5 | |
a848cd7e SC |
35894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35895 | (exit $ac_status); } && | |
6ebeb4c7 | 35896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35898 | (eval $ac_try) 2>&5 | |
35899 | ac_status=$? | |
35900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35901 | (exit $ac_status); }; } && | |
35902 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35904 | (eval $ac_try) 2>&5 | |
35905 | ac_status=$? | |
35906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35907 | (exit $ac_status); }; }; then | |
35908 | ac_cv_func_sched_yield=yes | |
35909 | else | |
35910 | echo "$as_me: failed program was:" >&5 | |
35911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35912 | ||
35913 | ac_cv_func_sched_yield=no | |
35914 | fi | |
ac1cb8d3 VS |
35915 | rm -f conftest.err conftest.$ac_objext \ |
35916 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35917 | fi |
35918 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
35919 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
35920 | if test $ac_cv_func_sched_yield = yes; then | |
35921 | cat >>confdefs.h <<\_ACEOF | |
35922 | #define HAVE_SCHED_YIELD 1 | |
35923 | _ACEOF | |
35924 | ||
35925 | else | |
35926 | ||
35927 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
35928 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
35929 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
35930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35931 | else | |
35932 | ac_check_lib_save_LIBS=$LIBS | |
35933 | LIBS="-lposix4 $LIBS" | |
35934 | cat >conftest.$ac_ext <<_ACEOF | |
35935 | /* confdefs.h. */ | |
35936 | _ACEOF | |
35937 | cat confdefs.h >>conftest.$ac_ext | |
35938 | cat >>conftest.$ac_ext <<_ACEOF | |
35939 | /* end confdefs.h. */ | |
35940 | ||
35941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35942 | #ifdef __cplusplus | |
35943 | extern "C" | |
35944 | #endif | |
35945 | /* We use char because int might match the return type of a gcc2 | |
35946 | builtin and then its argument prototype would still apply. */ | |
35947 | char sched_yield (); | |
35948 | int | |
35949 | main () | |
35950 | { | |
35951 | sched_yield (); | |
35952 | ; | |
35953 | return 0; | |
35954 | } | |
35955 | _ACEOF | |
35956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35958 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35959 | ac_status=$? |
ac1cb8d3 VS |
35960 | grep -v '^ *+' conftest.er1 >conftest.err |
35961 | rm -f conftest.er1 | |
35962 | cat conftest.err >&5 | |
a848cd7e SC |
35963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35964 | (exit $ac_status); } && | |
6ebeb4c7 | 35965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35967 | (eval $ac_try) 2>&5 | |
35968 | ac_status=$? | |
35969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35970 | (exit $ac_status); }; } && | |
35971 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35973 | (eval $ac_try) 2>&5 | |
35974 | ac_status=$? | |
35975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35976 | (exit $ac_status); }; }; then | |
35977 | ac_cv_lib_posix4_sched_yield=yes | |
35978 | else | |
35979 | echo "$as_me: failed program was:" >&5 | |
35980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35981 | ||
35982 | ac_cv_lib_posix4_sched_yield=no | |
35983 | fi | |
ac1cb8d3 VS |
35984 | rm -f conftest.err conftest.$ac_objext \ |
35985 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35986 | LIBS=$ac_check_lib_save_LIBS |
35987 | fi | |
35988 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
35989 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
35990 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
35991 | cat >>confdefs.h <<\_ACEOF | |
35992 | #define HAVE_SCHED_YIELD 1 | |
35993 | _ACEOF | |
35994 | POSIX4_LINK=" -lposix4" | |
35995 | else | |
35996 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
35997 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
35998 | ||
35999 | fi | |
36000 | ||
36001 | ||
36002 | ||
36003 | fi | |
36004 | ||
36005 | fi | |
36006 | ||
36007 | HAVE_PRIOR_FUNCS=0 | |
36008 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
36009 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
36010 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
36011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36012 | else | |
36013 | cat >conftest.$ac_ext <<_ACEOF | |
36014 | /* confdefs.h. */ | |
36015 | _ACEOF | |
36016 | cat confdefs.h >>conftest.$ac_ext | |
36017 | cat >>conftest.$ac_ext <<_ACEOF | |
36018 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36019 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
36020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36021 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
36022 | ||
a848cd7e SC |
36023 | /* System header to define __stub macros and hopefully few prototypes, |
36024 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
36025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36026 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36027 | |
a848cd7e SC |
36028 | #ifdef __STDC__ |
36029 | # include <limits.h> | |
36030 | #else | |
36031 | # include <assert.h> | |
36032 | #endif | |
ac1cb8d3 VS |
36033 | |
36034 | #undef pthread_attr_getschedpolicy | |
36035 | ||
a848cd7e SC |
36036 | /* Override any gcc2 internal prototype to avoid an error. */ |
36037 | #ifdef __cplusplus | |
36038 | extern "C" | |
36039 | { | |
36040 | #endif | |
36041 | /* We use char because int might match the return type of a gcc2 | |
36042 | builtin and then its argument prototype would still apply. */ | |
36043 | char pthread_attr_getschedpolicy (); | |
36044 | /* The GNU C library defines this for functions which it implements | |
36045 | to always fail with ENOSYS. Some functions are actually named | |
36046 | something starting with __ and the normal name is an alias. */ | |
36047 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
36048 | choke me | |
36049 | #else | |
36050 | char (*f) () = pthread_attr_getschedpolicy; | |
36051 | #endif | |
36052 | #ifdef __cplusplus | |
36053 | } | |
36054 | #endif | |
36055 | ||
36056 | int | |
36057 | main () | |
36058 | { | |
36059 | return f != pthread_attr_getschedpolicy; | |
36060 | ; | |
36061 | return 0; | |
36062 | } | |
36063 | _ACEOF | |
36064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36066 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36067 | ac_status=$? |
ac1cb8d3 VS |
36068 | grep -v '^ *+' conftest.er1 >conftest.err |
36069 | rm -f conftest.er1 | |
36070 | cat conftest.err >&5 | |
a848cd7e SC |
36071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36072 | (exit $ac_status); } && | |
6ebeb4c7 | 36073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36075 | (eval $ac_try) 2>&5 | |
36076 | ac_status=$? | |
36077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36078 | (exit $ac_status); }; } && | |
36079 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36081 | (eval $ac_try) 2>&5 | |
36082 | ac_status=$? | |
36083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36084 | (exit $ac_status); }; }; then | |
36085 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
36086 | else | |
36087 | echo "$as_me: failed program was:" >&5 | |
36088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36089 | ||
36090 | ac_cv_func_pthread_attr_getschedpolicy=no | |
36091 | fi | |
ac1cb8d3 VS |
36092 | rm -f conftest.err conftest.$ac_objext \ |
36093 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36094 | fi |
36095 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
36096 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
36097 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
36098 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
36099 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
36100 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
36101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36102 | else | |
36103 | cat >conftest.$ac_ext <<_ACEOF | |
36104 | /* confdefs.h. */ | |
36105 | _ACEOF | |
36106 | cat confdefs.h >>conftest.$ac_ext | |
36107 | cat >>conftest.$ac_ext <<_ACEOF | |
36108 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36109 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
36110 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36111 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
36112 | ||
a848cd7e SC |
36113 | /* System header to define __stub macros and hopefully few prototypes, |
36114 | which can conflict with char pthread_attr_setschedparam (); below. | |
36115 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36116 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36117 | |
a848cd7e SC |
36118 | #ifdef __STDC__ |
36119 | # include <limits.h> | |
36120 | #else | |
36121 | # include <assert.h> | |
36122 | #endif | |
ac1cb8d3 VS |
36123 | |
36124 | #undef pthread_attr_setschedparam | |
36125 | ||
a848cd7e SC |
36126 | /* Override any gcc2 internal prototype to avoid an error. */ |
36127 | #ifdef __cplusplus | |
36128 | extern "C" | |
36129 | { | |
36130 | #endif | |
36131 | /* We use char because int might match the return type of a gcc2 | |
36132 | builtin and then its argument prototype would still apply. */ | |
36133 | char pthread_attr_setschedparam (); | |
36134 | /* The GNU C library defines this for functions which it implements | |
36135 | to always fail with ENOSYS. Some functions are actually named | |
36136 | something starting with __ and the normal name is an alias. */ | |
36137 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
36138 | choke me | |
36139 | #else | |
36140 | char (*f) () = pthread_attr_setschedparam; | |
36141 | #endif | |
36142 | #ifdef __cplusplus | |
36143 | } | |
36144 | #endif | |
36145 | ||
36146 | int | |
36147 | main () | |
36148 | { | |
36149 | return f != pthread_attr_setschedparam; | |
36150 | ; | |
36151 | return 0; | |
36152 | } | |
36153 | _ACEOF | |
36154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36156 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36157 | ac_status=$? |
ac1cb8d3 VS |
36158 | grep -v '^ *+' conftest.er1 >conftest.err |
36159 | rm -f conftest.er1 | |
36160 | cat conftest.err >&5 | |
a848cd7e SC |
36161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36162 | (exit $ac_status); } && | |
6ebeb4c7 | 36163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36165 | (eval $ac_try) 2>&5 | |
36166 | ac_status=$? | |
36167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36168 | (exit $ac_status); }; } && | |
36169 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36171 | (eval $ac_try) 2>&5 | |
36172 | ac_status=$? | |
36173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36174 | (exit $ac_status); }; }; then | |
36175 | ac_cv_func_pthread_attr_setschedparam=yes | |
36176 | else | |
36177 | echo "$as_me: failed program was:" >&5 | |
36178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36179 | ||
36180 | ac_cv_func_pthread_attr_setschedparam=no | |
36181 | fi | |
ac1cb8d3 VS |
36182 | rm -f conftest.err conftest.$ac_objext \ |
36183 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36184 | fi |
36185 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
36186 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
36187 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
36188 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
36189 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
36190 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
36191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36192 | else | |
36193 | cat >conftest.$ac_ext <<_ACEOF | |
36194 | /* confdefs.h. */ | |
36195 | _ACEOF | |
36196 | cat confdefs.h >>conftest.$ac_ext | |
36197 | cat >>conftest.$ac_ext <<_ACEOF | |
36198 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36199 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
36200 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36201 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
36202 | ||
a848cd7e SC |
36203 | /* System header to define __stub macros and hopefully few prototypes, |
36204 | which can conflict with char sched_get_priority_max (); below. | |
36205 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36206 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36207 | |
a848cd7e SC |
36208 | #ifdef __STDC__ |
36209 | # include <limits.h> | |
36210 | #else | |
36211 | # include <assert.h> | |
36212 | #endif | |
ac1cb8d3 VS |
36213 | |
36214 | #undef sched_get_priority_max | |
36215 | ||
a848cd7e SC |
36216 | /* Override any gcc2 internal prototype to avoid an error. */ |
36217 | #ifdef __cplusplus | |
36218 | extern "C" | |
36219 | { | |
36220 | #endif | |
36221 | /* We use char because int might match the return type of a gcc2 | |
36222 | builtin and then its argument prototype would still apply. */ | |
36223 | char sched_get_priority_max (); | |
36224 | /* The GNU C library defines this for functions which it implements | |
36225 | to always fail with ENOSYS. Some functions are actually named | |
36226 | something starting with __ and the normal name is an alias. */ | |
36227 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
36228 | choke me | |
36229 | #else | |
36230 | char (*f) () = sched_get_priority_max; | |
36231 | #endif | |
36232 | #ifdef __cplusplus | |
36233 | } | |
36234 | #endif | |
36235 | ||
36236 | int | |
36237 | main () | |
36238 | { | |
36239 | return f != sched_get_priority_max; | |
36240 | ; | |
36241 | return 0; | |
36242 | } | |
36243 | _ACEOF | |
36244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36246 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36247 | ac_status=$? |
ac1cb8d3 VS |
36248 | grep -v '^ *+' conftest.er1 >conftest.err |
36249 | rm -f conftest.er1 | |
36250 | cat conftest.err >&5 | |
a848cd7e SC |
36251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36252 | (exit $ac_status); } && | |
6ebeb4c7 | 36253 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36255 | (eval $ac_try) 2>&5 | |
36256 | ac_status=$? | |
36257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36258 | (exit $ac_status); }; } && | |
36259 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36261 | (eval $ac_try) 2>&5 | |
36262 | ac_status=$? | |
36263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36264 | (exit $ac_status); }; }; then | |
36265 | ac_cv_func_sched_get_priority_max=yes | |
36266 | else | |
36267 | echo "$as_me: failed program was:" >&5 | |
36268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36269 | ||
36270 | ac_cv_func_sched_get_priority_max=no | |
36271 | fi | |
ac1cb8d3 VS |
36272 | rm -f conftest.err conftest.$ac_objext \ |
36273 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36274 | fi |
36275 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
36276 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
36277 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
36278 | HAVE_PRIOR_FUNCS=1 | |
36279 | else | |
36280 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
36281 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
36282 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
36283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36284 | else | |
36285 | ac_check_lib_save_LIBS=$LIBS | |
36286 | LIBS="-lposix4 $LIBS" | |
36287 | cat >conftest.$ac_ext <<_ACEOF | |
36288 | /* confdefs.h. */ | |
36289 | _ACEOF | |
36290 | cat confdefs.h >>conftest.$ac_ext | |
36291 | cat >>conftest.$ac_ext <<_ACEOF | |
36292 | /* end confdefs.h. */ | |
36293 | ||
36294 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36295 | #ifdef __cplusplus | |
36296 | extern "C" | |
36297 | #endif | |
36298 | /* We use char because int might match the return type of a gcc2 | |
36299 | builtin and then its argument prototype would still apply. */ | |
36300 | char sched_get_priority_max (); | |
36301 | int | |
36302 | main () | |
36303 | { | |
36304 | sched_get_priority_max (); | |
36305 | ; | |
36306 | return 0; | |
36307 | } | |
36308 | _ACEOF | |
36309 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36311 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36312 | ac_status=$? |
ac1cb8d3 VS |
36313 | grep -v '^ *+' conftest.er1 >conftest.err |
36314 | rm -f conftest.er1 | |
36315 | cat conftest.err >&5 | |
a848cd7e SC |
36316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36317 | (exit $ac_status); } && | |
6ebeb4c7 | 36318 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36320 | (eval $ac_try) 2>&5 | |
36321 | ac_status=$? | |
36322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36323 | (exit $ac_status); }; } && | |
36324 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36326 | (eval $ac_try) 2>&5 | |
36327 | ac_status=$? | |
36328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36329 | (exit $ac_status); }; }; then | |
36330 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
36331 | else | |
36332 | echo "$as_me: failed program was:" >&5 | |
36333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36334 | ||
36335 | ac_cv_lib_posix4_sched_get_priority_max=no | |
36336 | fi | |
ac1cb8d3 VS |
36337 | rm -f conftest.err conftest.$ac_objext \ |
36338 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36339 | LIBS=$ac_check_lib_save_LIBS |
36340 | fi | |
36341 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
36342 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
36343 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
36344 | ||
36345 | HAVE_PRIOR_FUNCS=1 | |
36346 | POSIX4_LINK=" -lposix4" | |
36347 | ||
36348 | fi | |
36349 | ||
36350 | ||
36351 | fi | |
36352 | ||
36353 | ||
36354 | fi | |
36355 | ||
36356 | ||
36357 | fi | |
36358 | ||
36359 | ||
36360 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
36361 | cat >>confdefs.h <<\_ACEOF | |
36362 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
36363 | _ACEOF | |
36364 | ||
36365 | else | |
36366 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
36367 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
36368 | fi | |
36369 | ||
36370 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
36371 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
36372 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
36373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36374 | else | |
36375 | cat >conftest.$ac_ext <<_ACEOF | |
36376 | /* confdefs.h. */ | |
36377 | _ACEOF | |
36378 | cat confdefs.h >>conftest.$ac_ext | |
36379 | cat >>conftest.$ac_ext <<_ACEOF | |
36380 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36381 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
36382 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36383 | #define pthread_cancel innocuous_pthread_cancel | |
36384 | ||
a848cd7e SC |
36385 | /* System header to define __stub macros and hopefully few prototypes, |
36386 | which can conflict with char pthread_cancel (); below. | |
36387 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36388 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36389 | |
a848cd7e SC |
36390 | #ifdef __STDC__ |
36391 | # include <limits.h> | |
36392 | #else | |
36393 | # include <assert.h> | |
36394 | #endif | |
ac1cb8d3 VS |
36395 | |
36396 | #undef pthread_cancel | |
36397 | ||
a848cd7e SC |
36398 | /* Override any gcc2 internal prototype to avoid an error. */ |
36399 | #ifdef __cplusplus | |
36400 | extern "C" | |
36401 | { | |
36402 | #endif | |
36403 | /* We use char because int might match the return type of a gcc2 | |
36404 | builtin and then its argument prototype would still apply. */ | |
36405 | char pthread_cancel (); | |
36406 | /* The GNU C library defines this for functions which it implements | |
36407 | to always fail with ENOSYS. Some functions are actually named | |
36408 | something starting with __ and the normal name is an alias. */ | |
36409 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
36410 | choke me | |
36411 | #else | |
36412 | char (*f) () = pthread_cancel; | |
36413 | #endif | |
36414 | #ifdef __cplusplus | |
36415 | } | |
36416 | #endif | |
36417 | ||
36418 | int | |
36419 | main () | |
36420 | { | |
36421 | return f != pthread_cancel; | |
36422 | ; | |
36423 | return 0; | |
36424 | } | |
36425 | _ACEOF | |
36426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36428 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36429 | ac_status=$? |
ac1cb8d3 VS |
36430 | grep -v '^ *+' conftest.er1 >conftest.err |
36431 | rm -f conftest.er1 | |
36432 | cat conftest.err >&5 | |
a848cd7e SC |
36433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36434 | (exit $ac_status); } && | |
6ebeb4c7 | 36435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36437 | (eval $ac_try) 2>&5 | |
36438 | ac_status=$? | |
36439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36440 | (exit $ac_status); }; } && | |
36441 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36443 | (eval $ac_try) 2>&5 | |
36444 | ac_status=$? | |
36445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36446 | (exit $ac_status); }; }; then | |
36447 | ac_cv_func_pthread_cancel=yes | |
36448 | else | |
36449 | echo "$as_me: failed program was:" >&5 | |
36450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36451 | ||
36452 | ac_cv_func_pthread_cancel=no | |
36453 | fi | |
ac1cb8d3 VS |
36454 | rm -f conftest.err conftest.$ac_objext \ |
36455 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36456 | fi |
36457 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
36458 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
36459 | if test $ac_cv_func_pthread_cancel = yes; then | |
36460 | cat >>confdefs.h <<\_ACEOF | |
36461 | #define HAVE_PTHREAD_CANCEL 1 | |
36462 | _ACEOF | |
36463 | ||
36464 | else | |
36465 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
36466 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
36467 | fi | |
36468 | ||
36469 | ||
abc736fd MW |
36470 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
36471 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
36472 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
36473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36474 | else | |
36475 | cat >conftest.$ac_ext <<_ACEOF | |
36476 | /* confdefs.h. */ | |
36477 | _ACEOF | |
36478 | cat confdefs.h >>conftest.$ac_ext | |
36479 | cat >>conftest.$ac_ext <<_ACEOF | |
36480 | /* end confdefs.h. */ | |
36481 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
36482 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36483 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
36484 | ||
36485 | /* System header to define __stub macros and hopefully few prototypes, | |
36486 | which can conflict with char pthread_attr_setstacksize (); below. | |
36487 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36488 | <limits.h> exists even on freestanding compilers. */ | |
36489 | ||
36490 | #ifdef __STDC__ | |
36491 | # include <limits.h> | |
36492 | #else | |
36493 | # include <assert.h> | |
36494 | #endif | |
36495 | ||
36496 | #undef pthread_attr_setstacksize | |
36497 | ||
36498 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36499 | #ifdef __cplusplus | |
36500 | extern "C" | |
36501 | { | |
36502 | #endif | |
36503 | /* We use char because int might match the return type of a gcc2 | |
36504 | builtin and then its argument prototype would still apply. */ | |
36505 | char pthread_attr_setstacksize (); | |
36506 | /* The GNU C library defines this for functions which it implements | |
36507 | to always fail with ENOSYS. Some functions are actually named | |
36508 | something starting with __ and the normal name is an alias. */ | |
36509 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
36510 | choke me | |
36511 | #else | |
36512 | char (*f) () = pthread_attr_setstacksize; | |
36513 | #endif | |
36514 | #ifdef __cplusplus | |
36515 | } | |
36516 | #endif | |
36517 | ||
36518 | int | |
36519 | main () | |
36520 | { | |
36521 | return f != pthread_attr_setstacksize; | |
36522 | ; | |
36523 | return 0; | |
36524 | } | |
36525 | _ACEOF | |
36526 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36528 | (eval $ac_link) 2>conftest.er1 | |
36529 | ac_status=$? | |
36530 | grep -v '^ *+' conftest.er1 >conftest.err | |
36531 | rm -f conftest.er1 | |
36532 | cat conftest.err >&5 | |
36533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36534 | (exit $ac_status); } && | |
6ebeb4c7 | 36535 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
36536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36537 | (eval $ac_try) 2>&5 | |
36538 | ac_status=$? | |
36539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36540 | (exit $ac_status); }; } && | |
36541 | { ac_try='test -s conftest$ac_exeext' | |
36542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36543 | (eval $ac_try) 2>&5 | |
36544 | ac_status=$? | |
36545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36546 | (exit $ac_status); }; }; then | |
36547 | ac_cv_func_pthread_attr_setstacksize=yes | |
36548 | else | |
36549 | echo "$as_me: failed program was:" >&5 | |
36550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36551 | ||
36552 | ac_cv_func_pthread_attr_setstacksize=no | |
36553 | fi | |
36554 | rm -f conftest.err conftest.$ac_objext \ | |
36555 | conftest$ac_exeext conftest.$ac_ext | |
36556 | fi | |
36557 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
36558 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
36559 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
36560 | cat >>confdefs.h <<\_ACEOF | |
36561 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
36562 | _ACEOF | |
36563 | ||
36564 | fi | |
36565 | ||
a848cd7e SC |
36566 | |
36567 | ||
36568 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
36569 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
36570 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
36571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36572 | else | |
36573 | ||
36574 | cat >conftest.$ac_ext <<_ACEOF | |
36575 | /* confdefs.h. */ | |
36576 | _ACEOF | |
36577 | cat confdefs.h >>conftest.$ac_ext | |
36578 | cat >>conftest.$ac_ext <<_ACEOF | |
36579 | /* end confdefs.h. */ | |
36580 | #include <pthread.h> | |
36581 | int | |
36582 | main () | |
36583 | { | |
36584 | ||
36585 | pthread_mutexattr_t attr; | |
36586 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
36587 | ||
36588 | ; | |
36589 | return 0; | |
36590 | } | |
36591 | _ACEOF | |
36592 | rm -f conftest.$ac_objext | |
36593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36594 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36595 | ac_status=$? |
ac1cb8d3 VS |
36596 | grep -v '^ *+' conftest.er1 >conftest.err |
36597 | rm -f conftest.er1 | |
36598 | cat conftest.err >&5 | |
a848cd7e SC |
36599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36600 | (exit $ac_status); } && | |
6ebeb4c7 | 36601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36603 | (eval $ac_try) 2>&5 | |
36604 | ac_status=$? | |
36605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36606 | (exit $ac_status); }; } && | |
36607 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36609 | (eval $ac_try) 2>&5 | |
36610 | ac_status=$? | |
36611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36612 | (exit $ac_status); }; }; then | |
36613 | ||
36614 | wx_cv_type_pthread_mutexattr_t=yes | |
36615 | ||
36616 | else | |
36617 | echo "$as_me: failed program was:" >&5 | |
36618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36619 | ||
36620 | ||
36621 | wx_cv_type_pthread_mutexattr_t=no | |
36622 | ||
36623 | ||
36624 | fi | |
ac1cb8d3 | 36625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36626 | |
36627 | fi | |
36628 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
36629 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
36630 | ||
36631 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
36632 | cat >>confdefs.h <<\_ACEOF | |
36633 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
36634 | _ACEOF | |
36635 | ||
36636 | else | |
36637 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
36638 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
36639 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
36640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36641 | else | |
36642 | ||
36643 | cat >conftest.$ac_ext <<_ACEOF | |
36644 | /* confdefs.h. */ | |
36645 | _ACEOF | |
36646 | cat confdefs.h >>conftest.$ac_ext | |
36647 | cat >>conftest.$ac_ext <<_ACEOF | |
36648 | /* end confdefs.h. */ | |
36649 | #include <pthread.h> | |
36650 | int | |
36651 | main () | |
36652 | { | |
36653 | ||
36654 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
36655 | ||
36656 | ; | |
36657 | return 0; | |
36658 | } | |
36659 | _ACEOF | |
36660 | rm -f conftest.$ac_objext | |
36661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36662 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36663 | ac_status=$? |
ac1cb8d3 VS |
36664 | grep -v '^ *+' conftest.er1 >conftest.err |
36665 | rm -f conftest.er1 | |
36666 | cat conftest.err >&5 | |
a848cd7e SC |
36667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36668 | (exit $ac_status); } && | |
6ebeb4c7 | 36669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36671 | (eval $ac_try) 2>&5 | |
36672 | ac_status=$? | |
36673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36674 | (exit $ac_status); }; } && | |
36675 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36677 | (eval $ac_try) 2>&5 | |
36678 | ac_status=$? | |
36679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36680 | (exit $ac_status); }; }; then | |
36681 | ||
36682 | wx_cv_type_pthread_rec_mutex_init=yes | |
36683 | ||
36684 | else | |
36685 | echo "$as_me: failed program was:" >&5 | |
36686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36687 | ||
36688 | ||
36689 | wx_cv_type_pthread_rec_mutex_init=no | |
36690 | ||
36691 | ||
36692 | fi | |
ac1cb8d3 | 36693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36694 | |
36695 | fi | |
36696 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
36697 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
36698 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
36699 | cat >>confdefs.h <<\_ACEOF | |
36700 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
36701 | _ACEOF | |
36702 | ||
36703 | else | |
36704 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
36705 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
36706 | fi | |
36707 | fi | |
36708 | fi | |
36709 | ||
36710 | else | |
36711 | if test "$wxUSE_THREADS" = "yes" ; then | |
36712 | case "${host}" in | |
36713 | *-*-mingw32* ) | |
36714 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
36715 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
36716 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
36717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36718 | else | |
36719 | ||
36720 | CFLAGS_OLD="$CFLAGS" | |
36721 | CFLAGS="$CFLAGS -mthreads" | |
36722 | cat >conftest.$ac_ext <<_ACEOF | |
36723 | /* confdefs.h. */ | |
36724 | _ACEOF | |
36725 | cat confdefs.h >>conftest.$ac_ext | |
36726 | cat >>conftest.$ac_ext <<_ACEOF | |
36727 | /* end confdefs.h. */ | |
36728 | ||
36729 | int | |
36730 | main () | |
36731 | { | |
36732 | ||
36733 | ; | |
36734 | return 0; | |
36735 | } | |
36736 | _ACEOF | |
36737 | rm -f conftest.$ac_objext | |
36738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36739 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36740 | ac_status=$? |
ac1cb8d3 VS |
36741 | grep -v '^ *+' conftest.er1 >conftest.err |
36742 | rm -f conftest.er1 | |
36743 | cat conftest.err >&5 | |
a848cd7e SC |
36744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36745 | (exit $ac_status); } && | |
6ebeb4c7 | 36746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36748 | (eval $ac_try) 2>&5 | |
36749 | ac_status=$? | |
36750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36751 | (exit $ac_status); }; } && | |
36752 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36754 | (eval $ac_try) 2>&5 | |
36755 | ac_status=$? | |
36756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36757 | (exit $ac_status); }; }; then | |
36758 | wx_cv_cflags_mthread=yes | |
36759 | else | |
36760 | echo "$as_me: failed program was:" >&5 | |
36761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36762 | ||
36763 | wx_cv_cflags_mthread=no | |
36764 | ||
36765 | fi | |
ac1cb8d3 | 36766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36767 | |
36768 | ||
36769 | fi | |
36770 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
36771 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
36772 | ||
36773 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
36774 | CXXFLAGS="$CXXFLAGS -mthreads" | |
36775 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
36776 | LDFLAGS="$LDFLAGS -mthreads" | |
36777 | else | |
36778 | CFLAGS="$CFLAGS_OLD" | |
36779 | fi | |
36780 | ;; | |
36781 | *-pc-os2*emx ) | |
36782 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
36783 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
36784 | LDFLAGS="$LDFLAGS -Zmt" | |
36785 | ;; | |
36786 | esac | |
36787 | fi | |
36788 | fi | |
36789 | ||
36790 | if test "$wxUSE_THREADS" = "yes"; then | |
36791 | cat >>confdefs.h <<\_ACEOF | |
36792 | #define wxUSE_THREADS 1 | |
36793 | _ACEOF | |
36794 | ||
36795 | ||
36796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
36797 | else | |
36798 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
36799 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
36800 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
36801 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
36802 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
36803 | echo "$as_me:$LINENO: result: yes" >&5 | |
36804 | echo "${ECHO_T}yes" >&6 | |
36805 | else | |
36806 | echo "$as_me:$LINENO: result: no" >&5 | |
36807 | echo "${ECHO_T}no" >&6 | |
36808 | fi | |
36809 | fi | |
36810 | fi | |
36811 | ||
36812 | if test "$WXGTK20" = 1 ; then | |
36813 | cat >>confdefs.h <<_ACEOF | |
36814 | #define __WXGTK20__ $WXGTK20 | |
36815 | _ACEOF | |
36816 | ||
36817 | WXGTK12=1 | |
36818 | fi | |
36819 | ||
36820 | if test "$WXGTK12" = 1 ; then | |
36821 | cat >>confdefs.h <<_ACEOF | |
36822 | #define __WXGTK12__ $WXGTK12 | |
36823 | _ACEOF | |
36824 | ||
36825 | fi | |
36826 | ||
36827 | if test "$WXGTK127" = 1 ; then | |
36828 | cat >>confdefs.h <<_ACEOF | |
36829 | #define __WXGTK127__ $WXGTK127 | |
36830 | _ACEOF | |
36831 | ||
36832 | fi | |
36833 | ||
36834 | if test "$WXGPE" = 1 ; then | |
36835 | cat >>confdefs.h <<_ACEOF | |
36836 | #define __WXGPE__ $WXGPE | |
36837 | _ACEOF | |
36838 | ||
36839 | fi | |
36840 | ||
36841 | WXDEBUG= | |
36842 | ||
36843 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
36844 | WXDEBUG="-g" | |
36845 | wxUSE_OPTIMISE=no | |
36846 | fi | |
36847 | ||
36848 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
36849 | wxUSE_DEBUG_INFO=yes | |
18228ab4 MW |
36850 | if test "$GCC" = yes; then |
36851 | WXDEBUG="-ggdb" | |
36852 | fi | |
a848cd7e SC |
36853 | fi |
36854 | ||
36855 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
36856 | cat >>confdefs.h <<\_ACEOF | |
36857 | #define WXDEBUG 1 | |
36858 | _ACEOF | |
36859 | ||
36860 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
36861 | else | |
36862 | if test "$wxUSE_GTK" = 1 ; then | |
36863 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
36864 | fi | |
36865 | fi | |
36866 | ||
36867 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
36868 | cat >>confdefs.h <<\_ACEOF | |
36869 | #define wxUSE_MEMORY_TRACING 1 | |
36870 | _ACEOF | |
36871 | ||
36872 | cat >>confdefs.h <<\_ACEOF | |
36873 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
36874 | _ACEOF | |
36875 | ||
36876 | cat >>confdefs.h <<\_ACEOF | |
36877 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
36878 | _ACEOF | |
36879 | ||
36880 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
36881 | fi | |
36882 | ||
36883 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
df1b269d | 36884 | DMALLOC_LIBS="-ldmallocthcxx" |
a848cd7e SC |
36885 | fi |
36886 | ||
36887 | PROFILE= | |
36888 | if test "$wxUSE_PROFILE" = "yes" ; then | |
36889 | PROFILE=" -pg" | |
36890 | fi | |
36891 | ||
36892 | CODE_GEN_FLAGS= | |
36893 | CODE_GEN_FLAGS_CXX= | |
36894 | if test "$GCC" = "yes" ; then | |
36895 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
36896 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
36897 | fi | |
36898 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
36899 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
36900 | fi | |
36901 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
36902 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
36903 | fi | |
36904 | ||
36905 | case "${host}" in | |
36906 | powerpc*-*-aix* ) | |
36907 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
36908 | ;; | |
36909 | *-hppa* ) | |
36910 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
36911 | ;; | |
36912 | esac | |
36913 | fi | |
36914 | ||
36915 | OPTIMISE= | |
36916 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
36917 | if test "$GCC" = yes ; then | |
36918 | OPTIMISE="-O0" | |
36919 | fi | |
36920 | else | |
36921 | if test "$GCC" = yes ; then | |
36922 | OPTIMISE="-O2" | |
36923 | ||
36924 | case "${host}" in | |
36925 | i586-*-*|i686-*-* ) | |
36926 | OPTIMISE="${OPTIMISE} " | |
36927 | ;; | |
36928 | esac | |
36929 | else | |
36930 | OPTIMISE="-O" | |
36931 | fi | |
36932 | fi | |
36933 | ||
36934 | ||
36935 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
36936 | cat >>confdefs.h <<\_ACEOF | |
36937 | #define WXWIN_COMPATIBILITY_2_2 1 | |
36938 | _ACEOF | |
36939 | ||
36940 | ||
36941 | WXWIN_COMPATIBILITY_2_4="yes" | |
36942 | fi | |
36943 | ||
36944 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
36945 | cat >>confdefs.h <<\_ACEOF | |
36946 | #define WXWIN_COMPATIBILITY_2_4 1 | |
36947 | _ACEOF | |
36948 | ||
36949 | fi | |
36950 | ||
36951 | ||
36952 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 36953 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
36954 | #define wxUSE_GUI 1 |
36955 | _ACEOF | |
36956 | ||
36957 | ||
370fd4c2 | 36958 | fi |
a848cd7e SC |
36959 | |
36960 | ||
36961 | if test "$wxUSE_UNIX" = "yes"; then | |
36962 | cat >>confdefs.h <<\_ACEOF | |
36963 | #define wxUSE_UNIX 1 | |
36964 | _ACEOF | |
36965 | ||
36966 | fi | |
36967 | ||
36968 | ||
36969 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
36970 | ||
36971 | HAVE_DL_FUNCS=0 | |
36972 | HAVE_SHL_FUNCS=0 | |
36973 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
36974 | if test "$USE_DARWIN" = 1; then | |
36975 | HAVE_DL_FUNCS=1 | |
47a7e797 MW |
36976 | elif test "$USE_DOS" = 1; then |
36977 | HAVE_DL_FUNCS=0 | |
a848cd7e SC |
36978 | else |
36979 | ||
36980 | for ac_func in dlopen | |
36981 | do | |
36982 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36983 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36984 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36985 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36987 | else | |
36988 | cat >conftest.$ac_ext <<_ACEOF | |
36989 | /* confdefs.h. */ | |
36990 | _ACEOF | |
36991 | cat confdefs.h >>conftest.$ac_ext | |
36992 | cat >>conftest.$ac_ext <<_ACEOF | |
36993 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36994 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36995 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36996 | #define $ac_func innocuous_$ac_func | |
36997 | ||
a848cd7e SC |
36998 | /* System header to define __stub macros and hopefully few prototypes, |
36999 | which can conflict with char $ac_func (); below. | |
37000 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37001 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37002 | |
a848cd7e SC |
37003 | #ifdef __STDC__ |
37004 | # include <limits.h> | |
37005 | #else | |
37006 | # include <assert.h> | |
37007 | #endif | |
ac1cb8d3 VS |
37008 | |
37009 | #undef $ac_func | |
37010 | ||
a848cd7e SC |
37011 | /* Override any gcc2 internal prototype to avoid an error. */ |
37012 | #ifdef __cplusplus | |
37013 | extern "C" | |
37014 | { | |
37015 | #endif | |
37016 | /* We use char because int might match the return type of a gcc2 | |
37017 | builtin and then its argument prototype would still apply. */ | |
37018 | char $ac_func (); | |
37019 | /* The GNU C library defines this for functions which it implements | |
37020 | to always fail with ENOSYS. Some functions are actually named | |
37021 | something starting with __ and the normal name is an alias. */ | |
37022 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37023 | choke me | |
37024 | #else | |
37025 | char (*f) () = $ac_func; | |
37026 | #endif | |
37027 | #ifdef __cplusplus | |
37028 | } | |
37029 | #endif | |
37030 | ||
37031 | int | |
37032 | main () | |
37033 | { | |
37034 | return f != $ac_func; | |
37035 | ; | |
37036 | return 0; | |
37037 | } | |
37038 | _ACEOF | |
37039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37041 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37042 | ac_status=$? |
ac1cb8d3 VS |
37043 | grep -v '^ *+' conftest.er1 >conftest.err |
37044 | rm -f conftest.er1 | |
37045 | cat conftest.err >&5 | |
a848cd7e SC |
37046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37047 | (exit $ac_status); } && | |
6ebeb4c7 | 37048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37050 | (eval $ac_try) 2>&5 | |
37051 | ac_status=$? | |
37052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37053 | (exit $ac_status); }; } && | |
37054 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37056 | (eval $ac_try) 2>&5 | |
37057 | ac_status=$? | |
37058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37059 | (exit $ac_status); }; }; then | |
37060 | eval "$as_ac_var=yes" | |
37061 | else | |
37062 | echo "$as_me: failed program was:" >&5 | |
37063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37064 | ||
37065 | eval "$as_ac_var=no" | |
37066 | fi | |
ac1cb8d3 VS |
37067 | rm -f conftest.err conftest.$ac_objext \ |
37068 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37069 | fi |
37070 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37071 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37072 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37073 | cat >>confdefs.h <<_ACEOF | |
37074 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37075 | _ACEOF | |
37076 | ||
37077 | cat >>confdefs.h <<\_ACEOF | |
37078 | #define HAVE_DLOPEN 1 | |
37079 | _ACEOF | |
37080 | ||
37081 | HAVE_DL_FUNCS=1 | |
37082 | ||
37083 | else | |
37084 | ||
37085 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
37086 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
37087 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
37088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37089 | else | |
37090 | ac_check_lib_save_LIBS=$LIBS | |
37091 | LIBS="-ldl $LIBS" | |
37092 | cat >conftest.$ac_ext <<_ACEOF | |
37093 | /* confdefs.h. */ | |
37094 | _ACEOF | |
37095 | cat confdefs.h >>conftest.$ac_ext | |
37096 | cat >>conftest.$ac_ext <<_ACEOF | |
37097 | /* end confdefs.h. */ | |
37098 | ||
37099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37100 | #ifdef __cplusplus | |
37101 | extern "C" | |
37102 | #endif | |
37103 | /* We use char because int might match the return type of a gcc2 | |
37104 | builtin and then its argument prototype would still apply. */ | |
37105 | char dlopen (); | |
37106 | int | |
37107 | main () | |
37108 | { | |
37109 | dlopen (); | |
37110 | ; | |
37111 | return 0; | |
37112 | } | |
37113 | _ACEOF | |
37114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37116 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37117 | ac_status=$? |
ac1cb8d3 VS |
37118 | grep -v '^ *+' conftest.er1 >conftest.err |
37119 | rm -f conftest.er1 | |
37120 | cat conftest.err >&5 | |
a848cd7e SC |
37121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37122 | (exit $ac_status); } && | |
6ebeb4c7 | 37123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37125 | (eval $ac_try) 2>&5 | |
37126 | ac_status=$? | |
37127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37128 | (exit $ac_status); }; } && | |
37129 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37131 | (eval $ac_try) 2>&5 | |
37132 | ac_status=$? | |
37133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37134 | (exit $ac_status); }; }; then | |
37135 | ac_cv_lib_dl_dlopen=yes | |
37136 | else | |
37137 | echo "$as_me: failed program was:" >&5 | |
37138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37139 | ||
37140 | ac_cv_lib_dl_dlopen=no | |
37141 | fi | |
ac1cb8d3 VS |
37142 | rm -f conftest.err conftest.$ac_objext \ |
37143 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37144 | LIBS=$ac_check_lib_save_LIBS |
37145 | fi | |
37146 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
37147 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
37148 | if test $ac_cv_lib_dl_dlopen = yes; then | |
37149 | ||
37150 | cat >>confdefs.h <<\_ACEOF | |
37151 | #define HAVE_DLOPEN 1 | |
37152 | _ACEOF | |
37153 | ||
37154 | HAVE_DL_FUNCS=1 | |
37155 | DL_LINK=" -ldl$DL_LINK" | |
37156 | ||
37157 | else | |
37158 | ||
37159 | ||
37160 | for ac_func in shl_load | |
37161 | do | |
37162 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37163 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37164 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37165 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37167 | else | |
37168 | cat >conftest.$ac_ext <<_ACEOF | |
37169 | /* confdefs.h. */ | |
37170 | _ACEOF | |
37171 | cat confdefs.h >>conftest.$ac_ext | |
37172 | cat >>conftest.$ac_ext <<_ACEOF | |
37173 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37174 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37175 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37176 | #define $ac_func innocuous_$ac_func | |
37177 | ||
a848cd7e SC |
37178 | /* System header to define __stub macros and hopefully few prototypes, |
37179 | which can conflict with char $ac_func (); below. | |
37180 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37181 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37182 | |
a848cd7e SC |
37183 | #ifdef __STDC__ |
37184 | # include <limits.h> | |
37185 | #else | |
37186 | # include <assert.h> | |
37187 | #endif | |
ac1cb8d3 VS |
37188 | |
37189 | #undef $ac_func | |
37190 | ||
a848cd7e SC |
37191 | /* Override any gcc2 internal prototype to avoid an error. */ |
37192 | #ifdef __cplusplus | |
37193 | extern "C" | |
37194 | { | |
37195 | #endif | |
37196 | /* We use char because int might match the return type of a gcc2 | |
37197 | builtin and then its argument prototype would still apply. */ | |
37198 | char $ac_func (); | |
37199 | /* The GNU C library defines this for functions which it implements | |
37200 | to always fail with ENOSYS. Some functions are actually named | |
37201 | something starting with __ and the normal name is an alias. */ | |
37202 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37203 | choke me | |
37204 | #else | |
37205 | char (*f) () = $ac_func; | |
37206 | #endif | |
37207 | #ifdef __cplusplus | |
37208 | } | |
37209 | #endif | |
37210 | ||
37211 | int | |
37212 | main () | |
37213 | { | |
37214 | return f != $ac_func; | |
37215 | ; | |
37216 | return 0; | |
37217 | } | |
37218 | _ACEOF | |
37219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37221 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37222 | ac_status=$? |
ac1cb8d3 VS |
37223 | grep -v '^ *+' conftest.er1 >conftest.err |
37224 | rm -f conftest.er1 | |
37225 | cat conftest.err >&5 | |
a848cd7e SC |
37226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37227 | (exit $ac_status); } && | |
6ebeb4c7 | 37228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37230 | (eval $ac_try) 2>&5 | |
37231 | ac_status=$? | |
37232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37233 | (exit $ac_status); }; } && | |
37234 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37236 | (eval $ac_try) 2>&5 | |
37237 | ac_status=$? | |
37238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37239 | (exit $ac_status); }; }; then | |
37240 | eval "$as_ac_var=yes" | |
37241 | else | |
37242 | echo "$as_me: failed program was:" >&5 | |
37243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37244 | ||
37245 | eval "$as_ac_var=no" | |
37246 | fi | |
ac1cb8d3 VS |
37247 | rm -f conftest.err conftest.$ac_objext \ |
37248 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37249 | fi |
37250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37251 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37252 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37253 | cat >>confdefs.h <<_ACEOF | |
37254 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37255 | _ACEOF | |
37256 | ||
37257 | cat >>confdefs.h <<\_ACEOF | |
37258 | #define HAVE_SHL_LOAD 1 | |
37259 | _ACEOF | |
37260 | ||
37261 | HAVE_SHL_FUNCS=1 | |
37262 | ||
37263 | else | |
37264 | ||
37265 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
37266 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
37267 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
37268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37269 | else | |
37270 | ac_check_lib_save_LIBS=$LIBS | |
37271 | LIBS="-lshl_load $LIBS" | |
37272 | cat >conftest.$ac_ext <<_ACEOF | |
37273 | /* confdefs.h. */ | |
37274 | _ACEOF | |
37275 | cat confdefs.h >>conftest.$ac_ext | |
37276 | cat >>conftest.$ac_ext <<_ACEOF | |
37277 | /* end confdefs.h. */ | |
37278 | ||
37279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37280 | #ifdef __cplusplus | |
37281 | extern "C" | |
37282 | #endif | |
37283 | /* We use char because int might match the return type of a gcc2 | |
37284 | builtin and then its argument prototype would still apply. */ | |
37285 | char dld (); | |
37286 | int | |
37287 | main () | |
37288 | { | |
37289 | dld (); | |
37290 | ; | |
37291 | return 0; | |
37292 | } | |
37293 | _ACEOF | |
37294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37296 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37297 | ac_status=$? |
ac1cb8d3 VS |
37298 | grep -v '^ *+' conftest.er1 >conftest.err |
37299 | rm -f conftest.er1 | |
37300 | cat conftest.err >&5 | |
a848cd7e SC |
37301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37302 | (exit $ac_status); } && | |
6ebeb4c7 | 37303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37305 | (eval $ac_try) 2>&5 | |
37306 | ac_status=$? | |
37307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37308 | (exit $ac_status); }; } && | |
37309 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
37315 | ac_cv_lib_shl_load_dld=yes | |
37316 | else | |
37317 | echo "$as_me: failed program was:" >&5 | |
37318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37319 | ||
37320 | ac_cv_lib_shl_load_dld=no | |
37321 | fi | |
ac1cb8d3 VS |
37322 | rm -f conftest.err conftest.$ac_objext \ |
37323 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37324 | LIBS=$ac_check_lib_save_LIBS |
37325 | fi | |
37326 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
37327 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
37328 | if test $ac_cv_lib_shl_load_dld = yes; then | |
37329 | ||
37330 | HAVE_SHL_FUNCS=1 | |
37331 | DL_LINK=" -ldld$DL_LINK" | |
37332 | ||
37333 | fi | |
37334 | ||
37335 | ||
37336 | fi | |
37337 | done | |
37338 | ||
37339 | ||
37340 | fi | |
37341 | ||
37342 | ||
37343 | fi | |
37344 | done | |
37345 | ||
37346 | ||
37347 | if test "$HAVE_DL_FUNCS" = 1; then | |
37348 | ||
37349 | for ac_func in dlerror | |
37350 | do | |
37351 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37352 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37353 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37354 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37356 | else | |
37357 | cat >conftest.$ac_ext <<_ACEOF | |
37358 | /* confdefs.h. */ | |
37359 | _ACEOF | |
37360 | cat confdefs.h >>conftest.$ac_ext | |
37361 | cat >>conftest.$ac_ext <<_ACEOF | |
37362 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37363 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37364 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37365 | #define $ac_func innocuous_$ac_func | |
37366 | ||
a848cd7e SC |
37367 | /* System header to define __stub macros and hopefully few prototypes, |
37368 | which can conflict with char $ac_func (); below. | |
37369 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37370 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37371 | |
a848cd7e SC |
37372 | #ifdef __STDC__ |
37373 | # include <limits.h> | |
37374 | #else | |
37375 | # include <assert.h> | |
37376 | #endif | |
ac1cb8d3 VS |
37377 | |
37378 | #undef $ac_func | |
37379 | ||
a848cd7e SC |
37380 | /* Override any gcc2 internal prototype to avoid an error. */ |
37381 | #ifdef __cplusplus | |
37382 | extern "C" | |
37383 | { | |
37384 | #endif | |
37385 | /* We use char because int might match the return type of a gcc2 | |
37386 | builtin and then its argument prototype would still apply. */ | |
37387 | char $ac_func (); | |
37388 | /* The GNU C library defines this for functions which it implements | |
37389 | to always fail with ENOSYS. Some functions are actually named | |
37390 | something starting with __ and the normal name is an alias. */ | |
37391 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37392 | choke me | |
37393 | #else | |
37394 | char (*f) () = $ac_func; | |
37395 | #endif | |
37396 | #ifdef __cplusplus | |
37397 | } | |
37398 | #endif | |
37399 | ||
37400 | int | |
37401 | main () | |
37402 | { | |
37403 | return f != $ac_func; | |
37404 | ; | |
37405 | return 0; | |
37406 | } | |
37407 | _ACEOF | |
37408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37410 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37411 | ac_status=$? |
ac1cb8d3 VS |
37412 | grep -v '^ *+' conftest.er1 >conftest.err |
37413 | rm -f conftest.er1 | |
37414 | cat conftest.err >&5 | |
a848cd7e SC |
37415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37416 | (exit $ac_status); } && | |
6ebeb4c7 | 37417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37419 | (eval $ac_try) 2>&5 | |
37420 | ac_status=$? | |
37421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37422 | (exit $ac_status); }; } && | |
37423 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37425 | (eval $ac_try) 2>&5 | |
37426 | ac_status=$? | |
37427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37428 | (exit $ac_status); }; }; then | |
37429 | eval "$as_ac_var=yes" | |
37430 | else | |
37431 | echo "$as_me: failed program was:" >&5 | |
37432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37433 | ||
37434 | eval "$as_ac_var=no" | |
37435 | fi | |
ac1cb8d3 VS |
37436 | rm -f conftest.err conftest.$ac_objext \ |
37437 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37438 | fi |
37439 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37440 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37441 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37442 | cat >>confdefs.h <<_ACEOF | |
37443 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37444 | _ACEOF | |
37445 | cat >>confdefs.h <<\_ACEOF | |
37446 | #define HAVE_DLERROR 1 | |
37447 | _ACEOF | |
37448 | ||
37449 | else | |
37450 | ||
37451 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
37452 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
37453 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
37454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37455 | else | |
37456 | ac_check_lib_save_LIBS=$LIBS | |
37457 | LIBS="-ldl $LIBS" | |
37458 | cat >conftest.$ac_ext <<_ACEOF | |
37459 | /* confdefs.h. */ | |
37460 | _ACEOF | |
37461 | cat confdefs.h >>conftest.$ac_ext | |
37462 | cat >>conftest.$ac_ext <<_ACEOF | |
37463 | /* end confdefs.h. */ | |
37464 | ||
37465 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37466 | #ifdef __cplusplus | |
37467 | extern "C" | |
37468 | #endif | |
37469 | /* We use char because int might match the return type of a gcc2 | |
37470 | builtin and then its argument prototype would still apply. */ | |
37471 | char dlerror (); | |
37472 | int | |
37473 | main () | |
37474 | { | |
37475 | dlerror (); | |
37476 | ; | |
37477 | return 0; | |
37478 | } | |
37479 | _ACEOF | |
37480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37482 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37483 | ac_status=$? |
ac1cb8d3 VS |
37484 | grep -v '^ *+' conftest.er1 >conftest.err |
37485 | rm -f conftest.er1 | |
37486 | cat conftest.err >&5 | |
a848cd7e SC |
37487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37488 | (exit $ac_status); } && | |
6ebeb4c7 | 37489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37491 | (eval $ac_try) 2>&5 | |
37492 | ac_status=$? | |
37493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37494 | (exit $ac_status); }; } && | |
37495 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37497 | (eval $ac_try) 2>&5 | |
37498 | ac_status=$? | |
37499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37500 | (exit $ac_status); }; }; then | |
37501 | ac_cv_lib_dl_dlerror=yes | |
37502 | else | |
37503 | echo "$as_me: failed program was:" >&5 | |
37504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37505 | ||
37506 | ac_cv_lib_dl_dlerror=no | |
37507 | fi | |
ac1cb8d3 VS |
37508 | rm -f conftest.err conftest.$ac_objext \ |
37509 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37510 | LIBS=$ac_check_lib_save_LIBS |
37511 | fi | |
37512 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
37513 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
37514 | if test $ac_cv_lib_dl_dlerror = yes; then | |
37515 | cat >>confdefs.h <<\_ACEOF | |
37516 | #define HAVE_DLERROR 1 | |
37517 | _ACEOF | |
37518 | ||
37519 | fi | |
37520 | ||
37521 | ||
37522 | ||
37523 | fi | |
37524 | done | |
37525 | ||
37526 | fi | |
37527 | fi | |
37528 | ||
37529 | if test "$HAVE_DL_FUNCS" = 0; then | |
37530 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 37531 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
37532 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
37533 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
37534 | wxUSE_DYNAMIC_LOADER=no | |
37535 | wxUSE_DYNLIB_CLASS=no | |
37536 | else | |
37537 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
37538 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
37539 | fi | |
37540 | fi | |
37541 | fi | |
37542 | fi | |
37543 | fi | |
37544 | ||
37545 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
37546 | cat >>confdefs.h <<\_ACEOF | |
37547 | #define wxUSE_DYNAMIC_LOADER 1 | |
37548 | _ACEOF | |
37549 | ||
37550 | fi | |
37551 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
37552 | cat >>confdefs.h <<\_ACEOF | |
37553 | #define wxUSE_DYNLIB_CLASS 1 | |
37554 | _ACEOF | |
37555 | ||
37556 | fi | |
37557 | ||
37558 | ||
37559 | ||
37560 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
37561 | if test "$wxUSE_SHARED" = "no" ; then | |
37562 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
37563 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
37564 | wxUSE_PLUGINS=no | |
37565 | fi | |
37566 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
37567 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
37568 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
37569 | wxUSE_PLUGINS=no | |
37570 | fi | |
37571 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
37572 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
37573 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
37574 | wxUSE_PLUGINS=no | |
37575 | fi | |
37576 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
37577 | cat >>confdefs.h <<\_ACEOF | |
37578 | #define wxUSE_PLUGINS 1 | |
37579 | _ACEOF | |
37580 | ||
37581 | fi | |
37582 | fi | |
37583 | ||
37584 | ||
37585 | if test "$wxUSE_STL" = "yes"; then | |
37586 | cat >>confdefs.h <<\_ACEOF | |
37587 | #define wxUSE_STL 1 | |
37588 | _ACEOF | |
37589 | ||
37590 | fi | |
37591 | ||
37592 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
37593 | cat >>confdefs.h <<\_ACEOF | |
37594 | #define wxUSE_APPLE_IEEE 1 | |
37595 | _ACEOF | |
37596 | ||
37597 | fi | |
37598 | ||
37599 | if test "$wxUSE_TIMER" = "yes"; then | |
37600 | cat >>confdefs.h <<\_ACEOF | |
37601 | #define wxUSE_TIMER 1 | |
37602 | _ACEOF | |
37603 | ||
37604 | fi | |
37605 | ||
9c112555 | 37606 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
37607 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
37608 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
37609 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 37610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 37611 | else |
d12aef51 VZ |
37612 | |
37613 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
37614 | /* confdefs.h. */ |
37615 | _ACEOF | |
37616 | cat confdefs.h >>conftest.$ac_ext | |
37617 | cat >>conftest.$ac_ext <<_ACEOF | |
37618 | /* end confdefs.h. */ | |
d12aef51 VZ |
37619 | |
37620 | #include <sys/soundcard.h> | |
37621 | ||
37622 | int | |
37623 | main () | |
37624 | { | |
37625 | ||
37626 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
37627 | ||
37628 | ; | |
37629 | return 0; | |
37630 | } | |
a848cd7e | 37631 | _ACEOF |
d12aef51 VZ |
37632 | rm -f conftest.$ac_objext conftest$ac_exeext |
37633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37634 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 37635 | ac_status=$? |
ac1cb8d3 VS |
37636 | grep -v '^ *+' conftest.er1 >conftest.err |
37637 | rm -f conftest.er1 | |
37638 | cat conftest.err >&5 | |
a848cd7e SC |
37639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37640 | (exit $ac_status); } && | |
6ebeb4c7 | 37641 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37643 | (eval $ac_try) 2>&5 | |
37644 | ac_status=$? | |
37645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37646 | (exit $ac_status); }; } && | |
d12aef51 | 37647 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
37648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37649 | (eval $ac_try) 2>&5 | |
37650 | ac_status=$? | |
37651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37652 | (exit $ac_status); }; }; then | |
d12aef51 | 37653 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
37654 | else |
37655 | echo "$as_me: failed program was:" >&5 | |
37656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37657 | ||
a848cd7e | 37658 | |
d12aef51 VZ |
37659 | saveLibs="$LIBS" |
37660 | LIBS="$saveLibs -lossaudio" | |
37661 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
37662 | /* confdefs.h. */ |
37663 | _ACEOF | |
37664 | cat confdefs.h >>conftest.$ac_ext | |
37665 | cat >>conftest.$ac_ext <<_ACEOF | |
37666 | /* end confdefs.h. */ | |
d12aef51 VZ |
37667 | |
37668 | #include <sys/soundcard.h> | |
37669 | ||
37670 | int | |
37671 | main () | |
37672 | { | |
37673 | ||
37674 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
37675 | ||
37676 | ; | |
37677 | return 0; | |
37678 | } | |
a848cd7e | 37679 | _ACEOF |
d12aef51 VZ |
37680 | rm -f conftest.$ac_objext conftest$ac_exeext |
37681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37682 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
37683 | ac_status=$? |
37684 | grep -v '^ *+' conftest.er1 >conftest.err | |
37685 | rm -f conftest.er1 | |
37686 | cat conftest.err >&5 | |
37687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 VZ |
37688 | (exit $ac_status); } && |
37689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
37690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37691 | (eval $ac_try) 2>&5 | |
37692 | ac_status=$? | |
37693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37694 | (exit $ac_status); }; } && | |
37695 | { ac_try='test -s conftest$ac_exeext' | |
37696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37697 | (eval $ac_try) 2>&5 | |
37698 | ac_status=$? | |
37699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37700 | (exit $ac_status); }; }; then | |
37701 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
37702 | else |
37703 | echo "$as_me: failed program was:" >&5 | |
37704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37705 | ||
a848cd7e | 37706 | |
d12aef51 VZ |
37707 | LIBS="$saveLibs" |
37708 | ac_cv_header_sys_soundcard=no | |
37709 | ||
37710 | ||
a848cd7e | 37711 | fi |
d12aef51 VZ |
37712 | rm -f conftest.err conftest.$ac_objext \ |
37713 | conftest$ac_exeext conftest.$ac_ext | |
37714 | ||
a848cd7e SC |
37715 | |
37716 | fi | |
d12aef51 VZ |
37717 | rm -f conftest.err conftest.$ac_objext \ |
37718 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37719 | |
37720 | fi | |
d12aef51 VZ |
37721 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
37722 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 37723 | |
d12aef51 VZ |
37724 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
37725 | cat >>confdefs.h <<\_ACEOF | |
37726 | #define HAVE_SYS_SOUNDCARD_H 1 | |
37727 | _ACEOF | |
a848cd7e | 37728 | |
d12aef51 VZ |
37729 | else |
37730 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
37731 | fi | |
9c112555 MW |
37732 | fi |
37733 | WITH_PLUGIN_SDL=0 | |
37734 | if test "$wxUSE_SOUND" = "yes"; then | |
37735 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
37736 | if test "$wxUSE_LIBSDL" != "no"; then |
37737 | ||
37738 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
37739 | if test "${with_sdl_prefix+set}" = set; then | |
37740 | withval="$with_sdl_prefix" | |
37741 | sdl_prefix="$withval" | |
37742 | else | |
37743 | sdl_prefix="" | |
37744 | fi; | |
37745 | ||
37746 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
37747 | if test "${with_sdl_exec_prefix+set}" = set; then | |
37748 | withval="$with_sdl_exec_prefix" | |
37749 | sdl_exec_prefix="$withval" | |
37750 | else | |
37751 | sdl_exec_prefix="" | |
37752 | fi; | |
37753 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
37754 | if test "${enable_sdltest+set}" = set; then | |
37755 | enableval="$enable_sdltest" | |
37756 | ||
37757 | else | |
37758 | enable_sdltest=yes | |
37759 | fi; | |
37760 | ||
37761 | if test x$sdl_exec_prefix != x ; then | |
37762 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
37763 | if test x${SDL_CONFIG+set} != xset ; then | |
37764 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
37765 | fi | |
37766 | fi | |
37767 | if test x$sdl_prefix != x ; then | |
37768 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
37769 | if test x${SDL_CONFIG+set} != xset ; then | |
37770 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
37771 | fi | |
37772 | fi | |
37773 | ||
37774 | ||
37775 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
37776 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
37777 | set dummy sdl-config; ac_word=$2 | |
37778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37780 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
37781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37782 | else | |
37783 | case $SDL_CONFIG in | |
37784 | [\\/]* | ?:[\\/]*) | |
37785 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
37786 | ;; | |
37787 | *) | |
37788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37789 | for as_dir in $PATH | |
37790 | do | |
37791 | IFS=$as_save_IFS | |
37792 | test -z "$as_dir" && as_dir=. | |
37793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37794 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37795 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
37796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37797 | break 2 | |
37798 | fi | |
37799 | done | |
37800 | done | |
37801 | ||
37802 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
37803 | ;; | |
37804 | esac | |
37805 | fi | |
37806 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
37807 | ||
37808 | if test -n "$SDL_CONFIG"; then | |
37809 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
37810 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
37811 | else | |
37812 | echo "$as_me:$LINENO: result: no" >&5 | |
37813 | echo "${ECHO_T}no" >&6 | |
37814 | fi | |
37815 | ||
37816 | min_sdl_version=1.2.0 | |
37817 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
37818 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
37819 | no_sdl="" | |
37820 | if test "$SDL_CONFIG" = "no" ; then | |
37821 | no_sdl=yes | |
37822 | else | |
37823 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
37824 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
37825 | ||
37826 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
37827 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
37828 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
37829 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
37830 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
37831 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
37832 | if test "x$enable_sdltest" = "xyes" ; then | |
37833 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 37834 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
37835 | ac_save_LIBS="$LIBS" |
37836 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 37837 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
37838 | LIBS="$LIBS $SDL_LIBS" |
37839 | rm -f conf.sdltest | |
37840 | if test "$cross_compiling" = yes; then | |
37841 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
37842 | else | |
37843 | cat >conftest.$ac_ext <<_ACEOF | |
37844 | /* confdefs.h. */ | |
37845 | _ACEOF | |
37846 | cat confdefs.h >>conftest.$ac_ext | |
37847 | cat >>conftest.$ac_ext <<_ACEOF | |
37848 | /* end confdefs.h. */ | |
37849 | ||
37850 | #include <stdio.h> | |
37851 | #include <stdlib.h> | |
37852 | #include <string.h> | |
37853 | #include "SDL.h" | |
37854 | ||
37855 | char* | |
37856 | my_strdup (char *str) | |
37857 | { | |
37858 | char *new_str; | |
37859 | ||
37860 | if (str) | |
37861 | { | |
37862 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
37863 | strcpy (new_str, str); | |
37864 | } | |
37865 | else | |
37866 | new_str = NULL; | |
37867 | ||
37868 | return new_str; | |
37869 | } | |
37870 | ||
37871 | int main (int argc, char *argv[]) | |
37872 | { | |
37873 | int major, minor, micro; | |
37874 | char *tmp_version; | |
37875 | ||
37876 | /* This hangs on some systems (?) | |
37877 | system ("touch conf.sdltest"); | |
37878 | */ | |
37879 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
37880 | ||
37881 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
37882 | tmp_version = my_strdup("$min_sdl_version"); | |
37883 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
37884 | printf("%s, bad version string\n", "$min_sdl_version"); | |
37885 | exit(1); | |
37886 | } | |
37887 | ||
37888 | if (($sdl_major_version > major) || | |
37889 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
37890 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
37891 | { | |
37892 | return 0; | |
37893 | } | |
37894 | else | |
37895 | { | |
37896 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
37897 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
37898 | printf("*** best to upgrade to the required version.\n"); | |
37899 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
37900 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
37901 | printf("*** config.cache before re-running configure\n"); | |
37902 | return 1; | |
37903 | } | |
37904 | } | |
37905 | ||
37906 | ||
37907 | _ACEOF | |
37908 | rm -f conftest$ac_exeext | |
37909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37910 | (eval $ac_link) 2>&5 | |
37911 | ac_status=$? | |
37912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
37914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37915 | (eval $ac_try) 2>&5 | |
37916 | ac_status=$? | |
37917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37918 | (exit $ac_status); }; }; then | |
37919 | : | |
37920 | else | |
37921 | echo "$as_me: program exited with status $ac_status" >&5 | |
37922 | echo "$as_me: failed program was:" >&5 | |
37923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37924 | ||
37925 | ( exit $ac_status ) | |
37926 | no_sdl=yes | |
37927 | fi | |
ac1cb8d3 | 37928 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37929 | fi |
37930 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 37931 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
37932 | LIBS="$ac_save_LIBS" |
37933 | fi | |
37934 | fi | |
37935 | if test "x$no_sdl" = x ; then | |
37936 | echo "$as_me:$LINENO: result: yes" >&5 | |
37937 | echo "${ECHO_T}yes" >&6 | |
37938 | ||
37939 | EXTRALIBS_SDL="$SDL_LIBS" | |
37940 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
37941 | cat >>confdefs.h <<\_ACEOF | |
37942 | #define wxUSE_LIBSDL 1 | |
37943 | _ACEOF | |
37944 | ||
37945 | ||
37946 | else | |
37947 | echo "$as_me:$LINENO: result: no" >&5 | |
37948 | echo "${ECHO_T}no" >&6 | |
37949 | if test "$SDL_CONFIG" = "no" ; then | |
37950 | echo "*** The sdl-config script installed by SDL could not be found" | |
37951 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
37952 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
37953 | echo "*** full path to sdl-config." | |
37954 | else | |
37955 | if test -f conf.sdltest ; then | |
37956 | : | |
37957 | else | |
37958 | echo "*** Could not run SDL test program, checking why..." | |
37959 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 37960 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
37961 | LIBS="$LIBS $SDL_LIBS" |
37962 | cat >conftest.$ac_ext <<_ACEOF | |
37963 | /* confdefs.h. */ | |
37964 | _ACEOF | |
37965 | cat confdefs.h >>conftest.$ac_ext | |
37966 | cat >>conftest.$ac_ext <<_ACEOF | |
37967 | /* end confdefs.h. */ | |
37968 | ||
37969 | #include <stdio.h> | |
37970 | #include "SDL.h" | |
37971 | ||
37972 | int main(int argc, char *argv[]) | |
37973 | { return 0; } | |
37974 | #undef main | |
37975 | #define main K_and_R_C_main | |
37976 | ||
37977 | int | |
37978 | main () | |
37979 | { | |
37980 | return 0; | |
37981 | ; | |
37982 | return 0; | |
37983 | } | |
37984 | _ACEOF | |
37985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37987 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37988 | ac_status=$? |
ac1cb8d3 VS |
37989 | grep -v '^ *+' conftest.er1 >conftest.err |
37990 | rm -f conftest.er1 | |
37991 | cat conftest.err >&5 | |
a848cd7e SC |
37992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37993 | (exit $ac_status); } && | |
6ebeb4c7 | 37994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37996 | (eval $ac_try) 2>&5 | |
37997 | ac_status=$? | |
37998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37999 | (exit $ac_status); }; } && | |
38000 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38002 | (eval $ac_try) 2>&5 | |
38003 | ac_status=$? | |
38004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38005 | (exit $ac_status); }; }; then | |
38006 | echo "*** The test program compiled, but did not run. This usually means" | |
38007 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
38008 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
38009 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
38010 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
38011 | echo "*** is required on your system" | |
38012 | echo "***" | |
38013 | echo "*** If you have an old version installed, it is best to remove it, although" | |
38014 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
38015 | else | |
38016 | echo "$as_me: failed program was:" >&5 | |
38017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38018 | ||
38019 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
38020 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
38021 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
38022 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
38023 | fi | |
ac1cb8d3 VS |
38024 | rm -f conftest.err conftest.$ac_objext \ |
38025 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 38026 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 38027 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
38028 | LIBS="$ac_save_LIBS" |
38029 | fi | |
38030 | fi | |
38031 | SDL_CFLAGS="" | |
38032 | SDL_LIBS="" | |
38033 | wxUSE_LIBSDL="no" | |
38034 | fi | |
38035 | ||
38036 | ||
38037 | rm -f conf.sdltest | |
38038 | ||
38039 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
38040 | WITH_PLUGIN_SDL=1 | |
38041 | fi | |
38042 | fi | |
38043 | fi | |
38044 | ||
38045 | cat >>confdefs.h <<\_ACEOF | |
38046 | #define wxUSE_SOUND 1 | |
38047 | _ACEOF | |
38048 | ||
38049 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
38050 | fi | |
38051 | ||
d1c38808 VZ |
38052 | if test "$WXGTK20" = 1; then |
38053 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
38054 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
38055 | ||
38056 | ||
38057 | succeeded=no | |
38058 | ||
38059 | if test -z "$PKG_CONFIG"; then | |
38060 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
38061 | set dummy pkg-config; ac_word=$2 | |
38062 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38064 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
38065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38066 | else | |
38067 | case $PKG_CONFIG in | |
38068 | [\\/]* | ?:[\\/]*) | |
38069 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
38070 | ;; | |
38071 | *) | |
38072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38073 | for as_dir in $PATH | |
38074 | do | |
38075 | IFS=$as_save_IFS | |
38076 | test -z "$as_dir" && as_dir=. | |
38077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38079 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38081 | break 2 | |
38082 | fi | |
38083 | done | |
38084 | done | |
38085 | ||
38086 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
38087 | ;; | |
38088 | esac | |
38089 | fi | |
38090 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
38091 | ||
38092 | if test -n "$PKG_CONFIG"; then | |
38093 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
38094 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
38095 | else | |
38096 | echo "$as_me:$LINENO: result: no" >&5 | |
38097 | echo "${ECHO_T}no" >&6 | |
38098 | fi | |
38099 | ||
38100 | fi | |
38101 | ||
38102 | if test "$PKG_CONFIG" = "no" ; then | |
38103 | echo "*** The pkg-config script could not be found. Make sure it is" | |
38104 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
38105 | echo "*** to the full path to pkg-config." | |
38106 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
38107 | else | |
38108 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
38109 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
38110 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
38111 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 38112 | |
ffa762ff | 38113 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
38114 | echo "$as_me:$LINENO: result: yes" >&5 |
38115 | echo "${ECHO_T}yes" >&6 | |
38116 | succeeded=yes | |
38117 | ||
38118 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
38119 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 38120 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38121 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
38122 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
38123 | ||
38124 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
38125 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 38126 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38127 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
38128 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
38129 | else | |
38130 | LIBGNOMEPRINTUI_CFLAGS="" | |
38131 | LIBGNOMEPRINTUI_LIBS="" | |
38132 | ## If we have a custom action on failure, don't print errors, but | |
38133 | ## do set a variable so people can do so. | |
ffa762ff | 38134 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38135 | |
38136 | fi | |
38137 | ||
38138 | ||
38139 | ||
38140 | else | |
38141 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
38142 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
38143 | fi | |
38144 | fi | |
38145 | ||
38146 | if test $succeeded = yes; then | |
38147 | ||
d1c38808 VZ |
38148 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
38149 | cat >>confdefs.h <<\_ACEOF | |
38150 | #define wxUSE_LIBGNOMEPRINT 1 | |
38151 | _ACEOF | |
38152 | ||
38153 | ||
38154 | else | |
38155 | ||
38156 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
38157 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
38158 | wxUSE_LIBGNOMEPRINT="no" | |
38159 | ||
38160 | ||
38161 | fi | |
38162 | ||
38163 | fi | |
38164 | fi | |
38165 | fi | |
38166 | ||
38167 | ||
a848cd7e SC |
38168 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
38169 | cat >>confdefs.h <<\_ACEOF | |
38170 | #define wxUSE_CMDLINE_PARSER 1 | |
38171 | _ACEOF | |
38172 | ||
38173 | fi | |
38174 | ||
38175 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
38176 | cat >>confdefs.h <<\_ACEOF | |
38177 | #define wxUSE_STOPWATCH 1 | |
38178 | _ACEOF | |
38179 | ||
38180 | fi | |
38181 | ||
38182 | if test "$wxUSE_DATETIME" = "yes"; then | |
38183 | cat >>confdefs.h <<\_ACEOF | |
38184 | #define wxUSE_DATETIME 1 | |
38185 | _ACEOF | |
38186 | ||
38187 | fi | |
38188 | ||
38189 | if test "$wxUSE_FILE" = "yes"; then | |
38190 | cat >>confdefs.h <<\_ACEOF | |
38191 | #define wxUSE_FILE 1 | |
38192 | _ACEOF | |
38193 | ||
38194 | fi | |
38195 | ||
38196 | if test "$wxUSE_FFILE" = "yes"; then | |
38197 | cat >>confdefs.h <<\_ACEOF | |
38198 | #define wxUSE_FFILE 1 | |
38199 | _ACEOF | |
38200 | ||
38201 | fi | |
38202 | ||
38203 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
38204 | cat >>confdefs.h <<\_ACEOF | |
38205 | #define wxUSE_FILESYSTEM 1 | |
38206 | _ACEOF | |
38207 | ||
38208 | fi | |
38209 | ||
38210 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
38211 | cat >>confdefs.h <<\_ACEOF | |
38212 | #define wxUSE_FS_ZIP 1 | |
38213 | _ACEOF | |
38214 | ||
38215 | fi | |
38216 | ||
9e8e867f | 38217 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 38218 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 38219 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
38220 | _ACEOF |
38221 | ||
38222 | fi | |
38223 | ||
38224 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 38225 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
38226 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
38227 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
38228 | elif test "$wxUSE_ZLIB" = "no"; then | |
38229 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
38230 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
38231 | else | |
38232 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38233 | #define wxUSE_ZIPSTREAM 1 |
38234 | _ACEOF | |
38235 | ||
81f90336 | 38236 | fi |
a848cd7e SC |
38237 | fi |
38238 | ||
a848cd7e | 38239 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
38240 | if test "$USE_UNIX" != 1; then |
38241 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
38242 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
38243 | wxUSE_ON_FATAL_EXCEPTION=no | |
38244 | else | |
38245 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38246 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
38247 | _ACEOF | |
38248 | ||
18228ab4 | 38249 | fi |
a848cd7e SC |
38250 | fi |
38251 | ||
eaff0f0d VZ |
38252 | if test "$wxUSE_STACKWALKER" = "yes"; then |
38253 | cat >>confdefs.h <<\_ACEOF | |
38254 | #define wxUSE_STACKWALKER 1 | |
38255 | _ACEOF | |
38256 | ||
38257 | fi | |
38258 | ||
36b6448c | 38259 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
38260 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
38261 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
38262 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
38263 | wxUSE_DEBUGREPORT=no |
38264 | else | |
38265 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
38266 | #define wxUSE_DEBUGREPORT 1 |
38267 | _ACEOF | |
38268 | ||
21dfc162 MW |
38269 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
38270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
38271 | fi | |
dfe0c803 | 38272 | fi |
36b6448c VZ |
38273 | fi |
38274 | ||
a848cd7e SC |
38275 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
38276 | cat >>confdefs.h <<\_ACEOF | |
38277 | #define wxUSE_SNGLINST_CHECKER 1 | |
38278 | _ACEOF | |
38279 | ||
38280 | fi | |
38281 | ||
38282 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
38283 | cat >>confdefs.h <<\_ACEOF | |
38284 | #define wxUSE_BUSYINFO 1 | |
38285 | _ACEOF | |
38286 | ||
38287 | fi | |
38288 | ||
38289 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
38290 | cat >>confdefs.h <<\_ACEOF | |
38291 | #define wxUSE_STD_IOSTREAM 1 | |
38292 | _ACEOF | |
38293 | ||
38294 | fi | |
38295 | ||
59746b65 MW |
38296 | if test "$wxUSE_STD_STRING" = "yes"; then |
38297 | cat >>confdefs.h <<\_ACEOF | |
38298 | #define wxUSE_STD_STRING 1 | |
38299 | _ACEOF | |
38300 | ||
38301 | fi | |
38302 | ||
07158944 VZ |
38303 | if test "$wxUSE_STDPATHS" = "yes"; then |
38304 | cat >>confdefs.h <<\_ACEOF | |
38305 | #define wxUSE_STDPATHS 1 | |
38306 | _ACEOF | |
38307 | ||
38308 | fi | |
38309 | ||
a848cd7e SC |
38310 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
38311 | cat >>confdefs.h <<\_ACEOF | |
38312 | #define wxUSE_TEXTBUFFER 1 | |
38313 | _ACEOF | |
38314 | ||
38315 | fi | |
38316 | ||
38317 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
38318 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
38319 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
38320 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
38321 | else | |
38322 | cat >>confdefs.h <<\_ACEOF | |
38323 | #define wxUSE_TEXTFILE 1 | |
38324 | _ACEOF | |
38325 | ||
38326 | fi | |
38327 | fi | |
38328 | ||
38329 | if test "$wxUSE_CONFIG" = "yes" ; then | |
38330 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
38331 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
38332 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
38333 | else | |
38334 | cat >>confdefs.h <<\_ACEOF | |
38335 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
38336 | _ACEOF |
38337 | ||
38338 | cat >>confdefs.h <<\_ACEOF | |
38339 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
38340 | _ACEOF |
38341 | ||
38342 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
38343 | fi | |
38344 | fi | |
38345 | ||
38346 | if test "$wxUSE_INTL" = "yes" ; then | |
38347 | if test "$wxUSE_FILE" != "yes"; then | |
38348 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
38349 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
38350 | else | |
38351 | cat >>confdefs.h <<\_ACEOF | |
38352 | #define wxUSE_INTL 1 | |
38353 | _ACEOF | |
38354 | ||
38355 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
38356 | GUIDIST="$GUIDIST INTL_DIST" | |
38357 | fi | |
38358 | fi | |
38359 | ||
38360 | if test "$wxUSE_LOG" = "yes"; then | |
38361 | cat >>confdefs.h <<\_ACEOF | |
38362 | #define wxUSE_LOG 1 | |
38363 | _ACEOF | |
38364 | ||
38365 | ||
38366 | if test "$wxUSE_LOGGUI" = "yes"; then | |
38367 | cat >>confdefs.h <<\_ACEOF | |
38368 | #define wxUSE_LOGGUI 1 | |
38369 | _ACEOF | |
38370 | ||
38371 | fi | |
38372 | ||
38373 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
38374 | cat >>confdefs.h <<\_ACEOF | |
38375 | #define wxUSE_LOGWINDOW 1 | |
38376 | _ACEOF | |
38377 | ||
38378 | fi | |
38379 | ||
38380 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
38381 | cat >>confdefs.h <<\_ACEOF | |
38382 | #define wxUSE_LOG_DIALOG 1 | |
38383 | _ACEOF | |
38384 | ||
38385 | fi | |
0b78747f MW |
38386 | |
38387 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
38388 | fi |
38389 | ||
38390 | if test "$wxUSE_LONGLONG" = "yes"; then | |
38391 | cat >>confdefs.h <<\_ACEOF | |
38392 | #define wxUSE_LONGLONG 1 | |
38393 | _ACEOF | |
38394 | ||
38395 | fi | |
38396 | ||
38397 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
38398 | cat >>confdefs.h <<\_ACEOF | |
38399 | #define wxUSE_GEOMETRY 1 | |
38400 | _ACEOF | |
38401 | ||
38402 | fi | |
38403 | ||
a848cd7e SC |
38404 | if test "$wxUSE_STREAMS" = "yes" ; then |
38405 | cat >>confdefs.h <<\_ACEOF | |
38406 | #define wxUSE_STREAMS 1 | |
38407 | _ACEOF | |
38408 | ||
38409 | fi | |
38410 | ||
38411 | ||
38412 | if test "$wxUSE_DATETIME" = "yes"; then | |
38413 | ||
38414 | for ac_func in strptime | |
38415 | do | |
38416 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38417 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38418 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38419 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38421 | else | |
38422 | cat >conftest.$ac_ext <<_ACEOF | |
38423 | /* confdefs.h. */ | |
38424 | _ACEOF | |
38425 | cat confdefs.h >>conftest.$ac_ext | |
38426 | cat >>conftest.$ac_ext <<_ACEOF | |
38427 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38428 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38429 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38430 | #define $ac_func innocuous_$ac_func | |
38431 | ||
a848cd7e SC |
38432 | /* System header to define __stub macros and hopefully few prototypes, |
38433 | which can conflict with char $ac_func (); below. | |
38434 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38435 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38436 | |
a848cd7e SC |
38437 | #ifdef __STDC__ |
38438 | # include <limits.h> | |
38439 | #else | |
38440 | # include <assert.h> | |
38441 | #endif | |
ac1cb8d3 VS |
38442 | |
38443 | #undef $ac_func | |
38444 | ||
a848cd7e SC |
38445 | /* Override any gcc2 internal prototype to avoid an error. */ |
38446 | #ifdef __cplusplus | |
38447 | extern "C" | |
38448 | { | |
38449 | #endif | |
38450 | /* We use char because int might match the return type of a gcc2 | |
38451 | builtin and then its argument prototype would still apply. */ | |
38452 | char $ac_func (); | |
38453 | /* The GNU C library defines this for functions which it implements | |
38454 | to always fail with ENOSYS. Some functions are actually named | |
38455 | something starting with __ and the normal name is an alias. */ | |
38456 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38457 | choke me | |
38458 | #else | |
38459 | char (*f) () = $ac_func; | |
38460 | #endif | |
38461 | #ifdef __cplusplus | |
38462 | } | |
38463 | #endif | |
38464 | ||
38465 | int | |
38466 | main () | |
38467 | { | |
38468 | return f != $ac_func; | |
38469 | ; | |
38470 | return 0; | |
38471 | } | |
38472 | _ACEOF | |
38473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38475 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38476 | ac_status=$? |
ac1cb8d3 VS |
38477 | grep -v '^ *+' conftest.er1 >conftest.err |
38478 | rm -f conftest.er1 | |
38479 | cat conftest.err >&5 | |
a848cd7e SC |
38480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38481 | (exit $ac_status); } && | |
6ebeb4c7 | 38482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38484 | (eval $ac_try) 2>&5 | |
38485 | ac_status=$? | |
38486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38487 | (exit $ac_status); }; } && | |
38488 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38490 | (eval $ac_try) 2>&5 | |
38491 | ac_status=$? | |
38492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38493 | (exit $ac_status); }; }; then | |
38494 | eval "$as_ac_var=yes" | |
38495 | else | |
38496 | echo "$as_me: failed program was:" >&5 | |
38497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38498 | ||
38499 | eval "$as_ac_var=no" | |
38500 | fi | |
ac1cb8d3 VS |
38501 | rm -f conftest.err conftest.$ac_objext \ |
38502 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38503 | fi |
38504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38505 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38506 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38507 | cat >>confdefs.h <<_ACEOF | |
38508 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38509 | _ACEOF | |
38510 | ||
38511 | fi | |
38512 | done | |
38513 | ||
38514 | ||
38515 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
38516 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
38517 | if test "${wx_cv_var_timezone+set}" = set; then | |
38518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38519 | else | |
38520 | ||
38521 | cat >conftest.$ac_ext <<_ACEOF | |
38522 | /* confdefs.h. */ | |
38523 | _ACEOF | |
38524 | cat confdefs.h >>conftest.$ac_ext | |
38525 | cat >>conftest.$ac_ext <<_ACEOF | |
38526 | /* end confdefs.h. */ | |
38527 | ||
38528 | #include <time.h> | |
38529 | ||
38530 | int | |
38531 | main () | |
38532 | { | |
38533 | ||
38534 | int tz; | |
38535 | tz = timezone; | |
38536 | ||
38537 | ; | |
38538 | return 0; | |
38539 | } | |
38540 | _ACEOF | |
38541 | rm -f conftest.$ac_objext | |
38542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38543 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38544 | ac_status=$? |
ac1cb8d3 VS |
38545 | grep -v '^ *+' conftest.er1 >conftest.err |
38546 | rm -f conftest.er1 | |
38547 | cat conftest.err >&5 | |
a848cd7e SC |
38548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38549 | (exit $ac_status); } && | |
6ebeb4c7 | 38550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38552 | (eval $ac_try) 2>&5 | |
38553 | ac_status=$? | |
38554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38555 | (exit $ac_status); }; } && | |
38556 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38558 | (eval $ac_try) 2>&5 | |
38559 | ac_status=$? | |
38560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38561 | (exit $ac_status); }; }; then | |
38562 | ||
38563 | wx_cv_var_timezone=timezone | |
38564 | ||
38565 | else | |
38566 | echo "$as_me: failed program was:" >&5 | |
38567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38568 | ||
38569 | ||
38570 | cat >conftest.$ac_ext <<_ACEOF | |
38571 | /* confdefs.h. */ | |
38572 | _ACEOF | |
38573 | cat confdefs.h >>conftest.$ac_ext | |
38574 | cat >>conftest.$ac_ext <<_ACEOF | |
38575 | /* end confdefs.h. */ | |
38576 | ||
38577 | #include <time.h> | |
38578 | ||
38579 | int | |
38580 | main () | |
38581 | { | |
38582 | ||
38583 | int tz; | |
38584 | tz = _timezone; | |
38585 | ||
38586 | ; | |
38587 | return 0; | |
38588 | } | |
38589 | _ACEOF | |
38590 | rm -f conftest.$ac_objext | |
38591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38592 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38593 | ac_status=$? |
ac1cb8d3 VS |
38594 | grep -v '^ *+' conftest.er1 >conftest.err |
38595 | rm -f conftest.er1 | |
38596 | cat conftest.err >&5 | |
a848cd7e SC |
38597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38598 | (exit $ac_status); } && | |
6ebeb4c7 | 38599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38601 | (eval $ac_try) 2>&5 | |
38602 | ac_status=$? | |
38603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38604 | (exit $ac_status); }; } && | |
38605 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38607 | (eval $ac_try) 2>&5 | |
38608 | ac_status=$? | |
38609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38610 | (exit $ac_status); }; }; then | |
38611 | ||
38612 | wx_cv_var_timezone=_timezone | |
38613 | ||
38614 | else | |
38615 | echo "$as_me: failed program was:" >&5 | |
38616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38617 | ||
38618 | ||
38619 | cat >conftest.$ac_ext <<_ACEOF | |
38620 | /* confdefs.h. */ | |
38621 | _ACEOF | |
38622 | cat confdefs.h >>conftest.$ac_ext | |
38623 | cat >>conftest.$ac_ext <<_ACEOF | |
38624 | /* end confdefs.h. */ | |
38625 | ||
38626 | #include <time.h> | |
38627 | ||
38628 | int | |
38629 | main () | |
38630 | { | |
38631 | ||
38632 | int tz; | |
38633 | tz = __timezone; | |
38634 | ||
38635 | ; | |
38636 | return 0; | |
38637 | } | |
38638 | _ACEOF | |
38639 | rm -f conftest.$ac_objext | |
38640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38641 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38642 | ac_status=$? |
ac1cb8d3 VS |
38643 | grep -v '^ *+' conftest.er1 >conftest.err |
38644 | rm -f conftest.er1 | |
38645 | cat conftest.err >&5 | |
a848cd7e SC |
38646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38647 | (exit $ac_status); } && | |
6ebeb4c7 | 38648 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38650 | (eval $ac_try) 2>&5 | |
38651 | ac_status=$? | |
38652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38653 | (exit $ac_status); }; } && | |
38654 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38656 | (eval $ac_try) 2>&5 | |
38657 | ac_status=$? | |
38658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38659 | (exit $ac_status); }; }; then | |
38660 | ||
38661 | wx_cv_var_timezone=__timezone | |
38662 | ||
38663 | else | |
38664 | echo "$as_me: failed program was:" >&5 | |
38665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38666 | ||
38667 | ||
38668 | if test "$USE_DOS" = 0 ; then | |
38669 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
38670 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
38671 | fi | |
38672 | ||
38673 | ||
38674 | fi | |
ac1cb8d3 | 38675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38676 | |
38677 | ||
38678 | fi | |
ac1cb8d3 | 38679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38680 | |
38681 | ||
38682 | fi | |
ac1cb8d3 | 38683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38684 | |
38685 | ||
38686 | fi | |
38687 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
38688 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
38689 | ||
38690 | if test "x$wx_cv_var_timezone" != x ; then | |
38691 | cat >>confdefs.h <<_ACEOF | |
38692 | #define WX_TIMEZONE $wx_cv_var_timezone | |
38693 | _ACEOF | |
38694 | ||
38695 | fi | |
38696 | ||
38697 | ||
38698 | for ac_func in localtime | |
38699 | do | |
38700 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38701 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38702 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38703 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38705 | else | |
38706 | cat >conftest.$ac_ext <<_ACEOF | |
38707 | /* confdefs.h. */ | |
38708 | _ACEOF | |
38709 | cat confdefs.h >>conftest.$ac_ext | |
38710 | cat >>conftest.$ac_ext <<_ACEOF | |
38711 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38712 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38714 | #define $ac_func innocuous_$ac_func | |
38715 | ||
a848cd7e SC |
38716 | /* System header to define __stub macros and hopefully few prototypes, |
38717 | which can conflict with char $ac_func (); below. | |
38718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38719 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38720 | |
a848cd7e SC |
38721 | #ifdef __STDC__ |
38722 | # include <limits.h> | |
38723 | #else | |
38724 | # include <assert.h> | |
38725 | #endif | |
ac1cb8d3 VS |
38726 | |
38727 | #undef $ac_func | |
38728 | ||
a848cd7e SC |
38729 | /* Override any gcc2 internal prototype to avoid an error. */ |
38730 | #ifdef __cplusplus | |
38731 | extern "C" | |
38732 | { | |
38733 | #endif | |
38734 | /* We use char because int might match the return type of a gcc2 | |
38735 | builtin and then its argument prototype would still apply. */ | |
38736 | char $ac_func (); | |
38737 | /* The GNU C library defines this for functions which it implements | |
38738 | to always fail with ENOSYS. Some functions are actually named | |
38739 | something starting with __ and the normal name is an alias. */ | |
38740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38741 | choke me | |
38742 | #else | |
38743 | char (*f) () = $ac_func; | |
38744 | #endif | |
38745 | #ifdef __cplusplus | |
38746 | } | |
38747 | #endif | |
38748 | ||
38749 | int | |
38750 | main () | |
38751 | { | |
38752 | return f != $ac_func; | |
38753 | ; | |
38754 | return 0; | |
38755 | } | |
38756 | _ACEOF | |
38757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38759 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38760 | ac_status=$? |
ac1cb8d3 VS |
38761 | grep -v '^ *+' conftest.er1 >conftest.err |
38762 | rm -f conftest.er1 | |
38763 | cat conftest.err >&5 | |
a848cd7e SC |
38764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38765 | (exit $ac_status); } && | |
6ebeb4c7 | 38766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38768 | (eval $ac_try) 2>&5 | |
38769 | ac_status=$? | |
38770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38771 | (exit $ac_status); }; } && | |
38772 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38774 | (eval $ac_try) 2>&5 | |
38775 | ac_status=$? | |
38776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38777 | (exit $ac_status); }; }; then | |
38778 | eval "$as_ac_var=yes" | |
38779 | else | |
38780 | echo "$as_me: failed program was:" >&5 | |
38781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38782 | ||
38783 | eval "$as_ac_var=no" | |
38784 | fi | |
ac1cb8d3 VS |
38785 | rm -f conftest.err conftest.$ac_objext \ |
38786 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38787 | fi |
38788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38789 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38790 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38791 | cat >>confdefs.h <<_ACEOF | |
38792 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38793 | _ACEOF | |
38794 | ||
38795 | fi | |
38796 | done | |
38797 | ||
38798 | ||
38799 | if test "$ac_cv_func_localtime" = "yes"; then | |
38800 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
38801 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
38802 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
38803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38804 | else | |
38805 | ||
38806 | cat >conftest.$ac_ext <<_ACEOF | |
38807 | /* confdefs.h. */ | |
38808 | _ACEOF | |
38809 | cat confdefs.h >>conftest.$ac_ext | |
38810 | cat >>conftest.$ac_ext <<_ACEOF | |
38811 | /* end confdefs.h. */ | |
38812 | ||
38813 | #include <time.h> | |
38814 | ||
38815 | int | |
38816 | main () | |
38817 | { | |
38818 | ||
38819 | struct tm tm; | |
38820 | tm.tm_gmtoff++; | |
38821 | ||
38822 | ; | |
38823 | return 0; | |
38824 | } | |
38825 | _ACEOF | |
38826 | rm -f conftest.$ac_objext | |
38827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38828 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38829 | ac_status=$? |
ac1cb8d3 VS |
38830 | grep -v '^ *+' conftest.er1 >conftest.err |
38831 | rm -f conftest.er1 | |
38832 | cat conftest.err >&5 | |
a848cd7e SC |
38833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38834 | (exit $ac_status); } && | |
6ebeb4c7 | 38835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38837 | (eval $ac_try) 2>&5 | |
38838 | ac_status=$? | |
38839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38840 | (exit $ac_status); }; } && | |
38841 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38843 | (eval $ac_try) 2>&5 | |
38844 | ac_status=$? | |
38845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38846 | (exit $ac_status); }; }; then | |
38847 | ||
38848 | wx_cv_struct_tm_has_gmtoff=yes | |
38849 | ||
38850 | else | |
38851 | echo "$as_me: failed program was:" >&5 | |
38852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38853 | ||
38854 | wx_cv_struct_tm_has_gmtoff=no | |
38855 | ||
38856 | fi | |
ac1cb8d3 | 38857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38858 | |
38859 | fi | |
38860 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
38861 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
38862 | fi | |
38863 | ||
38864 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
38865 | cat >>confdefs.h <<\_ACEOF | |
38866 | #define WX_GMTOFF_IN_TM 1 | |
38867 | _ACEOF | |
38868 | ||
38869 | fi | |
38870 | ||
38871 | ||
38872 | ||
38873 | for ac_func in gettimeofday ftime | |
38874 | do | |
38875 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38876 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38877 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38878 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38880 | else | |
38881 | cat >conftest.$ac_ext <<_ACEOF | |
38882 | /* confdefs.h. */ | |
38883 | _ACEOF | |
38884 | cat confdefs.h >>conftest.$ac_ext | |
38885 | cat >>conftest.$ac_ext <<_ACEOF | |
38886 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38887 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38888 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38889 | #define $ac_func innocuous_$ac_func | |
38890 | ||
a848cd7e SC |
38891 | /* System header to define __stub macros and hopefully few prototypes, |
38892 | which can conflict with char $ac_func (); below. | |
38893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38894 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38895 | |
a848cd7e SC |
38896 | #ifdef __STDC__ |
38897 | # include <limits.h> | |
38898 | #else | |
38899 | # include <assert.h> | |
38900 | #endif | |
ac1cb8d3 VS |
38901 | |
38902 | #undef $ac_func | |
38903 | ||
a848cd7e SC |
38904 | /* Override any gcc2 internal prototype to avoid an error. */ |
38905 | #ifdef __cplusplus | |
38906 | extern "C" | |
38907 | { | |
38908 | #endif | |
38909 | /* We use char because int might match the return type of a gcc2 | |
38910 | builtin and then its argument prototype would still apply. */ | |
38911 | char $ac_func (); | |
38912 | /* The GNU C library defines this for functions which it implements | |
38913 | to always fail with ENOSYS. Some functions are actually named | |
38914 | something starting with __ and the normal name is an alias. */ | |
38915 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38916 | choke me | |
38917 | #else | |
38918 | char (*f) () = $ac_func; | |
38919 | #endif | |
38920 | #ifdef __cplusplus | |
38921 | } | |
38922 | #endif | |
38923 | ||
38924 | int | |
38925 | main () | |
38926 | { | |
38927 | return f != $ac_func; | |
38928 | ; | |
38929 | return 0; | |
38930 | } | |
38931 | _ACEOF | |
38932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38934 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38935 | ac_status=$? |
ac1cb8d3 VS |
38936 | grep -v '^ *+' conftest.er1 >conftest.err |
38937 | rm -f conftest.er1 | |
38938 | cat conftest.err >&5 | |
a848cd7e SC |
38939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38940 | (exit $ac_status); } && | |
6ebeb4c7 | 38941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38943 | (eval $ac_try) 2>&5 | |
38944 | ac_status=$? | |
38945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38946 | (exit $ac_status); }; } && | |
38947 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38949 | (eval $ac_try) 2>&5 | |
38950 | ac_status=$? | |
38951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38952 | (exit $ac_status); }; }; then | |
38953 | eval "$as_ac_var=yes" | |
38954 | else | |
38955 | echo "$as_me: failed program was:" >&5 | |
38956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38957 | ||
38958 | eval "$as_ac_var=no" | |
38959 | fi | |
ac1cb8d3 VS |
38960 | rm -f conftest.err conftest.$ac_objext \ |
38961 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38962 | fi |
38963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38964 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38965 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38966 | cat >>confdefs.h <<_ACEOF | |
38967 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38968 | _ACEOF | |
38969 | break | |
38970 | fi | |
38971 | done | |
38972 | ||
38973 | ||
38974 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
38975 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
38976 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
38977 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
38978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38979 | else | |
38980 | ||
38981 | ||
38982 | ||
38983 | ac_ext=cc | |
38984 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38985 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38986 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38987 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
38988 | ||
38989 | ||
38990 | cat >conftest.$ac_ext <<_ACEOF | |
38991 | /* confdefs.h. */ | |
38992 | _ACEOF | |
38993 | cat confdefs.h >>conftest.$ac_ext | |
38994 | cat >>conftest.$ac_ext <<_ACEOF | |
38995 | /* end confdefs.h. */ | |
38996 | ||
38997 | #include <sys/time.h> | |
38998 | #include <unistd.h> | |
38999 | ||
39000 | int | |
39001 | main () | |
39002 | { | |
39003 | ||
39004 | struct timeval tv; | |
39005 | gettimeofday(&tv, NULL); | |
39006 | ||
39007 | ; | |
39008 | return 0; | |
39009 | } | |
39010 | _ACEOF | |
39011 | rm -f conftest.$ac_objext | |
39012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39013 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39014 | ac_status=$? |
ac1cb8d3 VS |
39015 | grep -v '^ *+' conftest.er1 >conftest.err |
39016 | rm -f conftest.er1 | |
39017 | cat conftest.err >&5 | |
a848cd7e SC |
39018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39019 | (exit $ac_status); } && | |
6ebeb4c7 | 39020 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39022 | (eval $ac_try) 2>&5 | |
39023 | ac_status=$? | |
39024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39025 | (exit $ac_status); }; } && | |
39026 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39028 | (eval $ac_try) 2>&5 | |
39029 | ac_status=$? | |
39030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39031 | (exit $ac_status); }; }; then | |
39032 | wx_cv_func_gettimeofday_has_2_args=yes | |
39033 | else | |
39034 | echo "$as_me: failed program was:" >&5 | |
39035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39036 | ||
39037 | cat >conftest.$ac_ext <<_ACEOF | |
39038 | /* confdefs.h. */ | |
39039 | _ACEOF | |
39040 | cat confdefs.h >>conftest.$ac_ext | |
39041 | cat >>conftest.$ac_ext <<_ACEOF | |
39042 | /* end confdefs.h. */ | |
39043 | ||
39044 | #include <sys/time.h> | |
39045 | #include <unistd.h> | |
39046 | ||
39047 | int | |
39048 | main () | |
39049 | { | |
39050 | ||
39051 | struct timeval tv; | |
39052 | gettimeofday(&tv); | |
39053 | ||
39054 | ; | |
39055 | return 0; | |
39056 | } | |
39057 | _ACEOF | |
39058 | rm -f conftest.$ac_objext | |
39059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39060 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39061 | ac_status=$? |
ac1cb8d3 VS |
39062 | grep -v '^ *+' conftest.er1 >conftest.err |
39063 | rm -f conftest.er1 | |
39064 | cat conftest.err >&5 | |
a848cd7e SC |
39065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39066 | (exit $ac_status); } && | |
6ebeb4c7 | 39067 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39069 | (eval $ac_try) 2>&5 | |
39070 | ac_status=$? | |
39071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39072 | (exit $ac_status); }; } && | |
39073 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39075 | (eval $ac_try) 2>&5 | |
39076 | ac_status=$? | |
39077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39078 | (exit $ac_status); }; }; then | |
39079 | wx_cv_func_gettimeofday_has_2_args=no | |
39080 | else | |
39081 | echo "$as_me: failed program was:" >&5 | |
39082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39083 | ||
39084 | ||
39085 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
39086 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
39087 | wx_cv_func_gettimeofday_has_2_args=unknown | |
39088 | ||
39089 | ||
39090 | fi | |
ac1cb8d3 | 39091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39092 | |
39093 | fi | |
ac1cb8d3 | 39094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39095 | ac_ext=c |
39096 | ac_cpp='$CPP $CPPFLAGS' | |
39097 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39098 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39099 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39100 | ||
39101 | ||
39102 | fi | |
39103 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
39104 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
39105 | ||
39106 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
39107 | cat >>confdefs.h <<\_ACEOF | |
39108 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
39109 | _ACEOF | |
39110 | ||
39111 | fi | |
39112 | fi | |
39113 | ||
39114 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
39115 | fi | |
39116 | ||
39117 | ||
39118 | if test "$wxUSE_SOCKETS" = "yes"; then | |
39119 | if test "$wxUSE_MGL" = "1"; then | |
39120 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
39121 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
39122 | wxUSE_SOCKETS="no" | |
39123 | fi | |
39124 | fi | |
39125 | ||
39126 | if test "$wxUSE_SOCKETS" = "yes"; then | |
39127 | if test "$TOOLKIT" != "MSW"; then | |
39128 | echo "$as_me:$LINENO: checking for socket" >&5 | |
39129 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
39130 | if test "${ac_cv_func_socket+set}" = set; then | |
39131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39132 | else | |
39133 | cat >conftest.$ac_ext <<_ACEOF | |
39134 | /* confdefs.h. */ | |
39135 | _ACEOF | |
39136 | cat confdefs.h >>conftest.$ac_ext | |
39137 | cat >>conftest.$ac_ext <<_ACEOF | |
39138 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39139 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
39140 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39141 | #define socket innocuous_socket | |
39142 | ||
a848cd7e SC |
39143 | /* System header to define __stub macros and hopefully few prototypes, |
39144 | which can conflict with char socket (); below. | |
39145 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39146 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39147 | |
a848cd7e SC |
39148 | #ifdef __STDC__ |
39149 | # include <limits.h> | |
39150 | #else | |
39151 | # include <assert.h> | |
39152 | #endif | |
ac1cb8d3 VS |
39153 | |
39154 | #undef socket | |
39155 | ||
a848cd7e SC |
39156 | /* Override any gcc2 internal prototype to avoid an error. */ |
39157 | #ifdef __cplusplus | |
39158 | extern "C" | |
39159 | { | |
39160 | #endif | |
39161 | /* We use char because int might match the return type of a gcc2 | |
39162 | builtin and then its argument prototype would still apply. */ | |
39163 | char socket (); | |
39164 | /* The GNU C library defines this for functions which it implements | |
39165 | to always fail with ENOSYS. Some functions are actually named | |
39166 | something starting with __ and the normal name is an alias. */ | |
39167 | #if defined (__stub_socket) || defined (__stub___socket) | |
39168 | choke me | |
39169 | #else | |
39170 | char (*f) () = socket; | |
39171 | #endif | |
39172 | #ifdef __cplusplus | |
39173 | } | |
39174 | #endif | |
39175 | ||
39176 | int | |
39177 | main () | |
39178 | { | |
39179 | return f != socket; | |
39180 | ; | |
39181 | return 0; | |
39182 | } | |
39183 | _ACEOF | |
39184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39186 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39187 | ac_status=$? |
ac1cb8d3 VS |
39188 | grep -v '^ *+' conftest.er1 >conftest.err |
39189 | rm -f conftest.er1 | |
39190 | cat conftest.err >&5 | |
a848cd7e SC |
39191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39192 | (exit $ac_status); } && | |
6ebeb4c7 | 39193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39195 | (eval $ac_try) 2>&5 | |
39196 | ac_status=$? | |
39197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39198 | (exit $ac_status); }; } && | |
39199 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39201 | (eval $ac_try) 2>&5 | |
39202 | ac_status=$? | |
39203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39204 | (exit $ac_status); }; }; then | |
39205 | ac_cv_func_socket=yes | |
39206 | else | |
39207 | echo "$as_me: failed program was:" >&5 | |
39208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39209 | ||
39210 | ac_cv_func_socket=no | |
39211 | fi | |
ac1cb8d3 VS |
39212 | rm -f conftest.err conftest.$ac_objext \ |
39213 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39214 | fi |
39215 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
39216 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
39217 | if test $ac_cv_func_socket = yes; then | |
39218 | : | |
39219 | else | |
39220 | ||
39221 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
39222 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
39223 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
39224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39225 | else | |
39226 | ac_check_lib_save_LIBS=$LIBS | |
39227 | LIBS="-lsocket $LIBS" | |
39228 | cat >conftest.$ac_ext <<_ACEOF | |
39229 | /* confdefs.h. */ | |
39230 | _ACEOF | |
39231 | cat confdefs.h >>conftest.$ac_ext | |
39232 | cat >>conftest.$ac_ext <<_ACEOF | |
39233 | /* end confdefs.h. */ | |
39234 | ||
39235 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39236 | #ifdef __cplusplus | |
39237 | extern "C" | |
39238 | #endif | |
39239 | /* We use char because int might match the return type of a gcc2 | |
39240 | builtin and then its argument prototype would still apply. */ | |
39241 | char socket (); | |
39242 | int | |
39243 | main () | |
39244 | { | |
39245 | socket (); | |
39246 | ; | |
39247 | return 0; | |
39248 | } | |
39249 | _ACEOF | |
39250 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39252 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39253 | ac_status=$? |
ac1cb8d3 VS |
39254 | grep -v '^ *+' conftest.er1 >conftest.err |
39255 | rm -f conftest.er1 | |
39256 | cat conftest.err >&5 | |
a848cd7e SC |
39257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39258 | (exit $ac_status); } && | |
6ebeb4c7 | 39259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39261 | (eval $ac_try) 2>&5 | |
39262 | ac_status=$? | |
39263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39264 | (exit $ac_status); }; } && | |
39265 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39267 | (eval $ac_try) 2>&5 | |
39268 | ac_status=$? | |
39269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39270 | (exit $ac_status); }; }; then | |
39271 | ac_cv_lib_socket_socket=yes | |
39272 | else | |
39273 | echo "$as_me: failed program was:" >&5 | |
39274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39275 | ||
39276 | ac_cv_lib_socket_socket=no | |
39277 | fi | |
ac1cb8d3 VS |
39278 | rm -f conftest.err conftest.$ac_objext \ |
39279 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39280 | LIBS=$ac_check_lib_save_LIBS |
39281 | fi | |
39282 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
39283 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
39284 | if test $ac_cv_lib_socket_socket = yes; then | |
39285 | if test "$INET_LINK" != " -lsocket"; then | |
39286 | INET_LINK="$INET_LINK -lsocket" | |
39287 | fi | |
39288 | else | |
39289 | ||
39290 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
39291 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
39292 | wxUSE_SOCKETS=no | |
39293 | ||
39294 | ||
39295 | fi | |
39296 | ||
39297 | ||
39298 | ||
39299 | fi | |
39300 | ||
39301 | fi | |
39302 | fi | |
39303 | ||
39304 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
39305 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
39306 | ac_ext=cc |
39307 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39308 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39309 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39310 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39311 | ||
39312 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
39313 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
39314 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
39315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39316 | else | |
39317 | ||
39318 | cat >conftest.$ac_ext <<_ACEOF | |
39319 | /* confdefs.h. */ | |
39320 | _ACEOF | |
39321 | cat confdefs.h >>conftest.$ac_ext | |
39322 | cat >>conftest.$ac_ext <<_ACEOF | |
39323 | /* end confdefs.h. */ | |
39324 | ||
39325 | #include <sys/types.h> | |
39326 | #include <sys/socket.h> | |
39327 | ||
39328 | int | |
39329 | main () | |
39330 | { | |
39331 | ||
39332 | socklen_t len; | |
39333 | getsockname(0, 0, &len); | |
39334 | ||
39335 | ; | |
39336 | return 0; | |
39337 | } | |
39338 | _ACEOF | |
39339 | rm -f conftest.$ac_objext | |
39340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39341 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39342 | ac_status=$? |
ac1cb8d3 VS |
39343 | grep -v '^ *+' conftest.er1 >conftest.err |
39344 | rm -f conftest.er1 | |
39345 | cat conftest.err >&5 | |
a848cd7e SC |
39346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39347 | (exit $ac_status); } && | |
6ebeb4c7 | 39348 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39350 | (eval $ac_try) 2>&5 | |
39351 | ac_status=$? | |
39352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39353 | (exit $ac_status); }; } && | |
39354 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39356 | (eval $ac_try) 2>&5 | |
39357 | ac_status=$? | |
39358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39359 | (exit $ac_status); }; }; then | |
39360 | wx_cv_type_getsockname3=socklen_t | |
39361 | else | |
39362 | echo "$as_me: failed program was:" >&5 | |
39363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39364 | ||
39365 | ||
39366 | CFLAGS_OLD="$CFLAGS" | |
39367 | if test "$GCC" = yes ; then | |
39368 | CFLAGS="$CFLAGS -Werror" | |
39369 | fi | |
39370 | ||
39371 | cat >conftest.$ac_ext <<_ACEOF | |
39372 | /* confdefs.h. */ | |
39373 | _ACEOF | |
39374 | cat confdefs.h >>conftest.$ac_ext | |
39375 | cat >>conftest.$ac_ext <<_ACEOF | |
39376 | /* end confdefs.h. */ | |
39377 | ||
39378 | #include <sys/types.h> | |
39379 | #include <sys/socket.h> | |
39380 | ||
39381 | int | |
39382 | main () | |
39383 | { | |
39384 | ||
39385 | size_t len; | |
39386 | getsockname(0, 0, &len); | |
39387 | ||
39388 | ; | |
39389 | return 0; | |
39390 | } | |
39391 | _ACEOF | |
39392 | rm -f conftest.$ac_objext | |
39393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39394 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39395 | ac_status=$? |
ac1cb8d3 VS |
39396 | grep -v '^ *+' conftest.er1 >conftest.err |
39397 | rm -f conftest.er1 | |
39398 | cat conftest.err >&5 | |
a848cd7e SC |
39399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39400 | (exit $ac_status); } && | |
6ebeb4c7 | 39401 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39403 | (eval $ac_try) 2>&5 | |
39404 | ac_status=$? | |
39405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39406 | (exit $ac_status); }; } && | |
39407 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39409 | (eval $ac_try) 2>&5 | |
39410 | ac_status=$? | |
39411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39412 | (exit $ac_status); }; }; then | |
39413 | wx_cv_type_getsockname3=size_t | |
39414 | else | |
39415 | echo "$as_me: failed program was:" >&5 | |
39416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39417 | ||
39418 | cat >conftest.$ac_ext <<_ACEOF | |
39419 | /* confdefs.h. */ | |
39420 | _ACEOF | |
39421 | cat confdefs.h >>conftest.$ac_ext | |
39422 | cat >>conftest.$ac_ext <<_ACEOF | |
39423 | /* end confdefs.h. */ | |
39424 | ||
39425 | #include <sys/types.h> | |
39426 | #include <sys/socket.h> | |
39427 | ||
39428 | int | |
39429 | main () | |
39430 | { | |
39431 | ||
39432 | int len; | |
39433 | getsockname(0, 0, &len); | |
39434 | ||
39435 | ; | |
39436 | return 0; | |
39437 | } | |
39438 | _ACEOF | |
39439 | rm -f conftest.$ac_objext | |
39440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39441 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39442 | ac_status=$? |
ac1cb8d3 VS |
39443 | grep -v '^ *+' conftest.er1 >conftest.err |
39444 | rm -f conftest.er1 | |
39445 | cat conftest.err >&5 | |
a848cd7e SC |
39446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39447 | (exit $ac_status); } && | |
6ebeb4c7 | 39448 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39450 | (eval $ac_try) 2>&5 | |
39451 | ac_status=$? | |
39452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39453 | (exit $ac_status); }; } && | |
39454 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39456 | (eval $ac_try) 2>&5 | |
39457 | ac_status=$? | |
39458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39459 | (exit $ac_status); }; }; then | |
39460 | wx_cv_type_getsockname3=int | |
39461 | else | |
39462 | echo "$as_me: failed program was:" >&5 | |
39463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39464 | ||
39465 | wx_cv_type_getsockname3=unknown | |
39466 | ||
39467 | fi | |
ac1cb8d3 | 39468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39469 | |
39470 | fi | |
ac1cb8d3 | 39471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39472 | |
39473 | CFLAGS="$CFLAGS_OLD" | |
39474 | ||
39475 | ||
39476 | fi | |
ac1cb8d3 | 39477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39478 | |
39479 | fi | |
39480 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
39481 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
39482 | ||
39483 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
39484 | wxUSE_SOCKETS=no | |
39485 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
39486 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
39487 | else | |
39488 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 39489 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
39490 | _ACEOF |
39491 | ||
39492 | fi | |
39493 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
39494 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
39495 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
39496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39497 | else | |
39498 | ||
39499 | cat >conftest.$ac_ext <<_ACEOF | |
39500 | /* confdefs.h. */ | |
39501 | _ACEOF | |
39502 | cat confdefs.h >>conftest.$ac_ext | |
39503 | cat >>conftest.$ac_ext <<_ACEOF | |
39504 | /* end confdefs.h. */ | |
39505 | ||
39506 | #include <sys/types.h> | |
39507 | #include <sys/socket.h> | |
39508 | ||
39509 | int | |
39510 | main () | |
39511 | { | |
39512 | ||
39513 | socklen_t len; | |
39514 | getsockopt(0, 0, 0, 0, &len); | |
39515 | ||
39516 | ; | |
39517 | return 0; | |
39518 | } | |
39519 | _ACEOF | |
39520 | rm -f conftest.$ac_objext | |
39521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39522 | (eval $ac_compile) 2>conftest.er1 | |
39523 | ac_status=$? | |
39524 | grep -v '^ *+' conftest.er1 >conftest.err | |
39525 | rm -f conftest.er1 | |
39526 | cat conftest.err >&5 | |
39527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39528 | (exit $ac_status); } && | |
6ebeb4c7 | 39529 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
39530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39531 | (eval $ac_try) 2>&5 | |
39532 | ac_status=$? | |
39533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39534 | (exit $ac_status); }; } && | |
39535 | { ac_try='test -s conftest.$ac_objext' | |
39536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39537 | (eval $ac_try) 2>&5 | |
39538 | ac_status=$? | |
39539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39540 | (exit $ac_status); }; }; then | |
39541 | wx_cv_type_getsockopt5=socklen_t | |
39542 | else | |
39543 | echo "$as_me: failed program was:" >&5 | |
39544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39545 | ||
39546 | ||
39547 | CFLAGS_OLD="$CFLAGS" | |
39548 | if test "$GCC" = yes ; then | |
39549 | CFLAGS="$CFLAGS -Werror" | |
39550 | fi | |
39551 | ||
39552 | cat >conftest.$ac_ext <<_ACEOF | |
39553 | /* confdefs.h. */ | |
39554 | _ACEOF | |
39555 | cat confdefs.h >>conftest.$ac_ext | |
39556 | cat >>conftest.$ac_ext <<_ACEOF | |
39557 | /* end confdefs.h. */ | |
39558 | ||
39559 | #include <sys/types.h> | |
39560 | #include <sys/socket.h> | |
39561 | ||
39562 | int | |
39563 | main () | |
39564 | { | |
39565 | ||
39566 | size_t len; | |
39567 | getsockopt(0, 0, 0, 0, &len); | |
39568 | ||
39569 | ; | |
39570 | return 0; | |
39571 | } | |
39572 | _ACEOF | |
39573 | rm -f conftest.$ac_objext | |
39574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39575 | (eval $ac_compile) 2>conftest.er1 | |
39576 | ac_status=$? | |
39577 | grep -v '^ *+' conftest.er1 >conftest.err | |
39578 | rm -f conftest.er1 | |
39579 | cat conftest.err >&5 | |
39580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39581 | (exit $ac_status); } && | |
6ebeb4c7 | 39582 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
39583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39584 | (eval $ac_try) 2>&5 | |
39585 | ac_status=$? | |
39586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39587 | (exit $ac_status); }; } && | |
39588 | { ac_try='test -s conftest.$ac_objext' | |
39589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39590 | (eval $ac_try) 2>&5 | |
39591 | ac_status=$? | |
39592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39593 | (exit $ac_status); }; }; then | |
39594 | wx_cv_type_getsockopt5=size_t | |
39595 | else | |
39596 | echo "$as_me: failed program was:" >&5 | |
39597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39598 | ||
39599 | cat >conftest.$ac_ext <<_ACEOF | |
39600 | /* confdefs.h. */ | |
39601 | _ACEOF | |
39602 | cat confdefs.h >>conftest.$ac_ext | |
39603 | cat >>conftest.$ac_ext <<_ACEOF | |
39604 | /* end confdefs.h. */ | |
39605 | ||
39606 | #include <sys/types.h> | |
39607 | #include <sys/socket.h> | |
39608 | ||
39609 | int | |
39610 | main () | |
39611 | { | |
39612 | ||
39613 | int len; | |
39614 | getsockopt(0, 0, 0, 0, &len); | |
39615 | ||
39616 | ; | |
39617 | return 0; | |
39618 | } | |
39619 | _ACEOF | |
39620 | rm -f conftest.$ac_objext | |
39621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39622 | (eval $ac_compile) 2>conftest.er1 | |
39623 | ac_status=$? | |
39624 | grep -v '^ *+' conftest.er1 >conftest.err | |
39625 | rm -f conftest.er1 | |
39626 | cat conftest.err >&5 | |
39627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39628 | (exit $ac_status); } && | |
6ebeb4c7 | 39629 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
39630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39631 | (eval $ac_try) 2>&5 | |
39632 | ac_status=$? | |
39633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39634 | (exit $ac_status); }; } && | |
39635 | { ac_try='test -s conftest.$ac_objext' | |
39636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39637 | (eval $ac_try) 2>&5 | |
39638 | ac_status=$? | |
39639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39640 | (exit $ac_status); }; }; then | |
39641 | wx_cv_type_getsockopt5=int | |
39642 | else | |
39643 | echo "$as_me: failed program was:" >&5 | |
39644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39645 | ||
39646 | wx_cv_type_getsockopt5=unknown | |
39647 | ||
39648 | fi | |
39649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39650 | ||
39651 | fi | |
39652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39653 | ||
39654 | CFLAGS="$CFLAGS_OLD" | |
39655 | ||
39656 | ||
39657 | fi | |
39658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39659 | ||
39660 | fi | |
39661 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
39662 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
39663 | ||
39664 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
39665 | wxUSE_SOCKETS=no | |
39666 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
39667 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
39668 | else | |
39669 | cat >>confdefs.h <<_ACEOF | |
39670 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
39671 | _ACEOF |
39672 | ||
39673 | fi | |
4d4ff94c VZ |
39674 | ac_ext=c |
39675 | ac_cpp='$CPP $CPPFLAGS' | |
39676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39679 | ||
a848cd7e SC |
39680 | fi |
39681 | fi | |
39682 | ||
39683 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
39684 | cat >>confdefs.h <<\_ACEOF | |
39685 | #define wxUSE_SOCKETS 1 | |
39686 | _ACEOF | |
39687 | ||
39688 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
39689 | fi | |
39690 | ||
39691 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
39692 | if test "$wxUSE_SOCKETS" != "yes"; then | |
39693 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
39694 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
39695 | wxUSE_PROTOCOL=no | |
39696 | fi | |
39697 | fi | |
39698 | ||
39699 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
39700 | cat >>confdefs.h <<\_ACEOF | |
39701 | #define wxUSE_PROTOCOL 1 | |
39702 | _ACEOF | |
39703 | ||
39704 | ||
39705 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
39706 | cat >>confdefs.h <<\_ACEOF | |
39707 | #define wxUSE_PROTOCOL_HTTP 1 | |
39708 | _ACEOF | |
39709 | ||
39710 | fi | |
39711 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
39712 | cat >>confdefs.h <<\_ACEOF | |
39713 | #define wxUSE_PROTOCOL_FTP 1 | |
39714 | _ACEOF | |
39715 | ||
39716 | fi | |
39717 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
39718 | cat >>confdefs.h <<\_ACEOF | |
39719 | #define wxUSE_PROTOCOL_FILE 1 | |
39720 | _ACEOF | |
39721 | ||
39722 | fi | |
39723 | else | |
39724 | if test "$wxUSE_FS_INET" = "yes"; then | |
39725 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
39726 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
39727 | wxUSE_FS_INET="no" | |
39728 | fi | |
39729 | fi | |
39730 | ||
39731 | if test "$wxUSE_URL" = "yes"; then | |
39732 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
39733 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
39734 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
39735 | wxUSE_URL=no | |
39736 | fi | |
39737 | if test "$wxUSE_URL" = "yes"; then | |
39738 | cat >>confdefs.h <<\_ACEOF | |
39739 | #define wxUSE_URL 1 | |
39740 | _ACEOF | |
39741 | ||
39742 | fi | |
39743 | fi | |
39744 | ||
39745 | if test "$wxUSE_FS_INET" = "yes"; then | |
39746 | cat >>confdefs.h <<\_ACEOF | |
39747 | #define wxUSE_FS_INET 1 | |
39748 | _ACEOF | |
39749 | ||
39750 | fi | |
39751 | ||
39752 | ||
ee45c548 MW |
39753 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
39754 | wxUSE_JOYSTICK=no | |
39755 | ||
39756 | if test "$TOOLKIT" = "MSW"; then | |
39757 | wxUSE_JOYSTICK=yes | |
39758 | ||
39759 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
39760 | if test "$USE_DARWIN" = 1; then | |
39761 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
39762 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
39763 | ac_ext=cc | |
39764 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39765 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39766 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39767 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39768 | ||
39769 | cat >conftest.$ac_ext <<_ACEOF | |
39770 | /* confdefs.h. */ | |
39771 | _ACEOF | |
39772 | cat confdefs.h >>conftest.$ac_ext | |
39773 | cat >>conftest.$ac_ext <<_ACEOF | |
39774 | /* end confdefs.h. */ | |
39775 | #include <IOKit/hid/IOHIDLib.h> | |
39776 | int | |
39777 | main () | |
39778 | { | |
39779 | IOHIDQueueInterface *qi = NULL; | |
39780 | IOHIDCallbackFunction cb = NULL; | |
39781 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
39782 | ; | |
39783 | return 0; | |
39784 | } | |
39785 | _ACEOF | |
39786 | rm -f conftest.$ac_objext | |
39787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39788 | (eval $ac_compile) 2>conftest.er1 | |
39789 | ac_status=$? | |
39790 | grep -v '^ *+' conftest.er1 >conftest.err | |
39791 | rm -f conftest.er1 | |
39792 | cat conftest.err >&5 | |
39793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39794 | (exit $ac_status); } && | |
6ebeb4c7 | 39795 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
39796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39797 | (eval $ac_try) 2>&5 | |
39798 | ac_status=$? | |
39799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39800 | (exit $ac_status); }; } && | |
39801 | { ac_try='test -s conftest.$ac_objext' | |
39802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39803 | (eval $ac_try) 2>&5 | |
39804 | ac_status=$? | |
39805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39806 | (exit $ac_status); }; }; then | |
39807 | wxUSE_JOYSTICK=yes | |
a848cd7e | 39808 | |
ee45c548 MW |
39809 | else |
39810 | echo "$as_me: failed program was:" >&5 | |
39811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39812 | ||
39813 | fi | |
39814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39815 | ac_ext=c | |
39816 | ac_cpp='$CPP $CPPFLAGS' | |
39817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39820 | ||
39821 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
39822 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
39823 | fi | |
39824 | ||
39825 | else | |
a848cd7e SC |
39826 | |
39827 | for ac_header in linux/joystick.h | |
39828 | do | |
39829 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
39830 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39831 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39832 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39835 | fi | |
39836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39837 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39838 | else | |
39839 | # Is the header compilable? | |
39840 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
39841 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
39842 | cat >conftest.$ac_ext <<_ACEOF | |
39843 | /* confdefs.h. */ | |
39844 | _ACEOF | |
39845 | cat confdefs.h >>conftest.$ac_ext | |
39846 | cat >>conftest.$ac_ext <<_ACEOF | |
39847 | /* end confdefs.h. */ | |
39848 | $ac_includes_default | |
39849 | #include <$ac_header> | |
39850 | _ACEOF | |
39851 | rm -f conftest.$ac_objext | |
39852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39853 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39854 | ac_status=$? |
ac1cb8d3 VS |
39855 | grep -v '^ *+' conftest.er1 >conftest.err |
39856 | rm -f conftest.er1 | |
39857 | cat conftest.err >&5 | |
a848cd7e SC |
39858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39859 | (exit $ac_status); } && | |
6ebeb4c7 | 39860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39862 | (eval $ac_try) 2>&5 | |
39863 | ac_status=$? | |
39864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39865 | (exit $ac_status); }; } && | |
39866 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39868 | (eval $ac_try) 2>&5 | |
39869 | ac_status=$? | |
39870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39871 | (exit $ac_status); }; }; then | |
39872 | ac_header_compiler=yes | |
39873 | else | |
39874 | echo "$as_me: failed program was:" >&5 | |
39875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39876 | ||
39877 | ac_header_compiler=no | |
39878 | fi | |
ac1cb8d3 | 39879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39880 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
39881 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
39882 | ||
39883 | # Is the header present? | |
39884 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
39885 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
39886 | cat >conftest.$ac_ext <<_ACEOF | |
39887 | /* confdefs.h. */ | |
39888 | _ACEOF | |
39889 | cat confdefs.h >>conftest.$ac_ext | |
39890 | cat >>conftest.$ac_ext <<_ACEOF | |
39891 | /* end confdefs.h. */ | |
39892 | #include <$ac_header> | |
39893 | _ACEOF | |
39894 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
39895 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
39896 | ac_status=$? | |
39897 | grep -v '^ *+' conftest.er1 >conftest.err | |
39898 | rm -f conftest.er1 | |
39899 | cat conftest.err >&5 | |
39900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39901 | (exit $ac_status); } >/dev/null; then | |
39902 | if test -s conftest.err; then | |
39903 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 39904 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
39905 | else |
39906 | ac_cpp_err= | |
39907 | fi | |
39908 | else | |
39909 | ac_cpp_err=yes | |
39910 | fi | |
39911 | if test -z "$ac_cpp_err"; then | |
39912 | ac_header_preproc=yes | |
39913 | else | |
39914 | echo "$as_me: failed program was:" >&5 | |
39915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39916 | ||
39917 | ac_header_preproc=no | |
39918 | fi | |
39919 | rm -f conftest.err conftest.$ac_ext | |
39920 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
39921 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
39922 | ||
39923 | # So? What about this header? | |
ac1cb8d3 VS |
39924 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
39925 | yes:no: ) | |
a848cd7e SC |
39926 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
39927 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
39928 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
39929 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
39930 | ac_header_preproc=yes | |
a848cd7e | 39931 | ;; |
ac1cb8d3 | 39932 | no:yes:* ) |
a848cd7e SC |
39933 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
39934 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
39935 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
39936 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
39937 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
39938 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
39939 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
39940 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
39941 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
39942 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
39943 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
39944 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
39945 | ( |
39946 | cat <<\_ASBOX | |
ac1cb8d3 VS |
39947 | ## ----------------------------------------- ## |
39948 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
39949 | ## ----------------------------------------- ## | |
a848cd7e SC |
39950 | _ASBOX |
39951 | ) | | |
39952 | sed "s/^/$as_me: WARNING: /" >&2 | |
39953 | ;; | |
39954 | esac | |
39955 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39956 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39959 | else | |
ac1cb8d3 | 39960 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
39961 | fi |
39962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39963 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39964 | ||
39965 | fi | |
39966 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39967 | cat >>confdefs.h <<_ACEOF | |
39968 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
39969 | _ACEOF | |
ee45c548 | 39970 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
39971 | fi |
39972 | ||
39973 | done | |
39974 | ||
ee45c548 | 39975 | fi |
4cb1d3da | 39976 | |
ee45c548 MW |
39977 | if test "$wxUSE_JOYSTICK" = "yes"; then |
39978 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39979 | #define wxUSE_JOYSTICK 1 |
39980 | _ACEOF | |
39981 | ||
ee45c548 MW |
39982 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
39983 | else | |
39984 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
39985 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
39986 | fi |
39987 | fi | |
39988 | ||
39989 | ||
39990 | ||
39991 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
39992 | cat >>confdefs.h <<\_ACEOF | |
39993 | #define wxUSE_FONTMAP 1 | |
39994 | _ACEOF | |
39995 | ||
39996 | fi | |
39997 | ||
39998 | if test "$wxUSE_UNICODE" = "yes" ; then | |
39999 | cat >>confdefs.h <<\_ACEOF | |
40000 | #define wxUSE_UNICODE 1 | |
40001 | _ACEOF | |
40002 | ||
40003 | ||
40004 | if test "$USE_WIN32" != 1; then | |
40005 | wxUSE_UNICODE_MSLU=no | |
40006 | fi | |
40007 | ||
40008 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
40009 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
40010 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
40011 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
40012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40013 | else | |
40014 | ac_check_lib_save_LIBS=$LIBS | |
40015 | LIBS="-lunicows $LIBS" | |
40016 | cat >conftest.$ac_ext <<_ACEOF | |
40017 | /* confdefs.h. */ | |
40018 | _ACEOF | |
40019 | cat confdefs.h >>conftest.$ac_ext | |
40020 | cat >>conftest.$ac_ext <<_ACEOF | |
40021 | /* end confdefs.h. */ | |
40022 | ||
40023 | ||
40024 | int | |
40025 | main () | |
40026 | { | |
40027 | main (); | |
40028 | ; | |
40029 | return 0; | |
40030 | } | |
40031 | _ACEOF | |
40032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40034 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40035 | ac_status=$? |
ac1cb8d3 VS |
40036 | grep -v '^ *+' conftest.er1 >conftest.err |
40037 | rm -f conftest.er1 | |
40038 | cat conftest.err >&5 | |
a848cd7e SC |
40039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40040 | (exit $ac_status); } && | |
6ebeb4c7 | 40041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40043 | (eval $ac_try) 2>&5 | |
40044 | ac_status=$? | |
40045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40046 | (exit $ac_status); }; } && | |
40047 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
40053 | ac_cv_lib_unicows_main=yes | |
40054 | else | |
40055 | echo "$as_me: failed program was:" >&5 | |
40056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40057 | ||
40058 | ac_cv_lib_unicows_main=no | |
40059 | fi | |
ac1cb8d3 VS |
40060 | rm -f conftest.err conftest.$ac_objext \ |
40061 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40062 | LIBS=$ac_check_lib_save_LIBS |
40063 | fi | |
40064 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
40065 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
40066 | if test $ac_cv_lib_unicows_main = yes; then | |
40067 | ||
40068 | cat >>confdefs.h <<\_ACEOF | |
40069 | #define wxUSE_UNICODE_MSLU 1 | |
40070 | _ACEOF | |
40071 | ||
40072 | ||
40073 | else | |
40074 | ||
40075 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
40076 | Applications will only run on Windows NT/2000/XP!" >&5 | |
40077 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
40078 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
40079 | wxUSE_UNICODE_MSLU=no | |
40080 | ||
40081 | fi | |
40082 | ||
40083 | fi | |
40084 | fi | |
40085 | ||
40086 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
40087 | cat >>confdefs.h <<\_ACEOF | |
40088 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
40089 | _ACEOF | |
40090 | ||
40091 | fi | |
40092 | ||
40093 | ||
40094 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
40095 | cat >>confdefs.h <<\_ACEOF | |
40096 | #define wxUSE_POSTSCRIPT 1 | |
40097 | _ACEOF | |
40098 | ||
40099 | fi | |
40100 | ||
40101 | cat >>confdefs.h <<\_ACEOF | |
40102 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
40103 | _ACEOF | |
40104 | ||
40105 | ||
40106 | cat >>confdefs.h <<\_ACEOF | |
40107 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
40108 | _ACEOF | |
40109 | ||
40110 | ||
40111 | ||
40112 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
40113 | cat >>confdefs.h <<\_ACEOF | |
40114 | #define wxUSE_CONSTRAINTS 1 | |
40115 | _ACEOF | |
40116 | ||
40117 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
40118 | fi | |
40119 | ||
8a7b1113 VZ |
40120 | if test "$wxUSE_MDI" = "yes"; then |
40121 | cat >>confdefs.h <<\_ACEOF | |
40122 | #define wxUSE_MDI 1 | |
40123 | _ACEOF | |
40124 | ||
40125 | ||
40126 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
40127 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40128 | #define wxUSE_MDI_ARCHITECTURE 1 |
40129 | _ACEOF | |
40130 | ||
8a7b1113 VZ |
40131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
40132 | fi | |
a848cd7e SC |
40133 | fi |
40134 | ||
40135 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
40136 | cat >>confdefs.h <<\_ACEOF | |
40137 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
40138 | _ACEOF | |
40139 | ||
40140 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
40141 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
40142 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
40143 | fi | |
40144 | fi | |
40145 | ||
40146 | if test "$wxUSE_HELP" = "yes"; then | |
40147 | cat >>confdefs.h <<\_ACEOF | |
40148 | #define wxUSE_HELP 1 | |
40149 | _ACEOF | |
40150 | ||
40151 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
40152 | ||
40153 | if test "$wxUSE_MSW" = 1; then | |
40154 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
40155 | cat >>confdefs.h <<\_ACEOF | |
40156 | #define wxUSE_MS_HTML_HELP 1 | |
40157 | _ACEOF | |
40158 | ||
40159 | fi | |
40160 | fi | |
40161 | ||
40162 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
40163 | if test "$wxUSE_HTML" = "yes"; then | |
40164 | cat >>confdefs.h <<\_ACEOF | |
40165 | #define wxUSE_WXHTML_HELP 1 | |
40166 | _ACEOF | |
40167 | ||
40168 | else | |
40169 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
40170 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
40171 | wxUSE_WXHTML_HELP=no | |
40172 | fi | |
40173 | fi | |
40174 | fi | |
40175 | ||
40176 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
40177 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
40178 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
40179 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
40180 | else | |
40181 | cat >>confdefs.h <<\_ACEOF | |
40182 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
40183 | _ACEOF | |
40184 | ||
40185 | fi | |
40186 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
40187 | fi | |
40188 | ||
40189 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
40190 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
40191 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
40192 | { (exit 1); exit 1; }; } | |
40193 | fi | |
40194 | ||
40195 | ||
efdf6afe VZ |
40196 | if test "$wxUSE_METAFILE" = "yes"; then |
40197 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
40198 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
40199 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
40200 | wxUSE_METAFILE=no | |
40201 | fi | |
40202 | fi | |
40203 | ||
40204 | ||
a848cd7e SC |
40205 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
40206 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
40207 | -o "$wxUSE_OLE" = "yes" \ | |
40208 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
40209 | ||
40210 | for ac_header in ole2.h | |
40211 | do | |
40212 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
40213 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40214 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40215 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40216 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40218 | fi | |
40219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40220 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40221 | else | |
40222 | # Is the header compilable? | |
40223 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
40224 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
40225 | cat >conftest.$ac_ext <<_ACEOF | |
40226 | /* confdefs.h. */ | |
40227 | _ACEOF | |
40228 | cat confdefs.h >>conftest.$ac_ext | |
40229 | cat >>conftest.$ac_ext <<_ACEOF | |
40230 | /* end confdefs.h. */ | |
40231 | $ac_includes_default | |
40232 | #include <$ac_header> | |
40233 | _ACEOF | |
40234 | rm -f conftest.$ac_objext | |
40235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40236 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40237 | ac_status=$? |
ac1cb8d3 VS |
40238 | grep -v '^ *+' conftest.er1 >conftest.err |
40239 | rm -f conftest.er1 | |
40240 | cat conftest.err >&5 | |
a848cd7e SC |
40241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40242 | (exit $ac_status); } && | |
6ebeb4c7 | 40243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40245 | (eval $ac_try) 2>&5 | |
40246 | ac_status=$? | |
40247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40248 | (exit $ac_status); }; } && | |
40249 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40251 | (eval $ac_try) 2>&5 | |
40252 | ac_status=$? | |
40253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40254 | (exit $ac_status); }; }; then | |
40255 | ac_header_compiler=yes | |
40256 | else | |
40257 | echo "$as_me: failed program was:" >&5 | |
40258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40259 | ||
40260 | ac_header_compiler=no | |
40261 | fi | |
ac1cb8d3 | 40262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40263 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
40264 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
40265 | ||
40266 | # Is the header present? | |
40267 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
40268 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
40269 | cat >conftest.$ac_ext <<_ACEOF | |
40270 | /* confdefs.h. */ | |
40271 | _ACEOF | |
40272 | cat confdefs.h >>conftest.$ac_ext | |
40273 | cat >>conftest.$ac_ext <<_ACEOF | |
40274 | /* end confdefs.h. */ | |
40275 | #include <$ac_header> | |
40276 | _ACEOF | |
40277 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
40278 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
40279 | ac_status=$? | |
40280 | grep -v '^ *+' conftest.er1 >conftest.err | |
40281 | rm -f conftest.er1 | |
40282 | cat conftest.err >&5 | |
40283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40284 | (exit $ac_status); } >/dev/null; then | |
40285 | if test -s conftest.err; then | |
40286 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 40287 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
40288 | else |
40289 | ac_cpp_err= | |
40290 | fi | |
40291 | else | |
40292 | ac_cpp_err=yes | |
40293 | fi | |
40294 | if test -z "$ac_cpp_err"; then | |
40295 | ac_header_preproc=yes | |
40296 | else | |
40297 | echo "$as_me: failed program was:" >&5 | |
40298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40299 | ||
40300 | ac_header_preproc=no | |
40301 | fi | |
40302 | rm -f conftest.err conftest.$ac_ext | |
40303 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
40304 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
40305 | ||
40306 | # So? What about this header? | |
ac1cb8d3 VS |
40307 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
40308 | yes:no: ) | |
a848cd7e SC |
40309 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
40310 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
40311 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
40312 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
40313 | ac_header_preproc=yes | |
a848cd7e | 40314 | ;; |
ac1cb8d3 | 40315 | no:yes:* ) |
a848cd7e SC |
40316 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
40317 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
40318 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
40319 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
40320 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
40321 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
40322 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
40323 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
40324 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
40325 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
40326 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
40327 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
40328 | ( |
40329 | cat <<\_ASBOX | |
ac1cb8d3 VS |
40330 | ## ----------------------------------------- ## |
40331 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
40332 | ## ----------------------------------------- ## | |
a848cd7e SC |
40333 | _ASBOX |
40334 | ) | | |
40335 | sed "s/^/$as_me: WARNING: /" >&2 | |
40336 | ;; | |
40337 | esac | |
40338 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40342 | else | |
ac1cb8d3 | 40343 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
40344 | fi |
40345 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40346 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40347 | ||
40348 | fi | |
40349 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
40350 | cat >>confdefs.h <<_ACEOF | |
40351 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
40352 | _ACEOF | |
40353 | ||
40354 | fi | |
40355 | ||
40356 | done | |
40357 | ||
40358 | ||
40359 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
40360 | if test "$GCC" = yes ; then | |
40361 | ||
40362 | ||
40363 | ac_ext=cc | |
40364 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40365 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40366 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40367 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
40368 | ||
40369 | ||
40370 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
40371 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
40372 | cat >conftest.$ac_ext <<_ACEOF | |
40373 | /* confdefs.h. */ | |
40374 | _ACEOF | |
40375 | cat confdefs.h >>conftest.$ac_ext | |
40376 | cat >>conftest.$ac_ext <<_ACEOF | |
40377 | /* end confdefs.h. */ | |
40378 | #include <windows.h> | |
40379 | #include <ole2.h> | |
40380 | int | |
40381 | main () | |
40382 | { | |
40383 | ||
40384 | ; | |
40385 | return 0; | |
40386 | } | |
40387 | _ACEOF | |
40388 | rm -f conftest.$ac_objext | |
40389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40391 | ac_status=$? |
ac1cb8d3 VS |
40392 | grep -v '^ *+' conftest.er1 >conftest.err |
40393 | rm -f conftest.er1 | |
40394 | cat conftest.err >&5 | |
a848cd7e SC |
40395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40396 | (exit $ac_status); } && | |
6ebeb4c7 | 40397 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40399 | (eval $ac_try) 2>&5 | |
40400 | ac_status=$? | |
40401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40402 | (exit $ac_status); }; } && | |
40403 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40405 | (eval $ac_try) 2>&5 | |
40406 | ac_status=$? | |
40407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40408 | (exit $ac_status); }; }; then | |
40409 | echo "$as_me:$LINENO: result: no" >&5 | |
40410 | echo "${ECHO_T}no" >&6 | |
40411 | else | |
40412 | echo "$as_me: failed program was:" >&5 | |
40413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40414 | ||
40415 | echo "$as_me:$LINENO: result: yes" >&5 | |
40416 | echo "${ECHO_T}yes" >&6 | |
40417 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
40418 | fi | |
ac1cb8d3 | 40419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40420 | ac_ext=c |
40421 | ac_cpp='$CPP $CPPFLAGS' | |
40422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40425 | ||
a848cd7e SC |
40426 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
40427 | if test "$wxUSE_OLE" = "yes" ; then | |
40428 | cat >>confdefs.h <<\_ACEOF | |
40429 | #define wxUSE_OLE 1 | |
40430 | _ACEOF | |
40431 | ||
0b78747f | 40432 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
40433 | fi |
40434 | fi | |
40435 | ||
40436 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
40437 | cat >>confdefs.h <<\_ACEOF | |
40438 | #define wxUSE_DATAOBJ 1 | |
40439 | _ACEOF | |
40440 | ||
40441 | fi | |
40442 | else | |
40443 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
40444 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
40445 | ||
40446 | wxUSE_CLIPBOARD=no | |
40447 | wxUSE_DRAG_AND_DROP=no | |
40448 | wxUSE_DATAOBJ=no | |
40449 | wxUSE_OLE=no | |
40450 | fi | |
40451 | ||
40452 | if test "$wxUSE_METAFILE" = "yes"; then | |
40453 | cat >>confdefs.h <<\_ACEOF | |
40454 | #define wxUSE_METAFILE 1 | |
40455 | _ACEOF | |
40456 | ||
40457 | ||
40458 | cat >>confdefs.h <<\_ACEOF | |
40459 | #define wxUSE_ENH_METAFILE 1 | |
40460 | _ACEOF | |
40461 | ||
40462 | fi | |
40463 | fi | |
40464 | ||
40465 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 40466 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
40467 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
40468 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 40469 | wxUSE_IPC=no |
a848cd7e SC |
40470 | fi |
40471 | ||
0b78747f MW |
40472 | if test "$wxUSE_IPC" = "yes"; then |
40473 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40474 | #define wxUSE_IPC 1 |
40475 | _ACEOF | |
40476 | ||
0b78747f MW |
40477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
40478 | fi | |
a848cd7e SC |
40479 | fi |
40480 | ||
eb730a0c | 40481 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
40482 | if test "$wxUSE_MGL" = 1; then |
40483 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
40484 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
40485 | wxUSE_DATAOBJ=no | |
40486 | else | |
40487 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
40488 | #define wxUSE_DATAOBJ 1 |
40489 | _ACEOF | |
40490 | ||
2113bc77 | 40491 | fi |
eb730a0c JS |
40492 | else |
40493 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
40494 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
40495 | wxUSE_CLIPBOARD=no | |
40496 | wxUSE_DRAG_AND_DROP=no | |
40497 | fi | |
40498 | ||
a848cd7e SC |
40499 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
40500 | if test "$wxUSE_MGL" = 1; then | |
40501 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
40502 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
40503 | wxUSE_CLIPBOARD=no | |
40504 | fi | |
40505 | ||
40506 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
40507 | cat >>confdefs.h <<\_ACEOF | |
40508 | #define wxUSE_CLIPBOARD 1 | |
40509 | _ACEOF | |
40510 | ||
a848cd7e SC |
40511 | fi |
40512 | fi | |
40513 | ||
40514 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
40515 | if test "$wxUSE_GTK" = 1; then | |
40516 | if test "$WXGTK12" != 1; then | |
40517 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
40518 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
40519 | wxUSE_DRAG_AND_DROP=no | |
40520 | fi | |
40521 | fi | |
40522 | ||
40523 | if test "$wxUSE_MOTIF" = 1; then | |
40524 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
40525 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
40526 | wxUSE_DRAG_AND_DROP=no | |
40527 | fi | |
40528 | ||
40529 | if test "$wxUSE_X11" = 1; then | |
40530 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
40531 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
40532 | wxUSE_DRAG_AND_DROP=no | |
40533 | fi | |
40534 | ||
40535 | if test "$wxUSE_MGL" = 1; then | |
40536 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
40537 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
40538 | wxUSE_DRAG_AND_DROP=no | |
40539 | fi | |
40540 | ||
40541 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
40542 | cat >>confdefs.h <<\_ACEOF | |
40543 | #define wxUSE_DRAG_AND_DROP 1 | |
40544 | _ACEOF | |
40545 | ||
40546 | fi | |
40547 | ||
40548 | fi | |
40549 | ||
40550 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
40551 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
40552 | fi | |
40553 | ||
40554 | if test "$wxUSE_SPLINES" = "yes" ; then | |
40555 | cat >>confdefs.h <<\_ACEOF | |
40556 | #define wxUSE_SPLINES 1 | |
40557 | _ACEOF | |
40558 | ||
40559 | fi | |
40560 | ||
fbe2ca43 SN |
40561 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
40562 | cat >>confdefs.h <<\_ACEOF | |
40563 | #define wxUSE_MOUSEWHEEL 1 | |
40564 | _ACEOF | |
40565 | ||
40566 | fi | |
40567 | ||
a848cd7e SC |
40568 | |
40569 | USES_CONTROLS=0 | |
40570 | if test "$wxUSE_CONTROLS" = "yes"; then | |
40571 | USES_CONTROLS=1 | |
40572 | fi | |
40573 | ||
40574 | if test "$wxUSE_ACCEL" = "yes"; then | |
40575 | cat >>confdefs.h <<\_ACEOF | |
40576 | #define wxUSE_ACCEL 1 | |
40577 | _ACEOF | |
40578 | ||
40579 | USES_CONTROLS=1 | |
40580 | fi | |
40581 | ||
40582 | if test "$wxUSE_BUTTON" = "yes"; then | |
40583 | cat >>confdefs.h <<\_ACEOF | |
40584 | #define wxUSE_BUTTON 1 | |
40585 | _ACEOF | |
40586 | ||
40587 | USES_CONTROLS=1 | |
40588 | fi | |
40589 | ||
40590 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
40591 | cat >>confdefs.h <<\_ACEOF | |
40592 | #define wxUSE_BMPBUTTON 1 | |
40593 | _ACEOF | |
40594 | ||
40595 | USES_CONTROLS=1 | |
40596 | fi | |
40597 | ||
40598 | if test "$wxUSE_CALCTRL" = "yes"; then | |
40599 | cat >>confdefs.h <<\_ACEOF | |
40600 | #define wxUSE_CALENDARCTRL 1 | |
40601 | _ACEOF | |
40602 | ||
40603 | USES_CONTROLS=1 | |
40604 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
40605 | fi | |
40606 | ||
40607 | if test "$wxUSE_CARET" = "yes"; then | |
40608 | cat >>confdefs.h <<\_ACEOF | |
40609 | #define wxUSE_CARET 1 | |
40610 | _ACEOF | |
40611 | ||
40612 | USES_CONTROLS=1 | |
40613 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
40614 | fi | |
40615 | ||
40616 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
40617 | cat >>confdefs.h <<\_ACEOF | |
40618 | #define wxUSE_COMBOBOX 1 | |
40619 | _ACEOF | |
40620 | ||
40621 | USES_CONTROLS=1 | |
40622 | fi | |
40623 | ||
40624 | if test "$wxUSE_CHOICE" = "yes"; then | |
40625 | cat >>confdefs.h <<\_ACEOF | |
40626 | #define wxUSE_CHOICE 1 | |
40627 | _ACEOF | |
40628 | ||
40629 | USES_CONTROLS=1 | |
40630 | fi | |
40631 | ||
92bbdbcd WS |
40632 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
40633 | cat >>confdefs.h <<\_ACEOF | |
40634 | #define wxUSE_CHOICEBOOK 1 | |
40635 | _ACEOF | |
40636 | ||
40637 | USES_CONTROLS=1 | |
40638 | fi | |
40639 | ||
a848cd7e SC |
40640 | if test "$wxUSE_CHECKBOX" = "yes"; then |
40641 | cat >>confdefs.h <<\_ACEOF | |
40642 | #define wxUSE_CHECKBOX 1 | |
40643 | _ACEOF | |
40644 | ||
40645 | USES_CONTROLS=1 | |
40646 | fi | |
40647 | ||
40648 | if test "$wxUSE_CHECKLST" = "yes"; then | |
40649 | cat >>confdefs.h <<\_ACEOF | |
40650 | #define wxUSE_CHECKLISTBOX 1 | |
40651 | _ACEOF | |
40652 | ||
40653 | USES_CONTROLS=1 | |
40654 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
40655 | fi | |
40656 | ||
da98e9be VZ |
40657 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
40658 | cat >>confdefs.h <<\_ACEOF | |
40659 | #define wxUSE_DATEPICKCTRL 1 | |
40660 | _ACEOF | |
40661 | ||
40662 | USES_CONTROLS=1 | |
40663 | fi | |
40664 | ||
a848cd7e SC |
40665 | if test "$wxUSE_DISPLAY" = "yes"; then |
40666 | cat >>confdefs.h <<\_ACEOF | |
40667 | #define wxUSE_DISPLAY 1 | |
40668 | _ACEOF | |
40669 | ||
0b78747f | 40670 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
40671 | fi |
40672 | ||
40673 | if test "$wxUSE_GAUGE" = "yes"; then | |
40674 | cat >>confdefs.h <<\_ACEOF | |
40675 | #define wxUSE_GAUGE 1 | |
40676 | _ACEOF | |
40677 | ||
40678 | USES_CONTROLS=1 | |
40679 | fi | |
40680 | ||
40681 | if test "$wxUSE_GRID" = "yes"; then | |
40682 | cat >>confdefs.h <<\_ACEOF | |
40683 | #define wxUSE_GRID 1 | |
40684 | _ACEOF | |
40685 | ||
40686 | USES_CONTROLS=1 | |
40687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
40688 | fi | |
40689 | ||
40690 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
40691 | cat >>confdefs.h <<\_ACEOF | |
40692 | #define wxUSE_IMAGLIST 1 | |
40693 | _ACEOF | |
40694 | ||
40695 | fi | |
40696 | ||
40697 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
40698 | cat >>confdefs.h <<\_ACEOF | |
40699 | #define wxUSE_LISTBOOK 1 | |
40700 | _ACEOF | |
40701 | ||
40702 | USES_CONTROLS=1 | |
40703 | fi | |
40704 | ||
40705 | if test "$wxUSE_LISTBOX" = "yes"; then | |
40706 | cat >>confdefs.h <<\_ACEOF | |
40707 | #define wxUSE_LISTBOX 1 | |
40708 | _ACEOF | |
40709 | ||
40710 | USES_CONTROLS=1 | |
0b78747f | 40711 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
40712 | fi |
40713 | ||
40714 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
40715 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
40716 | cat >>confdefs.h <<\_ACEOF | |
40717 | #define wxUSE_LISTCTRL 1 | |
40718 | _ACEOF | |
40719 | ||
40720 | USES_CONTROLS=1 | |
40721 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
40722 | else | |
40723 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
40724 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
40725 | fi | |
40726 | fi | |
40727 | ||
40728 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
40729 | cat >>confdefs.h <<\_ACEOF | |
40730 | #define wxUSE_NOTEBOOK 1 | |
40731 | _ACEOF | |
40732 | ||
40733 | USES_CONTROLS=1 | |
40734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
40735 | fi | |
40736 | ||
40737 | ||
40738 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
40739 | cat >>confdefs.h <<\_ACEOF | |
40740 | #define wxUSE_RADIOBOX 1 | |
40741 | _ACEOF | |
40742 | ||
40743 | USES_CONTROLS=1 | |
40744 | fi | |
40745 | ||
40746 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
40747 | cat >>confdefs.h <<\_ACEOF | |
40748 | #define wxUSE_RADIOBTN 1 | |
40749 | _ACEOF | |
40750 | ||
40751 | USES_CONTROLS=1 | |
40752 | fi | |
40753 | ||
40754 | if test "$wxUSE_SASH" = "yes"; then | |
40755 | cat >>confdefs.h <<\_ACEOF | |
40756 | #define wxUSE_SASH 1 | |
40757 | _ACEOF | |
40758 | ||
40759 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
40760 | fi | |
40761 | ||
40762 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
40763 | cat >>confdefs.h <<\_ACEOF | |
40764 | #define wxUSE_SCROLLBAR 1 | |
40765 | _ACEOF | |
40766 | ||
40767 | USES_CONTROLS=1 | |
40768 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
40769 | fi | |
40770 | ||
40771 | if test "$wxUSE_SLIDER" = "yes"; then | |
40772 | cat >>confdefs.h <<\_ACEOF | |
40773 | #define wxUSE_SLIDER 1 | |
40774 | _ACEOF | |
40775 | ||
40776 | USES_CONTROLS=1 | |
40777 | fi | |
40778 | ||
40779 | if test "$wxUSE_SPINBTN" = "yes"; then | |
40780 | cat >>confdefs.h <<\_ACEOF | |
40781 | #define wxUSE_SPINBTN 1 | |
40782 | _ACEOF | |
40783 | ||
40784 | USES_CONTROLS=1 | |
40785 | fi | |
40786 | ||
40787 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
40788 | cat >>confdefs.h <<\_ACEOF | |
40789 | #define wxUSE_SPINCTRL 1 | |
40790 | _ACEOF | |
40791 | ||
40792 | USES_CONTROLS=1 | |
40793 | fi | |
40794 | ||
40795 | if test "$wxUSE_SPLITTER" = "yes"; then | |
40796 | cat >>confdefs.h <<\_ACEOF | |
40797 | #define wxUSE_SPLITTER 1 | |
40798 | _ACEOF | |
40799 | ||
40800 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
40801 | fi | |
40802 | ||
40803 | if test "$wxUSE_STATBMP" = "yes"; then | |
40804 | cat >>confdefs.h <<\_ACEOF | |
40805 | #define wxUSE_STATBMP 1 | |
40806 | _ACEOF | |
40807 | ||
40808 | USES_CONTROLS=1 | |
40809 | fi | |
40810 | ||
40811 | if test "$wxUSE_STATBOX" = "yes"; then | |
40812 | cat >>confdefs.h <<\_ACEOF | |
40813 | #define wxUSE_STATBOX 1 | |
40814 | _ACEOF | |
40815 | ||
40816 | USES_CONTROLS=1 | |
40817 | fi | |
40818 | ||
40819 | if test "$wxUSE_STATTEXT" = "yes"; then | |
40820 | cat >>confdefs.h <<\_ACEOF | |
40821 | #define wxUSE_STATTEXT 1 | |
40822 | _ACEOF | |
40823 | ||
40824 | USES_CONTROLS=1 | |
40825 | fi | |
40826 | ||
40827 | if test "$wxUSE_STATLINE" = "yes"; then | |
40828 | cat >>confdefs.h <<\_ACEOF | |
40829 | #define wxUSE_STATLINE 1 | |
40830 | _ACEOF | |
40831 | ||
40832 | USES_CONTROLS=1 | |
40833 | fi | |
40834 | ||
40835 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
40836 | cat >>confdefs.h <<\_ACEOF |
40837 | #define wxUSE_NATIVE_STATUSBAR 1 | |
40838 | _ACEOF | |
40839 | ||
a848cd7e SC |
40840 | cat >>confdefs.h <<\_ACEOF |
40841 | #define wxUSE_STATUSBAR 1 | |
40842 | _ACEOF | |
40843 | ||
40844 | USES_CONTROLS=1 | |
40845 | ||
40846 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
40847 | fi | |
40848 | ||
40849 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
40850 | cat >>confdefs.h <<\_ACEOF | |
40851 | #define wxUSE_TAB_DIALOG 1 | |
40852 | _ACEOF | |
40853 | ||
a848cd7e SC |
40854 | fi |
40855 | ||
40856 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
40857 | cat >>confdefs.h <<\_ACEOF | |
40858 | #define wxUSE_TEXTCTRL 1 | |
40859 | _ACEOF | |
40860 | ||
40861 | USES_CONTROLS=1 | |
40862 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
40863 | fi | |
40864 | ||
40865 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
40866 | if test "$wxUSE_COCOA" = 1 ; then | |
40867 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
40868 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
40869 | wxUSE_TOGGLEBTN=no | |
40870 | fi | |
40871 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
40872 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
40873 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
40874 | wxUSE_TOGGLEBTN=no | |
40875 | fi | |
40876 | ||
40877 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
40878 | cat >>confdefs.h <<\_ACEOF | |
40879 | #define wxUSE_TOGGLEBTN 1 | |
40880 | _ACEOF | |
40881 | ||
40882 | USES_CONTROLS=1 | |
40883 | fi | |
40884 | fi | |
40885 | ||
40886 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
40887 | cat >>confdefs.h <<\_ACEOF | |
40888 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
40889 | _ACEOF | |
40890 | ||
40891 | wxUSE_TOOLBAR="yes" | |
40892 | USES_CONTROLS=1 | |
40893 | fi | |
40894 | ||
40895 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
40896 | cat >>confdefs.h <<\_ACEOF | |
40897 | #define wxUSE_TOOLBAR 1 | |
40898 | _ACEOF | |
40899 | ||
40900 | USES_CONTROLS=1 | |
40901 | ||
40902 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
40903 | wxUSE_TOOLBAR_NATIVE="yes" | |
40904 | fi | |
40905 | ||
40906 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
40907 | cat >>confdefs.h <<\_ACEOF | |
40908 | #define wxUSE_TOOLBAR_NATIVE 1 | |
40909 | _ACEOF | |
40910 | ||
40911 | USES_CONTROLS=1 | |
40912 | fi | |
40913 | ||
40914 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
40915 | fi | |
40916 | ||
40917 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
40918 | if test "$wxUSE_MOTIF" = 1; then | |
40919 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
40920 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
40921 | else | |
40922 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
40923 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
40924 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
40925 | else | |
40926 | cat >>confdefs.h <<\_ACEOF | |
40927 | #define wxUSE_TOOLTIPS 1 | |
40928 | _ACEOF | |
40929 | ||
40930 | fi | |
40931 | fi | |
40932 | fi | |
40933 | ||
40934 | if test "$wxUSE_TREECTRL" = "yes"; then | |
40935 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
40936 | cat >>confdefs.h <<\_ACEOF | |
40937 | #define wxUSE_TREECTRL 1 | |
40938 | _ACEOF | |
40939 | ||
40940 | USES_CONTROLS=1 | |
40941 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
40942 | else | |
40943 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
40944 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
40945 | fi | |
40946 | fi | |
40947 | ||
40948 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
40949 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
40950 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
40951 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
40952 | else | |
40953 | if test "$wxUSE_PM" = 1; then | |
40954 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
40955 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
40956 | else | |
40957 | cat >>confdefs.h <<\_ACEOF | |
40958 | #define wxUSE_POPUPWIN 1 | |
40959 | _ACEOF | |
40960 | ||
0b78747f | 40961 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
40962 | |
40963 | USES_CONTROLS=1 | |
40964 | fi | |
40965 | fi | |
40966 | fi | |
40967 | ||
0dcd06dd | 40968 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
40969 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
40970 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
40971 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
40972 | else | |
40973 | cat >>confdefs.h <<\_ACEOF | |
40974 | #define wxUSE_DIALUP_MANAGER 1 | |
40975 | _ACEOF | |
40976 | ||
40977 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
40978 | fi | |
40979 | fi | |
40980 | ||
a848cd7e SC |
40981 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
40982 | if test "$wxUSE_PM" = 1; then | |
40983 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
40984 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
40985 | else | |
40986 | cat >>confdefs.h <<\_ACEOF | |
40987 | #define wxUSE_TIPWINDOW 1 | |
40988 | _ACEOF | |
40989 | ||
40990 | fi | |
40991 | fi | |
40992 | ||
40993 | if test "$USES_CONTROLS" = 1; then | |
40994 | cat >>confdefs.h <<\_ACEOF | |
40995 | #define wxUSE_CONTROLS 1 | |
40996 | _ACEOF | |
40997 | ||
40998 | fi | |
40999 | ||
41000 | ||
41001 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
41002 | cat >>confdefs.h <<\_ACEOF | |
41003 | #define wxUSE_ACCESSIBILITY 1 | |
41004 | _ACEOF | |
41005 | ||
41006 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
41007 | fi | |
41008 | ||
38b4a946 VZ |
41009 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
41010 | cat >>confdefs.h <<\_ACEOF | |
41011 | #define wxUSE_DC_CACHEING 1 | |
41012 | _ACEOF | |
41013 | ||
41014 | fi | |
41015 | ||
a848cd7e SC |
41016 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
41017 | cat >>confdefs.h <<\_ACEOF | |
41018 | #define wxUSE_DRAGIMAGE 1 | |
41019 | _ACEOF | |
41020 | ||
41021 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
41022 | fi | |
41023 | ||
41024 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
41025 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
41026 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
41027 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
41028 | else | |
41029 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41030 | #define wxUSE_EXCEPTIONS 1 |
41031 | _ACEOF | |
41032 | ||
07bea8f0 VS |
41033 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
41034 | fi | |
a848cd7e SC |
41035 | fi |
41036 | ||
41037 | USE_HTML=0 | |
41038 | if test "$wxUSE_HTML" = "yes"; then | |
41039 | cat >>confdefs.h <<\_ACEOF | |
41040 | #define wxUSE_HTML 1 | |
41041 | _ACEOF | |
41042 | ||
41043 | USE_HTML=1 | |
41044 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
41045 | if test "$wxUSE_MAC" = 1; then |
41046 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
41047 | fi | |
a848cd7e | 41048 | fi |
646b6ec1 | 41049 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 41050 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
41051 | old_CPPFLAGS="$CPPFLAGS" |
41052 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
41053 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
41054 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
41055 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
41056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41057 | else | |
41058 | cat >conftest.$ac_ext <<_ACEOF | |
41059 | /* confdefs.h. */ | |
41060 | _ACEOF | |
41061 | cat confdefs.h >>conftest.$ac_ext | |
41062 | cat >>conftest.$ac_ext <<_ACEOF | |
41063 | /* end confdefs.h. */ | |
41064 | #include <Carbon/Carbon.h> | |
41065 | ||
41066 | #include <WebKit/HIWebView.h> | |
41067 | _ACEOF | |
41068 | rm -f conftest.$ac_objext | |
41069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41070 | (eval $ac_compile) 2>conftest.er1 | |
41071 | ac_status=$? | |
41072 | grep -v '^ *+' conftest.er1 >conftest.err | |
41073 | rm -f conftest.er1 | |
41074 | cat conftest.err >&5 | |
41075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41076 | (exit $ac_status); } && | |
6ebeb4c7 | 41077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
41078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41079 | (eval $ac_try) 2>&5 | |
41080 | ac_status=$? | |
41081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41082 | (exit $ac_status); }; } && | |
41083 | { ac_try='test -s conftest.$ac_objext' | |
41084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41085 | (eval $ac_try) 2>&5 | |
41086 | ac_status=$? | |
41087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41088 | (exit $ac_status); }; }; then | |
41089 | ac_cv_header_WebKit_HIWebView_h=yes | |
41090 | else | |
41091 | echo "$as_me: failed program was:" >&5 | |
41092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41093 | ||
41094 | ac_cv_header_WebKit_HIWebView_h=no | |
41095 | fi | |
41096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41097 | fi | |
41098 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
41099 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
41100 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
41101 | ||
41102 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
41103 | #define wxUSE_WEBKIT 1 |
41104 | _ACEOF | |
41105 | ||
07bea8f0 VS |
41106 | WEBKIT_LINK="-framework WebKit" |
41107 | ||
41108 | else | |
41109 | ||
41110 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
41111 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
41112 | wxUSE_WEBKIT=no | |
41113 | ||
646b6ec1 VS |
41114 | fi |
41115 | ||
07bea8f0 VS |
41116 | |
41117 | CPPFLAGS="$old_CPPFLAGS" | |
41118 | elif test "$wxUSE_COCOA" = 1; then | |
41119 | cat >>confdefs.h <<\_ACEOF | |
41120 | #define wxUSE_WEBKIT 1 | |
41121 | _ACEOF | |
41122 | ||
41123 | else | |
41124 | wxUSE_WEBKIT=no | |
41125 | fi | |
41126 | fi | |
41127 | ||
9a8f0513 VS |
41128 | USE_XRC=0 |
41129 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
41130 | if test "$wxUSE_XML" != "yes"; then |
41131 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
41132 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
41133 | wxUSE_XRC=no | |
41134 | else | |
41135 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
41136 | #define wxUSE_XRC 1 |
41137 | _ACEOF | |
41138 | ||
d2ebf0b7 VS |
41139 | USE_XRC=1 |
41140 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
41141 | fi | |
9a8f0513 | 41142 | fi |
07bea8f0 | 41143 | |
a848cd7e SC |
41144 | if test "$wxUSE_MENUS" = "yes"; then |
41145 | cat >>confdefs.h <<\_ACEOF | |
41146 | #define wxUSE_MENUS 1 | |
41147 | _ACEOF | |
41148 | ||
41149 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
41150 | fi | |
41151 | ||
41152 | if test "$wxUSE_METAFILE" = "yes"; then | |
41153 | cat >>confdefs.h <<\_ACEOF | |
41154 | #define wxUSE_METAFILE 1 | |
41155 | _ACEOF | |
41156 | ||
41157 | fi | |
41158 | ||
41159 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
41160 | cat >>confdefs.h <<\_ACEOF | |
41161 | #define wxUSE_MIMETYPE 1 | |
41162 | _ACEOF | |
41163 | ||
41164 | fi | |
41165 | ||
41166 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
41167 | cat >>confdefs.h <<\_ACEOF | |
41168 | #define wxUSE_MINIFRAME 1 | |
41169 | _ACEOF | |
41170 | ||
41171 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
41172 | fi | |
41173 | ||
41174 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
41175 | cat >>confdefs.h <<\_ACEOF | |
41176 | #define wxUSE_SYSTEM_OPTIONS 1 | |
41177 | _ACEOF | |
41178 | ||
41179 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 41180 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
41181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
41182 | fi | |
41183 | fi | |
41184 | ||
41185 | ||
41186 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
41187 | cat >>confdefs.h <<\_ACEOF | |
41188 | #define wxUSE_VALIDATORS 1 | |
41189 | _ACEOF | |
41190 | ||
41191 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
41192 | fi | |
41193 | ||
41194 | if test "$wxUSE_PALETTE" = "yes" ; then | |
41195 | cat >>confdefs.h <<\_ACEOF | |
41196 | #define wxUSE_PALETTE 1 | |
41197 | _ACEOF | |
41198 | ||
41199 | fi | |
41200 | ||
41201 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
41202 | LIBS=" -lunicows $LIBS" | |
41203 | fi | |
41204 | ||
41205 | ||
41206 | if test "$wxUSE_IMAGE" = "yes" ; then | |
41207 | cat >>confdefs.h <<\_ACEOF | |
41208 | #define wxUSE_IMAGE 1 | |
41209 | _ACEOF | |
41210 | ||
41211 | ||
41212 | if test "$wxUSE_GIF" = "yes" ; then | |
41213 | cat >>confdefs.h <<\_ACEOF | |
41214 | #define wxUSE_GIF 1 | |
41215 | _ACEOF | |
41216 | ||
41217 | fi | |
41218 | ||
41219 | if test "$wxUSE_PCX" = "yes" ; then | |
41220 | cat >>confdefs.h <<\_ACEOF | |
41221 | #define wxUSE_PCX 1 | |
41222 | _ACEOF | |
41223 | ||
41224 | fi | |
41225 | ||
41226 | if test "$wxUSE_IFF" = "yes" ; then | |
41227 | cat >>confdefs.h <<\_ACEOF | |
41228 | #define wxUSE_IFF 1 | |
41229 | _ACEOF | |
41230 | ||
41231 | fi | |
41232 | ||
41233 | if test "$wxUSE_PNM" = "yes" ; then | |
41234 | cat >>confdefs.h <<\_ACEOF | |
41235 | #define wxUSE_PNM 1 | |
41236 | _ACEOF | |
41237 | ||
41238 | fi | |
41239 | ||
41240 | if test "$wxUSE_XPM" = "yes" ; then | |
41241 | cat >>confdefs.h <<\_ACEOF | |
41242 | #define wxUSE_XPM 1 | |
41243 | _ACEOF | |
41244 | ||
41245 | fi | |
41246 | ||
41247 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
41248 | cat >>confdefs.h <<\_ACEOF | |
41249 | #define wxUSE_ICO_CUR 1 | |
41250 | _ACEOF | |
41251 | ||
41252 | fi | |
41253 | fi | |
41254 | ||
41255 | ||
41256 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
41257 | cat >>confdefs.h <<\_ACEOF | |
41258 | #define wxUSE_CHOICEDLG 1 | |
41259 | _ACEOF | |
41260 | ||
41261 | fi | |
41262 | ||
41263 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
41264 | cat >>confdefs.h <<\_ACEOF | |
41265 | #define wxUSE_COLOURDLG 1 | |
41266 | _ACEOF | |
41267 | ||
41268 | fi | |
41269 | ||
41270 | if test "$wxUSE_FILEDLG" = "yes"; then | |
41271 | cat >>confdefs.h <<\_ACEOF | |
41272 | #define wxUSE_FILEDLG 1 | |
41273 | _ACEOF | |
41274 | ||
41275 | fi | |
41276 | ||
41277 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
41278 | cat >>confdefs.h <<\_ACEOF | |
41279 | #define wxUSE_FINDREPLDLG 1 | |
41280 | _ACEOF | |
41281 | ||
41282 | fi | |
41283 | ||
41284 | if test "$wxUSE_FONTDLG" = "yes"; then | |
41285 | cat >>confdefs.h <<\_ACEOF | |
41286 | #define wxUSE_FONTDLG 1 | |
41287 | _ACEOF | |
41288 | ||
41289 | fi | |
41290 | ||
41291 | if test "$wxUSE_DIRDLG" = "yes"; then | |
41292 | if test "$wxUSE_TREECTRL" != "yes"; then | |
41293 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
41294 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
41295 | else | |
41296 | cat >>confdefs.h <<\_ACEOF | |
41297 | #define wxUSE_DIRDLG 1 | |
41298 | _ACEOF | |
41299 | ||
41300 | fi | |
41301 | fi | |
41302 | ||
41303 | if test "$wxUSE_MSGDLG" = "yes"; then | |
41304 | cat >>confdefs.h <<\_ACEOF | |
41305 | #define wxUSE_MSGDLG 1 | |
41306 | _ACEOF | |
41307 | ||
41308 | fi | |
41309 | ||
41310 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
41311 | cat >>confdefs.h <<\_ACEOF | |
41312 | #define wxUSE_NUMBERDLG 1 | |
41313 | _ACEOF | |
41314 | ||
41315 | fi | |
41316 | ||
41317 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
41318 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
41319 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
41320 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
41321 | else | |
41322 | cat >>confdefs.h <<\_ACEOF | |
41323 | #define wxUSE_PROGRESSDLG 1 | |
41324 | _ACEOF | |
41325 | ||
41326 | fi | |
41327 | fi | |
41328 | ||
41329 | if test "$wxUSE_SPLASH" = "yes"; then | |
41330 | cat >>confdefs.h <<\_ACEOF | |
41331 | #define wxUSE_SPLASH 1 | |
41332 | _ACEOF | |
41333 | ||
2057db16 | 41334 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
41335 | fi |
41336 | ||
41337 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
41338 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
41339 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
41340 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
41341 | else | |
41342 | cat >>confdefs.h <<\_ACEOF | |
41343 | #define wxUSE_STARTUP_TIPS 1 | |
41344 | _ACEOF | |
41345 | ||
41346 | fi | |
41347 | fi | |
41348 | ||
41349 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
41350 | cat >>confdefs.h <<\_ACEOF | |
41351 | #define wxUSE_TEXTDLG 1 | |
41352 | _ACEOF | |
41353 | ||
41354 | fi | |
41355 | ||
41356 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
41357 | cat >>confdefs.h <<\_ACEOF | |
41358 | #define wxUSE_WIZARDDLG 1 | |
41359 | _ACEOF | |
41360 | ||
41361 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
41362 | fi | |
41363 | ||
41364 | ||
ce756cb0 | 41365 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
41366 | if test "$wxUSE_GTK" = 1; then |
41367 | wxUSE_GSTREAMER="yes" | |
41368 | ||
ce756cb0 | 41369 | |
dae87f93 | 41370 | succeeded=no |
ce756cb0 | 41371 | |
dae87f93 RN |
41372 | if test -z "$PKG_CONFIG"; then |
41373 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41374 | set dummy pkg-config; ac_word=$2 | |
41375 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41377 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41379 | else | |
41380 | case $PKG_CONFIG in | |
41381 | [\\/]* | ?:[\\/]*) | |
41382 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41383 | ;; | |
41384 | *) | |
41385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41386 | for as_dir in $PATH | |
41387 | do | |
41388 | IFS=$as_save_IFS | |
41389 | test -z "$as_dir" && as_dir=. | |
41390 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41391 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41392 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41393 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41394 | break 2 | |
41395 | fi | |
41396 | done | |
41397 | done | |
41398 | ||
41399 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41400 | ;; | |
41401 | esac | |
41402 | fi | |
41403 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41404 | ||
41405 | if test -n "$PKG_CONFIG"; then | |
41406 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41407 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41408 | else | |
41409 | echo "$as_me:$LINENO: result: no" >&5 | |
41410 | echo "${ECHO_T}no" >&6 | |
41411 | fi | |
41412 | ||
41413 | fi | |
41414 | ||
41415 | if test "$PKG_CONFIG" = "no" ; then | |
41416 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41417 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41418 | echo "*** to the full path to pkg-config." | |
41419 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41420 | else | |
41421 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41422 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41423 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
41424 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
41425 | ||
41426 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
41427 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 41428 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 41429 | succeeded=yes |
ce756cb0 | 41430 | |
dae87f93 RN |
41431 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
41432 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
41433 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
41434 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
41435 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
41436 | ||
41437 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
41438 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
41439 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
41440 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
41441 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
41442 | else | |
41443 | GSTREAMER_CFLAGS="" | |
41444 | GSTREAMER_LIBS="" | |
41445 | ## If we have a custom action on failure, don't print errors, but | |
41446 | ## do set a variable so people can do so. | |
41447 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 41448 | |
dae87f93 RN |
41449 | fi |
41450 | ||
41451 | ||
41452 | ||
41453 | else | |
41454 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41455 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41456 | fi | |
41457 | fi | |
41458 | ||
41459 | if test $succeeded = yes; then | |
41460 | ||
41461 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
41462 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 41463 | |
ce756cb0 | 41464 | else |
dae87f93 RN |
41465 | |
41466 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
41467 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
41468 | wxUSE_GSTREAMER="no" | |
41469 | ||
41470 | fi | |
41471 | ||
41472 | ||
41473 | ||
41474 | ||
41475 | ||
41476 | if test "x$GST_INSPECT" == "x"; then | |
41477 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
41478 | set dummy gst-inspect; ac_word=$2 | |
41479 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41481 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
41482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41483 | else | |
41484 | if test -n "$GST_INSPECT"; then | |
41485 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
41486 | else | |
41487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41488 | for as_dir in $PATH | |
41489 | do | |
41490 | IFS=$as_save_IFS | |
41491 | test -z "$as_dir" && as_dir=. | |
41492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41494 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
41495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41496 | break 2 | |
ce756cb0 | 41497 | fi |
dae87f93 RN |
41498 | done |
41499 | done | |
41500 | ||
41501 | fi | |
41502 | fi | |
41503 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
41504 | if test -n "$GST_INSPECT"; then | |
41505 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
41506 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
41507 | else | |
41508 | echo "$as_me:$LINENO: result: no" >&5 | |
41509 | echo "${ECHO_T}no" >&6 | |
41510 | fi | |
41511 | ||
41512 | fi | |
41513 | ||
41514 | if test "x$GST_INSPECT" != "x"; then | |
41515 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
41516 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
41517 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
41518 | echo "$as_me:$LINENO: result: found." >&5 | |
41519 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 41520 | |
ce756cb0 | 41521 | else |
dae87f93 RN |
41522 | echo "$as_me:$LINENO: result: not found." >&5 |
41523 | echo "${ECHO_T}not found." >&6 | |
41524 | ||
41525 | wxUSE_GSTREAMER="no" | |
41526 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
41527 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
41528 | ||
41529 | fi | |
41530 | fi | |
41531 | ||
41532 | ||
41533 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
41534 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
41535 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
41536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41537 | else | |
41538 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
41539 | /* confdefs.h. */ |
41540 | _ACEOF | |
41541 | cat confdefs.h >>conftest.$ac_ext | |
41542 | cat >>conftest.$ac_ext <<_ACEOF | |
41543 | /* end confdefs.h. */ | |
dae87f93 | 41544 | #include <gst/gst.h> |
ce756cb0 | 41545 | |
dae87f93 | 41546 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
41547 | _ACEOF |
41548 | rm -f conftest.$ac_objext | |
41549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41550 | (eval $ac_compile) 2>conftest.er1 | |
41551 | ac_status=$? | |
41552 | grep -v '^ *+' conftest.er1 >conftest.err | |
41553 | rm -f conftest.er1 | |
41554 | cat conftest.err >&5 | |
41555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41556 | (exit $ac_status); } && | |
6ebeb4c7 | 41557 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
41558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41559 | (eval $ac_try) 2>&5 | |
41560 | ac_status=$? | |
41561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41562 | (exit $ac_status); }; } && | |
41563 | { ac_try='test -s conftest.$ac_objext' | |
41564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41565 | (eval $ac_try) 2>&5 | |
41566 | ac_status=$? | |
41567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41568 | (exit $ac_status); }; }; then | |
dae87f93 | 41569 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
41570 | else |
41571 | echo "$as_me: failed program was:" >&5 | |
41572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41573 | ||
dae87f93 | 41574 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
41575 | fi |
41576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
41577 | fi |
41578 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
41579 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
41580 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
41581 | : | |
41582 | else | |
ce756cb0 | 41583 | |
dae87f93 RN |
41584 | wxUSE_GSTREAMER="no" |
41585 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
41586 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 41587 | |
dae87f93 | 41588 | fi |
ce756cb0 | 41589 | |
dae87f93 RN |
41590 | |
41591 | ||
41592 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
41593 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
41594 | ||
41595 | ac_find_libraries= | |
41596 | for ac_dir in $SEARCH_LIB /usr/lib; | |
41597 | do | |
3eca31dc | 41598 | for ac_extension in a so sl dylib dll.a; do |
ce756cb0 RN |
41599 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then |
41600 | ac_find_libraries=$ac_dir | |
41601 | break 2 | |
41602 | fi | |
41603 | done | |
41604 | done | |
41605 | ||
ce756cb0 | 41606 | |
dae87f93 RN |
41607 | if test "$ac_find_libraries" = "" ; then |
41608 | echo "$as_me:$LINENO: result: no" >&5 | |
41609 | echo "${ECHO_T}no" >&6 | |
41610 | wxUSE_GSTREAMER="no" | |
41611 | else | |
41612 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 41613 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 41614 | fi |
ce756cb0 | 41615 | |
dae87f93 RN |
41616 | if test "$wxUSE_GSTREAMER" = "yes"; then |
41617 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
41618 | #define wxUSE_GSTREAMER 1 |
41619 | _ACEOF | |
41620 | ||
dae87f93 RN |
41621 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
41622 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
41623 | fi |
41624 | fi | |
41625 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
41626 | cat >>confdefs.h <<\_ACEOF | |
41627 | #define wxUSE_MEDIACTRL 1 | |
41628 | _ACEOF | |
41629 | ||
41630 | fi | |
41631 | ||
41632 | ||
a848cd7e SC |
41633 | if test "$cross_compiling" = "yes"; then |
41634 | OSINFO="\"$host\"" | |
41635 | else | |
41636 | OSINFO=`uname -s -r -m` | |
41637 | OSINFO="\"$OSINFO\"" | |
41638 | fi | |
41639 | ||
41640 | cat >>confdefs.h <<_ACEOF | |
41641 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
41642 | _ACEOF | |
41643 | ||
41644 | ||
41645 | ||
41646 | if test "x$prefix" != "xNONE"; then | |
41647 | wxPREFIX=$prefix | |
41648 | else | |
41649 | wxPREFIX=$ac_default_prefix | |
41650 | fi | |
41651 | ||
41652 | cat >>confdefs.h <<_ACEOF | |
41653 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
41654 | _ACEOF | |
41655 | ||
41656 | ||
a848cd7e SC |
41657 | |
41658 | ||
41659 | CORE_BASE_LIBS="net base" | |
41660 | CORE_GUI_LIBS="adv core" | |
41661 | ||
41662 | if test "$wxUSE_XML" = "yes" ; then | |
41663 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
41664 | fi | |
41665 | if test "$wxUSE_ODBC" != "no" ; then | |
41666 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
41667 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
41668 | fi | |
41669 | if test "$wxUSE_HTML" = "yes" ; then | |
41670 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
41671 | fi | |
61639efb VZ |
41672 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
41673 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
41674 | fi | |
9a8f0513 VS |
41675 | if test "$wxUSE_XRC" = "yes" ; then |
41676 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
41677 | fi | |
a848cd7e SC |
41678 | |
41679 | if test "$wxUSE_GUI" != "yes"; then | |
41680 | CORE_GUI_LIBS="" | |
41681 | fi | |
41682 | ||
41683 | ||
41684 | ||
41685 | ||
41686 | ||
41687 | ||
41688 | ||
41689 | ||
41690 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 41691 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
41692 | if test "$USE_DARWIN" = 1; then |
41693 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
41694 | else | |
41695 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
41696 | fi | |
07bea8f0 | 41697 | fi |
5dcf30a0 | 41698 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
41699 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
41700 | else | |
41701 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 41702 | fi |
a848cd7e SC |
41703 | fi |
41704 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 41705 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
41706 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
41707 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
41708 | fi | |
a848cd7e | 41709 | fi |
19b27e78 MW |
41710 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
41711 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
41712 | fi | |
a848cd7e SC |
41713 | |
41714 | ||
41715 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
41716 | ||
41717 | have_cos=0 | |
41718 | have_floor=0 | |
41719 | ||
41720 | for ac_func in cos | |
41721 | do | |
41722 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41723 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41724 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41725 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41727 | else | |
41728 | cat >conftest.$ac_ext <<_ACEOF | |
41729 | /* confdefs.h. */ | |
41730 | _ACEOF | |
41731 | cat confdefs.h >>conftest.$ac_ext | |
41732 | cat >>conftest.$ac_ext <<_ACEOF | |
41733 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41734 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41735 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41736 | #define $ac_func innocuous_$ac_func | |
41737 | ||
a848cd7e SC |
41738 | /* System header to define __stub macros and hopefully few prototypes, |
41739 | which can conflict with char $ac_func (); below. | |
41740 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41741 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41742 | |
a848cd7e SC |
41743 | #ifdef __STDC__ |
41744 | # include <limits.h> | |
41745 | #else | |
41746 | # include <assert.h> | |
41747 | #endif | |
ac1cb8d3 VS |
41748 | |
41749 | #undef $ac_func | |
41750 | ||
a848cd7e SC |
41751 | /* Override any gcc2 internal prototype to avoid an error. */ |
41752 | #ifdef __cplusplus | |
41753 | extern "C" | |
41754 | { | |
41755 | #endif | |
41756 | /* We use char because int might match the return type of a gcc2 | |
41757 | builtin and then its argument prototype would still apply. */ | |
41758 | char $ac_func (); | |
41759 | /* The GNU C library defines this for functions which it implements | |
41760 | to always fail with ENOSYS. Some functions are actually named | |
41761 | something starting with __ and the normal name is an alias. */ | |
41762 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41763 | choke me | |
41764 | #else | |
41765 | char (*f) () = $ac_func; | |
41766 | #endif | |
41767 | #ifdef __cplusplus | |
41768 | } | |
41769 | #endif | |
41770 | ||
41771 | int | |
41772 | main () | |
41773 | { | |
41774 | return f != $ac_func; | |
41775 | ; | |
41776 | return 0; | |
41777 | } | |
41778 | _ACEOF | |
41779 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41781 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41782 | ac_status=$? |
ac1cb8d3 VS |
41783 | grep -v '^ *+' conftest.er1 >conftest.err |
41784 | rm -f conftest.er1 | |
41785 | cat conftest.err >&5 | |
a848cd7e SC |
41786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41787 | (exit $ac_status); } && | |
6ebeb4c7 | 41788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41790 | (eval $ac_try) 2>&5 | |
41791 | ac_status=$? | |
41792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41793 | (exit $ac_status); }; } && | |
41794 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41796 | (eval $ac_try) 2>&5 | |
41797 | ac_status=$? | |
41798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41799 | (exit $ac_status); }; }; then | |
41800 | eval "$as_ac_var=yes" | |
41801 | else | |
41802 | echo "$as_me: failed program was:" >&5 | |
41803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41804 | ||
41805 | eval "$as_ac_var=no" | |
41806 | fi | |
ac1cb8d3 VS |
41807 | rm -f conftest.err conftest.$ac_objext \ |
41808 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41809 | fi |
41810 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41811 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41812 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41813 | cat >>confdefs.h <<_ACEOF | |
41814 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41815 | _ACEOF | |
41816 | have_cos=1 | |
41817 | fi | |
41818 | done | |
41819 | ||
41820 | ||
41821 | for ac_func in floor | |
41822 | do | |
41823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41824 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41826 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41828 | else | |
41829 | cat >conftest.$ac_ext <<_ACEOF | |
41830 | /* confdefs.h. */ | |
41831 | _ACEOF | |
41832 | cat confdefs.h >>conftest.$ac_ext | |
41833 | cat >>conftest.$ac_ext <<_ACEOF | |
41834 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41837 | #define $ac_func innocuous_$ac_func | |
41838 | ||
a848cd7e SC |
41839 | /* System header to define __stub macros and hopefully few prototypes, |
41840 | which can conflict with char $ac_func (); below. | |
41841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41842 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41843 | |
a848cd7e SC |
41844 | #ifdef __STDC__ |
41845 | # include <limits.h> | |
41846 | #else | |
41847 | # include <assert.h> | |
41848 | #endif | |
ac1cb8d3 VS |
41849 | |
41850 | #undef $ac_func | |
41851 | ||
a848cd7e SC |
41852 | /* Override any gcc2 internal prototype to avoid an error. */ |
41853 | #ifdef __cplusplus | |
41854 | extern "C" | |
41855 | { | |
41856 | #endif | |
41857 | /* We use char because int might match the return type of a gcc2 | |
41858 | builtin and then its argument prototype would still apply. */ | |
41859 | char $ac_func (); | |
41860 | /* The GNU C library defines this for functions which it implements | |
41861 | to always fail with ENOSYS. Some functions are actually named | |
41862 | something starting with __ and the normal name is an alias. */ | |
41863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41864 | choke me | |
41865 | #else | |
41866 | char (*f) () = $ac_func; | |
41867 | #endif | |
41868 | #ifdef __cplusplus | |
41869 | } | |
41870 | #endif | |
41871 | ||
41872 | int | |
41873 | main () | |
41874 | { | |
41875 | return f != $ac_func; | |
41876 | ; | |
41877 | return 0; | |
41878 | } | |
41879 | _ACEOF | |
41880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41882 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41883 | ac_status=$? |
ac1cb8d3 VS |
41884 | grep -v '^ *+' conftest.er1 >conftest.err |
41885 | rm -f conftest.er1 | |
41886 | cat conftest.err >&5 | |
a848cd7e SC |
41887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41888 | (exit $ac_status); } && | |
6ebeb4c7 | 41889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41891 | (eval $ac_try) 2>&5 | |
41892 | ac_status=$? | |
41893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41894 | (exit $ac_status); }; } && | |
41895 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41897 | (eval $ac_try) 2>&5 | |
41898 | ac_status=$? | |
41899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41900 | (exit $ac_status); }; }; then | |
41901 | eval "$as_ac_var=yes" | |
41902 | else | |
41903 | echo "$as_me: failed program was:" >&5 | |
41904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41905 | ||
41906 | eval "$as_ac_var=no" | |
41907 | fi | |
ac1cb8d3 VS |
41908 | rm -f conftest.err conftest.$ac_objext \ |
41909 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41910 | fi |
41911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41912 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41913 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41914 | cat >>confdefs.h <<_ACEOF | |
41915 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41916 | _ACEOF | |
41917 | have_floor=1 | |
41918 | fi | |
41919 | done | |
41920 | ||
41921 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
41922 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
41923 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
41924 | echo "$as_me:$LINENO: result: yes" >&5 | |
41925 | echo "${ECHO_T}yes" >&6 | |
41926 | else | |
41927 | echo "$as_me:$LINENO: result: no" >&5 | |
41928 | echo "${ECHO_T}no" >&6 | |
41929 | LIBS="$LIBS -lm" | |
41930 | # use different functions to avoid configure caching | |
41931 | have_sin=0 | |
41932 | have_ceil=0 | |
41933 | ||
41934 | for ac_func in sin | |
41935 | do | |
41936 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41937 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41938 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41939 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41941 | else | |
41942 | cat >conftest.$ac_ext <<_ACEOF | |
41943 | /* confdefs.h. */ | |
41944 | _ACEOF | |
41945 | cat confdefs.h >>conftest.$ac_ext | |
41946 | cat >>conftest.$ac_ext <<_ACEOF | |
41947 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41948 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41949 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41950 | #define $ac_func innocuous_$ac_func | |
41951 | ||
a848cd7e SC |
41952 | /* System header to define __stub macros and hopefully few prototypes, |
41953 | which can conflict with char $ac_func (); below. | |
41954 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41955 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41956 | |
a848cd7e SC |
41957 | #ifdef __STDC__ |
41958 | # include <limits.h> | |
41959 | #else | |
41960 | # include <assert.h> | |
41961 | #endif | |
ac1cb8d3 VS |
41962 | |
41963 | #undef $ac_func | |
41964 | ||
a848cd7e SC |
41965 | /* Override any gcc2 internal prototype to avoid an error. */ |
41966 | #ifdef __cplusplus | |
41967 | extern "C" | |
41968 | { | |
41969 | #endif | |
41970 | /* We use char because int might match the return type of a gcc2 | |
41971 | builtin and then its argument prototype would still apply. */ | |
41972 | char $ac_func (); | |
41973 | /* The GNU C library defines this for functions which it implements | |
41974 | to always fail with ENOSYS. Some functions are actually named | |
41975 | something starting with __ and the normal name is an alias. */ | |
41976 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41977 | choke me | |
41978 | #else | |
41979 | char (*f) () = $ac_func; | |
41980 | #endif | |
41981 | #ifdef __cplusplus | |
41982 | } | |
41983 | #endif | |
41984 | ||
41985 | int | |
41986 | main () | |
41987 | { | |
41988 | return f != $ac_func; | |
41989 | ; | |
41990 | return 0; | |
41991 | } | |
41992 | _ACEOF | |
41993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41995 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41996 | ac_status=$? |
ac1cb8d3 VS |
41997 | grep -v '^ *+' conftest.er1 >conftest.err |
41998 | rm -f conftest.er1 | |
41999 | cat conftest.err >&5 | |
a848cd7e SC |
42000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42001 | (exit $ac_status); } && | |
6ebeb4c7 | 42002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42004 | (eval $ac_try) 2>&5 | |
42005 | ac_status=$? | |
42006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42007 | (exit $ac_status); }; } && | |
42008 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42010 | (eval $ac_try) 2>&5 | |
42011 | ac_status=$? | |
42012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42013 | (exit $ac_status); }; }; then | |
42014 | eval "$as_ac_var=yes" | |
42015 | else | |
42016 | echo "$as_me: failed program was:" >&5 | |
42017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42018 | ||
42019 | eval "$as_ac_var=no" | |
42020 | fi | |
ac1cb8d3 VS |
42021 | rm -f conftest.err conftest.$ac_objext \ |
42022 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42023 | fi |
42024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42025 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42026 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42027 | cat >>confdefs.h <<_ACEOF | |
42028 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42029 | _ACEOF | |
42030 | have_sin=1 | |
42031 | fi | |
42032 | done | |
42033 | ||
42034 | ||
42035 | for ac_func in ceil | |
42036 | do | |
42037 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42038 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42039 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42040 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42042 | else | |
42043 | cat >conftest.$ac_ext <<_ACEOF | |
42044 | /* confdefs.h. */ | |
42045 | _ACEOF | |
42046 | cat confdefs.h >>conftest.$ac_ext | |
42047 | cat >>conftest.$ac_ext <<_ACEOF | |
42048 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42049 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42050 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42051 | #define $ac_func innocuous_$ac_func | |
42052 | ||
a848cd7e SC |
42053 | /* System header to define __stub macros and hopefully few prototypes, |
42054 | which can conflict with char $ac_func (); below. | |
42055 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42056 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42057 | |
a848cd7e SC |
42058 | #ifdef __STDC__ |
42059 | # include <limits.h> | |
42060 | #else | |
42061 | # include <assert.h> | |
42062 | #endif | |
ac1cb8d3 VS |
42063 | |
42064 | #undef $ac_func | |
42065 | ||
a848cd7e SC |
42066 | /* Override any gcc2 internal prototype to avoid an error. */ |
42067 | #ifdef __cplusplus | |
42068 | extern "C" | |
42069 | { | |
42070 | #endif | |
42071 | /* We use char because int might match the return type of a gcc2 | |
42072 | builtin and then its argument prototype would still apply. */ | |
42073 | char $ac_func (); | |
42074 | /* The GNU C library defines this for functions which it implements | |
42075 | to always fail with ENOSYS. Some functions are actually named | |
42076 | something starting with __ and the normal name is an alias. */ | |
42077 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42078 | choke me | |
42079 | #else | |
42080 | char (*f) () = $ac_func; | |
42081 | #endif | |
42082 | #ifdef __cplusplus | |
42083 | } | |
42084 | #endif | |
42085 | ||
42086 | int | |
42087 | main () | |
42088 | { | |
42089 | return f != $ac_func; | |
42090 | ; | |
42091 | return 0; | |
42092 | } | |
42093 | _ACEOF | |
42094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42096 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42097 | ac_status=$? |
ac1cb8d3 VS |
42098 | grep -v '^ *+' conftest.er1 >conftest.err |
42099 | rm -f conftest.er1 | |
42100 | cat conftest.err >&5 | |
a848cd7e SC |
42101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42102 | (exit $ac_status); } && | |
6ebeb4c7 | 42103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42105 | (eval $ac_try) 2>&5 | |
42106 | ac_status=$? | |
42107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42108 | (exit $ac_status); }; } && | |
42109 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42111 | (eval $ac_try) 2>&5 | |
42112 | ac_status=$? | |
42113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42114 | (exit $ac_status); }; }; then | |
42115 | eval "$as_ac_var=yes" | |
42116 | else | |
42117 | echo "$as_me: failed program was:" >&5 | |
42118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42119 | ||
42120 | eval "$as_ac_var=no" | |
42121 | fi | |
ac1cb8d3 VS |
42122 | rm -f conftest.err conftest.$ac_objext \ |
42123 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42124 | fi |
42125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42126 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42127 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42128 | cat >>confdefs.h <<_ACEOF | |
42129 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42130 | _ACEOF | |
42131 | have_ceil=1 | |
42132 | fi | |
42133 | done | |
42134 | ||
42135 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
42136 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
42137 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
42138 | echo "$as_me:$LINENO: result: yes" >&5 | |
42139 | echo "${ECHO_T}yes" >&6 | |
42140 | else | |
42141 | echo "$as_me:$LINENO: result: no" >&5 | |
42142 | echo "${ECHO_T}no" >&6 | |
42143 | # not sure we should warn the user, crash, etc. | |
42144 | fi | |
42145 | fi | |
42146 | ||
42147 | if test "$wxUSE_GUI" = "yes"; then | |
42148 | ||
42149 | ||
8bce5cda MW |
42150 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
42151 | dynamic erase event exec font image minimal mobile \ | |
42152 | mobile/wxedit mobile/styles propsize render \ | |
42153 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
42154 | |
42155 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
42156 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
42157 | fi | |
0b78747f | 42158 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
42159 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
42160 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
42161 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
42162 | fi | |
42163 | fi | |
42164 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
42165 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 42166 | fi |
a848cd7e SC |
42167 | else |
42168 | SAMPLES_SUBDIRS="console" | |
42169 | fi | |
42170 | ||
42171 | ||
ceec2216 | 42172 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
42173 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
42174 | ||
42175 | if test "$GXX" = yes ; then | |
6ebeb4c7 | 42176 | CWARNINGS="-Wall -Wundef" |
5294a27e | 42177 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" |
6ebeb4c7 | 42178 | fi |
a848cd7e SC |
42179 | |
42180 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
42181 | ||
0c3c69fc | 42182 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 42183 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 42184 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 42185 | |
95986553 DE |
42186 | if test "x$MWCC" = "xyes"; then |
42187 | ||
42188 | CC="$CC -cwd source -I-" | |
42189 | CXX="$CXX -cwd source -I-" | |
42190 | fi | |
42191 | ||
a848cd7e | 42192 | |
0c3c69fc | 42193 | LIBS=`echo $LIBS` |
a848cd7e SC |
42194 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
42195 | EXTRALIBS_XML="$EXPAT_LINK" | |
42196 | EXTRALIBS_HTML="$MSPACK_LINK" | |
42197 | EXTRALIBS_ODBC="$ODBC_LINK" | |
42198 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 42199 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
42200 | fi |
42201 | if test "$wxUSE_OPENGL" = "yes"; then | |
42202 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
42203 | fi | |
42204 | ||
42205 | LDFLAGS="$LDFLAGS $PROFILE" | |
42206 | ||
42207 | if test "$wxUSE_GTK" = 1; then | |
42208 | WXCONFIG_INCLUDE= | |
42209 | else | |
42210 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
42211 | fi | |
42212 | ||
42213 | WXCONFIG_EXTRALIBS="$LIBS" | |
42214 | ||
42215 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 42216 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
42217 | fi |
42218 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 42219 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
42220 | fi |
42221 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 42222 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
42223 | fi |
42224 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 42225 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
42226 | fi |
42227 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 42228 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
42229 | fi |
42230 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 42231 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
42232 | fi |
42233 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 42234 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
42235 | fi |
42236 | ||
42237 | for i in $wxconfig_3rdparty ; do | |
74802184 | 42238 | WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS" |
a848cd7e SC |
42239 | done |
42240 | ||
42241 | ||
42242 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
42243 | WXUNIV=1 | |
42244 | else | |
42245 | WXUNIV=0 | |
42246 | fi | |
42247 | ||
42248 | ||
42249 | ||
42250 | ||
42251 | ||
42252 | ||
42253 | ||
42254 | ||
42255 | ||
42256 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
42257 | MONOLITHIC=1 | |
42258 | else | |
42259 | MONOLITHIC=0 | |
42260 | fi | |
42261 | ||
42262 | if test $wxUSE_PLUGINS = "yes" ; then | |
42263 | USE_PLUGINS=1 | |
42264 | else | |
42265 | USE_PLUGINS=0 | |
42266 | fi | |
42267 | ||
42268 | if test $wxUSE_ODBC != "no" ; then | |
42269 | USE_ODBC=1 | |
42270 | else | |
42271 | USE_ODBC=0 | |
42272 | fi | |
42273 | ||
16358932 VZ |
42274 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
42275 | USE_QA=1 | |
42276 | else | |
42277 | USE_QA=0 | |
42278 | fi | |
42279 | ||
a848cd7e SC |
42280 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
42281 | OFFICIAL_BUILD=1 | |
42282 | else | |
42283 | OFFICIAL_BUILD=0 | |
42284 | fi | |
42285 | ||
42286 | ||
42287 | ||
42288 | ||
42289 | ||
42290 | ||
42291 | ||
42292 | ||
42293 | ||
42294 | ||
42295 | ||
42296 | ||
42297 | ||
42298 | ||
42299 | ||
42300 | ||
42301 | ||
42302 | ||
42303 | ||
ceec2216 | 42304 | |
d1c38808 | 42305 | |
a848cd7e SC |
42306 | |
42307 | ||
42308 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
42309 | ||
42310 | ||
42311 | ||
42312 | ||
42313 | ||
42314 | ||
42315 | ||
42316 | ||
4d4ff94c VZ |
42317 | case "$TOOLKIT" in |
42318 | GTK) | |
42319 | TOOLKIT_USER="GTK+" | |
42320 | if test "$WXGTK20" = 1; then | |
42321 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
42322 | fi | |
9a8f0513 | 42323 | ;; |
4d4ff94c VZ |
42324 | |
42325 | *) | |
42326 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 42327 | ;; |
4d4ff94c | 42328 | esac |
a848cd7e | 42329 | |
fb00f58d JS |
42330 | if test "$wxUSE_WINE" = "yes"; then |
42331 | BAKEFILE_FORCE_PLATFORM=win32 | |
42332 | fi | |
42333 | ||
9a8f0513 | 42334 | |
1e9e8aba DE |
42335 | |
42336 | ||
a848cd7e SC |
42337 | if test "x$BAKEFILE_HOST" = "x"; then |
42338 | BAKEFILE_HOST="${host}" | |
42339 | fi | |
42340 | ||
42341 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
42342 | ||
42343 | if test -n "$ac_tool_prefix"; then | |
42344 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
42345 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
42346 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42348 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
42349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42350 | else | |
42351 | if test -n "$RANLIB"; then | |
42352 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
42353 | else | |
42354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42355 | for as_dir in $PATH | |
42356 | do | |
42357 | IFS=$as_save_IFS | |
42358 | test -z "$as_dir" && as_dir=. | |
42359 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42360 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42361 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
42362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42363 | break 2 | |
42364 | fi | |
42365 | done | |
42366 | done | |
42367 | ||
42368 | fi | |
42369 | fi | |
42370 | RANLIB=$ac_cv_prog_RANLIB | |
42371 | if test -n "$RANLIB"; then | |
42372 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
42373 | echo "${ECHO_T}$RANLIB" >&6 | |
42374 | else | |
42375 | echo "$as_me:$LINENO: result: no" >&5 | |
42376 | echo "${ECHO_T}no" >&6 | |
42377 | fi | |
42378 | ||
42379 | fi | |
42380 | if test -z "$ac_cv_prog_RANLIB"; then | |
42381 | ac_ct_RANLIB=$RANLIB | |
42382 | # Extract the first word of "ranlib", so it can be a program name with args. | |
42383 | set dummy ranlib; ac_word=$2 | |
42384 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42386 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
42387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42388 | else | |
42389 | if test -n "$ac_ct_RANLIB"; then | |
42390 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
42391 | else | |
42392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42393 | for as_dir in $PATH | |
42394 | do | |
42395 | IFS=$as_save_IFS | |
42396 | test -z "$as_dir" && as_dir=. | |
42397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42398 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42399 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
42400 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42401 | break 2 | |
42402 | fi | |
42403 | done | |
42404 | done | |
42405 | ||
42406 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
42407 | fi | |
42408 | fi | |
42409 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
42410 | if test -n "$ac_ct_RANLIB"; then | |
42411 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
42412 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
42413 | else | |
42414 | echo "$as_me:$LINENO: result: no" >&5 | |
42415 | echo "${ECHO_T}no" >&6 | |
42416 | fi | |
42417 | ||
42418 | RANLIB=$ac_ct_RANLIB | |
42419 | else | |
42420 | RANLIB="$ac_cv_prog_RANLIB" | |
42421 | fi | |
42422 | ||
42423 | # Find a good install program. We prefer a C program (faster), | |
42424 | # so one script is as good as another. But avoid the broken or | |
42425 | # incompatible versions: | |
42426 | # SysV /etc/install, /usr/sbin/install | |
42427 | # SunOS /usr/etc/install | |
42428 | # IRIX /sbin/install | |
42429 | # AIX /bin/install | |
42430 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
42431 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
42432 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
42433 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 42434 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
42435 | # ./install, which can be erroneously created by make from ./install.sh. |
42436 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
42437 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
42438 | if test -z "$INSTALL"; then | |
42439 | if test "${ac_cv_path_install+set}" = set; then | |
42440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42441 | else | |
42442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42443 | for as_dir in $PATH | |
42444 | do | |
42445 | IFS=$as_save_IFS | |
42446 | test -z "$as_dir" && as_dir=. | |
42447 | # Account for people who put trailing slashes in PATH elements. | |
42448 | case $as_dir/ in | |
42449 | ./ | .// | /cC/* | \ | |
42450 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 42451 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
42452 | /usr/ucb/* ) ;; |
42453 | *) | |
42454 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
42455 | # Don't use installbsd from OSF since it installs stuff as root | |
42456 | # by default. | |
42457 | for ac_prog in ginstall scoinst install; do | |
42458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
42459 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
42460 | if test $ac_prog = install && | |
42461 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
42462 | # AIX install. It has an incompatible calling convention. | |
42463 | : | |
42464 | elif test $ac_prog = install && | |
42465 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
42466 | # program-specific install script used by HP pwplus--don't use. | |
42467 | : | |
42468 | else | |
42469 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
42470 | break 3 | |
42471 | fi | |
42472 | fi | |
a848cd7e SC |
42473 | done |
42474 | done | |
42475 | ;; | |
42476 | esac | |
42477 | done | |
42478 | ||
42479 | ||
42480 | fi | |
42481 | if test "${ac_cv_path_install+set}" = set; then | |
42482 | INSTALL=$ac_cv_path_install | |
42483 | else | |
42484 | # As a last resort, use the slow shell script. We don't cache a | |
42485 | # path for INSTALL within a source directory, because that will | |
42486 | # break other packages using the cache if that directory is | |
42487 | # removed, or if the path is relative. | |
42488 | INSTALL=$ac_install_sh | |
42489 | fi | |
42490 | fi | |
42491 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
42492 | echo "${ECHO_T}$INSTALL" >&6 | |
42493 | ||
42494 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
42495 | # It thinks the first close brace ends the variable substitution. | |
42496 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
42497 | ||
42498 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
42499 | ||
42500 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
42501 | ||
42502 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
42503 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
42504 | LN_S=$as_ln_s | |
42505 | if test "$LN_S" = "ln -s"; then | |
42506 | echo "$as_me:$LINENO: result: yes" >&5 | |
42507 | echo "${ECHO_T}yes" >&6 | |
42508 | else | |
42509 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
42510 | echo "${ECHO_T}no, using $LN_S" >&6 | |
42511 | fi | |
42512 | ||
42513 | ||
42514 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
42515 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 42516 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
42517 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
42518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42519 | else | |
42520 | cat >conftest.make <<\_ACEOF | |
42521 | all: | |
42522 | @echo 'ac_maketemp="$(MAKE)"' | |
42523 | _ACEOF | |
42524 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
42525 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
42526 | if test -n "$ac_maketemp"; then | |
42527 | eval ac_cv_prog_make_${ac_make}_set=yes | |
42528 | else | |
42529 | eval ac_cv_prog_make_${ac_make}_set=no | |
42530 | fi | |
42531 | rm -f conftest.make | |
42532 | fi | |
42533 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
42534 | echo "$as_me:$LINENO: result: yes" >&5 | |
42535 | echo "${ECHO_T}yes" >&6 | |
42536 | SET_MAKE= | |
42537 | else | |
42538 | echo "$as_me:$LINENO: result: no" >&5 | |
42539 | echo "${ECHO_T}no" >&6 | |
42540 | SET_MAKE="MAKE=${MAKE-make}" | |
42541 | fi | |
42542 | ||
42543 | ||
42544 | ||
42545 | if test -n "$ac_tool_prefix"; then | |
42546 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
42547 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
42548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42550 | if test "${ac_cv_prog_AR+set}" = set; then | |
42551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42552 | else | |
42553 | if test -n "$AR"; then | |
42554 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
42555 | else | |
42556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42557 | for as_dir in $PATH | |
42558 | do | |
42559 | IFS=$as_save_IFS | |
42560 | test -z "$as_dir" && as_dir=. | |
42561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42562 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42563 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
42564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42565 | break 2 | |
42566 | fi | |
42567 | done | |
42568 | done | |
42569 | ||
42570 | fi | |
42571 | fi | |
42572 | AR=$ac_cv_prog_AR | |
42573 | if test -n "$AR"; then | |
42574 | echo "$as_me:$LINENO: result: $AR" >&5 | |
42575 | echo "${ECHO_T}$AR" >&6 | |
42576 | else | |
42577 | echo "$as_me:$LINENO: result: no" >&5 | |
42578 | echo "${ECHO_T}no" >&6 | |
42579 | fi | |
42580 | ||
42581 | fi | |
42582 | if test -z "$ac_cv_prog_AR"; then | |
42583 | ac_ct_AR=$AR | |
42584 | # Extract the first word of "ar", so it can be a program name with args. | |
42585 | set dummy ar; ac_word=$2 | |
42586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42588 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
42589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42590 | else | |
42591 | if test -n "$ac_ct_AR"; then | |
42592 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
42593 | else | |
42594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42595 | for as_dir in $PATH | |
42596 | do | |
42597 | IFS=$as_save_IFS | |
42598 | test -z "$as_dir" && as_dir=. | |
42599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42600 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42601 | ac_cv_prog_ac_ct_AR="ar" | |
42602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42603 | break 2 | |
42604 | fi | |
42605 | done | |
42606 | done | |
42607 | ||
42608 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
42609 | fi | |
42610 | fi | |
42611 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
42612 | if test -n "$ac_ct_AR"; then | |
42613 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
42614 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
42615 | else | |
42616 | echo "$as_me:$LINENO: result: no" >&5 | |
42617 | echo "${ECHO_T}no" >&6 | |
42618 | fi | |
42619 | ||
42620 | AR=$ac_ct_AR | |
42621 | else | |
42622 | AR="$ac_cv_prog_AR" | |
42623 | fi | |
42624 | ||
42625 | if test -n "$ac_tool_prefix"; then | |
42626 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
42627 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
42628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42630 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
42631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42632 | else | |
42633 | if test -n "$STRIP"; then | |
42634 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
42635 | else | |
42636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42637 | for as_dir in $PATH | |
42638 | do | |
42639 | IFS=$as_save_IFS | |
42640 | test -z "$as_dir" && as_dir=. | |
42641 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42643 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
42644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42645 | break 2 | |
42646 | fi | |
42647 | done | |
42648 | done | |
42649 | ||
42650 | fi | |
42651 | fi | |
42652 | STRIP=$ac_cv_prog_STRIP | |
42653 | if test -n "$STRIP"; then | |
42654 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
42655 | echo "${ECHO_T}$STRIP" >&6 | |
42656 | else | |
42657 | echo "$as_me:$LINENO: result: no" >&5 | |
42658 | echo "${ECHO_T}no" >&6 | |
42659 | fi | |
42660 | ||
42661 | fi | |
42662 | if test -z "$ac_cv_prog_STRIP"; then | |
42663 | ac_ct_STRIP=$STRIP | |
42664 | # Extract the first word of "strip", so it can be a program name with args. | |
42665 | set dummy strip; ac_word=$2 | |
42666 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42668 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
42669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42670 | else | |
42671 | if test -n "$ac_ct_STRIP"; then | |
42672 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
42673 | else | |
42674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42675 | for as_dir in $PATH | |
42676 | do | |
42677 | IFS=$as_save_IFS | |
42678 | test -z "$as_dir" && as_dir=. | |
42679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42680 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42681 | ac_cv_prog_ac_ct_STRIP="strip" | |
42682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42683 | break 2 | |
42684 | fi | |
42685 | done | |
42686 | done | |
42687 | ||
42688 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
42689 | fi | |
42690 | fi | |
42691 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
42692 | if test -n "$ac_ct_STRIP"; then | |
42693 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
42694 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
42695 | else | |
42696 | echo "$as_me:$LINENO: result: no" >&5 | |
42697 | echo "${ECHO_T}no" >&6 | |
42698 | fi | |
42699 | ||
42700 | STRIP=$ac_ct_STRIP | |
42701 | else | |
42702 | STRIP="$ac_cv_prog_STRIP" | |
42703 | fi | |
42704 | ||
42705 | if test -n "$ac_tool_prefix"; then | |
42706 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
42707 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
42708 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42710 | if test "${ac_cv_prog_NM+set}" = set; then | |
42711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42712 | else | |
42713 | if test -n "$NM"; then | |
42714 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
42715 | else | |
42716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42717 | for as_dir in $PATH | |
42718 | do | |
42719 | IFS=$as_save_IFS | |
42720 | test -z "$as_dir" && as_dir=. | |
42721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42722 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42723 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
42724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42725 | break 2 | |
42726 | fi | |
42727 | done | |
42728 | done | |
42729 | ||
42730 | fi | |
42731 | fi | |
42732 | NM=$ac_cv_prog_NM | |
42733 | if test -n "$NM"; then | |
42734 | echo "$as_me:$LINENO: result: $NM" >&5 | |
42735 | echo "${ECHO_T}$NM" >&6 | |
42736 | else | |
42737 | echo "$as_me:$LINENO: result: no" >&5 | |
42738 | echo "${ECHO_T}no" >&6 | |
42739 | fi | |
42740 | ||
42741 | fi | |
42742 | if test -z "$ac_cv_prog_NM"; then | |
42743 | ac_ct_NM=$NM | |
42744 | # Extract the first word of "nm", so it can be a program name with args. | |
42745 | set dummy nm; ac_word=$2 | |
42746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42748 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
42749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42750 | else | |
42751 | if test -n "$ac_ct_NM"; then | |
42752 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
42753 | else | |
42754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42755 | for as_dir in $PATH | |
42756 | do | |
42757 | IFS=$as_save_IFS | |
42758 | test -z "$as_dir" && as_dir=. | |
42759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42761 | ac_cv_prog_ac_ct_NM="nm" | |
42762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42763 | break 2 | |
42764 | fi | |
42765 | done | |
42766 | done | |
42767 | ||
42768 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
42769 | fi | |
42770 | fi | |
42771 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
42772 | if test -n "$ac_ct_NM"; then | |
42773 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
42774 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
42775 | else | |
42776 | echo "$as_me:$LINENO: result: no" >&5 | |
42777 | echo "${ECHO_T}no" >&6 | |
42778 | fi | |
42779 | ||
42780 | NM=$ac_ct_NM | |
42781 | else | |
42782 | NM="$ac_cv_prog_NM" | |
42783 | fi | |
42784 | ||
42785 | ||
42786 | case ${BAKEFILE_HOST} in | |
42787 | *-hp-hpux* ) | |
1e9e8aba | 42788 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
42789 | ;; |
42790 | *) INSTALL_DIR="$INSTALL -d" | |
42791 | ;; | |
42792 | esac | |
42793 | ||
42794 | ||
42795 | LDFLAGS_GUI= | |
42796 | case ${BAKEFILE_HOST} in | |
42797 | *-*-cygwin* | *-*-mingw32* ) | |
42798 | LDFLAGS_GUI="-mwindows" | |
42799 | esac | |
42800 | ||
42801 | ||
42802 | fi | |
42803 | ||
42804 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
42805 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
42806 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
42807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42808 | else | |
42809 | ||
42810 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
42811 | egrep -s GNU > /dev/null); then | |
42812 | bakefile_cv_prog_makeisgnu="yes" | |
42813 | else | |
42814 | bakefile_cv_prog_makeisgnu="no" | |
42815 | fi | |
42816 | ||
42817 | fi | |
42818 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
42819 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
42820 | ||
42821 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
42822 | IF_GNU_MAKE="" | |
42823 | else | |
42824 | IF_GNU_MAKE="#" | |
42825 | fi | |
42826 | ||
42827 | ||
42828 | ||
42829 | PLATFORM_UNIX=0 | |
42830 | PLATFORM_WIN32=0 | |
42831 | PLATFORM_MSDOS=0 | |
42832 | PLATFORM_MAC=0 | |
1e9e8aba | 42833 | PLATFORM_MACOS=0 |
a848cd7e SC |
42834 | PLATFORM_MACOSX=0 |
42835 | PLATFORM_OS2=0 | |
1e9e8aba | 42836 | PLATFORM_BEOS=0 |
a848cd7e SC |
42837 | |
42838 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
42839 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 42840 | *-*-mingw32* ) |
a848cd7e SC |
42841 | PLATFORM_WIN32=1 |
42842 | ;; | |
42843 | *-pc-msdosdjgpp ) | |
42844 | PLATFORM_MSDOS=1 | |
42845 | ;; | |
42846 | *-pc-os2_emx | *-pc-os2-emx ) | |
42847 | PLATFORM_OS2=1 | |
42848 | ;; | |
47bd5406 | 42849 | *-*-darwin* ) |
a848cd7e SC |
42850 | PLATFORM_MAC=1 |
42851 | PLATFORM_MACOSX=1 | |
42852 | ;; | |
1e9e8aba DE |
42853 | *-*-beos* ) |
42854 | PLATFORM_BEOS=1 | |
42855 | ;; | |
42856 | powerpc-apple-macos* ) | |
42857 | PLATFORM_MAC=1 | |
42858 | PLATFORM_MACOS=1 | |
42859 | ;; | |
a848cd7e SC |
42860 | * ) |
42861 | PLATFORM_UNIX=1 | |
42862 | ;; | |
42863 | esac | |
42864 | else | |
42865 | case "$BAKEFILE_FORCE_PLATFORM" in | |
42866 | win32 ) | |
42867 | PLATFORM_WIN32=1 | |
42868 | ;; | |
42869 | msdos ) | |
42870 | PLATFORM_MSDOS=1 | |
42871 | ;; | |
42872 | os2 ) | |
42873 | PLATFORM_OS2=1 | |
42874 | ;; | |
42875 | darwin ) | |
42876 | PLATFORM_MAC=1 | |
42877 | PLATFORM_MACOSX=1 | |
42878 | ;; | |
42879 | unix ) | |
42880 | PLATFORM_UNIX=1 | |
42881 | ;; | |
1e9e8aba DE |
42882 | beos ) |
42883 | PLATFORM_BEOS=1 | |
42884 | ;; | |
a848cd7e SC |
42885 | * ) |
42886 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
42887 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
42888 | { (exit 1); exit 1; }; } | |
42889 | ;; | |
42890 | esac | |
42891 | fi | |
42892 | ||
42893 | ||
42894 | ||
42895 | ||
42896 | ||
42897 | ||
42898 | ||
42899 | ||
42900 | ||
1e9e8aba DE |
42901 | |
42902 | ||
a848cd7e SC |
42903 | # Check whether --enable-omf or --disable-omf was given. |
42904 | if test "${enable_omf+set}" = set; then | |
42905 | enableval="$enable_omf" | |
42906 | bk_os2_use_omf="$enableval" | |
42907 | fi; | |
42908 | ||
42909 | case "${BAKEFILE_HOST}" in | |
42910 | *-*-darwin* ) | |
47bd5406 VZ |
42911 | if test "x$GCC" = "xyes"; then |
42912 | CFLAGS="$CFLAGS -fno-common" | |
42913 | CXXFLAGS="$CXXFLAGS -fno-common" | |
42914 | fi | |
42915 | if test "x$XLCC" = "xyes"; then | |
42916 | CFLAGS="$CFLAGS -qnocommon" | |
42917 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
42918 | fi | |
a848cd7e SC |
42919 | ;; |
42920 | ||
42921 | *-pc-os2_emx | *-pc-os2-emx ) | |
42922 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
42923 | AR=emxomfar | |
42924 | RANLIB=: | |
42925 | LDFLAGS="-Zomf $LDFLAGS" | |
42926 | CFLAGS="-Zomf $CFLAGS" | |
42927 | CXXFLAGS="-Zomf $CXXFLAGS" | |
42928 | OS2_LIBEXT="lib" | |
42929 | else | |
42930 | OS2_LIBEXT="a" | |
42931 | fi | |
42932 | ;; | |
1e9e8aba DE |
42933 | |
42934 | i*86-*-beos* ) | |
42935 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
42936 | ;; | |
a848cd7e SC |
42937 | esac |
42938 | ||
42939 | ||
42940 | SO_SUFFIX="so" | |
42941 | SO_SUFFIX_MODULE="so" | |
42942 | EXEEXT="" | |
42943 | LIBPREFIX="lib" | |
42944 | LIBEXT=".a" | |
42945 | DLLPREFIX="lib" | |
42946 | DLLPREFIX_MODULE="" | |
42947 | DLLIMP_SUFFIX="" | |
810b94f0 | 42948 | dlldir="$libdir" |
a848cd7e SC |
42949 | |
42950 | case "${BAKEFILE_HOST}" in | |
42951 | *-hp-hpux* ) | |
42952 | SO_SUFFIX="sl" | |
42953 | SO_SUFFIX_MODULE="sl" | |
42954 | ;; | |
42955 | *-*-aix* ) | |
42956 | SO_SUFFIX="a" | |
42957 | SO_SUFFIX_MODULE="a" | |
42958 | ;; | |
810b94f0 MW |
42959 | *-*-cygwin* ) |
42960 | SO_SUFFIX="dll" | |
42961 | SO_SUFFIX_MODULE="dll" | |
42962 | DLLIMP_SUFFIX="dll.a" | |
42963 | EXEEXT=".exe" | |
42964 | DLLPREFIX="cyg" | |
42965 | dlldir="$bindir" | |
42966 | ;; | |
42967 | *-*-mingw32* ) | |
a848cd7e SC |
42968 | SO_SUFFIX="dll" |
42969 | SO_SUFFIX_MODULE="dll" | |
42970 | DLLIMP_SUFFIX="dll.a" | |
42971 | EXEEXT=".exe" | |
42972 | DLLPREFIX="" | |
810b94f0 | 42973 | dlldir="$bindir" |
a848cd7e SC |
42974 | ;; |
42975 | *-pc-msdosdjgpp ) | |
42976 | EXEEXT=".exe" | |
42977 | DLLPREFIX="" | |
810b94f0 | 42978 | dlldir="$bindir" |
a848cd7e SC |
42979 | ;; |
42980 | *-pc-os2_emx | *-pc-os2-emx ) | |
42981 | SO_SUFFIX="dll" | |
42982 | SO_SUFFIX_MODULE="dll" | |
42983 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
42984 | EXEEXT=".exe" | |
42985 | DLLPREFIX="" | |
42986 | LIBPREFIX="" | |
42987 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 42988 | dlldir="$bindir" |
a848cd7e | 42989 | ;; |
47bd5406 | 42990 | *-*-darwin* ) |
a848cd7e SC |
42991 | SO_SUFFIX="dylib" |
42992 | SO_SUFFIX_MODULE="bundle" | |
42993 | ;; | |
42994 | esac | |
42995 | ||
42996 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
42997 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
42998 | fi | |
42999 | ||
43000 | ||
43001 | ||
43002 | ||
43003 | ||
43004 | ||
43005 | ||
43006 | ||
43007 | ||
43008 | ||
43009 | ||
810b94f0 | 43010 | |
1e9e8aba DE |
43011 | PIC_FLAG="" |
43012 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
43013 | PIC_FLAG="-fPIC" |
43014 | fi | |
43015 | ||
1e9e8aba DE |
43016 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
43017 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 43018 | WINDOWS_IMPLIB=0 |
1e9e8aba | 43019 | |
a848cd7e SC |
43020 | case "${BAKEFILE_HOST}" in |
43021 | *-hp-hpux* ) | |
1e9e8aba | 43022 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
43023 | LDFLAGS="$LDFLAGS -L/usr/lib" |
43024 | ||
43025 | SHARED_LD_CC="${CC} -b -o" | |
43026 | SHARED_LD_CXX="${CXX} -b -o" | |
43027 | PIC_FLAG="+Z" | |
43028 | fi | |
43029 | ;; | |
43030 | ||
43031 | *-*-linux* ) | |
43032 | if test "x$GCC" != "xyes"; then | |
43033 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
43034 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
43035 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
43036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43037 | else | |
43038 | ||
43039 | cat >conftest.$ac_ext <<_ACEOF | |
43040 | /* confdefs.h. */ | |
43041 | _ACEOF | |
43042 | cat confdefs.h >>conftest.$ac_ext | |
43043 | cat >>conftest.$ac_ext <<_ACEOF | |
43044 | /* end confdefs.h. */ | |
43045 | ||
43046 | int | |
43047 | main () | |
43048 | { | |
43049 | ||
43050 | #ifndef __INTEL_COMPILER | |
43051 | #error Not icc | |
43052 | #endif | |
43053 | ||
43054 | ; | |
43055 | return 0; | |
43056 | } | |
43057 | _ACEOF | |
43058 | rm -f conftest.$ac_objext | |
43059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43060 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43061 | ac_status=$? |
ac1cb8d3 VS |
43062 | grep -v '^ *+' conftest.er1 >conftest.err |
43063 | rm -f conftest.er1 | |
43064 | cat conftest.err >&5 | |
a848cd7e SC |
43065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43066 | (exit $ac_status); } && | |
6ebeb4c7 | 43067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43069 | (eval $ac_try) 2>&5 | |
43070 | ac_status=$? | |
43071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43072 | (exit $ac_status); }; } && | |
43073 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43075 | (eval $ac_try) 2>&5 | |
43076 | ac_status=$? | |
43077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43078 | (exit $ac_status); }; }; then | |
43079 | bakefile_cv_prog_icc=yes | |
43080 | else | |
43081 | echo "$as_me: failed program was:" >&5 | |
43082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43083 | ||
43084 | bakefile_cv_prog_icc=no | |
43085 | ||
43086 | fi | |
ac1cb8d3 | 43087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43088 | |
43089 | fi | |
43090 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
43091 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
43092 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
43093 | PIC_FLAG="-KPIC" | |
43094 | fi | |
43095 | fi | |
43096 | ;; | |
43097 | ||
43098 | *-*-solaris2* ) | |
43099 | if test "x$GCC" != xyes ; then | |
43100 | SHARED_LD_CC="${CC} -G -o" | |
43101 | SHARED_LD_CXX="${CXX} -G -o" | |
43102 | PIC_FLAG="-KPIC" | |
43103 | fi | |
43104 | ;; | |
43105 | ||
43106 | *-*-darwin* ) | |
43107 | ||
43108 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
43109 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
43110 | if test "${wx_cv_gcc31+set}" = set; then | |
43111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43112 | else | |
43113 | ||
43114 | cat >conftest.$ac_ext <<_ACEOF | |
43115 | /* confdefs.h. */ | |
43116 | _ACEOF | |
43117 | cat confdefs.h >>conftest.$ac_ext | |
43118 | cat >>conftest.$ac_ext <<_ACEOF | |
43119 | /* end confdefs.h. */ | |
43120 | ||
43121 | int | |
43122 | main () | |
43123 | { | |
43124 | ||
43125 | #if (__GNUC__ < 3) || \ | |
43126 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
43127 | #error old gcc | |
43128 | #endif | |
43129 | ||
43130 | ; | |
43131 | return 0; | |
43132 | } | |
43133 | _ACEOF | |
43134 | rm -f conftest.$ac_objext | |
43135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43136 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43137 | ac_status=$? |
ac1cb8d3 VS |
43138 | grep -v '^ *+' conftest.er1 >conftest.err |
43139 | rm -f conftest.er1 | |
43140 | cat conftest.err >&5 | |
a848cd7e SC |
43141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43142 | (exit $ac_status); } && | |
6ebeb4c7 | 43143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43145 | (eval $ac_try) 2>&5 | |
43146 | ac_status=$? | |
43147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43148 | (exit $ac_status); }; } && | |
43149 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43151 | (eval $ac_try) 2>&5 | |
43152 | ac_status=$? | |
43153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43154 | (exit $ac_status); }; }; then | |
43155 | ||
43156 | wx_cv_gcc31=yes | |
43157 | ||
43158 | else | |
43159 | echo "$as_me: failed program was:" >&5 | |
43160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43161 | ||
43162 | ||
43163 | wx_cv_gcc31=no | |
43164 | ||
43165 | ||
43166 | fi | |
ac1cb8d3 | 43167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43168 | |
43169 | fi | |
43170 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
43171 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
43172 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
43173 | |
43174 | D='$' | |
43175 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
43176 | #!/bin/sh |
43177 | #----------------------------------------------------------------------------- | |
43178 | #-- Name: distrib/mac/shared-ld-sh | |
43179 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
43180 | #-- Author: Gilles Depeyrot | |
43181 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
43182 | #-- Licence: any use permitted | |
43183 | #----------------------------------------------------------------------------- | |
43184 | ||
43185 | verbose=0 | |
43186 | args="" | |
43187 | objects="" | |
43188 | linking_flag="-dynamiclib" | |
810b94f0 | 43189 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 43190 | |
473276a9 VS |
43191 | while test ${D}# -gt 0; do |
43192 | case ${D}1 in | |
a848cd7e SC |
43193 | |
43194 | -v) | |
43195 | verbose=1 | |
43196 | ;; | |
43197 | ||
43198 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
43199 | # collect these options and values | |
473276a9 | 43200 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
43201 | shift |
43202 | ;; | |
43203 | ||
810b94f0 MW |
43204 | -s|-Wl,*) |
43205 | # collect these load args | |
43206 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 43207 | ;; |
810b94f0 MW |
43208 | |
43209 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 43210 | # collect these options |
473276a9 | 43211 | args="${D}{args} ${D}1" |
a848cd7e SC |
43212 | ;; |
43213 | ||
43214 | -dynamiclib|-bundle) | |
473276a9 | 43215 | linking_flag="${D}1" |
a848cd7e SC |
43216 | ;; |
43217 | ||
43218 | -*) | |
473276a9 | 43219 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
43220 | exit 1 |
43221 | ;; | |
43222 | ||
43223 | *.o | *.a | *.dylib) | |
43224 | # collect object files | |
473276a9 | 43225 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
43226 | ;; |
43227 | ||
43228 | *) | |
473276a9 | 43229 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
43230 | exit 1 |
43231 | ;; | |
43232 | ||
43233 | esac | |
43234 | shift | |
43235 | done | |
43236 | ||
810b94f0 MW |
43237 | status=0 |
43238 | ||
a848cd7e SC |
43239 | # |
43240 | # Link one module containing all the others | |
43241 | # | |
473276a9 | 43242 | if test ${D}{verbose} = 1; then |
810b94f0 | 43243 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 43244 | fi |
810b94f0 | 43245 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 43246 | status=${D}? |
a848cd7e SC |
43247 | |
43248 | # | |
810b94f0 MW |
43249 | # Link the shared library from the single module created, but only if the |
43250 | # previous command didn't fail: | |
a848cd7e | 43251 | # |
810b94f0 MW |
43252 | if test ${D}{status} = 0; then |
43253 | if test ${D}{verbose} = 1; then | |
43254 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
43255 | fi | |
43256 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
43257 | status=${D}? | |
a848cd7e SC |
43258 | fi |
43259 | ||
43260 | # | |
43261 | # Remove intermediate module | |
43262 | # | |
473276a9 | 43263 | rm -f master.${D}${D}.o |
a848cd7e | 43264 | |
810b94f0 | 43265 | exit ${D}status |
a848cd7e | 43266 | EOF |
473276a9 | 43267 | |
a848cd7e SC |
43268 | chmod +x shared-ld-sh |
43269 | ||
43270 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
43271 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
43272 | SHARED_LD_CXX="$SHARED_LD_CC" | |
43273 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
43274 | else | |
43275 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
43276 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
43277 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
43278 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
43279 | fi | |
43280 | ||
47bd5406 VZ |
43281 | if test "x$GCC" == "xyes"; then |
43282 | PIC_FLAG="-dynamic -fPIC" | |
43283 | fi | |
43284 | if test "x$XLCC" = "xyes"; then | |
43285 | PIC_FLAG="-dynamic -DPIC" | |
43286 | fi | |
a848cd7e SC |
43287 | ;; |
43288 | ||
43289 | *-*-aix* ) | |
43290 | if test "x$GCC" != "xyes"; then | |
43291 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
43292 | set dummy makeC++SharedLib; ac_word=$2 | |
43293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43295 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
43296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43297 | else | |
43298 | if test -n "$AIX_CXX_LD"; then | |
43299 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
43300 | else | |
43301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43302 | for as_dir in $PATH | |
43303 | do | |
43304 | IFS=$as_save_IFS | |
43305 | test -z "$as_dir" && as_dir=. | |
43306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43308 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
43309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43310 | break 2 | |
43311 | fi | |
43312 | done | |
43313 | done | |
43314 | ||
43315 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
43316 | fi | |
43317 | fi | |
43318 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
43319 | if test -n "$AIX_CXX_LD"; then | |
43320 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
43321 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
43322 | else | |
43323 | echo "$as_me:$LINENO: result: no" >&5 | |
43324 | echo "${ECHO_T}no" >&6 | |
43325 | fi | |
43326 | ||
43327 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
43328 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
43329 | fi | |
43330 | ;; | |
43331 | ||
43332 | *-*-beos* ) | |
1e9e8aba DE |
43333 | SHARED_LD_CC="${LD} -nostart -o" |
43334 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
43335 | ;; |
43336 | ||
43337 | *-*-irix* ) | |
43338 | if test "x$GCC" != "xyes"; then | |
43339 | PIC_FLAG="-KPIC" | |
43340 | fi | |
43341 | ;; | |
43342 | ||
43343 | *-*-cygwin* | *-*-mingw32* ) | |
43344 | PIC_FLAG="" | |
1e9e8aba DE |
43345 | SHARED_LD_CC="\$(CC) -shared -o" |
43346 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 43347 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
43348 | ;; |
43349 | ||
43350 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
43351 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
43352 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 43353 | PIC_FLAG="" |
473276a9 VS |
43354 | |
43355 | D='$' | |
43356 | cat <<EOF >dllar.sh | |
43357 | #!/bin/sh | |
43358 | # | |
43359 | # dllar - a tool to build both a .dll and an .a file | |
43360 | # from a set of object (.o) files for EMX/OS2. | |
43361 | # | |
43362 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
43363 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
43364 | # | |
43365 | # This script will accept a set of files on the command line. | |
43366 | # All the public symbols from the .o files will be exported into | |
43367 | # a .DEF file, then linker will be run (through gcc) against them to | |
43368 | # build a shared library consisting of all given .o files. All libraries | |
43369 | # (.a) will be first decompressed into component .o files then act as | |
43370 | # described above. You can optionally give a description (-d "description") | |
43371 | # which will be put into .DLL. To see the list of accepted options (as well | |
43372 | # as command-line format) simply run this program without options. The .DLL | |
43373 | # is built to be imported by name (there is no guarantee that new versions | |
43374 | # of the library you build will have same ordinals for same symbols). | |
43375 | # | |
43376 | # dllar is free software; you can redistribute it and/or modify | |
43377 | # it under the terms of the GNU General Public License as published by | |
43378 | # the Free Software Foundation; either version 2, or (at your option) | |
43379 | # any later version. | |
43380 | # | |
43381 | # dllar is distributed in the hope that it will be useful, | |
43382 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
43383 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
43384 | # GNU General Public License for more details. | |
43385 | # | |
43386 | # You should have received a copy of the GNU General Public License | |
43387 | # along with dllar; see the file COPYING. If not, write to the Free | |
43388 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
43389 | # 02111-1307, USA. | |
43390 | ||
43391 | # To successfuly run this program you will need: | |
43392 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
43393 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
43394 | # - gcc | |
43395 | # (used to build the .dll) | |
43396 | # - emxexp | |
43397 | # (used to create .def file from .o files) | |
43398 | # - emximp | |
43399 | # (used to create .a file from .def file) | |
43400 | # - GNU text utilites (cat, sort, uniq) | |
43401 | # used to process emxexp output | |
43402 | # - GNU file utilities (mv, rm) | |
43403 | # - GNU sed | |
43404 | # - lxlite (optional, see flag below) | |
43405 | # (used for general .dll cleanup) | |
43406 | # | |
43407 | ||
43408 | flag_USE_LXLITE=1; | |
43409 | ||
43410 | # | |
43411 | # helper functions | |
43412 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
43413 | # second argument (suffix to remove) is given | |
43414 | basnam(){ | |
43415 | case ${D}# in | |
43416 | 1) | |
1e9e8aba | 43417 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
43418 | ;; |
43419 | 2) | |
43420 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
43421 | ;; | |
43422 | *) | |
43423 | echo "error in basnam ${D}*" | |
43424 | exit 8 | |
43425 | ;; | |
43426 | esac | |
43427 | } | |
43428 | ||
43429 | # Cleanup temporary files and output | |
43430 | CleanUp() { | |
43431 | cd ${D}curDir | |
43432 | for i in ${D}inputFiles ; do | |
43433 | case ${D}i in | |
43434 | *!) | |
43435 | rm -rf \`basnam ${D}i !\` | |
43436 | ;; | |
43437 | *) | |
43438 | ;; | |
43439 | esac | |
43440 | done | |
43441 | ||
43442 | # Kill result in case of failure as there is just to many stupid make/nmake | |
43443 | # things out there which doesn't do this. | |
1e9e8aba | 43444 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
43445 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
43446 | fi | |
43447 | } | |
43448 | ||
43449 | # Print usage and exit script with rc=1. | |
43450 | PrintHelp() { | |
b1d22ded DE |
43451 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
43452 | echo ' [-name-mangler-script script.sh]' | |
43453 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
43454 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
43455 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 43456 | echo ' [*.o] [*.a]' |
473276a9 VS |
43457 | echo '*> "output_file" should have no extension.' |
43458 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
43459 | echo ' The import library name is derived from this and is set to "name".a,' | |
43460 | echo ' unless overridden by -import' | |
43461 | echo '*> "importlib_name" should have no extension.' | |
43462 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
43463 | echo ' This name is used as the import library name and may be longer and' | |
43464 | echo ' more descriptive than the DLL name which has to follow the old ' | |
43465 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
43466 | echo '*> "script.sh may be given to override the output_file name by a' |
43467 | echo ' different name. It is mainly useful if the regular make process' | |
43468 | echo ' of some package does not take into account OS/2 restriction of' | |
43469 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
43470 | echo ' supposed to procude a shorter name as output. The script should' | |
43471 | echo ' expect to get importlib_name without extension and should produce' | |
43472 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
43473 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
43474 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
43475 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
43476 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
43477 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
43478 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
43479 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
43480 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 43481 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 43482 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 43483 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 43484 | echo ' C runtime DLLs.' |
b1d22ded | 43485 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
43486 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
43487 | echo ' unchanged to GCC at the end of command line.' | |
43488 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
43489 | echo ' the basename for DLL and import library will be set to library name,' | |
43490 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
43491 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
43492 | echo ' library will be renamed into gcc_s.a.' | |
43493 | echo '--------' | |
43494 | echo 'Example:' | |
43495 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
43496 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
43497 | CleanUp | |
43498 | exit 1 | |
43499 | } | |
43500 | ||
43501 | # Execute a command. | |
43502 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
43503 | # @Uses Whatever CleanUp() uses. | |
43504 | doCommand() { | |
43505 | echo "${D}*" | |
43506 | eval ${D}* | |
43507 | rcCmd=${D}? | |
43508 | ||
1e9e8aba | 43509 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
43510 | echo "command failed, exit code="${D}rcCmd |
43511 | CleanUp | |
43512 | exit ${D}rcCmd | |
43513 | fi | |
43514 | } | |
43515 | ||
43516 | # main routine | |
43517 | # setup globals | |
43518 | cmdLine=${D}* | |
43519 | outFile="" | |
43520 | outimpFile="" | |
43521 | inputFiles="" | |
b1d22ded | 43522 | renameScript="" |
473276a9 VS |
43523 | description="" |
43524 | CC=gcc.exe | |
43525 | CFLAGS="-s -Zcrtdll" | |
43526 | EXTRA_CFLAGS="" | |
43527 | EXPORT_BY_ORDINALS=0 | |
43528 | exclude_symbols="" | |
43529 | library_flags="" | |
43530 | curDir=\`pwd\` | |
43531 | curDirS=curDir | |
43532 | case ${D}curDirS in | |
43533 | */) | |
43534 | ;; | |
43535 | *) | |
43536 | curDirS=${D}{curDirS}"/" | |
43537 | ;; | |
43538 | esac | |
43539 | # Parse commandline | |
43540 | libsToLink=0 | |
b1d22ded | 43541 | omfLinking=0 |
1e9e8aba | 43542 | while [ ${D}1 ]; do |
473276a9 VS |
43543 | case ${D}1 in |
43544 | -ord*) | |
43545 | EXPORT_BY_ORDINALS=1; | |
43546 | ;; | |
43547 | -o*) | |
43548 | shift | |
43549 | outFile=${D}1 | |
43550 | ;; | |
43551 | -i*) | |
43552 | shift | |
43553 | outimpFile=${D}1 | |
43554 | ;; | |
b1d22ded DE |
43555 | -name-mangler-script) |
43556 | shift | |
43557 | renameScript=${D}1 | |
43558 | ;; | |
473276a9 VS |
43559 | -d*) |
43560 | shift | |
43561 | description=${D}1 | |
43562 | ;; | |
43563 | -f*) | |
43564 | shift | |
43565 | CFLAGS=${D}1 | |
43566 | ;; | |
43567 | -c*) | |
43568 | shift | |
43569 | CC=${D}1 | |
43570 | ;; | |
43571 | -h*) | |
43572 | PrintHelp | |
43573 | ;; | |
43574 | -ex*) | |
43575 | shift | |
43576 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
43577 | ;; | |
43578 | -libf*) | |
43579 | shift | |
43580 | library_flags=${D}{library_flags}${D}1" " | |
43581 | ;; | |
43582 | -nocrt*) | |
43583 | CFLAGS="-s" | |
43584 | ;; | |
43585 | -nolxl*) | |
43586 | flag_USE_LXLITE=0 | |
43587 | ;; | |
43588 | -* | /*) | |
43589 | case ${D}1 in | |
43590 | -L* | -l*) | |
43591 | libsToLink=1 | |
43592 | ;; | |
b1d22ded DE |
43593 | -Zomf) |
43594 | omfLinking=1 | |
43595 | ;; | |
473276a9 VS |
43596 | *) |
43597 | ;; | |
43598 | esac | |
43599 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
43600 | ;; | |
b1d22ded DE |
43601 | *.dll) |
43602 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
43603 | if [ ${D}omfLinking -eq 1 ]; then | |
43604 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
43605 | else | |
43606 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
43607 | fi | |
43608 | ;; | |
473276a9 VS |
43609 | *) |
43610 | found=0; | |
1e9e8aba | 43611 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
43612 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
43613 | else | |
43614 | for file in ${D}1 ; do | |
1e9e8aba | 43615 | if [ -f ${D}file ]; then |
473276a9 VS |
43616 | inputFiles="${D}{inputFiles} ${D}file" |
43617 | found=1 | |
43618 | fi | |
43619 | done | |
1e9e8aba | 43620 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
43621 | echo "ERROR: No file(s) found: "${D}1 |
43622 | exit 8 | |
43623 | fi | |
43624 | fi | |
43625 | ;; | |
43626 | esac | |
43627 | shift | |
43628 | done # iterate cmdline words | |
43629 | ||
43630 | # | |
1e9e8aba | 43631 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
43632 | echo "dllar: no input files" |
43633 | PrintHelp | |
43634 | fi | |
43635 | ||
43636 | # Now extract all .o files from .a files | |
43637 | newInputFiles="" | |
43638 | for file in ${D}inputFiles ; do | |
43639 | case ${D}file in | |
43640 | *.a | *.lib) | |
43641 | case ${D}file in | |
43642 | *.a) | |
43643 | suffix=".a" | |
43644 | AR="ar" | |
43645 | ;; | |
43646 | *.lib) | |
43647 | suffix=".lib" | |
43648 | AR="emxomfar" | |
43649 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
43650 | ;; | |
43651 | *) | |
43652 | ;; | |
43653 | esac | |
43654 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
43655 | mkdir ${D}dirname | |
1e9e8aba | 43656 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
43657 | echo "Failed to create subdirectory ./${D}dirname" |
43658 | CleanUp | |
43659 | exit 8; | |
43660 | fi | |
43661 | # Append '!' to indicate archive | |
43662 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
43663 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
43664 | cd ${D}curDir | |
43665 | found=0; | |
43666 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 43667 | if [ -f ${D}subfile ]; then |
473276a9 | 43668 | found=1 |
1e9e8aba | 43669 | if [ -s ${D}subfile ]; then |
473276a9 VS |
43670 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
43671 | newInputFiles="${D}newInputFiles ${D}subfile" | |
43672 | fi | |
43673 | fi | |
43674 | done | |
1e9e8aba DE |
43675 | if [ ${D}found -eq 0 ]; then |
43676 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
43677 | fi |
43678 | ;; | |
43679 | *) | |
43680 | newInputFiles="${D}{newInputFiles} ${D}file" | |
43681 | ;; | |
43682 | esac | |
43683 | done | |
43684 | inputFiles="${D}newInputFiles" | |
43685 | ||
43686 | # Output filename(s). | |
43687 | do_backup=0; | |
1e9e8aba | 43688 | if [ -z ${D}outFile ]; then |
473276a9 VS |
43689 | do_backup=1; |
43690 | set outFile ${D}inputFiles; outFile=${D}2 | |
43691 | fi | |
43692 | ||
43693 | # If it is an archive, remove the '!' and the '_%' suffixes | |
43694 | case ${D}outFile in | |
43695 | *_%!) | |
43696 | outFile=\`basnam ${D}outFile _%!\` | |
43697 | ;; | |
43698 | *) | |
43699 | ;; | |
43700 | esac | |
43701 | case ${D}outFile in | |
43702 | *.dll) | |
43703 | outFile=\`basnam ${D}outFile .dll\` | |
43704 | ;; | |
43705 | *.DLL) | |
43706 | outFile=\`basnam ${D}outFile .DLL\` | |
43707 | ;; | |
43708 | *.o) | |
43709 | outFile=\`basnam ${D}outFile .o\` | |
43710 | ;; | |
43711 | *.obj) | |
43712 | outFile=\`basnam ${D}outFile .obj\` | |
43713 | ;; | |
43714 | *.a) | |
43715 | outFile=\`basnam ${D}outFile .a\` | |
43716 | ;; | |
43717 | *.lib) | |
43718 | outFile=\`basnam ${D}outFile .lib\` | |
43719 | ;; | |
43720 | *) | |
43721 | ;; | |
43722 | esac | |
43723 | case ${D}outimpFile in | |
43724 | *.a) | |
43725 | outimpFile=\`basnam ${D}outimpFile .a\` | |
43726 | ;; | |
43727 | *.lib) | |
43728 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
43729 | ;; | |
43730 | *) | |
43731 | ;; | |
43732 | esac | |
1e9e8aba | 43733 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
43734 | outimpFile=${D}outFile |
43735 | fi | |
43736 | defFile="${D}{outFile}.def" | |
43737 | arcFile="${D}{outimpFile}.a" | |
43738 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
43739 | |
43740 | #create ${D}dllFile as something matching 8.3 restrictions, | |
43741 | if [ -z ${D}renameScript ] ; then | |
43742 | dllFile="${D}outFile" | |
43743 | else | |
43744 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
43745 | fi | |
473276a9 | 43746 | |
1e9e8aba DE |
43747 | if [ ${D}do_backup -ne 0 ] ; then |
43748 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
43749 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
43750 | fi | |
1e9e8aba | 43751 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
43752 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
43753 | fi | |
43754 | fi | |
43755 | ||
43756 | # Extract public symbols from all the object files. | |
43757 | tmpdefFile=${D}{defFile}_% | |
43758 | rm -f ${D}tmpdefFile | |
43759 | for file in ${D}inputFiles ; do | |
43760 | case ${D}file in | |
43761 | *!) | |
43762 | ;; | |
43763 | *) | |
43764 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
43765 | ;; | |
43766 | esac | |
43767 | done | |
43768 | ||
43769 | # Create the def file. | |
43770 | rm -f ${D}defFile | |
43771 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
43772 | dllFile="${D}{dllFile}.dll" |
43773 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 43774 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
43775 | fi |
43776 | echo "EXPORTS" >> ${D}defFile | |
43777 | ||
43778 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
43779 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
43780 | ||
43781 | # Checks if the export is ok or not. | |
43782 | for word in ${D}exclude_symbols; do | |
43783 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
43784 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
43785 | done | |
43786 | ||
43787 | ||
1e9e8aba DE |
43788 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
43789 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
43790 | sed ' |
43791 | N | |
43792 | : loop | |
1e9e8aba | 43793 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
43794 | t loop |
43795 | ' > ${D}{tmpdefFile}% | |
43796 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
43797 | else | |
43798 | rm -f ${D}{tmpdefFile}% | |
43799 | fi | |
43800 | cat ${D}tmpdefFile >> ${D}defFile | |
43801 | rm -f ${D}tmpdefFile | |
43802 | ||
43803 | # Do linking, create implib, and apply lxlite. | |
43804 | gccCmdl=""; | |
43805 | for file in ${D}inputFiles ; do | |
43806 | case ${D}file in | |
43807 | *!) | |
43808 | ;; | |
43809 | *) | |
43810 | gccCmdl="${D}gccCmdl ${D}file" | |
43811 | ;; | |
43812 | esac | |
43813 | done | |
43814 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
43815 | touch "${D}{outFile}.dll" | |
43816 | ||
43817 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 43818 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 43819 | add_flags=""; |
1e9e8aba | 43820 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
43821 | add_flags="-ynd" |
43822 | fi | |
43823 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
43824 | fi | |
43825 | doCommand "emxomf -s -l ${D}arcFile" | |
43826 | ||
43827 | # Successful exit. | |
43828 | CleanUp 1 | |
43829 | exit 0 | |
43830 | EOF | |
43831 | ||
43832 | chmod +x dllar.sh | |
a848cd7e SC |
43833 | ;; |
43834 | ||
1e9e8aba | 43835 | powerpc-apple-macos* | \ |
a848cd7e SC |
43836 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
43837 | *-*-sunos4* | \ | |
43838 | *-*-osf* | \ | |
43839 | *-*-dgux5* | \ | |
47a7e797 MW |
43840 | *-*-sysv5* | \ |
43841 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
43842 | ;; |
43843 | ||
43844 | *) | |
43845 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
43846 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
43847 | { (exit 1); exit 1; }; } | |
43848 | esac | |
43849 | ||
2057db16 VS |
43850 | if test "x$PIC_FLAG" != "x" ; then |
43851 | PIC_FLAG="$PIC_FLAG -DPIC" | |
43852 | fi | |
43853 | ||
a848cd7e SC |
43854 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
43855 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
43856 | fi | |
43857 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
43858 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
43859 | fi | |
43860 | ||
43861 | ||
43862 | ||
43863 | ||
43864 | ||
43865 | ||
43866 | ||
43867 | ||
810b94f0 | 43868 | |
a848cd7e SC |
43869 | USE_SOVERSION=0 |
43870 | USE_SOVERLINUX=0 | |
43871 | USE_SOVERSOLARIS=0 | |
810b94f0 | 43872 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
43873 | USE_SOSYMLINKS=0 |
43874 | USE_MACVERSION=0 | |
43875 | SONAME_FLAG= | |
43876 | ||
43877 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 43878 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
43879 | SONAME_FLAG="-Wl,-soname," |
43880 | USE_SOVERSION=1 | |
43881 | USE_SOVERLINUX=1 | |
43882 | USE_SOSYMLINKS=1 | |
43883 | ;; | |
43884 | ||
a848cd7e SC |
43885 | *-*-solaris2* ) |
43886 | SONAME_FLAG="-h " | |
43887 | USE_SOVERSION=1 | |
43888 | USE_SOVERSOLARIS=1 | |
43889 | USE_SOSYMLINKS=1 | |
43890 | ;; | |
43891 | ||
43892 | *-*-darwin* ) | |
43893 | USE_MACVERSION=1 | |
43894 | USE_SOVERSION=1 | |
43895 | USE_SOSYMLINKS=1 | |
43896 | ;; | |
810b94f0 MW |
43897 | |
43898 | *-*-cygwin* ) | |
43899 | USE_SOVERSION=1 | |
43900 | USE_SOVERCYGWIN=1 | |
43901 | ;; | |
a848cd7e SC |
43902 | esac |
43903 | ||
43904 | ||
43905 | ||
43906 | ||
43907 | ||
43908 | ||
43909 | ||
43910 | ||
43911 | ||
810b94f0 | 43912 | |
a848cd7e SC |
43913 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
43914 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
43915 | DEPS_TRACKING=0 | |
43916 | ||
43917 | if test "x$GCC" = "xyes"; then | |
43918 | DEPSMODE=gcc | |
43919 | DEPS_TRACKING=1 | |
43920 | case "${BAKEFILE_HOST}" in | |
47bd5406 | 43921 | *-*-darwin* ) |
a848cd7e SC |
43922 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" |
43923 | ;; | |
43924 | * ) | |
43925 | DEPSFLAG_GCC="-MMD" | |
43926 | ;; | |
43927 | esac | |
43928 | echo "$as_me:$LINENO: result: gcc" >&5 | |
43929 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 43930 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 43931 | DEPSMODE=mwcc |
b1d22ded | 43932 | DEPS_TRACKING=1 |
81f90336 | 43933 | DEPSFLAG_MWCC="-MM" |
b1d22ded DE |
43934 | echo "$as_me:$LINENO: result: mwcc" >&5 |
43935 | echo "${ECHO_T}mwcc" >&6 | |
a9e5b1f0 MW |
43936 | elif test "x$SUNCC" = "xyes"; then |
43937 | DEPSMODE=suncc | |
43938 | DEPS_TRACKING=1 | |
43939 | DEPSFLAG_SUNCC="-xM1" | |
43940 | echo "$as_me:$LINENO: result: suncc" >&5 | |
43941 | echo "${ECHO_T}suncc" >&6 | |
a848cd7e SC |
43942 | else |
43943 | echo "$as_me:$LINENO: result: none" >&5 | |
43944 | echo "${ECHO_T}none" >&6 | |
43945 | fi | |
43946 | ||
43947 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
43948 | |
43949 | D='$' | |
43950 | cat <<EOF >bk-deps | |
a848cd7e SC |
43951 | #!/bin/sh |
43952 | ||
43953 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
43954 | # script. It is used to track C/C++ files dependencies in portable way. | |
43955 | # | |
43956 | # Permission is given to use this file in any way. | |
43957 | ||
473276a9 | 43958 | DEPSMODE=${DEPSMODE} |
a848cd7e | 43959 | DEPSDIR=.deps |
473276a9 | 43960 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
81f90336 | 43961 | DEPSFLAG_MWCC="${DEPSFLAG_MWCC}" |
a9e5b1f0 | 43962 | DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}" |
a848cd7e | 43963 | |
473276a9 | 43964 | mkdir -p ${D}DEPSDIR |
a848cd7e | 43965 | |
473276a9 VS |
43966 | if test ${D}DEPSMODE = gcc ; then |
43967 | ${D}* ${D}{DEPSFLAG_GCC} | |
43968 | status=${D}? | |
43969 | if test ${D}{status} != 0 ; then | |
43970 | exit ${D}{status} | |
a848cd7e SC |
43971 | fi |
43972 | # move created file to the location we want it in: | |
473276a9 VS |
43973 | while test ${D}# -gt 0; do |
43974 | case "${D}1" in | |
a848cd7e SC |
43975 | -o ) |
43976 | shift | |
473276a9 | 43977 | objfile=${D}1 |
a848cd7e SC |
43978 | ;; |
43979 | -* ) | |
43980 | ;; | |
43981 | * ) | |
473276a9 | 43982 | srcfile=${D}1 |
a848cd7e SC |
43983 | ;; |
43984 | esac | |
43985 | shift | |
43986 | done | |
1e9e8aba DE |
43987 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
43988 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
43989 | if test -f ${D}depfile ; then |
43990 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
43991 | rm -f ${D}depfile | |
a848cd7e | 43992 | else |
1e9e8aba | 43993 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
43994 | if test -f ${D}depfile ; then |
43995 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
43996 | rm -f ${D}depfile | |
a848cd7e SC |
43997 | fi |
43998 | fi | |
43999 | exit 0 | |
81f90336 MW |
44000 | elif test ${D}DEPSMODE = mwcc ; then |
44001 | ${D}* | |
44002 | status=${D}? | |
44003 | if test ${D}{status} != 0 ; then | |
44004 | exit ${D}{status} | |
44005 | fi | |
44006 | # Run mwcc again with -MM and redirect into the dep file we want | |
44007 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
44008 | prevarg= | |
44009 | for arg in ${D}* ; do | |
44010 | if test "${D}prevarg" = "-o"; then | |
44011 | objfile=${D}arg | |
44012 | else | |
44013 | case "${D}arg" in | |
44014 | -* ) | |
44015 | ;; | |
44016 | * ) | |
44017 | srcfile=${D}arg | |
44018 | ;; | |
44019 | esac | |
44020 | fi | |
44021 | prevarg="${D}arg" | |
44022 | done | |
44023 | ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d | |
44024 | exit 0 | |
a9e5b1f0 MW |
44025 | elif test ${D}DEPSMODE = suncc; then |
44026 | ${D}* || exit | |
44027 | # Run compiler again with deps flag and redirect into the dep file. | |
44028 | # It doesn't work if the '-o FILE' option is used, but without it the | |
44029 | # dependency file will contain the wrong name for the object. So it is | |
44030 | # removed from the command line, and the dep file is fixed with sed. | |
44031 | cmd="" | |
44032 | while test ${D}# -gt 0; do | |
44033 | case "${D}1" in | |
44034 | -o ) | |
44035 | shift | |
44036 | objfile=${D}1 | |
44037 | ;; | |
44038 | * ) | |
44039 | eval arg${D}#=\\${D}1 | |
44040 | cmd="${D}cmd \\${D}arg${D}#" | |
44041 | ;; | |
44042 | esac | |
44043 | shift | |
44044 | done | |
44045 | eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d | |
44046 | exit 0 | |
a848cd7e | 44047 | else |
473276a9 VS |
44048 | ${D}* |
44049 | exit ${D}? | |
a848cd7e SC |
44050 | fi |
44051 | EOF | |
473276a9 | 44052 | |
a848cd7e SC |
44053 | chmod +x bk-deps |
44054 | fi | |
44055 | ||
44056 | ||
44057 | ||
44058 | ||
44059 | RESCOMP= | |
44060 | SETFILE= | |
44061 | ||
44062 | case ${BAKEFILE_HOST} in | |
44063 | *-*-cygwin* | *-*-mingw32* ) | |
44064 | if test "$build" != "$host" ; then | |
44065 | RESCOMP=$host_alias-windres | |
44066 | else | |
44067 | # Extract the first word of "windres", so it can be a program name with args. | |
44068 | set dummy windres; ac_word=$2 | |
44069 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44071 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
44072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44073 | else | |
44074 | if test -n "$RESCOMP"; then | |
44075 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
44076 | else | |
44077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44078 | for as_dir in $PATH | |
44079 | do | |
44080 | IFS=$as_save_IFS | |
44081 | test -z "$as_dir" && as_dir=. | |
44082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44083 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44084 | ac_cv_prog_RESCOMP="windres" | |
44085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44086 | break 2 | |
44087 | fi | |
44088 | done | |
44089 | done | |
44090 | ||
44091 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
44092 | fi | |
44093 | fi | |
44094 | RESCOMP=$ac_cv_prog_RESCOMP | |
44095 | if test -n "$RESCOMP"; then | |
44096 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
44097 | echo "${ECHO_T}$RESCOMP" >&6 | |
44098 | else | |
44099 | echo "$as_me:$LINENO: result: no" >&5 | |
44100 | echo "${ECHO_T}no" >&6 | |
44101 | fi | |
44102 | ||
44103 | fi | |
44104 | ;; | |
44105 | ||
1e9e8aba | 44106 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
44107 | # Extract the first word of "Rez", so it can be a program name with args. |
44108 | set dummy Rez; ac_word=$2 | |
44109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44111 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
44112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44113 | else | |
44114 | if test -n "$RESCOMP"; then | |
44115 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
44116 | else | |
44117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44118 | for as_dir in $PATH | |
44119 | do | |
44120 | IFS=$as_save_IFS | |
44121 | test -z "$as_dir" && as_dir=. | |
44122 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44123 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44124 | ac_cv_prog_RESCOMP="Rez" | |
44125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44126 | break 2 | |
44127 | fi | |
44128 | done | |
44129 | done | |
44130 | ||
44131 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
44132 | fi | |
44133 | fi | |
44134 | RESCOMP=$ac_cv_prog_RESCOMP | |
44135 | if test -n "$RESCOMP"; then | |
44136 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
44137 | echo "${ECHO_T}$RESCOMP" >&6 | |
44138 | else | |
44139 | echo "$as_me:$LINENO: result: no" >&5 | |
44140 | echo "${ECHO_T}no" >&6 | |
44141 | fi | |
44142 | ||
44143 | # Extract the first word of "SetFile", so it can be a program name with args. | |
44144 | set dummy SetFile; ac_word=$2 | |
44145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44147 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
44148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44149 | else | |
44150 | if test -n "$SETFILE"; then | |
44151 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
44152 | else | |
44153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44154 | for as_dir in $PATH | |
44155 | do | |
44156 | IFS=$as_save_IFS | |
44157 | test -z "$as_dir" && as_dir=. | |
44158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44160 | ac_cv_prog_SETFILE="SetFile" | |
44161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44162 | break 2 | |
44163 | fi | |
44164 | done | |
44165 | done | |
44166 | ||
44167 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
44168 | fi | |
44169 | fi | |
44170 | SETFILE=$ac_cv_prog_SETFILE | |
44171 | if test -n "$SETFILE"; then | |
44172 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
44173 | echo "${ECHO_T}$SETFILE" >&6 | |
44174 | else | |
44175 | echo "$as_me:$LINENO: result: no" >&5 | |
44176 | echo "${ECHO_T}no" >&6 | |
44177 | fi | |
44178 | ||
44179 | ;; | |
44180 | esac | |
44181 | ||
44182 | ||
44183 | ||
44184 | ||
44185 | ||
c9469659 | 44186 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.9" |
a848cd7e | 44187 | |
dcc1b6ad | 44188 | |
c9469659 | 44189 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9" |
a848cd7e | 44190 | |
646b6ec1 | 44191 | |
74b84332 | 44192 | |
a848cd7e SC |
44193 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
44194 | if test "${enable_precomp_headers+set}" = set; then | |
44195 | enableval="$enable_precomp_headers" | |
44196 | bk_use_pch="$enableval" | |
44197 | fi; | |
44198 | ||
44199 | GCC_PCH=0 | |
44200 | ||
44201 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
44202 | if test "x$GCC" = "xyes"; then | |
44203 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
44204 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
44205 | cat >conftest.$ac_ext <<_ACEOF | |
44206 | /* confdefs.h. */ | |
44207 | _ACEOF | |
44208 | cat confdefs.h >>conftest.$ac_ext | |
44209 | cat >>conftest.$ac_ext <<_ACEOF | |
44210 | /* end confdefs.h. */ | |
44211 | ||
44212 | int | |
44213 | main () | |
44214 | { | |
44215 | ||
44216 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
44217 | #error "no pch support" | |
44218 | #endif | |
44219 | #if (__GNUC__ < 3) | |
44220 | #error "no pch support" | |
44221 | #endif | |
44222 | #if (__GNUC__ == 3) && \ | |
44223 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
44224 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
44225 | #error "no pch support" | |
44226 | #endif | |
44227 | ||
44228 | ; | |
44229 | return 0; | |
44230 | } | |
44231 | _ACEOF | |
44232 | rm -f conftest.$ac_objext | |
44233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44234 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44235 | ac_status=$? |
ac1cb8d3 VS |
44236 | grep -v '^ *+' conftest.er1 >conftest.err |
44237 | rm -f conftest.er1 | |
44238 | cat conftest.err >&5 | |
a848cd7e SC |
44239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44240 | (exit $ac_status); } && | |
6ebeb4c7 | 44241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44243 | (eval $ac_try) 2>&5 | |
44244 | ac_status=$? | |
44245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44246 | (exit $ac_status); }; } && | |
44247 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44249 | (eval $ac_try) 2>&5 | |
44250 | ac_status=$? | |
44251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44252 | (exit $ac_status); }; }; then | |
44253 | ||
44254 | echo "$as_me:$LINENO: result: yes" >&5 | |
44255 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
44256 | GCC_PCH=1 |
44257 | ||
44258 | else | |
44259 | echo "$as_me: failed program was:" >&5 | |
44260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44261 | ||
44262 | ||
44263 | echo "$as_me:$LINENO: result: no" >&5 | |
44264 | echo "${ECHO_T}no" >&6 | |
44265 | ||
44266 | fi | |
ac1cb8d3 | 44267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 44268 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
44269 | |
44270 | D='$' | |
44271 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
44272 | #!/bin/sh |
44273 | ||
44274 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
44275 | # script. It is used to generated precompiled headers. | |
44276 | # | |
44277 | # Permission is given to use this file in any way. | |
44278 | ||
1e9e8aba DE |
44279 | outfile="${D}{1}" |
44280 | header="${D}{2}" | |
a848cd7e SC |
44281 | shift |
44282 | shift | |
44283 | ||
44284 | compiler= | |
44285 | headerfile= | |
1e9e8aba DE |
44286 | while test ${D}{#} -gt 0; do |
44287 | case "${D}{1}" in | |
a848cd7e | 44288 | -I* ) |
1e9e8aba DE |
44289 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
44290 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
44291 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
44292 | fi |
44293 | ;; | |
44294 | esac | |
1e9e8aba | 44295 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
44296 | shift |
44297 | done | |
44298 | ||
1e9e8aba DE |
44299 | if test "x${D}{headerfile}" = "x" ; then |
44300 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 44301 | else |
1e9e8aba DE |
44302 | if test -f ${D}{outfile} ; then |
44303 | rm -f ${D}{outfile} | |
a848cd7e | 44304 | else |
1e9e8aba | 44305 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 44306 | fi |
1e9e8aba | 44307 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
44308 | mkdir -p .deps |
44309 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
44310 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
44311 | exit ${D}{?} | |
a848cd7e SC |
44312 | fi |
44313 | EOF | |
1e9e8aba | 44314 | |
a848cd7e SC |
44315 | chmod +x bk-make-pch |
44316 | fi | |
44317 | fi | |
44318 | fi | |
44319 | ||
44320 | ||
44321 | ||
a848cd7e SC |
44322 | COND_BUILD_DEBUG="#" |
44323 | if test "x$BUILD" = "xdebug" ; then | |
44324 | COND_BUILD_DEBUG="" | |
44325 | fi | |
44326 | ||
44327 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
44328 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
44329 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
44330 | fi | |
44331 | ||
44332 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
44333 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
44334 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
44335 | fi | |
44336 | ||
44337 | COND_BUILD_DEBUG_UNICODE_0="#" | |
44338 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
44339 | COND_BUILD_DEBUG_UNICODE_0="" | |
44340 | fi | |
44341 | ||
44342 | COND_BUILD_DEBUG_UNICODE_1="#" | |
44343 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
44344 | COND_BUILD_DEBUG_UNICODE_1="" | |
44345 | fi | |
44346 | ||
44347 | COND_BUILD_RELEASE="#" | |
44348 | if test "x$BUILD" = "xrelease" ; then | |
44349 | COND_BUILD_RELEASE="" | |
44350 | fi | |
44351 | ||
44352 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
44353 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
44354 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
44355 | fi | |
44356 | ||
44357 | COND_BUILD_RELEASE_UNICODE_0="#" | |
44358 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
44359 | COND_BUILD_RELEASE_UNICODE_0="" | |
44360 | fi | |
44361 | ||
44362 | COND_BUILD_RELEASE_UNICODE_1="#" | |
44363 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
44364 | COND_BUILD_RELEASE_UNICODE_1="" | |
44365 | fi | |
44366 | ||
44367 | COND_DEBUG_FLAG_1="#" | |
44368 | if test "x$DEBUG_FLAG" = "x1" ; then | |
44369 | COND_DEBUG_FLAG_1="" | |
44370 | fi | |
44371 | ||
44372 | COND_DEBUG_INFO_0="#" | |
44373 | if test "x$DEBUG_INFO" = "x0" ; then | |
44374 | COND_DEBUG_INFO_0="" | |
44375 | fi | |
44376 | ||
44377 | COND_DEBUG_INFO_1="#" | |
44378 | if test "x$DEBUG_INFO" = "x1" ; then | |
44379 | COND_DEBUG_INFO_1="" | |
44380 | fi | |
44381 | ||
44382 | COND_DEPS_TRACKING_0="#" | |
44383 | if test "x$DEPS_TRACKING" = "x0" ; then | |
44384 | COND_DEPS_TRACKING_0="" | |
44385 | fi | |
44386 | ||
44387 | COND_DEPS_TRACKING_1="#" | |
44388 | if test "x$DEPS_TRACKING" = "x1" ; then | |
44389 | COND_DEPS_TRACKING_1="" | |
44390 | fi | |
44391 | ||
44392 | COND_GCC_PCH_1="#" | |
44393 | if test "x$GCC_PCH" = "x1" ; then | |
44394 | COND_GCC_PCH_1="" | |
44395 | fi | |
44396 | ||
44397 | COND_MONOLITHIC_0="#" | |
44398 | if test "x$MONOLITHIC" = "x0" ; then | |
44399 | COND_MONOLITHIC_0="" | |
44400 | fi | |
44401 | ||
44402 | COND_MONOLITHIC_0_SHARED_0="#" | |
44403 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
44404 | COND_MONOLITHIC_0_SHARED_0="" | |
44405 | fi | |
44406 | ||
44407 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
44408 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
44409 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
44410 | fi | |
44411 | ||
90970d69 DE |
44412 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
44413 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
44414 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
44415 | fi | |
44416 | ||
a848cd7e SC |
44417 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
44418 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
44419 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
44420 | fi | |
44421 | ||
6671c68b VZ |
44422 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
44423 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
44424 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
44425 | fi | |
44426 | ||
a848cd7e SC |
44427 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
44428 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
44429 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
44430 | fi | |
44431 | ||
ceec2216 RL |
44432 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
44433 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
44434 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
44435 | fi | |
44436 | ||
a848cd7e SC |
44437 | COND_MONOLITHIC_0_SHARED_1="#" |
44438 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
44439 | COND_MONOLITHIC_0_SHARED_1="" | |
44440 | fi | |
44441 | ||
44442 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
44443 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
44444 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
44445 | fi | |
44446 | ||
90970d69 DE |
44447 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
44448 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
44449 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
44450 | fi | |
44451 | ||
a848cd7e SC |
44452 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
44453 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
44454 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
44455 | fi | |
44456 | ||
6671c68b VZ |
44457 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
44458 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
44459 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
44460 | fi | |
44461 | ||
a848cd7e SC |
44462 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
44463 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
44464 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
44465 | fi | |
44466 | ||
ceec2216 RL |
44467 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
44468 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
44469 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
44470 | fi | |
44471 | ||
a848cd7e SC |
44472 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
44473 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
44474 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
44475 | fi | |
44476 | ||
44477 | COND_MONOLITHIC_1="#" | |
44478 | if test "x$MONOLITHIC" = "x1" ; then | |
44479 | COND_MONOLITHIC_1="" | |
44480 | fi | |
44481 | ||
44482 | COND_MONOLITHIC_1_SHARED_0="#" | |
44483 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
44484 | COND_MONOLITHIC_1_SHARED_0="" | |
44485 | fi | |
44486 | ||
44487 | COND_MONOLITHIC_1_SHARED_1="#" | |
44488 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
44489 | COND_MONOLITHIC_1_SHARED_1="" | |
44490 | fi | |
44491 | ||
44492 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
44493 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
44494 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
44495 | fi | |
44496 | ||
44497 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
44498 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
44499 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
44500 | fi | |
44501 | ||
eb730a0c JS |
44502 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
44503 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
44504 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
44505 | fi | |
44506 | ||
a848cd7e SC |
44507 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
44508 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
44509 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
44510 | fi | |
44511 | ||
44512 | COND_PLATFORM_MACOSX_1="#" | |
44513 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
44514 | COND_PLATFORM_MACOSX_1="" | |
44515 | fi | |
44516 | ||
a30f955f VS |
44517 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
44518 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
44519 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
44520 | fi | |
44521 | ||
a848cd7e SC |
44522 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
44523 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
44524 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
44525 | fi | |
44526 | ||
44527 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
44528 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
44529 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
44530 | fi | |
44531 | ||
44532 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
44533 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
44534 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
44535 | fi | |
44536 | ||
fc480dc1 DE |
44537 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
44538 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
44539 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
44540 | fi | |
44541 | ||
1e9e8aba DE |
44542 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
44543 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44544 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
44545 | fi | |
44546 | ||
ebee3cd0 VS |
44547 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
44548 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
44549 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
44550 | fi | |
44551 | ||
44552 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
44553 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
44554 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
44555 | fi | |
44556 | ||
a848cd7e SC |
44557 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
44558 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
44559 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
44560 | fi | |
44561 | ||
44562 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
44563 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
44564 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
44565 | fi | |
44566 | ||
b48a2016 DE |
44567 | COND_PLATFORM_MACOS_1="#" |
44568 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
44569 | COND_PLATFORM_MACOS_1="" | |
44570 | fi | |
44571 | ||
083508af MW |
44572 | COND_PLATFORM_MAC_1="#" |
44573 | if test "x$PLATFORM_MAC" = "x1" ; then | |
44574 | COND_PLATFORM_MAC_1="" | |
44575 | fi | |
44576 | ||
83d8eb47 MW |
44577 | COND_PLATFORM_MSDOS_1="#" |
44578 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
44579 | COND_PLATFORM_MSDOS_1="" | |
44580 | fi | |
44581 | ||
a848cd7e SC |
44582 | COND_PLATFORM_OS2_1="#" |
44583 | if test "x$PLATFORM_OS2" = "x1" ; then | |
44584 | COND_PLATFORM_OS2_1="" | |
44585 | fi | |
44586 | ||
44587 | COND_PLATFORM_UNIX_0="#" | |
44588 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
44589 | COND_PLATFORM_UNIX_0="" | |
44590 | fi | |
44591 | ||
44592 | COND_PLATFORM_UNIX_1="#" | |
44593 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
44594 | COND_PLATFORM_UNIX_1="" | |
44595 | fi | |
44596 | ||
44597 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
44598 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
44599 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
44600 | fi | |
44601 | ||
44602 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
44603 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
44604 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
44605 | fi | |
44606 | ||
44607 | COND_PLATFORM_WIN32_0="#" | |
44608 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
44609 | COND_PLATFORM_WIN32_0="" | |
44610 | fi | |
44611 | ||
44612 | COND_PLATFORM_WIN32_1="#" | |
44613 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
44614 | COND_PLATFORM_WIN32_1="" | |
44615 | fi | |
44616 | ||
44617 | COND_SHARED_0="#" | |
44618 | if test "x$SHARED" = "x0" ; then | |
44619 | COND_SHARED_0="" | |
44620 | fi | |
44621 | ||
083508af MW |
44622 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
44623 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
44624 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
44625 | fi | |
44626 | ||
44627 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
44628 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
44629 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
44630 | fi | |
44631 | ||
44632 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
44633 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
44634 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
44635 | fi | |
44636 | ||
a848cd7e SC |
44637 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
44638 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
44639 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
44640 | fi | |
44641 | ||
44642 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
44643 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
44644 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
44645 | fi | |
44646 | ||
44647 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
44648 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
44649 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
44650 | fi | |
44651 | ||
44652 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
44653 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
44654 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
44655 | fi | |
44656 | ||
083508af MW |
44657 | COND_SHARED_0_USE_XRC_1="#" |
44658 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
44659 | COND_SHARED_0_USE_XRC_1="" | |
44660 | fi | |
44661 | ||
a848cd7e SC |
44662 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
44663 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
44664 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
44665 | fi | |
44666 | ||
44667 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
44668 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
44669 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
44670 | fi | |
44671 | ||
44672 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
44673 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
44674 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
44675 | fi | |
44676 | ||
44677 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
44678 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
44679 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
44680 | fi | |
44681 | ||
44682 | COND_SHARED_1="#" | |
44683 | if test "x$SHARED" = "x1" ; then | |
44684 | COND_SHARED_1="" | |
44685 | fi | |
44686 | ||
44687 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
44688 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
44689 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
44690 | fi | |
44691 | ||
083508af MW |
44692 | COND_SHARED_1_USE_XRC_1="#" |
44693 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
44694 | COND_SHARED_1_USE_XRC_1="" | |
44695 | fi | |
44696 | ||
a30f955f VS |
44697 | COND_TOOLKIT_="#" |
44698 | if test "x$TOOLKIT" = "x" ; then | |
44699 | COND_TOOLKIT_="" | |
44700 | fi | |
44701 | ||
a848cd7e SC |
44702 | COND_TOOLKIT_COCOA="#" |
44703 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
44704 | COND_TOOLKIT_COCOA="" | |
44705 | fi | |
44706 | ||
a49baeab DE |
44707 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
44708 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
44709 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
44710 | fi | |
44711 | ||
a848cd7e SC |
44712 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
44713 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44714 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
44715 | fi | |
44716 | ||
44717 | COND_TOOLKIT_GTK="#" | |
44718 | if test "x$TOOLKIT" = "xGTK" ; then | |
44719 | COND_TOOLKIT_GTK="" | |
44720 | fi | |
44721 | ||
44722 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
44723 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
44724 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
44725 | fi | |
44726 | ||
44727 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
44728 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44729 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
44730 | fi | |
44731 | ||
44732 | COND_TOOLKIT_MAC="#" | |
44733 | if test "x$TOOLKIT" = "xMAC" ; then | |
44734 | COND_TOOLKIT_MAC="" | |
44735 | fi | |
44736 | ||
44737 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
44738 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
44739 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
44740 | fi | |
44741 | ||
44742 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
44743 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44744 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
44745 | fi | |
44746 | ||
44747 | COND_TOOLKIT_MGL="#" | |
44748 | if test "x$TOOLKIT" = "xMGL" ; then | |
44749 | COND_TOOLKIT_MGL="" | |
44750 | fi | |
44751 | ||
44752 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
44753 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
44754 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
44755 | fi | |
44756 | ||
44757 | COND_TOOLKIT_MOTIF="#" | |
44758 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
44759 | COND_TOOLKIT_MOTIF="" | |
44760 | fi | |
44761 | ||
44762 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
44763 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
44764 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
44765 | fi | |
44766 | ||
44767 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
44768 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44769 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
44770 | fi | |
44771 | ||
44772 | COND_TOOLKIT_MSW="#" | |
44773 | if test "x$TOOLKIT" = "xMSW" ; then | |
44774 | COND_TOOLKIT_MSW="" | |
44775 | fi | |
44776 | ||
44777 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
44778 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
44779 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
44780 | fi | |
44781 | ||
44782 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
44783 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44784 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
44785 | fi | |
44786 | ||
44787 | COND_TOOLKIT_PM="#" | |
44788 | if test "x$TOOLKIT" = "xPM" ; then | |
44789 | COND_TOOLKIT_PM="" | |
44790 | fi | |
44791 | ||
44792 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
44793 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
44794 | COND_TOOLKIT_PM_USE_GUI_1="" | |
44795 | fi | |
44796 | ||
44797 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
44798 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44799 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
44800 | fi | |
44801 | ||
3fd9c298 DE |
44802 | COND_TOOLKIT_WINCE="#" |
44803 | if test "x$TOOLKIT" = "xWINCE" ; then | |
44804 | COND_TOOLKIT_WINCE="" | |
44805 | fi | |
44806 | ||
44807 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
44808 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
44809 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
44810 | fi | |
44811 | ||
44812 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
44813 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44814 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
44815 | fi | |
44816 | ||
a848cd7e SC |
44817 | COND_TOOLKIT_X11="#" |
44818 | if test "x$TOOLKIT" = "xX11" ; then | |
44819 | COND_TOOLKIT_X11="" | |
44820 | fi | |
44821 | ||
44822 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
44823 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
44824 | COND_TOOLKIT_X11_USE_GUI_1="" | |
44825 | fi | |
44826 | ||
44827 | COND_UNICODE_1="#" | |
44828 | if test "x$UNICODE" = "x1" ; then | |
44829 | COND_UNICODE_1="" | |
44830 | fi | |
44831 | ||
44832 | COND_USE_EXCEPTIONS_0="#" | |
44833 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
44834 | COND_USE_EXCEPTIONS_0="" | |
44835 | fi | |
44836 | ||
44837 | COND_USE_EXCEPTIONS_1="#" | |
44838 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
44839 | COND_USE_EXCEPTIONS_1="" | |
44840 | fi | |
44841 | ||
44842 | COND_USE_GUI_0="#" | |
44843 | if test "x$USE_GUI" = "x0" ; then | |
44844 | COND_USE_GUI_0="" | |
44845 | fi | |
44846 | ||
44847 | COND_USE_GUI_1="#" | |
44848 | if test "x$USE_GUI" = "x1" ; then | |
44849 | COND_USE_GUI_1="" | |
44850 | fi | |
44851 | ||
44852 | COND_USE_GUI_1_WXUNIV_0="#" | |
44853 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44854 | COND_USE_GUI_1_WXUNIV_0="" | |
44855 | fi | |
44856 | ||
44857 | COND_USE_GUI_1_WXUNIV_1="#" | |
44858 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
44859 | COND_USE_GUI_1_WXUNIV_1="" | |
44860 | fi | |
44861 | ||
44862 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
44863 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
44864 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
44865 | fi | |
44866 | ||
44867 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
44868 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
44869 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
44870 | fi | |
44871 | ||
44872 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
44873 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
44874 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
44875 | fi | |
44876 | ||
083508af MW |
44877 | COND_USE_ODBC_1="#" |
44878 | if test "x$USE_ODBC" = "x1" ; then | |
44879 | COND_USE_ODBC_1="" | |
44880 | fi | |
44881 | ||
44882 | COND_USE_OPENGL_1="#" | |
44883 | if test "x$USE_OPENGL" = "x1" ; then | |
44884 | COND_USE_OPENGL_1="" | |
44885 | fi | |
44886 | ||
a848cd7e SC |
44887 | COND_USE_PLUGINS_0="#" |
44888 | if test "x$USE_PLUGINS" = "x0" ; then | |
44889 | COND_USE_PLUGINS_0="" | |
44890 | fi | |
44891 | ||
0b78747f MW |
44892 | COND_USE_RTTI_0="#" |
44893 | if test "x$USE_RTTI" = "x0" ; then | |
44894 | COND_USE_RTTI_0="" | |
44895 | fi | |
44896 | ||
44897 | COND_USE_RTTI_1="#" | |
44898 | if test "x$USE_RTTI" = "x1" ; then | |
44899 | COND_USE_RTTI_1="" | |
44900 | fi | |
44901 | ||
a848cd7e SC |
44902 | COND_USE_SOSYMLINKS_1="#" |
44903 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
44904 | COND_USE_SOSYMLINKS_1="" | |
44905 | fi | |
44906 | ||
eb730a0c JS |
44907 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
44908 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
44909 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
44910 | fi | |
44911 | ||
a848cd7e SC |
44912 | COND_USE_SOVERLINUX_1="#" |
44913 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
44914 | COND_USE_SOVERLINUX_1="" | |
44915 | fi | |
44916 | ||
44917 | COND_USE_SOVERSION_0="#" | |
44918 | if test "x$USE_SOVERSION" = "x0" ; then | |
44919 | COND_USE_SOVERSION_0="" | |
44920 | fi | |
44921 | ||
44922 | COND_USE_SOVERSOLARIS_1="#" | |
44923 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
44924 | COND_USE_SOVERSOLARIS_1="" | |
44925 | fi | |
44926 | ||
0b78747f MW |
44927 | COND_USE_THREADS_0="#" |
44928 | if test "x$USE_THREADS" = "x0" ; then | |
44929 | COND_USE_THREADS_0="" | |
44930 | fi | |
44931 | ||
44932 | COND_USE_THREADS_1="#" | |
44933 | if test "x$USE_THREADS" = "x1" ; then | |
44934 | COND_USE_THREADS_1="" | |
44935 | fi | |
44936 | ||
a13a7f89 RL |
44937 | COND_USE_XRC_1="#" |
44938 | if test "x$USE_XRC" = "x1" ; then | |
44939 | COND_USE_XRC_1="" | |
44940 | fi | |
44941 | ||
eb730a0c JS |
44942 | COND_WINDOWS_IMPLIB_1="#" |
44943 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
44944 | COND_WINDOWS_IMPLIB_1="" | |
44945 | fi | |
44946 | ||
a848cd7e SC |
44947 | COND_WITH_PLUGIN_SDL_1="#" |
44948 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
44949 | COND_WITH_PLUGIN_SDL_1="" | |
44950 | fi | |
44951 | ||
1e6eb025 VZ |
44952 | COND_WXUNIV_0="#" |
44953 | if test "x$WXUNIV" = "x0" ; then | |
44954 | COND_WXUNIV_0="" | |
44955 | fi | |
44956 | ||
a848cd7e SC |
44957 | COND_WXUNIV_1="#" |
44958 | if test "x$WXUNIV" = "x1" ; then | |
44959 | COND_WXUNIV_1="" | |
44960 | fi | |
44961 | ||
44962 | COND_WXUSE_EXPAT_BUILTIN="#" | |
44963 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
44964 | COND_WXUSE_EXPAT_BUILTIN="" | |
44965 | fi | |
44966 | ||
44967 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
44968 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
44969 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
44970 | fi | |
44971 | ||
44972 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
44973 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
44974 | COND_WXUSE_LIBPNG_BUILTIN="" | |
44975 | fi | |
44976 | ||
44977 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
44978 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
44979 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
44980 | fi | |
44981 | ||
44982 | COND_WXUSE_ODBC_BUILTIN="#" | |
44983 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
44984 | COND_WXUSE_ODBC_BUILTIN="" | |
44985 | fi | |
44986 | ||
44987 | COND_WXUSE_REGEX_BUILTIN="#" | |
44988 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
44989 | COND_WXUSE_REGEX_BUILTIN="" | |
44990 | fi | |
44991 | ||
44992 | COND_WXUSE_ZLIB_BUILTIN="#" | |
44993 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
44994 | COND_WXUSE_ZLIB_BUILTIN="" | |
44995 | fi | |
44996 | ||
44997 | ||
44998 | ||
810b94f0 MW |
44999 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
45000 | { { 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 | |
45001 | 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;} | |
45002 | { (exit 1); exit 1; }; } | |
45003 | fi | |
45004 | ||
2057db16 VS |
45005 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
45006 | { { 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 | |
45007 | 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;} | |
45008 | { (exit 1); exit 1; }; } | |
45009 | fi | |
45010 | ||
a848cd7e | 45011 | |
ceec2216 RL |
45012 | if test "$wxUSE_SHARED" = "yes"; then |
45013 | ||
45014 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
45015 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
45016 | ||
5b674b9d DE |
45017 | case "${host}" in |
45018 | *-pc-os2_emx | *-pc-os2-emx ) | |
45019 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
45020 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
45021 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
45022 | cp -p ${srcdir}/src/os2/dllar.sh . | |
45023 | ;; | |
45024 | esac | |
ceec2216 RL |
45025 | else |
45026 | ||
45027 | EXE_LINKER="$CXX -o" | |
45028 | ||
45029 | fi | |
69120ee4 VZ |
45030 | if test "$wxUSE_OMF" = "yes"; then |
45031 | case "${host}" in | |
45032 | *-pc-os2_emx | *-pc-os2-emx ) | |
45033 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
45034 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
45035 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
45036 | ;; | |
45037 | esac | |
45038 | fi | |
a848cd7e | 45039 | |
ddd14b14 RR |
45040 | GCC_PRAGMA_FLAGS="" |
45041 | PCH_FLAGS="" | |
87dd70d3 | 45042 | |
c08ebc62 | 45043 | if test $GCC_PCH = 1 ; then |
ddd14b14 | 45044 | PCH_FLAGS="-DWX_PRECOMP" |
87ae5038 RR |
45045 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
45046 | else | |
45047 | if test "$GCC" = yes; then | |
45048 | echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5 | |
87dd70d3 | 45049 | echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 |
87ae5038 | 45050 | cat >conftest.$ac_ext <<_ACEOF |
87dd70d3 RR |
45051 | /* confdefs.h. */ |
45052 | _ACEOF | |
45053 | cat confdefs.h >>conftest.$ac_ext | |
45054 | cat >>conftest.$ac_ext <<_ACEOF | |
45055 | /* end confdefs.h. */ | |
45056 | ||
45057 | int | |
45058 | main () | |
45059 | { | |
45060 | #if (__GNUC__ < 4) | |
04e525a0 | 45061 | Not GCC 4.0 or greater |
87ae5038 | 45062 | #endif |
87dd70d3 RR |
45063 | |
45064 | ; | |
45065 | return 0; | |
45066 | } | |
45067 | _ACEOF | |
45068 | rm -f conftest.$ac_objext | |
45069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45070 | (eval $ac_compile) 2>conftest.er1 | |
45071 | ac_status=$? | |
45072 | grep -v '^ *+' conftest.er1 >conftest.err | |
45073 | rm -f conftest.er1 | |
45074 | cat conftest.err >&5 | |
45075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45076 | (exit $ac_status); } && | |
6ebeb4c7 | 45077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
87dd70d3 RR |
45078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45079 | (eval $ac_try) 2>&5 | |
45080 | ac_status=$? | |
45081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45082 | (exit $ac_status); }; } && | |
45083 | { ac_try='test -s conftest.$ac_objext' | |
45084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45085 | (eval $ac_try) 2>&5 | |
45086 | ac_status=$? | |
45087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45088 | (exit $ac_status); }; }; then | |
45089 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
87ae5038 | 45090 | echo "$as_me:$LINENO: result: yes" >&5 |
87dd70d3 RR |
45091 | echo "${ECHO_T}yes" >&6 |
45092 | else | |
45093 | echo "$as_me: failed program was:" >&5 | |
45094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45095 | ||
45096 | echo "$as_me:$LINENO: result: no" >&5 | |
45097 | echo "${ECHO_T}no" >&6 | |
87ae5038 | 45098 | case "${host}" in |
cfda0ea8 | 45099 | *-*-darwin* ) |
87ae5038 RR |
45100 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
45101 | ;; | |
45102 | *-*-mingw32* ) | |
45103 | if test "$wxUSE_STL" = "yes" -o \ | |
ddd14b14 RR |
45104 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ |
45105 | "$wxUSE_NO_RTTI" != "yes"; then | |
87ae5038 | 45106 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 |
ddd14b14 | 45107 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 |
87ae5038 | 45108 | cat >conftest.$ac_ext <<_ACEOF |
ddd14b14 RR |
45109 | /* confdefs.h. */ |
45110 | _ACEOF | |
45111 | cat confdefs.h >>conftest.$ac_ext | |
45112 | cat >>conftest.$ac_ext <<_ACEOF | |
45113 | /* end confdefs.h. */ | |
45114 | ||
45115 | int | |
45116 | main () | |
45117 | { | |
45118 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
04e525a0 | 45119 | Not GCC 3.2 or greater |
87ae5038 | 45120 | #endif |
ddd14b14 RR |
45121 | |
45122 | ; | |
45123 | return 0; | |
45124 | } | |
45125 | _ACEOF | |
45126 | rm -f conftest.$ac_objext | |
45127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45128 | (eval $ac_compile) 2>conftest.er1 | |
45129 | ac_status=$? | |
45130 | grep -v '^ *+' conftest.er1 >conftest.err | |
45131 | rm -f conftest.er1 | |
45132 | cat conftest.err >&5 | |
45133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45134 | (exit $ac_status); } && | |
6ebeb4c7 | 45135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ddd14b14 RR |
45136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45137 | (eval $ac_try) 2>&5 | |
45138 | ac_status=$? | |
45139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45140 | (exit $ac_status); }; } && | |
45141 | { ac_try='test -s conftest.$ac_objext' | |
45142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45143 | (eval $ac_try) 2>&5 | |
45144 | ac_status=$? | |
45145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45146 | (exit $ac_status); }; }; then | |
45147 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
87ae5038 | 45148 | echo "$as_me:$LINENO: result: yes" >&5 |
ddd14b14 RR |
45149 | echo "${ECHO_T}yes" >&6 |
45150 | else | |
45151 | echo "$as_me: failed program was:" >&5 | |
45152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45153 | ||
45154 | echo "$as_me:$LINENO: result: no" >&5 | |
45155 | echo "${ECHO_T}no" >&6 | |
3314e67b | 45156 | fi |
ddd14b14 | 45157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
87ae5038 RR |
45158 | fi |
45159 | ;; | |
45160 | *-pc-os2_emx | *-pc-os2-emx ) | |
45161 | if test "$wxUSE_STL" = "yes"; then | |
45162 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
ddd14b14 | 45163 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 |
87ae5038 | 45164 | cat >conftest.$ac_ext <<_ACEOF |
ddd14b14 RR |
45165 | /* confdefs.h. */ |
45166 | _ACEOF | |
45167 | cat confdefs.h >>conftest.$ac_ext | |
45168 | cat >>conftest.$ac_ext <<_ACEOF | |
45169 | /* end confdefs.h. */ | |
45170 | ||
45171 | int | |
45172 | main () | |
45173 | { | |
45174 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
04e525a0 | 45175 | Not GCC 3.2 or greater |
87ae5038 | 45176 | #endif |
ddd14b14 RR |
45177 | |
45178 | ; | |
45179 | return 0; | |
45180 | } | |
45181 | _ACEOF | |
45182 | rm -f conftest.$ac_objext | |
45183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45184 | (eval $ac_compile) 2>conftest.er1 | |
45185 | ac_status=$? | |
45186 | grep -v '^ *+' conftest.er1 >conftest.err | |
45187 | rm -f conftest.er1 | |
45188 | cat conftest.err >&5 | |
45189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45190 | (exit $ac_status); } && | |
6ebeb4c7 | 45191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ddd14b14 RR |
45192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45193 | (eval $ac_try) 2>&5 | |
45194 | ac_status=$? | |
45195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45196 | (exit $ac_status); }; } && | |
45197 | { ac_try='test -s conftest.$ac_objext' | |
45198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45199 | (eval $ac_try) 2>&5 | |
45200 | ac_status=$? | |
45201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45202 | (exit $ac_status); }; }; then | |
45203 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
87ae5038 | 45204 | echo "$as_me:$LINENO: result: yes" >&5 |
ddd14b14 RR |
45205 | echo "${ECHO_T}yes" >&6 |
45206 | else | |
45207 | echo "$as_me: failed program was:" >&5 | |
45208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bea8e651 | 45209 | |
ddd14b14 RR |
45210 | echo "$as_me:$LINENO: result: no" >&5 |
45211 | echo "${ECHO_T}no" >&6 | |
45212 | fi | |
45213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
87ae5038 RR |
45214 | fi |
45215 | ;; | |
45216 | esac | |
45217 | ||
45218 | fi | |
45219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
45220 | fi | |
ddd14b14 RR |
45221 | fi |
45222 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" | |
a848cd7e SC |
45223 | |
45224 | ||
45225 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
45226 | ||
45227 | ||
45228 | ||
45229 | ||
45230 | ||
45231 | ||
45232 | ||
45233 | ||
45234 | ||
45235 | ||
45236 | ||
45237 | ||
45238 | ||
45239 | ||
45240 | ||
45241 | ||
45242 | ||
45243 | ||
45244 | ||
45245 | ||
45246 | ||
45247 | ||
45248 | ||
45249 | ||
45250 | ||
45251 | ||
45252 | ||
45253 | ||
45254 | ||
45255 | ||
45256 | ||
45257 | ||
45258 | ||
45259 | ||
45260 | ||
45261 | ||
45262 | ||
45263 | ||
45264 | ||
45265 | ||
45266 | ||
45267 | ||
a848cd7e SC |
45268 | |
45269 | ||
45270 | ||
45271 | ||
45272 | ||
45273 | ||
45274 | ||
45275 | ||
45276 | ||
45277 | ||
45278 | ||
45279 | ||
45280 | ||
45281 | ||
45282 | ||
45283 | ||
45284 | ||
45285 | ||
ddd14b14 | 45286 | |
a848cd7e SC |
45287 | |
45288 | ||
45289 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45290 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45291 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45292 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45294 | else | |
45295 | cat >conftest.make <<\_ACEOF | |
45296 | all: | |
45297 | @echo 'ac_maketemp="$(MAKE)"' | |
45298 | _ACEOF | |
45299 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45300 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45301 | if test -n "$ac_maketemp"; then | |
45302 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45303 | else | |
45304 | eval ac_cv_prog_make_${ac_make}_set=no | |
45305 | fi | |
45306 | rm -f conftest.make | |
45307 | fi | |
45308 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45309 | echo "$as_me:$LINENO: result: yes" >&5 | |
45310 | echo "${ECHO_T}yes" >&6 | |
45311 | SET_MAKE= | |
45312 | else | |
45313 | echo "$as_me:$LINENO: result: no" >&5 | |
45314 | echo "${ECHO_T}no" >&6 | |
45315 | SET_MAKE="MAKE=${MAKE-make}" | |
45316 | fi | |
45317 | ||
45318 | ||
a848cd7e | 45319 | |
ceec2216 RL |
45320 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
45321 | ||
a848cd7e | 45322 | |
ceec2216 | 45323 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 45324 | |
a848cd7e | 45325 | |
ceec2216 | 45326 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 45327 | |
ceec2216 RL |
45328 | |
45329 | ac_config_files="$ac_config_files version-script Makefile" | |
45330 | ||
45331 | ||
45332 | ac_config_commands="$ac_config_commands wx-config | |
45333 | " | |
a848cd7e SC |
45334 | |
45335 | ||
9103d280 RL |
45336 | |
45337 | ||
a848cd7e SC |
45338 | if test "$wxUSE_GUI" = "yes"; then |
45339 | SUBDIRS="samples demos utils contrib" | |
45340 | else SUBDIRS="samples utils" | |
45341 | fi | |
45342 | ||
45343 | ||
45344 | ||
45345 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
45346 | if test "${with_cppunit_prefix+set}" = set; then | |
45347 | withval="$with_cppunit_prefix" | |
45348 | cppunit_config_prefix="$withval" | |
45349 | else | |
45350 | cppunit_config_prefix="" | |
45351 | fi; | |
45352 | ||
45353 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
45354 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
45355 | withval="$with_cppunit_exec_prefix" | |
45356 | cppunit_config_exec_prefix="$withval" | |
45357 | else | |
45358 | cppunit_config_exec_prefix="" | |
45359 | fi; | |
45360 | ||
45361 | if test x$cppunit_config_exec_prefix != x ; then | |
45362 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
45363 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
45364 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
45365 | fi | |
45366 | fi | |
45367 | if test x$cppunit_config_prefix != x ; then | |
45368 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
45369 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
45370 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
45371 | fi | |
45372 | fi | |
45373 | ||
45374 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
45375 | set dummy cppunit-config; ac_word=$2 | |
45376 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45378 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
45379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45380 | else | |
45381 | case $CPPUNIT_CONFIG in | |
45382 | [\\/]* | ?:[\\/]*) | |
45383 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
45384 | ;; | |
45385 | *) | |
45386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45387 | for as_dir in $PATH | |
45388 | do | |
45389 | IFS=$as_save_IFS | |
45390 | test -z "$as_dir" && as_dir=. | |
45391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45392 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45393 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
45394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45395 | break 2 | |
45396 | fi | |
45397 | done | |
45398 | done | |
45399 | ||
45400 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
45401 | ;; | |
45402 | esac | |
45403 | fi | |
45404 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
45405 | ||
45406 | if test -n "$CPPUNIT_CONFIG"; then | |
45407 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
45408 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
45409 | else | |
45410 | echo "$as_me:$LINENO: result: no" >&5 | |
45411 | echo "${ECHO_T}no" >&6 | |
45412 | fi | |
45413 | ||
45414 | cppunit_version_min=1.8.0 | |
45415 | ||
45416 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
45417 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
45418 | no_cppunit="" | |
45419 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
45420 | no_cppunit=yes | |
45421 | else | |
45422 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
45423 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
45424 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
45425 | ||
45426 | cppunit_major_version=`echo $cppunit_version | \ | |
45427 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
45428 | cppunit_minor_version=`echo $cppunit_version | \ | |
45429 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
45430 | cppunit_micro_version=`echo $cppunit_version | \ | |
45431 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
45432 | ||
45433 | cppunit_major_min=`echo $cppunit_version_min | \ | |
45434 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
45435 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
45436 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
45437 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
45438 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
45439 | ||
45440 | cppunit_version_proper=`expr \ | |
45441 | $cppunit_major_version \> $cppunit_major_min \| \ | |
45442 | $cppunit_major_version \= $cppunit_major_min \& \ | |
45443 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
45444 | $cppunit_major_version \= $cppunit_major_min \& \ | |
45445 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
45446 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
45447 | ||
45448 | if test "$cppunit_version_proper" = "1" ; then | |
45449 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
45450 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
45451 | else | |
45452 | echo "$as_me:$LINENO: result: no" >&5 | |
45453 | echo "${ECHO_T}no" >&6 | |
45454 | no_cppunit=yes | |
45455 | fi | |
45456 | fi | |
45457 | ||
45458 | if test "x$no_cppunit" = x ; then | |
c2218763 | 45459 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
45460 | else |
45461 | CPPUNIT_CFLAGS="" | |
45462 | CPPUNIT_LIBS="" | |
c2218763 | 45463 | : |
a848cd7e SC |
45464 | fi |
45465 | ||
45466 | ||
45467 | ||
45468 | ||
45469 | ||
45470 | for subdir in `echo $SUBDIRS`; do | |
45471 | if test -d ${srcdir}/${subdir} ; then | |
45472 | if test "$wxUSE_GUI" = "yes"; then | |
45473 | if test ${subdir} = "samples"; then | |
45474 | makefiles="samples/Makefile.in $makefiles" | |
45475 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
45476 | if test -d $srcdir/samples/$sample; then | |
45477 | makefiles="samples/$sample/Makefile.in $makefiles" | |
45478 | fi | |
45479 | done | |
9c112555 MW |
45480 | else |
45481 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
45482 | eval "disabled=\$$disabled_var" | |
45483 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
45484 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
45485 | fi |
45486 | else if test ${subdir} = "samples"; then | |
45487 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
45488 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
45489 | makefiles="" |
45490 | for util in HelpGen tex2rtf ; do | |
45491 | if test -d $srcdir/utils/$util ; then | |
45492 | makefiles="utils/$util/Makefile.in \ | |
45493 | utils/$util/src/Makefile.in \ | |
45494 | $makefiles" | |
45495 | fi | |
45496 | done | |
a848cd7e SC |
45497 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
45498 | fi | |
45499 | fi | |
45500 | ||
45501 | for mkin in $makefiles ; do | |
45502 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
45503 | ac_config_files="$ac_config_files $mk" | |
45504 | ||
45505 | done | |
45506 | fi | |
45507 | done | |
45508 | ||
45509 | ||
45510 | cat >confcache <<\_ACEOF | |
45511 | # This file is a shell script that caches the results of configure | |
45512 | # tests run on this system so they can be shared between configure | |
45513 | # scripts and configure runs, see configure's option --config-cache. | |
45514 | # It is not useful on other systems. If it contains results you don't | |
45515 | # want to keep, you may remove or edit it. | |
45516 | # | |
45517 | # config.status only pays attention to the cache file if you give it | |
45518 | # the --recheck option to rerun configure. | |
45519 | # | |
45520 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
45521 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
45522 | # following values. | |
45523 | ||
45524 | _ACEOF | |
45525 | ||
45526 | # The following way of writing the cache mishandles newlines in values, | |
45527 | # but we know of no workaround that is simple, portable, and efficient. | |
45528 | # So, don't put newlines in cache variables' values. | |
45529 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
45530 | # and sets the high bit in the cache file unless we assign to the vars. | |
45531 | { | |
45532 | (set) 2>&1 | | |
45533 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
45534 | *ac_space=\ *) | |
45535 | # `set' does not quote correctly, so add quotes (double-quote | |
45536 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
45537 | sed -n \ | |
ac1cb8d3 VS |
45538 | "s/'/'\\\\''/g; |
45539 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
45540 | ;; |
45541 | *) | |
45542 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
45543 | sed -n \ | |
ac1cb8d3 | 45544 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
45545 | ;; |
45546 | esac; | |
45547 | } | | |
45548 | sed ' | |
45549 | t clear | |
45550 | : clear | |
45551 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
45552 | t end | |
45553 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
45554 | : end' >>confcache | |
45555 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
45556 | if test -w $cache_file; then | |
45557 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
45558 | cat confcache >$cache_file | |
45559 | else | |
45560 | echo "not updating unwritable cache $cache_file" | |
45561 | fi | |
45562 | fi | |
45563 | rm -f confcache | |
45564 | ||
45565 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
45566 | # Let make expand exec_prefix. | |
45567 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
45568 | ||
45569 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
45570 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
45571 | # trailing colons and then remove the whole line if VPATH becomes empty | |
45572 | # (actually we leave an empty line to preserve line numbers). | |
45573 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 45574 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
45575 | s/:*\$(srcdir):*/:/; |
45576 | s/:*\${srcdir}:*/:/; | |
45577 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 45578 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 45579 | s/:*$//; |
ac1cb8d3 | 45580 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
45581 | }' |
45582 | fi | |
45583 | ||
45584 | DEFS=-DHAVE_CONFIG_H | |
45585 | ||
45586 | ac_libobjs= | |
45587 | ac_ltlibobjs= | |
45588 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
45589 | # 1. Remove the extension, and $U if already installed. | |
45590 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 45591 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
45592 | # 2. Add them. |
45593 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
45594 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
45595 | done | |
45596 | LIBOBJS=$ac_libobjs | |
45597 | ||
45598 | LTLIBOBJS=$ac_ltlibobjs | |
45599 | ||
45600 | ||
45601 | ||
45602 | : ${CONFIG_STATUS=./config.status} | |
45603 | ac_clean_files_save=$ac_clean_files | |
45604 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
45605 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
45606 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
45607 | cat >$CONFIG_STATUS <<_ACEOF | |
45608 | #! $SHELL | |
45609 | # Generated by $as_me. | |
45610 | # Run this file to recreate the current configuration. | |
45611 | # Compiler output produced by configure, useful for debugging | |
45612 | # configure, is in config.log if it exists. | |
45613 | ||
45614 | debug=false | |
45615 | ac_cs_recheck=false | |
45616 | ac_cs_silent=false | |
45617 | SHELL=\${CONFIG_SHELL-$SHELL} | |
45618 | _ACEOF | |
45619 | ||
45620 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45621 | ## --------------------- ## | |
45622 | ## M4sh Initialization. ## | |
45623 | ## --------------------- ## | |
45624 | ||
45625 | # Be Bourne compatible | |
45626 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
45627 | emulate sh | |
45628 | NULLCMD=: | |
45629 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
45630 | # is contrary to our usage. Disable this feature. | |
45631 | alias -g '${1+"$@"}'='"$@"' | |
45632 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
45633 | set -o posix | |
45634 | fi | |
ac1cb8d3 | 45635 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
45636 | |
45637 | # Support unset when possible. | |
ac1cb8d3 | 45638 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
45639 | as_unset=unset |
45640 | else | |
45641 | as_unset=false | |
45642 | fi | |
45643 | ||
45644 | ||
45645 | # Work around bugs in pre-3.0 UWIN ksh. | |
45646 | $as_unset ENV MAIL MAILPATH | |
45647 | PS1='$ ' | |
45648 | PS2='> ' | |
45649 | PS4='+ ' | |
45650 | ||
45651 | # NLS nuisances. | |
45652 | for as_var in \ | |
45653 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
45654 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45655 | LC_TELEPHONE LC_TIME | |
45656 | do | |
ac1cb8d3 | 45657 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
45658 | eval $as_var=C; export $as_var |
45659 | else | |
45660 | $as_unset $as_var | |
45661 | fi | |
45662 | done | |
45663 | ||
45664 | # Required to use basename. | |
45665 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
45666 | as_expr=expr | |
45667 | else | |
45668 | as_expr=false | |
45669 | fi | |
45670 | ||
45671 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
45672 | as_basename=basename | |
45673 | else | |
45674 | as_basename=false | |
45675 | fi | |
45676 | ||
45677 | ||
45678 | # Name of the executable. | |
45679 | as_me=`$as_basename "$0" || | |
45680 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
45681 | X"$0" : 'X\(//\)$' \| \ | |
45682 | X"$0" : 'X\(/\)$' \| \ | |
45683 | . : '\(.\)' 2>/dev/null || | |
45684 | echo X/"$0" | | |
45685 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
45686 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
45687 | /^X\/\(\/\).*/{ s//\1/; q; } | |
45688 | s/.*/./; q'` | |
45689 | ||
45690 | ||
45691 | # PATH needs CR, and LINENO needs CR and PATH. | |
45692 | # Avoid depending upon Character Ranges. | |
45693 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
45694 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
45695 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
45696 | as_cr_digits='0123456789' | |
45697 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
45698 | ||
45699 | # The user is always right. | |
45700 | if test "${PATH_SEPARATOR+set}" != set; then | |
45701 | echo "#! /bin/sh" >conf$$.sh | |
45702 | echo "exit 0" >>conf$$.sh | |
45703 | chmod +x conf$$.sh | |
45704 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
45705 | PATH_SEPARATOR=';' | |
45706 | else | |
45707 | PATH_SEPARATOR=: | |
45708 | fi | |
45709 | rm -f conf$$.sh | |
45710 | fi | |
45711 | ||
45712 | ||
45713 | as_lineno_1=$LINENO | |
45714 | as_lineno_2=$LINENO | |
45715 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
45716 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
45717 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
45718 | # Find who we are. Look in the path if we contain no path at all | |
45719 | # relative or not. | |
45720 | case $0 in | |
45721 | *[\\/]* ) as_myself=$0 ;; | |
45722 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45723 | for as_dir in $PATH | |
45724 | do | |
45725 | IFS=$as_save_IFS | |
45726 | test -z "$as_dir" && as_dir=. | |
45727 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
45728 | done | |
45729 | ||
45730 | ;; | |
45731 | esac | |
45732 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
45733 | # in which case we are not to be found in the path. | |
45734 | if test "x$as_myself" = x; then | |
45735 | as_myself=$0 | |
45736 | fi | |
45737 | if test ! -f "$as_myself"; then | |
45738 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
45739 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
45740 | { (exit 1); exit 1; }; } | |
45741 | fi | |
45742 | case $CONFIG_SHELL in | |
45743 | '') | |
45744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45745 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
45746 | do | |
45747 | IFS=$as_save_IFS | |
45748 | test -z "$as_dir" && as_dir=. | |
45749 | for as_base in sh bash ksh sh5; do | |
45750 | case $as_dir in | |
45751 | /*) | |
45752 | if ("$as_dir/$as_base" -c ' | |
45753 | as_lineno_1=$LINENO | |
45754 | as_lineno_2=$LINENO | |
45755 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
45756 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
45757 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
45758 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
45759 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
45760 | CONFIG_SHELL=$as_dir/$as_base | |
45761 | export CONFIG_SHELL | |
45762 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
45763 | fi;; | |
45764 | esac | |
45765 | done | |
45766 | done | |
45767 | ;; | |
45768 | esac | |
45769 | ||
45770 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
45771 | # uniformly replaced by the line number. The first 'sed' inserts a | |
45772 | # line-number line before each line; the second 'sed' does the real | |
45773 | # work. The second script uses 'N' to pair each line-number line | |
45774 | # with the numbered line, and appends trailing '-' during | |
45775 | # substitution so that $LINENO is not a special case at line end. | |
45776 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
45777 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
45778 | sed '=' <$as_myself | | |
45779 | sed ' | |
45780 | N | |
45781 | s,$,-, | |
45782 | : loop | |
45783 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
45784 | t loop | |
45785 | s,-$,, | |
45786 | s,^['$as_cr_digits']*\n,, | |
45787 | ' >$as_me.lineno && | |
45788 | chmod +x $as_me.lineno || | |
45789 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
45790 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
45791 | { (exit 1); exit 1; }; } | |
45792 | ||
45793 | # Don't try to exec as it changes $[0], causing all sort of problems | |
45794 | # (the dirname of $[0] is not the place where we might find the | |
45795 | # original and so on. Autoconf is especially sensible to this). | |
45796 | . ./$as_me.lineno | |
45797 | # Exit status is that of the last command. | |
45798 | exit | |
45799 | } | |
45800 | ||
45801 | ||
45802 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
45803 | *c*,-n*) ECHO_N= ECHO_C=' | |
45804 | ' ECHO_T=' ' ;; | |
45805 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
45806 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
45807 | esac | |
45808 | ||
45809 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
45810 | as_expr=expr | |
45811 | else | |
45812 | as_expr=false | |
45813 | fi | |
45814 | ||
45815 | rm -f conf$$ conf$$.exe conf$$.file | |
45816 | echo >conf$$.file | |
45817 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
45818 | # We could just check for DJGPP; but this test a) works b) is more generic | |
45819 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
45820 | if test -f conf$$.exe; then | |
45821 | # Don't use ln at all; we don't have any links | |
45822 | as_ln_s='cp -p' | |
45823 | else | |
45824 | as_ln_s='ln -s' | |
45825 | fi | |
45826 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
45827 | as_ln_s=ln | |
45828 | else | |
45829 | as_ln_s='cp -p' | |
45830 | fi | |
45831 | rm -f conf$$ conf$$.exe conf$$.file | |
45832 | ||
45833 | if mkdir -p . 2>/dev/null; then | |
45834 | as_mkdir_p=: | |
45835 | else | |
ac1cb8d3 | 45836 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
45837 | as_mkdir_p=false |
45838 | fi | |
45839 | ||
45840 | as_executable_p="test -f" | |
45841 | ||
45842 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 45843 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
45844 | |
45845 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 45846 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
45847 | |
45848 | ||
45849 | # IFS | |
45850 | # We need space, tab and new line, in precisely that order. | |
45851 | as_nl=' | |
45852 | ' | |
45853 | IFS=" $as_nl" | |
45854 | ||
45855 | # CDPATH. | |
45856 | $as_unset CDPATH | |
45857 | ||
45858 | exec 6>&1 | |
45859 | ||
45860 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
45861 | # report actual input values of CONFIG_FILES etc. instead of their | |
45862 | # values after options handling. Logging --version etc. is OK. | |
45863 | exec 5>>config.log | |
45864 | { | |
45865 | echo | |
45866 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
45867 | ## Running $as_me. ## | |
45868 | _ASBOX | |
45869 | } >&5 | |
45870 | cat >&5 <<_CSEOF | |
45871 | ||
eb730a0c | 45872 | This file was extended by wxWidgets $as_me 2.6.2, which was |
ac1cb8d3 | 45873 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
45874 | |
45875 | CONFIG_FILES = $CONFIG_FILES | |
45876 | CONFIG_HEADERS = $CONFIG_HEADERS | |
45877 | CONFIG_LINKS = $CONFIG_LINKS | |
45878 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
45879 | $ $0 $@ | |
45880 | ||
45881 | _CSEOF | |
45882 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
45883 | echo >&5 | |
45884 | _ACEOF | |
45885 | ||
45886 | # Files that config.status was made for. | |
45887 | if test -n "$ac_config_files"; then | |
45888 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
45889 | fi | |
45890 | ||
45891 | if test -n "$ac_config_headers"; then | |
45892 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
45893 | fi | |
45894 | ||
45895 | if test -n "$ac_config_links"; then | |
45896 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
45897 | fi | |
45898 | ||
45899 | if test -n "$ac_config_commands"; then | |
45900 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
45901 | fi | |
45902 | ||
45903 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45904 | ||
45905 | ac_cs_usage="\ | |
45906 | \`$as_me' instantiates files from templates according to the | |
45907 | current configuration. | |
45908 | ||
45909 | Usage: $0 [OPTIONS] [FILE]... | |
45910 | ||
45911 | -h, --help print this help, then exit | |
45912 | -V, --version print version number, then exit | |
45913 | -q, --quiet do not print progress messages | |
45914 | -d, --debug don't remove temporary files | |
45915 | --recheck update $as_me by reconfiguring in the same conditions | |
45916 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 45917 | instantiate the configuration file FILE |
a848cd7e | 45918 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 45919 | instantiate the configuration header FILE |
a848cd7e SC |
45920 | |
45921 | Configuration files: | |
45922 | $config_files | |
45923 | ||
45924 | Configuration headers: | |
45925 | $config_headers | |
45926 | ||
45927 | Configuration commands: | |
45928 | $config_commands | |
45929 | ||
45930 | Report bugs to <bug-autoconf@gnu.org>." | |
45931 | _ACEOF | |
45932 | ||
45933 | cat >>$CONFIG_STATUS <<_ACEOF | |
45934 | ac_cs_version="\\ | |
eb730a0c | 45935 | wxWidgets config.status 2.6.2 |
ac1cb8d3 | 45936 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
45937 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
45938 | ||
ac1cb8d3 | 45939 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
45940 | This config.status script is free software; the Free Software Foundation |
45941 | gives unlimited permission to copy, distribute and modify it." | |
45942 | srcdir=$srcdir | |
45943 | INSTALL="$INSTALL" | |
45944 | _ACEOF | |
45945 | ||
45946 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45947 | # If no file are specified by the user, then we need to provide default | |
45948 | # value. By we need to know if files were specified by the user. | |
45949 | ac_need_defaults=: | |
45950 | while test $# != 0 | |
45951 | do | |
45952 | case $1 in | |
45953 | --*=*) | |
45954 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
45955 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
45956 | ac_shift=: | |
45957 | ;; | |
45958 | -*) | |
45959 | ac_option=$1 | |
45960 | ac_optarg=$2 | |
45961 | ac_shift=shift | |
45962 | ;; | |
45963 | *) # This is not an option, so the user has probably given explicit | |
45964 | # arguments. | |
45965 | ac_option=$1 | |
45966 | ac_need_defaults=false;; | |
45967 | esac | |
45968 | ||
45969 | case $ac_option in | |
45970 | # Handling of the options. | |
45971 | _ACEOF | |
45972 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45973 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
45974 | ac_cs_recheck=: ;; | |
45975 | --version | --vers* | -V ) | |
45976 | echo "$ac_cs_version"; exit 0 ;; | |
45977 | --he | --h) | |
45978 | # Conflict between --help and --header | |
45979 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
45980 | Try \`$0 --help' for more information." >&5 | |
45981 | echo "$as_me: error: ambiguous option: $1 | |
45982 | Try \`$0 --help' for more information." >&2;} | |
45983 | { (exit 1); exit 1; }; };; | |
45984 | --help | --hel | -h ) | |
45985 | echo "$ac_cs_usage"; exit 0 ;; | |
45986 | --debug | --d* | -d ) | |
45987 | debug=: ;; | |
45988 | --file | --fil | --fi | --f ) | |
45989 | $ac_shift | |
45990 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
45991 | ac_need_defaults=false;; | |
45992 | --header | --heade | --head | --hea ) | |
45993 | $ac_shift | |
45994 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
45995 | ac_need_defaults=false;; | |
45996 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
45997 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
45998 | ac_cs_silent=: ;; | |
45999 | ||
46000 | # This is an error. | |
46001 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
46002 | Try \`$0 --help' for more information." >&5 | |
46003 | echo "$as_me: error: unrecognized option: $1 | |
46004 | Try \`$0 --help' for more information." >&2;} | |
46005 | { (exit 1); exit 1; }; } ;; | |
46006 | ||
46007 | *) ac_config_targets="$ac_config_targets $1" ;; | |
46008 | ||
46009 | esac | |
46010 | shift | |
46011 | done | |
46012 | ||
46013 | ac_configure_extra_args= | |
46014 | ||
46015 | if $ac_cs_silent; then | |
46016 | exec 6>/dev/null | |
46017 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
46018 | fi | |
46019 | ||
46020 | _ACEOF | |
46021 | cat >>$CONFIG_STATUS <<_ACEOF | |
46022 | if \$ac_cs_recheck; then | |
46023 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
46024 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
46025 | fi | |
46026 | ||
46027 | _ACEOF | |
46028 | ||
46029 | cat >>$CONFIG_STATUS <<_ACEOF | |
46030 | # | |
46031 | # INIT-COMMANDS section. | |
46032 | # | |
46033 | ||
ceec2216 RL |
46034 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
46035 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
46036 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
46037 | LN_S="${LN_S}" | |
a848cd7e SC |
46038 | |
46039 | ||
46040 | _ACEOF | |
46041 | ||
46042 | ||
46043 | ||
46044 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46045 | for ac_config_target in $ac_config_targets | |
46046 | do | |
46047 | case "$ac_config_target" in | |
46048 | # Handling of arguments. | |
ceec2216 RL |
46049 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
46050 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
46051 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
46052 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
46053 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
46054 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
46055 | "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 |
46056 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
46057 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
46058 | { (exit 1); exit 1; }; };; | |
46059 | esac | |
46060 | done | |
46061 | ||
46062 | # If the user did not use the arguments to specify the items to instantiate, | |
46063 | # then the envvar interface is used. Set only those that are not. | |
46064 | # We use the long form for the default assignment because of an extremely | |
46065 | # bizarre bug on SunOS 4.1.3. | |
46066 | if $ac_need_defaults; then | |
46067 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
46068 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
46069 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
46070 | fi | |
46071 | ||
46072 | # Have a temporary directory for convenience. Make it in the build tree | |
46073 | # simply because there is no reason to put it here, and in addition, | |
46074 | # creating and moving files from /tmp can sometimes cause problems. | |
46075 | # Create a temporary directory, and hook for its removal unless debugging. | |
46076 | $debug || | |
46077 | { | |
46078 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
46079 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
46080 | } | |
46081 | ||
46082 | # Create a (secure) tmp directory for tmp files. | |
46083 | ||
46084 | { | |
46085 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
46086 | test -n "$tmp" && test -d "$tmp" | |
46087 | } || | |
46088 | { | |
46089 | tmp=./confstat$$-$RANDOM | |
46090 | (umask 077 && mkdir $tmp) | |
46091 | } || | |
46092 | { | |
46093 | echo "$me: cannot create a temporary directory in ." >&2 | |
46094 | { (exit 1); exit 1; } | |
46095 | } | |
46096 | ||
46097 | _ACEOF | |
46098 | ||
46099 | cat >>$CONFIG_STATUS <<_ACEOF | |
46100 | ||
46101 | # | |
46102 | # CONFIG_FILES section. | |
46103 | # | |
46104 | ||
46105 | # No need to generate the scripts if there are no CONFIG_FILES. | |
46106 | # This happens for instance when ./config.status config.h | |
46107 | if test -n "\$CONFIG_FILES"; then | |
46108 | # Protect against being on the right side of a sed subst in config.status. | |
46109 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
46110 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
46111 | s,@SHELL@,$SHELL,;t t | |
46112 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
46113 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
46114 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
46115 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
46116 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
46117 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
46118 | s,@exec_prefix@,$exec_prefix,;t t | |
46119 | s,@prefix@,$prefix,;t t | |
46120 | s,@program_transform_name@,$program_transform_name,;t t | |
46121 | s,@bindir@,$bindir,;t t | |
46122 | s,@sbindir@,$sbindir,;t t | |
46123 | s,@libexecdir@,$libexecdir,;t t | |
46124 | s,@datadir@,$datadir,;t t | |
46125 | s,@sysconfdir@,$sysconfdir,;t t | |
46126 | s,@sharedstatedir@,$sharedstatedir,;t t | |
46127 | s,@localstatedir@,$localstatedir,;t t | |
46128 | s,@libdir@,$libdir,;t t | |
46129 | s,@includedir@,$includedir,;t t | |
46130 | s,@oldincludedir@,$oldincludedir,;t t | |
46131 | s,@infodir@,$infodir,;t t | |
46132 | s,@mandir@,$mandir,;t t | |
46133 | s,@build_alias@,$build_alias,;t t | |
46134 | s,@host_alias@,$host_alias,;t t | |
46135 | s,@target_alias@,$target_alias,;t t | |
46136 | s,@DEFS@,$DEFS,;t t | |
46137 | s,@ECHO_C@,$ECHO_C,;t t | |
46138 | s,@ECHO_N@,$ECHO_N,;t t | |
46139 | s,@ECHO_T@,$ECHO_T,;t t | |
46140 | s,@LIBS@,$LIBS,;t t | |
46141 | s,@build@,$build,;t t | |
46142 | s,@build_cpu@,$build_cpu,;t t | |
46143 | s,@build_vendor@,$build_vendor,;t t | |
46144 | s,@build_os@,$build_os,;t t | |
46145 | s,@host@,$host,;t t | |
46146 | s,@host_cpu@,$host_cpu,;t t | |
46147 | s,@host_vendor@,$host_vendor,;t t | |
46148 | s,@host_os@,$host_os,;t t | |
46149 | s,@target@,$target,;t t | |
46150 | s,@target_cpu@,$target_cpu,;t t | |
46151 | s,@target_vendor@,$target_vendor,;t t | |
46152 | s,@target_os@,$target_os,;t t | |
46153 | s,@CC@,$CC,;t t | |
46154 | s,@CFLAGS@,$CFLAGS,;t t | |
46155 | s,@LDFLAGS@,$LDFLAGS,;t t | |
46156 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
46157 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
46158 | s,@EXEEXT@,$EXEEXT,;t t | |
46159 | s,@OBJEXT@,$OBJEXT,;t t | |
46160 | s,@CPP@,$CPP,;t t | |
46161 | s,@EGREP@,$EGREP,;t t | |
46162 | s,@CXX@,$CXX,;t t | |
46163 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
46164 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
46165 | s,@RANLIB@,$RANLIB,;t t | |
46166 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
46167 | s,@AR@,$AR,;t t | |
8c80d384 | 46168 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
46169 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
46170 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
46171 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
46172 | s,@STRIP@,$STRIP,;t t | |
8c80d384 DE |
46173 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
46174 | s,@RESCOMP@,$RESCOMP,;t t | |
46175 | s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t | |
46176 | s,@DLLTOOL@,$DLLTOOL,;t t | |
46177 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
46178 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
46179 | s,@LN_S@,$LN_S,;t t | |
46180 | s,@CXXCPP@,$CXXCPP,;t t | |
46181 | s,@subdirs@,$subdirs,;t t | |
46182 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
46183 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
46184 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
46185 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
46186 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
46187 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
46188 | s,@X_LIBS@,$X_LIBS,;t t | |
46189 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
46190 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
46191 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
46192 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
46193 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
46194 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
46195 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
a848cd7e SC |
46196 | s,@DEREZ@,$DEREZ,;t t |
46197 | s,@SETFILE@,$SETFILE,;t t | |
46198 | s,@LIBICONV@,$LIBICONV,;t t | |
46199 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
46200 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
46201 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
46202 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
46203 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
46204 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
46205 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
46206 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
46207 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
46208 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
46209 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
46210 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
46211 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
46212 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
46213 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
46214 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
46215 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
46216 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
46217 | s,@VENDOR@,$VENDOR,;t t | |
46218 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
46219 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
46220 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
46221 | s,@WXUNIV@,$WXUNIV,;t t |
46222 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
46223 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
46224 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
46225 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
46226 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
46227 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
46228 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
46229 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
46230 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
46231 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 46232 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
46233 | s,@UNICODE@,$UNICODE,;t t |
46234 | s,@BUILD@,$BUILD,;t t | |
46235 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
46236 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
46237 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
46238 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
46239 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
46240 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
46241 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
46242 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
46243 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
46244 | s,@SET_MAKE@,$SET_MAKE,;t t | |
46245 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
46246 | s,@NM@,$NM,;t t |
46247 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
46248 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
46249 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
46250 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
46251 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
46252 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
46253 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 46254 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
46255 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
46256 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 46257 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
46258 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
46259 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
46260 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
46261 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
46262 | s,@LIBEXT@,$LIBEXT,;t t | |
46263 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
46264 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 46265 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
46266 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
46267 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
46268 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
46269 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
46270 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
46271 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 46272 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
46273 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
46274 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
46275 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 46276 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
46277 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
46278 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
46279 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
46280 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
46281 | s,@GCC_PCH@,$GCC_PCH,;t t | |
46282 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
46283 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
46284 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
46285 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
46286 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
46287 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
46288 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
46289 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
46290 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
46291 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
46292 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
46293 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
46294 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
46295 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
46296 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
46297 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
46298 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
46299 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 46300 | 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 | 46301 | 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 | 46302 | 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 | 46303 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 46304 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
46305 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
46306 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 46307 | 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 | 46308 | 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 | 46309 | 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 | 46310 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 46311 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
46312 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
46313 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
46314 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
46315 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
46316 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
46317 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 46318 | 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 |
46319 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
46320 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 46321 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
46322 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
46323 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
46324 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 46325 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 46326 | 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 |
46327 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
46328 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
46329 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
46330 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 46331 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 46332 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 46333 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
46334 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
46335 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
46336 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
46337 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
46338 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
46339 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
46340 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
46341 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
46342 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
46343 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
46344 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
46345 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
46346 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
46347 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
46348 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 46349 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
46350 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
46351 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
46352 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
46353 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
46354 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
46355 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 46356 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 46357 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 46358 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 46359 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
46360 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
46361 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
46362 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
46363 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
46364 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
46365 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
46366 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
46367 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
46368 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
46369 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
46370 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
46371 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
46372 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
46373 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
46374 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
46375 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
46376 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
46377 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
46378 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
46379 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
46380 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
46381 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
46382 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
46383 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
46384 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
46385 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
46386 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
46387 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
46388 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
46389 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
46390 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
46391 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
46392 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
46393 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
46394 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
a848cd7e | 46395 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
46396 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
46397 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 46398 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 46399 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
46400 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
46401 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
46402 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
46403 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
46404 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 46405 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 46406 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 46407 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 46408 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
46409 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
46410 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
46411 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
46412 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
46413 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
46414 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
46415 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
46416 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 46417 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
46418 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
46419 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
46420 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
46421 | s,@USE_GUI@,$USE_GUI,;t t | |
46422 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
46423 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
46424 | s,@TOOLKIT@,$TOOLKIT,;t t | |
46425 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 46426 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 46427 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
46428 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
46429 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 46430 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
46431 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
46432 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
46433 | s,@WX_VERSION@,$WX_VERSION,;t t | |
46434 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
46435 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
46436 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 46437 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
46438 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
46439 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
46440 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
46441 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
ddd14b14 | 46442 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
46443 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
46444 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 46445 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 46446 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
46447 | s,@DISTDIR@,$DISTDIR,;t t |
46448 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
46449 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
46450 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
46451 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
46452 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
46453 | s,@RESFLAGS@,$RESFLAGS,;t t | |
46454 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
46455 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
46456 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
46457 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
46458 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
46459 | s,@MACSETFILE@,$MACSETFILE,;t t | |
46460 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
46461 | s,@GCC@,$GCC,;t t | |
a848cd7e SC |
46462 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
46463 | s,@LIBOBJS@,$LIBOBJS,;t t | |
46464 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
46465 | CEOF | |
46466 | ||
46467 | _ACEOF | |
46468 | ||
46469 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46470 | # Split the substitutions into bite-sized pieces for seds with | |
46471 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
46472 | ac_max_sed_lines=48 | |
46473 | ac_sed_frag=1 # Number of current file. | |
46474 | ac_beg=1 # First line for current file. | |
46475 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
46476 | ac_more_lines=: | |
46477 | ac_sed_cmds= | |
46478 | while $ac_more_lines; do | |
46479 | if test $ac_beg -gt 1; then | |
46480 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
46481 | else | |
46482 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
46483 | fi | |
46484 | if test ! -s $tmp/subs.frag; then | |
46485 | ac_more_lines=false | |
46486 | else | |
46487 | # The purpose of the label and of the branching condition is to | |
46488 | # speed up the sed processing (if there are no `@' at all, there | |
46489 | # is no need to browse any of the substitutions). | |
46490 | # These are the two extra sed commands mentioned above. | |
46491 | (echo ':t | |
46492 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
46493 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 46494 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 46495 | else |
ac1cb8d3 | 46496 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
46497 | fi |
46498 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
46499 | ac_beg=$ac_end | |
46500 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
46501 | fi | |
46502 | done | |
46503 | if test -z "$ac_sed_cmds"; then | |
46504 | ac_sed_cmds=cat | |
46505 | fi | |
46506 | fi # test -n "$CONFIG_FILES" | |
46507 | ||
46508 | _ACEOF | |
46509 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46510 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
46511 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
46512 | case $ac_file in | |
46513 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
46514 | cat >$tmp/stdin |
46515 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
46516 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 46517 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 46518 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
46519 | * ) ac_file_in=$ac_file.in ;; |
46520 | esac | |
46521 | ||
46522 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
46523 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
46524 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46525 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
46526 | X"$ac_file" : 'X\(//\)$' \| \ | |
46527 | X"$ac_file" : 'X\(/\)' \| \ | |
46528 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46529 | echo X"$ac_file" | |
46530 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46531 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46532 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46533 | /^X\(\/\).*/{ s//\1/; q; } | |
46534 | s/.*/./; q'` | |
46535 | { if $as_mkdir_p; then | |
46536 | mkdir -p "$ac_dir" | |
46537 | else | |
46538 | as_dir="$ac_dir" | |
46539 | as_dirs= | |
46540 | while test ! -d "$as_dir"; do | |
46541 | as_dirs="$as_dir $as_dirs" | |
46542 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
46543 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46544 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
46545 | X"$as_dir" : 'X\(//\)$' \| \ | |
46546 | X"$as_dir" : 'X\(/\)' \| \ | |
46547 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46548 | echo X"$as_dir" | |
46549 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46550 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46551 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46552 | /^X\(\/\).*/{ s//\1/; q; } | |
46553 | s/.*/./; q'` | |
46554 | done | |
46555 | test ! -n "$as_dirs" || mkdir $as_dirs | |
46556 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
46557 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
46558 | { (exit 1); exit 1; }; }; } | |
46559 | ||
46560 | ac_builddir=. | |
46561 | ||
46562 | if test "$ac_dir" != .; then | |
46563 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
46564 | # A "../" for each directory in $ac_dir_suffix. | |
46565 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
46566 | else | |
46567 | ac_dir_suffix= ac_top_builddir= | |
46568 | fi | |
46569 | ||
46570 | case $srcdir in | |
46571 | .) # No --srcdir option. We are building in place. | |
46572 | ac_srcdir=. | |
46573 | if test -z "$ac_top_builddir"; then | |
46574 | ac_top_srcdir=. | |
46575 | else | |
46576 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
46577 | fi ;; | |
46578 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
46579 | ac_srcdir=$srcdir$ac_dir_suffix; | |
46580 | ac_top_srcdir=$srcdir ;; | |
46581 | *) # Relative path. | |
46582 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
46583 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
46584 | esac | |
ac1cb8d3 VS |
46585 | |
46586 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
46587 | # the directories may not exist. | |
46588 | case `pwd` in | |
46589 | .) ac_abs_builddir="$ac_dir";; | |
46590 | *) | |
46591 | case "$ac_dir" in | |
46592 | .) ac_abs_builddir=`pwd`;; | |
46593 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
46594 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
46595 | esac;; | |
46596 | esac | |
46597 | case $ac_abs_builddir in | |
46598 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
46599 | *) | |
46600 | case ${ac_top_builddir}. in | |
46601 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
46602 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
46603 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
46604 | esac;; | |
46605 | esac | |
46606 | case $ac_abs_builddir in | |
46607 | .) ac_abs_srcdir=$ac_srcdir;; | |
46608 | *) | |
46609 | case $ac_srcdir in | |
46610 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
46611 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
46612 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
46613 | esac;; | |
46614 | esac | |
46615 | case $ac_abs_builddir in | |
46616 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
46617 | *) | |
46618 | case $ac_top_srcdir in | |
46619 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
46620 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
46621 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
46622 | esac;; | |
46623 | esac | |
a848cd7e SC |
46624 | |
46625 | ||
46626 | case $INSTALL in | |
46627 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
46628 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
46629 | esac | |
46630 | ||
a848cd7e SC |
46631 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
46632 | # use $as_me), people would be surprised to read: | |
46633 | # /* config.h. Generated by config.status. */ | |
46634 | if test x"$ac_file" = x-; then | |
46635 | configure_input= | |
46636 | else | |
46637 | configure_input="$ac_file. " | |
46638 | fi | |
46639 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 46640 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
46641 | |
46642 | # First look for the input files in the build tree, otherwise in the | |
46643 | # src tree. | |
46644 | ac_file_inputs=`IFS=: | |
46645 | for f in $ac_file_in; do | |
46646 | case $f in | |
46647 | -) echo $tmp/stdin ;; | |
46648 | [\\/$]*) | |
ac1cb8d3 VS |
46649 | # Absolute (can't be DOS-style, as IFS=:) |
46650 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
46651 | echo "$as_me: error: cannot find input file: $f" >&2;} |
46652 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 46653 | echo "$f";; |
a848cd7e | 46654 | *) # Relative |
ac1cb8d3 VS |
46655 | if test -f "$f"; then |
46656 | # Build tree | |
46657 | echo "$f" | |
46658 | elif test -f "$srcdir/$f"; then | |
46659 | # Source tree | |
46660 | echo "$srcdir/$f" | |
46661 | else | |
46662 | # /dev/null tree | |
46663 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
46664 | echo "$as_me: error: cannot find input file: $f" >&2;} |
46665 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 46666 | fi;; |
a848cd7e SC |
46667 | esac |
46668 | done` || { (exit 1); exit 1; } | |
6ebeb4c7 VZ |
46669 | |
46670 | if test x"$ac_file" != x-; then | |
46671 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
46672 | echo "$as_me: creating $ac_file" >&6;} | |
46673 | rm -f "$ac_file" | |
46674 | fi | |
a848cd7e SC |
46675 | _ACEOF |
46676 | cat >>$CONFIG_STATUS <<_ACEOF | |
46677 | sed "$ac_vpsub | |
46678 | $extrasub | |
46679 | _ACEOF | |
46680 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46681 | :t | |
46682 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
46683 | s,@configure_input@,$configure_input,;t t | |
46684 | s,@srcdir@,$ac_srcdir,;t t | |
46685 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
46686 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
46687 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
46688 | s,@builddir@,$ac_builddir,;t t | |
46689 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
46690 | s,@top_builddir@,$ac_top_builddir,;t t | |
46691 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
46692 | s,@INSTALL@,$ac_INSTALL,;t t | |
46693 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
46694 | rm -f $tmp/stdin | |
46695 | if test x"$ac_file" != x-; then | |
46696 | mv $tmp/out $ac_file | |
46697 | else | |
46698 | cat $tmp/out | |
46699 | rm -f $tmp/out | |
46700 | fi | |
46701 | ||
ceec2216 RL |
46702 | # Run the commands associated with the file. |
46703 | case $ac_file in | |
46704 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
46705 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
46706 | esac | |
a848cd7e SC |
46707 | done |
46708 | _ACEOF | |
46709 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46710 | ||
46711 | # | |
46712 | # CONFIG_HEADER section. | |
46713 | # | |
46714 | ||
46715 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
46716 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
46717 | # | |
46718 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
46719 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
46720 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
46721 | ac_dC=' ' |
46722 | ac_dD=',;t' | |
46723 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 46724 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
46725 | ac_uB='$,\1#\2define\3' |
46726 | ac_uC=' ' | |
46727 | ac_uD=',;t' | |
46728 | ||
46729 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
46730 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
46731 | case $ac_file in | |
46732 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
46733 | cat >$tmp/stdin |
46734 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
46735 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 46736 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 46737 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
46738 | * ) ac_file_in=$ac_file.in ;; |
46739 | esac | |
46740 | ||
46741 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
46742 | echo "$as_me: creating $ac_file" >&6;} | |
46743 | ||
46744 | # First look for the input files in the build tree, otherwise in the | |
46745 | # src tree. | |
46746 | ac_file_inputs=`IFS=: | |
46747 | for f in $ac_file_in; do | |
46748 | case $f in | |
46749 | -) echo $tmp/stdin ;; | |
46750 | [\\/$]*) | |
ac1cb8d3 VS |
46751 | # Absolute (can't be DOS-style, as IFS=:) |
46752 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
46753 | echo "$as_me: error: cannot find input file: $f" >&2;} |
46754 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
46755 | # Do quote $f, to prevent DOS paths from being IFS'd. |
46756 | echo "$f";; | |
a848cd7e | 46757 | *) # Relative |
ac1cb8d3 VS |
46758 | if test -f "$f"; then |
46759 | # Build tree | |
46760 | echo "$f" | |
46761 | elif test -f "$srcdir/$f"; then | |
46762 | # Source tree | |
46763 | echo "$srcdir/$f" | |
46764 | else | |
46765 | # /dev/null tree | |
46766 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
46767 | echo "$as_me: error: cannot find input file: $f" >&2;} |
46768 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 46769 | fi;; |
a848cd7e SC |
46770 | esac |
46771 | done` || { (exit 1); exit 1; } | |
46772 | # Remove the trailing spaces. | |
ac1cb8d3 | 46773 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
46774 | |
46775 | _ACEOF | |
46776 | ||
46777 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
46778 | # `conftest.undefs', that substitutes the proper values into | |
46779 | # config.h.in to produce config.h. The first handles `#define' | |
46780 | # templates, and the second `#undef' templates. | |
46781 | # And first: Protect against being on the right side of a sed subst in | |
46782 | # config.status. Protect against being in an unquoted here document | |
46783 | # in config.status. | |
46784 | rm -f conftest.defines conftest.undefs | |
46785 | # Using a here document instead of a string reduces the quoting nightmare. | |
46786 | # Putting comments in sed scripts is not portable. | |
46787 | # | |
46788 | # `end' is used to avoid that the second main sed command (meant for | |
46789 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
46790 | # See the Autoconf documentation for `clear'. | |
46791 | cat >confdef2sed.sed <<\_ACEOF | |
46792 | s/[\\&,]/\\&/g | |
46793 | s,[\\$`],\\&,g | |
46794 | t clear | |
46795 | : clear | |
ac1cb8d3 | 46796 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 46797 | t end |
ac1cb8d3 | 46798 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
46799 | : end |
46800 | _ACEOF | |
46801 | # If some macros were called several times there might be several times | |
46802 | # the same #defines, which is useless. Nevertheless, we may not want to | |
46803 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
46804 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
46805 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
46806 | rm -f confdef2sed.sed | |
46807 | ||
46808 | # This sed command replaces #undef with comments. This is necessary, for | |
46809 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
46810 | # on some systems where configure will not decide to define it. | |
46811 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 46812 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
46813 | _ACEOF |
46814 | ||
46815 | # Break up conftest.defines because some shells have a limit on the size | |
46816 | # of here documents, and old seds have small limits too (100 cmds). | |
46817 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 46818 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
46819 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
46820 | echo ' :' >>$CONFIG_STATUS | |
46821 | rm -f conftest.tail | |
46822 | while grep . conftest.defines >/dev/null | |
46823 | do | |
46824 | # Write a limited-size here document to $tmp/defines.sed. | |
46825 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
46826 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 46827 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
46828 | # Work around the forget-to-reset-the-flag bug. |
46829 | echo 't clr' >>$CONFIG_STATUS | |
46830 | echo ': clr' >>$CONFIG_STATUS | |
46831 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
46832 | echo 'CEOF | |
46833 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
46834 | rm -f $tmp/in | |
46835 | mv $tmp/out $tmp/in | |
46836 | ' >>$CONFIG_STATUS | |
46837 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
46838 | rm -f conftest.defines | |
46839 | mv conftest.tail conftest.defines | |
46840 | done | |
46841 | rm -f conftest.defines | |
46842 | echo ' fi # grep' >>$CONFIG_STATUS | |
46843 | echo >>$CONFIG_STATUS | |
46844 | ||
46845 | # Break up conftest.undefs because some shells have a limit on the size | |
46846 | # of here documents, and old seds have small limits too (100 cmds). | |
46847 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
46848 | rm -f conftest.tail | |
46849 | while grep . conftest.undefs >/dev/null | |
46850 | do | |
46851 | # Write a limited-size here document to $tmp/undefs.sed. | |
46852 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
46853 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 46854 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
46855 | # Work around the forget-to-reset-the-flag bug. |
46856 | echo 't clr' >>$CONFIG_STATUS | |
46857 | echo ': clr' >>$CONFIG_STATUS | |
46858 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
46859 | echo 'CEOF | |
46860 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
46861 | rm -f $tmp/in | |
46862 | mv $tmp/out $tmp/in | |
46863 | ' >>$CONFIG_STATUS | |
46864 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
46865 | rm -f conftest.undefs | |
46866 | mv conftest.tail conftest.undefs | |
46867 | done | |
46868 | rm -f conftest.undefs | |
46869 | ||
46870 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46871 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
46872 | # use $as_me), people would be surprised to read: | |
46873 | # /* config.h. Generated by config.status. */ | |
46874 | if test x"$ac_file" = x-; then | |
46875 | echo "/* Generated by configure. */" >$tmp/config.h | |
46876 | else | |
46877 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
46878 | fi | |
46879 | cat $tmp/in >>$tmp/config.h | |
46880 | rm -f $tmp/in | |
46881 | if test x"$ac_file" != x-; then | |
46882 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
46883 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
46884 | echo "$as_me: $ac_file is unchanged" >&6;} | |
46885 | else | |
46886 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
46887 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46888 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
46889 | X"$ac_file" : 'X\(//\)$' \| \ | |
46890 | X"$ac_file" : 'X\(/\)' \| \ | |
46891 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46892 | echo X"$ac_file" | |
46893 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46894 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46895 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46896 | /^X\(\/\).*/{ s//\1/; q; } | |
46897 | s/.*/./; q'` | |
46898 | { if $as_mkdir_p; then | |
46899 | mkdir -p "$ac_dir" | |
46900 | else | |
46901 | as_dir="$ac_dir" | |
46902 | as_dirs= | |
46903 | while test ! -d "$as_dir"; do | |
46904 | as_dirs="$as_dir $as_dirs" | |
46905 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
46906 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46907 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
46908 | X"$as_dir" : 'X\(//\)$' \| \ | |
46909 | X"$as_dir" : 'X\(/\)' \| \ | |
46910 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46911 | echo X"$as_dir" | |
46912 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46913 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46914 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46915 | /^X\(\/\).*/{ s//\1/; q; } | |
46916 | s/.*/./; q'` | |
46917 | done | |
46918 | test ! -n "$as_dirs" || mkdir $as_dirs | |
46919 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
46920 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
46921 | { (exit 1); exit 1; }; }; } | |
46922 | ||
46923 | rm -f $ac_file | |
46924 | mv $tmp/config.h $ac_file | |
46925 | fi | |
46926 | else | |
46927 | cat $tmp/config.h | |
46928 | rm -f $tmp/config.h | |
46929 | fi | |
46930 | done | |
46931 | _ACEOF | |
46932 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46933 | ||
46934 | # | |
46935 | # CONFIG_COMMANDS section. | |
46936 | # | |
46937 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
46938 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
46939 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
46940 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
46941 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46942 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
46943 | X"$ac_dest" : 'X\(//\)$' \| \ | |
46944 | X"$ac_dest" : 'X\(/\)' \| \ | |
46945 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46946 | echo X"$ac_dest" | |
46947 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46948 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46949 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46950 | /^X\(\/\).*/{ s//\1/; q; } | |
46951 | s/.*/./; q'` | |
ac1cb8d3 VS |
46952 | { if $as_mkdir_p; then |
46953 | mkdir -p "$ac_dir" | |
46954 | else | |
46955 | as_dir="$ac_dir" | |
46956 | as_dirs= | |
46957 | while test ! -d "$as_dir"; do | |
46958 | as_dirs="$as_dir $as_dirs" | |
46959 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
46960 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
46961 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
46962 | X"$as_dir" : 'X\(//\)$' \| \ | |
46963 | X"$as_dir" : 'X\(/\)' \| \ | |
46964 | . : '\(.\)' 2>/dev/null || | |
46965 | echo X"$as_dir" | | |
46966 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46967 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46968 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46969 | /^X\(\/\).*/{ s//\1/; q; } | |
46970 | s/.*/./; q'` | |
46971 | done | |
46972 | test ! -n "$as_dirs" || mkdir $as_dirs | |
46973 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
46974 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
46975 | { (exit 1); exit 1; }; }; } | |
46976 | ||
a848cd7e SC |
46977 | ac_builddir=. |
46978 | ||
46979 | if test "$ac_dir" != .; then | |
46980 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
46981 | # A "../" for each directory in $ac_dir_suffix. | |
46982 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
46983 | else | |
46984 | ac_dir_suffix= ac_top_builddir= | |
46985 | fi | |
46986 | ||
46987 | case $srcdir in | |
46988 | .) # No --srcdir option. We are building in place. | |
46989 | ac_srcdir=. | |
46990 | if test -z "$ac_top_builddir"; then | |
46991 | ac_top_srcdir=. | |
46992 | else | |
46993 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
46994 | fi ;; | |
46995 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
46996 | ac_srcdir=$srcdir$ac_dir_suffix; | |
46997 | ac_top_srcdir=$srcdir ;; | |
46998 | *) # Relative path. | |
46999 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47000 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47001 | esac | |
ac1cb8d3 VS |
47002 | |
47003 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47004 | # the directories may not exist. | |
47005 | case `pwd` in | |
47006 | .) ac_abs_builddir="$ac_dir";; | |
47007 | *) | |
47008 | case "$ac_dir" in | |
47009 | .) ac_abs_builddir=`pwd`;; | |
47010 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47011 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47012 | esac;; | |
47013 | esac | |
47014 | case $ac_abs_builddir in | |
47015 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47016 | *) | |
47017 | case ${ac_top_builddir}. in | |
47018 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47019 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47020 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47021 | esac;; | |
47022 | esac | |
47023 | case $ac_abs_builddir in | |
47024 | .) ac_abs_srcdir=$ac_srcdir;; | |
47025 | *) | |
47026 | case $ac_srcdir in | |
47027 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47028 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47029 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47030 | esac;; | |
47031 | esac | |
47032 | case $ac_abs_builddir in | |
47033 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47034 | *) | |
47035 | case $ac_top_srcdir in | |
47036 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47037 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47038 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47039 | esac;; | |
47040 | esac | |
a848cd7e SC |
47041 | |
47042 | ||
47043 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
47044 | echo "$as_me: executing $ac_dest commands" >&6;} | |
47045 | case $ac_dest in | |
ceec2216 RL |
47046 | wx-config ) rm -f wx-config |
47047 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
47048 | ;; | |
a848cd7e SC |
47049 | esac |
47050 | done | |
47051 | _ACEOF | |
47052 | ||
47053 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47054 | ||
47055 | { (exit 0); exit 0; } | |
47056 | _ACEOF | |
47057 | chmod +x $CONFIG_STATUS | |
47058 | ac_clean_files=$ac_clean_files_save | |
47059 | ||
47060 | ||
47061 | # configure is writing to config.log, and then calls config.status. | |
47062 | # config.status does its own redirection, appending to config.log. | |
47063 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
47064 | # by configure, so config.status won't be able to write to it; its | |
47065 | # output is simply discarded. So we exec the FD to /dev/null, | |
47066 | # effectively closing config.log, so it can be properly (re)opened and | |
47067 | # appended to by config.status. When coming back to configure, we | |
47068 | # need to make the FD available again. | |
47069 | if test "$no_create" != yes; then | |
47070 | ac_cs_success=: | |
47071 | ac_config_status_args= | |
47072 | test "$silent" = yes && | |
47073 | ac_config_status_args="$ac_config_status_args --quiet" | |
47074 | exec 5>/dev/null | |
47075 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
47076 | exec 5>>config.log | |
47077 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
47078 | # would make configure fail if this is the last instruction. | |
47079 | $ac_cs_success || { (exit 1); exit 1; } | |
47080 | fi | |
47081 | ||
47082 | # | |
47083 | # CONFIG_SUBDIRS section. | |
47084 | # | |
47085 | if test "$no_recursion" != yes; then | |
47086 | ||
47087 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
47088 | ac_sub_configure_args= | |
47089 | ac_prev= | |
47090 | for ac_arg in $ac_configure_args; do | |
47091 | if test -n "$ac_prev"; then | |
47092 | ac_prev= | |
47093 | continue | |
47094 | fi | |
47095 | case $ac_arg in | |
47096 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
47097 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
47098 | ac_prev=cache_file ;; | |
47099 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
47100 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
47101 | | --c=*) | |
47102 | ;; | |
47103 | --config-cache | -C) | |
47104 | ;; | |
47105 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
47106 | ac_prev=srcdir ;; | |
47107 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
47108 | ;; | |
47109 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
47110 | ac_prev=prefix ;; | |
47111 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
47112 | ;; | |
47113 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
47114 | esac | |
47115 | done | |
47116 | ||
47117 | # Always prepend --prefix to ensure using the same prefix | |
47118 | # in subdir configurations. | |
47119 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
47120 | ||
47121 | ac_popdir=`pwd` | |
47122 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
47123 | ||
47124 | # Do not complain, so a configure script can configure whichever | |
47125 | # parts of a large source tree are present. | |
47126 | test -d $srcdir/$ac_dir || continue | |
47127 | ||
47128 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
47129 | echo "$as_me: configuring in $ac_dir" >&6;} | |
47130 | { if $as_mkdir_p; then | |
47131 | mkdir -p "$ac_dir" | |
47132 | else | |
47133 | as_dir="$ac_dir" | |
47134 | as_dirs= | |
47135 | while test ! -d "$as_dir"; do | |
47136 | as_dirs="$as_dir $as_dirs" | |
47137 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47138 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47139 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
47140 | X"$as_dir" : 'X\(//\)$' \| \ | |
47141 | X"$as_dir" : 'X\(/\)' \| \ | |
47142 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47143 | echo X"$as_dir" | |
47144 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47145 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47146 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47147 | /^X\(\/\).*/{ s//\1/; q; } | |
47148 | s/.*/./; q'` | |
47149 | done | |
47150 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47151 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47152 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47153 | { (exit 1); exit 1; }; }; } | |
47154 | ||
47155 | ac_builddir=. | |
47156 | ||
47157 | if test "$ac_dir" != .; then | |
47158 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
47159 | # A "../" for each directory in $ac_dir_suffix. | |
47160 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
47161 | else | |
47162 | ac_dir_suffix= ac_top_builddir= | |
47163 | fi | |
47164 | ||
47165 | case $srcdir in | |
47166 | .) # No --srcdir option. We are building in place. | |
47167 | ac_srcdir=. | |
47168 | if test -z "$ac_top_builddir"; then | |
47169 | ac_top_srcdir=. | |
47170 | else | |
47171 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
47172 | fi ;; | |
47173 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
47174 | ac_srcdir=$srcdir$ac_dir_suffix; | |
47175 | ac_top_srcdir=$srcdir ;; | |
47176 | *) # Relative path. | |
47177 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47178 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47179 | esac | |
ac1cb8d3 VS |
47180 | |
47181 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47182 | # the directories may not exist. | |
47183 | case `pwd` in | |
47184 | .) ac_abs_builddir="$ac_dir";; | |
47185 | *) | |
47186 | case "$ac_dir" in | |
47187 | .) ac_abs_builddir=`pwd`;; | |
47188 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47189 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47190 | esac;; | |
47191 | esac | |
47192 | case $ac_abs_builddir in | |
47193 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47194 | *) | |
47195 | case ${ac_top_builddir}. in | |
47196 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47197 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47198 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47199 | esac;; | |
47200 | esac | |
47201 | case $ac_abs_builddir in | |
47202 | .) ac_abs_srcdir=$ac_srcdir;; | |
47203 | *) | |
47204 | case $ac_srcdir in | |
47205 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47206 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47207 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47208 | esac;; | |
47209 | esac | |
47210 | case $ac_abs_builddir in | |
47211 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47212 | *) | |
47213 | case $ac_top_srcdir in | |
47214 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47215 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47216 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47217 | esac;; | |
47218 | esac | |
a848cd7e SC |
47219 | |
47220 | ||
47221 | cd $ac_dir | |
47222 | ||
47223 | # Check for guested configure; otherwise get Cygnus style configure. | |
47224 | if test -f $ac_srcdir/configure.gnu; then | |
47225 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
47226 | elif test -f $ac_srcdir/configure; then | |
47227 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
47228 | elif test -f $ac_srcdir/configure.in; then | |
47229 | ac_sub_configure=$ac_configure | |
47230 | else | |
47231 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
47232 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
47233 | ac_sub_configure= | |
47234 | fi | |
47235 | ||
47236 | # The recursion is here. | |
47237 | if test -n "$ac_sub_configure"; then | |
47238 | # Make the cache file name correct relative to the subdirectory. | |
47239 | case $cache_file in | |
47240 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
47241 | *) # Relative path. | |
ac1cb8d3 | 47242 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
47243 | esac |
47244 | ||
47245 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
47246 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
47247 | # The eval makes quoting arguments work. | |
47248 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
47249 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
47250 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
47251 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
47252 | { (exit 1); exit 1; }; } | |
47253 | fi | |
47254 | ||
6ebeb4c7 | 47255 | cd "$ac_popdir" |
a848cd7e SC |
47256 | done |
47257 | fi | |
47258 | ||
47259 | ||
47260 | echo | |
77ffb593 | 47261 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 47262 | echo "" |
4d4ff94c | 47263 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 47264 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 47265 | |
77ffb593 JS |
47266 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
47267 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
47268 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 47269 | |
77ffb593 JS |
47270 | echo " What level of wxWidgets compatibility should be enabled?" |
47271 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
47272 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 47273 | |
77ffb593 | 47274 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
47275 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
47276 | echo " png ${wxUSE_LIBPNG-none}" | |
47277 | echo " regex ${wxUSE_REGEX}" | |
47278 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
47279 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
47280 | echo " xpm ${wxUSE_LIBXPM-none}" | |
47281 | fi | |
47282 | echo " zlib ${wxUSE_ZLIB}" | |
47283 | echo " odbc ${wxUSE_ODBC}" | |
47284 | echo " expat ${wxUSE_EXPAT}" | |
47285 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
47286 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 47287 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
47288 | |
47289 | echo "" | |
47290 |