]>
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. | |
e0d84535 | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.6.0. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
ac1cb8d3 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
ac1cb8d3 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
26 | |
27 | # Support unset when possible. | |
ac1cb8d3 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
ac1cb8d3 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
101 | ||
102 | ||
103 | as_lineno_1=$LINENO | |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
119 | ||
120 | ;; | |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
ac1cb8d3 | 224 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
225 | as_mkdir_p=false |
226 | fi | |
227 | ||
228 | as_executable_p="test -f" | |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
235 | |
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
244 | $as_unset CDPATH | |
245 | ||
246 | ||
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
253 | ||
254 | # | |
255 | # Initializations. | |
256 | # | |
257 | ac_default_prefix=/usr/local | |
258 | ac_config_libobj_dir=. | |
259 | cross_compiling=no | |
260 | subdirs= | |
261 | MFLAGS= | |
262 | MAKEFLAGS= | |
263 | SHELL=${CONFIG_SHELL-/bin/sh} | |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
270 | # Identity of this package. | |
77ffb593 JS |
271 | PACKAGE_NAME='wxWidgets' |
272 | PACKAGE_TARNAME='wxwidgets' | |
e0d84535 RL |
273 | PACKAGE_VERSION='2.6.0' |
274 | PACKAGE_STRING='wxWidgets 2.6.0' | |
77ffb593 | 275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' |
a848cd7e SC |
276 | |
277 | ac_unique_file="wx-config.in" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
315 | ac_subdirs_all="$ac_subdirs_all src/expat" | |
52ada004 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP 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 RESCOMP 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 ac_ct_AR ac_ct_STRIP 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 AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING 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_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_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_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_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 DLLTOOL 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 | |
e0d84535 | 797 | \`configure' configures wxWidgets 2.6.0 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
e0d84535 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.6.0:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
f34ca037 | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
eaff0f0d | 907 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 908 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
36b6448c | 911 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
912 | --enable-dialupman use dialup network classes |
913 | --enable-dynlib use wxLibrary class for DLL loading | |
914 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
915 | --enable-exceptions build exception-safe library | |
916 | --enable-ffile use wxFFile class | |
917 | --enable-file use wxFile class | |
918 | --enable-filesystem use virtual file systems classes | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
921 | --enable-fs_zip use virtual ZIP filesystems | |
922 | --enable-geometry use geometry class | |
923 | --enable-log use logging system | |
924 | --enable-longlong use wxLongLong class | |
925 | --enable-mimetype use wxMimeTypesManager | |
926 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
927 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 928 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 929 | --enable-std_string use standard C++ string classes |
07158944 | 930 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 931 | --enable-stopwatch use wxStopWatch class |
07158944 | 932 | --enable-streams use wxStream etc classes |
a848cd7e SC |
933 | --enable-sysoptions use wxSystemOptions |
934 | --enable-textbuf use wxTextBuffer class | |
935 | --enable-textfile use wxTextFile class | |
936 | --enable-timer use wxTimer class | |
937 | --enable-unicode compile wxString with Unicode support | |
938 | --enable-sound use wxSound class | |
3b57de8b | 939 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 940 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 941 | --enable-zipstream use wxZip streams |
a848cd7e SC |
942 | --enable-url use wxURL class |
943 | --enable-protocol use wxProtocol class | |
944 | --enable-protocol-http HTTP support in wxProtocol | |
945 | --enable-protocol-ftp FTP support in wxProtocol | |
946 | --enable-protocol-file FILE support in wxProtocol | |
947 | --enable-threads use threads | |
948 | --enable-docview use document view architecture | |
949 | --enable-help use help subsystem | |
950 | --enable-mshtmlhelp use MS HTML Help (win32) | |
951 | --enable-html use wxHTML sub-library | |
952 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 953 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
954 | --enable-constraints use layout-constraints system |
955 | --enable-printarch use printing architecture | |
956 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 957 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
958 | --enable-loggui use standard GUI logger |
959 | --enable-logwin use wxLogWindow | |
960 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 961 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
962 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
963 | --enable-prologio not available; see contrib | |
964 | --enable-resources not available; see contrib | |
965 | --enable-clipboard use wxClipboard class | |
966 | --enable-dnd use Drag'n'Drop classes | |
967 | --enable-metafile use win32 metafiles | |
968 | --enable-controls use all usual controls | |
969 | --enable-accel use accelerators | |
970 | --enable-button use wxButton class | |
971 | --enable-bmpbutton use wxBitmapButton class | |
972 | --enable-calendar use wxCalendarCtrl class | |
973 | --enable-caret use wxCaret class | |
974 | --enable-checkbox use wxCheckBox class | |
975 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
976 | --enable-choice use wxChoice class | |
92bbdbcd | 977 | --enable-choicebook use wxChoicebook class |
a848cd7e | 978 | --enable-combobox use wxComboBox class |
da98e9be | 979 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
980 | --enable-display use wxDisplay class |
981 | --enable-gauge use wxGauge class | |
982 | --enable-grid use wxGrid class | |
983 | --enable-imaglist use wxImageList class | |
984 | --enable-listbook use wxListbook class | |
985 | --enable-listbox use wxListBox class | |
986 | --enable-listctrl use wxListCtrl class | |
987 | --enable-notebook use wxNotebook class | |
988 | --enable-radiobox use wxRadioBox class | |
989 | --enable-radiobtn use wxRadioButton class | |
990 | --enable-sash use wxSashWindow class | |
991 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
992 | --enable-slider use wxSlider class | |
993 | --enable-spinbtn use wxSpinButton class | |
994 | --enable-spinctrl use wxSpinCtrl class | |
995 | --enable-splitter use wxSplitterWindow class | |
996 | --enable-statbmp use wxStaticBitmap class | |
997 | --enable-statbox use wxStaticBox class | |
998 | --enable-statline use wxStaticLine class | |
999 | --enable-stattext use wxStaticText class | |
1000 | --enable-statusbar use wxStatusBar class | |
1001 | --enable-tabdialog use wxTabControl class | |
1002 | --enable-textctrl use wxTextCtrl class | |
1003 | --enable-togglebtn use wxToggleButton class | |
1004 | --enable-toolbar use wxToolBar class | |
1005 | --enable-tbarnative use native wxToolBar class | |
1006 | --enable-tbarsmpl use wxToolBarSimple class | |
1007 | --enable-treectrl use wxTreeCtrl class | |
1008 | --enable-tipwindow use wxTipWindow class | |
1009 | --enable-popupwin use wxPopUpWindow class | |
1010 | --enable-commondlg use all common dialogs | |
1011 | --enable-choicedlg use wxChoiceDialog | |
1012 | --enable-coldlg use wxColourDialog | |
1013 | --enable-filedlg use wxFileDialog | |
1014 | --enable-finddlg use wxFindReplaceDialog | |
1015 | --enable-fontdlg use wxFontDialog | |
1016 | --enable-dirdlg use wxDirDialog | |
1017 | --enable-msgdlg use wxMessageDialog | |
1018 | --enable-numberdlg use wxNumberEntryDialog | |
1019 | --enable-splash use wxSplashScreen | |
1020 | --enable-textdlg use wxTextDialog | |
1021 | --enable-tipdlg use startup tips | |
1022 | --enable-progressdlg use wxProgressDialog | |
1023 | --enable-wizarddlg use wxWizard | |
1024 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1025 | --enable-miniframe use wxMiniFrame class | |
1026 | --enable-tooltips use wxToolTip class | |
1027 | --enable-splines use spline drawing code | |
fbe2ca43 | 1028 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1029 | --enable-validators use wxValidator and derived classes |
1030 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1031 | --enable-joystick use wxJoystick |
a848cd7e SC |
1032 | --enable-metafiles use wxMetaFile (Windows only) |
1033 | --enable-dragimage use wxDragImage | |
1034 | --enable-accessibility enable accessibility support | |
1035 | --enable-palette use wxPalette class | |
1036 | --enable-image use wxImage class | |
1037 | --enable-gif use gif images (GIF file format) | |
1038 | --enable-pcx use pcx images (PCX file format) | |
1039 | --enable-iff use iff images (IFF file format) | |
1040 | --enable-pnm use pnm images (PNM file format) | |
1041 | --enable-xpm use xpm images (XPM file format) | |
1042 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1043 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1044 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1045 | --disable-largefile omit support for large files | |
1046 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1047 | --disable-gtktest Do not try to compile and run a test GTK program | |
1048 | --disable-sdltest Do not try to compile and run a test SDL program | |
1049 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1050 | --disable-precomp-headers |
1051 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1052 | |
1053 | Optional Packages: | |
1054 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1055 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f34ca037 | 1056 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1057 | --with-motif use Motif/Lesstif |
1058 | --with-mac use Mac OS X | |
1059 | --with-cocoa use Cocoa | |
1060 | --with-wine use Wine | |
1061 | --with-msw use MS-Windows | |
1062 | --with-pm use OS/2 Presentation Manager | |
1063 | --with-mgl use SciTech MGL | |
1064 | --with-microwin use MicroWindows | |
1065 | --with-x11 use X11 | |
1066 | --with-libpng use libpng (PNG image format) | |
1067 | --with-libjpeg use libjpeg (JPEG file format) | |
1068 | --with-libtiff use libtiff (TIFF file format) | |
1069 | --with-libxpm use libxpm (XPM file format) | |
1070 | --with-libmspack use libmspack (CHM help files loading) | |
1071 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1072 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1073 | --with-opengl use OpenGL (or Mesa) |
1074 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1075 | --with-regex enable support for wxRegEx class | |
1076 | --with-zlib use zlib for LZW compression | |
1077 | --with-odbc use the IODBC and wxODBC classes | |
1078 | --with-expat enable XML support using expat parser | |
ceec2216 | 1079 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1080 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1081 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1082 | --with-x use the X Window System | |
1083 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1084 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1085 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1086 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1087 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1088 | ||
1089 | Some influential environment variables: | |
dcc1b6ad VS |
1090 | CC C compiler command |
1091 | CFLAGS C compiler flags | |
1092 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1093 | nonstandard directory <lib dir> | |
1094 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1095 | headers in a nonstandard directory <include dir> | |
1096 | CPP C preprocessor | |
1097 | CXX C++ compiler command | |
1098 | CXXFLAGS C++ compiler flags | |
1099 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1100 | |
1101 | Use these variables to override the choices made by `configure' or to help | |
1102 | it to find libraries and programs with nonstandard names/locations. | |
1103 | ||
77ffb593 | 1104 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1105 | _ACEOF |
1106 | fi | |
1107 | ||
1108 | if test "$ac_init_help" = "recursive"; then | |
1109 | # If there are subdirs, report their specific --help. | |
1110 | ac_popdir=`pwd` | |
1111 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1112 | test -d $ac_dir || continue | |
1113 | ac_builddir=. | |
1114 | ||
1115 | if test "$ac_dir" != .; then | |
1116 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1117 | # A "../" for each directory in $ac_dir_suffix. | |
1118 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1119 | else | |
1120 | ac_dir_suffix= ac_top_builddir= | |
1121 | fi | |
1122 | ||
1123 | case $srcdir in | |
1124 | .) # No --srcdir option. We are building in place. | |
1125 | ac_srcdir=. | |
1126 | if test -z "$ac_top_builddir"; then | |
1127 | ac_top_srcdir=. | |
1128 | else | |
1129 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1130 | fi ;; | |
1131 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1132 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1133 | ac_top_srcdir=$srcdir ;; | |
1134 | *) # Relative path. | |
1135 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1136 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1137 | esac | |
ac1cb8d3 VS |
1138 | |
1139 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1140 | # the directories may not exist. | |
1141 | case `pwd` in | |
1142 | .) ac_abs_builddir="$ac_dir";; | |
1143 | *) | |
1144 | case "$ac_dir" in | |
1145 | .) ac_abs_builddir=`pwd`;; | |
1146 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1147 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1148 | esac;; | |
1149 | esac | |
1150 | case $ac_abs_builddir in | |
1151 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1152 | *) | |
1153 | case ${ac_top_builddir}. in | |
1154 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1155 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1156 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1157 | esac;; | |
1158 | esac | |
1159 | case $ac_abs_builddir in | |
1160 | .) ac_abs_srcdir=$ac_srcdir;; | |
1161 | *) | |
1162 | case $ac_srcdir in | |
1163 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1164 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1165 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1166 | esac;; | |
1167 | esac | |
1168 | case $ac_abs_builddir in | |
1169 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1170 | *) | |
1171 | case $ac_top_srcdir in | |
1172 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1173 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1174 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1175 | esac;; | |
1176 | esac | |
a848cd7e SC |
1177 | |
1178 | cd $ac_dir | |
1179 | # Check for guested configure; otherwise get Cygnus style configure. | |
1180 | if test -f $ac_srcdir/configure.gnu; then | |
1181 | echo | |
1182 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1183 | elif test -f $ac_srcdir/configure; then | |
1184 | echo | |
1185 | $SHELL $ac_srcdir/configure --help=recursive | |
1186 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1187 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1188 | echo |
1189 | $ac_configure --help | |
1190 | else | |
1191 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1192 | fi | |
9dd0f6c2 | 1193 | cd "$ac_popdir" |
a848cd7e SC |
1194 | done |
1195 | fi | |
1196 | ||
1197 | test -n "$ac_init_help" && exit 0 | |
1198 | if $ac_init_version; then | |
1199 | cat <<\_ACEOF | |
e0d84535 | 1200 | wxWidgets configure 2.6.0 |
ac1cb8d3 | 1201 | generated by GNU Autoconf 2.59 |
a848cd7e | 1202 | |
ac1cb8d3 | 1203 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1204 | This configure script is free software; the Free Software Foundation |
1205 | gives unlimited permission to copy, distribute and modify it. | |
1206 | _ACEOF | |
1207 | exit 0 | |
1208 | fi | |
1209 | exec 5>config.log | |
1210 | cat >&5 <<_ACEOF | |
1211 | This file contains any messages produced by compilers while | |
1212 | running configure, to aid debugging if configure makes a mistake. | |
1213 | ||
e0d84535 | 1214 | It was created by wxWidgets $as_me 2.6.0, which was |
ac1cb8d3 | 1215 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1216 | |
1217 | $ $0 $@ | |
1218 | ||
1219 | _ACEOF | |
1220 | { | |
1221 | cat <<_ASUNAME | |
1222 | ## --------- ## | |
1223 | ## Platform. ## | |
1224 | ## --------- ## | |
1225 | ||
1226 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1227 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1228 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1229 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1230 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1231 | ||
1232 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1233 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1234 | ||
1235 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1236 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1237 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1238 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1239 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1240 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1241 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1242 | ||
1243 | _ASUNAME | |
1244 | ||
1245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1246 | for as_dir in $PATH | |
1247 | do | |
1248 | IFS=$as_save_IFS | |
1249 | test -z "$as_dir" && as_dir=. | |
1250 | echo "PATH: $as_dir" | |
1251 | done | |
1252 | ||
1253 | } >&5 | |
1254 | ||
1255 | cat >&5 <<_ACEOF | |
1256 | ||
1257 | ||
1258 | ## ----------- ## | |
1259 | ## Core tests. ## | |
1260 | ## ----------- ## | |
1261 | ||
1262 | _ACEOF | |
1263 | ||
1264 | ||
1265 | # Keep a trace of the command line. | |
1266 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1267 | # Strip out --silent because we don't want to record it for future runs. | |
1268 | # Also quote any args containing shell meta-characters. | |
1269 | # Make two passes to allow for proper duplicate-argument suppression. | |
1270 | ac_configure_args= | |
1271 | ac_configure_args0= | |
1272 | ac_configure_args1= | |
1273 | ac_sep= | |
1274 | ac_must_keep_next=false | |
1275 | for ac_pass in 1 2 | |
1276 | do | |
1277 | for ac_arg | |
1278 | do | |
1279 | case $ac_arg in | |
1280 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1281 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1282 | | -silent | --silent | --silen | --sile | --sil) | |
1283 | continue ;; | |
1284 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1285 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1286 | esac | |
1287 | case $ac_pass in | |
1288 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1289 | 2) | |
1290 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1291 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1292 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1293 | else |
ac1cb8d3 VS |
1294 | case $ac_arg in |
1295 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1296 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1297 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1298 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1299 | case "$ac_configure_args0 " in | |
1300 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1301 | esac | |
1302 | ;; | |
1303 | -* ) ac_must_keep_next=true ;; | |
1304 | esac | |
a848cd7e SC |
1305 | fi |
1306 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1307 | # Get rid of the leading space. | |
1308 | ac_sep=" " | |
1309 | ;; | |
1310 | esac | |
1311 | done | |
1312 | done | |
1313 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1314 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1315 | ||
1316 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1317 | # config.log. We remove comments because anyway the quotes in there | |
1318 | # would cause problems or look ugly. | |
1319 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1320 | # such as our DU 5.0 friend, will then `close' the trap. | |
1321 | trap 'exit_status=$? | |
1322 | # Save into config.log some information that might help in debugging. | |
1323 | { | |
1324 | echo | |
1325 | ||
1326 | cat <<\_ASBOX | |
1327 | ## ---------------- ## | |
1328 | ## Cache variables. ## | |
1329 | ## ---------------- ## | |
1330 | _ASBOX | |
1331 | echo | |
1332 | # The following way of writing the cache mishandles newlines in values, | |
1333 | { | |
1334 | (set) 2>&1 | | |
1335 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1336 | *ac_space=\ *) | |
1337 | sed -n \ | |
ac1cb8d3 VS |
1338 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1339 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1340 | ;; |
1341 | *) | |
1342 | sed -n \ | |
ac1cb8d3 | 1343 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1344 | ;; |
1345 | esac; | |
1346 | } | |
1347 | echo | |
1348 | ||
1349 | cat <<\_ASBOX | |
1350 | ## ----------------- ## | |
1351 | ## Output variables. ## | |
1352 | ## ----------------- ## | |
1353 | _ASBOX | |
1354 | echo | |
1355 | for ac_var in $ac_subst_vars | |
1356 | do | |
1357 | eval ac_val=$`echo $ac_var` | |
1358 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1359 | done | sort | |
1360 | echo | |
1361 | ||
1362 | if test -n "$ac_subst_files"; then | |
1363 | cat <<\_ASBOX | |
1364 | ## ------------- ## | |
1365 | ## Output files. ## | |
1366 | ## ------------- ## | |
1367 | _ASBOX | |
1368 | echo | |
1369 | for ac_var in $ac_subst_files | |
1370 | do | |
1371 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1372 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1373 | done | sort |
1374 | echo | |
1375 | fi | |
1376 | ||
1377 | if test -s confdefs.h; then | |
1378 | cat <<\_ASBOX | |
1379 | ## ----------- ## | |
1380 | ## confdefs.h. ## | |
1381 | ## ----------- ## | |
1382 | _ASBOX | |
1383 | echo | |
1384 | sed "/^$/d" confdefs.h | sort | |
1385 | echo | |
1386 | fi | |
1387 | test "$ac_signal" != 0 && | |
1388 | echo "$as_me: caught signal $ac_signal" | |
1389 | echo "$as_me: exit $exit_status" | |
1390 | } >&5 | |
ac1cb8d3 | 1391 | rm -f core *.core && |
a848cd7e SC |
1392 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1393 | exit $exit_status | |
1394 | ' 0 | |
1395 | for ac_signal in 1 2 13 15; do | |
1396 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1397 | done | |
1398 | ac_signal=0 | |
1399 | ||
1400 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1401 | rm -rf conftest* confdefs.h | |
1402 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1403 | echo >confdefs.h | |
1404 | ||
1405 | # Predefined preprocessor variables. | |
1406 | ||
1407 | cat >>confdefs.h <<_ACEOF | |
1408 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1409 | _ACEOF | |
1410 | ||
1411 | ||
1412 | cat >>confdefs.h <<_ACEOF | |
1413 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1414 | _ACEOF | |
1415 | ||
1416 | ||
1417 | cat >>confdefs.h <<_ACEOF | |
1418 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1419 | _ACEOF | |
1420 | ||
1421 | ||
1422 | cat >>confdefs.h <<_ACEOF | |
1423 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1424 | _ACEOF | |
1425 | ||
1426 | ||
1427 | cat >>confdefs.h <<_ACEOF | |
1428 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1429 | _ACEOF | |
1430 | ||
1431 | ||
1432 | # Let the site file select an alternate cache file if it wants to. | |
1433 | # Prefer explicitly selected file to automatically selected ones. | |
1434 | if test -z "$CONFIG_SITE"; then | |
1435 | if test "x$prefix" != xNONE; then | |
1436 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1437 | else | |
1438 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1439 | fi | |
1440 | fi | |
1441 | for ac_site_file in $CONFIG_SITE; do | |
1442 | if test -r "$ac_site_file"; then | |
1443 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1444 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1445 | sed 's/^/| /' "$ac_site_file" >&5 | |
1446 | . "$ac_site_file" | |
1447 | fi | |
1448 | done | |
1449 | ||
1450 | if test -r "$cache_file"; then | |
1451 | # Some versions of bash will fail to source /dev/null (special | |
1452 | # files actually), so we avoid doing that. | |
1453 | if test -f "$cache_file"; then | |
1454 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1455 | echo "$as_me: loading cache $cache_file" >&6;} | |
1456 | case $cache_file in | |
1457 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1458 | *) . ./$cache_file;; | |
1459 | esac | |
1460 | fi | |
1461 | else | |
1462 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1463 | echo "$as_me: creating cache $cache_file" >&6;} | |
1464 | >$cache_file | |
1465 | fi | |
1466 | ||
1467 | # Check that the precious variables saved in the cache have kept the same | |
1468 | # value. | |
1469 | ac_cache_corrupted=false | |
1470 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1471 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1472 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1473 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1474 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1475 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1476 | case $ac_old_set,$ac_new_set in | |
1477 | set,) | |
1478 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1479 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1480 | ac_cache_corrupted=: ;; | |
1481 | ,set) | |
1482 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1483 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1484 | ac_cache_corrupted=: ;; | |
1485 | ,);; | |
1486 | *) | |
1487 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1488 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1489 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1490 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1491 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1492 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1493 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1494 | ac_cache_corrupted=: |
a848cd7e SC |
1495 | fi;; |
1496 | esac | |
1497 | # Pass precious variables to config.status. | |
1498 | if test "$ac_new_set" = set; then | |
1499 | case $ac_new_val in | |
1500 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1501 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1502 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1503 | esac | |
1504 | case " $ac_configure_args " in | |
1505 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1506 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1507 | esac | |
1508 | fi | |
1509 | done | |
1510 | if $ac_cache_corrupted; then | |
1511 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1512 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1513 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1514 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1515 | { (exit 1); exit 1; }; } | |
1516 | fi | |
1517 | ||
1518 | ac_ext=c | |
1519 | ac_cpp='$CPP $CPPFLAGS' | |
1520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1523 | ||
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 | ac_aux_dir= | |
1554 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1555 | if test -f $ac_dir/install-sh; then | |
1556 | ac_aux_dir=$ac_dir | |
1557 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1558 | break | |
1559 | elif test -f $ac_dir/install.sh; then | |
1560 | ac_aux_dir=$ac_dir | |
1561 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1562 | break | |
1563 | elif test -f $ac_dir/shtool; then | |
1564 | ac_aux_dir=$ac_dir | |
1565 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1566 | break | |
1567 | fi | |
1568 | done | |
1569 | if test -z "$ac_aux_dir"; then | |
1570 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1571 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1572 | { (exit 1); exit 1; }; } | |
1573 | fi | |
1574 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1575 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1576 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1577 | ||
1578 | # Make sure we can run config.sub. | |
1579 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1580 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1581 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1582 | { (exit 1); exit 1; }; } | |
1583 | ||
1584 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1585 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1586 | if test "${ac_cv_build+set}" = set; then | |
1587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1588 | else | |
1589 | ac_cv_build_alias=$build_alias | |
1590 | test -z "$ac_cv_build_alias" && | |
1591 | ac_cv_build_alias=`$ac_config_guess` | |
1592 | test -z "$ac_cv_build_alias" && | |
1593 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1594 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1595 | { (exit 1); exit 1; }; } | |
1596 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1597 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1598 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1599 | { (exit 1); exit 1; }; } | |
1600 | ||
1601 | fi | |
1602 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1603 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1604 | build=$ac_cv_build | |
1605 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1606 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1607 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1608 | ||
1609 | ||
1610 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1611 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1612 | if test "${ac_cv_host+set}" = set; then | |
1613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1614 | else | |
1615 | ac_cv_host_alias=$host_alias | |
1616 | test -z "$ac_cv_host_alias" && | |
1617 | ac_cv_host_alias=$ac_cv_build_alias | |
1618 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1619 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1620 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1621 | { (exit 1); exit 1; }; } | |
1622 | ||
1623 | fi | |
1624 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1625 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1626 | host=$ac_cv_host | |
1627 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1628 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1629 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1630 | ||
1631 | ||
1632 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1633 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1634 | if test "${ac_cv_target+set}" = set; then | |
1635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1636 | else | |
1637 | ac_cv_target_alias=$target_alias | |
1638 | test "x$ac_cv_target_alias" = "x" && | |
1639 | ac_cv_target_alias=$ac_cv_host_alias | |
1640 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1641 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1642 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1643 | { (exit 1); exit 1; }; } | |
1644 | ||
1645 | fi | |
1646 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1647 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1648 | target=$ac_cv_target | |
1649 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1650 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1651 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1652 | ||
1653 | ||
1654 | # The aliases save the names the user supplied, while $host etc. | |
1655 | # will get canonicalized. | |
1656 | test -n "$target_alias" && | |
1657 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1658 | NONENONEs,x,x, && | |
1659 | program_prefix=${target_alias}- | |
1660 | ||
1661 | ||
1662 | ||
ceec2216 | 1663 | wx_major_version_number=2 |
e0d84535 RL |
1664 | wx_minor_version_number=6 |
1665 | wx_release_number=0 | |
1666 | wx_subrelease_number=0 | |
a848cd7e | 1667 | |
ceec2216 RL |
1668 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1669 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1670 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1671 | |
ceec2216 | 1672 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1673 | |
e0d84535 | 1674 | WX_CURRENT=0 |
a848cd7e | 1675 | WX_REVISION=0 |
e0d84535 | 1676 | WX_AGE=0 |
a848cd7e SC |
1677 | |
1678 | ||
1679 | ||
1680 | USE_UNIX=1 | |
1681 | USE_OS2=0 | |
1682 | USE_WIN32=0 | |
1683 | USE_DOS=0 | |
1684 | USE_BEOS=0 | |
1685 | USE_MAC=0 | |
1686 | ||
1687 | USE_AIX= | |
1688 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1689 | USE_GNU= USE_HPUX= | |
1690 | USE_LINUX= | |
1691 | USE_NETBSD= | |
1692 | USE_OPENBSD= | |
1693 | USE_OSF= USE_SGI= | |
1694 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1695 | USE_ULTRIX= | |
1696 | USE_UNIXWARE= | |
1697 | ||
1698 | USE_ALPHA= | |
1699 | ||
1700 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1701 | ||
1702 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1703 | ||
1704 | DEFAULT_wxUSE_COCOA=0 | |
1705 | DEFAULT_wxUSE_GTK=0 | |
1706 | DEFAULT_wxUSE_MAC=0 | |
1707 | DEFAULT_wxUSE_MGL=0 | |
1708 | DEFAULT_wxUSE_MICROWIN=0 | |
1709 | DEFAULT_wxUSE_MOTIF=0 | |
1710 | DEFAULT_wxUSE_MSW=0 | |
1711 | DEFAULT_wxUSE_PM=0 | |
1712 | DEFAULT_wxUSE_X11=0 | |
1713 | ||
1714 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1720 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1721 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1722 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1723 | ||
1724 | PROGRAM_EXT= | |
1725 | SO_SUFFIX=so | |
1726 | SAMPLES_RPATH_FLAG= | |
1727 | SAMPLES_RPATH_POSTLINK= | |
1728 | ||
a03b8b04 RD |
1729 | DEFAULT_STD_FLAG=yes |
1730 | ||
a848cd7e SC |
1731 | case "${host}" in |
1732 | *-hp-hpux* ) | |
1733 | USE_HPUX=1 | |
1734 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1735 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1736 | SO_SUFFIX=sl | |
1737 | cat >>confdefs.h <<\_ACEOF | |
1738 | #define __HPUX__ 1 | |
1739 | _ACEOF | |
1740 | ||
1741 | ;; | |
1742 | *-*-linux* ) | |
1743 | USE_LINUX=1 | |
1744 | cat >>confdefs.h <<\_ACEOF | |
1745 | #define __LINUX__ 1 | |
1746 | _ACEOF | |
1747 | ||
1748 | TMP=`uname -m` | |
1749 | if test "x$TMP" = "xalpha"; then | |
1750 | USE_ALPHA=1 | |
1751 | cat >>confdefs.h <<\_ACEOF | |
1752 | #define __ALPHA__ 1 | |
1753 | _ACEOF | |
1754 | ||
1755 | fi | |
1756 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1757 | ;; | |
1758 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1759 | USE_GNU=1 | |
1760 | TMP=`uname -m` | |
1761 | if test "x$TMP" = "xalpha"; then | |
1762 | USE_ALPHA=1 | |
1763 | cat >>confdefs.h <<\_ACEOF | |
1764 | #define __ALPHA__ 1 | |
1765 | _ACEOF | |
1766 | ||
1767 | fi | |
1768 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1769 | ;; | |
1770 | *-*-irix5* | *-*-irix6* ) | |
1771 | USE_SGI=1 | |
1772 | USE_SVR4=1 | |
1773 | cat >>confdefs.h <<\_ACEOF | |
1774 | #define __SGI__ 1 | |
1775 | _ACEOF | |
1776 | ||
1777 | cat >>confdefs.h <<\_ACEOF | |
1778 | #define __SVR4__ 1 | |
1779 | _ACEOF | |
1780 | ||
1781 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1782 | ;; | |
1783 | *-*-solaris2* ) | |
1784 | USE_SUN=1 | |
1785 | USE_SOLARIS=1 | |
1786 | USE_SVR4=1 | |
1787 | cat >>confdefs.h <<\_ACEOF | |
1788 | #define __SUN__ 1 | |
1789 | _ACEOF | |
1790 | ||
1791 | cat >>confdefs.h <<\_ACEOF | |
1792 | #define __SOLARIS__ 1 | |
1793 | _ACEOF | |
1794 | ||
1795 | cat >>confdefs.h <<\_ACEOF | |
1796 | #define __SVR4__ 1 | |
1797 | _ACEOF | |
1798 | ||
1799 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1800 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1801 | ;; | |
1802 | *-*-sunos4* ) | |
1803 | USE_SUN=1 | |
1804 | USE_SUNOS=1 | |
1805 | USE_BSD=1 | |
1806 | cat >>confdefs.h <<\_ACEOF | |
1807 | #define __SUN__ 1 | |
1808 | _ACEOF | |
1809 | ||
1810 | cat >>confdefs.h <<\_ACEOF | |
1811 | #define __SUNOS__ 1 | |
1812 | _ACEOF | |
1813 | ||
1814 | cat >>confdefs.h <<\_ACEOF | |
1815 | #define __BSD__ 1 | |
1816 | _ACEOF | |
1817 | ||
1818 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1819 | ;; | |
1820 | *-*-freebsd*) | |
1821 | USE_BSD=1 | |
1822 | USE_FREEBSD=1 | |
1823 | cat >>confdefs.h <<\_ACEOF | |
1824 | #define __FREEBSD__ 1 | |
1825 | _ACEOF | |
1826 | ||
1827 | cat >>confdefs.h <<\_ACEOF | |
1828 | #define __BSD__ 1 | |
1829 | _ACEOF | |
1830 | ||
1831 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1832 | ;; | |
1833 | *-*-openbsd*) | |
1834 | USE_BSD=1 | |
1835 | USE_OPENBSD=1 | |
1836 | cat >>confdefs.h <<\_ACEOF | |
1837 | #define __OPENBSD__ 1 | |
1838 | _ACEOF | |
1839 | ||
1840 | cat >>confdefs.h <<\_ACEOF | |
1841 | #define __BSD__ 1 | |
1842 | _ACEOF | |
1843 | ||
1844 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1845 | ;; | |
1846 | *-*-netbsd*) | |
1847 | USE_BSD=1 | |
1848 | USE_NETBSD=1 | |
1849 | cat >>confdefs.h <<\_ACEOF | |
1850 | #define __NETBSD__ 1 | |
1851 | _ACEOF | |
1852 | ||
1853 | cat >>confdefs.h <<\_ACEOF | |
1854 | #define __BSD__ 1 | |
1855 | _ACEOF | |
1856 | ||
1857 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1858 | ;; | |
1859 | *-*-osf* ) | |
1860 | USE_ALPHA=1 | |
1861 | USE_OSF=1 | |
1862 | cat >>confdefs.h <<\_ACEOF | |
1863 | #define __ALPHA__ 1 | |
1864 | _ACEOF | |
1865 | ||
1866 | cat >>confdefs.h <<\_ACEOF | |
1867 | #define __OSF__ 1 | |
1868 | _ACEOF | |
1869 | ||
1870 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1871 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1872 | ;; | |
1873 | *-*-dgux5* ) | |
1874 | USE_ALPHA=1 | |
1875 | USE_SVR4=1 | |
1876 | cat >>confdefs.h <<\_ACEOF | |
1877 | #define __ALPHA__ 1 | |
1878 | _ACEOF | |
1879 | ||
1880 | cat >>confdefs.h <<\_ACEOF | |
1881 | #define __SVR4__ 1 | |
1882 | _ACEOF | |
1883 | ||
1884 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1885 | ;; | |
1886 | *-*-sysv5* ) | |
1887 | USE_SYSV=1 | |
1888 | USE_SVR4=1 | |
1889 | cat >>confdefs.h <<\_ACEOF | |
1890 | #define __SYSV__ 1 | |
1891 | _ACEOF | |
1892 | ||
1893 | cat >>confdefs.h <<\_ACEOF | |
1894 | #define __SVR4__ 1 | |
1895 | _ACEOF | |
1896 | ||
1897 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1898 | ;; | |
1899 | *-*-aix* ) | |
1900 | USE_AIX=1 | |
1901 | USE_SYSV=1 | |
1902 | USE_SVR4=1 | |
1903 | SO_SUFFIX=a | |
1904 | cat >>confdefs.h <<\_ACEOF | |
1905 | #define __AIX__ 1 | |
1906 | _ACEOF | |
1907 | ||
1908 | cat >>confdefs.h <<\_ACEOF | |
1909 | #define __SYSV__ 1 | |
1910 | _ACEOF | |
1911 | ||
1912 | cat >>confdefs.h <<\_ACEOF | |
1913 | #define __SVR4__ 1 | |
1914 | _ACEOF | |
1915 | ||
1916 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1917 | ;; | |
1918 | ||
1919 | *-*-*UnixWare*) | |
1920 | USE_SYSV=1 | |
1921 | USE_SVR4=1 | |
1922 | USE_UNIXWARE=1 | |
1923 | cat >>confdefs.h <<\_ACEOF | |
1924 | #define __UNIXWARE__ 1 | |
1925 | _ACEOF | |
1926 | ||
1927 | ;; | |
1928 | ||
1929 | *-*-cygwin* | *-*-mingw32* ) | |
1930 | SO_SUFFIX=dll | |
1931 | PROGRAM_EXT=".exe" | |
1932 | RESCOMP=windres | |
1933 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
a03b8b04 | 1934 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1935 | ;; |
1936 | ||
1937 | *-pc-msdosdjgpp ) | |
1938 | USE_UNIX=0 | |
1939 | USE_DOS=1 | |
1940 | cat >>confdefs.h <<\_ACEOF | |
1941 | #define __DOS__ 1 | |
1942 | _ACEOF | |
1943 | ||
1944 | PROGRAM_EXT=".exe" | |
1945 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1946 | LIBS="$LIBS -lstdc++" | |
1947 | ;; | |
1948 | ||
1949 | *-pc-os2_emx | *-pc-os2-emx ) | |
1950 | cat >>confdefs.h <<\_ACEOF | |
1951 | #define __EMX__ 1 | |
1952 | _ACEOF | |
1953 | ||
1954 | USE_OS2=1 | |
1955 | cat >>confdefs.h <<\_ACEOF | |
1956 | #define __OS2__ 1 | |
1957 | _ACEOF | |
1958 | ||
1959 | PROGRAM_EXT=".exe" | |
1960 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1961 | CXX=gcc | |
1962 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1963 | ac_executable_extensions=".exe" | |
1964 | export ac_executable_extensions | |
1965 | ac_save_IFS="$IFS" | |
1966 | IFS='\\' | |
1967 | ac_TEMP_PATH= | |
1968 | for ac_dir in $PATH; do | |
1969 | IFS=$ac_save_IFS | |
1970 | if test -z "$ac_TEMP_PATH"; then | |
1971 | ac_TEMP_PATH="$ac_dir" | |
1972 | else | |
1973 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1974 | fi | |
1975 | done | |
1976 | export PATH="$ac_TEMP_PATH" | |
1977 | unset ac_TEMP_PATH | |
a03b8b04 | 1978 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1979 | ;; |
1980 | ||
1981 | powerpc-*-darwin* ) | |
1982 | USE_BSD=1 | |
1983 | USE_DARWIN=1 | |
1984 | SO_SUFFIX=dylib | |
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define __BSD__ 1 | |
1987 | _ACEOF | |
1988 | ||
1989 | cat >>confdefs.h <<\_ACEOF | |
1990 | #define __DARWIN__ 1 | |
a848cd7e SC |
1991 | _ACEOF |
1992 | ||
1993 | cat >>confdefs.h <<\_ACEOF | |
1994 | #define TARGET_CARBON 1 | |
1995 | _ACEOF | |
1996 | ||
1997 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 1998 | DEFAULT_STD_FLAG=no |
a848cd7e | 1999 | ;; |
1e9e8aba DE |
2000 | powerpc-apple-macos* ) |
2001 | USE_UNIX=0 | |
2002 | ac_cv_c_bigendian=yes | |
2003 | SO_SUFFIX=shlib | |
2004 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2005 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2006 | ;; |
a848cd7e SC |
2007 | |
2008 | *-*-beos* ) | |
2009 | USE_BEOS=1 | |
2010 | cat >>confdefs.h <<\_ACEOF | |
2011 | #define __BEOS__ 1 | |
2012 | _ACEOF | |
2013 | ||
2014 | ;; | |
2015 | ||
2016 | *) | |
2017 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2018 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2019 | { (exit 1); exit 1; }; } | |
2020 | esac | |
2021 | ||
2022 | ||
2023 | ||
2024 | ||
2025 | wx_arg_cache_file="configarg.cache" | |
2026 | echo "loading argument cache $wx_arg_cache_file" | |
2027 | rm -f ${wx_arg_cache_file}.tmp | |
2028 | touch ${wx_arg_cache_file}.tmp | |
2029 | touch ${wx_arg_cache_file} | |
2030 | ||
2031 | ||
2032 | DEBUG_CONFIGURE=0 | |
2033 | if test $DEBUG_CONFIGURE = 1; then | |
2034 | DEFAULT_wxUSE_UNIVERSAL=no | |
2035 | DEFAULT_wxUSE_STL=no | |
2036 | ||
2037 | DEFAULT_wxUSE_NANOX=no | |
2038 | ||
2039 | DEFAULT_wxUSE_THREADS=yes | |
2040 | ||
2041 | DEFAULT_wxUSE_SHARED=yes | |
2042 | DEFAULT_wxUSE_OPTIMISE=no | |
2043 | DEFAULT_wxUSE_PROFILE=no | |
2044 | DEFAULT_wxUSE_NO_DEPS=no | |
2045 | DEFAULT_wxUSE_NO_RTTI=no | |
2046 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2047 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2048 | DEFAULT_wxUSE_PERMISSIVE=no |
2049 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2050 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2051 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2052 | DEFAULT_wxUSE_MEM_TRACING=no | |
2053 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2054 | DEFAULT_wxUSE_DMALLOC=no | |
2055 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2056 | ||
2057 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2058 | DEFAULT_wxUSE_LOG=yes | |
2059 | DEFAULT_wxUSE_LOGWINDOW=no | |
2060 | DEFAULT_wxUSE_LOGGUI=no | |
2061 | DEFAULT_wxUSE_LOGDIALOG=no | |
2062 | ||
2063 | DEFAULT_wxUSE_GUI=yes | |
2064 | DEFAULT_wxUSE_CONTROLS=no | |
2065 | ||
2066 | DEFAULT_wxUSE_REGEX=no | |
2067 | DEFAULT_wxUSE_XML=no | |
2068 | DEFAULT_wxUSE_EXPAT=no | |
2069 | DEFAULT_wxUSE_ZLIB=no | |
2070 | DEFAULT_wxUSE_LIBPNG=no | |
2071 | DEFAULT_wxUSE_LIBJPEG=no | |
2072 | DEFAULT_wxUSE_LIBTIFF=no | |
2073 | DEFAULT_wxUSE_LIBXPM=no | |
2074 | DEFAULT_wxUSE_LIBMSPACK=no | |
2075 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2076 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2077 | DEFAULT_wxUSE_ODBC=no |
2078 | DEFAULT_wxUSE_OPENGL=no | |
2079 | ||
2080 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2081 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2082 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2083 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2084 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2085 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2086 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2087 | DEFAULT_wxUSE_DATETIME=no | |
2088 | DEFAULT_wxUSE_TIMER=no | |
2089 | DEFAULT_wxUSE_STOPWATCH=no | |
2090 | DEFAULT_wxUSE_FILE=no | |
2091 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2092 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2093 | DEFAULT_wxUSE_TEXTBUFFER=no |
2094 | DEFAULT_wxUSE_TEXTFILE=no | |
2095 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b RL |
2096 | DEFAULT_wxUSE_MEDIACTRL=no |
2097 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2098 | DEFAULT_wxUSE_INTL=no |
2099 | DEFAULT_wxUSE_CONFIG=no | |
2100 | DEFAULT_wxUSE_FONTMAP=no | |
2101 | DEFAULT_wxUSE_STREAMS=no | |
2102 | DEFAULT_wxUSE_SOCKETS=no | |
2103 | DEFAULT_wxUSE_OLE=no | |
2104 | DEFAULT_wxUSE_DATAOBJ=no | |
2105 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2106 | DEFAULT_wxUSE_JOYSTICK=no | |
2107 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2108 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2109 | DEFAULT_wxUSE_LONGLONG=no | |
2110 | DEFAULT_wxUSE_GEOMETRY=no | |
2111 | ||
2112 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2113 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2114 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2115 | ||
2116 | DEFAULT_wxUSE_CLIPBOARD=no | |
2117 | DEFAULT_wxUSE_TOOLTIPS=no | |
2118 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2119 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2120 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2121 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2122 | |
8a7b1113 | 2123 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2124 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2125 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2126 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2127 | ||
2128 | DEFAULT_wxUSE_RESOURCES=no | |
2129 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2130 | DEFAULT_wxUSE_IPC=no | |
2131 | DEFAULT_wxUSE_HELP=no | |
2132 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2133 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2134 | DEFAULT_wxUSE_TREELAYOUT=no | |
2135 | DEFAULT_wxUSE_METAFILE=no | |
2136 | DEFAULT_wxUSE_MIMETYPE=no | |
2137 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2138 | DEFAULT_wxUSE_PROTOCOL=no | |
2139 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2140 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2141 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2142 | DEFAULT_wxUSE_URL=no | |
2143 | ||
2144 | DEFAULT_wxUSE_COMMONDLGS=no | |
2145 | DEFAULT_wxUSE_CHOICEDLG=no | |
2146 | DEFAULT_wxUSE_COLOURDLG=no | |
2147 | DEFAULT_wxUSE_DIRDLG=no | |
2148 | DEFAULT_wxUSE_FILEDLG=no | |
2149 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2150 | DEFAULT_wxUSE_FONTDLG=no | |
2151 | DEFAULT_wxUSE_MSGDLG=no | |
2152 | DEFAULT_wxUSE_NUMBERDLG=no | |
2153 | DEFAULT_wxUSE_TEXTDLG=no | |
2154 | DEFAULT_wxUSE_SPLASH=no | |
2155 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2156 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2157 | DEFAULT_wxUSE_WIZARDDLG=no | |
2158 | ||
2159 | DEFAULT_wxUSE_MENUS=no | |
2160 | DEFAULT_wxUSE_MINIFRAME=no | |
2161 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2162 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2163 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2164 | DEFAULT_wxUSE_FILESYSTEM=no |
2165 | DEFAULT_wxUSE_FS_INET=no | |
2166 | DEFAULT_wxUSE_FS_ZIP=no | |
2167 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2168 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2169 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2170 | DEFAULT_wxUSE_VALIDATORS=no |
2171 | ||
2172 | DEFAULT_wxUSE_ACCEL=no | |
2173 | DEFAULT_wxUSE_BUTTON=no | |
2174 | DEFAULT_wxUSE_BMPBUTTON=no | |
2175 | DEFAULT_wxUSE_CALCTRL=no | |
2176 | DEFAULT_wxUSE_CARET=no | |
2177 | DEFAULT_wxUSE_CHECKBOX=no | |
2178 | DEFAULT_wxUSE_CHECKLST=no | |
2179 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2180 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2181 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2182 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2183 | DEFAULT_wxUSE_DISPLAY=no |
2184 | DEFAULT_wxUSE_GAUGE=no | |
2185 | DEFAULT_wxUSE_GRID=no | |
2186 | DEFAULT_wxUSE_IMAGLIST=no | |
2187 | DEFAULT_wxUSE_LISTBOOK=no | |
2188 | DEFAULT_wxUSE_LISTBOX=no | |
2189 | DEFAULT_wxUSE_LISTCTRL=no | |
2190 | DEFAULT_wxUSE_NOTEBOOK=no | |
2191 | DEFAULT_wxUSE_RADIOBOX=no | |
2192 | DEFAULT_wxUSE_RADIOBTN=no | |
2193 | DEFAULT_wxUSE_SASH=no | |
2194 | DEFAULT_wxUSE_SCROLLBAR=no | |
2195 | DEFAULT_wxUSE_SLIDER=no | |
2196 | DEFAULT_wxUSE_SPINBTN=no | |
2197 | DEFAULT_wxUSE_SPINCTRL=no | |
2198 | DEFAULT_wxUSE_SPLITTER=no | |
2199 | DEFAULT_wxUSE_STATBMP=no | |
2200 | DEFAULT_wxUSE_STATBOX=no | |
2201 | DEFAULT_wxUSE_STATLINE=no | |
2202 | DEFAULT_wxUSE_STATTEXT=no | |
2203 | DEFAULT_wxUSE_STATUSBAR=yes | |
2204 | DEFAULT_wxUSE_TABDIALOG=no | |
2205 | DEFAULT_wxUSE_TEXTCTRL=no | |
2206 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2207 | DEFAULT_wxUSE_TOOLBAR=no | |
2208 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2209 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2210 | DEFAULT_wxUSE_TREECTRL=no | |
2211 | DEFAULT_wxUSE_POPUPWIN=no | |
2212 | DEFAULT_wxUSE_TIPWINDOW=no | |
2213 | ||
2214 | DEFAULT_wxUSE_UNICODE=no | |
2215 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2216 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2217 | ||
2218 | DEFAULT_wxUSE_PALETTE=no | |
2219 | DEFAULT_wxUSE_IMAGE=no | |
2220 | DEFAULT_wxUSE_GIF=no | |
2221 | DEFAULT_wxUSE_PCX=no | |
2222 | DEFAULT_wxUSE_PNM=no | |
2223 | DEFAULT_wxUSE_IFF=no | |
2224 | DEFAULT_wxUSE_XPM=no | |
2225 | DEFAULT_wxUSE_ICO_CUR=no | |
2226 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2227 | ||
2228 | DEFAULT_wxUSE_MONOLITHIC=no | |
2229 | DEFAULT_wxUSE_PLUGINS=no | |
2230 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2231 | else | |
2232 | DEFAULT_wxUSE_UNIVERSAL=no | |
2233 | DEFAULT_wxUSE_STL=no | |
2234 | ||
2235 | DEFAULT_wxUSE_NANOX=no | |
2236 | ||
2237 | DEFAULT_wxUSE_THREADS=yes | |
2238 | ||
2239 | DEFAULT_wxUSE_SHARED=yes | |
2240 | DEFAULT_wxUSE_OPTIMISE=yes | |
2241 | DEFAULT_wxUSE_PROFILE=no | |
2242 | DEFAULT_wxUSE_NO_DEPS=no | |
2243 | DEFAULT_wxUSE_NO_RTTI=no | |
2244 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2245 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2246 | DEFAULT_wxUSE_PERMISSIVE=no |
2247 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2248 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2249 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2250 | DEFAULT_wxUSE_MEM_TRACING=no | |
2251 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2252 | DEFAULT_wxUSE_DMALLOC=no | |
2253 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2254 | ||
2255 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2256 | DEFAULT_wxUSE_LOG=yes | |
2257 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2258 | DEFAULT_wxUSE_LOGGUI=yes | |
2259 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2260 | ||
2261 | DEFAULT_wxUSE_GUI=yes | |
2262 | ||
2263 | DEFAULT_wxUSE_REGEX=yes | |
2264 | DEFAULT_wxUSE_XML=yes | |
2265 | DEFAULT_wxUSE_EXPAT=yes | |
2266 | DEFAULT_wxUSE_ZLIB=yes | |
2267 | DEFAULT_wxUSE_LIBPNG=yes | |
2268 | DEFAULT_wxUSE_LIBJPEG=yes | |
2269 | DEFAULT_wxUSE_LIBTIFF=yes | |
2270 | DEFAULT_wxUSE_LIBXPM=yes | |
2271 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2272 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2273 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e | 2274 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2275 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2276 | |
2277 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2278 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2279 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2280 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2281 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2282 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2283 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2284 | DEFAULT_wxUSE_DATETIME=yes | |
2285 | DEFAULT_wxUSE_TIMER=yes | |
2286 | DEFAULT_wxUSE_STOPWATCH=yes | |
2287 | DEFAULT_wxUSE_FILE=yes | |
2288 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2289 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2290 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2291 | DEFAULT_wxUSE_TEXTFILE=yes | |
2292 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2293 | DEFAULT_wxUSE_MEDIACTRL=no |
2294 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2295 | DEFAULT_wxUSE_INTL=yes |
2296 | DEFAULT_wxUSE_CONFIG=yes | |
2297 | DEFAULT_wxUSE_FONTMAP=yes | |
2298 | DEFAULT_wxUSE_STREAMS=yes | |
2299 | DEFAULT_wxUSE_SOCKETS=yes | |
2300 | DEFAULT_wxUSE_OLE=yes | |
2301 | DEFAULT_wxUSE_DATAOBJ=yes | |
2302 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2303 | DEFAULT_wxUSE_JOYSTICK=yes | |
2304 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2305 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2306 | DEFAULT_wxUSE_LONGLONG=yes | |
2307 | DEFAULT_wxUSE_GEOMETRY=yes | |
2308 | ||
2309 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2310 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2311 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2312 | ||
2313 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2314 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2315 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2316 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2317 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2318 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2319 | |
8a7b1113 | 2320 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2321 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2322 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2323 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2324 | ||
2325 | DEFAULT_wxUSE_RESOURCES=no | |
2326 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2327 | DEFAULT_wxUSE_IPC=yes | |
2328 | DEFAULT_wxUSE_HELP=yes | |
2329 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2330 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2331 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2332 | DEFAULT_wxUSE_METAFILE=yes | |
2333 | DEFAULT_wxUSE_MIMETYPE=yes | |
2334 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2335 | DEFAULT_wxUSE_PROTOCOL=yes | |
2336 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2337 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2338 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2339 | DEFAULT_wxUSE_URL=yes | |
2340 | ||
2341 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2342 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2343 | DEFAULT_wxUSE_COLOURDLG=yes | |
2344 | DEFAULT_wxUSE_DIRDLG=yes | |
2345 | DEFAULT_wxUSE_FILEDLG=yes | |
2346 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2347 | DEFAULT_wxUSE_FONTDLG=yes | |
2348 | DEFAULT_wxUSE_MSGDLG=yes | |
2349 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2350 | DEFAULT_wxUSE_TEXTDLG=yes | |
2351 | DEFAULT_wxUSE_SPLASH=yes | |
2352 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2353 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2354 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2355 | ||
2356 | DEFAULT_wxUSE_MENUS=yes | |
2357 | DEFAULT_wxUSE_MINIFRAME=yes | |
2358 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2359 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2360 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2361 | DEFAULT_wxUSE_FILESYSTEM=yes |
2362 | DEFAULT_wxUSE_FS_INET=yes | |
2363 | DEFAULT_wxUSE_FS_ZIP=yes | |
2364 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2365 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2366 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2367 | DEFAULT_wxUSE_VALIDATORS=yes |
2368 | ||
2369 | DEFAULT_wxUSE_ACCEL=yes | |
2370 | DEFAULT_wxUSE_BUTTON=yes | |
2371 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2372 | DEFAULT_wxUSE_CALCTRL=yes | |
2373 | DEFAULT_wxUSE_CARET=yes | |
2374 | DEFAULT_wxUSE_CHECKBOX=yes | |
2375 | DEFAULT_wxUSE_CHECKLST=yes | |
2376 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2377 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2378 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2379 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2380 | DEFAULT_wxUSE_DISPLAY=yes |
2381 | DEFAULT_wxUSE_GAUGE=yes | |
2382 | DEFAULT_wxUSE_GRID=yes | |
2383 | DEFAULT_wxUSE_IMAGLIST=yes | |
2384 | DEFAULT_wxUSE_LISTBOOK=yes | |
2385 | DEFAULT_wxUSE_LISTBOX=yes | |
2386 | DEFAULT_wxUSE_LISTCTRL=yes | |
2387 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2388 | DEFAULT_wxUSE_RADIOBOX=yes | |
2389 | DEFAULT_wxUSE_RADIOBTN=yes | |
2390 | DEFAULT_wxUSE_SASH=yes | |
2391 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2392 | DEFAULT_wxUSE_SLIDER=yes | |
2393 | DEFAULT_wxUSE_SPINBTN=yes | |
2394 | DEFAULT_wxUSE_SPINCTRL=yes | |
2395 | DEFAULT_wxUSE_SPLITTER=yes | |
2396 | DEFAULT_wxUSE_STATBMP=yes | |
2397 | DEFAULT_wxUSE_STATBOX=yes | |
2398 | DEFAULT_wxUSE_STATLINE=yes | |
2399 | DEFAULT_wxUSE_STATTEXT=yes | |
2400 | DEFAULT_wxUSE_STATUSBAR=yes | |
2401 | DEFAULT_wxUSE_TABDIALOG=no | |
2402 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2403 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2404 | DEFAULT_wxUSE_TOOLBAR=yes | |
2405 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2406 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2407 | DEFAULT_wxUSE_TREECTRL=yes | |
2408 | DEFAULT_wxUSE_POPUPWIN=yes | |
2409 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2410 | ||
78de529b | 2411 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2412 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2413 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2414 | ||
2415 | DEFAULT_wxUSE_PALETTE=yes | |
2416 | DEFAULT_wxUSE_IMAGE=yes | |
2417 | DEFAULT_wxUSE_GIF=yes | |
2418 | DEFAULT_wxUSE_PCX=yes | |
2419 | DEFAULT_wxUSE_IFF=no | |
2420 | DEFAULT_wxUSE_PNM=yes | |
2421 | DEFAULT_wxUSE_XPM=yes | |
2422 | DEFAULT_wxUSE_ICO_CUR=yes | |
2423 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2424 | ||
2425 | DEFAULT_wxUSE_MONOLITHIC=no | |
2426 | DEFAULT_wxUSE_PLUGINS=no | |
2427 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2428 | |
f34ca037 | 2429 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2430 | fi |
2431 | ||
2432 | ||
2433 | ||
f34ca037 | 2434 | |
a848cd7e SC |
2435 | for toolkit in `echo $ALL_TOOLKITS`; do |
2436 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2437 | if test "x$LINE" != "x" ; then | |
2438 | has_toolkit_in_cache=1 | |
2439 | eval "DEFAULT_$LINE" | |
2440 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2441 | |
2442 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2443 | if test "x$LINE" != "x" ; then | |
2444 | eval "DEFAULT_$LINE" | |
2445 | fi | |
a848cd7e SC |
2446 | fi |
2447 | done | |
2448 | ||
2449 | ||
2450 | ||
2451 | enablestring= | |
2452 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2453 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2454 | no_cache=0 | |
2455 | # Check whether --enable-gui or --disable-gui was given. | |
2456 | if test "${enable_gui+set}" = set; then | |
2457 | enableval="$enable_gui" | |
2458 | ||
2459 | if test "$enableval" = yes; then | |
2460 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2461 | else | |
2462 | ac_cv_use_gui='wxUSE_GUI=no' | |
2463 | fi | |
2464 | ||
2465 | else | |
2466 | ||
2467 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2468 | if test "x$LINE" != x ; then | |
2469 | eval "DEFAULT_$LINE" | |
2470 | else | |
2471 | no_cache=1 | |
2472 | fi | |
2473 | ||
2474 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2475 | ||
2476 | fi; | |
2477 | ||
2478 | eval "$ac_cv_use_gui" | |
2479 | if test "$no_cache" != 1; then | |
2480 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2481 | fi | |
2482 | ||
2483 | if test "$wxUSE_GUI" = yes; then | |
2484 | echo "$as_me:$LINENO: result: yes" >&5 | |
2485 | echo "${ECHO_T}yes" >&6 | |
2486 | else | |
2487 | echo "$as_me:$LINENO: result: no" >&5 | |
2488 | echo "${ECHO_T}no" >&6 | |
2489 | fi | |
2490 | ||
2491 | ||
2492 | enablestring= | |
2493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2494 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2495 | no_cache=0 | |
2496 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2497 | if test "${enable_monolithic+set}" = set; then | |
2498 | enableval="$enable_monolithic" | |
2499 | ||
2500 | if test "$enableval" = yes; then | |
2501 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2502 | else | |
2503 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2504 | fi | |
2505 | ||
2506 | else | |
2507 | ||
2508 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2509 | if test "x$LINE" != x ; then | |
2510 | eval "DEFAULT_$LINE" | |
2511 | else | |
2512 | no_cache=1 | |
2513 | fi | |
2514 | ||
2515 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2516 | ||
2517 | fi; | |
2518 | ||
2519 | eval "$ac_cv_use_monolithic" | |
2520 | if test "$no_cache" != 1; then | |
2521 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2522 | fi | |
2523 | ||
2524 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2525 | echo "$as_me:$LINENO: result: yes" >&5 | |
2526 | echo "${ECHO_T}yes" >&6 | |
2527 | else | |
2528 | echo "$as_me:$LINENO: result: no" >&5 | |
2529 | echo "${ECHO_T}no" >&6 | |
2530 | fi | |
2531 | ||
2532 | ||
2533 | enablestring= | |
2534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2535 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2536 | no_cache=0 | |
2537 | # Check whether --enable-plugins or --disable-plugins was given. | |
2538 | if test "${enable_plugins+set}" = set; then | |
2539 | enableval="$enable_plugins" | |
2540 | ||
2541 | if test "$enableval" = yes; then | |
2542 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2543 | else | |
2544 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2545 | fi | |
2546 | ||
2547 | else | |
2548 | ||
2549 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2550 | if test "x$LINE" != x ; then | |
2551 | eval "DEFAULT_$LINE" | |
2552 | else | |
2553 | no_cache=1 | |
2554 | fi | |
2555 | ||
2556 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2557 | ||
2558 | fi; | |
2559 | ||
2560 | eval "$ac_cv_use_plugins" | |
2561 | if test "$no_cache" != 1; then | |
2562 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2563 | fi | |
2564 | ||
2565 | if test "$wxUSE_PLUGINS" = yes; then | |
2566 | echo "$as_me:$LINENO: result: yes" >&5 | |
2567 | echo "${ECHO_T}yes" >&6 | |
2568 | else | |
2569 | echo "$as_me:$LINENO: result: no" >&5 | |
2570 | echo "${ECHO_T}no" >&6 | |
2571 | fi | |
2572 | ||
2573 | ||
2574 | if test "$wxUSE_GUI" = "yes"; then | |
2575 | ||
2576 | ||
2577 | enablestring= | |
2578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2579 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2580 | no_cache=0 | |
2581 | # Check whether --enable-universal or --disable-universal was given. | |
2582 | if test "${enable_universal+set}" = set; then | |
2583 | enableval="$enable_universal" | |
2584 | ||
2585 | if test "$enableval" = yes; then | |
2586 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2587 | else | |
2588 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2589 | fi | |
2590 | ||
2591 | else | |
2592 | ||
2593 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2594 | if test "x$LINE" != x ; then | |
2595 | eval "DEFAULT_$LINE" | |
2596 | else | |
2597 | no_cache=1 | |
2598 | fi | |
2599 | ||
2600 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2601 | ||
2602 | fi; | |
2603 | ||
2604 | eval "$ac_cv_use_universal" | |
2605 | if test "$no_cache" != 1; then | |
2606 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2607 | fi | |
2608 | ||
2609 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2610 | echo "$as_me:$LINENO: result: yes" >&5 | |
2611 | echo "${ECHO_T}yes" >&6 | |
2612 | else | |
2613 | echo "$as_me:$LINENO: result: no" >&5 | |
2614 | echo "${ECHO_T}no" >&6 | |
2615 | fi | |
2616 | ||
2617 | ||
2618 | # Check whether --with-gtk or --without-gtk was given. | |
2619 | if test "${with_gtk+set}" = set; then | |
2620 | withval="$with_gtk" | |
2621 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2622 | fi; | |
2623 | ||
2624 | # Check whether --with-motif or --without-motif was given. | |
2625 | if test "${with_motif+set}" = set; then | |
2626 | withval="$with_motif" | |
2627 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2628 | fi; | |
2629 | ||
2630 | # Check whether --with-mac or --without-mac was given. | |
2631 | if test "${with_mac+set}" = set; then | |
2632 | withval="$with_mac" | |
c228d3a4 | 2633 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2634 | fi; |
2635 | ||
2636 | # Check whether --with-cocoa or --without-cocoa was given. | |
2637 | if test "${with_cocoa+set}" = set; then | |
2638 | withval="$with_cocoa" | |
c228d3a4 | 2639 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2640 | fi; |
2641 | ||
2642 | # Check whether --with-wine or --without-wine was given. | |
2643 | if test "${with_wine+set}" = set; then | |
2644 | withval="$with_wine" | |
2645 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2646 | fi; | |
2647 | ||
2648 | # Check whether --with-msw or --without-msw was given. | |
2649 | if test "${with_msw+set}" = set; then | |
2650 | withval="$with_msw" | |
2651 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2652 | fi; | |
2653 | ||
2654 | # Check whether --with-pm or --without-pm was given. | |
2655 | if test "${with_pm+set}" = set; then | |
2656 | withval="$with_pm" | |
2657 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2658 | fi; | |
2659 | ||
2660 | # Check whether --with-mgl or --without-mgl was given. | |
2661 | if test "${with_mgl+set}" = set; then | |
2662 | withval="$with_mgl" | |
2663 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2664 | fi; | |
2665 | ||
2666 | # Check whether --with-microwin or --without-microwin was given. | |
2667 | if test "${with_microwin+set}" = set; then | |
2668 | withval="$with_microwin" | |
2669 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2670 | fi; | |
2671 | ||
2672 | # Check whether --with-x11 or --without-x11 was given. | |
2673 | if test "${with_x11+set}" = set; then | |
2674 | withval="$with_x11" | |
2675 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2676 | fi; | |
2677 | ||
2678 | enablestring= | |
2679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2680 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2681 | no_cache=0 | |
2682 | # Check whether --enable-nanox or --disable-nanox was given. | |
2683 | if test "${enable_nanox+set}" = set; then | |
2684 | enableval="$enable_nanox" | |
2685 | ||
2686 | if test "$enableval" = yes; then | |
2687 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2688 | else | |
2689 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2690 | fi | |
2691 | ||
2692 | else | |
2693 | ||
2694 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2695 | if test "x$LINE" != x ; then | |
2696 | eval "DEFAULT_$LINE" | |
2697 | else | |
2698 | no_cache=1 | |
2699 | fi | |
2700 | ||
2701 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2702 | ||
2703 | fi; | |
2704 | ||
2705 | eval "$ac_cv_use_nanox" | |
2706 | if test "$no_cache" != 1; then | |
2707 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2708 | fi | |
2709 | ||
2710 | if test "$wxUSE_NANOX" = yes; then | |
2711 | echo "$as_me:$LINENO: result: yes" >&5 | |
2712 | echo "${ECHO_T}yes" >&6 | |
2713 | else | |
2714 | echo "$as_me:$LINENO: result: no" >&5 | |
2715 | echo "${ECHO_T}no" >&6 | |
2716 | fi | |
2717 | ||
2718 | ||
f34ca037 MW |
2719 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2720 | if test "${enable_gtk2+set}" = set; then | |
2721 | enableval="$enable_gtk2" | |
2722 | wxUSE_GTK2="$enableval" | |
2723 | fi; | |
a848cd7e | 2724 | |
a848cd7e SC |
2725 | enablestring= |
2726 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2727 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2728 | no_cache=0 | |
2729 | # Check whether --enable-gpe or --disable-gpe was given. | |
2730 | if test "${enable_gpe+set}" = set; then | |
2731 | enableval="$enable_gpe" | |
2732 | ||
2733 | if test "$enableval" = yes; then | |
2734 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2735 | else | |
2736 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2737 | fi | |
2738 | ||
2739 | else | |
2740 | ||
2741 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2742 | if test "x$LINE" != x ; then | |
2743 | eval "DEFAULT_$LINE" | |
2744 | else | |
2745 | no_cache=1 | |
2746 | fi | |
2747 | ||
2748 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2749 | ||
2750 | fi; | |
2751 | ||
2752 | eval "$ac_cv_use_gpe" | |
2753 | if test "$no_cache" != 1; then | |
2754 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2755 | fi | |
2756 | ||
2757 | if test "$wxUSE_GPE" = yes; then | |
2758 | echo "$as_me:$LINENO: result: yes" >&5 | |
2759 | echo "${ECHO_T}yes" >&6 | |
2760 | else | |
2761 | echo "$as_me:$LINENO: result: no" >&5 | |
2762 | echo "${ECHO_T}no" >&6 | |
2763 | fi | |
2764 | ||
2765 | ||
2766 | ||
2767 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2768 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2769 | no_cache=0 | |
2770 | ||
2771 | # Check whether --with-libpng or --without-libpng was given. | |
2772 | if test "${with_libpng+set}" = set; then | |
2773 | withval="$with_libpng" | |
2774 | ||
2775 | if test "$withval" = yes; then | |
2776 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2777 | elif test "$withval" = no; then | |
2778 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2779 | elif test "$withval" = sys; then | |
2780 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2781 | elif test "$withval" = builtin; then | |
2782 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2783 | else | |
2784 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2785 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2786 | { (exit 1); exit 1; }; } | |
2787 | fi | |
2788 | ||
2789 | else | |
2790 | ||
2791 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2792 | if test "x$LINE" != x ; then | |
2793 | eval "DEFAULT_$LINE" | |
2794 | else | |
2795 | no_cache=1 | |
2796 | fi | |
2797 | ||
2798 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2799 | ||
2800 | fi; | |
2801 | ||
2802 | eval "$ac_cv_use_libpng" | |
2803 | if test "$no_cache" != 1; then | |
2804 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2805 | fi | |
2806 | ||
2807 | if test "$wxUSE_LIBPNG" = yes; then | |
2808 | echo "$as_me:$LINENO: result: yes" >&5 | |
2809 | echo "${ECHO_T}yes" >&6 | |
2810 | elif test "$wxUSE_LIBPNG" = no; then | |
2811 | echo "$as_me:$LINENO: result: no" >&5 | |
2812 | echo "${ECHO_T}no" >&6 | |
2813 | elif test "$wxUSE_LIBPNG" = sys; then | |
2814 | echo "$as_me:$LINENO: result: system version" >&5 | |
2815 | echo "${ECHO_T}system version" >&6 | |
2816 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2817 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2818 | echo "${ECHO_T}builtin version" >&6 | |
2819 | else | |
2820 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2821 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2822 | { (exit 1); exit 1; }; } | |
2823 | fi | |
2824 | ||
2825 | ||
2826 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2827 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2828 | no_cache=0 | |
2829 | ||
2830 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2831 | if test "${with_libjpeg+set}" = set; then | |
2832 | withval="$with_libjpeg" | |
2833 | ||
2834 | if test "$withval" = yes; then | |
2835 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2836 | elif test "$withval" = no; then | |
2837 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2838 | elif test "$withval" = sys; then | |
2839 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2840 | elif test "$withval" = builtin; then | |
2841 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2842 | else | |
2843 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2844 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2845 | { (exit 1); exit 1; }; } | |
2846 | fi | |
2847 | ||
2848 | else | |
2849 | ||
2850 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2851 | if test "x$LINE" != x ; then | |
2852 | eval "DEFAULT_$LINE" | |
2853 | else | |
2854 | no_cache=1 | |
2855 | fi | |
2856 | ||
2857 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2858 | ||
2859 | fi; | |
2860 | ||
2861 | eval "$ac_cv_use_libjpeg" | |
2862 | if test "$no_cache" != 1; then | |
2863 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2864 | fi | |
2865 | ||
2866 | if test "$wxUSE_LIBJPEG" = yes; then | |
2867 | echo "$as_me:$LINENO: result: yes" >&5 | |
2868 | echo "${ECHO_T}yes" >&6 | |
2869 | elif test "$wxUSE_LIBJPEG" = no; then | |
2870 | echo "$as_me:$LINENO: result: no" >&5 | |
2871 | echo "${ECHO_T}no" >&6 | |
2872 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2873 | echo "$as_me:$LINENO: result: system version" >&5 | |
2874 | echo "${ECHO_T}system version" >&6 | |
2875 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2876 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2877 | echo "${ECHO_T}builtin version" >&6 | |
2878 | else | |
2879 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2880 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2881 | { (exit 1); exit 1; }; } | |
2882 | fi | |
2883 | ||
2884 | ||
2885 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2886 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2887 | no_cache=0 | |
2888 | ||
2889 | # Check whether --with-libtiff or --without-libtiff was given. | |
2890 | if test "${with_libtiff+set}" = set; then | |
2891 | withval="$with_libtiff" | |
2892 | ||
2893 | if test "$withval" = yes; then | |
2894 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2895 | elif test "$withval" = no; then | |
2896 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2897 | elif test "$withval" = sys; then | |
2898 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2899 | elif test "$withval" = builtin; then | |
2900 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2901 | else | |
2902 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2903 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2904 | { (exit 1); exit 1; }; } | |
2905 | fi | |
2906 | ||
2907 | else | |
2908 | ||
2909 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2910 | if test "x$LINE" != x ; then | |
2911 | eval "DEFAULT_$LINE" | |
2912 | else | |
2913 | no_cache=1 | |
2914 | fi | |
2915 | ||
2916 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2917 | ||
2918 | fi; | |
2919 | ||
2920 | eval "$ac_cv_use_libtiff" | |
2921 | if test "$no_cache" != 1; then | |
2922 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2923 | fi | |
2924 | ||
2925 | if test "$wxUSE_LIBTIFF" = yes; then | |
2926 | echo "$as_me:$LINENO: result: yes" >&5 | |
2927 | echo "${ECHO_T}yes" >&6 | |
2928 | elif test "$wxUSE_LIBTIFF" = no; then | |
2929 | echo "$as_me:$LINENO: result: no" >&5 | |
2930 | echo "${ECHO_T}no" >&6 | |
2931 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2932 | echo "$as_me:$LINENO: result: system version" >&5 | |
2933 | echo "${ECHO_T}system version" >&6 | |
2934 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2935 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2936 | echo "${ECHO_T}builtin version" >&6 | |
2937 | else | |
2938 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2939 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2940 | { (exit 1); exit 1; }; } | |
2941 | fi | |
2942 | ||
2943 | ||
2944 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2945 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2946 | no_cache=0 | |
2947 | ||
2948 | # Check whether --with-libxpm or --without-libxpm was given. | |
2949 | if test "${with_libxpm+set}" = set; then | |
2950 | withval="$with_libxpm" | |
2951 | ||
2952 | if test "$withval" = yes; then | |
2953 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2954 | elif test "$withval" = no; then | |
2955 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2956 | elif test "$withval" = sys; then | |
2957 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2958 | elif test "$withval" = builtin; then | |
2959 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2960 | else | |
2961 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2962 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2963 | { (exit 1); exit 1; }; } | |
2964 | fi | |
2965 | ||
2966 | else | |
2967 | ||
2968 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2969 | if test "x$LINE" != x ; then | |
2970 | eval "DEFAULT_$LINE" | |
2971 | else | |
2972 | no_cache=1 | |
2973 | fi | |
2974 | ||
2975 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2976 | ||
2977 | fi; | |
2978 | ||
2979 | eval "$ac_cv_use_libxpm" | |
2980 | if test "$no_cache" != 1; then | |
2981 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2982 | fi | |
2983 | ||
2984 | if test "$wxUSE_LIBXPM" = yes; then | |
2985 | echo "$as_me:$LINENO: result: yes" >&5 | |
2986 | echo "${ECHO_T}yes" >&6 | |
2987 | elif test "$wxUSE_LIBXPM" = no; then | |
2988 | echo "$as_me:$LINENO: result: no" >&5 | |
2989 | echo "${ECHO_T}no" >&6 | |
2990 | elif test "$wxUSE_LIBXPM" = sys; then | |
2991 | echo "$as_me:$LINENO: result: system version" >&5 | |
2992 | echo "${ECHO_T}system version" >&6 | |
2993 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2994 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2995 | echo "${ECHO_T}builtin version" >&6 | |
2996 | else | |
2997 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2998 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2999 | { (exit 1); exit 1; }; } | |
3000 | fi | |
3001 | ||
3002 | ||
3003 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3004 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3005 | no_cache=0 | |
3006 | ||
3007 | # Check whether --with-libmspack or --without-libmspack was given. | |
3008 | if test "${with_libmspack+set}" = set; then | |
3009 | withval="$with_libmspack" | |
3010 | ||
3011 | if test "$withval" = yes; then | |
3012 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3013 | else | |
3014 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3015 | fi | |
3016 | ||
3017 | else | |
3018 | ||
3019 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3020 | if test "x$LINE" != x ; then | |
3021 | eval "DEFAULT_$LINE" | |
3022 | else | |
3023 | no_cache=1 | |
3024 | fi | |
3025 | ||
3026 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3027 | ||
3028 | fi; | |
3029 | ||
3030 | eval "$ac_cv_use_libmspack" | |
3031 | if test "$no_cache" != 1; then | |
3032 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3033 | fi | |
3034 | ||
3035 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3036 | echo "$as_me:$LINENO: result: yes" >&5 | |
3037 | echo "${ECHO_T}yes" >&6 | |
3038 | else | |
3039 | echo "$as_me:$LINENO: result: no" >&5 | |
3040 | echo "${ECHO_T}no" >&6 | |
3041 | fi | |
3042 | ||
3043 | ||
3044 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3045 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3046 | no_cache=0 | |
3047 | ||
3048 | # Check whether --with-sdl or --without-sdl was given. | |
3049 | if test "${with_sdl+set}" = set; then | |
3050 | withval="$with_sdl" | |
3051 | ||
3052 | if test "$withval" = yes; then | |
3053 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3054 | else | |
3055 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3056 | fi | |
3057 | ||
3058 | else | |
3059 | ||
3060 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3061 | if test "x$LINE" != x ; then | |
3062 | eval "DEFAULT_$LINE" | |
3063 | else | |
3064 | no_cache=1 | |
3065 | fi | |
3066 | ||
3067 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3068 | ||
3069 | fi; | |
3070 | ||
3071 | eval "$ac_cv_use_sdl" | |
3072 | if test "$no_cache" != 1; then | |
3073 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3074 | fi | |
3075 | ||
3076 | if test "$wxUSE_LIBSDL" = yes; then | |
3077 | echo "$as_me:$LINENO: result: yes" >&5 | |
3078 | echo "${ECHO_T}yes" >&6 | |
3079 | else | |
3080 | echo "$as_me:$LINENO: result: no" >&5 | |
3081 | echo "${ECHO_T}no" >&6 | |
3082 | fi | |
3083 | ||
3084 | ||
d1c38808 VZ |
3085 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3086 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3087 | no_cache=0 | |
3088 | ||
3089 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3090 | if test "${with_gnomeprint+set}" = set; then | |
3091 | withval="$with_gnomeprint" | |
3092 | ||
3093 | if test "$withval" = yes; then | |
3094 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3095 | else | |
3096 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3097 | fi | |
3098 | ||
3099 | else | |
3100 | ||
3101 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3102 | if test "x$LINE" != x ; then | |
3103 | eval "DEFAULT_$LINE" | |
3104 | else | |
3105 | no_cache=1 | |
3106 | fi | |
3107 | ||
3108 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3109 | ||
3110 | fi; | |
3111 | ||
3112 | eval "$ac_cv_use_gnomeprint" | |
3113 | if test "$no_cache" != 1; then | |
3114 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3115 | fi | |
3116 | ||
3117 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3118 | echo "$as_me:$LINENO: result: yes" >&5 | |
3119 | echo "${ECHO_T}yes" >&6 | |
3120 | else | |
3121 | echo "$as_me:$LINENO: result: no" >&5 | |
3122 | echo "${ECHO_T}no" >&6 | |
3123 | fi | |
3124 | ||
3125 | ||
a848cd7e SC |
3126 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3127 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3128 | no_cache=0 | |
3129 | ||
3130 | # Check whether --with-opengl or --without-opengl was given. | |
3131 | if test "${with_opengl+set}" = set; then | |
3132 | withval="$with_opengl" | |
3133 | ||
3134 | if test "$withval" = yes; then | |
3135 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3136 | else | |
3137 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3138 | fi | |
3139 | ||
3140 | else | |
3141 | ||
3142 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3143 | if test "x$LINE" != x ; then | |
3144 | eval "DEFAULT_$LINE" | |
3145 | else | |
3146 | no_cache=1 | |
3147 | fi | |
3148 | ||
3149 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3150 | ||
3151 | fi; | |
3152 | ||
3153 | eval "$ac_cv_use_opengl" | |
3154 | if test "$no_cache" != 1; then | |
3155 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3156 | fi | |
3157 | ||
3158 | if test "$wxUSE_OPENGL" = yes; then | |
3159 | echo "$as_me:$LINENO: result: yes" >&5 | |
3160 | echo "${ECHO_T}yes" >&6 | |
3161 | else | |
3162 | echo "$as_me:$LINENO: result: no" >&5 | |
3163 | echo "${ECHO_T}no" >&6 | |
3164 | fi | |
3165 | ||
3166 | ||
3167 | fi | |
3168 | ||
3169 | ||
3170 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3171 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3172 | no_cache=0 | |
3173 | ||
3174 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3175 | if test "${with_dmalloc+set}" = set; then | |
3176 | withval="$with_dmalloc" | |
3177 | ||
3178 | if test "$withval" = yes; then | |
3179 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3180 | else | |
3181 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3182 | fi | |
3183 | ||
3184 | else | |
3185 | ||
3186 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3187 | if test "x$LINE" != x ; then | |
3188 | eval "DEFAULT_$LINE" | |
3189 | else | |
3190 | no_cache=1 | |
3191 | fi | |
3192 | ||
3193 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3194 | ||
3195 | fi; | |
3196 | ||
3197 | eval "$ac_cv_use_dmalloc" | |
3198 | if test "$no_cache" != 1; then | |
3199 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3200 | fi | |
3201 | ||
3202 | if test "$wxUSE_DMALLOC" = yes; then | |
3203 | echo "$as_me:$LINENO: result: yes" >&5 | |
3204 | echo "${ECHO_T}yes" >&6 | |
3205 | else | |
3206 | echo "$as_me:$LINENO: result: no" >&5 | |
3207 | echo "${ECHO_T}no" >&6 | |
3208 | fi | |
3209 | ||
3210 | ||
3211 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3212 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3213 | no_cache=0 | |
3214 | ||
3215 | # Check whether --with-regex or --without-regex was given. | |
3216 | if test "${with_regex+set}" = set; then | |
3217 | withval="$with_regex" | |
3218 | ||
3219 | if test "$withval" = yes; then | |
3220 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3221 | elif test "$withval" = no; then | |
3222 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3223 | elif test "$withval" = sys; then | |
3224 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3225 | elif test "$withval" = builtin; then | |
3226 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3227 | else | |
3228 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3229 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3230 | { (exit 1); exit 1; }; } | |
3231 | fi | |
3232 | ||
3233 | else | |
3234 | ||
3235 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3236 | if test "x$LINE" != x ; then | |
3237 | eval "DEFAULT_$LINE" | |
3238 | else | |
3239 | no_cache=1 | |
3240 | fi | |
3241 | ||
3242 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3243 | ||
3244 | fi; | |
3245 | ||
3246 | eval "$ac_cv_use_regex" | |
3247 | if test "$no_cache" != 1; then | |
3248 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3249 | fi | |
3250 | ||
3251 | if test "$wxUSE_REGEX" = yes; then | |
3252 | echo "$as_me:$LINENO: result: yes" >&5 | |
3253 | echo "${ECHO_T}yes" >&6 | |
3254 | elif test "$wxUSE_REGEX" = no; then | |
3255 | echo "$as_me:$LINENO: result: no" >&5 | |
3256 | echo "${ECHO_T}no" >&6 | |
3257 | elif test "$wxUSE_REGEX" = sys; then | |
3258 | echo "$as_me:$LINENO: result: system version" >&5 | |
3259 | echo "${ECHO_T}system version" >&6 | |
3260 | elif test "$wxUSE_REGEX" = builtin; then | |
3261 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3262 | echo "${ECHO_T}builtin version" >&6 | |
3263 | else | |
3264 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3265 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3266 | { (exit 1); exit 1; }; } | |
3267 | fi | |
3268 | ||
3269 | ||
3270 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3271 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3272 | no_cache=0 | |
3273 | ||
3274 | # Check whether --with-zlib or --without-zlib was given. | |
3275 | if test "${with_zlib+set}" = set; then | |
3276 | withval="$with_zlib" | |
3277 | ||
3278 | if test "$withval" = yes; then | |
3279 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3280 | elif test "$withval" = no; then | |
3281 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3282 | elif test "$withval" = sys; then | |
3283 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3284 | elif test "$withval" = builtin; then | |
3285 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3286 | else | |
3287 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3288 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3289 | { (exit 1); exit 1; }; } | |
3290 | fi | |
3291 | ||
3292 | else | |
3293 | ||
3294 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3295 | if test "x$LINE" != x ; then | |
3296 | eval "DEFAULT_$LINE" | |
3297 | else | |
3298 | no_cache=1 | |
3299 | fi | |
3300 | ||
3301 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3302 | ||
3303 | fi; | |
3304 | ||
3305 | eval "$ac_cv_use_zlib" | |
3306 | if test "$no_cache" != 1; then | |
3307 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3308 | fi | |
3309 | ||
3310 | if test "$wxUSE_ZLIB" = yes; then | |
3311 | echo "$as_me:$LINENO: result: yes" >&5 | |
3312 | echo "${ECHO_T}yes" >&6 | |
3313 | elif test "$wxUSE_ZLIB" = no; then | |
3314 | echo "$as_me:$LINENO: result: no" >&5 | |
3315 | echo "${ECHO_T}no" >&6 | |
3316 | elif test "$wxUSE_ZLIB" = sys; then | |
3317 | echo "$as_me:$LINENO: result: system version" >&5 | |
3318 | echo "${ECHO_T}system version" >&6 | |
3319 | elif test "$wxUSE_ZLIB" = builtin; then | |
3320 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3321 | echo "${ECHO_T}builtin version" >&6 | |
3322 | else | |
3323 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3324 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3325 | { (exit 1); exit 1; }; } | |
3326 | fi | |
3327 | ||
3328 | ||
3329 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3330 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3331 | no_cache=0 | |
3332 | ||
3333 | # Check whether --with-odbc or --without-odbc was given. | |
3334 | if test "${with_odbc+set}" = set; then | |
3335 | withval="$with_odbc" | |
3336 | ||
3337 | if test "$withval" = yes; then | |
3338 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3339 | elif test "$withval" = no; then | |
3340 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3341 | elif test "$withval" = sys; then | |
3342 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3343 | elif test "$withval" = builtin; then | |
3344 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3345 | else | |
3346 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3347 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3348 | { (exit 1); exit 1; }; } | |
3349 | fi | |
3350 | ||
3351 | else | |
3352 | ||
3353 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3354 | if test "x$LINE" != x ; then | |
3355 | eval "DEFAULT_$LINE" | |
3356 | else | |
3357 | no_cache=1 | |
3358 | fi | |
3359 | ||
3360 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3361 | ||
3362 | fi; | |
3363 | ||
3364 | eval "$ac_cv_use_odbc" | |
3365 | if test "$no_cache" != 1; then | |
3366 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3367 | fi | |
3368 | ||
3369 | if test "$wxUSE_ODBC" = yes; then | |
3370 | echo "$as_me:$LINENO: result: yes" >&5 | |
3371 | echo "${ECHO_T}yes" >&6 | |
3372 | elif test "$wxUSE_ODBC" = no; then | |
3373 | echo "$as_me:$LINENO: result: no" >&5 | |
3374 | echo "${ECHO_T}no" >&6 | |
3375 | elif test "$wxUSE_ODBC" = sys; then | |
3376 | echo "$as_me:$LINENO: result: system version" >&5 | |
3377 | echo "${ECHO_T}system version" >&6 | |
3378 | elif test "$wxUSE_ODBC" = builtin; then | |
3379 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3380 | echo "${ECHO_T}builtin version" >&6 | |
3381 | else | |
3382 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3383 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3384 | { (exit 1); exit 1; }; } | |
3385 | fi | |
3386 | ||
3387 | ||
3388 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3389 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3390 | no_cache=0 | |
3391 | ||
3392 | # Check whether --with-expat or --without-expat was given. | |
3393 | if test "${with_expat+set}" = set; then | |
3394 | withval="$with_expat" | |
3395 | ||
3396 | if test "$withval" = yes; then | |
3397 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3398 | elif test "$withval" = no; then | |
3399 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3400 | elif test "$withval" = sys; then | |
3401 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3402 | elif test "$withval" = builtin; then | |
3403 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3404 | else | |
3405 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3406 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3407 | { (exit 1); exit 1; }; } | |
3408 | fi | |
3409 | ||
3410 | else | |
3411 | ||
3412 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3413 | if test "x$LINE" != x ; then | |
3414 | eval "DEFAULT_$LINE" | |
3415 | else | |
3416 | no_cache=1 | |
3417 | fi | |
3418 | ||
3419 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3420 | ||
3421 | fi; | |
3422 | ||
3423 | eval "$ac_cv_use_expat" | |
3424 | if test "$no_cache" != 1; then | |
3425 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3426 | fi | |
3427 | ||
3428 | if test "$wxUSE_EXPAT" = yes; then | |
3429 | echo "$as_me:$LINENO: result: yes" >&5 | |
3430 | echo "${ECHO_T}yes" >&6 | |
3431 | elif test "$wxUSE_EXPAT" = no; then | |
3432 | echo "$as_me:$LINENO: result: no" >&5 | |
3433 | echo "${ECHO_T}no" >&6 | |
3434 | elif test "$wxUSE_EXPAT" = sys; then | |
3435 | echo "$as_me:$LINENO: result: system version" >&5 | |
3436 | echo "${ECHO_T}system version" >&6 | |
3437 | elif test "$wxUSE_EXPAT" = builtin; then | |
3438 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3439 | echo "${ECHO_T}builtin version" >&6 | |
3440 | else | |
3441 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3442 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3443 | { (exit 1); exit 1; }; } | |
3444 | fi | |
3445 | ||
3446 | ||
3447 | ||
3448 | ||
3449 | enablestring= | |
3450 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3451 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3452 | no_cache=0 | |
3453 | # Check whether --enable-shared or --disable-shared was given. | |
3454 | if test "${enable_shared+set}" = set; then | |
3455 | enableval="$enable_shared" | |
3456 | ||
3457 | if test "$enableval" = yes; then | |
3458 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3459 | else | |
3460 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3461 | fi | |
3462 | ||
3463 | else | |
3464 | ||
3465 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3466 | if test "x$LINE" != x ; then | |
3467 | eval "DEFAULT_$LINE" | |
3468 | else | |
3469 | no_cache=1 | |
3470 | fi | |
3471 | ||
3472 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3473 | ||
3474 | fi; | |
3475 | ||
3476 | eval "$ac_cv_use_shared" | |
3477 | if test "$no_cache" != 1; then | |
3478 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3479 | fi | |
3480 | ||
3481 | if test "$wxUSE_SHARED" = yes; then | |
3482 | echo "$as_me:$LINENO: result: yes" >&5 | |
3483 | echo "${ECHO_T}yes" >&6 | |
3484 | else | |
3485 | echo "$as_me:$LINENO: result: no" >&5 | |
3486 | echo "${ECHO_T}no" >&6 | |
3487 | fi | |
3488 | ||
3489 | ||
3490 | enablestring= | |
3491 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3492 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3493 | no_cache=0 | |
3494 | # Check whether --enable-optimise or --disable-optimise was given. | |
3495 | if test "${enable_optimise+set}" = set; then | |
3496 | enableval="$enable_optimise" | |
3497 | ||
3498 | if test "$enableval" = yes; then | |
3499 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3500 | else | |
3501 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3502 | fi | |
3503 | ||
3504 | else | |
3505 | ||
3506 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3507 | if test "x$LINE" != x ; then | |
3508 | eval "DEFAULT_$LINE" | |
3509 | else | |
3510 | no_cache=1 | |
3511 | fi | |
3512 | ||
3513 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3514 | ||
3515 | fi; | |
3516 | ||
3517 | eval "$ac_cv_use_optimise" | |
3518 | if test "$no_cache" != 1; then | |
3519 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3520 | fi | |
3521 | ||
3522 | if test "$wxUSE_OPTIMISE" = yes; then | |
3523 | echo "$as_me:$LINENO: result: yes" >&5 | |
3524 | echo "${ECHO_T}yes" >&6 | |
3525 | else | |
3526 | echo "$as_me:$LINENO: result: no" >&5 | |
3527 | echo "${ECHO_T}no" >&6 | |
3528 | fi | |
3529 | ||
3530 | ||
3531 | enablestring= | |
3532 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3533 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3534 | no_cache=0 | |
3535 | # Check whether --enable-debug or --disable-debug was given. | |
3536 | if test "${enable_debug+set}" = set; then | |
3537 | enableval="$enable_debug" | |
3538 | ||
3539 | if test "$enableval" = yes; then | |
3540 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3541 | else | |
3542 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3543 | fi | |
3544 | ||
3545 | else | |
3546 | ||
3547 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3548 | if test "x$LINE" != x ; then | |
3549 | eval "DEFAULT_$LINE" | |
3550 | else | |
3551 | no_cache=1 | |
3552 | fi | |
3553 | ||
3554 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3555 | ||
3556 | fi; | |
3557 | ||
3558 | eval "$ac_cv_use_debug" | |
3559 | if test "$no_cache" != 1; then | |
3560 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3561 | fi | |
3562 | ||
3563 | if test "$wxUSE_DEBUG" = yes; then | |
3564 | echo "$as_me:$LINENO: result: yes" >&5 | |
3565 | echo "${ECHO_T}yes" >&6 | |
3566 | else | |
3567 | echo "$as_me:$LINENO: result: no" >&5 | |
3568 | echo "${ECHO_T}no" >&6 | |
3569 | fi | |
3570 | ||
3571 | ||
3572 | enablestring= | |
3573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3574 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3575 | no_cache=0 | |
3576 | # Check whether --enable-stl or --disable-stl was given. | |
3577 | if test "${enable_stl+set}" = set; then | |
3578 | enableval="$enable_stl" | |
3579 | ||
3580 | if test "$enableval" = yes; then | |
3581 | ac_cv_use_stl='wxUSE_STL=yes' | |
3582 | else | |
3583 | ac_cv_use_stl='wxUSE_STL=no' | |
3584 | fi | |
3585 | ||
3586 | else | |
3587 | ||
3588 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3589 | if test "x$LINE" != x ; then | |
3590 | eval "DEFAULT_$LINE" | |
3591 | else | |
3592 | no_cache=1 | |
3593 | fi | |
3594 | ||
3595 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3596 | ||
3597 | fi; | |
3598 | ||
3599 | eval "$ac_cv_use_stl" | |
3600 | if test "$no_cache" != 1; then | |
3601 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3602 | fi | |
3603 | ||
3604 | if test "$wxUSE_STL" = yes; then | |
3605 | echo "$as_me:$LINENO: result: yes" >&5 | |
3606 | echo "${ECHO_T}yes" >&6 | |
3607 | else | |
3608 | echo "$as_me:$LINENO: result: no" >&5 | |
3609 | echo "${ECHO_T}no" >&6 | |
3610 | fi | |
3611 | ||
3612 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3613 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3614 | |
3615 | enablestring= | |
3616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3617 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3618 | no_cache=0 | |
3619 | # Check whether --enable-omf or --disable-omf was given. | |
3620 | if test "${enable_omf+set}" = set; then | |
3621 | enableval="$enable_omf" | |
3622 | ||
3623 | if test "$enableval" = yes; then | |
3624 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3625 | else | |
3626 | ac_cv_use_omf='wxUSE_OMF=no' | |
3627 | fi | |
3628 | ||
3629 | else | |
3630 | ||
3631 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3632 | if test "x$LINE" != x ; then | |
3633 | eval "DEFAULT_$LINE" | |
3634 | else | |
3635 | no_cache=1 | |
3636 | fi | |
3637 | ||
3638 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3639 | ||
3640 | fi; | |
3641 | ||
3642 | eval "$ac_cv_use_omf" | |
3643 | if test "$no_cache" != 1; then | |
3644 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3645 | fi | |
3646 | ||
3647 | if test "$wxUSE_OMF" = yes; then | |
3648 | echo "$as_me:$LINENO: result: yes" >&5 | |
3649 | echo "${ECHO_T}yes" >&6 | |
3650 | else | |
3651 | echo "$as_me:$LINENO: result: no" >&5 | |
3652 | echo "${ECHO_T}no" >&6 | |
3653 | fi | |
3654 | ||
3655 | fi | |
3656 | ||
3657 | if test "$wxUSE_DEBUG" = "yes"; then | |
3658 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3659 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3660 | BUILD=debug | |
3661 | elif test "$wxUSE_DEBUG" = "no"; then | |
3662 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3663 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3664 | BUILD=release | |
3665 | fi | |
3666 | ||
3667 | ||
3668 | enablestring= | |
3669 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3670 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3671 | no_cache=0 | |
3672 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3673 | if test "${enable_debug_flag+set}" = set; then | |
3674 | enableval="$enable_debug_flag" | |
3675 | ||
3676 | if test "$enableval" = yes; then | |
3677 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3678 | else | |
3679 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3680 | fi | |
3681 | ||
3682 | else | |
3683 | ||
3684 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3685 | if test "x$LINE" != x ; then | |
3686 | eval "DEFAULT_$LINE" | |
3687 | else | |
3688 | no_cache=1 | |
3689 | fi | |
3690 | ||
3691 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3692 | ||
3693 | fi; | |
3694 | ||
3695 | eval "$ac_cv_use_debug_flag" | |
3696 | if test "$no_cache" != 1; then | |
3697 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3698 | fi | |
3699 | ||
3700 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3701 | echo "$as_me:$LINENO: result: yes" >&5 | |
3702 | echo "${ECHO_T}yes" >&6 | |
3703 | else | |
3704 | echo "$as_me:$LINENO: result: no" >&5 | |
3705 | echo "${ECHO_T}no" >&6 | |
3706 | fi | |
3707 | ||
3708 | ||
3709 | enablestring= | |
3710 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3711 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3712 | no_cache=0 | |
3713 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3714 | if test "${enable_debug_info+set}" = set; then | |
3715 | enableval="$enable_debug_info" | |
3716 | ||
3717 | if test "$enableval" = yes; then | |
3718 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3719 | else | |
3720 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3721 | fi | |
3722 | ||
3723 | else | |
3724 | ||
3725 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3726 | if test "x$LINE" != x ; then | |
3727 | eval "DEFAULT_$LINE" | |
3728 | else | |
3729 | no_cache=1 | |
3730 | fi | |
3731 | ||
3732 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3733 | ||
3734 | fi; | |
3735 | ||
3736 | eval "$ac_cv_use_debug_info" | |
3737 | if test "$no_cache" != 1; then | |
3738 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3739 | fi | |
3740 | ||
3741 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3742 | echo "$as_me:$LINENO: result: yes" >&5 | |
3743 | echo "${ECHO_T}yes" >&6 | |
3744 | else | |
3745 | echo "$as_me:$LINENO: result: no" >&5 | |
3746 | echo "${ECHO_T}no" >&6 | |
3747 | fi | |
3748 | ||
3749 | ||
3750 | enablestring= | |
3751 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3752 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3753 | no_cache=0 | |
3754 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3755 | if test "${enable_debug_gdb+set}" = set; then | |
3756 | enableval="$enable_debug_gdb" | |
3757 | ||
3758 | if test "$enableval" = yes; then | |
3759 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3760 | else | |
3761 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3762 | fi | |
3763 | ||
3764 | else | |
3765 | ||
3766 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3767 | if test "x$LINE" != x ; then | |
3768 | eval "DEFAULT_$LINE" | |
3769 | else | |
3770 | no_cache=1 | |
3771 | fi | |
3772 | ||
3773 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3774 | ||
3775 | fi; | |
3776 | ||
3777 | eval "$ac_cv_use_debug_gdb" | |
3778 | if test "$no_cache" != 1; then | |
3779 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3780 | fi | |
3781 | ||
3782 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3783 | echo "$as_me:$LINENO: result: yes" >&5 | |
3784 | echo "${ECHO_T}yes" >&6 | |
3785 | else | |
3786 | echo "$as_me:$LINENO: result: no" >&5 | |
3787 | echo "${ECHO_T}no" >&6 | |
3788 | fi | |
3789 | ||
3790 | ||
3791 | enablestring= | |
3792 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3793 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3794 | no_cache=0 | |
3795 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3796 | if test "${enable_debug_cntxt+set}" = set; then | |
3797 | enableval="$enable_debug_cntxt" | |
3798 | ||
3799 | if test "$enableval" = yes; then | |
3800 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3801 | else | |
3802 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3803 | fi | |
3804 | ||
3805 | else | |
3806 | ||
3807 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3808 | if test "x$LINE" != x ; then | |
3809 | eval "DEFAULT_$LINE" | |
3810 | else | |
3811 | no_cache=1 | |
3812 | fi | |
3813 | ||
3814 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3815 | ||
3816 | fi; | |
3817 | ||
3818 | eval "$ac_cv_use_debug_cntxt" | |
3819 | if test "$no_cache" != 1; then | |
3820 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3821 | fi | |
3822 | ||
3823 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3824 | echo "$as_me:$LINENO: result: yes" >&5 | |
3825 | echo "${ECHO_T}yes" >&6 | |
3826 | else | |
3827 | echo "$as_me:$LINENO: result: no" >&5 | |
3828 | echo "${ECHO_T}no" >&6 | |
3829 | fi | |
3830 | ||
3831 | ||
3832 | enablestring= | |
3833 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3834 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3835 | no_cache=0 | |
3836 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3837 | if test "${enable_mem_tracing+set}" = set; then | |
3838 | enableval="$enable_mem_tracing" | |
3839 | ||
3840 | if test "$enableval" = yes; then | |
3841 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3842 | else | |
3843 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3844 | fi | |
3845 | ||
3846 | else | |
3847 | ||
3848 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3849 | if test "x$LINE" != x ; then | |
3850 | eval "DEFAULT_$LINE" | |
3851 | else | |
3852 | no_cache=1 | |
3853 | fi | |
3854 | ||
3855 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3856 | ||
3857 | fi; | |
3858 | ||
3859 | eval "$ac_cv_use_mem_tracing" | |
3860 | if test "$no_cache" != 1; then | |
3861 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3862 | fi | |
3863 | ||
3864 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3865 | echo "$as_me:$LINENO: result: yes" >&5 | |
3866 | echo "${ECHO_T}yes" >&6 | |
3867 | else | |
3868 | echo "$as_me:$LINENO: result: no" >&5 | |
3869 | echo "${ECHO_T}no" >&6 | |
3870 | fi | |
3871 | ||
3872 | ||
3873 | enablestring= | |
3874 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3875 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3876 | no_cache=0 | |
3877 | # Check whether --enable-profile or --disable-profile was given. | |
3878 | if test "${enable_profile+set}" = set; then | |
3879 | enableval="$enable_profile" | |
3880 | ||
3881 | if test "$enableval" = yes; then | |
3882 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3883 | else | |
3884 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3885 | fi | |
3886 | ||
3887 | else | |
3888 | ||
3889 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3890 | if test "x$LINE" != x ; then | |
3891 | eval "DEFAULT_$LINE" | |
3892 | else | |
3893 | no_cache=1 | |
3894 | fi | |
3895 | ||
3896 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3897 | ||
3898 | fi; | |
3899 | ||
3900 | eval "$ac_cv_use_profile" | |
3901 | if test "$no_cache" != 1; then | |
3902 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3903 | fi | |
3904 | ||
3905 | if test "$wxUSE_PROFILE" = yes; then | |
3906 | echo "$as_me:$LINENO: result: yes" >&5 | |
3907 | echo "${ECHO_T}yes" >&6 | |
3908 | else | |
3909 | echo "$as_me:$LINENO: result: no" >&5 | |
3910 | echo "${ECHO_T}no" >&6 | |
3911 | fi | |
3912 | ||
3913 | ||
3914 | enablestring= | |
3915 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3916 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3917 | no_cache=0 | |
3918 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3919 | if test "${enable_no_rtti+set}" = set; then | |
3920 | enableval="$enable_no_rtti" | |
3921 | ||
3922 | if test "$enableval" = yes; then | |
3923 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3924 | else | |
3925 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3926 | fi | |
3927 | ||
3928 | else | |
3929 | ||
3930 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3931 | if test "x$LINE" != x ; then | |
3932 | eval "DEFAULT_$LINE" | |
3933 | else | |
3934 | no_cache=1 | |
3935 | fi | |
3936 | ||
3937 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3938 | ||
3939 | fi; | |
3940 | ||
3941 | eval "$ac_cv_use_no_rtti" | |
3942 | if test "$no_cache" != 1; then | |
3943 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3944 | fi | |
3945 | ||
3946 | if test "$wxUSE_NO_RTTI" = yes; then | |
3947 | echo "$as_me:$LINENO: result: yes" >&5 | |
3948 | echo "${ECHO_T}yes" >&6 | |
3949 | else | |
3950 | echo "$as_me:$LINENO: result: no" >&5 | |
3951 | echo "${ECHO_T}no" >&6 | |
3952 | fi | |
3953 | ||
3954 | ||
3955 | enablestring= | |
3956 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3957 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3958 | no_cache=0 | |
3959 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3960 | if test "${enable_no_exceptions+set}" = set; then | |
3961 | enableval="$enable_no_exceptions" | |
3962 | ||
3963 | if test "$enableval" = yes; then | |
3964 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3965 | else | |
3966 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3967 | fi | |
3968 | ||
3969 | else | |
3970 | ||
3971 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3972 | if test "x$LINE" != x ; then | |
3973 | eval "DEFAULT_$LINE" | |
3974 | else | |
3975 | no_cache=1 | |
3976 | fi | |
3977 | ||
3978 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3979 | ||
3980 | fi; | |
3981 | ||
3982 | eval "$ac_cv_use_no_exceptions" | |
3983 | if test "$no_cache" != 1; then | |
3984 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3985 | fi | |
3986 | ||
3987 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3988 | echo "$as_me:$LINENO: result: yes" >&5 | |
3989 | echo "${ECHO_T}yes" >&6 | |
3990 | else | |
3991 | echo "$as_me:$LINENO: result: no" >&5 | |
3992 | echo "${ECHO_T}no" >&6 | |
3993 | fi | |
3994 | ||
3995 | ||
3996 | enablestring= | |
3997 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3998 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3999 | no_cache=0 | |
4000 | # Check whether --enable-permissive or --disable-permissive was given. | |
4001 | if test "${enable_permissive+set}" = set; then | |
4002 | enableval="$enable_permissive" | |
4003 | ||
4004 | if test "$enableval" = yes; then | |
4005 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4006 | else | |
4007 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4008 | fi | |
4009 | ||
4010 | else | |
4011 | ||
4012 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4013 | if test "x$LINE" != x ; then | |
4014 | eval "DEFAULT_$LINE" | |
4015 | else | |
4016 | no_cache=1 | |
4017 | fi | |
4018 | ||
4019 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4020 | ||
4021 | fi; | |
4022 | ||
4023 | eval "$ac_cv_use_permissive" | |
4024 | if test "$no_cache" != 1; then | |
4025 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4026 | fi | |
4027 | ||
4028 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4029 | echo "$as_me:$LINENO: result: yes" >&5 | |
4030 | echo "${ECHO_T}yes" >&6 | |
4031 | else | |
4032 | echo "$as_me:$LINENO: result: no" >&5 | |
4033 | echo "${ECHO_T}no" >&6 | |
4034 | fi | |
4035 | ||
4036 | ||
4037 | enablestring= | |
4038 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4039 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4040 | no_cache=0 | |
4041 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4042 | if test "${enable_no_deps+set}" = set; then | |
4043 | enableval="$enable_no_deps" | |
4044 | ||
4045 | if test "$enableval" = yes; then | |
4046 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4047 | else | |
4048 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4049 | fi | |
4050 | ||
4051 | else | |
4052 | ||
4053 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4054 | if test "x$LINE" != x ; then | |
4055 | eval "DEFAULT_$LINE" | |
4056 | else | |
4057 | no_cache=1 | |
4058 | fi | |
4059 | ||
4060 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4061 | ||
4062 | fi; | |
4063 | ||
4064 | eval "$ac_cv_use_no_deps" | |
4065 | if test "$no_cache" != 1; then | |
4066 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4067 | fi | |
4068 | ||
4069 | if test "$wxUSE_NO_DEPS" = yes; then | |
4070 | echo "$as_me:$LINENO: result: yes" >&5 | |
4071 | echo "${ECHO_T}yes" >&6 | |
4072 | else | |
4073 | echo "$as_me:$LINENO: result: no" >&5 | |
4074 | echo "${ECHO_T}no" >&6 | |
4075 | fi | |
4076 | ||
4077 | ||
4078 | ||
4079 | enablestring= | |
4080 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4081 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4082 | no_cache=0 | |
4083 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4084 | if test "${enable_compat22+set}" = set; then | |
4085 | enableval="$enable_compat22" | |
4086 | ||
4087 | if test "$enableval" = yes; then | |
4088 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4089 | else | |
4090 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4091 | fi | |
4092 | ||
4093 | else | |
4094 | ||
4095 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4096 | if test "x$LINE" != x ; then | |
4097 | eval "DEFAULT_$LINE" | |
4098 | else | |
4099 | no_cache=1 | |
4100 | fi | |
4101 | ||
4102 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4103 | ||
4104 | fi; | |
4105 | ||
4106 | eval "$ac_cv_use_compat22" | |
4107 | if test "$no_cache" != 1; then | |
4108 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4109 | fi | |
4110 | ||
4111 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4112 | echo "$as_me:$LINENO: result: yes" >&5 | |
4113 | echo "${ECHO_T}yes" >&6 | |
4114 | else | |
4115 | echo "$as_me:$LINENO: result: no" >&5 | |
4116 | echo "${ECHO_T}no" >&6 | |
4117 | fi | |
4118 | ||
4119 | ||
4120 | enablestring=disable | |
4121 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4122 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4123 | no_cache=0 | |
4124 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4125 | if test "${enable_compat24+set}" = set; then | |
4126 | enableval="$enable_compat24" | |
4127 | ||
4128 | if test "$enableval" = yes; then | |
4129 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4130 | else | |
4131 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4132 | fi | |
4133 | ||
4134 | else | |
4135 | ||
4136 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4137 | if test "x$LINE" != x ; then | |
4138 | eval "DEFAULT_$LINE" | |
4139 | else | |
4140 | no_cache=1 | |
4141 | fi | |
4142 | ||
4143 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4144 | ||
4145 | fi; | |
4146 | ||
4147 | eval "$ac_cv_use_compat24" | |
4148 | if test "$no_cache" != 1; then | |
4149 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4150 | fi | |
4151 | ||
4152 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4153 | echo "$as_me:$LINENO: result: yes" >&5 | |
4154 | echo "${ECHO_T}yes" >&6 | |
4155 | else | |
4156 | echo "$as_me:$LINENO: result: no" >&5 | |
4157 | echo "${ECHO_T}no" >&6 | |
4158 | fi | |
4159 | ||
4160 | ||
ffa0583f RL |
4161 | |
4162 | enablestring= | |
4163 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4164 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4165 | no_cache=0 | |
4166 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4167 | if test "${enable_rpath+set}" = set; then |
4168 | enableval="$enable_rpath" | |
ffa0583f RL |
4169 | |
4170 | if test "$enableval" = yes; then | |
4171 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4172 | else | |
4173 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4174 | fi | |
4175 | ||
4176 | else | |
4177 | ||
4178 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4179 | if test "x$LINE" != x ; then | |
4180 | eval "DEFAULT_$LINE" | |
4181 | else | |
4182 | no_cache=1 | |
4183 | fi | |
4184 | ||
4185 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4186 | ||
a848cd7e SC |
4187 | fi; |
4188 | ||
ffa0583f RL |
4189 | eval "$ac_cv_use_rpath" |
4190 | if test "$no_cache" != 1; then | |
4191 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4192 | fi | |
4193 | ||
4194 | if test "$wxUSE_RPATH" = yes; then | |
4195 | echo "$as_me:$LINENO: result: yes" >&5 | |
4196 | echo "${ECHO_T}yes" >&6 | |
4197 | else | |
4198 | echo "$as_me:$LINENO: result: no" >&5 | |
4199 | echo "${ECHO_T}no" >&6 | |
4200 | fi | |
4201 | ||
a848cd7e SC |
4202 | |
4203 | ||
4204 | ||
4205 | ||
4206 | enablestring= | |
4207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4208 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4209 | no_cache=0 | |
4210 | # Check whether --enable-intl or --disable-intl was given. | |
4211 | if test "${enable_intl+set}" = set; then | |
4212 | enableval="$enable_intl" | |
4213 | ||
4214 | if test "$enableval" = yes; then | |
4215 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4216 | else | |
4217 | ac_cv_use_intl='wxUSE_INTL=no' | |
4218 | fi | |
4219 | ||
4220 | else | |
4221 | ||
4222 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4223 | if test "x$LINE" != x ; then | |
4224 | eval "DEFAULT_$LINE" | |
4225 | else | |
4226 | no_cache=1 | |
4227 | fi | |
4228 | ||
4229 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4230 | ||
4231 | fi; | |
4232 | ||
4233 | eval "$ac_cv_use_intl" | |
4234 | if test "$no_cache" != 1; then | |
4235 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4236 | fi | |
4237 | ||
4238 | if test "$wxUSE_INTL" = yes; then | |
4239 | echo "$as_me:$LINENO: result: yes" >&5 | |
4240 | echo "${ECHO_T}yes" >&6 | |
4241 | else | |
4242 | echo "$as_me:$LINENO: result: no" >&5 | |
4243 | echo "${ECHO_T}no" >&6 | |
4244 | fi | |
4245 | ||
4246 | ||
4247 | enablestring= | |
4248 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4249 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4250 | no_cache=0 | |
4251 | # Check whether --enable-config or --disable-config was given. | |
4252 | if test "${enable_config+set}" = set; then | |
4253 | enableval="$enable_config" | |
4254 | ||
4255 | if test "$enableval" = yes; then | |
4256 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4257 | else | |
4258 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4259 | fi | |
4260 | ||
4261 | else | |
4262 | ||
4263 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4264 | if test "x$LINE" != x ; then | |
4265 | eval "DEFAULT_$LINE" | |
4266 | else | |
4267 | no_cache=1 | |
4268 | fi | |
4269 | ||
4270 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4271 | ||
4272 | fi; | |
4273 | ||
4274 | eval "$ac_cv_use_config" | |
4275 | if test "$no_cache" != 1; then | |
4276 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4277 | fi | |
4278 | ||
4279 | if test "$wxUSE_CONFIG" = yes; then | |
4280 | echo "$as_me:$LINENO: result: yes" >&5 | |
4281 | echo "${ECHO_T}yes" >&6 | |
4282 | else | |
4283 | echo "$as_me:$LINENO: result: no" >&5 | |
4284 | echo "${ECHO_T}no" >&6 | |
4285 | fi | |
4286 | ||
4287 | ||
4288 | ||
4289 | enablestring= | |
4290 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4291 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4292 | no_cache=0 | |
4293 | # Check whether --enable-protocols or --disable-protocols was given. | |
4294 | if test "${enable_protocols+set}" = set; then | |
4295 | enableval="$enable_protocols" | |
4296 | ||
4297 | if test "$enableval" = yes; then | |
4298 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4299 | else | |
4300 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4301 | fi | |
4302 | ||
4303 | else | |
4304 | ||
4305 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4306 | if test "x$LINE" != x ; then | |
4307 | eval "DEFAULT_$LINE" | |
4308 | else | |
4309 | no_cache=1 | |
4310 | fi | |
4311 | ||
4312 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4313 | ||
4314 | fi; | |
4315 | ||
4316 | eval "$ac_cv_use_protocols" | |
4317 | if test "$no_cache" != 1; then | |
4318 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4319 | fi | |
4320 | ||
4321 | if test "$wxUSE_PROTOCOL" = yes; then | |
4322 | echo "$as_me:$LINENO: result: yes" >&5 | |
4323 | echo "${ECHO_T}yes" >&6 | |
4324 | else | |
4325 | echo "$as_me:$LINENO: result: no" >&5 | |
4326 | echo "${ECHO_T}no" >&6 | |
4327 | fi | |
4328 | ||
4329 | ||
4330 | enablestring= | |
4331 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4332 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4333 | no_cache=0 | |
4334 | # Check whether --enable-ftp or --disable-ftp was given. | |
4335 | if test "${enable_ftp+set}" = set; then | |
4336 | enableval="$enable_ftp" | |
4337 | ||
4338 | if test "$enableval" = yes; then | |
4339 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4340 | else | |
4341 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4342 | fi | |
4343 | ||
4344 | else | |
4345 | ||
4346 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4347 | if test "x$LINE" != x ; then | |
4348 | eval "DEFAULT_$LINE" | |
4349 | else | |
4350 | no_cache=1 | |
4351 | fi | |
4352 | ||
4353 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4354 | ||
4355 | fi; | |
4356 | ||
4357 | eval "$ac_cv_use_ftp" | |
4358 | if test "$no_cache" != 1; then | |
4359 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4360 | fi | |
4361 | ||
4362 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4363 | echo "$as_me:$LINENO: result: yes" >&5 | |
4364 | echo "${ECHO_T}yes" >&6 | |
4365 | else | |
4366 | echo "$as_me:$LINENO: result: no" >&5 | |
4367 | echo "${ECHO_T}no" >&6 | |
4368 | fi | |
4369 | ||
4370 | ||
4371 | enablestring= | |
4372 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4373 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4374 | no_cache=0 | |
4375 | # Check whether --enable-http or --disable-http was given. | |
4376 | if test "${enable_http+set}" = set; then | |
4377 | enableval="$enable_http" | |
4378 | ||
4379 | if test "$enableval" = yes; then | |
4380 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4381 | else | |
4382 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4383 | fi | |
4384 | ||
4385 | else | |
4386 | ||
4387 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4388 | if test "x$LINE" != x ; then | |
4389 | eval "DEFAULT_$LINE" | |
4390 | else | |
4391 | no_cache=1 | |
4392 | fi | |
4393 | ||
4394 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4395 | ||
4396 | fi; | |
4397 | ||
4398 | eval "$ac_cv_use_http" | |
4399 | if test "$no_cache" != 1; then | |
4400 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4401 | fi | |
4402 | ||
4403 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4404 | echo "$as_me:$LINENO: result: yes" >&5 | |
4405 | echo "${ECHO_T}yes" >&6 | |
4406 | else | |
4407 | echo "$as_me:$LINENO: result: no" >&5 | |
4408 | echo "${ECHO_T}no" >&6 | |
4409 | fi | |
4410 | ||
4411 | ||
4412 | enablestring= | |
4413 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4414 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4415 | no_cache=0 | |
4416 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4417 | if test "${enable_fileproto+set}" = set; then | |
4418 | enableval="$enable_fileproto" | |
4419 | ||
4420 | if test "$enableval" = yes; then | |
4421 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4422 | else | |
4423 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4424 | fi | |
4425 | ||
4426 | else | |
4427 | ||
4428 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4429 | if test "x$LINE" != x ; then | |
4430 | eval "DEFAULT_$LINE" | |
4431 | else | |
4432 | no_cache=1 | |
4433 | fi | |
4434 | ||
4435 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4436 | ||
4437 | fi; | |
4438 | ||
4439 | eval "$ac_cv_use_fileproto" | |
4440 | if test "$no_cache" != 1; then | |
4441 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4442 | fi | |
4443 | ||
4444 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4445 | echo "$as_me:$LINENO: result: yes" >&5 | |
4446 | echo "${ECHO_T}yes" >&6 | |
4447 | else | |
4448 | echo "$as_me:$LINENO: result: no" >&5 | |
4449 | echo "${ECHO_T}no" >&6 | |
4450 | fi | |
4451 | ||
4452 | ||
4453 | enablestring= | |
4454 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4455 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4456 | no_cache=0 | |
4457 | # Check whether --enable-sockets or --disable-sockets was given. | |
4458 | if test "${enable_sockets+set}" = set; then | |
4459 | enableval="$enable_sockets" | |
4460 | ||
4461 | if test "$enableval" = yes; then | |
4462 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4463 | else | |
4464 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4465 | fi | |
4466 | ||
4467 | else | |
4468 | ||
4469 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4470 | if test "x$LINE" != x ; then | |
4471 | eval "DEFAULT_$LINE" | |
4472 | else | |
4473 | no_cache=1 | |
4474 | fi | |
4475 | ||
4476 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4477 | ||
4478 | fi; | |
4479 | ||
4480 | eval "$ac_cv_use_sockets" | |
4481 | if test "$no_cache" != 1; then | |
4482 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4483 | fi | |
4484 | ||
4485 | if test "$wxUSE_SOCKETS" = yes; then | |
4486 | echo "$as_me:$LINENO: result: yes" >&5 | |
4487 | echo "${ECHO_T}yes" >&6 | |
4488 | else | |
4489 | echo "$as_me:$LINENO: result: no" >&5 | |
4490 | echo "${ECHO_T}no" >&6 | |
4491 | fi | |
4492 | ||
4493 | ||
4494 | enablestring= | |
4495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4496 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4497 | no_cache=0 | |
4498 | # Check whether --enable-ole or --disable-ole was given. | |
4499 | if test "${enable_ole+set}" = set; then | |
4500 | enableval="$enable_ole" | |
4501 | ||
4502 | if test "$enableval" = yes; then | |
4503 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4504 | else | |
4505 | ac_cv_use_ole='wxUSE_OLE=no' | |
4506 | fi | |
4507 | ||
4508 | else | |
4509 | ||
4510 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4511 | if test "x$LINE" != x ; then | |
4512 | eval "DEFAULT_$LINE" | |
4513 | else | |
4514 | no_cache=1 | |
4515 | fi | |
4516 | ||
4517 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4518 | ||
4519 | fi; | |
4520 | ||
4521 | eval "$ac_cv_use_ole" | |
4522 | if test "$no_cache" != 1; then | |
4523 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4524 | fi | |
4525 | ||
4526 | if test "$wxUSE_OLE" = yes; then | |
4527 | echo "$as_me:$LINENO: result: yes" >&5 | |
4528 | echo "${ECHO_T}yes" >&6 | |
4529 | else | |
4530 | echo "$as_me:$LINENO: result: no" >&5 | |
4531 | echo "${ECHO_T}no" >&6 | |
4532 | fi | |
4533 | ||
4534 | ||
4535 | enablestring= | |
4536 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4537 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4538 | no_cache=0 | |
4539 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4540 | if test "${enable_dataobj+set}" = set; then | |
4541 | enableval="$enable_dataobj" | |
4542 | ||
4543 | if test "$enableval" = yes; then | |
4544 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4545 | else | |
4546 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4547 | fi | |
4548 | ||
4549 | else | |
4550 | ||
4551 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4552 | if test "x$LINE" != x ; then | |
4553 | eval "DEFAULT_$LINE" | |
4554 | else | |
4555 | no_cache=1 | |
4556 | fi | |
4557 | ||
4558 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4559 | ||
4560 | fi; | |
4561 | ||
4562 | eval "$ac_cv_use_dataobj" | |
4563 | if test "$no_cache" != 1; then | |
4564 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4565 | fi | |
4566 | ||
4567 | if test "$wxUSE_DATAOBJ" = yes; then | |
4568 | echo "$as_me:$LINENO: result: yes" >&5 | |
4569 | echo "${ECHO_T}yes" >&6 | |
4570 | else | |
4571 | echo "$as_me:$LINENO: result: no" >&5 | |
4572 | echo "${ECHO_T}no" >&6 | |
4573 | fi | |
4574 | ||
4575 | ||
4576 | ||
4577 | enablestring= | |
4578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4579 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4580 | no_cache=0 | |
4581 | # Check whether --enable-ipc or --disable-ipc was given. | |
4582 | if test "${enable_ipc+set}" = set; then | |
4583 | enableval="$enable_ipc" | |
4584 | ||
4585 | if test "$enableval" = yes; then | |
4586 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4587 | else | |
4588 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4589 | fi | |
4590 | ||
4591 | else | |
4592 | ||
4593 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4594 | if test "x$LINE" != x ; then | |
4595 | eval "DEFAULT_$LINE" | |
4596 | else | |
4597 | no_cache=1 | |
4598 | fi | |
4599 | ||
4600 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4601 | ||
4602 | fi; | |
4603 | ||
4604 | eval "$ac_cv_use_ipc" | |
4605 | if test "$no_cache" != 1; then | |
4606 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4607 | fi | |
4608 | ||
4609 | if test "$wxUSE_IPC" = yes; then | |
4610 | echo "$as_me:$LINENO: result: yes" >&5 | |
4611 | echo "${ECHO_T}yes" >&6 | |
4612 | else | |
4613 | echo "$as_me:$LINENO: result: no" >&5 | |
4614 | echo "${ECHO_T}no" >&6 | |
4615 | fi | |
4616 | ||
4617 | ||
4618 | ||
4619 | enablestring= | |
4620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4621 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4622 | no_cache=0 | |
4623 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4624 | if test "${enable_apple_ieee+set}" = set; then | |
4625 | enableval="$enable_apple_ieee" | |
4626 | ||
4627 | if test "$enableval" = yes; then | |
4628 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4629 | else | |
4630 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4631 | fi | |
4632 | ||
4633 | else | |
4634 | ||
4635 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4636 | if test "x$LINE" != x ; then | |
4637 | eval "DEFAULT_$LINE" | |
4638 | else | |
4639 | no_cache=1 | |
4640 | fi | |
4641 | ||
4642 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4643 | ||
4644 | fi; | |
4645 | ||
4646 | eval "$ac_cv_use_apple_ieee" | |
4647 | if test "$no_cache" != 1; then | |
4648 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4649 | fi | |
4650 | ||
4651 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4652 | echo "$as_me:$LINENO: result: yes" >&5 | |
4653 | echo "${ECHO_T}yes" >&6 | |
4654 | else | |
4655 | echo "$as_me:$LINENO: result: no" >&5 | |
4656 | echo "${ECHO_T}no" >&6 | |
4657 | fi | |
4658 | ||
4659 | ||
81f90336 MW |
4660 | enablestring= |
4661 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4662 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4663 | no_cache=0 | |
4664 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4665 | if test "${enable_arcstream+set}" = set; then | |
4666 | enableval="$enable_arcstream" | |
4667 | ||
4668 | if test "$enableval" = yes; then | |
9e8e867f | 4669 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4670 | else |
9e8e867f | 4671 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4672 | fi |
4673 | ||
4674 | else | |
4675 | ||
9e8e867f | 4676 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4677 | if test "x$LINE" != x ; then |
4678 | eval "DEFAULT_$LINE" | |
4679 | else | |
4680 | no_cache=1 | |
4681 | fi | |
4682 | ||
9e8e867f | 4683 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4684 | |
4685 | fi; | |
4686 | ||
4687 | eval "$ac_cv_use_arcstream" | |
4688 | if test "$no_cache" != 1; then | |
4689 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4690 | fi | |
4691 | ||
9e8e867f | 4692 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4693 | echo "$as_me:$LINENO: result: yes" >&5 |
4694 | echo "${ECHO_T}yes" >&6 | |
4695 | else | |
4696 | echo "$as_me:$LINENO: result: no" >&5 | |
4697 | echo "${ECHO_T}no" >&6 | |
4698 | fi | |
4699 | ||
4700 | ||
a848cd7e | 4701 | enablestring= |
36b6448c VZ |
4702 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4703 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4704 | no_cache=0 |
36b6448c VZ |
4705 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4706 | if test "${enable_backtrace+set}" = set; then | |
4707 | enableval="$enable_backtrace" | |
a848cd7e SC |
4708 | |
4709 | if test "$enableval" = yes; then | |
36b6448c | 4710 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4711 | else |
36b6448c | 4712 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4713 | fi |
4714 | ||
4715 | else | |
4716 | ||
36b6448c | 4717 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4718 | if test "x$LINE" != x ; then |
4719 | eval "DEFAULT_$LINE" | |
4720 | else | |
4721 | no_cache=1 | |
4722 | fi | |
4723 | ||
36b6448c | 4724 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4725 | |
4726 | fi; | |
4727 | ||
36b6448c | 4728 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4729 | if test "$no_cache" != 1; then |
36b6448c | 4730 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4731 | fi |
4732 | ||
36b6448c | 4733 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4734 | echo "$as_me:$LINENO: result: yes" >&5 |
4735 | echo "${ECHO_T}yes" >&6 | |
4736 | else | |
4737 | echo "$as_me:$LINENO: result: no" >&5 | |
4738 | echo "${ECHO_T}no" >&6 | |
4739 | fi | |
4740 | ||
4741 | ||
eaff0f0d | 4742 | enablestring= |
36b6448c VZ |
4743 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4744 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4745 | no_cache=0 |
36b6448c VZ |
4746 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4747 | if test "${enable_catch_segvs+set}" = set; then | |
4748 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4749 | |
4750 | if test "$enableval" = yes; then | |
36b6448c | 4751 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4752 | else |
36b6448c | 4753 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4754 | fi |
4755 | ||
4756 | else | |
4757 | ||
36b6448c | 4758 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4759 | if test "x$LINE" != x ; then |
4760 | eval "DEFAULT_$LINE" | |
4761 | else | |
4762 | no_cache=1 | |
4763 | fi | |
4764 | ||
36b6448c | 4765 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4766 | |
4767 | fi; | |
4768 | ||
36b6448c | 4769 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4770 | if test "$no_cache" != 1; then |
36b6448c | 4771 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4772 | fi |
4773 | ||
36b6448c | 4774 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4775 | echo "$as_me:$LINENO: result: yes" >&5 |
4776 | echo "${ECHO_T}yes" >&6 | |
4777 | else | |
4778 | echo "$as_me:$LINENO: result: no" >&5 | |
4779 | echo "${ECHO_T}no" >&6 | |
4780 | fi | |
4781 | ||
4782 | ||
a848cd7e SC |
4783 | enablestring= |
4784 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4785 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4786 | no_cache=0 | |
4787 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4788 | if test "${enable_cmdline+set}" = set; then | |
4789 | enableval="$enable_cmdline" | |
4790 | ||
4791 | if test "$enableval" = yes; then | |
4792 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4793 | else | |
4794 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4795 | fi | |
4796 | ||
4797 | else | |
4798 | ||
4799 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4800 | if test "x$LINE" != x ; then | |
4801 | eval "DEFAULT_$LINE" | |
4802 | else | |
4803 | no_cache=1 | |
4804 | fi | |
4805 | ||
4806 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4807 | ||
4808 | fi; | |
4809 | ||
4810 | eval "$ac_cv_use_cmdline" | |
4811 | if test "$no_cache" != 1; then | |
4812 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4813 | fi | |
4814 | ||
4815 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4816 | echo "$as_me:$LINENO: result: yes" >&5 | |
4817 | echo "${ECHO_T}yes" >&6 | |
4818 | else | |
4819 | echo "$as_me:$LINENO: result: no" >&5 | |
4820 | echo "${ECHO_T}no" >&6 | |
4821 | fi | |
4822 | ||
4823 | ||
4824 | enablestring= | |
4825 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4826 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4827 | no_cache=0 | |
4828 | # Check whether --enable-datetime or --disable-datetime was given. | |
4829 | if test "${enable_datetime+set}" = set; then | |
4830 | enableval="$enable_datetime" | |
4831 | ||
4832 | if test "$enableval" = yes; then | |
4833 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4834 | else | |
4835 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4836 | fi | |
4837 | ||
4838 | else | |
4839 | ||
4840 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4841 | if test "x$LINE" != x ; then | |
4842 | eval "DEFAULT_$LINE" | |
4843 | else | |
4844 | no_cache=1 | |
4845 | fi | |
4846 | ||
4847 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4848 | ||
4849 | fi; | |
4850 | ||
4851 | eval "$ac_cv_use_datetime" | |
4852 | if test "$no_cache" != 1; then | |
4853 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4854 | fi | |
4855 | ||
4856 | if test "$wxUSE_DATETIME" = yes; then | |
4857 | echo "$as_me:$LINENO: result: yes" >&5 | |
4858 | echo "${ECHO_T}yes" >&6 | |
4859 | else | |
4860 | echo "$as_me:$LINENO: result: no" >&5 | |
4861 | echo "${ECHO_T}no" >&6 | |
4862 | fi | |
4863 | ||
4864 | ||
36b6448c VZ |
4865 | enablestring= |
4866 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4867 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4868 | no_cache=0 | |
4869 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4870 | if test "${enable_debugreport+set}" = set; then | |
4871 | enableval="$enable_debugreport" | |
4872 | ||
4873 | if test "$enableval" = yes; then | |
4874 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4875 | else | |
4876 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4877 | fi | |
4878 | ||
4879 | else | |
4880 | ||
4881 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4882 | if test "x$LINE" != x ; then | |
4883 | eval "DEFAULT_$LINE" | |
4884 | else | |
4885 | no_cache=1 | |
4886 | fi | |
4887 | ||
4888 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4889 | ||
4890 | fi; | |
4891 | ||
4892 | eval "$ac_cv_use_debugreport" | |
4893 | if test "$no_cache" != 1; then | |
4894 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4895 | fi | |
4896 | ||
4897 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
4898 | echo "$as_me:$LINENO: result: yes" >&5 | |
4899 | echo "${ECHO_T}yes" >&6 | |
4900 | else | |
4901 | echo "$as_me:$LINENO: result: no" >&5 | |
4902 | echo "${ECHO_T}no" >&6 | |
4903 | fi | |
4904 | ||
4905 | ||
a848cd7e SC |
4906 | enablestring= |
4907 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4908 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4909 | no_cache=0 | |
4910 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4911 | if test "${enable_dialupman+set}" = set; then | |
4912 | enableval="$enable_dialupman" | |
4913 | ||
4914 | if test "$enableval" = yes; then | |
4915 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4916 | else | |
4917 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4918 | fi | |
4919 | ||
4920 | else | |
4921 | ||
4922 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4923 | if test "x$LINE" != x ; then | |
4924 | eval "DEFAULT_$LINE" | |
4925 | else | |
4926 | no_cache=1 | |
4927 | fi | |
4928 | ||
4929 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4930 | ||
4931 | fi; | |
4932 | ||
4933 | eval "$ac_cv_use_dialupman" | |
4934 | if test "$no_cache" != 1; then | |
4935 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4936 | fi | |
4937 | ||
4938 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4939 | echo "$as_me:$LINENO: result: yes" >&5 | |
4940 | echo "${ECHO_T}yes" >&6 | |
4941 | else | |
4942 | echo "$as_me:$LINENO: result: no" >&5 | |
4943 | echo "${ECHO_T}no" >&6 | |
4944 | fi | |
4945 | ||
4946 | ||
4947 | enablestring= | |
4948 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4949 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4950 | no_cache=0 | |
4951 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4952 | if test "${enable_dynlib+set}" = set; then | |
4953 | enableval="$enable_dynlib" | |
4954 | ||
4955 | if test "$enableval" = yes; then | |
4956 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4957 | else | |
4958 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4959 | fi | |
4960 | ||
4961 | else | |
4962 | ||
4963 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4964 | if test "x$LINE" != x ; then | |
4965 | eval "DEFAULT_$LINE" | |
4966 | else | |
4967 | no_cache=1 | |
4968 | fi | |
4969 | ||
4970 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4971 | ||
4972 | fi; | |
4973 | ||
4974 | eval "$ac_cv_use_dynlib" | |
4975 | if test "$no_cache" != 1; then | |
4976 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4977 | fi | |
4978 | ||
4979 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4980 | echo "$as_me:$LINENO: result: yes" >&5 | |
4981 | echo "${ECHO_T}yes" >&6 | |
4982 | else | |
4983 | echo "$as_me:$LINENO: result: no" >&5 | |
4984 | echo "${ECHO_T}no" >&6 | |
4985 | fi | |
4986 | ||
4987 | ||
4988 | enablestring= | |
4989 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4990 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4991 | no_cache=0 | |
4992 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4993 | if test "${enable_dynamicloader+set}" = set; then | |
4994 | enableval="$enable_dynamicloader" | |
4995 | ||
4996 | if test "$enableval" = yes; then | |
4997 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4998 | else | |
4999 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5000 | fi | |
5001 | ||
5002 | else | |
5003 | ||
5004 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5005 | if test "x$LINE" != x ; then | |
5006 | eval "DEFAULT_$LINE" | |
5007 | else | |
5008 | no_cache=1 | |
5009 | fi | |
5010 | ||
5011 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5012 | ||
5013 | fi; | |
5014 | ||
5015 | eval "$ac_cv_use_dynamicloader" | |
5016 | if test "$no_cache" != 1; then | |
5017 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5018 | fi | |
5019 | ||
5020 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5021 | echo "$as_me:$LINENO: result: yes" >&5 | |
5022 | echo "${ECHO_T}yes" >&6 | |
5023 | else | |
5024 | echo "$as_me:$LINENO: result: no" >&5 | |
5025 | echo "${ECHO_T}no" >&6 | |
5026 | fi | |
5027 | ||
5028 | ||
5029 | enablestring= | |
5030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5031 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5032 | no_cache=0 | |
5033 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5034 | if test "${enable_exceptions+set}" = set; then | |
5035 | enableval="$enable_exceptions" | |
5036 | ||
5037 | if test "$enableval" = yes; then | |
5038 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5039 | else | |
5040 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5041 | fi | |
5042 | ||
5043 | else | |
5044 | ||
5045 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5046 | if test "x$LINE" != x ; then | |
5047 | eval "DEFAULT_$LINE" | |
5048 | else | |
5049 | no_cache=1 | |
5050 | fi | |
5051 | ||
5052 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5053 | ||
5054 | fi; | |
5055 | ||
5056 | eval "$ac_cv_use_exceptions" | |
5057 | if test "$no_cache" != 1; then | |
5058 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5059 | fi | |
5060 | ||
5061 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5062 | echo "$as_me:$LINENO: result: yes" >&5 | |
5063 | echo "${ECHO_T}yes" >&6 | |
5064 | else | |
5065 | echo "$as_me:$LINENO: result: no" >&5 | |
5066 | echo "${ECHO_T}no" >&6 | |
5067 | fi | |
5068 | ||
5069 | ||
5070 | enablestring= | |
5071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5072 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5073 | no_cache=0 | |
5074 | # Check whether --enable-ffile or --disable-ffile was given. | |
5075 | if test "${enable_ffile+set}" = set; then | |
5076 | enableval="$enable_ffile" | |
5077 | ||
5078 | if test "$enableval" = yes; then | |
5079 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5080 | else | |
5081 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5082 | fi | |
5083 | ||
5084 | else | |
5085 | ||
5086 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5087 | if test "x$LINE" != x ; then | |
5088 | eval "DEFAULT_$LINE" | |
5089 | else | |
5090 | no_cache=1 | |
5091 | fi | |
5092 | ||
5093 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5094 | ||
5095 | fi; | |
5096 | ||
5097 | eval "$ac_cv_use_ffile" | |
5098 | if test "$no_cache" != 1; then | |
5099 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5100 | fi | |
5101 | ||
5102 | if test "$wxUSE_FFILE" = yes; then | |
5103 | echo "$as_me:$LINENO: result: yes" >&5 | |
5104 | echo "${ECHO_T}yes" >&6 | |
5105 | else | |
5106 | echo "$as_me:$LINENO: result: no" >&5 | |
5107 | echo "${ECHO_T}no" >&6 | |
5108 | fi | |
5109 | ||
5110 | ||
5111 | enablestring= | |
5112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5113 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5114 | no_cache=0 | |
5115 | # Check whether --enable-file or --disable-file was given. | |
5116 | if test "${enable_file+set}" = set; then | |
5117 | enableval="$enable_file" | |
5118 | ||
5119 | if test "$enableval" = yes; then | |
5120 | ac_cv_use_file='wxUSE_FILE=yes' | |
5121 | else | |
5122 | ac_cv_use_file='wxUSE_FILE=no' | |
5123 | fi | |
5124 | ||
5125 | else | |
5126 | ||
5127 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5128 | if test "x$LINE" != x ; then | |
5129 | eval "DEFAULT_$LINE" | |
5130 | else | |
5131 | no_cache=1 | |
5132 | fi | |
5133 | ||
5134 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5135 | ||
5136 | fi; | |
5137 | ||
5138 | eval "$ac_cv_use_file" | |
5139 | if test "$no_cache" != 1; then | |
5140 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5141 | fi | |
5142 | ||
5143 | if test "$wxUSE_FILE" = yes; then | |
5144 | echo "$as_me:$LINENO: result: yes" >&5 | |
5145 | echo "${ECHO_T}yes" >&6 | |
5146 | else | |
5147 | echo "$as_me:$LINENO: result: no" >&5 | |
5148 | echo "${ECHO_T}no" >&6 | |
5149 | fi | |
5150 | ||
5151 | ||
5152 | enablestring= | |
5153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5154 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5155 | no_cache=0 | |
5156 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5157 | if test "${enable_filesystem+set}" = set; then | |
5158 | enableval="$enable_filesystem" | |
5159 | ||
5160 | if test "$enableval" = yes; then | |
5161 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5162 | else | |
5163 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5164 | fi | |
5165 | ||
5166 | else | |
5167 | ||
5168 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5169 | if test "x$LINE" != x ; then | |
5170 | eval "DEFAULT_$LINE" | |
5171 | else | |
5172 | no_cache=1 | |
5173 | fi | |
5174 | ||
5175 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5176 | ||
5177 | fi; | |
5178 | ||
5179 | eval "$ac_cv_use_filesystem" | |
5180 | if test "$no_cache" != 1; then | |
5181 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5182 | fi | |
5183 | ||
5184 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5185 | echo "$as_me:$LINENO: result: yes" >&5 | |
5186 | echo "${ECHO_T}yes" >&6 | |
5187 | else | |
5188 | echo "$as_me:$LINENO: result: no" >&5 | |
5189 | echo "${ECHO_T}no" >&6 | |
5190 | fi | |
5191 | ||
5192 | ||
5193 | enablestring= | |
5194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5195 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5196 | no_cache=0 | |
5197 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5198 | if test "${enable_fontmap+set}" = set; then | |
5199 | enableval="$enable_fontmap" | |
5200 | ||
5201 | if test "$enableval" = yes; then | |
5202 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5203 | else | |
5204 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5205 | fi | |
5206 | ||
5207 | else | |
5208 | ||
5209 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5210 | if test "x$LINE" != x ; then | |
5211 | eval "DEFAULT_$LINE" | |
5212 | else | |
5213 | no_cache=1 | |
5214 | fi | |
5215 | ||
5216 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5217 | ||
5218 | fi; | |
5219 | ||
5220 | eval "$ac_cv_use_fontmap" | |
5221 | if test "$no_cache" != 1; then | |
5222 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5223 | fi | |
5224 | ||
5225 | if test "$wxUSE_FONTMAP" = yes; then | |
5226 | echo "$as_me:$LINENO: result: yes" >&5 | |
5227 | echo "${ECHO_T}yes" >&6 | |
5228 | else | |
5229 | echo "$as_me:$LINENO: result: no" >&5 | |
5230 | echo "${ECHO_T}no" >&6 | |
5231 | fi | |
5232 | ||
5233 | ||
5234 | enablestring= | |
5235 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5236 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5237 | no_cache=0 | |
5238 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5239 | if test "${enable_fs_inet+set}" = set; then | |
5240 | enableval="$enable_fs_inet" | |
5241 | ||
5242 | if test "$enableval" = yes; then | |
5243 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5244 | else | |
5245 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5246 | fi | |
5247 | ||
5248 | else | |
5249 | ||
5250 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5251 | if test "x$LINE" != x ; then | |
5252 | eval "DEFAULT_$LINE" | |
5253 | else | |
5254 | no_cache=1 | |
5255 | fi | |
5256 | ||
5257 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5258 | ||
5259 | fi; | |
5260 | ||
5261 | eval "$ac_cv_use_fs_inet" | |
5262 | if test "$no_cache" != 1; then | |
5263 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5264 | fi | |
5265 | ||
5266 | if test "$wxUSE_FS_INET" = yes; then | |
5267 | echo "$as_me:$LINENO: result: yes" >&5 | |
5268 | echo "${ECHO_T}yes" >&6 | |
5269 | else | |
5270 | echo "$as_me:$LINENO: result: no" >&5 | |
5271 | echo "${ECHO_T}no" >&6 | |
5272 | fi | |
5273 | ||
5274 | ||
5275 | enablestring= | |
5276 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5277 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5278 | no_cache=0 | |
5279 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5280 | if test "${enable_fs_zip+set}" = set; then | |
5281 | enableval="$enable_fs_zip" | |
5282 | ||
5283 | if test "$enableval" = yes; then | |
5284 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5285 | else | |
5286 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5287 | fi | |
5288 | ||
5289 | else | |
5290 | ||
5291 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5292 | if test "x$LINE" != x ; then | |
5293 | eval "DEFAULT_$LINE" | |
5294 | else | |
5295 | no_cache=1 | |
5296 | fi | |
5297 | ||
5298 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5299 | ||
5300 | fi; | |
5301 | ||
5302 | eval "$ac_cv_use_fs_zip" | |
5303 | if test "$no_cache" != 1; then | |
5304 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5305 | fi | |
5306 | ||
5307 | if test "$wxUSE_FS_ZIP" = yes; then | |
5308 | echo "$as_me:$LINENO: result: yes" >&5 | |
5309 | echo "${ECHO_T}yes" >&6 | |
5310 | else | |
5311 | echo "$as_me:$LINENO: result: no" >&5 | |
5312 | echo "${ECHO_T}no" >&6 | |
5313 | fi | |
5314 | ||
5315 | ||
5316 | enablestring= | |
5317 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5318 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5319 | no_cache=0 | |
5320 | # Check whether --enable-geometry or --disable-geometry was given. | |
5321 | if test "${enable_geometry+set}" = set; then | |
5322 | enableval="$enable_geometry" | |
5323 | ||
5324 | if test "$enableval" = yes; then | |
5325 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5326 | else | |
5327 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5328 | fi | |
5329 | ||
5330 | else | |
5331 | ||
5332 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5333 | if test "x$LINE" != x ; then | |
5334 | eval "DEFAULT_$LINE" | |
5335 | else | |
5336 | no_cache=1 | |
5337 | fi | |
5338 | ||
5339 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5340 | ||
5341 | fi; | |
5342 | ||
5343 | eval "$ac_cv_use_geometry" | |
5344 | if test "$no_cache" != 1; then | |
5345 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5346 | fi | |
5347 | ||
5348 | if test "$wxUSE_GEOMETRY" = yes; then | |
5349 | echo "$as_me:$LINENO: result: yes" >&5 | |
5350 | echo "${ECHO_T}yes" >&6 | |
5351 | else | |
5352 | echo "$as_me:$LINENO: result: no" >&5 | |
5353 | echo "${ECHO_T}no" >&6 | |
5354 | fi | |
5355 | ||
5356 | ||
5357 | enablestring= | |
5358 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5359 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5360 | no_cache=0 | |
5361 | # Check whether --enable-log or --disable-log was given. | |
5362 | if test "${enable_log+set}" = set; then | |
5363 | enableval="$enable_log" | |
5364 | ||
5365 | if test "$enableval" = yes; then | |
5366 | ac_cv_use_log='wxUSE_LOG=yes' | |
5367 | else | |
5368 | ac_cv_use_log='wxUSE_LOG=no' | |
5369 | fi | |
5370 | ||
5371 | else | |
5372 | ||
5373 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5374 | if test "x$LINE" != x ; then | |
5375 | eval "DEFAULT_$LINE" | |
5376 | else | |
5377 | no_cache=1 | |
5378 | fi | |
5379 | ||
5380 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5381 | ||
5382 | fi; | |
5383 | ||
5384 | eval "$ac_cv_use_log" | |
5385 | if test "$no_cache" != 1; then | |
5386 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5387 | fi | |
5388 | ||
5389 | if test "$wxUSE_LOG" = yes; then | |
5390 | echo "$as_me:$LINENO: result: yes" >&5 | |
5391 | echo "${ECHO_T}yes" >&6 | |
5392 | else | |
5393 | echo "$as_me:$LINENO: result: no" >&5 | |
5394 | echo "${ECHO_T}no" >&6 | |
5395 | fi | |
5396 | ||
5397 | ||
5398 | enablestring= | |
5399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5400 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5401 | no_cache=0 | |
5402 | # Check whether --enable-longlong or --disable-longlong was given. | |
5403 | if test "${enable_longlong+set}" = set; then | |
5404 | enableval="$enable_longlong" | |
5405 | ||
5406 | if test "$enableval" = yes; then | |
5407 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5408 | else | |
5409 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5410 | fi | |
5411 | ||
5412 | else | |
5413 | ||
5414 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5415 | if test "x$LINE" != x ; then | |
5416 | eval "DEFAULT_$LINE" | |
5417 | else | |
5418 | no_cache=1 | |
5419 | fi | |
5420 | ||
5421 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5422 | ||
5423 | fi; | |
5424 | ||
5425 | eval "$ac_cv_use_longlong" | |
5426 | if test "$no_cache" != 1; then | |
5427 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5428 | fi | |
5429 | ||
5430 | if test "$wxUSE_LONGLONG" = yes; then | |
5431 | echo "$as_me:$LINENO: result: yes" >&5 | |
5432 | echo "${ECHO_T}yes" >&6 | |
5433 | else | |
5434 | echo "$as_me:$LINENO: result: no" >&5 | |
5435 | echo "${ECHO_T}no" >&6 | |
5436 | fi | |
5437 | ||
5438 | ||
5439 | enablestring= | |
5440 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5441 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5442 | no_cache=0 | |
5443 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5444 | if test "${enable_mimetype+set}" = set; then | |
5445 | enableval="$enable_mimetype" | |
5446 | ||
5447 | if test "$enableval" = yes; then | |
5448 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5449 | else | |
5450 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5451 | fi | |
5452 | ||
5453 | else | |
5454 | ||
5455 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5456 | if test "x$LINE" != x ; then | |
5457 | eval "DEFAULT_$LINE" | |
5458 | else | |
5459 | no_cache=1 | |
5460 | fi | |
5461 | ||
5462 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5463 | ||
5464 | fi; | |
5465 | ||
5466 | eval "$ac_cv_use_mimetype" | |
5467 | if test "$no_cache" != 1; then | |
5468 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5469 | fi | |
5470 | ||
5471 | if test "$wxUSE_MIMETYPE" = yes; then | |
5472 | echo "$as_me:$LINENO: result: yes" >&5 | |
5473 | echo "${ECHO_T}yes" >&6 | |
5474 | else | |
5475 | echo "$as_me:$LINENO: result: no" >&5 | |
5476 | echo "${ECHO_T}no" >&6 | |
5477 | fi | |
5478 | ||
5479 | ||
5480 | enablestring= | |
5481 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5482 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5483 | no_cache=0 | |
5484 | # Check whether --enable-mslu or --disable-mslu was given. | |
5485 | if test "${enable_mslu+set}" = set; then | |
5486 | enableval="$enable_mslu" | |
5487 | ||
5488 | if test "$enableval" = yes; then | |
5489 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5490 | else | |
5491 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5492 | fi | |
5493 | ||
5494 | else | |
5495 | ||
5496 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5497 | if test "x$LINE" != x ; then | |
5498 | eval "DEFAULT_$LINE" | |
5499 | else | |
5500 | no_cache=1 | |
5501 | fi | |
5502 | ||
5503 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5504 | ||
5505 | fi; | |
5506 | ||
5507 | eval "$ac_cv_use_mslu" | |
5508 | if test "$no_cache" != 1; then | |
5509 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5510 | fi | |
5511 | ||
5512 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5513 | echo "$as_me:$LINENO: result: yes" >&5 | |
5514 | echo "${ECHO_T}yes" >&6 | |
5515 | else | |
5516 | echo "$as_me:$LINENO: result: no" >&5 | |
5517 | echo "${ECHO_T}no" >&6 | |
5518 | fi | |
5519 | ||
5520 | ||
5521 | enablestring= | |
5522 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5523 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5524 | no_cache=0 | |
5525 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5526 | if test "${enable_snglinst+set}" = set; then | |
5527 | enableval="$enable_snglinst" | |
5528 | ||
5529 | if test "$enableval" = yes; then | |
5530 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5531 | else | |
5532 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5533 | fi | |
5534 | ||
5535 | else | |
5536 | ||
5537 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5538 | if test "x$LINE" != x ; then | |
5539 | eval "DEFAULT_$LINE" | |
5540 | else | |
5541 | no_cache=1 | |
5542 | fi | |
5543 | ||
5544 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5545 | ||
5546 | fi; | |
5547 | ||
5548 | eval "$ac_cv_use_snglinst" | |
5549 | if test "$no_cache" != 1; then | |
5550 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5551 | fi | |
5552 | ||
5553 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5554 | echo "$as_me:$LINENO: result: yes" >&5 | |
5555 | echo "${ECHO_T}yes" >&6 | |
5556 | else | |
5557 | echo "$as_me:$LINENO: result: no" >&5 | |
5558 | echo "${ECHO_T}no" >&6 | |
5559 | fi | |
5560 | ||
5561 | ||
5562 | enablestring= | |
07158944 VZ |
5563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5564 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5565 | no_cache=0 |
07158944 VZ |
5566 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5567 | if test "${enable_std_iostreams+set}" = set; then | |
5568 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5569 | |
5570 | if test "$enableval" = yes; then | |
07158944 | 5571 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5572 | else |
07158944 | 5573 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5574 | fi |
5575 | ||
5576 | else | |
5577 | ||
07158944 | 5578 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5579 | if test "x$LINE" != x ; then |
5580 | eval "DEFAULT_$LINE" | |
5581 | else | |
5582 | no_cache=1 | |
5583 | fi | |
5584 | ||
07158944 | 5585 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5586 | |
5587 | fi; | |
5588 | ||
07158944 | 5589 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5590 | if test "$no_cache" != 1; then |
07158944 | 5591 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5592 | fi |
5593 | ||
07158944 | 5594 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5595 | echo "$as_me:$LINENO: result: yes" >&5 |
5596 | echo "${ECHO_T}yes" >&6 | |
5597 | else | |
5598 | echo "$as_me:$LINENO: result: no" >&5 | |
5599 | echo "${ECHO_T}no" >&6 | |
5600 | fi | |
5601 | ||
5602 | ||
59746b65 MW |
5603 | enablestring= |
5604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5605 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5606 | no_cache=0 | |
5607 | # Check whether --enable-std_string or --disable-std_string was given. | |
5608 | if test "${enable_std_string+set}" = set; then | |
5609 | enableval="$enable_std_string" | |
5610 | ||
5611 | if test "$enableval" = yes; then | |
5612 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5613 | else | |
5614 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5615 | fi | |
5616 | ||
5617 | else | |
5618 | ||
5619 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5620 | if test "x$LINE" != x ; then | |
5621 | eval "DEFAULT_$LINE" | |
5622 | else | |
5623 | no_cache=1 | |
5624 | fi | |
5625 | ||
5626 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5627 | ||
5628 | fi; | |
5629 | ||
5630 | eval "$ac_cv_use_std_string" | |
5631 | if test "$no_cache" != 1; then | |
5632 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5633 | fi | |
5634 | ||
5635 | if test "$wxUSE_STD_STRING" = yes; then | |
5636 | echo "$as_me:$LINENO: result: yes" >&5 | |
5637 | echo "${ECHO_T}yes" >&6 | |
5638 | else | |
5639 | echo "$as_me:$LINENO: result: no" >&5 | |
5640 | echo "${ECHO_T}no" >&6 | |
5641 | fi | |
5642 | ||
5643 | ||
a848cd7e | 5644 | enablestring= |
07158944 VZ |
5645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5646 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5647 | no_cache=0 |
07158944 VZ |
5648 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5649 | if test "${enable_stdpaths+set}" = set; then | |
5650 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5651 | |
5652 | if test "$enableval" = yes; then | |
07158944 | 5653 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5654 | else |
07158944 | 5655 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5656 | fi |
5657 | ||
5658 | else | |
5659 | ||
07158944 | 5660 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5661 | if test "x$LINE" != x ; then |
5662 | eval "DEFAULT_$LINE" | |
5663 | else | |
5664 | no_cache=1 | |
5665 | fi | |
5666 | ||
07158944 | 5667 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5668 | |
5669 | fi; | |
5670 | ||
07158944 | 5671 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5672 | if test "$no_cache" != 1; then |
07158944 | 5673 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5674 | fi |
5675 | ||
07158944 | 5676 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5677 | echo "$as_me:$LINENO: result: yes" >&5 |
5678 | echo "${ECHO_T}yes" >&6 | |
5679 | else | |
5680 | echo "$as_me:$LINENO: result: no" >&5 | |
5681 | echo "${ECHO_T}no" >&6 | |
5682 | fi | |
5683 | ||
5684 | ||
5685 | enablestring= | |
5686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5687 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5688 | no_cache=0 | |
5689 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5690 | if test "${enable_stopwatch+set}" = set; then | |
5691 | enableval="$enable_stopwatch" | |
5692 | ||
5693 | if test "$enableval" = yes; then | |
5694 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5695 | else | |
5696 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5697 | fi | |
5698 | ||
5699 | else | |
5700 | ||
5701 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5702 | if test "x$LINE" != x ; then | |
5703 | eval "DEFAULT_$LINE" | |
5704 | else | |
5705 | no_cache=1 | |
5706 | fi | |
5707 | ||
5708 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5709 | ||
5710 | fi; | |
5711 | ||
5712 | eval "$ac_cv_use_stopwatch" | |
5713 | if test "$no_cache" != 1; then | |
5714 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5715 | fi | |
5716 | ||
5717 | if test "$wxUSE_STOPWATCH" = yes; then | |
5718 | echo "$as_me:$LINENO: result: yes" >&5 | |
5719 | echo "${ECHO_T}yes" >&6 | |
5720 | else | |
5721 | echo "$as_me:$LINENO: result: no" >&5 | |
5722 | echo "${ECHO_T}no" >&6 | |
5723 | fi | |
5724 | ||
5725 | ||
07158944 VZ |
5726 | enablestring= |
5727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5728 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5729 | no_cache=0 | |
5730 | # Check whether --enable-streams or --disable-streams was given. | |
5731 | if test "${enable_streams+set}" = set; then | |
5732 | enableval="$enable_streams" | |
5733 | ||
5734 | if test "$enableval" = yes; then | |
5735 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5736 | else | |
5737 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5738 | fi | |
5739 | ||
5740 | else | |
5741 | ||
5742 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5743 | if test "x$LINE" != x ; then | |
5744 | eval "DEFAULT_$LINE" | |
5745 | else | |
5746 | no_cache=1 | |
5747 | fi | |
5748 | ||
5749 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5750 | ||
5751 | fi; | |
5752 | ||
5753 | eval "$ac_cv_use_streams" | |
5754 | if test "$no_cache" != 1; then | |
5755 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5756 | fi | |
5757 | ||
5758 | if test "$wxUSE_STREAMS" = yes; then | |
5759 | echo "$as_me:$LINENO: result: yes" >&5 | |
5760 | echo "${ECHO_T}yes" >&6 | |
5761 | else | |
5762 | echo "$as_me:$LINENO: result: no" >&5 | |
5763 | echo "${ECHO_T}no" >&6 | |
5764 | fi | |
5765 | ||
5766 | ||
a848cd7e SC |
5767 | enablestring= |
5768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5769 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5770 | no_cache=0 | |
5771 | # Check whether --enable-system_options or --disable-system_options was given. | |
5772 | if test "${enable_system_options+set}" = set; then | |
5773 | enableval="$enable_system_options" | |
5774 | ||
5775 | if test "$enableval" = yes; then | |
5776 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5777 | else | |
5778 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5779 | fi | |
5780 | ||
5781 | else | |
5782 | ||
5783 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5784 | if test "x$LINE" != x ; then | |
5785 | eval "DEFAULT_$LINE" | |
5786 | else | |
5787 | no_cache=1 | |
5788 | fi | |
5789 | ||
5790 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5791 | ||
5792 | fi; | |
5793 | ||
5794 | eval "$ac_cv_use_system_options" | |
5795 | if test "$no_cache" != 1; then | |
5796 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5797 | fi | |
5798 | ||
5799 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5800 | echo "$as_me:$LINENO: result: yes" >&5 | |
5801 | echo "${ECHO_T}yes" >&6 | |
5802 | else | |
5803 | echo "$as_me:$LINENO: result: no" >&5 | |
5804 | echo "${ECHO_T}no" >&6 | |
5805 | fi | |
5806 | ||
5807 | ||
5808 | enablestring= | |
5809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5810 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5811 | no_cache=0 | |
5812 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5813 | if test "${enable_textbuf+set}" = set; then | |
5814 | enableval="$enable_textbuf" | |
5815 | ||
5816 | if test "$enableval" = yes; then | |
5817 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5818 | else | |
5819 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5820 | fi | |
5821 | ||
5822 | else | |
5823 | ||
5824 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5825 | if test "x$LINE" != x ; then | |
5826 | eval "DEFAULT_$LINE" | |
5827 | else | |
5828 | no_cache=1 | |
5829 | fi | |
5830 | ||
5831 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5832 | ||
5833 | fi; | |
5834 | ||
5835 | eval "$ac_cv_use_textbuf" | |
5836 | if test "$no_cache" != 1; then | |
5837 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5838 | fi | |
5839 | ||
5840 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5841 | echo "$as_me:$LINENO: result: yes" >&5 | |
5842 | echo "${ECHO_T}yes" >&6 | |
5843 | else | |
5844 | echo "$as_me:$LINENO: result: no" >&5 | |
5845 | echo "${ECHO_T}no" >&6 | |
5846 | fi | |
5847 | ||
5848 | ||
5849 | enablestring= | |
5850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5851 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5852 | no_cache=0 | |
5853 | # Check whether --enable-textfile or --disable-textfile was given. | |
5854 | if test "${enable_textfile+set}" = set; then | |
5855 | enableval="$enable_textfile" | |
5856 | ||
5857 | if test "$enableval" = yes; then | |
5858 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5859 | else | |
5860 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5861 | fi | |
5862 | ||
5863 | else | |
5864 | ||
5865 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5866 | if test "x$LINE" != x ; then | |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
5872 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5873 | ||
5874 | fi; | |
5875 | ||
5876 | eval "$ac_cv_use_textfile" | |
5877 | if test "$no_cache" != 1; then | |
5878 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5879 | fi | |
5880 | ||
5881 | if test "$wxUSE_TEXTFILE" = yes; then | |
5882 | echo "$as_me:$LINENO: result: yes" >&5 | |
5883 | echo "${ECHO_T}yes" >&6 | |
5884 | else | |
5885 | echo "$as_me:$LINENO: result: no" >&5 | |
5886 | echo "${ECHO_T}no" >&6 | |
5887 | fi | |
5888 | ||
5889 | ||
5890 | enablestring= | |
5891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5892 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5893 | no_cache=0 | |
5894 | # Check whether --enable-timer or --disable-timer was given. | |
5895 | if test "${enable_timer+set}" = set; then | |
5896 | enableval="$enable_timer" | |
5897 | ||
5898 | if test "$enableval" = yes; then | |
5899 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5900 | else | |
5901 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5902 | fi | |
5903 | ||
5904 | else | |
5905 | ||
5906 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5907 | if test "x$LINE" != x ; then | |
5908 | eval "DEFAULT_$LINE" | |
5909 | else | |
5910 | no_cache=1 | |
5911 | fi | |
5912 | ||
5913 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5914 | ||
5915 | fi; | |
5916 | ||
5917 | eval "$ac_cv_use_timer" | |
5918 | if test "$no_cache" != 1; then | |
5919 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5920 | fi | |
5921 | ||
5922 | if test "$wxUSE_TIMER" = yes; then | |
5923 | echo "$as_me:$LINENO: result: yes" >&5 | |
5924 | echo "${ECHO_T}yes" >&6 | |
5925 | else | |
5926 | echo "$as_me:$LINENO: result: no" >&5 | |
5927 | echo "${ECHO_T}no" >&6 | |
5928 | fi | |
5929 | ||
5930 | ||
5931 | enablestring= | |
5932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5933 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5934 | no_cache=0 | |
5935 | # Check whether --enable-unicode or --disable-unicode was given. | |
5936 | if test "${enable_unicode+set}" = set; then | |
5937 | enableval="$enable_unicode" | |
5938 | ||
5939 | if test "$enableval" = yes; then | |
5940 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5941 | else | |
5942 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5943 | fi | |
5944 | ||
5945 | else | |
5946 | ||
5947 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5948 | if test "x$LINE" != x ; then | |
5949 | eval "DEFAULT_$LINE" | |
5950 | else | |
5951 | no_cache=1 | |
5952 | fi | |
5953 | ||
5954 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5955 | ||
5956 | fi; | |
5957 | ||
5958 | eval "$ac_cv_use_unicode" | |
5959 | if test "$no_cache" != 1; then | |
5960 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5961 | fi | |
5962 | ||
5963 | if test "$wxUSE_UNICODE" = yes; then | |
5964 | echo "$as_me:$LINENO: result: yes" >&5 | |
5965 | echo "${ECHO_T}yes" >&6 | |
5966 | else | |
5967 | echo "$as_me:$LINENO: result: no" >&5 | |
5968 | echo "${ECHO_T}no" >&6 | |
5969 | fi | |
5970 | ||
5971 | ||
5972 | enablestring= | |
5973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5974 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5975 | no_cache=0 | |
5976 | # Check whether --enable-sound or --disable-sound was given. | |
5977 | if test "${enable_sound+set}" = set; then | |
5978 | enableval="$enable_sound" | |
5979 | ||
5980 | if test "$enableval" = yes; then | |
5981 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5982 | else | |
5983 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5984 | fi | |
5985 | ||
5986 | else | |
5987 | ||
5988 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5989 | if test "x$LINE" != x ; then | |
5990 | eval "DEFAULT_$LINE" | |
5991 | else | |
5992 | no_cache=1 | |
5993 | fi | |
5994 | ||
5995 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5996 | ||
5997 | fi; | |
5998 | ||
5999 | eval "$ac_cv_use_sound" | |
6000 | if test "$no_cache" != 1; then | |
6001 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6002 | fi | |
6003 | ||
6004 | if test "$wxUSE_SOUND" = yes; then | |
6005 | echo "$as_me:$LINENO: result: yes" >&5 | |
6006 | echo "${ECHO_T}yes" >&6 | |
6007 | else | |
6008 | echo "$as_me:$LINENO: result: no" >&5 | |
6009 | echo "${ECHO_T}no" >&6 | |
6010 | fi | |
6011 | ||
6012 | ||
3b57de8b RL |
6013 | enablestring= |
6014 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6015 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6016 | no_cache=0 | |
6017 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6018 | if test "${enable_mediactrl+set}" = set; then | |
6019 | enableval="$enable_mediactrl" | |
6020 | ||
6021 | if test "$enableval" = yes; then | |
6022 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6023 | else | |
6024 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6025 | fi | |
6026 | ||
6027 | else | |
6028 | ||
6029 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6030 | if test "x$LINE" != x ; then | |
6031 | eval "DEFAULT_$LINE" | |
6032 | else | |
6033 | no_cache=1 | |
6034 | fi | |
6035 | ||
6036 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6037 | ||
6038 | fi; | |
6039 | ||
6040 | eval "$ac_cv_use_mediactrl" | |
6041 | if test "$no_cache" != 1; then | |
6042 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6043 | fi | |
6044 | ||
6045 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6046 | echo "$as_me:$LINENO: result: yes" >&5 | |
6047 | echo "${ECHO_T}yes" >&6 | |
6048 | else | |
6049 | echo "$as_me:$LINENO: result: no" >&5 | |
6050 | echo "${ECHO_T}no" >&6 | |
6051 | fi | |
6052 | ||
6053 | ||
a848cd7e SC |
6054 | enablestring= |
6055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6056 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6057 | no_cache=0 | |
6058 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6059 | if test "${enable_wxprintfv+set}" = set; then | |
6060 | enableval="$enable_wxprintfv" | |
6061 | ||
6062 | if test "$enableval" = yes; then | |
6063 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6064 | else | |
6065 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6066 | fi | |
6067 | ||
6068 | else | |
6069 | ||
6070 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6071 | if test "x$LINE" != x ; then | |
6072 | eval "DEFAULT_$LINE" | |
6073 | else | |
6074 | no_cache=1 | |
6075 | fi | |
6076 | ||
6077 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6078 | ||
6079 | fi; | |
6080 | ||
6081 | eval "$ac_cv_use_wxprintfv" | |
6082 | if test "$no_cache" != 1; then | |
6083 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6084 | fi | |
6085 | ||
6086 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6087 | echo "$as_me:$LINENO: result: yes" >&5 | |
6088 | echo "${ECHO_T}yes" >&6 | |
6089 | else | |
6090 | echo "$as_me:$LINENO: result: no" >&5 | |
6091 | echo "${ECHO_T}no" >&6 | |
6092 | fi | |
6093 | ||
6094 | ||
6095 | enablestring= | |
6096 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6097 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6098 | no_cache=0 | |
6099 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6100 | if test "${enable_zipstream+set}" = set; then | |
6101 | enableval="$enable_zipstream" | |
6102 | ||
6103 | if test "$enableval" = yes; then | |
6104 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6105 | else | |
6106 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6107 | fi | |
6108 | ||
6109 | else | |
6110 | ||
6111 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6112 | if test "x$LINE" != x ; then | |
6113 | eval "DEFAULT_$LINE" | |
6114 | else | |
6115 | no_cache=1 | |
6116 | fi | |
6117 | ||
6118 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6119 | ||
6120 | fi; | |
6121 | ||
6122 | eval "$ac_cv_use_zipstream" | |
6123 | if test "$no_cache" != 1; then | |
6124 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6125 | fi | |
6126 | ||
6127 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6128 | echo "$as_me:$LINENO: result: yes" >&5 | |
6129 | echo "${ECHO_T}yes" >&6 | |
6130 | else | |
6131 | echo "$as_me:$LINENO: result: no" >&5 | |
6132 | echo "${ECHO_T}no" >&6 | |
6133 | fi | |
6134 | ||
6135 | ||
a848cd7e SC |
6136 | |
6137 | enablestring= | |
6138 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6139 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6140 | no_cache=0 | |
6141 | # Check whether --enable-url or --disable-url was given. | |
6142 | if test "${enable_url+set}" = set; then | |
6143 | enableval="$enable_url" | |
6144 | ||
6145 | if test "$enableval" = yes; then | |
6146 | ac_cv_use_url='wxUSE_URL=yes' | |
6147 | else | |
6148 | ac_cv_use_url='wxUSE_URL=no' | |
6149 | fi | |
6150 | ||
6151 | else | |
6152 | ||
6153 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6154 | if test "x$LINE" != x ; then | |
6155 | eval "DEFAULT_$LINE" | |
6156 | else | |
6157 | no_cache=1 | |
6158 | fi | |
6159 | ||
6160 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6161 | ||
6162 | fi; | |
6163 | ||
6164 | eval "$ac_cv_use_url" | |
6165 | if test "$no_cache" != 1; then | |
6166 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6167 | fi | |
6168 | ||
6169 | if test "$wxUSE_URL" = yes; then | |
6170 | echo "$as_me:$LINENO: result: yes" >&5 | |
6171 | echo "${ECHO_T}yes" >&6 | |
6172 | else | |
6173 | echo "$as_me:$LINENO: result: no" >&5 | |
6174 | echo "${ECHO_T}no" >&6 | |
6175 | fi | |
6176 | ||
6177 | ||
6178 | enablestring= | |
6179 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6180 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6181 | no_cache=0 | |
6182 | # Check whether --enable-protocol or --disable-protocol was given. | |
6183 | if test "${enable_protocol+set}" = set; then | |
6184 | enableval="$enable_protocol" | |
6185 | ||
6186 | if test "$enableval" = yes; then | |
6187 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6188 | else | |
6189 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6190 | fi | |
6191 | ||
6192 | else | |
6193 | ||
6194 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6195 | if test "x$LINE" != x ; then | |
6196 | eval "DEFAULT_$LINE" | |
6197 | else | |
6198 | no_cache=1 | |
6199 | fi | |
6200 | ||
6201 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6202 | ||
6203 | fi; | |
6204 | ||
6205 | eval "$ac_cv_use_protocol" | |
6206 | if test "$no_cache" != 1; then | |
6207 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6208 | fi | |
6209 | ||
6210 | if test "$wxUSE_PROTOCOL" = yes; then | |
6211 | echo "$as_me:$LINENO: result: yes" >&5 | |
6212 | echo "${ECHO_T}yes" >&6 | |
6213 | else | |
6214 | echo "$as_me:$LINENO: result: no" >&5 | |
6215 | echo "${ECHO_T}no" >&6 | |
6216 | fi | |
6217 | ||
6218 | ||
6219 | enablestring= | |
6220 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6221 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6222 | no_cache=0 | |
6223 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6224 | if test "${enable_protocol_http+set}" = set; then | |
6225 | enableval="$enable_protocol_http" | |
6226 | ||
6227 | if test "$enableval" = yes; then | |
6228 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6229 | else | |
6230 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6231 | fi | |
6232 | ||
6233 | else | |
6234 | ||
6235 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6236 | if test "x$LINE" != x ; then | |
6237 | eval "DEFAULT_$LINE" | |
6238 | else | |
6239 | no_cache=1 | |
6240 | fi | |
6241 | ||
6242 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6243 | ||
6244 | fi; | |
6245 | ||
6246 | eval "$ac_cv_use_protocol_http" | |
6247 | if test "$no_cache" != 1; then | |
6248 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6249 | fi | |
6250 | ||
6251 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6252 | echo "$as_me:$LINENO: result: yes" >&5 | |
6253 | echo "${ECHO_T}yes" >&6 | |
6254 | else | |
6255 | echo "$as_me:$LINENO: result: no" >&5 | |
6256 | echo "${ECHO_T}no" >&6 | |
6257 | fi | |
6258 | ||
6259 | ||
6260 | enablestring= | |
6261 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6262 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6263 | no_cache=0 | |
6264 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6265 | if test "${enable_protocol_ftp+set}" = set; then | |
6266 | enableval="$enable_protocol_ftp" | |
6267 | ||
6268 | if test "$enableval" = yes; then | |
6269 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6270 | else | |
6271 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6272 | fi | |
6273 | ||
6274 | else | |
6275 | ||
6276 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6277 | if test "x$LINE" != x ; then | |
6278 | eval "DEFAULT_$LINE" | |
6279 | else | |
6280 | no_cache=1 | |
6281 | fi | |
6282 | ||
6283 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6284 | ||
6285 | fi; | |
6286 | ||
6287 | eval "$ac_cv_use_protocol_ftp" | |
6288 | if test "$no_cache" != 1; then | |
6289 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6290 | fi | |
6291 | ||
6292 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6293 | echo "$as_me:$LINENO: result: yes" >&5 | |
6294 | echo "${ECHO_T}yes" >&6 | |
6295 | else | |
6296 | echo "$as_me:$LINENO: result: no" >&5 | |
6297 | echo "${ECHO_T}no" >&6 | |
6298 | fi | |
6299 | ||
6300 | ||
6301 | enablestring= | |
6302 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6303 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6304 | no_cache=0 | |
6305 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6306 | if test "${enable_protocol_file+set}" = set; then | |
6307 | enableval="$enable_protocol_file" | |
6308 | ||
6309 | if test "$enableval" = yes; then | |
6310 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6311 | else | |
6312 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6313 | fi | |
6314 | ||
6315 | else | |
6316 | ||
6317 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6318 | if test "x$LINE" != x ; then | |
6319 | eval "DEFAULT_$LINE" | |
6320 | else | |
6321 | no_cache=1 | |
6322 | fi | |
6323 | ||
6324 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6325 | ||
6326 | fi; | |
6327 | ||
6328 | eval "$ac_cv_use_protocol_file" | |
6329 | if test "$no_cache" != 1; then | |
6330 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6331 | fi | |
6332 | ||
6333 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6334 | echo "$as_me:$LINENO: result: yes" >&5 | |
6335 | echo "${ECHO_T}yes" >&6 | |
6336 | else | |
6337 | echo "$as_me:$LINENO: result: no" >&5 | |
6338 | echo "${ECHO_T}no" >&6 | |
6339 | fi | |
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | enablestring= | |
6346 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6347 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6348 | no_cache=0 | |
6349 | # Check whether --enable-threads or --disable-threads was given. | |
6350 | if test "${enable_threads+set}" = set; then | |
6351 | enableval="$enable_threads" | |
6352 | ||
6353 | if test "$enableval" = yes; then | |
6354 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6355 | else | |
6356 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6357 | fi | |
6358 | ||
6359 | else | |
6360 | ||
6361 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6362 | if test "x$LINE" != x ; then | |
6363 | eval "DEFAULT_$LINE" | |
6364 | else | |
6365 | no_cache=1 | |
6366 | fi | |
6367 | ||
6368 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6369 | ||
6370 | fi; | |
6371 | ||
6372 | eval "$ac_cv_use_threads" | |
6373 | if test "$no_cache" != 1; then | |
6374 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6375 | fi | |
6376 | ||
6377 | if test "$wxUSE_THREADS" = yes; then | |
6378 | echo "$as_me:$LINENO: result: yes" >&5 | |
6379 | echo "${ECHO_T}yes" >&6 | |
6380 | else | |
6381 | echo "$as_me:$LINENO: result: no" >&5 | |
6382 | echo "${ECHO_T}no" >&6 | |
6383 | fi | |
6384 | ||
6385 | ||
6386 | if test "$wxUSE_GUI" = "yes"; then | |
6387 | ||
6388 | ||
6389 | ||
6390 | enablestring= | |
6391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6392 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6393 | no_cache=0 | |
6394 | # Check whether --enable-docview or --disable-docview was given. | |
6395 | if test "${enable_docview+set}" = set; then | |
6396 | enableval="$enable_docview" | |
6397 | ||
6398 | if test "$enableval" = yes; then | |
6399 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6400 | else | |
6401 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6402 | fi | |
6403 | ||
6404 | else | |
6405 | ||
6406 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6407 | if test "x$LINE" != x ; then | |
6408 | eval "DEFAULT_$LINE" | |
6409 | else | |
6410 | no_cache=1 | |
6411 | fi | |
6412 | ||
6413 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6414 | ||
6415 | fi; | |
6416 | ||
6417 | eval "$ac_cv_use_docview" | |
6418 | if test "$no_cache" != 1; then | |
6419 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6420 | fi | |
6421 | ||
6422 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6423 | echo "$as_me:$LINENO: result: yes" >&5 | |
6424 | echo "${ECHO_T}yes" >&6 | |
6425 | else | |
6426 | echo "$as_me:$LINENO: result: no" >&5 | |
6427 | echo "${ECHO_T}no" >&6 | |
6428 | fi | |
6429 | ||
6430 | ||
6431 | enablestring= | |
6432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6433 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6434 | no_cache=0 | |
6435 | # Check whether --enable-help or --disable-help was given. | |
6436 | if test "${enable_help+set}" = set; then | |
6437 | enableval="$enable_help" | |
6438 | ||
6439 | if test "$enableval" = yes; then | |
6440 | ac_cv_use_help='wxUSE_HELP=yes' | |
6441 | else | |
6442 | ac_cv_use_help='wxUSE_HELP=no' | |
6443 | fi | |
6444 | ||
6445 | else | |
6446 | ||
6447 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6448 | if test "x$LINE" != x ; then | |
6449 | eval "DEFAULT_$LINE" | |
6450 | else | |
6451 | no_cache=1 | |
6452 | fi | |
6453 | ||
6454 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6455 | ||
6456 | fi; | |
6457 | ||
6458 | eval "$ac_cv_use_help" | |
6459 | if test "$no_cache" != 1; then | |
6460 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6461 | fi | |
6462 | ||
6463 | if test "$wxUSE_HELP" = yes; then | |
6464 | echo "$as_me:$LINENO: result: yes" >&5 | |
6465 | echo "${ECHO_T}yes" >&6 | |
6466 | else | |
6467 | echo "$as_me:$LINENO: result: no" >&5 | |
6468 | echo "${ECHO_T}no" >&6 | |
6469 | fi | |
6470 | ||
6471 | ||
6472 | enablestring= | |
6473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6474 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6475 | no_cache=0 | |
6476 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6477 | if test "${enable_mshtmlhelp+set}" = set; then | |
6478 | enableval="$enable_mshtmlhelp" | |
6479 | ||
6480 | if test "$enableval" = yes; then | |
6481 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6482 | else | |
6483 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6484 | fi | |
6485 | ||
6486 | else | |
6487 | ||
6488 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6489 | if test "x$LINE" != x ; then | |
6490 | eval "DEFAULT_$LINE" | |
6491 | else | |
6492 | no_cache=1 | |
6493 | fi | |
6494 | ||
6495 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6496 | ||
6497 | fi; | |
6498 | ||
6499 | eval "$ac_cv_use_mshtmlhelp" | |
6500 | if test "$no_cache" != 1; then | |
6501 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6502 | fi | |
6503 | ||
6504 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6505 | echo "$as_me:$LINENO: result: yes" >&5 | |
6506 | echo "${ECHO_T}yes" >&6 | |
6507 | else | |
6508 | echo "$as_me:$LINENO: result: no" >&5 | |
6509 | echo "${ECHO_T}no" >&6 | |
6510 | fi | |
6511 | ||
6512 | ||
6513 | enablestring= | |
6514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6515 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6516 | no_cache=0 | |
6517 | # Check whether --enable-html or --disable-html was given. | |
6518 | if test "${enable_html+set}" = set; then | |
6519 | enableval="$enable_html" | |
6520 | ||
6521 | if test "$enableval" = yes; then | |
6522 | ac_cv_use_html='wxUSE_HTML=yes' | |
6523 | else | |
6524 | ac_cv_use_html='wxUSE_HTML=no' | |
6525 | fi | |
6526 | ||
6527 | else | |
6528 | ||
6529 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6530 | if test "x$LINE" != x ; then | |
6531 | eval "DEFAULT_$LINE" | |
6532 | else | |
6533 | no_cache=1 | |
6534 | fi | |
6535 | ||
6536 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6537 | ||
6538 | fi; | |
6539 | ||
6540 | eval "$ac_cv_use_html" | |
6541 | if test "$no_cache" != 1; then | |
6542 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6543 | fi | |
6544 | ||
6545 | if test "$wxUSE_HTML" = yes; then | |
6546 | echo "$as_me:$LINENO: result: yes" >&5 | |
6547 | echo "${ECHO_T}yes" >&6 | |
6548 | else | |
6549 | echo "$as_me:$LINENO: result: no" >&5 | |
6550 | echo "${ECHO_T}no" >&6 | |
6551 | fi | |
6552 | ||
6553 | ||
6554 | enablestring= | |
6555 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6556 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6557 | no_cache=0 | |
6558 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6559 | if test "${enable_htmlhelp+set}" = set; then | |
6560 | enableval="$enable_htmlhelp" | |
6561 | ||
6562 | if test "$enableval" = yes; then | |
6563 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6564 | else | |
6565 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6566 | fi | |
6567 | ||
6568 | else | |
6569 | ||
6570 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6571 | if test "x$LINE" != x ; then | |
6572 | eval "DEFAULT_$LINE" | |
6573 | else | |
6574 | no_cache=1 | |
6575 | fi | |
6576 | ||
6577 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6578 | ||
6579 | fi; | |
6580 | ||
6581 | eval "$ac_cv_use_htmlhelp" | |
6582 | if test "$no_cache" != 1; then | |
6583 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6584 | fi | |
6585 | ||
6586 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6587 | echo "$as_me:$LINENO: result: yes" >&5 | |
6588 | echo "${ECHO_T}yes" >&6 | |
6589 | else | |
6590 | echo "$as_me:$LINENO: result: no" >&5 | |
6591 | echo "${ECHO_T}no" >&6 | |
6592 | fi | |
6593 | ||
6594 | ||
9a8f0513 VS |
6595 | enablestring= |
6596 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6597 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6598 | no_cache=0 | |
6599 | # Check whether --enable-xrc or --disable-xrc was given. | |
6600 | if test "${enable_xrc+set}" = set; then | |
6601 | enableval="$enable_xrc" | |
6602 | ||
6603 | if test "$enableval" = yes; then | |
6604 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6605 | else | |
6606 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6607 | fi | |
6608 | ||
6609 | else | |
6610 | ||
6611 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6612 | if test "x$LINE" != x ; then | |
6613 | eval "DEFAULT_$LINE" | |
6614 | else | |
6615 | no_cache=1 | |
6616 | fi | |
6617 | ||
6618 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6619 | ||
6620 | fi; | |
6621 | ||
6622 | eval "$ac_cv_use_xrc" | |
6623 | if test "$no_cache" != 1; then | |
6624 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6625 | fi | |
6626 | ||
6627 | if test "$wxUSE_XRC" = yes; then | |
6628 | echo "$as_me:$LINENO: result: yes" >&5 | |
6629 | echo "${ECHO_T}yes" >&6 | |
6630 | else | |
6631 | echo "$as_me:$LINENO: result: no" >&5 | |
6632 | echo "${ECHO_T}no" >&6 | |
6633 | fi | |
6634 | ||
6635 | ||
a848cd7e SC |
6636 | enablestring= |
6637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6638 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6639 | no_cache=0 | |
6640 | # Check whether --enable-constraints or --disable-constraints was given. | |
6641 | if test "${enable_constraints+set}" = set; then | |
6642 | enableval="$enable_constraints" | |
6643 | ||
6644 | if test "$enableval" = yes; then | |
6645 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6646 | else | |
6647 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6648 | fi | |
6649 | ||
6650 | else | |
6651 | ||
6652 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6653 | if test "x$LINE" != x ; then | |
6654 | eval "DEFAULT_$LINE" | |
6655 | else | |
6656 | no_cache=1 | |
6657 | fi | |
6658 | ||
6659 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6660 | ||
6661 | fi; | |
6662 | ||
6663 | eval "$ac_cv_use_constraints" | |
6664 | if test "$no_cache" != 1; then | |
6665 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6666 | fi | |
6667 | ||
6668 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6669 | echo "$as_me:$LINENO: result: yes" >&5 | |
6670 | echo "${ECHO_T}yes" >&6 | |
6671 | else | |
6672 | echo "$as_me:$LINENO: result: no" >&5 | |
6673 | echo "${ECHO_T}no" >&6 | |
6674 | fi | |
6675 | ||
6676 | ||
6677 | enablestring= | |
6678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6679 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6680 | no_cache=0 | |
6681 | # Check whether --enable-printarch or --disable-printarch was given. | |
6682 | if test "${enable_printarch+set}" = set; then | |
6683 | enableval="$enable_printarch" | |
6684 | ||
6685 | if test "$enableval" = yes; then | |
6686 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6687 | else | |
6688 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6689 | fi | |
6690 | ||
6691 | else | |
6692 | ||
6693 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6694 | if test "x$LINE" != x ; then | |
6695 | eval "DEFAULT_$LINE" | |
6696 | else | |
6697 | no_cache=1 | |
6698 | fi | |
6699 | ||
6700 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6701 | ||
6702 | fi; | |
6703 | ||
6704 | eval "$ac_cv_use_printarch" | |
6705 | if test "$no_cache" != 1; then | |
6706 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6707 | fi | |
6708 | ||
6709 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6710 | echo "$as_me:$LINENO: result: yes" >&5 | |
6711 | echo "${ECHO_T}yes" >&6 | |
6712 | else | |
6713 | echo "$as_me:$LINENO: result: no" >&5 | |
6714 | echo "${ECHO_T}no" >&6 | |
6715 | fi | |
6716 | ||
6717 | ||
6718 | enablestring= | |
6719 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6720 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6721 | no_cache=0 | |
6722 | # Check whether --enable-mdi or --disable-mdi was given. | |
6723 | if test "${enable_mdi+set}" = set; then | |
6724 | enableval="$enable_mdi" | |
6725 | ||
6726 | if test "$enableval" = yes; then | |
8a7b1113 | 6727 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6728 | else |
8a7b1113 | 6729 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6730 | fi |
6731 | ||
6732 | else | |
6733 | ||
8a7b1113 | 6734 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6735 | if test "x$LINE" != x ; then |
6736 | eval "DEFAULT_$LINE" | |
6737 | else | |
6738 | no_cache=1 | |
6739 | fi | |
6740 | ||
8a7b1113 | 6741 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6742 | |
6743 | fi; | |
6744 | ||
6745 | eval "$ac_cv_use_mdi" | |
6746 | if test "$no_cache" != 1; then | |
6747 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6748 | fi | |
6749 | ||
8a7b1113 VZ |
6750 | if test "$wxUSE_MDI" = yes; then |
6751 | echo "$as_me:$LINENO: result: yes" >&5 | |
6752 | echo "${ECHO_T}yes" >&6 | |
6753 | else | |
6754 | echo "$as_me:$LINENO: result: no" >&5 | |
6755 | echo "${ECHO_T}no" >&6 | |
6756 | fi | |
6757 | ||
6758 | ||
6759 | enablestring= | |
6760 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6761 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6762 | no_cache=0 | |
6763 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6764 | if test "${enable_mdidoc+set}" = set; then | |
6765 | enableval="$enable_mdidoc" | |
6766 | ||
6767 | if test "$enableval" = yes; then | |
6768 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6769 | else | |
6770 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6771 | fi | |
6772 | ||
6773 | else | |
6774 | ||
6775 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6776 | if test "x$LINE" != x ; then | |
6777 | eval "DEFAULT_$LINE" | |
6778 | else | |
6779 | no_cache=1 | |
6780 | fi | |
6781 | ||
6782 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6783 | ||
6784 | fi; | |
6785 | ||
6786 | eval "$ac_cv_use_mdidoc" | |
6787 | if test "$no_cache" != 1; then | |
6788 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6789 | fi | |
6790 | ||
a848cd7e SC |
6791 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6792 | echo "$as_me:$LINENO: result: yes" >&5 | |
6793 | echo "${ECHO_T}yes" >&6 | |
6794 | else | |
6795 | echo "$as_me:$LINENO: result: no" >&5 | |
6796 | echo "${ECHO_T}no" >&6 | |
6797 | fi | |
6798 | ||
6799 | ||
6800 | enablestring= | |
6801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6802 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6803 | no_cache=0 | |
6804 | # Check whether --enable-loggui or --disable-loggui was given. | |
6805 | if test "${enable_loggui+set}" = set; then | |
6806 | enableval="$enable_loggui" | |
6807 | ||
6808 | if test "$enableval" = yes; then | |
6809 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6810 | else | |
6811 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6812 | fi | |
6813 | ||
6814 | else | |
6815 | ||
6816 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6817 | if test "x$LINE" != x ; then | |
6818 | eval "DEFAULT_$LINE" | |
6819 | else | |
6820 | no_cache=1 | |
6821 | fi | |
6822 | ||
6823 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6824 | ||
6825 | fi; | |
6826 | ||
6827 | eval "$ac_cv_use_loggui" | |
6828 | if test "$no_cache" != 1; then | |
6829 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6830 | fi | |
6831 | ||
6832 | if test "$wxUSE_LOGGUI" = yes; then | |
6833 | echo "$as_me:$LINENO: result: yes" >&5 | |
6834 | echo "${ECHO_T}yes" >&6 | |
6835 | else | |
6836 | echo "$as_me:$LINENO: result: no" >&5 | |
6837 | echo "${ECHO_T}no" >&6 | |
6838 | fi | |
6839 | ||
6840 | ||
6841 | enablestring= | |
6842 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6843 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6844 | no_cache=0 | |
6845 | # Check whether --enable-logwin or --disable-logwin was given. | |
6846 | if test "${enable_logwin+set}" = set; then | |
6847 | enableval="$enable_logwin" | |
6848 | ||
6849 | if test "$enableval" = yes; then | |
6850 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6851 | else | |
6852 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6853 | fi | |
6854 | ||
6855 | else | |
6856 | ||
6857 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6858 | if test "x$LINE" != x ; then | |
6859 | eval "DEFAULT_$LINE" | |
6860 | else | |
6861 | no_cache=1 | |
6862 | fi | |
6863 | ||
6864 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6865 | ||
6866 | fi; | |
6867 | ||
6868 | eval "$ac_cv_use_logwin" | |
6869 | if test "$no_cache" != 1; then | |
6870 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6871 | fi | |
6872 | ||
6873 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6874 | echo "$as_me:$LINENO: result: yes" >&5 | |
6875 | echo "${ECHO_T}yes" >&6 | |
6876 | else | |
6877 | echo "$as_me:$LINENO: result: no" >&5 | |
6878 | echo "${ECHO_T}no" >&6 | |
6879 | fi | |
6880 | ||
6881 | ||
6882 | enablestring= | |
6883 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6884 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6885 | no_cache=0 | |
6886 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6887 | if test "${enable_logdialog+set}" = set; then | |
6888 | enableval="$enable_logdialog" | |
6889 | ||
6890 | if test "$enableval" = yes; then | |
6891 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6892 | else | |
6893 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6894 | fi | |
6895 | ||
6896 | else | |
6897 | ||
6898 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6899 | if test "x$LINE" != x ; then | |
6900 | eval "DEFAULT_$LINE" | |
6901 | else | |
6902 | no_cache=1 | |
6903 | fi | |
6904 | ||
6905 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6906 | ||
6907 | fi; | |
6908 | ||
6909 | eval "$ac_cv_use_logdialog" | |
6910 | if test "$no_cache" != 1; then | |
6911 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6912 | fi | |
6913 | ||
6914 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6915 | echo "$as_me:$LINENO: result: yes" >&5 | |
6916 | echo "${ECHO_T}yes" >&6 | |
6917 | else | |
6918 | echo "$as_me:$LINENO: result: no" >&5 | |
6919 | echo "${ECHO_T}no" >&6 | |
6920 | fi | |
6921 | ||
6922 | ||
646b6ec1 VS |
6923 | enablestring= |
6924 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6925 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6926 | no_cache=0 | |
6927 | # Check whether --enable-webkit or --disable-webkit was given. | |
6928 | if test "${enable_webkit+set}" = set; then | |
6929 | enableval="$enable_webkit" | |
6930 | ||
6931 | if test "$enableval" = yes; then | |
6932 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6933 | else | |
6934 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6935 | fi | |
6936 | ||
6937 | else | |
6938 | ||
6939 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6940 | if test "x$LINE" != x ; then | |
6941 | eval "DEFAULT_$LINE" | |
6942 | else | |
6943 | no_cache=1 | |
6944 | fi | |
6945 | ||
6946 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6947 | ||
6948 | fi; | |
6949 | ||
6950 | eval "$ac_cv_use_webkit" | |
6951 | if test "$no_cache" != 1; then | |
6952 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6953 | fi | |
6954 | ||
6955 | if test "$wxUSE_WEBKIT" = yes; then | |
6956 | echo "$as_me:$LINENO: result: yes" >&5 | |
6957 | echo "${ECHO_T}yes" >&6 | |
6958 | else | |
6959 | echo "$as_me:$LINENO: result: no" >&5 | |
6960 | echo "${ECHO_T}no" >&6 | |
6961 | fi | |
6962 | ||
6963 | ||
a848cd7e SC |
6964 | |
6965 | enablestring= | |
6966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6967 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6968 | no_cache=0 | |
6969 | # Check whether --enable-postscript or --disable-postscript was given. | |
6970 | if test "${enable_postscript+set}" = set; then | |
6971 | enableval="$enable_postscript" | |
6972 | ||
6973 | if test "$enableval" = yes; then | |
6974 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6975 | else | |
6976 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6977 | fi | |
6978 | ||
6979 | else | |
6980 | ||
6981 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6982 | if test "x$LINE" != x ; then | |
6983 | eval "DEFAULT_$LINE" | |
6984 | else | |
6985 | no_cache=1 | |
6986 | fi | |
6987 | ||
6988 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6989 | ||
6990 | fi; | |
6991 | ||
6992 | eval "$ac_cv_use_postscript" | |
6993 | if test "$no_cache" != 1; then | |
6994 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6995 | fi | |
6996 | ||
6997 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6998 | echo "$as_me:$LINENO: result: yes" >&5 | |
6999 | echo "${ECHO_T}yes" >&6 | |
7000 | else | |
7001 | echo "$as_me:$LINENO: result: no" >&5 | |
7002 | echo "${ECHO_T}no" >&6 | |
7003 | fi | |
7004 | ||
7005 | ||
7006 | ||
7007 | ||
7008 | ||
7009 | enablestring= | |
7010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7011 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7012 | no_cache=0 | |
7013 | # Check whether --enable-prologio or --disable-prologio was given. | |
7014 | if test "${enable_prologio+set}" = set; then | |
7015 | enableval="$enable_prologio" | |
7016 | ||
7017 | if test "$enableval" = yes; then | |
7018 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7019 | else | |
7020 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7021 | fi | |
7022 | ||
7023 | else | |
7024 | ||
7025 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7026 | if test "x$LINE" != x ; then | |
7027 | eval "DEFAULT_$LINE" | |
7028 | else | |
7029 | no_cache=1 | |
7030 | fi | |
7031 | ||
7032 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7033 | ||
7034 | fi; | |
7035 | ||
7036 | eval "$ac_cv_use_prologio" | |
7037 | if test "$no_cache" != 1; then | |
7038 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7039 | fi | |
7040 | ||
7041 | if test "$wxUSE_PROLOGIO" = yes; then | |
7042 | echo "$as_me:$LINENO: result: yes" >&5 | |
7043 | echo "${ECHO_T}yes" >&6 | |
7044 | else | |
7045 | echo "$as_me:$LINENO: result: no" >&5 | |
7046 | echo "${ECHO_T}no" >&6 | |
7047 | fi | |
7048 | ||
7049 | ||
7050 | enablestring= | |
7051 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7052 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7053 | no_cache=0 | |
7054 | # Check whether --enable-resources or --disable-resources was given. | |
7055 | if test "${enable_resources+set}" = set; then | |
7056 | enableval="$enable_resources" | |
7057 | ||
7058 | if test "$enableval" = yes; then | |
7059 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7060 | else | |
7061 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7062 | fi | |
7063 | ||
7064 | else | |
7065 | ||
7066 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7067 | if test "x$LINE" != x ; then | |
7068 | eval "DEFAULT_$LINE" | |
7069 | else | |
7070 | no_cache=1 | |
7071 | fi | |
7072 | ||
7073 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7074 | ||
7075 | fi; | |
7076 | ||
7077 | eval "$ac_cv_use_resources" | |
7078 | if test "$no_cache" != 1; then | |
7079 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7080 | fi | |
7081 | ||
7082 | if test "$wxUSE_RESOURCES" = yes; then | |
7083 | echo "$as_me:$LINENO: result: yes" >&5 | |
7084 | echo "${ECHO_T}yes" >&6 | |
7085 | else | |
7086 | echo "$as_me:$LINENO: result: no" >&5 | |
7087 | echo "${ECHO_T}no" >&6 | |
7088 | fi | |
7089 | ||
7090 | ||
7091 | ||
7092 | ||
7093 | enablestring= | |
7094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7095 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7096 | no_cache=0 | |
7097 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7098 | if test "${enable_clipboard+set}" = set; then | |
7099 | enableval="$enable_clipboard" | |
7100 | ||
7101 | if test "$enableval" = yes; then | |
7102 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7103 | else | |
7104 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7105 | fi | |
7106 | ||
7107 | else | |
7108 | ||
7109 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7110 | if test "x$LINE" != x ; then | |
7111 | eval "DEFAULT_$LINE" | |
7112 | else | |
7113 | no_cache=1 | |
7114 | fi | |
7115 | ||
7116 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7117 | ||
7118 | fi; | |
7119 | ||
7120 | eval "$ac_cv_use_clipboard" | |
7121 | if test "$no_cache" != 1; then | |
7122 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7123 | fi | |
7124 | ||
7125 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7126 | echo "$as_me:$LINENO: result: yes" >&5 | |
7127 | echo "${ECHO_T}yes" >&6 | |
7128 | else | |
7129 | echo "$as_me:$LINENO: result: no" >&5 | |
7130 | echo "${ECHO_T}no" >&6 | |
7131 | fi | |
7132 | ||
7133 | ||
7134 | enablestring= | |
7135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7136 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7137 | no_cache=0 | |
7138 | # Check whether --enable-dnd or --disable-dnd was given. | |
7139 | if test "${enable_dnd+set}" = set; then | |
7140 | enableval="$enable_dnd" | |
7141 | ||
7142 | if test "$enableval" = yes; then | |
7143 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7144 | else | |
7145 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7146 | fi | |
7147 | ||
7148 | else | |
7149 | ||
7150 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7151 | if test "x$LINE" != x ; then | |
7152 | eval "DEFAULT_$LINE" | |
7153 | else | |
7154 | no_cache=1 | |
7155 | fi | |
7156 | ||
7157 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7158 | ||
7159 | fi; | |
7160 | ||
7161 | eval "$ac_cv_use_dnd" | |
7162 | if test "$no_cache" != 1; then | |
7163 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7164 | fi | |
7165 | ||
7166 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7167 | echo "$as_me:$LINENO: result: yes" >&5 | |
7168 | echo "${ECHO_T}yes" >&6 | |
7169 | else | |
7170 | echo "$as_me:$LINENO: result: no" >&5 | |
7171 | echo "${ECHO_T}no" >&6 | |
7172 | fi | |
7173 | ||
7174 | ||
7175 | enablestring= | |
7176 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7177 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7178 | no_cache=0 | |
7179 | # Check whether --enable-metafile or --disable-metafile was given. | |
7180 | if test "${enable_metafile+set}" = set; then | |
7181 | enableval="$enable_metafile" | |
7182 | ||
7183 | if test "$enableval" = yes; then | |
7184 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7185 | else | |
7186 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7187 | fi | |
7188 | ||
7189 | else | |
7190 | ||
7191 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7192 | if test "x$LINE" != x ; then | |
7193 | eval "DEFAULT_$LINE" | |
7194 | else | |
7195 | no_cache=1 | |
7196 | fi | |
7197 | ||
7198 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7199 | ||
7200 | fi; | |
7201 | ||
7202 | eval "$ac_cv_use_metafile" | |
7203 | if test "$no_cache" != 1; then | |
7204 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7205 | fi | |
7206 | ||
7207 | if test "$wxUSE_METAFILE" = yes; then | |
7208 | echo "$as_me:$LINENO: result: yes" >&5 | |
7209 | echo "${ECHO_T}yes" >&6 | |
7210 | else | |
7211 | echo "$as_me:$LINENO: result: no" >&5 | |
7212 | echo "${ECHO_T}no" >&6 | |
7213 | fi | |
7214 | ||
7215 | ||
7216 | ||
7217 | ||
7218 | ||
7219 | enablestring= | |
7220 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7221 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7222 | no_cache=0 | |
7223 | # Check whether --enable-controls or --disable-controls was given. | |
7224 | if test "${enable_controls+set}" = set; then | |
7225 | enableval="$enable_controls" | |
7226 | ||
7227 | if test "$enableval" = yes; then | |
7228 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7229 | else | |
7230 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7231 | fi | |
7232 | ||
7233 | else | |
7234 | ||
7235 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7236 | if test "x$LINE" != x ; then | |
7237 | eval "DEFAULT_$LINE" | |
7238 | else | |
7239 | no_cache=1 | |
7240 | fi | |
7241 | ||
7242 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7243 | ||
7244 | fi; | |
7245 | ||
7246 | eval "$ac_cv_use_controls" | |
7247 | if test "$no_cache" != 1; then | |
7248 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7249 | fi | |
7250 | ||
7251 | if test "$wxUSE_CONTROLS" = yes; then | |
7252 | echo "$as_me:$LINENO: result: yes" >&5 | |
7253 | echo "${ECHO_T}yes" >&6 | |
7254 | else | |
7255 | echo "$as_me:$LINENO: result: no" >&5 | |
7256 | echo "${ECHO_T}no" >&6 | |
7257 | fi | |
7258 | ||
7259 | ||
7260 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7261 | DEFAULT_wxUSE_ACCEL=yes | |
7262 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7263 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7264 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7265 | DEFAULT_wxUSE_CARET=yes |
7266 | DEFAULT_wxUSE_COMBOBOX=yes | |
7267 | DEFAULT_wxUSE_CHECKBOX=yes | |
7268 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7269 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7270 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7271 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7272 | DEFAULT_wxUSE_GAUGE=yes |
7273 | DEFAULT_wxUSE_GRID=yes | |
7274 | DEFAULT_wxUSE_IMAGLIST=yes | |
7275 | DEFAULT_wxUSE_LISTBOOK=yes | |
7276 | DEFAULT_wxUSE_LISTBOX=yes | |
7277 | DEFAULT_wxUSE_LISTCTRL=yes | |
7278 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7279 | DEFAULT_wxUSE_RADIOBOX=yes | |
7280 | DEFAULT_wxUSE_RADIOBTN=yes | |
7281 | DEFAULT_wxUSE_SASH=yes | |
7282 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7283 | DEFAULT_wxUSE_SLIDER=yes | |
7284 | DEFAULT_wxUSE_SPINBTN=yes | |
7285 | DEFAULT_wxUSE_SPINCTRL=yes | |
7286 | DEFAULT_wxUSE_SPLITTER=yes | |
7287 | DEFAULT_wxUSE_STATBMP=yes | |
7288 | DEFAULT_wxUSE_STATBOX=yes | |
7289 | DEFAULT_wxUSE_STATLINE=yes | |
7290 | DEFAULT_wxUSE_STATUSBAR=yes | |
7291 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7292 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7293 | DEFAULT_wxUSE_TOOLBAR=yes | |
7294 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7295 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7296 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7297 | DEFAULT_wxUSE_TREECTRL=yes | |
7298 | DEFAULT_wxUSE_POPUPWIN=yes | |
7299 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7300 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7301 | DEFAULT_wxUSE_ACCEL=no | |
7302 | DEFAULT_wxUSE_BMPBUTTON=no | |
7303 | DEFAULT_wxUSE_BUTTON=no | |
7304 | DEFAULT_wxUSE_CALCTRL=no | |
7305 | DEFAULT_wxUSE_CARET=no | |
7306 | DEFAULT_wxUSE_COMBOBOX=no | |
7307 | DEFAULT_wxUSE_CHECKBOX=no | |
7308 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7309 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7310 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7311 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7312 | DEFAULT_wxUSE_GAUGE=no |
7313 | DEFAULT_wxUSE_GRID=no | |
7314 | DEFAULT_wxUSE_IMAGLIST=no | |
7315 | DEFAULT_wxUSE_LISTBOOK=no | |
7316 | DEFAULT_wxUSE_LISTBOX=no | |
7317 | DEFAULT_wxUSE_LISTCTRL=no | |
7318 | DEFAULT_wxUSE_NOTEBOOK=no | |
7319 | DEFAULT_wxUSE_RADIOBOX=no | |
7320 | DEFAULT_wxUSE_RADIOBTN=no | |
7321 | DEFAULT_wxUSE_SASH=no | |
7322 | DEFAULT_wxUSE_SCROLLBAR=no | |
7323 | DEFAULT_wxUSE_SLIDER=no | |
7324 | DEFAULT_wxUSE_SPINBTN=no | |
7325 | DEFAULT_wxUSE_SPINCTRL=no | |
7326 | DEFAULT_wxUSE_SPLITTER=no | |
7327 | DEFAULT_wxUSE_STATBMP=no | |
7328 | DEFAULT_wxUSE_STATBOX=no | |
7329 | DEFAULT_wxUSE_STATLINE=no | |
7330 | DEFAULT_wxUSE_STATUSBAR=no | |
7331 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7332 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7333 | DEFAULT_wxUSE_TOOLBAR=no | |
7334 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7335 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7336 | DEFAULT_wxUSE_TOOLTIPS=no | |
7337 | DEFAULT_wxUSE_TREECTRL=no | |
7338 | DEFAULT_wxUSE_POPUPWIN=no | |
7339 | DEFAULT_wxUSE_TIPWINDOW=no | |
7340 | fi | |
7341 | ||
a848cd7e SC |
7342 | |
7343 | enablestring= | |
7344 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7345 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7346 | no_cache=0 | |
7347 | # Check whether --enable-accel or --disable-accel was given. | |
7348 | if test "${enable_accel+set}" = set; then | |
7349 | enableval="$enable_accel" | |
7350 | ||
7351 | if test "$enableval" = yes; then | |
7352 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7353 | else | |
7354 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7355 | fi | |
7356 | ||
7357 | else | |
7358 | ||
7359 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7360 | if test "x$LINE" != x ; then | |
7361 | eval "DEFAULT_$LINE" | |
7362 | else | |
7363 | no_cache=1 | |
7364 | fi | |
7365 | ||
7366 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7367 | ||
7368 | fi; | |
7369 | ||
7370 | eval "$ac_cv_use_accel" | |
7371 | if test "$no_cache" != 1; then | |
7372 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7373 | fi | |
7374 | ||
7375 | if test "$wxUSE_ACCEL" = yes; then | |
7376 | echo "$as_me:$LINENO: result: yes" >&5 | |
7377 | echo "${ECHO_T}yes" >&6 | |
7378 | else | |
7379 | echo "$as_me:$LINENO: result: no" >&5 | |
7380 | echo "${ECHO_T}no" >&6 | |
7381 | fi | |
7382 | ||
7383 | ||
7384 | enablestring= | |
7385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7386 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7387 | no_cache=0 | |
7388 | # Check whether --enable-button or --disable-button was given. | |
7389 | if test "${enable_button+set}" = set; then | |
7390 | enableval="$enable_button" | |
7391 | ||
7392 | if test "$enableval" = yes; then | |
7393 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7394 | else | |
7395 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7396 | fi | |
7397 | ||
7398 | else | |
7399 | ||
7400 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7401 | if test "x$LINE" != x ; then | |
7402 | eval "DEFAULT_$LINE" | |
7403 | else | |
7404 | no_cache=1 | |
7405 | fi | |
7406 | ||
7407 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7408 | ||
7409 | fi; | |
7410 | ||
7411 | eval "$ac_cv_use_button" | |
7412 | if test "$no_cache" != 1; then | |
7413 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7414 | fi | |
7415 | ||
7416 | if test "$wxUSE_BUTTON" = yes; then | |
7417 | echo "$as_me:$LINENO: result: yes" >&5 | |
7418 | echo "${ECHO_T}yes" >&6 | |
7419 | else | |
7420 | echo "$as_me:$LINENO: result: no" >&5 | |
7421 | echo "${ECHO_T}no" >&6 | |
7422 | fi | |
7423 | ||
7424 | ||
7425 | enablestring= | |
7426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7427 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7428 | no_cache=0 | |
7429 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7430 | if test "${enable_bmpbutton+set}" = set; then | |
7431 | enableval="$enable_bmpbutton" | |
7432 | ||
7433 | if test "$enableval" = yes; then | |
7434 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7435 | else | |
7436 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7437 | fi | |
7438 | ||
7439 | else | |
7440 | ||
7441 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7442 | if test "x$LINE" != x ; then | |
7443 | eval "DEFAULT_$LINE" | |
7444 | else | |
7445 | no_cache=1 | |
7446 | fi | |
7447 | ||
7448 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7449 | ||
7450 | fi; | |
7451 | ||
7452 | eval "$ac_cv_use_bmpbutton" | |
7453 | if test "$no_cache" != 1; then | |
7454 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7455 | fi | |
7456 | ||
7457 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7458 | echo "$as_me:$LINENO: result: yes" >&5 | |
7459 | echo "${ECHO_T}yes" >&6 | |
7460 | else | |
7461 | echo "$as_me:$LINENO: result: no" >&5 | |
7462 | echo "${ECHO_T}no" >&6 | |
7463 | fi | |
7464 | ||
7465 | ||
7466 | enablestring= | |
7467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7468 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7469 | no_cache=0 | |
7470 | # Check whether --enable-calendar or --disable-calendar was given. | |
7471 | if test "${enable_calendar+set}" = set; then | |
7472 | enableval="$enable_calendar" | |
7473 | ||
7474 | if test "$enableval" = yes; then | |
7475 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7476 | else | |
7477 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7478 | fi | |
7479 | ||
7480 | else | |
7481 | ||
7482 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7483 | if test "x$LINE" != x ; then | |
7484 | eval "DEFAULT_$LINE" | |
7485 | else | |
7486 | no_cache=1 | |
7487 | fi | |
7488 | ||
7489 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7490 | ||
7491 | fi; | |
7492 | ||
7493 | eval "$ac_cv_use_calendar" | |
7494 | if test "$no_cache" != 1; then | |
7495 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7496 | fi | |
7497 | ||
7498 | if test "$wxUSE_CALCTRL" = yes; then | |
7499 | echo "$as_me:$LINENO: result: yes" >&5 | |
7500 | echo "${ECHO_T}yes" >&6 | |
7501 | else | |
7502 | echo "$as_me:$LINENO: result: no" >&5 | |
7503 | echo "${ECHO_T}no" >&6 | |
7504 | fi | |
7505 | ||
7506 | ||
7507 | enablestring= | |
7508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7509 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7510 | no_cache=0 | |
7511 | # Check whether --enable-caret or --disable-caret was given. | |
7512 | if test "${enable_caret+set}" = set; then | |
7513 | enableval="$enable_caret" | |
7514 | ||
7515 | if test "$enableval" = yes; then | |
7516 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7517 | else | |
7518 | ac_cv_use_caret='wxUSE_CARET=no' | |
7519 | fi | |
7520 | ||
7521 | else | |
7522 | ||
7523 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7524 | if test "x$LINE" != x ; then | |
7525 | eval "DEFAULT_$LINE" | |
7526 | else | |
7527 | no_cache=1 | |
7528 | fi | |
7529 | ||
7530 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7531 | ||
7532 | fi; | |
7533 | ||
7534 | eval "$ac_cv_use_caret" | |
7535 | if test "$no_cache" != 1; then | |
7536 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7537 | fi | |
7538 | ||
7539 | if test "$wxUSE_CARET" = yes; then | |
7540 | echo "$as_me:$LINENO: result: yes" >&5 | |
7541 | echo "${ECHO_T}yes" >&6 | |
7542 | else | |
7543 | echo "$as_me:$LINENO: result: no" >&5 | |
7544 | echo "${ECHO_T}no" >&6 | |
7545 | fi | |
7546 | ||
7547 | ||
7548 | enablestring= | |
7549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7550 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7551 | no_cache=0 | |
7552 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7553 | if test "${enable_checkbox+set}" = set; then | |
7554 | enableval="$enable_checkbox" | |
7555 | ||
7556 | if test "$enableval" = yes; then | |
7557 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7558 | else | |
7559 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7560 | fi | |
7561 | ||
7562 | else | |
7563 | ||
7564 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7565 | if test "x$LINE" != x ; then | |
7566 | eval "DEFAULT_$LINE" | |
7567 | else | |
7568 | no_cache=1 | |
7569 | fi | |
7570 | ||
7571 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7572 | ||
7573 | fi; | |
7574 | ||
7575 | eval "$ac_cv_use_checkbox" | |
7576 | if test "$no_cache" != 1; then | |
7577 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7578 | fi | |
7579 | ||
7580 | if test "$wxUSE_CHECKBOX" = yes; then | |
7581 | echo "$as_me:$LINENO: result: yes" >&5 | |
7582 | echo "${ECHO_T}yes" >&6 | |
7583 | else | |
7584 | echo "$as_me:$LINENO: result: no" >&5 | |
7585 | echo "${ECHO_T}no" >&6 | |
7586 | fi | |
7587 | ||
7588 | ||
7589 | enablestring= | |
7590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7591 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7592 | no_cache=0 | |
7593 | # Check whether --enable-checklst or --disable-checklst was given. | |
7594 | if test "${enable_checklst+set}" = set; then | |
7595 | enableval="$enable_checklst" | |
7596 | ||
7597 | if test "$enableval" = yes; then | |
7598 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7599 | else | |
7600 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7601 | fi | |
7602 | ||
7603 | else | |
7604 | ||
7605 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7606 | if test "x$LINE" != x ; then | |
7607 | eval "DEFAULT_$LINE" | |
7608 | else | |
7609 | no_cache=1 | |
7610 | fi | |
7611 | ||
7612 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7613 | ||
7614 | fi; | |
7615 | ||
7616 | eval "$ac_cv_use_checklst" | |
7617 | if test "$no_cache" != 1; then | |
7618 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7619 | fi | |
7620 | ||
7621 | if test "$wxUSE_CHECKLST" = yes; then | |
7622 | echo "$as_me:$LINENO: result: yes" >&5 | |
7623 | echo "${ECHO_T}yes" >&6 | |
7624 | else | |
7625 | echo "$as_me:$LINENO: result: no" >&5 | |
7626 | echo "${ECHO_T}no" >&6 | |
7627 | fi | |
7628 | ||
7629 | ||
7630 | enablestring= | |
7631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7632 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7633 | no_cache=0 | |
7634 | # Check whether --enable-choice or --disable-choice was given. | |
7635 | if test "${enable_choice+set}" = set; then | |
7636 | enableval="$enable_choice" | |
7637 | ||
7638 | if test "$enableval" = yes; then | |
7639 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7640 | else | |
7641 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7642 | fi | |
7643 | ||
7644 | else | |
7645 | ||
7646 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7647 | if test "x$LINE" != x ; then | |
7648 | eval "DEFAULT_$LINE" | |
7649 | else | |
7650 | no_cache=1 | |
7651 | fi | |
7652 | ||
7653 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7654 | ||
7655 | fi; | |
7656 | ||
7657 | eval "$ac_cv_use_choice" | |
7658 | if test "$no_cache" != 1; then | |
7659 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7660 | fi | |
7661 | ||
7662 | if test "$wxUSE_CHOICE" = yes; then | |
7663 | echo "$as_me:$LINENO: result: yes" >&5 | |
7664 | echo "${ECHO_T}yes" >&6 | |
7665 | else | |
7666 | echo "$as_me:$LINENO: result: no" >&5 | |
7667 | echo "${ECHO_T}no" >&6 | |
7668 | fi | |
7669 | ||
7670 | ||
92bbdbcd WS |
7671 | enablestring= |
7672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7673 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7674 | no_cache=0 | |
7675 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7676 | if test "${enable_choicebook+set}" = set; then | |
7677 | enableval="$enable_choicebook" | |
7678 | ||
7679 | if test "$enableval" = yes; then | |
7680 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7681 | else | |
7682 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7683 | fi | |
7684 | ||
7685 | else | |
7686 | ||
7687 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7688 | if test "x$LINE" != x ; then | |
7689 | eval "DEFAULT_$LINE" | |
7690 | else | |
7691 | no_cache=1 | |
7692 | fi | |
7693 | ||
7694 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7695 | ||
7696 | fi; | |
7697 | ||
7698 | eval "$ac_cv_use_choicebook" | |
7699 | if test "$no_cache" != 1; then | |
7700 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7701 | fi | |
7702 | ||
7703 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7704 | echo "$as_me:$LINENO: result: yes" >&5 | |
7705 | echo "${ECHO_T}yes" >&6 | |
7706 | else | |
7707 | echo "$as_me:$LINENO: result: no" >&5 | |
7708 | echo "${ECHO_T}no" >&6 | |
7709 | fi | |
7710 | ||
7711 | ||
a848cd7e SC |
7712 | enablestring= |
7713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7714 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7715 | no_cache=0 | |
7716 | # Check whether --enable-combobox or --disable-combobox was given. | |
7717 | if test "${enable_combobox+set}" = set; then | |
7718 | enableval="$enable_combobox" | |
7719 | ||
7720 | if test "$enableval" = yes; then | |
7721 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7722 | else | |
7723 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7724 | fi | |
7725 | ||
7726 | else | |
7727 | ||
7728 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7729 | if test "x$LINE" != x ; then | |
7730 | eval "DEFAULT_$LINE" | |
7731 | else | |
7732 | no_cache=1 | |
7733 | fi | |
7734 | ||
7735 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7736 | ||
7737 | fi; | |
7738 | ||
7739 | eval "$ac_cv_use_combobox" | |
7740 | if test "$no_cache" != 1; then | |
7741 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7742 | fi | |
7743 | ||
7744 | if test "$wxUSE_COMBOBOX" = yes; then | |
7745 | echo "$as_me:$LINENO: result: yes" >&5 | |
7746 | echo "${ECHO_T}yes" >&6 | |
7747 | else | |
7748 | echo "$as_me:$LINENO: result: no" >&5 | |
7749 | echo "${ECHO_T}no" >&6 | |
7750 | fi | |
7751 | ||
7752 | ||
da98e9be VZ |
7753 | enablestring= |
7754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7755 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7756 | no_cache=0 | |
7757 | # Check whether --enable-datepick or --disable-datepick was given. | |
7758 | if test "${enable_datepick+set}" = set; then | |
7759 | enableval="$enable_datepick" | |
7760 | ||
7761 | if test "$enableval" = yes; then | |
7762 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7763 | else | |
7764 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7765 | fi | |
7766 | ||
7767 | else | |
7768 | ||
7769 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7770 | if test "x$LINE" != x ; then | |
7771 | eval "DEFAULT_$LINE" | |
7772 | else | |
7773 | no_cache=1 | |
7774 | fi | |
7775 | ||
7776 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7777 | ||
7778 | fi; | |
7779 | ||
7780 | eval "$ac_cv_use_datepick" | |
7781 | if test "$no_cache" != 1; then | |
7782 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7783 | fi | |
7784 | ||
7785 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7786 | echo "$as_me:$LINENO: result: yes" >&5 | |
7787 | echo "${ECHO_T}yes" >&6 | |
7788 | else | |
7789 | echo "$as_me:$LINENO: result: no" >&5 | |
7790 | echo "${ECHO_T}no" >&6 | |
7791 | fi | |
7792 | ||
7793 | ||
a848cd7e SC |
7794 | enablestring= |
7795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7796 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7797 | no_cache=0 | |
7798 | # Check whether --enable-display or --disable-display was given. | |
7799 | if test "${enable_display+set}" = set; then | |
7800 | enableval="$enable_display" | |
7801 | ||
7802 | if test "$enableval" = yes; then | |
7803 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7804 | else | |
7805 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7806 | fi | |
7807 | ||
7808 | else | |
7809 | ||
7810 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7811 | if test "x$LINE" != x ; then | |
7812 | eval "DEFAULT_$LINE" | |
7813 | else | |
7814 | no_cache=1 | |
7815 | fi | |
7816 | ||
7817 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7818 | ||
7819 | fi; | |
7820 | ||
7821 | eval "$ac_cv_use_display" | |
7822 | if test "$no_cache" != 1; then | |
7823 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7824 | fi | |
7825 | ||
7826 | if test "$wxUSE_DISPLAY" = yes; then | |
7827 | echo "$as_me:$LINENO: result: yes" >&5 | |
7828 | echo "${ECHO_T}yes" >&6 | |
7829 | else | |
7830 | echo "$as_me:$LINENO: result: no" >&5 | |
7831 | echo "${ECHO_T}no" >&6 | |
7832 | fi | |
7833 | ||
7834 | ||
7835 | enablestring= | |
7836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7837 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7838 | no_cache=0 | |
7839 | # Check whether --enable-gauge or --disable-gauge was given. | |
7840 | if test "${enable_gauge+set}" = set; then | |
7841 | enableval="$enable_gauge" | |
7842 | ||
7843 | if test "$enableval" = yes; then | |
7844 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7845 | else | |
7846 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7847 | fi | |
7848 | ||
7849 | else | |
7850 | ||
7851 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7852 | if test "x$LINE" != x ; then | |
7853 | eval "DEFAULT_$LINE" | |
7854 | else | |
7855 | no_cache=1 | |
7856 | fi | |
7857 | ||
7858 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7859 | ||
7860 | fi; | |
7861 | ||
7862 | eval "$ac_cv_use_gauge" | |
7863 | if test "$no_cache" != 1; then | |
7864 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7865 | fi | |
7866 | ||
7867 | if test "$wxUSE_GAUGE" = yes; then | |
7868 | echo "$as_me:$LINENO: result: yes" >&5 | |
7869 | echo "${ECHO_T}yes" >&6 | |
7870 | else | |
7871 | echo "$as_me:$LINENO: result: no" >&5 | |
7872 | echo "${ECHO_T}no" >&6 | |
7873 | fi | |
7874 | ||
7875 | ||
7876 | enablestring= | |
7877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7878 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7879 | no_cache=0 | |
7880 | # Check whether --enable-grid or --disable-grid was given. | |
7881 | if test "${enable_grid+set}" = set; then | |
7882 | enableval="$enable_grid" | |
7883 | ||
7884 | if test "$enableval" = yes; then | |
7885 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7886 | else | |
7887 | ac_cv_use_grid='wxUSE_GRID=no' | |
7888 | fi | |
7889 | ||
7890 | else | |
7891 | ||
7892 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7893 | if test "x$LINE" != x ; then | |
7894 | eval "DEFAULT_$LINE" | |
7895 | else | |
7896 | no_cache=1 | |
7897 | fi | |
7898 | ||
7899 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7900 | ||
7901 | fi; | |
7902 | ||
7903 | eval "$ac_cv_use_grid" | |
7904 | if test "$no_cache" != 1; then | |
7905 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7906 | fi | |
7907 | ||
7908 | if test "$wxUSE_GRID" = yes; then | |
7909 | echo "$as_me:$LINENO: result: yes" >&5 | |
7910 | echo "${ECHO_T}yes" >&6 | |
7911 | else | |
7912 | echo "$as_me:$LINENO: result: no" >&5 | |
7913 | echo "${ECHO_T}no" >&6 | |
7914 | fi | |
7915 | ||
7916 | ||
7917 | enablestring= | |
7918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7919 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7920 | no_cache=0 | |
7921 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7922 | if test "${enable_imaglist+set}" = set; then | |
7923 | enableval="$enable_imaglist" | |
7924 | ||
7925 | if test "$enableval" = yes; then | |
7926 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7927 | else | |
7928 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7929 | fi | |
7930 | ||
7931 | else | |
7932 | ||
7933 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7934 | if test "x$LINE" != x ; then | |
7935 | eval "DEFAULT_$LINE" | |
7936 | else | |
7937 | no_cache=1 | |
7938 | fi | |
7939 | ||
7940 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7941 | ||
7942 | fi; | |
7943 | ||
7944 | eval "$ac_cv_use_imaglist" | |
7945 | if test "$no_cache" != 1; then | |
7946 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7947 | fi | |
7948 | ||
7949 | if test "$wxUSE_IMAGLIST" = yes; then | |
7950 | echo "$as_me:$LINENO: result: yes" >&5 | |
7951 | echo "${ECHO_T}yes" >&6 | |
7952 | else | |
7953 | echo "$as_me:$LINENO: result: no" >&5 | |
7954 | echo "${ECHO_T}no" >&6 | |
7955 | fi | |
7956 | ||
7957 | ||
7958 | enablestring= | |
7959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7960 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7961 | no_cache=0 | |
7962 | # Check whether --enable-listbook or --disable-listbook was given. | |
7963 | if test "${enable_listbook+set}" = set; then | |
7964 | enableval="$enable_listbook" | |
7965 | ||
7966 | if test "$enableval" = yes; then | |
7967 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7968 | else | |
7969 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7970 | fi | |
7971 | ||
7972 | else | |
7973 | ||
7974 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7975 | if test "x$LINE" != x ; then | |
7976 | eval "DEFAULT_$LINE" | |
7977 | else | |
7978 | no_cache=1 | |
7979 | fi | |
7980 | ||
7981 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7982 | ||
7983 | fi; | |
7984 | ||
7985 | eval "$ac_cv_use_listbook" | |
7986 | if test "$no_cache" != 1; then | |
7987 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7988 | fi | |
7989 | ||
7990 | if test "$wxUSE_LISTBOOK" = yes; then | |
7991 | echo "$as_me:$LINENO: result: yes" >&5 | |
7992 | echo "${ECHO_T}yes" >&6 | |
7993 | else | |
7994 | echo "$as_me:$LINENO: result: no" >&5 | |
7995 | echo "${ECHO_T}no" >&6 | |
7996 | fi | |
7997 | ||
7998 | ||
7999 | enablestring= | |
8000 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8001 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8002 | no_cache=0 | |
8003 | # Check whether --enable-listbox or --disable-listbox was given. | |
8004 | if test "${enable_listbox+set}" = set; then | |
8005 | enableval="$enable_listbox" | |
8006 | ||
8007 | if test "$enableval" = yes; then | |
8008 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8009 | else | |
8010 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8011 | fi | |
8012 | ||
8013 | else | |
8014 | ||
8015 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8016 | if test "x$LINE" != x ; then | |
8017 | eval "DEFAULT_$LINE" | |
8018 | else | |
8019 | no_cache=1 | |
8020 | fi | |
8021 | ||
8022 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8023 | ||
8024 | fi; | |
8025 | ||
8026 | eval "$ac_cv_use_listbox" | |
8027 | if test "$no_cache" != 1; then | |
8028 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8029 | fi | |
8030 | ||
8031 | if test "$wxUSE_LISTBOX" = yes; then | |
8032 | echo "$as_me:$LINENO: result: yes" >&5 | |
8033 | echo "${ECHO_T}yes" >&6 | |
8034 | else | |
8035 | echo "$as_me:$LINENO: result: no" >&5 | |
8036 | echo "${ECHO_T}no" >&6 | |
8037 | fi | |
8038 | ||
8039 | ||
8040 | enablestring= | |
8041 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8042 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8043 | no_cache=0 | |
8044 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8045 | if test "${enable_listctrl+set}" = set; then | |
8046 | enableval="$enable_listctrl" | |
8047 | ||
8048 | if test "$enableval" = yes; then | |
8049 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8050 | else | |
8051 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8052 | fi | |
8053 | ||
8054 | else | |
8055 | ||
8056 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8057 | if test "x$LINE" != x ; then | |
8058 | eval "DEFAULT_$LINE" | |
8059 | else | |
8060 | no_cache=1 | |
8061 | fi | |
8062 | ||
8063 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8064 | ||
8065 | fi; | |
8066 | ||
8067 | eval "$ac_cv_use_listctrl" | |
8068 | if test "$no_cache" != 1; then | |
8069 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8070 | fi | |
8071 | ||
8072 | if test "$wxUSE_LISTCTRL" = yes; then | |
8073 | echo "$as_me:$LINENO: result: yes" >&5 | |
8074 | echo "${ECHO_T}yes" >&6 | |
8075 | else | |
8076 | echo "$as_me:$LINENO: result: no" >&5 | |
8077 | echo "${ECHO_T}no" >&6 | |
8078 | fi | |
8079 | ||
8080 | ||
8081 | enablestring= | |
8082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8083 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8084 | no_cache=0 | |
8085 | # Check whether --enable-notebook or --disable-notebook was given. | |
8086 | if test "${enable_notebook+set}" = set; then | |
8087 | enableval="$enable_notebook" | |
8088 | ||
8089 | if test "$enableval" = yes; then | |
8090 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8091 | else | |
8092 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8093 | fi | |
8094 | ||
8095 | else | |
8096 | ||
8097 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8098 | if test "x$LINE" != x ; then | |
8099 | eval "DEFAULT_$LINE" | |
8100 | else | |
8101 | no_cache=1 | |
8102 | fi | |
8103 | ||
8104 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8105 | ||
8106 | fi; | |
8107 | ||
8108 | eval "$ac_cv_use_notebook" | |
8109 | if test "$no_cache" != 1; then | |
8110 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8111 | fi | |
8112 | ||
8113 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8114 | echo "$as_me:$LINENO: result: yes" >&5 | |
8115 | echo "${ECHO_T}yes" >&6 | |
8116 | else | |
8117 | echo "$as_me:$LINENO: result: no" >&5 | |
8118 | echo "${ECHO_T}no" >&6 | |
8119 | fi | |
8120 | ||
8121 | ||
8122 | enablestring= | |
8123 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8124 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8125 | no_cache=0 | |
8126 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8127 | if test "${enable_radiobox+set}" = set; then | |
8128 | enableval="$enable_radiobox" | |
8129 | ||
8130 | if test "$enableval" = yes; then | |
8131 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8132 | else | |
8133 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8134 | fi | |
8135 | ||
8136 | else | |
8137 | ||
8138 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8139 | if test "x$LINE" != x ; then | |
8140 | eval "DEFAULT_$LINE" | |
8141 | else | |
8142 | no_cache=1 | |
8143 | fi | |
8144 | ||
8145 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8146 | ||
8147 | fi; | |
8148 | ||
8149 | eval "$ac_cv_use_radiobox" | |
8150 | if test "$no_cache" != 1; then | |
8151 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8152 | fi | |
8153 | ||
8154 | if test "$wxUSE_RADIOBOX" = yes; then | |
8155 | echo "$as_me:$LINENO: result: yes" >&5 | |
8156 | echo "${ECHO_T}yes" >&6 | |
8157 | else | |
8158 | echo "$as_me:$LINENO: result: no" >&5 | |
8159 | echo "${ECHO_T}no" >&6 | |
8160 | fi | |
8161 | ||
8162 | ||
8163 | enablestring= | |
8164 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8165 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8166 | no_cache=0 | |
8167 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8168 | if test "${enable_radiobtn+set}" = set; then | |
8169 | enableval="$enable_radiobtn" | |
8170 | ||
8171 | if test "$enableval" = yes; then | |
8172 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8173 | else | |
8174 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8175 | fi | |
8176 | ||
8177 | else | |
8178 | ||
8179 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8180 | if test "x$LINE" != x ; then | |
8181 | eval "DEFAULT_$LINE" | |
8182 | else | |
8183 | no_cache=1 | |
8184 | fi | |
8185 | ||
8186 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8187 | ||
8188 | fi; | |
8189 | ||
8190 | eval "$ac_cv_use_radiobtn" | |
8191 | if test "$no_cache" != 1; then | |
8192 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8193 | fi | |
8194 | ||
8195 | if test "$wxUSE_RADIOBTN" = yes; then | |
8196 | echo "$as_me:$LINENO: result: yes" >&5 | |
8197 | echo "${ECHO_T}yes" >&6 | |
8198 | else | |
8199 | echo "$as_me:$LINENO: result: no" >&5 | |
8200 | echo "${ECHO_T}no" >&6 | |
8201 | fi | |
8202 | ||
8203 | ||
8204 | enablestring= | |
8205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8206 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8207 | no_cache=0 | |
8208 | # Check whether --enable-sash or --disable-sash was given. | |
8209 | if test "${enable_sash+set}" = set; then | |
8210 | enableval="$enable_sash" | |
8211 | ||
8212 | if test "$enableval" = yes; then | |
8213 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8214 | else | |
8215 | ac_cv_use_sash='wxUSE_SASH=no' | |
8216 | fi | |
8217 | ||
8218 | else | |
8219 | ||
8220 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8221 | if test "x$LINE" != x ; then | |
8222 | eval "DEFAULT_$LINE" | |
8223 | else | |
8224 | no_cache=1 | |
8225 | fi | |
8226 | ||
8227 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8228 | ||
8229 | fi; | |
8230 | ||
8231 | eval "$ac_cv_use_sash" | |
8232 | if test "$no_cache" != 1; then | |
8233 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8234 | fi | |
8235 | ||
8236 | if test "$wxUSE_SASH" = yes; then | |
8237 | echo "$as_me:$LINENO: result: yes" >&5 | |
8238 | echo "${ECHO_T}yes" >&6 | |
8239 | else | |
8240 | echo "$as_me:$LINENO: result: no" >&5 | |
8241 | echo "${ECHO_T}no" >&6 | |
8242 | fi | |
8243 | ||
8244 | ||
8245 | enablestring= | |
8246 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8247 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8248 | no_cache=0 | |
8249 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8250 | if test "${enable_scrollbar+set}" = set; then | |
8251 | enableval="$enable_scrollbar" | |
8252 | ||
8253 | if test "$enableval" = yes; then | |
8254 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8255 | else | |
8256 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8257 | fi | |
8258 | ||
8259 | else | |
8260 | ||
8261 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8262 | if test "x$LINE" != x ; then | |
8263 | eval "DEFAULT_$LINE" | |
8264 | else | |
8265 | no_cache=1 | |
8266 | fi | |
8267 | ||
8268 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8269 | ||
8270 | fi; | |
8271 | ||
8272 | eval "$ac_cv_use_scrollbar" | |
8273 | if test "$no_cache" != 1; then | |
8274 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8275 | fi | |
8276 | ||
8277 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8278 | echo "$as_me:$LINENO: result: yes" >&5 | |
8279 | echo "${ECHO_T}yes" >&6 | |
8280 | else | |
8281 | echo "$as_me:$LINENO: result: no" >&5 | |
8282 | echo "${ECHO_T}no" >&6 | |
8283 | fi | |
8284 | ||
8285 | ||
8286 | enablestring= | |
8287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8288 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8289 | no_cache=0 | |
8290 | # Check whether --enable-slider or --disable-slider was given. | |
8291 | if test "${enable_slider+set}" = set; then | |
8292 | enableval="$enable_slider" | |
8293 | ||
8294 | if test "$enableval" = yes; then | |
8295 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8296 | else | |
8297 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8298 | fi | |
8299 | ||
8300 | else | |
8301 | ||
8302 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8303 | if test "x$LINE" != x ; then | |
8304 | eval "DEFAULT_$LINE" | |
8305 | else | |
8306 | no_cache=1 | |
8307 | fi | |
8308 | ||
8309 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8310 | ||
8311 | fi; | |
8312 | ||
8313 | eval "$ac_cv_use_slider" | |
8314 | if test "$no_cache" != 1; then | |
8315 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8316 | fi | |
8317 | ||
8318 | if test "$wxUSE_SLIDER" = yes; then | |
8319 | echo "$as_me:$LINENO: result: yes" >&5 | |
8320 | echo "${ECHO_T}yes" >&6 | |
8321 | else | |
8322 | echo "$as_me:$LINENO: result: no" >&5 | |
8323 | echo "${ECHO_T}no" >&6 | |
8324 | fi | |
8325 | ||
8326 | ||
8327 | enablestring= | |
8328 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8329 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8330 | no_cache=0 | |
8331 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8332 | if test "${enable_spinbtn+set}" = set; then | |
8333 | enableval="$enable_spinbtn" | |
8334 | ||
8335 | if test "$enableval" = yes; then | |
8336 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8337 | else | |
8338 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8339 | fi | |
8340 | ||
8341 | else | |
8342 | ||
8343 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8344 | if test "x$LINE" != x ; then | |
8345 | eval "DEFAULT_$LINE" | |
8346 | else | |
8347 | no_cache=1 | |
8348 | fi | |
8349 | ||
8350 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8351 | ||
8352 | fi; | |
8353 | ||
8354 | eval "$ac_cv_use_spinbtn" | |
8355 | if test "$no_cache" != 1; then | |
8356 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8357 | fi | |
8358 | ||
8359 | if test "$wxUSE_SPINBTN" = yes; then | |
8360 | echo "$as_me:$LINENO: result: yes" >&5 | |
8361 | echo "${ECHO_T}yes" >&6 | |
8362 | else | |
8363 | echo "$as_me:$LINENO: result: no" >&5 | |
8364 | echo "${ECHO_T}no" >&6 | |
8365 | fi | |
8366 | ||
8367 | ||
8368 | enablestring= | |
8369 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8370 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8371 | no_cache=0 | |
8372 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8373 | if test "${enable_spinctrl+set}" = set; then | |
8374 | enableval="$enable_spinctrl" | |
8375 | ||
8376 | if test "$enableval" = yes; then | |
8377 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8378 | else | |
8379 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8380 | fi | |
8381 | ||
8382 | else | |
8383 | ||
8384 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8385 | if test "x$LINE" != x ; then | |
8386 | eval "DEFAULT_$LINE" | |
8387 | else | |
8388 | no_cache=1 | |
8389 | fi | |
8390 | ||
8391 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8392 | ||
8393 | fi; | |
8394 | ||
8395 | eval "$ac_cv_use_spinctrl" | |
8396 | if test "$no_cache" != 1; then | |
8397 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8398 | fi | |
8399 | ||
8400 | if test "$wxUSE_SPINCTRL" = yes; then | |
8401 | echo "$as_me:$LINENO: result: yes" >&5 | |
8402 | echo "${ECHO_T}yes" >&6 | |
8403 | else | |
8404 | echo "$as_me:$LINENO: result: no" >&5 | |
8405 | echo "${ECHO_T}no" >&6 | |
8406 | fi | |
8407 | ||
8408 | ||
8409 | enablestring= | |
8410 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8411 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8412 | no_cache=0 | |
8413 | # Check whether --enable-splitter or --disable-splitter was given. | |
8414 | if test "${enable_splitter+set}" = set; then | |
8415 | enableval="$enable_splitter" | |
8416 | ||
8417 | if test "$enableval" = yes; then | |
8418 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8419 | else | |
8420 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8421 | fi | |
8422 | ||
8423 | else | |
8424 | ||
8425 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8426 | if test "x$LINE" != x ; then | |
8427 | eval "DEFAULT_$LINE" | |
8428 | else | |
8429 | no_cache=1 | |
8430 | fi | |
8431 | ||
8432 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8433 | ||
8434 | fi; | |
8435 | ||
8436 | eval "$ac_cv_use_splitter" | |
8437 | if test "$no_cache" != 1; then | |
8438 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8439 | fi | |
8440 | ||
8441 | if test "$wxUSE_SPLITTER" = yes; then | |
8442 | echo "$as_me:$LINENO: result: yes" >&5 | |
8443 | echo "${ECHO_T}yes" >&6 | |
8444 | else | |
8445 | echo "$as_me:$LINENO: result: no" >&5 | |
8446 | echo "${ECHO_T}no" >&6 | |
8447 | fi | |
8448 | ||
8449 | ||
8450 | enablestring= | |
8451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8452 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8453 | no_cache=0 | |
8454 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8455 | if test "${enable_statbmp+set}" = set; then | |
8456 | enableval="$enable_statbmp" | |
8457 | ||
8458 | if test "$enableval" = yes; then | |
8459 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8460 | else | |
8461 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8462 | fi | |
8463 | ||
8464 | else | |
8465 | ||
8466 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8467 | if test "x$LINE" != x ; then | |
8468 | eval "DEFAULT_$LINE" | |
8469 | else | |
8470 | no_cache=1 | |
8471 | fi | |
8472 | ||
8473 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8474 | ||
8475 | fi; | |
8476 | ||
8477 | eval "$ac_cv_use_statbmp" | |
8478 | if test "$no_cache" != 1; then | |
8479 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8480 | fi | |
8481 | ||
8482 | if test "$wxUSE_STATBMP" = yes; then | |
8483 | echo "$as_me:$LINENO: result: yes" >&5 | |
8484 | echo "${ECHO_T}yes" >&6 | |
8485 | else | |
8486 | echo "$as_me:$LINENO: result: no" >&5 | |
8487 | echo "${ECHO_T}no" >&6 | |
8488 | fi | |
8489 | ||
8490 | ||
8491 | enablestring= | |
8492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8493 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8494 | no_cache=0 | |
8495 | # Check whether --enable-statbox or --disable-statbox was given. | |
8496 | if test "${enable_statbox+set}" = set; then | |
8497 | enableval="$enable_statbox" | |
8498 | ||
8499 | if test "$enableval" = yes; then | |
8500 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8501 | else | |
8502 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8503 | fi | |
8504 | ||
8505 | else | |
8506 | ||
8507 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8508 | if test "x$LINE" != x ; then | |
8509 | eval "DEFAULT_$LINE" | |
8510 | else | |
8511 | no_cache=1 | |
8512 | fi | |
8513 | ||
8514 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8515 | ||
8516 | fi; | |
8517 | ||
8518 | eval "$ac_cv_use_statbox" | |
8519 | if test "$no_cache" != 1; then | |
8520 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8521 | fi | |
8522 | ||
8523 | if test "$wxUSE_STATBOX" = yes; then | |
8524 | echo "$as_me:$LINENO: result: yes" >&5 | |
8525 | echo "${ECHO_T}yes" >&6 | |
8526 | else | |
8527 | echo "$as_me:$LINENO: result: no" >&5 | |
8528 | echo "${ECHO_T}no" >&6 | |
8529 | fi | |
8530 | ||
8531 | ||
8532 | enablestring= | |
8533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8534 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8535 | no_cache=0 | |
8536 | # Check whether --enable-statline or --disable-statline was given. | |
8537 | if test "${enable_statline+set}" = set; then | |
8538 | enableval="$enable_statline" | |
8539 | ||
8540 | if test "$enableval" = yes; then | |
8541 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8542 | else | |
8543 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8544 | fi | |
8545 | ||
8546 | else | |
8547 | ||
8548 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8549 | if test "x$LINE" != x ; then | |
8550 | eval "DEFAULT_$LINE" | |
8551 | else | |
8552 | no_cache=1 | |
8553 | fi | |
8554 | ||
8555 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8556 | ||
8557 | fi; | |
8558 | ||
8559 | eval "$ac_cv_use_statline" | |
8560 | if test "$no_cache" != 1; then | |
8561 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8562 | fi | |
8563 | ||
8564 | if test "$wxUSE_STATLINE" = yes; then | |
8565 | echo "$as_me:$LINENO: result: yes" >&5 | |
8566 | echo "${ECHO_T}yes" >&6 | |
8567 | else | |
8568 | echo "$as_me:$LINENO: result: no" >&5 | |
8569 | echo "${ECHO_T}no" >&6 | |
8570 | fi | |
8571 | ||
8572 | ||
8573 | enablestring= | |
8574 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8575 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8576 | no_cache=0 | |
8577 | # Check whether --enable-stattext or --disable-stattext was given. | |
8578 | if test "${enable_stattext+set}" = set; then | |
8579 | enableval="$enable_stattext" | |
8580 | ||
8581 | if test "$enableval" = yes; then | |
8582 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8583 | else | |
8584 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8585 | fi | |
8586 | ||
8587 | else | |
8588 | ||
8589 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8590 | if test "x$LINE" != x ; then | |
8591 | eval "DEFAULT_$LINE" | |
8592 | else | |
8593 | no_cache=1 | |
8594 | fi | |
8595 | ||
8596 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8597 | ||
8598 | fi; | |
8599 | ||
8600 | eval "$ac_cv_use_stattext" | |
8601 | if test "$no_cache" != 1; then | |
8602 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8603 | fi | |
8604 | ||
8605 | if test "$wxUSE_STATTEXT" = yes; then | |
8606 | echo "$as_me:$LINENO: result: yes" >&5 | |
8607 | echo "${ECHO_T}yes" >&6 | |
8608 | else | |
8609 | echo "$as_me:$LINENO: result: no" >&5 | |
8610 | echo "${ECHO_T}no" >&6 | |
8611 | fi | |
8612 | ||
8613 | ||
8614 | enablestring= | |
8615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8616 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8617 | no_cache=0 | |
8618 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8619 | if test "${enable_statusbar+set}" = set; then | |
8620 | enableval="$enable_statusbar" | |
8621 | ||
8622 | if test "$enableval" = yes; then | |
8623 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8624 | else | |
8625 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8626 | fi | |
8627 | ||
8628 | else | |
8629 | ||
8630 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8631 | if test "x$LINE" != x ; then | |
8632 | eval "DEFAULT_$LINE" | |
8633 | else | |
8634 | no_cache=1 | |
8635 | fi | |
8636 | ||
8637 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8638 | ||
8639 | fi; | |
8640 | ||
8641 | eval "$ac_cv_use_statusbar" | |
8642 | if test "$no_cache" != 1; then | |
8643 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8644 | fi | |
8645 | ||
8646 | if test "$wxUSE_STATUSBAR" = yes; then | |
8647 | echo "$as_me:$LINENO: result: yes" >&5 | |
8648 | echo "${ECHO_T}yes" >&6 | |
8649 | else | |
8650 | echo "$as_me:$LINENO: result: no" >&5 | |
8651 | echo "${ECHO_T}no" >&6 | |
8652 | fi | |
8653 | ||
8654 | ||
8655 | enablestring= | |
8656 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8657 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8658 | no_cache=0 | |
8659 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8660 | if test "${enable_tabdialog+set}" = set; then | |
8661 | enableval="$enable_tabdialog" | |
8662 | ||
8663 | if test "$enableval" = yes; then | |
8664 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8665 | else | |
8666 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8667 | fi | |
8668 | ||
8669 | else | |
8670 | ||
8671 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8672 | if test "x$LINE" != x ; then | |
8673 | eval "DEFAULT_$LINE" | |
8674 | else | |
8675 | no_cache=1 | |
8676 | fi | |
8677 | ||
8678 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8679 | ||
8680 | fi; | |
8681 | ||
8682 | eval "$ac_cv_use_tabdialog" | |
8683 | if test "$no_cache" != 1; then | |
8684 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8685 | fi | |
8686 | ||
8687 | if test "$wxUSE_TABDIALOG" = yes; then | |
8688 | echo "$as_me:$LINENO: result: yes" >&5 | |
8689 | echo "${ECHO_T}yes" >&6 | |
8690 | else | |
8691 | echo "$as_me:$LINENO: result: no" >&5 | |
8692 | echo "${ECHO_T}no" >&6 | |
8693 | fi | |
8694 | ||
8695 | ||
8696 | enablestring= | |
8697 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8698 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8699 | no_cache=0 | |
8700 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8701 | if test "${enable_textctrl+set}" = set; then | |
8702 | enableval="$enable_textctrl" | |
8703 | ||
8704 | if test "$enableval" = yes; then | |
8705 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8706 | else | |
8707 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8708 | fi | |
8709 | ||
8710 | else | |
8711 | ||
8712 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8713 | if test "x$LINE" != x ; then | |
8714 | eval "DEFAULT_$LINE" | |
8715 | else | |
8716 | no_cache=1 | |
8717 | fi | |
8718 | ||
8719 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8720 | ||
8721 | fi; | |
8722 | ||
8723 | eval "$ac_cv_use_textctrl" | |
8724 | if test "$no_cache" != 1; then | |
8725 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8726 | fi | |
8727 | ||
8728 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8729 | echo "$as_me:$LINENO: result: yes" >&5 | |
8730 | echo "${ECHO_T}yes" >&6 | |
8731 | else | |
8732 | echo "$as_me:$LINENO: result: no" >&5 | |
8733 | echo "${ECHO_T}no" >&6 | |
8734 | fi | |
8735 | ||
8736 | ||
8737 | enablestring= | |
8738 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8739 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8740 | no_cache=0 | |
8741 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8742 | if test "${enable_togglebtn+set}" = set; then | |
8743 | enableval="$enable_togglebtn" | |
8744 | ||
8745 | if test "$enableval" = yes; then | |
8746 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8747 | else | |
8748 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8749 | fi | |
8750 | ||
8751 | else | |
8752 | ||
8753 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8754 | if test "x$LINE" != x ; then | |
8755 | eval "DEFAULT_$LINE" | |
8756 | else | |
8757 | no_cache=1 | |
8758 | fi | |
8759 | ||
8760 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8761 | ||
8762 | fi; | |
8763 | ||
8764 | eval "$ac_cv_use_togglebtn" | |
8765 | if test "$no_cache" != 1; then | |
8766 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8767 | fi | |
8768 | ||
8769 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8770 | echo "$as_me:$LINENO: result: yes" >&5 | |
8771 | echo "${ECHO_T}yes" >&6 | |
8772 | else | |
8773 | echo "$as_me:$LINENO: result: no" >&5 | |
8774 | echo "${ECHO_T}no" >&6 | |
8775 | fi | |
8776 | ||
8777 | ||
8778 | enablestring= | |
8779 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8780 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8781 | no_cache=0 | |
8782 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8783 | if test "${enable_toolbar+set}" = set; then | |
8784 | enableval="$enable_toolbar" | |
8785 | ||
8786 | if test "$enableval" = yes; then | |
8787 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8788 | else | |
8789 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8790 | fi | |
8791 | ||
8792 | else | |
8793 | ||
8794 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8795 | if test "x$LINE" != x ; then | |
8796 | eval "DEFAULT_$LINE" | |
8797 | else | |
8798 | no_cache=1 | |
8799 | fi | |
8800 | ||
8801 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8802 | ||
8803 | fi; | |
8804 | ||
8805 | eval "$ac_cv_use_toolbar" | |
8806 | if test "$no_cache" != 1; then | |
8807 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8808 | fi | |
8809 | ||
8810 | if test "$wxUSE_TOOLBAR" = yes; then | |
8811 | echo "$as_me:$LINENO: result: yes" >&5 | |
8812 | echo "${ECHO_T}yes" >&6 | |
8813 | else | |
8814 | echo "$as_me:$LINENO: result: no" >&5 | |
8815 | echo "${ECHO_T}no" >&6 | |
8816 | fi | |
8817 | ||
8818 | ||
8819 | enablestring= | |
8820 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8821 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8822 | no_cache=0 | |
8823 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8824 | if test "${enable_tbarnative+set}" = set; then | |
8825 | enableval="$enable_tbarnative" | |
8826 | ||
8827 | if test "$enableval" = yes; then | |
8828 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8829 | else | |
8830 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8831 | fi | |
8832 | ||
8833 | else | |
8834 | ||
8835 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8836 | if test "x$LINE" != x ; then | |
8837 | eval "DEFAULT_$LINE" | |
8838 | else | |
8839 | no_cache=1 | |
8840 | fi | |
8841 | ||
8842 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8843 | ||
8844 | fi; | |
8845 | ||
8846 | eval "$ac_cv_use_tbarnative" | |
8847 | if test "$no_cache" != 1; then | |
8848 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8849 | fi | |
8850 | ||
8851 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8852 | echo "$as_me:$LINENO: result: yes" >&5 | |
8853 | echo "${ECHO_T}yes" >&6 | |
8854 | else | |
8855 | echo "$as_me:$LINENO: result: no" >&5 | |
8856 | echo "${ECHO_T}no" >&6 | |
8857 | fi | |
8858 | ||
8859 | ||
8860 | enablestring= | |
8861 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8862 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8863 | no_cache=0 | |
8864 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8865 | if test "${enable_tbarsmpl+set}" = set; then | |
8866 | enableval="$enable_tbarsmpl" | |
8867 | ||
8868 | if test "$enableval" = yes; then | |
8869 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8870 | else | |
8871 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8872 | fi | |
8873 | ||
8874 | else | |
8875 | ||
8876 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8877 | if test "x$LINE" != x ; then | |
8878 | eval "DEFAULT_$LINE" | |
8879 | else | |
8880 | no_cache=1 | |
8881 | fi | |
8882 | ||
8883 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8884 | ||
8885 | fi; | |
8886 | ||
8887 | eval "$ac_cv_use_tbarsmpl" | |
8888 | if test "$no_cache" != 1; then | |
8889 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8890 | fi | |
8891 | ||
8892 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8893 | echo "$as_me:$LINENO: result: yes" >&5 | |
8894 | echo "${ECHO_T}yes" >&6 | |
8895 | else | |
8896 | echo "$as_me:$LINENO: result: no" >&5 | |
8897 | echo "${ECHO_T}no" >&6 | |
8898 | fi | |
8899 | ||
8900 | ||
8901 | enablestring= | |
8902 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8903 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8904 | no_cache=0 | |
8905 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8906 | if test "${enable_treectrl+set}" = set; then | |
8907 | enableval="$enable_treectrl" | |
8908 | ||
8909 | if test "$enableval" = yes; then | |
8910 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8911 | else | |
8912 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8913 | fi | |
8914 | ||
8915 | else | |
8916 | ||
8917 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8918 | if test "x$LINE" != x ; then | |
8919 | eval "DEFAULT_$LINE" | |
8920 | else | |
8921 | no_cache=1 | |
8922 | fi | |
8923 | ||
8924 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8925 | ||
8926 | fi; | |
8927 | ||
8928 | eval "$ac_cv_use_treectrl" | |
8929 | if test "$no_cache" != 1; then | |
8930 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8931 | fi | |
8932 | ||
8933 | if test "$wxUSE_TREECTRL" = yes; then | |
8934 | echo "$as_me:$LINENO: result: yes" >&5 | |
8935 | echo "${ECHO_T}yes" >&6 | |
8936 | else | |
8937 | echo "$as_me:$LINENO: result: no" >&5 | |
8938 | echo "${ECHO_T}no" >&6 | |
8939 | fi | |
8940 | ||
8941 | ||
8942 | enablestring= | |
8943 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8944 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8945 | no_cache=0 | |
8946 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8947 | if test "${enable_tipwindow+set}" = set; then | |
8948 | enableval="$enable_tipwindow" | |
8949 | ||
8950 | if test "$enableval" = yes; then | |
8951 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8952 | else | |
8953 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8954 | fi | |
8955 | ||
8956 | else | |
8957 | ||
8958 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8959 | if test "x$LINE" != x ; then | |
8960 | eval "DEFAULT_$LINE" | |
8961 | else | |
8962 | no_cache=1 | |
8963 | fi | |
8964 | ||
8965 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8966 | ||
8967 | fi; | |
8968 | ||
8969 | eval "$ac_cv_use_tipwindow" | |
8970 | if test "$no_cache" != 1; then | |
8971 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8972 | fi | |
8973 | ||
8974 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8975 | echo "$as_me:$LINENO: result: yes" >&5 | |
8976 | echo "${ECHO_T}yes" >&6 | |
8977 | else | |
8978 | echo "$as_me:$LINENO: result: no" >&5 | |
8979 | echo "${ECHO_T}no" >&6 | |
8980 | fi | |
8981 | ||
8982 | ||
8983 | enablestring= | |
8984 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8985 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8986 | no_cache=0 | |
8987 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8988 | if test "${enable_popupwin+set}" = set; then | |
8989 | enableval="$enable_popupwin" | |
8990 | ||
8991 | if test "$enableval" = yes; then | |
8992 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8993 | else | |
8994 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8995 | fi | |
8996 | ||
8997 | else | |
8998 | ||
8999 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9000 | if test "x$LINE" != x ; then | |
9001 | eval "DEFAULT_$LINE" | |
9002 | else | |
9003 | no_cache=1 | |
9004 | fi | |
9005 | ||
9006 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9007 | ||
9008 | fi; | |
9009 | ||
9010 | eval "$ac_cv_use_popupwin" | |
9011 | if test "$no_cache" != 1; then | |
9012 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9013 | fi | |
9014 | ||
9015 | if test "$wxUSE_POPUPWIN" = yes; then | |
9016 | echo "$as_me:$LINENO: result: yes" >&5 | |
9017 | echo "${ECHO_T}yes" >&6 | |
9018 | else | |
9019 | echo "$as_me:$LINENO: result: no" >&5 | |
9020 | echo "${ECHO_T}no" >&6 | |
9021 | fi | |
9022 | ||
9023 | ||
9024 | ||
9025 | ||
9026 | enablestring= | |
9027 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9028 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9029 | no_cache=0 | |
9030 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9031 | if test "${enable_commondlg+set}" = set; then | |
9032 | enableval="$enable_commondlg" | |
9033 | ||
9034 | if test "$enableval" = yes; then | |
9035 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9036 | else | |
9037 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9038 | fi | |
9039 | ||
9040 | else | |
9041 | ||
9042 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9043 | if test "x$LINE" != x ; then | |
9044 | eval "DEFAULT_$LINE" | |
9045 | else | |
9046 | no_cache=1 | |
9047 | fi | |
9048 | ||
9049 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9050 | ||
9051 | fi; | |
9052 | ||
9053 | eval "$ac_cv_use_commondlg" | |
9054 | if test "$no_cache" != 1; then | |
9055 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9056 | fi | |
9057 | ||
9058 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9059 | echo "$as_me:$LINENO: result: yes" >&5 | |
9060 | echo "${ECHO_T}yes" >&6 | |
9061 | else | |
9062 | echo "$as_me:$LINENO: result: no" >&5 | |
9063 | echo "${ECHO_T}no" >&6 | |
9064 | fi | |
9065 | ||
9066 | ||
9067 | enablestring= | |
9068 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9069 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9070 | no_cache=0 | |
9071 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9072 | if test "${enable_choicedlg+set}" = set; then | |
9073 | enableval="$enable_choicedlg" | |
9074 | ||
9075 | if test "$enableval" = yes; then | |
9076 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9077 | else | |
9078 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9079 | fi | |
9080 | ||
9081 | else | |
9082 | ||
9083 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9084 | if test "x$LINE" != x ; then | |
9085 | eval "DEFAULT_$LINE" | |
9086 | else | |
9087 | no_cache=1 | |
9088 | fi | |
9089 | ||
9090 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9091 | ||
9092 | fi; | |
9093 | ||
9094 | eval "$ac_cv_use_choicedlg" | |
9095 | if test "$no_cache" != 1; then | |
9096 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9097 | fi | |
9098 | ||
9099 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9100 | echo "$as_me:$LINENO: result: yes" >&5 | |
9101 | echo "${ECHO_T}yes" >&6 | |
9102 | else | |
9103 | echo "$as_me:$LINENO: result: no" >&5 | |
9104 | echo "${ECHO_T}no" >&6 | |
9105 | fi | |
9106 | ||
9107 | ||
9108 | enablestring= | |
9109 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9110 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9111 | no_cache=0 | |
9112 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9113 | if test "${enable_coldlg+set}" = set; then | |
9114 | enableval="$enable_coldlg" | |
9115 | ||
9116 | if test "$enableval" = yes; then | |
9117 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9118 | else | |
9119 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9120 | fi | |
9121 | ||
9122 | else | |
9123 | ||
9124 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9125 | if test "x$LINE" != x ; then | |
9126 | eval "DEFAULT_$LINE" | |
9127 | else | |
9128 | no_cache=1 | |
9129 | fi | |
9130 | ||
9131 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9132 | ||
9133 | fi; | |
9134 | ||
9135 | eval "$ac_cv_use_coldlg" | |
9136 | if test "$no_cache" != 1; then | |
9137 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9138 | fi | |
9139 | ||
9140 | if test "$wxUSE_COLOURDLG" = yes; then | |
9141 | echo "$as_me:$LINENO: result: yes" >&5 | |
9142 | echo "${ECHO_T}yes" >&6 | |
9143 | else | |
9144 | echo "$as_me:$LINENO: result: no" >&5 | |
9145 | echo "${ECHO_T}no" >&6 | |
9146 | fi | |
9147 | ||
9148 | ||
9149 | enablestring= | |
9150 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9151 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9152 | no_cache=0 | |
9153 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9154 | if test "${enable_filedlg+set}" = set; then | |
9155 | enableval="$enable_filedlg" | |
9156 | ||
9157 | if test "$enableval" = yes; then | |
9158 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9159 | else | |
9160 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9161 | fi | |
9162 | ||
9163 | else | |
9164 | ||
9165 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9166 | if test "x$LINE" != x ; then | |
9167 | eval "DEFAULT_$LINE" | |
9168 | else | |
9169 | no_cache=1 | |
9170 | fi | |
9171 | ||
9172 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9173 | ||
9174 | fi; | |
9175 | ||
9176 | eval "$ac_cv_use_filedlg" | |
9177 | if test "$no_cache" != 1; then | |
9178 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9179 | fi | |
9180 | ||
9181 | if test "$wxUSE_FILEDLG" = yes; then | |
9182 | echo "$as_me:$LINENO: result: yes" >&5 | |
9183 | echo "${ECHO_T}yes" >&6 | |
9184 | else | |
9185 | echo "$as_me:$LINENO: result: no" >&5 | |
9186 | echo "${ECHO_T}no" >&6 | |
9187 | fi | |
9188 | ||
9189 | ||
9190 | enablestring= | |
9191 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9192 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9193 | no_cache=0 | |
9194 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9195 | if test "${enable_finddlg+set}" = set; then | |
9196 | enableval="$enable_finddlg" | |
9197 | ||
9198 | if test "$enableval" = yes; then | |
9199 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9200 | else | |
9201 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9202 | fi | |
9203 | ||
9204 | else | |
9205 | ||
9206 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9207 | if test "x$LINE" != x ; then | |
9208 | eval "DEFAULT_$LINE" | |
9209 | else | |
9210 | no_cache=1 | |
9211 | fi | |
9212 | ||
9213 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9214 | ||
9215 | fi; | |
9216 | ||
9217 | eval "$ac_cv_use_finddlg" | |
9218 | if test "$no_cache" != 1; then | |
9219 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9220 | fi | |
9221 | ||
9222 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9223 | echo "$as_me:$LINENO: result: yes" >&5 | |
9224 | echo "${ECHO_T}yes" >&6 | |
9225 | else | |
9226 | echo "$as_me:$LINENO: result: no" >&5 | |
9227 | echo "${ECHO_T}no" >&6 | |
9228 | fi | |
9229 | ||
9230 | ||
9231 | enablestring= | |
9232 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9233 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9234 | no_cache=0 | |
9235 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9236 | if test "${enable_fontdlg+set}" = set; then | |
9237 | enableval="$enable_fontdlg" | |
9238 | ||
9239 | if test "$enableval" = yes; then | |
9240 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9241 | else | |
9242 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9243 | fi | |
9244 | ||
9245 | else | |
9246 | ||
9247 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9248 | if test "x$LINE" != x ; then | |
9249 | eval "DEFAULT_$LINE" | |
9250 | else | |
9251 | no_cache=1 | |
9252 | fi | |
9253 | ||
9254 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9255 | ||
9256 | fi; | |
9257 | ||
9258 | eval "$ac_cv_use_fontdlg" | |
9259 | if test "$no_cache" != 1; then | |
9260 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9261 | fi | |
9262 | ||
9263 | if test "$wxUSE_FONTDLG" = yes; then | |
9264 | echo "$as_me:$LINENO: result: yes" >&5 | |
9265 | echo "${ECHO_T}yes" >&6 | |
9266 | else | |
9267 | echo "$as_me:$LINENO: result: no" >&5 | |
9268 | echo "${ECHO_T}no" >&6 | |
9269 | fi | |
9270 | ||
9271 | ||
9272 | enablestring= | |
9273 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9274 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9275 | no_cache=0 | |
9276 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9277 | if test "${enable_dirdlg+set}" = set; then | |
9278 | enableval="$enable_dirdlg" | |
9279 | ||
9280 | if test "$enableval" = yes; then | |
9281 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9282 | else | |
9283 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9284 | fi | |
9285 | ||
9286 | else | |
9287 | ||
9288 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9289 | if test "x$LINE" != x ; then | |
9290 | eval "DEFAULT_$LINE" | |
9291 | else | |
9292 | no_cache=1 | |
9293 | fi | |
9294 | ||
9295 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9296 | ||
9297 | fi; | |
9298 | ||
9299 | eval "$ac_cv_use_dirdlg" | |
9300 | if test "$no_cache" != 1; then | |
9301 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9302 | fi | |
9303 | ||
9304 | if test "$wxUSE_DIRDLG" = yes; then | |
9305 | echo "$as_me:$LINENO: result: yes" >&5 | |
9306 | echo "${ECHO_T}yes" >&6 | |
9307 | else | |
9308 | echo "$as_me:$LINENO: result: no" >&5 | |
9309 | echo "${ECHO_T}no" >&6 | |
9310 | fi | |
9311 | ||
9312 | ||
9313 | enablestring= | |
9314 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9315 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9316 | no_cache=0 | |
9317 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9318 | if test "${enable_msgdlg+set}" = set; then | |
9319 | enableval="$enable_msgdlg" | |
9320 | ||
9321 | if test "$enableval" = yes; then | |
9322 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9323 | else | |
9324 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9325 | fi | |
9326 | ||
9327 | else | |
9328 | ||
9329 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9330 | if test "x$LINE" != x ; then | |
9331 | eval "DEFAULT_$LINE" | |
9332 | else | |
9333 | no_cache=1 | |
9334 | fi | |
9335 | ||
9336 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9337 | ||
9338 | fi; | |
9339 | ||
9340 | eval "$ac_cv_use_msgdlg" | |
9341 | if test "$no_cache" != 1; then | |
9342 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9343 | fi | |
9344 | ||
9345 | if test "$wxUSE_MSGDLG" = yes; then | |
9346 | echo "$as_me:$LINENO: result: yes" >&5 | |
9347 | echo "${ECHO_T}yes" >&6 | |
9348 | else | |
9349 | echo "$as_me:$LINENO: result: no" >&5 | |
9350 | echo "${ECHO_T}no" >&6 | |
9351 | fi | |
9352 | ||
9353 | ||
9354 | enablestring= | |
9355 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9356 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9357 | no_cache=0 | |
9358 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9359 | if test "${enable_numberdlg+set}" = set; then | |
9360 | enableval="$enable_numberdlg" | |
9361 | ||
9362 | if test "$enableval" = yes; then | |
9363 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9364 | else | |
9365 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9366 | fi | |
9367 | ||
9368 | else | |
9369 | ||
9370 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9371 | if test "x$LINE" != x ; then | |
9372 | eval "DEFAULT_$LINE" | |
9373 | else | |
9374 | no_cache=1 | |
9375 | fi | |
9376 | ||
9377 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9378 | ||
9379 | fi; | |
9380 | ||
9381 | eval "$ac_cv_use_numberdlg" | |
9382 | if test "$no_cache" != 1; then | |
9383 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9384 | fi | |
9385 | ||
9386 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9387 | echo "$as_me:$LINENO: result: yes" >&5 | |
9388 | echo "${ECHO_T}yes" >&6 | |
9389 | else | |
9390 | echo "$as_me:$LINENO: result: no" >&5 | |
9391 | echo "${ECHO_T}no" >&6 | |
9392 | fi | |
9393 | ||
9394 | ||
9395 | enablestring= | |
9396 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9397 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9398 | no_cache=0 | |
9399 | # Check whether --enable-splash or --disable-splash was given. | |
9400 | if test "${enable_splash+set}" = set; then | |
9401 | enableval="$enable_splash" | |
9402 | ||
9403 | if test "$enableval" = yes; then | |
9404 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9405 | else | |
9406 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9407 | fi | |
9408 | ||
9409 | else | |
9410 | ||
9411 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9412 | if test "x$LINE" != x ; then | |
9413 | eval "DEFAULT_$LINE" | |
9414 | else | |
9415 | no_cache=1 | |
9416 | fi | |
9417 | ||
9418 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9419 | ||
9420 | fi; | |
9421 | ||
9422 | eval "$ac_cv_use_splash" | |
9423 | if test "$no_cache" != 1; then | |
9424 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9425 | fi | |
9426 | ||
9427 | if test "$wxUSE_SPLASH" = yes; then | |
9428 | echo "$as_me:$LINENO: result: yes" >&5 | |
9429 | echo "${ECHO_T}yes" >&6 | |
9430 | else | |
9431 | echo "$as_me:$LINENO: result: no" >&5 | |
9432 | echo "${ECHO_T}no" >&6 | |
9433 | fi | |
9434 | ||
9435 | ||
9436 | enablestring= | |
9437 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9438 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9439 | no_cache=0 | |
9440 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9441 | if test "${enable_textdlg+set}" = set; then | |
9442 | enableval="$enable_textdlg" | |
9443 | ||
9444 | if test "$enableval" = yes; then | |
9445 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9446 | else | |
9447 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9448 | fi | |
9449 | ||
9450 | else | |
9451 | ||
9452 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9453 | if test "x$LINE" != x ; then | |
9454 | eval "DEFAULT_$LINE" | |
9455 | else | |
9456 | no_cache=1 | |
9457 | fi | |
9458 | ||
9459 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9460 | ||
9461 | fi; | |
9462 | ||
9463 | eval "$ac_cv_use_textdlg" | |
9464 | if test "$no_cache" != 1; then | |
9465 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9466 | fi | |
9467 | ||
9468 | if test "$wxUSE_TEXTDLG" = yes; then | |
9469 | echo "$as_me:$LINENO: result: yes" >&5 | |
9470 | echo "${ECHO_T}yes" >&6 | |
9471 | else | |
9472 | echo "$as_me:$LINENO: result: no" >&5 | |
9473 | echo "${ECHO_T}no" >&6 | |
9474 | fi | |
9475 | ||
9476 | ||
9477 | enablestring= | |
9478 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9479 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9480 | no_cache=0 | |
9481 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9482 | if test "${enable_tipdlg+set}" = set; then | |
9483 | enableval="$enable_tipdlg" | |
9484 | ||
9485 | if test "$enableval" = yes; then | |
9486 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9487 | else | |
9488 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9489 | fi | |
9490 | ||
9491 | else | |
9492 | ||
9493 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9494 | if test "x$LINE" != x ; then | |
9495 | eval "DEFAULT_$LINE" | |
9496 | else | |
9497 | no_cache=1 | |
9498 | fi | |
9499 | ||
9500 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9501 | ||
9502 | fi; | |
9503 | ||
9504 | eval "$ac_cv_use_tipdlg" | |
9505 | if test "$no_cache" != 1; then | |
9506 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9507 | fi | |
9508 | ||
9509 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9510 | echo "$as_me:$LINENO: result: yes" >&5 | |
9511 | echo "${ECHO_T}yes" >&6 | |
9512 | else | |
9513 | echo "$as_me:$LINENO: result: no" >&5 | |
9514 | echo "${ECHO_T}no" >&6 | |
9515 | fi | |
9516 | ||
9517 | ||
9518 | enablestring= | |
9519 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9520 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9521 | no_cache=0 | |
9522 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9523 | if test "${enable_progressdlg+set}" = set; then | |
9524 | enableval="$enable_progressdlg" | |
9525 | ||
9526 | if test "$enableval" = yes; then | |
9527 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9528 | else | |
9529 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9530 | fi | |
9531 | ||
9532 | else | |
9533 | ||
9534 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9535 | if test "x$LINE" != x ; then | |
9536 | eval "DEFAULT_$LINE" | |
9537 | else | |
9538 | no_cache=1 | |
9539 | fi | |
9540 | ||
9541 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9542 | ||
9543 | fi; | |
9544 | ||
9545 | eval "$ac_cv_use_progressdlg" | |
9546 | if test "$no_cache" != 1; then | |
9547 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9548 | fi | |
9549 | ||
9550 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9551 | echo "$as_me:$LINENO: result: yes" >&5 | |
9552 | echo "${ECHO_T}yes" >&6 | |
9553 | else | |
9554 | echo "$as_me:$LINENO: result: no" >&5 | |
9555 | echo "${ECHO_T}no" >&6 | |
9556 | fi | |
9557 | ||
9558 | ||
9559 | enablestring= | |
9560 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9561 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9562 | no_cache=0 | |
9563 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9564 | if test "${enable_wizarddlg+set}" = set; then | |
9565 | enableval="$enable_wizarddlg" | |
9566 | ||
9567 | if test "$enableval" = yes; then | |
9568 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9569 | else | |
9570 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9571 | fi | |
9572 | ||
9573 | else | |
9574 | ||
9575 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9576 | if test "x$LINE" != x ; then | |
9577 | eval "DEFAULT_$LINE" | |
9578 | else | |
9579 | no_cache=1 | |
9580 | fi | |
9581 | ||
9582 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9583 | ||
9584 | fi; | |
9585 | ||
9586 | eval "$ac_cv_use_wizarddlg" | |
9587 | if test "$no_cache" != 1; then | |
9588 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9589 | fi | |
9590 | ||
9591 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9592 | echo "$as_me:$LINENO: result: yes" >&5 | |
9593 | echo "${ECHO_T}yes" >&6 | |
9594 | else | |
9595 | echo "$as_me:$LINENO: result: no" >&5 | |
9596 | echo "${ECHO_T}no" >&6 | |
9597 | fi | |
9598 | ||
9599 | ||
9600 | ||
9601 | ||
9602 | enablestring= | |
9603 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9604 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9605 | no_cache=0 | |
9606 | # Check whether --enable-menus or --disable-menus was given. | |
9607 | if test "${enable_menus+set}" = set; then | |
9608 | enableval="$enable_menus" | |
9609 | ||
9610 | if test "$enableval" = yes; then | |
9611 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9612 | else | |
9613 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9614 | fi | |
9615 | ||
9616 | else | |
9617 | ||
9618 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9619 | if test "x$LINE" != x ; then | |
9620 | eval "DEFAULT_$LINE" | |
9621 | else | |
9622 | no_cache=1 | |
9623 | fi | |
9624 | ||
9625 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9626 | ||
9627 | fi; | |
9628 | ||
9629 | eval "$ac_cv_use_menus" | |
9630 | if test "$no_cache" != 1; then | |
9631 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9632 | fi | |
9633 | ||
9634 | if test "$wxUSE_MENUS" = yes; then | |
9635 | echo "$as_me:$LINENO: result: yes" >&5 | |
9636 | echo "${ECHO_T}yes" >&6 | |
9637 | else | |
9638 | echo "$as_me:$LINENO: result: no" >&5 | |
9639 | echo "${ECHO_T}no" >&6 | |
9640 | fi | |
9641 | ||
9642 | ||
9643 | enablestring= | |
9644 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9645 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9646 | no_cache=0 | |
9647 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9648 | if test "${enable_miniframe+set}" = set; then | |
9649 | enableval="$enable_miniframe" | |
9650 | ||
9651 | if test "$enableval" = yes; then | |
9652 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9653 | else | |
9654 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9655 | fi | |
9656 | ||
9657 | else | |
9658 | ||
9659 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9660 | if test "x$LINE" != x ; then | |
9661 | eval "DEFAULT_$LINE" | |
9662 | else | |
9663 | no_cache=1 | |
9664 | fi | |
9665 | ||
9666 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9667 | ||
9668 | fi; | |
9669 | ||
9670 | eval "$ac_cv_use_miniframe" | |
9671 | if test "$no_cache" != 1; then | |
9672 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9673 | fi | |
9674 | ||
9675 | if test "$wxUSE_MINIFRAME" = yes; then | |
9676 | echo "$as_me:$LINENO: result: yes" >&5 | |
9677 | echo "${ECHO_T}yes" >&6 | |
9678 | else | |
9679 | echo "$as_me:$LINENO: result: no" >&5 | |
9680 | echo "${ECHO_T}no" >&6 | |
9681 | fi | |
9682 | ||
9683 | ||
9684 | enablestring= | |
9685 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9686 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9687 | no_cache=0 | |
9688 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9689 | if test "${enable_tooltips+set}" = set; then | |
9690 | enableval="$enable_tooltips" | |
9691 | ||
9692 | if test "$enableval" = yes; then | |
9693 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9694 | else | |
9695 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9696 | fi | |
9697 | ||
9698 | else | |
9699 | ||
9700 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9701 | if test "x$LINE" != x ; then | |
9702 | eval "DEFAULT_$LINE" | |
9703 | else | |
9704 | no_cache=1 | |
9705 | fi | |
9706 | ||
9707 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9708 | ||
9709 | fi; | |
9710 | ||
9711 | eval "$ac_cv_use_tooltips" | |
9712 | if test "$no_cache" != 1; then | |
9713 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9714 | fi | |
9715 | ||
9716 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9717 | echo "$as_me:$LINENO: result: yes" >&5 | |
9718 | echo "${ECHO_T}yes" >&6 | |
9719 | else | |
9720 | echo "$as_me:$LINENO: result: no" >&5 | |
9721 | echo "${ECHO_T}no" >&6 | |
9722 | fi | |
9723 | ||
9724 | ||
9725 | enablestring= | |
9726 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9727 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9728 | no_cache=0 | |
9729 | # Check whether --enable-splines or --disable-splines was given. | |
9730 | if test "${enable_splines+set}" = set; then | |
9731 | enableval="$enable_splines" | |
9732 | ||
9733 | if test "$enableval" = yes; then | |
9734 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9735 | else | |
9736 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9737 | fi | |
9738 | ||
9739 | else | |
9740 | ||
9741 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9742 | if test "x$LINE" != x ; then | |
9743 | eval "DEFAULT_$LINE" | |
9744 | else | |
9745 | no_cache=1 | |
9746 | fi | |
9747 | ||
9748 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9749 | ||
9750 | fi; | |
9751 | ||
9752 | eval "$ac_cv_use_splines" | |
9753 | if test "$no_cache" != 1; then | |
9754 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9755 | fi | |
9756 | ||
9757 | if test "$wxUSE_SPLINES" = yes; then | |
9758 | echo "$as_me:$LINENO: result: yes" >&5 | |
9759 | echo "${ECHO_T}yes" >&6 | |
9760 | else | |
9761 | echo "$as_me:$LINENO: result: no" >&5 | |
9762 | echo "${ECHO_T}no" >&6 | |
9763 | fi | |
9764 | ||
9765 | ||
fbe2ca43 SN |
9766 | enablestring= |
9767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9768 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9769 | no_cache=0 | |
9770 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9771 | if test "${enable_mousewheel+set}" = set; then | |
9772 | enableval="$enable_mousewheel" | |
9773 | ||
9774 | if test "$enableval" = yes; then | |
9775 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
9776 | else | |
9777 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
9778 | fi | |
9779 | ||
9780 | else | |
9781 | ||
9782 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
9783 | if test "x$LINE" != x ; then | |
9784 | eval "DEFAULT_$LINE" | |
9785 | else | |
9786 | no_cache=1 | |
9787 | fi | |
9788 | ||
9789 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
9790 | ||
9791 | fi; | |
9792 | ||
9793 | eval "$ac_cv_use_mousewheel" | |
9794 | if test "$no_cache" != 1; then | |
9795 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
9796 | fi | |
9797 | ||
9798 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
9799 | echo "$as_me:$LINENO: result: yes" >&5 | |
9800 | echo "${ECHO_T}yes" >&6 | |
9801 | else | |
9802 | echo "$as_me:$LINENO: result: no" >&5 | |
9803 | echo "${ECHO_T}no" >&6 | |
9804 | fi | |
9805 | ||
9806 | ||
a848cd7e SC |
9807 | enablestring= |
9808 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9809 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9810 | no_cache=0 | |
9811 | # Check whether --enable-validators or --disable-validators was given. | |
9812 | if test "${enable_validators+set}" = set; then | |
9813 | enableval="$enable_validators" | |
9814 | ||
9815 | if test "$enableval" = yes; then | |
9816 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9817 | else | |
9818 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9819 | fi | |
9820 | ||
9821 | else | |
9822 | ||
9823 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9824 | if test "x$LINE" != x ; then | |
9825 | eval "DEFAULT_$LINE" | |
9826 | else | |
9827 | no_cache=1 | |
9828 | fi | |
9829 | ||
9830 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9831 | ||
9832 | fi; | |
9833 | ||
9834 | eval "$ac_cv_use_validators" | |
9835 | if test "$no_cache" != 1; then | |
9836 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9837 | fi | |
9838 | ||
9839 | if test "$wxUSE_VALIDATORS" = yes; then | |
9840 | echo "$as_me:$LINENO: result: yes" >&5 | |
9841 | echo "${ECHO_T}yes" >&6 | |
9842 | else | |
9843 | echo "$as_me:$LINENO: result: no" >&5 | |
9844 | echo "${ECHO_T}no" >&6 | |
9845 | fi | |
9846 | ||
9847 | ||
9848 | enablestring= | |
9849 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9850 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9851 | no_cache=0 | |
9852 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9853 | if test "${enable_busyinfo+set}" = set; then | |
9854 | enableval="$enable_busyinfo" | |
9855 | ||
9856 | if test "$enableval" = yes; then | |
9857 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9858 | else | |
9859 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9860 | fi | |
9861 | ||
9862 | else | |
9863 | ||
9864 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9865 | if test "x$LINE" != x ; then | |
9866 | eval "DEFAULT_$LINE" | |
9867 | else | |
9868 | no_cache=1 | |
9869 | fi | |
9870 | ||
9871 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9872 | ||
9873 | fi; | |
9874 | ||
9875 | eval "$ac_cv_use_busyinfo" | |
9876 | if test "$no_cache" != 1; then | |
9877 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9878 | fi | |
9879 | ||
9880 | if test "$wxUSE_BUSYINFO" = yes; then | |
9881 | echo "$as_me:$LINENO: result: yes" >&5 | |
9882 | echo "${ECHO_T}yes" >&6 | |
9883 | else | |
9884 | echo "$as_me:$LINENO: result: no" >&5 | |
9885 | echo "${ECHO_T}no" >&6 | |
9886 | fi | |
9887 | ||
9888 | ||
9889 | enablestring= | |
9890 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9891 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9892 | no_cache=0 | |
9893 | # Check whether --enable-joystick or --disable-joystick was given. | |
9894 | if test "${enable_joystick+set}" = set; then | |
9895 | enableval="$enable_joystick" | |
9896 | ||
9897 | if test "$enableval" = yes; then | |
9898 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9899 | else | |
9900 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9901 | fi | |
9902 | ||
9903 | else | |
9904 | ||
9905 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9906 | if test "x$LINE" != x ; then | |
9907 | eval "DEFAULT_$LINE" | |
9908 | else | |
9909 | no_cache=1 | |
9910 | fi | |
9911 | ||
9912 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9913 | ||
9914 | fi; | |
9915 | ||
9916 | eval "$ac_cv_use_joystick" | |
9917 | if test "$no_cache" != 1; then | |
9918 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9919 | fi | |
9920 | ||
9921 | if test "$wxUSE_JOYSTICK" = yes; then | |
9922 | echo "$as_me:$LINENO: result: yes" >&5 | |
9923 | echo "${ECHO_T}yes" >&6 | |
9924 | else | |
9925 | echo "$as_me:$LINENO: result: no" >&5 | |
9926 | echo "${ECHO_T}no" >&6 | |
9927 | fi | |
9928 | ||
9929 | ||
9930 | enablestring= | |
9931 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9932 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9933 | no_cache=0 | |
9934 | # Check whether --enable-metafile or --disable-metafile was given. | |
9935 | if test "${enable_metafile+set}" = set; then | |
9936 | enableval="$enable_metafile" | |
9937 | ||
9938 | if test "$enableval" = yes; then | |
9939 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9940 | else | |
9941 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9942 | fi | |
9943 | ||
9944 | else | |
9945 | ||
9946 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9947 | if test "x$LINE" != x ; then | |
9948 | eval "DEFAULT_$LINE" | |
9949 | else | |
9950 | no_cache=1 | |
9951 | fi | |
9952 | ||
9953 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9954 | ||
9955 | fi; | |
9956 | ||
9957 | eval "$ac_cv_use_metafile" | |
9958 | if test "$no_cache" != 1; then | |
9959 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9960 | fi | |
9961 | ||
9962 | if test "$wxUSE_METAFILE" = yes; then | |
9963 | echo "$as_me:$LINENO: result: yes" >&5 | |
9964 | echo "${ECHO_T}yes" >&6 | |
9965 | else | |
9966 | echo "$as_me:$LINENO: result: no" >&5 | |
9967 | echo "${ECHO_T}no" >&6 | |
9968 | fi | |
9969 | ||
9970 | ||
9971 | enablestring= | |
9972 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9973 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9974 | no_cache=0 | |
9975 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9976 | if test "${enable_dragimage+set}" = set; then | |
9977 | enableval="$enable_dragimage" | |
9978 | ||
9979 | if test "$enableval" = yes; then | |
9980 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9981 | else | |
9982 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9983 | fi | |
9984 | ||
9985 | else | |
9986 | ||
9987 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9988 | if test "x$LINE" != x ; then | |
9989 | eval "DEFAULT_$LINE" | |
9990 | else | |
9991 | no_cache=1 | |
9992 | fi | |
9993 | ||
9994 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9995 | ||
9996 | fi; | |
9997 | ||
9998 | eval "$ac_cv_use_dragimage" | |
9999 | if test "$no_cache" != 1; then | |
10000 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10001 | fi | |
10002 | ||
10003 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10004 | echo "$as_me:$LINENO: result: yes" >&5 | |
10005 | echo "${ECHO_T}yes" >&6 | |
10006 | else | |
10007 | echo "$as_me:$LINENO: result: no" >&5 | |
10008 | echo "${ECHO_T}no" >&6 | |
10009 | fi | |
10010 | ||
10011 | ||
10012 | enablestring= | |
10013 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10014 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10015 | no_cache=0 | |
10016 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10017 | if test "${enable_accessibility+set}" = set; then | |
10018 | enableval="$enable_accessibility" | |
10019 | ||
10020 | if test "$enableval" = yes; then | |
10021 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10022 | else | |
10023 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10024 | fi | |
10025 | ||
10026 | else | |
10027 | ||
10028 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10029 | if test "x$LINE" != x ; then | |
10030 | eval "DEFAULT_$LINE" | |
10031 | else | |
10032 | no_cache=1 | |
10033 | fi | |
10034 | ||
10035 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10036 | ||
10037 | fi; | |
10038 | ||
10039 | eval "$ac_cv_use_accessibility" | |
10040 | if test "$no_cache" != 1; then | |
10041 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10042 | fi | |
10043 | ||
10044 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10045 | echo "$as_me:$LINENO: result: yes" >&5 | |
10046 | echo "${ECHO_T}yes" >&6 | |
10047 | else | |
10048 | echo "$as_me:$LINENO: result: no" >&5 | |
10049 | echo "${ECHO_T}no" >&6 | |
10050 | fi | |
10051 | ||
10052 | ||
10053 | ||
10054 | ||
10055 | enablestring= | |
10056 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10057 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10058 | no_cache=0 | |
10059 | # Check whether --enable-palette or --disable-palette was given. | |
10060 | if test "${enable_palette+set}" = set; then | |
10061 | enableval="$enable_palette" | |
10062 | ||
10063 | if test "$enableval" = yes; then | |
10064 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10065 | else | |
10066 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10067 | fi | |
10068 | ||
10069 | else | |
10070 | ||
10071 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10072 | if test "x$LINE" != x ; then | |
10073 | eval "DEFAULT_$LINE" | |
10074 | else | |
10075 | no_cache=1 | |
10076 | fi | |
10077 | ||
10078 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10079 | ||
10080 | fi; | |
10081 | ||
10082 | eval "$ac_cv_use_palette" | |
10083 | if test "$no_cache" != 1; then | |
10084 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10085 | fi | |
10086 | ||
10087 | if test "$wxUSE_PALETTE" = yes; then | |
10088 | echo "$as_me:$LINENO: result: yes" >&5 | |
10089 | echo "${ECHO_T}yes" >&6 | |
10090 | else | |
10091 | echo "$as_me:$LINENO: result: no" >&5 | |
10092 | echo "${ECHO_T}no" >&6 | |
10093 | fi | |
10094 | ||
10095 | ||
10096 | enablestring= | |
10097 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10098 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10099 | no_cache=0 | |
10100 | # Check whether --enable-image or --disable-image was given. | |
10101 | if test "${enable_image+set}" = set; then | |
10102 | enableval="$enable_image" | |
10103 | ||
10104 | if test "$enableval" = yes; then | |
10105 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10106 | else | |
10107 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10108 | fi | |
10109 | ||
10110 | else | |
10111 | ||
10112 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10113 | if test "x$LINE" != x ; then | |
10114 | eval "DEFAULT_$LINE" | |
10115 | else | |
10116 | no_cache=1 | |
10117 | fi | |
10118 | ||
10119 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10120 | ||
10121 | fi; | |
10122 | ||
10123 | eval "$ac_cv_use_image" | |
10124 | if test "$no_cache" != 1; then | |
10125 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10126 | fi | |
10127 | ||
10128 | if test "$wxUSE_IMAGE" = yes; then | |
10129 | echo "$as_me:$LINENO: result: yes" >&5 | |
10130 | echo "${ECHO_T}yes" >&6 | |
10131 | else | |
10132 | echo "$as_me:$LINENO: result: no" >&5 | |
10133 | echo "${ECHO_T}no" >&6 | |
10134 | fi | |
10135 | ||
10136 | ||
10137 | enablestring= | |
10138 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10139 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10140 | no_cache=0 | |
10141 | # Check whether --enable-gif or --disable-gif was given. | |
10142 | if test "${enable_gif+set}" = set; then | |
10143 | enableval="$enable_gif" | |
10144 | ||
10145 | if test "$enableval" = yes; then | |
10146 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10147 | else | |
10148 | ac_cv_use_gif='wxUSE_GIF=no' | |
10149 | fi | |
10150 | ||
10151 | else | |
10152 | ||
10153 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10154 | if test "x$LINE" != x ; then | |
10155 | eval "DEFAULT_$LINE" | |
10156 | else | |
10157 | no_cache=1 | |
10158 | fi | |
10159 | ||
10160 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10161 | ||
10162 | fi; | |
10163 | ||
10164 | eval "$ac_cv_use_gif" | |
10165 | if test "$no_cache" != 1; then | |
10166 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10167 | fi | |
10168 | ||
10169 | if test "$wxUSE_GIF" = yes; then | |
10170 | echo "$as_me:$LINENO: result: yes" >&5 | |
10171 | echo "${ECHO_T}yes" >&6 | |
10172 | else | |
10173 | echo "$as_me:$LINENO: result: no" >&5 | |
10174 | echo "${ECHO_T}no" >&6 | |
10175 | fi | |
10176 | ||
10177 | ||
10178 | enablestring= | |
10179 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10180 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10181 | no_cache=0 | |
10182 | # Check whether --enable-pcx or --disable-pcx was given. | |
10183 | if test "${enable_pcx+set}" = set; then | |
10184 | enableval="$enable_pcx" | |
10185 | ||
10186 | if test "$enableval" = yes; then | |
10187 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10188 | else | |
10189 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10190 | fi | |
10191 | ||
10192 | else | |
10193 | ||
10194 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10195 | if test "x$LINE" != x ; then | |
10196 | eval "DEFAULT_$LINE" | |
10197 | else | |
10198 | no_cache=1 | |
10199 | fi | |
10200 | ||
10201 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10202 | ||
10203 | fi; | |
10204 | ||
10205 | eval "$ac_cv_use_pcx" | |
10206 | if test "$no_cache" != 1; then | |
10207 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10208 | fi | |
10209 | ||
10210 | if test "$wxUSE_PCX" = yes; then | |
10211 | echo "$as_me:$LINENO: result: yes" >&5 | |
10212 | echo "${ECHO_T}yes" >&6 | |
10213 | else | |
10214 | echo "$as_me:$LINENO: result: no" >&5 | |
10215 | echo "${ECHO_T}no" >&6 | |
10216 | fi | |
10217 | ||
10218 | ||
10219 | enablestring= | |
10220 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10221 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10222 | no_cache=0 | |
10223 | # Check whether --enable-iff or --disable-iff was given. | |
10224 | if test "${enable_iff+set}" = set; then | |
10225 | enableval="$enable_iff" | |
10226 | ||
10227 | if test "$enableval" = yes; then | |
10228 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10229 | else | |
10230 | ac_cv_use_iff='wxUSE_IFF=no' | |
10231 | fi | |
10232 | ||
10233 | else | |
10234 | ||
10235 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10236 | if test "x$LINE" != x ; then | |
10237 | eval "DEFAULT_$LINE" | |
10238 | else | |
10239 | no_cache=1 | |
10240 | fi | |
10241 | ||
10242 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10243 | ||
10244 | fi; | |
10245 | ||
10246 | eval "$ac_cv_use_iff" | |
10247 | if test "$no_cache" != 1; then | |
10248 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10249 | fi | |
10250 | ||
10251 | if test "$wxUSE_IFF" = yes; then | |
10252 | echo "$as_me:$LINENO: result: yes" >&5 | |
10253 | echo "${ECHO_T}yes" >&6 | |
10254 | else | |
10255 | echo "$as_me:$LINENO: result: no" >&5 | |
10256 | echo "${ECHO_T}no" >&6 | |
10257 | fi | |
10258 | ||
10259 | ||
10260 | enablestring= | |
10261 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10262 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10263 | no_cache=0 | |
10264 | # Check whether --enable-pnm or --disable-pnm was given. | |
10265 | if test "${enable_pnm+set}" = set; then | |
10266 | enableval="$enable_pnm" | |
10267 | ||
10268 | if test "$enableval" = yes; then | |
10269 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10270 | else | |
10271 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10272 | fi | |
10273 | ||
10274 | else | |
10275 | ||
10276 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10277 | if test "x$LINE" != x ; then | |
10278 | eval "DEFAULT_$LINE" | |
10279 | else | |
10280 | no_cache=1 | |
10281 | fi | |
10282 | ||
10283 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10284 | ||
10285 | fi; | |
10286 | ||
10287 | eval "$ac_cv_use_pnm" | |
10288 | if test "$no_cache" != 1; then | |
10289 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10290 | fi | |
10291 | ||
10292 | if test "$wxUSE_PNM" = yes; then | |
10293 | echo "$as_me:$LINENO: result: yes" >&5 | |
10294 | echo "${ECHO_T}yes" >&6 | |
10295 | else | |
10296 | echo "$as_me:$LINENO: result: no" >&5 | |
10297 | echo "${ECHO_T}no" >&6 | |
10298 | fi | |
10299 | ||
10300 | ||
10301 | enablestring= | |
10302 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10303 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10304 | no_cache=0 | |
10305 | # Check whether --enable-xpm or --disable-xpm was given. | |
10306 | if test "${enable_xpm+set}" = set; then | |
10307 | enableval="$enable_xpm" | |
10308 | ||
10309 | if test "$enableval" = yes; then | |
10310 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10311 | else | |
10312 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10313 | fi | |
10314 | ||
10315 | else | |
10316 | ||
10317 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10318 | if test "x$LINE" != x ; then | |
10319 | eval "DEFAULT_$LINE" | |
10320 | else | |
10321 | no_cache=1 | |
10322 | fi | |
10323 | ||
10324 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10325 | ||
10326 | fi; | |
10327 | ||
10328 | eval "$ac_cv_use_xpm" | |
10329 | if test "$no_cache" != 1; then | |
10330 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10331 | fi | |
10332 | ||
10333 | if test "$wxUSE_XPM" = yes; then | |
10334 | echo "$as_me:$LINENO: result: yes" >&5 | |
10335 | echo "${ECHO_T}yes" >&6 | |
10336 | else | |
10337 | echo "$as_me:$LINENO: result: no" >&5 | |
10338 | echo "${ECHO_T}no" >&6 | |
10339 | fi | |
10340 | ||
10341 | ||
10342 | enablestring= | |
10343 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10344 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10345 | no_cache=0 | |
10346 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10347 | if test "${enable_ico_cur+set}" = set; then | |
10348 | enableval="$enable_ico_cur" | |
10349 | ||
10350 | if test "$enableval" = yes; then | |
10351 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10352 | else | |
10353 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10354 | fi | |
10355 | ||
10356 | else | |
10357 | ||
10358 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10359 | if test "x$LINE" != x ; then | |
10360 | eval "DEFAULT_$LINE" | |
10361 | else | |
10362 | no_cache=1 | |
10363 | fi | |
10364 | ||
10365 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10366 | ||
10367 | fi; | |
10368 | ||
10369 | eval "$ac_cv_use_ico_cur" | |
10370 | if test "$no_cache" != 1; then | |
10371 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10372 | fi | |
10373 | ||
10374 | if test "$wxUSE_ICO_CUR" = yes; then | |
10375 | echo "$as_me:$LINENO: result: yes" >&5 | |
10376 | echo "${ECHO_T}yes" >&6 | |
10377 | else | |
10378 | echo "$as_me:$LINENO: result: no" >&5 | |
10379 | echo "${ECHO_T}no" >&6 | |
10380 | fi | |
10381 | ||
10382 | ||
10383 | fi | |
10384 | ||
10385 | ||
10386 | ||
ceec2216 RL |
10387 | # Check whether --with-flavour or --without-flavour was given. |
10388 | if test "${with_flavour+set}" = set; then | |
10389 | withval="$with_flavour" | |
10390 | WX_FLAVOUR="$withval" | |
10391 | fi; | |
10392 | ||
10393 | ||
10394 | ||
a848cd7e SC |
10395 | enablestring= |
10396 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10397 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10398 | no_cache=0 | |
10399 | # Check whether --enable-official_build or --disable-official_build was given. | |
10400 | if test "${enable_official_build+set}" = set; then | |
10401 | enableval="$enable_official_build" | |
10402 | ||
10403 | if test "$enableval" = yes; then | |
10404 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10405 | else | |
10406 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10407 | fi | |
10408 | ||
10409 | else | |
10410 | ||
10411 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10412 | if test "x$LINE" != x ; then | |
10413 | eval "DEFAULT_$LINE" | |
10414 | else | |
10415 | no_cache=1 | |
10416 | fi | |
10417 | ||
10418 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10419 | ||
10420 | fi; | |
10421 | ||
10422 | eval "$ac_cv_use_official_build" | |
10423 | if test "$no_cache" != 1; then | |
10424 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10425 | fi | |
10426 | ||
10427 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10428 | echo "$as_me:$LINENO: result: yes" >&5 | |
10429 | echo "${ECHO_T}yes" >&6 | |
10430 | else | |
10431 | echo "$as_me:$LINENO: result: no" >&5 | |
10432 | echo "${ECHO_T}no" >&6 | |
10433 | fi | |
10434 | ||
10435 | # Check whether --enable-vendor or --disable-vendor was given. | |
10436 | if test "${enable_vendor+set}" = set; then | |
10437 | enableval="$enable_vendor" | |
10438 | VENDOR="$enableval" | |
10439 | fi; | |
10440 | if test "x$VENDOR" = "x"; then | |
10441 | VENDOR="custom" | |
10442 | fi | |
10443 | ||
a848cd7e SC |
10444 | |
10445 | ||
10446 | ||
10447 | echo "saving argument cache $wx_arg_cache_file" | |
10448 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10449 | ||
10450 | ||
10451 | ||
10452 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10453 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10454 | ||
10455 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10456 | if test "$wxUSE_WINE" = "yes"; then | |
10457 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10458 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10459 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10460 | wxUSE_SHARED=no | |
10461 | fi | |
10462 | ||
f597b41c | 10463 | |
a848cd7e SC |
10464 | if test "$wxUSE_GUI" = "yes"; then |
10465 | ||
10466 | if test "$USE_BEOS" = 1; then | |
10467 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10468 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10469 | { (exit 1); exit 1; }; } | |
10470 | fi | |
10471 | ||
10472 | if test "$TOOLKIT_GIVEN" = 1; then | |
10473 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10474 | var=wxUSE_$toolkit | |
10475 | eval "value=\$${var}" | |
f34ca037 MW |
10476 | if test "x$value" = "xno"; then |
10477 | eval "$var=0" | |
10478 | elif test "x$value" != "x"; then | |
10479 | eval "$var=1" | |
10480 | fi | |
10481 | ||
10482 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10483 | eval "wx${toolkit}_VERSION=$value" | |
10484 | fi | |
a848cd7e SC |
10485 | done |
10486 | else | |
10487 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10488 | if test "$has_toolkit_in_cache" != 1; then | |
10489 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10490 | else | |
10491 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10492 | |
10493 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10494 | if test "x$version" != "x"; then | |
10495 | eval "wx${toolkit}_VERSION=$version" | |
10496 | fi | |
a848cd7e SC |
10497 | fi |
10498 | eval "wxUSE_$toolkit=\$${var}" | |
10499 | done | |
10500 | fi | |
10501 | ||
10502 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10503 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10504 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10505 | ||
10506 | case "${host}" in | |
10507 | *-pc-os2_emx | *-pc-os2-emx ) | |
10508 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10509 | esac | |
10510 | ||
10511 | case "$NUM_TOOLKITS" in | |
10512 | 1) | |
10513 | ;; | |
10514 | 0) | |
10515 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10516 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10517 | { (exit 1); exit 1; }; } | |
10518 | ;; | |
10519 | *) | |
10520 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10521 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10522 | { (exit 1); exit 1; }; } | |
10523 | esac | |
10524 | ||
f34ca037 MW |
10525 | # to be removed when --disable-gtk2 isn't needed |
10526 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10527 | wxGTK_VERSION=2 | |
10528 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10529 | wxGTK_VERSION=1 | |
10530 | fi | |
10531 | ||
a848cd7e SC |
10532 | for toolkit in `echo $ALL_TOOLKITS`; do |
10533 | var=wxUSE_$toolkit | |
10534 | eval "value=\$${var}" | |
10535 | if test "x$value" != x; then | |
10536 | cache_var=CACHE_$toolkit | |
10537 | eval "cache=\$${cache_var}" | |
10538 | if test "$cache" = 1; then | |
10539 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10540 | eval "version=\$wx${toolkit}_VERSION" |
10541 | if test "x$version" != "x"; then | |
10542 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10543 | fi | |
a848cd7e SC |
10544 | fi |
10545 | if test "$value" = 1; then | |
10546 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10547 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10548 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10549 | fi | |
10550 | fi | |
10551 | done | |
10552 | else | |
10553 | if test "x$host_alias" != "x"; then | |
10554 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10555 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10556 | else | |
10557 | echo "$as_me:$LINENO: result: base only" >&5 | |
10558 | echo "${ECHO_T}base only" >&6 | |
10559 | fi | |
10560 | fi | |
10561 | ||
10562 | wants_win32=0 | |
10563 | doesnt_want_win32=0 | |
10564 | case "${host}" in | |
10565 | *-*-cygwin*) | |
10566 | if test "$wxUSE_MSW" = 1 ; then | |
10567 | wants_win32=1 | |
10568 | else | |
10569 | doesnt_want_win32=1 | |
10570 | fi | |
10571 | ;; | |
10572 | *-*-mingw*) | |
10573 | wants_win32=1 | |
10574 | ;; | |
10575 | esac | |
10576 | ||
10577 | if test "$wxUSE_WINE" = "yes"; then | |
10578 | wants_win32=1 | |
10579 | CC=winegcc | |
10580 | CXX=wineg++ | |
10581 | RESCOMP=wrc | |
10582 | LDFLAGS_GUI="-mwindows" | |
10583 | fi | |
10584 | ||
10585 | if test "$wants_win32" = 1 ; then | |
10586 | USE_UNIX=0 | |
10587 | USE_WIN32=1 | |
10588 | cat >>confdefs.h <<\_ACEOF | |
10589 | #define __WIN32__ 1 | |
10590 | _ACEOF | |
10591 | ||
10592 | cat >>confdefs.h <<\_ACEOF | |
10593 | #define __WIN95__ 1 | |
10594 | _ACEOF | |
10595 | ||
10596 | cat >>confdefs.h <<\_ACEOF | |
10597 | #define __WINDOWS__ 1 | |
10598 | _ACEOF | |
10599 | ||
10600 | cat >>confdefs.h <<\_ACEOF | |
10601 | #define __GNUWIN32__ 1 | |
10602 | _ACEOF | |
10603 | ||
10604 | cat >>confdefs.h <<\_ACEOF | |
10605 | #define STRICT 1 | |
10606 | _ACEOF | |
10607 | ||
10608 | cat >>confdefs.h <<\_ACEOF | |
10609 | #define WINVER 0x0400 | |
10610 | _ACEOF | |
10611 | ||
10612 | fi | |
10613 | if test "$doesnt_want_win32" = 1 ; then | |
10614 | USE_UNIX=1 | |
10615 | USE_WIN32=0 | |
10616 | fi | |
10617 | ||
10618 | if test "$USE_UNIX" = 1 ; then | |
10619 | wxUSE_UNIX=yes | |
10620 | cat >>confdefs.h <<\_ACEOF | |
10621 | #define __UNIX__ 1 | |
10622 | _ACEOF | |
10623 | ||
10624 | fi | |
10625 | ||
10626 | ||
10627 | cat >confcache <<\_ACEOF | |
10628 | # This file is a shell script that caches the results of configure | |
10629 | # tests run on this system so they can be shared between configure | |
10630 | # scripts and configure runs, see configure's option --config-cache. | |
10631 | # It is not useful on other systems. If it contains results you don't | |
10632 | # want to keep, you may remove or edit it. | |
10633 | # | |
10634 | # config.status only pays attention to the cache file if you give it | |
10635 | # the --recheck option to rerun configure. | |
10636 | # | |
10637 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10638 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10639 | # following values. | |
10640 | ||
10641 | _ACEOF | |
10642 | ||
10643 | # The following way of writing the cache mishandles newlines in values, | |
10644 | # but we know of no workaround that is simple, portable, and efficient. | |
10645 | # So, don't put newlines in cache variables' values. | |
10646 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10647 | # and sets the high bit in the cache file unless we assign to the vars. | |
10648 | { | |
10649 | (set) 2>&1 | | |
10650 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10651 | *ac_space=\ *) | |
10652 | # `set' does not quote correctly, so add quotes (double-quote | |
10653 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10654 | sed -n \ | |
ac1cb8d3 VS |
10655 | "s/'/'\\\\''/g; |
10656 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10657 | ;; |
10658 | *) | |
10659 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10660 | sed -n \ | |
ac1cb8d3 | 10661 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10662 | ;; |
10663 | esac; | |
10664 | } | | |
10665 | sed ' | |
10666 | t clear | |
10667 | : clear | |
10668 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10669 | t end | |
10670 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10671 | : end' >>confcache | |
10672 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10673 | if test -w $cache_file; then | |
10674 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10675 | cat confcache >$cache_file | |
10676 | else | |
10677 | echo "not updating unwritable cache $cache_file" | |
10678 | fi | |
10679 | fi | |
10680 | rm -f confcache | |
10681 | ||
10682 | if test "$build" != "$host" ; then | |
1e9e8aba | 10683 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10684 | CC=$host_alias-gcc |
10685 | CXX=$host_alias-c++ | |
10686 | AR=$host_alias-ar | |
10687 | RANLIB=$host_alias-ranlib | |
10688 | DLLTOOL=$host_alias-dlltool | |
10689 | RESCOMP=$host_alias-windres | |
a848cd7e | 10690 | STRIP=$host_alias-strip |
1e9e8aba DE |
10691 | elif test "x$CC" '!=' "x"; then |
10692 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10693 | else |
10694 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10695 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10696 | { (exit 1); exit 1; }; } | |
10697 | fi | |
10698 | fi | |
10699 | ||
10700 | CFLAGS=${CFLAGS:=} | |
6dcfc289 DE |
10701 | |
10702 | ||
10703 | ac_ext=c | |
a848cd7e SC |
10704 | ac_cpp='$CPP $CPPFLAGS' |
10705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10708 | if test -n "$ac_tool_prefix"; then | |
10709 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10710 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10713 | if test "${ac_cv_prog_CC+set}" = set; then | |
10714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10715 | else | |
10716 | if test -n "$CC"; then | |
10717 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10718 | else | |
10719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10720 | for as_dir in $PATH | |
10721 | do | |
10722 | IFS=$as_save_IFS | |
10723 | test -z "$as_dir" && as_dir=. | |
10724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10726 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10728 | break 2 | |
10729 | fi | |
10730 | done | |
10731 | done | |
10732 | ||
10733 | fi | |
10734 | fi | |
10735 | CC=$ac_cv_prog_CC | |
10736 | if test -n "$CC"; then | |
10737 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10738 | echo "${ECHO_T}$CC" >&6 | |
10739 | else | |
10740 | echo "$as_me:$LINENO: result: no" >&5 | |
10741 | echo "${ECHO_T}no" >&6 | |
10742 | fi | |
10743 | ||
10744 | fi | |
10745 | if test -z "$ac_cv_prog_CC"; then | |
10746 | ac_ct_CC=$CC | |
10747 | # Extract the first word of "gcc", so it can be a program name with args. | |
10748 | set dummy gcc; ac_word=$2 | |
10749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10751 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10753 | else | |
10754 | if test -n "$ac_ct_CC"; then | |
10755 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10756 | else | |
10757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10758 | for as_dir in $PATH | |
10759 | do | |
10760 | IFS=$as_save_IFS | |
10761 | test -z "$as_dir" && as_dir=. | |
10762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10764 | ac_cv_prog_ac_ct_CC="gcc" | |
10765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10766 | break 2 | |
10767 | fi | |
10768 | done | |
10769 | done | |
10770 | ||
10771 | fi | |
10772 | fi | |
10773 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10774 | if test -n "$ac_ct_CC"; then | |
10775 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10776 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10777 | else | |
10778 | echo "$as_me:$LINENO: result: no" >&5 | |
10779 | echo "${ECHO_T}no" >&6 | |
10780 | fi | |
10781 | ||
10782 | CC=$ac_ct_CC | |
10783 | else | |
10784 | CC="$ac_cv_prog_CC" | |
10785 | fi | |
10786 | ||
10787 | if test -z "$CC"; then | |
10788 | if test -n "$ac_tool_prefix"; then | |
10789 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10790 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10791 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10793 | if test "${ac_cv_prog_CC+set}" = set; then | |
10794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10795 | else | |
10796 | if test -n "$CC"; then | |
10797 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10798 | else | |
10799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10800 | for as_dir in $PATH | |
10801 | do | |
10802 | IFS=$as_save_IFS | |
10803 | test -z "$as_dir" && as_dir=. | |
10804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10805 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10806 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10808 | break 2 | |
10809 | fi | |
10810 | done | |
10811 | done | |
10812 | ||
10813 | fi | |
10814 | fi | |
10815 | CC=$ac_cv_prog_CC | |
10816 | if test -n "$CC"; then | |
10817 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10818 | echo "${ECHO_T}$CC" >&6 | |
10819 | else | |
10820 | echo "$as_me:$LINENO: result: no" >&5 | |
10821 | echo "${ECHO_T}no" >&6 | |
10822 | fi | |
10823 | ||
10824 | fi | |
10825 | if test -z "$ac_cv_prog_CC"; then | |
10826 | ac_ct_CC=$CC | |
10827 | # Extract the first word of "cc", so it can be a program name with args. | |
10828 | set dummy cc; ac_word=$2 | |
10829 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10831 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10833 | else | |
10834 | if test -n "$ac_ct_CC"; then | |
10835 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10836 | else | |
10837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10838 | for as_dir in $PATH | |
10839 | do | |
10840 | IFS=$as_save_IFS | |
10841 | test -z "$as_dir" && as_dir=. | |
10842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10844 | ac_cv_prog_ac_ct_CC="cc" | |
10845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10846 | break 2 | |
10847 | fi | |
10848 | done | |
10849 | done | |
10850 | ||
10851 | fi | |
10852 | fi | |
10853 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10854 | if test -n "$ac_ct_CC"; then | |
10855 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10856 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10857 | else | |
10858 | echo "$as_me:$LINENO: result: no" >&5 | |
10859 | echo "${ECHO_T}no" >&6 | |
10860 | fi | |
10861 | ||
10862 | CC=$ac_ct_CC | |
10863 | else | |
10864 | CC="$ac_cv_prog_CC" | |
10865 | fi | |
10866 | ||
10867 | fi | |
10868 | if test -z "$CC"; then | |
10869 | # Extract the first word of "cc", so it can be a program name with args. | |
10870 | set dummy cc; ac_word=$2 | |
10871 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10873 | if test "${ac_cv_prog_CC+set}" = set; then | |
10874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10875 | else | |
10876 | if test -n "$CC"; then | |
10877 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10878 | else | |
10879 | ac_prog_rejected=no | |
10880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10881 | for as_dir in $PATH | |
10882 | do | |
10883 | IFS=$as_save_IFS | |
10884 | test -z "$as_dir" && as_dir=. | |
10885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10887 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10888 | ac_prog_rejected=yes | |
10889 | continue | |
10890 | fi | |
10891 | ac_cv_prog_CC="cc" | |
10892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10893 | break 2 | |
10894 | fi | |
10895 | done | |
10896 | done | |
10897 | ||
10898 | if test $ac_prog_rejected = yes; then | |
10899 | # We found a bogon in the path, so make sure we never use it. | |
10900 | set dummy $ac_cv_prog_CC | |
10901 | shift | |
10902 | if test $# != 0; then | |
10903 | # We chose a different compiler from the bogus one. | |
10904 | # However, it has the same basename, so the bogon will be chosen | |
10905 | # first if we set CC to just the basename; use the full file name. | |
10906 | shift | |
10907 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10908 | fi | |
10909 | fi | |
10910 | fi | |
10911 | fi | |
10912 | CC=$ac_cv_prog_CC | |
10913 | if test -n "$CC"; then | |
10914 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10915 | echo "${ECHO_T}$CC" >&6 | |
10916 | else | |
10917 | echo "$as_me:$LINENO: result: no" >&5 | |
10918 | echo "${ECHO_T}no" >&6 | |
10919 | fi | |
10920 | ||
10921 | fi | |
10922 | if test -z "$CC"; then | |
10923 | if test -n "$ac_tool_prefix"; then | |
10924 | for ac_prog in cl | |
10925 | do | |
10926 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10927 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10930 | if test "${ac_cv_prog_CC+set}" = set; then | |
10931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10932 | else | |
10933 | if test -n "$CC"; then | |
10934 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10935 | else | |
10936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10937 | for as_dir in $PATH | |
10938 | do | |
10939 | IFS=$as_save_IFS | |
10940 | test -z "$as_dir" && as_dir=. | |
10941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10942 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10943 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10945 | break 2 | |
10946 | fi | |
10947 | done | |
10948 | done | |
10949 | ||
10950 | fi | |
10951 | fi | |
10952 | CC=$ac_cv_prog_CC | |
10953 | if test -n "$CC"; then | |
10954 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10955 | echo "${ECHO_T}$CC" >&6 | |
10956 | else | |
10957 | echo "$as_me:$LINENO: result: no" >&5 | |
10958 | echo "${ECHO_T}no" >&6 | |
10959 | fi | |
10960 | ||
10961 | test -n "$CC" && break | |
10962 | done | |
10963 | fi | |
10964 | if test -z "$CC"; then | |
10965 | ac_ct_CC=$CC | |
10966 | for ac_prog in cl | |
10967 | do | |
10968 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10969 | set dummy $ac_prog; ac_word=$2 | |
10970 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10972 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10974 | else | |
10975 | if test -n "$ac_ct_CC"; then | |
10976 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10977 | else | |
10978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10979 | for as_dir in $PATH | |
10980 | do | |
10981 | IFS=$as_save_IFS | |
10982 | test -z "$as_dir" && as_dir=. | |
10983 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10984 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10985 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10986 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10987 | break 2 | |
10988 | fi | |
10989 | done | |
10990 | done | |
10991 | ||
10992 | fi | |
10993 | fi | |
10994 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10995 | if test -n "$ac_ct_CC"; then | |
10996 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10997 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10998 | else | |
10999 | echo "$as_me:$LINENO: result: no" >&5 | |
11000 | echo "${ECHO_T}no" >&6 | |
11001 | fi | |
11002 | ||
11003 | test -n "$ac_ct_CC" && break | |
11004 | done | |
11005 | ||
11006 | CC=$ac_ct_CC | |
11007 | fi | |
11008 | ||
11009 | fi | |
11010 | ||
11011 | ||
11012 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11013 | See \`config.log' for more details." >&5 | |
11014 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11015 | See \`config.log' for more details." >&2;} | |
11016 | { (exit 1); exit 1; }; } | |
11017 | ||
11018 | # Provide some information about the compiler. | |
11019 | echo "$as_me:$LINENO:" \ | |
11020 | "checking for C compiler version" >&5 | |
11021 | ac_compiler=`set X $ac_compile; echo $2` | |
11022 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11023 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11024 | ac_status=$? | |
11025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11026 | (exit $ac_status); } | |
11027 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11028 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11029 | ac_status=$? | |
11030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11031 | (exit $ac_status); } | |
11032 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11033 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11034 | ac_status=$? | |
11035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11036 | (exit $ac_status); } | |
11037 | ||
11038 | cat >conftest.$ac_ext <<_ACEOF | |
11039 | /* confdefs.h. */ | |
11040 | _ACEOF | |
11041 | cat confdefs.h >>conftest.$ac_ext | |
11042 | cat >>conftest.$ac_ext <<_ACEOF | |
11043 | /* end confdefs.h. */ | |
11044 | ||
11045 | int | |
11046 | main () | |
11047 | { | |
11048 | ||
11049 | ; | |
11050 | return 0; | |
11051 | } | |
11052 | _ACEOF | |
11053 | ac_clean_files_save=$ac_clean_files | |
11054 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11055 | # Try to create an executable without -o first, disregard a.out. | |
11056 | # It will help us diagnose broken compilers, and finding out an intuition | |
11057 | # of exeext. | |
ac1cb8d3 VS |
11058 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11059 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11060 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11061 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11062 | (eval $ac_link_default) 2>&5 | |
11063 | ac_status=$? | |
11064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11065 | (exit $ac_status); }; then | |
11066 | # Find the output, starting from the most likely. This scheme is | |
11067 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11068 | # resort. | |
11069 | ||
11070 | # Be careful to initialize this variable, since it used to be cached. | |
11071 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11072 | ac_cv_exeext= | |
11073 | # b.out is created by i960 compilers. | |
11074 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11075 | do | |
11076 | test -f "$ac_file" || continue | |
11077 | case $ac_file in | |
11078 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11079 | ;; |
a848cd7e | 11080 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11081 | # This is the source file. |
11082 | ;; | |
a848cd7e | 11083 | [ab].out ) |
ac1cb8d3 VS |
11084 | # We found the default executable, but exeext='' is most |
11085 | # certainly right. | |
11086 | break;; | |
a848cd7e | 11087 | *.* ) |
ac1cb8d3 VS |
11088 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11089 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11090 | # but it would be cool to find out if it's true. Does anybody | |
11091 | # maintain Libtool? --akim. | |
11092 | export ac_cv_exeext | |
11093 | break;; | |
a848cd7e | 11094 | * ) |
ac1cb8d3 | 11095 | break;; |
a848cd7e SC |
11096 | esac |
11097 | done | |
11098 | else | |
11099 | echo "$as_me: failed program was:" >&5 | |
11100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11101 | ||
11102 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11103 | See \`config.log' for more details." >&5 | |
11104 | echo "$as_me: error: C compiler cannot create executables | |
11105 | See \`config.log' for more details." >&2;} | |
11106 | { (exit 77); exit 77; }; } | |
11107 | fi | |
11108 | ||
11109 | ac_exeext=$ac_cv_exeext | |
11110 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11111 | echo "${ECHO_T}$ac_file" >&6 | |
11112 | ||
11113 | # Check the compiler produces executables we can run. If not, either | |
11114 | # the compiler is broken, or we cross compile. | |
11115 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11116 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11117 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11118 | # If not cross compiling, check that we can run a simple program. | |
11119 | if test "$cross_compiling" != yes; then | |
11120 | if { ac_try='./$ac_file' | |
11121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11122 | (eval $ac_try) 2>&5 | |
11123 | ac_status=$? | |
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11125 | (exit $ac_status); }; }; then | |
11126 | cross_compiling=no | |
11127 | else | |
11128 | if test "$cross_compiling" = maybe; then | |
11129 | cross_compiling=yes | |
11130 | else | |
11131 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11132 | If you meant to cross compile, use \`--host'. | |
11133 | See \`config.log' for more details." >&5 | |
11134 | echo "$as_me: error: cannot run C compiled programs. | |
11135 | If you meant to cross compile, use \`--host'. | |
11136 | See \`config.log' for more details." >&2;} | |
11137 | { (exit 1); exit 1; }; } | |
11138 | fi | |
11139 | fi | |
11140 | fi | |
11141 | echo "$as_me:$LINENO: result: yes" >&5 | |
11142 | echo "${ECHO_T}yes" >&6 | |
11143 | ||
11144 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11145 | ac_clean_files=$ac_clean_files_save | |
11146 | # Check the compiler produces executables we can run. If not, either | |
11147 | # the compiler is broken, or we cross compile. | |
11148 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11149 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11150 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11151 | echo "${ECHO_T}$cross_compiling" >&6 | |
11152 | ||
11153 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11154 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11156 | (eval $ac_link) 2>&5 | |
11157 | ac_status=$? | |
11158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11159 | (exit $ac_status); }; then | |
11160 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11161 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11162 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11163 | # `rm'. | |
11164 | for ac_file in conftest.exe conftest conftest.*; do | |
11165 | test -f "$ac_file" || continue | |
11166 | case $ac_file in | |
11167 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11168 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11169 | export ac_cv_exeext |
11170 | break;; | |
a848cd7e SC |
11171 | * ) break;; |
11172 | esac | |
11173 | done | |
11174 | else | |
11175 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11176 | See \`config.log' for more details." >&5 | |
11177 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11178 | See \`config.log' for more details." >&2;} | |
11179 | { (exit 1); exit 1; }; } | |
11180 | fi | |
11181 | ||
11182 | rm -f conftest$ac_cv_exeext | |
11183 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11184 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11185 | ||
11186 | rm -f conftest.$ac_ext | |
11187 | EXEEXT=$ac_cv_exeext | |
11188 | ac_exeext=$EXEEXT | |
11189 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11190 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11191 | if test "${ac_cv_objext+set}" = set; then | |
11192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11193 | else | |
11194 | cat >conftest.$ac_ext <<_ACEOF | |
11195 | /* confdefs.h. */ | |
11196 | _ACEOF | |
11197 | cat confdefs.h >>conftest.$ac_ext | |
11198 | cat >>conftest.$ac_ext <<_ACEOF | |
11199 | /* end confdefs.h. */ | |
11200 | ||
11201 | int | |
11202 | main () | |
11203 | { | |
11204 | ||
11205 | ; | |
11206 | return 0; | |
11207 | } | |
11208 | _ACEOF | |
11209 | rm -f conftest.o conftest.obj | |
11210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11211 | (eval $ac_compile) 2>&5 | |
11212 | ac_status=$? | |
11213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11214 | (exit $ac_status); }; then | |
11215 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11216 | case $ac_file in | |
11217 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11218 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11219 | break;; | |
11220 | esac | |
11221 | done | |
11222 | else | |
11223 | echo "$as_me: failed program was:" >&5 | |
11224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11225 | ||
11226 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11227 | See \`config.log' for more details." >&5 | |
11228 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11229 | See \`config.log' for more details." >&2;} | |
11230 | { (exit 1); exit 1; }; } | |
11231 | fi | |
11232 | ||
11233 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11234 | fi | |
11235 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11236 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11237 | OBJEXT=$ac_cv_objext | |
11238 | ac_objext=$OBJEXT | |
11239 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11240 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11241 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11243 | else | |
11244 | cat >conftest.$ac_ext <<_ACEOF | |
11245 | /* confdefs.h. */ | |
11246 | _ACEOF | |
11247 | cat confdefs.h >>conftest.$ac_ext | |
11248 | cat >>conftest.$ac_ext <<_ACEOF | |
11249 | /* end confdefs.h. */ | |
11250 | ||
11251 | int | |
11252 | main () | |
11253 | { | |
11254 | #ifndef __GNUC__ | |
11255 | choke me | |
11256 | #endif | |
11257 | ||
11258 | ; | |
11259 | return 0; | |
11260 | } | |
11261 | _ACEOF | |
11262 | rm -f conftest.$ac_objext | |
11263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11264 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11265 | ac_status=$? |
ac1cb8d3 VS |
11266 | grep -v '^ *+' conftest.er1 >conftest.err |
11267 | rm -f conftest.er1 | |
11268 | cat conftest.err >&5 | |
a848cd7e SC |
11269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11270 | (exit $ac_status); } && | |
9dd0f6c2 | 11271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11273 | (eval $ac_try) 2>&5 | |
11274 | ac_status=$? | |
11275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11276 | (exit $ac_status); }; } && | |
11277 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11279 | (eval $ac_try) 2>&5 | |
11280 | ac_status=$? | |
11281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11282 | (exit $ac_status); }; }; then | |
11283 | ac_compiler_gnu=yes | |
11284 | else | |
11285 | echo "$as_me: failed program was:" >&5 | |
11286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11287 | ||
11288 | ac_compiler_gnu=no | |
11289 | fi | |
ac1cb8d3 | 11290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11291 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11292 | ||
11293 | fi | |
11294 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11295 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11296 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11297 | ac_test_CFLAGS=${CFLAGS+set} | |
11298 | ac_save_CFLAGS=$CFLAGS | |
52ada004 | 11299 | CFLAGS="-g" |
a848cd7e SC |
11300 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11301 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11302 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11304 | else | |
11305 | cat >conftest.$ac_ext <<_ACEOF | |
11306 | /* confdefs.h. */ | |
11307 | _ACEOF | |
11308 | cat confdefs.h >>conftest.$ac_ext | |
11309 | cat >>conftest.$ac_ext <<_ACEOF | |
11310 | /* end confdefs.h. */ | |
11311 | ||
11312 | int | |
11313 | main () | |
11314 | { | |
11315 | ||
11316 | ; | |
11317 | return 0; | |
11318 | } | |
11319 | _ACEOF | |
11320 | rm -f conftest.$ac_objext | |
11321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11322 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11323 | ac_status=$? |
ac1cb8d3 VS |
11324 | grep -v '^ *+' conftest.er1 >conftest.err |
11325 | rm -f conftest.er1 | |
11326 | cat conftest.err >&5 | |
a848cd7e SC |
11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11328 | (exit $ac_status); } && | |
9dd0f6c2 | 11329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11331 | (eval $ac_try) 2>&5 | |
11332 | ac_status=$? | |
11333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11334 | (exit $ac_status); }; } && | |
11335 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11337 | (eval $ac_try) 2>&5 | |
11338 | ac_status=$? | |
11339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11340 | (exit $ac_status); }; }; then | |
11341 | ac_cv_prog_cc_g=yes | |
11342 | else | |
11343 | echo "$as_me: failed program was:" >&5 | |
11344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11345 | ||
11346 | ac_cv_prog_cc_g=no | |
11347 | fi | |
ac1cb8d3 | 11348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11349 | fi |
11350 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11351 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11352 | if test "$ac_test_CFLAGS" = set; then | |
11353 | CFLAGS=$ac_save_CFLAGS | |
11354 | elif test $ac_cv_prog_cc_g = yes; then | |
11355 | if test "$GCC" = yes; then | |
11356 | CFLAGS="-g -O2" | |
11357 | else | |
11358 | CFLAGS="-g" | |
11359 | fi | |
11360 | else | |
11361 | if test "$GCC" = yes; then | |
11362 | CFLAGS="-O2" | |
11363 | else | |
11364 | CFLAGS= | |
11365 | fi | |
11366 | fi | |
11367 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11368 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11369 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11371 | else | |
11372 | ac_cv_prog_cc_stdc=no | |
11373 | ac_save_CC=$CC | |
11374 | cat >conftest.$ac_ext <<_ACEOF | |
11375 | /* confdefs.h. */ | |
11376 | _ACEOF | |
11377 | cat confdefs.h >>conftest.$ac_ext | |
11378 | cat >>conftest.$ac_ext <<_ACEOF | |
11379 | /* end confdefs.h. */ | |
11380 | #include <stdarg.h> | |
11381 | #include <stdio.h> | |
11382 | #include <sys/types.h> | |
11383 | #include <sys/stat.h> | |
11384 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11385 | struct buf { int x; }; | |
11386 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11387 | static char *e (p, i) | |
11388 | char **p; | |
11389 | int i; | |
11390 | { | |
11391 | return p[i]; | |
11392 | } | |
11393 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11394 | { | |
11395 | char *s; | |
11396 | va_list v; | |
11397 | va_start (v,p); | |
11398 | s = g (p, va_arg (v,int)); | |
11399 | va_end (v); | |
11400 | return s; | |
11401 | } | |
ac1cb8d3 VS |
11402 | |
11403 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11404 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11405 | These don't provoke an error unfortunately, instead are silently treated | |
11406 | as 'x'. The following induces an error, until -std1 is added to get | |
11407 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11408 | array size at least. It's necessary to write '\x00'==0 to get something | |
11409 | that's true only with -std1. */ | |
11410 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11411 | ||
a848cd7e SC |
11412 | int test (int i, double x); |
11413 | struct s1 {int (*f) (int a);}; | |
11414 | struct s2 {int (*f) (double a);}; | |
11415 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11416 | int argc; | |
11417 | char **argv; | |
11418 | int | |
11419 | main () | |
11420 | { | |
11421 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11422 | ; | |
11423 | return 0; | |
11424 | } | |
11425 | _ACEOF | |
11426 | # Don't try gcc -ansi; that turns off useful extensions and | |
11427 | # breaks some systems' header files. | |
11428 | # AIX -qlanglvl=ansi | |
11429 | # Ultrix and OSF/1 -std1 | |
11430 | # HP-UX 10.20 and later -Ae | |
11431 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11432 | # SVR4 -Xc -D__EXTENSIONS__ | |
11433 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11434 | do | |
11435 | CC="$ac_save_CC $ac_arg" | |
11436 | rm -f conftest.$ac_objext | |
11437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11438 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11439 | ac_status=$? |
ac1cb8d3 VS |
11440 | grep -v '^ *+' conftest.er1 >conftest.err |
11441 | rm -f conftest.er1 | |
11442 | cat conftest.err >&5 | |
a848cd7e SC |
11443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11444 | (exit $ac_status); } && | |
9dd0f6c2 | 11445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11447 | (eval $ac_try) 2>&5 | |
11448 | ac_status=$? | |
11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11450 | (exit $ac_status); }; } && | |
11451 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11453 | (eval $ac_try) 2>&5 | |
11454 | ac_status=$? | |
11455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11456 | (exit $ac_status); }; }; then | |
11457 | ac_cv_prog_cc_stdc=$ac_arg | |
11458 | break | |
11459 | else | |
11460 | echo "$as_me: failed program was:" >&5 | |
11461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11462 | ||
11463 | fi | |
ac1cb8d3 | 11464 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11465 | done |
11466 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11467 | CC=$ac_save_CC | |
11468 | ||
11469 | fi | |
11470 | ||
11471 | case "x$ac_cv_prog_cc_stdc" in | |
11472 | x|xno) | |
11473 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11474 | echo "${ECHO_T}none needed" >&6 ;; | |
11475 | *) | |
11476 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11477 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11478 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11479 | esac | |
11480 | ||
11481 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11482 | # in C++ we need to declare it. In case someone uses the same compiler | |
11483 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11484 | # the declaration of exit, since it's the most demanding environment. | |
11485 | cat >conftest.$ac_ext <<_ACEOF | |
11486 | #ifndef __cplusplus | |
11487 | choke me | |
11488 | #endif | |
11489 | _ACEOF | |
11490 | rm -f conftest.$ac_objext | |
11491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11492 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11493 | ac_status=$? |
ac1cb8d3 VS |
11494 | grep -v '^ *+' conftest.er1 >conftest.err |
11495 | rm -f conftest.er1 | |
11496 | cat conftest.err >&5 | |
a848cd7e SC |
11497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11498 | (exit $ac_status); } && | |
9dd0f6c2 | 11499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11501 | (eval $ac_try) 2>&5 | |
11502 | ac_status=$? | |
11503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11504 | (exit $ac_status); }; } && | |
11505 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11507 | (eval $ac_try) 2>&5 | |
11508 | ac_status=$? | |
11509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11510 | (exit $ac_status); }; }; then | |
11511 | for ac_declaration in \ | |
ac1cb8d3 | 11512 | '' \ |
a848cd7e SC |
11513 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11514 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11515 | 'extern "C" void exit (int) throw ();' \ | |
11516 | 'extern "C" void exit (int);' \ | |
11517 | 'void exit (int);' | |
11518 | do | |
11519 | cat >conftest.$ac_ext <<_ACEOF | |
11520 | /* confdefs.h. */ | |
11521 | _ACEOF | |
11522 | cat confdefs.h >>conftest.$ac_ext | |
11523 | cat >>conftest.$ac_ext <<_ACEOF | |
11524 | /* end confdefs.h. */ | |
de59c161 | 11525 | $ac_declaration |
ac1cb8d3 | 11526 | #include <stdlib.h> |
a848cd7e SC |
11527 | int |
11528 | main () | |
11529 | { | |
11530 | exit (42); | |
11531 | ; | |
11532 | return 0; | |
11533 | } | |
11534 | _ACEOF | |
11535 | rm -f conftest.$ac_objext | |
11536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11537 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11538 | ac_status=$? |
ac1cb8d3 VS |
11539 | grep -v '^ *+' conftest.er1 >conftest.err |
11540 | rm -f conftest.er1 | |
11541 | cat conftest.err >&5 | |
a848cd7e SC |
11542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11543 | (exit $ac_status); } && | |
9dd0f6c2 | 11544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11546 | (eval $ac_try) 2>&5 | |
11547 | ac_status=$? | |
11548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11549 | (exit $ac_status); }; } && | |
11550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11552 | (eval $ac_try) 2>&5 | |
11553 | ac_status=$? | |
11554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11555 | (exit $ac_status); }; }; then | |
11556 | : | |
11557 | else | |
11558 | echo "$as_me: failed program was:" >&5 | |
11559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11560 | ||
11561 | continue | |
11562 | fi | |
ac1cb8d3 | 11563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11564 | cat >conftest.$ac_ext <<_ACEOF |
11565 | /* confdefs.h. */ | |
11566 | _ACEOF | |
11567 | cat confdefs.h >>conftest.$ac_ext | |
11568 | cat >>conftest.$ac_ext <<_ACEOF | |
11569 | /* end confdefs.h. */ | |
11570 | $ac_declaration | |
11571 | int | |
11572 | main () | |
11573 | { | |
11574 | exit (42); | |
11575 | ; | |
11576 | return 0; | |
11577 | } | |
11578 | _ACEOF | |
11579 | rm -f conftest.$ac_objext | |
11580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11581 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11582 | ac_status=$? |
ac1cb8d3 VS |
11583 | grep -v '^ *+' conftest.er1 >conftest.err |
11584 | rm -f conftest.er1 | |
11585 | cat conftest.err >&5 | |
a848cd7e SC |
11586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11587 | (exit $ac_status); } && | |
9dd0f6c2 | 11588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11590 | (eval $ac_try) 2>&5 | |
11591 | ac_status=$? | |
11592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11593 | (exit $ac_status); }; } && | |
11594 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11596 | (eval $ac_try) 2>&5 | |
11597 | ac_status=$? | |
11598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11599 | (exit $ac_status); }; }; then | |
11600 | break | |
11601 | else | |
11602 | echo "$as_me: failed program was:" >&5 | |
11603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11604 | ||
11605 | fi | |
ac1cb8d3 | 11606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11607 | done |
11608 | rm -f conftest* | |
11609 | if test -n "$ac_declaration"; then | |
11610 | echo '#ifdef __cplusplus' >>confdefs.h | |
11611 | echo $ac_declaration >>confdefs.h | |
11612 | echo '#endif' >>confdefs.h | |
11613 | fi | |
11614 | ||
11615 | else | |
11616 | echo "$as_me: failed program was:" >&5 | |
11617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11618 | ||
11619 | fi | |
ac1cb8d3 | 11620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11621 | ac_ext=c |
11622 | ac_cpp='$CPP $CPPFLAGS' | |
11623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11626 | ||
6dcfc289 | 11627 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
480ccd21 DE |
11628 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
11629 | if test "${wx_cv_c_exto+set}" = set; then | |
11630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11631 | else | |
11632 | cat >conftest.$ac_ext <<_ACEOF | |
11633 | /* confdefs.h. */ | |
11634 | _ACEOF | |
11635 | cat confdefs.h >>conftest.$ac_ext | |
11636 | cat >>conftest.$ac_ext <<_ACEOF | |
11637 | /* end confdefs.h. */ | |
11638 | ||
11639 | int | |
11640 | main () | |
11641 | { | |
11642 | ||
11643 | ; | |
11644 | return 0; | |
11645 | } | |
11646 | _ACEOF | |
11647 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11649 | (eval $ac_compile) 2>&5 | |
11650 | ac_status=$? | |
11651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11652 | (exit $ac_status); }; then | |
11653 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11654 | case $ac_file in | |
11655 | conftest.$ac_ext.o) | |
11656 | wx_cv_c_exto="-ext o" | |
11657 | ;; | |
11658 | *) | |
11659 | ;; | |
11660 | esac | |
11661 | done | |
11662 | else | |
11663 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11664 | See \`config.log' for more details." >&5 | |
11665 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11666 | See \`config.log' for more details." >&2;} | |
11667 | { (exit 1); exit 1; }; } | |
11668 | ||
11669 | fi | |
11670 | ||
11671 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11672 | ||
11673 | fi | |
11674 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11675 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11676 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11677 | if test "c" = "c"; then | |
11678 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11679 | fi | |
11680 | if test "c" = "cxx"; then | |
11681 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11682 | fi | |
11683 | fi | |
11684 | ||
6dcfc289 DE |
11685 | if test "x$wx_cv_c_exto" '!=' "x"; then |
11686 | unset ac_cv_prog_cc_g | |
11687 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 11688 | ac_save_CFLAGS=$CFLAGS |
52ada004 | 11689 | CFLAGS="-g" |
480ccd21 DE |
11690 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11691 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11692 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11694 | else | |
11695 | cat >conftest.$ac_ext <<_ACEOF | |
11696 | /* confdefs.h. */ | |
11697 | _ACEOF | |
11698 | cat confdefs.h >>conftest.$ac_ext | |
11699 | cat >>conftest.$ac_ext <<_ACEOF | |
11700 | /* end confdefs.h. */ | |
11701 | ||
11702 | int | |
11703 | main () | |
11704 | { | |
11705 | ||
11706 | ; | |
11707 | return 0; | |
11708 | } | |
11709 | _ACEOF | |
11710 | rm -f conftest.$ac_objext | |
11711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11712 | (eval $ac_compile) 2>conftest.er1 | |
11713 | ac_status=$? | |
11714 | grep -v '^ *+' conftest.er1 >conftest.err | |
11715 | rm -f conftest.er1 | |
11716 | cat conftest.err >&5 | |
11717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11718 | (exit $ac_status); } && | |
9dd0f6c2 | 11719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
11720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11721 | (eval $ac_try) 2>&5 | |
11722 | ac_status=$? | |
11723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11724 | (exit $ac_status); }; } && | |
11725 | { ac_try='test -s conftest.$ac_objext' | |
11726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11727 | (eval $ac_try) 2>&5 | |
11728 | ac_status=$? | |
11729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11730 | (exit $ac_status); }; }; then | |
11731 | ac_cv_prog_cc_g=yes | |
11732 | else | |
11733 | echo "$as_me: failed program was:" >&5 | |
11734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11735 | ||
11736 | ac_cv_prog_cc_g=no | |
11737 | fi | |
11738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11739 | fi | |
11740 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11741 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11742 | if test "$ac_test_CFLAGS" = set; then | |
11743 | CFLAGS=$ac_save_CFLAGS | |
11744 | elif test $ac_cv_prog_cc_g = yes; then | |
11745 | if test "$GCC" = yes; then | |
11746 | CFLAGS="-g -O2" | |
11747 | else | |
11748 | CFLAGS="-g" | |
11749 | fi | |
11750 | else | |
11751 | if test "$GCC" = yes; then | |
11752 | CFLAGS="-O2" | |
11753 | else | |
11754 | CFLAGS= | |
11755 | fi | |
11756 | fi | |
6dcfc289 DE |
11757 | fi |
11758 | ac_ext=c | |
95986553 DE |
11759 | ac_cpp='$CPP $CPPFLAGS' |
11760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11763 | ||
11764 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11765 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11766 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11768 | else | |
11769 | cat >conftest.$ac_ext <<_ACEOF | |
11770 | /* confdefs.h. */ | |
11771 | _ACEOF | |
11772 | cat confdefs.h >>conftest.$ac_ext | |
11773 | cat >>conftest.$ac_ext <<_ACEOF | |
11774 | /* end confdefs.h. */ | |
11775 | ||
11776 | int | |
11777 | main () | |
11778 | { | |
11779 | #ifndef __MWERKS__ | |
11780 | choke me | |
11781 | #endif | |
11782 | ||
11783 | ; | |
11784 | return 0; | |
11785 | } | |
11786 | _ACEOF | |
11787 | rm -f conftest.$ac_objext | |
11788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11789 | (eval $ac_compile) 2>conftest.er1 | |
11790 | ac_status=$? | |
11791 | grep -v '^ *+' conftest.er1 >conftest.err | |
11792 | rm -f conftest.er1 | |
11793 | cat conftest.err >&5 | |
11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11795 | (exit $ac_status); } && | |
9dd0f6c2 | 11796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
11797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11798 | (eval $ac_try) 2>&5 | |
11799 | ac_status=$? | |
11800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11801 | (exit $ac_status); }; } && | |
11802 | { ac_try='test -s conftest.$ac_objext' | |
11803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11804 | (eval $ac_try) 2>&5 | |
11805 | ac_status=$? | |
11806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11807 | (exit $ac_status); }; }; then | |
11808 | bakefile_compiler_mwerks=yes | |
11809 | else | |
11810 | echo "$as_me: failed program was:" >&5 | |
11811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11812 | ||
11813 | bakefile_compiler_mwerks=no | |
11814 | fi | |
11815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11816 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11817 | ||
11818 | fi | |
11819 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11820 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11821 | ||
0e6fa1d9 | 11822 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
11823 | ac_ext=c |
11824 | ac_cpp='$CPP $CPPFLAGS' | |
11825 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11826 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11827 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11828 | ||
11829 | ||
6dcfc289 | 11830 | ac_ext=c |
9273ffba DE |
11831 | ac_cpp='$CPP $CPPFLAGS' |
11832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11835 | ||
11836 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11837 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
11838 | if test "${wx_cv_c_compiler_xlc+set}" = set; then | |
11839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11840 | else | |
11841 | cat >conftest.$ac_ext <<_ACEOF | |
11842 | /* confdefs.h. */ | |
11843 | _ACEOF | |
11844 | cat confdefs.h >>conftest.$ac_ext | |
11845 | cat >>conftest.$ac_ext <<_ACEOF | |
11846 | /* end confdefs.h. */ | |
11847 | ||
11848 | int | |
11849 | main () | |
11850 | { | |
11851 | #ifndef __xlC__ | |
11852 | choke me | |
11853 | #endif | |
11854 | ||
11855 | ; | |
11856 | return 0; | |
11857 | } | |
11858 | _ACEOF | |
11859 | rm -f conftest.$ac_objext | |
11860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11861 | (eval $ac_compile) 2>conftest.er1 | |
11862 | ac_status=$? | |
11863 | grep -v '^ *+' conftest.er1 >conftest.err | |
11864 | rm -f conftest.er1 | |
11865 | cat conftest.err >&5 | |
11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11867 | (exit $ac_status); } && | |
9dd0f6c2 | 11868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
11869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11870 | (eval $ac_try) 2>&5 | |
11871 | ac_status=$? | |
11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11873 | (exit $ac_status); }; } && | |
11874 | { ac_try='test -s conftest.$ac_objext' | |
11875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11876 | (eval $ac_try) 2>&5 | |
11877 | ac_status=$? | |
11878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11879 | (exit $ac_status); }; }; then | |
11880 | wx_compiler_xlc=yes | |
11881 | else | |
11882 | echo "$as_me: failed program was:" >&5 | |
11883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11884 | ||
11885 | wx_compiler_xlc=no | |
11886 | fi | |
11887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11888 | wx_cv_c_compiler_xlc=$wx_compiler_xlc | |
11889 | ||
11890 | fi | |
11891 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 | |
11892 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
11893 | ||
0e6fa1d9 | 11894 | XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
11895 | ac_ext=c |
11896 | ac_cpp='$CPP $CPPFLAGS' | |
11897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11900 | ||
11901 | ||
a848cd7e | 11902 | |
6dcfc289 | 11903 | |
a848cd7e SC |
11904 | ac_ext=c |
11905 | ac_cpp='$CPP $CPPFLAGS' | |
11906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11909 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11910 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11911 | # On Suns, sometimes $CPP names a directory. | |
11912 | if test -n "$CPP" && test -d "$CPP"; then | |
11913 | CPP= | |
11914 | fi | |
11915 | if test -z "$CPP"; then | |
11916 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11918 | else | |
11919 | # Double quotes because CPP needs to be expanded | |
11920 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11921 | do | |
11922 | ac_preproc_ok=false | |
11923 | for ac_c_preproc_warn_flag in '' yes | |
11924 | do | |
11925 | # Use a header file that comes with gcc, so configuring glibc | |
11926 | # with a fresh cross-compiler works. | |
11927 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11928 | # <limits.h> exists even on freestanding compilers. | |
11929 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11930 | # not just through cpp. "Syntax error" is here to catch this case. | |
11931 | cat >conftest.$ac_ext <<_ACEOF | |
11932 | /* confdefs.h. */ | |
11933 | _ACEOF | |
11934 | cat confdefs.h >>conftest.$ac_ext | |
11935 | cat >>conftest.$ac_ext <<_ACEOF | |
11936 | /* end confdefs.h. */ | |
11937 | #ifdef __STDC__ | |
11938 | # include <limits.h> | |
11939 | #else | |
11940 | # include <assert.h> | |
11941 | #endif | |
ac1cb8d3 | 11942 | Syntax error |
a848cd7e SC |
11943 | _ACEOF |
11944 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11945 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11946 | ac_status=$? | |
11947 | grep -v '^ *+' conftest.er1 >conftest.err | |
11948 | rm -f conftest.er1 | |
11949 | cat conftest.err >&5 | |
11950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11951 | (exit $ac_status); } >/dev/null; then | |
11952 | if test -s conftest.err; then | |
11953 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11954 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11955 | else |
11956 | ac_cpp_err= | |
11957 | fi | |
11958 | else | |
11959 | ac_cpp_err=yes | |
11960 | fi | |
11961 | if test -z "$ac_cpp_err"; then | |
11962 | : | |
11963 | else | |
11964 | echo "$as_me: failed program was:" >&5 | |
11965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11966 | ||
11967 | # Broken: fails on valid input. | |
11968 | continue | |
11969 | fi | |
11970 | rm -f conftest.err conftest.$ac_ext | |
11971 | ||
11972 | # OK, works on sane cases. Now check whether non-existent headers | |
11973 | # can be detected and how. | |
11974 | cat >conftest.$ac_ext <<_ACEOF | |
11975 | /* confdefs.h. */ | |
11976 | _ACEOF | |
11977 | cat confdefs.h >>conftest.$ac_ext | |
11978 | cat >>conftest.$ac_ext <<_ACEOF | |
11979 | /* end confdefs.h. */ | |
11980 | #include <ac_nonexistent.h> | |
11981 | _ACEOF | |
11982 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11984 | ac_status=$? | |
11985 | grep -v '^ *+' conftest.er1 >conftest.err | |
11986 | rm -f conftest.er1 | |
11987 | cat conftest.err >&5 | |
11988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11989 | (exit $ac_status); } >/dev/null; then | |
11990 | if test -s conftest.err; then | |
11991 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11992 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11993 | else |
11994 | ac_cpp_err= | |
11995 | fi | |
11996 | else | |
11997 | ac_cpp_err=yes | |
11998 | fi | |
11999 | if test -z "$ac_cpp_err"; then | |
12000 | # Broken: success on invalid input. | |
12001 | continue | |
12002 | else | |
12003 | echo "$as_me: failed program was:" >&5 | |
12004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12005 | ||
12006 | # Passes both tests. | |
12007 | ac_preproc_ok=: | |
12008 | break | |
12009 | fi | |
12010 | rm -f conftest.err conftest.$ac_ext | |
12011 | ||
12012 | done | |
12013 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12014 | rm -f conftest.err conftest.$ac_ext | |
12015 | if $ac_preproc_ok; then | |
12016 | break | |
12017 | fi | |
12018 | ||
12019 | done | |
12020 | ac_cv_prog_CPP=$CPP | |
12021 | ||
12022 | fi | |
12023 | CPP=$ac_cv_prog_CPP | |
12024 | else | |
12025 | ac_cv_prog_CPP=$CPP | |
12026 | fi | |
12027 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12028 | echo "${ECHO_T}$CPP" >&6 | |
12029 | ac_preproc_ok=false | |
12030 | for ac_c_preproc_warn_flag in '' yes | |
12031 | do | |
12032 | # Use a header file that comes with gcc, so configuring glibc | |
12033 | # with a fresh cross-compiler works. | |
12034 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12035 | # <limits.h> exists even on freestanding compilers. | |
12036 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12037 | # not just through cpp. "Syntax error" is here to catch this case. | |
12038 | cat >conftest.$ac_ext <<_ACEOF | |
12039 | /* confdefs.h. */ | |
12040 | _ACEOF | |
12041 | cat confdefs.h >>conftest.$ac_ext | |
12042 | cat >>conftest.$ac_ext <<_ACEOF | |
12043 | /* end confdefs.h. */ | |
12044 | #ifdef __STDC__ | |
12045 | # include <limits.h> | |
12046 | #else | |
12047 | # include <assert.h> | |
12048 | #endif | |
ac1cb8d3 | 12049 | Syntax error |
a848cd7e SC |
12050 | _ACEOF |
12051 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12052 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12053 | ac_status=$? | |
12054 | grep -v '^ *+' conftest.er1 >conftest.err | |
12055 | rm -f conftest.er1 | |
12056 | cat conftest.err >&5 | |
12057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12058 | (exit $ac_status); } >/dev/null; then | |
12059 | if test -s conftest.err; then | |
12060 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12061 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12062 | else |
12063 | ac_cpp_err= | |
12064 | fi | |
12065 | else | |
12066 | ac_cpp_err=yes | |
12067 | fi | |
12068 | if test -z "$ac_cpp_err"; then | |
12069 | : | |
12070 | else | |
12071 | echo "$as_me: failed program was:" >&5 | |
12072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12073 | ||
12074 | # Broken: fails on valid input. | |
12075 | continue | |
12076 | fi | |
12077 | rm -f conftest.err conftest.$ac_ext | |
12078 | ||
12079 | # OK, works on sane cases. Now check whether non-existent headers | |
12080 | # can be detected and how. | |
12081 | cat >conftest.$ac_ext <<_ACEOF | |
12082 | /* confdefs.h. */ | |
12083 | _ACEOF | |
12084 | cat confdefs.h >>conftest.$ac_ext | |
12085 | cat >>conftest.$ac_ext <<_ACEOF | |
12086 | /* end confdefs.h. */ | |
12087 | #include <ac_nonexistent.h> | |
12088 | _ACEOF | |
12089 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12090 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12091 | ac_status=$? | |
12092 | grep -v '^ *+' conftest.er1 >conftest.err | |
12093 | rm -f conftest.er1 | |
12094 | cat conftest.err >&5 | |
12095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12096 | (exit $ac_status); } >/dev/null; then | |
12097 | if test -s conftest.err; then | |
12098 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12099 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12100 | else |
12101 | ac_cpp_err= | |
12102 | fi | |
12103 | else | |
12104 | ac_cpp_err=yes | |
12105 | fi | |
12106 | if test -z "$ac_cpp_err"; then | |
12107 | # Broken: success on invalid input. | |
12108 | continue | |
12109 | else | |
12110 | echo "$as_me: failed program was:" >&5 | |
12111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12112 | ||
12113 | # Passes both tests. | |
12114 | ac_preproc_ok=: | |
12115 | break | |
12116 | fi | |
12117 | rm -f conftest.err conftest.$ac_ext | |
12118 | ||
12119 | done | |
12120 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12121 | rm -f conftest.err conftest.$ac_ext | |
12122 | if $ac_preproc_ok; then | |
12123 | : | |
12124 | else | |
12125 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12126 | See \`config.log' for more details." >&5 | |
12127 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12128 | See \`config.log' for more details." >&2;} | |
12129 | { (exit 1); exit 1; }; } | |
12130 | fi | |
12131 | ||
12132 | ac_ext=c | |
12133 | ac_cpp='$CPP $CPPFLAGS' | |
12134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12137 | ||
12138 | ||
12139 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12140 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12141 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12143 | else | |
12144 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12145 | then ac_cv_prog_egrep='grep -E' | |
12146 | else ac_cv_prog_egrep='egrep' | |
12147 | fi | |
12148 | fi | |
12149 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12150 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12151 | EGREP=$ac_cv_prog_egrep | |
12152 | ||
12153 | ||
12154 | if test $ac_cv_c_compiler_gnu = yes; then | |
12155 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12156 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12157 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12159 | else | |
12160 | ac_pattern="Autoconf.*'x'" | |
12161 | cat >conftest.$ac_ext <<_ACEOF | |
12162 | /* confdefs.h. */ | |
12163 | _ACEOF | |
12164 | cat confdefs.h >>conftest.$ac_ext | |
12165 | cat >>conftest.$ac_ext <<_ACEOF | |
12166 | /* end confdefs.h. */ | |
12167 | #include <sgtty.h> | |
12168 | Autoconf TIOCGETP | |
12169 | _ACEOF | |
12170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12171 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12172 | ac_cv_prog_gcc_traditional=yes | |
12173 | else | |
12174 | ac_cv_prog_gcc_traditional=no | |
12175 | fi | |
12176 | rm -f conftest* | |
12177 | ||
12178 | ||
12179 | if test $ac_cv_prog_gcc_traditional = no; then | |
12180 | cat >conftest.$ac_ext <<_ACEOF | |
12181 | /* confdefs.h. */ | |
12182 | _ACEOF | |
12183 | cat confdefs.h >>conftest.$ac_ext | |
12184 | cat >>conftest.$ac_ext <<_ACEOF | |
12185 | /* end confdefs.h. */ | |
12186 | #include <termio.h> | |
12187 | Autoconf TCGETA | |
12188 | _ACEOF | |
12189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12190 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12191 | ac_cv_prog_gcc_traditional=yes | |
12192 | fi | |
12193 | rm -f conftest* | |
12194 | ||
12195 | fi | |
12196 | fi | |
12197 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12198 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12199 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12200 | CC="$CC -traditional" | |
12201 | fi | |
12202 | fi | |
12203 | ||
12204 | ||
12205 | ||
12206 | ||
12207 | ac_ext=cc | |
12208 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12209 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12210 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12211 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12212 | ||
12213 | ||
12214 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12215 | |
12216 | ||
12217 | ac_ext=cc | |
a848cd7e SC |
12218 | ac_cpp='$CXXCPP $CPPFLAGS' |
12219 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12220 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12221 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12222 | if test -n "$ac_tool_prefix"; then | |
12223 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12224 | do | |
12225 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12226 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12229 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12231 | else | |
12232 | if test -n "$CXX"; then | |
12233 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12234 | else | |
12235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12236 | for as_dir in $PATH | |
12237 | do | |
12238 | IFS=$as_save_IFS | |
12239 | test -z "$as_dir" && as_dir=. | |
12240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12242 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12244 | break 2 | |
12245 | fi | |
12246 | done | |
12247 | done | |
12248 | ||
12249 | fi | |
12250 | fi | |
12251 | CXX=$ac_cv_prog_CXX | |
12252 | if test -n "$CXX"; then | |
12253 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12254 | echo "${ECHO_T}$CXX" >&6 | |
12255 | else | |
12256 | echo "$as_me:$LINENO: result: no" >&5 | |
12257 | echo "${ECHO_T}no" >&6 | |
12258 | fi | |
12259 | ||
12260 | test -n "$CXX" && break | |
12261 | done | |
12262 | fi | |
12263 | if test -z "$CXX"; then | |
12264 | ac_ct_CXX=$CXX | |
12265 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12266 | do | |
12267 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12268 | set dummy $ac_prog; ac_word=$2 | |
12269 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12271 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12273 | else | |
12274 | if test -n "$ac_ct_CXX"; then | |
12275 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12276 | else | |
12277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12278 | for as_dir in $PATH | |
12279 | do | |
12280 | IFS=$as_save_IFS | |
12281 | test -z "$as_dir" && as_dir=. | |
12282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12284 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12286 | break 2 | |
12287 | fi | |
12288 | done | |
12289 | done | |
12290 | ||
12291 | fi | |
12292 | fi | |
12293 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12294 | if test -n "$ac_ct_CXX"; then | |
12295 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12296 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12297 | else | |
12298 | echo "$as_me:$LINENO: result: no" >&5 | |
12299 | echo "${ECHO_T}no" >&6 | |
12300 | fi | |
12301 | ||
12302 | test -n "$ac_ct_CXX" && break | |
12303 | done | |
12304 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12305 | ||
12306 | CXX=$ac_ct_CXX | |
12307 | fi | |
12308 | ||
12309 | ||
12310 | # Provide some information about the compiler. | |
12311 | echo "$as_me:$LINENO:" \ | |
12312 | "checking for C++ compiler version" >&5 | |
12313 | ac_compiler=`set X $ac_compile; echo $2` | |
12314 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12315 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12316 | ac_status=$? | |
12317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12318 | (exit $ac_status); } | |
12319 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12320 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12321 | ac_status=$? | |
12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12323 | (exit $ac_status); } | |
12324 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12325 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12326 | ac_status=$? | |
12327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12328 | (exit $ac_status); } | |
12329 | ||
12330 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12331 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12332 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12334 | else | |
12335 | cat >conftest.$ac_ext <<_ACEOF | |
12336 | /* confdefs.h. */ | |
12337 | _ACEOF | |
12338 | cat confdefs.h >>conftest.$ac_ext | |
12339 | cat >>conftest.$ac_ext <<_ACEOF | |
12340 | /* end confdefs.h. */ | |
12341 | ||
12342 | int | |
12343 | main () | |
12344 | { | |
12345 | #ifndef __GNUC__ | |
12346 | choke me | |
12347 | #endif | |
12348 | ||
12349 | ; | |
12350 | return 0; | |
12351 | } | |
12352 | _ACEOF | |
12353 | rm -f conftest.$ac_objext | |
12354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12355 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12356 | ac_status=$? |
ac1cb8d3 VS |
12357 | grep -v '^ *+' conftest.er1 >conftest.err |
12358 | rm -f conftest.er1 | |
12359 | cat conftest.err >&5 | |
a848cd7e SC |
12360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12361 | (exit $ac_status); } && | |
9dd0f6c2 | 12362 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12364 | (eval $ac_try) 2>&5 | |
12365 | ac_status=$? | |
12366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12367 | (exit $ac_status); }; } && | |
12368 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12370 | (eval $ac_try) 2>&5 | |
12371 | ac_status=$? | |
12372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12373 | (exit $ac_status); }; }; then | |
12374 | ac_compiler_gnu=yes | |
12375 | else | |
12376 | echo "$as_me: failed program was:" >&5 | |
12377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12378 | ||
12379 | ac_compiler_gnu=no | |
12380 | fi | |
ac1cb8d3 | 12381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12382 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12383 | ||
12384 | fi | |
12385 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12386 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12387 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12388 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12389 | ac_save_CXXFLAGS=$CXXFLAGS | |
12390 | CXXFLAGS="-g" | |
12391 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12392 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12393 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12395 | else | |
12396 | cat >conftest.$ac_ext <<_ACEOF | |
12397 | /* confdefs.h. */ | |
12398 | _ACEOF | |
12399 | cat confdefs.h >>conftest.$ac_ext | |
12400 | cat >>conftest.$ac_ext <<_ACEOF | |
12401 | /* end confdefs.h. */ | |
12402 | ||
12403 | int | |
12404 | main () | |
12405 | { | |
12406 | ||
12407 | ; | |
12408 | return 0; | |
12409 | } | |
12410 | _ACEOF | |
12411 | rm -f conftest.$ac_objext | |
12412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12413 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12414 | ac_status=$? |
ac1cb8d3 VS |
12415 | grep -v '^ *+' conftest.er1 >conftest.err |
12416 | rm -f conftest.er1 | |
12417 | cat conftest.err >&5 | |
a848cd7e SC |
12418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12419 | (exit $ac_status); } && | |
9dd0f6c2 | 12420 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12422 | (eval $ac_try) 2>&5 | |
12423 | ac_status=$? | |
12424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12425 | (exit $ac_status); }; } && | |
12426 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12428 | (eval $ac_try) 2>&5 | |
12429 | ac_status=$? | |
12430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12431 | (exit $ac_status); }; }; then | |
12432 | ac_cv_prog_cxx_g=yes | |
12433 | else | |
12434 | echo "$as_me: failed program was:" >&5 | |
12435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12436 | ||
12437 | ac_cv_prog_cxx_g=no | |
12438 | fi | |
ac1cb8d3 | 12439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12440 | fi |
12441 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12442 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12443 | if test "$ac_test_CXXFLAGS" = set; then | |
12444 | CXXFLAGS=$ac_save_CXXFLAGS | |
12445 | elif test $ac_cv_prog_cxx_g = yes; then | |
12446 | if test "$GXX" = yes; then | |
52ada004 | 12447 | CXXFLAGS="-g -O2" |
a848cd7e | 12448 | else |
52ada004 | 12449 | CXXFLAGS="-g" |
a848cd7e SC |
12450 | fi |
12451 | else | |
12452 | if test "$GXX" = yes; then | |
12453 | CXXFLAGS="-O2" | |
12454 | else | |
12455 | CXXFLAGS= | |
12456 | fi | |
12457 | fi | |
12458 | for ac_declaration in \ | |
ac1cb8d3 | 12459 | '' \ |
a848cd7e SC |
12460 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12461 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12462 | 'extern "C" void exit (int) throw ();' \ | |
12463 | 'extern "C" void exit (int);' \ | |
12464 | 'void exit (int);' | |
12465 | do | |
12466 | cat >conftest.$ac_ext <<_ACEOF | |
12467 | /* confdefs.h. */ | |
12468 | _ACEOF | |
12469 | cat confdefs.h >>conftest.$ac_ext | |
12470 | cat >>conftest.$ac_ext <<_ACEOF | |
12471 | /* end confdefs.h. */ | |
de59c161 | 12472 | $ac_declaration |
ac1cb8d3 | 12473 | #include <stdlib.h> |
a848cd7e SC |
12474 | int |
12475 | main () | |
12476 | { | |
12477 | exit (42); | |
12478 | ; | |
12479 | return 0; | |
12480 | } | |
12481 | _ACEOF | |
12482 | rm -f conftest.$ac_objext | |
12483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12484 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12485 | ac_status=$? |
ac1cb8d3 VS |
12486 | grep -v '^ *+' conftest.er1 >conftest.err |
12487 | rm -f conftest.er1 | |
12488 | cat conftest.err >&5 | |
a848cd7e SC |
12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12490 | (exit $ac_status); } && | |
9dd0f6c2 | 12491 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12493 | (eval $ac_try) 2>&5 | |
12494 | ac_status=$? | |
12495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12496 | (exit $ac_status); }; } && | |
12497 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12499 | (eval $ac_try) 2>&5 | |
12500 | ac_status=$? | |
12501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12502 | (exit $ac_status); }; }; then | |
12503 | : | |
12504 | else | |
12505 | echo "$as_me: failed program was:" >&5 | |
12506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12507 | ||
12508 | continue | |
12509 | fi | |
ac1cb8d3 | 12510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12511 | cat >conftest.$ac_ext <<_ACEOF |
12512 | /* confdefs.h. */ | |
12513 | _ACEOF | |
12514 | cat confdefs.h >>conftest.$ac_ext | |
12515 | cat >>conftest.$ac_ext <<_ACEOF | |
12516 | /* end confdefs.h. */ | |
12517 | $ac_declaration | |
12518 | int | |
12519 | main () | |
12520 | { | |
12521 | exit (42); | |
12522 | ; | |
12523 | return 0; | |
12524 | } | |
12525 | _ACEOF | |
12526 | rm -f conftest.$ac_objext | |
12527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12528 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12529 | ac_status=$? |
ac1cb8d3 VS |
12530 | grep -v '^ *+' conftest.er1 >conftest.err |
12531 | rm -f conftest.er1 | |
12532 | cat conftest.err >&5 | |
a848cd7e SC |
12533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12534 | (exit $ac_status); } && | |
9dd0f6c2 | 12535 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12537 | (eval $ac_try) 2>&5 | |
12538 | ac_status=$? | |
12539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12540 | (exit $ac_status); }; } && | |
12541 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12543 | (eval $ac_try) 2>&5 | |
12544 | ac_status=$? | |
12545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12546 | (exit $ac_status); }; }; then | |
12547 | break | |
12548 | else | |
12549 | echo "$as_me: failed program was:" >&5 | |
12550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12551 | ||
12552 | fi | |
ac1cb8d3 | 12553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12554 | done |
12555 | rm -f conftest* | |
12556 | if test -n "$ac_declaration"; then | |
12557 | echo '#ifdef __cplusplus' >>confdefs.h | |
12558 | echo $ac_declaration >>confdefs.h | |
12559 | echo '#endif' >>confdefs.h | |
12560 | fi | |
12561 | ||
12562 | ac_ext=cc | |
12563 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12564 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12565 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12566 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12567 | ||
6dcfc289 | 12568 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 |
480ccd21 DE |
12569 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
12570 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12572 | else | |
12573 | cat >conftest.$ac_ext <<_ACEOF | |
12574 | /* confdefs.h. */ | |
12575 | _ACEOF | |
12576 | cat confdefs.h >>conftest.$ac_ext | |
12577 | cat >>conftest.$ac_ext <<_ACEOF | |
12578 | /* end confdefs.h. */ | |
12579 | ||
12580 | int | |
12581 | main () | |
12582 | { | |
12583 | ||
12584 | ; | |
12585 | return 0; | |
12586 | } | |
12587 | _ACEOF | |
12588 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12590 | (eval $ac_compile) 2>&5 | |
12591 | ac_status=$? | |
12592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12593 | (exit $ac_status); }; then | |
12594 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12595 | case $ac_file in | |
12596 | conftest.$ac_ext.o) | |
12597 | wx_cv_cxx_exto="-ext o" | |
12598 | ;; | |
12599 | *) | |
12600 | ;; | |
12601 | esac | |
12602 | done | |
12603 | else | |
12604 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12605 | See \`config.log' for more details." >&5 | |
12606 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12607 | See \`config.log' for more details." >&2;} | |
12608 | { (exit 1); exit 1; }; } | |
12609 | ||
12610 | fi | |
12611 | ||
12612 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12613 | ||
12614 | fi | |
12615 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
12616 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
12617 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12618 | if test "cxx" = "c"; then | |
12619 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
12620 | fi | |
12621 | if test "cxx" = "cxx"; then | |
12622 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
12623 | fi | |
12624 | fi | |
12625 | ||
6dcfc289 DE |
12626 | if test "x$wx_cv_cxx_exto" '!=' "x"; then |
12627 | unset ac_cv_prog_cxx_g | |
12628 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
480ccd21 DE |
12629 | ac_save_CXXFLAGS=$CXXFLAGS |
12630 | CXXFLAGS="-g" | |
12631 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12632 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12633 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12635 | else | |
12636 | cat >conftest.$ac_ext <<_ACEOF | |
12637 | /* confdefs.h. */ | |
12638 | _ACEOF | |
12639 | cat confdefs.h >>conftest.$ac_ext | |
12640 | cat >>conftest.$ac_ext <<_ACEOF | |
12641 | /* end confdefs.h. */ | |
12642 | ||
12643 | int | |
12644 | main () | |
12645 | { | |
12646 | ||
12647 | ; | |
12648 | return 0; | |
12649 | } | |
12650 | _ACEOF | |
12651 | rm -f conftest.$ac_objext | |
12652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12653 | (eval $ac_compile) 2>conftest.er1 | |
12654 | ac_status=$? | |
12655 | grep -v '^ *+' conftest.er1 >conftest.err | |
12656 | rm -f conftest.er1 | |
12657 | cat conftest.err >&5 | |
12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12659 | (exit $ac_status); } && | |
9dd0f6c2 | 12660 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12662 | (eval $ac_try) 2>&5 | |
12663 | ac_status=$? | |
12664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12665 | (exit $ac_status); }; } && | |
12666 | { ac_try='test -s conftest.$ac_objext' | |
12667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12668 | (eval $ac_try) 2>&5 | |
12669 | ac_status=$? | |
12670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12671 | (exit $ac_status); }; }; then | |
12672 | ac_cv_prog_cxx_g=yes | |
12673 | else | |
12674 | echo "$as_me: failed program was:" >&5 | |
12675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12676 | ||
12677 | ac_cv_prog_cxx_g=no | |
12678 | fi | |
12679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12680 | fi | |
12681 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12682 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12683 | if test "$ac_test_CXXFLAGS" = set; then | |
12684 | CXXFLAGS=$ac_save_CXXFLAGS | |
12685 | elif test $ac_cv_prog_cxx_g = yes; then | |
12686 | if test "$GXX" = yes; then | |
52ada004 | 12687 | CXXFLAGS="-g -O2" |
480ccd21 | 12688 | else |
52ada004 | 12689 | CXXFLAGS="-g" |
480ccd21 DE |
12690 | fi |
12691 | else | |
12692 | if test "$GXX" = yes; then | |
12693 | CXXFLAGS="-O2" | |
12694 | else | |
12695 | CXXFLAGS= | |
12696 | fi | |
12697 | fi | |
6dcfc289 DE |
12698 | fi |
12699 | ac_ext=cc | |
95986553 DE |
12700 | ac_cpp='$CXXCPP $CPPFLAGS' |
12701 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12702 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12703 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12704 | ||
12705 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12706 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12707 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12709 | else | |
12710 | cat >conftest.$ac_ext <<_ACEOF | |
12711 | /* confdefs.h. */ | |
12712 | _ACEOF | |
12713 | cat confdefs.h >>conftest.$ac_ext | |
12714 | cat >>conftest.$ac_ext <<_ACEOF | |
12715 | /* end confdefs.h. */ | |
12716 | ||
12717 | int | |
12718 | main () | |
12719 | { | |
12720 | #ifndef __MWERKS__ | |
12721 | choke me | |
12722 | #endif | |
12723 | ||
12724 | ; | |
12725 | return 0; | |
12726 | } | |
12727 | _ACEOF | |
12728 | rm -f conftest.$ac_objext | |
12729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12730 | (eval $ac_compile) 2>conftest.er1 | |
12731 | ac_status=$? | |
12732 | grep -v '^ *+' conftest.er1 >conftest.err | |
12733 | rm -f conftest.er1 | |
12734 | cat conftest.err >&5 | |
12735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12736 | (exit $ac_status); } && | |
9dd0f6c2 | 12737 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12739 | (eval $ac_try) 2>&5 | |
12740 | ac_status=$? | |
12741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12742 | (exit $ac_status); }; } && | |
12743 | { ac_try='test -s conftest.$ac_objext' | |
12744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12745 | (eval $ac_try) 2>&5 | |
12746 | ac_status=$? | |
12747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12748 | (exit $ac_status); }; }; then | |
12749 | bakefile_compiler_mwerks=yes | |
12750 | else | |
12751 | echo "$as_me: failed program was:" >&5 | |
12752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12753 | ||
12754 | bakefile_compiler_mwerks=no | |
12755 | fi | |
12756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12757 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12758 | ||
12759 | fi | |
12760 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12761 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12762 | ||
0e6fa1d9 | 12763 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
12764 | ac_ext=cc |
12765 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12766 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12767 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12768 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12769 | ||
12770 | ||
6dcfc289 | 12771 | ac_ext=cc |
9273ffba DE |
12772 | ac_cpp='$CXXCPP $CPPFLAGS' |
12773 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12774 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12775 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12776 | ||
12777 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
12778 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
12779 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then | |
12780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12781 | else | |
12782 | cat >conftest.$ac_ext <<_ACEOF | |
12783 | /* confdefs.h. */ | |
12784 | _ACEOF | |
12785 | cat confdefs.h >>conftest.$ac_ext | |
12786 | cat >>conftest.$ac_ext <<_ACEOF | |
12787 | /* end confdefs.h. */ | |
12788 | ||
12789 | int | |
12790 | main () | |
12791 | { | |
12792 | #ifndef __xlC__ | |
12793 | choke me | |
12794 | #endif | |
12795 | ||
12796 | ; | |
12797 | return 0; | |
12798 | } | |
12799 | _ACEOF | |
12800 | rm -f conftest.$ac_objext | |
12801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12802 | (eval $ac_compile) 2>conftest.er1 | |
12803 | ac_status=$? | |
12804 | grep -v '^ *+' conftest.er1 >conftest.err | |
12805 | rm -f conftest.er1 | |
12806 | cat conftest.err >&5 | |
12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12808 | (exit $ac_status); } && | |
9dd0f6c2 | 12809 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12811 | (eval $ac_try) 2>&5 | |
12812 | ac_status=$? | |
12813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12814 | (exit $ac_status); }; } && | |
12815 | { ac_try='test -s conftest.$ac_objext' | |
12816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12817 | (eval $ac_try) 2>&5 | |
12818 | ac_status=$? | |
12819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12820 | (exit $ac_status); }; }; then | |
12821 | wx_compiler_xlc=yes | |
12822 | else | |
12823 | echo "$as_me: failed program was:" >&5 | |
12824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12825 | ||
12826 | wx_compiler_xlc=no | |
12827 | fi | |
12828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12829 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc | |
12830 | ||
12831 | fi | |
12832 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 | |
12833 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
12834 | ||
0e6fa1d9 | 12835 | XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
12836 | ac_ext=cc |
12837 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12838 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12839 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12840 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12841 | ||
12842 | ||
95986553 | 12843 | |
6dcfc289 | 12844 | |
a848cd7e SC |
12845 | ac_ext=c |
12846 | ac_cpp='$CPP $CPPFLAGS' | |
12847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12850 | ||
12851 | ||
a848cd7e SC |
12852 | if test -n "$ac_tool_prefix"; then |
12853 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12854 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12857 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12859 | else | |
12860 | if test -n "$RANLIB"; then | |
12861 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12862 | else | |
12863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12864 | for as_dir in $PATH | |
12865 | do | |
12866 | IFS=$as_save_IFS | |
12867 | test -z "$as_dir" && as_dir=. | |
12868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12870 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12872 | break 2 | |
12873 | fi | |
12874 | done | |
12875 | done | |
12876 | ||
12877 | fi | |
12878 | fi | |
12879 | RANLIB=$ac_cv_prog_RANLIB | |
12880 | if test -n "$RANLIB"; then | |
12881 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12882 | echo "${ECHO_T}$RANLIB" >&6 | |
12883 | else | |
12884 | echo "$as_me:$LINENO: result: no" >&5 | |
12885 | echo "${ECHO_T}no" >&6 | |
12886 | fi | |
12887 | ||
12888 | fi | |
12889 | if test -z "$ac_cv_prog_RANLIB"; then | |
12890 | ac_ct_RANLIB=$RANLIB | |
12891 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12892 | set dummy ranlib; ac_word=$2 | |
12893 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12895 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12897 | else | |
12898 | if test -n "$ac_ct_RANLIB"; then | |
12899 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12900 | else | |
12901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12902 | for as_dir in $PATH | |
12903 | do | |
12904 | IFS=$as_save_IFS | |
12905 | test -z "$as_dir" && as_dir=. | |
12906 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12907 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12908 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12909 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12910 | break 2 | |
12911 | fi | |
12912 | done | |
12913 | done | |
12914 | ||
12915 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12916 | fi | |
12917 | fi | |
12918 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12919 | if test -n "$ac_ct_RANLIB"; then | |
12920 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12921 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12922 | else | |
12923 | echo "$as_me:$LINENO: result: no" >&5 | |
12924 | echo "${ECHO_T}no" >&6 | |
12925 | fi | |
12926 | ||
12927 | RANLIB=$ac_ct_RANLIB | |
12928 | else | |
12929 | RANLIB="$ac_cv_prog_RANLIB" | |
12930 | fi | |
12931 | ||
12932 | ||
12933 | # Extract the first word of "ar", so it can be a program name with args. | |
12934 | set dummy ar; ac_word=$2 | |
12935 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12937 | if test "${ac_cv_prog_AR+set}" = set; then | |
12938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12939 | else | |
12940 | if test -n "$AR"; then | |
12941 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12942 | else | |
12943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12944 | for as_dir in $PATH | |
12945 | do | |
12946 | IFS=$as_save_IFS | |
12947 | test -z "$as_dir" && as_dir=. | |
12948 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12949 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12950 | ac_cv_prog_AR="ar" | |
12951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12952 | break 2 | |
12953 | fi | |
12954 | done | |
12955 | done | |
12956 | ||
12957 | fi | |
12958 | fi | |
12959 | AR=$ac_cv_prog_AR | |
12960 | if test -n "$AR"; then | |
12961 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12962 | echo "${ECHO_T}$AR" >&6 | |
12963 | else | |
12964 | echo "$as_me:$LINENO: result: no" >&5 | |
12965 | echo "${ECHO_T}no" >&6 | |
12966 | fi | |
12967 | ||
12968 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12969 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12970 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12971 | { (exit 1); exit 1; }; } |
12972 | fi | |
12973 | ||
12974 | # Find a good install program. We prefer a C program (faster), | |
12975 | # so one script is as good as another. But avoid the broken or | |
12976 | # incompatible versions: | |
12977 | # SysV /etc/install, /usr/sbin/install | |
12978 | # SunOS /usr/etc/install | |
12979 | # IRIX /sbin/install | |
12980 | # AIX /bin/install | |
12981 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12982 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12983 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12984 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12985 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12986 | # ./install, which can be erroneously created by make from ./install.sh. |
12987 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12988 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12989 | if test -z "$INSTALL"; then | |
12990 | if test "${ac_cv_path_install+set}" = set; then | |
12991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12992 | else | |
12993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12994 | for as_dir in $PATH | |
12995 | do | |
12996 | IFS=$as_save_IFS | |
12997 | test -z "$as_dir" && as_dir=. | |
12998 | # Account for people who put trailing slashes in PATH elements. | |
12999 | case $as_dir/ in | |
13000 | ./ | .// | /cC/* | \ | |
13001 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 13002 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
13003 | /usr/ucb/* ) ;; |
13004 | *) | |
13005 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
13006 | # Don't use installbsd from OSF since it installs stuff as root | |
13007 | # by default. | |
13008 | for ac_prog in ginstall scoinst install; do | |
13009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
13010 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
13011 | if test $ac_prog = install && | |
13012 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13013 | # AIX install. It has an incompatible calling convention. | |
13014 | : | |
13015 | elif test $ac_prog = install && | |
13016 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13017 | # program-specific install script used by HP pwplus--don't use. | |
13018 | : | |
13019 | else | |
13020 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
13021 | break 3 | |
13022 | fi | |
13023 | fi | |
a848cd7e SC |
13024 | done |
13025 | done | |
13026 | ;; | |
13027 | esac | |
13028 | done | |
13029 | ||
13030 | ||
13031 | fi | |
13032 | if test "${ac_cv_path_install+set}" = set; then | |
13033 | INSTALL=$ac_cv_path_install | |
13034 | else | |
13035 | # As a last resort, use the slow shell script. We don't cache a | |
13036 | # path for INSTALL within a source directory, because that will | |
13037 | # break other packages using the cache if that directory is | |
13038 | # removed, or if the path is relative. | |
13039 | INSTALL=$ac_install_sh | |
13040 | fi | |
13041 | fi | |
13042 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
13043 | echo "${ECHO_T}$INSTALL" >&6 | |
13044 | ||
13045 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
13046 | # It thinks the first close brace ends the variable substitution. | |
13047 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
13048 | ||
13049 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
13050 | ||
13051 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
13052 | ||
13053 | ||
13054 | case ${INSTALL} in | |
13055 | /* ) # Absolute | |
13056 | ;; | |
13057 | ?:* ) # Drive letter, considered as absolute. | |
13058 | ;; | |
13059 | *) | |
13060 | INSTALL=`pwd`/${INSTALL} ;; | |
13061 | esac | |
13062 | ||
a848cd7e SC |
13063 | |
13064 | case "${host}" in | |
13065 | ||
13066 | powerpc-*-darwin* ) | |
13067 | INSTALL_PROGRAM="cp -fp" | |
13068 | INSTALL_DATA="cp -fp" | |
13069 | ;; | |
13070 | *) | |
13071 | ;; | |
13072 | esac | |
13073 | ||
13074 | # Extract the first word of "strip", so it can be a program name with args. | |
13075 | set dummy strip; ac_word=$2 | |
13076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13078 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
13079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13080 | else | |
13081 | if test -n "$STRIP"; then | |
13082 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13083 | else | |
13084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13085 | for as_dir in $PATH | |
13086 | do | |
13087 | IFS=$as_save_IFS | |
13088 | test -z "$as_dir" && as_dir=. | |
13089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13090 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13091 | ac_cv_prog_STRIP="strip" | |
13092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13093 | break 2 | |
13094 | fi | |
13095 | done | |
13096 | done | |
13097 | ||
13098 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
13099 | fi | |
13100 | fi | |
13101 | STRIP=$ac_cv_prog_STRIP | |
13102 | if test -n "$STRIP"; then | |
13103 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
13104 | echo "${ECHO_T}$STRIP" >&6 | |
13105 | else | |
13106 | echo "$as_me:$LINENO: result: no" >&5 | |
13107 | echo "${ECHO_T}no" >&6 | |
13108 | fi | |
13109 | ||
13110 | ||
13111 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
13112 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
13113 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
13114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13115 | else | |
13116 | ||
13117 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
13118 | egrep -s GNU > /dev/null); then | |
13119 | wx_cv_prog_makeisgnu="yes" | |
13120 | else | |
13121 | wx_cv_prog_makeisgnu="no" | |
13122 | fi | |
13123 | ||
13124 | fi | |
13125 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
13126 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
13127 | ||
13128 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
13129 | IF_GNU_MAKE="" | |
13130 | else | |
13131 | IF_GNU_MAKE="#" | |
13132 | fi | |
13133 | ||
13134 | ||
13135 | ||
13136 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
13137 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
13138 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
13139 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
13140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13141 | else | |
13142 | ||
13143 | cat - << EOF > confMake | |
13144 | check : file | |
13145 | cp \$? \$@ | |
13146 | cp \$? final_file | |
13147 | EOF | |
13148 | ||
13149 | if test ! -d sub ; then | |
13150 | mkdir sub | |
13151 | fi | |
13152 | echo dummy > sub/file | |
13153 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
13154 | RESULT=$? | |
13155 | rm -f sub/file check final_file confMake | |
13156 | rmdir sub | |
13157 | if test "$RESULT" = 0; then | |
13158 | wx_cv_prog_makevpath="yes" | |
13159 | else | |
13160 | wx_cv_prog_makevpath="no" | |
13161 | fi | |
13162 | ||
13163 | fi | |
13164 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
13165 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
13166 | ||
13167 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
13168 | { { echo "$as_me:$LINENO: error: | |
13169 | You need a make-utility that is able to use the variable | |
13170 | VPATH correctly. | |
13171 | If your version of make does not support VPATH correctly, | |
13172 | please install GNU-make (possibly as gmake), and start | |
13173 | configure with the following command: | |
13174 | export MAKE=gmake; ./configure for sh-type shells | |
13175 | setenv MAKE gmake; ./configure for csh-type shells | |
13176 | Also please do remember to use gmake in this case every time | |
13177 | you are trying to compile. | |
13178 | " >&5 | |
13179 | echo "$as_me: error: | |
13180 | You need a make-utility that is able to use the variable | |
13181 | VPATH correctly. | |
13182 | If your version of make does not support VPATH correctly, | |
13183 | please install GNU-make (possibly as gmake), and start | |
13184 | configure with the following command: | |
13185 | export MAKE=gmake; ./configure for sh-type shells | |
13186 | setenv MAKE gmake; ./configure for csh-type shells | |
13187 | Also please do remember to use gmake in this case every time | |
13188 | you are trying to compile. | |
13189 | " >&2;} | |
13190 | { (exit 1); exit 1; }; } | |
13191 | fi fi | |
13192 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
13193 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
13194 | LN_S=$as_ln_s | |
13195 | if test "$LN_S" = "ln -s"; then | |
13196 | echo "$as_me:$LINENO: result: yes" >&5 | |
13197 | echo "${ECHO_T}yes" >&6 | |
13198 | else | |
13199 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
13200 | echo "${ECHO_T}no, using $LN_S" >&6 | |
13201 | fi | |
13202 | ||
13203 | ||
13204 | ||
9273ffba DE |
13205 | if test "x$XLCXX" = "xyes"; then |
13206 | CXXFLAGS="$CXXFLAGS -qunique" | |
13207 | fi | |
13208 | ||
13209 | ||
4d7ec9f1 DE |
13210 | case "${host}" in |
13211 | powerpc-*-darwin* ) | |
13212 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
13213 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
13214 | cat >conftest.$ac_ext <<_ACEOF | |
13215 | /* confdefs.h. */ | |
13216 | _ACEOF | |
13217 | cat confdefs.h >>conftest.$ac_ext | |
13218 | cat >>conftest.$ac_ext <<_ACEOF | |
13219 | /* end confdefs.h. */ | |
13220 | ||
13221 | int | |
13222 | main () | |
13223 | { | |
13224 | #ifndef __POWERPC__ | |
13225 | choke me for lack of PowerPC | |
13226 | #endif | |
13227 | ||
13228 | ; | |
13229 | return 0; | |
13230 | } | |
13231 | _ACEOF | |
13232 | rm -f conftest.$ac_objext | |
13233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13234 | (eval $ac_compile) 2>conftest.er1 | |
13235 | ac_status=$? | |
13236 | grep -v '^ *+' conftest.er1 >conftest.err | |
13237 | rm -f conftest.er1 | |
13238 | cat conftest.err >&5 | |
13239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13240 | (exit $ac_status); } && | |
9dd0f6c2 | 13241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13243 | (eval $ac_try) 2>&5 | |
13244 | ac_status=$? | |
13245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13246 | (exit $ac_status); }; } && | |
13247 | { ac_try='test -s conftest.$ac_objext' | |
13248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13249 | (eval $ac_try) 2>&5 | |
13250 | ac_status=$? | |
13251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13252 | (exit $ac_status); }; }; then | |
13253 | echo "$as_me:$LINENO: result: yes" >&5 | |
13254 | echo "${ECHO_T}yes" >&6 | |
13255 | else | |
13256 | echo "$as_me: failed program was:" >&5 | |
13257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13258 | ||
13259 | echo "$as_me:$LINENO: result: no" >&5 | |
13260 | echo "${ECHO_T}no" >&6 | |
13261 | cat >>confdefs.h <<\_ACEOF | |
13262 | #define __POWERPC__ 1 | |
13263 | _ACEOF | |
13264 | ||
13265 | ||
13266 | fi | |
13267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13268 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 | |
13269 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
13270 | cat >conftest.$ac_ext <<_ACEOF | |
13271 | /* confdefs.h. */ | |
13272 | _ACEOF | |
13273 | cat confdefs.h >>conftest.$ac_ext | |
13274 | cat >>conftest.$ac_ext <<_ACEOF | |
13275 | /* end confdefs.h. */ | |
13276 | #include <CoreFoundation/CFBase.h> | |
13277 | ||
13278 | int | |
13279 | main () | |
13280 | { | |
13281 | ||
13282 | ; | |
13283 | return 0; | |
13284 | } | |
13285 | _ACEOF | |
13286 | rm -f conftest.$ac_objext | |
13287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13288 | (eval $ac_compile) 2>conftest.er1 | |
13289 | ac_status=$? | |
13290 | grep -v '^ *+' conftest.er1 >conftest.err | |
13291 | rm -f conftest.er1 | |
13292 | cat conftest.err >&5 | |
13293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13294 | (exit $ac_status); } && | |
9dd0f6c2 | 13295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13297 | (eval $ac_try) 2>&5 | |
13298 | ac_status=$? | |
13299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13300 | (exit $ac_status); }; } && | |
13301 | { ac_try='test -s conftest.$ac_objext' | |
13302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13303 | (eval $ac_try) 2>&5 | |
13304 | ac_status=$? | |
13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13306 | (exit $ac_status); }; }; then | |
13307 | echo "$as_me:$LINENO: result: yes" >&5 | |
13308 | echo "${ECHO_T}yes" >&6 | |
13309 | else | |
13310 | echo "$as_me: failed program was:" >&5 | |
13311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13312 | ||
13313 | echo "$as_me:$LINENO: result: no" >&5 | |
13314 | echo "${ECHO_T}no" >&6 | |
13315 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
13316 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
13317 | cat >conftest.$ac_ext <<_ACEOF | |
13318 | /* confdefs.h. */ | |
13319 | _ACEOF | |
13320 | cat confdefs.h >>conftest.$ac_ext | |
13321 | cat >>conftest.$ac_ext <<_ACEOF | |
13322 | /* end confdefs.h. */ | |
13323 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
13324 | #include <CoreFoundation/CFBase.h> | |
13325 | ||
13326 | int | |
13327 | main () | |
13328 | { | |
13329 | ||
13330 | ; | |
13331 | return 0; | |
13332 | } | |
13333 | _ACEOF | |
13334 | rm -f conftest.$ac_objext | |
13335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13336 | (eval $ac_compile) 2>conftest.er1 | |
13337 | ac_status=$? | |
13338 | grep -v '^ *+' conftest.er1 >conftest.err | |
13339 | rm -f conftest.er1 | |
13340 | cat conftest.err >&5 | |
13341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13342 | (exit $ac_status); } && | |
9dd0f6c2 | 13343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13345 | (eval $ac_try) 2>&5 | |
13346 | ac_status=$? | |
13347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13348 | (exit $ac_status); }; } && | |
13349 | { ac_try='test -s conftest.$ac_objext' | |
13350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13351 | (eval $ac_try) 2>&5 | |
13352 | ac_status=$? | |
13353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13354 | (exit $ac_status); }; }; then | |
13355 | echo "$as_me:$LINENO: result: yes" >&5 | |
13356 | echo "${ECHO_T}yes" >&6 | |
13357 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
13358 | else | |
13359 | echo "$as_me: failed program was:" >&5 | |
13360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13361 | ||
13362 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
13363 | See \`config.log' for more details." >&5 | |
13364 | echo "$as_me: error: no. CoreFoundation not available. | |
13365 | See \`config.log' for more details." >&2;} | |
13366 | { (exit 1); exit 1; }; } | |
13367 | ||
13368 | fi | |
13369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13370 | ||
13371 | ||
13372 | fi | |
13373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13374 | ;; | |
13375 | esac | |
13376 | ||
a848cd7e SC |
13377 | case "${host}" in |
13378 | *-pc-os2_emx | *-pc-os2-emx ) | |
13379 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
13380 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
13381 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
13382 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
13383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13384 | else | |
13385 | ac_check_lib_save_LIBS=$LIBS | |
13386 | LIBS="-lcExt $LIBS" | |
13387 | cat >conftest.$ac_ext <<_ACEOF | |
13388 | /* confdefs.h. */ | |
13389 | _ACEOF | |
13390 | cat confdefs.h >>conftest.$ac_ext | |
13391 | cat >>conftest.$ac_ext <<_ACEOF | |
13392 | /* end confdefs.h. */ | |
13393 | ||
13394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13395 | #ifdef __cplusplus | |
13396 | extern "C" | |
13397 | #endif | |
13398 | /* We use char because int might match the return type of a gcc2 | |
13399 | builtin and then its argument prototype would still apply. */ | |
13400 | char drand48 (); | |
13401 | int | |
13402 | main () | |
13403 | { | |
13404 | drand48 (); | |
13405 | ; | |
13406 | return 0; | |
13407 | } | |
13408 | _ACEOF | |
13409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13411 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13412 | ac_status=$? |
ac1cb8d3 VS |
13413 | grep -v '^ *+' conftest.er1 >conftest.err |
13414 | rm -f conftest.er1 | |
13415 | cat conftest.err >&5 | |
a848cd7e SC |
13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13417 | (exit $ac_status); } && | |
9dd0f6c2 | 13418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13420 | (eval $ac_try) 2>&5 | |
13421 | ac_status=$? | |
13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13423 | (exit $ac_status); }; } && | |
13424 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13426 | (eval $ac_try) 2>&5 | |
13427 | ac_status=$? | |
13428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13429 | (exit $ac_status); }; }; then | |
13430 | ac_cv_lib_cExt_drand48=yes | |
13431 | else | |
13432 | echo "$as_me: failed program was:" >&5 | |
13433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13434 | ||
13435 | ac_cv_lib_cExt_drand48=no | |
13436 | fi | |
ac1cb8d3 VS |
13437 | rm -f conftest.err conftest.$ac_objext \ |
13438 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13439 | LIBS=$ac_check_lib_save_LIBS |
13440 | fi | |
13441 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
13442 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
13443 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
13444 | LIBS="$LIBS -lcExt" | |
13445 | fi | |
13446 | ||
13447 | else | |
13448 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
13449 | fi | |
69120ee4 VZ |
13450 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
13451 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
13452 | if test "${wx_cv_gccversion+set}" = set; then |
13453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13454 | else | |
13455 | ||
391a765e VS |
13456 | if test "$cross_compiling" = yes; then |
13457 | wx_cv_gccversion="EMX2" | |
13458 | ||
13459 | else | |
13460 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
13461 | /* confdefs.h. */ |
13462 | _ACEOF | |
13463 | cat confdefs.h >>conftest.$ac_ext | |
13464 | cat >>conftest.$ac_ext <<_ACEOF | |
13465 | /* end confdefs.h. */ | |
13466 | ||
391a765e | 13467 | #include <stdio.h> |
a848cd7e | 13468 | |
391a765e VS |
13469 | int main() |
13470 | { | |
13471 | FILE *f=fopen("conftestval", "w"); | |
13472 | if (!f) exit(1); | |
13473 | fprintf(f, | |
a848cd7e | 13474 | #if (__GNUC__ < 3) |
391a765e VS |
13475 | "EMX2" |
13476 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
13477 | "EMX3" | |
13478 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
13479 | "Innotek5" | |
13480 | #else | |
13481 | "Innotek6" | |
a848cd7e | 13482 | #endif |
391a765e VS |
13483 | ); |
13484 | exit(0); | |
13485 | } | |
a848cd7e | 13486 | |
a848cd7e | 13487 | _ACEOF |
391a765e VS |
13488 | rm -f conftest$ac_exeext |
13489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13490 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
13491 | ac_status=$? |
13492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 13493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
13494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13495 | (eval $ac_try) 2>&5 | |
13496 | ac_status=$? | |
13497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13498 | (exit $ac_status); }; }; then | |
391a765e | 13499 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 13500 | else |
391a765e VS |
13501 | echo "$as_me: program exited with status $ac_status" >&5 |
13502 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
13503 | sed 's/^/| /' conftest.$ac_ext >&5 |
13504 | ||
391a765e VS |
13505 | ( exit $ac_status ) |
13506 | wx_cv_gccversion="EMX2" | |
a848cd7e | 13507 | fi |
391a765e | 13508 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 13509 | fi |
a848cd7e SC |
13510 | |
13511 | fi | |
13512 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
13513 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 13514 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
13515 | LIBS="$LIBS -lstdcpp" |
13516 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13517 | else | |
391a765e | 13518 | if test "$wx_cv_gccversion" = "EMX3"; then |
a848cd7e SC |
13519 | LIBS="$LIBS -lstdcxx" |
13520 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13521 | else | |
13522 | LIBS="$LIBS -lstdc++" | |
13523 | fi | |
13524 | fi | |
94acd38e DE |
13525 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
13526 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
13527 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
13528 | wxUSE_OMF=yes | |
2da0c077 | 13529 | enable_omf=yes |
a848cd7e SC |
13530 | fi |
13531 | ;; | |
13532 | *) | |
13533 | ||
13534 | ||
13535 | ||
13536 | ac_ext=cc | |
13537 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13538 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13539 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13540 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13541 | ||
13542 | ||
95986553 | 13543 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
13544 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
13545 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
13546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13547 | else | |
13548 | ||
13549 | cat >conftest.$ac_ext <<_ACEOF | |
13550 | /* confdefs.h. */ | |
13551 | _ACEOF | |
13552 | cat confdefs.h >>conftest.$ac_ext | |
13553 | cat >>conftest.$ac_ext <<_ACEOF | |
13554 | /* end confdefs.h. */ | |
13555 | ||
13556 | #include <string.h> | |
13557 | ||
13558 | int | |
13559 | main () | |
13560 | { | |
13561 | ||
13562 | strcasecmp("foo", "bar"); | |
13563 | ||
13564 | ; | |
13565 | return 0; | |
13566 | } | |
13567 | _ACEOF | |
13568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13570 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13571 | ac_status=$? |
ac1cb8d3 VS |
13572 | grep -v '^ *+' conftest.er1 >conftest.err |
13573 | rm -f conftest.er1 | |
13574 | cat conftest.err >&5 | |
a848cd7e SC |
13575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13576 | (exit $ac_status); } && | |
9dd0f6c2 | 13577 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13579 | (eval $ac_try) 2>&5 | |
13580 | ac_status=$? | |
13581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13582 | (exit $ac_status); }; } && | |
13583 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13585 | (eval $ac_try) 2>&5 | |
13586 | ac_status=$? | |
13587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13588 | (exit $ac_status); }; }; then | |
13589 | ac_cv_string_strcasecmp=yes | |
13590 | else | |
13591 | echo "$as_me: failed program was:" >&5 | |
13592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13593 | ||
13594 | ac_cv_string_strcasecmp=no | |
13595 | ||
13596 | fi | |
ac1cb8d3 VS |
13597 | rm -f conftest.err conftest.$ac_objext \ |
13598 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13599 | |
13600 | fi | |
13601 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
13602 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
13603 | ||
13604 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
13605 | cat >>confdefs.h <<\_ACEOF | |
13606 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
13607 | _ACEOF | |
13608 | ||
13609 | else | |
13610 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
13611 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
13612 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
13613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13614 | else | |
13615 | ||
13616 | cat >conftest.$ac_ext <<_ACEOF | |
13617 | /* confdefs.h. */ | |
13618 | _ACEOF | |
13619 | cat confdefs.h >>conftest.$ac_ext | |
13620 | cat >>conftest.$ac_ext <<_ACEOF | |
13621 | /* end confdefs.h. */ | |
13622 | ||
13623 | #include <strings.h> | |
13624 | ||
13625 | int | |
13626 | main () | |
13627 | { | |
13628 | ||
13629 | strcasecmp("foo", "bar"); | |
13630 | ||
13631 | ; | |
13632 | return 0; | |
13633 | } | |
13634 | _ACEOF | |
13635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13637 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13638 | ac_status=$? |
ac1cb8d3 VS |
13639 | grep -v '^ *+' conftest.er1 >conftest.err |
13640 | rm -f conftest.er1 | |
13641 | cat conftest.err >&5 | |
a848cd7e SC |
13642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13643 | (exit $ac_status); } && | |
9dd0f6c2 | 13644 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13646 | (eval $ac_try) 2>&5 | |
13647 | ac_status=$? | |
13648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13649 | (exit $ac_status); }; } && | |
13650 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13652 | (eval $ac_try) 2>&5 | |
13653 | ac_status=$? | |
13654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13655 | (exit $ac_status); }; }; then | |
13656 | ac_cv_strings_strcasecmp=yes | |
13657 | else | |
13658 | echo "$as_me: failed program was:" >&5 | |
13659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13660 | ||
13661 | ac_cv_strings_strcasecmp=no | |
13662 | ||
13663 | fi | |
ac1cb8d3 VS |
13664 | rm -f conftest.err conftest.$ac_objext \ |
13665 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13666 | |
13667 | fi | |
13668 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
13669 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
13670 | ||
0c3c69fc | 13671 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
13672 | cat >>confdefs.h <<\_ACEOF |
13673 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
13674 | _ACEOF | |
13675 | ||
13676 | else | |
13677 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
13678 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
13679 | { (exit 1); exit 1; }; } | |
13680 | fi | |
13681 | fi | |
13682 | ||
13683 | ac_ext=c | |
13684 | ac_cpp='$CPP $CPPFLAGS' | |
13685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13688 | ||
13689 | ;; | |
13690 | esac | |
13691 | ||
13692 | ||
13693 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
13694 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
13695 | if test "${ac_cv_header_stdc+set}" = set; then | |
13696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13697 | else | |
13698 | cat >conftest.$ac_ext <<_ACEOF | |
13699 | /* confdefs.h. */ | |
13700 | _ACEOF | |
13701 | cat confdefs.h >>conftest.$ac_ext | |
13702 | cat >>conftest.$ac_ext <<_ACEOF | |
13703 | /* end confdefs.h. */ | |
13704 | #include <stdlib.h> | |
13705 | #include <stdarg.h> | |
13706 | #include <string.h> | |
13707 | #include <float.h> | |
13708 | ||
13709 | int | |
13710 | main () | |
13711 | { | |
13712 | ||
13713 | ; | |
13714 | return 0; | |
13715 | } | |
13716 | _ACEOF | |
13717 | rm -f conftest.$ac_objext | |
13718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13719 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13720 | ac_status=$? |
ac1cb8d3 VS |
13721 | grep -v '^ *+' conftest.er1 >conftest.err |
13722 | rm -f conftest.er1 | |
13723 | cat conftest.err >&5 | |
a848cd7e SC |
13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13725 | (exit $ac_status); } && | |
9dd0f6c2 | 13726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13728 | (eval $ac_try) 2>&5 | |
13729 | ac_status=$? | |
13730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13731 | (exit $ac_status); }; } && | |
13732 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13734 | (eval $ac_try) 2>&5 | |
13735 | ac_status=$? | |
13736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13737 | (exit $ac_status); }; }; then | |
13738 | ac_cv_header_stdc=yes | |
13739 | else | |
13740 | echo "$as_me: failed program was:" >&5 | |
13741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13742 | ||
13743 | ac_cv_header_stdc=no | |
13744 | fi | |
ac1cb8d3 | 13745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13746 | |
13747 | if test $ac_cv_header_stdc = yes; then | |
13748 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13749 | cat >conftest.$ac_ext <<_ACEOF | |
13750 | /* confdefs.h. */ | |
13751 | _ACEOF | |
13752 | cat confdefs.h >>conftest.$ac_ext | |
13753 | cat >>conftest.$ac_ext <<_ACEOF | |
13754 | /* end confdefs.h. */ | |
13755 | #include <string.h> | |
13756 | ||
13757 | _ACEOF | |
13758 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13759 | $EGREP "memchr" >/dev/null 2>&1; then | |
13760 | : | |
13761 | else | |
13762 | ac_cv_header_stdc=no | |
13763 | fi | |
13764 | rm -f conftest* | |
13765 | ||
13766 | fi | |
13767 | ||
13768 | if test $ac_cv_header_stdc = yes; then | |
13769 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13770 | cat >conftest.$ac_ext <<_ACEOF | |
13771 | /* confdefs.h. */ | |
13772 | _ACEOF | |
13773 | cat confdefs.h >>conftest.$ac_ext | |
13774 | cat >>conftest.$ac_ext <<_ACEOF | |
13775 | /* end confdefs.h. */ | |
13776 | #include <stdlib.h> | |
13777 | ||
13778 | _ACEOF | |
13779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13780 | $EGREP "free" >/dev/null 2>&1; then | |
13781 | : | |
13782 | else | |
13783 | ac_cv_header_stdc=no | |
13784 | fi | |
13785 | rm -f conftest* | |
13786 | ||
13787 | fi | |
13788 | ||
13789 | if test $ac_cv_header_stdc = yes; then | |
13790 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13791 | if test "$cross_compiling" = yes; then | |
13792 | : | |
13793 | else | |
13794 | cat >conftest.$ac_ext <<_ACEOF | |
13795 | /* confdefs.h. */ | |
13796 | _ACEOF | |
13797 | cat confdefs.h >>conftest.$ac_ext | |
13798 | cat >>conftest.$ac_ext <<_ACEOF | |
13799 | /* end confdefs.h. */ | |
13800 | #include <ctype.h> | |
13801 | #if ((' ' & 0x0FF) == 0x020) | |
13802 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13803 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13804 | #else | |
13805 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
13806 | (('a' <= (c) && (c) <= 'i') \ |
13807 | || ('j' <= (c) && (c) <= 'r') \ | |
13808 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
13809 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
13810 | #endif | |
13811 | ||
13812 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
13813 | int | |
13814 | main () | |
13815 | { | |
13816 | int i; | |
13817 | for (i = 0; i < 256; i++) | |
13818 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 13819 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
13820 | exit(2); |
13821 | exit (0); | |
13822 | } | |
13823 | _ACEOF | |
13824 | rm -f conftest$ac_exeext | |
13825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13826 | (eval $ac_link) 2>&5 | |
13827 | ac_status=$? | |
13828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13829 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13831 | (eval $ac_try) 2>&5 | |
13832 | ac_status=$? | |
13833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13834 | (exit $ac_status); }; }; then | |
13835 | : | |
13836 | else | |
13837 | echo "$as_me: program exited with status $ac_status" >&5 | |
13838 | echo "$as_me: failed program was:" >&5 | |
13839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13840 | ||
13841 | ( exit $ac_status ) | |
13842 | ac_cv_header_stdc=no | |
13843 | fi | |
ac1cb8d3 | 13844 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13845 | fi |
13846 | fi | |
13847 | fi | |
13848 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
13849 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
13850 | if test $ac_cv_header_stdc = yes; then | |
13851 | ||
13852 | cat >>confdefs.h <<\_ACEOF | |
13853 | #define STDC_HEADERS 1 | |
13854 | _ACEOF | |
13855 | ||
13856 | fi | |
13857 | ||
13858 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
13859 | ||
13860 | ||
13861 | ||
13862 | ||
13863 | ||
13864 | ||
13865 | ||
13866 | ||
13867 | ||
13868 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 13869 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
13870 | do |
13871 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13872 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13876 | else | |
13877 | cat >conftest.$ac_ext <<_ACEOF | |
13878 | /* confdefs.h. */ | |
13879 | _ACEOF | |
13880 | cat confdefs.h >>conftest.$ac_ext | |
13881 | cat >>conftest.$ac_ext <<_ACEOF | |
13882 | /* end confdefs.h. */ | |
13883 | $ac_includes_default | |
13884 | ||
13885 | #include <$ac_header> | |
13886 | _ACEOF | |
13887 | rm -f conftest.$ac_objext | |
13888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13889 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13890 | ac_status=$? |
ac1cb8d3 VS |
13891 | grep -v '^ *+' conftest.er1 >conftest.err |
13892 | rm -f conftest.er1 | |
13893 | cat conftest.err >&5 | |
a848cd7e SC |
13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13895 | (exit $ac_status); } && | |
9dd0f6c2 | 13896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13898 | (eval $ac_try) 2>&5 | |
13899 | ac_status=$? | |
13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13901 | (exit $ac_status); }; } && | |
13902 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13904 | (eval $ac_try) 2>&5 | |
13905 | ac_status=$? | |
13906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13907 | (exit $ac_status); }; }; then | |
13908 | eval "$as_ac_Header=yes" | |
13909 | else | |
13910 | echo "$as_me: failed program was:" >&5 | |
13911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13912 | ||
13913 | eval "$as_ac_Header=no" | |
13914 | fi | |
ac1cb8d3 | 13915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13916 | fi |
13917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13919 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13920 | cat >>confdefs.h <<_ACEOF | |
13921 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13922 | _ACEOF | |
13923 | ||
13924 | fi | |
13925 | ||
13926 | done | |
13927 | ||
13928 | ||
13929 | ||
13930 | for ac_header in stdlib.h | |
13931 | do | |
13932 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13933 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13934 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13935 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13936 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13938 | fi | |
13939 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13940 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13941 | else | |
13942 | # Is the header compilable? | |
13943 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13944 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13945 | cat >conftest.$ac_ext <<_ACEOF | |
13946 | /* confdefs.h. */ | |
13947 | _ACEOF | |
13948 | cat confdefs.h >>conftest.$ac_ext | |
13949 | cat >>conftest.$ac_ext <<_ACEOF | |
13950 | /* end confdefs.h. */ | |
13951 | $ac_includes_default | |
13952 | #include <$ac_header> | |
13953 | _ACEOF | |
13954 | rm -f conftest.$ac_objext | |
13955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13956 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13957 | ac_status=$? |
ac1cb8d3 VS |
13958 | grep -v '^ *+' conftest.er1 >conftest.err |
13959 | rm -f conftest.er1 | |
13960 | cat conftest.err >&5 | |
a848cd7e SC |
13961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13962 | (exit $ac_status); } && | |
9dd0f6c2 | 13963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13965 | (eval $ac_try) 2>&5 | |
13966 | ac_status=$? | |
13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13968 | (exit $ac_status); }; } && | |
13969 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13971 | (eval $ac_try) 2>&5 | |
13972 | ac_status=$? | |
13973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13974 | (exit $ac_status); }; }; then | |
13975 | ac_header_compiler=yes | |
13976 | else | |
13977 | echo "$as_me: failed program was:" >&5 | |
13978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13979 | ||
13980 | ac_header_compiler=no | |
13981 | fi | |
ac1cb8d3 | 13982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13983 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13984 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13985 | ||
13986 | # Is the header present? | |
13987 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13988 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13989 | cat >conftest.$ac_ext <<_ACEOF | |
13990 | /* confdefs.h. */ | |
13991 | _ACEOF | |
13992 | cat confdefs.h >>conftest.$ac_ext | |
13993 | cat >>conftest.$ac_ext <<_ACEOF | |
13994 | /* end confdefs.h. */ | |
13995 | #include <$ac_header> | |
13996 | _ACEOF | |
13997 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13998 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13999 | ac_status=$? | |
14000 | grep -v '^ *+' conftest.er1 >conftest.err | |
14001 | rm -f conftest.er1 | |
14002 | cat conftest.err >&5 | |
14003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14004 | (exit $ac_status); } >/dev/null; then | |
14005 | if test -s conftest.err; then | |
14006 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14007 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14008 | else |
14009 | ac_cpp_err= | |
14010 | fi | |
14011 | else | |
14012 | ac_cpp_err=yes | |
14013 | fi | |
14014 | if test -z "$ac_cpp_err"; then | |
14015 | ac_header_preproc=yes | |
14016 | else | |
14017 | echo "$as_me: failed program was:" >&5 | |
14018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14019 | ||
14020 | ac_header_preproc=no | |
14021 | fi | |
14022 | rm -f conftest.err conftest.$ac_ext | |
14023 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14024 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14025 | ||
14026 | # So? What about this header? | |
ac1cb8d3 VS |
14027 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14028 | yes:no: ) | |
a848cd7e SC |
14029 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14030 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14031 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14032 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14033 | ac_header_preproc=yes | |
a848cd7e | 14034 | ;; |
ac1cb8d3 | 14035 | no:yes:* ) |
a848cd7e SC |
14036 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14037 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14038 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14039 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14040 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14041 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14042 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14043 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14044 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14045 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14046 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14047 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14048 | ( |
14049 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14050 | ## ----------------------------------------- ## |
14051 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14052 | ## ----------------------------------------- ## | |
a848cd7e SC |
14053 | _ASBOX |
14054 | ) | | |
14055 | sed "s/^/$as_me: WARNING: /" >&2 | |
14056 | ;; | |
14057 | esac | |
14058 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14059 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14060 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14062 | else | |
ac1cb8d3 | 14063 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14064 | fi |
14065 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14066 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14067 | ||
14068 | fi | |
14069 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14070 | cat >>confdefs.h <<_ACEOF | |
14071 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14072 | _ACEOF | |
14073 | ||
14074 | fi | |
14075 | ||
14076 | done | |
14077 | ||
14078 | ||
14079 | for ac_header in malloc.h | |
14080 | do | |
14081 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14082 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14083 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14087 | fi | |
14088 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14089 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14090 | else | |
14091 | # Is the header compilable? | |
14092 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14093 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14094 | cat >conftest.$ac_ext <<_ACEOF | |
14095 | /* confdefs.h. */ | |
14096 | _ACEOF | |
14097 | cat confdefs.h >>conftest.$ac_ext | |
14098 | cat >>conftest.$ac_ext <<_ACEOF | |
14099 | /* end confdefs.h. */ | |
14100 | $ac_includes_default | |
14101 | #include <$ac_header> | |
14102 | _ACEOF | |
14103 | rm -f conftest.$ac_objext | |
14104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14105 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14106 | ac_status=$? |
ac1cb8d3 VS |
14107 | grep -v '^ *+' conftest.er1 >conftest.err |
14108 | rm -f conftest.er1 | |
14109 | cat conftest.err >&5 | |
a848cd7e SC |
14110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14111 | (exit $ac_status); } && | |
9dd0f6c2 | 14112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14114 | (eval $ac_try) 2>&5 | |
14115 | ac_status=$? | |
14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14117 | (exit $ac_status); }; } && | |
14118 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14120 | (eval $ac_try) 2>&5 | |
14121 | ac_status=$? | |
14122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14123 | (exit $ac_status); }; }; then | |
14124 | ac_header_compiler=yes | |
14125 | else | |
14126 | echo "$as_me: failed program was:" >&5 | |
14127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14128 | ||
14129 | ac_header_compiler=no | |
14130 | fi | |
ac1cb8d3 | 14131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14132 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14133 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14134 | ||
14135 | # Is the header present? | |
14136 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14137 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14138 | cat >conftest.$ac_ext <<_ACEOF | |
14139 | /* confdefs.h. */ | |
14140 | _ACEOF | |
14141 | cat confdefs.h >>conftest.$ac_ext | |
14142 | cat >>conftest.$ac_ext <<_ACEOF | |
14143 | /* end confdefs.h. */ | |
14144 | #include <$ac_header> | |
14145 | _ACEOF | |
14146 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14147 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14148 | ac_status=$? | |
14149 | grep -v '^ *+' conftest.er1 >conftest.err | |
14150 | rm -f conftest.er1 | |
14151 | cat conftest.err >&5 | |
14152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14153 | (exit $ac_status); } >/dev/null; then | |
14154 | if test -s conftest.err; then | |
14155 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14156 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14157 | else |
14158 | ac_cpp_err= | |
14159 | fi | |
14160 | else | |
14161 | ac_cpp_err=yes | |
14162 | fi | |
14163 | if test -z "$ac_cpp_err"; then | |
14164 | ac_header_preproc=yes | |
14165 | else | |
14166 | echo "$as_me: failed program was:" >&5 | |
14167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14168 | ||
14169 | ac_header_preproc=no | |
14170 | fi | |
14171 | rm -f conftest.err conftest.$ac_ext | |
14172 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14173 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14174 | ||
14175 | # So? What about this header? | |
ac1cb8d3 VS |
14176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14177 | yes:no: ) | |
a848cd7e SC |
14178 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14179 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14181 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14182 | ac_header_preproc=yes | |
a848cd7e | 14183 | ;; |
ac1cb8d3 | 14184 | no:yes:* ) |
a848cd7e SC |
14185 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14186 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14187 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14188 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14189 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14190 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14191 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14192 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14194 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14195 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14196 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14197 | ( |
14198 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14199 | ## ----------------------------------------- ## |
14200 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14201 | ## ----------------------------------------- ## | |
a848cd7e SC |
14202 | _ASBOX |
14203 | ) | | |
14204 | sed "s/^/$as_me: WARNING: /" >&2 | |
14205 | ;; | |
14206 | esac | |
14207 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14211 | else | |
ac1cb8d3 | 14212 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14213 | fi |
14214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14216 | ||
14217 | fi | |
14218 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14219 | cat >>confdefs.h <<_ACEOF | |
14220 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14221 | _ACEOF | |
14222 | ||
14223 | fi | |
14224 | ||
14225 | done | |
14226 | ||
14227 | ||
14228 | for ac_header in unistd.h | |
14229 | do | |
14230 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14231 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14232 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14233 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14234 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14236 | fi | |
14237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14238 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14239 | else | |
14240 | # Is the header compilable? | |
14241 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14242 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14243 | cat >conftest.$ac_ext <<_ACEOF | |
14244 | /* confdefs.h. */ | |
14245 | _ACEOF | |
14246 | cat confdefs.h >>conftest.$ac_ext | |
14247 | cat >>conftest.$ac_ext <<_ACEOF | |
14248 | /* end confdefs.h. */ | |
14249 | $ac_includes_default | |
14250 | #include <$ac_header> | |
14251 | _ACEOF | |
14252 | rm -f conftest.$ac_objext | |
14253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14254 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14255 | ac_status=$? |
ac1cb8d3 VS |
14256 | grep -v '^ *+' conftest.er1 >conftest.err |
14257 | rm -f conftest.er1 | |
14258 | cat conftest.err >&5 | |
a848cd7e SC |
14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14260 | (exit $ac_status); } && | |
9dd0f6c2 | 14261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14263 | (eval $ac_try) 2>&5 | |
14264 | ac_status=$? | |
14265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14266 | (exit $ac_status); }; } && | |
14267 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14269 | (eval $ac_try) 2>&5 | |
14270 | ac_status=$? | |
14271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14272 | (exit $ac_status); }; }; then | |
14273 | ac_header_compiler=yes | |
14274 | else | |
14275 | echo "$as_me: failed program was:" >&5 | |
14276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14277 | ||
14278 | ac_header_compiler=no | |
14279 | fi | |
ac1cb8d3 | 14280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14281 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14282 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14283 | ||
14284 | # Is the header present? | |
14285 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14286 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14287 | cat >conftest.$ac_ext <<_ACEOF | |
14288 | /* confdefs.h. */ | |
14289 | _ACEOF | |
14290 | cat confdefs.h >>conftest.$ac_ext | |
14291 | cat >>conftest.$ac_ext <<_ACEOF | |
14292 | /* end confdefs.h. */ | |
14293 | #include <$ac_header> | |
14294 | _ACEOF | |
14295 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14296 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14297 | ac_status=$? | |
14298 | grep -v '^ *+' conftest.er1 >conftest.err | |
14299 | rm -f conftest.er1 | |
14300 | cat conftest.err >&5 | |
14301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14302 | (exit $ac_status); } >/dev/null; then | |
14303 | if test -s conftest.err; then | |
14304 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14305 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14306 | else |
14307 | ac_cpp_err= | |
14308 | fi | |
14309 | else | |
14310 | ac_cpp_err=yes | |
14311 | fi | |
14312 | if test -z "$ac_cpp_err"; then | |
14313 | ac_header_preproc=yes | |
14314 | else | |
14315 | echo "$as_me: failed program was:" >&5 | |
14316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14317 | ||
14318 | ac_header_preproc=no | |
14319 | fi | |
14320 | rm -f conftest.err conftest.$ac_ext | |
14321 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14322 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14323 | ||
14324 | # So? What about this header? | |
ac1cb8d3 VS |
14325 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14326 | yes:no: ) | |
a848cd7e SC |
14327 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14328 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14329 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14330 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14331 | ac_header_preproc=yes | |
a848cd7e | 14332 | ;; |
ac1cb8d3 | 14333 | no:yes:* ) |
a848cd7e SC |
14334 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14335 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14336 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14337 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14338 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14339 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14340 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14341 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14343 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14344 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14345 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14346 | ( |
14347 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14348 | ## ----------------------------------------- ## |
14349 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14350 | ## ----------------------------------------- ## | |
a848cd7e SC |
14351 | _ASBOX |
14352 | ) | | |
14353 | sed "s/^/$as_me: WARNING: /" >&2 | |
14354 | ;; | |
14355 | esac | |
14356 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14357 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14358 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14360 | else | |
ac1cb8d3 | 14361 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14362 | fi |
14363 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14364 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14365 | ||
14366 | fi | |
14367 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14368 | cat >>confdefs.h <<_ACEOF | |
14369 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14370 | _ACEOF | |
14371 | ||
14372 | fi | |
14373 | ||
14374 | done | |
14375 | ||
14376 | ||
14377 | for ac_header in wchar.h | |
14378 | do | |
14379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14381 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14385 | fi | |
14386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14388 | else | |
14389 | # Is the header compilable? | |
14390 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14391 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14392 | cat >conftest.$ac_ext <<_ACEOF | |
14393 | /* confdefs.h. */ | |
14394 | _ACEOF | |
14395 | cat confdefs.h >>conftest.$ac_ext | |
14396 | cat >>conftest.$ac_ext <<_ACEOF | |
14397 | /* end confdefs.h. */ | |
14398 | $ac_includes_default | |
14399 | #include <$ac_header> | |
14400 | _ACEOF | |
14401 | rm -f conftest.$ac_objext | |
14402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14403 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14404 | ac_status=$? |
ac1cb8d3 VS |
14405 | grep -v '^ *+' conftest.er1 >conftest.err |
14406 | rm -f conftest.er1 | |
14407 | cat conftest.err >&5 | |
a848cd7e SC |
14408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14409 | (exit $ac_status); } && | |
9dd0f6c2 | 14410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14412 | (eval $ac_try) 2>&5 | |
14413 | ac_status=$? | |
14414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14415 | (exit $ac_status); }; } && | |
14416 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14418 | (eval $ac_try) 2>&5 | |
14419 | ac_status=$? | |
14420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14421 | (exit $ac_status); }; }; then | |
14422 | ac_header_compiler=yes | |
14423 | else | |
14424 | echo "$as_me: failed program was:" >&5 | |
14425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14426 | ||
14427 | ac_header_compiler=no | |
14428 | fi | |
ac1cb8d3 | 14429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14431 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14432 | ||
14433 | # Is the header present? | |
14434 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14435 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14436 | cat >conftest.$ac_ext <<_ACEOF | |
14437 | /* confdefs.h. */ | |
14438 | _ACEOF | |
14439 | cat confdefs.h >>conftest.$ac_ext | |
14440 | cat >>conftest.$ac_ext <<_ACEOF | |
14441 | /* end confdefs.h. */ | |
14442 | #include <$ac_header> | |
14443 | _ACEOF | |
14444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14446 | ac_status=$? | |
14447 | grep -v '^ *+' conftest.er1 >conftest.err | |
14448 | rm -f conftest.er1 | |
14449 | cat conftest.err >&5 | |
14450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14451 | (exit $ac_status); } >/dev/null; then | |
14452 | if test -s conftest.err; then | |
14453 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14454 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14455 | else |
14456 | ac_cpp_err= | |
14457 | fi | |
14458 | else | |
14459 | ac_cpp_err=yes | |
14460 | fi | |
14461 | if test -z "$ac_cpp_err"; then | |
14462 | ac_header_preproc=yes | |
14463 | else | |
14464 | echo "$as_me: failed program was:" >&5 | |
14465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14466 | ||
14467 | ac_header_preproc=no | |
14468 | fi | |
14469 | rm -f conftest.err conftest.$ac_ext | |
14470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14471 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14472 | ||
14473 | # So? What about this header? | |
ac1cb8d3 VS |
14474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14475 | yes:no: ) | |
a848cd7e SC |
14476 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14477 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14479 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14480 | ac_header_preproc=yes | |
a848cd7e | 14481 | ;; |
ac1cb8d3 | 14482 | no:yes:* ) |
a848cd7e SC |
14483 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14484 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14485 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14486 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14487 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14488 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14489 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14490 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14491 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14492 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14493 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14494 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14495 | ( |
14496 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14497 | ## ----------------------------------------- ## |
14498 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14499 | ## ----------------------------------------- ## | |
a848cd7e SC |
14500 | _ASBOX |
14501 | ) | | |
14502 | sed "s/^/$as_me: WARNING: /" >&2 | |
14503 | ;; | |
14504 | esac | |
14505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14509 | else | |
ac1cb8d3 | 14510 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14511 | fi |
14512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14513 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14514 | ||
14515 | fi | |
14516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14517 | cat >>confdefs.h <<_ACEOF | |
14518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14519 | _ACEOF | |
14520 | ||
14521 | fi | |
14522 | ||
14523 | done | |
14524 | ||
14525 | ||
14526 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
14527 | ||
14528 | for ac_header in wcstr.h | |
14529 | do | |
14530 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14532 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14533 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14534 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14536 | fi | |
14537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14538 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14539 | else | |
14540 | # Is the header compilable? | |
14541 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14542 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14543 | cat >conftest.$ac_ext <<_ACEOF | |
14544 | /* confdefs.h. */ | |
14545 | _ACEOF | |
14546 | cat confdefs.h >>conftest.$ac_ext | |
14547 | cat >>conftest.$ac_ext <<_ACEOF | |
14548 | /* end confdefs.h. */ | |
14549 | $ac_includes_default | |
14550 | #include <$ac_header> | |
14551 | _ACEOF | |
14552 | rm -f conftest.$ac_objext | |
14553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14554 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14555 | ac_status=$? |
ac1cb8d3 VS |
14556 | grep -v '^ *+' conftest.er1 >conftest.err |
14557 | rm -f conftest.er1 | |
14558 | cat conftest.err >&5 | |
a848cd7e SC |
14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14560 | (exit $ac_status); } && | |
9dd0f6c2 | 14561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14563 | (eval $ac_try) 2>&5 | |
14564 | ac_status=$? | |
14565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14566 | (exit $ac_status); }; } && | |
14567 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14569 | (eval $ac_try) 2>&5 | |
14570 | ac_status=$? | |
14571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14572 | (exit $ac_status); }; }; then | |
14573 | ac_header_compiler=yes | |
14574 | else | |
14575 | echo "$as_me: failed program was:" >&5 | |
14576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14577 | ||
14578 | ac_header_compiler=no | |
14579 | fi | |
ac1cb8d3 | 14580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14581 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14582 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14583 | ||
14584 | # Is the header present? | |
14585 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14586 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14587 | cat >conftest.$ac_ext <<_ACEOF | |
14588 | /* confdefs.h. */ | |
14589 | _ACEOF | |
14590 | cat confdefs.h >>conftest.$ac_ext | |
14591 | cat >>conftest.$ac_ext <<_ACEOF | |
14592 | /* end confdefs.h. */ | |
14593 | #include <$ac_header> | |
14594 | _ACEOF | |
14595 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14596 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14597 | ac_status=$? | |
14598 | grep -v '^ *+' conftest.er1 >conftest.err | |
14599 | rm -f conftest.er1 | |
14600 | cat conftest.err >&5 | |
14601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14602 | (exit $ac_status); } >/dev/null; then | |
14603 | if test -s conftest.err; then | |
14604 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14605 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14606 | else |
14607 | ac_cpp_err= | |
14608 | fi | |
14609 | else | |
14610 | ac_cpp_err=yes | |
14611 | fi | |
14612 | if test -z "$ac_cpp_err"; then | |
14613 | ac_header_preproc=yes | |
14614 | else | |
14615 | echo "$as_me: failed program was:" >&5 | |
14616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14617 | ||
14618 | ac_header_preproc=no | |
14619 | fi | |
14620 | rm -f conftest.err conftest.$ac_ext | |
14621 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14622 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14623 | ||
14624 | # So? What about this header? | |
ac1cb8d3 VS |
14625 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14626 | yes:no: ) | |
a848cd7e SC |
14627 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14628 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14629 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14630 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14631 | ac_header_preproc=yes | |
a848cd7e | 14632 | ;; |
ac1cb8d3 | 14633 | no:yes:* ) |
a848cd7e SC |
14634 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14635 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14636 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14637 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14638 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14639 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14640 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14641 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14642 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14643 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14644 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14645 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14646 | ( |
14647 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14648 | ## ----------------------------------------- ## |
14649 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14650 | ## ----------------------------------------- ## | |
a848cd7e SC |
14651 | _ASBOX |
14652 | ) | | |
14653 | sed "s/^/$as_me: WARNING: /" >&2 | |
14654 | ;; | |
14655 | esac | |
14656 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14657 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14658 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14660 | else | |
ac1cb8d3 | 14661 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14662 | fi |
14663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14664 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14665 | ||
14666 | fi | |
14667 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14668 | cat >>confdefs.h <<_ACEOF | |
14669 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14670 | _ACEOF | |
14671 | ||
14672 | fi | |
14673 | ||
14674 | done | |
14675 | ||
14676 | fi | |
14677 | ||
14678 | ||
14679 | for ac_header in fnmatch.h | |
14680 | do | |
14681 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14682 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14683 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14687 | fi | |
14688 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14689 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14690 | else | |
14691 | # Is the header compilable? | |
14692 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14693 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14694 | cat >conftest.$ac_ext <<_ACEOF | |
14695 | /* confdefs.h. */ | |
14696 | _ACEOF | |
14697 | cat confdefs.h >>conftest.$ac_ext | |
14698 | cat >>conftest.$ac_ext <<_ACEOF | |
14699 | /* end confdefs.h. */ | |
14700 | $ac_includes_default | |
14701 | #include <$ac_header> | |
14702 | _ACEOF | |
14703 | rm -f conftest.$ac_objext | |
14704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14705 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14706 | ac_status=$? |
ac1cb8d3 VS |
14707 | grep -v '^ *+' conftest.er1 >conftest.err |
14708 | rm -f conftest.er1 | |
14709 | cat conftest.err >&5 | |
a848cd7e SC |
14710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14711 | (exit $ac_status); } && | |
9dd0f6c2 | 14712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14714 | (eval $ac_try) 2>&5 | |
14715 | ac_status=$? | |
14716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14717 | (exit $ac_status); }; } && | |
14718 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14720 | (eval $ac_try) 2>&5 | |
14721 | ac_status=$? | |
14722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14723 | (exit $ac_status); }; }; then | |
14724 | ac_header_compiler=yes | |
14725 | else | |
14726 | echo "$as_me: failed program was:" >&5 | |
14727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14728 | ||
14729 | ac_header_compiler=no | |
14730 | fi | |
ac1cb8d3 | 14731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14732 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14733 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14734 | ||
14735 | # Is the header present? | |
14736 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14737 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14738 | cat >conftest.$ac_ext <<_ACEOF | |
14739 | /* confdefs.h. */ | |
14740 | _ACEOF | |
14741 | cat confdefs.h >>conftest.$ac_ext | |
14742 | cat >>conftest.$ac_ext <<_ACEOF | |
14743 | /* end confdefs.h. */ | |
14744 | #include <$ac_header> | |
14745 | _ACEOF | |
14746 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14747 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14748 | ac_status=$? | |
14749 | grep -v '^ *+' conftest.er1 >conftest.err | |
14750 | rm -f conftest.er1 | |
14751 | cat conftest.err >&5 | |
14752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14753 | (exit $ac_status); } >/dev/null; then | |
14754 | if test -s conftest.err; then | |
14755 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14756 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14757 | else |
14758 | ac_cpp_err= | |
14759 | fi | |
14760 | else | |
14761 | ac_cpp_err=yes | |
14762 | fi | |
14763 | if test -z "$ac_cpp_err"; then | |
14764 | ac_header_preproc=yes | |
14765 | else | |
14766 | echo "$as_me: failed program was:" >&5 | |
14767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14768 | ||
14769 | ac_header_preproc=no | |
14770 | fi | |
14771 | rm -f conftest.err conftest.$ac_ext | |
14772 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14773 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14774 | ||
14775 | # So? What about this header? | |
ac1cb8d3 VS |
14776 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14777 | yes:no: ) | |
a848cd7e SC |
14778 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14779 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14780 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14781 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14782 | ac_header_preproc=yes | |
a848cd7e | 14783 | ;; |
ac1cb8d3 | 14784 | no:yes:* ) |
a848cd7e SC |
14785 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14786 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14787 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14788 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14789 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14790 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14791 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14792 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14793 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14794 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14795 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14796 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14797 | ( |
14798 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14799 | ## ----------------------------------------- ## |
14800 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14801 | ## ----------------------------------------- ## | |
a848cd7e SC |
14802 | _ASBOX |
14803 | ) | | |
14804 | sed "s/^/$as_me: WARNING: /" >&2 | |
14805 | ;; | |
14806 | esac | |
14807 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14808 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14811 | else | |
ac1cb8d3 | 14812 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14813 | fi |
14814 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14815 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14816 | ||
14817 | fi | |
14818 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14819 | cat >>confdefs.h <<_ACEOF | |
14820 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14821 | _ACEOF | |
14822 | ||
14823 | fi | |
14824 | ||
14825 | done | |
14826 | ||
14827 | ||
14828 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
14829 | ||
14830 | for ac_func in fnmatch | |
14831 | do | |
14832 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14833 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14834 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14835 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14837 | else | |
14838 | cat >conftest.$ac_ext <<_ACEOF | |
14839 | /* confdefs.h. */ | |
14840 | _ACEOF | |
14841 | cat confdefs.h >>conftest.$ac_ext | |
14842 | cat >>conftest.$ac_ext <<_ACEOF | |
14843 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
14844 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14845 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14846 | #define $ac_func innocuous_$ac_func | |
14847 | ||
a848cd7e SC |
14848 | /* System header to define __stub macros and hopefully few prototypes, |
14849 | which can conflict with char $ac_func (); below. | |
14850 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14851 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 14852 | |
a848cd7e SC |
14853 | #ifdef __STDC__ |
14854 | # include <limits.h> | |
14855 | #else | |
14856 | # include <assert.h> | |
14857 | #endif | |
ac1cb8d3 VS |
14858 | |
14859 | #undef $ac_func | |
14860 | ||
a848cd7e SC |
14861 | /* Override any gcc2 internal prototype to avoid an error. */ |
14862 | #ifdef __cplusplus | |
14863 | extern "C" | |
14864 | { | |
14865 | #endif | |
14866 | /* We use char because int might match the return type of a gcc2 | |
14867 | builtin and then its argument prototype would still apply. */ | |
14868 | char $ac_func (); | |
14869 | /* The GNU C library defines this for functions which it implements | |
14870 | to always fail with ENOSYS. Some functions are actually named | |
14871 | something starting with __ and the normal name is an alias. */ | |
14872 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14873 | choke me | |
14874 | #else | |
14875 | char (*f) () = $ac_func; | |
14876 | #endif | |
14877 | #ifdef __cplusplus | |
14878 | } | |
14879 | #endif | |
14880 | ||
14881 | int | |
14882 | main () | |
14883 | { | |
14884 | return f != $ac_func; | |
14885 | ; | |
14886 | return 0; | |
14887 | } | |
14888 | _ACEOF | |
14889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14891 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14892 | ac_status=$? |
ac1cb8d3 VS |
14893 | grep -v '^ *+' conftest.er1 >conftest.err |
14894 | rm -f conftest.er1 | |
14895 | cat conftest.err >&5 | |
a848cd7e SC |
14896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14897 | (exit $ac_status); } && | |
9dd0f6c2 | 14898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14900 | (eval $ac_try) 2>&5 | |
14901 | ac_status=$? | |
14902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14903 | (exit $ac_status); }; } && | |
14904 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14906 | (eval $ac_try) 2>&5 | |
14907 | ac_status=$? | |
14908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14909 | (exit $ac_status); }; }; then | |
14910 | eval "$as_ac_var=yes" | |
14911 | else | |
14912 | echo "$as_me: failed program was:" >&5 | |
14913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14914 | ||
14915 | eval "$as_ac_var=no" | |
14916 | fi | |
ac1cb8d3 VS |
14917 | rm -f conftest.err conftest.$ac_objext \ |
14918 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14919 | fi |
14920 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14921 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14922 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14923 | cat >>confdefs.h <<_ACEOF | |
14924 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14925 | _ACEOF | |
14926 | ||
14927 | fi | |
14928 | done | |
14929 | ||
14930 | fi | |
14931 | ||
14932 | ||
14933 | for ac_header in langinfo.h | |
14934 | do | |
14935 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14936 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14937 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14938 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14941 | fi | |
14942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14943 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14944 | else | |
14945 | # Is the header compilable? | |
14946 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14947 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14948 | cat >conftest.$ac_ext <<_ACEOF | |
14949 | /* confdefs.h. */ | |
14950 | _ACEOF | |
14951 | cat confdefs.h >>conftest.$ac_ext | |
14952 | cat >>conftest.$ac_ext <<_ACEOF | |
14953 | /* end confdefs.h. */ | |
14954 | $ac_includes_default | |
14955 | #include <$ac_header> | |
14956 | _ACEOF | |
14957 | rm -f conftest.$ac_objext | |
14958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14959 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14960 | ac_status=$? |
ac1cb8d3 VS |
14961 | grep -v '^ *+' conftest.er1 >conftest.err |
14962 | rm -f conftest.er1 | |
14963 | cat conftest.err >&5 | |
a848cd7e SC |
14964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14965 | (exit $ac_status); } && | |
9dd0f6c2 | 14966 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14968 | (eval $ac_try) 2>&5 | |
14969 | ac_status=$? | |
14970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14971 | (exit $ac_status); }; } && | |
14972 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14974 | (eval $ac_try) 2>&5 | |
14975 | ac_status=$? | |
14976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14977 | (exit $ac_status); }; }; then | |
14978 | ac_header_compiler=yes | |
14979 | else | |
14980 | echo "$as_me: failed program was:" >&5 | |
14981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14982 | ||
14983 | ac_header_compiler=no | |
14984 | fi | |
ac1cb8d3 | 14985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14986 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14987 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14988 | ||
14989 | # Is the header present? | |
14990 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14991 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14992 | cat >conftest.$ac_ext <<_ACEOF | |
14993 | /* confdefs.h. */ | |
14994 | _ACEOF | |
14995 | cat confdefs.h >>conftest.$ac_ext | |
14996 | cat >>conftest.$ac_ext <<_ACEOF | |
14997 | /* end confdefs.h. */ | |
14998 | #include <$ac_header> | |
14999 | _ACEOF | |
15000 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15002 | ac_status=$? | |
15003 | grep -v '^ *+' conftest.er1 >conftest.err | |
15004 | rm -f conftest.er1 | |
15005 | cat conftest.err >&5 | |
15006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15007 | (exit $ac_status); } >/dev/null; then | |
15008 | if test -s conftest.err; then | |
15009 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15010 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15011 | else |
15012 | ac_cpp_err= | |
15013 | fi | |
15014 | else | |
15015 | ac_cpp_err=yes | |
15016 | fi | |
15017 | if test -z "$ac_cpp_err"; then | |
15018 | ac_header_preproc=yes | |
15019 | else | |
15020 | echo "$as_me: failed program was:" >&5 | |
15021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15022 | ||
15023 | ac_header_preproc=no | |
15024 | fi | |
15025 | rm -f conftest.err conftest.$ac_ext | |
15026 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15027 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15028 | ||
15029 | # So? What about this header? | |
ac1cb8d3 VS |
15030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15031 | yes:no: ) | |
a848cd7e SC |
15032 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15033 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15035 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15036 | ac_header_preproc=yes | |
a848cd7e | 15037 | ;; |
ac1cb8d3 | 15038 | no:yes:* ) |
a848cd7e SC |
15039 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15040 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15041 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15042 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15043 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15044 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15045 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15046 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15049 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15050 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15051 | ( |
15052 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15053 | ## ----------------------------------------- ## |
15054 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15055 | ## ----------------------------------------- ## | |
a848cd7e SC |
15056 | _ASBOX |
15057 | ) | | |
15058 | sed "s/^/$as_me: WARNING: /" >&2 | |
15059 | ;; | |
15060 | esac | |
15061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15065 | else | |
ac1cb8d3 | 15066 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15067 | fi |
15068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15070 | ||
15071 | fi | |
15072 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15073 | cat >>confdefs.h <<_ACEOF | |
15074 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15075 | _ACEOF | |
15076 | ||
15077 | fi | |
15078 | ||
15079 | done | |
15080 | ||
15081 | ||
15082 | case "${host}" in | |
15083 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
15084 | if test $ac_cv_header_langinfo_h = "yes" \ |
15085 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
15086 | -o "$wx_cv_gccversion" = "EMX3" \ | |
15087 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
15088 | LIBS="$LIBS -lintl" |
15089 | fi | |
15090 | ;; | |
15091 | esac | |
15092 | ||
15093 | if test "$wxUSE_GUI" = "yes"; then | |
15094 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
15095 | ||
15096 | for ac_header in X11/Xlib.h | |
15097 | do | |
15098 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15099 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15104 | fi | |
15105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15106 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15107 | else | |
15108 | # Is the header compilable? | |
15109 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15110 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15111 | cat >conftest.$ac_ext <<_ACEOF | |
15112 | /* confdefs.h. */ | |
15113 | _ACEOF | |
15114 | cat confdefs.h >>conftest.$ac_ext | |
15115 | cat >>conftest.$ac_ext <<_ACEOF | |
15116 | /* end confdefs.h. */ | |
15117 | $ac_includes_default | |
15118 | #include <$ac_header> | |
15119 | _ACEOF | |
15120 | rm -f conftest.$ac_objext | |
15121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15122 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15123 | ac_status=$? |
ac1cb8d3 VS |
15124 | grep -v '^ *+' conftest.er1 >conftest.err |
15125 | rm -f conftest.er1 | |
15126 | cat conftest.err >&5 | |
a848cd7e SC |
15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15128 | (exit $ac_status); } && | |
9dd0f6c2 | 15129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15131 | (eval $ac_try) 2>&5 | |
15132 | ac_status=$? | |
15133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15134 | (exit $ac_status); }; } && | |
15135 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15137 | (eval $ac_try) 2>&5 | |
15138 | ac_status=$? | |
15139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15140 | (exit $ac_status); }; }; then | |
15141 | ac_header_compiler=yes | |
15142 | else | |
15143 | echo "$as_me: failed program was:" >&5 | |
15144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15145 | ||
15146 | ac_header_compiler=no | |
15147 | fi | |
ac1cb8d3 | 15148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15149 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15150 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15151 | ||
15152 | # Is the header present? | |
15153 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15154 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15155 | cat >conftest.$ac_ext <<_ACEOF | |
15156 | /* confdefs.h. */ | |
15157 | _ACEOF | |
15158 | cat confdefs.h >>conftest.$ac_ext | |
15159 | cat >>conftest.$ac_ext <<_ACEOF | |
15160 | /* end confdefs.h. */ | |
15161 | #include <$ac_header> | |
15162 | _ACEOF | |
15163 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15164 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15165 | ac_status=$? | |
15166 | grep -v '^ *+' conftest.er1 >conftest.err | |
15167 | rm -f conftest.er1 | |
15168 | cat conftest.err >&5 | |
15169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15170 | (exit $ac_status); } >/dev/null; then | |
15171 | if test -s conftest.err; then | |
15172 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15173 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15174 | else |
15175 | ac_cpp_err= | |
15176 | fi | |
15177 | else | |
15178 | ac_cpp_err=yes | |
15179 | fi | |
15180 | if test -z "$ac_cpp_err"; then | |
15181 | ac_header_preproc=yes | |
15182 | else | |
15183 | echo "$as_me: failed program was:" >&5 | |
15184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15185 | ||
15186 | ac_header_preproc=no | |
15187 | fi | |
15188 | rm -f conftest.err conftest.$ac_ext | |
15189 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15190 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15191 | ||
15192 | # So? What about this header? | |
ac1cb8d3 VS |
15193 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15194 | yes:no: ) | |
a848cd7e SC |
15195 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15196 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15197 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15198 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15199 | ac_header_preproc=yes | |
a848cd7e | 15200 | ;; |
ac1cb8d3 | 15201 | no:yes:* ) |
a848cd7e SC |
15202 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15203 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15204 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15205 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15206 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15207 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15208 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15209 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15210 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15211 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15212 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15213 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15214 | ( |
15215 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15216 | ## ----------------------------------------- ## |
15217 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15218 | ## ----------------------------------------- ## | |
a848cd7e SC |
15219 | _ASBOX |
15220 | ) | | |
15221 | sed "s/^/$as_me: WARNING: /" >&2 | |
15222 | ;; | |
15223 | esac | |
15224 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15225 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15228 | else | |
ac1cb8d3 | 15229 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15230 | fi |
15231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15232 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15233 | ||
15234 | fi | |
15235 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15236 | cat >>confdefs.h <<_ACEOF | |
15237 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15238 | _ACEOF | |
15239 | ||
15240 | fi | |
15241 | ||
15242 | done | |
15243 | ||
15244 | ||
15245 | for ac_header in X11/XKBlib.h | |
15246 | do | |
15247 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15252 | else | |
15253 | cat >conftest.$ac_ext <<_ACEOF | |
15254 | /* confdefs.h. */ | |
15255 | _ACEOF | |
15256 | cat confdefs.h >>conftest.$ac_ext | |
15257 | cat >>conftest.$ac_ext <<_ACEOF | |
15258 | /* end confdefs.h. */ | |
15259 | ||
15260 | #if HAVE_X11_XLIB_H | |
15261 | #include <X11/Xlib.h> | |
15262 | #endif | |
15263 | ||
15264 | ||
15265 | #include <$ac_header> | |
15266 | _ACEOF | |
15267 | rm -f conftest.$ac_objext | |
15268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15269 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15270 | ac_status=$? |
ac1cb8d3 VS |
15271 | grep -v '^ *+' conftest.er1 >conftest.err |
15272 | rm -f conftest.er1 | |
15273 | cat conftest.err >&5 | |
a848cd7e SC |
15274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15275 | (exit $ac_status); } && | |
9dd0f6c2 | 15276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15278 | (eval $ac_try) 2>&5 | |
15279 | ac_status=$? | |
15280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15281 | (exit $ac_status); }; } && | |
15282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15284 | (eval $ac_try) 2>&5 | |
15285 | ac_status=$? | |
15286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15287 | (exit $ac_status); }; }; then | |
15288 | eval "$as_ac_Header=yes" | |
15289 | else | |
15290 | echo "$as_me: failed program was:" >&5 | |
15291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15292 | ||
15293 | eval "$as_ac_Header=no" | |
15294 | fi | |
ac1cb8d3 | 15295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15296 | fi |
15297 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15298 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15299 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15300 | cat >>confdefs.h <<_ACEOF | |
15301 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15302 | _ACEOF | |
15303 | ||
15304 | fi | |
15305 | ||
15306 | done | |
15307 | ||
15308 | fi | |
15309 | fi | |
15310 | ||
15311 | ||
15312 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15313 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15314 | if test "${ac_cv_c_const+set}" = set; then | |
15315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15316 | else | |
15317 | cat >conftest.$ac_ext <<_ACEOF | |
15318 | /* confdefs.h. */ | |
15319 | _ACEOF | |
15320 | cat confdefs.h >>conftest.$ac_ext | |
15321 | cat >>conftest.$ac_ext <<_ACEOF | |
15322 | /* end confdefs.h. */ | |
15323 | ||
15324 | int | |
15325 | main () | |
15326 | { | |
15327 | /* FIXME: Include the comments suggested by Paul. */ | |
15328 | #ifndef __cplusplus | |
15329 | /* Ultrix mips cc rejects this. */ | |
15330 | typedef int charset[2]; | |
15331 | const charset x; | |
15332 | /* SunOS 4.1.1 cc rejects this. */ | |
15333 | char const *const *ccp; | |
15334 | char **p; | |
15335 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15336 | struct point {int x, y;}; | |
15337 | static struct point const zero = {0,0}; | |
15338 | /* AIX XL C 1.02.0.0 rejects this. | |
15339 | It does not let you subtract one const X* pointer from another in | |
15340 | an arm of an if-expression whose if-part is not a constant | |
15341 | expression */ | |
15342 | const char *g = "string"; | |
15343 | ccp = &g + (g ? g-g : 0); | |
15344 | /* HPUX 7.0 cc rejects these. */ | |
15345 | ++ccp; | |
15346 | p = (char**) ccp; | |
15347 | ccp = (char const *const *) p; | |
15348 | { /* SCO 3.2v4 cc rejects this. */ | |
15349 | char *t; | |
15350 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15351 | ||
15352 | *t++ = 0; | |
15353 | } | |
15354 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15355 | int x[] = {25, 17}; | |
15356 | const int *foo = &x[0]; | |
15357 | ++foo; | |
15358 | } | |
15359 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15360 | typedef const int *iptr; | |
15361 | iptr p = 0; | |
15362 | ++p; | |
15363 | } | |
15364 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15365 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15366 | struct s { int j; const int *ap[3]; }; | |
15367 | struct s *b; b->j = 5; | |
15368 | } | |
15369 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15370 | const int foo = 10; | |
15371 | } | |
15372 | #endif | |
15373 | ||
15374 | ; | |
15375 | return 0; | |
15376 | } | |
15377 | _ACEOF | |
15378 | rm -f conftest.$ac_objext | |
15379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15380 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15381 | ac_status=$? |
ac1cb8d3 VS |
15382 | grep -v '^ *+' conftest.er1 >conftest.err |
15383 | rm -f conftest.er1 | |
15384 | cat conftest.err >&5 | |
a848cd7e SC |
15385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15386 | (exit $ac_status); } && | |
9dd0f6c2 | 15387 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15389 | (eval $ac_try) 2>&5 | |
15390 | ac_status=$? | |
15391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15392 | (exit $ac_status); }; } && | |
15393 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15395 | (eval $ac_try) 2>&5 | |
15396 | ac_status=$? | |
15397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15398 | (exit $ac_status); }; }; then | |
15399 | ac_cv_c_const=yes | |
15400 | else | |
15401 | echo "$as_me: failed program was:" >&5 | |
15402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15403 | ||
15404 | ac_cv_c_const=no | |
15405 | fi | |
ac1cb8d3 | 15406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15407 | fi |
15408 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15409 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15410 | if test $ac_cv_c_const = no; then | |
15411 | ||
15412 | cat >>confdefs.h <<\_ACEOF | |
15413 | #define const | |
15414 | _ACEOF | |
15415 | ||
15416 | fi | |
15417 | ||
15418 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15419 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15420 | if test "${ac_cv_c_inline+set}" = set; then | |
15421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15422 | else | |
15423 | ac_cv_c_inline=no | |
15424 | for ac_kw in inline __inline__ __inline; do | |
15425 | cat >conftest.$ac_ext <<_ACEOF | |
15426 | /* confdefs.h. */ | |
15427 | _ACEOF | |
15428 | cat confdefs.h >>conftest.$ac_ext | |
15429 | cat >>conftest.$ac_ext <<_ACEOF | |
15430 | /* end confdefs.h. */ | |
15431 | #ifndef __cplusplus | |
15432 | typedef int foo_t; | |
15433 | static $ac_kw foo_t static_foo () {return 0; } | |
15434 | $ac_kw foo_t foo () {return 0; } | |
15435 | #endif | |
15436 | ||
15437 | _ACEOF | |
15438 | rm -f conftest.$ac_objext | |
15439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15440 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15441 | ac_status=$? |
ac1cb8d3 VS |
15442 | grep -v '^ *+' conftest.er1 >conftest.err |
15443 | rm -f conftest.er1 | |
15444 | cat conftest.err >&5 | |
a848cd7e SC |
15445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15446 | (exit $ac_status); } && | |
9dd0f6c2 | 15447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15449 | (eval $ac_try) 2>&5 | |
15450 | ac_status=$? | |
15451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15452 | (exit $ac_status); }; } && | |
15453 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15455 | (eval $ac_try) 2>&5 | |
15456 | ac_status=$? | |
15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15458 | (exit $ac_status); }; }; then | |
15459 | ac_cv_c_inline=$ac_kw; break | |
15460 | else | |
15461 | echo "$as_me: failed program was:" >&5 | |
15462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15463 | ||
15464 | fi | |
ac1cb8d3 | 15465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15466 | done |
15467 | ||
15468 | fi | |
15469 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
15470 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
15471 | |
15472 | ||
a848cd7e SC |
15473 | case $ac_cv_c_inline in |
15474 | inline | yes) ;; | |
ac1cb8d3 VS |
15475 | *) |
15476 | case $ac_cv_c_inline in | |
15477 | no) ac_val=;; | |
15478 | *) ac_val=$ac_cv_c_inline;; | |
15479 | esac | |
15480 | cat >>confdefs.h <<_ACEOF | |
15481 | #ifndef __cplusplus | |
15482 | #define inline $ac_val | |
15483 | #endif | |
de59c161 | 15484 | _ACEOF |
ac1cb8d3 | 15485 | ;; |
a848cd7e SC |
15486 | esac |
15487 | ||
15488 | ||
15489 | echo "$as_me:$LINENO: checking for char" >&5 | |
15490 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15491 | if test "${ac_cv_type_char+set}" = set; then | |
15492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15493 | else | |
15494 | cat >conftest.$ac_ext <<_ACEOF | |
15495 | /* confdefs.h. */ | |
15496 | _ACEOF | |
15497 | cat confdefs.h >>conftest.$ac_ext | |
15498 | cat >>conftest.$ac_ext <<_ACEOF | |
15499 | /* end confdefs.h. */ | |
15500 | $ac_includes_default | |
15501 | int | |
15502 | main () | |
15503 | { | |
15504 | if ((char *) 0) | |
15505 | return 0; | |
15506 | if (sizeof (char)) | |
15507 | return 0; | |
15508 | ; | |
15509 | return 0; | |
15510 | } | |
15511 | _ACEOF | |
15512 | rm -f conftest.$ac_objext | |
15513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15514 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15515 | ac_status=$? |
ac1cb8d3 VS |
15516 | grep -v '^ *+' conftest.er1 >conftest.err |
15517 | rm -f conftest.er1 | |
15518 | cat conftest.err >&5 | |
a848cd7e SC |
15519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15520 | (exit $ac_status); } && | |
9dd0f6c2 | 15521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15523 | (eval $ac_try) 2>&5 | |
15524 | ac_status=$? | |
15525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15526 | (exit $ac_status); }; } && | |
15527 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15529 | (eval $ac_try) 2>&5 | |
15530 | ac_status=$? | |
15531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15532 | (exit $ac_status); }; }; then | |
15533 | ac_cv_type_char=yes | |
15534 | else | |
15535 | echo "$as_me: failed program was:" >&5 | |
15536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15537 | ||
15538 | ac_cv_type_char=no | |
15539 | fi | |
ac1cb8d3 | 15540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15541 | fi |
15542 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15543 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15544 | ||
15545 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15546 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15547 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15549 | else | |
15550 | if test "$ac_cv_type_char" = yes; then | |
15551 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15552 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15553 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15554 | # This bug is HP SR number 8606223364. | |
15555 | if test "$cross_compiling" = yes; then | |
15556 | # Depending upon the size, compute the lo and hi bounds. | |
15557 | cat >conftest.$ac_ext <<_ACEOF | |
15558 | /* confdefs.h. */ | |
15559 | _ACEOF | |
15560 | cat confdefs.h >>conftest.$ac_ext | |
15561 | cat >>conftest.$ac_ext <<_ACEOF | |
15562 | /* end confdefs.h. */ | |
15563 | $ac_includes_default | |
15564 | int | |
15565 | main () | |
15566 | { | |
15567 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15568 | test_array [0] = 0 | |
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); } && | |
9dd0f6c2 | 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_lo=0 ac_mid=0 | |
15596 | while :; do | |
15597 | cat >conftest.$ac_ext <<_ACEOF | |
15598 | /* confdefs.h. */ | |
15599 | _ACEOF | |
15600 | cat confdefs.h >>conftest.$ac_ext | |
15601 | cat >>conftest.$ac_ext <<_ACEOF | |
15602 | /* end confdefs.h. */ | |
15603 | $ac_includes_default | |
15604 | int | |
15605 | main () | |
15606 | { | |
15607 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15608 | test_array [0] = 0 | |
15609 | ||
15610 | ; | |
15611 | return 0; | |
15612 | } | |
15613 | _ACEOF | |
15614 | rm -f conftest.$ac_objext | |
15615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15616 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15617 | ac_status=$? |
ac1cb8d3 VS |
15618 | grep -v '^ *+' conftest.er1 >conftest.err |
15619 | rm -f conftest.er1 | |
15620 | cat conftest.err >&5 | |
a848cd7e SC |
15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15622 | (exit $ac_status); } && | |
9dd0f6c2 | 15623 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15625 | (eval $ac_try) 2>&5 | |
15626 | ac_status=$? | |
15627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15628 | (exit $ac_status); }; } && | |
15629 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15631 | (eval $ac_try) 2>&5 | |
15632 | ac_status=$? | |
15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15634 | (exit $ac_status); }; }; then | |
15635 | ac_hi=$ac_mid; break | |
15636 | else | |
15637 | echo "$as_me: failed program was:" >&5 | |
15638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15639 | ||
15640 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15641 | if test $ac_lo -le $ac_mid; then |
15642 | ac_lo= ac_hi= | |
15643 | break | |
15644 | fi | |
15645 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15646 | fi |
ac1cb8d3 | 15647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15648 | done |
15649 | else | |
15650 | echo "$as_me: failed program was:" >&5 | |
15651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15652 | ||
15653 | cat >conftest.$ac_ext <<_ACEOF | |
15654 | /* confdefs.h. */ | |
15655 | _ACEOF | |
15656 | cat confdefs.h >>conftest.$ac_ext | |
15657 | cat >>conftest.$ac_ext <<_ACEOF | |
15658 | /* end confdefs.h. */ | |
15659 | $ac_includes_default | |
15660 | int | |
15661 | main () | |
15662 | { | |
15663 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
15664 | test_array [0] = 0 | |
15665 | ||
15666 | ; | |
15667 | return 0; | |
15668 | } | |
15669 | _ACEOF | |
15670 | rm -f conftest.$ac_objext | |
15671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15672 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15673 | ac_status=$? |
ac1cb8d3 VS |
15674 | grep -v '^ *+' conftest.er1 >conftest.err |
15675 | rm -f conftest.er1 | |
15676 | cat conftest.err >&5 | |
a848cd7e SC |
15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15678 | (exit $ac_status); } && | |
9dd0f6c2 | 15679 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15681 | (eval $ac_try) 2>&5 | |
15682 | ac_status=$? | |
15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15684 | (exit $ac_status); }; } && | |
15685 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15687 | (eval $ac_try) 2>&5 | |
15688 | ac_status=$? | |
15689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15690 | (exit $ac_status); }; }; then | |
15691 | ac_hi=-1 ac_mid=-1 | |
15692 | while :; do | |
15693 | cat >conftest.$ac_ext <<_ACEOF | |
15694 | /* confdefs.h. */ | |
15695 | _ACEOF | |
15696 | cat confdefs.h >>conftest.$ac_ext | |
15697 | cat >>conftest.$ac_ext <<_ACEOF | |
15698 | /* end confdefs.h. */ | |
15699 | $ac_includes_default | |
15700 | int | |
15701 | main () | |
15702 | { | |
15703 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15704 | test_array [0] = 0 | |
15705 | ||
15706 | ; | |
15707 | return 0; | |
15708 | } | |
15709 | _ACEOF | |
15710 | rm -f conftest.$ac_objext | |
15711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15712 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15713 | ac_status=$? |
ac1cb8d3 VS |
15714 | grep -v '^ *+' conftest.er1 >conftest.err |
15715 | rm -f conftest.er1 | |
15716 | cat conftest.err >&5 | |
a848cd7e SC |
15717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15718 | (exit $ac_status); } && | |
9dd0f6c2 | 15719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15721 | (eval $ac_try) 2>&5 | |
15722 | ac_status=$? | |
15723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15724 | (exit $ac_status); }; } && | |
15725 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15727 | (eval $ac_try) 2>&5 | |
15728 | ac_status=$? | |
15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15730 | (exit $ac_status); }; }; then | |
15731 | ac_lo=$ac_mid; break | |
15732 | else | |
15733 | echo "$as_me: failed program was:" >&5 | |
15734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15735 | ||
15736 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15737 | if test $ac_mid -le $ac_hi; then |
15738 | ac_lo= ac_hi= | |
15739 | break | |
15740 | fi | |
15741 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15742 | fi |
ac1cb8d3 | 15743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15744 | done |
15745 | else | |
15746 | echo "$as_me: failed program was:" >&5 | |
15747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15748 | ||
15749 | ac_lo= ac_hi= | |
15750 | fi | |
ac1cb8d3 | 15751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15752 | fi |
ac1cb8d3 | 15753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15754 | # Binary search between lo and hi bounds. |
15755 | while test "x$ac_lo" != "x$ac_hi"; do | |
15756 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15757 | cat >conftest.$ac_ext <<_ACEOF | |
15758 | /* confdefs.h. */ | |
15759 | _ACEOF | |
15760 | cat confdefs.h >>conftest.$ac_ext | |
15761 | cat >>conftest.$ac_ext <<_ACEOF | |
15762 | /* end confdefs.h. */ | |
15763 | $ac_includes_default | |
15764 | int | |
15765 | main () | |
15766 | { | |
15767 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15768 | test_array [0] = 0 | |
15769 | ||
15770 | ; | |
15771 | return 0; | |
15772 | } | |
15773 | _ACEOF | |
15774 | rm -f conftest.$ac_objext | |
15775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15776 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15777 | ac_status=$? |
ac1cb8d3 VS |
15778 | grep -v '^ *+' conftest.er1 >conftest.err |
15779 | rm -f conftest.er1 | |
15780 | cat conftest.err >&5 | |
a848cd7e SC |
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15782 | (exit $ac_status); } && | |
9dd0f6c2 | 15783 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15785 | (eval $ac_try) 2>&5 | |
15786 | ac_status=$? | |
15787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15788 | (exit $ac_status); }; } && | |
15789 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15791 | (eval $ac_try) 2>&5 | |
15792 | ac_status=$? | |
15793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15794 | (exit $ac_status); }; }; then | |
15795 | ac_hi=$ac_mid | |
15796 | else | |
15797 | echo "$as_me: failed program was:" >&5 | |
15798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15799 | ||
15800 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15801 | fi | |
ac1cb8d3 | 15802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15803 | done |
15804 | case $ac_lo in | |
15805 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
15806 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15807 | See \`config.log' for more details." >&5 | |
15808 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15809 | See \`config.log' for more details." >&2;} | |
15810 | { (exit 1); exit 1; }; } ;; | |
15811 | esac | |
15812 | else | |
15813 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
15814 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15815 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15816 | { (exit 1); exit 1; }; } |
15817 | else | |
15818 | cat >conftest.$ac_ext <<_ACEOF | |
15819 | /* confdefs.h. */ | |
15820 | _ACEOF | |
15821 | cat confdefs.h >>conftest.$ac_ext | |
15822 | cat >>conftest.$ac_ext <<_ACEOF | |
15823 | /* end confdefs.h. */ | |
15824 | $ac_includes_default | |
15825 | long longval () { return (long) (sizeof (char)); } | |
15826 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
15827 | #include <stdio.h> | |
15828 | #include <stdlib.h> | |
15829 | int | |
15830 | main () | |
15831 | { | |
15832 | ||
15833 | FILE *f = fopen ("conftest.val", "w"); | |
15834 | if (! f) | |
15835 | exit (1); | |
15836 | if (((long) (sizeof (char))) < 0) | |
15837 | { | |
15838 | long i = longval (); | |
15839 | if (i != ((long) (sizeof (char)))) | |
15840 | exit (1); | |
15841 | fprintf (f, "%ld\n", i); | |
15842 | } | |
15843 | else | |
15844 | { | |
15845 | unsigned long i = ulongval (); | |
15846 | if (i != ((long) (sizeof (char)))) | |
15847 | exit (1); | |
15848 | fprintf (f, "%lu\n", i); | |
15849 | } | |
15850 | exit (ferror (f) || fclose (f) != 0); | |
15851 | ||
15852 | ; | |
15853 | return 0; | |
15854 | } | |
15855 | _ACEOF | |
15856 | rm -f conftest$ac_exeext | |
15857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15858 | (eval $ac_link) 2>&5 | |
15859 | ac_status=$? | |
15860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15861 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15863 | (eval $ac_try) 2>&5 | |
15864 | ac_status=$? | |
15865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15866 | (exit $ac_status); }; }; then | |
15867 | ac_cv_sizeof_char=`cat conftest.val` | |
15868 | else | |
15869 | echo "$as_me: program exited with status $ac_status" >&5 | |
15870 | echo "$as_me: failed program was:" >&5 | |
15871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15872 | ||
15873 | ( exit $ac_status ) | |
15874 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15875 | See \`config.log' for more details." >&5 | |
15876 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15877 | See \`config.log' for more details." >&2;} | |
15878 | { (exit 1); exit 1; }; } | |
15879 | fi | |
ac1cb8d3 | 15880 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15881 | fi |
15882 | fi | |
15883 | rm -f conftest.val | |
15884 | else | |
15885 | ac_cv_sizeof_char=0 | |
15886 | fi | |
15887 | fi | |
15888 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
15889 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
15890 | cat >>confdefs.h <<_ACEOF | |
15891 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15892 | _ACEOF | |
15893 | ||
15894 | ||
15895 | echo "$as_me:$LINENO: checking for short" >&5 | |
15896 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
15897 | if test "${ac_cv_type_short+set}" = set; then | |
15898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15899 | else | |
15900 | cat >conftest.$ac_ext <<_ACEOF | |
15901 | /* confdefs.h. */ | |
15902 | _ACEOF | |
15903 | cat confdefs.h >>conftest.$ac_ext | |
15904 | cat >>conftest.$ac_ext <<_ACEOF | |
15905 | /* end confdefs.h. */ | |
15906 | $ac_includes_default | |
15907 | int | |
15908 | main () | |
15909 | { | |
15910 | if ((short *) 0) | |
15911 | return 0; | |
15912 | if (sizeof (short)) | |
15913 | return 0; | |
15914 | ; | |
15915 | return 0; | |
15916 | } | |
15917 | _ACEOF | |
15918 | rm -f conftest.$ac_objext | |
15919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15920 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15921 | ac_status=$? |
ac1cb8d3 VS |
15922 | grep -v '^ *+' conftest.er1 >conftest.err |
15923 | rm -f conftest.er1 | |
15924 | cat conftest.err >&5 | |
a848cd7e SC |
15925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15926 | (exit $ac_status); } && | |
9dd0f6c2 | 15927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15929 | (eval $ac_try) 2>&5 | |
15930 | ac_status=$? | |
15931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15932 | (exit $ac_status); }; } && | |
15933 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15935 | (eval $ac_try) 2>&5 | |
15936 | ac_status=$? | |
15937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15938 | (exit $ac_status); }; }; then | |
15939 | ac_cv_type_short=yes | |
15940 | else | |
15941 | echo "$as_me: failed program was:" >&5 | |
15942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15943 | ||
15944 | ac_cv_type_short=no | |
15945 | fi | |
ac1cb8d3 | 15946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15947 | fi |
15948 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
15949 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
15950 | ||
15951 | echo "$as_me:$LINENO: checking size of short" >&5 | |
15952 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
15953 | if test "${ac_cv_sizeof_short+set}" = set; then | |
15954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15955 | else | |
15956 | if test "$ac_cv_type_short" = yes; then | |
15957 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15958 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15959 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15960 | # This bug is HP SR number 8606223364. | |
15961 | if test "$cross_compiling" = yes; then | |
15962 | # Depending upon the size, compute the lo and hi bounds. | |
15963 | cat >conftest.$ac_ext <<_ACEOF | |
15964 | /* confdefs.h. */ | |
15965 | _ACEOF | |
15966 | cat confdefs.h >>conftest.$ac_ext | |
15967 | cat >>conftest.$ac_ext <<_ACEOF | |
15968 | /* end confdefs.h. */ | |
15969 | $ac_includes_default | |
15970 | int | |
15971 | main () | |
15972 | { | |
15973 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
15974 | test_array [0] = 0 | |
15975 | ||
15976 | ; | |
15977 | return 0; | |
15978 | } | |
15979 | _ACEOF | |
15980 | rm -f conftest.$ac_objext | |
15981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15982 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15983 | ac_status=$? |
ac1cb8d3 VS |
15984 | grep -v '^ *+' conftest.er1 >conftest.err |
15985 | rm -f conftest.er1 | |
15986 | cat conftest.err >&5 | |
a848cd7e SC |
15987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15988 | (exit $ac_status); } && | |
9dd0f6c2 | 15989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15991 | (eval $ac_try) 2>&5 | |
15992 | ac_status=$? | |
15993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15994 | (exit $ac_status); }; } && | |
15995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15997 | (eval $ac_try) 2>&5 | |
15998 | ac_status=$? | |
15999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16000 | (exit $ac_status); }; }; then | |
16001 | ac_lo=0 ac_mid=0 | |
16002 | while :; do | |
16003 | cat >conftest.$ac_ext <<_ACEOF | |
16004 | /* confdefs.h. */ | |
16005 | _ACEOF | |
16006 | cat confdefs.h >>conftest.$ac_ext | |
16007 | cat >>conftest.$ac_ext <<_ACEOF | |
16008 | /* end confdefs.h. */ | |
16009 | $ac_includes_default | |
16010 | int | |
16011 | main () | |
16012 | { | |
16013 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16014 | test_array [0] = 0 | |
16015 | ||
16016 | ; | |
16017 | return 0; | |
16018 | } | |
16019 | _ACEOF | |
16020 | rm -f conftest.$ac_objext | |
16021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16022 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16023 | ac_status=$? |
ac1cb8d3 VS |
16024 | grep -v '^ *+' conftest.er1 >conftest.err |
16025 | rm -f conftest.er1 | |
16026 | cat conftest.err >&5 | |
a848cd7e SC |
16027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16028 | (exit $ac_status); } && | |
9dd0f6c2 | 16029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16031 | (eval $ac_try) 2>&5 | |
16032 | ac_status=$? | |
16033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16034 | (exit $ac_status); }; } && | |
16035 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16037 | (eval $ac_try) 2>&5 | |
16038 | ac_status=$? | |
16039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16040 | (exit $ac_status); }; }; then | |
16041 | ac_hi=$ac_mid; break | |
16042 | else | |
16043 | echo "$as_me: failed program was:" >&5 | |
16044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16045 | ||
16046 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16047 | if test $ac_lo -le $ac_mid; then |
16048 | ac_lo= ac_hi= | |
16049 | break | |
16050 | fi | |
16051 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16052 | fi |
ac1cb8d3 | 16053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16054 | done |
16055 | else | |
16056 | echo "$as_me: failed program was:" >&5 | |
16057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16058 | ||
16059 | cat >conftest.$ac_ext <<_ACEOF | |
16060 | /* confdefs.h. */ | |
16061 | _ACEOF | |
16062 | cat confdefs.h >>conftest.$ac_ext | |
16063 | cat >>conftest.$ac_ext <<_ACEOF | |
16064 | /* end confdefs.h. */ | |
16065 | $ac_includes_default | |
16066 | int | |
16067 | main () | |
16068 | { | |
16069 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
16070 | test_array [0] = 0 | |
16071 | ||
16072 | ; | |
16073 | return 0; | |
16074 | } | |
16075 | _ACEOF | |
16076 | rm -f conftest.$ac_objext | |
16077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16078 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16079 | ac_status=$? |
ac1cb8d3 VS |
16080 | grep -v '^ *+' conftest.er1 >conftest.err |
16081 | rm -f conftest.er1 | |
16082 | cat conftest.err >&5 | |
a848cd7e SC |
16083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16084 | (exit $ac_status); } && | |
9dd0f6c2 | 16085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16087 | (eval $ac_try) 2>&5 | |
16088 | ac_status=$? | |
16089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16090 | (exit $ac_status); }; } && | |
16091 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16093 | (eval $ac_try) 2>&5 | |
16094 | ac_status=$? | |
16095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16096 | (exit $ac_status); }; }; then | |
16097 | ac_hi=-1 ac_mid=-1 | |
16098 | while :; do | |
16099 | cat >conftest.$ac_ext <<_ACEOF | |
16100 | /* confdefs.h. */ | |
16101 | _ACEOF | |
16102 | cat confdefs.h >>conftest.$ac_ext | |
16103 | cat >>conftest.$ac_ext <<_ACEOF | |
16104 | /* end confdefs.h. */ | |
16105 | $ac_includes_default | |
16106 | int | |
16107 | main () | |
16108 | { | |
16109 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
16110 | test_array [0] = 0 | |
16111 | ||
16112 | ; | |
16113 | return 0; | |
16114 | } | |
16115 | _ACEOF | |
16116 | rm -f conftest.$ac_objext | |
16117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16118 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16119 | ac_status=$? |
ac1cb8d3 VS |
16120 | grep -v '^ *+' conftest.er1 >conftest.err |
16121 | rm -f conftest.er1 | |
16122 | cat conftest.err >&5 | |
a848cd7e SC |
16123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16124 | (exit $ac_status); } && | |
9dd0f6c2 | 16125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16127 | (eval $ac_try) 2>&5 | |
16128 | ac_status=$? | |
16129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16130 | (exit $ac_status); }; } && | |
16131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16133 | (eval $ac_try) 2>&5 | |
16134 | ac_status=$? | |
16135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16136 | (exit $ac_status); }; }; then | |
16137 | ac_lo=$ac_mid; break | |
16138 | else | |
16139 | echo "$as_me: failed program was:" >&5 | |
16140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16141 | ||
16142 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16143 | if test $ac_mid -le $ac_hi; then |
16144 | ac_lo= ac_hi= | |
16145 | break | |
16146 | fi | |
16147 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16148 | fi |
ac1cb8d3 | 16149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16150 | done |
16151 | else | |
16152 | echo "$as_me: failed program was:" >&5 | |
16153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16154 | ||
16155 | ac_lo= ac_hi= | |
16156 | fi | |
ac1cb8d3 | 16157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16158 | fi |
ac1cb8d3 | 16159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16160 | # Binary search between lo and hi bounds. |
16161 | while test "x$ac_lo" != "x$ac_hi"; do | |
16162 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16163 | cat >conftest.$ac_ext <<_ACEOF | |
16164 | /* confdefs.h. */ | |
16165 | _ACEOF | |
16166 | cat confdefs.h >>conftest.$ac_ext | |
16167 | cat >>conftest.$ac_ext <<_ACEOF | |
16168 | /* end confdefs.h. */ | |
16169 | $ac_includes_default | |
16170 | int | |
16171 | main () | |
16172 | { | |
16173 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16174 | test_array [0] = 0 | |
16175 | ||
16176 | ; | |
16177 | return 0; | |
16178 | } | |
16179 | _ACEOF | |
16180 | rm -f conftest.$ac_objext | |
16181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16183 | ac_status=$? |
ac1cb8d3 VS |
16184 | grep -v '^ *+' conftest.er1 >conftest.err |
16185 | rm -f conftest.er1 | |
16186 | cat conftest.err >&5 | |
a848cd7e SC |
16187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16188 | (exit $ac_status); } && | |
9dd0f6c2 | 16189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16191 | (eval $ac_try) 2>&5 | |
16192 | ac_status=$? | |
16193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16194 | (exit $ac_status); }; } && | |
16195 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16197 | (eval $ac_try) 2>&5 | |
16198 | ac_status=$? | |
16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16200 | (exit $ac_status); }; }; then | |
16201 | ac_hi=$ac_mid | |
16202 | else | |
16203 | echo "$as_me: failed program was:" >&5 | |
16204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16205 | ||
16206 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16207 | fi | |
ac1cb8d3 | 16208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16209 | done |
16210 | case $ac_lo in | |
16211 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
16212 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16213 | See \`config.log' for more details." >&5 | |
16214 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16215 | See \`config.log' for more details." >&2;} | |
16216 | { (exit 1); exit 1; }; } ;; | |
16217 | esac | |
16218 | else | |
16219 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
16220 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16221 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16222 | { (exit 1); exit 1; }; } |
16223 | else | |
16224 | cat >conftest.$ac_ext <<_ACEOF | |
16225 | /* confdefs.h. */ | |
16226 | _ACEOF | |
16227 | cat confdefs.h >>conftest.$ac_ext | |
16228 | cat >>conftest.$ac_ext <<_ACEOF | |
16229 | /* end confdefs.h. */ | |
16230 | $ac_includes_default | |
16231 | long longval () { return (long) (sizeof (short)); } | |
16232 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16233 | #include <stdio.h> | |
16234 | #include <stdlib.h> | |
16235 | int | |
16236 | main () | |
16237 | { | |
16238 | ||
16239 | FILE *f = fopen ("conftest.val", "w"); | |
16240 | if (! f) | |
16241 | exit (1); | |
16242 | if (((long) (sizeof (short))) < 0) | |
16243 | { | |
16244 | long i = longval (); | |
16245 | if (i != ((long) (sizeof (short)))) | |
16246 | exit (1); | |
16247 | fprintf (f, "%ld\n", i); | |
16248 | } | |
16249 | else | |
16250 | { | |
16251 | unsigned long i = ulongval (); | |
16252 | if (i != ((long) (sizeof (short)))) | |
16253 | exit (1); | |
16254 | fprintf (f, "%lu\n", i); | |
16255 | } | |
16256 | exit (ferror (f) || fclose (f) != 0); | |
16257 | ||
16258 | ; | |
16259 | return 0; | |
16260 | } | |
16261 | _ACEOF | |
16262 | rm -f conftest$ac_exeext | |
16263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16264 | (eval $ac_link) 2>&5 | |
16265 | ac_status=$? | |
16266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16267 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16269 | (eval $ac_try) 2>&5 | |
16270 | ac_status=$? | |
16271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16272 | (exit $ac_status); }; }; then | |
16273 | ac_cv_sizeof_short=`cat conftest.val` | |
16274 | else | |
16275 | echo "$as_me: program exited with status $ac_status" >&5 | |
16276 | echo "$as_me: failed program was:" >&5 | |
16277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16278 | ||
16279 | ( exit $ac_status ) | |
16280 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16281 | See \`config.log' for more details." >&5 | |
16282 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16283 | See \`config.log' for more details." >&2;} | |
16284 | { (exit 1); exit 1; }; } | |
16285 | fi | |
ac1cb8d3 | 16286 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16287 | fi |
16288 | fi | |
16289 | rm -f conftest.val | |
16290 | else | |
16291 | ac_cv_sizeof_short=0 | |
16292 | fi | |
16293 | fi | |
16294 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16295 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16296 | cat >>confdefs.h <<_ACEOF | |
16297 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16298 | _ACEOF | |
16299 | ||
16300 | ||
16301 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16302 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16303 | if test "${ac_cv_type_void_p+set}" = set; then | |
16304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16305 | else | |
16306 | cat >conftest.$ac_ext <<_ACEOF | |
16307 | /* confdefs.h. */ | |
16308 | _ACEOF | |
16309 | cat confdefs.h >>conftest.$ac_ext | |
16310 | cat >>conftest.$ac_ext <<_ACEOF | |
16311 | /* end confdefs.h. */ | |
16312 | $ac_includes_default | |
16313 | int | |
16314 | main () | |
16315 | { | |
16316 | if ((void * *) 0) | |
16317 | return 0; | |
16318 | if (sizeof (void *)) | |
16319 | return 0; | |
16320 | ; | |
16321 | return 0; | |
16322 | } | |
16323 | _ACEOF | |
16324 | rm -f conftest.$ac_objext | |
16325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16326 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16327 | ac_status=$? |
ac1cb8d3 VS |
16328 | grep -v '^ *+' conftest.er1 >conftest.err |
16329 | rm -f conftest.er1 | |
16330 | cat conftest.err >&5 | |
a848cd7e SC |
16331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16332 | (exit $ac_status); } && | |
9dd0f6c2 | 16333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16335 | (eval $ac_try) 2>&5 | |
16336 | ac_status=$? | |
16337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16338 | (exit $ac_status); }; } && | |
16339 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16341 | (eval $ac_try) 2>&5 | |
16342 | ac_status=$? | |
16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16344 | (exit $ac_status); }; }; then | |
16345 | ac_cv_type_void_p=yes | |
16346 | else | |
16347 | echo "$as_me: failed program was:" >&5 | |
16348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16349 | ||
16350 | ac_cv_type_void_p=no | |
16351 | fi | |
ac1cb8d3 | 16352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16353 | fi |
16354 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16355 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16356 | ||
16357 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16358 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16359 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16361 | else | |
16362 | if test "$ac_cv_type_void_p" = yes; then | |
16363 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16364 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16365 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16366 | # This bug is HP SR number 8606223364. | |
16367 | if test "$cross_compiling" = yes; then | |
16368 | # Depending upon the size, compute the lo and hi bounds. | |
16369 | cat >conftest.$ac_ext <<_ACEOF | |
16370 | /* confdefs.h. */ | |
16371 | _ACEOF | |
16372 | cat confdefs.h >>conftest.$ac_ext | |
16373 | cat >>conftest.$ac_ext <<_ACEOF | |
16374 | /* end confdefs.h. */ | |
16375 | $ac_includes_default | |
16376 | int | |
16377 | main () | |
16378 | { | |
16379 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16380 | test_array [0] = 0 | |
16381 | ||
16382 | ; | |
16383 | return 0; | |
16384 | } | |
16385 | _ACEOF | |
16386 | rm -f conftest.$ac_objext | |
16387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16388 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16389 | ac_status=$? |
ac1cb8d3 VS |
16390 | grep -v '^ *+' conftest.er1 >conftest.err |
16391 | rm -f conftest.er1 | |
16392 | cat conftest.err >&5 | |
a848cd7e SC |
16393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16394 | (exit $ac_status); } && | |
9dd0f6c2 | 16395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16397 | (eval $ac_try) 2>&5 | |
16398 | ac_status=$? | |
16399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16400 | (exit $ac_status); }; } && | |
16401 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16403 | (eval $ac_try) 2>&5 | |
16404 | ac_status=$? | |
16405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16406 | (exit $ac_status); }; }; then | |
16407 | ac_lo=0 ac_mid=0 | |
16408 | while :; do | |
16409 | cat >conftest.$ac_ext <<_ACEOF | |
16410 | /* confdefs.h. */ | |
16411 | _ACEOF | |
16412 | cat confdefs.h >>conftest.$ac_ext | |
16413 | cat >>conftest.$ac_ext <<_ACEOF | |
16414 | /* end confdefs.h. */ | |
16415 | $ac_includes_default | |
16416 | int | |
16417 | main () | |
16418 | { | |
16419 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16420 | test_array [0] = 0 | |
16421 | ||
16422 | ; | |
16423 | return 0; | |
16424 | } | |
16425 | _ACEOF | |
16426 | rm -f conftest.$ac_objext | |
16427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16428 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16429 | ac_status=$? |
ac1cb8d3 VS |
16430 | grep -v '^ *+' conftest.er1 >conftest.err |
16431 | rm -f conftest.er1 | |
16432 | cat conftest.err >&5 | |
a848cd7e SC |
16433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16434 | (exit $ac_status); } && | |
9dd0f6c2 | 16435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16437 | (eval $ac_try) 2>&5 | |
16438 | ac_status=$? | |
16439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16440 | (exit $ac_status); }; } && | |
16441 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16443 | (eval $ac_try) 2>&5 | |
16444 | ac_status=$? | |
16445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16446 | (exit $ac_status); }; }; then | |
16447 | ac_hi=$ac_mid; break | |
16448 | else | |
16449 | echo "$as_me: failed program was:" >&5 | |
16450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16451 | ||
16452 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16453 | if test $ac_lo -le $ac_mid; then |
16454 | ac_lo= ac_hi= | |
16455 | break | |
16456 | fi | |
16457 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16458 | fi |
ac1cb8d3 | 16459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16460 | done |
16461 | else | |
16462 | echo "$as_me: failed program was:" >&5 | |
16463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16464 | ||
16465 | cat >conftest.$ac_ext <<_ACEOF | |
16466 | /* confdefs.h. */ | |
16467 | _ACEOF | |
16468 | cat confdefs.h >>conftest.$ac_ext | |
16469 | cat >>conftest.$ac_ext <<_ACEOF | |
16470 | /* end confdefs.h. */ | |
16471 | $ac_includes_default | |
16472 | int | |
16473 | main () | |
16474 | { | |
16475 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
16476 | test_array [0] = 0 | |
16477 | ||
16478 | ; | |
16479 | return 0; | |
16480 | } | |
16481 | _ACEOF | |
16482 | rm -f conftest.$ac_objext | |
16483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16484 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16485 | ac_status=$? |
ac1cb8d3 VS |
16486 | grep -v '^ *+' conftest.er1 >conftest.err |
16487 | rm -f conftest.er1 | |
16488 | cat conftest.err >&5 | |
a848cd7e SC |
16489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16490 | (exit $ac_status); } && | |
9dd0f6c2 | 16491 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16493 | (eval $ac_try) 2>&5 | |
16494 | ac_status=$? | |
16495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16496 | (exit $ac_status); }; } && | |
16497 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16499 | (eval $ac_try) 2>&5 | |
16500 | ac_status=$? | |
16501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16502 | (exit $ac_status); }; }; then | |
16503 | ac_hi=-1 ac_mid=-1 | |
16504 | while :; do | |
16505 | cat >conftest.$ac_ext <<_ACEOF | |
16506 | /* confdefs.h. */ | |
16507 | _ACEOF | |
16508 | cat confdefs.h >>conftest.$ac_ext | |
16509 | cat >>conftest.$ac_ext <<_ACEOF | |
16510 | /* end confdefs.h. */ | |
16511 | $ac_includes_default | |
16512 | int | |
16513 | main () | |
16514 | { | |
16515 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
16516 | test_array [0] = 0 | |
16517 | ||
16518 | ; | |
16519 | return 0; | |
16520 | } | |
16521 | _ACEOF | |
16522 | rm -f conftest.$ac_objext | |
16523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16524 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16525 | ac_status=$? |
ac1cb8d3 VS |
16526 | grep -v '^ *+' conftest.er1 >conftest.err |
16527 | rm -f conftest.er1 | |
16528 | cat conftest.err >&5 | |
a848cd7e SC |
16529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16530 | (exit $ac_status); } && | |
9dd0f6c2 | 16531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16533 | (eval $ac_try) 2>&5 | |
16534 | ac_status=$? | |
16535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16536 | (exit $ac_status); }; } && | |
16537 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16539 | (eval $ac_try) 2>&5 | |
16540 | ac_status=$? | |
16541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16542 | (exit $ac_status); }; }; then | |
16543 | ac_lo=$ac_mid; break | |
16544 | else | |
16545 | echo "$as_me: failed program was:" >&5 | |
16546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16547 | ||
16548 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16549 | if test $ac_mid -le $ac_hi; then |
16550 | ac_lo= ac_hi= | |
16551 | break | |
16552 | fi | |
16553 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16554 | fi |
ac1cb8d3 | 16555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16556 | done |
16557 | else | |
16558 | echo "$as_me: failed program was:" >&5 | |
16559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16560 | ||
16561 | ac_lo= ac_hi= | |
16562 | fi | |
ac1cb8d3 | 16563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16564 | fi |
ac1cb8d3 | 16565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16566 | # Binary search between lo and hi bounds. |
16567 | while test "x$ac_lo" != "x$ac_hi"; do | |
16568 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16569 | cat >conftest.$ac_ext <<_ACEOF | |
16570 | /* confdefs.h. */ | |
16571 | _ACEOF | |
16572 | cat confdefs.h >>conftest.$ac_ext | |
16573 | cat >>conftest.$ac_ext <<_ACEOF | |
16574 | /* end confdefs.h. */ | |
16575 | $ac_includes_default | |
16576 | int | |
16577 | main () | |
16578 | { | |
16579 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16580 | test_array [0] = 0 | |
16581 | ||
16582 | ; | |
16583 | return 0; | |
16584 | } | |
16585 | _ACEOF | |
16586 | rm -f conftest.$ac_objext | |
16587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16588 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16589 | ac_status=$? |
ac1cb8d3 VS |
16590 | grep -v '^ *+' conftest.er1 >conftest.err |
16591 | rm -f conftest.er1 | |
16592 | cat conftest.err >&5 | |
a848cd7e SC |
16593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16594 | (exit $ac_status); } && | |
9dd0f6c2 | 16595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16597 | (eval $ac_try) 2>&5 | |
16598 | ac_status=$? | |
16599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16600 | (exit $ac_status); }; } && | |
16601 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16603 | (eval $ac_try) 2>&5 | |
16604 | ac_status=$? | |
16605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16606 | (exit $ac_status); }; }; then | |
16607 | ac_hi=$ac_mid | |
16608 | else | |
16609 | echo "$as_me: failed program was:" >&5 | |
16610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16611 | ||
16612 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16613 | fi | |
ac1cb8d3 | 16614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16615 | done |
16616 | case $ac_lo in | |
16617 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
16618 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16619 | See \`config.log' for more details." >&5 | |
16620 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16621 | See \`config.log' for more details." >&2;} | |
16622 | { (exit 1); exit 1; }; } ;; | |
16623 | esac | |
16624 | else | |
16625 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
16626 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16627 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16628 | { (exit 1); exit 1; }; } |
16629 | else | |
16630 | cat >conftest.$ac_ext <<_ACEOF | |
16631 | /* confdefs.h. */ | |
16632 | _ACEOF | |
16633 | cat confdefs.h >>conftest.$ac_ext | |
16634 | cat >>conftest.$ac_ext <<_ACEOF | |
16635 | /* end confdefs.h. */ | |
16636 | $ac_includes_default | |
16637 | long longval () { return (long) (sizeof (void *)); } | |
16638 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
16639 | #include <stdio.h> | |
16640 | #include <stdlib.h> | |
16641 | int | |
16642 | main () | |
16643 | { | |
16644 | ||
16645 | FILE *f = fopen ("conftest.val", "w"); | |
16646 | if (! f) | |
16647 | exit (1); | |
16648 | if (((long) (sizeof (void *))) < 0) | |
16649 | { | |
16650 | long i = longval (); | |
16651 | if (i != ((long) (sizeof (void *)))) | |
16652 | exit (1); | |
16653 | fprintf (f, "%ld\n", i); | |
16654 | } | |
16655 | else | |
16656 | { | |
16657 | unsigned long i = ulongval (); | |
16658 | if (i != ((long) (sizeof (void *)))) | |
16659 | exit (1); | |
16660 | fprintf (f, "%lu\n", i); | |
16661 | } | |
16662 | exit (ferror (f) || fclose (f) != 0); | |
16663 | ||
16664 | ; | |
16665 | return 0; | |
16666 | } | |
16667 | _ACEOF | |
16668 | rm -f conftest$ac_exeext | |
16669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16670 | (eval $ac_link) 2>&5 | |
16671 | ac_status=$? | |
16672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16675 | (eval $ac_try) 2>&5 | |
16676 | ac_status=$? | |
16677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16678 | (exit $ac_status); }; }; then | |
16679 | ac_cv_sizeof_void_p=`cat conftest.val` | |
16680 | else | |
16681 | echo "$as_me: program exited with status $ac_status" >&5 | |
16682 | echo "$as_me: failed program was:" >&5 | |
16683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16684 | ||
16685 | ( exit $ac_status ) | |
16686 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16687 | See \`config.log' for more details." >&5 | |
16688 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16689 | See \`config.log' for more details." >&2;} | |
16690 | { (exit 1); exit 1; }; } | |
16691 | fi | |
ac1cb8d3 | 16692 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16693 | fi |
16694 | fi | |
16695 | rm -f conftest.val | |
16696 | else | |
16697 | ac_cv_sizeof_void_p=0 | |
16698 | fi | |
16699 | fi | |
16700 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
16701 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
16702 | cat >>confdefs.h <<_ACEOF | |
16703 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16704 | _ACEOF | |
16705 | ||
16706 | ||
16707 | echo "$as_me:$LINENO: checking for int" >&5 | |
16708 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
16709 | if test "${ac_cv_type_int+set}" = set; then | |
16710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16711 | else | |
16712 | cat >conftest.$ac_ext <<_ACEOF | |
16713 | /* confdefs.h. */ | |
16714 | _ACEOF | |
16715 | cat confdefs.h >>conftest.$ac_ext | |
16716 | cat >>conftest.$ac_ext <<_ACEOF | |
16717 | /* end confdefs.h. */ | |
16718 | $ac_includes_default | |
16719 | int | |
16720 | main () | |
16721 | { | |
16722 | if ((int *) 0) | |
16723 | return 0; | |
16724 | if (sizeof (int)) | |
16725 | return 0; | |
16726 | ; | |
16727 | return 0; | |
16728 | } | |
16729 | _ACEOF | |
16730 | rm -f conftest.$ac_objext | |
16731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16732 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16733 | ac_status=$? |
ac1cb8d3 VS |
16734 | grep -v '^ *+' conftest.er1 >conftest.err |
16735 | rm -f conftest.er1 | |
16736 | cat conftest.err >&5 | |
a848cd7e SC |
16737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16738 | (exit $ac_status); } && | |
9dd0f6c2 | 16739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16741 | (eval $ac_try) 2>&5 | |
16742 | ac_status=$? | |
16743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16744 | (exit $ac_status); }; } && | |
16745 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16747 | (eval $ac_try) 2>&5 | |
16748 | ac_status=$? | |
16749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16750 | (exit $ac_status); }; }; then | |
16751 | ac_cv_type_int=yes | |
16752 | else | |
16753 | echo "$as_me: failed program was:" >&5 | |
16754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16755 | ||
16756 | ac_cv_type_int=no | |
16757 | fi | |
ac1cb8d3 | 16758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16759 | fi |
16760 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16761 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16762 | ||
16763 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16764 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16765 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16767 | else | |
16768 | if test "$ac_cv_type_int" = yes; then | |
16769 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16770 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16771 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16772 | # This bug is HP SR number 8606223364. | |
16773 | if test "$cross_compiling" = yes; then | |
16774 | # Depending upon the size, compute the lo and hi bounds. | |
16775 | cat >conftest.$ac_ext <<_ACEOF | |
16776 | /* confdefs.h. */ | |
16777 | _ACEOF | |
16778 | cat confdefs.h >>conftest.$ac_ext | |
16779 | cat >>conftest.$ac_ext <<_ACEOF | |
16780 | /* end confdefs.h. */ | |
16781 | $ac_includes_default | |
16782 | int | |
16783 | main () | |
16784 | { | |
16785 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
16786 | test_array [0] = 0 | |
16787 | ||
16788 | ; | |
16789 | return 0; | |
16790 | } | |
16791 | _ACEOF | |
16792 | rm -f conftest.$ac_objext | |
16793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16794 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16795 | ac_status=$? |
ac1cb8d3 VS |
16796 | grep -v '^ *+' conftest.er1 >conftest.err |
16797 | rm -f conftest.er1 | |
16798 | cat conftest.err >&5 | |
a848cd7e SC |
16799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16800 | (exit $ac_status); } && | |
9dd0f6c2 | 16801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16803 | (eval $ac_try) 2>&5 | |
16804 | ac_status=$? | |
16805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16806 | (exit $ac_status); }; } && | |
16807 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16809 | (eval $ac_try) 2>&5 | |
16810 | ac_status=$? | |
16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16812 | (exit $ac_status); }; }; then | |
16813 | ac_lo=0 ac_mid=0 | |
16814 | while :; do | |
16815 | cat >conftest.$ac_ext <<_ACEOF | |
16816 | /* confdefs.h. */ | |
16817 | _ACEOF | |
16818 | cat confdefs.h >>conftest.$ac_ext | |
16819 | cat >>conftest.$ac_ext <<_ACEOF | |
16820 | /* end confdefs.h. */ | |
16821 | $ac_includes_default | |
16822 | int | |
16823 | main () | |
16824 | { | |
16825 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16826 | test_array [0] = 0 | |
16827 | ||
16828 | ; | |
16829 | return 0; | |
16830 | } | |
16831 | _ACEOF | |
16832 | rm -f conftest.$ac_objext | |
16833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16834 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16835 | ac_status=$? |
ac1cb8d3 VS |
16836 | grep -v '^ *+' conftest.er1 >conftest.err |
16837 | rm -f conftest.er1 | |
16838 | cat conftest.err >&5 | |
a848cd7e SC |
16839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16840 | (exit $ac_status); } && | |
9dd0f6c2 | 16841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16843 | (eval $ac_try) 2>&5 | |
16844 | ac_status=$? | |
16845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16846 | (exit $ac_status); }; } && | |
16847 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16849 | (eval $ac_try) 2>&5 | |
16850 | ac_status=$? | |
16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16852 | (exit $ac_status); }; }; then | |
16853 | ac_hi=$ac_mid; break | |
16854 | else | |
16855 | echo "$as_me: failed program was:" >&5 | |
16856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16857 | ||
16858 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16859 | if test $ac_lo -le $ac_mid; then |
16860 | ac_lo= ac_hi= | |
16861 | break | |
16862 | fi | |
16863 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16864 | fi |
ac1cb8d3 | 16865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16866 | done |
16867 | else | |
16868 | echo "$as_me: failed program was:" >&5 | |
16869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16870 | ||
16871 | cat >conftest.$ac_ext <<_ACEOF | |
16872 | /* confdefs.h. */ | |
16873 | _ACEOF | |
16874 | cat confdefs.h >>conftest.$ac_ext | |
16875 | cat >>conftest.$ac_ext <<_ACEOF | |
16876 | /* end confdefs.h. */ | |
16877 | $ac_includes_default | |
16878 | int | |
16879 | main () | |
16880 | { | |
16881 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
16882 | test_array [0] = 0 | |
16883 | ||
16884 | ; | |
16885 | return 0; | |
16886 | } | |
16887 | _ACEOF | |
16888 | rm -f conftest.$ac_objext | |
16889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16890 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16891 | ac_status=$? |
ac1cb8d3 VS |
16892 | grep -v '^ *+' conftest.er1 >conftest.err |
16893 | rm -f conftest.er1 | |
16894 | cat conftest.err >&5 | |
a848cd7e SC |
16895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16896 | (exit $ac_status); } && | |
9dd0f6c2 | 16897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16899 | (eval $ac_try) 2>&5 | |
16900 | ac_status=$? | |
16901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16902 | (exit $ac_status); }; } && | |
16903 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16905 | (eval $ac_try) 2>&5 | |
16906 | ac_status=$? | |
16907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16908 | (exit $ac_status); }; }; then | |
16909 | ac_hi=-1 ac_mid=-1 | |
16910 | while :; do | |
16911 | cat >conftest.$ac_ext <<_ACEOF | |
16912 | /* confdefs.h. */ | |
16913 | _ACEOF | |
16914 | cat confdefs.h >>conftest.$ac_ext | |
16915 | cat >>conftest.$ac_ext <<_ACEOF | |
16916 | /* end confdefs.h. */ | |
16917 | $ac_includes_default | |
16918 | int | |
16919 | main () | |
16920 | { | |
16921 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
16922 | test_array [0] = 0 | |
16923 | ||
16924 | ; | |
16925 | return 0; | |
16926 | } | |
16927 | _ACEOF | |
16928 | rm -f conftest.$ac_objext | |
16929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16930 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16931 | ac_status=$? |
ac1cb8d3 VS |
16932 | grep -v '^ *+' conftest.er1 >conftest.err |
16933 | rm -f conftest.er1 | |
16934 | cat conftest.err >&5 | |
a848cd7e SC |
16935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16936 | (exit $ac_status); } && | |
9dd0f6c2 | 16937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16939 | (eval $ac_try) 2>&5 | |
16940 | ac_status=$? | |
16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16942 | (exit $ac_status); }; } && | |
16943 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16945 | (eval $ac_try) 2>&5 | |
16946 | ac_status=$? | |
16947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16948 | (exit $ac_status); }; }; then | |
16949 | ac_lo=$ac_mid; break | |
16950 | else | |
16951 | echo "$as_me: failed program was:" >&5 | |
16952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16953 | ||
16954 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16955 | if test $ac_mid -le $ac_hi; then |
16956 | ac_lo= ac_hi= | |
16957 | break | |
16958 | fi | |
16959 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16960 | fi |
ac1cb8d3 | 16961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16962 | done |
16963 | else | |
16964 | echo "$as_me: failed program was:" >&5 | |
16965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16966 | ||
16967 | ac_lo= ac_hi= | |
16968 | fi | |
ac1cb8d3 | 16969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16970 | fi |
ac1cb8d3 | 16971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16972 | # Binary search between lo and hi bounds. |
16973 | while test "x$ac_lo" != "x$ac_hi"; do | |
16974 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16975 | cat >conftest.$ac_ext <<_ACEOF | |
16976 | /* confdefs.h. */ | |
16977 | _ACEOF | |
16978 | cat confdefs.h >>conftest.$ac_ext | |
16979 | cat >>conftest.$ac_ext <<_ACEOF | |
16980 | /* end confdefs.h. */ | |
16981 | $ac_includes_default | |
16982 | int | |
16983 | main () | |
16984 | { | |
16985 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16986 | test_array [0] = 0 | |
16987 | ||
16988 | ; | |
16989 | return 0; | |
16990 | } | |
16991 | _ACEOF | |
16992 | rm -f conftest.$ac_objext | |
16993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16994 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16995 | ac_status=$? |
ac1cb8d3 VS |
16996 | grep -v '^ *+' conftest.er1 >conftest.err |
16997 | rm -f conftest.er1 | |
16998 | cat conftest.err >&5 | |
a848cd7e SC |
16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17000 | (exit $ac_status); } && | |
9dd0f6c2 | 17001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17003 | (eval $ac_try) 2>&5 | |
17004 | ac_status=$? | |
17005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17006 | (exit $ac_status); }; } && | |
17007 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17009 | (eval $ac_try) 2>&5 | |
17010 | ac_status=$? | |
17011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17012 | (exit $ac_status); }; }; then | |
17013 | ac_hi=$ac_mid | |
17014 | else | |
17015 | echo "$as_me: failed program was:" >&5 | |
17016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17017 | ||
17018 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17019 | fi | |
ac1cb8d3 | 17020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17021 | done |
17022 | case $ac_lo in | |
17023 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
17024 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17025 | See \`config.log' for more details." >&5 | |
17026 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17027 | See \`config.log' for more details." >&2;} | |
17028 | { (exit 1); exit 1; }; } ;; | |
17029 | esac | |
17030 | else | |
17031 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
17032 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17033 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17034 | { (exit 1); exit 1; }; } |
17035 | else | |
17036 | cat >conftest.$ac_ext <<_ACEOF | |
17037 | /* confdefs.h. */ | |
17038 | _ACEOF | |
17039 | cat confdefs.h >>conftest.$ac_ext | |
17040 | cat >>conftest.$ac_ext <<_ACEOF | |
17041 | /* end confdefs.h. */ | |
17042 | $ac_includes_default | |
17043 | long longval () { return (long) (sizeof (int)); } | |
17044 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
17045 | #include <stdio.h> | |
17046 | #include <stdlib.h> | |
17047 | int | |
17048 | main () | |
17049 | { | |
17050 | ||
17051 | FILE *f = fopen ("conftest.val", "w"); | |
17052 | if (! f) | |
17053 | exit (1); | |
17054 | if (((long) (sizeof (int))) < 0) | |
17055 | { | |
17056 | long i = longval (); | |
17057 | if (i != ((long) (sizeof (int)))) | |
17058 | exit (1); | |
17059 | fprintf (f, "%ld\n", i); | |
17060 | } | |
17061 | else | |
17062 | { | |
17063 | unsigned long i = ulongval (); | |
17064 | if (i != ((long) (sizeof (int)))) | |
17065 | exit (1); | |
17066 | fprintf (f, "%lu\n", i); | |
17067 | } | |
17068 | exit (ferror (f) || fclose (f) != 0); | |
17069 | ||
17070 | ; | |
17071 | return 0; | |
17072 | } | |
17073 | _ACEOF | |
17074 | rm -f conftest$ac_exeext | |
17075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17076 | (eval $ac_link) 2>&5 | |
17077 | ac_status=$? | |
17078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17081 | (eval $ac_try) 2>&5 | |
17082 | ac_status=$? | |
17083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17084 | (exit $ac_status); }; }; then | |
17085 | ac_cv_sizeof_int=`cat conftest.val` | |
17086 | else | |
17087 | echo "$as_me: program exited with status $ac_status" >&5 | |
17088 | echo "$as_me: failed program was:" >&5 | |
17089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17090 | ||
17091 | ( exit $ac_status ) | |
17092 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17093 | See \`config.log' for more details." >&5 | |
17094 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17095 | See \`config.log' for more details." >&2;} | |
17096 | { (exit 1); exit 1; }; } | |
17097 | fi | |
ac1cb8d3 | 17098 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17099 | fi |
17100 | fi | |
17101 | rm -f conftest.val | |
17102 | else | |
17103 | ac_cv_sizeof_int=0 | |
17104 | fi | |
17105 | fi | |
17106 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
17107 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
17108 | cat >>confdefs.h <<_ACEOF | |
17109 | #define SIZEOF_INT $ac_cv_sizeof_int | |
17110 | _ACEOF | |
17111 | ||
17112 | ||
17113 | echo "$as_me:$LINENO: checking for long" >&5 | |
17114 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
17115 | if test "${ac_cv_type_long+set}" = set; then | |
17116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17117 | else | |
17118 | cat >conftest.$ac_ext <<_ACEOF | |
17119 | /* confdefs.h. */ | |
17120 | _ACEOF | |
17121 | cat confdefs.h >>conftest.$ac_ext | |
17122 | cat >>conftest.$ac_ext <<_ACEOF | |
17123 | /* end confdefs.h. */ | |
17124 | $ac_includes_default | |
17125 | int | |
17126 | main () | |
17127 | { | |
17128 | if ((long *) 0) | |
17129 | return 0; | |
17130 | if (sizeof (long)) | |
17131 | return 0; | |
17132 | ; | |
17133 | return 0; | |
17134 | } | |
17135 | _ACEOF | |
17136 | rm -f conftest.$ac_objext | |
17137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17138 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17139 | ac_status=$? |
ac1cb8d3 VS |
17140 | grep -v '^ *+' conftest.er1 >conftest.err |
17141 | rm -f conftest.er1 | |
17142 | cat conftest.err >&5 | |
a848cd7e SC |
17143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17144 | (exit $ac_status); } && | |
9dd0f6c2 | 17145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17147 | (eval $ac_try) 2>&5 | |
17148 | ac_status=$? | |
17149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17150 | (exit $ac_status); }; } && | |
17151 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17153 | (eval $ac_try) 2>&5 | |
17154 | ac_status=$? | |
17155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17156 | (exit $ac_status); }; }; then | |
17157 | ac_cv_type_long=yes | |
17158 | else | |
17159 | echo "$as_me: failed program was:" >&5 | |
17160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17161 | ||
17162 | ac_cv_type_long=no | |
17163 | fi | |
ac1cb8d3 | 17164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17165 | fi |
17166 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
17167 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
17168 | ||
17169 | echo "$as_me:$LINENO: checking size of long" >&5 | |
17170 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
17171 | if test "${ac_cv_sizeof_long+set}" = set; then | |
17172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17173 | else | |
17174 | if test "$ac_cv_type_long" = yes; then | |
17175 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17176 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17177 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17178 | # This bug is HP SR number 8606223364. | |
17179 | if test "$cross_compiling" = yes; then | |
17180 | # Depending upon the size, compute the lo and hi bounds. | |
17181 | cat >conftest.$ac_ext <<_ACEOF | |
17182 | /* confdefs.h. */ | |
17183 | _ACEOF | |
17184 | cat confdefs.h >>conftest.$ac_ext | |
17185 | cat >>conftest.$ac_ext <<_ACEOF | |
17186 | /* end confdefs.h. */ | |
17187 | $ac_includes_default | |
17188 | int | |
17189 | main () | |
17190 | { | |
17191 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
17192 | test_array [0] = 0 | |
17193 | ||
17194 | ; | |
17195 | return 0; | |
17196 | } | |
17197 | _ACEOF | |
17198 | rm -f conftest.$ac_objext | |
17199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17200 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17201 | ac_status=$? |
ac1cb8d3 VS |
17202 | grep -v '^ *+' conftest.er1 >conftest.err |
17203 | rm -f conftest.er1 | |
17204 | cat conftest.err >&5 | |
a848cd7e SC |
17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17206 | (exit $ac_status); } && | |
9dd0f6c2 | 17207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17209 | (eval $ac_try) 2>&5 | |
17210 | ac_status=$? | |
17211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17212 | (exit $ac_status); }; } && | |
17213 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17215 | (eval $ac_try) 2>&5 | |
17216 | ac_status=$? | |
17217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17218 | (exit $ac_status); }; }; then | |
17219 | ac_lo=0 ac_mid=0 | |
17220 | while :; do | |
17221 | cat >conftest.$ac_ext <<_ACEOF | |
17222 | /* confdefs.h. */ | |
17223 | _ACEOF | |
17224 | cat confdefs.h >>conftest.$ac_ext | |
17225 | cat >>conftest.$ac_ext <<_ACEOF | |
17226 | /* end confdefs.h. */ | |
17227 | $ac_includes_default | |
17228 | int | |
17229 | main () | |
17230 | { | |
17231 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17232 | test_array [0] = 0 | |
17233 | ||
17234 | ; | |
17235 | return 0; | |
17236 | } | |
17237 | _ACEOF | |
17238 | rm -f conftest.$ac_objext | |
17239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17240 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17241 | ac_status=$? |
ac1cb8d3 VS |
17242 | grep -v '^ *+' conftest.er1 >conftest.err |
17243 | rm -f conftest.er1 | |
17244 | cat conftest.err >&5 | |
a848cd7e SC |
17245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17246 | (exit $ac_status); } && | |
9dd0f6c2 | 17247 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17249 | (eval $ac_try) 2>&5 | |
17250 | ac_status=$? | |
17251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17252 | (exit $ac_status); }; } && | |
17253 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17255 | (eval $ac_try) 2>&5 | |
17256 | ac_status=$? | |
17257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17258 | (exit $ac_status); }; }; then | |
17259 | ac_hi=$ac_mid; break | |
17260 | else | |
17261 | echo "$as_me: failed program was:" >&5 | |
17262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17263 | ||
17264 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17265 | if test $ac_lo -le $ac_mid; then |
17266 | ac_lo= ac_hi= | |
17267 | break | |
17268 | fi | |
17269 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17270 | fi |
ac1cb8d3 | 17271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17272 | done |
17273 | else | |
17274 | echo "$as_me: failed program was:" >&5 | |
17275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17276 | ||
17277 | cat >conftest.$ac_ext <<_ACEOF | |
17278 | /* confdefs.h. */ | |
17279 | _ACEOF | |
17280 | cat confdefs.h >>conftest.$ac_ext | |
17281 | cat >>conftest.$ac_ext <<_ACEOF | |
17282 | /* end confdefs.h. */ | |
17283 | $ac_includes_default | |
17284 | int | |
17285 | main () | |
17286 | { | |
17287 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17288 | test_array [0] = 0 | |
17289 | ||
17290 | ; | |
17291 | return 0; | |
17292 | } | |
17293 | _ACEOF | |
17294 | rm -f conftest.$ac_objext | |
17295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17296 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17297 | ac_status=$? |
ac1cb8d3 VS |
17298 | grep -v '^ *+' conftest.er1 >conftest.err |
17299 | rm -f conftest.er1 | |
17300 | cat conftest.err >&5 | |
a848cd7e SC |
17301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17302 | (exit $ac_status); } && | |
9dd0f6c2 | 17303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17305 | (eval $ac_try) 2>&5 | |
17306 | ac_status=$? | |
17307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17308 | (exit $ac_status); }; } && | |
17309 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17311 | (eval $ac_try) 2>&5 | |
17312 | ac_status=$? | |
17313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17314 | (exit $ac_status); }; }; then | |
17315 | ac_hi=-1 ac_mid=-1 | |
17316 | while :; do | |
17317 | cat >conftest.$ac_ext <<_ACEOF | |
17318 | /* confdefs.h. */ | |
17319 | _ACEOF | |
17320 | cat confdefs.h >>conftest.$ac_ext | |
17321 | cat >>conftest.$ac_ext <<_ACEOF | |
17322 | /* end confdefs.h. */ | |
17323 | $ac_includes_default | |
17324 | int | |
17325 | main () | |
17326 | { | |
17327 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17328 | test_array [0] = 0 | |
17329 | ||
17330 | ; | |
17331 | return 0; | |
17332 | } | |
17333 | _ACEOF | |
17334 | rm -f conftest.$ac_objext | |
17335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17336 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17337 | ac_status=$? |
ac1cb8d3 VS |
17338 | grep -v '^ *+' conftest.er1 >conftest.err |
17339 | rm -f conftest.er1 | |
17340 | cat conftest.err >&5 | |
a848cd7e SC |
17341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17342 | (exit $ac_status); } && | |
9dd0f6c2 | 17343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17345 | (eval $ac_try) 2>&5 | |
17346 | ac_status=$? | |
17347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17348 | (exit $ac_status); }; } && | |
17349 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17351 | (eval $ac_try) 2>&5 | |
17352 | ac_status=$? | |
17353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17354 | (exit $ac_status); }; }; then | |
17355 | ac_lo=$ac_mid; break | |
17356 | else | |
17357 | echo "$as_me: failed program was:" >&5 | |
17358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17359 | ||
17360 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17361 | if test $ac_mid -le $ac_hi; then |
17362 | ac_lo= ac_hi= | |
17363 | break | |
17364 | fi | |
17365 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17366 | fi |
ac1cb8d3 | 17367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17368 | done |
17369 | else | |
17370 | echo "$as_me: failed program was:" >&5 | |
17371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17372 | ||
17373 | ac_lo= ac_hi= | |
17374 | fi | |
ac1cb8d3 | 17375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17376 | fi |
ac1cb8d3 | 17377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17378 | # Binary search between lo and hi bounds. |
17379 | while test "x$ac_lo" != "x$ac_hi"; do | |
17380 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17381 | cat >conftest.$ac_ext <<_ACEOF | |
17382 | /* confdefs.h. */ | |
17383 | _ACEOF | |
17384 | cat confdefs.h >>conftest.$ac_ext | |
17385 | cat >>conftest.$ac_ext <<_ACEOF | |
17386 | /* end confdefs.h. */ | |
17387 | $ac_includes_default | |
17388 | int | |
17389 | main () | |
17390 | { | |
17391 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17392 | test_array [0] = 0 | |
17393 | ||
17394 | ; | |
17395 | return 0; | |
17396 | } | |
17397 | _ACEOF | |
17398 | rm -f conftest.$ac_objext | |
17399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17400 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17401 | ac_status=$? |
ac1cb8d3 VS |
17402 | grep -v '^ *+' conftest.er1 >conftest.err |
17403 | rm -f conftest.er1 | |
17404 | cat conftest.err >&5 | |
a848cd7e SC |
17405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17406 | (exit $ac_status); } && | |
9dd0f6c2 | 17407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17409 | (eval $ac_try) 2>&5 | |
17410 | ac_status=$? | |
17411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17412 | (exit $ac_status); }; } && | |
17413 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17415 | (eval $ac_try) 2>&5 | |
17416 | ac_status=$? | |
17417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17418 | (exit $ac_status); }; }; then | |
17419 | ac_hi=$ac_mid | |
17420 | else | |
17421 | echo "$as_me: failed program was:" >&5 | |
17422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17423 | ||
17424 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17425 | fi | |
ac1cb8d3 | 17426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17427 | done |
17428 | case $ac_lo in | |
17429 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17430 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17431 | See \`config.log' for more details." >&5 | |
17432 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17433 | See \`config.log' for more details." >&2;} | |
17434 | { (exit 1); exit 1; }; } ;; | |
17435 | esac | |
17436 | else | |
17437 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
17438 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17439 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17440 | { (exit 1); exit 1; }; } |
17441 | else | |
17442 | cat >conftest.$ac_ext <<_ACEOF | |
17443 | /* confdefs.h. */ | |
17444 | _ACEOF | |
17445 | cat confdefs.h >>conftest.$ac_ext | |
17446 | cat >>conftest.$ac_ext <<_ACEOF | |
17447 | /* end confdefs.h. */ | |
17448 | $ac_includes_default | |
17449 | long longval () { return (long) (sizeof (long)); } | |
17450 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
17451 | #include <stdio.h> | |
17452 | #include <stdlib.h> | |
17453 | int | |
17454 | main () | |
17455 | { | |
17456 | ||
17457 | FILE *f = fopen ("conftest.val", "w"); | |
17458 | if (! f) | |
17459 | exit (1); | |
17460 | if (((long) (sizeof (long))) < 0) | |
17461 | { | |
17462 | long i = longval (); | |
17463 | if (i != ((long) (sizeof (long)))) | |
17464 | exit (1); | |
17465 | fprintf (f, "%ld\n", i); | |
17466 | } | |
17467 | else | |
17468 | { | |
17469 | unsigned long i = ulongval (); | |
17470 | if (i != ((long) (sizeof (long)))) | |
17471 | exit (1); | |
17472 | fprintf (f, "%lu\n", i); | |
17473 | } | |
17474 | exit (ferror (f) || fclose (f) != 0); | |
17475 | ||
17476 | ; | |
17477 | return 0; | |
17478 | } | |
17479 | _ACEOF | |
17480 | rm -f conftest$ac_exeext | |
17481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17482 | (eval $ac_link) 2>&5 | |
17483 | ac_status=$? | |
17484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17487 | (eval $ac_try) 2>&5 | |
17488 | ac_status=$? | |
17489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17490 | (exit $ac_status); }; }; then | |
17491 | ac_cv_sizeof_long=`cat conftest.val` | |
17492 | else | |
17493 | echo "$as_me: program exited with status $ac_status" >&5 | |
17494 | echo "$as_me: failed program was:" >&5 | |
17495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17496 | ||
17497 | ( exit $ac_status ) | |
17498 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17499 | See \`config.log' for more details." >&5 | |
17500 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17501 | See \`config.log' for more details." >&2;} | |
17502 | { (exit 1); exit 1; }; } | |
17503 | fi | |
ac1cb8d3 | 17504 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17505 | fi |
17506 | fi | |
17507 | rm -f conftest.val | |
17508 | else | |
17509 | ac_cv_sizeof_long=0 | |
17510 | fi | |
17511 | fi | |
17512 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
17513 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
17514 | cat >>confdefs.h <<_ACEOF | |
17515 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17516 | _ACEOF | |
17517 | ||
17518 | ||
17519 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
17520 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
17521 | if test "${ac_cv_type_size_t+set}" = set; then | |
17522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17523 | else | |
17524 | cat >conftest.$ac_ext <<_ACEOF | |
17525 | /* confdefs.h. */ | |
17526 | _ACEOF | |
17527 | cat confdefs.h >>conftest.$ac_ext | |
17528 | cat >>conftest.$ac_ext <<_ACEOF | |
17529 | /* end confdefs.h. */ | |
17530 | $ac_includes_default | |
17531 | int | |
17532 | main () | |
17533 | { | |
17534 | if ((size_t *) 0) | |
17535 | return 0; | |
17536 | if (sizeof (size_t)) | |
17537 | return 0; | |
17538 | ; | |
17539 | return 0; | |
17540 | } | |
17541 | _ACEOF | |
17542 | rm -f conftest.$ac_objext | |
17543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17544 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17545 | ac_status=$? |
ac1cb8d3 VS |
17546 | grep -v '^ *+' conftest.er1 >conftest.err |
17547 | rm -f conftest.er1 | |
17548 | cat conftest.err >&5 | |
a848cd7e SC |
17549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17550 | (exit $ac_status); } && | |
9dd0f6c2 | 17551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17553 | (eval $ac_try) 2>&5 | |
17554 | ac_status=$? | |
17555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17556 | (exit $ac_status); }; } && | |
17557 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17559 | (eval $ac_try) 2>&5 | |
17560 | ac_status=$? | |
17561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17562 | (exit $ac_status); }; }; then | |
17563 | ac_cv_type_size_t=yes | |
17564 | else | |
17565 | echo "$as_me: failed program was:" >&5 | |
17566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17567 | ||
17568 | ac_cv_type_size_t=no | |
17569 | fi | |
ac1cb8d3 | 17570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17571 | fi |
17572 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
17573 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
17574 | ||
17575 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
17576 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
17577 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
17578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17579 | else | |
17580 | if test "$ac_cv_type_size_t" = yes; then | |
17581 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17582 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17583 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17584 | # This bug is HP SR number 8606223364. | |
17585 | if test "$cross_compiling" = yes; then | |
17586 | # Depending upon the size, compute the lo and hi bounds. | |
17587 | cat >conftest.$ac_ext <<_ACEOF | |
17588 | /* confdefs.h. */ | |
17589 | _ACEOF | |
17590 | cat confdefs.h >>conftest.$ac_ext | |
17591 | cat >>conftest.$ac_ext <<_ACEOF | |
17592 | /* end confdefs.h. */ | |
17593 | $ac_includes_default | |
17594 | int | |
17595 | main () | |
17596 | { | |
17597 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
17598 | test_array [0] = 0 | |
17599 | ||
17600 | ; | |
17601 | return 0; | |
17602 | } | |
17603 | _ACEOF | |
17604 | rm -f conftest.$ac_objext | |
17605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17606 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17607 | ac_status=$? |
ac1cb8d3 VS |
17608 | grep -v '^ *+' conftest.er1 >conftest.err |
17609 | rm -f conftest.er1 | |
17610 | cat conftest.err >&5 | |
a848cd7e SC |
17611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17612 | (exit $ac_status); } && | |
9dd0f6c2 | 17613 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17615 | (eval $ac_try) 2>&5 | |
17616 | ac_status=$? | |
17617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17618 | (exit $ac_status); }; } && | |
17619 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17621 | (eval $ac_try) 2>&5 | |
17622 | ac_status=$? | |
17623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17624 | (exit $ac_status); }; }; then | |
17625 | ac_lo=0 ac_mid=0 | |
17626 | while :; do | |
17627 | cat >conftest.$ac_ext <<_ACEOF | |
17628 | /* confdefs.h. */ | |
17629 | _ACEOF | |
17630 | cat confdefs.h >>conftest.$ac_ext | |
17631 | cat >>conftest.$ac_ext <<_ACEOF | |
17632 | /* end confdefs.h. */ | |
17633 | $ac_includes_default | |
17634 | int | |
17635 | main () | |
17636 | { | |
17637 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17638 | test_array [0] = 0 | |
17639 | ||
17640 | ; | |
17641 | return 0; | |
17642 | } | |
17643 | _ACEOF | |
17644 | rm -f conftest.$ac_objext | |
17645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17646 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17647 | ac_status=$? |
ac1cb8d3 VS |
17648 | grep -v '^ *+' conftest.er1 >conftest.err |
17649 | rm -f conftest.er1 | |
17650 | cat conftest.err >&5 | |
a848cd7e SC |
17651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17652 | (exit $ac_status); } && | |
9dd0f6c2 | 17653 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17655 | (eval $ac_try) 2>&5 | |
17656 | ac_status=$? | |
17657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17658 | (exit $ac_status); }; } && | |
17659 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17661 | (eval $ac_try) 2>&5 | |
17662 | ac_status=$? | |
17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17664 | (exit $ac_status); }; }; then | |
17665 | ac_hi=$ac_mid; break | |
17666 | else | |
17667 | echo "$as_me: failed program was:" >&5 | |
17668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17669 | ||
17670 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17671 | if test $ac_lo -le $ac_mid; then |
17672 | ac_lo= ac_hi= | |
17673 | break | |
17674 | fi | |
17675 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17676 | fi |
ac1cb8d3 | 17677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17678 | done |
17679 | else | |
17680 | echo "$as_me: failed program was:" >&5 | |
17681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17682 | ||
17683 | cat >conftest.$ac_ext <<_ACEOF | |
17684 | /* confdefs.h. */ | |
17685 | _ACEOF | |
17686 | cat confdefs.h >>conftest.$ac_ext | |
17687 | cat >>conftest.$ac_ext <<_ACEOF | |
17688 | /* end confdefs.h. */ | |
17689 | $ac_includes_default | |
17690 | int | |
17691 | main () | |
17692 | { | |
17693 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
17694 | test_array [0] = 0 | |
17695 | ||
17696 | ; | |
17697 | return 0; | |
17698 | } | |
17699 | _ACEOF | |
17700 | rm -f conftest.$ac_objext | |
17701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17702 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17703 | ac_status=$? |
ac1cb8d3 VS |
17704 | grep -v '^ *+' conftest.er1 >conftest.err |
17705 | rm -f conftest.er1 | |
17706 | cat conftest.err >&5 | |
a848cd7e SC |
17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17708 | (exit $ac_status); } && | |
9dd0f6c2 | 17709 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17711 | (eval $ac_try) 2>&5 | |
17712 | ac_status=$? | |
17713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17714 | (exit $ac_status); }; } && | |
17715 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17717 | (eval $ac_try) 2>&5 | |
17718 | ac_status=$? | |
17719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17720 | (exit $ac_status); }; }; then | |
17721 | ac_hi=-1 ac_mid=-1 | |
17722 | while :; do | |
17723 | cat >conftest.$ac_ext <<_ACEOF | |
17724 | /* confdefs.h. */ | |
17725 | _ACEOF | |
17726 | cat confdefs.h >>conftest.$ac_ext | |
17727 | cat >>conftest.$ac_ext <<_ACEOF | |
17728 | /* end confdefs.h. */ | |
17729 | $ac_includes_default | |
17730 | int | |
17731 | main () | |
17732 | { | |
17733 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
17734 | test_array [0] = 0 | |
17735 | ||
17736 | ; | |
17737 | return 0; | |
17738 | } | |
17739 | _ACEOF | |
17740 | rm -f conftest.$ac_objext | |
17741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17742 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17743 | ac_status=$? |
ac1cb8d3 VS |
17744 | grep -v '^ *+' conftest.er1 >conftest.err |
17745 | rm -f conftest.er1 | |
17746 | cat conftest.err >&5 | |
a848cd7e SC |
17747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17748 | (exit $ac_status); } && | |
9dd0f6c2 | 17749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17751 | (eval $ac_try) 2>&5 | |
17752 | ac_status=$? | |
17753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17754 | (exit $ac_status); }; } && | |
17755 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17757 | (eval $ac_try) 2>&5 | |
17758 | ac_status=$? | |
17759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17760 | (exit $ac_status); }; }; then | |
17761 | ac_lo=$ac_mid; break | |
17762 | else | |
17763 | echo "$as_me: failed program was:" >&5 | |
17764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17765 | ||
17766 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17767 | if test $ac_mid -le $ac_hi; then |
17768 | ac_lo= ac_hi= | |
17769 | break | |
17770 | fi | |
17771 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17772 | fi |
ac1cb8d3 | 17773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17774 | done |
17775 | else | |
17776 | echo "$as_me: failed program was:" >&5 | |
17777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17778 | ||
17779 | ac_lo= ac_hi= | |
17780 | fi | |
ac1cb8d3 | 17781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17782 | fi |
ac1cb8d3 | 17783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17784 | # Binary search between lo and hi bounds. |
17785 | while test "x$ac_lo" != "x$ac_hi"; do | |
17786 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17787 | cat >conftest.$ac_ext <<_ACEOF | |
17788 | /* confdefs.h. */ | |
17789 | _ACEOF | |
17790 | cat confdefs.h >>conftest.$ac_ext | |
17791 | cat >>conftest.$ac_ext <<_ACEOF | |
17792 | /* end confdefs.h. */ | |
17793 | $ac_includes_default | |
17794 | int | |
17795 | main () | |
17796 | { | |
17797 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17798 | test_array [0] = 0 | |
17799 | ||
17800 | ; | |
17801 | return 0; | |
17802 | } | |
17803 | _ACEOF | |
17804 | rm -f conftest.$ac_objext | |
17805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17806 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17807 | ac_status=$? |
ac1cb8d3 VS |
17808 | grep -v '^ *+' conftest.er1 >conftest.err |
17809 | rm -f conftest.er1 | |
17810 | cat conftest.err >&5 | |
a848cd7e SC |
17811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17812 | (exit $ac_status); } && | |
9dd0f6c2 | 17813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17815 | (eval $ac_try) 2>&5 | |
17816 | ac_status=$? | |
17817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17818 | (exit $ac_status); }; } && | |
17819 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17821 | (eval $ac_try) 2>&5 | |
17822 | ac_status=$? | |
17823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17824 | (exit $ac_status); }; }; then | |
17825 | ac_hi=$ac_mid | |
17826 | else | |
17827 | echo "$as_me: failed program was:" >&5 | |
17828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17829 | ||
17830 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17831 | fi | |
ac1cb8d3 | 17832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17833 | done |
17834 | case $ac_lo in | |
17835 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
17836 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17837 | See \`config.log' for more details." >&5 | |
17838 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17839 | See \`config.log' for more details." >&2;} | |
17840 | { (exit 1); exit 1; }; } ;; | |
17841 | esac | |
17842 | else | |
17843 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
17844 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17845 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17846 | { (exit 1); exit 1; }; } |
17847 | else | |
17848 | cat >conftest.$ac_ext <<_ACEOF | |
17849 | /* confdefs.h. */ | |
17850 | _ACEOF | |
17851 | cat confdefs.h >>conftest.$ac_ext | |
17852 | cat >>conftest.$ac_ext <<_ACEOF | |
17853 | /* end confdefs.h. */ | |
17854 | $ac_includes_default | |
17855 | long longval () { return (long) (sizeof (size_t)); } | |
17856 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
17857 | #include <stdio.h> | |
17858 | #include <stdlib.h> | |
17859 | int | |
17860 | main () | |
17861 | { | |
17862 | ||
17863 | FILE *f = fopen ("conftest.val", "w"); | |
17864 | if (! f) | |
17865 | exit (1); | |
17866 | if (((long) (sizeof (size_t))) < 0) | |
17867 | { | |
17868 | long i = longval (); | |
17869 | if (i != ((long) (sizeof (size_t)))) | |
17870 | exit (1); | |
17871 | fprintf (f, "%ld\n", i); | |
17872 | } | |
17873 | else | |
17874 | { | |
17875 | unsigned long i = ulongval (); | |
17876 | if (i != ((long) (sizeof (size_t)))) | |
17877 | exit (1); | |
17878 | fprintf (f, "%lu\n", i); | |
17879 | } | |
17880 | exit (ferror (f) || fclose (f) != 0); | |
17881 | ||
17882 | ; | |
17883 | return 0; | |
17884 | } | |
17885 | _ACEOF | |
17886 | rm -f conftest$ac_exeext | |
17887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17888 | (eval $ac_link) 2>&5 | |
17889 | ac_status=$? | |
17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17891 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17893 | (eval $ac_try) 2>&5 | |
17894 | ac_status=$? | |
17895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17896 | (exit $ac_status); }; }; then | |
17897 | ac_cv_sizeof_size_t=`cat conftest.val` | |
17898 | else | |
17899 | echo "$as_me: program exited with status $ac_status" >&5 | |
17900 | echo "$as_me: failed program was:" >&5 | |
17901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17902 | ||
17903 | ( exit $ac_status ) | |
17904 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17905 | See \`config.log' for more details." >&5 | |
17906 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17907 | See \`config.log' for more details." >&2;} | |
17908 | { (exit 1); exit 1; }; } | |
17909 | fi | |
ac1cb8d3 | 17910 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17911 | fi |
17912 | fi | |
17913 | rm -f conftest.val | |
17914 | else | |
17915 | ac_cv_sizeof_size_t=0 | |
17916 | fi | |
17917 | fi | |
17918 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
17919 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
17920 | cat >>confdefs.h <<_ACEOF | |
17921 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
17922 | _ACEOF | |
17923 | ||
17924 | ||
17925 | ||
17926 | case "${host}" in | |
17927 | arm-*-linux* ) | |
17928 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17929 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17930 | if test "${ac_cv_type_long_long+set}" = set; then | |
17931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17932 | else | |
17933 | cat >conftest.$ac_ext <<_ACEOF | |
17934 | /* confdefs.h. */ | |
17935 | _ACEOF | |
17936 | cat confdefs.h >>conftest.$ac_ext | |
17937 | cat >>conftest.$ac_ext <<_ACEOF | |
17938 | /* end confdefs.h. */ | |
17939 | $ac_includes_default | |
17940 | int | |
17941 | main () | |
17942 | { | |
17943 | if ((long long *) 0) | |
17944 | return 0; | |
17945 | if (sizeof (long long)) | |
17946 | return 0; | |
17947 | ; | |
17948 | return 0; | |
17949 | } | |
17950 | _ACEOF | |
17951 | rm -f conftest.$ac_objext | |
17952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17953 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17954 | ac_status=$? |
ac1cb8d3 VS |
17955 | grep -v '^ *+' conftest.er1 >conftest.err |
17956 | rm -f conftest.er1 | |
17957 | cat conftest.err >&5 | |
a848cd7e SC |
17958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17959 | (exit $ac_status); } && | |
9dd0f6c2 | 17960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17962 | (eval $ac_try) 2>&5 | |
17963 | ac_status=$? | |
17964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17965 | (exit $ac_status); }; } && | |
17966 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17968 | (eval $ac_try) 2>&5 | |
17969 | ac_status=$? | |
17970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17971 | (exit $ac_status); }; }; then | |
17972 | ac_cv_type_long_long=yes | |
17973 | else | |
17974 | echo "$as_me: failed program was:" >&5 | |
17975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17976 | ||
17977 | ac_cv_type_long_long=no | |
17978 | fi | |
ac1cb8d3 | 17979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17980 | fi |
17981 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17982 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17983 | ||
17984 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17985 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17986 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17988 | else | |
17989 | if test "$ac_cv_type_long_long" = yes; then | |
17990 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17991 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17992 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17993 | # This bug is HP SR number 8606223364. | |
17994 | if test "$cross_compiling" = yes; then | |
17995 | # Depending upon the size, compute the lo and hi bounds. | |
17996 | cat >conftest.$ac_ext <<_ACEOF | |
17997 | /* confdefs.h. */ | |
17998 | _ACEOF | |
17999 | cat confdefs.h >>conftest.$ac_ext | |
18000 | cat >>conftest.$ac_ext <<_ACEOF | |
18001 | /* end confdefs.h. */ | |
18002 | $ac_includes_default | |
18003 | int | |
18004 | main () | |
18005 | { | |
18006 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18007 | test_array [0] = 0 | |
18008 | ||
18009 | ; | |
18010 | return 0; | |
18011 | } | |
18012 | _ACEOF | |
18013 | rm -f conftest.$ac_objext | |
18014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18016 | ac_status=$? |
ac1cb8d3 VS |
18017 | grep -v '^ *+' conftest.er1 >conftest.err |
18018 | rm -f conftest.er1 | |
18019 | cat conftest.err >&5 | |
a848cd7e SC |
18020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18021 | (exit $ac_status); } && | |
9dd0f6c2 | 18022 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18024 | (eval $ac_try) 2>&5 | |
18025 | ac_status=$? | |
18026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18027 | (exit $ac_status); }; } && | |
18028 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18030 | (eval $ac_try) 2>&5 | |
18031 | ac_status=$? | |
18032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18033 | (exit $ac_status); }; }; then | |
18034 | ac_lo=0 ac_mid=0 | |
18035 | while :; do | |
18036 | cat >conftest.$ac_ext <<_ACEOF | |
18037 | /* confdefs.h. */ | |
18038 | _ACEOF | |
18039 | cat confdefs.h >>conftest.$ac_ext | |
18040 | cat >>conftest.$ac_ext <<_ACEOF | |
18041 | /* end confdefs.h. */ | |
18042 | $ac_includes_default | |
18043 | int | |
18044 | main () | |
18045 | { | |
18046 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18047 | test_array [0] = 0 | |
18048 | ||
18049 | ; | |
18050 | return 0; | |
18051 | } | |
18052 | _ACEOF | |
18053 | rm -f conftest.$ac_objext | |
18054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18055 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18056 | ac_status=$? |
ac1cb8d3 VS |
18057 | grep -v '^ *+' conftest.er1 >conftest.err |
18058 | rm -f conftest.er1 | |
18059 | cat conftest.err >&5 | |
a848cd7e SC |
18060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18061 | (exit $ac_status); } && | |
9dd0f6c2 | 18062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18064 | (eval $ac_try) 2>&5 | |
18065 | ac_status=$? | |
18066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18067 | (exit $ac_status); }; } && | |
18068 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18070 | (eval $ac_try) 2>&5 | |
18071 | ac_status=$? | |
18072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18073 | (exit $ac_status); }; }; then | |
18074 | ac_hi=$ac_mid; break | |
18075 | else | |
18076 | echo "$as_me: failed program was:" >&5 | |
18077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18078 | ||
18079 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18080 | if test $ac_lo -le $ac_mid; then |
18081 | ac_lo= ac_hi= | |
18082 | break | |
18083 | fi | |
18084 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18085 | fi |
ac1cb8d3 | 18086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18087 | done |
18088 | else | |
18089 | echo "$as_me: failed program was:" >&5 | |
18090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18091 | ||
18092 | cat >conftest.$ac_ext <<_ACEOF | |
18093 | /* confdefs.h. */ | |
18094 | _ACEOF | |
18095 | cat confdefs.h >>conftest.$ac_ext | |
18096 | cat >>conftest.$ac_ext <<_ACEOF | |
18097 | /* end confdefs.h. */ | |
18098 | $ac_includes_default | |
18099 | int | |
18100 | main () | |
18101 | { | |
18102 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18103 | test_array [0] = 0 | |
18104 | ||
18105 | ; | |
18106 | return 0; | |
18107 | } | |
18108 | _ACEOF | |
18109 | rm -f conftest.$ac_objext | |
18110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18112 | ac_status=$? |
ac1cb8d3 VS |
18113 | grep -v '^ *+' conftest.er1 >conftest.err |
18114 | rm -f conftest.er1 | |
18115 | cat conftest.err >&5 | |
a848cd7e SC |
18116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18117 | (exit $ac_status); } && | |
9dd0f6c2 | 18118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18120 | (eval $ac_try) 2>&5 | |
18121 | ac_status=$? | |
18122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18123 | (exit $ac_status); }; } && | |
18124 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18126 | (eval $ac_try) 2>&5 | |
18127 | ac_status=$? | |
18128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18129 | (exit $ac_status); }; }; then | |
18130 | ac_hi=-1 ac_mid=-1 | |
18131 | while :; do | |
18132 | cat >conftest.$ac_ext <<_ACEOF | |
18133 | /* confdefs.h. */ | |
18134 | _ACEOF | |
18135 | cat confdefs.h >>conftest.$ac_ext | |
18136 | cat >>conftest.$ac_ext <<_ACEOF | |
18137 | /* end confdefs.h. */ | |
18138 | $ac_includes_default | |
18139 | int | |
18140 | main () | |
18141 | { | |
18142 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18143 | test_array [0] = 0 | |
18144 | ||
18145 | ; | |
18146 | return 0; | |
18147 | } | |
18148 | _ACEOF | |
18149 | rm -f conftest.$ac_objext | |
18150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18151 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18152 | ac_status=$? |
ac1cb8d3 VS |
18153 | grep -v '^ *+' conftest.er1 >conftest.err |
18154 | rm -f conftest.er1 | |
18155 | cat conftest.err >&5 | |
a848cd7e SC |
18156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18157 | (exit $ac_status); } && | |
9dd0f6c2 | 18158 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18160 | (eval $ac_try) 2>&5 | |
18161 | ac_status=$? | |
18162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18163 | (exit $ac_status); }; } && | |
18164 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18166 | (eval $ac_try) 2>&5 | |
18167 | ac_status=$? | |
18168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18169 | (exit $ac_status); }; }; then | |
18170 | ac_lo=$ac_mid; break | |
18171 | else | |
18172 | echo "$as_me: failed program was:" >&5 | |
18173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18174 | ||
18175 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18176 | if test $ac_mid -le $ac_hi; then |
18177 | ac_lo= ac_hi= | |
18178 | break | |
18179 | fi | |
18180 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18181 | fi |
ac1cb8d3 | 18182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18183 | done |
18184 | else | |
18185 | echo "$as_me: failed program was:" >&5 | |
18186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18187 | ||
18188 | ac_lo= ac_hi= | |
18189 | fi | |
ac1cb8d3 | 18190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18191 | fi |
ac1cb8d3 | 18192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18193 | # Binary search between lo and hi bounds. |
18194 | while test "x$ac_lo" != "x$ac_hi"; do | |
18195 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18196 | cat >conftest.$ac_ext <<_ACEOF | |
18197 | /* confdefs.h. */ | |
18198 | _ACEOF | |
18199 | cat confdefs.h >>conftest.$ac_ext | |
18200 | cat >>conftest.$ac_ext <<_ACEOF | |
18201 | /* end confdefs.h. */ | |
18202 | $ac_includes_default | |
18203 | int | |
18204 | main () | |
18205 | { | |
18206 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18207 | test_array [0] = 0 | |
18208 | ||
18209 | ; | |
18210 | return 0; | |
18211 | } | |
18212 | _ACEOF | |
18213 | rm -f conftest.$ac_objext | |
18214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18215 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18216 | ac_status=$? |
ac1cb8d3 VS |
18217 | grep -v '^ *+' conftest.er1 >conftest.err |
18218 | rm -f conftest.er1 | |
18219 | cat conftest.err >&5 | |
a848cd7e SC |
18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18221 | (exit $ac_status); } && | |
9dd0f6c2 | 18222 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18224 | (eval $ac_try) 2>&5 | |
18225 | ac_status=$? | |
18226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18227 | (exit $ac_status); }; } && | |
18228 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18230 | (eval $ac_try) 2>&5 | |
18231 | ac_status=$? | |
18232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18233 | (exit $ac_status); }; }; then | |
18234 | ac_hi=$ac_mid | |
18235 | else | |
18236 | echo "$as_me: failed program was:" >&5 | |
18237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18238 | ||
18239 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18240 | fi | |
ac1cb8d3 | 18241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18242 | done |
18243 | case $ac_lo in | |
18244 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18245 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18246 | See \`config.log' for more details." >&5 | |
18247 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18248 | See \`config.log' for more details." >&2;} | |
18249 | { (exit 1); exit 1; }; } ;; | |
18250 | esac | |
18251 | else | |
18252 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
18253 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18254 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18255 | { (exit 1); exit 1; }; } |
18256 | else | |
18257 | cat >conftest.$ac_ext <<_ACEOF | |
18258 | /* confdefs.h. */ | |
18259 | _ACEOF | |
18260 | cat confdefs.h >>conftest.$ac_ext | |
18261 | cat >>conftest.$ac_ext <<_ACEOF | |
18262 | /* end confdefs.h. */ | |
18263 | $ac_includes_default | |
18264 | long longval () { return (long) (sizeof (long long)); } | |
18265 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18266 | #include <stdio.h> | |
18267 | #include <stdlib.h> | |
18268 | int | |
18269 | main () | |
18270 | { | |
18271 | ||
18272 | FILE *f = fopen ("conftest.val", "w"); | |
18273 | if (! f) | |
18274 | exit (1); | |
18275 | if (((long) (sizeof (long long))) < 0) | |
18276 | { | |
18277 | long i = longval (); | |
18278 | if (i != ((long) (sizeof (long long)))) | |
18279 | exit (1); | |
18280 | fprintf (f, "%ld\n", i); | |
18281 | } | |
18282 | else | |
18283 | { | |
18284 | unsigned long i = ulongval (); | |
18285 | if (i != ((long) (sizeof (long long)))) | |
18286 | exit (1); | |
18287 | fprintf (f, "%lu\n", i); | |
18288 | } | |
18289 | exit (ferror (f) || fclose (f) != 0); | |
18290 | ||
18291 | ; | |
18292 | return 0; | |
18293 | } | |
18294 | _ACEOF | |
18295 | rm -f conftest$ac_exeext | |
18296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18297 | (eval $ac_link) 2>&5 | |
18298 | ac_status=$? | |
18299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18300 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18302 | (eval $ac_try) 2>&5 | |
18303 | ac_status=$? | |
18304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18305 | (exit $ac_status); }; }; then | |
18306 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18307 | else | |
18308 | echo "$as_me: program exited with status $ac_status" >&5 | |
18309 | echo "$as_me: failed program was:" >&5 | |
18310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18311 | ||
18312 | ( exit $ac_status ) | |
18313 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18314 | See \`config.log' for more details." >&5 | |
18315 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18316 | See \`config.log' for more details." >&2;} | |
18317 | { (exit 1); exit 1; }; } | |
18318 | fi | |
ac1cb8d3 | 18319 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18320 | fi |
18321 | fi | |
18322 | rm -f conftest.val | |
18323 | else | |
18324 | ac_cv_sizeof_long_long=0 | |
18325 | fi | |
18326 | fi | |
18327 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18328 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18329 | cat >>confdefs.h <<_ACEOF | |
18330 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18331 | _ACEOF | |
18332 | ||
18333 | ||
18334 | ;; | |
18335 | *-hp-hpux* ) | |
18336 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18337 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18338 | if test "${ac_cv_type_long_long+set}" = set; then | |
18339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18340 | else | |
18341 | cat >conftest.$ac_ext <<_ACEOF | |
18342 | /* confdefs.h. */ | |
18343 | _ACEOF | |
18344 | cat confdefs.h >>conftest.$ac_ext | |
18345 | cat >>conftest.$ac_ext <<_ACEOF | |
18346 | /* end confdefs.h. */ | |
18347 | $ac_includes_default | |
18348 | int | |
18349 | main () | |
18350 | { | |
18351 | if ((long long *) 0) | |
18352 | return 0; | |
18353 | if (sizeof (long long)) | |
18354 | return 0; | |
18355 | ; | |
18356 | return 0; | |
18357 | } | |
18358 | _ACEOF | |
18359 | rm -f conftest.$ac_objext | |
18360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18361 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18362 | ac_status=$? |
ac1cb8d3 VS |
18363 | grep -v '^ *+' conftest.er1 >conftest.err |
18364 | rm -f conftest.er1 | |
18365 | cat conftest.err >&5 | |
a848cd7e SC |
18366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18367 | (exit $ac_status); } && | |
9dd0f6c2 | 18368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18370 | (eval $ac_try) 2>&5 | |
18371 | ac_status=$? | |
18372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18373 | (exit $ac_status); }; } && | |
18374 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18376 | (eval $ac_try) 2>&5 | |
18377 | ac_status=$? | |
18378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18379 | (exit $ac_status); }; }; then | |
18380 | ac_cv_type_long_long=yes | |
18381 | else | |
18382 | echo "$as_me: failed program was:" >&5 | |
18383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18384 | ||
18385 | ac_cv_type_long_long=no | |
18386 | fi | |
ac1cb8d3 | 18387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18388 | fi |
18389 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18390 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18391 | ||
18392 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18393 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18394 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18396 | else | |
18397 | if test "$ac_cv_type_long_long" = yes; then | |
18398 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18399 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18400 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18401 | # This bug is HP SR number 8606223364. | |
18402 | if test "$cross_compiling" = yes; then | |
18403 | # Depending upon the size, compute the lo and hi bounds. | |
18404 | cat >conftest.$ac_ext <<_ACEOF | |
18405 | /* confdefs.h. */ | |
18406 | _ACEOF | |
18407 | cat confdefs.h >>conftest.$ac_ext | |
18408 | cat >>conftest.$ac_ext <<_ACEOF | |
18409 | /* end confdefs.h. */ | |
18410 | $ac_includes_default | |
18411 | int | |
18412 | main () | |
18413 | { | |
18414 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18415 | test_array [0] = 0 | |
18416 | ||
18417 | ; | |
18418 | return 0; | |
18419 | } | |
18420 | _ACEOF | |
18421 | rm -f conftest.$ac_objext | |
18422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18423 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18424 | ac_status=$? |
ac1cb8d3 VS |
18425 | grep -v '^ *+' conftest.er1 >conftest.err |
18426 | rm -f conftest.er1 | |
18427 | cat conftest.err >&5 | |
a848cd7e SC |
18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18429 | (exit $ac_status); } && | |
9dd0f6c2 | 18430 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18432 | (eval $ac_try) 2>&5 | |
18433 | ac_status=$? | |
18434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18435 | (exit $ac_status); }; } && | |
18436 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18438 | (eval $ac_try) 2>&5 | |
18439 | ac_status=$? | |
18440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18441 | (exit $ac_status); }; }; then | |
18442 | ac_lo=0 ac_mid=0 | |
18443 | while :; do | |
18444 | cat >conftest.$ac_ext <<_ACEOF | |
18445 | /* confdefs.h. */ | |
18446 | _ACEOF | |
18447 | cat confdefs.h >>conftest.$ac_ext | |
18448 | cat >>conftest.$ac_ext <<_ACEOF | |
18449 | /* end confdefs.h. */ | |
18450 | $ac_includes_default | |
18451 | int | |
18452 | main () | |
18453 | { | |
18454 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18455 | test_array [0] = 0 | |
18456 | ||
18457 | ; | |
18458 | return 0; | |
18459 | } | |
18460 | _ACEOF | |
18461 | rm -f conftest.$ac_objext | |
18462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18463 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18464 | ac_status=$? |
ac1cb8d3 VS |
18465 | grep -v '^ *+' conftest.er1 >conftest.err |
18466 | rm -f conftest.er1 | |
18467 | cat conftest.err >&5 | |
a848cd7e SC |
18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18469 | (exit $ac_status); } && | |
9dd0f6c2 | 18470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18472 | (eval $ac_try) 2>&5 | |
18473 | ac_status=$? | |
18474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18475 | (exit $ac_status); }; } && | |
18476 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18478 | (eval $ac_try) 2>&5 | |
18479 | ac_status=$? | |
18480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18481 | (exit $ac_status); }; }; then | |
18482 | ac_hi=$ac_mid; break | |
18483 | else | |
18484 | echo "$as_me: failed program was:" >&5 | |
18485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18486 | ||
18487 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18488 | if test $ac_lo -le $ac_mid; then |
18489 | ac_lo= ac_hi= | |
18490 | break | |
18491 | fi | |
18492 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18493 | fi |
ac1cb8d3 | 18494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18495 | done |
18496 | else | |
18497 | echo "$as_me: failed program was:" >&5 | |
18498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18499 | ||
18500 | cat >conftest.$ac_ext <<_ACEOF | |
18501 | /* confdefs.h. */ | |
18502 | _ACEOF | |
18503 | cat confdefs.h >>conftest.$ac_ext | |
18504 | cat >>conftest.$ac_ext <<_ACEOF | |
18505 | /* end confdefs.h. */ | |
18506 | $ac_includes_default | |
18507 | int | |
18508 | main () | |
18509 | { | |
18510 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18511 | test_array [0] = 0 | |
18512 | ||
18513 | ; | |
18514 | return 0; | |
18515 | } | |
18516 | _ACEOF | |
18517 | rm -f conftest.$ac_objext | |
18518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18519 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18520 | ac_status=$? |
ac1cb8d3 VS |
18521 | grep -v '^ *+' conftest.er1 >conftest.err |
18522 | rm -f conftest.er1 | |
18523 | cat conftest.err >&5 | |
a848cd7e SC |
18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18525 | (exit $ac_status); } && | |
9dd0f6c2 | 18526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18528 | (eval $ac_try) 2>&5 | |
18529 | ac_status=$? | |
18530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18531 | (exit $ac_status); }; } && | |
18532 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18534 | (eval $ac_try) 2>&5 | |
18535 | ac_status=$? | |
18536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18537 | (exit $ac_status); }; }; then | |
18538 | ac_hi=-1 ac_mid=-1 | |
18539 | while :; do | |
18540 | cat >conftest.$ac_ext <<_ACEOF | |
18541 | /* confdefs.h. */ | |
18542 | _ACEOF | |
18543 | cat confdefs.h >>conftest.$ac_ext | |
18544 | cat >>conftest.$ac_ext <<_ACEOF | |
18545 | /* end confdefs.h. */ | |
18546 | $ac_includes_default | |
18547 | int | |
18548 | main () | |
18549 | { | |
18550 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18551 | test_array [0] = 0 | |
18552 | ||
18553 | ; | |
18554 | return 0; | |
18555 | } | |
18556 | _ACEOF | |
18557 | rm -f conftest.$ac_objext | |
18558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18559 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18560 | ac_status=$? |
ac1cb8d3 VS |
18561 | grep -v '^ *+' conftest.er1 >conftest.err |
18562 | rm -f conftest.er1 | |
18563 | cat conftest.err >&5 | |
a848cd7e SC |
18564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18565 | (exit $ac_status); } && | |
9dd0f6c2 | 18566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18568 | (eval $ac_try) 2>&5 | |
18569 | ac_status=$? | |
18570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18571 | (exit $ac_status); }; } && | |
18572 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18574 | (eval $ac_try) 2>&5 | |
18575 | ac_status=$? | |
18576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18577 | (exit $ac_status); }; }; then | |
18578 | ac_lo=$ac_mid; break | |
18579 | else | |
18580 | echo "$as_me: failed program was:" >&5 | |
18581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18582 | ||
18583 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18584 | if test $ac_mid -le $ac_hi; then |
18585 | ac_lo= ac_hi= | |
18586 | break | |
18587 | fi | |
18588 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18589 | fi |
ac1cb8d3 | 18590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18591 | done |
18592 | else | |
18593 | echo "$as_me: failed program was:" >&5 | |
18594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18595 | ||
18596 | ac_lo= ac_hi= | |
18597 | fi | |
ac1cb8d3 | 18598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18599 | fi |
ac1cb8d3 | 18600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18601 | # Binary search between lo and hi bounds. |
18602 | while test "x$ac_lo" != "x$ac_hi"; do | |
18603 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18604 | cat >conftest.$ac_ext <<_ACEOF | |
18605 | /* confdefs.h. */ | |
18606 | _ACEOF | |
18607 | cat confdefs.h >>conftest.$ac_ext | |
18608 | cat >>conftest.$ac_ext <<_ACEOF | |
18609 | /* end confdefs.h. */ | |
18610 | $ac_includes_default | |
18611 | int | |
18612 | main () | |
18613 | { | |
18614 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18615 | test_array [0] = 0 | |
18616 | ||
18617 | ; | |
18618 | return 0; | |
18619 | } | |
18620 | _ACEOF | |
18621 | rm -f conftest.$ac_objext | |
18622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18623 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18624 | ac_status=$? |
ac1cb8d3 VS |
18625 | grep -v '^ *+' conftest.er1 >conftest.err |
18626 | rm -f conftest.er1 | |
18627 | cat conftest.err >&5 | |
a848cd7e SC |
18628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18629 | (exit $ac_status); } && | |
9dd0f6c2 | 18630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18632 | (eval $ac_try) 2>&5 | |
18633 | ac_status=$? | |
18634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18635 | (exit $ac_status); }; } && | |
18636 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18638 | (eval $ac_try) 2>&5 | |
18639 | ac_status=$? | |
18640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18641 | (exit $ac_status); }; }; then | |
18642 | ac_hi=$ac_mid | |
18643 | else | |
18644 | echo "$as_me: failed program was:" >&5 | |
18645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18646 | ||
18647 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18648 | fi | |
ac1cb8d3 | 18649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18650 | done |
18651 | case $ac_lo in | |
18652 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18653 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18654 | See \`config.log' for more details." >&5 | |
18655 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18656 | See \`config.log' for more details." >&2;} | |
18657 | { (exit 1); exit 1; }; } ;; | |
18658 | esac | |
18659 | else | |
18660 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
18661 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18662 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18663 | { (exit 1); exit 1; }; } |
18664 | else | |
18665 | cat >conftest.$ac_ext <<_ACEOF | |
18666 | /* confdefs.h. */ | |
18667 | _ACEOF | |
18668 | cat confdefs.h >>conftest.$ac_ext | |
18669 | cat >>conftest.$ac_ext <<_ACEOF | |
18670 | /* end confdefs.h. */ | |
18671 | $ac_includes_default | |
18672 | long longval () { return (long) (sizeof (long long)); } | |
18673 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18674 | #include <stdio.h> | |
18675 | #include <stdlib.h> | |
18676 | int | |
18677 | main () | |
18678 | { | |
18679 | ||
18680 | FILE *f = fopen ("conftest.val", "w"); | |
18681 | if (! f) | |
18682 | exit (1); | |
18683 | if (((long) (sizeof (long long))) < 0) | |
18684 | { | |
18685 | long i = longval (); | |
18686 | if (i != ((long) (sizeof (long long)))) | |
18687 | exit (1); | |
18688 | fprintf (f, "%ld\n", i); | |
18689 | } | |
18690 | else | |
18691 | { | |
18692 | unsigned long i = ulongval (); | |
18693 | if (i != ((long) (sizeof (long long)))) | |
18694 | exit (1); | |
18695 | fprintf (f, "%lu\n", i); | |
18696 | } | |
18697 | exit (ferror (f) || fclose (f) != 0); | |
18698 | ||
18699 | ; | |
18700 | return 0; | |
18701 | } | |
18702 | _ACEOF | |
18703 | rm -f conftest$ac_exeext | |
18704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18705 | (eval $ac_link) 2>&5 | |
18706 | ac_status=$? | |
18707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18710 | (eval $ac_try) 2>&5 | |
18711 | ac_status=$? | |
18712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18713 | (exit $ac_status); }; }; then | |
18714 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18715 | else | |
18716 | echo "$as_me: program exited with status $ac_status" >&5 | |
18717 | echo "$as_me: failed program was:" >&5 | |
18718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18719 | ||
18720 | ( exit $ac_status ) | |
18721 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18722 | See \`config.log' for more details." >&5 | |
18723 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18724 | See \`config.log' for more details." >&2;} | |
18725 | { (exit 1); exit 1; }; } | |
18726 | fi | |
ac1cb8d3 | 18727 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18728 | fi |
18729 | fi | |
18730 | rm -f conftest.val | |
18731 | else | |
18732 | ac_cv_sizeof_long_long=0 | |
18733 | fi | |
18734 | fi | |
18735 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18736 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18737 | cat >>confdefs.h <<_ACEOF | |
18738 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18739 | _ACEOF | |
18740 | ||
18741 | ||
18742 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
18743 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
18744 | fi | |
18745 | ;; | |
18746 | * ) | |
18747 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18748 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18749 | if test "${ac_cv_type_long_long+set}" = set; then | |
18750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18751 | else | |
18752 | cat >conftest.$ac_ext <<_ACEOF | |
18753 | /* confdefs.h. */ | |
18754 | _ACEOF | |
18755 | cat confdefs.h >>conftest.$ac_ext | |
18756 | cat >>conftest.$ac_ext <<_ACEOF | |
18757 | /* end confdefs.h. */ | |
18758 | $ac_includes_default | |
18759 | int | |
18760 | main () | |
18761 | { | |
18762 | if ((long long *) 0) | |
18763 | return 0; | |
18764 | if (sizeof (long long)) | |
18765 | return 0; | |
18766 | ; | |
18767 | return 0; | |
18768 | } | |
18769 | _ACEOF | |
18770 | rm -f conftest.$ac_objext | |
18771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18772 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18773 | ac_status=$? |
ac1cb8d3 VS |
18774 | grep -v '^ *+' conftest.er1 >conftest.err |
18775 | rm -f conftest.er1 | |
18776 | cat conftest.err >&5 | |
a848cd7e SC |
18777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18778 | (exit $ac_status); } && | |
9dd0f6c2 | 18779 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18781 | (eval $ac_try) 2>&5 | |
18782 | ac_status=$? | |
18783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18784 | (exit $ac_status); }; } && | |
18785 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18787 | (eval $ac_try) 2>&5 | |
18788 | ac_status=$? | |
18789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18790 | (exit $ac_status); }; }; then | |
18791 | ac_cv_type_long_long=yes | |
18792 | else | |
18793 | echo "$as_me: failed program was:" >&5 | |
18794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18795 | ||
18796 | ac_cv_type_long_long=no | |
18797 | fi | |
ac1cb8d3 | 18798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18799 | fi |
18800 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18801 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18802 | ||
18803 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18804 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18805 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18807 | else | |
18808 | if test "$ac_cv_type_long_long" = yes; then | |
18809 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18810 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18811 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18812 | # This bug is HP SR number 8606223364. | |
18813 | if test "$cross_compiling" = yes; then | |
18814 | # Depending upon the size, compute the lo and hi bounds. | |
18815 | cat >conftest.$ac_ext <<_ACEOF | |
18816 | /* confdefs.h. */ | |
18817 | _ACEOF | |
18818 | cat confdefs.h >>conftest.$ac_ext | |
18819 | cat >>conftest.$ac_ext <<_ACEOF | |
18820 | /* end confdefs.h. */ | |
18821 | $ac_includes_default | |
18822 | int | |
18823 | main () | |
18824 | { | |
18825 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18826 | test_array [0] = 0 | |
18827 | ||
18828 | ; | |
18829 | return 0; | |
18830 | } | |
18831 | _ACEOF | |
18832 | rm -f conftest.$ac_objext | |
18833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18834 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18835 | ac_status=$? |
ac1cb8d3 VS |
18836 | grep -v '^ *+' conftest.er1 >conftest.err |
18837 | rm -f conftest.er1 | |
18838 | cat conftest.err >&5 | |
a848cd7e SC |
18839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18840 | (exit $ac_status); } && | |
9dd0f6c2 | 18841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18843 | (eval $ac_try) 2>&5 | |
18844 | ac_status=$? | |
18845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18846 | (exit $ac_status); }; } && | |
18847 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18849 | (eval $ac_try) 2>&5 | |
18850 | ac_status=$? | |
18851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18852 | (exit $ac_status); }; }; then | |
18853 | ac_lo=0 ac_mid=0 | |
18854 | while :; do | |
18855 | cat >conftest.$ac_ext <<_ACEOF | |
18856 | /* confdefs.h. */ | |
18857 | _ACEOF | |
18858 | cat confdefs.h >>conftest.$ac_ext | |
18859 | cat >>conftest.$ac_ext <<_ACEOF | |
18860 | /* end confdefs.h. */ | |
18861 | $ac_includes_default | |
18862 | int | |
18863 | main () | |
18864 | { | |
18865 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18866 | test_array [0] = 0 | |
18867 | ||
18868 | ; | |
18869 | return 0; | |
18870 | } | |
18871 | _ACEOF | |
18872 | rm -f conftest.$ac_objext | |
18873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18874 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18875 | ac_status=$? |
ac1cb8d3 VS |
18876 | grep -v '^ *+' conftest.er1 >conftest.err |
18877 | rm -f conftest.er1 | |
18878 | cat conftest.err >&5 | |
a848cd7e SC |
18879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18880 | (exit $ac_status); } && | |
9dd0f6c2 | 18881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18883 | (eval $ac_try) 2>&5 | |
18884 | ac_status=$? | |
18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18886 | (exit $ac_status); }; } && | |
18887 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18889 | (eval $ac_try) 2>&5 | |
18890 | ac_status=$? | |
18891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18892 | (exit $ac_status); }; }; then | |
18893 | ac_hi=$ac_mid; break | |
18894 | else | |
18895 | echo "$as_me: failed program was:" >&5 | |
18896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18897 | ||
18898 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18899 | if test $ac_lo -le $ac_mid; then |
18900 | ac_lo= ac_hi= | |
18901 | break | |
18902 | fi | |
18903 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18904 | fi |
ac1cb8d3 | 18905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18906 | done |
18907 | else | |
18908 | echo "$as_me: failed program was:" >&5 | |
18909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18910 | ||
18911 | cat >conftest.$ac_ext <<_ACEOF | |
18912 | /* confdefs.h. */ | |
18913 | _ACEOF | |
18914 | cat confdefs.h >>conftest.$ac_ext | |
18915 | cat >>conftest.$ac_ext <<_ACEOF | |
18916 | /* end confdefs.h. */ | |
18917 | $ac_includes_default | |
18918 | int | |
18919 | main () | |
18920 | { | |
18921 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18922 | test_array [0] = 0 | |
18923 | ||
18924 | ; | |
18925 | return 0; | |
18926 | } | |
18927 | _ACEOF | |
18928 | rm -f conftest.$ac_objext | |
18929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18930 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18931 | ac_status=$? |
ac1cb8d3 VS |
18932 | grep -v '^ *+' conftest.er1 >conftest.err |
18933 | rm -f conftest.er1 | |
18934 | cat conftest.err >&5 | |
a848cd7e SC |
18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18936 | (exit $ac_status); } && | |
9dd0f6c2 | 18937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18939 | (eval $ac_try) 2>&5 | |
18940 | ac_status=$? | |
18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18942 | (exit $ac_status); }; } && | |
18943 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18945 | (eval $ac_try) 2>&5 | |
18946 | ac_status=$? | |
18947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18948 | (exit $ac_status); }; }; then | |
18949 | ac_hi=-1 ac_mid=-1 | |
18950 | while :; do | |
18951 | cat >conftest.$ac_ext <<_ACEOF | |
18952 | /* confdefs.h. */ | |
18953 | _ACEOF | |
18954 | cat confdefs.h >>conftest.$ac_ext | |
18955 | cat >>conftest.$ac_ext <<_ACEOF | |
18956 | /* end confdefs.h. */ | |
18957 | $ac_includes_default | |
18958 | int | |
18959 | main () | |
18960 | { | |
18961 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18962 | test_array [0] = 0 | |
18963 | ||
18964 | ; | |
18965 | return 0; | |
18966 | } | |
18967 | _ACEOF | |
18968 | rm -f conftest.$ac_objext | |
18969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18970 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18971 | ac_status=$? |
ac1cb8d3 VS |
18972 | grep -v '^ *+' conftest.er1 >conftest.err |
18973 | rm -f conftest.er1 | |
18974 | cat conftest.err >&5 | |
a848cd7e SC |
18975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18976 | (exit $ac_status); } && | |
9dd0f6c2 | 18977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18979 | (eval $ac_try) 2>&5 | |
18980 | ac_status=$? | |
18981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18982 | (exit $ac_status); }; } && | |
18983 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18985 | (eval $ac_try) 2>&5 | |
18986 | ac_status=$? | |
18987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18988 | (exit $ac_status); }; }; then | |
18989 | ac_lo=$ac_mid; break | |
18990 | else | |
18991 | echo "$as_me: failed program was:" >&5 | |
18992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18993 | ||
18994 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18995 | if test $ac_mid -le $ac_hi; then |
18996 | ac_lo= ac_hi= | |
18997 | break | |
18998 | fi | |
18999 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19000 | fi |
ac1cb8d3 | 19001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19002 | done |
19003 | else | |
19004 | echo "$as_me: failed program was:" >&5 | |
19005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19006 | ||
19007 | ac_lo= ac_hi= | |
19008 | fi | |
ac1cb8d3 | 19009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19010 | fi |
ac1cb8d3 | 19011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19012 | # Binary search between lo and hi bounds. |
19013 | while test "x$ac_lo" != "x$ac_hi"; do | |
19014 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19015 | cat >conftest.$ac_ext <<_ACEOF | |
19016 | /* confdefs.h. */ | |
19017 | _ACEOF | |
19018 | cat confdefs.h >>conftest.$ac_ext | |
19019 | cat >>conftest.$ac_ext <<_ACEOF | |
19020 | /* end confdefs.h. */ | |
19021 | $ac_includes_default | |
19022 | int | |
19023 | main () | |
19024 | { | |
19025 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19026 | test_array [0] = 0 | |
19027 | ||
19028 | ; | |
19029 | return 0; | |
19030 | } | |
19031 | _ACEOF | |
19032 | rm -f conftest.$ac_objext | |
19033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19034 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19035 | ac_status=$? |
ac1cb8d3 VS |
19036 | grep -v '^ *+' conftest.er1 >conftest.err |
19037 | rm -f conftest.er1 | |
19038 | cat conftest.err >&5 | |
a848cd7e SC |
19039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19040 | (exit $ac_status); } && | |
9dd0f6c2 | 19041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19043 | (eval $ac_try) 2>&5 | |
19044 | ac_status=$? | |
19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19046 | (exit $ac_status); }; } && | |
19047 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19049 | (eval $ac_try) 2>&5 | |
19050 | ac_status=$? | |
19051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19052 | (exit $ac_status); }; }; then | |
19053 | ac_hi=$ac_mid | |
19054 | else | |
19055 | echo "$as_me: failed program was:" >&5 | |
19056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19057 | ||
19058 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19059 | fi | |
ac1cb8d3 | 19060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19061 | done |
19062 | case $ac_lo in | |
19063 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19064 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19065 | See \`config.log' for more details." >&5 | |
19066 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19067 | See \`config.log' for more details." >&2;} | |
19068 | { (exit 1); exit 1; }; } ;; | |
19069 | esac | |
19070 | else | |
19071 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
19072 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19073 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19074 | { (exit 1); exit 1; }; } |
19075 | else | |
19076 | cat >conftest.$ac_ext <<_ACEOF | |
19077 | /* confdefs.h. */ | |
19078 | _ACEOF | |
19079 | cat confdefs.h >>conftest.$ac_ext | |
19080 | cat >>conftest.$ac_ext <<_ACEOF | |
19081 | /* end confdefs.h. */ | |
19082 | $ac_includes_default | |
19083 | long longval () { return (long) (sizeof (long long)); } | |
19084 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19085 | #include <stdio.h> | |
19086 | #include <stdlib.h> | |
19087 | int | |
19088 | main () | |
19089 | { | |
19090 | ||
19091 | FILE *f = fopen ("conftest.val", "w"); | |
19092 | if (! f) | |
19093 | exit (1); | |
19094 | if (((long) (sizeof (long long))) < 0) | |
19095 | { | |
19096 | long i = longval (); | |
19097 | if (i != ((long) (sizeof (long long)))) | |
19098 | exit (1); | |
19099 | fprintf (f, "%ld\n", i); | |
19100 | } | |
19101 | else | |
19102 | { | |
19103 | unsigned long i = ulongval (); | |
19104 | if (i != ((long) (sizeof (long long)))) | |
19105 | exit (1); | |
19106 | fprintf (f, "%lu\n", i); | |
19107 | } | |
19108 | exit (ferror (f) || fclose (f) != 0); | |
19109 | ||
19110 | ; | |
19111 | return 0; | |
19112 | } | |
19113 | _ACEOF | |
19114 | rm -f conftest$ac_exeext | |
19115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19116 | (eval $ac_link) 2>&5 | |
19117 | ac_status=$? | |
19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19119 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19121 | (eval $ac_try) 2>&5 | |
19122 | ac_status=$? | |
19123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19124 | (exit $ac_status); }; }; then | |
19125 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19126 | else | |
19127 | echo "$as_me: program exited with status $ac_status" >&5 | |
19128 | echo "$as_me: failed program was:" >&5 | |
19129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19130 | ||
19131 | ( exit $ac_status ) | |
19132 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19133 | See \`config.log' for more details." >&5 | |
19134 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19135 | See \`config.log' for more details." >&2;} | |
19136 | { (exit 1); exit 1; }; } | |
19137 | fi | |
ac1cb8d3 | 19138 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19139 | fi |
19140 | fi | |
19141 | rm -f conftest.val | |
19142 | else | |
19143 | ac_cv_sizeof_long_long=0 | |
19144 | fi | |
19145 | fi | |
19146 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19147 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19148 | cat >>confdefs.h <<_ACEOF | |
19149 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19150 | _ACEOF | |
19151 | ||
19152 | ||
19153 | esac | |
19154 | ||
238ecede MW |
19155 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
19156 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
19157 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
19158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19159 | else | |
19160 | cat >conftest.$ac_ext <<_ACEOF | |
19161 | /* confdefs.h. */ | |
19162 | _ACEOF | |
19163 | cat confdefs.h >>conftest.$ac_ext | |
19164 | cat >>conftest.$ac_ext <<_ACEOF | |
19165 | /* end confdefs.h. */ | |
19166 | ||
19167 | /* DJGPP only has fake wchar_t: */ | |
19168 | #ifdef __DJGPP__ | |
19169 | # error "fake wchar_t" | |
19170 | #endif | |
19171 | #ifdef HAVE_WCHAR_H | |
19172 | # ifdef __CYGWIN__ | |
19173 | # include <stddef.h> | |
19174 | # endif | |
19175 | # include <wchar.h> | |
19176 | #endif | |
19177 | #ifdef HAVE_STDLIB_H | |
19178 | # include <stdlib.h> | |
19179 | #endif | |
19180 | #include <stdio.h> | |
19181 | ||
19182 | ||
19183 | ||
19184 | int | |
19185 | main () | |
19186 | { | |
19187 | if ((wchar_t *) 0) | |
19188 | return 0; | |
19189 | if (sizeof (wchar_t)) | |
19190 | return 0; | |
19191 | ; | |
19192 | return 0; | |
19193 | } | |
19194 | _ACEOF | |
19195 | rm -f conftest.$ac_objext | |
19196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19197 | (eval $ac_compile) 2>conftest.er1 | |
19198 | ac_status=$? | |
19199 | grep -v '^ *+' conftest.er1 >conftest.err | |
19200 | rm -f conftest.er1 | |
19201 | cat conftest.err >&5 | |
19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19203 | (exit $ac_status); } && | |
9dd0f6c2 | 19204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19206 | (eval $ac_try) 2>&5 | |
19207 | ac_status=$? | |
19208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19209 | (exit $ac_status); }; } && | |
19210 | { ac_try='test -s conftest.$ac_objext' | |
19211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19212 | (eval $ac_try) 2>&5 | |
19213 | ac_status=$? | |
19214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19215 | (exit $ac_status); }; }; then | |
19216 | ac_cv_type_wchar_t=yes | |
19217 | else | |
19218 | echo "$as_me: failed program was:" >&5 | |
19219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19220 | ||
19221 | ac_cv_type_wchar_t=no | |
19222 | fi | |
19223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19224 | fi | |
19225 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
19226 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
19227 | ||
a848cd7e SC |
19228 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
19229 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 19230 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
19231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19232 | else | |
238ecede MW |
19233 | if test "$ac_cv_type_wchar_t" = yes; then |
19234 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19235 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19236 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19237 | # This bug is HP SR number 8606223364. | |
19238 | if test "$cross_compiling" = yes; then | |
19239 | # Depending upon the size, compute the lo and hi bounds. | |
19240 | cat >conftest.$ac_ext <<_ACEOF | |
19241 | /* confdefs.h. */ | |
19242 | _ACEOF | |
19243 | cat confdefs.h >>conftest.$ac_ext | |
19244 | cat >>conftest.$ac_ext <<_ACEOF | |
19245 | /* end confdefs.h. */ | |
19246 | ||
19247 | /* DJGPP only has fake wchar_t: */ | |
19248 | #ifdef __DJGPP__ | |
19249 | # error "fake wchar_t" | |
19250 | #endif | |
19251 | #ifdef HAVE_WCHAR_H | |
19252 | # ifdef __CYGWIN__ | |
19253 | # include <stddef.h> | |
19254 | # endif | |
19255 | # include <wchar.h> | |
19256 | #endif | |
19257 | #ifdef HAVE_STDLIB_H | |
19258 | # include <stdlib.h> | |
19259 | #endif | |
19260 | #include <stdio.h> | |
19261 | ||
19262 | ||
19263 | ||
19264 | int | |
19265 | main () | |
19266 | { | |
19267 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
19268 | test_array [0] = 0 | |
19269 | ||
19270 | ; | |
19271 | return 0; | |
19272 | } | |
19273 | _ACEOF | |
19274 | rm -f conftest.$ac_objext | |
19275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19276 | (eval $ac_compile) 2>conftest.er1 | |
19277 | ac_status=$? | |
19278 | grep -v '^ *+' conftest.er1 >conftest.err | |
19279 | rm -f conftest.er1 | |
19280 | cat conftest.err >&5 | |
19281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19282 | (exit $ac_status); } && | |
9dd0f6c2 | 19283 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19285 | (eval $ac_try) 2>&5 | |
19286 | ac_status=$? | |
19287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19288 | (exit $ac_status); }; } && | |
19289 | { ac_try='test -s conftest.$ac_objext' | |
19290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19291 | (eval $ac_try) 2>&5 | |
19292 | ac_status=$? | |
19293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19294 | (exit $ac_status); }; }; then | |
19295 | ac_lo=0 ac_mid=0 | |
19296 | while :; do | |
19297 | cat >conftest.$ac_ext <<_ACEOF | |
19298 | /* confdefs.h. */ | |
19299 | _ACEOF | |
19300 | cat confdefs.h >>conftest.$ac_ext | |
19301 | cat >>conftest.$ac_ext <<_ACEOF | |
19302 | /* end confdefs.h. */ | |
19303 | ||
19304 | /* DJGPP only has fake wchar_t: */ | |
19305 | #ifdef __DJGPP__ | |
19306 | # error "fake wchar_t" | |
19307 | #endif | |
19308 | #ifdef HAVE_WCHAR_H | |
19309 | # ifdef __CYGWIN__ | |
19310 | # include <stddef.h> | |
19311 | # endif | |
19312 | # include <wchar.h> | |
19313 | #endif | |
19314 | #ifdef HAVE_STDLIB_H | |
19315 | # include <stdlib.h> | |
19316 | #endif | |
19317 | #include <stdio.h> | |
19318 | ||
19319 | ||
19320 | ||
19321 | int | |
19322 | main () | |
19323 | { | |
19324 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19325 | test_array [0] = 0 | |
19326 | ||
19327 | ; | |
19328 | return 0; | |
19329 | } | |
19330 | _ACEOF | |
19331 | rm -f conftest.$ac_objext | |
19332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19333 | (eval $ac_compile) 2>conftest.er1 | |
19334 | ac_status=$? | |
19335 | grep -v '^ *+' conftest.er1 >conftest.err | |
19336 | rm -f conftest.er1 | |
19337 | cat conftest.err >&5 | |
19338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19339 | (exit $ac_status); } && | |
9dd0f6c2 | 19340 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19342 | (eval $ac_try) 2>&5 | |
19343 | ac_status=$? | |
19344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19345 | (exit $ac_status); }; } && | |
19346 | { ac_try='test -s conftest.$ac_objext' | |
19347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19348 | (eval $ac_try) 2>&5 | |
19349 | ac_status=$? | |
19350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19351 | (exit $ac_status); }; }; then | |
19352 | ac_hi=$ac_mid; break | |
19353 | else | |
19354 | echo "$as_me: failed program was:" >&5 | |
19355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19356 | ||
19357 | ac_lo=`expr $ac_mid + 1` | |
19358 | if test $ac_lo -le $ac_mid; then | |
19359 | ac_lo= ac_hi= | |
19360 | break | |
19361 | fi | |
19362 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19363 | fi | |
19364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19365 | done | |
19366 | else | |
19367 | echo "$as_me: failed program was:" >&5 | |
19368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19369 | ||
19370 | cat >conftest.$ac_ext <<_ACEOF | |
19371 | /* confdefs.h. */ | |
19372 | _ACEOF | |
19373 | cat confdefs.h >>conftest.$ac_ext | |
19374 | cat >>conftest.$ac_ext <<_ACEOF | |
19375 | /* end confdefs.h. */ | |
19376 | ||
19377 | /* DJGPP only has fake wchar_t: */ | |
19378 | #ifdef __DJGPP__ | |
19379 | # error "fake wchar_t" | |
19380 | #endif | |
19381 | #ifdef HAVE_WCHAR_H | |
19382 | # ifdef __CYGWIN__ | |
19383 | # include <stddef.h> | |
19384 | # endif | |
19385 | # include <wchar.h> | |
19386 | #endif | |
19387 | #ifdef HAVE_STDLIB_H | |
19388 | # include <stdlib.h> | |
19389 | #endif | |
19390 | #include <stdio.h> | |
19391 | ||
19392 | ||
19393 | ||
19394 | int | |
19395 | main () | |
19396 | { | |
19397 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
19398 | test_array [0] = 0 | |
19399 | ||
19400 | ; | |
19401 | return 0; | |
19402 | } | |
19403 | _ACEOF | |
19404 | rm -f conftest.$ac_objext | |
19405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19406 | (eval $ac_compile) 2>conftest.er1 | |
19407 | ac_status=$? | |
19408 | grep -v '^ *+' conftest.er1 >conftest.err | |
19409 | rm -f conftest.er1 | |
19410 | cat conftest.err >&5 | |
19411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19412 | (exit $ac_status); } && | |
9dd0f6c2 | 19413 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19415 | (eval $ac_try) 2>&5 | |
19416 | ac_status=$? | |
19417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19418 | (exit $ac_status); }; } && | |
19419 | { ac_try='test -s conftest.$ac_objext' | |
19420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19421 | (eval $ac_try) 2>&5 | |
19422 | ac_status=$? | |
19423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19424 | (exit $ac_status); }; }; then | |
19425 | ac_hi=-1 ac_mid=-1 | |
19426 | while :; do | |
19427 | cat >conftest.$ac_ext <<_ACEOF | |
19428 | /* confdefs.h. */ | |
19429 | _ACEOF | |
19430 | cat confdefs.h >>conftest.$ac_ext | |
19431 | cat >>conftest.$ac_ext <<_ACEOF | |
19432 | /* end confdefs.h. */ | |
19433 | ||
19434 | /* DJGPP only has fake wchar_t: */ | |
19435 | #ifdef __DJGPP__ | |
19436 | # error "fake wchar_t" | |
19437 | #endif | |
19438 | #ifdef HAVE_WCHAR_H | |
19439 | # ifdef __CYGWIN__ | |
19440 | # include <stddef.h> | |
19441 | # endif | |
19442 | # include <wchar.h> | |
19443 | #endif | |
19444 | #ifdef HAVE_STDLIB_H | |
19445 | # include <stdlib.h> | |
19446 | #endif | |
19447 | #include <stdio.h> | |
19448 | ||
19449 | ||
19450 | ||
19451 | int | |
19452 | main () | |
19453 | { | |
19454 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
19455 | test_array [0] = 0 | |
19456 | ||
19457 | ; | |
19458 | return 0; | |
19459 | } | |
19460 | _ACEOF | |
19461 | rm -f conftest.$ac_objext | |
19462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19463 | (eval $ac_compile) 2>conftest.er1 | |
19464 | ac_status=$? | |
19465 | grep -v '^ *+' conftest.er1 >conftest.err | |
19466 | rm -f conftest.er1 | |
19467 | cat conftest.err >&5 | |
19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19469 | (exit $ac_status); } && | |
9dd0f6c2 | 19470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19472 | (eval $ac_try) 2>&5 | |
19473 | ac_status=$? | |
19474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19475 | (exit $ac_status); }; } && | |
19476 | { ac_try='test -s conftest.$ac_objext' | |
19477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19478 | (eval $ac_try) 2>&5 | |
19479 | ac_status=$? | |
19480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19481 | (exit $ac_status); }; }; then | |
19482 | ac_lo=$ac_mid; break | |
19483 | else | |
19484 | echo "$as_me: failed program was:" >&5 | |
19485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19486 | ||
19487 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19488 | if test $ac_mid -le $ac_hi; then | |
19489 | ac_lo= ac_hi= | |
19490 | break | |
19491 | fi | |
19492 | ac_mid=`expr 2 '*' $ac_mid` | |
19493 | fi | |
19494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19495 | done | |
19496 | else | |
19497 | echo "$as_me: failed program was:" >&5 | |
19498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19499 | ||
19500 | ac_lo= ac_hi= | |
19501 | fi | |
19502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19503 | fi | |
19504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19505 | # Binary search between lo and hi bounds. | |
19506 | while test "x$ac_lo" != "x$ac_hi"; do | |
19507 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19508 | cat >conftest.$ac_ext <<_ACEOF | |
19509 | /* confdefs.h. */ | |
19510 | _ACEOF | |
19511 | cat confdefs.h >>conftest.$ac_ext | |
19512 | cat >>conftest.$ac_ext <<_ACEOF | |
19513 | /* end confdefs.h. */ | |
19514 | ||
19515 | /* DJGPP only has fake wchar_t: */ | |
19516 | #ifdef __DJGPP__ | |
19517 | # error "fake wchar_t" | |
19518 | #endif | |
19519 | #ifdef HAVE_WCHAR_H | |
19520 | # ifdef __CYGWIN__ | |
19521 | # include <stddef.h> | |
19522 | # endif | |
19523 | # include <wchar.h> | |
19524 | #endif | |
19525 | #ifdef HAVE_STDLIB_H | |
19526 | # include <stdlib.h> | |
19527 | #endif | |
19528 | #include <stdio.h> | |
a848cd7e | 19529 | |
a848cd7e | 19530 | |
a848cd7e | 19531 | |
238ecede MW |
19532 | int |
19533 | main () | |
19534 | { | |
19535 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19536 | test_array [0] = 0 | |
a848cd7e | 19537 | |
238ecede MW |
19538 | ; |
19539 | return 0; | |
19540 | } | |
19541 | _ACEOF | |
19542 | rm -f conftest.$ac_objext | |
19543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19544 | (eval $ac_compile) 2>conftest.er1 | |
19545 | ac_status=$? | |
19546 | grep -v '^ *+' conftest.er1 >conftest.err | |
19547 | rm -f conftest.er1 | |
19548 | cat conftest.err >&5 | |
19549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19550 | (exit $ac_status); } && | |
9dd0f6c2 | 19551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19553 | (eval $ac_try) 2>&5 | |
19554 | ac_status=$? | |
19555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19556 | (exit $ac_status); }; } && | |
19557 | { ac_try='test -s conftest.$ac_objext' | |
19558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19559 | (eval $ac_try) 2>&5 | |
19560 | ac_status=$? | |
19561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19562 | (exit $ac_status); }; }; then | |
19563 | ac_hi=$ac_mid | |
19564 | else | |
19565 | echo "$as_me: failed program was:" >&5 | |
19566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19567 | ||
19568 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19569 | fi | |
19570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19571 | done | |
19572 | case $ac_lo in | |
19573 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
19574 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
19575 | See \`config.log' for more details." >&5 | |
19576 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19577 | See \`config.log' for more details." >&2;} | |
19578 | { (exit 1); exit 1; }; } ;; | |
19579 | esac | |
19580 | else | |
19581 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
19582 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19583 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 19584 | { (exit 1); exit 1; }; } |
a848cd7e SC |
19585 | else |
19586 | cat >conftest.$ac_ext <<_ACEOF | |
19587 | /* confdefs.h. */ | |
19588 | _ACEOF | |
19589 | cat confdefs.h >>conftest.$ac_ext | |
19590 | cat >>conftest.$ac_ext <<_ACEOF | |
19591 | /* end confdefs.h. */ | |
19592 | ||
238ecede MW |
19593 | /* DJGPP only has fake wchar_t: */ |
19594 | #ifdef __DJGPP__ | |
19595 | # error "fake wchar_t" | |
19596 | #endif | |
19597 | #ifdef HAVE_WCHAR_H | |
19598 | # ifdef __CYGWIN__ | |
19599 | # include <stddef.h> | |
19600 | # endif | |
19601 | # include <wchar.h> | |
19602 | #endif | |
19603 | #ifdef HAVE_STDLIB_H | |
19604 | # include <stdlib.h> | |
19605 | #endif | |
19606 | #include <stdio.h> | |
19607 | ||
19608 | ||
19609 | ||
19610 | long longval () { return (long) (sizeof (wchar_t)); } | |
19611 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
19612 | #include <stdio.h> | |
19613 | #include <stdlib.h> | |
19614 | int | |
19615 | main () | |
19616 | { | |
a848cd7e | 19617 | |
238ecede MW |
19618 | FILE *f = fopen ("conftest.val", "w"); |
19619 | if (! f) | |
19620 | exit (1); | |
19621 | if (((long) (sizeof (wchar_t))) < 0) | |
19622 | { | |
19623 | long i = longval (); | |
19624 | if (i != ((long) (sizeof (wchar_t)))) | |
19625 | exit (1); | |
19626 | fprintf (f, "%ld\n", i); | |
19627 | } | |
19628 | else | |
19629 | { | |
19630 | unsigned long i = ulongval (); | |
19631 | if (i != ((long) (sizeof (wchar_t)))) | |
19632 | exit (1); | |
19633 | fprintf (f, "%lu\n", i); | |
19634 | } | |
19635 | exit (ferror (f) || fclose (f) != 0); | |
19636 | ||
19637 | ; | |
19638 | return 0; | |
19639 | } | |
a848cd7e SC |
19640 | _ACEOF |
19641 | rm -f conftest$ac_exeext | |
19642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19643 | (eval $ac_link) 2>&5 | |
19644 | ac_status=$? | |
19645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19646 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19648 | (eval $ac_try) 2>&5 | |
19649 | ac_status=$? | |
19650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19651 | (exit $ac_status); }; }; then | |
238ecede | 19652 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
19653 | else |
19654 | echo "$as_me: program exited with status $ac_status" >&5 | |
19655 | echo "$as_me: failed program was:" >&5 | |
19656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19657 | ||
19658 | ( exit $ac_status ) | |
238ecede MW |
19659 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
19660 | See \`config.log' for more details." >&5 | |
19661 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19662 | See \`config.log' for more details." >&2;} | |
19663 | { (exit 1); exit 1; }; } | |
a848cd7e | 19664 | fi |
ac1cb8d3 | 19665 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19666 | fi |
a848cd7e | 19667 | fi |
238ecede MW |
19668 | rm -f conftest.val |
19669 | else | |
19670 | ac_cv_sizeof_wchar_t=0 | |
19671 | fi | |
19672 | fi | |
19673 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
19674 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 19675 | cat >>confdefs.h <<_ACEOF |
238ecede | 19676 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
19677 | _ACEOF |
19678 | ||
19679 | ||
238ecede | 19680 | |
ba3d13e1 VZ |
19681 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
19682 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
19683 | if test "${wx_cv_func_va_copy+set}" = set; then | |
19684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19685 | else | |
19686 | ||
19687 | cat >conftest.$ac_ext <<_ACEOF | |
19688 | ||
19689 | #include <stdarg.h> | |
19690 | void foo(char *f, ...) | |
19691 | { | |
19692 | va_list ap1, ap2; | |
19693 | va_start(ap1, f); | |
19694 | va_copy(ap2, ap1); | |
19695 | va_end(ap2); | |
19696 | va_end(ap1); | |
19697 | } | |
5886b072 VZ |
19698 | int main() |
19699 | { | |
b902e639 VZ |
19700 | foo("hi", 17); |
19701 | return 0; | |
5886b072 | 19702 | } |
ba3d13e1 VZ |
19703 | _ACEOF |
19704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19706 | (eval $ac_link) 2>conftest.er1 | |
19707 | ac_status=$? | |
19708 | grep -v '^ *+' conftest.er1 >conftest.err | |
19709 | rm -f conftest.er1 | |
19710 | cat conftest.err >&5 | |
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19712 | (exit $ac_status); } && | |
9dd0f6c2 | 19713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
19714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19715 | (eval $ac_try) 2>&5 | |
19716 | ac_status=$? | |
19717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19718 | (exit $ac_status); }; } && | |
19719 | { ac_try='test -s conftest$ac_exeext' | |
19720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19721 | (eval $ac_try) 2>&5 | |
19722 | ac_status=$? | |
19723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19724 | (exit $ac_status); }; }; then | |
19725 | wx_cv_func_va_copy=yes | |
19726 | else | |
19727 | echo "$as_me: failed program was:" >&5 | |
19728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19729 | ||
19730 | wx_cv_func_va_copy=no | |
19731 | ||
19732 | fi | |
19733 | rm -f conftest.err conftest.$ac_objext \ | |
19734 | conftest$ac_exeext conftest.$ac_ext | |
19735 | ||
19736 | ||
19737 | fi | |
19738 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
19739 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
19740 | ||
19741 | if test $wx_cv_func_va_copy = "yes"; then | |
19742 | cat >>confdefs.h <<\_ACEOF | |
19743 | #define HAVE_VA_COPY 1 | |
19744 | _ACEOF | |
19745 | ||
19746 | else | |
19747 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
19748 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
19749 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
19750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19751 | else | |
19752 | ||
19753 | if test "$cross_compiling" = yes; then | |
19754 | wx_cv_type_va_list_lvalue=yes | |
19755 | ||
19756 | else | |
19757 | cat >conftest.$ac_ext <<_ACEOF | |
19758 | ||
19759 | #include <stdarg.h> | |
19760 | int foo(char *f, ...) | |
19761 | { | |
19762 | va_list ap1, ap2; | |
19763 | va_start(ap1, f); | |
19764 | ap2 = ap1; | |
19765 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
19766 | return 1; | |
19767 | va_end(ap2); | |
19768 | va_end(ap1); | |
19769 | return 0; | |
19770 | } | |
19771 | int main() | |
19772 | { | |
19773 | return foo("hi", 17); | |
19774 | } | |
19775 | _ACEOF | |
19776 | rm -f conftest$ac_exeext | |
19777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19778 | (eval $ac_link) 2>&5 | |
19779 | ac_status=$? | |
19780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19781 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19783 | (eval $ac_try) 2>&5 | |
19784 | ac_status=$? | |
19785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19786 | (exit $ac_status); }; }; then | |
19787 | wx_cv_type_va_list_lvalue=yes | |
19788 | else | |
19789 | echo "$as_me: program exited with status $ac_status" >&5 | |
19790 | echo "$as_me: failed program was:" >&5 | |
19791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19792 | ||
19793 | ( exit $ac_status ) | |
19794 | wx_cv_type_va_list_lvalue=no | |
19795 | fi | |
19796 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19797 | fi | |
19798 | ||
19799 | ||
19800 | fi | |
19801 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
19802 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
19803 | ||
19804 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
19805 | cat >>confdefs.h <<\_ACEOF | |
19806 | #define VA_LIST_IS_ARRAY 1 | |
19807 | _ACEOF | |
19808 | ||
19809 | fi | |
19810 | fi | |
19811 | ||
a848cd7e SC |
19812 | # Check whether --enable-largefile or --disable-largefile was given. |
19813 | if test "${enable_largefile+set}" = set; then | |
19814 | enableval="$enable_largefile" | |
19815 | ||
19816 | fi; | |
19817 | if test "$enable_largefile" != no; then | |
19818 | wx_largefile=no | |
19819 | ||
19820 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
19821 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
19822 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
19823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19824 | else | |
19825 | ||
19826 | cat >conftest.$ac_ext <<_ACEOF | |
19827 | /* confdefs.h. */ | |
19828 | _ACEOF | |
19829 | cat confdefs.h >>conftest.$ac_ext | |
19830 | cat >>conftest.$ac_ext <<_ACEOF | |
19831 | /* end confdefs.h. */ | |
19832 | #define _FILE_OFFSET_BITS 64 | |
19833 | #include <sys/types.h> | |
19834 | int | |
19835 | main () | |
19836 | { | |
19837 | typedef struct { | |
19838 | unsigned int field: sizeof(off_t) == 8; | |
19839 | } wxlf; | |
19840 | ||
19841 | ; | |
19842 | return 0; | |
19843 | } | |
19844 | _ACEOF | |
19845 | rm -f conftest.$ac_objext | |
19846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19848 | ac_status=$? |
ac1cb8d3 VS |
19849 | grep -v '^ *+' conftest.er1 >conftest.err |
19850 | rm -f conftest.er1 | |
19851 | cat conftest.err >&5 | |
a848cd7e SC |
19852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19853 | (exit $ac_status); } && | |
9dd0f6c2 | 19854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19856 | (eval $ac_try) 2>&5 | |
19857 | ac_status=$? | |
19858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19859 | (exit $ac_status); }; } && | |
19860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19862 | (eval $ac_try) 2>&5 | |
19863 | ac_status=$? | |
19864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19865 | (exit $ac_status); }; }; then | |
19866 | ac_cv_sys_file_offset_bits=64 | |
19867 | else | |
19868 | echo "$as_me: failed program was:" >&5 | |
19869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19870 | ||
19871 | ac_cv_sys_file_offset_bits=no | |
19872 | fi | |
ac1cb8d3 | 19873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19874 | |
19875 | ||
19876 | fi | |
19877 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
19878 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
19879 | ||
19880 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
19881 | wx_largefile=yes | |
19882 | cat >>confdefs.h <<_ACEOF | |
19883 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
19884 | _ACEOF | |
19885 | ||
19886 | fi | |
19887 | ||
19888 | if test "x$wx_largefile" != "xyes"; then | |
19889 | ||
19890 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
19891 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
19892 | if test "${ac_cv_sys_large_files+set}" = set; then | |
19893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19894 | else | |
19895 | ||
19896 | cat >conftest.$ac_ext <<_ACEOF | |
19897 | /* confdefs.h. */ | |
19898 | _ACEOF | |
19899 | cat confdefs.h >>conftest.$ac_ext | |
19900 | cat >>conftest.$ac_ext <<_ACEOF | |
19901 | /* end confdefs.h. */ | |
19902 | #define _LARGE_FILES 1 | |
19903 | #include <sys/types.h> | |
19904 | int | |
19905 | main () | |
19906 | { | |
19907 | typedef struct { | |
19908 | unsigned int field: sizeof(off_t) == 8; | |
19909 | } wxlf; | |
19910 | ||
19911 | ; | |
19912 | return 0; | |
19913 | } | |
19914 | _ACEOF | |
19915 | rm -f conftest.$ac_objext | |
19916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19917 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19918 | ac_status=$? |
ac1cb8d3 VS |
19919 | grep -v '^ *+' conftest.er1 >conftest.err |
19920 | rm -f conftest.er1 | |
19921 | cat conftest.err >&5 | |
a848cd7e SC |
19922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19923 | (exit $ac_status); } && | |
9dd0f6c2 | 19924 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19926 | (eval $ac_try) 2>&5 | |
19927 | ac_status=$? | |
19928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19929 | (exit $ac_status); }; } && | |
19930 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19932 | (eval $ac_try) 2>&5 | |
19933 | ac_status=$? | |
19934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19935 | (exit $ac_status); }; }; then | |
19936 | ac_cv_sys_large_files=1 | |
19937 | else | |
19938 | echo "$as_me: failed program was:" >&5 | |
19939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19940 | ||
19941 | ac_cv_sys_large_files=no | |
19942 | fi | |
ac1cb8d3 | 19943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19944 | |
19945 | ||
19946 | fi | |
19947 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
19948 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
19949 | ||
19950 | if test "$ac_cv_sys_large_files" != no; then | |
19951 | wx_largefile=yes | |
19952 | cat >>confdefs.h <<_ACEOF | |
19953 | #define _LARGE_FILES $ac_cv_sys_large_files | |
19954 | _ACEOF | |
19955 | ||
19956 | fi | |
19957 | ||
19958 | fi | |
19959 | ||
19960 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
19961 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
19962 | if test "x$wx_largefile" = "xyes"; then | |
19963 | cat >>confdefs.h <<\_ACEOF | |
19964 | #define HAVE_LARGEFILE_SUPPORT 1 | |
19965 | _ACEOF | |
19966 | ||
19967 | fi | |
19968 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
19969 | echo "${ECHO_T}$wx_largefile" >&6 | |
19970 | fi | |
19971 | ||
5b674b9d DE |
19972 | |
19973 | if test "x$wx_largefile" = "xyes"; then | |
19974 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
19975 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
19976 | else | |
19977 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
19978 | fi | |
19979 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
19980 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
19981 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
19982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19983 | else | |
19984 | while :; do | |
19985 | ac_cv_sys_largefile_source=no | |
19986 | cat >conftest.$ac_ext <<_ACEOF | |
19987 | /* confdefs.h. */ | |
19988 | _ACEOF | |
19989 | cat confdefs.h >>conftest.$ac_ext | |
19990 | cat >>conftest.$ac_ext <<_ACEOF | |
19991 | /* end confdefs.h. */ | |
19992 | #include <stdio.h> | |
19993 | int | |
19994 | main () | |
19995 | { | |
19996 | return !fseeko; | |
19997 | ; | |
19998 | return 0; | |
19999 | } | |
20000 | _ACEOF | |
20001 | rm -f conftest.$ac_objext | |
20002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20003 | (eval $ac_compile) 2>conftest.er1 | |
20004 | ac_status=$? | |
20005 | grep -v '^ *+' conftest.er1 >conftest.err | |
20006 | rm -f conftest.er1 | |
20007 | cat conftest.err >&5 | |
20008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20009 | (exit $ac_status); } && | |
9dd0f6c2 | 20010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20012 | (eval $ac_try) 2>&5 | |
20013 | ac_status=$? | |
20014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20015 | (exit $ac_status); }; } && | |
20016 | { ac_try='test -s conftest.$ac_objext' | |
20017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20018 | (eval $ac_try) 2>&5 | |
20019 | ac_status=$? | |
20020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20021 | (exit $ac_status); }; }; then | |
20022 | break | |
20023 | else | |
20024 | echo "$as_me: failed program was:" >&5 | |
20025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20026 | ||
20027 | fi | |
20028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20029 | cat >conftest.$ac_ext <<_ACEOF | |
20030 | /* confdefs.h. */ | |
20031 | _ACEOF | |
20032 | cat confdefs.h >>conftest.$ac_ext | |
20033 | cat >>conftest.$ac_ext <<_ACEOF | |
20034 | /* end confdefs.h. */ | |
20035 | #define _LARGEFILE_SOURCE 1 | |
20036 | #include <stdio.h> | |
20037 | int | |
20038 | main () | |
20039 | { | |
20040 | return !fseeko; | |
20041 | ; | |
20042 | return 0; | |
20043 | } | |
20044 | _ACEOF | |
20045 | rm -f conftest.$ac_objext | |
20046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20047 | (eval $ac_compile) 2>conftest.er1 | |
20048 | ac_status=$? | |
20049 | grep -v '^ *+' conftest.er1 >conftest.err | |
20050 | rm -f conftest.er1 | |
20051 | cat conftest.err >&5 | |
20052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20053 | (exit $ac_status); } && | |
9dd0f6c2 | 20054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20056 | (eval $ac_try) 2>&5 | |
20057 | ac_status=$? | |
20058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20059 | (exit $ac_status); }; } && | |
20060 | { ac_try='test -s conftest.$ac_objext' | |
20061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20062 | (eval $ac_try) 2>&5 | |
20063 | ac_status=$? | |
20064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20065 | (exit $ac_status); }; }; then | |
20066 | ac_cv_sys_largefile_source=1; break | |
20067 | else | |
20068 | echo "$as_me: failed program was:" >&5 | |
20069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20070 | ||
20071 | fi | |
20072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20073 | break | |
20074 | done | |
20075 | fi | |
20076 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
20077 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
20078 | if test "$ac_cv_sys_largefile_source" != no; then | |
20079 | ||
20080 | cat >>confdefs.h <<_ACEOF | |
20081 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20082 | _ACEOF | |
20083 | ||
20084 | fi | |
20085 | rm -f conftest* | |
20086 | ||
20087 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
20088 | # in glibc 2.1.3, but that breaks too many other things. | |
20089 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
20090 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
20091 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
20092 | if test "${ac_cv_func_fseeko+set}" = set; then | |
20093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20094 | else | |
20095 | cat >conftest.$ac_ext <<_ACEOF | |
20096 | /* confdefs.h. */ | |
20097 | _ACEOF | |
20098 | cat confdefs.h >>conftest.$ac_ext | |
20099 | cat >>conftest.$ac_ext <<_ACEOF | |
20100 | /* end confdefs.h. */ | |
20101 | #include <stdio.h> | |
20102 | int | |
20103 | main () | |
20104 | { | |
20105 | return fseeko && fseeko (stdin, 0, 0); | |
20106 | ; | |
20107 | return 0; | |
20108 | } | |
20109 | _ACEOF | |
20110 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20112 | (eval $ac_link) 2>conftest.er1 | |
20113 | ac_status=$? | |
20114 | grep -v '^ *+' conftest.er1 >conftest.err | |
20115 | rm -f conftest.er1 | |
20116 | cat conftest.err >&5 | |
20117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20118 | (exit $ac_status); } && | |
9dd0f6c2 | 20119 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20121 | (eval $ac_try) 2>&5 | |
20122 | ac_status=$? | |
20123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20124 | (exit $ac_status); }; } && | |
20125 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
20131 | ac_cv_func_fseeko=yes | |
20132 | else | |
20133 | echo "$as_me: failed program was:" >&5 | |
20134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20135 | ||
20136 | ac_cv_func_fseeko=no | |
20137 | fi | |
20138 | rm -f conftest.err conftest.$ac_objext \ | |
20139 | conftest$ac_exeext conftest.$ac_ext | |
20140 | fi | |
20141 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
20142 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
20143 | if test $ac_cv_func_fseeko = yes; then | |
20144 | ||
20145 | cat >>confdefs.h <<\_ACEOF | |
20146 | #define HAVE_FSEEKO 1 | |
20147 | _ACEOF | |
20148 | ||
20149 | fi | |
20150 | ||
5b674b9d DE |
20151 | if test "$ac_cv_sys_largefile_source" != no; then |
20152 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
20153 | fi |
20154 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
20155 | fi | |
20156 | ||
20157 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
20158 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
20159 | if test "${ac_cv_c_bigendian+set}" = set; then | |
20160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20161 | else | |
20162 | ac_cv_c_bigendian=unknown | |
20163 | # See if sys/param.h defines the BYTE_ORDER macro. | |
20164 | cat >conftest.$ac_ext <<_ACEOF | |
20165 | /* confdefs.h. */ | |
20166 | _ACEOF | |
20167 | cat confdefs.h >>conftest.$ac_ext | |
20168 | cat >>conftest.$ac_ext <<_ACEOF | |
20169 | /* end confdefs.h. */ | |
20170 | #include <sys/types.h> | |
20171 | #include <sys/param.h> | |
20172 | int | |
20173 | main () | |
20174 | { | |
20175 | ||
20176 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20177 | bogus endian macros | |
20178 | #endif | |
20179 | ; | |
20180 | return 0; | |
20181 | } | |
20182 | _ACEOF | |
20183 | rm -f conftest.$ac_objext | |
20184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20186 | ac_status=$? |
ac1cb8d3 VS |
20187 | grep -v '^ *+' conftest.er1 >conftest.err |
20188 | rm -f conftest.er1 | |
20189 | cat conftest.err >&5 | |
a848cd7e SC |
20190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20191 | (exit $ac_status); } && | |
9dd0f6c2 | 20192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20194 | (eval $ac_try) 2>&5 | |
20195 | ac_status=$? | |
20196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20197 | (exit $ac_status); }; } && | |
20198 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20200 | (eval $ac_try) 2>&5 | |
20201 | ac_status=$? | |
20202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20203 | (exit $ac_status); }; }; then | |
20204 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
20205 | cat >conftest.$ac_ext <<_ACEOF | |
20206 | /* confdefs.h. */ | |
20207 | _ACEOF | |
20208 | cat confdefs.h >>conftest.$ac_ext | |
20209 | cat >>conftest.$ac_ext <<_ACEOF | |
20210 | /* end confdefs.h. */ | |
20211 | #include <sys/types.h> | |
20212 | #include <sys/param.h> | |
20213 | int | |
20214 | main () | |
20215 | { | |
20216 | ||
20217 | #if BYTE_ORDER != BIG_ENDIAN | |
20218 | not big endian | |
20219 | #endif | |
20220 | ; | |
20221 | return 0; | |
20222 | } | |
20223 | _ACEOF | |
20224 | rm -f conftest.$ac_objext | |
20225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20226 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20227 | ac_status=$? |
ac1cb8d3 VS |
20228 | grep -v '^ *+' conftest.er1 >conftest.err |
20229 | rm -f conftest.er1 | |
20230 | cat conftest.err >&5 | |
a848cd7e SC |
20231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20232 | (exit $ac_status); } && | |
9dd0f6c2 | 20233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20235 | (eval $ac_try) 2>&5 | |
20236 | ac_status=$? | |
20237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20238 | (exit $ac_status); }; } && | |
20239 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20241 | (eval $ac_try) 2>&5 | |
20242 | ac_status=$? | |
20243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20244 | (exit $ac_status); }; }; then | |
20245 | ac_cv_c_bigendian=yes | |
20246 | else | |
20247 | echo "$as_me: failed program was:" >&5 | |
20248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20249 | ||
20250 | ac_cv_c_bigendian=no | |
20251 | fi | |
ac1cb8d3 | 20252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20253 | else |
20254 | echo "$as_me: failed program was:" >&5 | |
20255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20256 | ||
20257 | fi | |
ac1cb8d3 | 20258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20259 | if test $ac_cv_c_bigendian = unknown; then |
20260 | if test "$cross_compiling" = yes; then | |
20261 | ac_cv_c_bigendian=unknown | |
20262 | else | |
20263 | cat >conftest.$ac_ext <<_ACEOF | |
20264 | /* confdefs.h. */ | |
20265 | _ACEOF | |
20266 | cat confdefs.h >>conftest.$ac_ext | |
20267 | cat >>conftest.$ac_ext <<_ACEOF | |
20268 | /* end confdefs.h. */ | |
20269 | main () { | |
20270 | /* Are we little or big endian? From Harbison&Steele. */ | |
20271 | union | |
20272 | { | |
20273 | long l; | |
20274 | char c[sizeof (long)]; | |
20275 | } u; | |
20276 | u.l = 1; | |
20277 | exit (u.c[sizeof (long) - 1] == 1); | |
20278 | } | |
20279 | _ACEOF | |
20280 | rm -f conftest$ac_exeext | |
20281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20282 | (eval $ac_link) 2>&5 | |
20283 | ac_status=$? | |
20284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20285 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20287 | (eval $ac_try) 2>&5 | |
20288 | ac_status=$? | |
20289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20290 | (exit $ac_status); }; }; then | |
20291 | ac_cv_c_bigendian=no | |
20292 | else | |
20293 | echo "$as_me: program exited with status $ac_status" >&5 | |
20294 | echo "$as_me: failed program was:" >&5 | |
20295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20296 | ||
20297 | ( exit $ac_status ) | |
20298 | ac_cv_c_bigendian=yes | |
20299 | fi | |
ac1cb8d3 | 20300 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20301 | fi |
20302 | fi | |
20303 | fi | |
20304 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20305 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
20306 | if test $ac_cv_c_bigendian = unknown; then | |
20307 | { 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 | |
20308 | 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;} | |
20309 | fi | |
20310 | if test $ac_cv_c_bigendian = yes; then | |
20311 | cat >>confdefs.h <<\_ACEOF | |
20312 | #define WORDS_BIGENDIAN 1 | |
20313 | _ACEOF | |
20314 | ||
20315 | fi | |
20316 | ||
20317 | ||
20318 | ac_ext=cc | |
20319 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20320 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20321 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20322 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20323 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
20324 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
20325 | if test -z "$CXXCPP"; then | |
20326 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
20327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20328 | else | |
20329 | # Double quotes because CXXCPP needs to be expanded | |
20330 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
20331 | do | |
20332 | ac_preproc_ok=false | |
20333 | for ac_cxx_preproc_warn_flag in '' yes | |
20334 | do | |
20335 | # Use a header file that comes with gcc, so configuring glibc | |
20336 | # with a fresh cross-compiler works. | |
20337 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20338 | # <limits.h> exists even on freestanding compilers. | |
20339 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20340 | # not just through cpp. "Syntax error" is here to catch this case. | |
20341 | cat >conftest.$ac_ext <<_ACEOF | |
20342 | /* confdefs.h. */ | |
20343 | _ACEOF | |
20344 | cat confdefs.h >>conftest.$ac_ext | |
20345 | cat >>conftest.$ac_ext <<_ACEOF | |
20346 | /* end confdefs.h. */ | |
20347 | #ifdef __STDC__ | |
20348 | # include <limits.h> | |
20349 | #else | |
20350 | # include <assert.h> | |
20351 | #endif | |
ac1cb8d3 | 20352 | Syntax error |
a848cd7e SC |
20353 | _ACEOF |
20354 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20355 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20356 | ac_status=$? | |
20357 | grep -v '^ *+' conftest.er1 >conftest.err | |
20358 | rm -f conftest.er1 | |
20359 | cat conftest.err >&5 | |
20360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20361 | (exit $ac_status); } >/dev/null; then | |
20362 | if test -s conftest.err; then | |
20363 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20364 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20365 | else |
20366 | ac_cpp_err= | |
20367 | fi | |
20368 | else | |
20369 | ac_cpp_err=yes | |
20370 | fi | |
20371 | if test -z "$ac_cpp_err"; then | |
20372 | : | |
20373 | else | |
20374 | echo "$as_me: failed program was:" >&5 | |
20375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20376 | ||
20377 | # Broken: fails on valid input. | |
20378 | continue | |
20379 | fi | |
20380 | rm -f conftest.err conftest.$ac_ext | |
20381 | ||
20382 | # OK, works on sane cases. Now check whether non-existent headers | |
20383 | # can be detected and how. | |
20384 | cat >conftest.$ac_ext <<_ACEOF | |
20385 | /* confdefs.h. */ | |
20386 | _ACEOF | |
20387 | cat confdefs.h >>conftest.$ac_ext | |
20388 | cat >>conftest.$ac_ext <<_ACEOF | |
20389 | /* end confdefs.h. */ | |
20390 | #include <ac_nonexistent.h> | |
20391 | _ACEOF | |
20392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20393 | (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | |
20400 | if test -s conftest.err; then | |
20401 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20402 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20403 | else |
20404 | ac_cpp_err= | |
20405 | fi | |
20406 | else | |
20407 | ac_cpp_err=yes | |
20408 | fi | |
20409 | if test -z "$ac_cpp_err"; then | |
20410 | # Broken: success on invalid input. | |
20411 | continue | |
20412 | else | |
20413 | echo "$as_me: failed program was:" >&5 | |
20414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20415 | ||
20416 | # Passes both tests. | |
20417 | ac_preproc_ok=: | |
20418 | break | |
20419 | fi | |
20420 | rm -f conftest.err conftest.$ac_ext | |
20421 | ||
20422 | done | |
20423 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20424 | rm -f conftest.err conftest.$ac_ext | |
20425 | if $ac_preproc_ok; then | |
20426 | break | |
20427 | fi | |
20428 | ||
20429 | done | |
20430 | ac_cv_prog_CXXCPP=$CXXCPP | |
20431 | ||
20432 | fi | |
20433 | CXXCPP=$ac_cv_prog_CXXCPP | |
20434 | else | |
20435 | ac_cv_prog_CXXCPP=$CXXCPP | |
20436 | fi | |
20437 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
20438 | echo "${ECHO_T}$CXXCPP" >&6 | |
20439 | ac_preproc_ok=false | |
20440 | for ac_cxx_preproc_warn_flag in '' yes | |
20441 | do | |
20442 | # Use a header file that comes with gcc, so configuring glibc | |
20443 | # with a fresh cross-compiler works. | |
20444 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20445 | # <limits.h> exists even on freestanding compilers. | |
20446 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20447 | # not just through cpp. "Syntax error" is here to catch this case. | |
20448 | cat >conftest.$ac_ext <<_ACEOF | |
20449 | /* confdefs.h. */ | |
20450 | _ACEOF | |
20451 | cat confdefs.h >>conftest.$ac_ext | |
20452 | cat >>conftest.$ac_ext <<_ACEOF | |
20453 | /* end confdefs.h. */ | |
20454 | #ifdef __STDC__ | |
20455 | # include <limits.h> | |
20456 | #else | |
20457 | # include <assert.h> | |
20458 | #endif | |
ac1cb8d3 | 20459 | Syntax error |
a848cd7e SC |
20460 | _ACEOF |
20461 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20462 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20463 | ac_status=$? | |
20464 | grep -v '^ *+' conftest.er1 >conftest.err | |
20465 | rm -f conftest.er1 | |
20466 | cat conftest.err >&5 | |
20467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20468 | (exit $ac_status); } >/dev/null; then | |
20469 | if test -s conftest.err; then | |
20470 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20471 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20472 | else |
20473 | ac_cpp_err= | |
20474 | fi | |
20475 | else | |
20476 | ac_cpp_err=yes | |
20477 | fi | |
20478 | if test -z "$ac_cpp_err"; then | |
20479 | : | |
20480 | else | |
20481 | echo "$as_me: failed program was:" >&5 | |
20482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20483 | ||
20484 | # Broken: fails on valid input. | |
20485 | continue | |
20486 | fi | |
20487 | rm -f conftest.err conftest.$ac_ext | |
20488 | ||
20489 | # OK, works on sane cases. Now check whether non-existent headers | |
20490 | # can be detected and how. | |
20491 | cat >conftest.$ac_ext <<_ACEOF | |
20492 | /* confdefs.h. */ | |
20493 | _ACEOF | |
20494 | cat confdefs.h >>conftest.$ac_ext | |
20495 | cat >>conftest.$ac_ext <<_ACEOF | |
20496 | /* end confdefs.h. */ | |
20497 | #include <ac_nonexistent.h> | |
20498 | _ACEOF | |
20499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20501 | ac_status=$? | |
20502 | grep -v '^ *+' conftest.er1 >conftest.err | |
20503 | rm -f conftest.er1 | |
20504 | cat conftest.err >&5 | |
20505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20506 | (exit $ac_status); } >/dev/null; then | |
20507 | if test -s conftest.err; then | |
20508 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20509 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20510 | else |
20511 | ac_cpp_err= | |
20512 | fi | |
20513 | else | |
20514 | ac_cpp_err=yes | |
20515 | fi | |
20516 | if test -z "$ac_cpp_err"; then | |
20517 | # Broken: success on invalid input. | |
20518 | continue | |
20519 | else | |
20520 | echo "$as_me: failed program was:" >&5 | |
20521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20522 | ||
20523 | # Passes both tests. | |
20524 | ac_preproc_ok=: | |
20525 | break | |
20526 | fi | |
20527 | rm -f conftest.err conftest.$ac_ext | |
20528 | ||
20529 | done | |
20530 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20531 | rm -f conftest.err conftest.$ac_ext | |
20532 | if $ac_preproc_ok; then | |
20533 | : | |
20534 | else | |
20535 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20536 | See \`config.log' for more details." >&5 | |
20537 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20538 | See \`config.log' for more details." >&2;} | |
20539 | { (exit 1); exit 1; }; } | |
20540 | fi | |
20541 | ||
20542 | ac_ext=cc | |
20543 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20544 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20545 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20546 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20547 | ||
20548 | ||
20549 | ||
20550 | ||
20551 | ||
20552 | ac_ext=cc | |
20553 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20554 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20555 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20556 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20557 | ||
20558 | ||
20559 | ||
20560 | for ac_header in iostream | |
20561 | do | |
20562 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20563 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20564 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20565 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20566 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20568 | fi | |
20569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20570 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20571 | else | |
20572 | # Is the header compilable? | |
20573 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20574 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20575 | cat >conftest.$ac_ext <<_ACEOF | |
20576 | /* confdefs.h. */ | |
20577 | _ACEOF | |
20578 | cat confdefs.h >>conftest.$ac_ext | |
20579 | cat >>conftest.$ac_ext <<_ACEOF | |
20580 | /* end confdefs.h. */ | |
20581 | $ac_includes_default | |
20582 | #include <$ac_header> | |
20583 | _ACEOF | |
20584 | rm -f conftest.$ac_objext | |
20585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20586 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20587 | ac_status=$? |
ac1cb8d3 VS |
20588 | grep -v '^ *+' conftest.er1 >conftest.err |
20589 | rm -f conftest.er1 | |
20590 | cat conftest.err >&5 | |
a848cd7e SC |
20591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20592 | (exit $ac_status); } && | |
9dd0f6c2 | 20593 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20595 | (eval $ac_try) 2>&5 | |
20596 | ac_status=$? | |
20597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20598 | (exit $ac_status); }; } && | |
20599 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20601 | (eval $ac_try) 2>&5 | |
20602 | ac_status=$? | |
20603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20604 | (exit $ac_status); }; }; then | |
20605 | ac_header_compiler=yes | |
20606 | else | |
20607 | echo "$as_me: failed program was:" >&5 | |
20608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20609 | ||
20610 | ac_header_compiler=no | |
20611 | fi | |
ac1cb8d3 | 20612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20613 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20614 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20615 | ||
20616 | # Is the header present? | |
20617 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20618 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20619 | cat >conftest.$ac_ext <<_ACEOF | |
20620 | /* confdefs.h. */ | |
20621 | _ACEOF | |
20622 | cat confdefs.h >>conftest.$ac_ext | |
20623 | cat >>conftest.$ac_ext <<_ACEOF | |
20624 | /* end confdefs.h. */ | |
20625 | #include <$ac_header> | |
20626 | _ACEOF | |
20627 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20628 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20629 | ac_status=$? | |
20630 | grep -v '^ *+' conftest.er1 >conftest.err | |
20631 | rm -f conftest.er1 | |
20632 | cat conftest.err >&5 | |
20633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20634 | (exit $ac_status); } >/dev/null; then | |
20635 | if test -s conftest.err; then | |
20636 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20637 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20638 | else |
20639 | ac_cpp_err= | |
20640 | fi | |
20641 | else | |
20642 | ac_cpp_err=yes | |
20643 | fi | |
20644 | if test -z "$ac_cpp_err"; then | |
20645 | ac_header_preproc=yes | |
20646 | else | |
20647 | echo "$as_me: failed program was:" >&5 | |
20648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20649 | ||
20650 | ac_header_preproc=no | |
20651 | fi | |
20652 | rm -f conftest.err conftest.$ac_ext | |
20653 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20654 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20655 | ||
20656 | # So? What about this header? | |
ac1cb8d3 VS |
20657 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20658 | yes:no: ) | |
a848cd7e SC |
20659 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20660 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20661 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20662 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20663 | ac_header_preproc=yes | |
a848cd7e | 20664 | ;; |
ac1cb8d3 | 20665 | no:yes:* ) |
a848cd7e SC |
20666 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20667 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20668 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20669 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20670 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20671 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20672 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20673 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20674 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20675 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20676 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20677 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20678 | ( |
20679 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20680 | ## ----------------------------------------- ## |
20681 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20682 | ## ----------------------------------------- ## | |
a848cd7e SC |
20683 | _ASBOX |
20684 | ) | | |
20685 | sed "s/^/$as_me: WARNING: /" >&2 | |
20686 | ;; | |
20687 | esac | |
20688 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20692 | else | |
ac1cb8d3 | 20693 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
20694 | fi |
20695 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20696 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20697 | ||
20698 | fi | |
20699 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20700 | cat >>confdefs.h <<_ACEOF | |
20701 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20702 | _ACEOF | |
20703 | ||
20704 | fi | |
20705 | ||
20706 | done | |
20707 | ||
20708 | ||
20709 | if test "$ac_cv_header_iostream" = "yes" ; then | |
20710 | : | |
20711 | else | |
20712 | cat >>confdefs.h <<\_ACEOF | |
20713 | #define wxUSE_IOSTREAMH 1 | |
20714 | _ACEOF | |
20715 | ||
20716 | fi | |
20717 | ||
20718 | ac_ext=c | |
20719 | ac_cpp='$CPP $CPPFLAGS' | |
20720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20723 | ||
20724 | ||
20725 | ||
20726 | ||
20727 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
20728 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
20729 | if test "${wx_cv_cpp_bool+set}" = set; then | |
20730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20731 | else | |
20732 | ||
20733 | ||
20734 | ||
20735 | ac_ext=cc | |
20736 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20737 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20738 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20739 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20740 | ||
20741 | ||
20742 | cat >conftest.$ac_ext <<_ACEOF | |
20743 | /* confdefs.h. */ | |
20744 | _ACEOF | |
20745 | cat confdefs.h >>conftest.$ac_ext | |
20746 | cat >>conftest.$ac_ext <<_ACEOF | |
20747 | /* end confdefs.h. */ | |
20748 | ||
20749 | ||
20750 | int | |
20751 | main () | |
20752 | { | |
20753 | ||
20754 | bool b = true; | |
20755 | ||
20756 | return 0; | |
20757 | ||
20758 | ; | |
20759 | return 0; | |
20760 | } | |
20761 | _ACEOF | |
20762 | rm -f conftest.$ac_objext | |
20763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20764 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20765 | ac_status=$? |
ac1cb8d3 VS |
20766 | grep -v '^ *+' conftest.er1 >conftest.err |
20767 | rm -f conftest.er1 | |
20768 | cat conftest.err >&5 | |
a848cd7e SC |
20769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20770 | (exit $ac_status); } && | |
9dd0f6c2 | 20771 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20773 | (eval $ac_try) 2>&5 | |
20774 | ac_status=$? | |
20775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20776 | (exit $ac_status); }; } && | |
20777 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20779 | (eval $ac_try) 2>&5 | |
20780 | ac_status=$? | |
20781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20782 | (exit $ac_status); }; }; then | |
20783 | ||
20784 | wx_cv_cpp_bool=yes | |
20785 | ||
20786 | else | |
20787 | echo "$as_me: failed program was:" >&5 | |
20788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20789 | ||
20790 | ||
20791 | wx_cv_cpp_bool=no | |
20792 | ||
20793 | ||
20794 | fi | |
ac1cb8d3 | 20795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20796 | |
20797 | ac_ext=c | |
20798 | ac_cpp='$CPP $CPPFLAGS' | |
20799 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20800 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20801 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20802 | ||
20803 | ||
20804 | fi | |
20805 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
20806 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
20807 | ||
20808 | if test "$wx_cv_cpp_bool" = "yes"; then | |
20809 | cat >>confdefs.h <<\_ACEOF | |
20810 | #define HAVE_BOOL 1 | |
20811 | _ACEOF | |
20812 | ||
20813 | fi | |
20814 | ||
20815 | ||
20816 | ||
20817 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
20818 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
20819 | if test "${wx_cv_explicit+set}" = set; then | |
20820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20821 | else | |
20822 | ||
20823 | ||
20824 | ||
20825 | ac_ext=cc | |
20826 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20827 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20828 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20829 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20830 | ||
20831 | ||
20832 | cat >conftest.$ac_ext <<_ACEOF | |
20833 | /* confdefs.h. */ | |
20834 | _ACEOF | |
20835 | cat confdefs.h >>conftest.$ac_ext | |
20836 | cat >>conftest.$ac_ext <<_ACEOF | |
20837 | /* end confdefs.h. */ | |
20838 | ||
20839 | class Foo { public: explicit Foo(int) {} }; | |
20840 | ||
20841 | int | |
20842 | main () | |
20843 | { | |
20844 | ||
20845 | return 0; | |
20846 | ||
20847 | ; | |
20848 | return 0; | |
20849 | } | |
20850 | _ACEOF | |
20851 | rm -f conftest.$ac_objext | |
20852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20853 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20854 | ac_status=$? |
ac1cb8d3 VS |
20855 | grep -v '^ *+' conftest.er1 >conftest.err |
20856 | rm -f conftest.er1 | |
20857 | cat conftest.err >&5 | |
a848cd7e SC |
20858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20859 | (exit $ac_status); } && | |
9dd0f6c2 | 20860 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20862 | (eval $ac_try) 2>&5 | |
20863 | ac_status=$? | |
20864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20865 | (exit $ac_status); }; } && | |
20866 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20868 | (eval $ac_try) 2>&5 | |
20869 | ac_status=$? | |
20870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20871 | (exit $ac_status); }; }; then | |
20872 | ||
20873 | cat >conftest.$ac_ext <<_ACEOF | |
20874 | /* confdefs.h. */ | |
20875 | _ACEOF | |
20876 | cat confdefs.h >>conftest.$ac_ext | |
20877 | cat >>conftest.$ac_ext <<_ACEOF | |
20878 | /* end confdefs.h. */ | |
20879 | ||
20880 | class Foo { public: explicit Foo(int) {} }; | |
20881 | static void TakeFoo(const Foo& foo) { } | |
20882 | ||
20883 | int | |
20884 | main () | |
20885 | { | |
20886 | ||
20887 | TakeFoo(17); | |
20888 | return 0; | |
20889 | ||
20890 | ; | |
20891 | return 0; | |
20892 | } | |
20893 | _ACEOF | |
20894 | rm -f conftest.$ac_objext | |
20895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20896 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20897 | ac_status=$? |
ac1cb8d3 VS |
20898 | grep -v '^ *+' conftest.er1 >conftest.err |
20899 | rm -f conftest.er1 | |
20900 | cat conftest.err >&5 | |
a848cd7e SC |
20901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20902 | (exit $ac_status); } && | |
9dd0f6c2 | 20903 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20905 | (eval $ac_try) 2>&5 | |
20906 | ac_status=$? | |
20907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20908 | (exit $ac_status); }; } && | |
20909 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20911 | (eval $ac_try) 2>&5 | |
20912 | ac_status=$? | |
20913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20914 | (exit $ac_status); }; }; then | |
20915 | wx_cv_explicit=no | |
20916 | else | |
20917 | echo "$as_me: failed program was:" >&5 | |
20918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20919 | ||
20920 | wx_cv_explicit=yes | |
20921 | ||
20922 | fi | |
ac1cb8d3 | 20923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20924 | |
20925 | else | |
20926 | echo "$as_me: failed program was:" >&5 | |
20927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20928 | ||
20929 | wx_cv_explicit=no | |
20930 | ||
20931 | fi | |
ac1cb8d3 | 20932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20933 | |
20934 | ac_ext=c | |
20935 | ac_cpp='$CPP $CPPFLAGS' | |
20936 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20937 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20938 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20939 | ||
20940 | ||
20941 | fi | |
20942 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
20943 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
20944 | ||
20945 | if test "$wx_cv_explicit" = "yes"; then | |
20946 | cat >>confdefs.h <<\_ACEOF | |
20947 | #define HAVE_EXPLICIT 1 | |
20948 | _ACEOF | |
20949 | ||
20950 | fi | |
20951 | ||
20952 | ||
20953 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
20954 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
20955 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
20956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20957 | else | |
20958 | ||
20959 | ||
20960 | ac_ext=cc | |
20961 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20962 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20963 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20964 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20965 | ||
20966 | cat >conftest.$ac_ext <<_ACEOF | |
20967 | /* confdefs.h. */ | |
20968 | _ACEOF | |
20969 | cat confdefs.h >>conftest.$ac_ext | |
20970 | cat >>conftest.$ac_ext <<_ACEOF | |
20971 | /* end confdefs.h. */ | |
20972 | ||
20973 | int | |
20974 | main () | |
20975 | { | |
20976 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
20977 | ; | |
20978 | return 0; | |
20979 | } | |
20980 | _ACEOF | |
20981 | rm -f conftest.$ac_objext | |
20982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20983 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20984 | ac_status=$? |
ac1cb8d3 VS |
20985 | grep -v '^ *+' conftest.er1 >conftest.err |
20986 | rm -f conftest.er1 | |
20987 | cat conftest.err >&5 | |
a848cd7e SC |
20988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20989 | (exit $ac_status); } && | |
9dd0f6c2 | 20990 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20992 | (eval $ac_try) 2>&5 | |
20993 | ac_status=$? | |
20994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20995 | (exit $ac_status); }; } && | |
20996 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20998 | (eval $ac_try) 2>&5 | |
20999 | ac_status=$? | |
21000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21001 | (exit $ac_status); }; }; then | |
21002 | ac_cv_cxx_const_cast=yes | |
21003 | else | |
21004 | echo "$as_me: failed program was:" >&5 | |
21005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21006 | ||
21007 | ac_cv_cxx_const_cast=no | |
21008 | fi | |
ac1cb8d3 | 21009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21010 | ac_ext=c |
21011 | ac_cpp='$CPP $CPPFLAGS' | |
21012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21015 | ||
21016 | ||
21017 | fi | |
21018 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
21019 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
21020 | if test "$ac_cv_cxx_const_cast" = yes; then | |
21021 | ||
21022 | cat >>confdefs.h <<\_ACEOF | |
21023 | #define HAVE_CONST_CAST | |
21024 | _ACEOF | |
21025 | ||
21026 | fi | |
21027 | ||
7714864e RL |
21028 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
21029 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
21030 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
21031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21032 | else | |
21033 | ||
21034 | ||
21035 | ac_ext=cc | |
21036 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21037 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21038 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21039 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21040 | ||
21041 | cat >conftest.$ac_ext <<_ACEOF | |
21042 | /* confdefs.h. */ | |
21043 | _ACEOF | |
21044 | cat confdefs.h >>conftest.$ac_ext | |
21045 | cat >>conftest.$ac_ext <<_ACEOF | |
21046 | /* end confdefs.h. */ | |
21047 | #include <typeinfo> | |
21048 | class Base { public : Base () {} virtual void f () = 0;}; | |
21049 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21050 | class Unrelated { public : Unrelated () {} }; | |
21051 | int g (Unrelated&) { return 0; } | |
21052 | int | |
21053 | main () | |
21054 | { | |
21055 | ||
21056 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
21057 | ; | |
21058 | return 0; | |
21059 | } | |
21060 | _ACEOF | |
21061 | rm -f conftest.$ac_objext | |
21062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21063 | (eval $ac_compile) 2>conftest.er1 | |
21064 | ac_status=$? | |
21065 | grep -v '^ *+' conftest.er1 >conftest.err | |
21066 | rm -f conftest.er1 | |
21067 | cat conftest.err >&5 | |
21068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21069 | (exit $ac_status); } && | |
9dd0f6c2 | 21070 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
21071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21072 | (eval $ac_try) 2>&5 | |
21073 | ac_status=$? | |
21074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21075 | (exit $ac_status); }; } && | |
21076 | { ac_try='test -s conftest.$ac_objext' | |
21077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21078 | (eval $ac_try) 2>&5 | |
21079 | ac_status=$? | |
21080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21081 | (exit $ac_status); }; }; then | |
21082 | ac_cv_cxx_reinterpret_cast=yes | |
21083 | else | |
21084 | echo "$as_me: failed program was:" >&5 | |
21085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21086 | ||
21087 | ac_cv_cxx_reinterpret_cast=no | |
21088 | fi | |
21089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21090 | ac_ext=c | |
21091 | ac_cpp='$CPP $CPPFLAGS' | |
21092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21095 | ||
21096 | ||
21097 | fi | |
21098 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
21099 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
21100 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
21101 | ||
21102 | cat >>confdefs.h <<\_ACEOF | |
21103 | #define HAVE_REINTERPRET_CAST | |
21104 | _ACEOF | |
21105 | ||
21106 | fi | |
21107 | ||
a848cd7e SC |
21108 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
21109 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
21110 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
21111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21112 | else | |
21113 | ||
21114 | ||
21115 | ac_ext=cc | |
21116 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21117 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21118 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21119 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21120 | ||
21121 | cat >conftest.$ac_ext <<_ACEOF | |
21122 | /* confdefs.h. */ | |
21123 | _ACEOF | |
21124 | cat confdefs.h >>conftest.$ac_ext | |
21125 | cat >>conftest.$ac_ext <<_ACEOF | |
21126 | /* end confdefs.h. */ | |
21127 | #include <typeinfo> | |
21128 | class Base { public : Base () {} virtual void f () = 0; }; | |
21129 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21130 | int g (Derived&) { return 0; } | |
21131 | int | |
21132 | main () | |
21133 | { | |
21134 | ||
21135 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
21136 | ; | |
21137 | return 0; | |
21138 | } | |
21139 | _ACEOF | |
21140 | rm -f conftest.$ac_objext | |
21141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21142 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21143 | ac_status=$? |
ac1cb8d3 VS |
21144 | grep -v '^ *+' conftest.er1 >conftest.err |
21145 | rm -f conftest.er1 | |
21146 | cat conftest.err >&5 | |
a848cd7e SC |
21147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21148 | (exit $ac_status); } && | |
9dd0f6c2 | 21149 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21151 | (eval $ac_try) 2>&5 | |
21152 | ac_status=$? | |
21153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21154 | (exit $ac_status); }; } && | |
21155 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21157 | (eval $ac_try) 2>&5 | |
21158 | ac_status=$? | |
21159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21160 | (exit $ac_status); }; }; then | |
21161 | ac_cv_cxx_static_cast=yes | |
21162 | else | |
21163 | echo "$as_me: failed program was:" >&5 | |
21164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21165 | ||
21166 | ac_cv_cxx_static_cast=no | |
21167 | fi | |
ac1cb8d3 | 21168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21169 | ac_ext=c |
21170 | ac_cpp='$CPP $CPPFLAGS' | |
21171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21174 | ||
21175 | ||
21176 | fi | |
21177 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
21178 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
21179 | if test "$ac_cv_cxx_static_cast" = yes; then | |
21180 | ||
21181 | cat >>confdefs.h <<\_ACEOF | |
21182 | #define HAVE_STATIC_CAST | |
21183 | _ACEOF | |
21184 | ||
21185 | fi | |
21186 | ||
21187 | ||
0a08f02a MB |
21188 | if test "$wxUSE_UNICODE" = "yes" -a \ |
21189 | \( "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes" \); then | |
a848cd7e SC |
21190 | ac_ext=cc |
21191 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21192 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21193 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21194 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21195 | ||
21196 | ||
0a08f02a MB |
21197 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 |
21198 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
21199 | cat >conftest.$ac_ext <<_ACEOF |
21200 | /* confdefs.h. */ | |
21201 | _ACEOF | |
21202 | cat confdefs.h >>conftest.$ac_ext | |
21203 | cat >>conftest.$ac_ext <<_ACEOF | |
21204 | /* end confdefs.h. */ | |
21205 | #include <string> | |
a848cd7e SC |
21206 | int |
21207 | main () | |
21208 | { | |
0a08f02a | 21209 | std::wstring foo; |
a848cd7e SC |
21210 | ; |
21211 | return 0; | |
21212 | } | |
21213 | _ACEOF | |
21214 | rm -f conftest.$ac_objext | |
21215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21216 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21217 | ac_status=$? |
ac1cb8d3 VS |
21218 | grep -v '^ *+' conftest.er1 >conftest.err |
21219 | rm -f conftest.er1 | |
21220 | cat conftest.err >&5 | |
a848cd7e SC |
21221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21222 | (exit $ac_status); } && | |
9dd0f6c2 | 21223 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21225 | (eval $ac_try) 2>&5 | |
21226 | ac_status=$? | |
21227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21228 | (exit $ac_status); }; } && | |
21229 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21231 | (eval $ac_try) 2>&5 | |
21232 | ac_status=$? | |
21233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21234 | (exit $ac_status); }; }; then | |
21235 | echo "$as_me:$LINENO: result: yes" >&5 | |
21236 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
21237 | cat >>confdefs.h <<\_ACEOF |
21238 | #define HAVE_STD_WSTRING 1 | |
21239 | _ACEOF | |
21240 | ||
a848cd7e SC |
21241 | else |
21242 | echo "$as_me: failed program was:" >&5 | |
21243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21244 | ||
21245 | echo "$as_me:$LINENO: result: no" >&5 | |
21246 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
21247 | echo "$as_me:$LINENO: checking if std::basic_string<wchar_t> works" >&5 |
21248 | echo $ECHO_N "checking if std::basic_string<wchar_t> works... $ECHO_C" >&6 | |
21249 | cat >conftest.$ac_ext <<_ACEOF | |
21250 | /* confdefs.h. */ | |
21251 | _ACEOF | |
21252 | cat confdefs.h >>conftest.$ac_ext | |
21253 | cat >>conftest.$ac_ext <<_ACEOF | |
21254 | /* end confdefs.h. */ | |
21255 | ||
21256 | #ifdef HAVE_WCHAR_H | |
21257 | # ifdef __CYGWIN__ | |
21258 | # include <stddef.h> | |
21259 | # endif | |
21260 | # include <wchar.h> | |
21261 | #endif | |
21262 | #ifdef HAVE_STDLIB_H | |
21263 | # include <stdlib.h> | |
21264 | #endif | |
21265 | #include <stdio.h> | |
21266 | #include <string> | |
21267 | ||
21268 | int | |
21269 | main () | |
21270 | { | |
21271 | std::basic_string<wchar_t> foo; | |
21272 | const wchar_t* dummy = foo.c_str(); | |
21273 | ; | |
21274 | return 0; | |
21275 | } | |
21276 | _ACEOF | |
21277 | rm -f conftest.$ac_objext | |
21278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21279 | (eval $ac_compile) 2>conftest.er1 | |
21280 | ac_status=$? | |
21281 | grep -v '^ *+' conftest.er1 >conftest.err | |
21282 | rm -f conftest.er1 | |
21283 | cat conftest.err >&5 | |
21284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21285 | (exit $ac_status); } && | |
21286 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
21287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21288 | (eval $ac_try) 2>&5 | |
21289 | ac_status=$? | |
21290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21291 | (exit $ac_status); }; } && | |
21292 | { ac_try='test -s conftest.$ac_objext' | |
21293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21294 | (eval $ac_try) 2>&5 | |
21295 | ac_status=$? | |
21296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21297 | (exit $ac_status); }; }; then | |
21298 | echo "$as_me:$LINENO: result: yes" >&5 | |
21299 | echo "${ECHO_T}yes" >&6 | |
21300 | else | |
21301 | echo "$as_me: failed program was:" >&5 | |
21302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21303 | ||
21304 | echo "$as_me:$LINENO: result: no" >&5 | |
21305 | echo "${ECHO_T}no" >&6 | |
21306 | { { echo "$as_me:$LINENO: error: Can't compile without unicode string class" >&5 | |
21307 | echo "$as_me: error: Can't compile without unicode string class" >&2;} | |
a848cd7e | 21308 | { (exit 1); exit 1; }; } |
0a08f02a | 21309 | |
a848cd7e | 21310 | fi |
ac1cb8d3 | 21311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21312 | |
0a08f02a MB |
21313 | fi |
21314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21315 | ||
21316 | ac_ext=c | |
21317 | ac_cpp='$CPP $CPPFLAGS' | |
21318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21321 | ||
21322 | fi | |
21323 | ||
21324 | if test "$wxUSE_STL" = "yes"; then | |
21325 | ac_ext=cc | |
21326 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21327 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21328 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21329 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21330 | ||
21331 | ||
21332 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
21333 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
21334 | cat >conftest.$ac_ext <<_ACEOF |
21335 | /* confdefs.h. */ | |
21336 | _ACEOF | |
21337 | cat confdefs.h >>conftest.$ac_ext | |
21338 | cat >>conftest.$ac_ext <<_ACEOF | |
21339 | /* end confdefs.h. */ | |
21340 | #include <string> | |
0a08f02a MB |
21341 | #include <functional> |
21342 | #include <algorithm> | |
21343 | #include <vector> | |
21344 | #include <list> | |
a848cd7e SC |
21345 | int |
21346 | main () | |
21347 | { | |
0a08f02a MB |
21348 | std::vector<int> moo; |
21349 | std::list<int> foo; | |
21350 | std::vector<int>::iterator it = | |
21351 | std::find_if(moo.begin(), moo.end(), | |
21352 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
21353 | ; |
21354 | return 0; | |
21355 | } | |
21356 | _ACEOF | |
21357 | rm -f conftest.$ac_objext | |
21358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21359 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21360 | ac_status=$? |
ac1cb8d3 VS |
21361 | grep -v '^ *+' conftest.er1 >conftest.err |
21362 | rm -f conftest.er1 | |
21363 | cat conftest.err >&5 | |
a848cd7e SC |
21364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21365 | (exit $ac_status); } && | |
9dd0f6c2 | 21366 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21368 | (eval $ac_try) 2>&5 | |
21369 | ac_status=$? | |
21370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21371 | (exit $ac_status); }; } && | |
21372 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21374 | (eval $ac_try) 2>&5 | |
21375 | ac_status=$? | |
21376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21377 | (exit $ac_status); }; }; then | |
21378 | echo "$as_me:$LINENO: result: yes" >&5 | |
21379 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
21380 | else |
21381 | echo "$as_me: failed program was:" >&5 | |
21382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21383 | ||
21384 | echo "$as_me:$LINENO: result: no" >&5 | |
21385 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
21386 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
21387 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
21388 | { (exit 1); exit 1; }; } | |
a848cd7e | 21389 | fi |
ac1cb8d3 | 21390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21391 | |
21392 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
21393 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
21394 | cat >conftest.$ac_ext <<_ACEOF | |
21395 | /* confdefs.h. */ | |
21396 | _ACEOF | |
21397 | cat confdefs.h >>conftest.$ac_ext | |
21398 | cat >>conftest.$ac_ext <<_ACEOF | |
21399 | /* end confdefs.h. */ | |
21400 | #include <string> | |
21401 | int | |
21402 | main () | |
21403 | { | |
21404 | std::string foo, bar; | |
21405 | foo.compare(bar); | |
21406 | foo.compare(1, 1, bar); | |
21407 | foo.compare(1, 1, bar, 1, 1); | |
21408 | foo.compare(""); | |
21409 | foo.compare(1, 1, ""); | |
21410 | foo.compare(1, 1, "", 2); | |
21411 | ; | |
21412 | return 0; | |
21413 | } | |
21414 | _ACEOF | |
21415 | rm -f conftest.$ac_objext | |
21416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21417 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21418 | ac_status=$? |
ac1cb8d3 VS |
21419 | grep -v '^ *+' conftest.er1 >conftest.err |
21420 | rm -f conftest.er1 | |
21421 | cat conftest.err >&5 | |
a848cd7e SC |
21422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21423 | (exit $ac_status); } && | |
9dd0f6c2 | 21424 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21426 | (eval $ac_try) 2>&5 | |
21427 | ac_status=$? | |
21428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21429 | (exit $ac_status); }; } && | |
21430 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
21436 | echo "$as_me:$LINENO: result: yes" >&5 | |
21437 | echo "${ECHO_T}yes" >&6 | |
21438 | cat >>confdefs.h <<\_ACEOF | |
21439 | #define HAVE_STD_STRING_COMPARE 1 | |
21440 | _ACEOF | |
21441 | ||
21442 | else | |
21443 | echo "$as_me: failed program was:" >&5 | |
21444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21445 | ||
21446 | echo "$as_me:$LINENO: result: no" >&5 | |
21447 | echo "${ECHO_T}no" >&6 | |
21448 | fi | |
ac1cb8d3 | 21449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21450 | |
21451 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21452 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
21453 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
21454 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21456 | fi | |
21457 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21458 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21459 | else | |
21460 | # Is the header compilable? | |
21461 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
21462 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
21463 | cat >conftest.$ac_ext <<_ACEOF | |
21464 | /* confdefs.h. */ | |
21465 | _ACEOF | |
21466 | cat confdefs.h >>conftest.$ac_ext | |
21467 | cat >>conftest.$ac_ext <<_ACEOF | |
21468 | /* end confdefs.h. */ | |
21469 | $ac_includes_default | |
21470 | #include <hash_map> | |
21471 | _ACEOF | |
21472 | rm -f conftest.$ac_objext | |
21473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21474 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21475 | ac_status=$? |
ac1cb8d3 VS |
21476 | grep -v '^ *+' conftest.er1 >conftest.err |
21477 | rm -f conftest.er1 | |
21478 | cat conftest.err >&5 | |
bdcade0a MB |
21479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21480 | (exit $ac_status); } && | |
9dd0f6c2 | 21481 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21483 | (eval $ac_try) 2>&5 | |
21484 | ac_status=$? | |
21485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21486 | (exit $ac_status); }; } && | |
21487 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21489 | (eval $ac_try) 2>&5 | |
21490 | ac_status=$? | |
21491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21492 | (exit $ac_status); }; }; then | |
21493 | ac_header_compiler=yes | |
21494 | else | |
21495 | echo "$as_me: failed program was:" >&5 | |
21496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21497 | ||
21498 | ac_header_compiler=no | |
21499 | fi | |
ac1cb8d3 | 21500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21501 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21502 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21503 | ||
21504 | # Is the header present? | |
21505 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
21506 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
21507 | cat >conftest.$ac_ext <<_ACEOF | |
21508 | /* confdefs.h. */ | |
21509 | _ACEOF | |
21510 | cat confdefs.h >>conftest.$ac_ext | |
21511 | cat >>conftest.$ac_ext <<_ACEOF | |
21512 | /* end confdefs.h. */ | |
21513 | #include <hash_map> | |
21514 | _ACEOF | |
21515 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21516 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21517 | ac_status=$? | |
21518 | grep -v '^ *+' conftest.er1 >conftest.err | |
21519 | rm -f conftest.er1 | |
21520 | cat conftest.err >&5 | |
21521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21522 | (exit $ac_status); } >/dev/null; then | |
21523 | if test -s conftest.err; then | |
21524 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21525 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
21526 | else |
21527 | ac_cpp_err= | |
21528 | fi | |
21529 | else | |
21530 | ac_cpp_err=yes | |
21531 | fi | |
21532 | if test -z "$ac_cpp_err"; then | |
21533 | ac_header_preproc=yes | |
21534 | else | |
21535 | echo "$as_me: failed program was:" >&5 | |
21536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21537 | ||
21538 | ac_header_preproc=no | |
21539 | fi | |
21540 | rm -f conftest.err conftest.$ac_ext | |
21541 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21542 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21543 | ||
21544 | # So? What about this header? | |
ac1cb8d3 VS |
21545 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21546 | yes:no: ) | |
bdcade0a MB |
21547 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
21548 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21549 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
21550 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
21551 | ac_header_preproc=yes | |
bdcade0a | 21552 | ;; |
ac1cb8d3 | 21553 | no:yes:* ) |
bdcade0a MB |
21554 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
21555 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21556 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
21557 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
21558 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
21559 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
21560 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
21561 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
21562 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
21563 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21564 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
21565 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
21566 | ( |
21567 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21568 | ## ----------------------------------------- ## |
21569 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21570 | ## ----------------------------------------- ## | |
bdcade0a MB |
21571 | _ASBOX |
21572 | ) | | |
21573 | sed "s/^/$as_me: WARNING: /" >&2 | |
21574 | ;; | |
21575 | esac | |
21576 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
21577 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
21578 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21580 | else | |
21581 | ac_cv_header_hash_map=$ac_header_preproc | |
21582 | fi | |
21583 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21584 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21585 | ||
21586 | fi | |
21587 | if test $ac_cv_header_hash_map = yes; then | |
21588 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21589 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21590 | cat >conftest.$ac_ext <<_ACEOF | |
21591 | /* confdefs.h. */ | |
21592 | _ACEOF | |
21593 | cat confdefs.h >>conftest.$ac_ext | |
21594 | cat >>conftest.$ac_ext <<_ACEOF | |
21595 | /* end confdefs.h. */ | |
21596 | #include <hash_map> | |
21597 | #include <hash_set> | |
21598 | int | |
21599 | main () | |
21600 | { | |
21601 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
21602 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
21603 | ; | |
21604 | return 0; | |
21605 | } | |
21606 | _ACEOF | |
21607 | rm -f conftest.$ac_objext | |
21608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21609 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21610 | ac_status=$? |
ac1cb8d3 VS |
21611 | grep -v '^ *+' conftest.er1 >conftest.err |
21612 | rm -f conftest.er1 | |
21613 | cat conftest.err >&5 | |
bdcade0a MB |
21614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21615 | (exit $ac_status); } && | |
9dd0f6c2 | 21616 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21618 | (eval $ac_try) 2>&5 | |
21619 | ac_status=$? | |
21620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21621 | (exit $ac_status); }; } && | |
21622 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21624 | (eval $ac_try) 2>&5 | |
21625 | ac_status=$? | |
21626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21627 | (exit $ac_status); }; }; then | |
21628 | echo "$as_me:$LINENO: result: yes" >&5 | |
21629 | echo "${ECHO_T}yes" >&6 | |
21630 | cat >>confdefs.h <<\_ACEOF | |
21631 | #define HAVE_HASH_MAP 1 | |
21632 | _ACEOF | |
21633 | ||
21634 | cat >>confdefs.h <<\_ACEOF | |
21635 | #define HAVE_STD_HASH_MAP 1 | |
21636 | _ACEOF | |
21637 | ||
21638 | else | |
21639 | echo "$as_me: failed program was:" >&5 | |
21640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21641 | ||
21642 | echo "$as_me:$LINENO: result: no" >&5 | |
21643 | echo "${ECHO_T}no" >&6 | |
21644 | fi | |
ac1cb8d3 | 21645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21646 | |
21647 | fi | |
21648 | ||
21649 | ||
21650 | ||
21651 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21652 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21653 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21654 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21656 | fi | |
21657 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21658 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21659 | else | |
21660 | # Is the header compilable? | |
21661 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
21662 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
21663 | cat >conftest.$ac_ext <<_ACEOF | |
21664 | /* confdefs.h. */ | |
21665 | _ACEOF | |
21666 | cat confdefs.h >>conftest.$ac_ext | |
21667 | cat >>conftest.$ac_ext <<_ACEOF | |
21668 | /* end confdefs.h. */ | |
21669 | $ac_includes_default | |
21670 | #include <ext/hash_map> | |
21671 | _ACEOF | |
21672 | rm -f conftest.$ac_objext | |
21673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21674 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21675 | ac_status=$? |
ac1cb8d3 VS |
21676 | grep -v '^ *+' conftest.er1 >conftest.err |
21677 | rm -f conftest.er1 | |
21678 | cat conftest.err >&5 | |
bdcade0a MB |
21679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21680 | (exit $ac_status); } && | |
9dd0f6c2 | 21681 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21683 | (eval $ac_try) 2>&5 | |
21684 | ac_status=$? | |
21685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21686 | (exit $ac_status); }; } && | |
21687 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21689 | (eval $ac_try) 2>&5 | |
21690 | ac_status=$? | |
21691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21692 | (exit $ac_status); }; }; then | |
21693 | ac_header_compiler=yes | |
21694 | else | |
21695 | echo "$as_me: failed program was:" >&5 | |
21696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21697 | ||
21698 | ac_header_compiler=no | |
21699 | fi | |
ac1cb8d3 | 21700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21701 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21702 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21703 | ||
21704 | # Is the header present? | |
21705 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
21706 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
21707 | cat >conftest.$ac_ext <<_ACEOF | |
21708 | /* confdefs.h. */ | |
21709 | _ACEOF | |
21710 | cat confdefs.h >>conftest.$ac_ext | |
21711 | cat >>conftest.$ac_ext <<_ACEOF | |
21712 | /* end confdefs.h. */ | |
21713 | #include <ext/hash_map> | |
21714 | _ACEOF | |
21715 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21716 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21717 | ac_status=$? | |
21718 | grep -v '^ *+' conftest.er1 >conftest.err | |
21719 | rm -f conftest.er1 | |
21720 | cat conftest.err >&5 | |
21721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21722 | (exit $ac_status); } >/dev/null; then | |
21723 | if test -s conftest.err; then | |
21724 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21725 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
21726 | else |
21727 | ac_cpp_err= | |
21728 | fi | |
21729 | else | |
21730 | ac_cpp_err=yes | |
21731 | fi | |
21732 | if test -z "$ac_cpp_err"; then | |
21733 | ac_header_preproc=yes | |
21734 | else | |
21735 | echo "$as_me: failed program was:" >&5 | |
21736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21737 | ||
21738 | ac_header_preproc=no | |
21739 | fi | |
21740 | rm -f conftest.err conftest.$ac_ext | |
21741 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21742 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21743 | ||
21744 | # So? What about this header? | |
ac1cb8d3 VS |
21745 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21746 | yes:no: ) | |
bdcade0a MB |
21747 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
21748 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21749 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
21750 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
21751 | ac_header_preproc=yes | |
bdcade0a | 21752 | ;; |
ac1cb8d3 | 21753 | no:yes:* ) |
bdcade0a MB |
21754 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
21755 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21756 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
21757 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
21758 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
21759 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
21760 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
21761 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
21762 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
21763 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21764 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
21765 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
21766 | ( |
21767 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21768 | ## ----------------------------------------- ## |
21769 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21770 | ## ----------------------------------------- ## | |
bdcade0a MB |
21771 | _ASBOX |
21772 | ) | | |
21773 | sed "s/^/$as_me: WARNING: /" >&2 | |
21774 | ;; | |
21775 | esac | |
21776 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21777 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21778 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21780 | else | |
21781 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
21782 | fi | |
21783 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21784 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21785 | ||
21786 | fi | |
21787 | if test $ac_cv_header_ext_hash_map = yes; then | |
21788 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21789 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21790 | cat >conftest.$ac_ext <<_ACEOF | |
21791 | /* confdefs.h. */ | |
21792 | _ACEOF | |
21793 | cat confdefs.h >>conftest.$ac_ext | |
21794 | cat >>conftest.$ac_ext <<_ACEOF | |
21795 | /* end confdefs.h. */ | |
21796 | #include <ext/hash_map> | |
21797 | #include <ext/hash_set> | |
21798 | int | |
21799 | main () | |
21800 | { | |
21801 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
21802 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
21803 | ; | |
21804 | return 0; | |
21805 | } | |
21806 | _ACEOF | |
21807 | rm -f conftest.$ac_objext | |
21808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21809 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21810 | ac_status=$? |
ac1cb8d3 VS |
21811 | grep -v '^ *+' conftest.er1 >conftest.err |
21812 | rm -f conftest.er1 | |
21813 | cat conftest.err >&5 | |
bdcade0a MB |
21814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21815 | (exit $ac_status); } && | |
9dd0f6c2 | 21816 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21818 | (eval $ac_try) 2>&5 | |
21819 | ac_status=$? | |
21820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21821 | (exit $ac_status); }; } && | |
21822 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21824 | (eval $ac_try) 2>&5 | |
21825 | ac_status=$? | |
21826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21827 | (exit $ac_status); }; }; then | |
21828 | echo "$as_me:$LINENO: result: yes" >&5 | |
21829 | echo "${ECHO_T}yes" >&6 | |
21830 | cat >>confdefs.h <<\_ACEOF | |
21831 | #define HAVE_EXT_HASH_MAP 1 | |
21832 | _ACEOF | |
21833 | ||
21834 | cat >>confdefs.h <<\_ACEOF | |
21835 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
21836 | _ACEOF | |
21837 | ||
21838 | else | |
21839 | echo "$as_me: failed program was:" >&5 | |
21840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21841 | ||
21842 | echo "$as_me:$LINENO: result: no" >&5 | |
21843 | echo "${ECHO_T}no" >&6 | |
21844 | fi | |
ac1cb8d3 | 21845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21846 | |
21847 | fi | |
21848 | ||
21849 | ||
a848cd7e SC |
21850 | |
21851 | ac_ext=c | |
21852 | ac_cpp='$CPP $CPPFLAGS' | |
21853 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21854 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21855 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21856 | ||
21857 | fi | |
21858 | ||
21859 | ||
21860 | SEARCH_INCLUDE="\ | |
21861 | /usr/local/include \ | |
21862 | \ | |
21863 | /usr/Motif-2.1/include \ | |
21864 | /usr/Motif-1.2/include \ | |
21865 | /usr/include/Motif1.2 \ | |
21866 | /opt/xpm/include/X11 \ | |
21867 | /opt/GBxpm/include/ \ | |
21868 | /opt/GBxpm/X11/include/ \ | |
21869 | \ | |
21870 | /usr/dt/include \ | |
21871 | /usr/openwin/include \ | |
21872 | \ | |
21873 | /usr/include/Xm \ | |
21874 | \ | |
21875 | /usr/X11R6/include \ | |
21876 | /usr/X11R6.4/include \ | |
21877 | /usr/X11R5/include \ | |
21878 | /usr/X11R4/include \ | |
21879 | \ | |
21880 | /usr/include/X11R6 \ | |
21881 | /usr/include/X11R5 \ | |
21882 | /usr/include/X11R4 \ | |
21883 | \ | |
21884 | /usr/local/X11R6/include \ | |
21885 | /usr/local/X11R5/include \ | |
21886 | /usr/local/X11R4/include \ | |
21887 | \ | |
21888 | /usr/local/include/X11R6 \ | |
21889 | /usr/local/include/X11R5 \ | |
21890 | /usr/local/include/X11R4 \ | |
21891 | \ | |
21892 | /usr/X11/include \ | |
21893 | /usr/include/X11 \ | |
21894 | /usr/local/X11/include \ | |
21895 | /usr/local/include/X11 \ | |
21896 | \ | |
21897 | /usr/X386/include \ | |
21898 | /usr/x386/include \ | |
21899 | /usr/XFree86/include/X11 \ | |
21900 | \ | |
21901 | X:/XFree86/include \ | |
21902 | X:/XFree86/include/X11 \ | |
21903 | \ | |
21904 | /usr/include/gtk \ | |
21905 | /usr/local/include/gtk \ | |
21906 | /usr/include/glib \ | |
21907 | /usr/local/include/glib \ | |
21908 | \ | |
21909 | /usr/include/qt \ | |
21910 | /usr/local/include/qt \ | |
21911 | \ | |
21912 | /usr/local/arm/3.3.2/include \ | |
21913 | \ | |
21914 | /usr/include/windows \ | |
21915 | /usr/include/wine \ | |
21916 | /usr/local/include/wine \ | |
21917 | \ | |
21918 | /usr/unsupported/include \ | |
21919 | /usr/athena/include \ | |
21920 | /usr/local/x11r5/include \ | |
21921 | /usr/lpp/Xamples/include \ | |
21922 | \ | |
21923 | /usr/openwin/share/include" | |
21924 | ||
07158944 | 21925 | SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`" |
a848cd7e SC |
21926 | |
21927 | ||
21928 | cat >confcache <<\_ACEOF | |
21929 | # This file is a shell script that caches the results of configure | |
21930 | # tests run on this system so they can be shared between configure | |
21931 | # scripts and configure runs, see configure's option --config-cache. | |
21932 | # It is not useful on other systems. If it contains results you don't | |
21933 | # want to keep, you may remove or edit it. | |
21934 | # | |
21935 | # config.status only pays attention to the cache file if you give it | |
21936 | # the --recheck option to rerun configure. | |
21937 | # | |
21938 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21939 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21940 | # following values. | |
21941 | ||
21942 | _ACEOF | |
21943 | ||
21944 | # The following way of writing the cache mishandles newlines in values, | |
21945 | # but we know of no workaround that is simple, portable, and efficient. | |
21946 | # So, don't put newlines in cache variables' values. | |
21947 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21948 | # and sets the high bit in the cache file unless we assign to the vars. | |
21949 | { | |
21950 | (set) 2>&1 | | |
21951 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21952 | *ac_space=\ *) | |
21953 | # `set' does not quote correctly, so add quotes (double-quote | |
21954 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21955 | sed -n \ | |
ac1cb8d3 VS |
21956 | "s/'/'\\\\''/g; |
21957 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
21958 | ;; |
21959 | *) | |
21960 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21961 | sed -n \ | |
ac1cb8d3 | 21962 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
21963 | ;; |
21964 | esac; | |
21965 | } | | |
21966 | sed ' | |
21967 | t clear | |
21968 | : clear | |
21969 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21970 | t end | |
21971 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21972 | : end' >>confcache | |
21973 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21974 | if test -w $cache_file; then | |
21975 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21976 | cat confcache >$cache_file | |
21977 | else | |
21978 | echo "not updating unwritable cache $cache_file" | |
21979 | fi | |
21980 | fi | |
21981 | rm -f confcache | |
21982 | ||
21983 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
21984 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
21985 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
21986 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
21987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21988 | else | |
21989 | ||
21990 | cat >conftest.$ac_ext <<_ACEOF | |
21991 | /* confdefs.h. */ | |
21992 | _ACEOF | |
21993 | cat confdefs.h >>conftest.$ac_ext | |
21994 | cat >>conftest.$ac_ext <<_ACEOF | |
21995 | /* end confdefs.h. */ | |
21996 | #include <features.h> | |
21997 | int | |
21998 | main () | |
21999 | { | |
22000 | ||
22001 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
22002 | #error not glibc2.1 | |
22003 | #endif | |
22004 | ||
22005 | ; | |
22006 | return 0; | |
22007 | } | |
22008 | _ACEOF | |
22009 | rm -f conftest.$ac_objext | |
22010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22011 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22012 | ac_status=$? |
ac1cb8d3 VS |
22013 | grep -v '^ *+' conftest.er1 >conftest.err |
22014 | rm -f conftest.er1 | |
22015 | cat conftest.err >&5 | |
a848cd7e SC |
22016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22017 | (exit $ac_status); } && | |
9dd0f6c2 | 22018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22020 | (eval $ac_try) 2>&5 | |
22021 | ac_status=$? | |
22022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22023 | (exit $ac_status); }; } && | |
22024 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22026 | (eval $ac_try) 2>&5 | |
22027 | ac_status=$? | |
22028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22029 | (exit $ac_status); }; }; then | |
22030 | ||
22031 | wx_cv_lib_glibc21=yes | |
22032 | ||
22033 | else | |
22034 | echo "$as_me: failed program was:" >&5 | |
22035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22036 | ||
22037 | ||
22038 | wx_cv_lib_glibc21=no | |
22039 | ||
22040 | ||
22041 | fi | |
ac1cb8d3 | 22042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22043 | |
22044 | fi | |
22045 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
22046 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
22047 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
22048 | cat >>confdefs.h <<\_ACEOF | |
22049 | #define wxHAVE_GLIBC2 1 | |
22050 | _ACEOF | |
22051 | ||
22052 | fi | |
22053 | fi | |
22054 | ||
22055 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
22056 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
22057 | cat >>confdefs.h <<\_ACEOF | |
22058 | #define _GNU_SOURCE 1 | |
22059 | _ACEOF | |
22060 | ||
22061 | fi | |
22062 | fi | |
22063 | ||
22064 | ||
22065 | ||
22066 | if test "$wxUSE_REGEX" != "no"; then | |
22067 | cat >>confdefs.h <<\_ACEOF | |
22068 | #define wxUSE_REGEX 1 | |
22069 | _ACEOF | |
22070 | ||
22071 | ||
22072 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
22073 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
22074 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
22075 | wxUSE_REGEX=builtin | |
22076 | fi | |
22077 | ||
22078 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
22079 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22080 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22081 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22082 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22084 | fi | |
22085 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22086 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22087 | else | |
22088 | # Is the header compilable? | |
22089 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
22090 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
22091 | cat >conftest.$ac_ext <<_ACEOF | |
22092 | /* confdefs.h. */ | |
22093 | _ACEOF | |
22094 | cat confdefs.h >>conftest.$ac_ext | |
22095 | cat >>conftest.$ac_ext <<_ACEOF | |
22096 | /* end confdefs.h. */ | |
22097 | $ac_includes_default | |
22098 | #include <regex.h> | |
22099 | _ACEOF | |
22100 | rm -f conftest.$ac_objext | |
22101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22102 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22103 | ac_status=$? |
ac1cb8d3 VS |
22104 | grep -v '^ *+' conftest.er1 >conftest.err |
22105 | rm -f conftest.er1 | |
22106 | cat conftest.err >&5 | |
a848cd7e SC |
22107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22108 | (exit $ac_status); } && | |
9dd0f6c2 | 22109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22111 | (eval $ac_try) 2>&5 | |
22112 | ac_status=$? | |
22113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22114 | (exit $ac_status); }; } && | |
22115 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22117 | (eval $ac_try) 2>&5 | |
22118 | ac_status=$? | |
22119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22120 | (exit $ac_status); }; }; then | |
22121 | ac_header_compiler=yes | |
22122 | else | |
22123 | echo "$as_me: failed program was:" >&5 | |
22124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22125 | ||
22126 | ac_header_compiler=no | |
22127 | fi | |
ac1cb8d3 | 22128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22129 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22130 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22131 | ||
22132 | # Is the header present? | |
22133 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
22134 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
22135 | cat >conftest.$ac_ext <<_ACEOF | |
22136 | /* confdefs.h. */ | |
22137 | _ACEOF | |
22138 | cat confdefs.h >>conftest.$ac_ext | |
22139 | cat >>conftest.$ac_ext <<_ACEOF | |
22140 | /* end confdefs.h. */ | |
22141 | #include <regex.h> | |
22142 | _ACEOF | |
22143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22145 | ac_status=$? | |
22146 | grep -v '^ *+' conftest.er1 >conftest.err | |
22147 | rm -f conftest.er1 | |
22148 | cat conftest.err >&5 | |
22149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22150 | (exit $ac_status); } >/dev/null; then | |
22151 | if test -s conftest.err; then | |
22152 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22153 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22154 | else |
22155 | ac_cpp_err= | |
22156 | fi | |
22157 | else | |
22158 | ac_cpp_err=yes | |
22159 | fi | |
22160 | if test -z "$ac_cpp_err"; then | |
22161 | ac_header_preproc=yes | |
22162 | else | |
22163 | echo "$as_me: failed program was:" >&5 | |
22164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22165 | ||
22166 | ac_header_preproc=no | |
22167 | fi | |
22168 | rm -f conftest.err conftest.$ac_ext | |
22169 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22170 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22171 | ||
22172 | # So? What about this header? | |
ac1cb8d3 VS |
22173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22174 | yes:no: ) | |
a848cd7e SC |
22175 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22176 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22177 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
22178 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
22179 | ac_header_preproc=yes | |
a848cd7e | 22180 | ;; |
ac1cb8d3 | 22181 | no:yes:* ) |
a848cd7e SC |
22182 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
22183 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22184 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
22185 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
22186 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
22187 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
22188 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22189 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22190 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
22191 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22192 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
22193 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22194 | ( |
22195 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22196 | ## ----------------------------------------- ## |
22197 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22198 | ## ----------------------------------------- ## | |
a848cd7e SC |
22199 | _ASBOX |
22200 | ) | | |
22201 | sed "s/^/$as_me: WARNING: /" >&2 | |
22202 | ;; | |
22203 | esac | |
22204 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22205 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22206 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22208 | else | |
22209 | ac_cv_header_regex_h=$ac_header_preproc | |
22210 | fi | |
22211 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22212 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22213 | ||
22214 | fi | |
22215 | if test $ac_cv_header_regex_h = yes; then | |
22216 | ||
22217 | for ac_func in regcomp | |
22218 | do | |
22219 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22220 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22221 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22222 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22224 | else | |
22225 | cat >conftest.$ac_ext <<_ACEOF | |
22226 | /* confdefs.h. */ | |
22227 | _ACEOF | |
22228 | cat confdefs.h >>conftest.$ac_ext | |
22229 | cat >>conftest.$ac_ext <<_ACEOF | |
22230 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
22231 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22232 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22233 | #define $ac_func innocuous_$ac_func | |
22234 | ||
a848cd7e SC |
22235 | /* System header to define __stub macros and hopefully few prototypes, |
22236 | which can conflict with char $ac_func (); below. | |
22237 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22238 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 22239 | |
a848cd7e SC |
22240 | #ifdef __STDC__ |
22241 | # include <limits.h> | |
22242 | #else | |
22243 | # include <assert.h> | |
22244 | #endif | |
ac1cb8d3 VS |
22245 | |
22246 | #undef $ac_func | |
22247 | ||
a848cd7e SC |
22248 | /* Override any gcc2 internal prototype to avoid an error. */ |
22249 | #ifdef __cplusplus | |
22250 | extern "C" | |
22251 | { | |
22252 | #endif | |
22253 | /* We use char because int might match the return type of a gcc2 | |
22254 | builtin and then its argument prototype would still apply. */ | |
22255 | char $ac_func (); | |
22256 | /* The GNU C library defines this for functions which it implements | |
22257 | to always fail with ENOSYS. Some functions are actually named | |
22258 | something starting with __ and the normal name is an alias. */ | |
22259 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22260 | choke me | |
22261 | #else | |
22262 | char (*f) () = $ac_func; | |
22263 | #endif | |
22264 | #ifdef __cplusplus | |
22265 | } | |
22266 | #endif | |
22267 | ||
22268 | int | |
22269 | main () | |
22270 | { | |
22271 | return f != $ac_func; | |
22272 | ; | |
22273 | return 0; | |
22274 | } | |
22275 | _ACEOF | |
22276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22278 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22279 | ac_status=$? |
ac1cb8d3 VS |
22280 | grep -v '^ *+' conftest.er1 >conftest.err |
22281 | rm -f conftest.er1 | |
22282 | cat conftest.err >&5 | |
a848cd7e SC |
22283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22284 | (exit $ac_status); } && | |
9dd0f6c2 | 22285 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22287 | (eval $ac_try) 2>&5 | |
22288 | ac_status=$? | |
22289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22290 | (exit $ac_status); }; } && | |
22291 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22293 | (eval $ac_try) 2>&5 | |
22294 | ac_status=$? | |
22295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22296 | (exit $ac_status); }; }; then | |
22297 | eval "$as_ac_var=yes" | |
22298 | else | |
22299 | echo "$as_me: failed program was:" >&5 | |
22300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22301 | ||
22302 | eval "$as_ac_var=no" | |
22303 | fi | |
ac1cb8d3 VS |
22304 | rm -f conftest.err conftest.$ac_objext \ |
22305 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22306 | fi |
22307 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22308 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22309 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22310 | cat >>confdefs.h <<_ACEOF | |
22311 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22312 | _ACEOF | |
22313 | ||
22314 | fi | |
22315 | done | |
22316 | ||
22317 | fi | |
22318 | ||
22319 | ||
22320 | ||
22321 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
22322 | if test "$wxUSE_REGEX" = "sys" ; then | |
22323 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
22324 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
22325 | { (exit 1); exit 1; }; } | |
22326 | else | |
22327 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
22328 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
22329 | wxUSE_REGEX=builtin | |
22330 | fi | |
22331 | else | |
22332 | wxUSE_REGEX=sys | |
22333 | cat >>confdefs.h <<\_ACEOF | |
22334 | #define WX_NO_REGEX_ADVANCED 1 | |
22335 | _ACEOF | |
22336 | ||
22337 | fi | |
22338 | fi | |
22339 | fi | |
22340 | ||
22341 | ||
22342 | ZLIB_LINK= | |
22343 | if test "$wxUSE_ZLIB" != "no" ; then | |
22344 | cat >>confdefs.h <<\_ACEOF | |
22345 | #define wxUSE_ZLIB 1 | |
22346 | _ACEOF | |
22347 | ||
22348 | ||
22349 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
22350 | if test "$USE_DARWIN" = 1; then | |
22351 | system_zlib_h_ok="yes" | |
22352 | else | |
22353 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
22354 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
22355 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22357 | else | |
22358 | if test "$cross_compiling" = yes; then | |
22359 | unset ac_cv_header_zlib_h | |
22360 | ||
22361 | else | |
22362 | cat >conftest.$ac_ext <<_ACEOF | |
22363 | /* confdefs.h. */ | |
22364 | _ACEOF | |
22365 | cat confdefs.h >>conftest.$ac_ext | |
22366 | cat >>conftest.$ac_ext <<_ACEOF | |
22367 | /* end confdefs.h. */ | |
22368 | ||
22369 | #include <zlib.h> | |
22370 | #include <stdio.h> | |
22371 | ||
22372 | int main() | |
22373 | { | |
22374 | FILE *f=fopen("conftestval", "w"); | |
22375 | if (!f) exit(1); | |
22376 | fprintf(f, "%s", | |
22377 | ZLIB_VERSION[0] == '1' && | |
22378 | (ZLIB_VERSION[2] > '1' || | |
22379 | (ZLIB_VERSION[2] == '1' && | |
22380 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
22381 | exit(0); | |
22382 | } | |
22383 | ||
22384 | _ACEOF | |
22385 | rm -f conftest$ac_exeext | |
22386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22387 | (eval $ac_link) 2>&5 | |
22388 | ac_status=$? | |
22389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22390 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22392 | (eval $ac_try) 2>&5 | |
22393 | ac_status=$? | |
22394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22395 | (exit $ac_status); }; }; then | |
22396 | ac_cv_header_zlib_h=`cat conftestval` | |
22397 | else | |
22398 | echo "$as_me: program exited with status $ac_status" >&5 | |
22399 | echo "$as_me: failed program was:" >&5 | |
22400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22401 | ||
22402 | ( exit $ac_status ) | |
22403 | ac_cv_header_zlib_h=no | |
22404 | fi | |
ac1cb8d3 | 22405 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22406 | fi |
22407 | ||
22408 | fi | |
22409 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22410 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22411 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22412 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
22413 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
22414 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22416 | fi | |
22417 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22418 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22419 | else | |
22420 | # Is the header compilable? | |
22421 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
22422 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
22423 | cat >conftest.$ac_ext <<_ACEOF | |
22424 | /* confdefs.h. */ | |
22425 | _ACEOF | |
22426 | cat confdefs.h >>conftest.$ac_ext | |
22427 | cat >>conftest.$ac_ext <<_ACEOF | |
22428 | /* end confdefs.h. */ | |
22429 | $ac_includes_default | |
22430 | #include <zlib.h> | |
22431 | _ACEOF | |
22432 | rm -f conftest.$ac_objext | |
22433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22434 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22435 | ac_status=$? |
ac1cb8d3 VS |
22436 | grep -v '^ *+' conftest.er1 >conftest.err |
22437 | rm -f conftest.er1 | |
22438 | cat conftest.err >&5 | |
a848cd7e SC |
22439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22440 | (exit $ac_status); } && | |
9dd0f6c2 | 22441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22443 | (eval $ac_try) 2>&5 | |
22444 | ac_status=$? | |
22445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22446 | (exit $ac_status); }; } && | |
22447 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22449 | (eval $ac_try) 2>&5 | |
22450 | ac_status=$? | |
22451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22452 | (exit $ac_status); }; }; then | |
22453 | ac_header_compiler=yes | |
22454 | else | |
22455 | echo "$as_me: failed program was:" >&5 | |
22456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22457 | ||
22458 | ac_header_compiler=no | |
22459 | fi | |
ac1cb8d3 | 22460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22461 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22462 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22463 | ||
22464 | # Is the header present? | |
22465 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
22466 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
22467 | cat >conftest.$ac_ext <<_ACEOF | |
22468 | /* confdefs.h. */ | |
22469 | _ACEOF | |
22470 | cat confdefs.h >>conftest.$ac_ext | |
22471 | cat >>conftest.$ac_ext <<_ACEOF | |
22472 | /* end confdefs.h. */ | |
22473 | #include <zlib.h> | |
22474 | _ACEOF | |
22475 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22476 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22477 | ac_status=$? | |
22478 | grep -v '^ *+' conftest.er1 >conftest.err | |
22479 | rm -f conftest.er1 | |
22480 | cat conftest.err >&5 | |
22481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22482 | (exit $ac_status); } >/dev/null; then | |
22483 | if test -s conftest.err; then | |
22484 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22485 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22486 | else |
22487 | ac_cpp_err= | |
22488 | fi | |
22489 | else | |
22490 | ac_cpp_err=yes | |
22491 | fi | |
22492 | if test -z "$ac_cpp_err"; then | |
22493 | ac_header_preproc=yes | |
22494 | else | |
22495 | echo "$as_me: failed program was:" >&5 | |
22496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22497 | ||
22498 | ac_header_preproc=no | |
22499 | fi | |
22500 | rm -f conftest.err conftest.$ac_ext | |
22501 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22502 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22503 | ||
22504 | # So? What about this header? | |
ac1cb8d3 VS |
22505 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22506 | yes:no: ) | |
a848cd7e SC |
22507 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22508 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22509 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
22510 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
22511 | ac_header_preproc=yes | |
a848cd7e | 22512 | ;; |
ac1cb8d3 | 22513 | no:yes:* ) |
a848cd7e SC |
22514 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
22515 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22516 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
22517 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
22518 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
22519 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
22520 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22521 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22522 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
22523 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22524 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
22525 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22526 | ( |
22527 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22528 | ## ----------------------------------------- ## |
22529 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22530 | ## ----------------------------------------- ## | |
a848cd7e SC |
22531 | _ASBOX |
22532 | ) | | |
22533 | sed "s/^/$as_me: WARNING: /" >&2 | |
22534 | ;; | |
22535 | esac | |
22536 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
22537 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
22538 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22540 | else | |
22541 | ac_cv_header_zlib_h=$ac_header_preproc | |
22542 | fi | |
22543 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22544 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22545 | ||
22546 | fi | |
22547 | ||
22548 | ||
22549 | ||
22550 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
22551 | fi | |
22552 | ||
22553 | if test "$system_zlib_h_ok" = "yes"; then | |
22554 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
22555 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
22556 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
22557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22558 | else | |
22559 | ac_check_lib_save_LIBS=$LIBS | |
22560 | LIBS="-lz $LIBS" | |
22561 | cat >conftest.$ac_ext <<_ACEOF | |
22562 | /* confdefs.h. */ | |
22563 | _ACEOF | |
22564 | cat confdefs.h >>conftest.$ac_ext | |
22565 | cat >>conftest.$ac_ext <<_ACEOF | |
22566 | /* end confdefs.h. */ | |
22567 | ||
22568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22569 | #ifdef __cplusplus | |
22570 | extern "C" | |
22571 | #endif | |
22572 | /* We use char because int might match the return type of a gcc2 | |
22573 | builtin and then its argument prototype would still apply. */ | |
22574 | char deflate (); | |
22575 | int | |
22576 | main () | |
22577 | { | |
22578 | deflate (); | |
22579 | ; | |
22580 | return 0; | |
22581 | } | |
22582 | _ACEOF | |
22583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22585 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22586 | ac_status=$? |
ac1cb8d3 VS |
22587 | grep -v '^ *+' conftest.er1 >conftest.err |
22588 | rm -f conftest.er1 | |
22589 | cat conftest.err >&5 | |
a848cd7e SC |
22590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22591 | (exit $ac_status); } && | |
9dd0f6c2 | 22592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22594 | (eval $ac_try) 2>&5 | |
22595 | ac_status=$? | |
22596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22597 | (exit $ac_status); }; } && | |
22598 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22600 | (eval $ac_try) 2>&5 | |
22601 | ac_status=$? | |
22602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22603 | (exit $ac_status); }; }; then | |
22604 | ac_cv_lib_z_deflate=yes | |
22605 | else | |
22606 | echo "$as_me: failed program was:" >&5 | |
22607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22608 | ||
22609 | ac_cv_lib_z_deflate=no | |
22610 | fi | |
ac1cb8d3 VS |
22611 | rm -f conftest.err conftest.$ac_objext \ |
22612 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22613 | LIBS=$ac_check_lib_save_LIBS |
22614 | fi | |
22615 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
22616 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
22617 | if test $ac_cv_lib_z_deflate = yes; then | |
22618 | ZLIB_LINK=" -lz" | |
22619 | fi | |
22620 | ||
22621 | fi | |
22622 | ||
22623 | if test "x$ZLIB_LINK" = "x" ; then | |
22624 | if test "$wxUSE_ZLIB" = "sys" ; then | |
22625 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
22626 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
22627 | { (exit 1); exit 1; }; } | |
22628 | else | |
22629 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
22630 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
22631 | wxUSE_ZLIB=builtin | |
22632 | fi | |
22633 | else | |
22634 | wxUSE_ZLIB=sys | |
22635 | fi | |
22636 | fi | |
22637 | fi | |
22638 | ||
22639 | ||
22640 | PNG_LINK= | |
22641 | if test "$wxUSE_LIBPNG" != "no" ; then | |
22642 | cat >>confdefs.h <<\_ACEOF | |
22643 | #define wxUSE_LIBPNG 1 | |
22644 | _ACEOF | |
22645 | ||
22646 | ||
22647 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
22648 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
22649 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
22650 | wxUSE_LIBPNG=sys | |
22651 | fi | |
22652 | ||
22653 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
22654 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
22655 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
22656 | wxUSE_LIBPNG=builtin | |
22657 | fi | |
22658 | ||
22659 | if test "$wxUSE_MGL" != 1 ; then | |
22660 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
22661 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
22662 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
22663 | if test "${ac_cv_header_png_h+set}" = set; then | |
22664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22665 | else | |
22666 | if test "$cross_compiling" = yes; then | |
22667 | unset ac_cv_header_png_h | |
22668 | ||
22669 | else | |
22670 | cat >conftest.$ac_ext <<_ACEOF | |
22671 | /* confdefs.h. */ | |
22672 | _ACEOF | |
22673 | cat confdefs.h >>conftest.$ac_ext | |
22674 | cat >>conftest.$ac_ext <<_ACEOF | |
22675 | /* end confdefs.h. */ | |
22676 | ||
22677 | #include <png.h> | |
22678 | #include <stdio.h> | |
22679 | ||
22680 | int main() | |
22681 | { | |
22682 | FILE *f=fopen("conftestval", "w"); | |
22683 | if (!f) exit(1); | |
22684 | fprintf(f, "%s", | |
22685 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
22686 | exit(0); | |
22687 | } | |
22688 | ||
22689 | _ACEOF | |
22690 | rm -f conftest$ac_exeext | |
22691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22692 | (eval $ac_link) 2>&5 | |
22693 | ac_status=$? | |
22694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22695 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22697 | (eval $ac_try) 2>&5 | |
22698 | ac_status=$? | |
22699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22700 | (exit $ac_status); }; }; then | |
22701 | ac_cv_header_png_h=`cat conftestval` | |
22702 | else | |
22703 | echo "$as_me: program exited with status $ac_status" >&5 | |
22704 | echo "$as_me: failed program was:" >&5 | |
22705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22706 | ||
22707 | ( exit $ac_status ) | |
22708 | ac_cv_header_png_h=no | |
22709 | fi | |
ac1cb8d3 | 22710 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22711 | fi |
22712 | ||
22713 | fi | |
22714 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22715 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22716 | if test "${ac_cv_header_png_h+set}" = set; then | |
22717 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22718 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22719 | if test "${ac_cv_header_png_h+set}" = set; then | |
22720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22721 | fi | |
22722 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22723 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22724 | else | |
22725 | # Is the header compilable? | |
22726 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
22727 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
22728 | cat >conftest.$ac_ext <<_ACEOF | |
22729 | /* confdefs.h. */ | |
22730 | _ACEOF | |
22731 | cat confdefs.h >>conftest.$ac_ext | |
22732 | cat >>conftest.$ac_ext <<_ACEOF | |
22733 | /* end confdefs.h. */ | |
22734 | $ac_includes_default | |
22735 | #include <png.h> | |
22736 | _ACEOF | |
22737 | rm -f conftest.$ac_objext | |
22738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22739 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22740 | ac_status=$? |
ac1cb8d3 VS |
22741 | grep -v '^ *+' conftest.er1 >conftest.err |
22742 | rm -f conftest.er1 | |
22743 | cat conftest.err >&5 | |
a848cd7e SC |
22744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22745 | (exit $ac_status); } && | |
9dd0f6c2 | 22746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22748 | (eval $ac_try) 2>&5 | |
22749 | ac_status=$? | |
22750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22751 | (exit $ac_status); }; } && | |
22752 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22754 | (eval $ac_try) 2>&5 | |
22755 | ac_status=$? | |
22756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22757 | (exit $ac_status); }; }; then | |
22758 | ac_header_compiler=yes | |
22759 | else | |
22760 | echo "$as_me: failed program was:" >&5 | |
22761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22762 | ||
22763 | ac_header_compiler=no | |
22764 | fi | |
ac1cb8d3 | 22765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22766 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22767 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22768 | ||
22769 | # Is the header present? | |
22770 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
22771 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
22772 | cat >conftest.$ac_ext <<_ACEOF | |
22773 | /* confdefs.h. */ | |
22774 | _ACEOF | |
22775 | cat confdefs.h >>conftest.$ac_ext | |
22776 | cat >>conftest.$ac_ext <<_ACEOF | |
22777 | /* end confdefs.h. */ | |
22778 | #include <png.h> | |
22779 | _ACEOF | |
22780 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22781 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22782 | ac_status=$? | |
22783 | grep -v '^ *+' conftest.er1 >conftest.err | |
22784 | rm -f conftest.er1 | |
22785 | cat conftest.err >&5 | |
22786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22787 | (exit $ac_status); } >/dev/null; then | |
22788 | if test -s conftest.err; then | |
22789 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22790 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22791 | else |
22792 | ac_cpp_err= | |
22793 | fi | |
22794 | else | |
22795 | ac_cpp_err=yes | |
22796 | fi | |
22797 | if test -z "$ac_cpp_err"; then | |
22798 | ac_header_preproc=yes | |
22799 | else | |
22800 | echo "$as_me: failed program was:" >&5 | |
22801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22802 | ||
22803 | ac_header_preproc=no | |
22804 | fi | |
22805 | rm -f conftest.err conftest.$ac_ext | |
22806 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22807 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22808 | ||
22809 | # So? What about this header? | |
ac1cb8d3 VS |
22810 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22811 | yes:no: ) | |
a848cd7e SC |
22812 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22813 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22814 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
22815 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
22816 | ac_header_preproc=yes | |
a848cd7e | 22817 | ;; |
ac1cb8d3 | 22818 | no:yes:* ) |
a848cd7e SC |
22819 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
22820 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22821 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
22822 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
22823 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
22824 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
22825 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22826 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22827 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
22828 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22829 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
22830 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22831 | ( |
22832 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22833 | ## ----------------------------------------- ## |
22834 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22835 | ## ----------------------------------------- ## | |
a848cd7e SC |
22836 | _ASBOX |
22837 | ) | | |
22838 | sed "s/^/$as_me: WARNING: /" >&2 | |
22839 | ;; | |
22840 | esac | |
22841 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22842 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22843 | if test "${ac_cv_header_png_h+set}" = set; then | |
22844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22845 | else | |
22846 | ac_cv_header_png_h=$ac_header_preproc | |
22847 | fi | |
22848 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22849 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22850 | ||
22851 | fi | |
22852 | ||
22853 | ||
22854 | ||
22855 | if test "$ac_cv_header_png_h" = "yes"; then | |
22856 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
22857 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
22858 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
22859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22860 | else | |
22861 | ac_check_lib_save_LIBS=$LIBS | |
22862 | LIBS="-lpng -lz -lm $LIBS" | |
22863 | cat >conftest.$ac_ext <<_ACEOF | |
22864 | /* confdefs.h. */ | |
22865 | _ACEOF | |
22866 | cat confdefs.h >>conftest.$ac_ext | |
22867 | cat >>conftest.$ac_ext <<_ACEOF | |
22868 | /* end confdefs.h. */ | |
22869 | ||
22870 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22871 | #ifdef __cplusplus | |
22872 | extern "C" | |
22873 | #endif | |
22874 | /* We use char because int might match the return type of a gcc2 | |
22875 | builtin and then its argument prototype would still apply. */ | |
22876 | char png_check_sig (); | |
22877 | int | |
22878 | main () | |
22879 | { | |
22880 | png_check_sig (); | |
22881 | ; | |
22882 | return 0; | |
22883 | } | |
22884 | _ACEOF | |
22885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22887 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22888 | ac_status=$? |
ac1cb8d3 VS |
22889 | grep -v '^ *+' conftest.er1 >conftest.err |
22890 | rm -f conftest.er1 | |
22891 | cat conftest.err >&5 | |
a848cd7e SC |
22892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22893 | (exit $ac_status); } && | |
9dd0f6c2 | 22894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22896 | (eval $ac_try) 2>&5 | |
22897 | ac_status=$? | |
22898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22899 | (exit $ac_status); }; } && | |
22900 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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_lib_png_png_check_sig=yes | |
22907 | else | |
22908 | echo "$as_me: failed program was:" >&5 | |
22909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22910 | ||
22911 | ac_cv_lib_png_png_check_sig=no | |
22912 | fi | |
ac1cb8d3 VS |
22913 | rm -f conftest.err conftest.$ac_objext \ |
22914 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22915 | LIBS=$ac_check_lib_save_LIBS |
22916 | fi | |
22917 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
22918 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
22919 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
22920 | PNG_LINK=" -lpng -lz" | |
22921 | fi | |
22922 | ||
22923 | fi | |
22924 | ||
22925 | if test "x$PNG_LINK" = "x" ; then | |
22926 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
22927 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
22928 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
22929 | { (exit 1); exit 1; }; } | |
22930 | else | |
22931 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
22932 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
22933 | wxUSE_LIBPNG=builtin | |
22934 | fi | |
22935 | else | |
22936 | wxUSE_LIBPNG=sys | |
22937 | fi | |
22938 | fi | |
22939 | fi | |
22940 | ||
22941 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
22942 | fi | |
22943 | ||
22944 | ||
22945 | JPEG_LINK= | |
22946 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
22947 | cat >>confdefs.h <<\_ACEOF | |
22948 | #define wxUSE_LIBJPEG 1 | |
22949 | _ACEOF | |
22950 | ||
22951 | ||
22952 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
22953 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
22954 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
22955 | wxUSE_LIBJPEG=sys | |
22956 | fi | |
22957 | ||
22958 | if test "$wxUSE_MGL" != 1 ; then | |
22959 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
22960 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
22961 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
22962 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
22963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22964 | else | |
22965 | cat >conftest.$ac_ext <<_ACEOF | |
22966 | /* confdefs.h. */ | |
22967 | _ACEOF | |
22968 | cat confdefs.h >>conftest.$ac_ext | |
22969 | cat >>conftest.$ac_ext <<_ACEOF | |
22970 | /* end confdefs.h. */ | |
22971 | ||
22972 | #undef HAVE_STDLIB_H | |
22973 | #include <stdio.h> | |
22974 | #include <jpeglib.h> | |
22975 | ||
22976 | int | |
22977 | main () | |
22978 | { | |
22979 | ||
22980 | ||
22981 | ; | |
22982 | return 0; | |
22983 | } | |
22984 | _ACEOF | |
22985 | rm -f conftest.$ac_objext | |
22986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22987 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22988 | ac_status=$? |
ac1cb8d3 VS |
22989 | grep -v '^ *+' conftest.er1 >conftest.err |
22990 | rm -f conftest.er1 | |
22991 | cat conftest.err >&5 | |
a848cd7e SC |
22992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22993 | (exit $ac_status); } && | |
9dd0f6c2 | 22994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22996 | (eval $ac_try) 2>&5 | |
22997 | ac_status=$? | |
22998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22999 | (exit $ac_status); }; } && | |
23000 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23002 | (eval $ac_try) 2>&5 | |
23003 | ac_status=$? | |
23004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23005 | (exit $ac_status); }; }; then | |
23006 | ac_cv_header_jpeglib_h=yes | |
23007 | else | |
23008 | echo "$as_me: failed program was:" >&5 | |
23009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23010 | ||
23011 | ac_cv_header_jpeglib_h=no | |
23012 | ||
23013 | fi | |
ac1cb8d3 | 23014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23015 | |
23016 | fi | |
23017 | ||
23018 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
23019 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
23020 | ||
23021 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
23022 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
23023 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
23024 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
23025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23026 | else | |
23027 | ac_check_lib_save_LIBS=$LIBS | |
23028 | LIBS="-ljpeg $LIBS" | |
23029 | cat >conftest.$ac_ext <<_ACEOF | |
23030 | /* confdefs.h. */ | |
23031 | _ACEOF | |
23032 | cat confdefs.h >>conftest.$ac_ext | |
23033 | cat >>conftest.$ac_ext <<_ACEOF | |
23034 | /* end confdefs.h. */ | |
23035 | ||
23036 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23037 | #ifdef __cplusplus | |
23038 | extern "C" | |
23039 | #endif | |
23040 | /* We use char because int might match the return type of a gcc2 | |
23041 | builtin and then its argument prototype would still apply. */ | |
23042 | char jpeg_read_header (); | |
23043 | int | |
23044 | main () | |
23045 | { | |
23046 | jpeg_read_header (); | |
23047 | ; | |
23048 | return 0; | |
23049 | } | |
23050 | _ACEOF | |
23051 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23053 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23054 | ac_status=$? |
ac1cb8d3 VS |
23055 | grep -v '^ *+' conftest.er1 >conftest.err |
23056 | rm -f conftest.er1 | |
23057 | cat conftest.err >&5 | |
a848cd7e SC |
23058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23059 | (exit $ac_status); } && | |
9dd0f6c2 | 23060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23062 | (eval $ac_try) 2>&5 | |
23063 | ac_status=$? | |
23064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23065 | (exit $ac_status); }; } && | |
23066 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23068 | (eval $ac_try) 2>&5 | |
23069 | ac_status=$? | |
23070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23071 | (exit $ac_status); }; }; then | |
23072 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
23073 | else | |
23074 | echo "$as_me: failed program was:" >&5 | |
23075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23076 | ||
23077 | ac_cv_lib_jpeg_jpeg_read_header=no | |
23078 | fi | |
ac1cb8d3 VS |
23079 | rm -f conftest.err conftest.$ac_objext \ |
23080 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23081 | LIBS=$ac_check_lib_save_LIBS |
23082 | fi | |
23083 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
23084 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
23085 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
23086 | JPEG_LINK=" -ljpeg" | |
23087 | fi | |
23088 | ||
23089 | fi | |
23090 | ||
23091 | if test "x$JPEG_LINK" = "x" ; then | |
23092 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
23093 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
23094 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
23095 | { (exit 1); exit 1; }; } | |
23096 | else | |
23097 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
23098 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
23099 | wxUSE_LIBJPEG=builtin | |
23100 | fi | |
23101 | else | |
23102 | wxUSE_LIBJPEG=sys | |
23103 | fi | |
23104 | fi | |
23105 | fi | |
23106 | fi | |
23107 | ||
23108 | ||
23109 | TIFF_LINK= | |
23110 | TIFF_PREREQ_LINKS=-lm | |
23111 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
23112 | cat >>confdefs.h <<\_ACEOF | |
23113 | #define wxUSE_LIBTIFF 1 | |
23114 | _ACEOF | |
23115 | ||
23116 | ||
23117 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
23118 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
23119 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
23120 | fi | |
23121 | if test "$wxUSE_ZLIB" = "sys"; then | |
23122 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
23123 | fi | |
23124 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23125 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23126 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23127 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23129 | fi | |
23130 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23131 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23132 | else | |
23133 | # Is the header compilable? | |
23134 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
23135 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
23136 | cat >conftest.$ac_ext <<_ACEOF | |
23137 | /* confdefs.h. */ | |
23138 | _ACEOF | |
23139 | cat confdefs.h >>conftest.$ac_ext | |
23140 | cat >>conftest.$ac_ext <<_ACEOF | |
23141 | /* end confdefs.h. */ | |
23142 | $ac_includes_default | |
23143 | #include <tiffio.h> | |
23144 | _ACEOF | |
23145 | rm -f conftest.$ac_objext | |
23146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23147 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23148 | ac_status=$? |
ac1cb8d3 VS |
23149 | grep -v '^ *+' conftest.er1 >conftest.err |
23150 | rm -f conftest.er1 | |
23151 | cat conftest.err >&5 | |
a848cd7e SC |
23152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23153 | (exit $ac_status); } && | |
9dd0f6c2 | 23154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23156 | (eval $ac_try) 2>&5 | |
23157 | ac_status=$? | |
23158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23159 | (exit $ac_status); }; } && | |
23160 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23162 | (eval $ac_try) 2>&5 | |
23163 | ac_status=$? | |
23164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23165 | (exit $ac_status); }; }; then | |
23166 | ac_header_compiler=yes | |
23167 | else | |
23168 | echo "$as_me: failed program was:" >&5 | |
23169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23170 | ||
23171 | ac_header_compiler=no | |
23172 | fi | |
ac1cb8d3 | 23173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23174 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23175 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23176 | ||
23177 | # Is the header present? | |
23178 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
23179 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
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 | #include <tiffio.h> | |
23187 | _ACEOF | |
23188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23190 | ac_status=$? | |
23191 | grep -v '^ *+' conftest.er1 >conftest.err | |
23192 | rm -f conftest.er1 | |
23193 | cat conftest.err >&5 | |
23194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23195 | (exit $ac_status); } >/dev/null; then | |
23196 | if test -s conftest.err; then | |
23197 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23198 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23199 | else |
23200 | ac_cpp_err= | |
23201 | fi | |
23202 | else | |
23203 | ac_cpp_err=yes | |
23204 | fi | |
23205 | if test -z "$ac_cpp_err"; then | |
23206 | ac_header_preproc=yes | |
23207 | else | |
23208 | echo "$as_me: failed program was:" >&5 | |
23209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23210 | ||
23211 | ac_header_preproc=no | |
23212 | fi | |
23213 | rm -f conftest.err conftest.$ac_ext | |
23214 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23215 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23216 | ||
23217 | # So? What about this header? | |
ac1cb8d3 VS |
23218 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23219 | yes:no: ) | |
a848cd7e SC |
23220 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23221 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23222 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
23223 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
23224 | ac_header_preproc=yes | |
a848cd7e | 23225 | ;; |
ac1cb8d3 | 23226 | no:yes:* ) |
a848cd7e SC |
23227 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
23228 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23229 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
23230 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
23231 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
23232 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
23233 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23234 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23235 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
23236 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23237 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
23238 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23239 | ( |
23240 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23241 | ## ----------------------------------------- ## |
23242 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23243 | ## ----------------------------------------- ## | |
a848cd7e SC |
23244 | _ASBOX |
23245 | ) | | |
23246 | sed "s/^/$as_me: WARNING: /" >&2 | |
23247 | ;; | |
23248 | esac | |
23249 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23250 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23251 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23253 | else | |
23254 | ac_cv_header_tiffio_h=$ac_header_preproc | |
23255 | fi | |
23256 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23257 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23258 | ||
23259 | fi | |
23260 | if test $ac_cv_header_tiffio_h = yes; then | |
23261 | ||
23262 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
23263 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
23264 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
23265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23266 | else | |
23267 | ac_check_lib_save_LIBS=$LIBS | |
23268 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
23269 | cat >conftest.$ac_ext <<_ACEOF | |
23270 | /* confdefs.h. */ | |
23271 | _ACEOF | |
23272 | cat confdefs.h >>conftest.$ac_ext | |
23273 | cat >>conftest.$ac_ext <<_ACEOF | |
23274 | /* end confdefs.h. */ | |
23275 | ||
23276 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23277 | #ifdef __cplusplus | |
23278 | extern "C" | |
23279 | #endif | |
23280 | /* We use char because int might match the return type of a gcc2 | |
23281 | builtin and then its argument prototype would still apply. */ | |
23282 | char TIFFError (); | |
23283 | int | |
23284 | main () | |
23285 | { | |
23286 | TIFFError (); | |
23287 | ; | |
23288 | return 0; | |
23289 | } | |
23290 | _ACEOF | |
23291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23293 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23294 | ac_status=$? |
ac1cb8d3 VS |
23295 | grep -v '^ *+' conftest.er1 >conftest.err |
23296 | rm -f conftest.er1 | |
23297 | cat conftest.err >&5 | |
a848cd7e SC |
23298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23299 | (exit $ac_status); } && | |
9dd0f6c2 | 23300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23302 | (eval $ac_try) 2>&5 | |
23303 | ac_status=$? | |
23304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23305 | (exit $ac_status); }; } && | |
23306 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23308 | (eval $ac_try) 2>&5 | |
23309 | ac_status=$? | |
23310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23311 | (exit $ac_status); }; }; then | |
23312 | ac_cv_lib_tiff_TIFFError=yes | |
23313 | else | |
23314 | echo "$as_me: failed program was:" >&5 | |
23315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23316 | ||
23317 | ac_cv_lib_tiff_TIFFError=no | |
23318 | fi | |
ac1cb8d3 VS |
23319 | rm -f conftest.err conftest.$ac_objext \ |
23320 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23321 | LIBS=$ac_check_lib_save_LIBS |
23322 | fi | |
23323 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
23324 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
23325 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
23326 | TIFF_LINK=" -ltiff" | |
23327 | fi | |
23328 | ||
23329 | ||
23330 | ||
23331 | fi | |
23332 | ||
23333 | ||
23334 | ||
23335 | if test "x$TIFF_LINK" = "x" ; then | |
23336 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
23337 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
23338 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
23339 | { (exit 1); exit 1; }; } | |
23340 | else | |
23341 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
23342 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
23343 | wxUSE_LIBTIFF=builtin | |
23344 | fi | |
23345 | else | |
23346 | wxUSE_LIBTIFF=sys | |
23347 | fi | |
23348 | fi | |
23349 | fi | |
23350 | ||
23351 | ||
23352 | if test "$wxUSE_EXPAT" != "no"; then | |
23353 | wxUSE_XML=yes | |
23354 | cat >>confdefs.h <<\_ACEOF | |
23355 | #define wxUSE_EXPAT 1 | |
23356 | _ACEOF | |
23357 | ||
23358 | cat >>confdefs.h <<\_ACEOF | |
23359 | #define wxUSE_XML 1 | |
23360 | _ACEOF | |
23361 | ||
23362 | ||
23363 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
23364 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23365 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23366 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23367 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23369 | fi | |
23370 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
23371 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
23372 | else | |
23373 | # Is the header compilable? | |
23374 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
23375 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
23376 | cat >conftest.$ac_ext <<_ACEOF | |
23377 | /* confdefs.h. */ | |
23378 | _ACEOF | |
23379 | cat confdefs.h >>conftest.$ac_ext | |
23380 | cat >>conftest.$ac_ext <<_ACEOF | |
23381 | /* end confdefs.h. */ | |
23382 | $ac_includes_default | |
23383 | #include <expat.h> | |
23384 | _ACEOF | |
23385 | rm -f conftest.$ac_objext | |
23386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23387 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23388 | ac_status=$? |
ac1cb8d3 VS |
23389 | grep -v '^ *+' conftest.er1 >conftest.err |
23390 | rm -f conftest.er1 | |
23391 | cat conftest.err >&5 | |
a848cd7e SC |
23392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23393 | (exit $ac_status); } && | |
9dd0f6c2 | 23394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23396 | (eval $ac_try) 2>&5 | |
23397 | ac_status=$? | |
23398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23399 | (exit $ac_status); }; } && | |
23400 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23402 | (eval $ac_try) 2>&5 | |
23403 | ac_status=$? | |
23404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23405 | (exit $ac_status); }; }; then | |
23406 | ac_header_compiler=yes | |
23407 | else | |
23408 | echo "$as_me: failed program was:" >&5 | |
23409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23410 | ||
23411 | ac_header_compiler=no | |
23412 | fi | |
ac1cb8d3 | 23413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23414 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23415 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23416 | ||
23417 | # Is the header present? | |
23418 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
23419 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
23420 | cat >conftest.$ac_ext <<_ACEOF | |
23421 | /* confdefs.h. */ | |
23422 | _ACEOF | |
23423 | cat confdefs.h >>conftest.$ac_ext | |
23424 | cat >>conftest.$ac_ext <<_ACEOF | |
23425 | /* end confdefs.h. */ | |
23426 | #include <expat.h> | |
23427 | _ACEOF | |
23428 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23429 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23430 | ac_status=$? | |
23431 | grep -v '^ *+' conftest.er1 >conftest.err | |
23432 | rm -f conftest.er1 | |
23433 | cat conftest.err >&5 | |
23434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23435 | (exit $ac_status); } >/dev/null; then | |
23436 | if test -s conftest.err; then | |
23437 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23438 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23439 | else |
23440 | ac_cpp_err= | |
23441 | fi | |
23442 | else | |
23443 | ac_cpp_err=yes | |
23444 | fi | |
23445 | if test -z "$ac_cpp_err"; then | |
23446 | ac_header_preproc=yes | |
23447 | else | |
23448 | echo "$as_me: failed program was:" >&5 | |
23449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23450 | ||
23451 | ac_header_preproc=no | |
23452 | fi | |
23453 | rm -f conftest.err conftest.$ac_ext | |
23454 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23455 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23456 | ||
23457 | # So? What about this header? | |
ac1cb8d3 VS |
23458 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23459 | yes:no: ) | |
a848cd7e SC |
23460 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23461 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23462 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
23463 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
23464 | ac_header_preproc=yes | |
a848cd7e | 23465 | ;; |
ac1cb8d3 | 23466 | no:yes:* ) |
a848cd7e SC |
23467 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
23468 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23469 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
23470 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
23471 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
23472 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
23473 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23474 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23475 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
23476 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23477 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
23478 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23479 | ( |
23480 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23481 | ## ----------------------------------------- ## |
23482 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23483 | ## ----------------------------------------- ## | |
a848cd7e SC |
23484 | _ASBOX |
23485 | ) | | |
23486 | sed "s/^/$as_me: WARNING: /" >&2 | |
23487 | ;; | |
23488 | esac | |
23489 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23490 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23491 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23493 | else | |
23494 | ac_cv_header_expat_h=$ac_header_preproc | |
23495 | fi | |
23496 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
23497 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
23498 | ||
23499 | fi | |
23500 | if test $ac_cv_header_expat_h = yes; then | |
23501 | found_expat_h=1 | |
23502 | fi | |
23503 | ||
23504 | ||
23505 | if test "x$found_expat_h" = "x1"; then | |
23506 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
23507 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
23508 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
23509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23510 | else | |
23511 | ||
23512 | ||
23513 | ||
23514 | ac_ext=cc | |
23515 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23516 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23517 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23518 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23519 | ||
23520 | cat >conftest.$ac_ext <<_ACEOF | |
23521 | /* confdefs.h. */ | |
23522 | _ACEOF | |
23523 | cat confdefs.h >>conftest.$ac_ext | |
23524 | cat >>conftest.$ac_ext <<_ACEOF | |
23525 | /* end confdefs.h. */ | |
23526 | #include <expat.h> | |
23527 | int | |
23528 | main () | |
23529 | { | |
23530 | ||
23531 | ; | |
23532 | return 0; | |
23533 | } | |
23534 | _ACEOF | |
23535 | rm -f conftest.$ac_objext | |
23536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23537 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23538 | ac_status=$? |
ac1cb8d3 VS |
23539 | grep -v '^ *+' conftest.er1 >conftest.err |
23540 | rm -f conftest.er1 | |
23541 | cat conftest.err >&5 | |
a848cd7e SC |
23542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23543 | (exit $ac_status); } && | |
9dd0f6c2 | 23544 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23546 | (eval $ac_try) 2>&5 | |
23547 | ac_status=$? | |
23548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23549 | (exit $ac_status); }; } && | |
23550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23552 | (eval $ac_try) 2>&5 | |
23553 | ac_status=$? | |
23554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23555 | (exit $ac_status); }; }; then | |
23556 | wx_cv_expat_is_not_broken=yes | |
23557 | else | |
23558 | echo "$as_me: failed program was:" >&5 | |
23559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23560 | ||
23561 | wx_cv_expat_is_not_broken=no | |
23562 | ||
23563 | fi | |
ac1cb8d3 | 23564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23565 | ac_ext=c |
23566 | ac_cpp='$CPP $CPPFLAGS' | |
23567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23570 | ||
23571 | ||
23572 | ||
23573 | fi | |
23574 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
23575 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
23576 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
23577 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
23578 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
23579 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
23580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23581 | else | |
23582 | ac_check_lib_save_LIBS=$LIBS | |
23583 | LIBS="-lexpat $LIBS" | |
23584 | cat >conftest.$ac_ext <<_ACEOF | |
23585 | /* confdefs.h. */ | |
23586 | _ACEOF | |
23587 | cat confdefs.h >>conftest.$ac_ext | |
23588 | cat >>conftest.$ac_ext <<_ACEOF | |
23589 | /* end confdefs.h. */ | |
23590 | ||
23591 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23592 | #ifdef __cplusplus | |
23593 | extern "C" | |
23594 | #endif | |
23595 | /* We use char because int might match the return type of a gcc2 | |
23596 | builtin and then its argument prototype would still apply. */ | |
23597 | char XML_ParserCreate (); | |
23598 | int | |
23599 | main () | |
23600 | { | |
23601 | XML_ParserCreate (); | |
23602 | ; | |
23603 | return 0; | |
23604 | } | |
23605 | _ACEOF | |
23606 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23608 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23609 | ac_status=$? |
ac1cb8d3 VS |
23610 | grep -v '^ *+' conftest.er1 >conftest.err |
23611 | rm -f conftest.er1 | |
23612 | cat conftest.err >&5 | |
a848cd7e SC |
23613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23614 | (exit $ac_status); } && | |
9dd0f6c2 | 23615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23617 | (eval $ac_try) 2>&5 | |
23618 | ac_status=$? | |
23619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23620 | (exit $ac_status); }; } && | |
23621 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23623 | (eval $ac_try) 2>&5 | |
23624 | ac_status=$? | |
23625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23626 | (exit $ac_status); }; }; then | |
23627 | ac_cv_lib_expat_XML_ParserCreate=yes | |
23628 | else | |
23629 | echo "$as_me: failed program was:" >&5 | |
23630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23631 | ||
23632 | ac_cv_lib_expat_XML_ParserCreate=no | |
23633 | fi | |
ac1cb8d3 VS |
23634 | rm -f conftest.err conftest.$ac_objext \ |
23635 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23636 | LIBS=$ac_check_lib_save_LIBS |
23637 | fi | |
23638 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
23639 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
23640 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
23641 | EXPAT_LINK=" -lexpat" | |
23642 | fi | |
23643 | ||
23644 | fi | |
23645 | fi | |
23646 | if test "x$EXPAT_LINK" = "x" ; then | |
23647 | if test "$wxUSE_EXPAT" = "sys" ; then | |
23648 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
23649 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
23650 | { (exit 1); exit 1; }; } | |
23651 | else | |
23652 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
23653 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
23654 | wxUSE_EXPAT=builtin | |
23655 | fi | |
23656 | else | |
23657 | wxUSE_EXPAT=sys | |
23658 | fi | |
23659 | fi | |
23660 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
23661 | ||
23662 | ||
23663 | subdirs="$subdirs src/expat" | |
23664 | ||
23665 | fi | |
23666 | fi | |
23667 | ||
23668 | ||
23669 | ||
23670 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
23671 | if test "${ac_cv_header_mspack_h+set}" = set; then |
23672 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23673 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23674 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23676 | fi | |
23677 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23678 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23679 | else | |
23680 | # Is the header compilable? | |
23681 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
23682 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
23683 | cat >conftest.$ac_ext <<_ACEOF | |
23684 | /* confdefs.h. */ | |
23685 | _ACEOF | |
23686 | cat confdefs.h >>conftest.$ac_ext | |
23687 | cat >>conftest.$ac_ext <<_ACEOF | |
23688 | /* end confdefs.h. */ | |
23689 | $ac_includes_default | |
23690 | #include <mspack.h> | |
23691 | _ACEOF | |
23692 | rm -f conftest.$ac_objext | |
23693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23694 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23695 | ac_status=$? |
ac1cb8d3 VS |
23696 | grep -v '^ *+' conftest.er1 >conftest.err |
23697 | rm -f conftest.er1 | |
23698 | cat conftest.err >&5 | |
a848cd7e SC |
23699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23700 | (exit $ac_status); } && | |
9dd0f6c2 | 23701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23703 | (eval $ac_try) 2>&5 | |
23704 | ac_status=$? | |
23705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23706 | (exit $ac_status); }; } && | |
23707 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23709 | (eval $ac_try) 2>&5 | |
23710 | ac_status=$? | |
23711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23712 | (exit $ac_status); }; }; then | |
23713 | ac_header_compiler=yes | |
23714 | else | |
23715 | echo "$as_me: failed program was:" >&5 | |
23716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23717 | ||
23718 | ac_header_compiler=no | |
23719 | fi | |
ac1cb8d3 | 23720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23721 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23722 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23723 | ||
23724 | # Is the header present? | |
23725 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
23726 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
23727 | cat >conftest.$ac_ext <<_ACEOF | |
23728 | /* confdefs.h. */ | |
23729 | _ACEOF | |
23730 | cat confdefs.h >>conftest.$ac_ext | |
23731 | cat >>conftest.$ac_ext <<_ACEOF | |
23732 | /* end confdefs.h. */ | |
23733 | #include <mspack.h> | |
23734 | _ACEOF | |
23735 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23736 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23737 | ac_status=$? | |
23738 | grep -v '^ *+' conftest.er1 >conftest.err | |
23739 | rm -f conftest.er1 | |
23740 | cat conftest.err >&5 | |
23741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23742 | (exit $ac_status); } >/dev/null; then | |
23743 | if test -s conftest.err; then | |
23744 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23745 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23746 | else |
23747 | ac_cpp_err= | |
23748 | fi | |
23749 | else | |
23750 | ac_cpp_err=yes | |
23751 | fi | |
23752 | if test -z "$ac_cpp_err"; then | |
23753 | ac_header_preproc=yes | |
23754 | else | |
23755 | echo "$as_me: failed program was:" >&5 | |
23756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23757 | ||
23758 | ac_header_preproc=no | |
23759 | fi | |
23760 | rm -f conftest.err conftest.$ac_ext | |
23761 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23762 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23763 | ||
23764 | # So? What about this header? | |
ac1cb8d3 VS |
23765 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23766 | yes:no: ) | |
a848cd7e SC |
23767 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23768 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23769 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
23770 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
23771 | ac_header_preproc=yes | |
a848cd7e | 23772 | ;; |
ac1cb8d3 | 23773 | no:yes:* ) |
a848cd7e SC |
23774 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
23775 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23776 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
23777 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
23778 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
23779 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
23780 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23781 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23782 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
23783 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23784 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
23785 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23786 | ( |
23787 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23788 | ## ----------------------------------------- ## |
23789 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23790 | ## ----------------------------------------- ## | |
a848cd7e SC |
23791 | _ASBOX |
23792 | ) | | |
23793 | sed "s/^/$as_me: WARNING: /" >&2 | |
23794 | ;; | |
23795 | esac | |
23796 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23797 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23798 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23800 | else | |
23801 | ac_cv_header_mspack_h=$ac_header_preproc | |
23802 | fi | |
23803 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23804 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23805 | ||
23806 | fi | |
23807 | if test $ac_cv_header_mspack_h = yes; then | |
23808 | found_mspack_h=1 | |
23809 | fi | |
23810 | ||
23811 | ||
23812 | if test "x$found_mspack_h" = "x1"; then | |
23813 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
23814 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
23815 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
23816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23817 | else | |
23818 | ac_check_lib_save_LIBS=$LIBS | |
23819 | LIBS="-lmspack $LIBS" | |
23820 | cat >conftest.$ac_ext <<_ACEOF | |
23821 | /* confdefs.h. */ | |
23822 | _ACEOF | |
23823 | cat confdefs.h >>conftest.$ac_ext | |
23824 | cat >>conftest.$ac_ext <<_ACEOF | |
23825 | /* end confdefs.h. */ | |
23826 | ||
23827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23828 | #ifdef __cplusplus | |
23829 | extern "C" | |
23830 | #endif | |
23831 | /* We use char because int might match the return type of a gcc2 | |
23832 | builtin and then its argument prototype would still apply. */ | |
23833 | char mspack_create_chm_decompressor (); | |
23834 | int | |
23835 | main () | |
23836 | { | |
23837 | mspack_create_chm_decompressor (); | |
23838 | ; | |
23839 | return 0; | |
23840 | } | |
23841 | _ACEOF | |
23842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23844 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23845 | ac_status=$? |
ac1cb8d3 VS |
23846 | grep -v '^ *+' conftest.er1 >conftest.err |
23847 | rm -f conftest.er1 | |
23848 | cat conftest.err >&5 | |
a848cd7e SC |
23849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23850 | (exit $ac_status); } && | |
9dd0f6c2 | 23851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23853 | (eval $ac_try) 2>&5 | |
23854 | ac_status=$? | |
23855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23856 | (exit $ac_status); }; } && | |
23857 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23859 | (eval $ac_try) 2>&5 | |
23860 | ac_status=$? | |
23861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23862 | (exit $ac_status); }; }; then | |
23863 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
23864 | else | |
23865 | echo "$as_me: failed program was:" >&5 | |
23866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23867 | ||
23868 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
23869 | fi | |
ac1cb8d3 VS |
23870 | rm -f conftest.err conftest.$ac_objext \ |
23871 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23872 | LIBS=$ac_check_lib_save_LIBS |
23873 | fi | |
23874 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
23875 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
23876 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
23877 | MSPACK_LINK=" -lmspack" | |
23878 | fi | |
23879 | ||
23880 | fi | |
23881 | if test "x$MSPACK_LINK" = "x" ; then | |
23882 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
23883 | fi |
23884 | fi | |
23885 | ||
23886 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
23887 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
23888 | #define wxUSE_LIBMSPACK 1 |
23889 | _ACEOF | |
23890 | ||
a848cd7e SC |
23891 | fi |
23892 | ||
23893 | ||
23894 | ||
23895 | AFMINSTALL= | |
23896 | WIN32INSTALL= | |
23897 | ||
23898 | TOOLKIT= | |
23899 | TOOLKIT_INCLUDE= | |
23900 | WIDGET_SET= | |
23901 | ||
23902 | if test "$USE_WIN32" = 1 ; then | |
23903 | ||
23904 | for ac_header in w32api.h | |
23905 | do | |
23906 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23907 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23908 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23909 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23910 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23912 | fi | |
23913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23914 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23915 | else | |
23916 | # Is the header compilable? | |
23917 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23918 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
23919 | cat >conftest.$ac_ext <<_ACEOF | |
23920 | /* confdefs.h. */ | |
23921 | _ACEOF | |
23922 | cat confdefs.h >>conftest.$ac_ext | |
23923 | cat >>conftest.$ac_ext <<_ACEOF | |
23924 | /* end confdefs.h. */ | |
23925 | $ac_includes_default | |
23926 | #include <$ac_header> | |
23927 | _ACEOF | |
23928 | rm -f conftest.$ac_objext | |
23929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23930 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23931 | ac_status=$? |
ac1cb8d3 VS |
23932 | grep -v '^ *+' conftest.er1 >conftest.err |
23933 | rm -f conftest.er1 | |
23934 | cat conftest.err >&5 | |
a848cd7e SC |
23935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23936 | (exit $ac_status); } && | |
9dd0f6c2 | 23937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23939 | (eval $ac_try) 2>&5 | |
23940 | ac_status=$? | |
23941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23942 | (exit $ac_status); }; } && | |
23943 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23945 | (eval $ac_try) 2>&5 | |
23946 | ac_status=$? | |
23947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23948 | (exit $ac_status); }; }; then | |
23949 | ac_header_compiler=yes | |
23950 | else | |
23951 | echo "$as_me: failed program was:" >&5 | |
23952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23953 | ||
23954 | ac_header_compiler=no | |
23955 | fi | |
ac1cb8d3 | 23956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23957 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23958 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23959 | ||
23960 | # Is the header present? | |
23961 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23962 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
23963 | cat >conftest.$ac_ext <<_ACEOF | |
23964 | /* confdefs.h. */ | |
23965 | _ACEOF | |
23966 | cat confdefs.h >>conftest.$ac_ext | |
23967 | cat >>conftest.$ac_ext <<_ACEOF | |
23968 | /* end confdefs.h. */ | |
23969 | #include <$ac_header> | |
23970 | _ACEOF | |
23971 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23972 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23973 | ac_status=$? | |
23974 | grep -v '^ *+' conftest.er1 >conftest.err | |
23975 | rm -f conftest.er1 | |
23976 | cat conftest.err >&5 | |
23977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23978 | (exit $ac_status); } >/dev/null; then | |
23979 | if test -s conftest.err; then | |
23980 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23981 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23982 | else |
23983 | ac_cpp_err= | |
23984 | fi | |
23985 | else | |
23986 | ac_cpp_err=yes | |
23987 | fi | |
23988 | if test -z "$ac_cpp_err"; then | |
23989 | ac_header_preproc=yes | |
23990 | else | |
23991 | echo "$as_me: failed program was:" >&5 | |
23992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23993 | ||
23994 | ac_header_preproc=no | |
23995 | fi | |
23996 | rm -f conftest.err conftest.$ac_ext | |
23997 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23998 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23999 | ||
24000 | # So? What about this header? | |
ac1cb8d3 VS |
24001 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24002 | yes:no: ) | |
a848cd7e SC |
24003 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24004 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24005 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24006 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24007 | ac_header_preproc=yes | |
a848cd7e | 24008 | ;; |
ac1cb8d3 | 24009 | no:yes:* ) |
a848cd7e SC |
24010 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24011 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24012 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24013 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24014 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24015 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24016 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24017 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24018 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24019 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24020 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24021 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24022 | ( |
24023 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24024 | ## ----------------------------------------- ## |
24025 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24026 | ## ----------------------------------------- ## | |
a848cd7e SC |
24027 | _ASBOX |
24028 | ) | | |
24029 | sed "s/^/$as_me: WARNING: /" >&2 | |
24030 | ;; | |
24031 | esac | |
24032 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24033 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24036 | else | |
ac1cb8d3 | 24037 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
24038 | fi |
24039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24040 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24041 | ||
24042 | fi | |
24043 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24044 | cat >>confdefs.h <<_ACEOF | |
24045 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24046 | _ACEOF | |
24047 | ||
24048 | fi | |
24049 | ||
24050 | done | |
24051 | ||
24052 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24053 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24054 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24055 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24057 | fi | |
24058 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24059 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24060 | else | |
24061 | # Is the header compilable? | |
24062 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
24063 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
24064 | cat >conftest.$ac_ext <<_ACEOF | |
24065 | /* confdefs.h. */ | |
24066 | _ACEOF | |
24067 | cat confdefs.h >>conftest.$ac_ext | |
24068 | cat >>conftest.$ac_ext <<_ACEOF | |
24069 | /* end confdefs.h. */ | |
24070 | $ac_includes_default | |
24071 | #include <windows.h> | |
24072 | _ACEOF | |
24073 | rm -f conftest.$ac_objext | |
24074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24075 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24076 | ac_status=$? |
ac1cb8d3 VS |
24077 | grep -v '^ *+' conftest.er1 >conftest.err |
24078 | rm -f conftest.er1 | |
24079 | cat conftest.err >&5 | |
a848cd7e SC |
24080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24081 | (exit $ac_status); } && | |
9dd0f6c2 | 24082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24084 | (eval $ac_try) 2>&5 | |
24085 | ac_status=$? | |
24086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24087 | (exit $ac_status); }; } && | |
24088 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24090 | (eval $ac_try) 2>&5 | |
24091 | ac_status=$? | |
24092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24093 | (exit $ac_status); }; }; then | |
24094 | ac_header_compiler=yes | |
24095 | else | |
24096 | echo "$as_me: failed program was:" >&5 | |
24097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24098 | ||
24099 | ac_header_compiler=no | |
24100 | fi | |
ac1cb8d3 | 24101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24102 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24103 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24104 | ||
24105 | # Is the header present? | |
24106 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
24107 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
24108 | cat >conftest.$ac_ext <<_ACEOF | |
24109 | /* confdefs.h. */ | |
24110 | _ACEOF | |
24111 | cat confdefs.h >>conftest.$ac_ext | |
24112 | cat >>conftest.$ac_ext <<_ACEOF | |
24113 | /* end confdefs.h. */ | |
24114 | #include <windows.h> | |
24115 | _ACEOF | |
24116 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24117 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24118 | ac_status=$? | |
24119 | grep -v '^ *+' conftest.er1 >conftest.err | |
24120 | rm -f conftest.er1 | |
24121 | cat conftest.err >&5 | |
24122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24123 | (exit $ac_status); } >/dev/null; then | |
24124 | if test -s conftest.err; then | |
24125 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24126 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24127 | else |
24128 | ac_cpp_err= | |
24129 | fi | |
24130 | else | |
24131 | ac_cpp_err=yes | |
24132 | fi | |
24133 | if test -z "$ac_cpp_err"; then | |
24134 | ac_header_preproc=yes | |
24135 | else | |
24136 | echo "$as_me: failed program was:" >&5 | |
24137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24138 | ||
24139 | ac_header_preproc=no | |
24140 | fi | |
24141 | rm -f conftest.err conftest.$ac_ext | |
24142 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24143 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24144 | ||
24145 | # So? What about this header? | |
ac1cb8d3 VS |
24146 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24147 | yes:no: ) | |
a848cd7e SC |
24148 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24149 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24150 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
24151 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
24152 | ac_header_preproc=yes | |
a848cd7e | 24153 | ;; |
ac1cb8d3 | 24154 | no:yes:* ) |
a848cd7e SC |
24155 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
24156 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24157 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
24158 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
24159 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
24160 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
24161 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24162 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24163 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
24164 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24165 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
24166 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24167 | ( |
24168 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24169 | ## ----------------------------------------- ## |
24170 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24171 | ## ----------------------------------------- ## | |
a848cd7e SC |
24172 | _ASBOX |
24173 | ) | | |
24174 | sed "s/^/$as_me: WARNING: /" >&2 | |
24175 | ;; | |
24176 | esac | |
24177 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24178 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24179 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24181 | else | |
24182 | ac_cv_header_windows_h=$ac_header_preproc | |
24183 | fi | |
24184 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24185 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24186 | ||
24187 | fi | |
24188 | if test $ac_cv_header_windows_h = yes; then | |
24189 | : | |
24190 | else | |
24191 | ||
24192 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
24193 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
24194 | { (exit 1); exit 1; }; } | |
24195 | ||
24196 | fi | |
24197 | ||
24198 | ||
24199 | ||
24200 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
24201 | ||
24202 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
24203 | LIBS="$LIBS -loleacc" | |
24204 | fi | |
24205 | ||
24206 | case "${host}" in | |
24207 | *-*-cygwin* ) | |
24208 | LIBS="$LIBS -lkernel32 -luser32" | |
24209 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
24210 | esac | |
24211 | ||
24212 | if test "$wxUSE_ODBC" = "sys" ; then | |
24213 | wxUSE_ODBC = "yes" | |
24214 | fi | |
24215 | if test "$wxUSE_ODBC" = "yes" ; then | |
24216 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
24217 | cat >>confdefs.h <<\_ACEOF | |
24218 | #define wxUSE_ODBC 1 | |
24219 | _ACEOF | |
24220 | ||
24221 | fi | |
24222 | ||
24223 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
24224 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
24225 | ||
24226 | WIN32INSTALL=win32install | |
24227 | fi | |
24228 | ||
24229 | if test "$wxUSE_GUI" = "yes"; then | |
24230 | USE_GUI=1 | |
24231 | ||
24232 | GUI_TK_LIBRARY= | |
24233 | ||
24234 | WXGTK12= | |
24235 | WXGTK127= | |
24236 | WXGTK20= | |
24237 | WXGPE= | |
24238 | ||
207bc66c RN |
24239 | if test "$wxUSE_COCOA" = 1 ; then |
24240 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
24241 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
24242 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
24243 | wxUSE_PRINTING_ARCHITECTURE=no | |
24244 | fi | |
24245 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
24246 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
24247 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
24248 | wxUSE_DRAG_AND_DROP=no | |
24249 | fi | |
24250 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
24251 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
24252 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
24253 | wxUSE_DRAGIMAGE=no | |
24254 | fi | |
24255 | fi | |
24256 | ||
a848cd7e SC |
24257 | if test "$wxUSE_MSW" = 1 ; then |
24258 | TOOLKIT=MSW | |
24259 | GUIDIST=MSW_DIST | |
24260 | ||
ceec2216 | 24261 | case "${host}" in |
a848cd7e SC |
24262 | *-*-mingw32* ) |
24263 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
24264 | esac | |
24265 | fi | |
24266 | ||
24267 | if test "$wxUSE_GTK" = 1; then | |
24268 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
24269 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
24270 | ||
24271 | gtk_version_cached=1 | |
24272 | if test "${wx_cv_lib_gtk+set}" = set; then | |
24273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24274 | else | |
24275 | ||
24276 | gtk_version_cached=0 | |
24277 | echo "$as_me:$LINENO: result: " >&5 | |
24278 | echo "${ECHO_T}" >&6 | |
24279 | ||
24280 | GTK_MODULES= | |
24281 | if test "$wxUSE_THREADS" = "yes"; then | |
24282 | GTK_MODULES=gthread | |
24283 | fi | |
24284 | ||
f597b41c | 24285 | wx_cv_lib_gtk= |
f34ca037 | 24286 | if test "x$wxGTK_VERSION" != "x1"; then |
a848cd7e SC |
24287 | # Check whether --enable-gtktest or --disable-gtktest was given. |
24288 | if test "${enable_gtktest+set}" = set; then | |
24289 | enableval="$enable_gtktest" | |
24290 | ||
24291 | else | |
24292 | enable_gtktest=yes | |
24293 | fi; | |
24294 | ||
24295 | pkg_config_args=gtk+-2.0 | |
24296 | for module in . $GTK_MODULES | |
24297 | do | |
24298 | case "$module" in | |
24299 | gthread) | |
24300 | pkg_config_args="$pkg_config_args gthread-2.0" | |
24301 | ;; | |
24302 | esac | |
24303 | done | |
24304 | ||
24305 | no_gtk="" | |
24306 | ||
24307 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24308 | set dummy pkg-config; ac_word=$2 | |
24309 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24310 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24311 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24313 | else | |
24314 | case $PKG_CONFIG in | |
24315 | [\\/]* | ?:[\\/]*) | |
24316 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
24317 | ;; | |
24318 | *) | |
24319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24320 | for as_dir in $PATH | |
24321 | do | |
24322 | IFS=$as_save_IFS | |
24323 | test -z "$as_dir" && as_dir=. | |
24324 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24325 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24326 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24327 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24328 | break 2 | |
24329 | fi | |
24330 | done | |
24331 | done | |
24332 | ||
24333 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
24334 | ;; | |
24335 | esac | |
24336 | fi | |
24337 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
24338 | ||
24339 | if test -n "$PKG_CONFIG"; then | |
24340 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
24341 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
24342 | else | |
24343 | echo "$as_me:$LINENO: result: no" >&5 | |
24344 | echo "${ECHO_T}no" >&6 | |
24345 | fi | |
24346 | ||
24347 | ||
24348 | if test x$PKG_CONFIG != xno ; then | |
24349 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
24350 | : | |
24351 | else | |
c2218763 | 24352 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
24353 | no_gtk=yes |
24354 | PKG_CONFIG=no | |
24355 | fi | |
24356 | else | |
24357 | no_gtk=yes | |
24358 | fi | |
24359 | ||
24360 | min_gtk_version=2.0.0 | |
24361 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
24362 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
24363 | ||
24364 | if test x$PKG_CONFIG != xno ; then | |
24365 | ## don't try to run the test against uninstalled libtool libs | |
24366 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
24367 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
24368 | enable_gtktest=no | |
24369 | fi | |
24370 | ||
24371 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
24372 | : | |
24373 | else | |
24374 | no_gtk=yes | |
24375 | fi | |
24376 | fi | |
24377 | ||
24378 | if test x"$no_gtk" = x ; then | |
24379 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
24380 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
24381 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24382 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24383 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24384 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24385 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24386 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24387 | if test "x$enable_gtktest" = "xyes" ; then | |
24388 | ac_save_CFLAGS="$CFLAGS" | |
24389 | ac_save_LIBS="$LIBS" | |
24390 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24391 | LIBS="$GTK_LIBS $LIBS" | |
24392 | rm -f conf.gtktest | |
24393 | if test "$cross_compiling" = yes; then | |
24394 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24395 | else | |
24396 | cat >conftest.$ac_ext <<_ACEOF | |
24397 | /* confdefs.h. */ | |
24398 | _ACEOF | |
24399 | cat confdefs.h >>conftest.$ac_ext | |
24400 | cat >>conftest.$ac_ext <<_ACEOF | |
24401 | /* end confdefs.h. */ | |
24402 | ||
24403 | #include <gtk/gtk.h> | |
24404 | #include <stdio.h> | |
24405 | #include <stdlib.h> | |
24406 | ||
24407 | int | |
24408 | main () | |
24409 | { | |
24410 | int major, minor, micro; | |
24411 | char *tmp_version; | |
24412 | ||
24413 | system ("touch conf.gtktest"); | |
24414 | ||
24415 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24416 | tmp_version = g_strdup("$min_gtk_version"); | |
24417 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24418 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24419 | exit(1); | |
24420 | } | |
24421 | ||
24422 | if ((gtk_major_version != $gtk_config_major_version) || | |
24423 | (gtk_minor_version != $gtk_config_minor_version) || | |
24424 | (gtk_micro_version != $gtk_config_micro_version)) | |
24425 | { | |
24426 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24427 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24428 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24429 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
24430 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24431 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24432 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24433 | printf("*** required on your system.\n"); | |
24434 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
24435 | printf("*** to point to the correct configuration files\n"); | |
24436 | } | |
24437 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24438 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24439 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24440 | { | |
24441 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24442 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24443 | printf("*** library (version %d.%d.%d)\n", | |
24444 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24445 | } | |
24446 | else | |
24447 | { | |
24448 | if ((gtk_major_version > major) || | |
24449 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24450 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24451 | { | |
24452 | return 0; | |
24453 | } | |
24454 | else | |
24455 | { | |
24456 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24457 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24458 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24459 | major, minor, micro); | |
24460 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24461 | printf("***\n"); | |
24462 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24463 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
24464 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24465 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
24466 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
24467 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24468 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24469 | } | |
24470 | } | |
24471 | return 1; | |
24472 | } | |
24473 | ||
24474 | _ACEOF | |
24475 | rm -f conftest$ac_exeext | |
24476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24477 | (eval $ac_link) 2>&5 | |
24478 | ac_status=$? | |
24479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24482 | (eval $ac_try) 2>&5 | |
24483 | ac_status=$? | |
24484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24485 | (exit $ac_status); }; }; then | |
24486 | : | |
24487 | else | |
24488 | echo "$as_me: program exited with status $ac_status" >&5 | |
24489 | echo "$as_me: failed program was:" >&5 | |
24490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24491 | ||
24492 | ( exit $ac_status ) | |
24493 | no_gtk=yes | |
24494 | fi | |
ac1cb8d3 | 24495 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24496 | fi |
24497 | CFLAGS="$ac_save_CFLAGS" | |
24498 | LIBS="$ac_save_LIBS" | |
24499 | fi | |
24500 | fi | |
24501 | if test "x$no_gtk" = x ; then | |
24502 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
24503 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
24504 | wx_cv_lib_gtk=2.0 | |
24505 | else | |
24506 | echo "$as_me:$LINENO: result: no" >&5 | |
24507 | echo "${ECHO_T}no" >&6 | |
24508 | if test "$PKG_CONFIG" = "no" ; then | |
24509 | echo "*** A new enough version of pkg-config was not found." | |
24510 | echo "*** See http://pkgconfig.sourceforge.net" | |
24511 | else | |
24512 | if test -f conf.gtktest ; then | |
24513 | : | |
24514 | else | |
24515 | echo "*** Could not run GTK+ test program, checking why..." | |
24516 | ac_save_CFLAGS="$CFLAGS" | |
24517 | ac_save_LIBS="$LIBS" | |
24518 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24519 | LIBS="$LIBS $GTK_LIBS" | |
24520 | cat >conftest.$ac_ext <<_ACEOF | |
24521 | /* confdefs.h. */ | |
24522 | _ACEOF | |
24523 | cat confdefs.h >>conftest.$ac_ext | |
24524 | cat >>conftest.$ac_ext <<_ACEOF | |
24525 | /* end confdefs.h. */ | |
24526 | ||
24527 | #include <gtk/gtk.h> | |
24528 | #include <stdio.h> | |
24529 | ||
24530 | int | |
24531 | main () | |
24532 | { | |
24533 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24534 | ; | |
24535 | return 0; | |
24536 | } | |
24537 | _ACEOF | |
24538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24540 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24541 | ac_status=$? |
ac1cb8d3 VS |
24542 | grep -v '^ *+' conftest.er1 >conftest.err |
24543 | rm -f conftest.er1 | |
24544 | cat conftest.err >&5 | |
a848cd7e SC |
24545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24546 | (exit $ac_status); } && | |
9dd0f6c2 | 24547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24549 | (eval $ac_try) 2>&5 | |
24550 | ac_status=$? | |
24551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24552 | (exit $ac_status); }; } && | |
24553 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24555 | (eval $ac_try) 2>&5 | |
24556 | ac_status=$? | |
24557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24558 | (exit $ac_status); }; }; then | |
24559 | echo "*** The test program compiled, but did not run. This usually means" | |
24560 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
24561 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
24562 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24563 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24564 | echo "*** is required on your system" | |
24565 | echo "***" | |
24566 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24567 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24568 | else | |
24569 | echo "$as_me: failed program was:" >&5 | |
24570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24571 | ||
24572 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24573 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
24574 | fi | |
ac1cb8d3 VS |
24575 | rm -f conftest.err conftest.$ac_objext \ |
24576 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24577 | CFLAGS="$ac_save_CFLAGS" |
24578 | LIBS="$ac_save_LIBS" | |
24579 | fi | |
24580 | fi | |
24581 | GTK_CFLAGS="" | |
24582 | GTK_LIBS="" | |
24583 | : | |
24584 | fi | |
24585 | ||
24586 | ||
24587 | rm -f conf.gtktest | |
24588 | ||
f597b41c MW |
24589 | fi |
24590 | ||
f34ca037 MW |
24591 | if test -z "$wx_cv_lib_gtk"; then |
24592 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
24593 | |
24594 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24595 | if test "${with_gtk_prefix+set}" = set; then | |
24596 | withval="$with_gtk_prefix" | |
24597 | gtk_config_prefix="$withval" | |
24598 | else | |
24599 | gtk_config_prefix="" | |
24600 | fi; | |
24601 | ||
24602 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24603 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24604 | withval="$with_gtk_exec_prefix" | |
24605 | gtk_config_exec_prefix="$withval" | |
24606 | else | |
24607 | gtk_config_exec_prefix="" | |
24608 | fi; | |
24609 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24610 | if test "${enable_gtktest+set}" = set; then | |
24611 | enableval="$enable_gtktest" | |
24612 | ||
24613 | else | |
24614 | enable_gtktest=yes | |
24615 | fi; | |
24616 | ||
24617 | for module in . $GTK_MODULES | |
24618 | do | |
24619 | case "$module" in | |
24620 | gthread) | |
24621 | gtk_config_args="$gtk_config_args gthread" | |
24622 | ;; | |
24623 | esac | |
24624 | done | |
24625 | ||
24626 | if test x$gtk_config_exec_prefix != x ; then | |
24627 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24628 | if test x${GTK_CONFIG+set} != xset ; then | |
24629 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24630 | fi | |
24631 | fi | |
24632 | if test x$gtk_config_prefix != x ; then | |
24633 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24634 | if test x${GTK_CONFIG+set} != xset ; then | |
24635 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24636 | fi | |
24637 | fi | |
24638 | ||
24639 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24640 | set dummy gtk-config; ac_word=$2 | |
24641 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24643 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24645 | else | |
24646 | case $GTK_CONFIG in | |
24647 | [\\/]* | ?:[\\/]*) | |
24648 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24649 | ;; | |
24650 | *) | |
24651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24652 | for as_dir in $PATH | |
24653 | do | |
24654 | IFS=$as_save_IFS | |
24655 | test -z "$as_dir" && as_dir=. | |
24656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24657 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24658 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24660 | break 2 | |
24661 | fi | |
24662 | done | |
24663 | done | |
24664 | ||
24665 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24666 | ;; | |
24667 | esac | |
24668 | fi | |
24669 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
24670 | ||
24671 | if test -n "$GTK_CONFIG"; then | |
24672 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
24673 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
24674 | else | |
24675 | echo "$as_me:$LINENO: result: no" >&5 | |
24676 | echo "${ECHO_T}no" >&6 | |
24677 | fi | |
24678 | ||
24679 | min_gtk_version=1.2.7 | |
24680 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
24681 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
24682 | no_gtk="" | |
24683 | if test "$GTK_CONFIG" = "no" ; then | |
24684 | no_gtk=yes | |
24685 | else | |
24686 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
24687 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
24688 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24689 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24690 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24691 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24692 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24693 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24694 | if test "x$enable_gtktest" = "xyes" ; then | |
24695 | ac_save_CFLAGS="$CFLAGS" | |
24696 | ac_save_LIBS="$LIBS" | |
24697 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24698 | LIBS="$GTK_LIBS $LIBS" | |
24699 | rm -f conf.gtktest | |
24700 | if test "$cross_compiling" = yes; then | |
24701 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24702 | else | |
24703 | cat >conftest.$ac_ext <<_ACEOF | |
24704 | /* confdefs.h. */ | |
24705 | _ACEOF | |
24706 | cat confdefs.h >>conftest.$ac_ext | |
24707 | cat >>conftest.$ac_ext <<_ACEOF | |
24708 | /* end confdefs.h. */ | |
24709 | ||
24710 | #include <gtk/gtk.h> | |
24711 | #include <stdio.h> | |
24712 | #include <stdlib.h> | |
24713 | ||
24714 | int | |
24715 | main () | |
24716 | { | |
24717 | int major, minor, micro; | |
24718 | char *tmp_version; | |
24719 | ||
24720 | system ("touch conf.gtktest"); | |
24721 | ||
24722 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24723 | tmp_version = g_strdup("$min_gtk_version"); | |
24724 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24725 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24726 | exit(1); | |
24727 | } | |
24728 | ||
24729 | if ((gtk_major_version != $gtk_config_major_version) || | |
24730 | (gtk_minor_version != $gtk_config_minor_version) || | |
24731 | (gtk_micro_version != $gtk_config_micro_version)) | |
24732 | { | |
24733 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24734 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24735 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24736 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
24737 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24738 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24739 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24740 | printf("*** required on your system.\n"); | |
24741 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
24742 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
24743 | printf("*** before re-running configure\n"); | |
24744 | } | |
24745 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
24746 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24747 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24748 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24749 | { | |
24750 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24751 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24752 | printf("*** library (version %d.%d.%d)\n", | |
24753 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24754 | } | |
24755 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
24756 | else | |
24757 | { | |
24758 | if ((gtk_major_version > major) || | |
24759 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24760 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24761 | { | |
24762 | return 0; | |
24763 | } | |
24764 | else | |
24765 | { | |
24766 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24767 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24768 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24769 | major, minor, micro); | |
24770 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24771 | printf("***\n"); | |
24772 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24773 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
24774 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24775 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
24776 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
24777 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24778 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24779 | } | |
24780 | } | |
24781 | return 1; | |
24782 | } | |
24783 | ||
24784 | _ACEOF | |
24785 | rm -f conftest$ac_exeext | |
24786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24787 | (eval $ac_link) 2>&5 | |
24788 | ac_status=$? | |
24789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24790 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24792 | (eval $ac_try) 2>&5 | |
24793 | ac_status=$? | |
24794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24795 | (exit $ac_status); }; }; then | |
24796 | : | |
24797 | else | |
24798 | echo "$as_me: program exited with status $ac_status" >&5 | |
24799 | echo "$as_me: failed program was:" >&5 | |
24800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24801 | ||
24802 | ( exit $ac_status ) | |
24803 | no_gtk=yes | |
24804 | fi | |
ac1cb8d3 | 24805 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24806 | fi |
24807 | CFLAGS="$ac_save_CFLAGS" | |
24808 | LIBS="$ac_save_LIBS" | |
24809 | fi | |
24810 | fi | |
24811 | if test "x$no_gtk" = x ; then | |
24812 | echo "$as_me:$LINENO: result: yes" >&5 | |
24813 | echo "${ECHO_T}yes" >&6 | |
24814 | wx_cv_lib_gtk=1.2.7 | |
24815 | else | |
24816 | echo "$as_me:$LINENO: result: no" >&5 | |
24817 | echo "${ECHO_T}no" >&6 | |
24818 | if test "$GTK_CONFIG" = "no" ; then | |
24819 | echo "*** The gtk-config script installed by GTK could not be found" | |
24820 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24821 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24822 | echo "*** full path to gtk-config." | |
24823 | else | |
24824 | if test -f conf.gtktest ; then | |
24825 | : | |
24826 | else | |
24827 | echo "*** Could not run GTK test program, checking why..." | |
24828 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24829 | LIBS="$LIBS $GTK_LIBS" | |
24830 | cat >conftest.$ac_ext <<_ACEOF | |
24831 | /* confdefs.h. */ | |
24832 | _ACEOF | |
24833 | cat confdefs.h >>conftest.$ac_ext | |
24834 | cat >>conftest.$ac_ext <<_ACEOF | |
24835 | /* end confdefs.h. */ | |
24836 | ||
24837 | #include <gtk/gtk.h> | |
24838 | #include <stdio.h> | |
24839 | ||
24840 | int | |
24841 | main () | |
24842 | { | |
24843 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24844 | ; | |
24845 | return 0; | |
24846 | } | |
24847 | _ACEOF | |
24848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24850 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24851 | ac_status=$? |
ac1cb8d3 VS |
24852 | grep -v '^ *+' conftest.er1 >conftest.err |
24853 | rm -f conftest.er1 | |
24854 | cat conftest.err >&5 | |
a848cd7e SC |
24855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24856 | (exit $ac_status); } && | |
9dd0f6c2 | 24857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24859 | (eval $ac_try) 2>&5 | |
24860 | ac_status=$? | |
24861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24862 | (exit $ac_status); }; } && | |
24863 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24865 | (eval $ac_try) 2>&5 | |
24866 | ac_status=$? | |
24867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24868 | (exit $ac_status); }; }; then | |
24869 | echo "*** The test program compiled, but did not run. This usually means" | |
24870 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24871 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24872 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24873 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24874 | echo "*** is required on your system" | |
24875 | echo "***" | |
24876 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24877 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24878 | echo "***" | |
24879 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24880 | echo "*** came with the system with the command" | |
24881 | echo "***" | |
24882 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24883 | else | |
24884 | echo "$as_me: failed program was:" >&5 | |
24885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24886 | ||
24887 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24888 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24889 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24890 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24891 | fi | |
ac1cb8d3 VS |
24892 | rm -f conftest.err conftest.$ac_objext \ |
24893 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24894 | CFLAGS="$ac_save_CFLAGS" |
24895 | LIBS="$ac_save_LIBS" | |
24896 | fi | |
24897 | fi | |
24898 | GTK_CFLAGS="" | |
24899 | GTK_LIBS="" | |
24900 | : | |
24901 | fi | |
24902 | ||
24903 | ||
24904 | rm -f conf.gtktest | |
24905 | ||
24906 | ||
f34ca037 | 24907 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
24908 | |
24909 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24910 | if test "${with_gtk_prefix+set}" = set; then | |
24911 | withval="$with_gtk_prefix" | |
24912 | gtk_config_prefix="$withval" | |
24913 | else | |
24914 | gtk_config_prefix="" | |
24915 | fi; | |
24916 | ||
24917 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24918 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24919 | withval="$with_gtk_exec_prefix" | |
24920 | gtk_config_exec_prefix="$withval" | |
24921 | else | |
24922 | gtk_config_exec_prefix="" | |
24923 | fi; | |
24924 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24925 | if test "${enable_gtktest+set}" = set; then | |
24926 | enableval="$enable_gtktest" | |
24927 | ||
24928 | else | |
24929 | enable_gtktest=yes | |
24930 | fi; | |
24931 | ||
24932 | for module in . $GTK_MODULES | |
24933 | do | |
24934 | case "$module" in | |
24935 | gthread) | |
24936 | gtk_config_args="$gtk_config_args gthread" | |
24937 | ;; | |
24938 | esac | |
24939 | done | |
24940 | ||
24941 | if test x$gtk_config_exec_prefix != x ; then | |
24942 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24943 | if test x${GTK_CONFIG+set} != xset ; then | |
24944 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24945 | fi | |
24946 | fi | |
24947 | if test x$gtk_config_prefix != x ; then | |
24948 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24949 | if test x${GTK_CONFIG+set} != xset ; then | |
24950 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24951 | fi | |
24952 | fi | |
24953 | ||
24954 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24955 | set dummy gtk-config; ac_word=$2 | |
24956 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24957 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24958 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24960 | else | |
24961 | case $GTK_CONFIG in | |
24962 | [\\/]* | ?:[\\/]*) | |
24963 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24964 | ;; | |
24965 | *) | |
24966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24967 | for as_dir in $PATH | |
24968 | do | |
24969 | IFS=$as_save_IFS | |
24970 | test -z "$as_dir" && as_dir=. | |
24971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24973 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24975 | break 2 | |
24976 | fi | |
24977 | done | |
24978 | done | |
24979 | ||
24980 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24981 | ;; | |
24982 | esac | |
24983 | fi | |
24984 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
24985 | ||
24986 | if test -n "$GTK_CONFIG"; then | |
24987 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
24988 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
24989 | else | |
24990 | echo "$as_me:$LINENO: result: no" >&5 | |
24991 | echo "${ECHO_T}no" >&6 | |
24992 | fi | |
24993 | ||
24994 | min_gtk_version=1.2.3 | |
24995 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
24996 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
24997 | no_gtk="" | |
24998 | if test "$GTK_CONFIG" = "no" ; then | |
24999 | no_gtk=yes | |
25000 | else | |
25001 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25002 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25003 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25004 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25005 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25006 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25007 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25008 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25009 | if test "x$enable_gtktest" = "xyes" ; then | |
25010 | ac_save_CFLAGS="$CFLAGS" | |
25011 | ac_save_LIBS="$LIBS" | |
25012 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25013 | LIBS="$GTK_LIBS $LIBS" | |
25014 | rm -f conf.gtktest | |
25015 | if test "$cross_compiling" = yes; then | |
25016 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25017 | else | |
25018 | cat >conftest.$ac_ext <<_ACEOF | |
25019 | /* confdefs.h. */ | |
25020 | _ACEOF | |
25021 | cat confdefs.h >>conftest.$ac_ext | |
25022 | cat >>conftest.$ac_ext <<_ACEOF | |
25023 | /* end confdefs.h. */ | |
25024 | ||
25025 | #include <gtk/gtk.h> | |
25026 | #include <stdio.h> | |
25027 | #include <stdlib.h> | |
25028 | ||
25029 | int | |
25030 | main () | |
25031 | { | |
25032 | int major, minor, micro; | |
25033 | char *tmp_version; | |
25034 | ||
25035 | system ("touch conf.gtktest"); | |
25036 | ||
25037 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25038 | tmp_version = g_strdup("$min_gtk_version"); | |
25039 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25040 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25041 | exit(1); | |
25042 | } | |
25043 | ||
25044 | if ((gtk_major_version != $gtk_config_major_version) || | |
25045 | (gtk_minor_version != $gtk_config_minor_version) || | |
25046 | (gtk_micro_version != $gtk_config_micro_version)) | |
25047 | { | |
25048 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25049 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25050 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25051 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25052 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25053 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25054 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25055 | printf("*** required on your system.\n"); | |
25056 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25057 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25058 | printf("*** before re-running configure\n"); | |
25059 | } | |
25060 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25061 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25062 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25063 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25064 | { | |
25065 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25066 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25067 | printf("*** library (version %d.%d.%d)\n", | |
25068 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25069 | } | |
25070 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25071 | else | |
25072 | { | |
25073 | if ((gtk_major_version > major) || | |
25074 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25075 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25076 | { | |
25077 | return 0; | |
25078 | } | |
25079 | else | |
25080 | { | |
25081 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25082 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25083 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25084 | major, minor, micro); | |
25085 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25086 | printf("***\n"); | |
25087 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25088 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25089 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25090 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25091 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25092 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25093 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25094 | } | |
25095 | } | |
25096 | return 1; | |
25097 | } | |
25098 | ||
25099 | _ACEOF | |
25100 | rm -f conftest$ac_exeext | |
25101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25102 | (eval $ac_link) 2>&5 | |
25103 | ac_status=$? | |
25104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25107 | (eval $ac_try) 2>&5 | |
25108 | ac_status=$? | |
25109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25110 | (exit $ac_status); }; }; then | |
25111 | : | |
25112 | else | |
25113 | echo "$as_me: program exited with status $ac_status" >&5 | |
25114 | echo "$as_me: failed program was:" >&5 | |
25115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25116 | ||
25117 | ( exit $ac_status ) | |
25118 | no_gtk=yes | |
25119 | fi | |
ac1cb8d3 | 25120 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25121 | fi |
25122 | CFLAGS="$ac_save_CFLAGS" | |
25123 | LIBS="$ac_save_LIBS" | |
25124 | fi | |
25125 | fi | |
25126 | if test "x$no_gtk" = x ; then | |
25127 | echo "$as_me:$LINENO: result: yes" >&5 | |
25128 | echo "${ECHO_T}yes" >&6 | |
25129 | wx_cv_lib_gtk=1.2.3 | |
25130 | else | |
25131 | echo "$as_me:$LINENO: result: no" >&5 | |
25132 | echo "${ECHO_T}no" >&6 | |
25133 | if test "$GTK_CONFIG" = "no" ; then | |
25134 | echo "*** The gtk-config script installed by GTK could not be found" | |
25135 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25136 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25137 | echo "*** full path to gtk-config." | |
25138 | else | |
25139 | if test -f conf.gtktest ; then | |
25140 | : | |
25141 | else | |
25142 | echo "*** Could not run GTK test program, checking why..." | |
25143 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25144 | LIBS="$LIBS $GTK_LIBS" | |
25145 | cat >conftest.$ac_ext <<_ACEOF | |
25146 | /* confdefs.h. */ | |
25147 | _ACEOF | |
25148 | cat confdefs.h >>conftest.$ac_ext | |
25149 | cat >>conftest.$ac_ext <<_ACEOF | |
25150 | /* end confdefs.h. */ | |
25151 | ||
25152 | #include <gtk/gtk.h> | |
25153 | #include <stdio.h> | |
25154 | ||
25155 | int | |
25156 | main () | |
25157 | { | |
25158 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25159 | ; | |
25160 | return 0; | |
25161 | } | |
25162 | _ACEOF | |
25163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25165 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25166 | ac_status=$? |
ac1cb8d3 VS |
25167 | grep -v '^ *+' conftest.er1 >conftest.err |
25168 | rm -f conftest.er1 | |
25169 | cat conftest.err >&5 | |
a848cd7e SC |
25170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25171 | (exit $ac_status); } && | |
9dd0f6c2 | 25172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25174 | (eval $ac_try) 2>&5 | |
25175 | ac_status=$? | |
25176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25177 | (exit $ac_status); }; } && | |
25178 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25180 | (eval $ac_try) 2>&5 | |
25181 | ac_status=$? | |
25182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25183 | (exit $ac_status); }; }; then | |
25184 | echo "*** The test program compiled, but did not run. This usually means" | |
25185 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25186 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25187 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25188 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25189 | echo "*** is required on your system" | |
25190 | echo "***" | |
25191 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25192 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25193 | echo "***" | |
25194 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25195 | echo "*** came with the system with the command" | |
25196 | echo "***" | |
25197 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25198 | else | |
25199 | echo "$as_me: failed program was:" >&5 | |
25200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25201 | ||
25202 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25203 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25204 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25205 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25206 | fi | |
ac1cb8d3 VS |
25207 | rm -f conftest.err conftest.$ac_objext \ |
25208 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25209 | CFLAGS="$ac_save_CFLAGS" |
25210 | LIBS="$ac_save_LIBS" | |
25211 | fi | |
25212 | fi | |
25213 | GTK_CFLAGS="" | |
25214 | GTK_LIBS="" | |
25215 | : | |
25216 | fi | |
25217 | ||
25218 | ||
25219 | rm -f conf.gtktest | |
25220 | ||
f34ca037 | 25221 | fi |
a848cd7e SC |
25222 | fi |
25223 | fi | |
25224 | ||
25225 | if test -z "$wx_cv_lib_gtk"; then | |
25226 | wx_cv_lib_gtk=none | |
25227 | else | |
25228 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
25229 | wx_cv_libs_gtk=$GTK_LIBS | |
25230 | fi | |
25231 | ||
25232 | ||
25233 | fi | |
25234 | ||
25235 | ||
25236 | if test "$gtk_version_cached" = 1; then | |
25237 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
25238 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
25239 | fi | |
25240 | ||
25241 | case "$wx_cv_lib_gtk" in | |
25242 | 2.0) WXGTK20=1 | |
25243 | TOOLKIT_VERSION=2 | |
25244 | ;; | |
25245 | 1.2.7) WXGTK127=1 | |
25246 | WXGTK12=1 | |
25247 | ;; | |
25248 | 1.2.3) WXGTK12=1 | |
25249 | ;; | |
25250 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
25251 | The development files for GTK+ were not found. For GTK+ 2, please |
25252 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
25253 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
25254 | and that the version is 1.2.3 or above. Also check that the | |
25255 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
25256 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
25257 | " >&5 |
25258 | echo "$as_me: error: | |
f597b41c MW |
25259 | The development files for GTK+ were not found. For GTK+ 2, please |
25260 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
25261 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
25262 | and that the version is 1.2.3 or above. Also check that the | |
25263 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
25264 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
25265 | " >&2;} |
25266 | { (exit 1); exit 1; }; } | |
25267 | ;; | |
25268 | esac | |
25269 | ||
25270 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
25271 | save_CFLAGS="$CFLAGS" |
25272 | save_LIBS="$LIBS" | |
9d271838 VZ |
25273 | CFLAGS="$CFLAGS $wx_cv_cflags_gtk" |
25274 | LIBS="$LIBS $wx_cv_lib_gtk" | |
304205f1 | 25275 | |
9755e73b | 25276 | |
304205f1 VS |
25277 | for ac_func in pango_font_family_is_monospace |
25278 | do | |
25279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25280 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25282 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25284 | else | |
25285 | cat >conftest.$ac_ext <<_ACEOF | |
25286 | /* confdefs.h. */ | |
25287 | _ACEOF | |
25288 | cat confdefs.h >>conftest.$ac_ext | |
25289 | cat >>conftest.$ac_ext <<_ACEOF | |
25290 | /* end confdefs.h. */ | |
25291 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25292 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25293 | #define $ac_func innocuous_$ac_func | |
25294 | ||
25295 | /* System header to define __stub macros and hopefully few prototypes, | |
25296 | which can conflict with char $ac_func (); below. | |
25297 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25298 | <limits.h> exists even on freestanding compilers. */ | |
25299 | ||
25300 | #ifdef __STDC__ | |
25301 | # include <limits.h> | |
25302 | #else | |
25303 | # include <assert.h> | |
25304 | #endif | |
25305 | ||
25306 | #undef $ac_func | |
25307 | ||
25308 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25309 | #ifdef __cplusplus | |
25310 | extern "C" | |
25311 | { | |
25312 | #endif | |
25313 | /* We use char because int might match the return type of a gcc2 | |
25314 | builtin and then its argument prototype would still apply. */ | |
25315 | char $ac_func (); | |
25316 | /* The GNU C library defines this for functions which it implements | |
25317 | to always fail with ENOSYS. Some functions are actually named | |
25318 | something starting with __ and the normal name is an alias. */ | |
25319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25320 | choke me | |
25321 | #else | |
25322 | char (*f) () = $ac_func; | |
25323 | #endif | |
25324 | #ifdef __cplusplus | |
25325 | } | |
25326 | #endif | |
25327 | ||
25328 | int | |
25329 | main () | |
25330 | { | |
25331 | return f != $ac_func; | |
25332 | ; | |
25333 | return 0; | |
25334 | } | |
25335 | _ACEOF | |
25336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25338 | (eval $ac_link) 2>conftest.er1 | |
25339 | ac_status=$? | |
25340 | grep -v '^ *+' conftest.er1 >conftest.err | |
25341 | rm -f conftest.er1 | |
25342 | cat conftest.err >&5 | |
25343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25344 | (exit $ac_status); } && | |
9dd0f6c2 | 25345 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
25346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25347 | (eval $ac_try) 2>&5 | |
25348 | ac_status=$? | |
25349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25350 | (exit $ac_status); }; } && | |
25351 | { ac_try='test -s conftest$ac_exeext' | |
25352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25353 | (eval $ac_try) 2>&5 | |
25354 | ac_status=$? | |
25355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25356 | (exit $ac_status); }; }; then | |
25357 | eval "$as_ac_var=yes" | |
25358 | else | |
25359 | echo "$as_me: failed program was:" >&5 | |
25360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25361 | ||
25362 | eval "$as_ac_var=no" | |
25363 | fi | |
25364 | rm -f conftest.err conftest.$ac_objext \ | |
25365 | conftest$ac_exeext conftest.$ac_ext | |
25366 | fi | |
25367 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25368 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25369 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25370 | cat >>confdefs.h <<_ACEOF | |
25371 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25372 | _ACEOF | |
25373 | ||
25374 | fi | |
25375 | done | |
25376 | ||
9755e73b VS |
25377 | |
25378 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 | |
25379 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
25380 | cat >conftest.$ac_ext <<_ACEOF | |
25381 | /* confdefs.h. */ | |
25382 | _ACEOF | |
25383 | cat confdefs.h >>conftest.$ac_ext | |
25384 | cat >>conftest.$ac_ext <<_ACEOF | |
25385 | /* end confdefs.h. */ | |
25386 | ||
25387 | #include <gtk/gtk.h> | |
25388 | ||
25389 | int | |
25390 | main () | |
25391 | { | |
25392 | ||
25393 | #if !GTK_CHECK_VERSION(2,4,0) | |
25394 | #error "Not GTK+ 2.4" | |
25395 | #endif | |
25396 | ||
25397 | ; | |
25398 | return 0; | |
25399 | } | |
25400 | _ACEOF | |
25401 | rm -f conftest.$ac_objext | |
25402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25403 | (eval $ac_compile) 2>conftest.er1 | |
25404 | ac_status=$? | |
25405 | grep -v '^ *+' conftest.er1 >conftest.err | |
25406 | rm -f conftest.er1 | |
25407 | cat conftest.err >&5 | |
25408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25409 | (exit $ac_status); } && | |
9dd0f6c2 | 25410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
25411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25412 | (eval $ac_try) 2>&5 | |
25413 | ac_status=$? | |
25414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25415 | (exit $ac_status); }; } && | |
25416 | { ac_try='test -s conftest.$ac_objext' | |
25417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25418 | (eval $ac_try) 2>&5 | |
25419 | ac_status=$? | |
25420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25421 | (exit $ac_status); }; }; then | |
25422 | ||
25423 | cat >>confdefs.h <<\_ACEOF | |
25424 | #define __WXGTK24__ 1 | |
25425 | _ACEOF | |
25426 | ||
25427 | echo "$as_me:$LINENO: result: yes" >&5 | |
25428 | echo "${ECHO_T}yes" >&6 | |
25429 | ||
25430 | else | |
25431 | echo "$as_me: failed program was:" >&5 | |
25432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25433 | ||
25434 | ||
25435 | echo "$as_me:$LINENO: result: no" >&5 | |
25436 | echo "${ECHO_T}no" >&6 | |
25437 | ||
25438 | fi | |
25439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25440 | ||
304205f1 VS |
25441 | CFLAGS="$save_CFLAGS" |
25442 | LIBS="$save_LIBS" | |
a848cd7e SC |
25443 | else |
25444 | if test "$wxUSE_UNICODE" = "yes"; then | |
25445 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
25446 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
25447 | wxUSE_UNICODE=no | |
25448 | fi | |
25449 | fi | |
25450 | ||
25451 | if test "$USE_DARWIN" != 1; then | |
25452 | ||
25453 | for ac_func in poll | |
25454 | do | |
25455 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25456 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25457 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25458 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25460 | else | |
25461 | cat >conftest.$ac_ext <<_ACEOF | |
25462 | /* confdefs.h. */ | |
25463 | _ACEOF | |
25464 | cat confdefs.h >>conftest.$ac_ext | |
25465 | cat >>conftest.$ac_ext <<_ACEOF | |
25466 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25467 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
25468 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25469 | #define $ac_func innocuous_$ac_func | |
25470 | ||
a848cd7e SC |
25471 | /* System header to define __stub macros and hopefully few prototypes, |
25472 | which can conflict with char $ac_func (); below. | |
25473 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25474 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25475 | |
a848cd7e SC |
25476 | #ifdef __STDC__ |
25477 | # include <limits.h> | |
25478 | #else | |
25479 | # include <assert.h> | |
25480 | #endif | |
ac1cb8d3 VS |
25481 | |
25482 | #undef $ac_func | |
25483 | ||
a848cd7e SC |
25484 | /* Override any gcc2 internal prototype to avoid an error. */ |
25485 | #ifdef __cplusplus | |
25486 | extern "C" | |
25487 | { | |
25488 | #endif | |
25489 | /* We use char because int might match the return type of a gcc2 | |
25490 | builtin and then its argument prototype would still apply. */ | |
25491 | char $ac_func (); | |
25492 | /* The GNU C library defines this for functions which it implements | |
25493 | to always fail with ENOSYS. Some functions are actually named | |
25494 | something starting with __ and the normal name is an alias. */ | |
25495 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25496 | choke me | |
25497 | #else | |
25498 | char (*f) () = $ac_func; | |
25499 | #endif | |
25500 | #ifdef __cplusplus | |
25501 | } | |
25502 | #endif | |
25503 | ||
25504 | int | |
25505 | main () | |
25506 | { | |
25507 | return f != $ac_func; | |
25508 | ; | |
25509 | return 0; | |
25510 | } | |
25511 | _ACEOF | |
25512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25514 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25515 | ac_status=$? |
ac1cb8d3 VS |
25516 | grep -v '^ *+' conftest.er1 >conftest.err |
25517 | rm -f conftest.er1 | |
25518 | cat conftest.err >&5 | |
a848cd7e SC |
25519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25520 | (exit $ac_status); } && | |
9dd0f6c2 | 25521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25523 | (eval $ac_try) 2>&5 | |
25524 | ac_status=$? | |
25525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25526 | (exit $ac_status); }; } && | |
25527 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25529 | (eval $ac_try) 2>&5 | |
25530 | ac_status=$? | |
25531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25532 | (exit $ac_status); }; }; then | |
25533 | eval "$as_ac_var=yes" | |
25534 | else | |
25535 | echo "$as_me: failed program was:" >&5 | |
25536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25537 | ||
25538 | eval "$as_ac_var=no" | |
25539 | fi | |
ac1cb8d3 VS |
25540 | rm -f conftest.err conftest.$ac_objext \ |
25541 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25542 | fi |
25543 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25544 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25545 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25546 | cat >>confdefs.h <<_ACEOF | |
25547 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25548 | _ACEOF | |
25549 | ||
25550 | fi | |
25551 | done | |
25552 | ||
25553 | fi | |
25554 | ||
25555 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
25556 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
25557 | ||
25558 | AFMINSTALL=afminstall | |
25559 | TOOLKIT=GTK | |
25560 | GUIDIST=GTK_DIST | |
25561 | ||
25562 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
25563 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
25564 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
25565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25566 | else | |
25567 | ac_check_lib_save_LIBS=$LIBS | |
25568 | LIBS="-lgdk $LIBS" | |
25569 | cat >conftest.$ac_ext <<_ACEOF | |
25570 | /* confdefs.h. */ | |
25571 | _ACEOF | |
25572 | cat confdefs.h >>conftest.$ac_ext | |
25573 | cat >>conftest.$ac_ext <<_ACEOF | |
25574 | /* end confdefs.h. */ | |
25575 | ||
25576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25577 | #ifdef __cplusplus | |
25578 | extern "C" | |
25579 | #endif | |
25580 | /* We use char because int might match the return type of a gcc2 | |
25581 | builtin and then its argument prototype would still apply. */ | |
25582 | char gdk_im_open (); | |
25583 | int | |
25584 | main () | |
25585 | { | |
25586 | gdk_im_open (); | |
25587 | ; | |
25588 | return 0; | |
25589 | } | |
25590 | _ACEOF | |
25591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25593 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25594 | ac_status=$? |
ac1cb8d3 VS |
25595 | grep -v '^ *+' conftest.er1 >conftest.err |
25596 | rm -f conftest.er1 | |
25597 | cat conftest.err >&5 | |
a848cd7e SC |
25598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25599 | (exit $ac_status); } && | |
9dd0f6c2 | 25600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25602 | (eval $ac_try) 2>&5 | |
25603 | ac_status=$? | |
25604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25605 | (exit $ac_status); }; } && | |
25606 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25608 | (eval $ac_try) 2>&5 | |
25609 | ac_status=$? | |
25610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25611 | (exit $ac_status); }; }; then | |
25612 | ac_cv_lib_gdk_gdk_im_open=yes | |
25613 | else | |
25614 | echo "$as_me: failed program was:" >&5 | |
25615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25616 | ||
25617 | ac_cv_lib_gdk_gdk_im_open=no | |
25618 | fi | |
ac1cb8d3 VS |
25619 | rm -f conftest.err conftest.$ac_objext \ |
25620 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25621 | LIBS=$ac_check_lib_save_LIBS |
25622 | fi | |
25623 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
25624 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
25625 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
25626 | cat >>confdefs.h <<\_ACEOF | |
25627 | #define HAVE_XIM 1 | |
25628 | _ACEOF | |
25629 | ||
25630 | fi | |
25631 | ||
25632 | ||
25633 | ||
25634 | if test "$wxUSE_GPE" = "yes"; then | |
25635 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
25636 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
25637 | ||
25638 | ac_find_libraries= | |
25639 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25640 | do | |
25641 | for ac_extension in a so sl dylib; do | |
25642 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
25643 | ac_find_libraries=$ac_dir | |
25644 | break 2 | |
25645 | fi | |
25646 | done | |
25647 | done | |
25648 | ||
25649 | if test "$ac_find_libraries" != "" ; then | |
25650 | ||
25651 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25652 | result=$? | |
25653 | if test $result = 0; then | |
25654 | ac_path_to_link="" | |
25655 | else | |
25656 | ac_path_to_link=" -L$ac_find_libraries" | |
25657 | fi | |
25658 | ||
25659 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
25660 | WXGPE=1 | |
25661 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25662 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25663 | else | |
25664 | echo "$as_me:$LINENO: result: not found" >&5 | |
25665 | echo "${ECHO_T}not found" >&6 | |
25666 | fi | |
25667 | ||
25668 | fi | |
25669 | fi | |
25670 | ||
25671 | if test "$wxUSE_MGL" = 1; then | |
25672 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
25673 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
25674 | if test "x$MGL_ROOT" = x ; then | |
25675 | echo "$as_me:$LINENO: result: not found" >&5 | |
25676 | echo "${ECHO_T}not found" >&6 | |
25677 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
25678 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
25679 | { (exit 1); exit 1; }; } | |
25680 | else | |
25681 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
25682 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
25683 | fi | |
25684 | ||
25685 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
25686 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
25687 | case "${host}" in | |
25688 | *-*-linux* ) | |
25689 | if test "x$wxUSE_SHARED" = xyes ; then | |
25690 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
25691 | else | |
25692 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
25693 | fi | |
25694 | ;; | |
25695 | *-pc-msdosdjgpp ) | |
25696 | mgl_os_candidates="dos32/dj2" | |
25697 | ;; | |
25698 | *) | |
25699 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
25700 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
25701 | { (exit 1); exit 1; }; } | |
25702 | esac | |
25703 | ||
25704 | mgl_lib_type="" | |
25705 | mgl_os="" | |
25706 | ||
25707 | for mgl_os_i in $mgl_os_candidates ; do | |
25708 | if test "x$mgl_os" = x ; then | |
25709 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
25710 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
25711 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
25712 | mgl_lib_type=debug | |
25713 | mgl_os=$mgl_os_i | |
25714 | fi | |
25715 | fi | |
25716 | if test "x$mgl_lib_type" = x ; then | |
25717 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
25718 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
25719 | mgl_lib_type=release | |
25720 | mgl_os=$mgl_os_i | |
25721 | fi | |
25722 | fi | |
25723 | fi | |
25724 | done | |
25725 | ||
25726 | if test "x$mgl_os" = x ; then | |
25727 | echo "$as_me:$LINENO: result: not found" >&5 | |
25728 | echo "${ECHO_T}not found" >&6 | |
25729 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
25730 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
25731 | { (exit 1); exit 1; }; } | |
25732 | fi | |
25733 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
25734 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
25735 | ||
25736 | wxUSE_UNIVERSAL="yes" | |
25737 | ||
25738 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
25739 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
25740 | ||
25741 | AFMINSTALL=afminstall | |
25742 | TOOLKIT=MGL | |
25743 | GUIDIST=MGL_DIST | |
25744 | fi | |
25745 | ||
25746 | if test "$wxUSE_MICROWIN" = 1; then | |
25747 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
25748 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
25749 | if test "x$MICROWINDOWS" = x ; then | |
25750 | echo "$as_me:$LINENO: result: not found" >&5 | |
25751 | echo "${ECHO_T}not found" >&6 | |
25752 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
25753 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
25754 | { (exit 1); exit 1; }; } | |
25755 | else | |
25756 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
25757 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
25758 | fi | |
25759 | ||
25760 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
25761 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
25762 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
25763 | else | |
25764 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
25765 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
25766 | { (exit 1); exit 1; }; } | |
25767 | fi | |
25768 | ||
25769 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
25770 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
25771 | ||
25772 | wxUSE_UNIVERSAL="yes" | |
25773 | ||
25774 | AFMINSTALL=afminstall | |
25775 | TOOLKIT=MICROWIN | |
25776 | GUIDIST=MICROWIN_DIST | |
25777 | ||
25778 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
25779 | fi | |
25780 | ||
74b84332 | 25781 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
9dd0f6c2 DE |
25782 | |
25783 | if test "x$ac_path_x_has_been_run" != xyes; then | |
25784 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
25785 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25786 | ||
9dd0f6c2 | 25787 | ac_path_x_has_been_run=yes |
a848cd7e SC |
25788 | |
25789 | # Check whether --with-x or --without-x was given. | |
25790 | if test "${with_x+set}" = set; then | |
25791 | withval="$with_x" | |
25792 | ||
25793 | fi; | |
25794 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
25795 | if test "x$with_x" = xno; then | |
25796 | # The user explicitly disabled X. | |
25797 | have_x=disabled | |
25798 | else | |
25799 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
25800 | # Both variables are already set. | |
25801 | have_x=yes | |
25802 | else | |
25803 | if test "${ac_cv_have_x+set}" = set; then | |
25804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25805 | else | |
25806 | # One or both of the vars are not set, and there is no cached value. | |
25807 | ac_x_includes=no ac_x_libraries=no | |
25808 | rm -fr conftest.dir | |
25809 | if mkdir conftest.dir; then | |
25810 | cd conftest.dir | |
25811 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
25812 | cat >Imakefile <<'_ACEOF' | |
25813 | acfindx: | |
25814 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
25815 | _ACEOF | |
25816 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
25817 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
25818 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
25819 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
25820 | for ac_extension in a so sl; do | |
25821 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
25822 | test -f $ac_im_libdir/libX11.$ac_extension; then |
25823 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
25824 | fi |
25825 | done | |
25826 | # Screen out bogus values from the imake configuration. They are | |
25827 | # bogus both because they are the default anyway, and because | |
25828 | # using them would break gcc on systems where it needs fixed includes. | |
25829 | case $ac_im_incroot in | |
25830 | /usr/include) ;; | |
25831 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
25832 | esac | |
25833 | case $ac_im_usrlibdir in | |
25834 | /usr/lib | /lib) ;; | |
25835 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
25836 | esac | |
25837 | fi | |
25838 | cd .. | |
25839 | rm -fr conftest.dir | |
25840 | fi | |
25841 | ||
25842 | # Standard set of common directories for X headers. | |
25843 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
25844 | ac_x_header_dirs=' | |
25845 | /usr/X11/include | |
25846 | /usr/X11R6/include | |
25847 | /usr/X11R5/include | |
25848 | /usr/X11R4/include | |
25849 | ||
25850 | /usr/include/X11 | |
25851 | /usr/include/X11R6 | |
25852 | /usr/include/X11R5 | |
25853 | /usr/include/X11R4 | |
25854 | ||
25855 | /usr/local/X11/include | |
25856 | /usr/local/X11R6/include | |
25857 | /usr/local/X11R5/include | |
25858 | /usr/local/X11R4/include | |
25859 | ||
25860 | /usr/local/include/X11 | |
25861 | /usr/local/include/X11R6 | |
25862 | /usr/local/include/X11R5 | |
25863 | /usr/local/include/X11R4 | |
25864 | ||
25865 | /usr/X386/include | |
25866 | /usr/x386/include | |
25867 | /usr/XFree86/include/X11 | |
25868 | ||
25869 | /usr/include | |
25870 | /usr/local/include | |
25871 | /usr/unsupported/include | |
25872 | /usr/athena/include | |
25873 | /usr/local/x11r5/include | |
25874 | /usr/lpp/Xamples/include | |
25875 | ||
25876 | /usr/openwin/include | |
25877 | /usr/openwin/share/include' | |
25878 | ||
25879 | if test "$ac_x_includes" = no; then | |
9dd0f6c2 | 25880 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
25881 | # First, try using that file with no special directory specified. |
25882 | cat >conftest.$ac_ext <<_ACEOF | |
25883 | /* confdefs.h. */ | |
25884 | _ACEOF | |
25885 | cat confdefs.h >>conftest.$ac_ext | |
25886 | cat >>conftest.$ac_ext <<_ACEOF | |
25887 | /* end confdefs.h. */ | |
25888 | #include <X11/Intrinsic.h> | |
25889 | _ACEOF | |
25890 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25891 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25892 | ac_status=$? | |
25893 | grep -v '^ *+' conftest.er1 >conftest.err | |
25894 | rm -f conftest.er1 | |
25895 | cat conftest.err >&5 | |
25896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25897 | (exit $ac_status); } >/dev/null; then | |
25898 | if test -s conftest.err; then | |
25899 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25900 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25901 | else |
25902 | ac_cpp_err= | |
25903 | fi | |
25904 | else | |
25905 | ac_cpp_err=yes | |
25906 | fi | |
25907 | if test -z "$ac_cpp_err"; then | |
25908 | # We can compile using X headers with no special include directory. | |
25909 | ac_x_includes= | |
25910 | else | |
25911 | echo "$as_me: failed program was:" >&5 | |
25912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25913 | ||
25914 | for ac_dir in $ac_x_header_dirs; do | |
25915 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
25916 | ac_x_includes=$ac_dir | |
25917 | break | |
25918 | fi | |
25919 | done | |
25920 | fi | |
25921 | rm -f conftest.err conftest.$ac_ext | |
25922 | fi # $ac_x_includes = no | |
25923 | ||
25924 | if test "$ac_x_libraries" = no; then | |
25925 | # Check for the libraries. | |
25926 | # See if we find them without any special options. | |
25927 | # Don't add to $LIBS permanently. | |
25928 | ac_save_LIBS=$LIBS | |
25929 | LIBS="-lXt $LIBS" | |
25930 | cat >conftest.$ac_ext <<_ACEOF | |
25931 | /* confdefs.h. */ | |
25932 | _ACEOF | |
25933 | cat confdefs.h >>conftest.$ac_ext | |
25934 | cat >>conftest.$ac_ext <<_ACEOF | |
25935 | /* end confdefs.h. */ | |
25936 | #include <X11/Intrinsic.h> | |
25937 | int | |
25938 | main () | |
25939 | { | |
25940 | XtMalloc (0) | |
25941 | ; | |
25942 | return 0; | |
25943 | } | |
25944 | _ACEOF | |
25945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25947 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25948 | ac_status=$? |
ac1cb8d3 VS |
25949 | grep -v '^ *+' conftest.er1 >conftest.err |
25950 | rm -f conftest.er1 | |
25951 | cat conftest.err >&5 | |
a848cd7e SC |
25952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25953 | (exit $ac_status); } && | |
9dd0f6c2 | 25954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25956 | (eval $ac_try) 2>&5 | |
25957 | ac_status=$? | |
25958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25959 | (exit $ac_status); }; } && | |
25960 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25962 | (eval $ac_try) 2>&5 | |
25963 | ac_status=$? | |
25964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25965 | (exit $ac_status); }; }; then | |
25966 | LIBS=$ac_save_LIBS | |
25967 | # We can link X programs with no special library path. | |
25968 | ac_x_libraries= | |
25969 | else | |
25970 | echo "$as_me: failed program was:" >&5 | |
25971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25972 | ||
25973 | LIBS=$ac_save_LIBS | |
25974 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25975 | do | |
25976 | # Don't even attempt the hair of trying to link an X program! | |
25977 | for ac_extension in a so sl; do | |
25978 | if test -r $ac_dir/libXt.$ac_extension; then | |
25979 | ac_x_libraries=$ac_dir | |
25980 | break 2 | |
25981 | fi | |
25982 | done | |
25983 | done | |
25984 | fi | |
ac1cb8d3 VS |
25985 | rm -f conftest.err conftest.$ac_objext \ |
25986 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25987 | fi # $ac_x_libraries = no |
25988 | ||
25989 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25990 | # Didn't find X anywhere. Cache the known absence of X. | |
25991 | ac_cv_have_x="have_x=no" | |
25992 | else | |
25993 | # Record where we found X for the cache. | |
25994 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 25995 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
25996 | fi |
25997 | fi | |
25998 | ||
25999 | fi | |
26000 | eval "$ac_cv_have_x" | |
26001 | fi # $with_x != no | |
26002 | ||
26003 | if test "$have_x" != yes; then | |
26004 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
26005 | echo "${ECHO_T}$have_x" >&6 | |
26006 | no_x=yes | |
26007 | else | |
26008 | # If each of the values was on the command line, it overrides each guess. | |
26009 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
26010 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
26011 | # Update the cache value to reflect the command line values. | |
26012 | ac_cv_have_x="have_x=yes \ | |
26013 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
9dd0f6c2 DE |
26014 | # It might be that x_includes is empty (headers are found in the |
26015 | # standard search path. Then output the corresponding message | |
26016 | ac_out_x_includes=$x_includes | |
26017 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
26018 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
26019 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
26020 | fi |
26021 | ||
9dd0f6c2 | 26022 | fi |
a848cd7e SC |
26023 | if test "$no_x" = yes; then |
26024 | # Not all programs may use this symbol, but it does not hurt to define it. | |
26025 | ||
26026 | cat >>confdefs.h <<\_ACEOF | |
26027 | #define X_DISPLAY_MISSING 1 | |
26028 | _ACEOF | |
26029 | ||
26030 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
26031 | else | |
26032 | if test -n "$x_includes"; then | |
26033 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
26034 | fi | |
26035 | ||
26036 | # It would also be nice to do this for all -L options, not just this one. | |
26037 | if test -n "$x_libraries"; then | |
26038 | X_LIBS="$X_LIBS -L$x_libraries" | |
26039 | # For Solaris; some versions of Sun CC require a space after -R and | |
26040 | # others require no space. Words are not sufficient . . . . | |
26041 | case `(uname -sr) 2>/dev/null` in | |
26042 | "SunOS 5"*) | |
26043 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
26044 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
26045 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
26046 | cat >conftest.$ac_ext <<_ACEOF | |
26047 | /* confdefs.h. */ | |
26048 | _ACEOF | |
26049 | cat confdefs.h >>conftest.$ac_ext | |
26050 | cat >>conftest.$ac_ext <<_ACEOF | |
26051 | /* end confdefs.h. */ | |
26052 | ||
26053 | int | |
26054 | main () | |
26055 | { | |
26056 | ||
26057 | ; | |
26058 | return 0; | |
26059 | } | |
26060 | _ACEOF | |
26061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26063 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26064 | ac_status=$? |
ac1cb8d3 VS |
26065 | grep -v '^ *+' conftest.er1 >conftest.err |
26066 | rm -f conftest.er1 | |
26067 | cat conftest.err >&5 | |
a848cd7e SC |
26068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26069 | (exit $ac_status); } && | |
9dd0f6c2 | 26070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26072 | (eval $ac_try) 2>&5 | |
26073 | ac_status=$? | |
26074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26075 | (exit $ac_status); }; } && | |
26076 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26078 | (eval $ac_try) 2>&5 | |
26079 | ac_status=$? | |
26080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26081 | (exit $ac_status); }; }; then | |
26082 | ac_R_nospace=yes | |
26083 | else | |
26084 | echo "$as_me: failed program was:" >&5 | |
26085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26086 | ||
26087 | ac_R_nospace=no | |
26088 | fi | |
ac1cb8d3 VS |
26089 | rm -f conftest.err conftest.$ac_objext \ |
26090 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26091 | if test $ac_R_nospace = yes; then |
26092 | echo "$as_me:$LINENO: result: no" >&5 | |
26093 | echo "${ECHO_T}no" >&6 | |
26094 | X_LIBS="$X_LIBS -R$x_libraries" | |
26095 | else | |
26096 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
26097 | cat >conftest.$ac_ext <<_ACEOF | |
26098 | /* confdefs.h. */ | |
26099 | _ACEOF | |
26100 | cat confdefs.h >>conftest.$ac_ext | |
26101 | cat >>conftest.$ac_ext <<_ACEOF | |
26102 | /* end confdefs.h. */ | |
26103 | ||
26104 | int | |
26105 | main () | |
26106 | { | |
26107 | ||
26108 | ; | |
26109 | return 0; | |
26110 | } | |
26111 | _ACEOF | |
26112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26114 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26115 | ac_status=$? |
ac1cb8d3 VS |
26116 | grep -v '^ *+' conftest.er1 >conftest.err |
26117 | rm -f conftest.er1 | |
26118 | cat conftest.err >&5 | |
a848cd7e SC |
26119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26120 | (exit $ac_status); } && | |
9dd0f6c2 | 26121 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26123 | (eval $ac_try) 2>&5 | |
26124 | ac_status=$? | |
26125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26126 | (exit $ac_status); }; } && | |
26127 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26129 | (eval $ac_try) 2>&5 | |
26130 | ac_status=$? | |
26131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26132 | (exit $ac_status); }; }; then | |
26133 | ac_R_space=yes | |
26134 | else | |
26135 | echo "$as_me: failed program was:" >&5 | |
26136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26137 | ||
26138 | ac_R_space=no | |
26139 | fi | |
ac1cb8d3 VS |
26140 | rm -f conftest.err conftest.$ac_objext \ |
26141 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26142 | if test $ac_R_space = yes; then |
26143 | echo "$as_me:$LINENO: result: yes" >&5 | |
26144 | echo "${ECHO_T}yes" >&6 | |
26145 | X_LIBS="$X_LIBS -R $x_libraries" | |
26146 | else | |
26147 | echo "$as_me:$LINENO: result: neither works" >&5 | |
26148 | echo "${ECHO_T}neither works" >&6 | |
26149 | fi | |
26150 | fi | |
26151 | LIBS=$ac_xsave_LIBS | |
26152 | esac | |
26153 | fi | |
26154 | ||
26155 | # Check for system-dependent libraries X programs must link with. | |
26156 | # Do this before checking for the system-independent R6 libraries | |
26157 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
26158 | ||
26159 | if test "$ISC" = yes; then | |
26160 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
26161 | else | |
26162 | # Martyn Johnson says this is needed for Ultrix, if the X | |
26163 | # libraries were built with DECnet support. And Karl Berry says | |
26164 | # the Alpha needs dnet_stub (dnet does not exist). | |
26165 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
26166 | cat >conftest.$ac_ext <<_ACEOF | |
26167 | /* confdefs.h. */ | |
26168 | _ACEOF | |
26169 | cat confdefs.h >>conftest.$ac_ext | |
26170 | cat >>conftest.$ac_ext <<_ACEOF | |
26171 | /* end confdefs.h. */ | |
26172 | ||
26173 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26174 | #ifdef __cplusplus | |
26175 | extern "C" | |
26176 | #endif | |
26177 | /* We use char because int might match the return type of a gcc2 | |
26178 | builtin and then its argument prototype would still apply. */ | |
26179 | char XOpenDisplay (); | |
26180 | int | |
26181 | main () | |
26182 | { | |
26183 | XOpenDisplay (); | |
26184 | ; | |
26185 | return 0; | |
26186 | } | |
26187 | _ACEOF | |
26188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26190 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26191 | ac_status=$? |
ac1cb8d3 VS |
26192 | grep -v '^ *+' conftest.er1 >conftest.err |
26193 | rm -f conftest.er1 | |
26194 | cat conftest.err >&5 | |
a848cd7e SC |
26195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26196 | (exit $ac_status); } && | |
9dd0f6c2 | 26197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26199 | (eval $ac_try) 2>&5 | |
26200 | ac_status=$? | |
26201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26202 | (exit $ac_status); }; } && | |
26203 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26205 | (eval $ac_try) 2>&5 | |
26206 | ac_status=$? | |
26207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26208 | (exit $ac_status); }; }; then | |
26209 | : | |
26210 | else | |
26211 | echo "$as_me: failed program was:" >&5 | |
26212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26213 | ||
26214 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
26215 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
26216 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
26217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26218 | else | |
26219 | ac_check_lib_save_LIBS=$LIBS | |
26220 | LIBS="-ldnet $LIBS" | |
26221 | cat >conftest.$ac_ext <<_ACEOF | |
26222 | /* confdefs.h. */ | |
26223 | _ACEOF | |
26224 | cat confdefs.h >>conftest.$ac_ext | |
26225 | cat >>conftest.$ac_ext <<_ACEOF | |
26226 | /* end confdefs.h. */ | |
26227 | ||
26228 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26229 | #ifdef __cplusplus | |
26230 | extern "C" | |
26231 | #endif | |
26232 | /* We use char because int might match the return type of a gcc2 | |
26233 | builtin and then its argument prototype would still apply. */ | |
26234 | char dnet_ntoa (); | |
26235 | int | |
26236 | main () | |
26237 | { | |
26238 | dnet_ntoa (); | |
26239 | ; | |
26240 | return 0; | |
26241 | } | |
26242 | _ACEOF | |
26243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26245 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26246 | ac_status=$? |
ac1cb8d3 VS |
26247 | grep -v '^ *+' conftest.er1 >conftest.err |
26248 | rm -f conftest.er1 | |
26249 | cat conftest.err >&5 | |
a848cd7e SC |
26250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26251 | (exit $ac_status); } && | |
9dd0f6c2 | 26252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26254 | (eval $ac_try) 2>&5 | |
26255 | ac_status=$? | |
26256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26257 | (exit $ac_status); }; } && | |
26258 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26260 | (eval $ac_try) 2>&5 | |
26261 | ac_status=$? | |
26262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26263 | (exit $ac_status); }; }; then | |
26264 | ac_cv_lib_dnet_dnet_ntoa=yes | |
26265 | else | |
26266 | echo "$as_me: failed program was:" >&5 | |
26267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26268 | ||
26269 | ac_cv_lib_dnet_dnet_ntoa=no | |
26270 | fi | |
ac1cb8d3 VS |
26271 | rm -f conftest.err conftest.$ac_objext \ |
26272 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26273 | LIBS=$ac_check_lib_save_LIBS |
26274 | fi | |
26275 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
26276 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
26277 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
26278 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
26279 | fi | |
26280 | ||
26281 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
26282 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
26283 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
26284 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
26285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26286 | else | |
26287 | ac_check_lib_save_LIBS=$LIBS | |
26288 | LIBS="-ldnet_stub $LIBS" | |
26289 | cat >conftest.$ac_ext <<_ACEOF | |
26290 | /* confdefs.h. */ | |
26291 | _ACEOF | |
26292 | cat confdefs.h >>conftest.$ac_ext | |
26293 | cat >>conftest.$ac_ext <<_ACEOF | |
26294 | /* end confdefs.h. */ | |
26295 | ||
26296 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26297 | #ifdef __cplusplus | |
26298 | extern "C" | |
26299 | #endif | |
26300 | /* We use char because int might match the return type of a gcc2 | |
26301 | builtin and then its argument prototype would still apply. */ | |
26302 | char dnet_ntoa (); | |
26303 | int | |
26304 | main () | |
26305 | { | |
26306 | dnet_ntoa (); | |
26307 | ; | |
26308 | return 0; | |
26309 | } | |
26310 | _ACEOF | |
26311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26313 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26314 | ac_status=$? |
ac1cb8d3 VS |
26315 | grep -v '^ *+' conftest.er1 >conftest.err |
26316 | rm -f conftest.er1 | |
26317 | cat conftest.err >&5 | |
a848cd7e SC |
26318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26319 | (exit $ac_status); } && | |
9dd0f6c2 | 26320 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26322 | (eval $ac_try) 2>&5 | |
26323 | ac_status=$? | |
26324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26325 | (exit $ac_status); }; } && | |
26326 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26328 | (eval $ac_try) 2>&5 | |
26329 | ac_status=$? | |
26330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26331 | (exit $ac_status); }; }; then | |
26332 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
26333 | else | |
26334 | echo "$as_me: failed program was:" >&5 | |
26335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26336 | ||
26337 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
26338 | fi | |
ac1cb8d3 VS |
26339 | rm -f conftest.err conftest.$ac_objext \ |
26340 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26341 | LIBS=$ac_check_lib_save_LIBS |
26342 | fi | |
26343 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
26344 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
26345 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
26346 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
26347 | fi | |
26348 | ||
26349 | fi | |
26350 | fi | |
ac1cb8d3 VS |
26351 | rm -f conftest.err conftest.$ac_objext \ |
26352 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26353 | LIBS="$ac_xsave_LIBS" |
26354 | ||
26355 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
26356 | # to get the SysV transport functions. | |
26357 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
26358 | # needs -lnsl. | |
26359 | # The nsl library prevents programs from opening the X display | |
26360 | # on Irix 5.2, according to T.E. Dickey. | |
26361 | # The functions gethostbyname, getservbyname, and inet_addr are | |
26362 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
26363 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
26364 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
26365 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
26366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26367 | else | |
26368 | cat >conftest.$ac_ext <<_ACEOF | |
26369 | /* confdefs.h. */ | |
26370 | _ACEOF | |
26371 | cat confdefs.h >>conftest.$ac_ext | |
26372 | cat >>conftest.$ac_ext <<_ACEOF | |
26373 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26374 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
26375 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26376 | #define gethostbyname innocuous_gethostbyname | |
26377 | ||
a848cd7e SC |
26378 | /* System header to define __stub macros and hopefully few prototypes, |
26379 | which can conflict with char gethostbyname (); below. | |
26380 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26381 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26382 | |
a848cd7e SC |
26383 | #ifdef __STDC__ |
26384 | # include <limits.h> | |
26385 | #else | |
26386 | # include <assert.h> | |
26387 | #endif | |
ac1cb8d3 VS |
26388 | |
26389 | #undef gethostbyname | |
26390 | ||
a848cd7e SC |
26391 | /* Override any gcc2 internal prototype to avoid an error. */ |
26392 | #ifdef __cplusplus | |
26393 | extern "C" | |
26394 | { | |
26395 | #endif | |
26396 | /* We use char because int might match the return type of a gcc2 | |
26397 | builtin and then its argument prototype would still apply. */ | |
26398 | char gethostbyname (); | |
26399 | /* The GNU C library defines this for functions which it implements | |
26400 | to always fail with ENOSYS. Some functions are actually named | |
26401 | something starting with __ and the normal name is an alias. */ | |
26402 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
26403 | choke me | |
26404 | #else | |
26405 | char (*f) () = gethostbyname; | |
26406 | #endif | |
26407 | #ifdef __cplusplus | |
26408 | } | |
26409 | #endif | |
26410 | ||
26411 | int | |
26412 | main () | |
26413 | { | |
26414 | return f != gethostbyname; | |
26415 | ; | |
26416 | return 0; | |
26417 | } | |
26418 | _ACEOF | |
26419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26421 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26422 | ac_status=$? |
ac1cb8d3 VS |
26423 | grep -v '^ *+' conftest.er1 >conftest.err |
26424 | rm -f conftest.er1 | |
26425 | cat conftest.err >&5 | |
a848cd7e SC |
26426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26427 | (exit $ac_status); } && | |
9dd0f6c2 | 26428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26430 | (eval $ac_try) 2>&5 | |
26431 | ac_status=$? | |
26432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26433 | (exit $ac_status); }; } && | |
26434 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26436 | (eval $ac_try) 2>&5 | |
26437 | ac_status=$? | |
26438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26439 | (exit $ac_status); }; }; then | |
26440 | ac_cv_func_gethostbyname=yes | |
26441 | else | |
26442 | echo "$as_me: failed program was:" >&5 | |
26443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26444 | ||
26445 | ac_cv_func_gethostbyname=no | |
26446 | fi | |
ac1cb8d3 VS |
26447 | rm -f conftest.err conftest.$ac_objext \ |
26448 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26449 | fi |
26450 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
26451 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
26452 | ||
26453 | if test $ac_cv_func_gethostbyname = no; then | |
26454 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
26455 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
26456 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
26457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26458 | else | |
26459 | ac_check_lib_save_LIBS=$LIBS | |
26460 | LIBS="-lnsl $LIBS" | |
26461 | cat >conftest.$ac_ext <<_ACEOF | |
26462 | /* confdefs.h. */ | |
26463 | _ACEOF | |
26464 | cat confdefs.h >>conftest.$ac_ext | |
26465 | cat >>conftest.$ac_ext <<_ACEOF | |
26466 | /* end confdefs.h. */ | |
26467 | ||
26468 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26469 | #ifdef __cplusplus | |
26470 | extern "C" | |
26471 | #endif | |
26472 | /* We use char because int might match the return type of a gcc2 | |
26473 | builtin and then its argument prototype would still apply. */ | |
26474 | char gethostbyname (); | |
26475 | int | |
26476 | main () | |
26477 | { | |
26478 | gethostbyname (); | |
26479 | ; | |
26480 | return 0; | |
26481 | } | |
26482 | _ACEOF | |
26483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
26485 | (eval $ac_link) 2>conftest.er1 |
26486 | ac_status=$? | |
26487 | grep -v '^ *+' conftest.er1 >conftest.err | |
26488 | rm -f conftest.er1 | |
26489 | cat conftest.err >&5 | |
26490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26491 | (exit $ac_status); } && | |
9dd0f6c2 | 26492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26494 | (eval $ac_try) 2>&5 | |
26495 | ac_status=$? | |
26496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26497 | (exit $ac_status); }; } && | |
26498 | { ac_try='test -s conftest$ac_exeext' | |
26499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26500 | (eval $ac_try) 2>&5 | |
26501 | ac_status=$? | |
26502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26503 | (exit $ac_status); }; }; then | |
26504 | ac_cv_lib_nsl_gethostbyname=yes | |
26505 | else | |
26506 | echo "$as_me: failed program was:" >&5 | |
26507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26508 | ||
26509 | ac_cv_lib_nsl_gethostbyname=no | |
26510 | fi | |
26511 | rm -f conftest.err conftest.$ac_objext \ | |
26512 | conftest$ac_exeext conftest.$ac_ext | |
26513 | LIBS=$ac_check_lib_save_LIBS | |
26514 | fi | |
26515 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
26516 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
26517 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
26518 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
26519 | fi | |
26520 | ||
26521 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
26522 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
26523 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
26524 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
26525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26526 | else | |
26527 | ac_check_lib_save_LIBS=$LIBS | |
26528 | LIBS="-lbsd $LIBS" | |
26529 | cat >conftest.$ac_ext <<_ACEOF | |
26530 | /* confdefs.h. */ | |
26531 | _ACEOF | |
26532 | cat confdefs.h >>conftest.$ac_ext | |
26533 | cat >>conftest.$ac_ext <<_ACEOF | |
26534 | /* end confdefs.h. */ | |
26535 | ||
26536 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26537 | #ifdef __cplusplus | |
26538 | extern "C" | |
26539 | #endif | |
26540 | /* We use char because int might match the return type of a gcc2 | |
26541 | builtin and then its argument prototype would still apply. */ | |
26542 | char gethostbyname (); | |
26543 | int | |
26544 | main () | |
26545 | { | |
26546 | gethostbyname (); | |
26547 | ; | |
26548 | return 0; | |
26549 | } | |
26550 | _ACEOF | |
26551 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26553 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 26554 | ac_status=$? |
ac1cb8d3 VS |
26555 | grep -v '^ *+' conftest.er1 >conftest.err |
26556 | rm -f conftest.er1 | |
26557 | cat conftest.err >&5 | |
a848cd7e SC |
26558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26559 | (exit $ac_status); } && | |
9dd0f6c2 | 26560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
26561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26562 | (eval $ac_try) 2>&5 | |
26563 | ac_status=$? | |
26564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
26565 | (exit $ac_status); }; } && |
26566 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26568 | (eval $ac_try) 2>&5 | |
26569 | ac_status=$? | |
26570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26571 | (exit $ac_status); }; }; then | |
26572 | ac_cv_lib_bsd_gethostbyname=yes | |
26573 | else | |
26574 | echo "$as_me: failed program was:" >&5 | |
26575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26576 | ||
26577 | ac_cv_lib_bsd_gethostbyname=no | |
26578 | fi | |
ac1cb8d3 VS |
26579 | rm -f conftest.err conftest.$ac_objext \ |
26580 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26581 | LIBS=$ac_check_lib_save_LIBS |
26582 | fi | |
26583 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
26584 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
26585 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
26586 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
26587 | fi | |
26588 | ||
26589 | fi | |
26590 | fi | |
26591 | ||
26592 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
26593 | # socket/setsockopt and other routines are undefined under SCO ODT | |
26594 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
26595 | # on later versions), says Simon Leinen: it contains gethostby* | |
26596 | # variants that don't use the name server (or something). -lsocket | |
26597 | # must be given before -lnsl if both are needed. We assume that | |
26598 | # if connect needs -lnsl, so does gethostbyname. | |
26599 | echo "$as_me:$LINENO: checking for connect" >&5 | |
26600 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
26601 | if test "${ac_cv_func_connect+set}" = set; then | |
26602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26603 | else | |
26604 | cat >conftest.$ac_ext <<_ACEOF | |
26605 | /* confdefs.h. */ | |
26606 | _ACEOF | |
26607 | cat confdefs.h >>conftest.$ac_ext | |
26608 | cat >>conftest.$ac_ext <<_ACEOF | |
26609 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26610 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
26611 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26612 | #define connect innocuous_connect | |
26613 | ||
a848cd7e SC |
26614 | /* System header to define __stub macros and hopefully few prototypes, |
26615 | which can conflict with char connect (); below. | |
26616 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26617 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26618 | |
a848cd7e SC |
26619 | #ifdef __STDC__ |
26620 | # include <limits.h> | |
26621 | #else | |
26622 | # include <assert.h> | |
26623 | #endif | |
ac1cb8d3 VS |
26624 | |
26625 | #undef connect | |
26626 | ||
a848cd7e SC |
26627 | /* Override any gcc2 internal prototype to avoid an error. */ |
26628 | #ifdef __cplusplus | |
26629 | extern "C" | |
26630 | { | |
26631 | #endif | |
26632 | /* We use char because int might match the return type of a gcc2 | |
26633 | builtin and then its argument prototype would still apply. */ | |
26634 | char connect (); | |
26635 | /* The GNU C library defines this for functions which it implements | |
26636 | to always fail with ENOSYS. Some functions are actually named | |
26637 | something starting with __ and the normal name is an alias. */ | |
26638 | #if defined (__stub_connect) || defined (__stub___connect) | |
26639 | choke me | |
26640 | #else | |
26641 | char (*f) () = connect; | |
26642 | #endif | |
26643 | #ifdef __cplusplus | |
26644 | } | |
26645 | #endif | |
26646 | ||
26647 | int | |
26648 | main () | |
26649 | { | |
26650 | return f != connect; | |
26651 | ; | |
26652 | return 0; | |
26653 | } | |
26654 | _ACEOF | |
26655 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26657 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26658 | ac_status=$? |
ac1cb8d3 VS |
26659 | grep -v '^ *+' conftest.er1 >conftest.err |
26660 | rm -f conftest.er1 | |
26661 | cat conftest.err >&5 | |
a848cd7e SC |
26662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26663 | (exit $ac_status); } && | |
9dd0f6c2 | 26664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26666 | (eval $ac_try) 2>&5 | |
26667 | ac_status=$? | |
26668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26669 | (exit $ac_status); }; } && | |
26670 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26672 | (eval $ac_try) 2>&5 | |
26673 | ac_status=$? | |
26674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26675 | (exit $ac_status); }; }; then | |
26676 | ac_cv_func_connect=yes | |
26677 | else | |
26678 | echo "$as_me: failed program was:" >&5 | |
26679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26680 | ||
26681 | ac_cv_func_connect=no | |
26682 | fi | |
ac1cb8d3 VS |
26683 | rm -f conftest.err conftest.$ac_objext \ |
26684 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26685 | fi |
26686 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
26687 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
26688 | ||
26689 | if test $ac_cv_func_connect = no; then | |
26690 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
26691 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
26692 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
26693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26694 | else | |
26695 | ac_check_lib_save_LIBS=$LIBS | |
26696 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
26697 | cat >conftest.$ac_ext <<_ACEOF | |
26698 | /* confdefs.h. */ | |
26699 | _ACEOF | |
26700 | cat confdefs.h >>conftest.$ac_ext | |
26701 | cat >>conftest.$ac_ext <<_ACEOF | |
26702 | /* end confdefs.h. */ | |
26703 | ||
26704 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26705 | #ifdef __cplusplus | |
26706 | extern "C" | |
26707 | #endif | |
26708 | /* We use char because int might match the return type of a gcc2 | |
26709 | builtin and then its argument prototype would still apply. */ | |
26710 | char connect (); | |
26711 | int | |
26712 | main () | |
26713 | { | |
26714 | connect (); | |
26715 | ; | |
26716 | return 0; | |
26717 | } | |
26718 | _ACEOF | |
26719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26721 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26722 | ac_status=$? |
ac1cb8d3 VS |
26723 | grep -v '^ *+' conftest.er1 >conftest.err |
26724 | rm -f conftest.er1 | |
26725 | cat conftest.err >&5 | |
a848cd7e SC |
26726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26727 | (exit $ac_status); } && | |
9dd0f6c2 | 26728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26730 | (eval $ac_try) 2>&5 | |
26731 | ac_status=$? | |
26732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26733 | (exit $ac_status); }; } && | |
26734 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26740 | ac_cv_lib_socket_connect=yes | |
26741 | else | |
26742 | echo "$as_me: failed program was:" >&5 | |
26743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26744 | ||
26745 | ac_cv_lib_socket_connect=no | |
26746 | fi | |
ac1cb8d3 VS |
26747 | rm -f conftest.err conftest.$ac_objext \ |
26748 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26749 | LIBS=$ac_check_lib_save_LIBS |
26750 | fi | |
26751 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
26752 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
26753 | if test $ac_cv_lib_socket_connect = yes; then | |
26754 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
26755 | fi | |
26756 | ||
26757 | fi | |
26758 | ||
26759 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
26760 | echo "$as_me:$LINENO: checking for remove" >&5 | |
26761 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
26762 | if test "${ac_cv_func_remove+set}" = set; then | |
26763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26764 | else | |
26765 | cat >conftest.$ac_ext <<_ACEOF | |
26766 | /* confdefs.h. */ | |
26767 | _ACEOF | |
26768 | cat confdefs.h >>conftest.$ac_ext | |
26769 | cat >>conftest.$ac_ext <<_ACEOF | |
26770 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26771 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
26772 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26773 | #define remove innocuous_remove | |
26774 | ||
a848cd7e SC |
26775 | /* System header to define __stub macros and hopefully few prototypes, |
26776 | which can conflict with char remove (); below. | |
26777 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26778 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26779 | |
a848cd7e SC |
26780 | #ifdef __STDC__ |
26781 | # include <limits.h> | |
26782 | #else | |
26783 | # include <assert.h> | |
26784 | #endif | |
ac1cb8d3 VS |
26785 | |
26786 | #undef remove | |
26787 | ||
a848cd7e SC |
26788 | /* Override any gcc2 internal prototype to avoid an error. */ |
26789 | #ifdef __cplusplus | |
26790 | extern "C" | |
26791 | { | |
26792 | #endif | |
26793 | /* We use char because int might match the return type of a gcc2 | |
26794 | builtin and then its argument prototype would still apply. */ | |
26795 | char remove (); | |
26796 | /* The GNU C library defines this for functions which it implements | |
26797 | to always fail with ENOSYS. Some functions are actually named | |
26798 | something starting with __ and the normal name is an alias. */ | |
26799 | #if defined (__stub_remove) || defined (__stub___remove) | |
26800 | choke me | |
26801 | #else | |
26802 | char (*f) () = remove; | |
26803 | #endif | |
26804 | #ifdef __cplusplus | |
26805 | } | |
26806 | #endif | |
26807 | ||
26808 | int | |
26809 | main () | |
26810 | { | |
26811 | return f != remove; | |
26812 | ; | |
26813 | return 0; | |
26814 | } | |
26815 | _ACEOF | |
26816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26818 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26819 | ac_status=$? |
ac1cb8d3 VS |
26820 | grep -v '^ *+' conftest.er1 >conftest.err |
26821 | rm -f conftest.er1 | |
26822 | cat conftest.err >&5 | |
a848cd7e SC |
26823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26824 | (exit $ac_status); } && | |
9dd0f6c2 | 26825 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26827 | (eval $ac_try) 2>&5 | |
26828 | ac_status=$? | |
26829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26830 | (exit $ac_status); }; } && | |
26831 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26833 | (eval $ac_try) 2>&5 | |
26834 | ac_status=$? | |
26835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26836 | (exit $ac_status); }; }; then | |
26837 | ac_cv_func_remove=yes | |
26838 | else | |
26839 | echo "$as_me: failed program was:" >&5 | |
26840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26841 | ||
26842 | ac_cv_func_remove=no | |
26843 | fi | |
ac1cb8d3 VS |
26844 | rm -f conftest.err conftest.$ac_objext \ |
26845 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26846 | fi |
26847 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
26848 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
26849 | ||
26850 | if test $ac_cv_func_remove = no; then | |
26851 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
26852 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
26853 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
26854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26855 | else | |
26856 | ac_check_lib_save_LIBS=$LIBS | |
26857 | LIBS="-lposix $LIBS" | |
26858 | cat >conftest.$ac_ext <<_ACEOF | |
26859 | /* confdefs.h. */ | |
26860 | _ACEOF | |
26861 | cat confdefs.h >>conftest.$ac_ext | |
26862 | cat >>conftest.$ac_ext <<_ACEOF | |
26863 | /* end confdefs.h. */ | |
26864 | ||
26865 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26866 | #ifdef __cplusplus | |
26867 | extern "C" | |
26868 | #endif | |
26869 | /* We use char because int might match the return type of a gcc2 | |
26870 | builtin and then its argument prototype would still apply. */ | |
26871 | char remove (); | |
26872 | int | |
26873 | main () | |
26874 | { | |
26875 | remove (); | |
26876 | ; | |
26877 | return 0; | |
26878 | } | |
26879 | _ACEOF | |
26880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26882 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26883 | ac_status=$? |
ac1cb8d3 VS |
26884 | grep -v '^ *+' conftest.er1 >conftest.err |
26885 | rm -f conftest.er1 | |
26886 | cat conftest.err >&5 | |
a848cd7e SC |
26887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26888 | (exit $ac_status); } && | |
9dd0f6c2 | 26889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26891 | (eval $ac_try) 2>&5 | |
26892 | ac_status=$? | |
26893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26894 | (exit $ac_status); }; } && | |
26895 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26897 | (eval $ac_try) 2>&5 | |
26898 | ac_status=$? | |
26899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26900 | (exit $ac_status); }; }; then | |
26901 | ac_cv_lib_posix_remove=yes | |
26902 | else | |
26903 | echo "$as_me: failed program was:" >&5 | |
26904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26905 | ||
26906 | ac_cv_lib_posix_remove=no | |
26907 | fi | |
ac1cb8d3 VS |
26908 | rm -f conftest.err conftest.$ac_objext \ |
26909 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26910 | LIBS=$ac_check_lib_save_LIBS |
26911 | fi | |
26912 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
26913 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
26914 | if test $ac_cv_lib_posix_remove = yes; then | |
26915 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
26916 | fi | |
26917 | ||
26918 | fi | |
26919 | ||
26920 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
26921 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
26922 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
26923 | if test "${ac_cv_func_shmat+set}" = set; then | |
26924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26925 | else | |
26926 | cat >conftest.$ac_ext <<_ACEOF | |
26927 | /* confdefs.h. */ | |
26928 | _ACEOF | |
26929 | cat confdefs.h >>conftest.$ac_ext | |
26930 | cat >>conftest.$ac_ext <<_ACEOF | |
26931 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26932 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
26933 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26934 | #define shmat innocuous_shmat | |
26935 | ||
a848cd7e SC |
26936 | /* System header to define __stub macros and hopefully few prototypes, |
26937 | which can conflict with char shmat (); below. | |
26938 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26939 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26940 | |
a848cd7e SC |
26941 | #ifdef __STDC__ |
26942 | # include <limits.h> | |
26943 | #else | |
26944 | # include <assert.h> | |
26945 | #endif | |
ac1cb8d3 VS |
26946 | |
26947 | #undef shmat | |
26948 | ||
a848cd7e SC |
26949 | /* Override any gcc2 internal prototype to avoid an error. */ |
26950 | #ifdef __cplusplus | |
26951 | extern "C" | |
26952 | { | |
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 shmat (); | |
26957 | /* The GNU C library defines this for functions which it implements | |
26958 | to always fail with ENOSYS. Some functions are actually named | |
26959 | something starting with __ and the normal name is an alias. */ | |
26960 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
26961 | choke me | |
26962 | #else | |
26963 | char (*f) () = shmat; | |
26964 | #endif | |
26965 | #ifdef __cplusplus | |
26966 | } | |
26967 | #endif | |
26968 | ||
26969 | int | |
26970 | main () | |
26971 | { | |
26972 | return f != shmat; | |
26973 | ; | |
26974 | return 0; | |
26975 | } | |
26976 | _ACEOF | |
26977 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26979 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26980 | ac_status=$? |
ac1cb8d3 VS |
26981 | grep -v '^ *+' conftest.er1 >conftest.err |
26982 | rm -f conftest.er1 | |
26983 | cat conftest.err >&5 | |
a848cd7e SC |
26984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26985 | (exit $ac_status); } && | |
9dd0f6c2 | 26986 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26988 | (eval $ac_try) 2>&5 | |
26989 | ac_status=$? | |
26990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26991 | (exit $ac_status); }; } && | |
26992 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26994 | (eval $ac_try) 2>&5 | |
26995 | ac_status=$? | |
26996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26997 | (exit $ac_status); }; }; then | |
26998 | ac_cv_func_shmat=yes | |
26999 | else | |
27000 | echo "$as_me: failed program was:" >&5 | |
27001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27002 | ||
27003 | ac_cv_func_shmat=no | |
27004 | fi | |
ac1cb8d3 VS |
27005 | rm -f conftest.err conftest.$ac_objext \ |
27006 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27007 | fi |
27008 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
27009 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
27010 | ||
27011 | if test $ac_cv_func_shmat = no; then | |
27012 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
27013 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
27014 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
27015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27016 | else | |
27017 | ac_check_lib_save_LIBS=$LIBS | |
27018 | LIBS="-lipc $LIBS" | |
27019 | cat >conftest.$ac_ext <<_ACEOF | |
27020 | /* confdefs.h. */ | |
27021 | _ACEOF | |
27022 | cat confdefs.h >>conftest.$ac_ext | |
27023 | cat >>conftest.$ac_ext <<_ACEOF | |
27024 | /* end confdefs.h. */ | |
27025 | ||
27026 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27027 | #ifdef __cplusplus | |
27028 | extern "C" | |
27029 | #endif | |
27030 | /* We use char because int might match the return type of a gcc2 | |
27031 | builtin and then its argument prototype would still apply. */ | |
27032 | char shmat (); | |
27033 | int | |
27034 | main () | |
27035 | { | |
27036 | shmat (); | |
27037 | ; | |
27038 | return 0; | |
27039 | } | |
27040 | _ACEOF | |
27041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27043 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27044 | ac_status=$? |
ac1cb8d3 VS |
27045 | grep -v '^ *+' conftest.er1 >conftest.err |
27046 | rm -f conftest.er1 | |
27047 | cat conftest.err >&5 | |
a848cd7e SC |
27048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27049 | (exit $ac_status); } && | |
9dd0f6c2 | 27050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27052 | (eval $ac_try) 2>&5 | |
27053 | ac_status=$? | |
27054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27055 | (exit $ac_status); }; } && | |
27056 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27058 | (eval $ac_try) 2>&5 | |
27059 | ac_status=$? | |
27060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27061 | (exit $ac_status); }; }; then | |
27062 | ac_cv_lib_ipc_shmat=yes | |
27063 | else | |
27064 | echo "$as_me: failed program was:" >&5 | |
27065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27066 | ||
27067 | ac_cv_lib_ipc_shmat=no | |
27068 | fi | |
ac1cb8d3 VS |
27069 | rm -f conftest.err conftest.$ac_objext \ |
27070 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27071 | LIBS=$ac_check_lib_save_LIBS |
27072 | fi | |
27073 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
27074 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
27075 | if test $ac_cv_lib_ipc_shmat = yes; then | |
27076 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
27077 | fi | |
27078 | ||
27079 | fi | |
27080 | fi | |
27081 | ||
27082 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
27083 | ac_save_LDFLAGS=$LDFLAGS | |
27084 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
27085 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
27086 | # check for ICE first), but we must link in the order -lSM -lICE or | |
27087 | # we get undefined symbols. So assume we have SM if we have ICE. | |
27088 | # These have to be linked with before -lX11, unlike the other | |
27089 | # libraries we check for below, so use a different variable. | |
27090 | # John Interrante, Karl Berry | |
27091 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
27092 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
27093 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
27094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27095 | else | |
27096 | ac_check_lib_save_LIBS=$LIBS | |
27097 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
27098 | cat >conftest.$ac_ext <<_ACEOF | |
27099 | /* confdefs.h. */ | |
27100 | _ACEOF | |
27101 | cat confdefs.h >>conftest.$ac_ext | |
27102 | cat >>conftest.$ac_ext <<_ACEOF | |
27103 | /* end confdefs.h. */ | |
27104 | ||
27105 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27106 | #ifdef __cplusplus | |
27107 | extern "C" | |
27108 | #endif | |
27109 | /* We use char because int might match the return type of a gcc2 | |
27110 | builtin and then its argument prototype would still apply. */ | |
27111 | char IceConnectionNumber (); | |
27112 | int | |
27113 | main () | |
27114 | { | |
27115 | IceConnectionNumber (); | |
27116 | ; | |
27117 | return 0; | |
27118 | } | |
27119 | _ACEOF | |
27120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27122 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27123 | ac_status=$? |
ac1cb8d3 VS |
27124 | grep -v '^ *+' conftest.er1 >conftest.err |
27125 | rm -f conftest.er1 | |
27126 | cat conftest.err >&5 | |
a848cd7e SC |
27127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27128 | (exit $ac_status); } && | |
9dd0f6c2 | 27129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27131 | (eval $ac_try) 2>&5 | |
27132 | ac_status=$? | |
27133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27134 | (exit $ac_status); }; } && | |
27135 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27137 | (eval $ac_try) 2>&5 | |
27138 | ac_status=$? | |
27139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27140 | (exit $ac_status); }; }; then | |
27141 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
27142 | else | |
27143 | echo "$as_me: failed program was:" >&5 | |
27144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27145 | ||
27146 | ac_cv_lib_ICE_IceConnectionNumber=no | |
27147 | fi | |
ac1cb8d3 VS |
27148 | rm -f conftest.err conftest.$ac_objext \ |
27149 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27150 | LIBS=$ac_check_lib_save_LIBS |
27151 | fi | |
27152 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
27153 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
27154 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
27155 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
27156 | fi | |
27157 | ||
27158 | LDFLAGS=$ac_save_LDFLAGS | |
27159 | ||
27160 | fi | |
27161 | ||
27162 | ||
27163 | if test "$no_x" = "yes"; then | |
27164 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
27165 | echo "$as_me: error: X11 not found" >&2;} | |
27166 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
27167 | fi | |
27168 | ||
74b84332 VS |
27169 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
27170 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
27171 | AFMINSTALL=afminstall |
27172 | COMPILED_X_PROGRAM=0 | |
27173 | ||
74b84332 VS |
27174 | fi |
27175 | ||
27176 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
27177 | if test "$wxUSE_NANOX" = "yes"; then |
27178 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
27179 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
27180 | if test "x$MICROWIN" = x ; then | |
27181 | echo "$as_me:$LINENO: result: not found" >&5 | |
27182 | echo "${ECHO_T}not found" >&6 | |
27183 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
27184 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
27185 | { (exit 1); exit 1; }; } | |
27186 | else | |
27187 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
27188 | echo "${ECHO_T}$MICROWIN" >&6 | |
27189 | cat >>confdefs.h <<\_ACEOF | |
27190 | #define wxUSE_NANOX 1 | |
27191 | _ACEOF | |
27192 | ||
27193 | fi | |
27194 | fi | |
27195 | ||
27196 | if test "$wxUSE_UNICODE" = "yes"; then | |
27197 | ||
27198 | succeeded=no | |
27199 | ||
27200 | if test -z "$PKG_CONFIG"; then | |
27201 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27202 | set dummy pkg-config; ac_word=$2 | |
27203 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27204 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27205 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27207 | else | |
27208 | case $PKG_CONFIG in | |
27209 | [\\/]* | ?:[\\/]*) | |
27210 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27211 | ;; | |
27212 | *) | |
27213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27214 | for as_dir in $PATH | |
27215 | do | |
27216 | IFS=$as_save_IFS | |
27217 | test -z "$as_dir" && as_dir=. | |
27218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27219 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27220 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27222 | break 2 | |
27223 | fi | |
27224 | done | |
27225 | done | |
27226 | ||
27227 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27228 | ;; | |
27229 | esac | |
27230 | fi | |
27231 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27232 | ||
27233 | if test -n "$PKG_CONFIG"; then | |
27234 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27235 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27236 | else | |
27237 | echo "$as_me:$LINENO: result: no" >&5 | |
27238 | echo "${ECHO_T}no" >&6 | |
27239 | fi | |
27240 | ||
27241 | fi | |
27242 | ||
27243 | if test "$PKG_CONFIG" = "no" ; then | |
27244 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27245 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27246 | echo "*** to the full path to pkg-config." | |
27247 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27248 | else | |
27249 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27250 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27251 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
27252 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
27253 | ||
27254 | if $PKG_CONFIG --exists "pangox" ; then | |
27255 | echo "$as_me:$LINENO: result: yes" >&5 | |
27256 | echo "${ECHO_T}yes" >&6 | |
27257 | succeeded=yes | |
27258 | ||
27259 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
27260 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
27261 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
27262 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
27263 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
27264 | ||
27265 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
27266 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
27267 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
27268 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
27269 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
27270 | else | |
27271 | PANGOX_CFLAGS="" | |
27272 | PANGOX_LIBS="" | |
27273 | ## If we have a custom action on failure, don't print errors, but | |
27274 | ## do set a variable so people can do so. | |
27275 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
27276 | ||
27277 | fi | |
27278 | ||
27279 | ||
27280 | ||
27281 | else | |
27282 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27283 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27284 | fi | |
27285 | fi | |
27286 | ||
27287 | if test $succeeded = yes; then | |
27288 | ||
27289 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
27290 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
27291 | ||
27292 | else | |
27293 | ||
27294 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
27295 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
27296 | { (exit 1); exit 1; }; } | |
27297 | ||
27298 | ||
27299 | fi | |
27300 | ||
27301 | ||
27302 | succeeded=no | |
27303 | ||
27304 | if test -z "$PKG_CONFIG"; then | |
27305 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27306 | set dummy pkg-config; ac_word=$2 | |
27307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27309 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27311 | else | |
27312 | case $PKG_CONFIG in | |
27313 | [\\/]* | ?:[\\/]*) | |
27314 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27315 | ;; | |
27316 | *) | |
27317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27318 | for as_dir in $PATH | |
27319 | do | |
27320 | IFS=$as_save_IFS | |
27321 | test -z "$as_dir" && as_dir=. | |
27322 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27323 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27324 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27326 | break 2 | |
27327 | fi | |
27328 | done | |
27329 | done | |
27330 | ||
27331 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27332 | ;; | |
27333 | esac | |
27334 | fi | |
27335 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27336 | ||
27337 | if test -n "$PKG_CONFIG"; then | |
27338 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27339 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27340 | else | |
27341 | echo "$as_me:$LINENO: result: no" >&5 | |
27342 | echo "${ECHO_T}no" >&6 | |
27343 | fi | |
27344 | ||
27345 | fi | |
27346 | ||
27347 | if test "$PKG_CONFIG" = "no" ; then | |
27348 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27349 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27350 | echo "*** to the full path to pkg-config." | |
27351 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27352 | else | |
27353 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27354 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27355 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
27356 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
27357 | ||
27358 | if $PKG_CONFIG --exists "pangoft2" ; then | |
27359 | echo "$as_me:$LINENO: result: yes" >&5 | |
27360 | echo "${ECHO_T}yes" >&6 | |
27361 | succeeded=yes | |
27362 | ||
27363 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
27364 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
27365 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
27366 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
27367 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
27368 | ||
27369 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
27370 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
27371 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
27372 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
27373 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
27374 | else | |
27375 | PANGOFT2_CFLAGS="" | |
27376 | PANGOFT2_LIBS="" | |
27377 | ## If we have a custom action on failure, don't print errors, but | |
27378 | ## do set a variable so people can do so. | |
27379 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
27380 | ||
27381 | fi | |
27382 | ||
27383 | ||
27384 | ||
27385 | else | |
27386 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27387 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27388 | fi | |
27389 | fi | |
27390 | ||
27391 | if test $succeeded = yes; then | |
27392 | ||
27393 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
27394 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
27395 | ||
27396 | else | |
27397 | ||
27398 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
27399 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
27400 | wxUSE_PRINTING_ARCHITECTURE="no" | |
27401 | ||
27402 | ||
27403 | fi | |
27404 | ||
27405 | ||
27406 | succeeded=no | |
27407 | ||
27408 | if test -z "$PKG_CONFIG"; then | |
27409 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27410 | set dummy pkg-config; ac_word=$2 | |
27411 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27413 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27415 | else | |
27416 | case $PKG_CONFIG in | |
27417 | [\\/]* | ?:[\\/]*) | |
27418 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27419 | ;; | |
27420 | *) | |
27421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27422 | for as_dir in $PATH | |
27423 | do | |
27424 | IFS=$as_save_IFS | |
27425 | test -z "$as_dir" && as_dir=. | |
27426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27427 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27428 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27429 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27430 | break 2 | |
27431 | fi | |
27432 | done | |
27433 | done | |
27434 | ||
27435 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27436 | ;; | |
27437 | esac | |
27438 | fi | |
27439 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27440 | ||
27441 | if test -n "$PKG_CONFIG"; then | |
27442 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27443 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27444 | else | |
27445 | echo "$as_me:$LINENO: result: no" >&5 | |
27446 | echo "${ECHO_T}no" >&6 | |
27447 | fi | |
27448 | ||
27449 | fi | |
27450 | ||
27451 | if test "$PKG_CONFIG" = "no" ; then | |
27452 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27453 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27454 | echo "*** to the full path to pkg-config." | |
27455 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27456 | else | |
27457 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27458 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27459 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
27460 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
27461 | ||
27462 | if $PKG_CONFIG --exists "pangoxft" ; then | |
27463 | echo "$as_me:$LINENO: result: yes" >&5 | |
27464 | echo "${ECHO_T}yes" >&6 | |
27465 | succeeded=yes | |
27466 | ||
27467 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
27468 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
27469 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
27470 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
27471 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
27472 | ||
27473 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
27474 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
27475 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
27476 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
27477 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
27478 | else | |
27479 | PANGOXFT_CFLAGS="" | |
27480 | PANGOXFT_LIBS="" | |
27481 | ## If we have a custom action on failure, don't print errors, but | |
27482 | ## do set a variable so people can do so. | |
27483 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
27484 | ||
27485 | fi | |
27486 | ||
27487 | ||
27488 | ||
27489 | else | |
27490 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27491 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27492 | fi | |
27493 | fi | |
27494 | ||
27495 | if test $succeeded = yes; then | |
27496 | ||
4ae1af05 MB |
27497 | cat >>confdefs.h <<\_ACEOF |
27498 | #define HAVE_PANGO_XFT 1 | |
27499 | _ACEOF | |
27500 | ||
a848cd7e SC |
27501 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
27502 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
27503 | ||
27504 | else | |
27505 | ||
27506 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
27507 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
27508 | ||
27509 | ||
27510 | fi | |
27511 | ||
304205f1 VS |
27512 | save_CFLAGS="$CFLAGS" |
27513 | save_LIBS="$LIBS" | |
27514 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
27515 | LIBS="$LIBS $PANGOX_LIBS" | |
27516 | ||
27517 | for ac_func in pango_font_family_is_monospace | |
27518 | do | |
27519 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27520 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27521 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27522 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27524 | else | |
27525 | cat >conftest.$ac_ext <<_ACEOF | |
27526 | /* confdefs.h. */ | |
27527 | _ACEOF | |
27528 | cat confdefs.h >>conftest.$ac_ext | |
27529 | cat >>conftest.$ac_ext <<_ACEOF | |
27530 | /* end confdefs.h. */ | |
27531 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
27532 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27533 | #define $ac_func innocuous_$ac_func | |
27534 | ||
27535 | /* System header to define __stub macros and hopefully few prototypes, | |
27536 | which can conflict with char $ac_func (); below. | |
27537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27538 | <limits.h> exists even on freestanding compilers. */ | |
27539 | ||
27540 | #ifdef __STDC__ | |
27541 | # include <limits.h> | |
27542 | #else | |
27543 | # include <assert.h> | |
27544 | #endif | |
27545 | ||
27546 | #undef $ac_func | |
27547 | ||
27548 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27549 | #ifdef __cplusplus | |
27550 | extern "C" | |
27551 | { | |
27552 | #endif | |
27553 | /* We use char because int might match the return type of a gcc2 | |
27554 | builtin and then its argument prototype would still apply. */ | |
27555 | char $ac_func (); | |
27556 | /* The GNU C library defines this for functions which it implements | |
27557 | to always fail with ENOSYS. Some functions are actually named | |
27558 | something starting with __ and the normal name is an alias. */ | |
27559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27560 | choke me | |
27561 | #else | |
27562 | char (*f) () = $ac_func; | |
27563 | #endif | |
27564 | #ifdef __cplusplus | |
27565 | } | |
27566 | #endif | |
27567 | ||
27568 | int | |
27569 | main () | |
27570 | { | |
27571 | return f != $ac_func; | |
27572 | ; | |
27573 | return 0; | |
27574 | } | |
27575 | _ACEOF | |
27576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27578 | (eval $ac_link) 2>conftest.er1 | |
27579 | ac_status=$? | |
27580 | grep -v '^ *+' conftest.er1 >conftest.err | |
27581 | rm -f conftest.er1 | |
27582 | cat conftest.err >&5 | |
27583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27584 | (exit $ac_status); } && | |
9dd0f6c2 | 27585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
27586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27587 | (eval $ac_try) 2>&5 | |
27588 | ac_status=$? | |
27589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27590 | (exit $ac_status); }; } && | |
27591 | { ac_try='test -s conftest$ac_exeext' | |
27592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27593 | (eval $ac_try) 2>&5 | |
27594 | ac_status=$? | |
27595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27596 | (exit $ac_status); }; }; then | |
27597 | eval "$as_ac_var=yes" | |
27598 | else | |
27599 | echo "$as_me: failed program was:" >&5 | |
27600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27601 | ||
27602 | eval "$as_ac_var=no" | |
27603 | fi | |
27604 | rm -f conftest.err conftest.$ac_objext \ | |
27605 | conftest$ac_exeext conftest.$ac_ext | |
27606 | fi | |
27607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27608 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27609 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27610 | cat >>confdefs.h <<_ACEOF | |
27611 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27612 | _ACEOF | |
27613 | ||
27614 | fi | |
27615 | done | |
27616 | ||
27617 | CFLAGS="$save_CFLAGS" | |
27618 | LIBS="$save_LIBS" | |
a848cd7e SC |
27619 | fi |
27620 | ||
27621 | wxUSE_UNIVERSAL="yes" | |
27622 | ||
27623 | if test "$wxUSE_NANOX" = "yes"; then | |
27624 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
27625 | 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" | |
27626 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
27627 | else | |
27628 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
27629 | fi | |
27630 | ||
a848cd7e SC |
27631 | TOOLKIT=X11 |
27632 | GUIDIST=X11_DIST | |
27633 | fi | |
27634 | ||
27635 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
27636 | if test "$wxUSE_UNICODE" = "yes"; then |
27637 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
27638 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
27639 | { (exit 1); exit 1; }; } | |
27640 | fi | |
27641 | ||
74b84332 VS |
27642 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
27643 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 27644 | |
74b84332 VS |
27645 | ac_find_includes= |
27646 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27647 | do | |
27648 | if test -f "$ac_dir/Xm/Xm.h"; then | |
27649 | ac_find_includes=$ac_dir | |
27650 | break | |
27651 | fi | |
27652 | done | |
a848cd7e | 27653 | |
74b84332 VS |
27654 | if test "$ac_find_includes" != "" ; then |
27655 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27656 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27657 | ||
27658 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27659 | ac_path_to_include="" | |
27660 | else | |
27661 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
27662 | result=$? | |
27663 | if test $result = 0; then | |
27664 | ac_path_to_include="" | |
27665 | else | |
27666 | ac_path_to_include=" -I$ac_find_includes" | |
27667 | fi | |
a848cd7e SC |
27668 | fi |
27669 | ||
74b84332 VS |
27670 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
27671 | else | |
27672 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27673 | /* confdefs.h. */ |
27674 | _ACEOF | |
27675 | cat confdefs.h >>conftest.$ac_ext | |
27676 | cat >>conftest.$ac_ext <<_ACEOF | |
27677 | /* end confdefs.h. */ | |
27678 | ||
74b84332 VS |
27679 | #include <Xm/Xm.h> |
27680 | ||
a848cd7e SC |
27681 | int |
27682 | main () | |
27683 | { | |
27684 | ||
74b84332 VS |
27685 | int version; |
27686 | version = xmUseVersion; | |
27687 | ||
a848cd7e SC |
27688 | ; |
27689 | return 0; | |
27690 | } | |
27691 | _ACEOF | |
74b84332 VS |
27692 | rm -f conftest.$ac_objext |
27693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27694 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27695 | ac_status=$? |
ac1cb8d3 VS |
27696 | grep -v '^ *+' conftest.er1 >conftest.err |
27697 | rm -f conftest.er1 | |
27698 | cat conftest.err >&5 | |
a848cd7e SC |
27699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27700 | (exit $ac_status); } && | |
9dd0f6c2 | 27701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27703 | (eval $ac_try) 2>&5 | |
27704 | ac_status=$? | |
27705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27706 | (exit $ac_status); }; } && | |
74b84332 | 27707 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27709 | (eval $ac_try) 2>&5 | |
27710 | ac_status=$? | |
27711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27712 | (exit $ac_status); }; }; then | |
74b84332 VS |
27713 | |
27714 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27715 | echo "${ECHO_T}found in default search path" >&6 | |
27716 | COMPILED_X_PROGRAM=1 | |
27717 | ||
a848cd7e SC |
27718 | else |
27719 | echo "$as_me: failed program was:" >&5 | |
27720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27721 | ||
a848cd7e | 27722 | |
74b84332 VS |
27723 | echo "$as_me:$LINENO: result: no" >&5 |
27724 | echo "${ECHO_T}no" >&6 | |
27725 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
27726 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
27727 | { (exit 1); exit 1; }; } | |
a848cd7e | 27728 | |
a848cd7e | 27729 | |
a848cd7e | 27730 | fi |
74b84332 VS |
27731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27732 | fi | |
27733 | ||
27734 | if test "$COMPILED_X_PROGRAM" = 0; then | |
27735 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
27736 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
27737 | ||
27738 | ac_find_libraries= | |
27739 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27740 | do | |
27741 | for ac_extension in a so sl dylib; do | |
27742 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
27743 | ac_find_libraries=$ac_dir | |
27744 | break 2 | |
a848cd7e | 27745 | fi |
74b84332 VS |
27746 | done |
27747 | done | |
a848cd7e | 27748 | |
74b84332 VS |
27749 | if test "$ac_find_libraries" != "" ; then |
27750 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
27751 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 27752 | |
74b84332 VS |
27753 | |
27754 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
27755 | result=$? | |
27756 | if test $result = 0; then | |
27757 | ac_path_to_link="" | |
a848cd7e | 27758 | else |
74b84332 VS |
27759 | ac_path_to_link=" -L$ac_find_libraries" |
27760 | fi | |
27761 | ||
27762 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
27763 | else | |
27764 | save_CFLAGS=$CFLAGS | |
27765 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27766 | ||
27767 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27768 | /* confdefs.h. */ |
27769 | _ACEOF | |
27770 | cat confdefs.h >>conftest.$ac_ext | |
27771 | cat >>conftest.$ac_ext <<_ACEOF | |
27772 | /* end confdefs.h. */ | |
27773 | ||
74b84332 VS |
27774 | #include <Xm/Xm.h> |
27775 | ||
a848cd7e SC |
27776 | int |
27777 | main () | |
27778 | { | |
74b84332 VS |
27779 | |
27780 | int version; | |
27781 | version = xmUseVersion; | |
27782 | ||
a848cd7e SC |
27783 | ; |
27784 | return 0; | |
27785 | } | |
27786 | _ACEOF | |
74b84332 VS |
27787 | rm -f conftest.$ac_objext |
27788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27789 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27790 | ac_status=$? |
ac1cb8d3 VS |
27791 | grep -v '^ *+' conftest.er1 >conftest.err |
27792 | rm -f conftest.er1 | |
27793 | cat conftest.err >&5 | |
a848cd7e SC |
27794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27795 | (exit $ac_status); } && | |
9dd0f6c2 | 27796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27798 | (eval $ac_try) 2>&5 | |
27799 | ac_status=$? | |
27800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27801 | (exit $ac_status); }; } && | |
74b84332 | 27802 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27804 | (eval $ac_try) 2>&5 | |
27805 | ac_status=$? | |
27806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27807 | (exit $ac_status); }; }; then | |
74b84332 VS |
27808 | |
27809 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27810 | echo "${ECHO_T}found in default search path" >&6 | |
27811 | COMPILED_X_PROGRAM=1 | |
27812 | ||
a848cd7e SC |
27813 | else |
27814 | echo "$as_me: failed program was:" >&5 | |
27815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27816 | ||
74b84332 VS |
27817 | |
27818 | echo "$as_me:$LINENO: result: no" >&5 | |
27819 | echo "${ECHO_T}no" >&6 | |
27820 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
27821 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
27822 | { (exit 1); exit 1; }; } | |
27823 | ||
27824 | ||
27825 | fi | |
27826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27827 | ||
27828 | CFLAGS=$save_CFLAGS | |
27829 | fi | |
27830 | fi | |
27831 | ||
27832 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
27833 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
27834 | libp_link="" | |
27835 | libsm_ice_link="" | |
27836 | libs_found=0 | |
27837 | for libp in "" " -lXp"; do | |
27838 | if test "$libs_found" = "0"; then | |
27839 | for libsm_ice in "" " -lSM -lICE"; do | |
27840 | if test "$libs_found" = "0"; then | |
27841 | save_LIBS="$LIBS" | |
27842 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
27843 | save_CFLAGS=$CFLAGS | |
27844 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27845 | ||
27846 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27847 | /* confdefs.h. */ |
27848 | _ACEOF | |
27849 | cat confdefs.h >>conftest.$ac_ext | |
27850 | cat >>conftest.$ac_ext <<_ACEOF | |
27851 | /* end confdefs.h. */ | |
27852 | ||
74b84332 VS |
27853 | #include <Xm/Xm.h> |
27854 | #include <Xm/List.h> | |
27855 | ||
a848cd7e SC |
27856 | int |
27857 | main () | |
27858 | { | |
74b84332 VS |
27859 | |
27860 | XmString string = NULL; | |
27861 | Widget w = NULL; | |
27862 | int position = 0; | |
27863 | XmListAddItem(w, string, position); | |
27864 | ||
a848cd7e SC |
27865 | ; |
27866 | return 0; | |
27867 | } | |
27868 | _ACEOF | |
27869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27871 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27872 | ac_status=$? |
ac1cb8d3 VS |
27873 | grep -v '^ *+' conftest.er1 >conftest.err |
27874 | rm -f conftest.er1 | |
27875 | cat conftest.err >&5 | |
a848cd7e SC |
27876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27877 | (exit $ac_status); } && | |
9dd0f6c2 | 27878 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27880 | (eval $ac_try) 2>&5 | |
27881 | ac_status=$? | |
27882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27883 | (exit $ac_status); }; } && | |
27884 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27886 | (eval $ac_try) 2>&5 | |
27887 | ac_status=$? | |
27888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27889 | (exit $ac_status); }; }; then | |
27890 | ||
27891 | libp_link="$libp" | |
27892 | libsm_ice_link="$libsm_ice" | |
27893 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
27894 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
27895 | libs_found=1 | |
27896 | ||
27897 | else | |
27898 | echo "$as_me: failed program was:" >&5 | |
27899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27900 | ||
27901 | ||
27902 | ||
27903 | fi | |
ac1cb8d3 VS |
27904 | rm -f conftest.err conftest.$ac_objext \ |
27905 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27906 | |
27907 | LIBS="$save_LIBS" | |
27908 | CFLAGS=$save_CFLAGS | |
27909 | fi | |
27910 | done | |
27911 | fi | |
27912 | done | |
27913 | ||
27914 | if test "$libs_found" = "0"; then | |
27915 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
27916 | echo "${ECHO_T}can't find the right libraries" >&6 | |
27917 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
27918 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
27919 | { (exit 1); exit 1; }; } | |
27920 | fi | |
27921 | ||
27922 | save_CFLAGS=$CFLAGS | |
27923 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27924 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
27925 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
27926 | cat >conftest.$ac_ext <<_ACEOF | |
27927 | /* confdefs.h. */ | |
27928 | _ACEOF | |
27929 | cat confdefs.h >>conftest.$ac_ext | |
27930 | cat >>conftest.$ac_ext <<_ACEOF | |
27931 | /* end confdefs.h. */ | |
27932 | ||
27933 | #include <Xm/Xm.h> | |
27934 | ||
27935 | int | |
27936 | main () | |
27937 | { | |
27938 | ||
27939 | #if XmVersion < 2000 | |
27940 | #error "Not Motif 2" | |
27941 | #endif | |
27942 | ||
27943 | ; | |
27944 | return 0; | |
27945 | } | |
27946 | _ACEOF | |
27947 | rm -f conftest.$ac_objext | |
27948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27949 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27950 | ac_status=$? |
ac1cb8d3 VS |
27951 | grep -v '^ *+' conftest.er1 >conftest.err |
27952 | rm -f conftest.er1 | |
27953 | cat conftest.err >&5 | |
a848cd7e SC |
27954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27955 | (exit $ac_status); } && | |
9dd0f6c2 | 27956 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27958 | (eval $ac_try) 2>&5 | |
27959 | ac_status=$? | |
27960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27961 | (exit $ac_status); }; } && | |
27962 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27964 | (eval $ac_try) 2>&5 | |
27965 | ac_status=$? | |
27966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27967 | (exit $ac_status); }; }; then | |
27968 | ||
27969 | cat >>confdefs.h <<\_ACEOF | |
27970 | #define __WXMOTIF20__ 1 | |
27971 | _ACEOF | |
27972 | ||
27973 | echo "$as_me:$LINENO: result: found" >&5 | |
27974 | echo "${ECHO_T}found" >&6 | |
27975 | ||
27976 | else | |
27977 | echo "$as_me: failed program was:" >&5 | |
27978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27979 | ||
27980 | ||
27981 | cat >>confdefs.h <<\_ACEOF | |
27982 | #define __WXMOTIF20__ 0 | |
27983 | _ACEOF | |
27984 | ||
27985 | echo "$as_me:$LINENO: result: not found" >&5 | |
27986 | echo "${ECHO_T}not found" >&6 | |
27987 | ||
27988 | fi | |
ac1cb8d3 | 27989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27990 | CFLAGS=$save_CFLAGS |
27991 | ||
27992 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
27993 | TOOLKIT=MOTIF |
27994 | GUIDIST=MOTIF_DIST | |
27995 | fi | |
27996 | ||
74b84332 | 27997 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
27998 | if test "$wxUSE_LIBXPM" = "sys"; then |
27999 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
28000 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
28001 | ||
28002 | ac_find_libraries= | |
28003 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28004 | do | |
28005 | for ac_extension in a so sl dylib; do | |
28006 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
28007 | ac_find_libraries=$ac_dir | |
28008 | break 2 | |
28009 | fi | |
28010 | done | |
28011 | done | |
28012 | ||
28013 | if test "$ac_find_libraries" != "" ; then | |
28014 | ||
28015 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
28016 | result=$? | |
28017 | if test $result = 0; then | |
28018 | ac_path_to_link="" | |
28019 | else | |
28020 | ac_path_to_link=" -L$ac_find_libraries" | |
28021 | fi | |
28022 | ||
28023 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
28024 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
28025 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
28026 | ||
28027 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
28028 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
28029 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
28030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28031 | else | |
28032 | ||
28033 | save_CFLAGS=$CFLAGS | |
28034 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28035 | ||
28036 | cat >conftest.$ac_ext <<_ACEOF | |
28037 | /* confdefs.h. */ | |
28038 | _ACEOF | |
28039 | cat confdefs.h >>conftest.$ac_ext | |
28040 | cat >>conftest.$ac_ext <<_ACEOF | |
28041 | /* end confdefs.h. */ | |
28042 | ||
28043 | #include <X11/xpm.h> | |
28044 | ||
28045 | int | |
28046 | main () | |
28047 | { | |
28048 | ||
28049 | int version; | |
28050 | version = XpmLibraryVersion(); | |
28051 | ||
28052 | ; | |
28053 | return 0; | |
28054 | } | |
28055 | _ACEOF | |
28056 | rm -f conftest.$ac_objext | |
28057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28058 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28059 | ac_status=$? |
ac1cb8d3 VS |
28060 | grep -v '^ *+' conftest.er1 >conftest.err |
28061 | rm -f conftest.er1 | |
28062 | cat conftest.err >&5 | |
a848cd7e SC |
28063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28064 | (exit $ac_status); } && | |
9dd0f6c2 | 28065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28067 | (eval $ac_try) 2>&5 | |
28068 | ac_status=$? | |
28069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28070 | (exit $ac_status); }; } && | |
28071 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28073 | (eval $ac_try) 2>&5 | |
28074 | ac_status=$? | |
28075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28076 | (exit $ac_status); }; }; then | |
28077 | wx_cv_x11_xpm_h=yes | |
28078 | else | |
28079 | echo "$as_me: failed program was:" >&5 | |
28080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28081 | ||
28082 | wx_cv_x11_xpm_h=no | |
28083 | ||
28084 | fi | |
ac1cb8d3 | 28085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28086 | |
28087 | CFLAGS=$save_CFLAGS | |
28088 | ||
28089 | ||
28090 | fi | |
28091 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
28092 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
28093 | ||
28094 | if test $wx_cv_x11_xpm_h = "yes"; then | |
28095 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
28096 | cat >>confdefs.h <<\_ACEOF | |
28097 | #define wxHAVE_LIB_XPM 1 | |
28098 | _ACEOF | |
28099 | ||
28100 | else | |
28101 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
28102 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
28103 | fi | |
28104 | fi | |
28105 | ||
28106 | fi | |
28107 | ||
28108 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
28109 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
28110 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
28111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28112 | else | |
28113 | ac_check_lib_save_LIBS=$LIBS | |
28114 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
28115 | cat >conftest.$ac_ext <<_ACEOF | |
28116 | /* confdefs.h. */ | |
28117 | _ACEOF | |
28118 | cat confdefs.h >>conftest.$ac_ext | |
28119 | cat >>conftest.$ac_ext <<_ACEOF | |
28120 | /* end confdefs.h. */ | |
28121 | ||
28122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28123 | #ifdef __cplusplus | |
28124 | extern "C" | |
28125 | #endif | |
28126 | /* We use char because int might match the return type of a gcc2 | |
28127 | builtin and then its argument prototype would still apply. */ | |
28128 | char XShapeQueryExtension (); | |
28129 | int | |
28130 | main () | |
28131 | { | |
28132 | XShapeQueryExtension (); | |
28133 | ; | |
28134 | return 0; | |
28135 | } | |
28136 | _ACEOF | |
28137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28139 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28140 | ac_status=$? |
ac1cb8d3 VS |
28141 | grep -v '^ *+' conftest.er1 >conftest.err |
28142 | rm -f conftest.er1 | |
28143 | cat conftest.err >&5 | |
a848cd7e SC |
28144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28145 | (exit $ac_status); } && | |
9dd0f6c2 | 28146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28148 | (eval $ac_try) 2>&5 | |
28149 | ac_status=$? | |
28150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28151 | (exit $ac_status); }; } && | |
28152 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28154 | (eval $ac_try) 2>&5 | |
28155 | ac_status=$? | |
28156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28157 | (exit $ac_status); }; }; then | |
28158 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
28159 | else | |
28160 | echo "$as_me: failed program was:" >&5 | |
28161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28162 | ||
28163 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
28164 | fi | |
ac1cb8d3 VS |
28165 | rm -f conftest.err conftest.$ac_objext \ |
28166 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28167 | LIBS=$ac_check_lib_save_LIBS |
28168 | fi | |
28169 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
28170 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
28171 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
28172 | ||
28173 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
28174 | wxHAVE_XEXT_LIB=1 | |
28175 | ||
28176 | fi | |
28177 | ||
28178 | ||
28179 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
28180 | save_CFLAGS="$CFLAGS" | |
28181 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28182 | ||
28183 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
28184 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
28185 | cat >conftest.$ac_ext <<_ACEOF | |
28186 | /* confdefs.h. */ | |
28187 | _ACEOF | |
28188 | cat confdefs.h >>conftest.$ac_ext | |
28189 | cat >>conftest.$ac_ext <<_ACEOF | |
28190 | /* end confdefs.h. */ | |
28191 | ||
28192 | #include <X11/Xlib.h> | |
28193 | #include <X11/extensions/shape.h> | |
28194 | ||
28195 | int | |
28196 | main () | |
28197 | { | |
28198 | ||
28199 | int dummy1, dummy2; | |
28200 | XShapeQueryExtension((Display*)NULL, | |
28201 | (int*)NULL, (int*)NULL); | |
28202 | ||
28203 | ; | |
28204 | return 0; | |
28205 | } | |
28206 | _ACEOF | |
28207 | rm -f conftest.$ac_objext | |
28208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28209 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28210 | ac_status=$? |
ac1cb8d3 VS |
28211 | grep -v '^ *+' conftest.er1 >conftest.err |
28212 | rm -f conftest.er1 | |
28213 | cat conftest.err >&5 | |
a848cd7e SC |
28214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28215 | (exit $ac_status); } && | |
9dd0f6c2 | 28216 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28218 | (eval $ac_try) 2>&5 | |
28219 | ac_status=$? | |
28220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28221 | (exit $ac_status); }; } && | |
28222 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28224 | (eval $ac_try) 2>&5 | |
28225 | ac_status=$? | |
28226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28227 | (exit $ac_status); }; }; then | |
28228 | ||
28229 | cat >>confdefs.h <<\_ACEOF | |
28230 | #define HAVE_XSHAPE 1 | |
28231 | _ACEOF | |
28232 | ||
28233 | echo "$as_me:$LINENO: result: found" >&5 | |
28234 | echo "${ECHO_T}found" >&6 | |
28235 | ||
28236 | else | |
28237 | echo "$as_me: failed program was:" >&5 | |
28238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28239 | ||
28240 | ||
28241 | echo "$as_me:$LINENO: result: not found" >&5 | |
28242 | echo "${ECHO_T}not found" >&6 | |
28243 | ||
28244 | fi | |
ac1cb8d3 | 28245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28246 | CFLAGS="$save_CFLAGS" |
28247 | ||
28248 | fi | |
28249 | fi | |
28250 | ||
28251 | if test "$wxUSE_MAC" = 1; then | |
28252 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
28253 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
28254 | if test "$GCC" = yes; then | |
28255 | echo "$as_me:$LINENO: result: gcc" >&5 | |
28256 | echo "${ECHO_T}gcc" >&6 | |
28257 | CPPFLAGS_PASCAL="-fpascal-strings" | |
28258 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
28259 | echo "$as_me:$LINENO: result: xlc" >&5 | |
28260 | echo "${ECHO_T}xlc" >&6 | |
28261 | CPPFLAGS_PASCAL="-qmacpstr" | |
28262 | else | |
28263 | echo "$as_me:$LINENO: result: none" >&5 | |
28264 | echo "${ECHO_T}none" >&6 | |
28265 | fi | |
28266 | ||
1e9e8aba DE |
28267 | if test "x$wxUSE_UNIX" = "xyes"; then |
28268 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
28269 | else | |
28270 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
28271 | fi | |
a848cd7e | 28272 | |
a848cd7e SC |
28273 | TOOLKIT=MAC |
28274 | GUIDIST=MACX_DIST | |
dd21ced8 | 28275 | WXBASEPORT="_carbon" |
a848cd7e SC |
28276 | fi |
28277 | ||
28278 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
28279 | TOOLKIT=COCOA |
28280 | GUIDIST=COCOA_DIST | |
28281 | fi | |
28282 | ||
28283 | if test "$wxUSE_PM" = 1; then | |
28284 | TOOLKIT=PM | |
de59c161 RD |
28285 | GUIDIST=PM_DIST |
28286 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
28287 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
28288 | if test "${wx_cv_spbcdata+set}" = set; then | |
28289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28290 | else | |
28291 | ||
28292 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
28293 | /* confdefs.h. */ |
28294 | _ACEOF | |
28295 | cat confdefs.h >>conftest.$ac_ext | |
28296 | cat >>conftest.$ac_ext <<_ACEOF | |
28297 | /* end confdefs.h. */ | |
28298 | ||
28299 | #define INCL_PM | |
28300 | #include <os2.h> | |
28301 | ||
28302 | int | |
28303 | main () | |
28304 | { | |
28305 | ||
28306 | SPBCDATA test; | |
28307 | ||
28308 | ; | |
28309 | return 0; | |
28310 | } | |
28311 | _ACEOF | |
28312 | rm -f conftest.$ac_objext | |
28313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28314 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 28315 | ac_status=$? |
ac1cb8d3 VS |
28316 | grep -v '^ *+' conftest.er1 >conftest.err |
28317 | rm -f conftest.er1 | |
28318 | cat conftest.err >&5 | |
de59c161 RD |
28319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28320 | (exit $ac_status); } && | |
9dd0f6c2 | 28321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28323 | (eval $ac_try) 2>&5 | |
28324 | ac_status=$? | |
28325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28326 | (exit $ac_status); }; } && | |
28327 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
28328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28329 | (eval $ac_try) 2>&5 | |
28330 | ac_status=$? | |
28331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28332 | (exit $ac_status); }; }; then | |
28333 | wx_cv_spbcdata=yes | |
28334 | else | |
28335 | echo "$as_me: failed program was:" >&5 | |
28336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28337 | ||
28338 | wx_cv_spbcdata=no | |
28339 | ||
28340 | fi | |
ac1cb8d3 | 28341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
28342 | |
28343 | ||
28344 | fi | |
28345 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
28346 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
28347 | ||
28348 | if test $wx_cv_spbcdata = "yes"; then | |
28349 | cat >>confdefs.h <<\_ACEOF | |
28350 | #define HAVE_SPBCDATA 1 | |
28351 | _ACEOF | |
28352 | ||
28353 | fi | |
a848cd7e SC |
28354 | fi |
28355 | ||
28356 | if test "$TOOLKIT" = "PM" ; then | |
28357 | TOOLKIT_DIR="os2" | |
28358 | else | |
28359 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
28360 | fi | |
28361 | ||
a848cd7e | 28362 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
28363 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
28364 | WIDGET_SET=univ | |
a848cd7e SC |
28365 | fi |
28366 | ||
28367 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
28368 | DISTDIR="wx\$(TOOLKIT)" | |
28369 | else | |
28370 | USE_GUI=0 | |
28371 | ||
28372 | TOOLKIT_DIR="base" | |
28373 | ||
28374 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 28375 | TOOLKIT="MSW" |
a848cd7e SC |
28376 | fi |
28377 | ||
a848cd7e SC |
28378 | GUIDIST="BASE_DIST" |
28379 | DISTDIR="wxBase" | |
28380 | fi | |
28381 | ||
28382 | ||
28383 | ||
28384 | ||
28385 | IODBC_C_SRC="" | |
28386 | ||
28387 | ||
28388 | if test "$TOOLKIT" != "MSW" ; then | |
28389 | ||
28390 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
28391 | ||
28392 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28393 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
28394 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
28395 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28397 | fi | |
28398 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
28399 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
28400 | else | |
28401 | # Is the header compilable? | |
28402 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
28403 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
28404 | cat >conftest.$ac_ext <<_ACEOF | |
28405 | /* confdefs.h. */ | |
28406 | _ACEOF | |
28407 | cat confdefs.h >>conftest.$ac_ext | |
28408 | cat >>conftest.$ac_ext <<_ACEOF | |
28409 | /* end confdefs.h. */ | |
28410 | $ac_includes_default | |
28411 | #include <sql.h> | |
28412 | _ACEOF | |
28413 | rm -f conftest.$ac_objext | |
28414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28415 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28416 | ac_status=$? |
ac1cb8d3 VS |
28417 | grep -v '^ *+' conftest.er1 >conftest.err |
28418 | rm -f conftest.er1 | |
28419 | cat conftest.err >&5 | |
a848cd7e SC |
28420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28421 | (exit $ac_status); } && | |
9dd0f6c2 | 28422 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28424 | (eval $ac_try) 2>&5 | |
28425 | ac_status=$? | |
28426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28427 | (exit $ac_status); }; } && | |
28428 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28430 | (eval $ac_try) 2>&5 | |
28431 | ac_status=$? | |
28432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28433 | (exit $ac_status); }; }; then | |
28434 | ac_header_compiler=yes | |
28435 | else | |
28436 | echo "$as_me: failed program was:" >&5 | |
28437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28438 | ||
28439 | ac_header_compiler=no | |
28440 | fi | |
ac1cb8d3 | 28441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28442 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
28443 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28444 | ||
28445 | # Is the header present? | |
28446 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
28447 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
28448 | cat >conftest.$ac_ext <<_ACEOF | |
28449 | /* confdefs.h. */ | |
28450 | _ACEOF | |
28451 | cat confdefs.h >>conftest.$ac_ext | |
28452 | cat >>conftest.$ac_ext <<_ACEOF | |
28453 | /* end confdefs.h. */ | |
28454 | #include <sql.h> | |
28455 | _ACEOF | |
28456 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28457 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28458 | ac_status=$? | |
28459 | grep -v '^ *+' conftest.er1 >conftest.err | |
28460 | rm -f conftest.er1 | |
28461 | cat conftest.err >&5 | |
28462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28463 | (exit $ac_status); } >/dev/null; then | |
28464 | if test -s conftest.err; then | |
28465 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 28466 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
28467 | else |
28468 | ac_cpp_err= | |
28469 | fi | |
28470 | else | |
28471 | ac_cpp_err=yes | |
28472 | fi | |
28473 | if test -z "$ac_cpp_err"; then | |
28474 | ac_header_preproc=yes | |
28475 | else | |
28476 | echo "$as_me: failed program was:" >&5 | |
28477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28478 | ||
28479 | ac_header_preproc=no | |
28480 | fi | |
28481 | rm -f conftest.err conftest.$ac_ext | |
28482 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28483 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28484 | ||
28485 | # So? What about this header? | |
ac1cb8d3 VS |
28486 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
28487 | yes:no: ) | |
a848cd7e SC |
28488 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
28489 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
28490 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
28491 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
28492 | ac_header_preproc=yes | |
a848cd7e | 28493 | ;; |
ac1cb8d3 | 28494 | no:yes:* ) |
a848cd7e SC |
28495 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
28496 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
28497 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
28498 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
28499 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
28500 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
28501 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
28502 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
28503 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
28504 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
28505 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
28506 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
28507 | ( |
28508 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28509 | ## ----------------------------------------- ## |
28510 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28511 | ## ----------------------------------------- ## | |
a848cd7e SC |
28512 | _ASBOX |
28513 | ) | | |
28514 | sed "s/^/$as_me: WARNING: /" >&2 | |
28515 | ;; | |
28516 | esac | |
28517 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
28518 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
28519 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28521 | else | |
28522 | ac_cv_header_sql_h=$ac_header_preproc | |
28523 | fi | |
28524 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
28525 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
28526 | ||
28527 | fi | |
28528 | if test $ac_cv_header_sql_h = yes; then | |
28529 | found_sql_h=1 | |
28530 | fi | |
28531 | ||
28532 | ||
28533 | if test "x$found_sql_h" = "x1" ; then | |
28534 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
28535 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
28536 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
28537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28538 | else | |
28539 | ac_check_lib_save_LIBS=$LIBS | |
28540 | LIBS="-liodbc $LIBS" | |
28541 | cat >conftest.$ac_ext <<_ACEOF | |
28542 | /* confdefs.h. */ | |
28543 | _ACEOF | |
28544 | cat confdefs.h >>conftest.$ac_ext | |
28545 | cat >>conftest.$ac_ext <<_ACEOF | |
28546 | /* end confdefs.h. */ | |
28547 | ||
28548 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28549 | #ifdef __cplusplus | |
28550 | extern "C" | |
28551 | #endif | |
28552 | /* We use char because int might match the return type of a gcc2 | |
28553 | builtin and then its argument prototype would still apply. */ | |
28554 | char SQLAllocEnv (); | |
28555 | int | |
28556 | main () | |
28557 | { | |
28558 | SQLAllocEnv (); | |
28559 | ; | |
28560 | return 0; | |
28561 | } | |
28562 | _ACEOF | |
28563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28565 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28566 | ac_status=$? |
ac1cb8d3 VS |
28567 | grep -v '^ *+' conftest.er1 >conftest.err |
28568 | rm -f conftest.er1 | |
28569 | cat conftest.err >&5 | |
a848cd7e SC |
28570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28571 | (exit $ac_status); } && | |
9dd0f6c2 | 28572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28574 | (eval $ac_try) 2>&5 | |
28575 | ac_status=$? | |
28576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28577 | (exit $ac_status); }; } && | |
28578 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
28584 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
28585 | else | |
28586 | echo "$as_me: failed program was:" >&5 | |
28587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28588 | ||
28589 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
28590 | fi | |
ac1cb8d3 VS |
28591 | rm -f conftest.err conftest.$ac_objext \ |
28592 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28593 | LIBS=$ac_check_lib_save_LIBS |
28594 | fi | |
28595 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
28596 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
28597 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
28598 | ODBC_LINK=" -liodbc" | |
28599 | else | |
28600 | ||
28601 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
28602 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
28603 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
28604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28605 | else | |
28606 | ac_check_lib_save_LIBS=$LIBS | |
28607 | LIBS="-lunixodbc $LIBS" | |
28608 | cat >conftest.$ac_ext <<_ACEOF | |
28609 | /* confdefs.h. */ | |
28610 | _ACEOF | |
28611 | cat confdefs.h >>conftest.$ac_ext | |
28612 | cat >>conftest.$ac_ext <<_ACEOF | |
28613 | /* end confdefs.h. */ | |
28614 | ||
28615 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28616 | #ifdef __cplusplus | |
28617 | extern "C" | |
28618 | #endif | |
28619 | /* We use char because int might match the return type of a gcc2 | |
28620 | builtin and then its argument prototype would still apply. */ | |
28621 | char SQLAllocEnv (); | |
28622 | int | |
28623 | main () | |
28624 | { | |
28625 | SQLAllocEnv (); | |
28626 | ; | |
28627 | return 0; | |
28628 | } | |
28629 | _ACEOF | |
28630 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28632 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28633 | ac_status=$? |
ac1cb8d3 VS |
28634 | grep -v '^ *+' conftest.er1 >conftest.err |
28635 | rm -f conftest.er1 | |
28636 | cat conftest.err >&5 | |
a848cd7e SC |
28637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28638 | (exit $ac_status); } && | |
9dd0f6c2 | 28639 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28641 | (eval $ac_try) 2>&5 | |
28642 | ac_status=$? | |
28643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28644 | (exit $ac_status); }; } && | |
28645 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28647 | (eval $ac_try) 2>&5 | |
28648 | ac_status=$? | |
28649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28650 | (exit $ac_status); }; }; then | |
28651 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
28652 | else | |
28653 | echo "$as_me: failed program was:" >&5 | |
28654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28655 | ||
28656 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
28657 | fi | |
ac1cb8d3 VS |
28658 | rm -f conftest.err conftest.$ac_objext \ |
28659 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28660 | LIBS=$ac_check_lib_save_LIBS |
28661 | fi | |
28662 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
28663 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
28664 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
28665 | ODBC_LINK=" -lunixodbc" | |
28666 | else | |
28667 | ||
28668 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
28669 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
28670 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
28671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28672 | else | |
28673 | ac_check_lib_save_LIBS=$LIBS | |
28674 | LIBS="-lodbc $LIBS" | |
28675 | cat >conftest.$ac_ext <<_ACEOF | |
28676 | /* confdefs.h. */ | |
28677 | _ACEOF | |
28678 | cat confdefs.h >>conftest.$ac_ext | |
28679 | cat >>conftest.$ac_ext <<_ACEOF | |
28680 | /* end confdefs.h. */ | |
28681 | ||
28682 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28683 | #ifdef __cplusplus | |
28684 | extern "C" | |
28685 | #endif | |
28686 | /* We use char because int might match the return type of a gcc2 | |
28687 | builtin and then its argument prototype would still apply. */ | |
28688 | char SQLAllocEnv (); | |
28689 | int | |
28690 | main () | |
28691 | { | |
28692 | SQLAllocEnv (); | |
28693 | ; | |
28694 | return 0; | |
28695 | } | |
28696 | _ACEOF | |
28697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28699 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28700 | ac_status=$? |
ac1cb8d3 VS |
28701 | grep -v '^ *+' conftest.er1 >conftest.err |
28702 | rm -f conftest.er1 | |
28703 | cat conftest.err >&5 | |
a848cd7e SC |
28704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28705 | (exit $ac_status); } && | |
9dd0f6c2 | 28706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28708 | (eval $ac_try) 2>&5 | |
28709 | ac_status=$? | |
28710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28711 | (exit $ac_status); }; } && | |
28712 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28714 | (eval $ac_try) 2>&5 | |
28715 | ac_status=$? | |
28716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28717 | (exit $ac_status); }; }; then | |
28718 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
28719 | else | |
28720 | echo "$as_me: failed program was:" >&5 | |
28721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28722 | ||
28723 | ac_cv_lib_odbc_SQLAllocEnv=no | |
28724 | fi | |
ac1cb8d3 VS |
28725 | rm -f conftest.err conftest.$ac_objext \ |
28726 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28727 | LIBS=$ac_check_lib_save_LIBS |
28728 | fi | |
28729 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
28730 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
28731 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
28732 | ODBC_LINK=" -lodbc" | |
28733 | fi | |
28734 | ||
28735 | ||
28736 | fi | |
28737 | ||
28738 | ||
28739 | fi | |
28740 | ||
28741 | fi | |
28742 | if test "x$ODBC_LINK" = "x" ; then | |
28743 | if test "$wxUSE_ODBC" = "sys" ; then | |
28744 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
28745 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
28746 | { (exit 1); exit 1; }; } | |
28747 | else | |
28748 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
28749 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
28750 | wxUSE_ODBC=builtin | |
28751 | fi | |
28752 | else | |
28753 | wxUSE_ODBC=sys | |
28754 | fi | |
28755 | fi | |
a848cd7e | 28756 | |
2da0c077 RD |
28757 | if test "$wxUSE_ODBC" = "builtin" ; then |
28758 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
28759 | #define wxUSE_BUILTIN_IODBC 1 |
28760 | _ACEOF | |
28761 | ||
a848cd7e SC |
28762 | fi |
28763 | fi | |
28764 | ||
2da0c077 RD |
28765 | if test "$wxUSE_ODBC" != "no" ; then |
28766 | cat >>confdefs.h <<\_ACEOF | |
28767 | #define wxUSE_ODBC 1 | |
28768 | _ACEOF | |
28769 | ||
28770 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
28771 | ||
28772 | WXODBCFLAG="-D_IODBC_" | |
28773 | fi | |
a848cd7e | 28774 | |
01cb68df | 28775 | |
a848cd7e | 28776 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 28777 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
28778 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
28779 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
28780 | ||
28781 | ac_find_libraries= | |
28782 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28783 | do | |
28784 | for ac_extension in a so sl dylib; do | |
28785 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
28786 | ac_find_libraries=$ac_dir | |
28787 | break 2 | |
28788 | fi | |
28789 | done | |
28790 | done | |
28791 | ||
28792 | if test "$ac_find_libraries" != "" ; then | |
28793 | ||
28794 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28795 | result=$? | |
28796 | if test $result = 0; then | |
28797 | ac_path_to_link="" | |
28798 | else | |
28799 | ac_path_to_link=" -L$ac_find_libraries" | |
28800 | fi | |
28801 | ||
28802 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28803 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
28804 | fi | |
28805 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
28806 | echo "$as_me:$LINENO: result: yes" >&5 | |
28807 | echo "${ECHO_T}yes" >&6 | |
28808 | ||
28809 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
28810 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
28811 | ||
28812 | ac_find_libraries= | |
28813 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28814 | do | |
28815 | for ac_extension in a so sl dylib; do | |
28816 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
28817 | ac_find_libraries=$ac_dir | |
28818 | break 2 | |
28819 | fi | |
28820 | done | |
28821 | done | |
28822 | ||
28823 | if test "$ac_find_libraries" != "" ; then | |
28824 | echo "$as_me:$LINENO: result: yes" >&5 | |
28825 | echo "${ECHO_T}yes" >&6 | |
28826 | ||
28827 | for ac_header in X11/extensions/xf86vmode.h | |
28828 | do | |
28829 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28830 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28831 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28832 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28834 | else | |
28835 | cat >conftest.$ac_ext <<_ACEOF | |
28836 | /* confdefs.h. */ | |
28837 | _ACEOF | |
28838 | cat confdefs.h >>conftest.$ac_ext | |
28839 | cat >>conftest.$ac_ext <<_ACEOF | |
28840 | /* end confdefs.h. */ | |
28841 | ||
28842 | #if HAVE_X11_XLIB_H | |
28843 | #include <X11/Xlib.h> | |
28844 | #endif | |
28845 | ||
28846 | ||
28847 | #include <$ac_header> | |
28848 | _ACEOF | |
28849 | rm -f conftest.$ac_objext | |
28850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28851 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28852 | ac_status=$? |
ac1cb8d3 VS |
28853 | grep -v '^ *+' conftest.er1 >conftest.err |
28854 | rm -f conftest.er1 | |
28855 | cat conftest.err >&5 | |
a848cd7e SC |
28856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28857 | (exit $ac_status); } && | |
9dd0f6c2 | 28858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28860 | (eval $ac_try) 2>&5 | |
28861 | ac_status=$? | |
28862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28863 | (exit $ac_status); }; } && | |
28864 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28866 | (eval $ac_try) 2>&5 | |
28867 | ac_status=$? | |
28868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28869 | (exit $ac_status); }; }; then | |
28870 | eval "$as_ac_Header=yes" | |
28871 | else | |
28872 | echo "$as_me: failed program was:" >&5 | |
28873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28874 | ||
28875 | eval "$as_ac_Header=no" | |
28876 | fi | |
ac1cb8d3 | 28877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28878 | fi |
28879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28880 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28881 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
28882 | cat >>confdefs.h <<_ACEOF | |
28883 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28884 | _ACEOF | |
28885 | ||
28886 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
28887 | ||
28888 | fi | |
28889 | ||
28890 | done | |
28891 | ||
28892 | else | |
28893 | echo "$as_me:$LINENO: result: no" >&5 | |
28894 | echo "${ECHO_T}no" >&6 | |
28895 | fi | |
28896 | ||
28897 | else | |
28898 | echo "$as_me:$LINENO: result: no" >&5 | |
28899 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
28900 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
28901 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
28902 | wxUSE_DISPLAY="no" |
28903 | fi | |
01cb68df RG |
28904 | elif test "$wxUSE_MSW" = 1; then |
28905 | ||
28906 | ||
28907 | for ac_header in multimon.h ddraw.h | |
28908 | do | |
28909 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 28910 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
28911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
28912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 28914 | else |
5294a27e | 28915 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
28916 | /* confdefs.h. */ |
28917 | _ACEOF | |
28918 | cat confdefs.h >>conftest.$ac_ext | |
28919 | cat >>conftest.$ac_ext <<_ACEOF | |
28920 | /* end confdefs.h. */ | |
5294a27e VZ |
28921 | #include <windows.h> |
28922 | ||
01cb68df RG |
28923 | #include <$ac_header> |
28924 | _ACEOF | |
28925 | rm -f conftest.$ac_objext | |
28926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28927 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 28928 | ac_status=$? |
ac1cb8d3 VS |
28929 | grep -v '^ *+' conftest.er1 >conftest.err |
28930 | rm -f conftest.er1 | |
28931 | cat conftest.err >&5 | |
01cb68df RG |
28932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28933 | (exit $ac_status); } && | |
9dd0f6c2 | 28934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28936 | (eval $ac_try) 2>&5 | |
28937 | ac_status=$? | |
28938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28939 | (exit $ac_status); }; } && | |
28940 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
28941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28942 | (eval $ac_try) 2>&5 | |
28943 | ac_status=$? | |
28944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28945 | (exit $ac_status); }; }; then | |
5294a27e | 28946 | eval "$as_ac_Header=yes" |
01cb68df RG |
28947 | else |
28948 | echo "$as_me: failed program was:" >&5 | |
28949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28950 | ||
5294a27e | 28951 | eval "$as_ac_Header=no" |
01cb68df | 28952 | fi |
ac1cb8d3 | 28953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
28954 | fi |
28955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28956 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
28957 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28958 | cat >>confdefs.h <<_ACEOF | |
28959 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28960 | _ACEOF | |
28961 | ||
28962 | else | |
28963 | ||
5294a27e VZ |
28964 | wxUSE_DISPLAY="no" |
28965 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 28966 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
28967 | |
28968 | fi | |
28969 | ||
28970 | done | |
28971 | ||
a848cd7e SC |
28972 | fi |
28973 | fi | |
28974 | ||
28975 | ||
28976 | USE_OPENGL=0 | |
28977 | if test "$wxUSE_OPENGL" = "yes"; then | |
28978 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
28979 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
28980 | elif test "$wxUSE_MSW" = 1; then | |
28981 | OPENGL_LIBS="-lopengl32 -lglu32" | |
28982 | else | |
28983 | ||
28984 | ||
28985 | ac_find_includes= | |
28986 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28987 | do | |
28988 | if test -f "$ac_dir/GL/gl.h"; then | |
28989 | ac_find_includes=$ac_dir | |
28990 | break | |
28991 | fi | |
28992 | done | |
28993 | ||
28994 | if test "$ac_find_includes" != "" ; then | |
28995 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28996 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28997 | ||
28998 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28999 | ac_path_to_include="" | |
29000 | else | |
29001 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
29002 | result=$? | |
29003 | if test $result = 0; then | |
29004 | ac_path_to_include="" | |
29005 | else | |
29006 | ac_path_to_include=" -I$ac_find_includes" | |
29007 | fi | |
29008 | fi | |
29009 | ||
29010 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
29011 | fi | |
29012 | ||
29013 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29014 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
29015 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
29016 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29018 | fi | |
29019 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
29020 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
29021 | else | |
29022 | # Is the header compilable? | |
29023 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
29024 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
29025 | cat >conftest.$ac_ext <<_ACEOF | |
29026 | /* confdefs.h. */ | |
29027 | _ACEOF | |
29028 | cat confdefs.h >>conftest.$ac_ext | |
29029 | cat >>conftest.$ac_ext <<_ACEOF | |
29030 | /* end confdefs.h. */ | |
29031 | $ac_includes_default | |
29032 | #include <GL/gl.h> | |
29033 | _ACEOF | |
29034 | rm -f conftest.$ac_objext | |
29035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29036 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29037 | ac_status=$? |
ac1cb8d3 VS |
29038 | grep -v '^ *+' conftest.er1 >conftest.err |
29039 | rm -f conftest.er1 | |
29040 | cat conftest.err >&5 | |
a848cd7e SC |
29041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29042 | (exit $ac_status); } && | |
9dd0f6c2 | 29043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29045 | (eval $ac_try) 2>&5 | |
29046 | ac_status=$? | |
29047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29048 | (exit $ac_status); }; } && | |
29049 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29051 | (eval $ac_try) 2>&5 | |
29052 | ac_status=$? | |
29053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29054 | (exit $ac_status); }; }; then | |
29055 | ac_header_compiler=yes | |
29056 | else | |
29057 | echo "$as_me: failed program was:" >&5 | |
29058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29059 | ||
29060 | ac_header_compiler=no | |
29061 | fi | |
ac1cb8d3 | 29062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29063 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29064 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29065 | ||
29066 | # Is the header present? | |
29067 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
29068 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
29069 | cat >conftest.$ac_ext <<_ACEOF | |
29070 | /* confdefs.h. */ | |
29071 | _ACEOF | |
29072 | cat confdefs.h >>conftest.$ac_ext | |
29073 | cat >>conftest.$ac_ext <<_ACEOF | |
29074 | /* end confdefs.h. */ | |
29075 | #include <GL/gl.h> | |
29076 | _ACEOF | |
29077 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29078 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29079 | ac_status=$? | |
29080 | grep -v '^ *+' conftest.er1 >conftest.err | |
29081 | rm -f conftest.er1 | |
29082 | cat conftest.err >&5 | |
29083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29084 | (exit $ac_status); } >/dev/null; then | |
29085 | if test -s conftest.err; then | |
29086 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 29087 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
29088 | else |
29089 | ac_cpp_err= | |
29090 | fi | |
29091 | else | |
29092 | ac_cpp_err=yes | |
29093 | fi | |
29094 | if test -z "$ac_cpp_err"; then | |
29095 | ac_header_preproc=yes | |
29096 | else | |
29097 | echo "$as_me: failed program was:" >&5 | |
29098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29099 | ||
29100 | ac_header_preproc=no | |
29101 | fi | |
29102 | rm -f conftest.err conftest.$ac_ext | |
29103 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29104 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29105 | ||
29106 | # So? What about this header? | |
ac1cb8d3 VS |
29107 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
29108 | yes:no: ) | |
a848cd7e SC |
29109 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
29110 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
29111 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
29112 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
29113 | ac_header_preproc=yes | |
a848cd7e | 29114 | ;; |
ac1cb8d3 | 29115 | no:yes:* ) |
a848cd7e SC |
29116 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
29117 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
29118 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
29119 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
29120 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
29121 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
29122 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
29123 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
29124 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
29125 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
29126 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
29127 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
29128 | ( |
29129 | cat <<\_ASBOX | |
ac1cb8d3 VS |
29130 | ## ----------------------------------------- ## |
29131 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29132 | ## ----------------------------------------- ## | |
a848cd7e SC |
29133 | _ASBOX |
29134 | ) | | |
29135 | sed "s/^/$as_me: WARNING: /" >&2 | |
29136 | ;; | |
29137 | esac | |
29138 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
29139 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
29140 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29142 | else | |
29143 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
29144 | fi | |
29145 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
29146 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
29147 | ||
29148 | fi | |
29149 | if test $ac_cv_header_GL_gl_h = yes; then | |
29150 | ||
29151 | found_gl=0 | |
29152 | ||
29153 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
29154 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
29155 | ||
29156 | ac_find_libraries= | |
29157 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29158 | do | |
29159 | for ac_extension in a so sl dylib; do | |
29160 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
29161 | ac_find_libraries=$ac_dir | |
29162 | break 2 | |
29163 | fi | |
29164 | done | |
29165 | done | |
29166 | ||
29167 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
29168 | echo "$as_me:$LINENO: result: yes" >&5 |
29169 | echo "${ECHO_T}yes" >&6 | |
29170 | ||
a848cd7e SC |
29171 | |
29172 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29173 | result=$? | |
29174 | if test $result = 0; then | |
29175 | ac_path_to_link="" | |
29176 | else | |
29177 | ac_path_to_link=" -L$ac_find_libraries" | |
29178 | fi | |
29179 | ||
29180 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
29181 | LDFLAGS_GL="$ac_path_to_link" | |
29182 | fi | |
29183 | ||
69120ee4 VZ |
29184 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
29185 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e SC |
29186 | |
29187 | ac_find_libraries= | |
29188 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29189 | do | |
29190 | for ac_extension in a so sl dylib; do | |
29191 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
29192 | ac_find_libraries=$ac_dir | |
29193 | break 2 | |
29194 | fi | |
29195 | done | |
29196 | done | |
29197 | ||
29198 | if test "$ac_find_libraries" != "" ; then | |
29199 | ||
29200 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29201 | result=$? | |
29202 | if test $result = 0; then | |
29203 | ac_path_to_link="" | |
29204 | else | |
29205 | ac_path_to_link=" -L$ac_find_libraries" | |
29206 | fi | |
29207 | ||
29208 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
29209 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
29210 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
29211 | fi | |
29212 | ||
29213 | found_gl=1 | |
29214 | OPENGL_LIBS="-lGL -lGLU" | |
29215 | echo "$as_me:$LINENO: result: yes" >&5 | |
29216 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
29217 | else |
29218 | echo "$as_me:$LINENO: result: no" >&5 | |
29219 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 29220 | fi |
69120ee4 VZ |
29221 | else |
29222 | echo "$as_me:$LINENO: result: no" >&5 | |
29223 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
29224 | fi |
29225 | ||
29226 | if test "$found_gl" != 1; then | |
a848cd7e SC |
29227 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
29228 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
29229 | ||
29230 | ac_find_libraries= | |
29231 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29232 | do | |
29233 | for ac_extension in a so sl dylib; do | |
29234 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
29235 | ac_find_libraries=$ac_dir | |
29236 | break 2 | |
29237 | fi | |
29238 | done | |
29239 | done | |
29240 | ||
29241 | if test "$ac_find_libraries" != "" ; then | |
29242 | ||
29243 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29244 | result=$? | |
29245 | if test $result = 0; then | |
29246 | ac_path_to_link="" | |
29247 | else | |
29248 | ac_path_to_link=" -L$ac_find_libraries" | |
29249 | fi | |
29250 | ||
29251 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
29252 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
29253 | echo "$as_me:$LINENO: result: yes" >&5 | |
29254 | echo "${ECHO_T}yes" >&6 | |
29255 | else | |
29256 | echo "$as_me:$LINENO: result: no" >&5 | |
29257 | echo "${ECHO_T}no" >&6 | |
29258 | fi | |
29259 | fi | |
29260 | ||
29261 | fi | |
29262 | ||
29263 | ||
29264 | ||
29265 | if test "x$OPENGL_LIBS" = "x"; then | |
29266 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
29267 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
29268 | { (exit 1); exit 1; }; } | |
29269 | fi | |
29270 | fi | |
29271 | ||
29272 | if test "$wxUSE_OPENGL" = "yes"; then | |
29273 | USE_OPENGL=1 | |
29274 | cat >>confdefs.h <<\_ACEOF | |
29275 | #define wxUSE_OPENGL 1 | |
29276 | _ACEOF | |
29277 | ||
29278 | cat >>confdefs.h <<\_ACEOF | |
29279 | #define wxUSE_GLCANVAS 1 | |
29280 | _ACEOF | |
29281 | ||
29282 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
29283 | fi | |
29284 | fi | |
29285 | ||
a848cd7e SC |
29286 | |
29287 | if test -n "$TOOLKIT" ; then | |
29288 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
29289 | fi | |
29290 | ||
a848cd7e SC |
29291 | |
29292 | ||
29293 | if test "$wxUSE_SHARED" = "yes"; then | |
29294 | case "${host}" in | |
29295 | *-pc-msdosdjgpp ) | |
29296 | wxUSE_SHARED=no | |
29297 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
29298 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
29299 | ;; | |
29300 | esac | |
29301 | fi | |
29302 | ||
a848cd7e | 29303 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
29304 | |
29305 | ||
29306 | found_versioning=no | |
29307 | ||
29308 | ||
29309 | if test $found_versioning = no ; then | |
29310 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
29311 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
29312 | if test "${wx_cv_version_script+set}" = set; then | |
29313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29314 | else | |
29315 | ||
29316 | echo "VER_1 { *; };" >conftest.sym | |
29317 | echo "int main() { return 0; }" >conftest.cpp | |
29318 | ||
29319 | if { ac_try=' | |
29320 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29321 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
29322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29323 | (eval $ac_try) 2>&5 | |
29324 | ac_status=$? | |
29325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29326 | (exit $ac_status); }; } ; then | |
29327 | if test -s conftest.stderr ; then | |
29328 | wx_cv_version_script=no | |
29329 | else | |
29330 | wx_cv_version_script=yes | |
29331 | fi | |
29332 | else | |
29333 | wx_cv_version_script=no | |
29334 | fi | |
e5d4b470 MW |
29335 | |
29336 | if test $wx_cv_version_script = yes | |
29337 | then | |
29338 | echo "struct B { virtual ~B() { } }; \ | |
29339 | struct D : public B { }; \ | |
29340 | void F() { D d; }" > conftest.cpp | |
29341 | ||
29342 | if { ac_try=' | |
29343 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29344 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
29345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29346 | (eval $ac_try) 2>&5 | |
29347 | ac_status=$? | |
29348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29349 | (exit $ac_status); }; } && | |
29350 | { ac_try=' | |
29351 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29352 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
29353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29354 | (eval $ac_try) 2>&5 | |
29355 | ac_status=$? | |
29356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29357 | (exit $ac_status); }; } | |
29358 | then | |
29359 | if { ac_try=' | |
29360 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29361 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
29362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29363 | (eval $ac_try) 2>&5 | |
29364 | ac_status=$? | |
29365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29366 | (exit $ac_status); }; } | |
29367 | then | |
29368 | wx_cv_version_script=yes | |
29369 | else | |
29370 | wx_cv_version_script=no | |
29371 | fi | |
29372 | fi | |
29373 | fi | |
29374 | ||
a848cd7e | 29375 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 29376 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
29377 | |
29378 | fi | |
29379 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
29380 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
29381 | if test $wx_cv_version_script = yes ; then | |
29382 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
29383 | fi | |
29384 | fi | |
29385 | ||
29386 | ||
29387 | case "${host}" in | |
29388 | *-*-linux* | *-*-gnu* ) | |
29389 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 29390 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
29391 | ;; |
29392 | ||
29393 | *-*-solaris2* ) | |
29394 | if test "$GCC" = yes ; then | |
29395 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
29396 | ||
29397 | saveLdflags="$LDFLAGS" | |
29398 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
29399 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
29400 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
29401 | cat >conftest.$ac_ext <<_ACEOF | |
29402 | /* confdefs.h. */ | |
29403 | _ACEOF | |
29404 | cat confdefs.h >>conftest.$ac_ext | |
29405 | cat >>conftest.$ac_ext <<_ACEOF | |
29406 | /* end confdefs.h. */ | |
29407 | ||
29408 | int | |
29409 | main () | |
29410 | { | |
29411 | ||
29412 | ; | |
29413 | return 0; | |
29414 | } | |
29415 | _ACEOF | |
29416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29418 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29419 | ac_status=$? |
ac1cb8d3 VS |
29420 | grep -v '^ *+' conftest.er1 >conftest.err |
29421 | rm -f conftest.er1 | |
29422 | cat conftest.err >&5 | |
a848cd7e SC |
29423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29424 | (exit $ac_status); } && | |
9dd0f6c2 | 29425 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29427 | (eval $ac_try) 2>&5 | |
29428 | ac_status=$? | |
29429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29430 | (exit $ac_status); }; } && | |
29431 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29433 | (eval $ac_try) 2>&5 | |
29434 | ac_status=$? | |
29435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29436 | (exit $ac_status); }; }; then | |
29437 | ||
29438 | echo "$as_me:$LINENO: result: yes" >&5 | |
29439 | echo "${ECHO_T}yes" >&6 | |
29440 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 29441 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
29442 | |
29443 | else | |
29444 | echo "$as_me: failed program was:" >&5 | |
29445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29446 | ||
29447 | ||
29448 | echo "$as_me:$LINENO: result: no" >&5 | |
29449 | echo "${ECHO_T}no" >&6 | |
29450 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
29451 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
29452 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
29453 | cat >conftest.$ac_ext <<_ACEOF | |
29454 | /* confdefs.h. */ | |
29455 | _ACEOF | |
29456 | cat confdefs.h >>conftest.$ac_ext | |
29457 | cat >>conftest.$ac_ext <<_ACEOF | |
29458 | /* end confdefs.h. */ | |
29459 | ||
29460 | int | |
29461 | main () | |
29462 | { | |
29463 | ||
29464 | ; | |
29465 | return 0; | |
29466 | } | |
29467 | _ACEOF | |
29468 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29470 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29471 | ac_status=$? |
ac1cb8d3 VS |
29472 | grep -v '^ *+' conftest.er1 >conftest.err |
29473 | rm -f conftest.er1 | |
29474 | cat conftest.err >&5 | |
a848cd7e SC |
29475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29476 | (exit $ac_status); } && | |
9dd0f6c2 | 29477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29479 | (eval $ac_try) 2>&5 | |
29480 | ac_status=$? | |
29481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29482 | (exit $ac_status); }; } && | |
29483 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29485 | (eval $ac_try) 2>&5 | |
29486 | ac_status=$? | |
29487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29488 | (exit $ac_status); }; }; then | |
29489 | ||
ffa0583f | 29490 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 29491 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
29492 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
29493 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
29494 | ||
a848cd7e SC |
29495 | else |
29496 | echo "$as_me: failed program was:" >&5 | |
29497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29498 | ||
29499 | ||
29500 | echo "$as_me:$LINENO: result: no" >&5 | |
29501 | echo "${ECHO_T}no" >&6 | |
29502 | ||
29503 | fi | |
ac1cb8d3 VS |
29504 | rm -f conftest.err conftest.$ac_objext \ |
29505 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29506 | |
29507 | fi | |
ac1cb8d3 VS |
29508 | rm -f conftest.err conftest.$ac_objext \ |
29509 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29510 | LDFLAGS="$saveLdflags" |
29511 | else | |
a848cd7e | 29512 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 29513 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
29514 | fi |
29515 | ;; | |
29516 | ||
29517 | powerpc-*-darwin* ) | |
29518 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
29519 | cat <<EOF >change-install-names | |
29520 | #!/bin/sh | |
29521 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
29522 | inst_cmd="install_name_tool " | |
29523 | for i in \${libnames} ; do | |
29524 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
29525 | done | |
29526 | \${inst_cmd} \${3} | |
29527 | EOF | |
29528 | chmod +x change-install-names | |
29529 | ;; | |
29530 | ||
29531 | *-*-cygwin* | *-*-mingw32* ) | |
29532 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
29533 | ;; | |
29534 | ||
81f90336 MW |
29535 | *-*-hpux* ) |
29536 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
29537 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
29538 | ;; | |
29539 | ||
a848cd7e | 29540 | esac |
ceec2216 | 29541 | |
ffa0583f RL |
29542 | if test $wxUSE_RPATH = "no"; then |
29543 | SAMPLES_RPATH_FLAG='' | |
29544 | SAMPLES_RPATH_POSTLINK='' | |
29545 | WXCONFIG_RPATH='' | |
29546 | fi | |
29547 | ||
29548 | SHARED=1 | |
29549 | ||
29550 | else | |
29551 | ||
ceec2216 RL |
29552 | config_linkage_component="-static" |
29553 | SHARED=0 | |
ffa0583f | 29554 | |
ceec2216 | 29555 | fi |
a848cd7e | 29556 | |
a848cd7e | 29557 | |
ceec2216 RL |
29558 | UNICODE=0 |
29559 | lib_unicode_suffix= | |
29560 | WX_CHARTYPE="ansi" | |
29561 | if test "$wxUSE_UNICODE" = "yes"; then | |
29562 | lib_unicode_suffix=u | |
29563 | WX_CHARTYPE="unicode" | |
29564 | UNICODE=1 | |
a848cd7e SC |
29565 | fi |
29566 | ||
ceec2216 RL |
29567 | lib_debug_suffix= |
29568 | WX_DEBUGTYPE="release" | |
29569 | DEBUG_FLAG=0 | |
29570 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
29571 | lib_debug_suffix=d | |
29572 | WX_DEBUGTYPE="debug" | |
29573 | DEBUG_FLAG=1 | |
29574 | fi | |
a848cd7e | 29575 | |
ceec2216 RL |
29576 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
29577 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 29578 | |
ceec2216 RL |
29579 | DEBUG_INFO=0 |
29580 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
29581 | DEBUG_INFO=1 | |
29582 | fi | |
a848cd7e | 29583 | |
ceec2216 | 29584 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 29585 | |
ceec2216 | 29586 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 29587 | |
ceec2216 | 29588 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 29589 | |
ceec2216 RL |
29590 | if test "$cross_compiling" = "yes"; then |
29591 | HOST_SUFFIX="-$host_alias" | |
29592 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
29593 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
29594 | fi |
29595 | ||
dd21ced8 | 29596 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
29597 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
29598 | ||
29599 | ||
29600 | ||
1d1af5ea DE |
29601 | if test "$wxUSE_COCOA" = 1; then |
29602 | ||
29603 | ||
29604 | ac_ext=c | |
29605 | ac_cpp='$CPP $CPPFLAGS' | |
29606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29609 | ||
29610 | ac_ext=m | |
29611 | ||
29612 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
29613 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
29614 | cat >conftest.$ac_ext <<_ACEOF | |
29615 | /* confdefs.h. */ | |
29616 | _ACEOF | |
29617 | cat confdefs.h >>conftest.$ac_ext | |
29618 | cat >>conftest.$ac_ext <<_ACEOF | |
29619 | /* end confdefs.h. */ | |
29620 | #include <AppKit/NSEvent.h> | |
29621 | #include <CoreFoundation/CoreFoundation.h> | |
29622 | ||
29623 | int | |
29624 | main () | |
29625 | { | |
29626 | ||
29627 | ; | |
29628 | return 0; | |
29629 | } | |
29630 | _ACEOF | |
29631 | rm -f conftest.$ac_objext | |
29632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29633 | (eval $ac_compile) 2>conftest.er1 | |
29634 | ac_status=$? | |
29635 | grep -v '^ *+' conftest.er1 >conftest.err | |
29636 | rm -f conftest.er1 | |
29637 | cat conftest.err >&5 | |
29638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29639 | (exit $ac_status); } && | |
9dd0f6c2 | 29640 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
29641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29642 | (eval $ac_try) 2>&5 | |
29643 | ac_status=$? | |
29644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29645 | (exit $ac_status); }; } && | |
29646 | { ac_try='test -s conftest.$ac_objext' | |
29647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29648 | (eval $ac_try) 2>&5 | |
29649 | ac_status=$? | |
29650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29651 | (exit $ac_status); }; }; then | |
29652 | echo "$as_me:$LINENO: result: no" >&5 | |
29653 | echo "${ECHO_T}no" >&6 | |
29654 | else | |
29655 | echo "$as_me: failed program was:" >&5 | |
29656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29657 | ||
29658 | echo "$as_me:$LINENO: result: yes" >&5 | |
29659 | echo "${ECHO_T}yes" >&6 | |
29660 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
29661 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
29662 | cat >conftest.$ac_ext <<_ACEOF | |
29663 | /* confdefs.h. */ | |
29664 | _ACEOF | |
29665 | cat confdefs.h >>conftest.$ac_ext | |
29666 | cat >>conftest.$ac_ext <<_ACEOF | |
29667 | /* end confdefs.h. */ | |
29668 | #define __Point__ 1 | |
29669 | #include <AppKit/NSEvent.h> | |
29670 | #include <CoreFoundation/CoreFoundation.h> | |
29671 | ||
29672 | int | |
29673 | main () | |
29674 | { | |
29675 | ||
29676 | ; | |
29677 | return 0; | |
29678 | } | |
29679 | _ACEOF | |
29680 | rm -f conftest.$ac_objext | |
29681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29682 | (eval $ac_compile) 2>conftest.er1 | |
29683 | ac_status=$? | |
29684 | grep -v '^ *+' conftest.er1 >conftest.err | |
29685 | rm -f conftest.er1 | |
29686 | cat conftest.err >&5 | |
29687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29688 | (exit $ac_status); } && | |
9dd0f6c2 | 29689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
29690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29691 | (eval $ac_try) 2>&5 | |
29692 | ac_status=$? | |
29693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29694 | (exit $ac_status); }; } && | |
29695 | { ac_try='test -s conftest.$ac_objext' | |
29696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29697 | (eval $ac_try) 2>&5 | |
29698 | ac_status=$? | |
29699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29700 | (exit $ac_status); }; }; then | |
29701 | echo "$as_me:$LINENO: result: yes" >&5 | |
29702 | echo "${ECHO_T}yes" >&6 | |
29703 | cat >>confdefs.h <<\_ACEOF | |
29704 | #define __Point__ 1 | |
29705 | _ACEOF | |
29706 | ||
29707 | ||
29708 | else | |
29709 | echo "$as_me: failed program was:" >&5 | |
29710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29711 | ||
29712 | { { echo "$as_me:$LINENO: error: no | |
29713 | See \`config.log' for more details." >&5 | |
29714 | echo "$as_me: error: no | |
29715 | See \`config.log' for more details." >&2;} | |
29716 | { (exit 1); exit 1; }; } | |
29717 | ||
29718 | fi | |
29719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29720 | ||
29721 | fi | |
29722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29723 | ac_ext=c | |
29724 | ac_cpp='$CPP $CPPFLAGS' | |
29725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29728 | ||
29729 | fi | |
29730 | ||
a848cd7e | 29731 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
29732 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
29733 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 29734 | |
a848cd7e | 29735 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
29736 | |
29737 | # Extract the first word of "Rez", so it can be a program name with args. | |
29738 | set dummy Rez; ac_word=$2 | |
29739 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29741 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
29742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29743 | else | |
29744 | if test -n "$RESCOMP"; then | |
29745 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
29746 | else | |
29747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29748 | for as_dir in $PATH | |
29749 | do | |
29750 | IFS=$as_save_IFS | |
29751 | test -z "$as_dir" && as_dir=. | |
29752 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29753 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29754 | ac_cv_prog_RESCOMP="Rez" | |
29755 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29756 | break 2 | |
29757 | fi | |
29758 | done | |
29759 | done | |
29760 | ||
29761 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
29762 | fi | |
29763 | fi | |
29764 | RESCOMP=$ac_cv_prog_RESCOMP | |
29765 | if test -n "$RESCOMP"; then | |
29766 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
29767 | echo "${ECHO_T}$RESCOMP" >&6 | |
29768 | else | |
29769 | echo "$as_me:$LINENO: result: no" >&5 | |
29770 | echo "${ECHO_T}no" >&6 | |
29771 | fi | |
29772 | ||
29773 | # Extract the first word of "DeRez", so it can be a program name with args. | |
29774 | set dummy DeRez; ac_word=$2 | |
29775 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29777 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
29778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29779 | else | |
29780 | if test -n "$DEREZ"; then | |
29781 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
29782 | else | |
29783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29784 | for as_dir in $PATH | |
29785 | do | |
29786 | IFS=$as_save_IFS | |
29787 | test -z "$as_dir" && as_dir=. | |
29788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29789 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29790 | ac_cv_prog_DEREZ="DeRez" | |
29791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29792 | break 2 | |
29793 | fi | |
29794 | done | |
29795 | done | |
29796 | ||
29797 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
29798 | fi | |
29799 | fi | |
29800 | DEREZ=$ac_cv_prog_DEREZ | |
29801 | if test -n "$DEREZ"; then | |
29802 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
29803 | echo "${ECHO_T}$DEREZ" >&6 | |
29804 | else | |
29805 | echo "$as_me:$LINENO: result: no" >&5 | |
29806 | echo "${ECHO_T}no" >&6 | |
29807 | fi | |
29808 | ||
29809 | # Extract the first word of "SetFile", so it can be a program name with args. | |
29810 | set dummy SetFile; ac_word=$2 | |
29811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29813 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
29814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29815 | else | |
29816 | if test -n "$SETFILE"; then | |
29817 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
29818 | else | |
29819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29820 | for as_dir in $PATH | |
29821 | do | |
29822 | IFS=$as_save_IFS | |
29823 | test -z "$as_dir" && as_dir=. | |
29824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29826 | ac_cv_prog_SETFILE="SetFile" | |
29827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29828 | break 2 | |
29829 | fi | |
29830 | done | |
29831 | done | |
29832 | ||
29833 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
29834 | fi | |
29835 | fi | |
29836 | SETFILE=$ac_cv_prog_SETFILE | |
29837 | if test -n "$SETFILE"; then | |
29838 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
29839 | echo "${ECHO_T}$SETFILE" >&6 | |
29840 | else | |
29841 | echo "$as_me:$LINENO: result: no" >&5 | |
29842 | echo "${ECHO_T}no" >&6 | |
29843 | fi | |
29844 | ||
29845 | ||
29846 | MACSETFILE="\$(SETFILE)" | |
29847 | ||
29848 | if test "$wxUSE_MAC" = 1; then | |
1a79f136 | 29849 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e | 29850 | |
1a79f136 | 29851 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e SC |
29852 | else |
29853 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
29854 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
29855 | fi | |
29856 | else | |
ffa0583f RL |
29857 | MACSETFILE="@true" |
29858 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
29859 | |
29860 | if test "$wxUSE_PM" = 1; then | |
29861 | MACRESCOMP="emxbind -ep" | |
29862 | else | |
ffa0583f | 29863 | MACRESCOMP="@true" |
a848cd7e SC |
29864 | fi |
29865 | fi | |
29866 | ||
29867 | ||
29868 | ||
29869 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
29870 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
29871 | if test "${ac_cv_type_mode_t+set}" = set; then | |
29872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29873 | else | |
29874 | cat >conftest.$ac_ext <<_ACEOF | |
29875 | /* confdefs.h. */ | |
29876 | _ACEOF | |
29877 | cat confdefs.h >>conftest.$ac_ext | |
29878 | cat >>conftest.$ac_ext <<_ACEOF | |
29879 | /* end confdefs.h. */ | |
29880 | $ac_includes_default | |
29881 | int | |
29882 | main () | |
29883 | { | |
29884 | if ((mode_t *) 0) | |
29885 | return 0; | |
29886 | if (sizeof (mode_t)) | |
29887 | return 0; | |
29888 | ; | |
29889 | return 0; | |
29890 | } | |
29891 | _ACEOF | |
29892 | rm -f conftest.$ac_objext | |
29893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29894 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29895 | ac_status=$? |
ac1cb8d3 VS |
29896 | grep -v '^ *+' conftest.er1 >conftest.err |
29897 | rm -f conftest.er1 | |
29898 | cat conftest.err >&5 | |
a848cd7e SC |
29899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29900 | (exit $ac_status); } && | |
9dd0f6c2 | 29901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29903 | (eval $ac_try) 2>&5 | |
29904 | ac_status=$? | |
29905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29906 | (exit $ac_status); }; } && | |
29907 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29909 | (eval $ac_try) 2>&5 | |
29910 | ac_status=$? | |
29911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29912 | (exit $ac_status); }; }; then | |
29913 | ac_cv_type_mode_t=yes | |
29914 | else | |
29915 | echo "$as_me: failed program was:" >&5 | |
29916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29917 | ||
29918 | ac_cv_type_mode_t=no | |
29919 | fi | |
ac1cb8d3 | 29920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29921 | fi |
29922 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
29923 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
29924 | if test $ac_cv_type_mode_t = yes; then | |
29925 | : | |
29926 | else | |
29927 | ||
29928 | cat >>confdefs.h <<_ACEOF | |
29929 | #define mode_t int | |
29930 | _ACEOF | |
29931 | ||
29932 | fi | |
29933 | ||
29934 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
29935 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
29936 | if test "${ac_cv_type_off_t+set}" = set; then | |
29937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29938 | else | |
29939 | cat >conftest.$ac_ext <<_ACEOF | |
29940 | /* confdefs.h. */ | |
29941 | _ACEOF | |
29942 | cat confdefs.h >>conftest.$ac_ext | |
29943 | cat >>conftest.$ac_ext <<_ACEOF | |
29944 | /* end confdefs.h. */ | |
29945 | $ac_includes_default | |
29946 | int | |
29947 | main () | |
29948 | { | |
29949 | if ((off_t *) 0) | |
29950 | return 0; | |
29951 | if (sizeof (off_t)) | |
29952 | return 0; | |
29953 | ; | |
29954 | return 0; | |
29955 | } | |
29956 | _ACEOF | |
29957 | rm -f conftest.$ac_objext | |
29958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29959 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29960 | ac_status=$? |
ac1cb8d3 VS |
29961 | grep -v '^ *+' conftest.er1 >conftest.err |
29962 | rm -f conftest.er1 | |
29963 | cat conftest.err >&5 | |
a848cd7e SC |
29964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29965 | (exit $ac_status); } && | |
9dd0f6c2 | 29966 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29968 | (eval $ac_try) 2>&5 | |
29969 | ac_status=$? | |
29970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29971 | (exit $ac_status); }; } && | |
29972 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29974 | (eval $ac_try) 2>&5 | |
29975 | ac_status=$? | |
29976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29977 | (exit $ac_status); }; }; then | |
29978 | ac_cv_type_off_t=yes | |
29979 | else | |
29980 | echo "$as_me: failed program was:" >&5 | |
29981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29982 | ||
29983 | ac_cv_type_off_t=no | |
29984 | fi | |
ac1cb8d3 | 29985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29986 | fi |
29987 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
29988 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
29989 | if test $ac_cv_type_off_t = yes; then | |
29990 | : | |
29991 | else | |
29992 | ||
29993 | cat >>confdefs.h <<_ACEOF | |
29994 | #define off_t long | |
29995 | _ACEOF | |
29996 | ||
29997 | fi | |
29998 | ||
29999 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
30000 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
30001 | if test "${ac_cv_type_pid_t+set}" = set; then | |
30002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30003 | else | |
30004 | cat >conftest.$ac_ext <<_ACEOF | |
30005 | /* confdefs.h. */ | |
30006 | _ACEOF | |
30007 | cat confdefs.h >>conftest.$ac_ext | |
30008 | cat >>conftest.$ac_ext <<_ACEOF | |
30009 | /* end confdefs.h. */ | |
30010 | $ac_includes_default | |
30011 | int | |
30012 | main () | |
30013 | { | |
30014 | if ((pid_t *) 0) | |
30015 | return 0; | |
30016 | if (sizeof (pid_t)) | |
30017 | return 0; | |
30018 | ; | |
30019 | return 0; | |
30020 | } | |
30021 | _ACEOF | |
30022 | rm -f conftest.$ac_objext | |
30023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30024 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30025 | ac_status=$? |
ac1cb8d3 VS |
30026 | grep -v '^ *+' conftest.er1 >conftest.err |
30027 | rm -f conftest.er1 | |
30028 | cat conftest.err >&5 | |
a848cd7e SC |
30029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30030 | (exit $ac_status); } && | |
9dd0f6c2 | 30031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30033 | (eval $ac_try) 2>&5 | |
30034 | ac_status=$? | |
30035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30036 | (exit $ac_status); }; } && | |
30037 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30039 | (eval $ac_try) 2>&5 | |
30040 | ac_status=$? | |
30041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30042 | (exit $ac_status); }; }; then | |
30043 | ac_cv_type_pid_t=yes | |
30044 | else | |
30045 | echo "$as_me: failed program was:" >&5 | |
30046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30047 | ||
30048 | ac_cv_type_pid_t=no | |
30049 | fi | |
ac1cb8d3 | 30050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30051 | fi |
30052 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
30053 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
30054 | if test $ac_cv_type_pid_t = yes; then | |
30055 | : | |
30056 | else | |
30057 | ||
30058 | cat >>confdefs.h <<_ACEOF | |
30059 | #define pid_t int | |
30060 | _ACEOF | |
30061 | ||
30062 | fi | |
30063 | ||
30064 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
30065 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
30066 | if test "${ac_cv_type_size_t+set}" = set; then | |
30067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30068 | else | |
30069 | cat >conftest.$ac_ext <<_ACEOF | |
30070 | /* confdefs.h. */ | |
30071 | _ACEOF | |
30072 | cat confdefs.h >>conftest.$ac_ext | |
30073 | cat >>conftest.$ac_ext <<_ACEOF | |
30074 | /* end confdefs.h. */ | |
30075 | $ac_includes_default | |
30076 | int | |
30077 | main () | |
30078 | { | |
30079 | if ((size_t *) 0) | |
30080 | return 0; | |
30081 | if (sizeof (size_t)) | |
30082 | return 0; | |
30083 | ; | |
30084 | return 0; | |
30085 | } | |
30086 | _ACEOF | |
30087 | rm -f conftest.$ac_objext | |
30088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30089 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30090 | ac_status=$? |
ac1cb8d3 VS |
30091 | grep -v '^ *+' conftest.er1 >conftest.err |
30092 | rm -f conftest.er1 | |
30093 | cat conftest.err >&5 | |
a848cd7e SC |
30094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30095 | (exit $ac_status); } && | |
9dd0f6c2 | 30096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30098 | (eval $ac_try) 2>&5 | |
30099 | ac_status=$? | |
30100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30101 | (exit $ac_status); }; } && | |
30102 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30104 | (eval $ac_try) 2>&5 | |
30105 | ac_status=$? | |
30106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30107 | (exit $ac_status); }; }; then | |
30108 | ac_cv_type_size_t=yes | |
30109 | else | |
30110 | echo "$as_me: failed program was:" >&5 | |
30111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30112 | ||
30113 | ac_cv_type_size_t=no | |
30114 | fi | |
ac1cb8d3 | 30115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30116 | fi |
30117 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
30118 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
30119 | if test $ac_cv_type_size_t = yes; then | |
30120 | : | |
30121 | else | |
30122 | ||
30123 | cat >>confdefs.h <<_ACEOF | |
30124 | #define size_t unsigned | |
30125 | _ACEOF | |
30126 | ||
30127 | fi | |
30128 | ||
30129 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
30130 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
30131 | if test "${ac_cv_type_uid_t+set}" = set; then | |
30132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30133 | else | |
30134 | cat >conftest.$ac_ext <<_ACEOF | |
30135 | /* confdefs.h. */ | |
30136 | _ACEOF | |
30137 | cat confdefs.h >>conftest.$ac_ext | |
30138 | cat >>conftest.$ac_ext <<_ACEOF | |
30139 | /* end confdefs.h. */ | |
30140 | #include <sys/types.h> | |
30141 | ||
30142 | _ACEOF | |
30143 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
30144 | $EGREP "uid_t" >/dev/null 2>&1; then | |
30145 | ac_cv_type_uid_t=yes | |
30146 | else | |
30147 | ac_cv_type_uid_t=no | |
30148 | fi | |
30149 | rm -f conftest* | |
30150 | ||
30151 | fi | |
30152 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
30153 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
30154 | if test $ac_cv_type_uid_t = no; then | |
30155 | ||
30156 | cat >>confdefs.h <<\_ACEOF | |
30157 | #define uid_t int | |
30158 | _ACEOF | |
30159 | ||
30160 | ||
30161 | cat >>confdefs.h <<\_ACEOF | |
30162 | #define gid_t int | |
30163 | _ACEOF | |
30164 | ||
30165 | fi | |
30166 | ||
30167 | ||
d51253e8 RL |
30168 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
30169 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
30170 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
30171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30172 | else | |
30173 | cat >conftest.$ac_ext <<_ACEOF | |
30174 | /* confdefs.h. */ | |
30175 | _ACEOF | |
30176 | cat confdefs.h >>conftest.$ac_ext | |
30177 | cat >>conftest.$ac_ext <<_ACEOF | |
30178 | /* end confdefs.h. */ | |
30179 | $ac_includes_default | |
30180 | int | |
30181 | main () | |
30182 | { | |
30183 | if ((ssize_t *) 0) | |
30184 | return 0; | |
30185 | if (sizeof (ssize_t)) | |
30186 | return 0; | |
30187 | ; | |
30188 | return 0; | |
30189 | } | |
30190 | _ACEOF | |
30191 | rm -f conftest.$ac_objext | |
30192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30193 | (eval $ac_compile) 2>conftest.er1 | |
30194 | ac_status=$? | |
30195 | grep -v '^ *+' conftest.er1 >conftest.err | |
30196 | rm -f conftest.er1 | |
30197 | cat conftest.err >&5 | |
30198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30199 | (exit $ac_status); } && | |
9dd0f6c2 | 30200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
30201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30202 | (eval $ac_try) 2>&5 | |
30203 | ac_status=$? | |
30204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30205 | (exit $ac_status); }; } && | |
30206 | { ac_try='test -s conftest.$ac_objext' | |
30207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30208 | (eval $ac_try) 2>&5 | |
30209 | ac_status=$? | |
30210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30211 | (exit $ac_status); }; }; then | |
30212 | ac_cv_type_ssize_t=yes | |
30213 | else | |
30214 | echo "$as_me: failed program was:" >&5 | |
30215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30216 | ||
30217 | ac_cv_type_ssize_t=no | |
30218 | fi | |
30219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30220 | fi | |
30221 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
30222 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
30223 | if test $ac_cv_type_ssize_t = yes; then | |
30224 | ||
30225 | cat >>confdefs.h <<_ACEOF | |
30226 | #define HAVE_SSIZE_T 1 | |
30227 | _ACEOF | |
30228 | ||
30229 | ||
30230 | fi | |
30231 | ||
30232 | ||
a848cd7e SC |
30233 | |
30234 | ||
30235 | ac_ext=cc | |
30236 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30237 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30238 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30239 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30240 | ||
30241 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
30242 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
30243 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
30244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30245 | else | |
30246 | ||
30247 | cat >conftest.$ac_ext <<_ACEOF | |
30248 | /* confdefs.h. */ | |
30249 | _ACEOF | |
30250 | cat confdefs.h >>conftest.$ac_ext | |
30251 | cat >>conftest.$ac_ext <<_ACEOF | |
30252 | /* end confdefs.h. */ | |
30253 | #include <stddef.h> | |
30254 | int | |
30255 | main () | |
30256 | { | |
30257 | ||
30258 | return 0; } | |
30259 | ||
30260 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
30261 | ||
30262 | int bar() { | |
30263 | ||
30264 | ; | |
30265 | return 0; | |
30266 | } | |
30267 | _ACEOF | |
30268 | rm -f conftest.$ac_objext | |
30269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30270 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30271 | ac_status=$? |
ac1cb8d3 VS |
30272 | grep -v '^ *+' conftest.er1 >conftest.err |
30273 | rm -f conftest.er1 | |
30274 | cat conftest.err >&5 | |
a848cd7e SC |
30275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30276 | (exit $ac_status); } && | |
9dd0f6c2 | 30277 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30279 | (eval $ac_try) 2>&5 | |
30280 | ac_status=$? | |
30281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30282 | (exit $ac_status); }; } && | |
30283 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30285 | (eval $ac_try) 2>&5 | |
30286 | ac_status=$? | |
30287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30288 | (exit $ac_status); }; }; then | |
30289 | wx_cv_size_t_is_uint=no | |
30290 | else | |
30291 | echo "$as_me: failed program was:" >&5 | |
30292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30293 | ||
30294 | wx_cv_size_t_is_uint=yes | |
30295 | ||
30296 | fi | |
ac1cb8d3 | 30297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30298 | |
30299 | ||
30300 | fi | |
30301 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
30302 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
30303 | ||
30304 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
30305 | cat >>confdefs.h <<\_ACEOF | |
30306 | #define wxSIZE_T_IS_UINT 1 | |
30307 | _ACEOF | |
30308 | ||
30309 | else | |
30310 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
30311 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
30312 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
30313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30314 | else | |
30315 | cat >conftest.$ac_ext <<_ACEOF | |
30316 | /* confdefs.h. */ | |
30317 | _ACEOF | |
30318 | cat confdefs.h >>conftest.$ac_ext | |
30319 | cat >>conftest.$ac_ext <<_ACEOF | |
30320 | /* end confdefs.h. */ | |
30321 | #include <stddef.h> | |
30322 | int | |
30323 | main () | |
30324 | { | |
30325 | ||
30326 | return 0; } | |
30327 | ||
30328 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
30329 | ||
30330 | int bar() { | |
30331 | ||
30332 | ; | |
30333 | return 0; | |
30334 | } | |
30335 | _ACEOF | |
30336 | rm -f conftest.$ac_objext | |
30337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30338 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30339 | ac_status=$? |
ac1cb8d3 VS |
30340 | grep -v '^ *+' conftest.er1 >conftest.err |
30341 | rm -f conftest.er1 | |
30342 | cat conftest.err >&5 | |
a848cd7e SC |
30343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30344 | (exit $ac_status); } && | |
9dd0f6c2 | 30345 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30347 | (eval $ac_try) 2>&5 | |
30348 | ac_status=$? | |
30349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30350 | (exit $ac_status); }; } && | |
30351 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30353 | (eval $ac_try) 2>&5 | |
30354 | ac_status=$? | |
30355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30356 | (exit $ac_status); }; }; then | |
30357 | wx_cv_size_t_is_ulong=no | |
30358 | else | |
30359 | echo "$as_me: failed program was:" >&5 | |
30360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30361 | ||
30362 | wx_cv_size_t_is_ulong=yes | |
30363 | ||
30364 | fi | |
ac1cb8d3 | 30365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30366 | |
30367 | fi | |
30368 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
30369 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
30370 | ||
30371 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
30372 | cat >>confdefs.h <<\_ACEOF | |
30373 | #define wxSIZE_T_IS_ULONG 1 | |
30374 | _ACEOF | |
30375 | ||
30376 | fi | |
30377 | fi | |
30378 | ||
30379 | ac_ext=c | |
30380 | ac_cpp='$CPP $CPPFLAGS' | |
30381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30384 | ||
30385 | ||
30386 | ||
30387 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
30388 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
30389 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
30390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30391 | else | |
30392 | ||
30393 | cat >conftest.$ac_ext <<_ACEOF | |
30394 | /* confdefs.h. */ | |
30395 | _ACEOF | |
30396 | cat confdefs.h >>conftest.$ac_ext | |
30397 | cat >>conftest.$ac_ext <<_ACEOF | |
30398 | /* end confdefs.h. */ | |
30399 | #include <pwd.h> | |
30400 | int | |
30401 | main () | |
30402 | { | |
30403 | ||
30404 | char *p; | |
30405 | struct passwd *pw; | |
30406 | p = pw->pw_gecos; | |
30407 | ||
30408 | ; | |
30409 | return 0; | |
30410 | } | |
30411 | _ACEOF | |
30412 | rm -f conftest.$ac_objext | |
30413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30414 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30415 | ac_status=$? |
ac1cb8d3 VS |
30416 | grep -v '^ *+' conftest.er1 >conftest.err |
30417 | rm -f conftest.er1 | |
30418 | cat conftest.err >&5 | |
a848cd7e SC |
30419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30420 | (exit $ac_status); } && | |
9dd0f6c2 | 30421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30423 | (eval $ac_try) 2>&5 | |
30424 | ac_status=$? | |
30425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30426 | (exit $ac_status); }; } && | |
30427 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30429 | (eval $ac_try) 2>&5 | |
30430 | ac_status=$? | |
30431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30432 | (exit $ac_status); }; }; then | |
30433 | ||
30434 | wx_cv_struct_pw_gecos=yes | |
30435 | ||
30436 | else | |
30437 | echo "$as_me: failed program was:" >&5 | |
30438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30439 | ||
30440 | ||
30441 | wx_cv_struct_pw_gecos=no | |
30442 | ||
30443 | ||
30444 | fi | |
ac1cb8d3 | 30445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30446 | |
30447 | ||
30448 | fi | |
30449 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
30450 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
30451 | ||
30452 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
30453 | cat >>confdefs.h <<\_ACEOF | |
30454 | #define HAVE_PW_GECOS 1 | |
30455 | _ACEOF | |
30456 | ||
30457 | fi | |
30458 | ||
30459 | ||
238ecede | 30460 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
a848cd7e SC |
30461 | cat >>confdefs.h <<\_ACEOF |
30462 | #define wxUSE_WCHAR_T 1 | |
30463 | _ACEOF | |
30464 | ||
30465 | ||
30466 | WCSLEN_FOUND=0 | |
30467 | WCHAR_LINK= | |
30468 | ||
30469 | for ac_func in wcslen | |
30470 | do | |
30471 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30472 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30473 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30474 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30476 | else | |
30477 | cat >conftest.$ac_ext <<_ACEOF | |
30478 | /* confdefs.h. */ | |
30479 | _ACEOF | |
30480 | cat confdefs.h >>conftest.$ac_ext | |
30481 | cat >>conftest.$ac_ext <<_ACEOF | |
30482 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30483 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30484 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30485 | #define $ac_func innocuous_$ac_func | |
30486 | ||
a848cd7e SC |
30487 | /* System header to define __stub macros and hopefully few prototypes, |
30488 | which can conflict with char $ac_func (); below. | |
30489 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30490 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30491 | |
a848cd7e SC |
30492 | #ifdef __STDC__ |
30493 | # include <limits.h> | |
30494 | #else | |
30495 | # include <assert.h> | |
30496 | #endif | |
ac1cb8d3 VS |
30497 | |
30498 | #undef $ac_func | |
30499 | ||
a848cd7e SC |
30500 | /* Override any gcc2 internal prototype to avoid an error. */ |
30501 | #ifdef __cplusplus | |
30502 | extern "C" | |
30503 | { | |
30504 | #endif | |
30505 | /* We use char because int might match the return type of a gcc2 | |
30506 | builtin and then its argument prototype would still apply. */ | |
30507 | char $ac_func (); | |
30508 | /* The GNU C library defines this for functions which it implements | |
30509 | to always fail with ENOSYS. Some functions are actually named | |
30510 | something starting with __ and the normal name is an alias. */ | |
30511 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30512 | choke me | |
30513 | #else | |
30514 | char (*f) () = $ac_func; | |
30515 | #endif | |
30516 | #ifdef __cplusplus | |
30517 | } | |
30518 | #endif | |
30519 | ||
30520 | int | |
30521 | main () | |
30522 | { | |
30523 | return f != $ac_func; | |
30524 | ; | |
30525 | return 0; | |
30526 | } | |
30527 | _ACEOF | |
30528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30530 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30531 | ac_status=$? |
ac1cb8d3 VS |
30532 | grep -v '^ *+' conftest.er1 >conftest.err |
30533 | rm -f conftest.er1 | |
30534 | cat conftest.err >&5 | |
a848cd7e SC |
30535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30536 | (exit $ac_status); } && | |
9dd0f6c2 | 30537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30539 | (eval $ac_try) 2>&5 | |
30540 | ac_status=$? | |
30541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30542 | (exit $ac_status); }; } && | |
30543 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30545 | (eval $ac_try) 2>&5 | |
30546 | ac_status=$? | |
30547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30548 | (exit $ac_status); }; }; then | |
30549 | eval "$as_ac_var=yes" | |
30550 | else | |
30551 | echo "$as_me: failed program was:" >&5 | |
30552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30553 | ||
30554 | eval "$as_ac_var=no" | |
30555 | fi | |
ac1cb8d3 VS |
30556 | rm -f conftest.err conftest.$ac_objext \ |
30557 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30558 | fi |
30559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30560 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30561 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30562 | cat >>confdefs.h <<_ACEOF | |
30563 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30564 | _ACEOF | |
30565 | WCSLEN_FOUND=1 | |
30566 | fi | |
30567 | done | |
30568 | ||
30569 | ||
30570 | if test "$WCSLEN_FOUND" = 0; then | |
30571 | if test "$TOOLKIT" = "MSW"; then | |
30572 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
30573 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
30574 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
30575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30576 | else | |
30577 | ac_check_lib_save_LIBS=$LIBS | |
30578 | LIBS="-lmsvcrt $LIBS" | |
30579 | cat >conftest.$ac_ext <<_ACEOF | |
30580 | /* confdefs.h. */ | |
30581 | _ACEOF | |
30582 | cat confdefs.h >>conftest.$ac_ext | |
30583 | cat >>conftest.$ac_ext <<_ACEOF | |
30584 | /* end confdefs.h. */ | |
30585 | ||
30586 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30587 | #ifdef __cplusplus | |
30588 | extern "C" | |
30589 | #endif | |
30590 | /* We use char because int might match the return type of a gcc2 | |
30591 | builtin and then its argument prototype would still apply. */ | |
30592 | char wcslen (); | |
30593 | int | |
30594 | main () | |
30595 | { | |
30596 | wcslen (); | |
30597 | ; | |
30598 | return 0; | |
30599 | } | |
30600 | _ACEOF | |
30601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30603 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30604 | ac_status=$? |
ac1cb8d3 VS |
30605 | grep -v '^ *+' conftest.er1 >conftest.err |
30606 | rm -f conftest.er1 | |
30607 | cat conftest.err >&5 | |
a848cd7e SC |
30608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30609 | (exit $ac_status); } && | |
9dd0f6c2 | 30610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30612 | (eval $ac_try) 2>&5 | |
30613 | ac_status=$? | |
30614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30615 | (exit $ac_status); }; } && | |
30616 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30618 | (eval $ac_try) 2>&5 | |
30619 | ac_status=$? | |
30620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30621 | (exit $ac_status); }; }; then | |
30622 | ac_cv_lib_msvcrt_wcslen=yes | |
30623 | else | |
30624 | echo "$as_me: failed program was:" >&5 | |
30625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30626 | ||
30627 | ac_cv_lib_msvcrt_wcslen=no | |
30628 | fi | |
ac1cb8d3 VS |
30629 | rm -f conftest.err conftest.$ac_objext \ |
30630 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30631 | LIBS=$ac_check_lib_save_LIBS |
30632 | fi | |
30633 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
30634 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
30635 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
30636 | WCHAR_OK=1 | |
30637 | fi | |
30638 | ||
30639 | else | |
30640 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
30641 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
30642 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
30643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30644 | else | |
30645 | ac_check_lib_save_LIBS=$LIBS | |
30646 | LIBS="-lw $LIBS" | |
30647 | cat >conftest.$ac_ext <<_ACEOF | |
30648 | /* confdefs.h. */ | |
30649 | _ACEOF | |
30650 | cat confdefs.h >>conftest.$ac_ext | |
30651 | cat >>conftest.$ac_ext <<_ACEOF | |
30652 | /* end confdefs.h. */ | |
30653 | ||
30654 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30655 | #ifdef __cplusplus | |
30656 | extern "C" | |
30657 | #endif | |
30658 | /* We use char because int might match the return type of a gcc2 | |
30659 | builtin and then its argument prototype would still apply. */ | |
30660 | char wcslen (); | |
30661 | int | |
30662 | main () | |
30663 | { | |
30664 | wcslen (); | |
30665 | ; | |
30666 | return 0; | |
30667 | } | |
30668 | _ACEOF | |
30669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30671 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30672 | ac_status=$? |
ac1cb8d3 VS |
30673 | grep -v '^ *+' conftest.er1 >conftest.err |
30674 | rm -f conftest.er1 | |
30675 | cat conftest.err >&5 | |
a848cd7e SC |
30676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30677 | (exit $ac_status); } && | |
9dd0f6c2 | 30678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30680 | (eval $ac_try) 2>&5 | |
30681 | ac_status=$? | |
30682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30683 | (exit $ac_status); }; } && | |
30684 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30686 | (eval $ac_try) 2>&5 | |
30687 | ac_status=$? | |
30688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30689 | (exit $ac_status); }; }; then | |
30690 | ac_cv_lib_w_wcslen=yes | |
30691 | else | |
30692 | echo "$as_me: failed program was:" >&5 | |
30693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30694 | ||
30695 | ac_cv_lib_w_wcslen=no | |
30696 | fi | |
ac1cb8d3 VS |
30697 | rm -f conftest.err conftest.$ac_objext \ |
30698 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30699 | LIBS=$ac_check_lib_save_LIBS |
30700 | fi | |
30701 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
30702 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
30703 | if test $ac_cv_lib_w_wcslen = yes; then | |
30704 | ||
30705 | WCHAR_LINK=" -lw" | |
30706 | WCSLEN_FOUND=1 | |
30707 | ||
30708 | fi | |
30709 | ||
30710 | fi | |
30711 | fi | |
30712 | ||
30713 | if test "$WCSLEN_FOUND" = 1; then | |
30714 | cat >>confdefs.h <<\_ACEOF | |
30715 | #define HAVE_WCSLEN 1 | |
30716 | _ACEOF | |
30717 | ||
30718 | fi | |
30719 | ||
81f90336 | 30720 | if test "$USE_HPUX" = 1; then |
473276a9 VS |
30721 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
30722 | fi | |
30723 | ||
a848cd7e SC |
30724 | |
30725 | for ac_func in wcsrtombs | |
30726 | do | |
30727 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30728 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30729 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30730 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30732 | else | |
30733 | cat >conftest.$ac_ext <<_ACEOF | |
30734 | /* confdefs.h. */ | |
30735 | _ACEOF | |
30736 | cat confdefs.h >>conftest.$ac_ext | |
30737 | cat >>conftest.$ac_ext <<_ACEOF | |
30738 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30739 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30741 | #define $ac_func innocuous_$ac_func | |
30742 | ||
a848cd7e SC |
30743 | /* System header to define __stub macros and hopefully few prototypes, |
30744 | which can conflict with char $ac_func (); below. | |
30745 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30746 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30747 | |
a848cd7e SC |
30748 | #ifdef __STDC__ |
30749 | # include <limits.h> | |
30750 | #else | |
30751 | # include <assert.h> | |
30752 | #endif | |
ac1cb8d3 VS |
30753 | |
30754 | #undef $ac_func | |
30755 | ||
a848cd7e SC |
30756 | /* Override any gcc2 internal prototype to avoid an error. */ |
30757 | #ifdef __cplusplus | |
30758 | extern "C" | |
30759 | { | |
30760 | #endif | |
30761 | /* We use char because int might match the return type of a gcc2 | |
30762 | builtin and then its argument prototype would still apply. */ | |
30763 | char $ac_func (); | |
30764 | /* The GNU C library defines this for functions which it implements | |
30765 | to always fail with ENOSYS. Some functions are actually named | |
30766 | something starting with __ and the normal name is an alias. */ | |
30767 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30768 | choke me | |
30769 | #else | |
30770 | char (*f) () = $ac_func; | |
30771 | #endif | |
30772 | #ifdef __cplusplus | |
30773 | } | |
30774 | #endif | |
30775 | ||
30776 | int | |
30777 | main () | |
30778 | { | |
30779 | return f != $ac_func; | |
30780 | ; | |
30781 | return 0; | |
30782 | } | |
30783 | _ACEOF | |
30784 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30786 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30787 | ac_status=$? |
ac1cb8d3 VS |
30788 | grep -v '^ *+' conftest.er1 >conftest.err |
30789 | rm -f conftest.er1 | |
30790 | cat conftest.err >&5 | |
a848cd7e SC |
30791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30792 | (exit $ac_status); } && | |
9dd0f6c2 | 30793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30795 | (eval $ac_try) 2>&5 | |
30796 | ac_status=$? | |
30797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30798 | (exit $ac_status); }; } && | |
30799 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30801 | (eval $ac_try) 2>&5 | |
30802 | ac_status=$? | |
30803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30804 | (exit $ac_status); }; }; then | |
30805 | eval "$as_ac_var=yes" | |
30806 | else | |
30807 | echo "$as_me: failed program was:" >&5 | |
30808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30809 | ||
30810 | eval "$as_ac_var=no" | |
30811 | fi | |
ac1cb8d3 VS |
30812 | rm -f conftest.err conftest.$ac_objext \ |
30813 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30814 | fi |
30815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30816 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30817 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30818 | cat >>confdefs.h <<_ACEOF | |
30819 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30820 | _ACEOF | |
30821 | ||
30822 | fi | |
30823 | done | |
30824 | ||
30825 | else | |
30826 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
30827 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
30828 | fi | |
30829 | ||
30830 | ||
30831 | ||
30832 | ac_ext=cc | |
30833 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30834 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30835 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30836 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30837 | ||
30838 | ||
30839 | ||
30840 | for ac_func in vsnprintf | |
30841 | do | |
30842 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30843 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30844 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30845 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30847 | else | |
30848 | cat >conftest.$ac_ext <<_ACEOF | |
30849 | /* confdefs.h. */ | |
30850 | _ACEOF | |
30851 | cat confdefs.h >>conftest.$ac_ext | |
30852 | cat >>conftest.$ac_ext <<_ACEOF | |
30853 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30854 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30856 | #define $ac_func innocuous_$ac_func | |
30857 | ||
a848cd7e SC |
30858 | /* System header to define __stub macros and hopefully few prototypes, |
30859 | which can conflict with char $ac_func (); below. | |
30860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30861 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30862 | |
a848cd7e SC |
30863 | #ifdef __STDC__ |
30864 | # include <limits.h> | |
30865 | #else | |
30866 | # include <assert.h> | |
30867 | #endif | |
ac1cb8d3 VS |
30868 | |
30869 | #undef $ac_func | |
30870 | ||
a848cd7e SC |
30871 | /* Override any gcc2 internal prototype to avoid an error. */ |
30872 | #ifdef __cplusplus | |
30873 | extern "C" | |
30874 | { | |
30875 | #endif | |
30876 | /* We use char because int might match the return type of a gcc2 | |
30877 | builtin and then its argument prototype would still apply. */ | |
30878 | char $ac_func (); | |
30879 | /* The GNU C library defines this for functions which it implements | |
30880 | to always fail with ENOSYS. Some functions are actually named | |
30881 | something starting with __ and the normal name is an alias. */ | |
30882 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30883 | choke me | |
30884 | #else | |
30885 | char (*f) () = $ac_func; | |
30886 | #endif | |
30887 | #ifdef __cplusplus | |
30888 | } | |
30889 | #endif | |
30890 | ||
30891 | int | |
30892 | main () | |
30893 | { | |
30894 | return f != $ac_func; | |
30895 | ; | |
30896 | return 0; | |
30897 | } | |
30898 | _ACEOF | |
30899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30901 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30902 | ac_status=$? |
ac1cb8d3 VS |
30903 | grep -v '^ *+' conftest.er1 >conftest.err |
30904 | rm -f conftest.er1 | |
30905 | cat conftest.err >&5 | |
a848cd7e SC |
30906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30907 | (exit $ac_status); } && | |
9dd0f6c2 | 30908 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30910 | (eval $ac_try) 2>&5 | |
30911 | ac_status=$? | |
30912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30913 | (exit $ac_status); }; } && | |
30914 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30916 | (eval $ac_try) 2>&5 | |
30917 | ac_status=$? | |
30918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30919 | (exit $ac_status); }; }; then | |
30920 | eval "$as_ac_var=yes" | |
30921 | else | |
30922 | echo "$as_me: failed program was:" >&5 | |
30923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30924 | ||
30925 | eval "$as_ac_var=no" | |
30926 | fi | |
ac1cb8d3 VS |
30927 | rm -f conftest.err conftest.$ac_objext \ |
30928 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30929 | fi |
30930 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30931 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30932 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30933 | cat >>confdefs.h <<_ACEOF | |
30934 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30935 | _ACEOF | |
30936 | ||
30937 | fi | |
30938 | done | |
30939 | ||
30940 | ||
30941 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
30942 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
30943 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
30944 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
30945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30946 | else | |
30947 | ||
30948 | cat >conftest.$ac_ext <<_ACEOF | |
30949 | /* confdefs.h. */ | |
30950 | _ACEOF | |
30951 | cat confdefs.h >>conftest.$ac_ext | |
30952 | cat >>conftest.$ac_ext <<_ACEOF | |
30953 | /* end confdefs.h. */ | |
30954 | ||
30955 | #include <stdio.h> | |
30956 | #include <stdarg.h> | |
30957 | ||
30958 | int | |
30959 | main () | |
30960 | { | |
30961 | ||
30962 | char *buf; | |
30963 | va_list ap; | |
30964 | vsnprintf(buf, 10u, "%s", ap); | |
30965 | ||
30966 | ; | |
30967 | return 0; | |
30968 | } | |
30969 | _ACEOF | |
30970 | rm -f conftest.$ac_objext | |
30971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30972 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30973 | ac_status=$? |
ac1cb8d3 VS |
30974 | grep -v '^ *+' conftest.er1 >conftest.err |
30975 | rm -f conftest.er1 | |
30976 | cat conftest.err >&5 | |
a848cd7e SC |
30977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30978 | (exit $ac_status); } && | |
9dd0f6c2 | 30979 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30981 | (eval $ac_try) 2>&5 | |
30982 | ac_status=$? | |
30983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30984 | (exit $ac_status); }; } && | |
30985 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30987 | (eval $ac_try) 2>&5 | |
30988 | ac_status=$? | |
30989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30990 | (exit $ac_status); }; }; then | |
30991 | wx_cv_func_vsnprintf_decl=yes | |
30992 | else | |
30993 | echo "$as_me: failed program was:" >&5 | |
30994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30995 | ||
c122b164 DE |
30996 | |
30997 | cat >conftest.$ac_ext <<_ACEOF | |
30998 | /* confdefs.h. */ | |
30999 | _ACEOF | |
31000 | cat confdefs.h >>conftest.$ac_ext | |
31001 | cat >>conftest.$ac_ext <<_ACEOF | |
31002 | /* end confdefs.h. */ | |
31003 | ||
31004 | #include <stdio.h> | |
31005 | #include <stdarg.h> | |
31006 | using namespace std; | |
31007 | ||
31008 | int | |
31009 | main () | |
31010 | { | |
31011 | ||
31012 | char *buf; | |
31013 | va_list ap; | |
31014 | vsnprintf(buf, 10u, "%s", ap); | |
31015 | ||
31016 | ; | |
31017 | return 0; | |
31018 | } | |
31019 | _ACEOF | |
31020 | rm -f conftest.$ac_objext | |
31021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31022 | (eval $ac_compile) 2>conftest.er1 | |
31023 | ac_status=$? | |
31024 | grep -v '^ *+' conftest.er1 >conftest.err | |
31025 | rm -f conftest.er1 | |
31026 | cat conftest.err >&5 | |
31027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31028 | (exit $ac_status); } && | |
9dd0f6c2 | 31029 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
31030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31031 | (eval $ac_try) 2>&5 | |
31032 | ac_status=$? | |
31033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31034 | (exit $ac_status); }; } && | |
31035 | { ac_try='test -s conftest.$ac_objext' | |
31036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31037 | (eval $ac_try) 2>&5 | |
31038 | ac_status=$? | |
31039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31040 | (exit $ac_status); }; }; then | |
31041 | wx_cv_func_vsnprintf_decl=yes | |
31042 | else | |
31043 | echo "$as_me: failed program was:" >&5 | |
31044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31045 | ||
a848cd7e SC |
31046 | wx_cv_func_vsnprintf_decl=no |
31047 | ||
31048 | fi | |
ac1cb8d3 | 31049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31050 | |
31051 | ||
c122b164 DE |
31052 | fi |
31053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31054 | ||
31055 | ||
a848cd7e SC |
31056 | fi |
31057 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
31058 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
31059 | ||
31060 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
31061 | cat >>confdefs.h <<\_ACEOF | |
31062 | #define HAVE_VSNPRINTF_DECL 1 | |
31063 | _ACEOF | |
31064 | ||
31065 | fi | |
31066 | fi | |
31067 | ||
31068 | if test "$wxUSE_UNICODE" = yes; then | |
31069 | ||
31070 | ||
31071 | ||
fbe47c7b VS |
31072 | |
31073 | ||
31074 | ||
31075 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
31076 | do |
31077 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31078 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31079 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31080 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31082 | else | |
31083 | cat >conftest.$ac_ext <<_ACEOF | |
31084 | /* confdefs.h. */ | |
31085 | _ACEOF | |
31086 | cat confdefs.h >>conftest.$ac_ext | |
31087 | cat >>conftest.$ac_ext <<_ACEOF | |
31088 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31089 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31091 | #define $ac_func innocuous_$ac_func | |
31092 | ||
a848cd7e SC |
31093 | /* System header to define __stub macros and hopefully few prototypes, |
31094 | which can conflict with char $ac_func (); below. | |
31095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31096 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31097 | |
a848cd7e SC |
31098 | #ifdef __STDC__ |
31099 | # include <limits.h> | |
31100 | #else | |
31101 | # include <assert.h> | |
31102 | #endif | |
ac1cb8d3 VS |
31103 | |
31104 | #undef $ac_func | |
31105 | ||
a848cd7e SC |
31106 | /* Override any gcc2 internal prototype to avoid an error. */ |
31107 | #ifdef __cplusplus | |
31108 | extern "C" | |
31109 | { | |
31110 | #endif | |
31111 | /* We use char because int might match the return type of a gcc2 | |
31112 | builtin and then its argument prototype would still apply. */ | |
31113 | char $ac_func (); | |
31114 | /* The GNU C library defines this for functions which it implements | |
31115 | to always fail with ENOSYS. Some functions are actually named | |
31116 | something starting with __ and the normal name is an alias. */ | |
31117 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31118 | choke me | |
31119 | #else | |
31120 | char (*f) () = $ac_func; | |
31121 | #endif | |
31122 | #ifdef __cplusplus | |
31123 | } | |
31124 | #endif | |
31125 | ||
31126 | int | |
31127 | main () | |
31128 | { | |
31129 | return f != $ac_func; | |
31130 | ; | |
31131 | return 0; | |
31132 | } | |
31133 | _ACEOF | |
31134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31136 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31137 | ac_status=$? |
ac1cb8d3 VS |
31138 | grep -v '^ *+' conftest.er1 >conftest.err |
31139 | rm -f conftest.er1 | |
31140 | cat conftest.err >&5 | |
a848cd7e SC |
31141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31142 | (exit $ac_status); } && | |
9dd0f6c2 | 31143 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31145 | (eval $ac_try) 2>&5 | |
31146 | ac_status=$? | |
31147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31148 | (exit $ac_status); }; } && | |
31149 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31151 | (eval $ac_try) 2>&5 | |
31152 | ac_status=$? | |
31153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31154 | (exit $ac_status); }; }; then | |
31155 | eval "$as_ac_var=yes" | |
31156 | else | |
31157 | echo "$as_me: failed program was:" >&5 | |
31158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31159 | ||
31160 | eval "$as_ac_var=no" | |
31161 | fi | |
ac1cb8d3 VS |
31162 | rm -f conftest.err conftest.$ac_objext \ |
31163 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31164 | fi |
31165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31166 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31167 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31168 | cat >>confdefs.h <<_ACEOF | |
31169 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31170 | _ACEOF | |
31171 | ||
31172 | fi | |
31173 | done | |
31174 | ||
31175 | ||
31176 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
31177 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
31178 | cat >conftest.$ac_ext <<_ACEOF | |
31179 | /* confdefs.h. */ | |
31180 | _ACEOF | |
31181 | cat confdefs.h >>conftest.$ac_ext | |
31182 | cat >>conftest.$ac_ext <<_ACEOF | |
31183 | /* end confdefs.h. */ | |
31184 | #include <wchar.h> | |
31185 | int | |
31186 | main () | |
31187 | { | |
31188 | &_vsnwprintf; | |
31189 | ; | |
31190 | return 0; | |
31191 | } | |
31192 | _ACEOF | |
31193 | rm -f conftest.$ac_objext | |
31194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31195 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31196 | ac_status=$? |
ac1cb8d3 VS |
31197 | grep -v '^ *+' conftest.er1 >conftest.err |
31198 | rm -f conftest.er1 | |
31199 | cat conftest.err >&5 | |
a848cd7e SC |
31200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31201 | (exit $ac_status); } && | |
9dd0f6c2 | 31202 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31204 | (eval $ac_try) 2>&5 | |
31205 | ac_status=$? | |
31206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31207 | (exit $ac_status); }; } && | |
31208 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31210 | (eval $ac_try) 2>&5 | |
31211 | ac_status=$? | |
31212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31213 | (exit $ac_status); }; }; then | |
31214 | echo "$as_me:$LINENO: result: yes" >&5 | |
31215 | echo "${ECHO_T}yes" >&6 | |
31216 | cat >>confdefs.h <<\_ACEOF | |
31217 | #define HAVE__VSNWPRINTF 1 | |
31218 | _ACEOF | |
31219 | ||
31220 | else | |
31221 | echo "$as_me: failed program was:" >&5 | |
31222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31223 | ||
31224 | echo "$as_me:$LINENO: result: no" >&5 | |
31225 | echo "${ECHO_T}no" >&6 | |
31226 | fi | |
ac1cb8d3 | 31227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
31228 | fi |
31229 | ||
31230 | ac_ext=c | |
31231 | ac_cpp='$CPP $CPPFLAGS' | |
31232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31235 | ||
31236 | ||
31237 | ||
31238 | ||
31239 | if test "$TOOLKIT" != "MSW"; then | |
31240 | ||
31241 | ||
31242 | ||
31243 | ||
31244 | ac_ext=cc | |
31245 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31246 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31247 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31248 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31249 | ||
31250 | ||
31251 | ||
31252 | ||
31253 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
31254 | if test "${with_libiconv_prefix+set}" = set; then | |
31255 | withval="$with_libiconv_prefix" | |
31256 | ||
31257 | for dir in `echo "$withval" | tr : ' '`; do | |
31258 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
31259 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
31260 | done | |
31261 | ||
31262 | fi; | |
31263 | ||
31264 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
31265 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
31266 | if test "${am_cv_func_iconv+set}" = set; then | |
31267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31268 | else | |
31269 | ||
31270 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
31271 | am_cv_lib_iconv=no | |
31272 | cat >conftest.$ac_ext <<_ACEOF | |
31273 | /* confdefs.h. */ | |
31274 | _ACEOF | |
31275 | cat confdefs.h >>conftest.$ac_ext | |
31276 | cat >>conftest.$ac_ext <<_ACEOF | |
31277 | /* end confdefs.h. */ | |
31278 | #include <stdlib.h> | |
31279 | #include <iconv.h> | |
31280 | int | |
31281 | main () | |
31282 | { | |
31283 | iconv_t cd = iconv_open("",""); | |
31284 | iconv(cd,NULL,NULL,NULL,NULL); | |
31285 | iconv_close(cd); | |
31286 | ; | |
31287 | return 0; | |
31288 | } | |
31289 | _ACEOF | |
31290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31292 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31293 | ac_status=$? |
ac1cb8d3 VS |
31294 | grep -v '^ *+' conftest.er1 >conftest.err |
31295 | rm -f conftest.er1 | |
31296 | cat conftest.err >&5 | |
a848cd7e SC |
31297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31298 | (exit $ac_status); } && | |
9dd0f6c2 | 31299 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31301 | (eval $ac_try) 2>&5 | |
31302 | ac_status=$? | |
31303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31304 | (exit $ac_status); }; } && | |
31305 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31307 | (eval $ac_try) 2>&5 | |
31308 | ac_status=$? | |
31309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31310 | (exit $ac_status); }; }; then | |
31311 | am_cv_func_iconv=yes | |
31312 | else | |
31313 | echo "$as_me: failed program was:" >&5 | |
31314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31315 | ||
31316 | fi | |
ac1cb8d3 VS |
31317 | rm -f conftest.err conftest.$ac_objext \ |
31318 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31319 | if test "$am_cv_func_iconv" != yes; then |
31320 | am_save_LIBS="$LIBS" | |
31321 | LIBS="$LIBS -liconv" | |
31322 | cat >conftest.$ac_ext <<_ACEOF | |
31323 | /* confdefs.h. */ | |
31324 | _ACEOF | |
31325 | cat confdefs.h >>conftest.$ac_ext | |
31326 | cat >>conftest.$ac_ext <<_ACEOF | |
31327 | /* end confdefs.h. */ | |
31328 | #include <stdlib.h> | |
31329 | #include <iconv.h> | |
31330 | int | |
31331 | main () | |
31332 | { | |
31333 | iconv_t cd = iconv_open("",""); | |
31334 | iconv(cd,NULL,NULL,NULL,NULL); | |
31335 | iconv_close(cd); | |
31336 | ; | |
31337 | return 0; | |
31338 | } | |
31339 | _ACEOF | |
31340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31342 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31343 | ac_status=$? |
ac1cb8d3 VS |
31344 | grep -v '^ *+' conftest.er1 >conftest.err |
31345 | rm -f conftest.er1 | |
31346 | cat conftest.err >&5 | |
a848cd7e SC |
31347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31348 | (exit $ac_status); } && | |
9dd0f6c2 | 31349 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31351 | (eval $ac_try) 2>&5 | |
31352 | ac_status=$? | |
31353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31354 | (exit $ac_status); }; } && | |
31355 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31357 | (eval $ac_try) 2>&5 | |
31358 | ac_status=$? | |
31359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31360 | (exit $ac_status); }; }; then | |
31361 | am_cv_lib_iconv=yes | |
31362 | am_cv_func_iconv=yes | |
31363 | else | |
31364 | echo "$as_me: failed program was:" >&5 | |
31365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31366 | ||
31367 | fi | |
ac1cb8d3 VS |
31368 | rm -f conftest.err conftest.$ac_objext \ |
31369 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31370 | LIBS="$am_save_LIBS" |
31371 | fi | |
31372 | ||
31373 | fi | |
31374 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
31375 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
31376 | if test "$am_cv_func_iconv" = yes; then | |
31377 | ||
31378 | cat >>confdefs.h <<\_ACEOF | |
31379 | #define HAVE_ICONV 1 | |
31380 | _ACEOF | |
31381 | ||
31382 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
31383 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
31384 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
31385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31386 | else | |
31387 | cat >conftest.$ac_ext <<_ACEOF | |
31388 | /* confdefs.h. */ | |
31389 | _ACEOF | |
31390 | cat confdefs.h >>conftest.$ac_ext | |
31391 | cat >>conftest.$ac_ext <<_ACEOF | |
31392 | /* end confdefs.h. */ | |
31393 | ||
31394 | #include <stdlib.h> | |
31395 | #include <iconv.h> | |
31396 | extern | |
31397 | #ifdef __cplusplus | |
31398 | "C" | |
31399 | #endif | |
31400 | #if defined(__STDC__) || defined(__cplusplus) | |
31401 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
31402 | #else | |
31403 | size_t iconv(); | |
31404 | #endif | |
31405 | ||
31406 | int | |
31407 | main () | |
31408 | { | |
31409 | ||
31410 | ; | |
31411 | return 0; | |
31412 | } | |
31413 | _ACEOF | |
31414 | rm -f conftest.$ac_objext | |
31415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31416 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31417 | ac_status=$? |
ac1cb8d3 VS |
31418 | grep -v '^ *+' conftest.er1 >conftest.err |
31419 | rm -f conftest.er1 | |
31420 | cat conftest.err >&5 | |
a848cd7e SC |
31421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31422 | (exit $ac_status); } && | |
9dd0f6c2 | 31423 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31425 | (eval $ac_try) 2>&5 | |
31426 | ac_status=$? | |
31427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31428 | (exit $ac_status); }; } && | |
31429 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31431 | (eval $ac_try) 2>&5 | |
31432 | ac_status=$? | |
31433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31434 | (exit $ac_status); }; }; then | |
31435 | wx_cv_func_iconv_const="no" | |
31436 | else | |
31437 | echo "$as_me: failed program was:" >&5 | |
31438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31439 | ||
31440 | wx_cv_func_iconv_const="yes" | |
31441 | ||
31442 | fi | |
ac1cb8d3 | 31443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31444 | |
31445 | fi | |
31446 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
31447 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
31448 | ||
31449 | iconv_const= | |
31450 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
31451 | iconv_const="const" | |
31452 | fi | |
31453 | ||
31454 | ||
31455 | cat >>confdefs.h <<_ACEOF | |
31456 | #define ICONV_CONST $iconv_const | |
31457 | _ACEOF | |
31458 | ||
31459 | fi | |
31460 | LIBICONV= | |
31461 | if test "$am_cv_lib_iconv" = yes; then | |
31462 | LIBICONV="-liconv" | |
31463 | fi | |
31464 | ||
31465 | ||
31466 | LIBS="$LIBICONV $LIBS" | |
31467 | ac_ext=c | |
31468 | ac_cpp='$CPP $CPPFLAGS' | |
31469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31472 | ||
31473 | ||
31474 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
31475 | ||
31476 | for ac_func in sigaction | |
31477 | do | |
31478 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31479 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31480 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31481 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31483 | else | |
31484 | cat >conftest.$ac_ext <<_ACEOF | |
31485 | /* confdefs.h. */ | |
31486 | _ACEOF | |
31487 | cat confdefs.h >>conftest.$ac_ext | |
31488 | cat >>conftest.$ac_ext <<_ACEOF | |
31489 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31490 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31491 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31492 | #define $ac_func innocuous_$ac_func | |
31493 | ||
a848cd7e SC |
31494 | /* System header to define __stub macros and hopefully few prototypes, |
31495 | which can conflict with char $ac_func (); below. | |
31496 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31497 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31498 | |
a848cd7e SC |
31499 | #ifdef __STDC__ |
31500 | # include <limits.h> | |
31501 | #else | |
31502 | # include <assert.h> | |
31503 | #endif | |
ac1cb8d3 VS |
31504 | |
31505 | #undef $ac_func | |
31506 | ||
a848cd7e SC |
31507 | /* Override any gcc2 internal prototype to avoid an error. */ |
31508 | #ifdef __cplusplus | |
31509 | extern "C" | |
31510 | { | |
31511 | #endif | |
31512 | /* We use char because int might match the return type of a gcc2 | |
31513 | builtin and then its argument prototype would still apply. */ | |
31514 | char $ac_func (); | |
31515 | /* The GNU C library defines this for functions which it implements | |
31516 | to always fail with ENOSYS. Some functions are actually named | |
31517 | something starting with __ and the normal name is an alias. */ | |
31518 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31519 | choke me | |
31520 | #else | |
31521 | char (*f) () = $ac_func; | |
31522 | #endif | |
31523 | #ifdef __cplusplus | |
31524 | } | |
31525 | #endif | |
31526 | ||
31527 | int | |
31528 | main () | |
31529 | { | |
31530 | return f != $ac_func; | |
31531 | ; | |
31532 | return 0; | |
31533 | } | |
31534 | _ACEOF | |
31535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31537 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31538 | ac_status=$? |
ac1cb8d3 VS |
31539 | grep -v '^ *+' conftest.er1 >conftest.err |
31540 | rm -f conftest.er1 | |
31541 | cat conftest.err >&5 | |
a848cd7e SC |
31542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31543 | (exit $ac_status); } && | |
9dd0f6c2 | 31544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31546 | (eval $ac_try) 2>&5 | |
31547 | ac_status=$? | |
31548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31549 | (exit $ac_status); }; } && | |
31550 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31552 | (eval $ac_try) 2>&5 | |
31553 | ac_status=$? | |
31554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31555 | (exit $ac_status); }; }; then | |
31556 | eval "$as_ac_var=yes" | |
31557 | else | |
31558 | echo "$as_me: failed program was:" >&5 | |
31559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31560 | ||
31561 | eval "$as_ac_var=no" | |
31562 | fi | |
ac1cb8d3 VS |
31563 | rm -f conftest.err conftest.$ac_objext \ |
31564 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31565 | fi |
31566 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31567 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31568 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31569 | cat >>confdefs.h <<_ACEOF | |
31570 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31571 | _ACEOF | |
31572 | ||
31573 | fi | |
31574 | done | |
31575 | ||
31576 | ||
31577 | if test "$ac_cv_func_sigaction" = "no"; then | |
31578 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
31579 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
31580 | wxUSE_ON_FATAL_EXCEPTION=no | |
31581 | fi | |
31582 | ||
31583 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
31584 | ||
31585 | ||
31586 | ac_ext=cc | |
31587 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31588 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31589 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31590 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31591 | ||
31592 | ||
31593 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
31594 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
31595 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
31596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31597 | else | |
31598 | ||
31599 | cat >conftest.$ac_ext <<_ACEOF | |
31600 | /* confdefs.h. */ | |
31601 | _ACEOF | |
31602 | cat confdefs.h >>conftest.$ac_ext | |
31603 | cat >>conftest.$ac_ext <<_ACEOF | |
31604 | /* end confdefs.h. */ | |
31605 | #include <signal.h> | |
31606 | int | |
31607 | main () | |
31608 | { | |
31609 | ||
31610 | extern void testSigHandler(int); | |
31611 | ||
31612 | struct sigaction sa; | |
31613 | sa.sa_handler = testSigHandler; | |
31614 | ||
31615 | ; | |
31616 | return 0; | |
31617 | } | |
31618 | _ACEOF | |
31619 | rm -f conftest.$ac_objext | |
31620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31621 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31622 | ac_status=$? |
ac1cb8d3 VS |
31623 | grep -v '^ *+' conftest.er1 >conftest.err |
31624 | rm -f conftest.er1 | |
31625 | cat conftest.err >&5 | |
a848cd7e SC |
31626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31627 | (exit $ac_status); } && | |
9dd0f6c2 | 31628 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31630 | (eval $ac_try) 2>&5 | |
31631 | ac_status=$? | |
31632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31633 | (exit $ac_status); }; } && | |
31634 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31636 | (eval $ac_try) 2>&5 | |
31637 | ac_status=$? | |
31638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31639 | (exit $ac_status); }; }; then | |
31640 | ||
31641 | wx_cv_type_sa_handler=int | |
31642 | ||
31643 | else | |
31644 | echo "$as_me: failed program was:" >&5 | |
31645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31646 | ||
31647 | ||
31648 | wx_cv_type_sa_handler=void | |
31649 | ||
31650 | fi | |
ac1cb8d3 | 31651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31652 | |
31653 | fi | |
31654 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
31655 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
31656 | ||
31657 | ac_ext=c | |
31658 | ac_cpp='$CPP $CPPFLAGS' | |
31659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31662 | ||
31663 | ||
31664 | cat >>confdefs.h <<_ACEOF | |
31665 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
31666 | _ACEOF | |
31667 | ||
31668 | fi | |
31669 | fi | |
31670 | ||
eaff0f0d VZ |
31671 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
31672 | ||
31673 | ||
31674 | ac_ext=cc | |
31675 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31676 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31677 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31678 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31679 | ||
31680 | ||
31681 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
31682 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
31683 | if test "${wx_cv_func_backtrace+set}" = set; then | |
31684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31685 | else | |
31686 | ||
31687 | cat >conftest.$ac_ext <<_ACEOF | |
31688 | /* confdefs.h. */ | |
31689 | _ACEOF | |
31690 | cat confdefs.h >>conftest.$ac_ext | |
31691 | cat >>conftest.$ac_ext <<_ACEOF | |
31692 | /* end confdefs.h. */ | |
31693 | #include <execinfo.h> | |
31694 | int | |
31695 | main () | |
31696 | { | |
31697 | ||
31698 | void *trace[1]; | |
31699 | char **messages; | |
31700 | ||
31701 | backtrace(trace, 1); | |
31702 | messages = backtrace_symbols(trace, 1); | |
31703 | ||
31704 | ; | |
31705 | return 0; | |
31706 | } | |
31707 | _ACEOF | |
31708 | rm -f conftest.$ac_objext | |
31709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31710 | (eval $ac_compile) 2>conftest.er1 | |
31711 | ac_status=$? | |
31712 | grep -v '^ *+' conftest.er1 >conftest.err | |
31713 | rm -f conftest.er1 | |
31714 | cat conftest.err >&5 | |
31715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31716 | (exit $ac_status); } && | |
9dd0f6c2 | 31717 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
31718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31719 | (eval $ac_try) 2>&5 | |
31720 | ac_status=$? | |
31721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31722 | (exit $ac_status); }; } && | |
31723 | { ac_try='test -s conftest.$ac_objext' | |
31724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31725 | (eval $ac_try) 2>&5 | |
31726 | ac_status=$? | |
31727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31728 | (exit $ac_status); }; }; then | |
31729 | wx_cv_func_backtrace=yes | |
31730 | else | |
31731 | echo "$as_me: failed program was:" >&5 | |
31732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31733 | ||
31734 | wx_cv_func_backtrace=no | |
31735 | ||
31736 | fi | |
31737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31738 | ||
31739 | ||
31740 | fi | |
31741 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
31742 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
31743 | ||
31744 | ||
31745 | if test "$wx_cv_func_backtrace" = "no"; then | |
31746 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
31747 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
31748 | wxUSE_STACKWALKER=no | |
31749 | else | |
31750 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
31751 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
31752 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
31753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31754 | else | |
31755 | ||
31756 | cat >conftest.$ac_ext <<_ACEOF | |
31757 | /* confdefs.h. */ | |
31758 | _ACEOF | |
31759 | cat confdefs.h >>conftest.$ac_ext | |
31760 | cat >>conftest.$ac_ext <<_ACEOF | |
31761 | /* end confdefs.h. */ | |
31762 | #include <cxxabi.h> | |
31763 | int | |
31764 | main () | |
31765 | { | |
31766 | ||
31767 | int rc; | |
31768 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
31769 | ||
31770 | ; | |
31771 | return 0; | |
31772 | } | |
31773 | _ACEOF | |
dfe0c803 JS |
31774 | rm -f conftest.$ac_objext conftest$ac_exeext |
31775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31776 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
31777 | ac_status=$? |
31778 | grep -v '^ *+' conftest.er1 >conftest.err | |
31779 | rm -f conftest.er1 | |
31780 | cat conftest.err >&5 | |
31781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31782 | (exit $ac_status); } && | |
9dd0f6c2 | 31783 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
31784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31785 | (eval $ac_try) 2>&5 | |
31786 | ac_status=$? | |
31787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31788 | (exit $ac_status); }; } && | |
dfe0c803 | 31789 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
31790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31791 | (eval $ac_try) 2>&5 | |
31792 | ac_status=$? | |
31793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31794 | (exit $ac_status); }; }; then | |
31795 | wx_cv_func_cxa_demangle=yes | |
31796 | else | |
31797 | echo "$as_me: failed program was:" >&5 | |
31798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31799 | ||
31800 | wx_cv_func_cxa_demangle=no | |
31801 | ||
31802 | fi | |
dfe0c803 JS |
31803 | rm -f conftest.err conftest.$ac_objext \ |
31804 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
31805 | |
31806 | ||
31807 | fi | |
31808 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
31809 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
31810 | ||
31811 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
31812 | cat >>confdefs.h <<\_ACEOF | |
31813 | #define HAVE_CXA_DEMANGLE 1 | |
31814 | _ACEOF | |
31815 | ||
31816 | fi | |
31817 | fi | |
31818 | ||
31819 | ac_ext=c | |
31820 | ac_cpp='$CPP $CPPFLAGS' | |
31821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31824 | ||
31825 | fi | |
31826 | ||
898beab1 DE |
31827 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
31828 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
31829 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
31830 | wxUSE_STACKWALKER=no | |
31831 | fi | |
31832 | ||
31833 | ||
a848cd7e SC |
31834 | |
31835 | ||
31836 | for ac_func in mkstemp mktemp | |
31837 | do | |
31838 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31839 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31840 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31841 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31843 | else | |
31844 | cat >conftest.$ac_ext <<_ACEOF | |
31845 | /* confdefs.h. */ | |
31846 | _ACEOF | |
31847 | cat confdefs.h >>conftest.$ac_ext | |
31848 | cat >>conftest.$ac_ext <<_ACEOF | |
31849 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31850 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31852 | #define $ac_func innocuous_$ac_func | |
31853 | ||
a848cd7e SC |
31854 | /* System header to define __stub macros and hopefully few prototypes, |
31855 | which can conflict with char $ac_func (); below. | |
31856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31857 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31858 | |
a848cd7e SC |
31859 | #ifdef __STDC__ |
31860 | # include <limits.h> | |
31861 | #else | |
31862 | # include <assert.h> | |
31863 | #endif | |
ac1cb8d3 VS |
31864 | |
31865 | #undef $ac_func | |
31866 | ||
a848cd7e SC |
31867 | /* Override any gcc2 internal prototype to avoid an error. */ |
31868 | #ifdef __cplusplus | |
31869 | extern "C" | |
31870 | { | |
31871 | #endif | |
31872 | /* We use char because int might match the return type of a gcc2 | |
31873 | builtin and then its argument prototype would still apply. */ | |
31874 | char $ac_func (); | |
31875 | /* The GNU C library defines this for functions which it implements | |
31876 | to always fail with ENOSYS. Some functions are actually named | |
31877 | something starting with __ and the normal name is an alias. */ | |
31878 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31879 | choke me | |
31880 | #else | |
31881 | char (*f) () = $ac_func; | |
31882 | #endif | |
31883 | #ifdef __cplusplus | |
31884 | } | |
31885 | #endif | |
31886 | ||
31887 | int | |
31888 | main () | |
31889 | { | |
31890 | return f != $ac_func; | |
31891 | ; | |
31892 | return 0; | |
31893 | } | |
31894 | _ACEOF | |
31895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31897 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31898 | ac_status=$? |
ac1cb8d3 VS |
31899 | grep -v '^ *+' conftest.er1 >conftest.err |
31900 | rm -f conftest.er1 | |
31901 | cat conftest.err >&5 | |
a848cd7e SC |
31902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31903 | (exit $ac_status); } && | |
9dd0f6c2 | 31904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31906 | (eval $ac_try) 2>&5 | |
31907 | ac_status=$? | |
31908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31909 | (exit $ac_status); }; } && | |
31910 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31912 | (eval $ac_try) 2>&5 | |
31913 | ac_status=$? | |
31914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31915 | (exit $ac_status); }; }; then | |
31916 | eval "$as_ac_var=yes" | |
31917 | else | |
31918 | echo "$as_me: failed program was:" >&5 | |
31919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31920 | ||
31921 | eval "$as_ac_var=no" | |
31922 | fi | |
ac1cb8d3 VS |
31923 | rm -f conftest.err conftest.$ac_objext \ |
31924 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31925 | fi |
31926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31927 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31928 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31929 | cat >>confdefs.h <<_ACEOF | |
31930 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31931 | _ACEOF | |
31932 | break | |
31933 | fi | |
31934 | done | |
31935 | ||
31936 | ||
31937 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
31938 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
31939 | if test "${wx_cv_func_statfs+set}" = set; then | |
31940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31941 | else | |
31942 | cat >conftest.$ac_ext <<_ACEOF | |
31943 | /* confdefs.h. */ | |
31944 | _ACEOF | |
31945 | cat confdefs.h >>conftest.$ac_ext | |
31946 | cat >>conftest.$ac_ext <<_ACEOF | |
31947 | /* end confdefs.h. */ | |
31948 | ||
31949 | #if defined(__BSD__) | |
31950 | #include <sys/param.h> | |
31951 | #include <sys/mount.h> | |
31952 | #else | |
31953 | #include <sys/vfs.h> | |
31954 | #endif | |
31955 | ||
31956 | int | |
31957 | main () | |
31958 | { | |
31959 | ||
31960 | long l; | |
31961 | struct statfs fs; | |
31962 | statfs("/", &fs); | |
31963 | l = fs.f_bsize; | |
31964 | l += fs.f_blocks; | |
31965 | l += fs.f_bavail; | |
31966 | ||
31967 | ; | |
31968 | return 0; | |
31969 | } | |
31970 | _ACEOF | |
31971 | rm -f conftest.$ac_objext | |
31972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31973 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31974 | ac_status=$? |
ac1cb8d3 VS |
31975 | grep -v '^ *+' conftest.er1 >conftest.err |
31976 | rm -f conftest.er1 | |
31977 | cat conftest.err >&5 | |
a848cd7e SC |
31978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31979 | (exit $ac_status); } && | |
9dd0f6c2 | 31980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
31986 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31988 | (eval $ac_try) 2>&5 | |
31989 | ac_status=$? | |
31990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31991 | (exit $ac_status); }; }; then | |
31992 | ||
31993 | wx_cv_func_statfs=yes | |
31994 | ||
31995 | else | |
31996 | echo "$as_me: failed program was:" >&5 | |
31997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31998 | ||
31999 | ||
32000 | wx_cv_func_statfs=no | |
32001 | ||
32002 | ||
32003 | fi | |
ac1cb8d3 | 32004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32005 | |
32006 | fi | |
32007 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
32008 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
32009 | ||
32010 | if test "$wx_cv_func_statfs" = "yes"; then | |
32011 | wx_cv_type_statvfs_t="struct statfs" | |
32012 | cat >>confdefs.h <<\_ACEOF | |
32013 | #define HAVE_STATFS 1 | |
32014 | _ACEOF | |
32015 | ||
32016 | else | |
32017 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
32018 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
32019 | if test "${wx_cv_func_statvfs+set}" = set; then | |
32020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32021 | else | |
32022 | cat >conftest.$ac_ext <<_ACEOF | |
32023 | /* confdefs.h. */ | |
32024 | _ACEOF | |
32025 | cat confdefs.h >>conftest.$ac_ext | |
32026 | cat >>conftest.$ac_ext <<_ACEOF | |
32027 | /* end confdefs.h. */ | |
32028 | ||
32029 | #include <stddef.h> | |
32030 | #include <sys/statvfs.h> | |
32031 | ||
32032 | int | |
32033 | main () | |
32034 | { | |
32035 | ||
32036 | statvfs("/", NULL); | |
32037 | ||
32038 | ; | |
32039 | return 0; | |
32040 | } | |
32041 | _ACEOF | |
32042 | rm -f conftest.$ac_objext | |
32043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32044 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32045 | ac_status=$? |
ac1cb8d3 VS |
32046 | grep -v '^ *+' conftest.er1 >conftest.err |
32047 | rm -f conftest.er1 | |
32048 | cat conftest.err >&5 | |
a848cd7e SC |
32049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32050 | (exit $ac_status); } && | |
9dd0f6c2 | 32051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32053 | (eval $ac_try) 2>&5 | |
32054 | ac_status=$? | |
32055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32056 | (exit $ac_status); }; } && | |
32057 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32059 | (eval $ac_try) 2>&5 | |
32060 | ac_status=$? | |
32061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32062 | (exit $ac_status); }; }; then | |
32063 | wx_cv_func_statvfs=yes | |
32064 | else | |
32065 | echo "$as_me: failed program was:" >&5 | |
32066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32067 | ||
32068 | wx_cv_func_statvfs=no | |
32069 | ||
32070 | fi | |
ac1cb8d3 | 32071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32072 | |
32073 | fi | |
32074 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
32075 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
32076 | ||
32077 | if test "$wx_cv_func_statvfs" = "yes"; then | |
32078 | ||
32079 | ||
32080 | ac_ext=cc | |
32081 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32082 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32083 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32084 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32085 | ||
32086 | ||
32087 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
32088 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
32089 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
32090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32091 | else | |
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 <sys/statvfs.h> | |
32100 | ||
32101 | int | |
32102 | main () | |
32103 | { | |
32104 | ||
32105 | long l; | |
32106 | statvfs_t fs; | |
32107 | statvfs("/", &fs); | |
32108 | l = fs.f_bsize; | |
32109 | l += fs.f_blocks; | |
32110 | l += fs.f_bavail; | |
32111 | ||
32112 | ; | |
32113 | return 0; | |
32114 | } | |
32115 | _ACEOF | |
32116 | rm -f conftest.$ac_objext | |
32117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32118 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32119 | ac_status=$? |
ac1cb8d3 VS |
32120 | grep -v '^ *+' conftest.er1 >conftest.err |
32121 | rm -f conftest.er1 | |
32122 | cat conftest.err >&5 | |
a848cd7e SC |
32123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32124 | (exit $ac_status); } && | |
9dd0f6c2 | 32125 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32127 | (eval $ac_try) 2>&5 | |
32128 | ac_status=$? | |
32129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32130 | (exit $ac_status); }; } && | |
32131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32133 | (eval $ac_try) 2>&5 | |
32134 | ac_status=$? | |
32135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32136 | (exit $ac_status); }; }; then | |
32137 | wx_cv_type_statvfs_t=statvfs_t | |
32138 | else | |
32139 | echo "$as_me: failed program was:" >&5 | |
32140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32141 | ||
32142 | ||
32143 | cat >conftest.$ac_ext <<_ACEOF | |
32144 | /* confdefs.h. */ | |
32145 | _ACEOF | |
32146 | cat confdefs.h >>conftest.$ac_ext | |
32147 | cat >>conftest.$ac_ext <<_ACEOF | |
32148 | /* end confdefs.h. */ | |
32149 | ||
32150 | #include <sys/statvfs.h> | |
32151 | ||
32152 | int | |
32153 | main () | |
32154 | { | |
32155 | ||
32156 | long l; | |
32157 | struct statvfs fs; | |
32158 | statvfs("/", &fs); | |
32159 | l = fs.f_bsize; | |
32160 | l += fs.f_blocks; | |
32161 | l += fs.f_bavail; | |
32162 | ||
32163 | ; | |
32164 | return 0; | |
32165 | } | |
32166 | _ACEOF | |
32167 | rm -f conftest.$ac_objext | |
32168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32169 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32170 | ac_status=$? |
ac1cb8d3 VS |
32171 | grep -v '^ *+' conftest.er1 >conftest.err |
32172 | rm -f conftest.er1 | |
32173 | cat conftest.err >&5 | |
a848cd7e SC |
32174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32175 | (exit $ac_status); } && | |
9dd0f6c2 | 32176 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32178 | (eval $ac_try) 2>&5 | |
32179 | ac_status=$? | |
32180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32181 | (exit $ac_status); }; } && | |
32182 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32184 | (eval $ac_try) 2>&5 | |
32185 | ac_status=$? | |
32186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32187 | (exit $ac_status); }; }; then | |
32188 | wx_cv_type_statvfs_t="struct statvfs" | |
32189 | else | |
32190 | echo "$as_me: failed program was:" >&5 | |
32191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32192 | ||
32193 | wx_cv_type_statvfs_t="unknown" | |
32194 | ||
32195 | fi | |
ac1cb8d3 | 32196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32197 | |
32198 | ||
32199 | fi | |
ac1cb8d3 | 32200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32201 | |
32202 | fi | |
32203 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
32204 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
32205 | ||
32206 | ac_ext=c | |
32207 | ac_cpp='$CPP $CPPFLAGS' | |
32208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32211 | ||
32212 | ||
32213 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
32214 | cat >>confdefs.h <<\_ACEOF | |
32215 | #define HAVE_STATVFS 1 | |
32216 | _ACEOF | |
32217 | ||
32218 | fi | |
32219 | else | |
32220 | wx_cv_type_statvfs_t="unknown" | |
32221 | fi | |
32222 | fi | |
32223 | ||
32224 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
32225 | cat >>confdefs.h <<_ACEOF | |
32226 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
32227 | _ACEOF | |
32228 | ||
32229 | else | |
32230 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
32231 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
32232 | fi | |
32233 | ||
32234 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
32235 | ||
32236 | ||
32237 | for ac_func in fcntl flock | |
32238 | do | |
32239 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32240 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32241 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32242 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32244 | else | |
32245 | cat >conftest.$ac_ext <<_ACEOF | |
32246 | /* confdefs.h. */ | |
32247 | _ACEOF | |
32248 | cat confdefs.h >>conftest.$ac_ext | |
32249 | cat >>conftest.$ac_ext <<_ACEOF | |
32250 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32251 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32252 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32253 | #define $ac_func innocuous_$ac_func | |
32254 | ||
a848cd7e SC |
32255 | /* System header to define __stub macros and hopefully few prototypes, |
32256 | which can conflict with char $ac_func (); below. | |
32257 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32258 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32259 | |
a848cd7e SC |
32260 | #ifdef __STDC__ |
32261 | # include <limits.h> | |
32262 | #else | |
32263 | # include <assert.h> | |
32264 | #endif | |
ac1cb8d3 VS |
32265 | |
32266 | #undef $ac_func | |
32267 | ||
a848cd7e SC |
32268 | /* Override any gcc2 internal prototype to avoid an error. */ |
32269 | #ifdef __cplusplus | |
32270 | extern "C" | |
32271 | { | |
32272 | #endif | |
32273 | /* We use char because int might match the return type of a gcc2 | |
32274 | builtin and then its argument prototype would still apply. */ | |
32275 | char $ac_func (); | |
32276 | /* The GNU C library defines this for functions which it implements | |
32277 | to always fail with ENOSYS. Some functions are actually named | |
32278 | something starting with __ and the normal name is an alias. */ | |
32279 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32280 | choke me | |
32281 | #else | |
32282 | char (*f) () = $ac_func; | |
32283 | #endif | |
32284 | #ifdef __cplusplus | |
32285 | } | |
32286 | #endif | |
32287 | ||
32288 | int | |
32289 | main () | |
32290 | { | |
32291 | return f != $ac_func; | |
32292 | ; | |
32293 | return 0; | |
32294 | } | |
32295 | _ACEOF | |
32296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32298 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32299 | ac_status=$? |
ac1cb8d3 VS |
32300 | grep -v '^ *+' conftest.er1 >conftest.err |
32301 | rm -f conftest.er1 | |
32302 | cat conftest.err >&5 | |
a848cd7e SC |
32303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32304 | (exit $ac_status); } && | |
9dd0f6c2 | 32305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
32311 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32313 | (eval $ac_try) 2>&5 | |
32314 | ac_status=$? | |
32315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32316 | (exit $ac_status); }; }; then | |
32317 | eval "$as_ac_var=yes" | |
32318 | else | |
32319 | echo "$as_me: failed program was:" >&5 | |
32320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32321 | ||
32322 | eval "$as_ac_var=no" | |
32323 | fi | |
ac1cb8d3 VS |
32324 | rm -f conftest.err conftest.$ac_objext \ |
32325 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32326 | fi |
32327 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32328 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32329 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32330 | cat >>confdefs.h <<_ACEOF | |
32331 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32332 | _ACEOF | |
32333 | break | |
32334 | fi | |
32335 | done | |
32336 | ||
32337 | ||
32338 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
32339 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
32340 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
32341 | wxUSE_SNGLINST_CHECKER=no | |
32342 | fi | |
32343 | fi | |
32344 | ||
32345 | ||
32346 | for ac_func in timegm | |
32347 | do | |
32348 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32349 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32350 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32351 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32353 | else | |
32354 | cat >conftest.$ac_ext <<_ACEOF | |
32355 | /* confdefs.h. */ | |
32356 | _ACEOF | |
32357 | cat confdefs.h >>conftest.$ac_ext | |
32358 | cat >>conftest.$ac_ext <<_ACEOF | |
32359 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32360 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32361 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32362 | #define $ac_func innocuous_$ac_func | |
32363 | ||
a848cd7e SC |
32364 | /* System header to define __stub macros and hopefully few prototypes, |
32365 | which can conflict with char $ac_func (); below. | |
32366 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32367 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32368 | |
a848cd7e SC |
32369 | #ifdef __STDC__ |
32370 | # include <limits.h> | |
32371 | #else | |
32372 | # include <assert.h> | |
32373 | #endif | |
ac1cb8d3 VS |
32374 | |
32375 | #undef $ac_func | |
32376 | ||
a848cd7e SC |
32377 | /* Override any gcc2 internal prototype to avoid an error. */ |
32378 | #ifdef __cplusplus | |
32379 | extern "C" | |
32380 | { | |
32381 | #endif | |
32382 | /* We use char because int might match the return type of a gcc2 | |
32383 | builtin and then its argument prototype would still apply. */ | |
32384 | char $ac_func (); | |
32385 | /* The GNU C library defines this for functions which it implements | |
32386 | to always fail with ENOSYS. Some functions are actually named | |
32387 | something starting with __ and the normal name is an alias. */ | |
32388 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32389 | choke me | |
32390 | #else | |
32391 | char (*f) () = $ac_func; | |
32392 | #endif | |
32393 | #ifdef __cplusplus | |
32394 | } | |
32395 | #endif | |
32396 | ||
32397 | int | |
32398 | main () | |
32399 | { | |
32400 | return f != $ac_func; | |
32401 | ; | |
32402 | return 0; | |
32403 | } | |
32404 | _ACEOF | |
32405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32407 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32408 | ac_status=$? |
ac1cb8d3 VS |
32409 | grep -v '^ *+' conftest.er1 >conftest.err |
32410 | rm -f conftest.er1 | |
32411 | cat conftest.err >&5 | |
a848cd7e SC |
32412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32413 | (exit $ac_status); } && | |
9dd0f6c2 | 32414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32416 | (eval $ac_try) 2>&5 | |
32417 | ac_status=$? | |
32418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32419 | (exit $ac_status); }; } && | |
32420 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32422 | (eval $ac_try) 2>&5 | |
32423 | ac_status=$? | |
32424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32425 | (exit $ac_status); }; }; then | |
32426 | eval "$as_ac_var=yes" | |
32427 | else | |
32428 | echo "$as_me: failed program was:" >&5 | |
32429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32430 | ||
32431 | eval "$as_ac_var=no" | |
32432 | fi | |
ac1cb8d3 VS |
32433 | rm -f conftest.err conftest.$ac_objext \ |
32434 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32435 | fi |
32436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32437 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32438 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32439 | cat >>confdefs.h <<_ACEOF | |
32440 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32441 | _ACEOF | |
32442 | ||
32443 | fi | |
32444 | done | |
32445 | ||
32446 | ||
32447 | ||
32448 | ||
32449 | for ac_func in putenv setenv | |
32450 | do | |
32451 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32452 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32453 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32454 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32456 | else | |
32457 | cat >conftest.$ac_ext <<_ACEOF | |
32458 | /* confdefs.h. */ | |
32459 | _ACEOF | |
32460 | cat confdefs.h >>conftest.$ac_ext | |
32461 | cat >>conftest.$ac_ext <<_ACEOF | |
32462 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32463 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32464 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32465 | #define $ac_func innocuous_$ac_func | |
32466 | ||
a848cd7e SC |
32467 | /* System header to define __stub macros and hopefully few prototypes, |
32468 | which can conflict with char $ac_func (); below. | |
32469 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32470 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32471 | |
a848cd7e SC |
32472 | #ifdef __STDC__ |
32473 | # include <limits.h> | |
32474 | #else | |
32475 | # include <assert.h> | |
32476 | #endif | |
ac1cb8d3 VS |
32477 | |
32478 | #undef $ac_func | |
32479 | ||
a848cd7e SC |
32480 | /* Override any gcc2 internal prototype to avoid an error. */ |
32481 | #ifdef __cplusplus | |
32482 | extern "C" | |
32483 | { | |
32484 | #endif | |
32485 | /* We use char because int might match the return type of a gcc2 | |
32486 | builtin and then its argument prototype would still apply. */ | |
32487 | char $ac_func (); | |
32488 | /* The GNU C library defines this for functions which it implements | |
32489 | to always fail with ENOSYS. Some functions are actually named | |
32490 | something starting with __ and the normal name is an alias. */ | |
32491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32492 | choke me | |
32493 | #else | |
32494 | char (*f) () = $ac_func; | |
32495 | #endif | |
32496 | #ifdef __cplusplus | |
32497 | } | |
32498 | #endif | |
32499 | ||
32500 | int | |
32501 | main () | |
32502 | { | |
32503 | return f != $ac_func; | |
32504 | ; | |
32505 | return 0; | |
32506 | } | |
32507 | _ACEOF | |
32508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32510 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32511 | ac_status=$? |
ac1cb8d3 VS |
32512 | grep -v '^ *+' conftest.er1 >conftest.err |
32513 | rm -f conftest.er1 | |
32514 | cat conftest.err >&5 | |
a848cd7e SC |
32515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32516 | (exit $ac_status); } && | |
9dd0f6c2 | 32517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32519 | (eval $ac_try) 2>&5 | |
32520 | ac_status=$? | |
32521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32522 | (exit $ac_status); }; } && | |
32523 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32525 | (eval $ac_try) 2>&5 | |
32526 | ac_status=$? | |
32527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32528 | (exit $ac_status); }; }; then | |
32529 | eval "$as_ac_var=yes" | |
32530 | else | |
32531 | echo "$as_me: failed program was:" >&5 | |
32532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32533 | ||
32534 | eval "$as_ac_var=no" | |
32535 | fi | |
ac1cb8d3 VS |
32536 | rm -f conftest.err conftest.$ac_objext \ |
32537 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32538 | fi |
32539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32540 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32541 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32542 | cat >>confdefs.h <<_ACEOF | |
32543 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32544 | _ACEOF | |
32545 | break | |
32546 | fi | |
32547 | done | |
32548 | ||
32549 | ||
32550 | HAVE_SOME_SLEEP_FUNC=0 | |
32551 | if test "$USE_BEOS" = 1; then | |
32552 | cat >>confdefs.h <<\_ACEOF | |
32553 | #define HAVE_SLEEP 1 | |
32554 | _ACEOF | |
32555 | ||
32556 | HAVE_SOME_SLEEP_FUNC=1 | |
32557 | fi | |
32558 | ||
32559 | if test "$USE_DARWIN" = 1; then | |
32560 | cat >>confdefs.h <<\_ACEOF | |
32561 | #define HAVE_USLEEP 1 | |
32562 | _ACEOF | |
32563 | ||
32564 | HAVE_SOME_SLEEP_FUNC=1 | |
32565 | fi | |
32566 | ||
32567 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
32568 | POSIX4_LINK= | |
32569 | ||
32570 | for ac_func in nanosleep | |
32571 | do | |
32572 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32573 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32574 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32575 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32577 | else | |
32578 | cat >conftest.$ac_ext <<_ACEOF | |
32579 | /* confdefs.h. */ | |
32580 | _ACEOF | |
32581 | cat confdefs.h >>conftest.$ac_ext | |
32582 | cat >>conftest.$ac_ext <<_ACEOF | |
32583 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32584 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32586 | #define $ac_func innocuous_$ac_func | |
32587 | ||
a848cd7e SC |
32588 | /* System header to define __stub macros and hopefully few prototypes, |
32589 | which can conflict with char $ac_func (); below. | |
32590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32591 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32592 | |
a848cd7e SC |
32593 | #ifdef __STDC__ |
32594 | # include <limits.h> | |
32595 | #else | |
32596 | # include <assert.h> | |
32597 | #endif | |
ac1cb8d3 VS |
32598 | |
32599 | #undef $ac_func | |
32600 | ||
a848cd7e SC |
32601 | /* Override any gcc2 internal prototype to avoid an error. */ |
32602 | #ifdef __cplusplus | |
32603 | extern "C" | |
32604 | { | |
32605 | #endif | |
32606 | /* We use char because int might match the return type of a gcc2 | |
32607 | builtin and then its argument prototype would still apply. */ | |
32608 | char $ac_func (); | |
32609 | /* The GNU C library defines this for functions which it implements | |
32610 | to always fail with ENOSYS. Some functions are actually named | |
32611 | something starting with __ and the normal name is an alias. */ | |
32612 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32613 | choke me | |
32614 | #else | |
32615 | char (*f) () = $ac_func; | |
32616 | #endif | |
32617 | #ifdef __cplusplus | |
32618 | } | |
32619 | #endif | |
32620 | ||
32621 | int | |
32622 | main () | |
32623 | { | |
32624 | return f != $ac_func; | |
32625 | ; | |
32626 | return 0; | |
32627 | } | |
32628 | _ACEOF | |
32629 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32631 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32632 | ac_status=$? |
ac1cb8d3 VS |
32633 | grep -v '^ *+' conftest.er1 >conftest.err |
32634 | rm -f conftest.er1 | |
32635 | cat conftest.err >&5 | |
a848cd7e SC |
32636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32637 | (exit $ac_status); } && | |
9dd0f6c2 | 32638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32640 | (eval $ac_try) 2>&5 | |
32641 | ac_status=$? | |
32642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32643 | (exit $ac_status); }; } && | |
32644 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32646 | (eval $ac_try) 2>&5 | |
32647 | ac_status=$? | |
32648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32649 | (exit $ac_status); }; }; then | |
32650 | eval "$as_ac_var=yes" | |
32651 | else | |
32652 | echo "$as_me: failed program was:" >&5 | |
32653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32654 | ||
32655 | eval "$as_ac_var=no" | |
32656 | fi | |
ac1cb8d3 VS |
32657 | rm -f conftest.err conftest.$ac_objext \ |
32658 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32659 | fi |
32660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32661 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32662 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32663 | cat >>confdefs.h <<_ACEOF | |
32664 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32665 | _ACEOF | |
32666 | cat >>confdefs.h <<\_ACEOF | |
32667 | #define HAVE_NANOSLEEP 1 | |
32668 | _ACEOF | |
32669 | ||
32670 | else | |
32671 | ||
32672 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
32673 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
32674 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
32675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32676 | else | |
32677 | ac_check_lib_save_LIBS=$LIBS | |
32678 | LIBS="-lposix4 $LIBS" | |
32679 | cat >conftest.$ac_ext <<_ACEOF | |
32680 | /* confdefs.h. */ | |
32681 | _ACEOF | |
32682 | cat confdefs.h >>conftest.$ac_ext | |
32683 | cat >>conftest.$ac_ext <<_ACEOF | |
32684 | /* end confdefs.h. */ | |
32685 | ||
32686 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32687 | #ifdef __cplusplus | |
32688 | extern "C" | |
32689 | #endif | |
32690 | /* We use char because int might match the return type of a gcc2 | |
32691 | builtin and then its argument prototype would still apply. */ | |
32692 | char nanosleep (); | |
32693 | int | |
32694 | main () | |
32695 | { | |
32696 | nanosleep (); | |
32697 | ; | |
32698 | return 0; | |
32699 | } | |
32700 | _ACEOF | |
32701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32703 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32704 | ac_status=$? |
ac1cb8d3 VS |
32705 | grep -v '^ *+' conftest.er1 >conftest.err |
32706 | rm -f conftest.er1 | |
32707 | cat conftest.err >&5 | |
a848cd7e SC |
32708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32709 | (exit $ac_status); } && | |
9dd0f6c2 | 32710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32712 | (eval $ac_try) 2>&5 | |
32713 | ac_status=$? | |
32714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32715 | (exit $ac_status); }; } && | |
32716 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32718 | (eval $ac_try) 2>&5 | |
32719 | ac_status=$? | |
32720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32721 | (exit $ac_status); }; }; then | |
32722 | ac_cv_lib_posix4_nanosleep=yes | |
32723 | else | |
32724 | echo "$as_me: failed program was:" >&5 | |
32725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32726 | ||
32727 | ac_cv_lib_posix4_nanosleep=no | |
32728 | fi | |
ac1cb8d3 VS |
32729 | rm -f conftest.err conftest.$ac_objext \ |
32730 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32731 | LIBS=$ac_check_lib_save_LIBS |
32732 | fi | |
32733 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
32734 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
32735 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
32736 | ||
32737 | cat >>confdefs.h <<\_ACEOF | |
32738 | #define HAVE_NANOSLEEP 1 | |
32739 | _ACEOF | |
32740 | ||
32741 | POSIX4_LINK=" -lposix4" | |
32742 | ||
32743 | else | |
32744 | ||
32745 | ||
32746 | for ac_func in usleep | |
32747 | do | |
32748 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32749 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32750 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32751 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32753 | else | |
32754 | cat >conftest.$ac_ext <<_ACEOF | |
32755 | /* confdefs.h. */ | |
32756 | _ACEOF | |
32757 | cat confdefs.h >>conftest.$ac_ext | |
32758 | cat >>conftest.$ac_ext <<_ACEOF | |
32759 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32760 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32761 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32762 | #define $ac_func innocuous_$ac_func | |
32763 | ||
a848cd7e SC |
32764 | /* System header to define __stub macros and hopefully few prototypes, |
32765 | which can conflict with char $ac_func (); below. | |
32766 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32767 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32768 | |
a848cd7e SC |
32769 | #ifdef __STDC__ |
32770 | # include <limits.h> | |
32771 | #else | |
32772 | # include <assert.h> | |
32773 | #endif | |
ac1cb8d3 VS |
32774 | |
32775 | #undef $ac_func | |
32776 | ||
a848cd7e SC |
32777 | /* Override any gcc2 internal prototype to avoid an error. */ |
32778 | #ifdef __cplusplus | |
32779 | extern "C" | |
32780 | { | |
32781 | #endif | |
32782 | /* We use char because int might match the return type of a gcc2 | |
32783 | builtin and then its argument prototype would still apply. */ | |
32784 | char $ac_func (); | |
32785 | /* The GNU C library defines this for functions which it implements | |
32786 | to always fail with ENOSYS. Some functions are actually named | |
32787 | something starting with __ and the normal name is an alias. */ | |
32788 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32789 | choke me | |
32790 | #else | |
32791 | char (*f) () = $ac_func; | |
32792 | #endif | |
32793 | #ifdef __cplusplus | |
32794 | } | |
32795 | #endif | |
32796 | ||
32797 | int | |
32798 | main () | |
32799 | { | |
32800 | return f != $ac_func; | |
32801 | ; | |
32802 | return 0; | |
32803 | } | |
32804 | _ACEOF | |
32805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32807 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32808 | ac_status=$? |
ac1cb8d3 VS |
32809 | grep -v '^ *+' conftest.er1 >conftest.err |
32810 | rm -f conftest.er1 | |
32811 | cat conftest.err >&5 | |
a848cd7e SC |
32812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32813 | (exit $ac_status); } && | |
9dd0f6c2 | 32814 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32816 | (eval $ac_try) 2>&5 | |
32817 | ac_status=$? | |
32818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32819 | (exit $ac_status); }; } && | |
32820 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32822 | (eval $ac_try) 2>&5 | |
32823 | ac_status=$? | |
32824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32825 | (exit $ac_status); }; }; then | |
32826 | eval "$as_ac_var=yes" | |
32827 | else | |
32828 | echo "$as_me: failed program was:" >&5 | |
32829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32830 | ||
32831 | eval "$as_ac_var=no" | |
32832 | fi | |
ac1cb8d3 VS |
32833 | rm -f conftest.err conftest.$ac_objext \ |
32834 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32835 | fi |
32836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32837 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32838 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32839 | cat >>confdefs.h <<_ACEOF | |
32840 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32841 | _ACEOF | |
32842 | cat >>confdefs.h <<\_ACEOF | |
32843 | #define HAVE_USLEEP 1 | |
32844 | _ACEOF | |
32845 | ||
32846 | else | |
32847 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
32848 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
32849 | ||
32850 | fi | |
32851 | done | |
32852 | ||
32853 | ||
32854 | ||
32855 | fi | |
32856 | ||
32857 | ||
32858 | ||
32859 | fi | |
32860 | done | |
32861 | ||
32862 | fi | |
32863 | ||
32864 | ||
32865 | ||
32866 | for ac_func in uname gethostname | |
32867 | do | |
32868 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32869 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32870 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32871 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32873 | else | |
32874 | cat >conftest.$ac_ext <<_ACEOF | |
32875 | /* confdefs.h. */ | |
32876 | _ACEOF | |
32877 | cat confdefs.h >>conftest.$ac_ext | |
32878 | cat >>conftest.$ac_ext <<_ACEOF | |
32879 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32880 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32881 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32882 | #define $ac_func innocuous_$ac_func | |
32883 | ||
a848cd7e SC |
32884 | /* System header to define __stub macros and hopefully few prototypes, |
32885 | which can conflict with char $ac_func (); below. | |
32886 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32887 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32888 | |
a848cd7e SC |
32889 | #ifdef __STDC__ |
32890 | # include <limits.h> | |
32891 | #else | |
32892 | # include <assert.h> | |
32893 | #endif | |
ac1cb8d3 VS |
32894 | |
32895 | #undef $ac_func | |
32896 | ||
a848cd7e SC |
32897 | /* Override any gcc2 internal prototype to avoid an error. */ |
32898 | #ifdef __cplusplus | |
32899 | extern "C" | |
32900 | { | |
32901 | #endif | |
32902 | /* We use char because int might match the return type of a gcc2 | |
32903 | builtin and then its argument prototype would still apply. */ | |
32904 | char $ac_func (); | |
32905 | /* The GNU C library defines this for functions which it implements | |
32906 | to always fail with ENOSYS. Some functions are actually named | |
32907 | something starting with __ and the normal name is an alias. */ | |
32908 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32909 | choke me | |
32910 | #else | |
32911 | char (*f) () = $ac_func; | |
32912 | #endif | |
32913 | #ifdef __cplusplus | |
32914 | } | |
32915 | #endif | |
32916 | ||
32917 | int | |
32918 | main () | |
32919 | { | |
32920 | return f != $ac_func; | |
32921 | ; | |
32922 | return 0; | |
32923 | } | |
32924 | _ACEOF | |
32925 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32927 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32928 | ac_status=$? |
ac1cb8d3 VS |
32929 | grep -v '^ *+' conftest.er1 >conftest.err |
32930 | rm -f conftest.er1 | |
32931 | cat conftest.err >&5 | |
a848cd7e SC |
32932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32933 | (exit $ac_status); } && | |
9dd0f6c2 | 32934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32936 | (eval $ac_try) 2>&5 | |
32937 | ac_status=$? | |
32938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32939 | (exit $ac_status); }; } && | |
32940 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32942 | (eval $ac_try) 2>&5 | |
32943 | ac_status=$? | |
32944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32945 | (exit $ac_status); }; }; then | |
32946 | eval "$as_ac_var=yes" | |
32947 | else | |
32948 | echo "$as_me: failed program was:" >&5 | |
32949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32950 | ||
32951 | eval "$as_ac_var=no" | |
32952 | fi | |
ac1cb8d3 VS |
32953 | rm -f conftest.err conftest.$ac_objext \ |
32954 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32955 | fi |
32956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32957 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32958 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32959 | cat >>confdefs.h <<_ACEOF | |
32960 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32961 | _ACEOF | |
32962 | break | |
32963 | fi | |
32964 | done | |
32965 | ||
32966 | ||
32967 | ||
32968 | ||
32969 | ac_ext=cc | |
32970 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32971 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32972 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32973 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32974 | ||
32975 | ||
32976 | ||
32977 | for ac_func in strtok_r | |
32978 | do | |
32979 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32980 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32981 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32982 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32984 | else | |
32985 | cat >conftest.$ac_ext <<_ACEOF | |
32986 | /* confdefs.h. */ | |
32987 | _ACEOF | |
32988 | cat confdefs.h >>conftest.$ac_ext | |
32989 | cat >>conftest.$ac_ext <<_ACEOF | |
32990 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32991 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32992 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32993 | #define $ac_func innocuous_$ac_func | |
32994 | ||
a848cd7e SC |
32995 | /* System header to define __stub macros and hopefully few prototypes, |
32996 | which can conflict with char $ac_func (); below. | |
32997 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32998 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32999 | |
a848cd7e SC |
33000 | #ifdef __STDC__ |
33001 | # include <limits.h> | |
33002 | #else | |
33003 | # include <assert.h> | |
33004 | #endif | |
ac1cb8d3 VS |
33005 | |
33006 | #undef $ac_func | |
33007 | ||
a848cd7e SC |
33008 | /* Override any gcc2 internal prototype to avoid an error. */ |
33009 | #ifdef __cplusplus | |
33010 | extern "C" | |
33011 | { | |
33012 | #endif | |
33013 | /* We use char because int might match the return type of a gcc2 | |
33014 | builtin and then its argument prototype would still apply. */ | |
33015 | char $ac_func (); | |
33016 | /* The GNU C library defines this for functions which it implements | |
33017 | to always fail with ENOSYS. Some functions are actually named | |
33018 | something starting with __ and the normal name is an alias. */ | |
33019 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33020 | choke me | |
33021 | #else | |
33022 | char (*f) () = $ac_func; | |
33023 | #endif | |
33024 | #ifdef __cplusplus | |
33025 | } | |
33026 | #endif | |
33027 | ||
33028 | int | |
33029 | main () | |
33030 | { | |
33031 | return f != $ac_func; | |
33032 | ; | |
33033 | return 0; | |
33034 | } | |
33035 | _ACEOF | |
33036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33038 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33039 | ac_status=$? |
ac1cb8d3 VS |
33040 | grep -v '^ *+' conftest.er1 >conftest.err |
33041 | rm -f conftest.er1 | |
33042 | cat conftest.err >&5 | |
a848cd7e SC |
33043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33044 | (exit $ac_status); } && | |
9dd0f6c2 | 33045 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33047 | (eval $ac_try) 2>&5 | |
33048 | ac_status=$? | |
33049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33050 | (exit $ac_status); }; } && | |
33051 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33053 | (eval $ac_try) 2>&5 | |
33054 | ac_status=$? | |
33055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33056 | (exit $ac_status); }; }; then | |
33057 | eval "$as_ac_var=yes" | |
33058 | else | |
33059 | echo "$as_me: failed program was:" >&5 | |
33060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33061 | ||
33062 | eval "$as_ac_var=no" | |
33063 | fi | |
ac1cb8d3 VS |
33064 | rm -f conftest.err conftest.$ac_objext \ |
33065 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33066 | fi |
33067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33068 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33069 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33070 | cat >>confdefs.h <<_ACEOF | |
33071 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33072 | _ACEOF | |
33073 | ||
33074 | fi | |
33075 | done | |
33076 | ||
33077 | ||
33078 | ac_ext=c | |
33079 | ac_cpp='$CPP $CPPFLAGS' | |
33080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33083 | ||
33084 | ||
33085 | INET_LINK= | |
33086 | ||
33087 | for ac_func in inet_addr | |
33088 | do | |
33089 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33090 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33091 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33092 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33094 | else | |
33095 | cat >conftest.$ac_ext <<_ACEOF | |
33096 | /* confdefs.h. */ | |
33097 | _ACEOF | |
33098 | cat confdefs.h >>conftest.$ac_ext | |
33099 | cat >>conftest.$ac_ext <<_ACEOF | |
33100 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33101 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33102 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33103 | #define $ac_func innocuous_$ac_func | |
33104 | ||
a848cd7e SC |
33105 | /* System header to define __stub macros and hopefully few prototypes, |
33106 | which can conflict with char $ac_func (); below. | |
33107 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33108 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33109 | |
a848cd7e SC |
33110 | #ifdef __STDC__ |
33111 | # include <limits.h> | |
33112 | #else | |
33113 | # include <assert.h> | |
33114 | #endif | |
ac1cb8d3 VS |
33115 | |
33116 | #undef $ac_func | |
33117 | ||
a848cd7e SC |
33118 | /* Override any gcc2 internal prototype to avoid an error. */ |
33119 | #ifdef __cplusplus | |
33120 | extern "C" | |
33121 | { | |
33122 | #endif | |
33123 | /* We use char because int might match the return type of a gcc2 | |
33124 | builtin and then its argument prototype would still apply. */ | |
33125 | char $ac_func (); | |
33126 | /* The GNU C library defines this for functions which it implements | |
33127 | to always fail with ENOSYS. Some functions are actually named | |
33128 | something starting with __ and the normal name is an alias. */ | |
33129 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33130 | choke me | |
33131 | #else | |
33132 | char (*f) () = $ac_func; | |
33133 | #endif | |
33134 | #ifdef __cplusplus | |
33135 | } | |
33136 | #endif | |
33137 | ||
33138 | int | |
33139 | main () | |
33140 | { | |
33141 | return f != $ac_func; | |
33142 | ; | |
33143 | return 0; | |
33144 | } | |
33145 | _ACEOF | |
33146 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33148 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33149 | ac_status=$? |
ac1cb8d3 VS |
33150 | grep -v '^ *+' conftest.er1 >conftest.err |
33151 | rm -f conftest.er1 | |
33152 | cat conftest.err >&5 | |
a848cd7e SC |
33153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33154 | (exit $ac_status); } && | |
9dd0f6c2 | 33155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33157 | (eval $ac_try) 2>&5 | |
33158 | ac_status=$? | |
33159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33160 | (exit $ac_status); }; } && | |
33161 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33163 | (eval $ac_try) 2>&5 | |
33164 | ac_status=$? | |
33165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33166 | (exit $ac_status); }; }; then | |
33167 | eval "$as_ac_var=yes" | |
33168 | else | |
33169 | echo "$as_me: failed program was:" >&5 | |
33170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33171 | ||
33172 | eval "$as_ac_var=no" | |
33173 | fi | |
ac1cb8d3 VS |
33174 | rm -f conftest.err conftest.$ac_objext \ |
33175 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33176 | fi |
33177 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33178 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33179 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33180 | cat >>confdefs.h <<_ACEOF | |
33181 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33182 | _ACEOF | |
33183 | cat >>confdefs.h <<\_ACEOF | |
33184 | #define HAVE_INET_ADDR 1 | |
33185 | _ACEOF | |
33186 | ||
33187 | else | |
33188 | ||
33189 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
33190 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
33191 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
33192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33193 | else | |
33194 | ac_check_lib_save_LIBS=$LIBS | |
33195 | LIBS="-lnsl $LIBS" | |
33196 | cat >conftest.$ac_ext <<_ACEOF | |
33197 | /* confdefs.h. */ | |
33198 | _ACEOF | |
33199 | cat confdefs.h >>conftest.$ac_ext | |
33200 | cat >>conftest.$ac_ext <<_ACEOF | |
33201 | /* end confdefs.h. */ | |
33202 | ||
33203 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33204 | #ifdef __cplusplus | |
33205 | extern "C" | |
33206 | #endif | |
33207 | /* We use char because int might match the return type of a gcc2 | |
33208 | builtin and then its argument prototype would still apply. */ | |
33209 | char inet_addr (); | |
33210 | int | |
33211 | main () | |
33212 | { | |
33213 | inet_addr (); | |
33214 | ; | |
33215 | return 0; | |
33216 | } | |
33217 | _ACEOF | |
33218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33220 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33221 | ac_status=$? |
ac1cb8d3 VS |
33222 | grep -v '^ *+' conftest.er1 >conftest.err |
33223 | rm -f conftest.er1 | |
33224 | cat conftest.err >&5 | |
a848cd7e SC |
33225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33226 | (exit $ac_status); } && | |
9dd0f6c2 | 33227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33229 | (eval $ac_try) 2>&5 | |
33230 | ac_status=$? | |
33231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33232 | (exit $ac_status); }; } && | |
33233 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33235 | (eval $ac_try) 2>&5 | |
33236 | ac_status=$? | |
33237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33238 | (exit $ac_status); }; }; then | |
33239 | ac_cv_lib_nsl_inet_addr=yes | |
33240 | else | |
33241 | echo "$as_me: failed program was:" >&5 | |
33242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33243 | ||
33244 | ac_cv_lib_nsl_inet_addr=no | |
33245 | fi | |
ac1cb8d3 VS |
33246 | rm -f conftest.err conftest.$ac_objext \ |
33247 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33248 | LIBS=$ac_check_lib_save_LIBS |
33249 | fi | |
33250 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
33251 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
33252 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
33253 | INET_LINK="nsl" | |
33254 | else | |
33255 | ||
33256 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
33257 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
33258 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
33259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33260 | else | |
33261 | ac_check_lib_save_LIBS=$LIBS | |
33262 | LIBS="-lresolv $LIBS" | |
33263 | cat >conftest.$ac_ext <<_ACEOF | |
33264 | /* confdefs.h. */ | |
33265 | _ACEOF | |
33266 | cat confdefs.h >>conftest.$ac_ext | |
33267 | cat >>conftest.$ac_ext <<_ACEOF | |
33268 | /* end confdefs.h. */ | |
33269 | ||
33270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33271 | #ifdef __cplusplus | |
33272 | extern "C" | |
33273 | #endif | |
33274 | /* We use char because int might match the return type of a gcc2 | |
33275 | builtin and then its argument prototype would still apply. */ | |
33276 | char inet_addr (); | |
33277 | int | |
33278 | main () | |
33279 | { | |
33280 | inet_addr (); | |
33281 | ; | |
33282 | return 0; | |
33283 | } | |
33284 | _ACEOF | |
33285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33287 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33288 | ac_status=$? |
ac1cb8d3 VS |
33289 | grep -v '^ *+' conftest.er1 >conftest.err |
33290 | rm -f conftest.er1 | |
33291 | cat conftest.err >&5 | |
a848cd7e SC |
33292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33293 | (exit $ac_status); } && | |
9dd0f6c2 | 33294 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33296 | (eval $ac_try) 2>&5 | |
33297 | ac_status=$? | |
33298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33299 | (exit $ac_status); }; } && | |
33300 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33302 | (eval $ac_try) 2>&5 | |
33303 | ac_status=$? | |
33304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33305 | (exit $ac_status); }; }; then | |
33306 | ac_cv_lib_resolv_inet_addr=yes | |
33307 | else | |
33308 | echo "$as_me: failed program was:" >&5 | |
33309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33310 | ||
33311 | ac_cv_lib_resolv_inet_addr=no | |
33312 | fi | |
ac1cb8d3 VS |
33313 | rm -f conftest.err conftest.$ac_objext \ |
33314 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33315 | LIBS=$ac_check_lib_save_LIBS |
33316 | fi | |
33317 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
33318 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
33319 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
33320 | INET_LINK="resolv" | |
33321 | else | |
33322 | ||
33323 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
33324 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
33325 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
33326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33327 | else | |
33328 | ac_check_lib_save_LIBS=$LIBS | |
33329 | LIBS="-lsocket $LIBS" | |
33330 | cat >conftest.$ac_ext <<_ACEOF | |
33331 | /* confdefs.h. */ | |
33332 | _ACEOF | |
33333 | cat confdefs.h >>conftest.$ac_ext | |
33334 | cat >>conftest.$ac_ext <<_ACEOF | |
33335 | /* end confdefs.h. */ | |
33336 | ||
33337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33338 | #ifdef __cplusplus | |
33339 | extern "C" | |
33340 | #endif | |
33341 | /* We use char because int might match the return type of a gcc2 | |
33342 | builtin and then its argument prototype would still apply. */ | |
33343 | char inet_addr (); | |
33344 | int | |
33345 | main () | |
33346 | { | |
33347 | inet_addr (); | |
33348 | ; | |
33349 | return 0; | |
33350 | } | |
33351 | _ACEOF | |
33352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33354 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33355 | ac_status=$? |
ac1cb8d3 VS |
33356 | grep -v '^ *+' conftest.er1 >conftest.err |
33357 | rm -f conftest.er1 | |
33358 | cat conftest.err >&5 | |
a848cd7e SC |
33359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33360 | (exit $ac_status); } && | |
9dd0f6c2 | 33361 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33363 | (eval $ac_try) 2>&5 | |
33364 | ac_status=$? | |
33365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33366 | (exit $ac_status); }; } && | |
33367 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33369 | (eval $ac_try) 2>&5 | |
33370 | ac_status=$? | |
33371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33372 | (exit $ac_status); }; }; then | |
33373 | ac_cv_lib_socket_inet_addr=yes | |
33374 | else | |
33375 | echo "$as_me: failed program was:" >&5 | |
33376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33377 | ||
33378 | ac_cv_lib_socket_inet_addr=no | |
33379 | fi | |
ac1cb8d3 VS |
33380 | rm -f conftest.err conftest.$ac_objext \ |
33381 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33382 | LIBS=$ac_check_lib_save_LIBS |
33383 | fi | |
33384 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
33385 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
33386 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
33387 | INET_LINK="socket" | |
33388 | ||
33389 | fi | |
33390 | ||
33391 | ||
33392 | ||
33393 | fi | |
33394 | ||
33395 | ||
33396 | ||
33397 | fi | |
33398 | ||
33399 | ||
33400 | ||
33401 | fi | |
33402 | done | |
33403 | ||
33404 | ||
33405 | ||
33406 | for ac_func in inet_aton | |
33407 | do | |
33408 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33409 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33410 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33411 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33413 | else | |
33414 | cat >conftest.$ac_ext <<_ACEOF | |
33415 | /* confdefs.h. */ | |
33416 | _ACEOF | |
33417 | cat confdefs.h >>conftest.$ac_ext | |
33418 | cat >>conftest.$ac_ext <<_ACEOF | |
33419 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33420 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33422 | #define $ac_func innocuous_$ac_func | |
33423 | ||
a848cd7e SC |
33424 | /* System header to define __stub macros and hopefully few prototypes, |
33425 | which can conflict with char $ac_func (); below. | |
33426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33427 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33428 | |
a848cd7e SC |
33429 | #ifdef __STDC__ |
33430 | # include <limits.h> | |
33431 | #else | |
33432 | # include <assert.h> | |
33433 | #endif | |
ac1cb8d3 VS |
33434 | |
33435 | #undef $ac_func | |
33436 | ||
a848cd7e SC |
33437 | /* Override any gcc2 internal prototype to avoid an error. */ |
33438 | #ifdef __cplusplus | |
33439 | extern "C" | |
33440 | { | |
33441 | #endif | |
33442 | /* We use char because int might match the return type of a gcc2 | |
33443 | builtin and then its argument prototype would still apply. */ | |
33444 | char $ac_func (); | |
33445 | /* The GNU C library defines this for functions which it implements | |
33446 | to always fail with ENOSYS. Some functions are actually named | |
33447 | something starting with __ and the normal name is an alias. */ | |
33448 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33449 | choke me | |
33450 | #else | |
33451 | char (*f) () = $ac_func; | |
33452 | #endif | |
33453 | #ifdef __cplusplus | |
33454 | } | |
33455 | #endif | |
33456 | ||
33457 | int | |
33458 | main () | |
33459 | { | |
33460 | return f != $ac_func; | |
33461 | ; | |
33462 | return 0; | |
33463 | } | |
33464 | _ACEOF | |
33465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33467 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33468 | ac_status=$? |
ac1cb8d3 VS |
33469 | grep -v '^ *+' conftest.er1 >conftest.err |
33470 | rm -f conftest.er1 | |
33471 | cat conftest.err >&5 | |
a848cd7e SC |
33472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33473 | (exit $ac_status); } && | |
9dd0f6c2 | 33474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33476 | (eval $ac_try) 2>&5 | |
33477 | ac_status=$? | |
33478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33479 | (exit $ac_status); }; } && | |
33480 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33482 | (eval $ac_try) 2>&5 | |
33483 | ac_status=$? | |
33484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33485 | (exit $ac_status); }; }; then | |
33486 | eval "$as_ac_var=yes" | |
33487 | else | |
33488 | echo "$as_me: failed program was:" >&5 | |
33489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33490 | ||
33491 | eval "$as_ac_var=no" | |
33492 | fi | |
ac1cb8d3 VS |
33493 | rm -f conftest.err conftest.$ac_objext \ |
33494 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33495 | fi |
33496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33497 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33498 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33499 | cat >>confdefs.h <<_ACEOF | |
33500 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33501 | _ACEOF | |
33502 | cat >>confdefs.h <<\_ACEOF | |
33503 | #define HAVE_INET_ATON 1 | |
33504 | _ACEOF | |
33505 | ||
33506 | else | |
33507 | ||
33508 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
33509 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
33510 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
33511 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
33512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33513 | else | |
33514 | ac_check_lib_save_LIBS=$LIBS | |
33515 | LIBS="-l$INET_LINK $LIBS" | |
33516 | cat >conftest.$ac_ext <<_ACEOF | |
33517 | /* confdefs.h. */ | |
33518 | _ACEOF | |
33519 | cat confdefs.h >>conftest.$ac_ext | |
33520 | cat >>conftest.$ac_ext <<_ACEOF | |
33521 | /* end confdefs.h. */ | |
33522 | ||
33523 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33524 | #ifdef __cplusplus | |
33525 | extern "C" | |
33526 | #endif | |
33527 | /* We use char because int might match the return type of a gcc2 | |
33528 | builtin and then its argument prototype would still apply. */ | |
33529 | char inet_aton (); | |
33530 | int | |
33531 | main () | |
33532 | { | |
33533 | inet_aton (); | |
33534 | ; | |
33535 | return 0; | |
33536 | } | |
33537 | _ACEOF | |
33538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33540 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33541 | ac_status=$? |
ac1cb8d3 VS |
33542 | grep -v '^ *+' conftest.er1 >conftest.err |
33543 | rm -f conftest.er1 | |
33544 | cat conftest.err >&5 | |
a848cd7e SC |
33545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33546 | (exit $ac_status); } && | |
9dd0f6c2 | 33547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33549 | (eval $ac_try) 2>&5 | |
33550 | ac_status=$? | |
33551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33552 | (exit $ac_status); }; } && | |
33553 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33555 | (eval $ac_try) 2>&5 | |
33556 | ac_status=$? | |
33557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33558 | (exit $ac_status); }; }; then | |
33559 | eval "$as_ac_Lib=yes" | |
33560 | else | |
33561 | echo "$as_me: failed program was:" >&5 | |
33562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33563 | ||
33564 | eval "$as_ac_Lib=no" | |
33565 | fi | |
ac1cb8d3 VS |
33566 | rm -f conftest.err conftest.$ac_objext \ |
33567 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33568 | LIBS=$ac_check_lib_save_LIBS |
33569 | fi | |
33570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
33571 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
33572 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
33573 | cat >>confdefs.h <<\_ACEOF | |
33574 | #define HAVE_INET_ATON 1 | |
33575 | _ACEOF | |
33576 | ||
33577 | fi | |
33578 | ||
33579 | ||
33580 | fi | |
33581 | done | |
33582 | ||
33583 | ||
33584 | if test "x$INET_LINK" != "x"; then | |
33585 | cat >>confdefs.h <<\_ACEOF | |
33586 | #define HAVE_INET_ADDR 1 | |
33587 | _ACEOF | |
33588 | ||
33589 | INET_LINK=" -l$INET_LINK" | |
33590 | fi | |
33591 | ||
33592 | fi | |
33593 | ||
33594 | ||
33595 | ||
33596 | EXTRALIBS_ESD= | |
33597 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
33598 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
33599 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
33600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33601 | else | |
33602 | ac_check_lib_save_LIBS=$LIBS | |
33603 | LIBS="-lesd $LIBS" | |
33604 | cat >conftest.$ac_ext <<_ACEOF | |
33605 | /* confdefs.h. */ | |
33606 | _ACEOF | |
33607 | cat confdefs.h >>conftest.$ac_ext | |
33608 | cat >>conftest.$ac_ext <<_ACEOF | |
33609 | /* end confdefs.h. */ | |
33610 | ||
33611 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33612 | #ifdef __cplusplus | |
33613 | extern "C" | |
33614 | #endif | |
33615 | /* We use char because int might match the return type of a gcc2 | |
33616 | builtin and then its argument prototype would still apply. */ | |
33617 | char esd_close (); | |
33618 | int | |
33619 | main () | |
33620 | { | |
33621 | esd_close (); | |
33622 | ; | |
33623 | return 0; | |
33624 | } | |
33625 | _ACEOF | |
33626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33628 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33629 | ac_status=$? |
ac1cb8d3 VS |
33630 | grep -v '^ *+' conftest.er1 >conftest.err |
33631 | rm -f conftest.er1 | |
33632 | cat conftest.err >&5 | |
a848cd7e SC |
33633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33634 | (exit $ac_status); } && | |
9dd0f6c2 | 33635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33637 | (eval $ac_try) 2>&5 | |
33638 | ac_status=$? | |
33639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33640 | (exit $ac_status); }; } && | |
33641 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33643 | (eval $ac_try) 2>&5 | |
33644 | ac_status=$? | |
33645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33646 | (exit $ac_status); }; }; then | |
33647 | ac_cv_lib_esd_esd_close=yes | |
33648 | else | |
33649 | echo "$as_me: failed program was:" >&5 | |
33650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33651 | ||
33652 | ac_cv_lib_esd_esd_close=no | |
33653 | fi | |
ac1cb8d3 VS |
33654 | rm -f conftest.err conftest.$ac_objext \ |
33655 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33656 | LIBS=$ac_check_lib_save_LIBS |
33657 | fi | |
33658 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
33659 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
33660 | if test $ac_cv_lib_esd_esd_close = yes; then | |
33661 | ||
33662 | ||
33663 | for ac_header in esd.h | |
33664 | do | |
33665 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33666 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33667 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33668 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33669 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33671 | fi | |
33672 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33673 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33674 | else | |
33675 | # Is the header compilable? | |
33676 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33677 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33678 | cat >conftest.$ac_ext <<_ACEOF | |
33679 | /* confdefs.h. */ | |
33680 | _ACEOF | |
33681 | cat confdefs.h >>conftest.$ac_ext | |
33682 | cat >>conftest.$ac_ext <<_ACEOF | |
33683 | /* end confdefs.h. */ | |
33684 | $ac_includes_default | |
33685 | #include <$ac_header> | |
33686 | _ACEOF | |
33687 | rm -f conftest.$ac_objext | |
33688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33689 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33690 | ac_status=$? |
ac1cb8d3 VS |
33691 | grep -v '^ *+' conftest.er1 >conftest.err |
33692 | rm -f conftest.er1 | |
33693 | cat conftest.err >&5 | |
a848cd7e SC |
33694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33695 | (exit $ac_status); } && | |
9dd0f6c2 | 33696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33698 | (eval $ac_try) 2>&5 | |
33699 | ac_status=$? | |
33700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33701 | (exit $ac_status); }; } && | |
33702 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33704 | (eval $ac_try) 2>&5 | |
33705 | ac_status=$? | |
33706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33707 | (exit $ac_status); }; }; then | |
33708 | ac_header_compiler=yes | |
33709 | else | |
33710 | echo "$as_me: failed program was:" >&5 | |
33711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33712 | ||
33713 | ac_header_compiler=no | |
33714 | fi | |
ac1cb8d3 | 33715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33716 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33717 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33718 | ||
33719 | # Is the header present? | |
33720 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33721 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33722 | cat >conftest.$ac_ext <<_ACEOF | |
33723 | /* confdefs.h. */ | |
33724 | _ACEOF | |
33725 | cat confdefs.h >>conftest.$ac_ext | |
33726 | cat >>conftest.$ac_ext <<_ACEOF | |
33727 | /* end confdefs.h. */ | |
33728 | #include <$ac_header> | |
33729 | _ACEOF | |
33730 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33731 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33732 | ac_status=$? | |
33733 | grep -v '^ *+' conftest.er1 >conftest.err | |
33734 | rm -f conftest.er1 | |
33735 | cat conftest.err >&5 | |
33736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33737 | (exit $ac_status); } >/dev/null; then | |
33738 | if test -s conftest.err; then | |
33739 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33740 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33741 | else |
33742 | ac_cpp_err= | |
33743 | fi | |
33744 | else | |
33745 | ac_cpp_err=yes | |
33746 | fi | |
33747 | if test -z "$ac_cpp_err"; then | |
33748 | ac_header_preproc=yes | |
33749 | else | |
33750 | echo "$as_me: failed program was:" >&5 | |
33751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33752 | ||
33753 | ac_header_preproc=no | |
33754 | fi | |
33755 | rm -f conftest.err conftest.$ac_ext | |
33756 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33757 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33758 | ||
33759 | # So? What about this header? | |
ac1cb8d3 VS |
33760 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33761 | yes:no: ) | |
a848cd7e SC |
33762 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33763 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33764 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33765 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33766 | ac_header_preproc=yes | |
a848cd7e | 33767 | ;; |
ac1cb8d3 | 33768 | no:yes:* ) |
a848cd7e SC |
33769 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33770 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33771 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33772 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33773 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33774 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33775 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33776 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33777 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33778 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33779 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33780 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33781 | ( |
33782 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33783 | ## ----------------------------------------- ## |
33784 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33785 | ## ----------------------------------------- ## | |
a848cd7e SC |
33786 | _ASBOX |
33787 | ) | | |
33788 | sed "s/^/$as_me: WARNING: /" >&2 | |
33789 | ;; | |
33790 | esac | |
33791 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33795 | else | |
ac1cb8d3 | 33796 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33797 | fi |
33798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33799 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33800 | ||
33801 | fi | |
33802 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33803 | cat >>confdefs.h <<_ACEOF | |
33804 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33805 | _ACEOF | |
33806 | ||
33807 | EXTRALIBS_ESD="-lesd" | |
33808 | ||
33809 | fi | |
33810 | ||
33811 | done | |
33812 | ||
33813 | ||
33814 | fi | |
33815 | ||
33816 | ||
33817 | ||
33818 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
33819 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
33820 | cat >conftest.$ac_ext <<_ACEOF | |
33821 | /* confdefs.h. */ | |
33822 | _ACEOF | |
33823 | cat confdefs.h >>conftest.$ac_ext | |
33824 | cat >>conftest.$ac_ext <<_ACEOF | |
33825 | /* end confdefs.h. */ | |
33826 | #ifdef __linux__ | |
33827 | #include <linux/cdrom.h> | |
33828 | #else | |
33829 | /* For Solaris */ | |
33830 | #include <sys/cdio.h> | |
33831 | #endif | |
33832 | ||
33833 | int | |
33834 | main () | |
33835 | { | |
33836 | struct cdrom_tocentry entry, old_entry; | |
33837 | ; | |
33838 | return 0; | |
33839 | } | |
33840 | _ACEOF | |
33841 | rm -f conftest.$ac_objext | |
33842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33843 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33844 | ac_status=$? |
ac1cb8d3 VS |
33845 | grep -v '^ *+' conftest.er1 >conftest.err |
33846 | rm -f conftest.er1 | |
33847 | cat conftest.err >&5 | |
a848cd7e SC |
33848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33849 | (exit $ac_status); } && | |
9dd0f6c2 | 33850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33852 | (eval $ac_try) 2>&5 | |
33853 | ac_status=$? | |
33854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33855 | (exit $ac_status); }; } && | |
33856 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33858 | (eval $ac_try) 2>&5 | |
33859 | ac_status=$? | |
33860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33861 | (exit $ac_status); }; }; then | |
33862 | echo "$as_me:$LINENO: result: yes" >&5 | |
33863 | echo "${ECHO_T}yes" >&6 | |
33864 | cat >>confdefs.h <<\_ACEOF | |
33865 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
33866 | _ACEOF | |
33867 | ||
33868 | else | |
33869 | echo "$as_me: failed program was:" >&5 | |
33870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33871 | ||
33872 | echo "$as_me:$LINENO: result: no" >&5 | |
33873 | echo "${ECHO_T}no" >&6 | |
33874 | fi | |
ac1cb8d3 | 33875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33876 | |
33877 | ||
33878 | cat >confcache <<\_ACEOF | |
33879 | # This file is a shell script that caches the results of configure | |
33880 | # tests run on this system so they can be shared between configure | |
33881 | # scripts and configure runs, see configure's option --config-cache. | |
33882 | # It is not useful on other systems. If it contains results you don't | |
33883 | # want to keep, you may remove or edit it. | |
33884 | # | |
33885 | # config.status only pays attention to the cache file if you give it | |
33886 | # the --recheck option to rerun configure. | |
33887 | # | |
33888 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
33889 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
33890 | # following values. | |
33891 | ||
33892 | _ACEOF | |
33893 | ||
33894 | # The following way of writing the cache mishandles newlines in values, | |
33895 | # but we know of no workaround that is simple, portable, and efficient. | |
33896 | # So, don't put newlines in cache variables' values. | |
33897 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
33898 | # and sets the high bit in the cache file unless we assign to the vars. | |
33899 | { | |
33900 | (set) 2>&1 | | |
33901 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
33902 | *ac_space=\ *) | |
33903 | # `set' does not quote correctly, so add quotes (double-quote | |
33904 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
33905 | sed -n \ | |
ac1cb8d3 VS |
33906 | "s/'/'\\\\''/g; |
33907 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
33908 | ;; |
33909 | *) | |
33910 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
33911 | sed -n \ | |
ac1cb8d3 | 33912 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
33913 | ;; |
33914 | esac; | |
33915 | } | | |
33916 | sed ' | |
33917 | t clear | |
33918 | : clear | |
33919 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
33920 | t end | |
33921 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
33922 | : end' >>confcache | |
33923 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
33924 | if test -w $cache_file; then | |
33925 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
33926 | cat confcache >$cache_file | |
33927 | else | |
33928 | echo "not updating unwritable cache $cache_file" | |
33929 | fi | |
33930 | fi | |
33931 | rm -f confcache | |
33932 | ||
33933 | ||
33934 | CPP_MT_FLAG= | |
33935 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33936 | ||
33937 | ||
33938 | THREADS_LINK= | |
33939 | THREADS_CFLAGS= | |
33940 | ||
33941 | if test "$wxUSE_THREADS" = "yes" ; then | |
33942 | if test "$USE_BEOS" = 1; then | |
33943 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
33944 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
33945 | wxUSE_THREADS="no" | |
33946 | fi | |
33947 | fi | |
33948 | ||
33949 | if test "$wxUSE_THREADS" = "yes" ; then | |
33950 | ||
33951 | ||
33952 | THREAD_OPTS="-pthread" | |
33953 | case "${host}" in | |
33954 | *-*-solaris2* | *-*-sunos4* ) | |
33955 | if test "x$GCC" = "xyes"; then | |
33956 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
33957 | else | |
33958 | THREAD_OPTS="-mt $THREAD_OPTS" | |
33959 | fi | |
33960 | ;; | |
33961 | *-*-freebsd*) | |
33962 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
33963 | ;; | |
33964 | *-*-darwin* | *-*-cygwin* ) | |
33965 | THREAD_OPTS="" | |
33966 | ;; | |
33967 | *-*-aix*) | |
33968 | THREAD_OPTS="pthreads" | |
33969 | ;; | |
33970 | *-hp-hpux* ) | |
33971 | if test "x$GCC" != "xyes"; then | |
33972 | THREAD_OPTS="" | |
33973 | fi | |
33974 | ;; | |
33975 | ||
33976 | *-*-irix* ) | |
33977 | if test "x$GCC" = "xyes"; then | |
33978 | THREAD_OPTS="" | |
33979 | fi | |
33980 | ;; | |
33981 | ||
33982 | *-*-*UnixWare*) | |
33983 | if test "x$GCC" != "xyes"; then | |
33984 | THREAD_OPTS="-Ethread" | |
33985 | fi | |
33986 | ;; | |
33987 | esac | |
33988 | ||
33989 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
33990 | ||
33991 | THREADS_OK=no | |
33992 | for flag in $THREAD_OPTS; do | |
33993 | case $flag in | |
33994 | none) | |
33995 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
33996 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
33997 | ;; | |
33998 | ||
33999 | -*) | |
34000 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
34001 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
34002 | THREADS_CFLAGS="$flag" | |
34003 | ;; | |
34004 | ||
34005 | *) | |
34006 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
34007 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
34008 | THREADS_LINK="-l$flag" | |
34009 | ;; | |
34010 | esac | |
34011 | ||
34012 | save_LIBS="$LIBS" | |
34013 | save_CFLAGS="$CFLAGS" | |
34014 | LIBS="$THREADS_LINK $LIBS" | |
34015 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
34016 | ||
34017 | cat >conftest.$ac_ext <<_ACEOF | |
34018 | /* confdefs.h. */ | |
34019 | _ACEOF | |
34020 | cat confdefs.h >>conftest.$ac_ext | |
34021 | cat >>conftest.$ac_ext <<_ACEOF | |
34022 | /* end confdefs.h. */ | |
34023 | #include <pthread.h> | |
34024 | int | |
34025 | main () | |
34026 | { | |
34027 | pthread_create(0,0,0,0); | |
34028 | ; | |
34029 | return 0; | |
34030 | } | |
34031 | _ACEOF | |
34032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34034 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34035 | ac_status=$? |
ac1cb8d3 VS |
34036 | grep -v '^ *+' conftest.er1 >conftest.err |
34037 | rm -f conftest.er1 | |
34038 | cat conftest.err >&5 | |
a848cd7e SC |
34039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34040 | (exit $ac_status); } && | |
9dd0f6c2 | 34041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34043 | (eval $ac_try) 2>&5 | |
34044 | ac_status=$? | |
34045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34046 | (exit $ac_status); }; } && | |
34047 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34049 | (eval $ac_try) 2>&5 | |
34050 | ac_status=$? | |
34051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34052 | (exit $ac_status); }; }; then | |
34053 | THREADS_OK=yes | |
34054 | else | |
34055 | echo "$as_me: failed program was:" >&5 | |
34056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34057 | ||
34058 | fi | |
ac1cb8d3 VS |
34059 | rm -f conftest.err conftest.$ac_objext \ |
34060 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34061 | |
34062 | LIBS="$save_LIBS" | |
34063 | CFLAGS="$save_CFLAGS" | |
34064 | ||
34065 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
34066 | echo "${ECHO_T}$THREADS_OK" >&6 | |
34067 | if test "x$THREADS_OK" = "xyes"; then | |
34068 | break; | |
34069 | fi | |
34070 | ||
34071 | THREADS_LINK="" | |
34072 | THREADS_CFLAGS="" | |
34073 | done | |
34074 | ||
34075 | if test "x$THREADS_OK" != "xyes"; then | |
34076 | wxUSE_THREADS=no | |
34077 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
34078 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
34079 | else | |
34080 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
34081 | LIBS="$THREADS_LINK $LIBS" | |
34082 | ||
34083 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
34084 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
34085 | flag=no | |
34086 | case "${host}" in | |
34087 | *-aix*) | |
34088 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
34089 | flag="-D_THREAD_SAFE" | |
34090 | ;; | |
34091 | *-freebsd*) | |
34092 | flag="-D_THREAD_SAFE" | |
34093 | ;; | |
34094 | *-hp-hpux* ) | |
34095 | flag="-D_REENTRANT" | |
34096 | if test "x$GCC" != "xyes"; then | |
34097 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
34098 | fi | |
34099 | ;; | |
34100 | *solaris* | alpha*-osf*) | |
34101 | flag="-D_REENTRANT" | |
34102 | ;; | |
34103 | esac | |
34104 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
34105 | echo "${ECHO_T}${flag}" >&6 | |
34106 | if test "x$flag" != xno; then | |
34107 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
34108 | fi | |
34109 | ||
34110 | if test "x$THREADS_CFLAGS" != "x"; then | |
34111 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
34112 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
34113 | fi | |
34114 | fi | |
34115 | fi | |
34116 | ||
34117 | if test "$wxUSE_THREADS" = "yes" ; then | |
34118 | ||
34119 | for ac_func in thr_setconcurrency | |
34120 | do | |
34121 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34122 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34123 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34124 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34126 | else | |
34127 | cat >conftest.$ac_ext <<_ACEOF | |
34128 | /* confdefs.h. */ | |
34129 | _ACEOF | |
34130 | cat confdefs.h >>conftest.$ac_ext | |
34131 | cat >>conftest.$ac_ext <<_ACEOF | |
34132 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34133 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34134 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34135 | #define $ac_func innocuous_$ac_func | |
34136 | ||
a848cd7e SC |
34137 | /* System header to define __stub macros and hopefully few prototypes, |
34138 | which can conflict with char $ac_func (); below. | |
34139 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34140 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34141 | |
a848cd7e SC |
34142 | #ifdef __STDC__ |
34143 | # include <limits.h> | |
34144 | #else | |
34145 | # include <assert.h> | |
34146 | #endif | |
ac1cb8d3 VS |
34147 | |
34148 | #undef $ac_func | |
34149 | ||
a848cd7e SC |
34150 | /* Override any gcc2 internal prototype to avoid an error. */ |
34151 | #ifdef __cplusplus | |
34152 | extern "C" | |
34153 | { | |
34154 | #endif | |
34155 | /* We use char because int might match the return type of a gcc2 | |
34156 | builtin and then its argument prototype would still apply. */ | |
34157 | char $ac_func (); | |
34158 | /* The GNU C library defines this for functions which it implements | |
34159 | to always fail with ENOSYS. Some functions are actually named | |
34160 | something starting with __ and the normal name is an alias. */ | |
34161 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34162 | choke me | |
34163 | #else | |
34164 | char (*f) () = $ac_func; | |
34165 | #endif | |
34166 | #ifdef __cplusplus | |
34167 | } | |
34168 | #endif | |
34169 | ||
34170 | int | |
34171 | main () | |
34172 | { | |
34173 | return f != $ac_func; | |
34174 | ; | |
34175 | return 0; | |
34176 | } | |
34177 | _ACEOF | |
34178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34180 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34181 | ac_status=$? |
ac1cb8d3 VS |
34182 | grep -v '^ *+' conftest.er1 >conftest.err |
34183 | rm -f conftest.er1 | |
34184 | cat conftest.err >&5 | |
a848cd7e SC |
34185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34186 | (exit $ac_status); } && | |
9dd0f6c2 | 34187 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34189 | (eval $ac_try) 2>&5 | |
34190 | ac_status=$? | |
34191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34192 | (exit $ac_status); }; } && | |
34193 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34195 | (eval $ac_try) 2>&5 | |
34196 | ac_status=$? | |
34197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34198 | (exit $ac_status); }; }; then | |
34199 | eval "$as_ac_var=yes" | |
34200 | else | |
34201 | echo "$as_me: failed program was:" >&5 | |
34202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34203 | ||
34204 | eval "$as_ac_var=no" | |
34205 | fi | |
ac1cb8d3 VS |
34206 | rm -f conftest.err conftest.$ac_objext \ |
34207 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34208 | fi |
34209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34210 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34211 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34212 | cat >>confdefs.h <<_ACEOF | |
34213 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34214 | _ACEOF | |
34215 | ||
34216 | fi | |
34217 | done | |
34218 | ||
34219 | ||
34220 | ||
34221 | for ac_header in sched.h | |
34222 | do | |
34223 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34225 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34226 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34227 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34229 | fi | |
34230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34231 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34232 | else | |
34233 | # Is the header compilable? | |
34234 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34235 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34236 | cat >conftest.$ac_ext <<_ACEOF | |
34237 | /* confdefs.h. */ | |
34238 | _ACEOF | |
34239 | cat confdefs.h >>conftest.$ac_ext | |
34240 | cat >>conftest.$ac_ext <<_ACEOF | |
34241 | /* end confdefs.h. */ | |
34242 | $ac_includes_default | |
34243 | #include <$ac_header> | |
34244 | _ACEOF | |
34245 | rm -f conftest.$ac_objext | |
34246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34247 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34248 | ac_status=$? |
ac1cb8d3 VS |
34249 | grep -v '^ *+' conftest.er1 >conftest.err |
34250 | rm -f conftest.er1 | |
34251 | cat conftest.err >&5 | |
a848cd7e SC |
34252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34253 | (exit $ac_status); } && | |
9dd0f6c2 | 34254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34256 | (eval $ac_try) 2>&5 | |
34257 | ac_status=$? | |
34258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34259 | (exit $ac_status); }; } && | |
34260 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34262 | (eval $ac_try) 2>&5 | |
34263 | ac_status=$? | |
34264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34265 | (exit $ac_status); }; }; then | |
34266 | ac_header_compiler=yes | |
34267 | else | |
34268 | echo "$as_me: failed program was:" >&5 | |
34269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34270 | ||
34271 | ac_header_compiler=no | |
34272 | fi | |
ac1cb8d3 | 34273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34274 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34275 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34276 | ||
34277 | # Is the header present? | |
34278 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34279 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34280 | cat >conftest.$ac_ext <<_ACEOF | |
34281 | /* confdefs.h. */ | |
34282 | _ACEOF | |
34283 | cat confdefs.h >>conftest.$ac_ext | |
34284 | cat >>conftest.$ac_ext <<_ACEOF | |
34285 | /* end confdefs.h. */ | |
34286 | #include <$ac_header> | |
34287 | _ACEOF | |
34288 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34289 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34290 | ac_status=$? | |
34291 | grep -v '^ *+' conftest.er1 >conftest.err | |
34292 | rm -f conftest.er1 | |
34293 | cat conftest.err >&5 | |
34294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34295 | (exit $ac_status); } >/dev/null; then | |
34296 | if test -s conftest.err; then | |
34297 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34298 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34299 | else |
34300 | ac_cpp_err= | |
34301 | fi | |
34302 | else | |
34303 | ac_cpp_err=yes | |
34304 | fi | |
34305 | if test -z "$ac_cpp_err"; then | |
34306 | ac_header_preproc=yes | |
34307 | else | |
34308 | echo "$as_me: failed program was:" >&5 | |
34309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34310 | ||
34311 | ac_header_preproc=no | |
34312 | fi | |
34313 | rm -f conftest.err conftest.$ac_ext | |
34314 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34315 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34316 | ||
34317 | # So? What about this header? | |
ac1cb8d3 VS |
34318 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34319 | yes:no: ) | |
a848cd7e SC |
34320 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34321 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34322 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34323 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34324 | ac_header_preproc=yes | |
a848cd7e | 34325 | ;; |
ac1cb8d3 | 34326 | no:yes:* ) |
a848cd7e SC |
34327 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34328 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34329 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34330 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34331 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34332 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34333 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34334 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34336 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34337 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34338 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34339 | ( |
34340 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34341 | ## ----------------------------------------- ## |
34342 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34343 | ## ----------------------------------------- ## | |
a848cd7e SC |
34344 | _ASBOX |
34345 | ) | | |
34346 | sed "s/^/$as_me: WARNING: /" >&2 | |
34347 | ;; | |
34348 | esac | |
34349 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34350 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34351 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34353 | else | |
ac1cb8d3 | 34354 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34355 | fi |
34356 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34357 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34358 | ||
34359 | fi | |
34360 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34361 | cat >>confdefs.h <<_ACEOF | |
34362 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34363 | _ACEOF | |
34364 | ||
34365 | fi | |
34366 | ||
34367 | done | |
34368 | ||
34369 | if test "$ac_cv_header_sched_h" = "yes"; then | |
34370 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
34371 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
34372 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
34373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34374 | else | |
34375 | cat >conftest.$ac_ext <<_ACEOF | |
34376 | /* confdefs.h. */ | |
34377 | _ACEOF | |
34378 | cat confdefs.h >>conftest.$ac_ext | |
34379 | cat >>conftest.$ac_ext <<_ACEOF | |
34380 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34381 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
34382 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34383 | #define sched_yield innocuous_sched_yield | |
34384 | ||
a848cd7e SC |
34385 | /* System header to define __stub macros and hopefully few prototypes, |
34386 | which can conflict with char sched_yield (); below. | |
34387 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34388 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34389 | |
a848cd7e SC |
34390 | #ifdef __STDC__ |
34391 | # include <limits.h> | |
34392 | #else | |
34393 | # include <assert.h> | |
34394 | #endif | |
ac1cb8d3 VS |
34395 | |
34396 | #undef sched_yield | |
34397 | ||
a848cd7e SC |
34398 | /* Override any gcc2 internal prototype to avoid an error. */ |
34399 | #ifdef __cplusplus | |
34400 | extern "C" | |
34401 | { | |
34402 | #endif | |
34403 | /* We use char because int might match the return type of a gcc2 | |
34404 | builtin and then its argument prototype would still apply. */ | |
34405 | char sched_yield (); | |
34406 | /* The GNU C library defines this for functions which it implements | |
34407 | to always fail with ENOSYS. Some functions are actually named | |
34408 | something starting with __ and the normal name is an alias. */ | |
34409 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
34410 | choke me | |
34411 | #else | |
34412 | char (*f) () = sched_yield; | |
34413 | #endif | |
34414 | #ifdef __cplusplus | |
34415 | } | |
34416 | #endif | |
34417 | ||
34418 | int | |
34419 | main () | |
34420 | { | |
34421 | return f != sched_yield; | |
34422 | ; | |
34423 | return 0; | |
34424 | } | |
34425 | _ACEOF | |
34426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34428 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34429 | ac_status=$? |
ac1cb8d3 VS |
34430 | grep -v '^ *+' conftest.er1 >conftest.err |
34431 | rm -f conftest.er1 | |
34432 | cat conftest.err >&5 | |
a848cd7e SC |
34433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34434 | (exit $ac_status); } && | |
9dd0f6c2 | 34435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34437 | (eval $ac_try) 2>&5 | |
34438 | ac_status=$? | |
34439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34440 | (exit $ac_status); }; } && | |
34441 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34443 | (eval $ac_try) 2>&5 | |
34444 | ac_status=$? | |
34445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34446 | (exit $ac_status); }; }; then | |
34447 | ac_cv_func_sched_yield=yes | |
34448 | else | |
34449 | echo "$as_me: failed program was:" >&5 | |
34450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34451 | ||
34452 | ac_cv_func_sched_yield=no | |
34453 | fi | |
ac1cb8d3 VS |
34454 | rm -f conftest.err conftest.$ac_objext \ |
34455 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34456 | fi |
34457 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
34458 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
34459 | if test $ac_cv_func_sched_yield = yes; then | |
34460 | cat >>confdefs.h <<\_ACEOF | |
34461 | #define HAVE_SCHED_YIELD 1 | |
34462 | _ACEOF | |
34463 | ||
34464 | else | |
34465 | ||
34466 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
34467 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
34468 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
34469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34470 | else | |
34471 | ac_check_lib_save_LIBS=$LIBS | |
34472 | LIBS="-lposix4 $LIBS" | |
34473 | cat >conftest.$ac_ext <<_ACEOF | |
34474 | /* confdefs.h. */ | |
34475 | _ACEOF | |
34476 | cat confdefs.h >>conftest.$ac_ext | |
34477 | cat >>conftest.$ac_ext <<_ACEOF | |
34478 | /* end confdefs.h. */ | |
34479 | ||
34480 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34481 | #ifdef __cplusplus | |
34482 | extern "C" | |
34483 | #endif | |
34484 | /* We use char because int might match the return type of a gcc2 | |
34485 | builtin and then its argument prototype would still apply. */ | |
34486 | char sched_yield (); | |
34487 | int | |
34488 | main () | |
34489 | { | |
34490 | sched_yield (); | |
34491 | ; | |
34492 | return 0; | |
34493 | } | |
34494 | _ACEOF | |
34495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34497 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34498 | ac_status=$? |
ac1cb8d3 VS |
34499 | grep -v '^ *+' conftest.er1 >conftest.err |
34500 | rm -f conftest.er1 | |
34501 | cat conftest.err >&5 | |
a848cd7e SC |
34502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34503 | (exit $ac_status); } && | |
9dd0f6c2 | 34504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34506 | (eval $ac_try) 2>&5 | |
34507 | ac_status=$? | |
34508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34509 | (exit $ac_status); }; } && | |
34510 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34512 | (eval $ac_try) 2>&5 | |
34513 | ac_status=$? | |
34514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34515 | (exit $ac_status); }; }; then | |
34516 | ac_cv_lib_posix4_sched_yield=yes | |
34517 | else | |
34518 | echo "$as_me: failed program was:" >&5 | |
34519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34520 | ||
34521 | ac_cv_lib_posix4_sched_yield=no | |
34522 | fi | |
ac1cb8d3 VS |
34523 | rm -f conftest.err conftest.$ac_objext \ |
34524 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34525 | LIBS=$ac_check_lib_save_LIBS |
34526 | fi | |
34527 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
34528 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
34529 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
34530 | cat >>confdefs.h <<\_ACEOF | |
34531 | #define HAVE_SCHED_YIELD 1 | |
34532 | _ACEOF | |
34533 | POSIX4_LINK=" -lposix4" | |
34534 | else | |
34535 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
34536 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
34537 | ||
34538 | fi | |
34539 | ||
34540 | ||
34541 | ||
34542 | fi | |
34543 | ||
34544 | fi | |
34545 | ||
34546 | HAVE_PRIOR_FUNCS=0 | |
34547 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
34548 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
34549 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
34550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34551 | else | |
34552 | cat >conftest.$ac_ext <<_ACEOF | |
34553 | /* confdefs.h. */ | |
34554 | _ACEOF | |
34555 | cat confdefs.h >>conftest.$ac_ext | |
34556 | cat >>conftest.$ac_ext <<_ACEOF | |
34557 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34558 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
34559 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34560 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
34561 | ||
a848cd7e SC |
34562 | /* System header to define __stub macros and hopefully few prototypes, |
34563 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
34564 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34565 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34566 | |
a848cd7e SC |
34567 | #ifdef __STDC__ |
34568 | # include <limits.h> | |
34569 | #else | |
34570 | # include <assert.h> | |
34571 | #endif | |
ac1cb8d3 VS |
34572 | |
34573 | #undef pthread_attr_getschedpolicy | |
34574 | ||
a848cd7e SC |
34575 | /* Override any gcc2 internal prototype to avoid an error. */ |
34576 | #ifdef __cplusplus | |
34577 | extern "C" | |
34578 | { | |
34579 | #endif | |
34580 | /* We use char because int might match the return type of a gcc2 | |
34581 | builtin and then its argument prototype would still apply. */ | |
34582 | char pthread_attr_getschedpolicy (); | |
34583 | /* The GNU C library defines this for functions which it implements | |
34584 | to always fail with ENOSYS. Some functions are actually named | |
34585 | something starting with __ and the normal name is an alias. */ | |
34586 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
34587 | choke me | |
34588 | #else | |
34589 | char (*f) () = pthread_attr_getschedpolicy; | |
34590 | #endif | |
34591 | #ifdef __cplusplus | |
34592 | } | |
34593 | #endif | |
34594 | ||
34595 | int | |
34596 | main () | |
34597 | { | |
34598 | return f != pthread_attr_getschedpolicy; | |
34599 | ; | |
34600 | return 0; | |
34601 | } | |
34602 | _ACEOF | |
34603 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34605 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34606 | ac_status=$? |
ac1cb8d3 VS |
34607 | grep -v '^ *+' conftest.er1 >conftest.err |
34608 | rm -f conftest.er1 | |
34609 | cat conftest.err >&5 | |
a848cd7e SC |
34610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34611 | (exit $ac_status); } && | |
9dd0f6c2 | 34612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34614 | (eval $ac_try) 2>&5 | |
34615 | ac_status=$? | |
34616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34617 | (exit $ac_status); }; } && | |
34618 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34620 | (eval $ac_try) 2>&5 | |
34621 | ac_status=$? | |
34622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34623 | (exit $ac_status); }; }; then | |
34624 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
34625 | else | |
34626 | echo "$as_me: failed program was:" >&5 | |
34627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34628 | ||
34629 | ac_cv_func_pthread_attr_getschedpolicy=no | |
34630 | fi | |
ac1cb8d3 VS |
34631 | rm -f conftest.err conftest.$ac_objext \ |
34632 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34633 | fi |
34634 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
34635 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
34636 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
34637 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
34638 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
34639 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
34640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34641 | else | |
34642 | cat >conftest.$ac_ext <<_ACEOF | |
34643 | /* confdefs.h. */ | |
34644 | _ACEOF | |
34645 | cat confdefs.h >>conftest.$ac_ext | |
34646 | cat >>conftest.$ac_ext <<_ACEOF | |
34647 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34648 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
34649 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34650 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
34651 | ||
a848cd7e SC |
34652 | /* System header to define __stub macros and hopefully few prototypes, |
34653 | which can conflict with char pthread_attr_setschedparam (); below. | |
34654 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34655 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34656 | |
a848cd7e SC |
34657 | #ifdef __STDC__ |
34658 | # include <limits.h> | |
34659 | #else | |
34660 | # include <assert.h> | |
34661 | #endif | |
ac1cb8d3 VS |
34662 | |
34663 | #undef pthread_attr_setschedparam | |
34664 | ||
a848cd7e SC |
34665 | /* Override any gcc2 internal prototype to avoid an error. */ |
34666 | #ifdef __cplusplus | |
34667 | extern "C" | |
34668 | { | |
34669 | #endif | |
34670 | /* We use char because int might match the return type of a gcc2 | |
34671 | builtin and then its argument prototype would still apply. */ | |
34672 | char pthread_attr_setschedparam (); | |
34673 | /* The GNU C library defines this for functions which it implements | |
34674 | to always fail with ENOSYS. Some functions are actually named | |
34675 | something starting with __ and the normal name is an alias. */ | |
34676 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
34677 | choke me | |
34678 | #else | |
34679 | char (*f) () = pthread_attr_setschedparam; | |
34680 | #endif | |
34681 | #ifdef __cplusplus | |
34682 | } | |
34683 | #endif | |
34684 | ||
34685 | int | |
34686 | main () | |
34687 | { | |
34688 | return f != pthread_attr_setschedparam; | |
34689 | ; | |
34690 | return 0; | |
34691 | } | |
34692 | _ACEOF | |
34693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34695 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34696 | ac_status=$? |
ac1cb8d3 VS |
34697 | grep -v '^ *+' conftest.er1 >conftest.err |
34698 | rm -f conftest.er1 | |
34699 | cat conftest.err >&5 | |
a848cd7e SC |
34700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34701 | (exit $ac_status); } && | |
9dd0f6c2 | 34702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34704 | (eval $ac_try) 2>&5 | |
34705 | ac_status=$? | |
34706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34707 | (exit $ac_status); }; } && | |
34708 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34710 | (eval $ac_try) 2>&5 | |
34711 | ac_status=$? | |
34712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34713 | (exit $ac_status); }; }; then | |
34714 | ac_cv_func_pthread_attr_setschedparam=yes | |
34715 | else | |
34716 | echo "$as_me: failed program was:" >&5 | |
34717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34718 | ||
34719 | ac_cv_func_pthread_attr_setschedparam=no | |
34720 | fi | |
ac1cb8d3 VS |
34721 | rm -f conftest.err conftest.$ac_objext \ |
34722 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34723 | fi |
34724 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
34725 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
34726 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
34727 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
34728 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
34729 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
34730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34731 | else | |
34732 | cat >conftest.$ac_ext <<_ACEOF | |
34733 | /* confdefs.h. */ | |
34734 | _ACEOF | |
34735 | cat confdefs.h >>conftest.$ac_ext | |
34736 | cat >>conftest.$ac_ext <<_ACEOF | |
34737 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34738 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
34739 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34740 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
34741 | ||
a848cd7e SC |
34742 | /* System header to define __stub macros and hopefully few prototypes, |
34743 | which can conflict with char sched_get_priority_max (); below. | |
34744 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34745 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34746 | |
a848cd7e SC |
34747 | #ifdef __STDC__ |
34748 | # include <limits.h> | |
34749 | #else | |
34750 | # include <assert.h> | |
34751 | #endif | |
ac1cb8d3 VS |
34752 | |
34753 | #undef sched_get_priority_max | |
34754 | ||
a848cd7e SC |
34755 | /* Override any gcc2 internal prototype to avoid an error. */ |
34756 | #ifdef __cplusplus | |
34757 | extern "C" | |
34758 | { | |
34759 | #endif | |
34760 | /* We use char because int might match the return type of a gcc2 | |
34761 | builtin and then its argument prototype would still apply. */ | |
34762 | char sched_get_priority_max (); | |
34763 | /* The GNU C library defines this for functions which it implements | |
34764 | to always fail with ENOSYS. Some functions are actually named | |
34765 | something starting with __ and the normal name is an alias. */ | |
34766 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
34767 | choke me | |
34768 | #else | |
34769 | char (*f) () = sched_get_priority_max; | |
34770 | #endif | |
34771 | #ifdef __cplusplus | |
34772 | } | |
34773 | #endif | |
34774 | ||
34775 | int | |
34776 | main () | |
34777 | { | |
34778 | return f != sched_get_priority_max; | |
34779 | ; | |
34780 | return 0; | |
34781 | } | |
34782 | _ACEOF | |
34783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34785 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34786 | ac_status=$? |
ac1cb8d3 VS |
34787 | grep -v '^ *+' conftest.er1 >conftest.err |
34788 | rm -f conftest.er1 | |
34789 | cat conftest.err >&5 | |
a848cd7e SC |
34790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34791 | (exit $ac_status); } && | |
9dd0f6c2 | 34792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34794 | (eval $ac_try) 2>&5 | |
34795 | ac_status=$? | |
34796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34797 | (exit $ac_status); }; } && | |
34798 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34800 | (eval $ac_try) 2>&5 | |
34801 | ac_status=$? | |
34802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34803 | (exit $ac_status); }; }; then | |
34804 | ac_cv_func_sched_get_priority_max=yes | |
34805 | else | |
34806 | echo "$as_me: failed program was:" >&5 | |
34807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34808 | ||
34809 | ac_cv_func_sched_get_priority_max=no | |
34810 | fi | |
ac1cb8d3 VS |
34811 | rm -f conftest.err conftest.$ac_objext \ |
34812 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34813 | fi |
34814 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
34815 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
34816 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
34817 | HAVE_PRIOR_FUNCS=1 | |
34818 | else | |
34819 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
34820 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
34821 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
34822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34823 | else | |
34824 | ac_check_lib_save_LIBS=$LIBS | |
34825 | LIBS="-lposix4 $LIBS" | |
34826 | cat >conftest.$ac_ext <<_ACEOF | |
34827 | /* confdefs.h. */ | |
34828 | _ACEOF | |
34829 | cat confdefs.h >>conftest.$ac_ext | |
34830 | cat >>conftest.$ac_ext <<_ACEOF | |
34831 | /* end confdefs.h. */ | |
34832 | ||
34833 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34834 | #ifdef __cplusplus | |
34835 | extern "C" | |
34836 | #endif | |
34837 | /* We use char because int might match the return type of a gcc2 | |
34838 | builtin and then its argument prototype would still apply. */ | |
34839 | char sched_get_priority_max (); | |
34840 | int | |
34841 | main () | |
34842 | { | |
34843 | sched_get_priority_max (); | |
34844 | ; | |
34845 | return 0; | |
34846 | } | |
34847 | _ACEOF | |
34848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34850 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34851 | ac_status=$? |
ac1cb8d3 VS |
34852 | grep -v '^ *+' conftest.er1 >conftest.err |
34853 | rm -f conftest.er1 | |
34854 | cat conftest.err >&5 | |
a848cd7e SC |
34855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34856 | (exit $ac_status); } && | |
9dd0f6c2 | 34857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34859 | (eval $ac_try) 2>&5 | |
34860 | ac_status=$? | |
34861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34862 | (exit $ac_status); }; } && | |
34863 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34865 | (eval $ac_try) 2>&5 | |
34866 | ac_status=$? | |
34867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34868 | (exit $ac_status); }; }; then | |
34869 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
34870 | else | |
34871 | echo "$as_me: failed program was:" >&5 | |
34872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34873 | ||
34874 | ac_cv_lib_posix4_sched_get_priority_max=no | |
34875 | fi | |
ac1cb8d3 VS |
34876 | rm -f conftest.err conftest.$ac_objext \ |
34877 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34878 | LIBS=$ac_check_lib_save_LIBS |
34879 | fi | |
34880 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
34881 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
34882 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
34883 | ||
34884 | HAVE_PRIOR_FUNCS=1 | |
34885 | POSIX4_LINK=" -lposix4" | |
34886 | ||
34887 | fi | |
34888 | ||
34889 | ||
34890 | fi | |
34891 | ||
34892 | ||
34893 | fi | |
34894 | ||
34895 | ||
34896 | fi | |
34897 | ||
34898 | ||
34899 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
34900 | cat >>confdefs.h <<\_ACEOF | |
34901 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
34902 | _ACEOF | |
34903 | ||
34904 | else | |
34905 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
34906 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
34907 | fi | |
34908 | ||
34909 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
34910 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
34911 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
34912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34913 | else | |
34914 | cat >conftest.$ac_ext <<_ACEOF | |
34915 | /* confdefs.h. */ | |
34916 | _ACEOF | |
34917 | cat confdefs.h >>conftest.$ac_ext | |
34918 | cat >>conftest.$ac_ext <<_ACEOF | |
34919 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34920 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
34921 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34922 | #define pthread_cancel innocuous_pthread_cancel | |
34923 | ||
a848cd7e SC |
34924 | /* System header to define __stub macros and hopefully few prototypes, |
34925 | which can conflict with char pthread_cancel (); below. | |
34926 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34927 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34928 | |
a848cd7e SC |
34929 | #ifdef __STDC__ |
34930 | # include <limits.h> | |
34931 | #else | |
34932 | # include <assert.h> | |
34933 | #endif | |
ac1cb8d3 VS |
34934 | |
34935 | #undef pthread_cancel | |
34936 | ||
a848cd7e SC |
34937 | /* Override any gcc2 internal prototype to avoid an error. */ |
34938 | #ifdef __cplusplus | |
34939 | extern "C" | |
34940 | { | |
34941 | #endif | |
34942 | /* We use char because int might match the return type of a gcc2 | |
34943 | builtin and then its argument prototype would still apply. */ | |
34944 | char pthread_cancel (); | |
34945 | /* The GNU C library defines this for functions which it implements | |
34946 | to always fail with ENOSYS. Some functions are actually named | |
34947 | something starting with __ and the normal name is an alias. */ | |
34948 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
34949 | choke me | |
34950 | #else | |
34951 | char (*f) () = pthread_cancel; | |
34952 | #endif | |
34953 | #ifdef __cplusplus | |
34954 | } | |
34955 | #endif | |
34956 | ||
34957 | int | |
34958 | main () | |
34959 | { | |
34960 | return f != pthread_cancel; | |
34961 | ; | |
34962 | return 0; | |
34963 | } | |
34964 | _ACEOF | |
34965 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34967 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34968 | ac_status=$? |
ac1cb8d3 VS |
34969 | grep -v '^ *+' conftest.er1 >conftest.err |
34970 | rm -f conftest.er1 | |
34971 | cat conftest.err >&5 | |
a848cd7e SC |
34972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34973 | (exit $ac_status); } && | |
9dd0f6c2 | 34974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34976 | (eval $ac_try) 2>&5 | |
34977 | ac_status=$? | |
34978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34979 | (exit $ac_status); }; } && | |
34980 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34982 | (eval $ac_try) 2>&5 | |
34983 | ac_status=$? | |
34984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34985 | (exit $ac_status); }; }; then | |
34986 | ac_cv_func_pthread_cancel=yes | |
34987 | else | |
34988 | echo "$as_me: failed program was:" >&5 | |
34989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34990 | ||
34991 | ac_cv_func_pthread_cancel=no | |
34992 | fi | |
ac1cb8d3 VS |
34993 | rm -f conftest.err conftest.$ac_objext \ |
34994 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34995 | fi |
34996 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
34997 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
34998 | if test $ac_cv_func_pthread_cancel = yes; then | |
34999 | cat >>confdefs.h <<\_ACEOF | |
35000 | #define HAVE_PTHREAD_CANCEL 1 | |
35001 | _ACEOF | |
35002 | ||
35003 | else | |
35004 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
35005 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
35006 | fi | |
35007 | ||
35008 | ||
35009 | ||
35010 | ||
35011 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
35012 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
35013 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
35014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35015 | else | |
35016 | ||
35017 | cat >conftest.$ac_ext <<_ACEOF | |
35018 | /* confdefs.h. */ | |
35019 | _ACEOF | |
35020 | cat confdefs.h >>conftest.$ac_ext | |
35021 | cat >>conftest.$ac_ext <<_ACEOF | |
35022 | /* end confdefs.h. */ | |
35023 | #include <pthread.h> | |
35024 | int | |
35025 | main () | |
35026 | { | |
35027 | ||
35028 | pthread_mutexattr_t attr; | |
35029 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
35030 | ||
35031 | ; | |
35032 | return 0; | |
35033 | } | |
35034 | _ACEOF | |
35035 | rm -f conftest.$ac_objext | |
35036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35037 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35038 | ac_status=$? |
ac1cb8d3 VS |
35039 | grep -v '^ *+' conftest.er1 >conftest.err |
35040 | rm -f conftest.er1 | |
35041 | cat conftest.err >&5 | |
a848cd7e SC |
35042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35043 | (exit $ac_status); } && | |
9dd0f6c2 | 35044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35046 | (eval $ac_try) 2>&5 | |
35047 | ac_status=$? | |
35048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35049 | (exit $ac_status); }; } && | |
35050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35052 | (eval $ac_try) 2>&5 | |
35053 | ac_status=$? | |
35054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35055 | (exit $ac_status); }; }; then | |
35056 | ||
35057 | wx_cv_type_pthread_mutexattr_t=yes | |
35058 | ||
35059 | else | |
35060 | echo "$as_me: failed program was:" >&5 | |
35061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35062 | ||
35063 | ||
35064 | wx_cv_type_pthread_mutexattr_t=no | |
35065 | ||
35066 | ||
35067 | fi | |
ac1cb8d3 | 35068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35069 | |
35070 | fi | |
35071 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
35072 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
35073 | ||
35074 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
35075 | cat >>confdefs.h <<\_ACEOF | |
35076 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
35077 | _ACEOF | |
35078 | ||
35079 | else | |
35080 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
35081 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
35082 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
35083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35084 | else | |
35085 | ||
35086 | cat >conftest.$ac_ext <<_ACEOF | |
35087 | /* confdefs.h. */ | |
35088 | _ACEOF | |
35089 | cat confdefs.h >>conftest.$ac_ext | |
35090 | cat >>conftest.$ac_ext <<_ACEOF | |
35091 | /* end confdefs.h. */ | |
35092 | #include <pthread.h> | |
35093 | int | |
35094 | main () | |
35095 | { | |
35096 | ||
35097 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
35098 | ||
35099 | ; | |
35100 | return 0; | |
35101 | } | |
35102 | _ACEOF | |
35103 | rm -f conftest.$ac_objext | |
35104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35105 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35106 | ac_status=$? |
ac1cb8d3 VS |
35107 | grep -v '^ *+' conftest.er1 >conftest.err |
35108 | rm -f conftest.er1 | |
35109 | cat conftest.err >&5 | |
a848cd7e SC |
35110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35111 | (exit $ac_status); } && | |
9dd0f6c2 | 35112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35114 | (eval $ac_try) 2>&5 | |
35115 | ac_status=$? | |
35116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35117 | (exit $ac_status); }; } && | |
35118 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35120 | (eval $ac_try) 2>&5 | |
35121 | ac_status=$? | |
35122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35123 | (exit $ac_status); }; }; then | |
35124 | ||
35125 | wx_cv_type_pthread_rec_mutex_init=yes | |
35126 | ||
35127 | else | |
35128 | echo "$as_me: failed program was:" >&5 | |
35129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35130 | ||
35131 | ||
35132 | wx_cv_type_pthread_rec_mutex_init=no | |
35133 | ||
35134 | ||
35135 | fi | |
ac1cb8d3 | 35136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35137 | |
35138 | fi | |
35139 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
35140 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
35141 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
35142 | cat >>confdefs.h <<\_ACEOF | |
35143 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
35144 | _ACEOF | |
35145 | ||
35146 | else | |
35147 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
35148 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
35149 | fi | |
35150 | fi | |
35151 | fi | |
35152 | ||
35153 | else | |
35154 | if test "$wxUSE_THREADS" = "yes" ; then | |
35155 | case "${host}" in | |
35156 | *-*-mingw32* ) | |
35157 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
35158 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
35159 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
35160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35161 | else | |
35162 | ||
35163 | CFLAGS_OLD="$CFLAGS" | |
35164 | CFLAGS="$CFLAGS -mthreads" | |
35165 | cat >conftest.$ac_ext <<_ACEOF | |
35166 | /* confdefs.h. */ | |
35167 | _ACEOF | |
35168 | cat confdefs.h >>conftest.$ac_ext | |
35169 | cat >>conftest.$ac_ext <<_ACEOF | |
35170 | /* end confdefs.h. */ | |
35171 | ||
35172 | int | |
35173 | main () | |
35174 | { | |
35175 | ||
35176 | ; | |
35177 | return 0; | |
35178 | } | |
35179 | _ACEOF | |
35180 | rm -f conftest.$ac_objext | |
35181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35183 | ac_status=$? |
ac1cb8d3 VS |
35184 | grep -v '^ *+' conftest.er1 >conftest.err |
35185 | rm -f conftest.er1 | |
35186 | cat conftest.err >&5 | |
a848cd7e SC |
35187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35188 | (exit $ac_status); } && | |
9dd0f6c2 | 35189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35191 | (eval $ac_try) 2>&5 | |
35192 | ac_status=$? | |
35193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35194 | (exit $ac_status); }; } && | |
35195 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35197 | (eval $ac_try) 2>&5 | |
35198 | ac_status=$? | |
35199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35200 | (exit $ac_status); }; }; then | |
35201 | wx_cv_cflags_mthread=yes | |
35202 | else | |
35203 | echo "$as_me: failed program was:" >&5 | |
35204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35205 | ||
35206 | wx_cv_cflags_mthread=no | |
35207 | ||
35208 | fi | |
ac1cb8d3 | 35209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35210 | |
35211 | ||
35212 | fi | |
35213 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
35214 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
35215 | ||
35216 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
35217 | CXXFLAGS="$CXXFLAGS -mthreads" | |
35218 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
35219 | LDFLAGS="$LDFLAGS -mthreads" | |
35220 | else | |
35221 | CFLAGS="$CFLAGS_OLD" | |
35222 | fi | |
35223 | ;; | |
35224 | *-pc-os2*emx ) | |
35225 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
35226 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
35227 | LDFLAGS="$LDFLAGS -Zmt" | |
35228 | ;; | |
35229 | esac | |
35230 | fi | |
35231 | fi | |
35232 | ||
35233 | if test "$wxUSE_THREADS" = "yes"; then | |
35234 | cat >>confdefs.h <<\_ACEOF | |
35235 | #define wxUSE_THREADS 1 | |
35236 | _ACEOF | |
35237 | ||
35238 | ||
35239 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
35240 | else | |
35241 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
35242 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
35243 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
35244 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
35245 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
35246 | echo "$as_me:$LINENO: result: yes" >&5 | |
35247 | echo "${ECHO_T}yes" >&6 | |
35248 | else | |
35249 | echo "$as_me:$LINENO: result: no" >&5 | |
35250 | echo "${ECHO_T}no" >&6 | |
35251 | fi | |
35252 | fi | |
35253 | fi | |
35254 | ||
35255 | if test "$WXGTK20" = 1 ; then | |
35256 | cat >>confdefs.h <<_ACEOF | |
35257 | #define __WXGTK20__ $WXGTK20 | |
35258 | _ACEOF | |
35259 | ||
35260 | WXGTK12=1 | |
35261 | fi | |
35262 | ||
35263 | if test "$WXGTK12" = 1 ; then | |
35264 | cat >>confdefs.h <<_ACEOF | |
35265 | #define __WXGTK12__ $WXGTK12 | |
35266 | _ACEOF | |
35267 | ||
35268 | fi | |
35269 | ||
35270 | if test "$WXGTK127" = 1 ; then | |
35271 | cat >>confdefs.h <<_ACEOF | |
35272 | #define __WXGTK127__ $WXGTK127 | |
35273 | _ACEOF | |
35274 | ||
35275 | fi | |
35276 | ||
35277 | if test "$WXGPE" = 1 ; then | |
35278 | cat >>confdefs.h <<_ACEOF | |
35279 | #define __WXGPE__ $WXGPE | |
35280 | _ACEOF | |
35281 | ||
35282 | fi | |
35283 | ||
35284 | WXDEBUG= | |
35285 | ||
35286 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
35287 | WXDEBUG="-g" | |
35288 | wxUSE_OPTIMISE=no | |
35289 | fi | |
35290 | ||
35291 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
35292 | wxUSE_DEBUG_INFO=yes | |
35293 | WXDEBUG="-ggdb" | |
35294 | fi | |
35295 | ||
35296 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
35297 | cat >>confdefs.h <<\_ACEOF | |
35298 | #define WXDEBUG 1 | |
35299 | _ACEOF | |
35300 | ||
35301 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
35302 | else | |
35303 | if test "$wxUSE_GTK" = 1 ; then | |
35304 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
35305 | fi | |
35306 | fi | |
35307 | ||
35308 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
35309 | cat >>confdefs.h <<\_ACEOF | |
35310 | #define wxUSE_MEMORY_TRACING 1 | |
35311 | _ACEOF | |
35312 | ||
35313 | cat >>confdefs.h <<\_ACEOF | |
35314 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
35315 | _ACEOF | |
35316 | ||
35317 | cat >>confdefs.h <<\_ACEOF | |
35318 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
35319 | _ACEOF | |
35320 | ||
35321 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
35322 | fi | |
35323 | ||
35324 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
35325 | DMALLOC_LIBS="-ldmalloc" | |
35326 | fi | |
35327 | ||
35328 | PROFILE= | |
35329 | if test "$wxUSE_PROFILE" = "yes" ; then | |
35330 | PROFILE=" -pg" | |
35331 | fi | |
35332 | ||
35333 | CODE_GEN_FLAGS= | |
35334 | CODE_GEN_FLAGS_CXX= | |
35335 | if test "$GCC" = "yes" ; then | |
35336 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
35337 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
35338 | fi | |
35339 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
35340 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
35341 | fi | |
35342 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
35343 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
35344 | fi | |
35345 | ||
35346 | case "${host}" in | |
35347 | powerpc*-*-aix* ) | |
35348 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
35349 | ;; | |
35350 | *-hppa* ) | |
35351 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
35352 | ;; | |
35353 | esac | |
35354 | fi | |
35355 | ||
35356 | OPTIMISE= | |
35357 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
35358 | if test "$GCC" = yes ; then | |
35359 | OPTIMISE="-O0" | |
35360 | fi | |
35361 | else | |
35362 | if test "$GCC" = yes ; then | |
35363 | OPTIMISE="-O2" | |
35364 | ||
35365 | case "${host}" in | |
35366 | i586-*-*|i686-*-* ) | |
35367 | OPTIMISE="${OPTIMISE} " | |
35368 | ;; | |
35369 | esac | |
35370 | else | |
35371 | OPTIMISE="-O" | |
35372 | fi | |
35373 | fi | |
35374 | ||
35375 | ||
35376 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
35377 | cat >>confdefs.h <<\_ACEOF | |
35378 | #define WXWIN_COMPATIBILITY_2_2 1 | |
35379 | _ACEOF | |
35380 | ||
35381 | ||
35382 | WXWIN_COMPATIBILITY_2_4="yes" | |
35383 | fi | |
35384 | ||
35385 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
35386 | cat >>confdefs.h <<\_ACEOF | |
35387 | #define WXWIN_COMPATIBILITY_2_4 1 | |
35388 | _ACEOF | |
35389 | ||
35390 | fi | |
35391 | ||
35392 | ||
35393 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 35394 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
35395 | #define wxUSE_GUI 1 |
35396 | _ACEOF | |
35397 | ||
35398 | ||
370fd4c2 | 35399 | fi |
a848cd7e SC |
35400 | |
35401 | ||
35402 | if test "$wxUSE_UNIX" = "yes"; then | |
35403 | cat >>confdefs.h <<\_ACEOF | |
35404 | #define wxUSE_UNIX 1 | |
35405 | _ACEOF | |
35406 | ||
35407 | fi | |
35408 | ||
35409 | ||
35410 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
35411 | ||
35412 | HAVE_DL_FUNCS=0 | |
35413 | HAVE_SHL_FUNCS=0 | |
35414 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
35415 | if test "$USE_DARWIN" = 1; then | |
35416 | HAVE_DL_FUNCS=1 | |
35417 | else | |
35418 | ||
35419 | for ac_func in dlopen | |
35420 | do | |
35421 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35422 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35423 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35424 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35426 | else | |
35427 | cat >conftest.$ac_ext <<_ACEOF | |
35428 | /* confdefs.h. */ | |
35429 | _ACEOF | |
35430 | cat confdefs.h >>conftest.$ac_ext | |
35431 | cat >>conftest.$ac_ext <<_ACEOF | |
35432 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35433 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35434 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35435 | #define $ac_func innocuous_$ac_func | |
35436 | ||
a848cd7e SC |
35437 | /* System header to define __stub macros and hopefully few prototypes, |
35438 | which can conflict with char $ac_func (); below. | |
35439 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35440 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35441 | |
a848cd7e SC |
35442 | #ifdef __STDC__ |
35443 | # include <limits.h> | |
35444 | #else | |
35445 | # include <assert.h> | |
35446 | #endif | |
ac1cb8d3 VS |
35447 | |
35448 | #undef $ac_func | |
35449 | ||
a848cd7e SC |
35450 | /* Override any gcc2 internal prototype to avoid an error. */ |
35451 | #ifdef __cplusplus | |
35452 | extern "C" | |
35453 | { | |
35454 | #endif | |
35455 | /* We use char because int might match the return type of a gcc2 | |
35456 | builtin and then its argument prototype would still apply. */ | |
35457 | char $ac_func (); | |
35458 | /* The GNU C library defines this for functions which it implements | |
35459 | to always fail with ENOSYS. Some functions are actually named | |
35460 | something starting with __ and the normal name is an alias. */ | |
35461 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35462 | choke me | |
35463 | #else | |
35464 | char (*f) () = $ac_func; | |
35465 | #endif | |
35466 | #ifdef __cplusplus | |
35467 | } | |
35468 | #endif | |
35469 | ||
35470 | int | |
35471 | main () | |
35472 | { | |
35473 | return f != $ac_func; | |
35474 | ; | |
35475 | return 0; | |
35476 | } | |
35477 | _ACEOF | |
35478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35480 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35481 | ac_status=$? |
ac1cb8d3 VS |
35482 | grep -v '^ *+' conftest.er1 >conftest.err |
35483 | rm -f conftest.er1 | |
35484 | cat conftest.err >&5 | |
a848cd7e SC |
35485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35486 | (exit $ac_status); } && | |
9dd0f6c2 | 35487 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35489 | (eval $ac_try) 2>&5 | |
35490 | ac_status=$? | |
35491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35492 | (exit $ac_status); }; } && | |
35493 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35495 | (eval $ac_try) 2>&5 | |
35496 | ac_status=$? | |
35497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35498 | (exit $ac_status); }; }; then | |
35499 | eval "$as_ac_var=yes" | |
35500 | else | |
35501 | echo "$as_me: failed program was:" >&5 | |
35502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35503 | ||
35504 | eval "$as_ac_var=no" | |
35505 | fi | |
ac1cb8d3 VS |
35506 | rm -f conftest.err conftest.$ac_objext \ |
35507 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35508 | fi |
35509 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35510 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35511 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35512 | cat >>confdefs.h <<_ACEOF | |
35513 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35514 | _ACEOF | |
35515 | ||
35516 | cat >>confdefs.h <<\_ACEOF | |
35517 | #define HAVE_DLOPEN 1 | |
35518 | _ACEOF | |
35519 | ||
35520 | HAVE_DL_FUNCS=1 | |
35521 | ||
35522 | else | |
35523 | ||
35524 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
35525 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
35526 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
35527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35528 | else | |
35529 | ac_check_lib_save_LIBS=$LIBS | |
35530 | LIBS="-ldl $LIBS" | |
35531 | cat >conftest.$ac_ext <<_ACEOF | |
35532 | /* confdefs.h. */ | |
35533 | _ACEOF | |
35534 | cat confdefs.h >>conftest.$ac_ext | |
35535 | cat >>conftest.$ac_ext <<_ACEOF | |
35536 | /* end confdefs.h. */ | |
35537 | ||
35538 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35539 | #ifdef __cplusplus | |
35540 | extern "C" | |
35541 | #endif | |
35542 | /* We use char because int might match the return type of a gcc2 | |
35543 | builtin and then its argument prototype would still apply. */ | |
35544 | char dlopen (); | |
35545 | int | |
35546 | main () | |
35547 | { | |
35548 | dlopen (); | |
35549 | ; | |
35550 | return 0; | |
35551 | } | |
35552 | _ACEOF | |
35553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35555 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35556 | ac_status=$? |
ac1cb8d3 VS |
35557 | grep -v '^ *+' conftest.er1 >conftest.err |
35558 | rm -f conftest.er1 | |
35559 | cat conftest.err >&5 | |
a848cd7e SC |
35560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35561 | (exit $ac_status); } && | |
9dd0f6c2 | 35562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35564 | (eval $ac_try) 2>&5 | |
35565 | ac_status=$? | |
35566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35567 | (exit $ac_status); }; } && | |
35568 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35570 | (eval $ac_try) 2>&5 | |
35571 | ac_status=$? | |
35572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35573 | (exit $ac_status); }; }; then | |
35574 | ac_cv_lib_dl_dlopen=yes | |
35575 | else | |
35576 | echo "$as_me: failed program was:" >&5 | |
35577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35578 | ||
35579 | ac_cv_lib_dl_dlopen=no | |
35580 | fi | |
ac1cb8d3 VS |
35581 | rm -f conftest.err conftest.$ac_objext \ |
35582 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35583 | LIBS=$ac_check_lib_save_LIBS |
35584 | fi | |
35585 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
35586 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
35587 | if test $ac_cv_lib_dl_dlopen = yes; then | |
35588 | ||
35589 | cat >>confdefs.h <<\_ACEOF | |
35590 | #define HAVE_DLOPEN 1 | |
35591 | _ACEOF | |
35592 | ||
35593 | HAVE_DL_FUNCS=1 | |
35594 | DL_LINK=" -ldl$DL_LINK" | |
35595 | ||
35596 | else | |
35597 | ||
35598 | ||
35599 | for ac_func in shl_load | |
35600 | do | |
35601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35602 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35604 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35606 | else | |
35607 | cat >conftest.$ac_ext <<_ACEOF | |
35608 | /* confdefs.h. */ | |
35609 | _ACEOF | |
35610 | cat confdefs.h >>conftest.$ac_ext | |
35611 | cat >>conftest.$ac_ext <<_ACEOF | |
35612 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35613 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35614 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35615 | #define $ac_func innocuous_$ac_func | |
35616 | ||
a848cd7e SC |
35617 | /* System header to define __stub macros and hopefully few prototypes, |
35618 | which can conflict with char $ac_func (); below. | |
35619 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35620 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35621 | |
a848cd7e SC |
35622 | #ifdef __STDC__ |
35623 | # include <limits.h> | |
35624 | #else | |
35625 | # include <assert.h> | |
35626 | #endif | |
ac1cb8d3 VS |
35627 | |
35628 | #undef $ac_func | |
35629 | ||
a848cd7e SC |
35630 | /* Override any gcc2 internal prototype to avoid an error. */ |
35631 | #ifdef __cplusplus | |
35632 | extern "C" | |
35633 | { | |
35634 | #endif | |
35635 | /* We use char because int might match the return type of a gcc2 | |
35636 | builtin and then its argument prototype would still apply. */ | |
35637 | char $ac_func (); | |
35638 | /* The GNU C library defines this for functions which it implements | |
35639 | to always fail with ENOSYS. Some functions are actually named | |
35640 | something starting with __ and the normal name is an alias. */ | |
35641 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35642 | choke me | |
35643 | #else | |
35644 | char (*f) () = $ac_func; | |
35645 | #endif | |
35646 | #ifdef __cplusplus | |
35647 | } | |
35648 | #endif | |
35649 | ||
35650 | int | |
35651 | main () | |
35652 | { | |
35653 | return f != $ac_func; | |
35654 | ; | |
35655 | return 0; | |
35656 | } | |
35657 | _ACEOF | |
35658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35660 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35661 | ac_status=$? |
ac1cb8d3 VS |
35662 | grep -v '^ *+' conftest.er1 >conftest.err |
35663 | rm -f conftest.er1 | |
35664 | cat conftest.err >&5 | |
a848cd7e SC |
35665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35666 | (exit $ac_status); } && | |
9dd0f6c2 | 35667 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35669 | (eval $ac_try) 2>&5 | |
35670 | ac_status=$? | |
35671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35672 | (exit $ac_status); }; } && | |
35673 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35675 | (eval $ac_try) 2>&5 | |
35676 | ac_status=$? | |
35677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35678 | (exit $ac_status); }; }; then | |
35679 | eval "$as_ac_var=yes" | |
35680 | else | |
35681 | echo "$as_me: failed program was:" >&5 | |
35682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35683 | ||
35684 | eval "$as_ac_var=no" | |
35685 | fi | |
ac1cb8d3 VS |
35686 | rm -f conftest.err conftest.$ac_objext \ |
35687 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35688 | fi |
35689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35690 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35691 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35692 | cat >>confdefs.h <<_ACEOF | |
35693 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35694 | _ACEOF | |
35695 | ||
35696 | cat >>confdefs.h <<\_ACEOF | |
35697 | #define HAVE_SHL_LOAD 1 | |
35698 | _ACEOF | |
35699 | ||
35700 | HAVE_SHL_FUNCS=1 | |
35701 | ||
35702 | else | |
35703 | ||
35704 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
35705 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
35706 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
35707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35708 | else | |
35709 | ac_check_lib_save_LIBS=$LIBS | |
35710 | LIBS="-lshl_load $LIBS" | |
35711 | cat >conftest.$ac_ext <<_ACEOF | |
35712 | /* confdefs.h. */ | |
35713 | _ACEOF | |
35714 | cat confdefs.h >>conftest.$ac_ext | |
35715 | cat >>conftest.$ac_ext <<_ACEOF | |
35716 | /* end confdefs.h. */ | |
35717 | ||
35718 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35719 | #ifdef __cplusplus | |
35720 | extern "C" | |
35721 | #endif | |
35722 | /* We use char because int might match the return type of a gcc2 | |
35723 | builtin and then its argument prototype would still apply. */ | |
35724 | char dld (); | |
35725 | int | |
35726 | main () | |
35727 | { | |
35728 | dld (); | |
35729 | ; | |
35730 | return 0; | |
35731 | } | |
35732 | _ACEOF | |
35733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35735 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35736 | ac_status=$? |
ac1cb8d3 VS |
35737 | grep -v '^ *+' conftest.er1 >conftest.err |
35738 | rm -f conftest.er1 | |
35739 | cat conftest.err >&5 | |
a848cd7e SC |
35740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35741 | (exit $ac_status); } && | |
9dd0f6c2 | 35742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35744 | (eval $ac_try) 2>&5 | |
35745 | ac_status=$? | |
35746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35747 | (exit $ac_status); }; } && | |
35748 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35750 | (eval $ac_try) 2>&5 | |
35751 | ac_status=$? | |
35752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35753 | (exit $ac_status); }; }; then | |
35754 | ac_cv_lib_shl_load_dld=yes | |
35755 | else | |
35756 | echo "$as_me: failed program was:" >&5 | |
35757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35758 | ||
35759 | ac_cv_lib_shl_load_dld=no | |
35760 | fi | |
ac1cb8d3 VS |
35761 | rm -f conftest.err conftest.$ac_objext \ |
35762 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35763 | LIBS=$ac_check_lib_save_LIBS |
35764 | fi | |
35765 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
35766 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
35767 | if test $ac_cv_lib_shl_load_dld = yes; then | |
35768 | ||
35769 | HAVE_SHL_FUNCS=1 | |
35770 | DL_LINK=" -ldld$DL_LINK" | |
35771 | ||
35772 | fi | |
35773 | ||
35774 | ||
35775 | fi | |
35776 | done | |
35777 | ||
35778 | ||
35779 | fi | |
35780 | ||
35781 | ||
35782 | fi | |
35783 | done | |
35784 | ||
35785 | ||
35786 | if test "$HAVE_DL_FUNCS" = 1; then | |
35787 | ||
35788 | for ac_func in dlerror | |
35789 | do | |
35790 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35791 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35792 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35793 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35795 | else | |
35796 | cat >conftest.$ac_ext <<_ACEOF | |
35797 | /* confdefs.h. */ | |
35798 | _ACEOF | |
35799 | cat confdefs.h >>conftest.$ac_ext | |
35800 | cat >>conftest.$ac_ext <<_ACEOF | |
35801 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35802 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35803 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35804 | #define $ac_func innocuous_$ac_func | |
35805 | ||
a848cd7e SC |
35806 | /* System header to define __stub macros and hopefully few prototypes, |
35807 | which can conflict with char $ac_func (); below. | |
35808 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35809 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35810 | |
a848cd7e SC |
35811 | #ifdef __STDC__ |
35812 | # include <limits.h> | |
35813 | #else | |
35814 | # include <assert.h> | |
35815 | #endif | |
ac1cb8d3 VS |
35816 | |
35817 | #undef $ac_func | |
35818 | ||
a848cd7e SC |
35819 | /* Override any gcc2 internal prototype to avoid an error. */ |
35820 | #ifdef __cplusplus | |
35821 | extern "C" | |
35822 | { | |
35823 | #endif | |
35824 | /* We use char because int might match the return type of a gcc2 | |
35825 | builtin and then its argument prototype would still apply. */ | |
35826 | char $ac_func (); | |
35827 | /* The GNU C library defines this for functions which it implements | |
35828 | to always fail with ENOSYS. Some functions are actually named | |
35829 | something starting with __ and the normal name is an alias. */ | |
35830 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35831 | choke me | |
35832 | #else | |
35833 | char (*f) () = $ac_func; | |
35834 | #endif | |
35835 | #ifdef __cplusplus | |
35836 | } | |
35837 | #endif | |
35838 | ||
35839 | int | |
35840 | main () | |
35841 | { | |
35842 | return f != $ac_func; | |
35843 | ; | |
35844 | return 0; | |
35845 | } | |
35846 | _ACEOF | |
35847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35849 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35850 | ac_status=$? |
ac1cb8d3 VS |
35851 | grep -v '^ *+' conftest.er1 >conftest.err |
35852 | rm -f conftest.er1 | |
35853 | cat conftest.err >&5 | |
a848cd7e SC |
35854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35855 | (exit $ac_status); } && | |
9dd0f6c2 | 35856 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35858 | (eval $ac_try) 2>&5 | |
35859 | ac_status=$? | |
35860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35861 | (exit $ac_status); }; } && | |
35862 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35864 | (eval $ac_try) 2>&5 | |
35865 | ac_status=$? | |
35866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35867 | (exit $ac_status); }; }; then | |
35868 | eval "$as_ac_var=yes" | |
35869 | else | |
35870 | echo "$as_me: failed program was:" >&5 | |
35871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35872 | ||
35873 | eval "$as_ac_var=no" | |
35874 | fi | |
ac1cb8d3 VS |
35875 | rm -f conftest.err conftest.$ac_objext \ |
35876 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35877 | fi |
35878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35879 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35880 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35881 | cat >>confdefs.h <<_ACEOF | |
35882 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35883 | _ACEOF | |
35884 | cat >>confdefs.h <<\_ACEOF | |
35885 | #define HAVE_DLERROR 1 | |
35886 | _ACEOF | |
35887 | ||
35888 | else | |
35889 | ||
35890 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
35891 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
35892 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
35893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35894 | else | |
35895 | ac_check_lib_save_LIBS=$LIBS | |
35896 | LIBS="-ldl $LIBS" | |
35897 | cat >conftest.$ac_ext <<_ACEOF | |
35898 | /* confdefs.h. */ | |
35899 | _ACEOF | |
35900 | cat confdefs.h >>conftest.$ac_ext | |
35901 | cat >>conftest.$ac_ext <<_ACEOF | |
35902 | /* end confdefs.h. */ | |
35903 | ||
35904 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35905 | #ifdef __cplusplus | |
35906 | extern "C" | |
35907 | #endif | |
35908 | /* We use char because int might match the return type of a gcc2 | |
35909 | builtin and then its argument prototype would still apply. */ | |
35910 | char dlerror (); | |
35911 | int | |
35912 | main () | |
35913 | { | |
35914 | dlerror (); | |
35915 | ; | |
35916 | return 0; | |
35917 | } | |
35918 | _ACEOF | |
35919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35921 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35922 | ac_status=$? |
ac1cb8d3 VS |
35923 | grep -v '^ *+' conftest.er1 >conftest.err |
35924 | rm -f conftest.er1 | |
35925 | cat conftest.err >&5 | |
a848cd7e SC |
35926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35927 | (exit $ac_status); } && | |
9dd0f6c2 | 35928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35930 | (eval $ac_try) 2>&5 | |
35931 | ac_status=$? | |
35932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35933 | (exit $ac_status); }; } && | |
35934 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35936 | (eval $ac_try) 2>&5 | |
35937 | ac_status=$? | |
35938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35939 | (exit $ac_status); }; }; then | |
35940 | ac_cv_lib_dl_dlerror=yes | |
35941 | else | |
35942 | echo "$as_me: failed program was:" >&5 | |
35943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35944 | ||
35945 | ac_cv_lib_dl_dlerror=no | |
35946 | fi | |
ac1cb8d3 VS |
35947 | rm -f conftest.err conftest.$ac_objext \ |
35948 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35949 | LIBS=$ac_check_lib_save_LIBS |
35950 | fi | |
35951 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
35952 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
35953 | if test $ac_cv_lib_dl_dlerror = yes; then | |
35954 | cat >>confdefs.h <<\_ACEOF | |
35955 | #define HAVE_DLERROR 1 | |
35956 | _ACEOF | |
35957 | ||
35958 | fi | |
35959 | ||
35960 | ||
35961 | ||
35962 | fi | |
35963 | done | |
35964 | ||
35965 | fi | |
35966 | fi | |
35967 | ||
35968 | if test "$HAVE_DL_FUNCS" = 0; then | |
35969 | if test "$HAVE_SHL_FUNCS" = 0; then | |
35970 | if test "$USE_UNIX" = 1; then | |
35971 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
35972 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
35973 | wxUSE_DYNAMIC_LOADER=no | |
35974 | wxUSE_DYNLIB_CLASS=no | |
35975 | else | |
35976 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
35977 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
35978 | fi | |
35979 | fi | |
35980 | fi | |
35981 | fi | |
35982 | fi | |
35983 | ||
35984 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
35985 | cat >>confdefs.h <<\_ACEOF | |
35986 | #define wxUSE_DYNAMIC_LOADER 1 | |
35987 | _ACEOF | |
35988 | ||
35989 | fi | |
35990 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
35991 | cat >>confdefs.h <<\_ACEOF | |
35992 | #define wxUSE_DYNLIB_CLASS 1 | |
35993 | _ACEOF | |
35994 | ||
35995 | fi | |
35996 | ||
35997 | ||
35998 | ||
35999 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
36000 | if test "$wxUSE_SHARED" = "no" ; then | |
36001 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
36002 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
36003 | wxUSE_PLUGINS=no | |
36004 | fi | |
36005 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
36006 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
36007 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
36008 | wxUSE_PLUGINS=no | |
36009 | fi | |
36010 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
36011 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
36012 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
36013 | wxUSE_PLUGINS=no | |
36014 | fi | |
36015 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
36016 | cat >>confdefs.h <<\_ACEOF | |
36017 | #define wxUSE_PLUGINS 1 | |
36018 | _ACEOF | |
36019 | ||
36020 | fi | |
36021 | fi | |
36022 | ||
36023 | ||
36024 | if test "$wxUSE_STL" = "yes"; then | |
36025 | cat >>confdefs.h <<\_ACEOF | |
36026 | #define wxUSE_STL 1 | |
36027 | _ACEOF | |
36028 | ||
36029 | fi | |
36030 | ||
36031 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
36032 | cat >>confdefs.h <<\_ACEOF | |
36033 | #define wxUSE_APPLE_IEEE 1 | |
36034 | _ACEOF | |
36035 | ||
36036 | fi | |
36037 | ||
36038 | if test "$wxUSE_TIMER" = "yes"; then | |
36039 | cat >>confdefs.h <<\_ACEOF | |
36040 | #define wxUSE_TIMER 1 | |
36041 | _ACEOF | |
36042 | ||
36043 | fi | |
36044 | ||
36045 | WITH_PLUGIN_SDL=0 | |
36046 | if test "$wxUSE_SOUND" = "yes"; then | |
36047 | if test "$USE_UNIX" = "1" ; then | |
36048 | ||
36049 | for ac_header in sys/soundcard.h | |
36050 | do | |
36051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36057 | fi | |
36058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36060 | else | |
36061 | # Is the header compilable? | |
36062 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36064 | cat >conftest.$ac_ext <<_ACEOF | |
36065 | /* confdefs.h. */ | |
36066 | _ACEOF | |
36067 | cat confdefs.h >>conftest.$ac_ext | |
36068 | cat >>conftest.$ac_ext <<_ACEOF | |
36069 | /* end confdefs.h. */ | |
36070 | $ac_includes_default | |
36071 | #include <$ac_header> | |
36072 | _ACEOF | |
36073 | rm -f conftest.$ac_objext | |
36074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36075 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36076 | ac_status=$? |
ac1cb8d3 VS |
36077 | grep -v '^ *+' conftest.er1 >conftest.err |
36078 | rm -f conftest.er1 | |
36079 | cat conftest.err >&5 | |
a848cd7e SC |
36080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36081 | (exit $ac_status); } && | |
9dd0f6c2 | 36082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36084 | (eval $ac_try) 2>&5 | |
36085 | ac_status=$? | |
36086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36087 | (exit $ac_status); }; } && | |
36088 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36090 | (eval $ac_try) 2>&5 | |
36091 | ac_status=$? | |
36092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36093 | (exit $ac_status); }; }; then | |
36094 | ac_header_compiler=yes | |
36095 | else | |
36096 | echo "$as_me: failed program was:" >&5 | |
36097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36098 | ||
36099 | ac_header_compiler=no | |
36100 | fi | |
ac1cb8d3 | 36101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36102 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36103 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36104 | ||
36105 | # Is the header present? | |
36106 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36107 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36108 | cat >conftest.$ac_ext <<_ACEOF | |
36109 | /* confdefs.h. */ | |
36110 | _ACEOF | |
36111 | cat confdefs.h >>conftest.$ac_ext | |
36112 | cat >>conftest.$ac_ext <<_ACEOF | |
36113 | /* end confdefs.h. */ | |
36114 | #include <$ac_header> | |
36115 | _ACEOF | |
36116 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36117 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36118 | ac_status=$? | |
36119 | grep -v '^ *+' conftest.er1 >conftest.err | |
36120 | rm -f conftest.er1 | |
36121 | cat conftest.err >&5 | |
36122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36123 | (exit $ac_status); } >/dev/null; then | |
36124 | if test -s conftest.err; then | |
36125 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36126 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36127 | else |
36128 | ac_cpp_err= | |
36129 | fi | |
36130 | else | |
36131 | ac_cpp_err=yes | |
36132 | fi | |
36133 | if test -z "$ac_cpp_err"; then | |
36134 | ac_header_preproc=yes | |
36135 | else | |
36136 | echo "$as_me: failed program was:" >&5 | |
36137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36138 | ||
36139 | ac_header_preproc=no | |
36140 | fi | |
36141 | rm -f conftest.err conftest.$ac_ext | |
36142 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36143 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36144 | ||
36145 | # So? What about this header? | |
ac1cb8d3 VS |
36146 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36147 | yes:no: ) | |
a848cd7e SC |
36148 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36149 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36151 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36152 | ac_header_preproc=yes | |
a848cd7e | 36153 | ;; |
ac1cb8d3 | 36154 | no:yes:* ) |
a848cd7e SC |
36155 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36156 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36157 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36158 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36159 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36160 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36161 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36162 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36164 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36165 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36166 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36167 | ( |
36168 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36169 | ## ----------------------------------------- ## |
36170 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36171 | ## ----------------------------------------- ## | |
a848cd7e SC |
36172 | _ASBOX |
36173 | ) | | |
36174 | sed "s/^/$as_me: WARNING: /" >&2 | |
36175 | ;; | |
36176 | esac | |
36177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36181 | else | |
ac1cb8d3 | 36182 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36183 | fi |
36184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36185 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36186 | ||
36187 | fi | |
36188 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36189 | cat >>confdefs.h <<_ACEOF | |
36190 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36191 | _ACEOF | |
36192 | ||
36193 | fi | |
36194 | ||
36195 | done | |
36196 | ||
36197 | ||
36198 | if test "$wxUSE_LIBSDL" != "no"; then | |
36199 | ||
36200 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
36201 | if test "${with_sdl_prefix+set}" = set; then | |
36202 | withval="$with_sdl_prefix" | |
36203 | sdl_prefix="$withval" | |
36204 | else | |
36205 | sdl_prefix="" | |
36206 | fi; | |
36207 | ||
36208 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
36209 | if test "${with_sdl_exec_prefix+set}" = set; then | |
36210 | withval="$with_sdl_exec_prefix" | |
36211 | sdl_exec_prefix="$withval" | |
36212 | else | |
36213 | sdl_exec_prefix="" | |
36214 | fi; | |
36215 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
36216 | if test "${enable_sdltest+set}" = set; then | |
36217 | enableval="$enable_sdltest" | |
36218 | ||
36219 | else | |
36220 | enable_sdltest=yes | |
36221 | fi; | |
36222 | ||
36223 | if test x$sdl_exec_prefix != x ; then | |
36224 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
36225 | if test x${SDL_CONFIG+set} != xset ; then | |
36226 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
36227 | fi | |
36228 | fi | |
36229 | if test x$sdl_prefix != x ; then | |
36230 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
36231 | if test x${SDL_CONFIG+set} != xset ; then | |
36232 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
36233 | fi | |
36234 | fi | |
36235 | ||
36236 | ||
36237 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
36238 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
36239 | set dummy sdl-config; ac_word=$2 | |
36240 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36242 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
36243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36244 | else | |
36245 | case $SDL_CONFIG in | |
36246 | [\\/]* | ?:[\\/]*) | |
36247 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
36248 | ;; | |
36249 | *) | |
36250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36251 | for as_dir in $PATH | |
36252 | do | |
36253 | IFS=$as_save_IFS | |
36254 | test -z "$as_dir" && as_dir=. | |
36255 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36256 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36257 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
36258 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36259 | break 2 | |
36260 | fi | |
36261 | done | |
36262 | done | |
36263 | ||
36264 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
36265 | ;; | |
36266 | esac | |
36267 | fi | |
36268 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
36269 | ||
36270 | if test -n "$SDL_CONFIG"; then | |
36271 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
36272 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
36273 | else | |
36274 | echo "$as_me:$LINENO: result: no" >&5 | |
36275 | echo "${ECHO_T}no" >&6 | |
36276 | fi | |
36277 | ||
36278 | min_sdl_version=1.2.0 | |
36279 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
36280 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
36281 | no_sdl="" | |
36282 | if test "$SDL_CONFIG" = "no" ; then | |
36283 | no_sdl=yes | |
36284 | else | |
36285 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
36286 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
36287 | ||
36288 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
36289 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
36290 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
36291 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
36292 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
36293 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
36294 | if test "x$enable_sdltest" = "xyes" ; then | |
36295 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 36296 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
36297 | ac_save_LIBS="$LIBS" |
36298 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 36299 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
36300 | LIBS="$LIBS $SDL_LIBS" |
36301 | rm -f conf.sdltest | |
36302 | if test "$cross_compiling" = yes; then | |
36303 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
36304 | else | |
36305 | cat >conftest.$ac_ext <<_ACEOF | |
36306 | /* confdefs.h. */ | |
36307 | _ACEOF | |
36308 | cat confdefs.h >>conftest.$ac_ext | |
36309 | cat >>conftest.$ac_ext <<_ACEOF | |
36310 | /* end confdefs.h. */ | |
36311 | ||
36312 | #include <stdio.h> | |
36313 | #include <stdlib.h> | |
36314 | #include <string.h> | |
36315 | #include "SDL.h" | |
36316 | ||
36317 | char* | |
36318 | my_strdup (char *str) | |
36319 | { | |
36320 | char *new_str; | |
36321 | ||
36322 | if (str) | |
36323 | { | |
36324 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
36325 | strcpy (new_str, str); | |
36326 | } | |
36327 | else | |
36328 | new_str = NULL; | |
36329 | ||
36330 | return new_str; | |
36331 | } | |
36332 | ||
36333 | int main (int argc, char *argv[]) | |
36334 | { | |
36335 | int major, minor, micro; | |
36336 | char *tmp_version; | |
36337 | ||
36338 | /* This hangs on some systems (?) | |
36339 | system ("touch conf.sdltest"); | |
36340 | */ | |
36341 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
36342 | ||
36343 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
36344 | tmp_version = my_strdup("$min_sdl_version"); | |
36345 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
36346 | printf("%s, bad version string\n", "$min_sdl_version"); | |
36347 | exit(1); | |
36348 | } | |
36349 | ||
36350 | if (($sdl_major_version > major) || | |
36351 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
36352 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
36353 | { | |
36354 | return 0; | |
36355 | } | |
36356 | else | |
36357 | { | |
36358 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
36359 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
36360 | printf("*** best to upgrade to the required version.\n"); | |
36361 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
36362 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
36363 | printf("*** config.cache before re-running configure\n"); | |
36364 | return 1; | |
36365 | } | |
36366 | } | |
36367 | ||
36368 | ||
36369 | _ACEOF | |
36370 | rm -f conftest$ac_exeext | |
36371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36372 | (eval $ac_link) 2>&5 | |
36373 | ac_status=$? | |
36374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36375 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
36376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36377 | (eval $ac_try) 2>&5 | |
36378 | ac_status=$? | |
36379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36380 | (exit $ac_status); }; }; then | |
36381 | : | |
36382 | else | |
36383 | echo "$as_me: program exited with status $ac_status" >&5 | |
36384 | echo "$as_me: failed program was:" >&5 | |
36385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36386 | ||
36387 | ( exit $ac_status ) | |
36388 | no_sdl=yes | |
36389 | fi | |
ac1cb8d3 | 36390 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36391 | fi |
36392 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 36393 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
36394 | LIBS="$ac_save_LIBS" |
36395 | fi | |
36396 | fi | |
36397 | if test "x$no_sdl" = x ; then | |
36398 | echo "$as_me:$LINENO: result: yes" >&5 | |
36399 | echo "${ECHO_T}yes" >&6 | |
36400 | ||
36401 | EXTRALIBS_SDL="$SDL_LIBS" | |
36402 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
36403 | cat >>confdefs.h <<\_ACEOF | |
36404 | #define wxUSE_LIBSDL 1 | |
36405 | _ACEOF | |
36406 | ||
36407 | ||
36408 | else | |
36409 | echo "$as_me:$LINENO: result: no" >&5 | |
36410 | echo "${ECHO_T}no" >&6 | |
36411 | if test "$SDL_CONFIG" = "no" ; then | |
36412 | echo "*** The sdl-config script installed by SDL could not be found" | |
36413 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
36414 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
36415 | echo "*** full path to sdl-config." | |
36416 | else | |
36417 | if test -f conf.sdltest ; then | |
36418 | : | |
36419 | else | |
36420 | echo "*** Could not run SDL test program, checking why..." | |
36421 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 36422 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
36423 | LIBS="$LIBS $SDL_LIBS" |
36424 | cat >conftest.$ac_ext <<_ACEOF | |
36425 | /* confdefs.h. */ | |
36426 | _ACEOF | |
36427 | cat confdefs.h >>conftest.$ac_ext | |
36428 | cat >>conftest.$ac_ext <<_ACEOF | |
36429 | /* end confdefs.h. */ | |
36430 | ||
36431 | #include <stdio.h> | |
36432 | #include "SDL.h" | |
36433 | ||
36434 | int main(int argc, char *argv[]) | |
36435 | { return 0; } | |
36436 | #undef main | |
36437 | #define main K_and_R_C_main | |
36438 | ||
36439 | int | |
36440 | main () | |
36441 | { | |
36442 | return 0; | |
36443 | ; | |
36444 | return 0; | |
36445 | } | |
36446 | _ACEOF | |
36447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36449 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36450 | ac_status=$? |
ac1cb8d3 VS |
36451 | grep -v '^ *+' conftest.er1 >conftest.err |
36452 | rm -f conftest.er1 | |
36453 | cat conftest.err >&5 | |
a848cd7e SC |
36454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36455 | (exit $ac_status); } && | |
9dd0f6c2 | 36456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36458 | (eval $ac_try) 2>&5 | |
36459 | ac_status=$? | |
36460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36461 | (exit $ac_status); }; } && | |
36462 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36464 | (eval $ac_try) 2>&5 | |
36465 | ac_status=$? | |
36466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36467 | (exit $ac_status); }; }; then | |
36468 | echo "*** The test program compiled, but did not run. This usually means" | |
36469 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
36470 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
36471 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
36472 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
36473 | echo "*** is required on your system" | |
36474 | echo "***" | |
36475 | echo "*** If you have an old version installed, it is best to remove it, although" | |
36476 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
36477 | else | |
36478 | echo "$as_me: failed program was:" >&5 | |
36479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36480 | ||
36481 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
36482 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
36483 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
36484 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
36485 | fi | |
ac1cb8d3 VS |
36486 | rm -f conftest.err conftest.$ac_objext \ |
36487 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 36488 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 36489 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
36490 | LIBS="$ac_save_LIBS" |
36491 | fi | |
36492 | fi | |
36493 | SDL_CFLAGS="" | |
36494 | SDL_LIBS="" | |
36495 | wxUSE_LIBSDL="no" | |
36496 | fi | |
36497 | ||
36498 | ||
36499 | rm -f conf.sdltest | |
36500 | ||
36501 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
36502 | WITH_PLUGIN_SDL=1 | |
36503 | fi | |
36504 | fi | |
36505 | fi | |
36506 | ||
36507 | cat >>confdefs.h <<\_ACEOF | |
36508 | #define wxUSE_SOUND 1 | |
36509 | _ACEOF | |
36510 | ||
36511 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
36512 | fi | |
36513 | ||
d1c38808 VZ |
36514 | if test "$WXGTK20" = 1; then |
36515 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36516 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
36517 | ||
36518 | ||
36519 | succeeded=no | |
36520 | ||
36521 | if test -z "$PKG_CONFIG"; then | |
36522 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
36523 | set dummy pkg-config; ac_word=$2 | |
36524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36526 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
36527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36528 | else | |
36529 | case $PKG_CONFIG in | |
36530 | [\\/]* | ?:[\\/]*) | |
36531 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
36532 | ;; | |
36533 | *) | |
36534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36535 | for as_dir in $PATH | |
36536 | do | |
36537 | IFS=$as_save_IFS | |
36538 | test -z "$as_dir" && as_dir=. | |
36539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36540 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36541 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
36542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36543 | break 2 | |
36544 | fi | |
36545 | done | |
36546 | done | |
36547 | ||
36548 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
36549 | ;; | |
36550 | esac | |
36551 | fi | |
36552 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
36553 | ||
36554 | if test -n "$PKG_CONFIG"; then | |
36555 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
36556 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
36557 | else | |
36558 | echo "$as_me:$LINENO: result: no" >&5 | |
36559 | echo "${ECHO_T}no" >&6 | |
36560 | fi | |
36561 | ||
36562 | fi | |
36563 | ||
36564 | if test "$PKG_CONFIG" = "no" ; then | |
36565 | echo "*** The pkg-config script could not be found. Make sure it is" | |
36566 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
36567 | echo "*** to the full path to pkg-config." | |
36568 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
36569 | else | |
36570 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
36571 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
36572 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
36573 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 36574 | |
ffa762ff | 36575 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
36576 | echo "$as_me:$LINENO: result: yes" >&5 |
36577 | echo "${ECHO_T}yes" >&6 | |
36578 | succeeded=yes | |
36579 | ||
36580 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
36581 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 36582 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36583 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
36584 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
36585 | ||
36586 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
36587 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 36588 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36589 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
36590 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
36591 | else | |
36592 | LIBGNOMEPRINTUI_CFLAGS="" | |
36593 | LIBGNOMEPRINTUI_LIBS="" | |
36594 | ## If we have a custom action on failure, don't print errors, but | |
36595 | ## do set a variable so people can do so. | |
ffa762ff | 36596 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36597 | |
36598 | fi | |
36599 | ||
36600 | ||
36601 | ||
36602 | else | |
36603 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
36604 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
36605 | fi | |
36606 | fi | |
36607 | ||
36608 | if test $succeeded = yes; then | |
36609 | ||
d1c38808 VZ |
36610 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
36611 | cat >>confdefs.h <<\_ACEOF | |
36612 | #define wxUSE_LIBGNOMEPRINT 1 | |
36613 | _ACEOF | |
36614 | ||
36615 | ||
36616 | else | |
36617 | ||
36618 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
36619 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
36620 | wxUSE_LIBGNOMEPRINT="no" | |
36621 | ||
36622 | ||
36623 | fi | |
36624 | ||
36625 | fi | |
36626 | fi | |
36627 | fi | |
36628 | ||
36629 | ||
a848cd7e SC |
36630 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
36631 | cat >>confdefs.h <<\_ACEOF | |
36632 | #define wxUSE_CMDLINE_PARSER 1 | |
36633 | _ACEOF | |
36634 | ||
36635 | fi | |
36636 | ||
36637 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
36638 | cat >>confdefs.h <<\_ACEOF | |
36639 | #define wxUSE_STOPWATCH 1 | |
36640 | _ACEOF | |
36641 | ||
36642 | fi | |
36643 | ||
36644 | if test "$wxUSE_DATETIME" = "yes"; then | |
36645 | cat >>confdefs.h <<\_ACEOF | |
36646 | #define wxUSE_DATETIME 1 | |
36647 | _ACEOF | |
36648 | ||
36649 | fi | |
36650 | ||
36651 | if test "$wxUSE_FILE" = "yes"; then | |
36652 | cat >>confdefs.h <<\_ACEOF | |
36653 | #define wxUSE_FILE 1 | |
36654 | _ACEOF | |
36655 | ||
36656 | fi | |
36657 | ||
36658 | if test "$wxUSE_FFILE" = "yes"; then | |
36659 | cat >>confdefs.h <<\_ACEOF | |
36660 | #define wxUSE_FFILE 1 | |
36661 | _ACEOF | |
36662 | ||
36663 | fi | |
36664 | ||
36665 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
36666 | cat >>confdefs.h <<\_ACEOF | |
36667 | #define wxUSE_FILESYSTEM 1 | |
36668 | _ACEOF | |
36669 | ||
36670 | fi | |
36671 | ||
36672 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
36673 | cat >>confdefs.h <<\_ACEOF | |
36674 | #define wxUSE_FS_ZIP 1 | |
36675 | _ACEOF | |
36676 | ||
36677 | fi | |
36678 | ||
9e8e867f | 36679 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 36680 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 36681 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
36682 | _ACEOF |
36683 | ||
36684 | fi | |
36685 | ||
36686 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 36687 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
36688 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
36689 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
36690 | elif test "$wxUSE_ZLIB" = "no"; then | |
36691 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
36692 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
36693 | else | |
36694 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36695 | #define wxUSE_ZIPSTREAM 1 |
36696 | _ACEOF | |
36697 | ||
81f90336 | 36698 | fi |
a848cd7e SC |
36699 | fi |
36700 | ||
a848cd7e SC |
36701 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
36702 | cat >>confdefs.h <<\_ACEOF | |
36703 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
36704 | _ACEOF | |
36705 | ||
36706 | fi | |
36707 | ||
eaff0f0d VZ |
36708 | if test "$wxUSE_STACKWALKER" = "yes"; then |
36709 | cat >>confdefs.h <<\_ACEOF | |
36710 | #define wxUSE_STACKWALKER 1 | |
36711 | _ACEOF | |
36712 | ||
36713 | fi | |
36714 | ||
36b6448c | 36715 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
dfe0c803 JS |
36716 | if test "$USE_OS2" = "1"; then |
36717 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5 | |
36718 | echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;} | |
36719 | wxUSE_DEBUGREPORT=no | |
36720 | else | |
36721 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
36722 | #define wxUSE_DEBUGREPORT 1 |
36723 | _ACEOF | |
36724 | ||
21dfc162 MW |
36725 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
36726 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
36727 | fi | |
dfe0c803 | 36728 | fi |
36b6448c VZ |
36729 | fi |
36730 | ||
a848cd7e SC |
36731 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
36732 | cat >>confdefs.h <<\_ACEOF | |
36733 | #define wxUSE_SNGLINST_CHECKER 1 | |
36734 | _ACEOF | |
36735 | ||
36736 | fi | |
36737 | ||
36738 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
36739 | cat >>confdefs.h <<\_ACEOF | |
36740 | #define wxUSE_BUSYINFO 1 | |
36741 | _ACEOF | |
36742 | ||
36743 | fi | |
36744 | ||
36745 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
36746 | cat >>confdefs.h <<\_ACEOF | |
36747 | #define wxUSE_STD_IOSTREAM 1 | |
36748 | _ACEOF | |
36749 | ||
36750 | fi | |
36751 | ||
59746b65 MW |
36752 | if test "$wxUSE_STD_STRING" = "yes"; then |
36753 | cat >>confdefs.h <<\_ACEOF | |
36754 | #define wxUSE_STD_STRING 1 | |
36755 | _ACEOF | |
36756 | ||
36757 | fi | |
36758 | ||
07158944 VZ |
36759 | if test "$wxUSE_STDPATHS" = "yes"; then |
36760 | cat >>confdefs.h <<\_ACEOF | |
36761 | #define wxUSE_STDPATHS 1 | |
36762 | _ACEOF | |
36763 | ||
36764 | fi | |
36765 | ||
a848cd7e SC |
36766 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
36767 | cat >>confdefs.h <<\_ACEOF | |
36768 | #define wxUSE_TEXTBUFFER 1 | |
36769 | _ACEOF | |
36770 | ||
36771 | fi | |
36772 | ||
36773 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
36774 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
36775 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
36776 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
36777 | else | |
36778 | cat >>confdefs.h <<\_ACEOF | |
36779 | #define wxUSE_TEXTFILE 1 | |
36780 | _ACEOF | |
36781 | ||
36782 | fi | |
36783 | fi | |
36784 | ||
36785 | if test "$wxUSE_CONFIG" = "yes" ; then | |
36786 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
36787 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
36788 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
36789 | else | |
36790 | cat >>confdefs.h <<\_ACEOF | |
36791 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
36792 | _ACEOF |
36793 | ||
36794 | cat >>confdefs.h <<\_ACEOF | |
36795 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
36796 | _ACEOF |
36797 | ||
36798 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
36799 | fi | |
36800 | fi | |
36801 | ||
36802 | if test "$wxUSE_INTL" = "yes" ; then | |
36803 | if test "$wxUSE_FILE" != "yes"; then | |
36804 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
36805 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
36806 | else | |
36807 | cat >>confdefs.h <<\_ACEOF | |
36808 | #define wxUSE_INTL 1 | |
36809 | _ACEOF | |
36810 | ||
36811 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
36812 | GUIDIST="$GUIDIST INTL_DIST" | |
36813 | fi | |
36814 | fi | |
36815 | ||
36816 | if test "$wxUSE_LOG" = "yes"; then | |
36817 | cat >>confdefs.h <<\_ACEOF | |
36818 | #define wxUSE_LOG 1 | |
36819 | _ACEOF | |
36820 | ||
36821 | ||
36822 | if test "$wxUSE_LOGGUI" = "yes"; then | |
36823 | cat >>confdefs.h <<\_ACEOF | |
36824 | #define wxUSE_LOGGUI 1 | |
36825 | _ACEOF | |
36826 | ||
36827 | fi | |
36828 | ||
36829 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
36830 | cat >>confdefs.h <<\_ACEOF | |
36831 | #define wxUSE_LOGWINDOW 1 | |
36832 | _ACEOF | |
36833 | ||
36834 | fi | |
36835 | ||
36836 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
36837 | cat >>confdefs.h <<\_ACEOF | |
36838 | #define wxUSE_LOG_DIALOG 1 | |
36839 | _ACEOF | |
36840 | ||
36841 | fi | |
0b78747f MW |
36842 | |
36843 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
36844 | fi |
36845 | ||
36846 | if test "$wxUSE_LONGLONG" = "yes"; then | |
36847 | cat >>confdefs.h <<\_ACEOF | |
36848 | #define wxUSE_LONGLONG 1 | |
36849 | _ACEOF | |
36850 | ||
36851 | fi | |
36852 | ||
36853 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
36854 | cat >>confdefs.h <<\_ACEOF | |
36855 | #define wxUSE_GEOMETRY 1 | |
36856 | _ACEOF | |
36857 | ||
36858 | fi | |
36859 | ||
a848cd7e SC |
36860 | if test "$wxUSE_STREAMS" = "yes" ; then |
36861 | cat >>confdefs.h <<\_ACEOF | |
36862 | #define wxUSE_STREAMS 1 | |
36863 | _ACEOF | |
36864 | ||
36865 | fi | |
36866 | ||
36867 | ||
36868 | if test "$wxUSE_DATETIME" = "yes"; then | |
36869 | ||
36870 | for ac_func in strptime | |
36871 | do | |
36872 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36873 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36874 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36875 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36877 | else | |
36878 | cat >conftest.$ac_ext <<_ACEOF | |
36879 | /* confdefs.h. */ | |
36880 | _ACEOF | |
36881 | cat confdefs.h >>conftest.$ac_ext | |
36882 | cat >>conftest.$ac_ext <<_ACEOF | |
36883 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36884 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36885 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36886 | #define $ac_func innocuous_$ac_func | |
36887 | ||
a848cd7e SC |
36888 | /* System header to define __stub macros and hopefully few prototypes, |
36889 | which can conflict with char $ac_func (); below. | |
36890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36891 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36892 | |
a848cd7e SC |
36893 | #ifdef __STDC__ |
36894 | # include <limits.h> | |
36895 | #else | |
36896 | # include <assert.h> | |
36897 | #endif | |
ac1cb8d3 VS |
36898 | |
36899 | #undef $ac_func | |
36900 | ||
a848cd7e SC |
36901 | /* Override any gcc2 internal prototype to avoid an error. */ |
36902 | #ifdef __cplusplus | |
36903 | extern "C" | |
36904 | { | |
36905 | #endif | |
36906 | /* We use char because int might match the return type of a gcc2 | |
36907 | builtin and then its argument prototype would still apply. */ | |
36908 | char $ac_func (); | |
36909 | /* The GNU C library defines this for functions which it implements | |
36910 | to always fail with ENOSYS. Some functions are actually named | |
36911 | something starting with __ and the normal name is an alias. */ | |
36912 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36913 | choke me | |
36914 | #else | |
36915 | char (*f) () = $ac_func; | |
36916 | #endif | |
36917 | #ifdef __cplusplus | |
36918 | } | |
36919 | #endif | |
36920 | ||
36921 | int | |
36922 | main () | |
36923 | { | |
36924 | return f != $ac_func; | |
36925 | ; | |
36926 | return 0; | |
36927 | } | |
36928 | _ACEOF | |
36929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36931 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36932 | ac_status=$? |
ac1cb8d3 VS |
36933 | grep -v '^ *+' conftest.er1 >conftest.err |
36934 | rm -f conftest.er1 | |
36935 | cat conftest.err >&5 | |
a848cd7e SC |
36936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36937 | (exit $ac_status); } && | |
9dd0f6c2 | 36938 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36940 | (eval $ac_try) 2>&5 | |
36941 | ac_status=$? | |
36942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36943 | (exit $ac_status); }; } && | |
36944 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36946 | (eval $ac_try) 2>&5 | |
36947 | ac_status=$? | |
36948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36949 | (exit $ac_status); }; }; then | |
36950 | eval "$as_ac_var=yes" | |
36951 | else | |
36952 | echo "$as_me: failed program was:" >&5 | |
36953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36954 | ||
36955 | eval "$as_ac_var=no" | |
36956 | fi | |
ac1cb8d3 VS |
36957 | rm -f conftest.err conftest.$ac_objext \ |
36958 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36959 | fi |
36960 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36961 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36962 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36963 | cat >>confdefs.h <<_ACEOF | |
36964 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36965 | _ACEOF | |
36966 | ||
36967 | fi | |
36968 | done | |
36969 | ||
36970 | ||
36971 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
36972 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
36973 | if test "${wx_cv_var_timezone+set}" = set; then | |
36974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36975 | else | |
36976 | ||
36977 | cat >conftest.$ac_ext <<_ACEOF | |
36978 | /* confdefs.h. */ | |
36979 | _ACEOF | |
36980 | cat confdefs.h >>conftest.$ac_ext | |
36981 | cat >>conftest.$ac_ext <<_ACEOF | |
36982 | /* end confdefs.h. */ | |
36983 | ||
36984 | #include <time.h> | |
36985 | ||
36986 | int | |
36987 | main () | |
36988 | { | |
36989 | ||
36990 | int tz; | |
36991 | tz = timezone; | |
36992 | ||
36993 | ; | |
36994 | return 0; | |
36995 | } | |
36996 | _ACEOF | |
36997 | rm -f conftest.$ac_objext | |
36998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36999 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37000 | ac_status=$? |
ac1cb8d3 VS |
37001 | grep -v '^ *+' conftest.er1 >conftest.err |
37002 | rm -f conftest.er1 | |
37003 | cat conftest.err >&5 | |
a848cd7e SC |
37004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37005 | (exit $ac_status); } && | |
9dd0f6c2 | 37006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37008 | (eval $ac_try) 2>&5 | |
37009 | ac_status=$? | |
37010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37011 | (exit $ac_status); }; } && | |
37012 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37014 | (eval $ac_try) 2>&5 | |
37015 | ac_status=$? | |
37016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37017 | (exit $ac_status); }; }; then | |
37018 | ||
37019 | wx_cv_var_timezone=timezone | |
37020 | ||
37021 | else | |
37022 | echo "$as_me: failed program was:" >&5 | |
37023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37024 | ||
37025 | ||
37026 | cat >conftest.$ac_ext <<_ACEOF | |
37027 | /* confdefs.h. */ | |
37028 | _ACEOF | |
37029 | cat confdefs.h >>conftest.$ac_ext | |
37030 | cat >>conftest.$ac_ext <<_ACEOF | |
37031 | /* end confdefs.h. */ | |
37032 | ||
37033 | #include <time.h> | |
37034 | ||
37035 | int | |
37036 | main () | |
37037 | { | |
37038 | ||
37039 | int tz; | |
37040 | tz = _timezone; | |
37041 | ||
37042 | ; | |
37043 | return 0; | |
37044 | } | |
37045 | _ACEOF | |
37046 | rm -f conftest.$ac_objext | |
37047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37048 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37049 | ac_status=$? |
ac1cb8d3 VS |
37050 | grep -v '^ *+' conftest.er1 >conftest.err |
37051 | rm -f conftest.er1 | |
37052 | cat conftest.err >&5 | |
a848cd7e SC |
37053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37054 | (exit $ac_status); } && | |
9dd0f6c2 | 37055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37057 | (eval $ac_try) 2>&5 | |
37058 | ac_status=$? | |
37059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37060 | (exit $ac_status); }; } && | |
37061 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37063 | (eval $ac_try) 2>&5 | |
37064 | ac_status=$? | |
37065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37066 | (exit $ac_status); }; }; then | |
37067 | ||
37068 | wx_cv_var_timezone=_timezone | |
37069 | ||
37070 | else | |
37071 | echo "$as_me: failed program was:" >&5 | |
37072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37073 | ||
37074 | ||
37075 | cat >conftest.$ac_ext <<_ACEOF | |
37076 | /* confdefs.h. */ | |
37077 | _ACEOF | |
37078 | cat confdefs.h >>conftest.$ac_ext | |
37079 | cat >>conftest.$ac_ext <<_ACEOF | |
37080 | /* end confdefs.h. */ | |
37081 | ||
37082 | #include <time.h> | |
37083 | ||
37084 | int | |
37085 | main () | |
37086 | { | |
37087 | ||
37088 | int tz; | |
37089 | tz = __timezone; | |
37090 | ||
37091 | ; | |
37092 | return 0; | |
37093 | } | |
37094 | _ACEOF | |
37095 | rm -f conftest.$ac_objext | |
37096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37097 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37098 | ac_status=$? |
ac1cb8d3 VS |
37099 | grep -v '^ *+' conftest.er1 >conftest.err |
37100 | rm -f conftest.er1 | |
37101 | cat conftest.err >&5 | |
a848cd7e SC |
37102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37103 | (exit $ac_status); } && | |
9dd0f6c2 | 37104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37106 | (eval $ac_try) 2>&5 | |
37107 | ac_status=$? | |
37108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37109 | (exit $ac_status); }; } && | |
37110 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37112 | (eval $ac_try) 2>&5 | |
37113 | ac_status=$? | |
37114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37115 | (exit $ac_status); }; }; then | |
37116 | ||
37117 | wx_cv_var_timezone=__timezone | |
37118 | ||
37119 | else | |
37120 | echo "$as_me: failed program was:" >&5 | |
37121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37122 | ||
37123 | ||
37124 | if test "$USE_DOS" = 0 ; then | |
37125 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
37126 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
37127 | fi | |
37128 | ||
37129 | ||
37130 | fi | |
ac1cb8d3 | 37131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37132 | |
37133 | ||
37134 | fi | |
ac1cb8d3 | 37135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37136 | |
37137 | ||
37138 | fi | |
ac1cb8d3 | 37139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37140 | |
37141 | ||
37142 | fi | |
37143 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
37144 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
37145 | ||
37146 | if test "x$wx_cv_var_timezone" != x ; then | |
37147 | cat >>confdefs.h <<_ACEOF | |
37148 | #define WX_TIMEZONE $wx_cv_var_timezone | |
37149 | _ACEOF | |
37150 | ||
37151 | fi | |
37152 | ||
37153 | ||
37154 | for ac_func in localtime | |
37155 | do | |
37156 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37157 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37158 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37159 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37161 | else | |
37162 | cat >conftest.$ac_ext <<_ACEOF | |
37163 | /* confdefs.h. */ | |
37164 | _ACEOF | |
37165 | cat confdefs.h >>conftest.$ac_ext | |
37166 | cat >>conftest.$ac_ext <<_ACEOF | |
37167 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37168 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37169 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37170 | #define $ac_func innocuous_$ac_func | |
37171 | ||
a848cd7e SC |
37172 | /* System header to define __stub macros and hopefully few prototypes, |
37173 | which can conflict with char $ac_func (); below. | |
37174 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37175 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37176 | |
a848cd7e SC |
37177 | #ifdef __STDC__ |
37178 | # include <limits.h> | |
37179 | #else | |
37180 | # include <assert.h> | |
37181 | #endif | |
ac1cb8d3 VS |
37182 | |
37183 | #undef $ac_func | |
37184 | ||
a848cd7e SC |
37185 | /* Override any gcc2 internal prototype to avoid an error. */ |
37186 | #ifdef __cplusplus | |
37187 | extern "C" | |
37188 | { | |
37189 | #endif | |
37190 | /* We use char because int might match the return type of a gcc2 | |
37191 | builtin and then its argument prototype would still apply. */ | |
37192 | char $ac_func (); | |
37193 | /* The GNU C library defines this for functions which it implements | |
37194 | to always fail with ENOSYS. Some functions are actually named | |
37195 | something starting with __ and the normal name is an alias. */ | |
37196 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37197 | choke me | |
37198 | #else | |
37199 | char (*f) () = $ac_func; | |
37200 | #endif | |
37201 | #ifdef __cplusplus | |
37202 | } | |
37203 | #endif | |
37204 | ||
37205 | int | |
37206 | main () | |
37207 | { | |
37208 | return f != $ac_func; | |
37209 | ; | |
37210 | return 0; | |
37211 | } | |
37212 | _ACEOF | |
37213 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37215 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37216 | ac_status=$? |
ac1cb8d3 VS |
37217 | grep -v '^ *+' conftest.er1 >conftest.err |
37218 | rm -f conftest.er1 | |
37219 | cat conftest.err >&5 | |
a848cd7e SC |
37220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37221 | (exit $ac_status); } && | |
9dd0f6c2 | 37222 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37224 | (eval $ac_try) 2>&5 | |
37225 | ac_status=$? | |
37226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37227 | (exit $ac_status); }; } && | |
37228 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
37234 | eval "$as_ac_var=yes" | |
37235 | else | |
37236 | echo "$as_me: failed program was:" >&5 | |
37237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37238 | ||
37239 | eval "$as_ac_var=no" | |
37240 | fi | |
ac1cb8d3 VS |
37241 | rm -f conftest.err conftest.$ac_objext \ |
37242 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37243 | fi |
37244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37245 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37246 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37247 | cat >>confdefs.h <<_ACEOF | |
37248 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37249 | _ACEOF | |
37250 | ||
37251 | fi | |
37252 | done | |
37253 | ||
37254 | ||
37255 | if test "$ac_cv_func_localtime" = "yes"; then | |
37256 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
37257 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
37258 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
37259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37260 | else | |
37261 | ||
37262 | cat >conftest.$ac_ext <<_ACEOF | |
37263 | /* confdefs.h. */ | |
37264 | _ACEOF | |
37265 | cat confdefs.h >>conftest.$ac_ext | |
37266 | cat >>conftest.$ac_ext <<_ACEOF | |
37267 | /* end confdefs.h. */ | |
37268 | ||
37269 | #include <time.h> | |
37270 | ||
37271 | int | |
37272 | main () | |
37273 | { | |
37274 | ||
37275 | struct tm tm; | |
37276 | tm.tm_gmtoff++; | |
37277 | ||
37278 | ; | |
37279 | return 0; | |
37280 | } | |
37281 | _ACEOF | |
37282 | rm -f conftest.$ac_objext | |
37283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37285 | ac_status=$? |
ac1cb8d3 VS |
37286 | grep -v '^ *+' conftest.er1 >conftest.err |
37287 | rm -f conftest.er1 | |
37288 | cat conftest.err >&5 | |
a848cd7e SC |
37289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37290 | (exit $ac_status); } && | |
9dd0f6c2 | 37291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37293 | (eval $ac_try) 2>&5 | |
37294 | ac_status=$? | |
37295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37296 | (exit $ac_status); }; } && | |
37297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37299 | (eval $ac_try) 2>&5 | |
37300 | ac_status=$? | |
37301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37302 | (exit $ac_status); }; }; then | |
37303 | ||
37304 | wx_cv_struct_tm_has_gmtoff=yes | |
37305 | ||
37306 | else | |
37307 | echo "$as_me: failed program was:" >&5 | |
37308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37309 | ||
37310 | wx_cv_struct_tm_has_gmtoff=no | |
37311 | ||
37312 | fi | |
ac1cb8d3 | 37313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37314 | |
37315 | fi | |
37316 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
37317 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
37318 | fi | |
37319 | ||
37320 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
37321 | cat >>confdefs.h <<\_ACEOF | |
37322 | #define WX_GMTOFF_IN_TM 1 | |
37323 | _ACEOF | |
37324 | ||
37325 | fi | |
37326 | ||
37327 | ||
37328 | ||
37329 | for ac_func in gettimeofday ftime | |
37330 | do | |
37331 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37332 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37333 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37334 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37336 | else | |
37337 | cat >conftest.$ac_ext <<_ACEOF | |
37338 | /* confdefs.h. */ | |
37339 | _ACEOF | |
37340 | cat confdefs.h >>conftest.$ac_ext | |
37341 | cat >>conftest.$ac_ext <<_ACEOF | |
37342 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37343 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37344 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37345 | #define $ac_func innocuous_$ac_func | |
37346 | ||
a848cd7e SC |
37347 | /* System header to define __stub macros and hopefully few prototypes, |
37348 | which can conflict with char $ac_func (); below. | |
37349 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37350 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37351 | |
a848cd7e SC |
37352 | #ifdef __STDC__ |
37353 | # include <limits.h> | |
37354 | #else | |
37355 | # include <assert.h> | |
37356 | #endif | |
ac1cb8d3 VS |
37357 | |
37358 | #undef $ac_func | |
37359 | ||
a848cd7e SC |
37360 | /* Override any gcc2 internal prototype to avoid an error. */ |
37361 | #ifdef __cplusplus | |
37362 | extern "C" | |
37363 | { | |
37364 | #endif | |
37365 | /* We use char because int might match the return type of a gcc2 | |
37366 | builtin and then its argument prototype would still apply. */ | |
37367 | char $ac_func (); | |
37368 | /* The GNU C library defines this for functions which it implements | |
37369 | to always fail with ENOSYS. Some functions are actually named | |
37370 | something starting with __ and the normal name is an alias. */ | |
37371 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37372 | choke me | |
37373 | #else | |
37374 | char (*f) () = $ac_func; | |
37375 | #endif | |
37376 | #ifdef __cplusplus | |
37377 | } | |
37378 | #endif | |
37379 | ||
37380 | int | |
37381 | main () | |
37382 | { | |
37383 | return f != $ac_func; | |
37384 | ; | |
37385 | return 0; | |
37386 | } | |
37387 | _ACEOF | |
37388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37390 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37391 | ac_status=$? |
ac1cb8d3 VS |
37392 | grep -v '^ *+' conftest.er1 >conftest.err |
37393 | rm -f conftest.er1 | |
37394 | cat conftest.err >&5 | |
a848cd7e SC |
37395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37396 | (exit $ac_status); } && | |
9dd0f6c2 | 37397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37399 | (eval $ac_try) 2>&5 | |
37400 | ac_status=$? | |
37401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37402 | (exit $ac_status); }; } && | |
37403 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37405 | (eval $ac_try) 2>&5 | |
37406 | ac_status=$? | |
37407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37408 | (exit $ac_status); }; }; then | |
37409 | eval "$as_ac_var=yes" | |
37410 | else | |
37411 | echo "$as_me: failed program was:" >&5 | |
37412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37413 | ||
37414 | eval "$as_ac_var=no" | |
37415 | fi | |
ac1cb8d3 VS |
37416 | rm -f conftest.err conftest.$ac_objext \ |
37417 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37418 | fi |
37419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37420 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37421 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37422 | cat >>confdefs.h <<_ACEOF | |
37423 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37424 | _ACEOF | |
37425 | break | |
37426 | fi | |
37427 | done | |
37428 | ||
37429 | ||
37430 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
37431 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
37432 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
37433 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
37434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37435 | else | |
37436 | ||
37437 | ||
37438 | ||
37439 | ac_ext=cc | |
37440 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37441 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37442 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37443 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37444 | ||
37445 | ||
37446 | cat >conftest.$ac_ext <<_ACEOF | |
37447 | /* confdefs.h. */ | |
37448 | _ACEOF | |
37449 | cat confdefs.h >>conftest.$ac_ext | |
37450 | cat >>conftest.$ac_ext <<_ACEOF | |
37451 | /* end confdefs.h. */ | |
37452 | ||
37453 | #include <sys/time.h> | |
37454 | #include <unistd.h> | |
37455 | ||
37456 | int | |
37457 | main () | |
37458 | { | |
37459 | ||
37460 | struct timeval tv; | |
37461 | gettimeofday(&tv, NULL); | |
37462 | ||
37463 | ; | |
37464 | return 0; | |
37465 | } | |
37466 | _ACEOF | |
37467 | rm -f conftest.$ac_objext | |
37468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37469 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37470 | ac_status=$? |
ac1cb8d3 VS |
37471 | grep -v '^ *+' conftest.er1 >conftest.err |
37472 | rm -f conftest.er1 | |
37473 | cat conftest.err >&5 | |
a848cd7e SC |
37474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37475 | (exit $ac_status); } && | |
9dd0f6c2 | 37476 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37478 | (eval $ac_try) 2>&5 | |
37479 | ac_status=$? | |
37480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37481 | (exit $ac_status); }; } && | |
37482 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37484 | (eval $ac_try) 2>&5 | |
37485 | ac_status=$? | |
37486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37487 | (exit $ac_status); }; }; then | |
37488 | wx_cv_func_gettimeofday_has_2_args=yes | |
37489 | else | |
37490 | echo "$as_me: failed program was:" >&5 | |
37491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37492 | ||
37493 | cat >conftest.$ac_ext <<_ACEOF | |
37494 | /* confdefs.h. */ | |
37495 | _ACEOF | |
37496 | cat confdefs.h >>conftest.$ac_ext | |
37497 | cat >>conftest.$ac_ext <<_ACEOF | |
37498 | /* end confdefs.h. */ | |
37499 | ||
37500 | #include <sys/time.h> | |
37501 | #include <unistd.h> | |
37502 | ||
37503 | int | |
37504 | main () | |
37505 | { | |
37506 | ||
37507 | struct timeval tv; | |
37508 | gettimeofday(&tv); | |
37509 | ||
37510 | ; | |
37511 | return 0; | |
37512 | } | |
37513 | _ACEOF | |
37514 | rm -f conftest.$ac_objext | |
37515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37516 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37517 | ac_status=$? |
ac1cb8d3 VS |
37518 | grep -v '^ *+' conftest.er1 >conftest.err |
37519 | rm -f conftest.er1 | |
37520 | cat conftest.err >&5 | |
a848cd7e SC |
37521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37522 | (exit $ac_status); } && | |
9dd0f6c2 | 37523 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37525 | (eval $ac_try) 2>&5 | |
37526 | ac_status=$? | |
37527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37528 | (exit $ac_status); }; } && | |
37529 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37531 | (eval $ac_try) 2>&5 | |
37532 | ac_status=$? | |
37533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37534 | (exit $ac_status); }; }; then | |
37535 | wx_cv_func_gettimeofday_has_2_args=no | |
37536 | else | |
37537 | echo "$as_me: failed program was:" >&5 | |
37538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37539 | ||
37540 | ||
37541 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
37542 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
37543 | wx_cv_func_gettimeofday_has_2_args=unknown | |
37544 | ||
37545 | ||
37546 | fi | |
ac1cb8d3 | 37547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37548 | |
37549 | fi | |
ac1cb8d3 | 37550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37551 | ac_ext=c |
37552 | ac_cpp='$CPP $CPPFLAGS' | |
37553 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37554 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37555 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37556 | ||
37557 | ||
37558 | fi | |
37559 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
37560 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
37561 | ||
37562 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
37563 | cat >>confdefs.h <<\_ACEOF | |
37564 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
37565 | _ACEOF | |
37566 | ||
37567 | fi | |
37568 | fi | |
37569 | ||
37570 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
37571 | fi | |
37572 | ||
37573 | ||
37574 | if test "$wxUSE_SOCKETS" = "yes"; then | |
37575 | if test "$wxUSE_MGL" = "1"; then | |
37576 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
37577 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
37578 | wxUSE_SOCKETS="no" | |
37579 | fi | |
37580 | fi | |
37581 | ||
37582 | if test "$wxUSE_SOCKETS" = "yes"; then | |
37583 | if test "$TOOLKIT" != "MSW"; then | |
37584 | echo "$as_me:$LINENO: checking for socket" >&5 | |
37585 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
37586 | if test "${ac_cv_func_socket+set}" = set; then | |
37587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37588 | else | |
37589 | cat >conftest.$ac_ext <<_ACEOF | |
37590 | /* confdefs.h. */ | |
37591 | _ACEOF | |
37592 | cat confdefs.h >>conftest.$ac_ext | |
37593 | cat >>conftest.$ac_ext <<_ACEOF | |
37594 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37595 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
37596 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37597 | #define socket innocuous_socket | |
37598 | ||
a848cd7e SC |
37599 | /* System header to define __stub macros and hopefully few prototypes, |
37600 | which can conflict with char socket (); below. | |
37601 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37602 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37603 | |
a848cd7e SC |
37604 | #ifdef __STDC__ |
37605 | # include <limits.h> | |
37606 | #else | |
37607 | # include <assert.h> | |
37608 | #endif | |
ac1cb8d3 VS |
37609 | |
37610 | #undef socket | |
37611 | ||
a848cd7e SC |
37612 | /* Override any gcc2 internal prototype to avoid an error. */ |
37613 | #ifdef __cplusplus | |
37614 | extern "C" | |
37615 | { | |
37616 | #endif | |
37617 | /* We use char because int might match the return type of a gcc2 | |
37618 | builtin and then its argument prototype would still apply. */ | |
37619 | char socket (); | |
37620 | /* The GNU C library defines this for functions which it implements | |
37621 | to always fail with ENOSYS. Some functions are actually named | |
37622 | something starting with __ and the normal name is an alias. */ | |
37623 | #if defined (__stub_socket) || defined (__stub___socket) | |
37624 | choke me | |
37625 | #else | |
37626 | char (*f) () = socket; | |
37627 | #endif | |
37628 | #ifdef __cplusplus | |
37629 | } | |
37630 | #endif | |
37631 | ||
37632 | int | |
37633 | main () | |
37634 | { | |
37635 | return f != socket; | |
37636 | ; | |
37637 | return 0; | |
37638 | } | |
37639 | _ACEOF | |
37640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37642 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37643 | ac_status=$? |
ac1cb8d3 VS |
37644 | grep -v '^ *+' conftest.er1 >conftest.err |
37645 | rm -f conftest.er1 | |
37646 | cat conftest.err >&5 | |
a848cd7e SC |
37647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37648 | (exit $ac_status); } && | |
9dd0f6c2 | 37649 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37651 | (eval $ac_try) 2>&5 | |
37652 | ac_status=$? | |
37653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37654 | (exit $ac_status); }; } && | |
37655 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37657 | (eval $ac_try) 2>&5 | |
37658 | ac_status=$? | |
37659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37660 | (exit $ac_status); }; }; then | |
37661 | ac_cv_func_socket=yes | |
37662 | else | |
37663 | echo "$as_me: failed program was:" >&5 | |
37664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37665 | ||
37666 | ac_cv_func_socket=no | |
37667 | fi | |
ac1cb8d3 VS |
37668 | rm -f conftest.err conftest.$ac_objext \ |
37669 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37670 | fi |
37671 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
37672 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
37673 | if test $ac_cv_func_socket = yes; then | |
37674 | : | |
37675 | else | |
37676 | ||
37677 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
37678 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
37679 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
37680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37681 | else | |
37682 | ac_check_lib_save_LIBS=$LIBS | |
37683 | LIBS="-lsocket $LIBS" | |
37684 | cat >conftest.$ac_ext <<_ACEOF | |
37685 | /* confdefs.h. */ | |
37686 | _ACEOF | |
37687 | cat confdefs.h >>conftest.$ac_ext | |
37688 | cat >>conftest.$ac_ext <<_ACEOF | |
37689 | /* end confdefs.h. */ | |
37690 | ||
37691 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37692 | #ifdef __cplusplus | |
37693 | extern "C" | |
37694 | #endif | |
37695 | /* We use char because int might match the return type of a gcc2 | |
37696 | builtin and then its argument prototype would still apply. */ | |
37697 | char socket (); | |
37698 | int | |
37699 | main () | |
37700 | { | |
37701 | socket (); | |
37702 | ; | |
37703 | return 0; | |
37704 | } | |
37705 | _ACEOF | |
37706 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37708 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37709 | ac_status=$? |
ac1cb8d3 VS |
37710 | grep -v '^ *+' conftest.er1 >conftest.err |
37711 | rm -f conftest.er1 | |
37712 | cat conftest.err >&5 | |
a848cd7e SC |
37713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37714 | (exit $ac_status); } && | |
9dd0f6c2 | 37715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37717 | (eval $ac_try) 2>&5 | |
37718 | ac_status=$? | |
37719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37720 | (exit $ac_status); }; } && | |
37721 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37723 | (eval $ac_try) 2>&5 | |
37724 | ac_status=$? | |
37725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37726 | (exit $ac_status); }; }; then | |
37727 | ac_cv_lib_socket_socket=yes | |
37728 | else | |
37729 | echo "$as_me: failed program was:" >&5 | |
37730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37731 | ||
37732 | ac_cv_lib_socket_socket=no | |
37733 | fi | |
ac1cb8d3 VS |
37734 | rm -f conftest.err conftest.$ac_objext \ |
37735 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37736 | LIBS=$ac_check_lib_save_LIBS |
37737 | fi | |
37738 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
37739 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
37740 | if test $ac_cv_lib_socket_socket = yes; then | |
37741 | if test "$INET_LINK" != " -lsocket"; then | |
37742 | INET_LINK="$INET_LINK -lsocket" | |
37743 | fi | |
37744 | else | |
37745 | ||
37746 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
37747 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
37748 | wxUSE_SOCKETS=no | |
37749 | ||
37750 | ||
37751 | fi | |
37752 | ||
37753 | ||
37754 | ||
37755 | fi | |
37756 | ||
37757 | fi | |
37758 | fi | |
37759 | ||
37760 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
37761 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
37762 | ac_ext=cc |
37763 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37764 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37765 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37766 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37767 | ||
37768 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
37769 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
37770 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
37771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37772 | else | |
37773 | ||
37774 | cat >conftest.$ac_ext <<_ACEOF | |
37775 | /* confdefs.h. */ | |
37776 | _ACEOF | |
37777 | cat confdefs.h >>conftest.$ac_ext | |
37778 | cat >>conftest.$ac_ext <<_ACEOF | |
37779 | /* end confdefs.h. */ | |
37780 | ||
37781 | #include <sys/types.h> | |
37782 | #include <sys/socket.h> | |
37783 | ||
37784 | int | |
37785 | main () | |
37786 | { | |
37787 | ||
37788 | socklen_t len; | |
37789 | getsockname(0, 0, &len); | |
37790 | ||
37791 | ; | |
37792 | return 0; | |
37793 | } | |
37794 | _ACEOF | |
37795 | rm -f conftest.$ac_objext | |
37796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37797 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37798 | ac_status=$? |
ac1cb8d3 VS |
37799 | grep -v '^ *+' conftest.er1 >conftest.err |
37800 | rm -f conftest.er1 | |
37801 | cat conftest.err >&5 | |
a848cd7e SC |
37802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37803 | (exit $ac_status); } && | |
9dd0f6c2 | 37804 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37806 | (eval $ac_try) 2>&5 | |
37807 | ac_status=$? | |
37808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37809 | (exit $ac_status); }; } && | |
37810 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37812 | (eval $ac_try) 2>&5 | |
37813 | ac_status=$? | |
37814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37815 | (exit $ac_status); }; }; then | |
37816 | wx_cv_type_getsockname3=socklen_t | |
37817 | else | |
37818 | echo "$as_me: failed program was:" >&5 | |
37819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37820 | ||
37821 | ||
37822 | CFLAGS_OLD="$CFLAGS" | |
37823 | if test "$GCC" = yes ; then | |
37824 | CFLAGS="$CFLAGS -Werror" | |
37825 | fi | |
37826 | ||
37827 | cat >conftest.$ac_ext <<_ACEOF | |
37828 | /* confdefs.h. */ | |
37829 | _ACEOF | |
37830 | cat confdefs.h >>conftest.$ac_ext | |
37831 | cat >>conftest.$ac_ext <<_ACEOF | |
37832 | /* end confdefs.h. */ | |
37833 | ||
37834 | #include <sys/types.h> | |
37835 | #include <sys/socket.h> | |
37836 | ||
37837 | int | |
37838 | main () | |
37839 | { | |
37840 | ||
37841 | size_t len; | |
37842 | getsockname(0, 0, &len); | |
37843 | ||
37844 | ; | |
37845 | return 0; | |
37846 | } | |
37847 | _ACEOF | |
37848 | rm -f conftest.$ac_objext | |
37849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37850 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37851 | ac_status=$? |
ac1cb8d3 VS |
37852 | grep -v '^ *+' conftest.er1 >conftest.err |
37853 | rm -f conftest.er1 | |
37854 | cat conftest.err >&5 | |
a848cd7e SC |
37855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37856 | (exit $ac_status); } && | |
9dd0f6c2 | 37857 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37859 | (eval $ac_try) 2>&5 | |
37860 | ac_status=$? | |
37861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37862 | (exit $ac_status); }; } && | |
37863 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37865 | (eval $ac_try) 2>&5 | |
37866 | ac_status=$? | |
37867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37868 | (exit $ac_status); }; }; then | |
37869 | wx_cv_type_getsockname3=size_t | |
37870 | else | |
37871 | echo "$as_me: failed program was:" >&5 | |
37872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37873 | ||
37874 | cat >conftest.$ac_ext <<_ACEOF | |
37875 | /* confdefs.h. */ | |
37876 | _ACEOF | |
37877 | cat confdefs.h >>conftest.$ac_ext | |
37878 | cat >>conftest.$ac_ext <<_ACEOF | |
37879 | /* end confdefs.h. */ | |
37880 | ||
37881 | #include <sys/types.h> | |
37882 | #include <sys/socket.h> | |
37883 | ||
37884 | int | |
37885 | main () | |
37886 | { | |
37887 | ||
37888 | int len; | |
37889 | getsockname(0, 0, &len); | |
37890 | ||
37891 | ; | |
37892 | return 0; | |
37893 | } | |
37894 | _ACEOF | |
37895 | rm -f conftest.$ac_objext | |
37896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37897 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37898 | ac_status=$? |
ac1cb8d3 VS |
37899 | grep -v '^ *+' conftest.er1 >conftest.err |
37900 | rm -f conftest.er1 | |
37901 | cat conftest.err >&5 | |
a848cd7e SC |
37902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37903 | (exit $ac_status); } && | |
9dd0f6c2 | 37904 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37906 | (eval $ac_try) 2>&5 | |
37907 | ac_status=$? | |
37908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37909 | (exit $ac_status); }; } && | |
37910 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37912 | (eval $ac_try) 2>&5 | |
37913 | ac_status=$? | |
37914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37915 | (exit $ac_status); }; }; then | |
37916 | wx_cv_type_getsockname3=int | |
37917 | else | |
37918 | echo "$as_me: failed program was:" >&5 | |
37919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37920 | ||
37921 | wx_cv_type_getsockname3=unknown | |
37922 | ||
37923 | fi | |
ac1cb8d3 | 37924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37925 | |
37926 | fi | |
ac1cb8d3 | 37927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37928 | |
37929 | CFLAGS="$CFLAGS_OLD" | |
37930 | ||
37931 | ||
37932 | fi | |
ac1cb8d3 | 37933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37934 | |
37935 | fi | |
37936 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
37937 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
37938 | ||
37939 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
37940 | wxUSE_SOCKETS=no | |
37941 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
37942 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
37943 | else | |
37944 | cat >>confdefs.h <<_ACEOF | |
37945 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
37946 | _ACEOF |
37947 | ||
37948 | fi | |
37949 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
37950 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
37951 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
37952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37953 | else | |
37954 | ||
37955 | cat >conftest.$ac_ext <<_ACEOF | |
37956 | /* confdefs.h. */ | |
37957 | _ACEOF | |
37958 | cat confdefs.h >>conftest.$ac_ext | |
37959 | cat >>conftest.$ac_ext <<_ACEOF | |
37960 | /* end confdefs.h. */ | |
37961 | ||
37962 | #include <sys/types.h> | |
37963 | #include <sys/socket.h> | |
37964 | ||
37965 | int | |
37966 | main () | |
37967 | { | |
37968 | ||
37969 | socklen_t len; | |
37970 | getsockopt(0, 0, 0, 0, &len); | |
37971 | ||
37972 | ; | |
37973 | return 0; | |
37974 | } | |
37975 | _ACEOF | |
37976 | rm -f conftest.$ac_objext | |
37977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37978 | (eval $ac_compile) 2>conftest.er1 | |
37979 | ac_status=$? | |
37980 | grep -v '^ *+' conftest.er1 >conftest.err | |
37981 | rm -f conftest.er1 | |
37982 | cat conftest.err >&5 | |
37983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37984 | (exit $ac_status); } && | |
9dd0f6c2 | 37985 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
37986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37987 | (eval $ac_try) 2>&5 | |
37988 | ac_status=$? | |
37989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37990 | (exit $ac_status); }; } && | |
37991 | { ac_try='test -s conftest.$ac_objext' | |
37992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37993 | (eval $ac_try) 2>&5 | |
37994 | ac_status=$? | |
37995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37996 | (exit $ac_status); }; }; then | |
37997 | wx_cv_type_getsockopt5=socklen_t | |
37998 | else | |
37999 | echo "$as_me: failed program was:" >&5 | |
38000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38001 | ||
38002 | ||
38003 | CFLAGS_OLD="$CFLAGS" | |
38004 | if test "$GCC" = yes ; then | |
38005 | CFLAGS="$CFLAGS -Werror" | |
38006 | fi | |
38007 | ||
38008 | cat >conftest.$ac_ext <<_ACEOF | |
38009 | /* confdefs.h. */ | |
38010 | _ACEOF | |
38011 | cat confdefs.h >>conftest.$ac_ext | |
38012 | cat >>conftest.$ac_ext <<_ACEOF | |
38013 | /* end confdefs.h. */ | |
38014 | ||
38015 | #include <sys/types.h> | |
38016 | #include <sys/socket.h> | |
38017 | ||
38018 | int | |
38019 | main () | |
38020 | { | |
38021 | ||
38022 | size_t len; | |
38023 | getsockopt(0, 0, 0, 0, &len); | |
38024 | ||
38025 | ; | |
38026 | return 0; | |
38027 | } | |
38028 | _ACEOF | |
38029 | rm -f conftest.$ac_objext | |
38030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38031 | (eval $ac_compile) 2>conftest.er1 | |
38032 | ac_status=$? | |
38033 | grep -v '^ *+' conftest.er1 >conftest.err | |
38034 | rm -f conftest.er1 | |
38035 | cat conftest.err >&5 | |
38036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38037 | (exit $ac_status); } && | |
9dd0f6c2 | 38038 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
38039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38040 | (eval $ac_try) 2>&5 | |
38041 | ac_status=$? | |
38042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38043 | (exit $ac_status); }; } && | |
38044 | { ac_try='test -s conftest.$ac_objext' | |
38045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38046 | (eval $ac_try) 2>&5 | |
38047 | ac_status=$? | |
38048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38049 | (exit $ac_status); }; }; then | |
38050 | wx_cv_type_getsockopt5=size_t | |
38051 | else | |
38052 | echo "$as_me: failed program was:" >&5 | |
38053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38054 | ||
38055 | cat >conftest.$ac_ext <<_ACEOF | |
38056 | /* confdefs.h. */ | |
38057 | _ACEOF | |
38058 | cat confdefs.h >>conftest.$ac_ext | |
38059 | cat >>conftest.$ac_ext <<_ACEOF | |
38060 | /* end confdefs.h. */ | |
38061 | ||
38062 | #include <sys/types.h> | |
38063 | #include <sys/socket.h> | |
38064 | ||
38065 | int | |
38066 | main () | |
38067 | { | |
38068 | ||
38069 | int len; | |
38070 | getsockopt(0, 0, 0, 0, &len); | |
38071 | ||
38072 | ; | |
38073 | return 0; | |
38074 | } | |
38075 | _ACEOF | |
38076 | rm -f conftest.$ac_objext | |
38077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38078 | (eval $ac_compile) 2>conftest.er1 | |
38079 | ac_status=$? | |
38080 | grep -v '^ *+' conftest.er1 >conftest.err | |
38081 | rm -f conftest.er1 | |
38082 | cat conftest.err >&5 | |
38083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38084 | (exit $ac_status); } && | |
9dd0f6c2 | 38085 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
38086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38087 | (eval $ac_try) 2>&5 | |
38088 | ac_status=$? | |
38089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38090 | (exit $ac_status); }; } && | |
38091 | { ac_try='test -s conftest.$ac_objext' | |
38092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38093 | (eval $ac_try) 2>&5 | |
38094 | ac_status=$? | |
38095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38096 | (exit $ac_status); }; }; then | |
38097 | wx_cv_type_getsockopt5=int | |
38098 | else | |
38099 | echo "$as_me: failed program was:" >&5 | |
38100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38101 | ||
38102 | wx_cv_type_getsockopt5=unknown | |
38103 | ||
38104 | fi | |
38105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38106 | ||
38107 | fi | |
38108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38109 | ||
38110 | CFLAGS="$CFLAGS_OLD" | |
38111 | ||
38112 | ||
38113 | fi | |
38114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38115 | ||
38116 | fi | |
38117 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
38118 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
38119 | ||
38120 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
38121 | wxUSE_SOCKETS=no | |
38122 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
38123 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
38124 | else | |
38125 | cat >>confdefs.h <<_ACEOF | |
38126 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
38127 | _ACEOF |
38128 | ||
38129 | fi | |
4d4ff94c VZ |
38130 | ac_ext=c |
38131 | ac_cpp='$CPP $CPPFLAGS' | |
38132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38135 | ||
a848cd7e SC |
38136 | fi |
38137 | fi | |
38138 | ||
38139 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
38140 | cat >>confdefs.h <<\_ACEOF | |
38141 | #define wxUSE_SOCKETS 1 | |
38142 | _ACEOF | |
38143 | ||
38144 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
38145 | fi | |
38146 | ||
38147 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
38148 | if test "$wxUSE_SOCKETS" != "yes"; then | |
38149 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
38150 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
38151 | wxUSE_PROTOCOL=no | |
38152 | fi | |
38153 | fi | |
38154 | ||
38155 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
38156 | cat >>confdefs.h <<\_ACEOF | |
38157 | #define wxUSE_PROTOCOL 1 | |
38158 | _ACEOF | |
38159 | ||
38160 | ||
38161 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
38162 | cat >>confdefs.h <<\_ACEOF | |
38163 | #define wxUSE_PROTOCOL_HTTP 1 | |
38164 | _ACEOF | |
38165 | ||
38166 | fi | |
38167 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
38168 | cat >>confdefs.h <<\_ACEOF | |
38169 | #define wxUSE_PROTOCOL_FTP 1 | |
38170 | _ACEOF | |
38171 | ||
38172 | fi | |
38173 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
38174 | cat >>confdefs.h <<\_ACEOF | |
38175 | #define wxUSE_PROTOCOL_FILE 1 | |
38176 | _ACEOF | |
38177 | ||
38178 | fi | |
38179 | else | |
38180 | if test "$wxUSE_FS_INET" = "yes"; then | |
38181 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
38182 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
38183 | wxUSE_FS_INET="no" | |
38184 | fi | |
38185 | fi | |
38186 | ||
38187 | if test "$wxUSE_URL" = "yes"; then | |
38188 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
38189 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
38190 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
38191 | wxUSE_URL=no | |
38192 | fi | |
38193 | if test "$wxUSE_URL" = "yes"; then | |
38194 | cat >>confdefs.h <<\_ACEOF | |
38195 | #define wxUSE_URL 1 | |
38196 | _ACEOF | |
38197 | ||
38198 | fi | |
38199 | fi | |
38200 | ||
38201 | if test "$wxUSE_FS_INET" = "yes"; then | |
38202 | cat >>confdefs.h <<\_ACEOF | |
38203 | #define wxUSE_FS_INET 1 | |
38204 | _ACEOF | |
38205 | ||
38206 | fi | |
38207 | ||
38208 | ||
38209 | if test "$wxUSE_GUI" = "yes"; then | |
4cb1d3da | 38210 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a848cd7e | 38211 | |
4cb1d3da | 38212 | if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then |
a848cd7e SC |
38213 | |
38214 | for ac_header in linux/joystick.h | |
38215 | do | |
38216 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38217 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38218 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38222 | fi | |
38223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38224 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38225 | else | |
38226 | # Is the header compilable? | |
38227 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38228 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38229 | cat >conftest.$ac_ext <<_ACEOF | |
38230 | /* confdefs.h. */ | |
38231 | _ACEOF | |
38232 | cat confdefs.h >>conftest.$ac_ext | |
38233 | cat >>conftest.$ac_ext <<_ACEOF | |
38234 | /* end confdefs.h. */ | |
38235 | $ac_includes_default | |
38236 | #include <$ac_header> | |
38237 | _ACEOF | |
38238 | rm -f conftest.$ac_objext | |
38239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38240 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38241 | ac_status=$? |
ac1cb8d3 VS |
38242 | grep -v '^ *+' conftest.er1 >conftest.err |
38243 | rm -f conftest.er1 | |
38244 | cat conftest.err >&5 | |
a848cd7e SC |
38245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38246 | (exit $ac_status); } && | |
9dd0f6c2 | 38247 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38249 | (eval $ac_try) 2>&5 | |
38250 | ac_status=$? | |
38251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38252 | (exit $ac_status); }; } && | |
38253 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38255 | (eval $ac_try) 2>&5 | |
38256 | ac_status=$? | |
38257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38258 | (exit $ac_status); }; }; then | |
38259 | ac_header_compiler=yes | |
38260 | else | |
38261 | echo "$as_me: failed program was:" >&5 | |
38262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38263 | ||
38264 | ac_header_compiler=no | |
38265 | fi | |
ac1cb8d3 | 38266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38267 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38268 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38269 | ||
38270 | # Is the header present? | |
38271 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38272 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38273 | cat >conftest.$ac_ext <<_ACEOF | |
38274 | /* confdefs.h. */ | |
38275 | _ACEOF | |
38276 | cat confdefs.h >>conftest.$ac_ext | |
38277 | cat >>conftest.$ac_ext <<_ACEOF | |
38278 | /* end confdefs.h. */ | |
38279 | #include <$ac_header> | |
38280 | _ACEOF | |
38281 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38282 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38283 | ac_status=$? | |
38284 | grep -v '^ *+' conftest.er1 >conftest.err | |
38285 | rm -f conftest.er1 | |
38286 | cat conftest.err >&5 | |
38287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38288 | (exit $ac_status); } >/dev/null; then | |
38289 | if test -s conftest.err; then | |
38290 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 38291 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
38292 | else |
38293 | ac_cpp_err= | |
38294 | fi | |
38295 | else | |
38296 | ac_cpp_err=yes | |
38297 | fi | |
38298 | if test -z "$ac_cpp_err"; then | |
38299 | ac_header_preproc=yes | |
38300 | else | |
38301 | echo "$as_me: failed program was:" >&5 | |
38302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38303 | ||
38304 | ac_header_preproc=no | |
38305 | fi | |
38306 | rm -f conftest.err conftest.$ac_ext | |
38307 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38308 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38309 | ||
38310 | # So? What about this header? | |
ac1cb8d3 VS |
38311 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
38312 | yes:no: ) | |
a848cd7e SC |
38313 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38314 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38315 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38316 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38317 | ac_header_preproc=yes | |
a848cd7e | 38318 | ;; |
ac1cb8d3 | 38319 | no:yes:* ) |
a848cd7e SC |
38320 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38321 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38322 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38323 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38324 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38325 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38326 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38327 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38328 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38329 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38330 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38331 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38332 | ( |
38333 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38334 | ## ----------------------------------------- ## |
38335 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38336 | ## ----------------------------------------- ## | |
a848cd7e SC |
38337 | _ASBOX |
38338 | ) | | |
38339 | sed "s/^/$as_me: WARNING: /" >&2 | |
38340 | ;; | |
38341 | esac | |
38342 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38343 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38346 | else | |
ac1cb8d3 | 38347 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38348 | fi |
38349 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38350 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38351 | ||
38352 | fi | |
38353 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38354 | cat >>confdefs.h <<_ACEOF | |
38355 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38356 | _ACEOF | |
38357 | ||
38358 | fi | |
38359 | ||
38360 | done | |
38361 | ||
38362 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
38363 | wxUSE_JOYSTICK=no | |
38364 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
38365 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
38366 | fi | |
4cb1d3da RN |
38367 | else |
38368 | if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then | |
38369 | wxUSE_JOYSTICK=no | |
38370 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
38371 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
38372 | fi | |
a848cd7e | 38373 | fi |
a848cd7e | 38374 | |
4cb1d3da RN |
38375 | |
38376 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
38377 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38378 | #define wxUSE_JOYSTICK 1 |
38379 | _ACEOF | |
38380 | ||
4cb1d3da RN |
38381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
38382 | fi | |
a848cd7e SC |
38383 | fi |
38384 | fi | |
38385 | ||
38386 | ||
38387 | ||
38388 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
38389 | cat >>confdefs.h <<\_ACEOF | |
38390 | #define wxUSE_FONTMAP 1 | |
38391 | _ACEOF | |
38392 | ||
38393 | fi | |
38394 | ||
38395 | if test "$wxUSE_UNICODE" = "yes" ; then | |
38396 | cat >>confdefs.h <<\_ACEOF | |
38397 | #define wxUSE_UNICODE 1 | |
38398 | _ACEOF | |
38399 | ||
38400 | ||
38401 | if test "$USE_WIN32" != 1; then | |
38402 | wxUSE_UNICODE_MSLU=no | |
38403 | fi | |
38404 | ||
38405 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
38406 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
38407 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
38408 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
38409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38410 | else | |
38411 | ac_check_lib_save_LIBS=$LIBS | |
38412 | LIBS="-lunicows $LIBS" | |
38413 | cat >conftest.$ac_ext <<_ACEOF | |
38414 | /* confdefs.h. */ | |
38415 | _ACEOF | |
38416 | cat confdefs.h >>conftest.$ac_ext | |
38417 | cat >>conftest.$ac_ext <<_ACEOF | |
38418 | /* end confdefs.h. */ | |
38419 | ||
38420 | ||
38421 | int | |
38422 | main () | |
38423 | { | |
38424 | main (); | |
38425 | ; | |
38426 | return 0; | |
38427 | } | |
38428 | _ACEOF | |
38429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38431 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38432 | ac_status=$? |
ac1cb8d3 VS |
38433 | grep -v '^ *+' conftest.er1 >conftest.err |
38434 | rm -f conftest.er1 | |
38435 | cat conftest.err >&5 | |
a848cd7e SC |
38436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38437 | (exit $ac_status); } && | |
9dd0f6c2 | 38438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38440 | (eval $ac_try) 2>&5 | |
38441 | ac_status=$? | |
38442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38443 | (exit $ac_status); }; } && | |
38444 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38446 | (eval $ac_try) 2>&5 | |
38447 | ac_status=$? | |
38448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38449 | (exit $ac_status); }; }; then | |
38450 | ac_cv_lib_unicows_main=yes | |
38451 | else | |
38452 | echo "$as_me: failed program was:" >&5 | |
38453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38454 | ||
38455 | ac_cv_lib_unicows_main=no | |
38456 | fi | |
ac1cb8d3 VS |
38457 | rm -f conftest.err conftest.$ac_objext \ |
38458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38459 | LIBS=$ac_check_lib_save_LIBS |
38460 | fi | |
38461 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
38462 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
38463 | if test $ac_cv_lib_unicows_main = yes; then | |
38464 | ||
38465 | cat >>confdefs.h <<\_ACEOF | |
38466 | #define wxUSE_UNICODE_MSLU 1 | |
38467 | _ACEOF | |
38468 | ||
38469 | ||
38470 | else | |
38471 | ||
38472 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
38473 | Applications will only run on Windows NT/2000/XP!" >&5 | |
38474 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
38475 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
38476 | wxUSE_UNICODE_MSLU=no | |
38477 | ||
38478 | fi | |
38479 | ||
38480 | fi | |
38481 | fi | |
38482 | ||
38483 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
38484 | cat >>confdefs.h <<\_ACEOF | |
38485 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
38486 | _ACEOF | |
38487 | ||
38488 | fi | |
38489 | ||
38490 | ||
38491 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
38492 | cat >>confdefs.h <<\_ACEOF | |
38493 | #define wxUSE_POSTSCRIPT 1 | |
38494 | _ACEOF | |
38495 | ||
38496 | fi | |
38497 | ||
38498 | cat >>confdefs.h <<\_ACEOF | |
38499 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
38500 | _ACEOF | |
38501 | ||
38502 | ||
38503 | cat >>confdefs.h <<\_ACEOF | |
38504 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
38505 | _ACEOF | |
38506 | ||
38507 | ||
38508 | ||
38509 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
38510 | cat >>confdefs.h <<\_ACEOF | |
38511 | #define wxUSE_CONSTRAINTS 1 | |
38512 | _ACEOF | |
38513 | ||
38514 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
38515 | fi | |
38516 | ||
8a7b1113 VZ |
38517 | if test "$wxUSE_MDI" = "yes"; then |
38518 | cat >>confdefs.h <<\_ACEOF | |
38519 | #define wxUSE_MDI 1 | |
38520 | _ACEOF | |
38521 | ||
38522 | ||
38523 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
38524 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38525 | #define wxUSE_MDI_ARCHITECTURE 1 |
38526 | _ACEOF | |
38527 | ||
8a7b1113 VZ |
38528 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
38529 | fi | |
a848cd7e SC |
38530 | fi |
38531 | ||
38532 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
38533 | cat >>confdefs.h <<\_ACEOF | |
38534 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
38535 | _ACEOF | |
38536 | ||
38537 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
38538 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
38539 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
38540 | fi | |
38541 | fi | |
38542 | ||
38543 | if test "$wxUSE_HELP" = "yes"; then | |
38544 | cat >>confdefs.h <<\_ACEOF | |
38545 | #define wxUSE_HELP 1 | |
38546 | _ACEOF | |
38547 | ||
38548 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
38549 | ||
38550 | if test "$wxUSE_MSW" = 1; then | |
38551 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
38552 | cat >>confdefs.h <<\_ACEOF | |
38553 | #define wxUSE_MS_HTML_HELP 1 | |
38554 | _ACEOF | |
38555 | ||
38556 | fi | |
38557 | fi | |
38558 | ||
38559 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
38560 | if test "$wxUSE_HTML" = "yes"; then | |
38561 | cat >>confdefs.h <<\_ACEOF | |
38562 | #define wxUSE_WXHTML_HELP 1 | |
38563 | _ACEOF | |
38564 | ||
38565 | else | |
38566 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
38567 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
38568 | wxUSE_WXHTML_HELP=no | |
38569 | fi | |
38570 | fi | |
38571 | fi | |
38572 | ||
38573 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
38574 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38575 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
38576 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
38577 | else | |
38578 | cat >>confdefs.h <<\_ACEOF | |
38579 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
38580 | _ACEOF | |
38581 | ||
38582 | fi | |
38583 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
38584 | fi | |
38585 | ||
38586 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
38587 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
38588 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
38589 | { (exit 1); exit 1; }; } | |
38590 | fi | |
38591 | ||
38592 | ||
38593 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
38594 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
38595 | -o "$wxUSE_OLE" = "yes" \ | |
38596 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
38597 | ||
38598 | for ac_header in ole2.h | |
38599 | do | |
38600 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38601 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38602 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38604 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38606 | fi | |
38607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38608 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38609 | else | |
38610 | # Is the header compilable? | |
38611 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38612 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38613 | cat >conftest.$ac_ext <<_ACEOF | |
38614 | /* confdefs.h. */ | |
38615 | _ACEOF | |
38616 | cat confdefs.h >>conftest.$ac_ext | |
38617 | cat >>conftest.$ac_ext <<_ACEOF | |
38618 | /* end confdefs.h. */ | |
38619 | $ac_includes_default | |
38620 | #include <$ac_header> | |
38621 | _ACEOF | |
38622 | rm -f conftest.$ac_objext | |
38623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38624 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38625 | ac_status=$? |
ac1cb8d3 VS |
38626 | grep -v '^ *+' conftest.er1 >conftest.err |
38627 | rm -f conftest.er1 | |
38628 | cat conftest.err >&5 | |
a848cd7e SC |
38629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38630 | (exit $ac_status); } && | |
9dd0f6c2 | 38631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38633 | (eval $ac_try) 2>&5 | |
38634 | ac_status=$? | |
38635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38636 | (exit $ac_status); }; } && | |
38637 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38639 | (eval $ac_try) 2>&5 | |
38640 | ac_status=$? | |
38641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38642 | (exit $ac_status); }; }; then | |
38643 | ac_header_compiler=yes | |
38644 | else | |
38645 | echo "$as_me: failed program was:" >&5 | |
38646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38647 | ||
38648 | ac_header_compiler=no | |
38649 | fi | |
ac1cb8d3 | 38650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38651 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38652 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38653 | ||
38654 | # Is the header present? | |
38655 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38656 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38657 | cat >conftest.$ac_ext <<_ACEOF | |
38658 | /* confdefs.h. */ | |
38659 | _ACEOF | |
38660 | cat confdefs.h >>conftest.$ac_ext | |
38661 | cat >>conftest.$ac_ext <<_ACEOF | |
38662 | /* end confdefs.h. */ | |
38663 | #include <$ac_header> | |
38664 | _ACEOF | |
38665 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38666 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38667 | ac_status=$? | |
38668 | grep -v '^ *+' conftest.er1 >conftest.err | |
38669 | rm -f conftest.er1 | |
38670 | cat conftest.err >&5 | |
38671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38672 | (exit $ac_status); } >/dev/null; then | |
38673 | if test -s conftest.err; then | |
38674 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 38675 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
38676 | else |
38677 | ac_cpp_err= | |
38678 | fi | |
38679 | else | |
38680 | ac_cpp_err=yes | |
38681 | fi | |
38682 | if test -z "$ac_cpp_err"; then | |
38683 | ac_header_preproc=yes | |
38684 | else | |
38685 | echo "$as_me: failed program was:" >&5 | |
38686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38687 | ||
38688 | ac_header_preproc=no | |
38689 | fi | |
38690 | rm -f conftest.err conftest.$ac_ext | |
38691 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38692 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38693 | ||
38694 | # So? What about this header? | |
ac1cb8d3 VS |
38695 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
38696 | yes:no: ) | |
a848cd7e SC |
38697 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38698 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38699 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38700 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38701 | ac_header_preproc=yes | |
a848cd7e | 38702 | ;; |
ac1cb8d3 | 38703 | no:yes:* ) |
a848cd7e SC |
38704 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38705 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38706 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38707 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38708 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38709 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38710 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38711 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38712 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38713 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38714 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38715 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38716 | ( |
38717 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38718 | ## ----------------------------------------- ## |
38719 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38720 | ## ----------------------------------------- ## | |
a848cd7e SC |
38721 | _ASBOX |
38722 | ) | | |
38723 | sed "s/^/$as_me: WARNING: /" >&2 | |
38724 | ;; | |
38725 | esac | |
38726 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38727 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38728 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38730 | else | |
ac1cb8d3 | 38731 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38732 | fi |
38733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38734 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38735 | ||
38736 | fi | |
38737 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38738 | cat >>confdefs.h <<_ACEOF | |
38739 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38740 | _ACEOF | |
38741 | ||
38742 | fi | |
38743 | ||
38744 | done | |
38745 | ||
38746 | ||
38747 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
38748 | if test "$GCC" = yes ; then | |
38749 | ||
38750 | ||
38751 | ac_ext=cc | |
38752 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38753 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38754 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38755 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
38756 | ||
38757 | ||
38758 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
38759 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
38760 | cat >conftest.$ac_ext <<_ACEOF | |
38761 | /* confdefs.h. */ | |
38762 | _ACEOF | |
38763 | cat confdefs.h >>conftest.$ac_ext | |
38764 | cat >>conftest.$ac_ext <<_ACEOF | |
38765 | /* end confdefs.h. */ | |
38766 | #include <windows.h> | |
38767 | #include <ole2.h> | |
38768 | int | |
38769 | main () | |
38770 | { | |
38771 | ||
38772 | ; | |
38773 | return 0; | |
38774 | } | |
38775 | _ACEOF | |
38776 | rm -f conftest.$ac_objext | |
38777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38778 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38779 | ac_status=$? |
ac1cb8d3 VS |
38780 | grep -v '^ *+' conftest.er1 >conftest.err |
38781 | rm -f conftest.er1 | |
38782 | cat conftest.err >&5 | |
a848cd7e SC |
38783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38784 | (exit $ac_status); } && | |
9dd0f6c2 | 38785 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38787 | (eval $ac_try) 2>&5 | |
38788 | ac_status=$? | |
38789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38790 | (exit $ac_status); }; } && | |
38791 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38793 | (eval $ac_try) 2>&5 | |
38794 | ac_status=$? | |
38795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38796 | (exit $ac_status); }; }; then | |
38797 | echo "$as_me:$LINENO: result: no" >&5 | |
38798 | echo "${ECHO_T}no" >&6 | |
38799 | else | |
38800 | echo "$as_me: failed program was:" >&5 | |
38801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38802 | ||
38803 | echo "$as_me:$LINENO: result: yes" >&5 | |
38804 | echo "${ECHO_T}yes" >&6 | |
38805 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
38806 | fi | |
ac1cb8d3 | 38807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38808 | ac_ext=c |
38809 | ac_cpp='$CPP $CPPFLAGS' | |
38810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38813 | ||
a848cd7e SC |
38814 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
38815 | if test "$wxUSE_OLE" = "yes" ; then | |
38816 | cat >>confdefs.h <<\_ACEOF | |
38817 | #define wxUSE_OLE 1 | |
38818 | _ACEOF | |
38819 | ||
0b78747f | 38820 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
38821 | fi |
38822 | fi | |
38823 | ||
38824 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
38825 | cat >>confdefs.h <<\_ACEOF | |
38826 | #define wxUSE_DATAOBJ 1 | |
38827 | _ACEOF | |
38828 | ||
38829 | fi | |
38830 | else | |
38831 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
38832 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
38833 | ||
38834 | wxUSE_CLIPBOARD=no | |
38835 | wxUSE_DRAG_AND_DROP=no | |
38836 | wxUSE_DATAOBJ=no | |
38837 | wxUSE_OLE=no | |
38838 | fi | |
38839 | ||
38840 | if test "$wxUSE_METAFILE" = "yes"; then | |
38841 | cat >>confdefs.h <<\_ACEOF | |
38842 | #define wxUSE_METAFILE 1 | |
38843 | _ACEOF | |
38844 | ||
38845 | ||
38846 | cat >>confdefs.h <<\_ACEOF | |
38847 | #define wxUSE_ENH_METAFILE 1 | |
38848 | _ACEOF | |
38849 | ||
38850 | fi | |
38851 | fi | |
38852 | ||
38853 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 38854 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
38855 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
38856 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 38857 | wxUSE_IPC=no |
a848cd7e SC |
38858 | fi |
38859 | ||
0b78747f MW |
38860 | if test "$wxUSE_IPC" = "yes"; then |
38861 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38862 | #define wxUSE_IPC 1 |
38863 | _ACEOF | |
38864 | ||
0b78747f MW |
38865 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
38866 | fi | |
a848cd7e SC |
38867 | fi |
38868 | ||
38869 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38870 | if test "$wxUSE_MGL" = 1; then | |
38871 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
38872 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
38873 | wxUSE_CLIPBOARD=no | |
38874 | fi | |
38875 | ||
38876 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38877 | cat >>confdefs.h <<\_ACEOF | |
38878 | #define wxUSE_CLIPBOARD 1 | |
38879 | _ACEOF | |
38880 | ||
38881 | ||
38882 | cat >>confdefs.h <<\_ACEOF | |
38883 | #define wxUSE_DATAOBJ 1 | |
38884 | _ACEOF | |
38885 | ||
38886 | fi | |
38887 | fi | |
38888 | ||
38889 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
38890 | if test "$wxUSE_GTK" = 1; then | |
38891 | if test "$WXGTK12" != 1; then | |
38892 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
38893 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
38894 | wxUSE_DRAG_AND_DROP=no | |
38895 | fi | |
38896 | fi | |
38897 | ||
38898 | if test "$wxUSE_MOTIF" = 1; then | |
38899 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
38900 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
38901 | wxUSE_DRAG_AND_DROP=no | |
38902 | fi | |
38903 | ||
38904 | if test "$wxUSE_X11" = 1; then | |
38905 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
38906 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
38907 | wxUSE_DRAG_AND_DROP=no | |
38908 | fi | |
38909 | ||
38910 | if test "$wxUSE_MGL" = 1; then | |
38911 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
38912 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
38913 | wxUSE_DRAG_AND_DROP=no | |
38914 | fi | |
38915 | ||
38916 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
38917 | cat >>confdefs.h <<\_ACEOF | |
38918 | #define wxUSE_DRAG_AND_DROP 1 | |
38919 | _ACEOF | |
38920 | ||
38921 | fi | |
38922 | ||
38923 | fi | |
38924 | ||
38925 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
38926 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
38927 | fi | |
38928 | ||
38929 | if test "$wxUSE_SPLINES" = "yes" ; then | |
38930 | cat >>confdefs.h <<\_ACEOF | |
38931 | #define wxUSE_SPLINES 1 | |
38932 | _ACEOF | |
38933 | ||
38934 | fi | |
38935 | ||
fbe2ca43 SN |
38936 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
38937 | cat >>confdefs.h <<\_ACEOF | |
38938 | #define wxUSE_MOUSEWHEEL 1 | |
38939 | _ACEOF | |
38940 | ||
38941 | fi | |
38942 | ||
a848cd7e SC |
38943 | |
38944 | USES_CONTROLS=0 | |
38945 | if test "$wxUSE_CONTROLS" = "yes"; then | |
38946 | USES_CONTROLS=1 | |
38947 | fi | |
38948 | ||
38949 | if test "$wxUSE_ACCEL" = "yes"; then | |
38950 | cat >>confdefs.h <<\_ACEOF | |
38951 | #define wxUSE_ACCEL 1 | |
38952 | _ACEOF | |
38953 | ||
38954 | USES_CONTROLS=1 | |
38955 | fi | |
38956 | ||
38957 | if test "$wxUSE_BUTTON" = "yes"; then | |
38958 | cat >>confdefs.h <<\_ACEOF | |
38959 | #define wxUSE_BUTTON 1 | |
38960 | _ACEOF | |
38961 | ||
38962 | USES_CONTROLS=1 | |
38963 | fi | |
38964 | ||
38965 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
38966 | cat >>confdefs.h <<\_ACEOF | |
38967 | #define wxUSE_BMPBUTTON 1 | |
38968 | _ACEOF | |
38969 | ||
38970 | USES_CONTROLS=1 | |
38971 | fi | |
38972 | ||
38973 | if test "$wxUSE_CALCTRL" = "yes"; then | |
38974 | cat >>confdefs.h <<\_ACEOF | |
38975 | #define wxUSE_CALENDARCTRL 1 | |
38976 | _ACEOF | |
38977 | ||
38978 | USES_CONTROLS=1 | |
38979 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
38980 | fi | |
38981 | ||
38982 | if test "$wxUSE_CARET" = "yes"; then | |
38983 | cat >>confdefs.h <<\_ACEOF | |
38984 | #define wxUSE_CARET 1 | |
38985 | _ACEOF | |
38986 | ||
38987 | USES_CONTROLS=1 | |
38988 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
38989 | fi | |
38990 | ||
38991 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
38992 | cat >>confdefs.h <<\_ACEOF | |
38993 | #define wxUSE_COMBOBOX 1 | |
38994 | _ACEOF | |
38995 | ||
38996 | USES_CONTROLS=1 | |
38997 | fi | |
38998 | ||
38999 | if test "$wxUSE_CHOICE" = "yes"; then | |
39000 | cat >>confdefs.h <<\_ACEOF | |
39001 | #define wxUSE_CHOICE 1 | |
39002 | _ACEOF | |
39003 | ||
39004 | USES_CONTROLS=1 | |
39005 | fi | |
39006 | ||
92bbdbcd WS |
39007 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
39008 | cat >>confdefs.h <<\_ACEOF | |
39009 | #define wxUSE_CHOICEBOOK 1 | |
39010 | _ACEOF | |
39011 | ||
39012 | USES_CONTROLS=1 | |
39013 | fi | |
39014 | ||
a848cd7e SC |
39015 | if test "$wxUSE_CHECKBOX" = "yes"; then |
39016 | cat >>confdefs.h <<\_ACEOF | |
39017 | #define wxUSE_CHECKBOX 1 | |
39018 | _ACEOF | |
39019 | ||
39020 | USES_CONTROLS=1 | |
39021 | fi | |
39022 | ||
39023 | if test "$wxUSE_CHECKLST" = "yes"; then | |
39024 | cat >>confdefs.h <<\_ACEOF | |
39025 | #define wxUSE_CHECKLISTBOX 1 | |
39026 | _ACEOF | |
39027 | ||
39028 | USES_CONTROLS=1 | |
39029 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
39030 | fi | |
39031 | ||
da98e9be VZ |
39032 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
39033 | cat >>confdefs.h <<\_ACEOF | |
39034 | #define wxUSE_DATEPICKCTRL 1 | |
39035 | _ACEOF | |
39036 | ||
39037 | USES_CONTROLS=1 | |
39038 | fi | |
39039 | ||
a848cd7e SC |
39040 | if test "$wxUSE_DISPLAY" = "yes"; then |
39041 | cat >>confdefs.h <<\_ACEOF | |
39042 | #define wxUSE_DISPLAY 1 | |
39043 | _ACEOF | |
39044 | ||
0b78747f | 39045 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
39046 | fi |
39047 | ||
39048 | if test "$wxUSE_GAUGE" = "yes"; then | |
39049 | cat >>confdefs.h <<\_ACEOF | |
39050 | #define wxUSE_GAUGE 1 | |
39051 | _ACEOF | |
39052 | ||
39053 | USES_CONTROLS=1 | |
39054 | fi | |
39055 | ||
39056 | if test "$wxUSE_GRID" = "yes"; then | |
39057 | cat >>confdefs.h <<\_ACEOF | |
39058 | #define wxUSE_GRID 1 | |
39059 | _ACEOF | |
39060 | ||
39061 | USES_CONTROLS=1 | |
39062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
39063 | fi | |
39064 | ||
39065 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39066 | cat >>confdefs.h <<\_ACEOF | |
39067 | #define wxUSE_IMAGLIST 1 | |
39068 | _ACEOF | |
39069 | ||
39070 | fi | |
39071 | ||
39072 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
39073 | cat >>confdefs.h <<\_ACEOF | |
39074 | #define wxUSE_LISTBOOK 1 | |
39075 | _ACEOF | |
39076 | ||
39077 | USES_CONTROLS=1 | |
39078 | fi | |
39079 | ||
39080 | if test "$wxUSE_LISTBOX" = "yes"; then | |
39081 | cat >>confdefs.h <<\_ACEOF | |
39082 | #define wxUSE_LISTBOX 1 | |
39083 | _ACEOF | |
39084 | ||
39085 | USES_CONTROLS=1 | |
0b78747f | 39086 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
39087 | fi |
39088 | ||
39089 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
39090 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39091 | cat >>confdefs.h <<\_ACEOF | |
39092 | #define wxUSE_LISTCTRL 1 | |
39093 | _ACEOF | |
39094 | ||
39095 | USES_CONTROLS=1 | |
39096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
39097 | else | |
39098 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
39099 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
39100 | fi | |
39101 | fi | |
39102 | ||
39103 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
39104 | cat >>confdefs.h <<\_ACEOF | |
39105 | #define wxUSE_NOTEBOOK 1 | |
39106 | _ACEOF | |
39107 | ||
39108 | USES_CONTROLS=1 | |
39109 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
39110 | fi | |
39111 | ||
39112 | ||
39113 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
39114 | cat >>confdefs.h <<\_ACEOF | |
39115 | #define wxUSE_RADIOBOX 1 | |
39116 | _ACEOF | |
39117 | ||
39118 | USES_CONTROLS=1 | |
39119 | fi | |
39120 | ||
39121 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
39122 | cat >>confdefs.h <<\_ACEOF | |
39123 | #define wxUSE_RADIOBTN 1 | |
39124 | _ACEOF | |
39125 | ||
39126 | USES_CONTROLS=1 | |
39127 | fi | |
39128 | ||
39129 | if test "$wxUSE_SASH" = "yes"; then | |
39130 | cat >>confdefs.h <<\_ACEOF | |
39131 | #define wxUSE_SASH 1 | |
39132 | _ACEOF | |
39133 | ||
39134 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
39135 | fi | |
39136 | ||
39137 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
39138 | cat >>confdefs.h <<\_ACEOF | |
39139 | #define wxUSE_SCROLLBAR 1 | |
39140 | _ACEOF | |
39141 | ||
39142 | USES_CONTROLS=1 | |
39143 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
39144 | fi | |
39145 | ||
39146 | if test "$wxUSE_SLIDER" = "yes"; then | |
39147 | cat >>confdefs.h <<\_ACEOF | |
39148 | #define wxUSE_SLIDER 1 | |
39149 | _ACEOF | |
39150 | ||
39151 | USES_CONTROLS=1 | |
39152 | fi | |
39153 | ||
39154 | if test "$wxUSE_SPINBTN" = "yes"; then | |
39155 | cat >>confdefs.h <<\_ACEOF | |
39156 | #define wxUSE_SPINBTN 1 | |
39157 | _ACEOF | |
39158 | ||
39159 | USES_CONTROLS=1 | |
39160 | fi | |
39161 | ||
39162 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
39163 | cat >>confdefs.h <<\_ACEOF | |
39164 | #define wxUSE_SPINCTRL 1 | |
39165 | _ACEOF | |
39166 | ||
39167 | USES_CONTROLS=1 | |
39168 | fi | |
39169 | ||
39170 | if test "$wxUSE_SPLITTER" = "yes"; then | |
39171 | cat >>confdefs.h <<\_ACEOF | |
39172 | #define wxUSE_SPLITTER 1 | |
39173 | _ACEOF | |
39174 | ||
39175 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
39176 | fi | |
39177 | ||
39178 | if test "$wxUSE_STATBMP" = "yes"; then | |
39179 | cat >>confdefs.h <<\_ACEOF | |
39180 | #define wxUSE_STATBMP 1 | |
39181 | _ACEOF | |
39182 | ||
39183 | USES_CONTROLS=1 | |
39184 | fi | |
39185 | ||
39186 | if test "$wxUSE_STATBOX" = "yes"; then | |
39187 | cat >>confdefs.h <<\_ACEOF | |
39188 | #define wxUSE_STATBOX 1 | |
39189 | _ACEOF | |
39190 | ||
39191 | USES_CONTROLS=1 | |
39192 | fi | |
39193 | ||
39194 | if test "$wxUSE_STATTEXT" = "yes"; then | |
39195 | cat >>confdefs.h <<\_ACEOF | |
39196 | #define wxUSE_STATTEXT 1 | |
39197 | _ACEOF | |
39198 | ||
39199 | USES_CONTROLS=1 | |
39200 | fi | |
39201 | ||
39202 | if test "$wxUSE_STATLINE" = "yes"; then | |
39203 | cat >>confdefs.h <<\_ACEOF | |
39204 | #define wxUSE_STATLINE 1 | |
39205 | _ACEOF | |
39206 | ||
39207 | USES_CONTROLS=1 | |
39208 | fi | |
39209 | ||
39210 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
39211 | cat >>confdefs.h <<\_ACEOF |
39212 | #define wxUSE_NATIVE_STATUSBAR 1 | |
39213 | _ACEOF | |
39214 | ||
a848cd7e SC |
39215 | cat >>confdefs.h <<\_ACEOF |
39216 | #define wxUSE_STATUSBAR 1 | |
39217 | _ACEOF | |
39218 | ||
39219 | USES_CONTROLS=1 | |
39220 | ||
39221 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
39222 | fi | |
39223 | ||
39224 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
39225 | cat >>confdefs.h <<\_ACEOF | |
39226 | #define wxUSE_TAB_DIALOG 1 | |
39227 | _ACEOF | |
39228 | ||
a848cd7e SC |
39229 | fi |
39230 | ||
39231 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
39232 | cat >>confdefs.h <<\_ACEOF | |
39233 | #define wxUSE_TEXTCTRL 1 | |
39234 | _ACEOF | |
39235 | ||
39236 | USES_CONTROLS=1 | |
39237 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
39238 | fi | |
39239 | ||
39240 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
39241 | if test "$wxUSE_COCOA" = 1 ; then | |
39242 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
39243 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
39244 | wxUSE_TOGGLEBTN=no | |
39245 | fi | |
39246 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
39247 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
39248 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
39249 | wxUSE_TOGGLEBTN=no | |
39250 | fi | |
39251 | ||
39252 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
39253 | cat >>confdefs.h <<\_ACEOF | |
39254 | #define wxUSE_TOGGLEBTN 1 | |
39255 | _ACEOF | |
39256 | ||
39257 | USES_CONTROLS=1 | |
39258 | fi | |
39259 | fi | |
39260 | ||
39261 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
39262 | cat >>confdefs.h <<\_ACEOF | |
39263 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
39264 | _ACEOF | |
39265 | ||
39266 | wxUSE_TOOLBAR="yes" | |
39267 | USES_CONTROLS=1 | |
39268 | fi | |
39269 | ||
39270 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
39271 | cat >>confdefs.h <<\_ACEOF | |
39272 | #define wxUSE_TOOLBAR 1 | |
39273 | _ACEOF | |
39274 | ||
39275 | USES_CONTROLS=1 | |
39276 | ||
39277 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
39278 | wxUSE_TOOLBAR_NATIVE="yes" | |
39279 | fi | |
39280 | ||
39281 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
39282 | cat >>confdefs.h <<\_ACEOF | |
39283 | #define wxUSE_TOOLBAR_NATIVE 1 | |
39284 | _ACEOF | |
39285 | ||
39286 | USES_CONTROLS=1 | |
39287 | fi | |
39288 | ||
39289 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
39290 | fi | |
39291 | ||
39292 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
39293 | if test "$wxUSE_MOTIF" = 1; then | |
39294 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
39295 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
39296 | else | |
39297 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
39298 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
39299 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
39300 | else | |
39301 | cat >>confdefs.h <<\_ACEOF | |
39302 | #define wxUSE_TOOLTIPS 1 | |
39303 | _ACEOF | |
39304 | ||
39305 | fi | |
39306 | fi | |
39307 | fi | |
39308 | ||
39309 | if test "$wxUSE_TREECTRL" = "yes"; then | |
39310 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39311 | cat >>confdefs.h <<\_ACEOF | |
39312 | #define wxUSE_TREECTRL 1 | |
39313 | _ACEOF | |
39314 | ||
39315 | USES_CONTROLS=1 | |
39316 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
39317 | else | |
39318 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
39319 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
39320 | fi | |
39321 | fi | |
39322 | ||
39323 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
39324 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
39325 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
39326 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
39327 | else | |
39328 | if test "$wxUSE_PM" = 1; then | |
39329 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
39330 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
39331 | else | |
39332 | cat >>confdefs.h <<\_ACEOF | |
39333 | #define wxUSE_POPUPWIN 1 | |
39334 | _ACEOF | |
39335 | ||
0b78747f | 39336 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
39337 | |
39338 | USES_CONTROLS=1 | |
39339 | fi | |
39340 | fi | |
39341 | fi | |
39342 | ||
0dcd06dd | 39343 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
39344 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
39345 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
39346 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
39347 | else | |
39348 | cat >>confdefs.h <<\_ACEOF | |
39349 | #define wxUSE_DIALUP_MANAGER 1 | |
39350 | _ACEOF | |
39351 | ||
39352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
39353 | fi | |
39354 | fi | |
39355 | ||
a848cd7e SC |
39356 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
39357 | if test "$wxUSE_PM" = 1; then | |
39358 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
39359 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
39360 | else | |
39361 | cat >>confdefs.h <<\_ACEOF | |
39362 | #define wxUSE_TIPWINDOW 1 | |
39363 | _ACEOF | |
39364 | ||
39365 | fi | |
39366 | fi | |
39367 | ||
39368 | if test "$USES_CONTROLS" = 1; then | |
39369 | cat >>confdefs.h <<\_ACEOF | |
39370 | #define wxUSE_CONTROLS 1 | |
39371 | _ACEOF | |
39372 | ||
39373 | fi | |
39374 | ||
39375 | ||
39376 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
39377 | cat >>confdefs.h <<\_ACEOF | |
39378 | #define wxUSE_ACCESSIBILITY 1 | |
39379 | _ACEOF | |
39380 | ||
39381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
39382 | fi | |
39383 | ||
39384 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
39385 | cat >>confdefs.h <<\_ACEOF | |
39386 | #define wxUSE_DRAGIMAGE 1 | |
39387 | _ACEOF | |
39388 | ||
39389 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
39390 | fi | |
39391 | ||
39392 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
39393 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
39394 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
39395 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
39396 | else | |
39397 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39398 | #define wxUSE_EXCEPTIONS 1 |
39399 | _ACEOF | |
39400 | ||
07bea8f0 VS |
39401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
39402 | fi | |
a848cd7e SC |
39403 | fi |
39404 | ||
39405 | USE_HTML=0 | |
39406 | if test "$wxUSE_HTML" = "yes"; then | |
39407 | cat >>confdefs.h <<\_ACEOF | |
39408 | #define wxUSE_HTML 1 | |
39409 | _ACEOF | |
39410 | ||
39411 | USE_HTML=1 | |
39412 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
39413 | if test "$wxUSE_MAC" = 1; then |
39414 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
39415 | fi | |
a848cd7e | 39416 | fi |
646b6ec1 | 39417 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 39418 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
39419 | old_CPPFLAGS="$CPPFLAGS" |
39420 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
39421 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
39422 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
39423 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
39424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39425 | else | |
39426 | cat >conftest.$ac_ext <<_ACEOF | |
39427 | /* confdefs.h. */ | |
39428 | _ACEOF | |
39429 | cat confdefs.h >>conftest.$ac_ext | |
39430 | cat >>conftest.$ac_ext <<_ACEOF | |
39431 | /* end confdefs.h. */ | |
39432 | #include <Carbon/Carbon.h> | |
39433 | ||
39434 | #include <WebKit/HIWebView.h> | |
39435 | _ACEOF | |
39436 | rm -f conftest.$ac_objext | |
39437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39438 | (eval $ac_compile) 2>conftest.er1 | |
39439 | ac_status=$? | |
39440 | grep -v '^ *+' conftest.er1 >conftest.err | |
39441 | rm -f conftest.er1 | |
39442 | cat conftest.err >&5 | |
39443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39444 | (exit $ac_status); } && | |
9dd0f6c2 | 39445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
39446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39447 | (eval $ac_try) 2>&5 | |
39448 | ac_status=$? | |
39449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39450 | (exit $ac_status); }; } && | |
39451 | { ac_try='test -s conftest.$ac_objext' | |
39452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39453 | (eval $ac_try) 2>&5 | |
39454 | ac_status=$? | |
39455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39456 | (exit $ac_status); }; }; then | |
39457 | ac_cv_header_WebKit_HIWebView_h=yes | |
39458 | else | |
39459 | echo "$as_me: failed program was:" >&5 | |
39460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39461 | ||
39462 | ac_cv_header_WebKit_HIWebView_h=no | |
39463 | fi | |
39464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39465 | fi | |
39466 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
39467 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
39468 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
39469 | ||
39470 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
39471 | #define wxUSE_WEBKIT 1 |
39472 | _ACEOF | |
39473 | ||
07bea8f0 VS |
39474 | WEBKIT_LINK="-framework WebKit" |
39475 | ||
39476 | else | |
39477 | ||
39478 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
39479 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
39480 | wxUSE_WEBKIT=no | |
39481 | ||
646b6ec1 VS |
39482 | fi |
39483 | ||
07bea8f0 VS |
39484 | |
39485 | CPPFLAGS="$old_CPPFLAGS" | |
39486 | elif test "$wxUSE_COCOA" = 1; then | |
39487 | cat >>confdefs.h <<\_ACEOF | |
39488 | #define wxUSE_WEBKIT 1 | |
39489 | _ACEOF | |
39490 | ||
39491 | else | |
39492 | wxUSE_WEBKIT=no | |
39493 | fi | |
39494 | fi | |
39495 | ||
9a8f0513 VS |
39496 | USE_XRC=0 |
39497 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
39498 | if test "$wxUSE_XML" != "yes"; then |
39499 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
39500 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
39501 | wxUSE_XRC=no | |
39502 | else | |
39503 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
39504 | #define wxUSE_XRC 1 |
39505 | _ACEOF | |
39506 | ||
d2ebf0b7 VS |
39507 | USE_XRC=1 |
39508 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
39509 | fi | |
9a8f0513 | 39510 | fi |
07bea8f0 | 39511 | |
a848cd7e SC |
39512 | if test "$wxUSE_MENUS" = "yes"; then |
39513 | cat >>confdefs.h <<\_ACEOF | |
39514 | #define wxUSE_MENUS 1 | |
39515 | _ACEOF | |
39516 | ||
39517 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
39518 | fi | |
39519 | ||
39520 | if test "$wxUSE_METAFILE" = "yes"; then | |
39521 | cat >>confdefs.h <<\_ACEOF | |
39522 | #define wxUSE_METAFILE 1 | |
39523 | _ACEOF | |
39524 | ||
39525 | fi | |
39526 | ||
39527 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
39528 | cat >>confdefs.h <<\_ACEOF | |
39529 | #define wxUSE_MIMETYPE 1 | |
39530 | _ACEOF | |
39531 | ||
39532 | fi | |
39533 | ||
39534 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
39535 | cat >>confdefs.h <<\_ACEOF | |
39536 | #define wxUSE_MINIFRAME 1 | |
39537 | _ACEOF | |
39538 | ||
39539 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
39540 | fi | |
39541 | ||
39542 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
39543 | cat >>confdefs.h <<\_ACEOF | |
39544 | #define wxUSE_SYSTEM_OPTIONS 1 | |
39545 | _ACEOF | |
39546 | ||
39547 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 39548 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
39549 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
39550 | fi | |
39551 | fi | |
39552 | ||
39553 | ||
39554 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
39555 | cat >>confdefs.h <<\_ACEOF | |
39556 | #define wxUSE_VALIDATORS 1 | |
39557 | _ACEOF | |
39558 | ||
39559 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
39560 | fi | |
39561 | ||
39562 | if test "$wxUSE_PALETTE" = "yes" ; then | |
39563 | cat >>confdefs.h <<\_ACEOF | |
39564 | #define wxUSE_PALETTE 1 | |
39565 | _ACEOF | |
39566 | ||
39567 | fi | |
39568 | ||
39569 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
39570 | LIBS=" -lunicows $LIBS" | |
39571 | fi | |
39572 | ||
39573 | ||
39574 | if test "$wxUSE_IMAGE" = "yes" ; then | |
39575 | cat >>confdefs.h <<\_ACEOF | |
39576 | #define wxUSE_IMAGE 1 | |
39577 | _ACEOF | |
39578 | ||
39579 | ||
39580 | if test "$wxUSE_GIF" = "yes" ; then | |
39581 | cat >>confdefs.h <<\_ACEOF | |
39582 | #define wxUSE_GIF 1 | |
39583 | _ACEOF | |
39584 | ||
39585 | fi | |
39586 | ||
39587 | if test "$wxUSE_PCX" = "yes" ; then | |
39588 | cat >>confdefs.h <<\_ACEOF | |
39589 | #define wxUSE_PCX 1 | |
39590 | _ACEOF | |
39591 | ||
39592 | fi | |
39593 | ||
39594 | if test "$wxUSE_IFF" = "yes" ; then | |
39595 | cat >>confdefs.h <<\_ACEOF | |
39596 | #define wxUSE_IFF 1 | |
39597 | _ACEOF | |
39598 | ||
39599 | fi | |
39600 | ||
39601 | if test "$wxUSE_PNM" = "yes" ; then | |
39602 | cat >>confdefs.h <<\_ACEOF | |
39603 | #define wxUSE_PNM 1 | |
39604 | _ACEOF | |
39605 | ||
39606 | fi | |
39607 | ||
39608 | if test "$wxUSE_XPM" = "yes" ; then | |
39609 | cat >>confdefs.h <<\_ACEOF | |
39610 | #define wxUSE_XPM 1 | |
39611 | _ACEOF | |
39612 | ||
39613 | fi | |
39614 | ||
39615 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
39616 | cat >>confdefs.h <<\_ACEOF | |
39617 | #define wxUSE_ICO_CUR 1 | |
39618 | _ACEOF | |
39619 | ||
39620 | fi | |
39621 | fi | |
39622 | ||
39623 | ||
39624 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
39625 | cat >>confdefs.h <<\_ACEOF | |
39626 | #define wxUSE_CHOICEDLG 1 | |
39627 | _ACEOF | |
39628 | ||
39629 | fi | |
39630 | ||
39631 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
39632 | cat >>confdefs.h <<\_ACEOF | |
39633 | #define wxUSE_COLOURDLG 1 | |
39634 | _ACEOF | |
39635 | ||
39636 | fi | |
39637 | ||
39638 | if test "$wxUSE_FILEDLG" = "yes"; then | |
39639 | cat >>confdefs.h <<\_ACEOF | |
39640 | #define wxUSE_FILEDLG 1 | |
39641 | _ACEOF | |
39642 | ||
39643 | fi | |
39644 | ||
39645 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
39646 | cat >>confdefs.h <<\_ACEOF | |
39647 | #define wxUSE_FINDREPLDLG 1 | |
39648 | _ACEOF | |
39649 | ||
39650 | fi | |
39651 | ||
39652 | if test "$wxUSE_FONTDLG" = "yes"; then | |
39653 | cat >>confdefs.h <<\_ACEOF | |
39654 | #define wxUSE_FONTDLG 1 | |
39655 | _ACEOF | |
39656 | ||
39657 | fi | |
39658 | ||
39659 | if test "$wxUSE_DIRDLG" = "yes"; then | |
39660 | if test "$wxUSE_TREECTRL" != "yes"; then | |
39661 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
39662 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
39663 | else | |
39664 | cat >>confdefs.h <<\_ACEOF | |
39665 | #define wxUSE_DIRDLG 1 | |
39666 | _ACEOF | |
39667 | ||
39668 | fi | |
39669 | fi | |
39670 | ||
39671 | if test "$wxUSE_MSGDLG" = "yes"; then | |
39672 | cat >>confdefs.h <<\_ACEOF | |
39673 | #define wxUSE_MSGDLG 1 | |
39674 | _ACEOF | |
39675 | ||
39676 | fi | |
39677 | ||
39678 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
39679 | cat >>confdefs.h <<\_ACEOF | |
39680 | #define wxUSE_NUMBERDLG 1 | |
39681 | _ACEOF | |
39682 | ||
39683 | fi | |
39684 | ||
39685 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
39686 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39687 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
39688 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
39689 | else | |
39690 | cat >>confdefs.h <<\_ACEOF | |
39691 | #define wxUSE_PROGRESSDLG 1 | |
39692 | _ACEOF | |
39693 | ||
39694 | fi | |
39695 | fi | |
39696 | ||
39697 | if test "$wxUSE_SPLASH" = "yes"; then | |
39698 | cat >>confdefs.h <<\_ACEOF | |
39699 | #define wxUSE_SPLASH 1 | |
39700 | _ACEOF | |
39701 | ||
2057db16 | 39702 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
39703 | fi |
39704 | ||
39705 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
39706 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39707 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
39708 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
39709 | else | |
39710 | cat >>confdefs.h <<\_ACEOF | |
39711 | #define wxUSE_STARTUP_TIPS 1 | |
39712 | _ACEOF | |
39713 | ||
39714 | fi | |
39715 | fi | |
39716 | ||
39717 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
39718 | cat >>confdefs.h <<\_ACEOF | |
39719 | #define wxUSE_TEXTDLG 1 | |
39720 | _ACEOF | |
39721 | ||
39722 | fi | |
39723 | ||
39724 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
39725 | cat >>confdefs.h <<\_ACEOF | |
39726 | #define wxUSE_WIZARDDLG 1 | |
39727 | _ACEOF | |
39728 | ||
39729 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
39730 | fi | |
39731 | ||
39732 | ||
ce756cb0 RN |
39733 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
39734 | if test "$wxUSE_MSW" = 1; then | |
39735 | wxUSE_DIRECTSHOW="yes" | |
39736 | ||
39737 | for ac_header in dshow.h | |
39738 | do | |
39739 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
39740 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39741 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39742 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39744 | else | |
39745 | cat >conftest.$ac_ext <<_ACEOF | |
39746 | /* confdefs.h. */ | |
39747 | _ACEOF | |
39748 | cat confdefs.h >>conftest.$ac_ext | |
39749 | cat >>conftest.$ac_ext <<_ACEOF | |
39750 | /* end confdefs.h. */ | |
39751 | #include <windows.h> | |
39752 | ||
39753 | #include <$ac_header> | |
39754 | _ACEOF | |
39755 | rm -f conftest.$ac_objext | |
39756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39757 | (eval $ac_compile) 2>conftest.er1 | |
39758 | ac_status=$? | |
39759 | grep -v '^ *+' conftest.er1 >conftest.err | |
39760 | rm -f conftest.er1 | |
39761 | cat conftest.err >&5 | |
39762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39763 | (exit $ac_status); } && | |
9dd0f6c2 | 39764 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
39765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39766 | (eval $ac_try) 2>&5 | |
39767 | ac_status=$? | |
39768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39769 | (exit $ac_status); }; } && | |
39770 | { ac_try='test -s conftest.$ac_objext' | |
39771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39772 | (eval $ac_try) 2>&5 | |
39773 | ac_status=$? | |
39774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39775 | (exit $ac_status); }; }; then | |
39776 | eval "$as_ac_Header=yes" | |
39777 | else | |
39778 | echo "$as_me: failed program was:" >&5 | |
39779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39780 | ||
39781 | eval "$as_ac_Header=no" | |
39782 | fi | |
39783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39784 | fi | |
39785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39786 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39787 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39788 | cat >>confdefs.h <<_ACEOF | |
39789 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
39790 | _ACEOF | |
39791 | ||
39792 | else | |
39793 | ||
39794 | wxUSE_DIRECTSHOW="no" | |
39795 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
39796 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} | |
39797 | ||
39798 | fi | |
39799 | ||
39800 | done | |
39801 | ||
39802 | ||
39803 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
39804 | cat >>confdefs.h <<\_ACEOF | |
39805 | #define wxUSE_DIRECTSHOW 1 | |
39806 | _ACEOF | |
39807 | ||
39808 | LIBS="$LIBS -lstrmiids" | |
39809 | fi | |
39810 | fi | |
39811 | ||
39812 | if test "$wxUSE_GTK" = 1; then | |
39813 | wxUSE_GSTREAMER="yes" | |
39814 | ||
ce756cb0 | 39815 | |
dae87f93 | 39816 | succeeded=no |
ce756cb0 | 39817 | |
dae87f93 RN |
39818 | if test -z "$PKG_CONFIG"; then |
39819 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
39820 | set dummy pkg-config; ac_word=$2 | |
39821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39823 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
39824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39825 | else | |
39826 | case $PKG_CONFIG in | |
39827 | [\\/]* | ?:[\\/]*) | |
39828 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
39829 | ;; | |
39830 | *) | |
39831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39832 | for as_dir in $PATH | |
39833 | do | |
39834 | IFS=$as_save_IFS | |
39835 | test -z "$as_dir" && as_dir=. | |
39836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39837 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39838 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39840 | break 2 | |
39841 | fi | |
39842 | done | |
39843 | done | |
39844 | ||
39845 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
39846 | ;; | |
39847 | esac | |
39848 | fi | |
39849 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
39850 | ||
39851 | if test -n "$PKG_CONFIG"; then | |
39852 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
39853 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
39854 | else | |
39855 | echo "$as_me:$LINENO: result: no" >&5 | |
39856 | echo "${ECHO_T}no" >&6 | |
39857 | fi | |
39858 | ||
39859 | fi | |
39860 | ||
39861 | if test "$PKG_CONFIG" = "no" ; then | |
39862 | echo "*** The pkg-config script could not be found. Make sure it is" | |
39863 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
39864 | echo "*** to the full path to pkg-config." | |
39865 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
39866 | else | |
39867 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
39868 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
39869 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
39870 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
39871 | ||
39872 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
39873 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 39874 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 39875 | succeeded=yes |
ce756cb0 | 39876 | |
dae87f93 RN |
39877 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
39878 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
39879 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
39880 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
39881 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
39882 | ||
39883 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
39884 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
39885 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
39886 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
39887 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
39888 | else | |
39889 | GSTREAMER_CFLAGS="" | |
39890 | GSTREAMER_LIBS="" | |
39891 | ## If we have a custom action on failure, don't print errors, but | |
39892 | ## do set a variable so people can do so. | |
39893 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 39894 | |
dae87f93 RN |
39895 | fi |
39896 | ||
39897 | ||
39898 | ||
39899 | else | |
39900 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
39901 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
39902 | fi | |
39903 | fi | |
39904 | ||
39905 | if test $succeeded = yes; then | |
39906 | ||
39907 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
39908 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 39909 | |
ce756cb0 | 39910 | else |
dae87f93 RN |
39911 | |
39912 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
39913 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
39914 | wxUSE_GSTREAMER="no" | |
39915 | ||
39916 | fi | |
39917 | ||
39918 | ||
39919 | ||
39920 | ||
39921 | ||
39922 | if test "x$GST_INSPECT" == "x"; then | |
39923 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
39924 | set dummy gst-inspect; ac_word=$2 | |
39925 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39926 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39927 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
39928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39929 | else | |
39930 | if test -n "$GST_INSPECT"; then | |
39931 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
39932 | else | |
39933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39934 | for as_dir in $PATH | |
39935 | do | |
39936 | IFS=$as_save_IFS | |
39937 | test -z "$as_dir" && as_dir=. | |
39938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39939 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39940 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
39941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39942 | break 2 | |
ce756cb0 | 39943 | fi |
dae87f93 RN |
39944 | done |
39945 | done | |
39946 | ||
39947 | fi | |
39948 | fi | |
39949 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
39950 | if test -n "$GST_INSPECT"; then | |
39951 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
39952 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
39953 | else | |
39954 | echo "$as_me:$LINENO: result: no" >&5 | |
39955 | echo "${ECHO_T}no" >&6 | |
39956 | fi | |
39957 | ||
39958 | fi | |
39959 | ||
39960 | if test "x$GST_INSPECT" != "x"; then | |
39961 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
39962 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
39963 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
39964 | echo "$as_me:$LINENO: result: found." >&5 | |
39965 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 39966 | |
ce756cb0 | 39967 | else |
dae87f93 RN |
39968 | echo "$as_me:$LINENO: result: not found." >&5 |
39969 | echo "${ECHO_T}not found." >&6 | |
39970 | ||
39971 | wxUSE_GSTREAMER="no" | |
39972 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
39973 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
39974 | ||
39975 | fi | |
39976 | fi | |
39977 | ||
39978 | ||
39979 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
39980 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
39981 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
39982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39983 | else | |
39984 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
39985 | /* confdefs.h. */ |
39986 | _ACEOF | |
39987 | cat confdefs.h >>conftest.$ac_ext | |
39988 | cat >>conftest.$ac_ext <<_ACEOF | |
39989 | /* end confdefs.h. */ | |
dae87f93 | 39990 | #include <gst/gst.h> |
ce756cb0 | 39991 | |
dae87f93 | 39992 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
39993 | _ACEOF |
39994 | rm -f conftest.$ac_objext | |
39995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39996 | (eval $ac_compile) 2>conftest.er1 | |
39997 | ac_status=$? | |
39998 | grep -v '^ *+' conftest.er1 >conftest.err | |
39999 | rm -f conftest.er1 | |
40000 | cat conftest.err >&5 | |
40001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40002 | (exit $ac_status); } && | |
9dd0f6c2 | 40003 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
40004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40005 | (eval $ac_try) 2>&5 | |
40006 | ac_status=$? | |
40007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40008 | (exit $ac_status); }; } && | |
40009 | { ac_try='test -s conftest.$ac_objext' | |
40010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40011 | (eval $ac_try) 2>&5 | |
40012 | ac_status=$? | |
40013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40014 | (exit $ac_status); }; }; then | |
dae87f93 | 40015 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
40016 | else |
40017 | echo "$as_me: failed program was:" >&5 | |
40018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40019 | ||
dae87f93 | 40020 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
40021 | fi |
40022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
40023 | fi |
40024 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
40025 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
40026 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
40027 | : | |
40028 | else | |
ce756cb0 | 40029 | |
dae87f93 RN |
40030 | wxUSE_GSTREAMER="no" |
40031 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
40032 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 40033 | |
dae87f93 | 40034 | fi |
ce756cb0 | 40035 | |
dae87f93 RN |
40036 | |
40037 | ||
40038 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
40039 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
40040 | ||
40041 | ac_find_libraries= | |
40042 | for ac_dir in $SEARCH_LIB /usr/lib; | |
40043 | do | |
40044 | for ac_extension in a so sl dylib; do | |
40045 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then | |
40046 | ac_find_libraries=$ac_dir | |
40047 | break 2 | |
40048 | fi | |
40049 | done | |
40050 | done | |
40051 | ||
ce756cb0 | 40052 | |
dae87f93 RN |
40053 | if test "$ac_find_libraries" = "" ; then |
40054 | echo "$as_me:$LINENO: result: no" >&5 | |
40055 | echo "${ECHO_T}no" >&6 | |
40056 | wxUSE_GSTREAMER="no" | |
40057 | else | |
40058 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 40059 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 40060 | fi |
ce756cb0 | 40061 | |
dae87f93 RN |
40062 | if test "$wxUSE_GSTREAMER" = "yes"; then |
40063 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
40064 | #define wxUSE_GSTREAMER 1 |
40065 | _ACEOF | |
40066 | ||
dae87f93 RN |
40067 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
40068 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
40069 | fi |
40070 | fi | |
40071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
40072 | cat >>confdefs.h <<\_ACEOF | |
40073 | #define wxUSE_MEDIACTRL 1 | |
40074 | _ACEOF | |
40075 | ||
40076 | fi | |
40077 | ||
40078 | ||
a848cd7e SC |
40079 | if test "$cross_compiling" = "yes"; then |
40080 | OSINFO="\"$host\"" | |
40081 | else | |
40082 | OSINFO=`uname -s -r -m` | |
40083 | OSINFO="\"$OSINFO\"" | |
40084 | fi | |
40085 | ||
40086 | cat >>confdefs.h <<_ACEOF | |
40087 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
40088 | _ACEOF | |
40089 | ||
40090 | ||
40091 | ||
40092 | if test "x$prefix" != "xNONE"; then | |
40093 | wxPREFIX=$prefix | |
40094 | else | |
40095 | wxPREFIX=$ac_default_prefix | |
40096 | fi | |
40097 | ||
40098 | cat >>confdefs.h <<_ACEOF | |
40099 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
40100 | _ACEOF | |
40101 | ||
40102 | ||
a848cd7e SC |
40103 | |
40104 | ||
40105 | CORE_BASE_LIBS="net base" | |
40106 | CORE_GUI_LIBS="adv core" | |
40107 | ||
40108 | if test "$wxUSE_XML" = "yes" ; then | |
40109 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
40110 | fi | |
40111 | if test "$wxUSE_ODBC" != "no" ; then | |
40112 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
40113 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
40114 | fi | |
40115 | if test "$wxUSE_HTML" = "yes" ; then | |
40116 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
40117 | fi | |
61639efb VZ |
40118 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
40119 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
40120 | fi | |
9a8f0513 VS |
40121 | if test "$wxUSE_XRC" = "yes" ; then |
40122 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
40123 | fi | |
a848cd7e SC |
40124 | |
40125 | if test "$wxUSE_GUI" != "yes"; then | |
40126 | CORE_GUI_LIBS="" | |
40127 | fi | |
40128 | ||
40129 | ||
40130 | ||
40131 | ||
40132 | ||
40133 | ||
40134 | ||
40135 | ||
40136 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 40137 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
40138 | if test "$USE_DARWIN" = 1; then |
40139 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
40140 | else | |
40141 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
40142 | fi | |
07bea8f0 | 40143 | fi |
5dcf30a0 | 40144 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
40145 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
40146 | else | |
40147 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 40148 | fi |
59746b65 MW |
40149 | elif test "$USE_DARWIN" = 1; then |
40150 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System" | |
a848cd7e SC |
40151 | fi |
40152 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 40153 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
40154 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
40155 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
40156 | fi | |
a848cd7e SC |
40157 | fi |
40158 | ||
40159 | ||
40160 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
40161 | ||
40162 | have_cos=0 | |
40163 | have_floor=0 | |
40164 | ||
40165 | for ac_func in cos | |
40166 | do | |
40167 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40168 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40169 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40170 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40172 | else | |
40173 | cat >conftest.$ac_ext <<_ACEOF | |
40174 | /* confdefs.h. */ | |
40175 | _ACEOF | |
40176 | cat confdefs.h >>conftest.$ac_ext | |
40177 | cat >>conftest.$ac_ext <<_ACEOF | |
40178 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40179 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40180 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40181 | #define $ac_func innocuous_$ac_func | |
40182 | ||
a848cd7e SC |
40183 | /* System header to define __stub macros and hopefully few prototypes, |
40184 | which can conflict with char $ac_func (); below. | |
40185 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40186 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40187 | |
a848cd7e SC |
40188 | #ifdef __STDC__ |
40189 | # include <limits.h> | |
40190 | #else | |
40191 | # include <assert.h> | |
40192 | #endif | |
ac1cb8d3 VS |
40193 | |
40194 | #undef $ac_func | |
40195 | ||
a848cd7e SC |
40196 | /* Override any gcc2 internal prototype to avoid an error. */ |
40197 | #ifdef __cplusplus | |
40198 | extern "C" | |
40199 | { | |
40200 | #endif | |
40201 | /* We use char because int might match the return type of a gcc2 | |
40202 | builtin and then its argument prototype would still apply. */ | |
40203 | char $ac_func (); | |
40204 | /* The GNU C library defines this for functions which it implements | |
40205 | to always fail with ENOSYS. Some functions are actually named | |
40206 | something starting with __ and the normal name is an alias. */ | |
40207 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40208 | choke me | |
40209 | #else | |
40210 | char (*f) () = $ac_func; | |
40211 | #endif | |
40212 | #ifdef __cplusplus | |
40213 | } | |
40214 | #endif | |
40215 | ||
40216 | int | |
40217 | main () | |
40218 | { | |
40219 | return f != $ac_func; | |
40220 | ; | |
40221 | return 0; | |
40222 | } | |
40223 | _ACEOF | |
40224 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40226 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40227 | ac_status=$? |
ac1cb8d3 VS |
40228 | grep -v '^ *+' conftest.er1 >conftest.err |
40229 | rm -f conftest.er1 | |
40230 | cat conftest.err >&5 | |
a848cd7e SC |
40231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40232 | (exit $ac_status); } && | |
9dd0f6c2 | 40233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40235 | (eval $ac_try) 2>&5 | |
40236 | ac_status=$? | |
40237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40238 | (exit $ac_status); }; } && | |
40239 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40241 | (eval $ac_try) 2>&5 | |
40242 | ac_status=$? | |
40243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40244 | (exit $ac_status); }; }; then | |
40245 | eval "$as_ac_var=yes" | |
40246 | else | |
40247 | echo "$as_me: failed program was:" >&5 | |
40248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40249 | ||
40250 | eval "$as_ac_var=no" | |
40251 | fi | |
ac1cb8d3 VS |
40252 | rm -f conftest.err conftest.$ac_objext \ |
40253 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40254 | fi |
40255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40256 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40257 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40258 | cat >>confdefs.h <<_ACEOF | |
40259 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40260 | _ACEOF | |
40261 | have_cos=1 | |
40262 | fi | |
40263 | done | |
40264 | ||
40265 | ||
40266 | for ac_func in floor | |
40267 | do | |
40268 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40269 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40270 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40271 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40273 | else | |
40274 | cat >conftest.$ac_ext <<_ACEOF | |
40275 | /* confdefs.h. */ | |
40276 | _ACEOF | |
40277 | cat confdefs.h >>conftest.$ac_ext | |
40278 | cat >>conftest.$ac_ext <<_ACEOF | |
40279 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40280 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40281 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40282 | #define $ac_func innocuous_$ac_func | |
40283 | ||
a848cd7e SC |
40284 | /* System header to define __stub macros and hopefully few prototypes, |
40285 | which can conflict with char $ac_func (); below. | |
40286 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40287 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40288 | |
a848cd7e SC |
40289 | #ifdef __STDC__ |
40290 | # include <limits.h> | |
40291 | #else | |
40292 | # include <assert.h> | |
40293 | #endif | |
ac1cb8d3 VS |
40294 | |
40295 | #undef $ac_func | |
40296 | ||
a848cd7e SC |
40297 | /* Override any gcc2 internal prototype to avoid an error. */ |
40298 | #ifdef __cplusplus | |
40299 | extern "C" | |
40300 | { | |
40301 | #endif | |
40302 | /* We use char because int might match the return type of a gcc2 | |
40303 | builtin and then its argument prototype would still apply. */ | |
40304 | char $ac_func (); | |
40305 | /* The GNU C library defines this for functions which it implements | |
40306 | to always fail with ENOSYS. Some functions are actually named | |
40307 | something starting with __ and the normal name is an alias. */ | |
40308 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40309 | choke me | |
40310 | #else | |
40311 | char (*f) () = $ac_func; | |
40312 | #endif | |
40313 | #ifdef __cplusplus | |
40314 | } | |
40315 | #endif | |
40316 | ||
40317 | int | |
40318 | main () | |
40319 | { | |
40320 | return f != $ac_func; | |
40321 | ; | |
40322 | return 0; | |
40323 | } | |
40324 | _ACEOF | |
40325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40327 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40328 | ac_status=$? |
ac1cb8d3 VS |
40329 | grep -v '^ *+' conftest.er1 >conftest.err |
40330 | rm -f conftest.er1 | |
40331 | cat conftest.err >&5 | |
a848cd7e SC |
40332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40333 | (exit $ac_status); } && | |
9dd0f6c2 | 40334 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40336 | (eval $ac_try) 2>&5 | |
40337 | ac_status=$? | |
40338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40339 | (exit $ac_status); }; } && | |
40340 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40342 | (eval $ac_try) 2>&5 | |
40343 | ac_status=$? | |
40344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40345 | (exit $ac_status); }; }; then | |
40346 | eval "$as_ac_var=yes" | |
40347 | else | |
40348 | echo "$as_me: failed program was:" >&5 | |
40349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40350 | ||
40351 | eval "$as_ac_var=no" | |
40352 | fi | |
ac1cb8d3 VS |
40353 | rm -f conftest.err conftest.$ac_objext \ |
40354 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40355 | fi |
40356 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40357 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40358 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40359 | cat >>confdefs.h <<_ACEOF | |
40360 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40361 | _ACEOF | |
40362 | have_floor=1 | |
40363 | fi | |
40364 | done | |
40365 | ||
40366 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
40367 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
40368 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
40369 | echo "$as_me:$LINENO: result: yes" >&5 | |
40370 | echo "${ECHO_T}yes" >&6 | |
40371 | else | |
40372 | echo "$as_me:$LINENO: result: no" >&5 | |
40373 | echo "${ECHO_T}no" >&6 | |
40374 | LIBS="$LIBS -lm" | |
40375 | # use different functions to avoid configure caching | |
40376 | have_sin=0 | |
40377 | have_ceil=0 | |
40378 | ||
40379 | for ac_func in sin | |
40380 | do | |
40381 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40382 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40383 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40384 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40386 | else | |
40387 | cat >conftest.$ac_ext <<_ACEOF | |
40388 | /* confdefs.h. */ | |
40389 | _ACEOF | |
40390 | cat confdefs.h >>conftest.$ac_ext | |
40391 | cat >>conftest.$ac_ext <<_ACEOF | |
40392 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40393 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40394 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40395 | #define $ac_func innocuous_$ac_func | |
40396 | ||
a848cd7e SC |
40397 | /* System header to define __stub macros and hopefully few prototypes, |
40398 | which can conflict with char $ac_func (); below. | |
40399 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40400 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40401 | |
a848cd7e SC |
40402 | #ifdef __STDC__ |
40403 | # include <limits.h> | |
40404 | #else | |
40405 | # include <assert.h> | |
40406 | #endif | |
ac1cb8d3 VS |
40407 | |
40408 | #undef $ac_func | |
40409 | ||
a848cd7e SC |
40410 | /* Override any gcc2 internal prototype to avoid an error. */ |
40411 | #ifdef __cplusplus | |
40412 | extern "C" | |
40413 | { | |
40414 | #endif | |
40415 | /* We use char because int might match the return type of a gcc2 | |
40416 | builtin and then its argument prototype would still apply. */ | |
40417 | char $ac_func (); | |
40418 | /* The GNU C library defines this for functions which it implements | |
40419 | to always fail with ENOSYS. Some functions are actually named | |
40420 | something starting with __ and the normal name is an alias. */ | |
40421 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40422 | choke me | |
40423 | #else | |
40424 | char (*f) () = $ac_func; | |
40425 | #endif | |
40426 | #ifdef __cplusplus | |
40427 | } | |
40428 | #endif | |
40429 | ||
40430 | int | |
40431 | main () | |
40432 | { | |
40433 | return f != $ac_func; | |
40434 | ; | |
40435 | return 0; | |
40436 | } | |
40437 | _ACEOF | |
40438 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40440 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40441 | ac_status=$? |
ac1cb8d3 VS |
40442 | grep -v '^ *+' conftest.er1 >conftest.err |
40443 | rm -f conftest.er1 | |
40444 | cat conftest.err >&5 | |
a848cd7e SC |
40445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40446 | (exit $ac_status); } && | |
9dd0f6c2 | 40447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40449 | (eval $ac_try) 2>&5 | |
40450 | ac_status=$? | |
40451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40452 | (exit $ac_status); }; } && | |
40453 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40455 | (eval $ac_try) 2>&5 | |
40456 | ac_status=$? | |
40457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40458 | (exit $ac_status); }; }; then | |
40459 | eval "$as_ac_var=yes" | |
40460 | else | |
40461 | echo "$as_me: failed program was:" >&5 | |
40462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40463 | ||
40464 | eval "$as_ac_var=no" | |
40465 | fi | |
ac1cb8d3 VS |
40466 | rm -f conftest.err conftest.$ac_objext \ |
40467 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40468 | fi |
40469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40470 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40471 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40472 | cat >>confdefs.h <<_ACEOF | |
40473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40474 | _ACEOF | |
40475 | have_sin=1 | |
40476 | fi | |
40477 | done | |
40478 | ||
40479 | ||
40480 | for ac_func in ceil | |
40481 | do | |
40482 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40483 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40484 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40485 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40487 | else | |
40488 | cat >conftest.$ac_ext <<_ACEOF | |
40489 | /* confdefs.h. */ | |
40490 | _ACEOF | |
40491 | cat confdefs.h >>conftest.$ac_ext | |
40492 | cat >>conftest.$ac_ext <<_ACEOF | |
40493 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40494 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40495 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40496 | #define $ac_func innocuous_$ac_func | |
40497 | ||
a848cd7e SC |
40498 | /* System header to define __stub macros and hopefully few prototypes, |
40499 | which can conflict with char $ac_func (); below. | |
40500 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40501 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40502 | |
a848cd7e SC |
40503 | #ifdef __STDC__ |
40504 | # include <limits.h> | |
40505 | #else | |
40506 | # include <assert.h> | |
40507 | #endif | |
ac1cb8d3 VS |
40508 | |
40509 | #undef $ac_func | |
40510 | ||
a848cd7e SC |
40511 | /* Override any gcc2 internal prototype to avoid an error. */ |
40512 | #ifdef __cplusplus | |
40513 | extern "C" | |
40514 | { | |
40515 | #endif | |
40516 | /* We use char because int might match the return type of a gcc2 | |
40517 | builtin and then its argument prototype would still apply. */ | |
40518 | char $ac_func (); | |
40519 | /* The GNU C library defines this for functions which it implements | |
40520 | to always fail with ENOSYS. Some functions are actually named | |
40521 | something starting with __ and the normal name is an alias. */ | |
40522 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40523 | choke me | |
40524 | #else | |
40525 | char (*f) () = $ac_func; | |
40526 | #endif | |
40527 | #ifdef __cplusplus | |
40528 | } | |
40529 | #endif | |
40530 | ||
40531 | int | |
40532 | main () | |
40533 | { | |
40534 | return f != $ac_func; | |
40535 | ; | |
40536 | return 0; | |
40537 | } | |
40538 | _ACEOF | |
40539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40541 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40542 | ac_status=$? |
ac1cb8d3 VS |
40543 | grep -v '^ *+' conftest.er1 >conftest.err |
40544 | rm -f conftest.er1 | |
40545 | cat conftest.err >&5 | |
a848cd7e SC |
40546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40547 | (exit $ac_status); } && | |
9dd0f6c2 | 40548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40550 | (eval $ac_try) 2>&5 | |
40551 | ac_status=$? | |
40552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40553 | (exit $ac_status); }; } && | |
40554 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40556 | (eval $ac_try) 2>&5 | |
40557 | ac_status=$? | |
40558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40559 | (exit $ac_status); }; }; then | |
40560 | eval "$as_ac_var=yes" | |
40561 | else | |
40562 | echo "$as_me: failed program was:" >&5 | |
40563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40564 | ||
40565 | eval "$as_ac_var=no" | |
40566 | fi | |
ac1cb8d3 VS |
40567 | rm -f conftest.err conftest.$ac_objext \ |
40568 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40569 | fi |
40570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40571 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40572 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40573 | cat >>confdefs.h <<_ACEOF | |
40574 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40575 | _ACEOF | |
40576 | have_ceil=1 | |
40577 | fi | |
40578 | done | |
40579 | ||
40580 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
40581 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
40582 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
40583 | echo "$as_me:$LINENO: result: yes" >&5 | |
40584 | echo "${ECHO_T}yes" >&6 | |
40585 | else | |
40586 | echo "$as_me:$LINENO: result: no" >&5 | |
40587 | echo "${ECHO_T}no" >&6 | |
40588 | # not sure we should warn the user, crash, etc. | |
40589 | fi | |
40590 | fi | |
40591 | ||
40592 | if test "$wxUSE_GUI" = "yes"; then | |
40593 | ||
40594 | ||
8bce5cda MW |
40595 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
40596 | dynamic erase event exec font image minimal mobile \ | |
40597 | mobile/wxedit mobile/styles propsize render \ | |
40598 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
40599 | |
40600 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
40601 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
40602 | fi | |
0b78747f | 40603 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
40604 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
40605 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
40606 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
40607 | fi | |
40608 | fi | |
40609 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
40610 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 40611 | fi |
a848cd7e SC |
40612 | else |
40613 | SAMPLES_SUBDIRS="console" | |
40614 | fi | |
40615 | ||
40616 | ||
ceec2216 | 40617 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
40618 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
40619 | ||
40620 | if test "$GXX" = yes ; then | |
5294a27e VZ |
40621 | CWARNINGS="-Wall" |
40622 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
40623 | fi |
40624 | ||
40625 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
40626 | ||
0c3c69fc | 40627 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 40628 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 40629 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 40630 | |
95986553 DE |
40631 | if test "x$MWCC" = "xyes"; then |
40632 | ||
40633 | CC="$CC -cwd source -I-" | |
40634 | CXX="$CXX -cwd source -I-" | |
40635 | fi | |
40636 | ||
a848cd7e | 40637 | |
0c3c69fc | 40638 | LIBS=`echo $LIBS` |
a848cd7e SC |
40639 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
40640 | EXTRALIBS_XML="$EXPAT_LINK" | |
40641 | EXTRALIBS_HTML="$MSPACK_LINK" | |
40642 | EXTRALIBS_ODBC="$ODBC_LINK" | |
40643 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 40644 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
40645 | fi |
40646 | if test "$wxUSE_OPENGL" = "yes"; then | |
40647 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
40648 | fi | |
40649 | ||
40650 | LDFLAGS="$LDFLAGS $PROFILE" | |
40651 | ||
40652 | if test "$wxUSE_GTK" = 1; then | |
40653 | WXCONFIG_INCLUDE= | |
40654 | else | |
40655 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
40656 | fi | |
40657 | ||
40658 | WXCONFIG_EXTRALIBS="$LIBS" | |
40659 | ||
40660 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 40661 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
40662 | fi |
40663 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 40664 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
40665 | fi |
40666 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 40667 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
40668 | fi |
40669 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 40670 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
40671 | fi |
40672 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 40673 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
40674 | fi |
40675 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 40676 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
40677 | fi |
40678 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 40679 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
40680 | fi |
40681 | ||
40682 | for i in $wxconfig_3rdparty ; do | |
74802184 | 40683 | WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS" |
a848cd7e SC |
40684 | done |
40685 | ||
40686 | ||
40687 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
40688 | WXUNIV=1 | |
40689 | else | |
40690 | WXUNIV=0 | |
40691 | fi | |
40692 | ||
40693 | ||
40694 | ||
40695 | ||
40696 | ||
40697 | ||
40698 | ||
40699 | ||
40700 | ||
40701 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
40702 | MONOLITHIC=1 | |
40703 | else | |
40704 | MONOLITHIC=0 | |
40705 | fi | |
40706 | ||
40707 | if test $wxUSE_PLUGINS = "yes" ; then | |
40708 | USE_PLUGINS=1 | |
40709 | else | |
40710 | USE_PLUGINS=0 | |
40711 | fi | |
40712 | ||
40713 | if test $wxUSE_ODBC != "no" ; then | |
40714 | USE_ODBC=1 | |
40715 | else | |
40716 | USE_ODBC=0 | |
40717 | fi | |
40718 | ||
16358932 VZ |
40719 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
40720 | USE_QA=1 | |
40721 | else | |
40722 | USE_QA=0 | |
40723 | fi | |
40724 | ||
a848cd7e SC |
40725 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
40726 | OFFICIAL_BUILD=1 | |
40727 | else | |
40728 | OFFICIAL_BUILD=0 | |
40729 | fi | |
40730 | ||
40731 | ||
40732 | ||
40733 | ||
40734 | ||
40735 | ||
40736 | ||
40737 | ||
40738 | ||
40739 | ||
40740 | ||
40741 | ||
40742 | ||
40743 | ||
40744 | ||
40745 | ||
40746 | ||
40747 | ||
40748 | ||
ceec2216 | 40749 | |
d1c38808 | 40750 | |
a848cd7e SC |
40751 | |
40752 | ||
40753 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
40754 | ||
40755 | ||
40756 | ||
40757 | ||
40758 | ||
40759 | ||
40760 | ||
40761 | ||
4d4ff94c VZ |
40762 | case "$TOOLKIT" in |
40763 | GTK) | |
40764 | TOOLKIT_USER="GTK+" | |
40765 | if test "$WXGTK20" = 1; then | |
40766 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
40767 | fi | |
9a8f0513 | 40768 | ;; |
4d4ff94c VZ |
40769 | |
40770 | *) | |
40771 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 40772 | ;; |
4d4ff94c | 40773 | esac |
a848cd7e | 40774 | |
9a8f0513 | 40775 | |
1e9e8aba DE |
40776 | |
40777 | ||
a848cd7e SC |
40778 | if test "x$BAKEFILE_HOST" = "x"; then |
40779 | BAKEFILE_HOST="${host}" | |
40780 | fi | |
40781 | ||
40782 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
40783 | ||
40784 | if test -n "$ac_tool_prefix"; then | |
40785 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
40786 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
40787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40789 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
40790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40791 | else | |
40792 | if test -n "$RANLIB"; then | |
40793 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
40794 | else | |
40795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40796 | for as_dir in $PATH | |
40797 | do | |
40798 | IFS=$as_save_IFS | |
40799 | test -z "$as_dir" && as_dir=. | |
40800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40802 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
40803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40804 | break 2 | |
40805 | fi | |
40806 | done | |
40807 | done | |
40808 | ||
40809 | fi | |
40810 | fi | |
40811 | RANLIB=$ac_cv_prog_RANLIB | |
40812 | if test -n "$RANLIB"; then | |
40813 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
40814 | echo "${ECHO_T}$RANLIB" >&6 | |
40815 | else | |
40816 | echo "$as_me:$LINENO: result: no" >&5 | |
40817 | echo "${ECHO_T}no" >&6 | |
40818 | fi | |
40819 | ||
40820 | fi | |
40821 | if test -z "$ac_cv_prog_RANLIB"; then | |
40822 | ac_ct_RANLIB=$RANLIB | |
40823 | # Extract the first word of "ranlib", so it can be a program name with args. | |
40824 | set dummy ranlib; ac_word=$2 | |
40825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40827 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
40828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40829 | else | |
40830 | if test -n "$ac_ct_RANLIB"; then | |
40831 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
40832 | else | |
40833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40834 | for as_dir in $PATH | |
40835 | do | |
40836 | IFS=$as_save_IFS | |
40837 | test -z "$as_dir" && as_dir=. | |
40838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40839 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40840 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
40841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40842 | break 2 | |
40843 | fi | |
40844 | done | |
40845 | done | |
40846 | ||
40847 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
40848 | fi | |
40849 | fi | |
40850 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
40851 | if test -n "$ac_ct_RANLIB"; then | |
40852 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
40853 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
40854 | else | |
40855 | echo "$as_me:$LINENO: result: no" >&5 | |
40856 | echo "${ECHO_T}no" >&6 | |
40857 | fi | |
40858 | ||
40859 | RANLIB=$ac_ct_RANLIB | |
40860 | else | |
40861 | RANLIB="$ac_cv_prog_RANLIB" | |
40862 | fi | |
40863 | ||
40864 | # Find a good install program. We prefer a C program (faster), | |
40865 | # so one script is as good as another. But avoid the broken or | |
40866 | # incompatible versions: | |
40867 | # SysV /etc/install, /usr/sbin/install | |
40868 | # SunOS /usr/etc/install | |
40869 | # IRIX /sbin/install | |
40870 | # AIX /bin/install | |
40871 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
40872 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
40873 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
40874 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 40875 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
40876 | # ./install, which can be erroneously created by make from ./install.sh. |
40877 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
40878 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
40879 | if test -z "$INSTALL"; then | |
40880 | if test "${ac_cv_path_install+set}" = set; then | |
40881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40882 | else | |
40883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40884 | for as_dir in $PATH | |
40885 | do | |
40886 | IFS=$as_save_IFS | |
40887 | test -z "$as_dir" && as_dir=. | |
40888 | # Account for people who put trailing slashes in PATH elements. | |
40889 | case $as_dir/ in | |
40890 | ./ | .// | /cC/* | \ | |
40891 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 40892 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
40893 | /usr/ucb/* ) ;; |
40894 | *) | |
40895 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
40896 | # Don't use installbsd from OSF since it installs stuff as root | |
40897 | # by default. | |
40898 | for ac_prog in ginstall scoinst install; do | |
40899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
40900 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
40901 | if test $ac_prog = install && | |
40902 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40903 | # AIX install. It has an incompatible calling convention. | |
40904 | : | |
40905 | elif test $ac_prog = install && | |
40906 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40907 | # program-specific install script used by HP pwplus--don't use. | |
40908 | : | |
40909 | else | |
40910 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
40911 | break 3 | |
40912 | fi | |
40913 | fi | |
a848cd7e SC |
40914 | done |
40915 | done | |
40916 | ;; | |
40917 | esac | |
40918 | done | |
40919 | ||
40920 | ||
40921 | fi | |
40922 | if test "${ac_cv_path_install+set}" = set; then | |
40923 | INSTALL=$ac_cv_path_install | |
40924 | else | |
40925 | # As a last resort, use the slow shell script. We don't cache a | |
40926 | # path for INSTALL within a source directory, because that will | |
40927 | # break other packages using the cache if that directory is | |
40928 | # removed, or if the path is relative. | |
40929 | INSTALL=$ac_install_sh | |
40930 | fi | |
40931 | fi | |
40932 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
40933 | echo "${ECHO_T}$INSTALL" >&6 | |
40934 | ||
40935 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
40936 | # It thinks the first close brace ends the variable substitution. | |
40937 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
40938 | ||
40939 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
40940 | ||
40941 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
40942 | ||
40943 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
40944 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
40945 | LN_S=$as_ln_s | |
40946 | if test "$LN_S" = "ln -s"; then | |
40947 | echo "$as_me:$LINENO: result: yes" >&5 | |
40948 | echo "${ECHO_T}yes" >&6 | |
40949 | else | |
40950 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
40951 | echo "${ECHO_T}no, using $LN_S" >&6 | |
40952 | fi | |
40953 | ||
40954 | ||
40955 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
40956 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 40957 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
40958 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
40959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40960 | else | |
40961 | cat >conftest.make <<\_ACEOF | |
40962 | all: | |
40963 | @echo 'ac_maketemp="$(MAKE)"' | |
40964 | _ACEOF | |
40965 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
40966 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
40967 | if test -n "$ac_maketemp"; then | |
40968 | eval ac_cv_prog_make_${ac_make}_set=yes | |
40969 | else | |
40970 | eval ac_cv_prog_make_${ac_make}_set=no | |
40971 | fi | |
40972 | rm -f conftest.make | |
40973 | fi | |
40974 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
40975 | echo "$as_me:$LINENO: result: yes" >&5 | |
40976 | echo "${ECHO_T}yes" >&6 | |
40977 | SET_MAKE= | |
40978 | else | |
40979 | echo "$as_me:$LINENO: result: no" >&5 | |
40980 | echo "${ECHO_T}no" >&6 | |
40981 | SET_MAKE="MAKE=${MAKE-make}" | |
40982 | fi | |
40983 | ||
40984 | ||
40985 | ||
40986 | if test -n "$ac_tool_prefix"; then | |
40987 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
40988 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
40989 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40990 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40991 | if test "${ac_cv_prog_AR+set}" = set; then | |
40992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40993 | else | |
40994 | if test -n "$AR"; then | |
40995 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
40996 | else | |
40997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40998 | for as_dir in $PATH | |
40999 | do | |
41000 | IFS=$as_save_IFS | |
41001 | test -z "$as_dir" && as_dir=. | |
41002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41003 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41004 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
41005 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41006 | break 2 | |
41007 | fi | |
41008 | done | |
41009 | done | |
41010 | ||
41011 | fi | |
41012 | fi | |
41013 | AR=$ac_cv_prog_AR | |
41014 | if test -n "$AR"; then | |
41015 | echo "$as_me:$LINENO: result: $AR" >&5 | |
41016 | echo "${ECHO_T}$AR" >&6 | |
41017 | else | |
41018 | echo "$as_me:$LINENO: result: no" >&5 | |
41019 | echo "${ECHO_T}no" >&6 | |
41020 | fi | |
41021 | ||
41022 | fi | |
41023 | if test -z "$ac_cv_prog_AR"; then | |
41024 | ac_ct_AR=$AR | |
41025 | # Extract the first word of "ar", so it can be a program name with args. | |
41026 | set dummy ar; ac_word=$2 | |
41027 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41029 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
41030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41031 | else | |
41032 | if test -n "$ac_ct_AR"; then | |
41033 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
41034 | else | |
41035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41036 | for as_dir in $PATH | |
41037 | do | |
41038 | IFS=$as_save_IFS | |
41039 | test -z "$as_dir" && as_dir=. | |
41040 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41041 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41042 | ac_cv_prog_ac_ct_AR="ar" | |
41043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41044 | break 2 | |
41045 | fi | |
41046 | done | |
41047 | done | |
41048 | ||
41049 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
41050 | fi | |
41051 | fi | |
41052 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
41053 | if test -n "$ac_ct_AR"; then | |
41054 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
41055 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
41056 | else | |
41057 | echo "$as_me:$LINENO: result: no" >&5 | |
41058 | echo "${ECHO_T}no" >&6 | |
41059 | fi | |
41060 | ||
41061 | AR=$ac_ct_AR | |
41062 | else | |
41063 | AR="$ac_cv_prog_AR" | |
41064 | fi | |
41065 | ||
41066 | if test -n "$ac_tool_prefix"; then | |
41067 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
41068 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
41069 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41071 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
41072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41073 | else | |
41074 | if test -n "$STRIP"; then | |
41075 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
41076 | else | |
41077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41078 | for as_dir in $PATH | |
41079 | do | |
41080 | IFS=$as_save_IFS | |
41081 | test -z "$as_dir" && as_dir=. | |
41082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41083 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41084 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
41085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41086 | break 2 | |
41087 | fi | |
41088 | done | |
41089 | done | |
41090 | ||
41091 | fi | |
41092 | fi | |
41093 | STRIP=$ac_cv_prog_STRIP | |
41094 | if test -n "$STRIP"; then | |
41095 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
41096 | echo "${ECHO_T}$STRIP" >&6 | |
41097 | else | |
41098 | echo "$as_me:$LINENO: result: no" >&5 | |
41099 | echo "${ECHO_T}no" >&6 | |
41100 | fi | |
41101 | ||
41102 | fi | |
41103 | if test -z "$ac_cv_prog_STRIP"; then | |
41104 | ac_ct_STRIP=$STRIP | |
41105 | # Extract the first word of "strip", so it can be a program name with args. | |
41106 | set dummy strip; ac_word=$2 | |
41107 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41109 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
41110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41111 | else | |
41112 | if test -n "$ac_ct_STRIP"; then | |
41113 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
41114 | else | |
41115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41116 | for as_dir in $PATH | |
41117 | do | |
41118 | IFS=$as_save_IFS | |
41119 | test -z "$as_dir" && as_dir=. | |
41120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41121 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41122 | ac_cv_prog_ac_ct_STRIP="strip" | |
41123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41124 | break 2 | |
41125 | fi | |
41126 | done | |
41127 | done | |
41128 | ||
41129 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
41130 | fi | |
41131 | fi | |
41132 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
41133 | if test -n "$ac_ct_STRIP"; then | |
41134 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
41135 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
41136 | else | |
41137 | echo "$as_me:$LINENO: result: no" >&5 | |
41138 | echo "${ECHO_T}no" >&6 | |
41139 | fi | |
41140 | ||
41141 | STRIP=$ac_ct_STRIP | |
41142 | else | |
41143 | STRIP="$ac_cv_prog_STRIP" | |
41144 | fi | |
41145 | ||
41146 | if test -n "$ac_tool_prefix"; then | |
41147 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
41148 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
41149 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41151 | if test "${ac_cv_prog_NM+set}" = set; then | |
41152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41153 | else | |
41154 | if test -n "$NM"; then | |
41155 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
41156 | else | |
41157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41158 | for as_dir in $PATH | |
41159 | do | |
41160 | IFS=$as_save_IFS | |
41161 | test -z "$as_dir" && as_dir=. | |
41162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41164 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
41165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41166 | break 2 | |
41167 | fi | |
41168 | done | |
41169 | done | |
41170 | ||
41171 | fi | |
41172 | fi | |
41173 | NM=$ac_cv_prog_NM | |
41174 | if test -n "$NM"; then | |
41175 | echo "$as_me:$LINENO: result: $NM" >&5 | |
41176 | echo "${ECHO_T}$NM" >&6 | |
41177 | else | |
41178 | echo "$as_me:$LINENO: result: no" >&5 | |
41179 | echo "${ECHO_T}no" >&6 | |
41180 | fi | |
41181 | ||
41182 | fi | |
41183 | if test -z "$ac_cv_prog_NM"; then | |
41184 | ac_ct_NM=$NM | |
41185 | # Extract the first word of "nm", so it can be a program name with args. | |
41186 | set dummy nm; ac_word=$2 | |
41187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41189 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
41190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41191 | else | |
41192 | if test -n "$ac_ct_NM"; then | |
41193 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
41194 | else | |
41195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41196 | for as_dir in $PATH | |
41197 | do | |
41198 | IFS=$as_save_IFS | |
41199 | test -z "$as_dir" && as_dir=. | |
41200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41202 | ac_cv_prog_ac_ct_NM="nm" | |
41203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41204 | break 2 | |
41205 | fi | |
41206 | done | |
41207 | done | |
41208 | ||
41209 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
41210 | fi | |
41211 | fi | |
41212 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
41213 | if test -n "$ac_ct_NM"; then | |
41214 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
41215 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
41216 | else | |
41217 | echo "$as_me:$LINENO: result: no" >&5 | |
41218 | echo "${ECHO_T}no" >&6 | |
41219 | fi | |
41220 | ||
41221 | NM=$ac_ct_NM | |
41222 | else | |
41223 | NM="$ac_cv_prog_NM" | |
41224 | fi | |
41225 | ||
41226 | ||
41227 | case ${BAKEFILE_HOST} in | |
41228 | *-hp-hpux* ) | |
1e9e8aba | 41229 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
41230 | ;; |
41231 | *) INSTALL_DIR="$INSTALL -d" | |
41232 | ;; | |
41233 | esac | |
41234 | ||
41235 | ||
41236 | LDFLAGS_GUI= | |
41237 | case ${BAKEFILE_HOST} in | |
41238 | *-*-cygwin* | *-*-mingw32* ) | |
41239 | LDFLAGS_GUI="-mwindows" | |
41240 | esac | |
41241 | ||
41242 | ||
41243 | fi | |
41244 | ||
41245 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
41246 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
41247 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
41248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41249 | else | |
41250 | ||
41251 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
41252 | egrep -s GNU > /dev/null); then | |
41253 | bakefile_cv_prog_makeisgnu="yes" | |
41254 | else | |
41255 | bakefile_cv_prog_makeisgnu="no" | |
41256 | fi | |
41257 | ||
41258 | fi | |
41259 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
41260 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
41261 | ||
41262 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
41263 | IF_GNU_MAKE="" | |
41264 | else | |
41265 | IF_GNU_MAKE="#" | |
41266 | fi | |
41267 | ||
41268 | ||
41269 | ||
41270 | PLATFORM_UNIX=0 | |
41271 | PLATFORM_WIN32=0 | |
41272 | PLATFORM_MSDOS=0 | |
41273 | PLATFORM_MAC=0 | |
1e9e8aba | 41274 | PLATFORM_MACOS=0 |
a848cd7e SC |
41275 | PLATFORM_MACOSX=0 |
41276 | PLATFORM_OS2=0 | |
1e9e8aba | 41277 | PLATFORM_BEOS=0 |
a848cd7e SC |
41278 | |
41279 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
41280 | case "${BAKEFILE_HOST}" in | |
41281 | *-*-cygwin* | *-*-mingw32* ) | |
41282 | PLATFORM_WIN32=1 | |
41283 | ;; | |
41284 | *-pc-msdosdjgpp ) | |
41285 | PLATFORM_MSDOS=1 | |
41286 | ;; | |
41287 | *-pc-os2_emx | *-pc-os2-emx ) | |
41288 | PLATFORM_OS2=1 | |
41289 | ;; | |
41290 | powerpc-*-darwin* ) | |
41291 | PLATFORM_MAC=1 | |
41292 | PLATFORM_MACOSX=1 | |
41293 | ;; | |
1e9e8aba DE |
41294 | *-*-beos* ) |
41295 | PLATFORM_BEOS=1 | |
41296 | ;; | |
41297 | powerpc-apple-macos* ) | |
41298 | PLATFORM_MAC=1 | |
41299 | PLATFORM_MACOS=1 | |
41300 | ;; | |
a848cd7e SC |
41301 | * ) |
41302 | PLATFORM_UNIX=1 | |
41303 | ;; | |
41304 | esac | |
41305 | else | |
41306 | case "$BAKEFILE_FORCE_PLATFORM" in | |
41307 | win32 ) | |
41308 | PLATFORM_WIN32=1 | |
41309 | ;; | |
41310 | msdos ) | |
41311 | PLATFORM_MSDOS=1 | |
41312 | ;; | |
41313 | os2 ) | |
41314 | PLATFORM_OS2=1 | |
41315 | ;; | |
41316 | darwin ) | |
41317 | PLATFORM_MAC=1 | |
41318 | PLATFORM_MACOSX=1 | |
41319 | ;; | |
41320 | unix ) | |
41321 | PLATFORM_UNIX=1 | |
41322 | ;; | |
1e9e8aba DE |
41323 | beos ) |
41324 | PLATFORM_BEOS=1 | |
41325 | ;; | |
a848cd7e SC |
41326 | * ) |
41327 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
41328 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
41329 | { (exit 1); exit 1; }; } | |
41330 | ;; | |
41331 | esac | |
41332 | fi | |
41333 | ||
41334 | ||
41335 | ||
41336 | ||
41337 | ||
41338 | ||
41339 | ||
41340 | ||
41341 | ||
1e9e8aba DE |
41342 | |
41343 | ||
a848cd7e SC |
41344 | # Check whether --enable-omf or --disable-omf was given. |
41345 | if test "${enable_omf+set}" = set; then | |
41346 | enableval="$enable_omf" | |
41347 | bk_os2_use_omf="$enableval" | |
41348 | fi; | |
41349 | ||
41350 | case "${BAKEFILE_HOST}" in | |
41351 | *-*-darwin* ) | |
41352 | CFLAGS="$CFLAGS -fno-common" | |
41353 | CXXFLAGS="$CXXFLAGS -fno-common" | |
41354 | ;; | |
41355 | ||
41356 | *-pc-os2_emx | *-pc-os2-emx ) | |
41357 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
41358 | AR=emxomfar | |
41359 | RANLIB=: | |
41360 | LDFLAGS="-Zomf $LDFLAGS" | |
41361 | CFLAGS="-Zomf $CFLAGS" | |
41362 | CXXFLAGS="-Zomf $CXXFLAGS" | |
41363 | OS2_LIBEXT="lib" | |
41364 | else | |
41365 | OS2_LIBEXT="a" | |
41366 | fi | |
41367 | ;; | |
1e9e8aba DE |
41368 | |
41369 | i*86-*-beos* ) | |
41370 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
41371 | ;; | |
a848cd7e SC |
41372 | esac |
41373 | ||
41374 | ||
41375 | SO_SUFFIX="so" | |
41376 | SO_SUFFIX_MODULE="so" | |
41377 | EXEEXT="" | |
41378 | LIBPREFIX="lib" | |
41379 | LIBEXT=".a" | |
41380 | DLLPREFIX="lib" | |
41381 | DLLPREFIX_MODULE="" | |
41382 | DLLIMP_SUFFIX="" | |
41383 | ||
41384 | case "${BAKEFILE_HOST}" in | |
41385 | *-hp-hpux* ) | |
41386 | SO_SUFFIX="sl" | |
41387 | SO_SUFFIX_MODULE="sl" | |
41388 | ;; | |
41389 | *-*-aix* ) | |
41390 | SO_SUFFIX="a" | |
41391 | SO_SUFFIX_MODULE="a" | |
41392 | ;; | |
41393 | *-*-cygwin* | *-*-mingw32* ) | |
41394 | SO_SUFFIX="dll" | |
41395 | SO_SUFFIX_MODULE="dll" | |
41396 | DLLIMP_SUFFIX="dll.a" | |
41397 | EXEEXT=".exe" | |
41398 | DLLPREFIX="" | |
41399 | ;; | |
41400 | *-pc-msdosdjgpp ) | |
41401 | EXEEXT=".exe" | |
41402 | DLLPREFIX="" | |
41403 | ;; | |
41404 | *-pc-os2_emx | *-pc-os2-emx ) | |
41405 | SO_SUFFIX="dll" | |
41406 | SO_SUFFIX_MODULE="dll" | |
41407 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
41408 | EXEEXT=".exe" | |
41409 | DLLPREFIX="" | |
41410 | LIBPREFIX="" | |
41411 | LIBEXT=".$OS2_LIBEXT" | |
41412 | ;; | |
41413 | powerpc-*-darwin* ) | |
41414 | SO_SUFFIX="dylib" | |
41415 | SO_SUFFIX_MODULE="bundle" | |
41416 | ;; | |
41417 | esac | |
41418 | ||
41419 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
41420 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
41421 | fi | |
41422 | ||
41423 | ||
41424 | ||
41425 | ||
41426 | ||
41427 | ||
41428 | ||
41429 | ||
41430 | ||
41431 | ||
41432 | ||
1e9e8aba DE |
41433 | PIC_FLAG="" |
41434 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
41435 | PIC_FLAG="-fPIC" |
41436 | fi | |
41437 | ||
1e9e8aba DE |
41438 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
41439 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
41440 | ||
a848cd7e SC |
41441 | case "${BAKEFILE_HOST}" in |
41442 | *-hp-hpux* ) | |
1e9e8aba | 41443 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
41444 | LDFLAGS="$LDFLAGS -L/usr/lib" |
41445 | ||
41446 | SHARED_LD_CC="${CC} -b -o" | |
41447 | SHARED_LD_CXX="${CXX} -b -o" | |
41448 | PIC_FLAG="+Z" | |
41449 | fi | |
41450 | ;; | |
41451 | ||
41452 | *-*-linux* ) | |
41453 | if test "x$GCC" != "xyes"; then | |
41454 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
41455 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
41456 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
41457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41458 | else | |
41459 | ||
41460 | cat >conftest.$ac_ext <<_ACEOF | |
41461 | /* confdefs.h. */ | |
41462 | _ACEOF | |
41463 | cat confdefs.h >>conftest.$ac_ext | |
41464 | cat >>conftest.$ac_ext <<_ACEOF | |
41465 | /* end confdefs.h. */ | |
41466 | ||
41467 | int | |
41468 | main () | |
41469 | { | |
41470 | ||
41471 | #ifndef __INTEL_COMPILER | |
41472 | #error Not icc | |
41473 | #endif | |
41474 | ||
41475 | ; | |
41476 | return 0; | |
41477 | } | |
41478 | _ACEOF | |
41479 | rm -f conftest.$ac_objext | |
41480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41481 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41482 | ac_status=$? |
ac1cb8d3 VS |
41483 | grep -v '^ *+' conftest.er1 >conftest.err |
41484 | rm -f conftest.er1 | |
41485 | cat conftest.err >&5 | |
a848cd7e SC |
41486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41487 | (exit $ac_status); } && | |
9dd0f6c2 | 41488 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41490 | (eval $ac_try) 2>&5 | |
41491 | ac_status=$? | |
41492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41493 | (exit $ac_status); }; } && | |
41494 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41496 | (eval $ac_try) 2>&5 | |
41497 | ac_status=$? | |
41498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41499 | (exit $ac_status); }; }; then | |
41500 | bakefile_cv_prog_icc=yes | |
41501 | else | |
41502 | echo "$as_me: failed program was:" >&5 | |
41503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41504 | ||
41505 | bakefile_cv_prog_icc=no | |
41506 | ||
41507 | fi | |
ac1cb8d3 | 41508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41509 | |
41510 | fi | |
41511 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
41512 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
41513 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
41514 | PIC_FLAG="-KPIC" | |
41515 | fi | |
41516 | fi | |
41517 | ;; | |
41518 | ||
41519 | *-*-solaris2* ) | |
41520 | if test "x$GCC" != xyes ; then | |
41521 | SHARED_LD_CC="${CC} -G -o" | |
41522 | SHARED_LD_CXX="${CXX} -G -o" | |
41523 | PIC_FLAG="-KPIC" | |
41524 | fi | |
41525 | ;; | |
41526 | ||
41527 | *-*-darwin* ) | |
41528 | ||
41529 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
41530 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
41531 | if test "${wx_cv_gcc31+set}" = set; then | |
41532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41533 | else | |
41534 | ||
41535 | cat >conftest.$ac_ext <<_ACEOF | |
41536 | /* confdefs.h. */ | |
41537 | _ACEOF | |
41538 | cat confdefs.h >>conftest.$ac_ext | |
41539 | cat >>conftest.$ac_ext <<_ACEOF | |
41540 | /* end confdefs.h. */ | |
41541 | ||
41542 | int | |
41543 | main () | |
41544 | { | |
41545 | ||
41546 | #if (__GNUC__ < 3) || \ | |
41547 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
41548 | #error old gcc | |
41549 | #endif | |
41550 | ||
41551 | ; | |
41552 | return 0; | |
41553 | } | |
41554 | _ACEOF | |
41555 | rm -f conftest.$ac_objext | |
41556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41557 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41558 | ac_status=$? |
ac1cb8d3 VS |
41559 | grep -v '^ *+' conftest.er1 >conftest.err |
41560 | rm -f conftest.er1 | |
41561 | cat conftest.err >&5 | |
a848cd7e SC |
41562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41563 | (exit $ac_status); } && | |
9dd0f6c2 | 41564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41566 | (eval $ac_try) 2>&5 | |
41567 | ac_status=$? | |
41568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41569 | (exit $ac_status); }; } && | |
41570 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41572 | (eval $ac_try) 2>&5 | |
41573 | ac_status=$? | |
41574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41575 | (exit $ac_status); }; }; then | |
41576 | ||
41577 | wx_cv_gcc31=yes | |
41578 | ||
41579 | else | |
41580 | echo "$as_me: failed program was:" >&5 | |
41581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41582 | ||
41583 | ||
41584 | wx_cv_gcc31=no | |
41585 | ||
41586 | ||
41587 | fi | |
ac1cb8d3 | 41588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41589 | |
41590 | fi | |
41591 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
41592 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
41593 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
41594 | |
41595 | D='$' | |
41596 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
41597 | #!/bin/sh |
41598 | #----------------------------------------------------------------------------- | |
41599 | #-- Name: distrib/mac/shared-ld-sh | |
41600 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
41601 | #-- Author: Gilles Depeyrot | |
41602 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
41603 | #-- Licence: any use permitted | |
41604 | #----------------------------------------------------------------------------- | |
41605 | ||
41606 | verbose=0 | |
41607 | args="" | |
41608 | objects="" | |
41609 | linking_flag="-dynamiclib" | |
41610 | ||
473276a9 VS |
41611 | while test ${D}# -gt 0; do |
41612 | case ${D}1 in | |
a848cd7e SC |
41613 | |
41614 | -v) | |
41615 | verbose=1 | |
41616 | ;; | |
41617 | ||
41618 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
41619 | # collect these options and values | |
473276a9 | 41620 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
41621 | shift |
41622 | ;; | |
41623 | ||
41624 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
41625 | # collect these options | |
473276a9 | 41626 | args="${D}{args} ${D}1" |
a848cd7e SC |
41627 | ;; |
41628 | ||
41629 | -dynamiclib|-bundle) | |
473276a9 | 41630 | linking_flag="${D}1" |
a848cd7e SC |
41631 | ;; |
41632 | ||
41633 | -*) | |
473276a9 | 41634 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
41635 | exit 1 |
41636 | ;; | |
41637 | ||
41638 | *.o | *.a | *.dylib) | |
41639 | # collect object files | |
473276a9 | 41640 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
41641 | ;; |
41642 | ||
41643 | *) | |
473276a9 | 41644 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
41645 | exit 1 |
41646 | ;; | |
41647 | ||
41648 | esac | |
41649 | shift | |
41650 | done | |
41651 | ||
41652 | # | |
41653 | # Link one module containing all the others | |
41654 | # | |
473276a9 VS |
41655 | if test ${D}{verbose} = 1; then |
41656 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 41657 | fi |
473276a9 VS |
41658 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
41659 | status=${D}? | |
41660 | if test ${D}{status} != 0; then | |
41661 | exit ${D}{status} | |
a848cd7e SC |
41662 | fi |
41663 | ||
41664 | # | |
41665 | # Link the shared library from the single module created | |
41666 | # | |
473276a9 VS |
41667 | if test ${D}{verbose} = 1; then |
41668 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 41669 | fi |
473276a9 VS |
41670 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
41671 | status=${D}? | |
41672 | if test ${D}{status} != 0; then | |
41673 | exit ${D}{status} | |
a848cd7e SC |
41674 | fi |
41675 | ||
41676 | # | |
41677 | # Remove intermediate module | |
41678 | # | |
473276a9 | 41679 | rm -f master.${D}${D}.o |
a848cd7e SC |
41680 | |
41681 | exit 0 | |
41682 | EOF | |
473276a9 | 41683 | |
a848cd7e SC |
41684 | chmod +x shared-ld-sh |
41685 | ||
41686 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
41687 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
41688 | SHARED_LD_CXX="$SHARED_LD_CC" | |
41689 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
41690 | else | |
41691 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
41692 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
41693 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
41694 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
41695 | fi | |
41696 | ||
41697 | PIC_FLAG="-dynamic -fPIC" | |
41698 | ;; | |
41699 | ||
41700 | *-*-aix* ) | |
41701 | if test "x$GCC" != "xyes"; then | |
41702 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
41703 | set dummy makeC++SharedLib; ac_word=$2 | |
41704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41706 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
41707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41708 | else | |
41709 | if test -n "$AIX_CXX_LD"; then | |
41710 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
41711 | else | |
41712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41713 | for as_dir in $PATH | |
41714 | do | |
41715 | IFS=$as_save_IFS | |
41716 | test -z "$as_dir" && as_dir=. | |
41717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41719 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
41720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41721 | break 2 | |
41722 | fi | |
41723 | done | |
41724 | done | |
41725 | ||
41726 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
41727 | fi | |
41728 | fi | |
41729 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
41730 | if test -n "$AIX_CXX_LD"; then | |
41731 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
41732 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
41733 | else | |
41734 | echo "$as_me:$LINENO: result: no" >&5 | |
41735 | echo "${ECHO_T}no" >&6 | |
41736 | fi | |
41737 | ||
41738 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
41739 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
41740 | fi | |
41741 | ;; | |
41742 | ||
41743 | *-*-beos* ) | |
1e9e8aba DE |
41744 | SHARED_LD_CC="${LD} -nostart -o" |
41745 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
41746 | ;; |
41747 | ||
41748 | *-*-irix* ) | |
41749 | if test "x$GCC" != "xyes"; then | |
41750 | PIC_FLAG="-KPIC" | |
41751 | fi | |
41752 | ;; | |
41753 | ||
41754 | *-*-cygwin* | *-*-mingw32* ) | |
41755 | PIC_FLAG="" | |
1e9e8aba DE |
41756 | SHARED_LD_CC="\$(CC) -shared -o" |
41757 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
41758 | ;; |
41759 | ||
41760 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
41761 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
41762 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 41763 | PIC_FLAG="" |
473276a9 VS |
41764 | |
41765 | D='$' | |
41766 | cat <<EOF >dllar.sh | |
41767 | #!/bin/sh | |
41768 | # | |
41769 | # dllar - a tool to build both a .dll and an .a file | |
41770 | # from a set of object (.o) files for EMX/OS2. | |
41771 | # | |
41772 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
41773 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
41774 | # | |
41775 | # This script will accept a set of files on the command line. | |
41776 | # All the public symbols from the .o files will be exported into | |
41777 | # a .DEF file, then linker will be run (through gcc) against them to | |
41778 | # build a shared library consisting of all given .o files. All libraries | |
41779 | # (.a) will be first decompressed into component .o files then act as | |
41780 | # described above. You can optionally give a description (-d "description") | |
41781 | # which will be put into .DLL. To see the list of accepted options (as well | |
41782 | # as command-line format) simply run this program without options. The .DLL | |
41783 | # is built to be imported by name (there is no guarantee that new versions | |
41784 | # of the library you build will have same ordinals for same symbols). | |
41785 | # | |
41786 | # dllar is free software; you can redistribute it and/or modify | |
41787 | # it under the terms of the GNU General Public License as published by | |
41788 | # the Free Software Foundation; either version 2, or (at your option) | |
41789 | # any later version. | |
41790 | # | |
41791 | # dllar is distributed in the hope that it will be useful, | |
41792 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
41793 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
41794 | # GNU General Public License for more details. | |
41795 | # | |
41796 | # You should have received a copy of the GNU General Public License | |
41797 | # along with dllar; see the file COPYING. If not, write to the Free | |
41798 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
41799 | # 02111-1307, USA. | |
41800 | ||
41801 | # To successfuly run this program you will need: | |
41802 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
41803 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
41804 | # - gcc | |
41805 | # (used to build the .dll) | |
41806 | # - emxexp | |
41807 | # (used to create .def file from .o files) | |
41808 | # - emximp | |
41809 | # (used to create .a file from .def file) | |
41810 | # - GNU text utilites (cat, sort, uniq) | |
41811 | # used to process emxexp output | |
41812 | # - GNU file utilities (mv, rm) | |
41813 | # - GNU sed | |
41814 | # - lxlite (optional, see flag below) | |
41815 | # (used for general .dll cleanup) | |
41816 | # | |
41817 | ||
41818 | flag_USE_LXLITE=1; | |
41819 | ||
41820 | # | |
41821 | # helper functions | |
41822 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
41823 | # second argument (suffix to remove) is given | |
41824 | basnam(){ | |
41825 | case ${D}# in | |
41826 | 1) | |
1e9e8aba | 41827 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
41828 | ;; |
41829 | 2) | |
41830 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
41831 | ;; | |
41832 | *) | |
41833 | echo "error in basnam ${D}*" | |
41834 | exit 8 | |
41835 | ;; | |
41836 | esac | |
41837 | } | |
41838 | ||
41839 | # Cleanup temporary files and output | |
41840 | CleanUp() { | |
41841 | cd ${D}curDir | |
41842 | for i in ${D}inputFiles ; do | |
41843 | case ${D}i in | |
41844 | *!) | |
41845 | rm -rf \`basnam ${D}i !\` | |
41846 | ;; | |
41847 | *) | |
41848 | ;; | |
41849 | esac | |
41850 | done | |
41851 | ||
41852 | # Kill result in case of failure as there is just to many stupid make/nmake | |
41853 | # things out there which doesn't do this. | |
1e9e8aba | 41854 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
41855 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
41856 | fi | |
41857 | } | |
41858 | ||
41859 | # Print usage and exit script with rc=1. | |
41860 | PrintHelp() { | |
b1d22ded DE |
41861 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
41862 | echo ' [-name-mangler-script script.sh]' | |
41863 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
41864 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
41865 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 41866 | echo ' [*.o] [*.a]' |
473276a9 VS |
41867 | echo '*> "output_file" should have no extension.' |
41868 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
41869 | echo ' The import library name is derived from this and is set to "name".a,' | |
41870 | echo ' unless overridden by -import' | |
41871 | echo '*> "importlib_name" should have no extension.' | |
41872 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
41873 | echo ' This name is used as the import library name and may be longer and' | |
41874 | echo ' more descriptive than the DLL name which has to follow the old ' | |
41875 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
41876 | echo '*> "script.sh may be given to override the output_file name by a' |
41877 | echo ' different name. It is mainly useful if the regular make process' | |
41878 | echo ' of some package does not take into account OS/2 restriction of' | |
41879 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
41880 | echo ' supposed to procude a shorter name as output. The script should' | |
41881 | echo ' expect to get importlib_name without extension and should produce' | |
41882 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
41883 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
41884 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
41885 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
41886 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
41887 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
41888 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
41889 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
41890 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 41891 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 41892 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 41893 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 41894 | echo ' C runtime DLLs.' |
b1d22ded | 41895 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
41896 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
41897 | echo ' unchanged to GCC at the end of command line.' | |
41898 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
41899 | echo ' the basename for DLL and import library will be set to library name,' | |
41900 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
41901 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
41902 | echo ' library will be renamed into gcc_s.a.' | |
41903 | echo '--------' | |
41904 | echo 'Example:' | |
41905 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
41906 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
41907 | CleanUp | |
41908 | exit 1 | |
41909 | } | |
41910 | ||
41911 | # Execute a command. | |
41912 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
41913 | # @Uses Whatever CleanUp() uses. | |
41914 | doCommand() { | |
41915 | echo "${D}*" | |
41916 | eval ${D}* | |
41917 | rcCmd=${D}? | |
41918 | ||
1e9e8aba | 41919 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
41920 | echo "command failed, exit code="${D}rcCmd |
41921 | CleanUp | |
41922 | exit ${D}rcCmd | |
41923 | fi | |
41924 | } | |
41925 | ||
41926 | # main routine | |
41927 | # setup globals | |
41928 | cmdLine=${D}* | |
41929 | outFile="" | |
41930 | outimpFile="" | |
41931 | inputFiles="" | |
b1d22ded | 41932 | renameScript="" |
473276a9 VS |
41933 | description="" |
41934 | CC=gcc.exe | |
41935 | CFLAGS="-s -Zcrtdll" | |
41936 | EXTRA_CFLAGS="" | |
41937 | EXPORT_BY_ORDINALS=0 | |
41938 | exclude_symbols="" | |
41939 | library_flags="" | |
41940 | curDir=\`pwd\` | |
41941 | curDirS=curDir | |
41942 | case ${D}curDirS in | |
41943 | */) | |
41944 | ;; | |
41945 | *) | |
41946 | curDirS=${D}{curDirS}"/" | |
41947 | ;; | |
41948 | esac | |
41949 | # Parse commandline | |
41950 | libsToLink=0 | |
b1d22ded | 41951 | omfLinking=0 |
1e9e8aba | 41952 | while [ ${D}1 ]; do |
473276a9 VS |
41953 | case ${D}1 in |
41954 | -ord*) | |
41955 | EXPORT_BY_ORDINALS=1; | |
41956 | ;; | |
41957 | -o*) | |
41958 | shift | |
41959 | outFile=${D}1 | |
41960 | ;; | |
41961 | -i*) | |
41962 | shift | |
41963 | outimpFile=${D}1 | |
41964 | ;; | |
b1d22ded DE |
41965 | -name-mangler-script) |
41966 | shift | |
41967 | renameScript=${D}1 | |
41968 | ;; | |
473276a9 VS |
41969 | -d*) |
41970 | shift | |
41971 | description=${D}1 | |
41972 | ;; | |
41973 | -f*) | |
41974 | shift | |
41975 | CFLAGS=${D}1 | |
41976 | ;; | |
41977 | -c*) | |
41978 | shift | |
41979 | CC=${D}1 | |
41980 | ;; | |
41981 | -h*) | |
41982 | PrintHelp | |
41983 | ;; | |
41984 | -ex*) | |
41985 | shift | |
41986 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
41987 | ;; | |
41988 | -libf*) | |
41989 | shift | |
41990 | library_flags=${D}{library_flags}${D}1" " | |
41991 | ;; | |
41992 | -nocrt*) | |
41993 | CFLAGS="-s" | |
41994 | ;; | |
41995 | -nolxl*) | |
41996 | flag_USE_LXLITE=0 | |
41997 | ;; | |
41998 | -* | /*) | |
41999 | case ${D}1 in | |
42000 | -L* | -l*) | |
42001 | libsToLink=1 | |
42002 | ;; | |
b1d22ded DE |
42003 | -Zomf) |
42004 | omfLinking=1 | |
42005 | ;; | |
473276a9 VS |
42006 | *) |
42007 | ;; | |
42008 | esac | |
42009 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
42010 | ;; | |
b1d22ded DE |
42011 | *.dll) |
42012 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
42013 | if [ ${D}omfLinking -eq 1 ]; then | |
42014 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
42015 | else | |
42016 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
42017 | fi | |
42018 | ;; | |
473276a9 VS |
42019 | *) |
42020 | found=0; | |
1e9e8aba | 42021 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
42022 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
42023 | else | |
42024 | for file in ${D}1 ; do | |
1e9e8aba | 42025 | if [ -f ${D}file ]; then |
473276a9 VS |
42026 | inputFiles="${D}{inputFiles} ${D}file" |
42027 | found=1 | |
42028 | fi | |
42029 | done | |
1e9e8aba | 42030 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
42031 | echo "ERROR: No file(s) found: "${D}1 |
42032 | exit 8 | |
42033 | fi | |
42034 | fi | |
42035 | ;; | |
42036 | esac | |
42037 | shift | |
42038 | done # iterate cmdline words | |
42039 | ||
42040 | # | |
1e9e8aba | 42041 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
42042 | echo "dllar: no input files" |
42043 | PrintHelp | |
42044 | fi | |
42045 | ||
42046 | # Now extract all .o files from .a files | |
42047 | newInputFiles="" | |
42048 | for file in ${D}inputFiles ; do | |
42049 | case ${D}file in | |
42050 | *.a | *.lib) | |
42051 | case ${D}file in | |
42052 | *.a) | |
42053 | suffix=".a" | |
42054 | AR="ar" | |
42055 | ;; | |
42056 | *.lib) | |
42057 | suffix=".lib" | |
42058 | AR="emxomfar" | |
42059 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
42060 | ;; | |
42061 | *) | |
42062 | ;; | |
42063 | esac | |
42064 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
42065 | mkdir ${D}dirname | |
1e9e8aba | 42066 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
42067 | echo "Failed to create subdirectory ./${D}dirname" |
42068 | CleanUp | |
42069 | exit 8; | |
42070 | fi | |
42071 | # Append '!' to indicate archive | |
42072 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
42073 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
42074 | cd ${D}curDir | |
42075 | found=0; | |
42076 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 42077 | if [ -f ${D}subfile ]; then |
473276a9 | 42078 | found=1 |
1e9e8aba | 42079 | if [ -s ${D}subfile ]; then |
473276a9 VS |
42080 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
42081 | newInputFiles="${D}newInputFiles ${D}subfile" | |
42082 | fi | |
42083 | fi | |
42084 | done | |
1e9e8aba DE |
42085 | if [ ${D}found -eq 0 ]; then |
42086 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
42087 | fi |
42088 | ;; | |
42089 | *) | |
42090 | newInputFiles="${D}{newInputFiles} ${D}file" | |
42091 | ;; | |
42092 | esac | |
42093 | done | |
42094 | inputFiles="${D}newInputFiles" | |
42095 | ||
42096 | # Output filename(s). | |
42097 | do_backup=0; | |
1e9e8aba | 42098 | if [ -z ${D}outFile ]; then |
473276a9 VS |
42099 | do_backup=1; |
42100 | set outFile ${D}inputFiles; outFile=${D}2 | |
42101 | fi | |
42102 | ||
42103 | # If it is an archive, remove the '!' and the '_%' suffixes | |
42104 | case ${D}outFile in | |
42105 | *_%!) | |
42106 | outFile=\`basnam ${D}outFile _%!\` | |
42107 | ;; | |
42108 | *) | |
42109 | ;; | |
42110 | esac | |
42111 | case ${D}outFile in | |
42112 | *.dll) | |
42113 | outFile=\`basnam ${D}outFile .dll\` | |
42114 | ;; | |
42115 | *.DLL) | |
42116 | outFile=\`basnam ${D}outFile .DLL\` | |
42117 | ;; | |
42118 | *.o) | |
42119 | outFile=\`basnam ${D}outFile .o\` | |
42120 | ;; | |
42121 | *.obj) | |
42122 | outFile=\`basnam ${D}outFile .obj\` | |
42123 | ;; | |
42124 | *.a) | |
42125 | outFile=\`basnam ${D}outFile .a\` | |
42126 | ;; | |
42127 | *.lib) | |
42128 | outFile=\`basnam ${D}outFile .lib\` | |
42129 | ;; | |
42130 | *) | |
42131 | ;; | |
42132 | esac | |
42133 | case ${D}outimpFile in | |
42134 | *.a) | |
42135 | outimpFile=\`basnam ${D}outimpFile .a\` | |
42136 | ;; | |
42137 | *.lib) | |
42138 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
42139 | ;; | |
42140 | *) | |
42141 | ;; | |
42142 | esac | |
1e9e8aba | 42143 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
42144 | outimpFile=${D}outFile |
42145 | fi | |
42146 | defFile="${D}{outFile}.def" | |
42147 | arcFile="${D}{outimpFile}.a" | |
42148 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
42149 | |
42150 | #create ${D}dllFile as something matching 8.3 restrictions, | |
42151 | if [ -z ${D}renameScript ] ; then | |
42152 | dllFile="${D}outFile" | |
42153 | else | |
42154 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
42155 | fi | |
473276a9 | 42156 | |
1e9e8aba DE |
42157 | if [ ${D}do_backup -ne 0 ] ; then |
42158 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
42159 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
42160 | fi | |
1e9e8aba | 42161 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
42162 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
42163 | fi | |
42164 | fi | |
42165 | ||
42166 | # Extract public symbols from all the object files. | |
42167 | tmpdefFile=${D}{defFile}_% | |
42168 | rm -f ${D}tmpdefFile | |
42169 | for file in ${D}inputFiles ; do | |
42170 | case ${D}file in | |
42171 | *!) | |
42172 | ;; | |
42173 | *) | |
42174 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
42175 | ;; | |
42176 | esac | |
42177 | done | |
42178 | ||
42179 | # Create the def file. | |
42180 | rm -f ${D}defFile | |
42181 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
42182 | dllFile="${D}{dllFile}.dll" |
42183 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 42184 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
42185 | fi |
42186 | echo "EXPORTS" >> ${D}defFile | |
42187 | ||
42188 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
42189 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
42190 | ||
42191 | # Checks if the export is ok or not. | |
42192 | for word in ${D}exclude_symbols; do | |
42193 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
42194 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
42195 | done | |
42196 | ||
42197 | ||
1e9e8aba DE |
42198 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
42199 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
42200 | sed ' |
42201 | N | |
42202 | : loop | |
1e9e8aba | 42203 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
42204 | t loop |
42205 | ' > ${D}{tmpdefFile}% | |
42206 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
42207 | else | |
42208 | rm -f ${D}{tmpdefFile}% | |
42209 | fi | |
42210 | cat ${D}tmpdefFile >> ${D}defFile | |
42211 | rm -f ${D}tmpdefFile | |
42212 | ||
42213 | # Do linking, create implib, and apply lxlite. | |
42214 | gccCmdl=""; | |
42215 | for file in ${D}inputFiles ; do | |
42216 | case ${D}file in | |
42217 | *!) | |
42218 | ;; | |
42219 | *) | |
42220 | gccCmdl="${D}gccCmdl ${D}file" | |
42221 | ;; | |
42222 | esac | |
42223 | done | |
42224 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
42225 | touch "${D}{outFile}.dll" | |
42226 | ||
42227 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 42228 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 42229 | add_flags=""; |
1e9e8aba | 42230 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
42231 | add_flags="-ynd" |
42232 | fi | |
42233 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
42234 | fi | |
42235 | doCommand "emxomf -s -l ${D}arcFile" | |
42236 | ||
42237 | # Successful exit. | |
42238 | CleanUp 1 | |
42239 | exit 0 | |
42240 | EOF | |
42241 | ||
42242 | chmod +x dllar.sh | |
a848cd7e SC |
42243 | ;; |
42244 | ||
1e9e8aba | 42245 | powerpc-apple-macos* | \ |
a848cd7e SC |
42246 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
42247 | *-*-sunos4* | \ | |
42248 | *-*-osf* | \ | |
42249 | *-*-dgux5* | \ | |
42250 | *-*-sysv5* ) | |
42251 | ;; | |
42252 | ||
42253 | *) | |
42254 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
42255 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
42256 | { (exit 1); exit 1; }; } | |
42257 | esac | |
42258 | ||
2057db16 VS |
42259 | if test "x$PIC_FLAG" != "x" ; then |
42260 | PIC_FLAG="$PIC_FLAG -DPIC" | |
42261 | fi | |
42262 | ||
a848cd7e SC |
42263 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
42264 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
42265 | fi | |
42266 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
42267 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
42268 | fi | |
42269 | ||
42270 | ||
42271 | ||
42272 | ||
42273 | ||
42274 | ||
42275 | ||
42276 | ||
42277 | USE_SOVERSION=0 | |
42278 | USE_SOVERLINUX=0 | |
42279 | USE_SOVERSOLARIS=0 | |
42280 | USE_SOSYMLINKS=0 | |
42281 | USE_MACVERSION=0 | |
42282 | SONAME_FLAG= | |
42283 | ||
42284 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 42285 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
42286 | SONAME_FLAG="-Wl,-soname," |
42287 | USE_SOVERSION=1 | |
42288 | USE_SOVERLINUX=1 | |
42289 | USE_SOSYMLINKS=1 | |
42290 | ;; | |
42291 | ||
a848cd7e SC |
42292 | *-*-solaris2* ) |
42293 | SONAME_FLAG="-h " | |
42294 | USE_SOVERSION=1 | |
42295 | USE_SOVERSOLARIS=1 | |
42296 | USE_SOSYMLINKS=1 | |
42297 | ;; | |
42298 | ||
42299 | *-*-darwin* ) | |
42300 | USE_MACVERSION=1 | |
42301 | USE_SOVERSION=1 | |
42302 | USE_SOSYMLINKS=1 | |
42303 | ;; | |
42304 | esac | |
42305 | ||
42306 | ||
42307 | ||
42308 | ||
42309 | ||
42310 | ||
42311 | ||
42312 | ||
42313 | ||
42314 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
42315 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
42316 | DEPS_TRACKING=0 | |
42317 | ||
42318 | if test "x$GCC" = "xyes"; then | |
42319 | DEPSMODE=gcc | |
42320 | DEPS_TRACKING=1 | |
42321 | case "${BAKEFILE_HOST}" in | |
42322 | powerpc-*-darwin* ) | |
42323 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
42324 | ;; | |
42325 | * ) | |
42326 | DEPSFLAG_GCC="-MMD" | |
42327 | ;; | |
42328 | esac | |
42329 | echo "$as_me:$LINENO: result: gcc" >&5 | |
42330 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 42331 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 42332 | DEPSMODE=mwcc |
b1d22ded | 42333 | DEPS_TRACKING=1 |
81f90336 | 42334 | DEPSFLAG_MWCC="-MM" |
b1d22ded DE |
42335 | echo "$as_me:$LINENO: result: mwcc" >&5 |
42336 | echo "${ECHO_T}mwcc" >&6 | |
a848cd7e SC |
42337 | else |
42338 | echo "$as_me:$LINENO: result: none" >&5 | |
42339 | echo "${ECHO_T}none" >&6 | |
42340 | fi | |
42341 | ||
42342 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
42343 | |
42344 | D='$' | |
42345 | cat <<EOF >bk-deps | |
a848cd7e SC |
42346 | #!/bin/sh |
42347 | ||
42348 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
42349 | # script. It is used to track C/C++ files dependencies in portable way. | |
42350 | # | |
42351 | # Permission is given to use this file in any way. | |
42352 | ||
473276a9 | 42353 | DEPSMODE=${DEPSMODE} |
a848cd7e | 42354 | DEPSDIR=.deps |
473276a9 | 42355 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
81f90336 | 42356 | DEPSFLAG_MWCC="${DEPSFLAG_MWCC}" |
a848cd7e | 42357 | |
473276a9 | 42358 | mkdir -p ${D}DEPSDIR |
a848cd7e | 42359 | |
473276a9 VS |
42360 | if test ${D}DEPSMODE = gcc ; then |
42361 | ${D}* ${D}{DEPSFLAG_GCC} | |
42362 | status=${D}? | |
42363 | if test ${D}{status} != 0 ; then | |
42364 | exit ${D}{status} | |
a848cd7e SC |
42365 | fi |
42366 | # move created file to the location we want it in: | |
473276a9 VS |
42367 | while test ${D}# -gt 0; do |
42368 | case "${D}1" in | |
a848cd7e SC |
42369 | -o ) |
42370 | shift | |
473276a9 | 42371 | objfile=${D}1 |
a848cd7e SC |
42372 | ;; |
42373 | -* ) | |
42374 | ;; | |
42375 | * ) | |
473276a9 | 42376 | srcfile=${D}1 |
a848cd7e SC |
42377 | ;; |
42378 | esac | |
42379 | shift | |
42380 | done | |
1e9e8aba DE |
42381 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
42382 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
42383 | if test -f ${D}depfile ; then |
42384 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
42385 | rm -f ${D}depfile | |
a848cd7e | 42386 | else |
1e9e8aba | 42387 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
42388 | if test -f ${D}depfile ; then |
42389 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
42390 | rm -f ${D}depfile | |
a848cd7e SC |
42391 | fi |
42392 | fi | |
42393 | exit 0 | |
81f90336 MW |
42394 | elif test ${D}DEPSMODE = mwcc ; then |
42395 | ${D}* | |
42396 | status=${D}? | |
42397 | if test ${D}{status} != 0 ; then | |
42398 | exit ${D}{status} | |
42399 | fi | |
42400 | # Run mwcc again with -MM and redirect into the dep file we want | |
42401 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
42402 | prevarg= | |
42403 | for arg in ${D}* ; do | |
42404 | if test "${D}prevarg" = "-o"; then | |
42405 | objfile=${D}arg | |
42406 | else | |
42407 | case "${D}arg" in | |
42408 | -* ) | |
42409 | ;; | |
42410 | * ) | |
42411 | srcfile=${D}arg | |
42412 | ;; | |
42413 | esac | |
42414 | fi | |
42415 | prevarg="${D}arg" | |
42416 | done | |
42417 | ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d | |
42418 | exit 0 | |
a848cd7e | 42419 | else |
473276a9 VS |
42420 | ${D}* |
42421 | exit ${D}? | |
a848cd7e SC |
42422 | fi |
42423 | EOF | |
473276a9 | 42424 | |
a848cd7e SC |
42425 | chmod +x bk-deps |
42426 | fi | |
42427 | ||
42428 | ||
42429 | ||
42430 | ||
42431 | RESCOMP= | |
42432 | SETFILE= | |
42433 | ||
42434 | case ${BAKEFILE_HOST} in | |
42435 | *-*-cygwin* | *-*-mingw32* ) | |
42436 | if test "$build" != "$host" ; then | |
42437 | RESCOMP=$host_alias-windres | |
42438 | else | |
42439 | # Extract the first word of "windres", so it can be a program name with args. | |
42440 | set dummy windres; ac_word=$2 | |
42441 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42443 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
42444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42445 | else | |
42446 | if test -n "$RESCOMP"; then | |
42447 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
42448 | else | |
42449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42450 | for as_dir in $PATH | |
42451 | do | |
42452 | IFS=$as_save_IFS | |
42453 | test -z "$as_dir" && as_dir=. | |
42454 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42455 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42456 | ac_cv_prog_RESCOMP="windres" | |
42457 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42458 | break 2 | |
42459 | fi | |
42460 | done | |
42461 | done | |
42462 | ||
42463 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
42464 | fi | |
42465 | fi | |
42466 | RESCOMP=$ac_cv_prog_RESCOMP | |
42467 | if test -n "$RESCOMP"; then | |
42468 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
42469 | echo "${ECHO_T}$RESCOMP" >&6 | |
42470 | else | |
42471 | echo "$as_me:$LINENO: result: no" >&5 | |
42472 | echo "${ECHO_T}no" >&6 | |
42473 | fi | |
42474 | ||
42475 | fi | |
42476 | ;; | |
42477 | ||
1e9e8aba | 42478 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
42479 | # Extract the first word of "Rez", so it can be a program name with args. |
42480 | set dummy Rez; ac_word=$2 | |
42481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42483 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
42484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42485 | else | |
42486 | if test -n "$RESCOMP"; then | |
42487 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
42488 | else | |
42489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42490 | for as_dir in $PATH | |
42491 | do | |
42492 | IFS=$as_save_IFS | |
42493 | test -z "$as_dir" && as_dir=. | |
42494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42496 | ac_cv_prog_RESCOMP="Rez" | |
42497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42498 | break 2 | |
42499 | fi | |
42500 | done | |
42501 | done | |
42502 | ||
42503 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
42504 | fi | |
42505 | fi | |
42506 | RESCOMP=$ac_cv_prog_RESCOMP | |
42507 | if test -n "$RESCOMP"; then | |
42508 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
42509 | echo "${ECHO_T}$RESCOMP" >&6 | |
42510 | else | |
42511 | echo "$as_me:$LINENO: result: no" >&5 | |
42512 | echo "${ECHO_T}no" >&6 | |
42513 | fi | |
42514 | ||
42515 | # Extract the first word of "SetFile", so it can be a program name with args. | |
42516 | set dummy SetFile; ac_word=$2 | |
42517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42519 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
42520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42521 | else | |
42522 | if test -n "$SETFILE"; then | |
42523 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
42524 | else | |
42525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42526 | for as_dir in $PATH | |
42527 | do | |
42528 | IFS=$as_save_IFS | |
42529 | test -z "$as_dir" && as_dir=. | |
42530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42532 | ac_cv_prog_SETFILE="SetFile" | |
42533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42534 | break 2 | |
42535 | fi | |
42536 | done | |
42537 | done | |
42538 | ||
42539 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
42540 | fi | |
42541 | fi | |
42542 | SETFILE=$ac_cv_prog_SETFILE | |
42543 | if test -n "$SETFILE"; then | |
42544 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
42545 | echo "${ECHO_T}$SETFILE" >&6 | |
42546 | else | |
42547 | echo "$as_me:$LINENO: result: no" >&5 | |
42548 | echo "${ECHO_T}no" >&6 | |
42549 | fi | |
42550 | ||
42551 | ;; | |
42552 | esac | |
42553 | ||
42554 | ||
42555 | ||
42556 | ||
42557 | ||
fbb7dfff | 42558 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.8" |
a848cd7e | 42559 | |
dcc1b6ad | 42560 | |
fbb7dfff | 42561 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8" |
a848cd7e | 42562 | |
646b6ec1 | 42563 | |
74b84332 | 42564 | |
a848cd7e SC |
42565 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
42566 | if test "${enable_precomp_headers+set}" = set; then | |
42567 | enableval="$enable_precomp_headers" | |
42568 | bk_use_pch="$enableval" | |
42569 | fi; | |
42570 | ||
42571 | GCC_PCH=0 | |
42572 | ||
42573 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
42574 | if test "x$GCC" = "xyes"; then | |
42575 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
42576 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
42577 | cat >conftest.$ac_ext <<_ACEOF | |
42578 | /* confdefs.h. */ | |
42579 | _ACEOF | |
42580 | cat confdefs.h >>conftest.$ac_ext | |
42581 | cat >>conftest.$ac_ext <<_ACEOF | |
42582 | /* end confdefs.h. */ | |
42583 | ||
42584 | int | |
42585 | main () | |
42586 | { | |
42587 | ||
42588 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
42589 | #error "no pch support" | |
42590 | #endif | |
42591 | #if (__GNUC__ < 3) | |
42592 | #error "no pch support" | |
42593 | #endif | |
42594 | #if (__GNUC__ == 3) && \ | |
42595 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
42596 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
42597 | #error "no pch support" | |
42598 | #endif | |
42599 | ||
42600 | ; | |
42601 | return 0; | |
42602 | } | |
42603 | _ACEOF | |
42604 | rm -f conftest.$ac_objext | |
42605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42606 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42607 | ac_status=$? |
ac1cb8d3 VS |
42608 | grep -v '^ *+' conftest.er1 >conftest.err |
42609 | rm -f conftest.er1 | |
42610 | cat conftest.err >&5 | |
a848cd7e SC |
42611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42612 | (exit $ac_status); } && | |
9dd0f6c2 | 42613 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42615 | (eval $ac_try) 2>&5 | |
42616 | ac_status=$? | |
42617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42618 | (exit $ac_status); }; } && | |
42619 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42621 | (eval $ac_try) 2>&5 | |
42622 | ac_status=$? | |
42623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42624 | (exit $ac_status); }; }; then | |
42625 | ||
42626 | echo "$as_me:$LINENO: result: yes" >&5 | |
42627 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
42628 | GCC_PCH=1 |
42629 | ||
42630 | else | |
42631 | echo "$as_me: failed program was:" >&5 | |
42632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42633 | ||
42634 | ||
42635 | echo "$as_me:$LINENO: result: no" >&5 | |
42636 | echo "${ECHO_T}no" >&6 | |
42637 | ||
42638 | fi | |
ac1cb8d3 | 42639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42640 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
42641 | |
42642 | D='$' | |
42643 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
42644 | #!/bin/sh |
42645 | ||
42646 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
42647 | # script. It is used to generated precompiled headers. | |
42648 | # | |
42649 | # Permission is given to use this file in any way. | |
42650 | ||
1e9e8aba DE |
42651 | outfile="${D}{1}" |
42652 | header="${D}{2}" | |
a848cd7e SC |
42653 | shift |
42654 | shift | |
42655 | ||
42656 | compiler= | |
42657 | headerfile= | |
1e9e8aba DE |
42658 | while test ${D}{#} -gt 0; do |
42659 | case "${D}{1}" in | |
a848cd7e | 42660 | -I* ) |
1e9e8aba DE |
42661 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
42662 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
42663 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
42664 | fi |
42665 | ;; | |
42666 | esac | |
1e9e8aba | 42667 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
42668 | shift |
42669 | done | |
42670 | ||
1e9e8aba DE |
42671 | if test "x${D}{headerfile}" = "x" ; then |
42672 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 42673 | else |
1e9e8aba DE |
42674 | if test -f ${D}{outfile} ; then |
42675 | rm -f ${D}{outfile} | |
a848cd7e | 42676 | else |
1e9e8aba | 42677 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 42678 | fi |
1e9e8aba | 42679 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
42680 | mkdir -p .deps |
42681 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
42682 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
42683 | exit ${D}{?} | |
a848cd7e SC |
42684 | fi |
42685 | EOF | |
1e9e8aba | 42686 | |
a848cd7e SC |
42687 | chmod +x bk-make-pch |
42688 | fi | |
42689 | fi | |
42690 | fi | |
42691 | ||
42692 | ||
42693 | ||
a848cd7e SC |
42694 | COND_BUILD_DEBUG="#" |
42695 | if test "x$BUILD" = "xdebug" ; then | |
42696 | COND_BUILD_DEBUG="" | |
42697 | fi | |
42698 | ||
42699 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
42700 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
42701 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
42702 | fi | |
42703 | ||
42704 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
42705 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
42706 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
42707 | fi | |
42708 | ||
42709 | COND_BUILD_DEBUG_UNICODE_0="#" | |
42710 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
42711 | COND_BUILD_DEBUG_UNICODE_0="" | |
42712 | fi | |
42713 | ||
42714 | COND_BUILD_DEBUG_UNICODE_1="#" | |
42715 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
42716 | COND_BUILD_DEBUG_UNICODE_1="" | |
42717 | fi | |
42718 | ||
42719 | COND_BUILD_RELEASE="#" | |
42720 | if test "x$BUILD" = "xrelease" ; then | |
42721 | COND_BUILD_RELEASE="" | |
42722 | fi | |
42723 | ||
42724 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
42725 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
42726 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
42727 | fi | |
42728 | ||
42729 | COND_BUILD_RELEASE_UNICODE_0="#" | |
42730 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
42731 | COND_BUILD_RELEASE_UNICODE_0="" | |
42732 | fi | |
42733 | ||
42734 | COND_BUILD_RELEASE_UNICODE_1="#" | |
42735 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
42736 | COND_BUILD_RELEASE_UNICODE_1="" | |
42737 | fi | |
42738 | ||
42739 | COND_DEBUG_FLAG_1="#" | |
42740 | if test "x$DEBUG_FLAG" = "x1" ; then | |
42741 | COND_DEBUG_FLAG_1="" | |
42742 | fi | |
42743 | ||
42744 | COND_DEBUG_INFO_0="#" | |
42745 | if test "x$DEBUG_INFO" = "x0" ; then | |
42746 | COND_DEBUG_INFO_0="" | |
42747 | fi | |
42748 | ||
42749 | COND_DEBUG_INFO_1="#" | |
42750 | if test "x$DEBUG_INFO" = "x1" ; then | |
42751 | COND_DEBUG_INFO_1="" | |
42752 | fi | |
42753 | ||
42754 | COND_DEPS_TRACKING_0="#" | |
42755 | if test "x$DEPS_TRACKING" = "x0" ; then | |
42756 | COND_DEPS_TRACKING_0="" | |
42757 | fi | |
42758 | ||
42759 | COND_DEPS_TRACKING_1="#" | |
42760 | if test "x$DEPS_TRACKING" = "x1" ; then | |
42761 | COND_DEPS_TRACKING_1="" | |
42762 | fi | |
42763 | ||
42764 | COND_GCC_PCH_1="#" | |
42765 | if test "x$GCC_PCH" = "x1" ; then | |
42766 | COND_GCC_PCH_1="" | |
42767 | fi | |
42768 | ||
42769 | COND_MONOLITHIC_0="#" | |
42770 | if test "x$MONOLITHIC" = "x0" ; then | |
42771 | COND_MONOLITHIC_0="" | |
42772 | fi | |
42773 | ||
42774 | COND_MONOLITHIC_0_SHARED_0="#" | |
42775 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
42776 | COND_MONOLITHIC_0_SHARED_0="" | |
42777 | fi | |
42778 | ||
42779 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
42780 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
42781 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
42782 | fi | |
42783 | ||
90970d69 DE |
42784 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
42785 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
42786 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
42787 | fi | |
42788 | ||
a848cd7e SC |
42789 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
42790 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42791 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
42792 | fi | |
42793 | ||
6671c68b VZ |
42794 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
42795 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
42796 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
42797 | fi | |
42798 | ||
a848cd7e SC |
42799 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
42800 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
42801 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
42802 | fi | |
42803 | ||
ceec2216 RL |
42804 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
42805 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
42806 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
42807 | fi | |
42808 | ||
a848cd7e SC |
42809 | COND_MONOLITHIC_0_SHARED_1="#" |
42810 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
42811 | COND_MONOLITHIC_0_SHARED_1="" | |
42812 | fi | |
42813 | ||
42814 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
42815 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42816 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
42817 | fi | |
42818 | ||
90970d69 DE |
42819 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
42820 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
42821 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
42822 | fi | |
42823 | ||
a848cd7e SC |
42824 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
42825 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42826 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
42827 | fi | |
42828 | ||
6671c68b VZ |
42829 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
42830 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
42831 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
42832 | fi | |
42833 | ||
a848cd7e SC |
42834 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
42835 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42836 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
42837 | fi | |
42838 | ||
ceec2216 RL |
42839 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
42840 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
42841 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
42842 | fi | |
42843 | ||
a848cd7e SC |
42844 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
42845 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
42846 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
42847 | fi | |
42848 | ||
42849 | COND_MONOLITHIC_1="#" | |
42850 | if test "x$MONOLITHIC" = "x1" ; then | |
42851 | COND_MONOLITHIC_1="" | |
42852 | fi | |
42853 | ||
42854 | COND_MONOLITHIC_1_SHARED_0="#" | |
42855 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
42856 | COND_MONOLITHIC_1_SHARED_0="" | |
42857 | fi | |
42858 | ||
42859 | COND_MONOLITHIC_1_SHARED_1="#" | |
42860 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
42861 | COND_MONOLITHIC_1_SHARED_1="" | |
42862 | fi | |
42863 | ||
42864 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
42865 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42866 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
42867 | fi | |
42868 | ||
42869 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
42870 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42871 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
42872 | fi | |
42873 | ||
42874 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
42875 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
42876 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
42877 | fi | |
42878 | ||
42879 | COND_PLATFORM_MACOSX_1="#" | |
42880 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
42881 | COND_PLATFORM_MACOSX_1="" | |
42882 | fi | |
42883 | ||
a30f955f VS |
42884 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
42885 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
42886 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
42887 | fi | |
42888 | ||
a848cd7e SC |
42889 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
42890 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
42891 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
42892 | fi | |
42893 | ||
42894 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
42895 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
42896 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
42897 | fi | |
42898 | ||
42899 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
42900 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
42901 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
42902 | fi | |
42903 | ||
fc480dc1 DE |
42904 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
42905 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
42906 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
42907 | fi | |
42908 | ||
1e9e8aba DE |
42909 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
42910 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42911 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
42912 | fi | |
42913 | ||
ebee3cd0 VS |
42914 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
42915 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
42916 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
42917 | fi | |
42918 | ||
42919 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
42920 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
42921 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
42922 | fi | |
42923 | ||
a848cd7e SC |
42924 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
42925 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42926 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
42927 | fi | |
42928 | ||
42929 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
42930 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
42931 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
42932 | fi | |
42933 | ||
b48a2016 DE |
42934 | COND_PLATFORM_MACOS_1="#" |
42935 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
42936 | COND_PLATFORM_MACOS_1="" | |
42937 | fi | |
42938 | ||
a848cd7e SC |
42939 | COND_PLATFORM_MAC_1="#" |
42940 | if test "x$PLATFORM_MAC" = "x1" ; then | |
42941 | COND_PLATFORM_MAC_1="" | |
42942 | fi | |
42943 | ||
42944 | COND_PLATFORM_OS2_1="#" | |
42945 | if test "x$PLATFORM_OS2" = "x1" ; then | |
42946 | COND_PLATFORM_OS2_1="" | |
42947 | fi | |
42948 | ||
42949 | COND_PLATFORM_UNIX_0="#" | |
42950 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
42951 | COND_PLATFORM_UNIX_0="" | |
42952 | fi | |
42953 | ||
42954 | COND_PLATFORM_UNIX_1="#" | |
42955 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
42956 | COND_PLATFORM_UNIX_1="" | |
42957 | fi | |
42958 | ||
42959 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
42960 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42961 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
42962 | fi | |
42963 | ||
42964 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
42965 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
42966 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
42967 | fi | |
42968 | ||
42969 | COND_PLATFORM_WIN32_0="#" | |
42970 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
42971 | COND_PLATFORM_WIN32_0="" | |
42972 | fi | |
42973 | ||
42974 | COND_PLATFORM_WIN32_1="#" | |
42975 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
42976 | COND_PLATFORM_WIN32_1="" | |
42977 | fi | |
42978 | ||
42979 | COND_SHARED_0="#" | |
42980 | if test "x$SHARED" = "x0" ; then | |
42981 | COND_SHARED_0="" | |
42982 | fi | |
42983 | ||
ceec2216 RL |
42984 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
42985 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
42986 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
42987 | fi | |
42988 | ||
42989 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
42990 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
42991 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
42992 | fi | |
42993 | ||
42994 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
42995 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
42996 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
42997 | fi | |
42998 | ||
a848cd7e SC |
42999 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
43000 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
43001 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
43002 | fi | |
43003 | ||
43004 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
43005 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
43006 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
43007 | fi | |
43008 | ||
43009 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
43010 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
43011 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
43012 | fi | |
43013 | ||
43014 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
43015 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
43016 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
43017 | fi | |
43018 | ||
52ada004 RL |
43019 | COND_SHARED_0_USE_XRC_1="#" |
43020 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
43021 | COND_SHARED_0_USE_XRC_1="" | |
43022 | fi | |
43023 | ||
a848cd7e SC |
43024 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
43025 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
43026 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
43027 | fi | |
43028 | ||
43029 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
43030 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
43031 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
43032 | fi | |
43033 | ||
43034 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
43035 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
43036 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
43037 | fi | |
43038 | ||
43039 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
43040 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
43041 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
43042 | fi | |
43043 | ||
43044 | COND_SHARED_1="#" | |
43045 | if test "x$SHARED" = "x1" ; then | |
43046 | COND_SHARED_1="" | |
43047 | fi | |
43048 | ||
43049 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
43050 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
43051 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
43052 | fi | |
43053 | ||
52ada004 RL |
43054 | COND_SHARED_1_USE_XRC_1="#" |
43055 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
43056 | COND_SHARED_1_USE_XRC_1="" | |
43057 | fi | |
43058 | ||
a30f955f VS |
43059 | COND_TOOLKIT_="#" |
43060 | if test "x$TOOLKIT" = "x" ; then | |
43061 | COND_TOOLKIT_="" | |
43062 | fi | |
43063 | ||
a848cd7e SC |
43064 | COND_TOOLKIT_COCOA="#" |
43065 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
43066 | COND_TOOLKIT_COCOA="" | |
43067 | fi | |
43068 | ||
a49baeab DE |
43069 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
43070 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
43071 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
43072 | fi | |
43073 | ||
a848cd7e SC |
43074 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
43075 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43076 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
43077 | fi | |
43078 | ||
43079 | COND_TOOLKIT_GTK="#" | |
43080 | if test "x$TOOLKIT" = "xGTK" ; then | |
43081 | COND_TOOLKIT_GTK="" | |
43082 | fi | |
43083 | ||
43084 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
43085 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
43086 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
43087 | fi | |
43088 | ||
43089 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
43090 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43091 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
43092 | fi | |
43093 | ||
43094 | COND_TOOLKIT_MAC="#" | |
43095 | if test "x$TOOLKIT" = "xMAC" ; then | |
43096 | COND_TOOLKIT_MAC="" | |
43097 | fi | |
43098 | ||
43099 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
43100 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
43101 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
43102 | fi | |
43103 | ||
43104 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
43105 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43106 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
43107 | fi | |
43108 | ||
43109 | COND_TOOLKIT_MGL="#" | |
43110 | if test "x$TOOLKIT" = "xMGL" ; then | |
43111 | COND_TOOLKIT_MGL="" | |
43112 | fi | |
43113 | ||
43114 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
43115 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
43116 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
43117 | fi | |
43118 | ||
43119 | COND_TOOLKIT_MOTIF="#" | |
43120 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
43121 | COND_TOOLKIT_MOTIF="" | |
43122 | fi | |
43123 | ||
43124 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
43125 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
43126 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
43127 | fi | |
43128 | ||
43129 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
43130 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43131 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
43132 | fi | |
43133 | ||
43134 | COND_TOOLKIT_MSW="#" | |
43135 | if test "x$TOOLKIT" = "xMSW" ; then | |
43136 | COND_TOOLKIT_MSW="" | |
43137 | fi | |
43138 | ||
43139 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
43140 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
43141 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
43142 | fi | |
43143 | ||
43144 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
43145 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43146 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
43147 | fi | |
43148 | ||
43149 | COND_TOOLKIT_PM="#" | |
43150 | if test "x$TOOLKIT" = "xPM" ; then | |
43151 | COND_TOOLKIT_PM="" | |
43152 | fi | |
43153 | ||
43154 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
43155 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
43156 | COND_TOOLKIT_PM_USE_GUI_1="" | |
43157 | fi | |
43158 | ||
43159 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
43160 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43161 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
43162 | fi | |
43163 | ||
3fd9c298 DE |
43164 | COND_TOOLKIT_WINCE="#" |
43165 | if test "x$TOOLKIT" = "xWINCE" ; then | |
43166 | COND_TOOLKIT_WINCE="" | |
43167 | fi | |
43168 | ||
43169 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
43170 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
43171 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
43172 | fi | |
43173 | ||
43174 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
43175 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43176 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
43177 | fi | |
43178 | ||
a848cd7e SC |
43179 | COND_TOOLKIT_X11="#" |
43180 | if test "x$TOOLKIT" = "xX11" ; then | |
43181 | COND_TOOLKIT_X11="" | |
43182 | fi | |
43183 | ||
43184 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
43185 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
43186 | COND_TOOLKIT_X11_USE_GUI_1="" | |
43187 | fi | |
43188 | ||
43189 | COND_UNICODE_1="#" | |
43190 | if test "x$UNICODE" = "x1" ; then | |
43191 | COND_UNICODE_1="" | |
43192 | fi | |
43193 | ||
43194 | COND_USE_EXCEPTIONS_0="#" | |
43195 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
43196 | COND_USE_EXCEPTIONS_0="" | |
43197 | fi | |
43198 | ||
43199 | COND_USE_EXCEPTIONS_1="#" | |
43200 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
43201 | COND_USE_EXCEPTIONS_1="" | |
43202 | fi | |
43203 | ||
43204 | COND_USE_GUI_0="#" | |
43205 | if test "x$USE_GUI" = "x0" ; then | |
43206 | COND_USE_GUI_0="" | |
43207 | fi | |
43208 | ||
43209 | COND_USE_GUI_1="#" | |
43210 | if test "x$USE_GUI" = "x1" ; then | |
43211 | COND_USE_GUI_1="" | |
43212 | fi | |
43213 | ||
43214 | COND_USE_GUI_1_WXUNIV_0="#" | |
43215 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43216 | COND_USE_GUI_1_WXUNIV_0="" | |
43217 | fi | |
43218 | ||
43219 | COND_USE_GUI_1_WXUNIV_1="#" | |
43220 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
43221 | COND_USE_GUI_1_WXUNIV_1="" | |
43222 | fi | |
43223 | ||
43224 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
43225 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
43226 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
43227 | fi | |
43228 | ||
43229 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
43230 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
43231 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
43232 | fi | |
43233 | ||
43234 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
43235 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
43236 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
43237 | fi | |
43238 | ||
ceec2216 RL |
43239 | COND_USE_ODBC_1="#" |
43240 | if test "x$USE_ODBC" = "x1" ; then | |
43241 | COND_USE_ODBC_1="" | |
43242 | fi | |
43243 | ||
ffa0583f RL |
43244 | COND_USE_OPENGL_1="#" |
43245 | if test "x$USE_OPENGL" = "x1" ; then | |
43246 | COND_USE_OPENGL_1="" | |
43247 | fi | |
43248 | ||
a848cd7e SC |
43249 | COND_USE_PLUGINS_0="#" |
43250 | if test "x$USE_PLUGINS" = "x0" ; then | |
43251 | COND_USE_PLUGINS_0="" | |
43252 | fi | |
43253 | ||
0b78747f MW |
43254 | COND_USE_RTTI_0="#" |
43255 | if test "x$USE_RTTI" = "x0" ; then | |
43256 | COND_USE_RTTI_0="" | |
43257 | fi | |
43258 | ||
43259 | COND_USE_RTTI_1="#" | |
43260 | if test "x$USE_RTTI" = "x1" ; then | |
43261 | COND_USE_RTTI_1="" | |
43262 | fi | |
43263 | ||
a848cd7e SC |
43264 | COND_USE_SOSYMLINKS_1="#" |
43265 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
43266 | COND_USE_SOSYMLINKS_1="" | |
43267 | fi | |
43268 | ||
43269 | COND_USE_SOVERLINUX_1="#" | |
43270 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
43271 | COND_USE_SOVERLINUX_1="" | |
43272 | fi | |
43273 | ||
43274 | COND_USE_SOVERSION_0="#" | |
43275 | if test "x$USE_SOVERSION" = "x0" ; then | |
43276 | COND_USE_SOVERSION_0="" | |
43277 | fi | |
43278 | ||
43279 | COND_USE_SOVERSOLARIS_1="#" | |
43280 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
43281 | COND_USE_SOVERSOLARIS_1="" | |
43282 | fi | |
43283 | ||
0b78747f MW |
43284 | COND_USE_THREADS_0="#" |
43285 | if test "x$USE_THREADS" = "x0" ; then | |
43286 | COND_USE_THREADS_0="" | |
43287 | fi | |
43288 | ||
43289 | COND_USE_THREADS_1="#" | |
43290 | if test "x$USE_THREADS" = "x1" ; then | |
43291 | COND_USE_THREADS_1="" | |
43292 | fi | |
43293 | ||
a13a7f89 RL |
43294 | COND_USE_XRC_1="#" |
43295 | if test "x$USE_XRC" = "x1" ; then | |
43296 | COND_USE_XRC_1="" | |
43297 | fi | |
43298 | ||
a848cd7e SC |
43299 | COND_WITH_PLUGIN_SDL_1="#" |
43300 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
43301 | COND_WITH_PLUGIN_SDL_1="" | |
43302 | fi | |
43303 | ||
1e6eb025 VZ |
43304 | COND_WXUNIV_0="#" |
43305 | if test "x$WXUNIV" = "x0" ; then | |
43306 | COND_WXUNIV_0="" | |
43307 | fi | |
43308 | ||
a848cd7e SC |
43309 | COND_WXUNIV_1="#" |
43310 | if test "x$WXUNIV" = "x1" ; then | |
43311 | COND_WXUNIV_1="" | |
43312 | fi | |
43313 | ||
43314 | COND_WXUSE_EXPAT_BUILTIN="#" | |
43315 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
43316 | COND_WXUSE_EXPAT_BUILTIN="" | |
43317 | fi | |
43318 | ||
43319 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
43320 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
43321 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
43322 | fi | |
43323 | ||
43324 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
43325 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
43326 | COND_WXUSE_LIBPNG_BUILTIN="" | |
43327 | fi | |
43328 | ||
43329 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
43330 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
43331 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
43332 | fi | |
43333 | ||
43334 | COND_WXUSE_ODBC_BUILTIN="#" | |
43335 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
43336 | COND_WXUSE_ODBC_BUILTIN="" | |
43337 | fi | |
43338 | ||
43339 | COND_WXUSE_REGEX_BUILTIN="#" | |
43340 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
43341 | COND_WXUSE_REGEX_BUILTIN="" | |
43342 | fi | |
43343 | ||
43344 | COND_WXUSE_ZLIB_BUILTIN="#" | |
43345 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
43346 | COND_WXUSE_ZLIB_BUILTIN="" | |
43347 | fi | |
43348 | ||
43349 | ||
43350 | ||
2057db16 VS |
43351 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
43352 | { { 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 | |
43353 | 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;} | |
43354 | { (exit 1); exit 1; }; } | |
43355 | fi | |
43356 | ||
a848cd7e | 43357 | |
ceec2216 RL |
43358 | if test "$wxUSE_SHARED" = "yes"; then |
43359 | ||
43360 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
43361 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
43362 | ||
5b674b9d DE |
43363 | case "${host}" in |
43364 | *-pc-os2_emx | *-pc-os2-emx ) | |
43365 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
43366 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
43367 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
43368 | cp -p ${srcdir}/src/os2/dllar.sh . | |
43369 | ;; | |
43370 | esac | |
ceec2216 RL |
43371 | else |
43372 | ||
43373 | EXE_LINKER="$CXX -o" | |
43374 | ||
43375 | fi | |
69120ee4 VZ |
43376 | if test "$wxUSE_OMF" = "yes"; then |
43377 | case "${host}" in | |
43378 | *-pc-os2_emx | *-pc-os2-emx ) | |
43379 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
43380 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
43381 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
43382 | ;; | |
43383 | esac | |
43384 | fi | |
a848cd7e | 43385 | |
74b84332 | 43386 | GCC_PRAGMA_FLAGS="" |
c08ebc62 DE |
43387 | PCH_FLAGS="" |
43388 | if test $GCC_PCH = 1 ; then | |
43389 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
43390 | PCH_FLAGS="-DWX_PRECOMP" | |
43391 | else | |
a848cd7e SC |
43392 | case "${host}" in |
43393 | powerpc-*-darwin* ) | |
74b84332 | 43394 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 43395 | ;; |
bea8e651 | 43396 | *-*-mingw32* ) |
1f344abf VS |
43397 | if test "$wxUSE_STL" = "yes" -o \ |
43398 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
43399 | "$wxUSE_NO_RTTI" != "yes"; then | |
43400 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
43401 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
43402 | cat >conftest.$ac_ext <<_ACEOF |
43403 | /* confdefs.h. */ | |
43404 | _ACEOF | |
43405 | cat confdefs.h >>conftest.$ac_ext | |
43406 | cat >>conftest.$ac_ext <<_ACEOF | |
43407 | /* end confdefs.h. */ | |
43408 | ||
3314e67b RR |
43409 | int |
43410 | main () | |
43411 | { | |
43412 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
43413 | #error "Not GCC 3.2 or greater" | |
43414 | #endif | |
43415 | ||
43416 | ; | |
43417 | return 0; | |
43418 | } | |
43419 | _ACEOF | |
43420 | rm -f conftest.$ac_objext | |
43421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43422 | (eval $ac_compile) 2>conftest.er1 | |
43423 | ac_status=$? | |
43424 | grep -v '^ *+' conftest.er1 >conftest.err | |
43425 | rm -f conftest.er1 | |
43426 | cat conftest.err >&5 | |
43427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43428 | (exit $ac_status); } && | |
9dd0f6c2 | 43429 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3314e67b RR |
43430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43431 | (eval $ac_try) 2>&5 | |
43432 | ac_status=$? | |
43433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43434 | (exit $ac_status); }; } && | |
43435 | { ac_try='test -s conftest.$ac_objext' | |
43436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43437 | (eval $ac_try) 2>&5 | |
43438 | ac_status=$? | |
43439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43440 | (exit $ac_status); }; }; then | |
43441 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
43442 | echo "$as_me:$LINENO: result: yes" >&5 | |
43443 | echo "${ECHO_T}yes" >&6 | |
43444 | else | |
43445 | echo "$as_me: failed program was:" >&5 | |
43446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43447 | ||
43448 | echo "$as_me:$LINENO: result: no" >&5 | |
43449 | echo "${ECHO_T}no" >&6 | |
43450 | fi | |
43451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43452 | fi | |
43453 | ;; | |
43454 | *-pc-os2_emx | *-pc-os2-emx ) | |
43455 | if test "$wxUSE_STL" = "yes"; then | |
43456 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
43457 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
43458 | cat >conftest.$ac_ext <<_ACEOF | |
43459 | /* confdefs.h. */ | |
43460 | _ACEOF | |
43461 | cat confdefs.h >>conftest.$ac_ext | |
43462 | cat >>conftest.$ac_ext <<_ACEOF | |
43463 | /* end confdefs.h. */ | |
43464 | ||
bea8e651 MB |
43465 | int |
43466 | main () | |
43467 | { | |
1f344abf | 43468 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
43469 | #error "Not GCC 3.2 or greater" |
43470 | #endif | |
43471 | ||
43472 | ; | |
43473 | return 0; | |
43474 | } | |
43475 | _ACEOF | |
43476 | rm -f conftest.$ac_objext | |
43477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43478 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 43479 | ac_status=$? |
ac1cb8d3 VS |
43480 | grep -v '^ *+' conftest.er1 >conftest.err |
43481 | rm -f conftest.er1 | |
43482 | cat conftest.err >&5 | |
bea8e651 MB |
43483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43484 | (exit $ac_status); } && | |
9dd0f6c2 | 43485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43487 | (eval $ac_try) 2>&5 | |
43488 | ac_status=$? | |
43489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43490 | (exit $ac_status); }; } && | |
43491 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
43492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43493 | (eval $ac_try) 2>&5 | |
43494 | ac_status=$? | |
43495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43496 | (exit $ac_status); }; }; then | |
74b84332 | 43497 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
43498 | echo "$as_me:$LINENO: result: yes" >&5 |
43499 | echo "${ECHO_T}yes" >&6 | |
43500 | else | |
43501 | echo "$as_me: failed program was:" >&5 | |
43502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43503 | ||
43504 | echo "$as_me:$LINENO: result: no" >&5 | |
43505 | echo "${ECHO_T}no" >&6 | |
43506 | fi | |
ac1cb8d3 | 43507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
43508 | fi |
43509 | ;; | |
a848cd7e SC |
43510 | esac |
43511 | fi | |
d2083416 | 43512 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
43513 | |
43514 | ||
43515 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
43516 | ||
43517 | ||
43518 | ||
43519 | ||
43520 | ||
43521 | ||
43522 | ||
43523 | ||
43524 | ||
43525 | ||
43526 | ||
43527 | ||
43528 | ||
43529 | ||
43530 | ||
43531 | ||
43532 | ||
43533 | ||
43534 | ||
43535 | ||
43536 | ||
43537 | ||
43538 | ||
43539 | ||
43540 | ||
43541 | ||
43542 | ||
43543 | ||
43544 | ||
43545 | ||
43546 | ||
43547 | ||
43548 | ||
43549 | ||
43550 | ||
43551 | ||
43552 | ||
43553 | ||
43554 | ||
43555 | ||
43556 | ||
43557 | ||
a848cd7e SC |
43558 | |
43559 | ||
43560 | ||
43561 | ||
43562 | ||
43563 | ||
43564 | ||
43565 | ||
43566 | ||
43567 | ||
43568 | ||
43569 | ||
43570 | ||
43571 | ||
43572 | ||
43573 | ||
43574 | ||
43575 | ||
74b84332 | 43576 | |
a848cd7e SC |
43577 | |
43578 | ||
43579 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
43580 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 43581 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
43582 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
43583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43584 | else | |
43585 | cat >conftest.make <<\_ACEOF | |
43586 | all: | |
43587 | @echo 'ac_maketemp="$(MAKE)"' | |
43588 | _ACEOF | |
43589 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
43590 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
43591 | if test -n "$ac_maketemp"; then | |
43592 | eval ac_cv_prog_make_${ac_make}_set=yes | |
43593 | else | |
43594 | eval ac_cv_prog_make_${ac_make}_set=no | |
43595 | fi | |
43596 | rm -f conftest.make | |
43597 | fi | |
43598 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
43599 | echo "$as_me:$LINENO: result: yes" >&5 | |
43600 | echo "${ECHO_T}yes" >&6 | |
43601 | SET_MAKE= | |
43602 | else | |
43603 | echo "$as_me:$LINENO: result: no" >&5 | |
43604 | echo "${ECHO_T}no" >&6 | |
43605 | SET_MAKE="MAKE=${MAKE-make}" | |
43606 | fi | |
43607 | ||
43608 | ||
a848cd7e | 43609 | |
ceec2216 RL |
43610 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
43611 | ||
a848cd7e | 43612 | |
ceec2216 | 43613 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 43614 | |
a848cd7e | 43615 | |
ceec2216 | 43616 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 43617 | |
ceec2216 RL |
43618 | |
43619 | ac_config_files="$ac_config_files version-script Makefile" | |
43620 | ||
43621 | ||
43622 | ac_config_commands="$ac_config_commands wx-config | |
43623 | " | |
a848cd7e SC |
43624 | |
43625 | ||
9103d280 RL |
43626 | |
43627 | ||
a848cd7e SC |
43628 | if test "$wxUSE_GUI" = "yes"; then |
43629 | SUBDIRS="samples demos utils contrib" | |
43630 | else SUBDIRS="samples utils" | |
43631 | fi | |
43632 | ||
43633 | ||
43634 | ||
43635 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
43636 | if test "${with_cppunit_prefix+set}" = set; then | |
43637 | withval="$with_cppunit_prefix" | |
43638 | cppunit_config_prefix="$withval" | |
43639 | else | |
43640 | cppunit_config_prefix="" | |
43641 | fi; | |
43642 | ||
43643 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
43644 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
43645 | withval="$with_cppunit_exec_prefix" | |
43646 | cppunit_config_exec_prefix="$withval" | |
43647 | else | |
43648 | cppunit_config_exec_prefix="" | |
43649 | fi; | |
43650 | ||
43651 | if test x$cppunit_config_exec_prefix != x ; then | |
43652 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
43653 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
43654 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
43655 | fi | |
43656 | fi | |
43657 | if test x$cppunit_config_prefix != x ; then | |
43658 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
43659 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
43660 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
43661 | fi | |
43662 | fi | |
43663 | ||
43664 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
43665 | set dummy cppunit-config; ac_word=$2 | |
43666 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43668 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
43669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43670 | else | |
43671 | case $CPPUNIT_CONFIG in | |
43672 | [\\/]* | ?:[\\/]*) | |
43673 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
43674 | ;; | |
43675 | *) | |
43676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43677 | for as_dir in $PATH | |
43678 | do | |
43679 | IFS=$as_save_IFS | |
43680 | test -z "$as_dir" && as_dir=. | |
43681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43682 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43683 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
43684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43685 | break 2 | |
43686 | fi | |
43687 | done | |
43688 | done | |
43689 | ||
43690 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
43691 | ;; | |
43692 | esac | |
43693 | fi | |
43694 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
43695 | ||
43696 | if test -n "$CPPUNIT_CONFIG"; then | |
43697 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
43698 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
43699 | else | |
43700 | echo "$as_me:$LINENO: result: no" >&5 | |
43701 | echo "${ECHO_T}no" >&6 | |
43702 | fi | |
43703 | ||
43704 | cppunit_version_min=1.8.0 | |
43705 | ||
43706 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
43707 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
43708 | no_cppunit="" | |
43709 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
43710 | no_cppunit=yes | |
43711 | else | |
43712 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
43713 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
43714 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
43715 | ||
43716 | cppunit_major_version=`echo $cppunit_version | \ | |
43717 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
43718 | cppunit_minor_version=`echo $cppunit_version | \ | |
43719 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
43720 | cppunit_micro_version=`echo $cppunit_version | \ | |
43721 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
43722 | ||
43723 | cppunit_major_min=`echo $cppunit_version_min | \ | |
43724 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
43725 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
43726 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
43727 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
43728 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
43729 | ||
43730 | cppunit_version_proper=`expr \ | |
43731 | $cppunit_major_version \> $cppunit_major_min \| \ | |
43732 | $cppunit_major_version \= $cppunit_major_min \& \ | |
43733 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
43734 | $cppunit_major_version \= $cppunit_major_min \& \ | |
43735 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
43736 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
43737 | ||
43738 | if test "$cppunit_version_proper" = "1" ; then | |
43739 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
43740 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
43741 | else | |
43742 | echo "$as_me:$LINENO: result: no" >&5 | |
43743 | echo "${ECHO_T}no" >&6 | |
43744 | no_cppunit=yes | |
43745 | fi | |
43746 | fi | |
43747 | ||
43748 | if test "x$no_cppunit" = x ; then | |
c2218763 | 43749 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
43750 | else |
43751 | CPPUNIT_CFLAGS="" | |
43752 | CPPUNIT_LIBS="" | |
c2218763 | 43753 | : |
a848cd7e SC |
43754 | fi |
43755 | ||
43756 | ||
43757 | ||
43758 | ||
43759 | ||
43760 | for subdir in `echo $SUBDIRS`; do | |
43761 | if test -d ${srcdir}/${subdir} ; then | |
43762 | if test "$wxUSE_GUI" = "yes"; then | |
43763 | if test ${subdir} = "samples"; then | |
43764 | makefiles="samples/Makefile.in $makefiles" | |
43765 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
43766 | if test -d $srcdir/samples/$sample; then | |
43767 | makefiles="samples/$sample/Makefile.in $makefiles" | |
43768 | fi | |
43769 | done | |
43770 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
43771 | fi | |
43772 | else if test ${subdir} = "samples"; then | |
43773 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
43774 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
43775 | makefiles="" |
43776 | for util in HelpGen tex2rtf ; do | |
43777 | if test -d $srcdir/utils/$util ; then | |
43778 | makefiles="utils/$util/Makefile.in \ | |
43779 | utils/$util/src/Makefile.in \ | |
43780 | $makefiles" | |
43781 | fi | |
43782 | done | |
a848cd7e SC |
43783 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
43784 | fi | |
43785 | fi | |
43786 | ||
43787 | for mkin in $makefiles ; do | |
43788 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
43789 | ac_config_files="$ac_config_files $mk" | |
43790 | ||
43791 | done | |
43792 | fi | |
43793 | done | |
43794 | ||
43795 | ||
43796 | cat >confcache <<\_ACEOF | |
43797 | # This file is a shell script that caches the results of configure | |
43798 | # tests run on this system so they can be shared between configure | |
43799 | # scripts and configure runs, see configure's option --config-cache. | |
43800 | # It is not useful on other systems. If it contains results you don't | |
43801 | # want to keep, you may remove or edit it. | |
43802 | # | |
43803 | # config.status only pays attention to the cache file if you give it | |
43804 | # the --recheck option to rerun configure. | |
43805 | # | |
43806 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
43807 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
43808 | # following values. | |
43809 | ||
43810 | _ACEOF | |
43811 | ||
43812 | # The following way of writing the cache mishandles newlines in values, | |
43813 | # but we know of no workaround that is simple, portable, and efficient. | |
43814 | # So, don't put newlines in cache variables' values. | |
43815 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
43816 | # and sets the high bit in the cache file unless we assign to the vars. | |
43817 | { | |
43818 | (set) 2>&1 | | |
43819 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
43820 | *ac_space=\ *) | |
43821 | # `set' does not quote correctly, so add quotes (double-quote | |
43822 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
43823 | sed -n \ | |
ac1cb8d3 VS |
43824 | "s/'/'\\\\''/g; |
43825 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
43826 | ;; |
43827 | *) | |
43828 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
43829 | sed -n \ | |
ac1cb8d3 | 43830 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
43831 | ;; |
43832 | esac; | |
43833 | } | | |
43834 | sed ' | |
43835 | t clear | |
43836 | : clear | |
43837 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
43838 | t end | |
43839 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
43840 | : end' >>confcache | |
43841 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
43842 | if test -w $cache_file; then | |
43843 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
43844 | cat confcache >$cache_file | |
43845 | else | |
43846 | echo "not updating unwritable cache $cache_file" | |
43847 | fi | |
43848 | fi | |
43849 | rm -f confcache | |
43850 | ||
43851 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
43852 | # Let make expand exec_prefix. | |
43853 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
43854 | ||
43855 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
43856 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
43857 | # trailing colons and then remove the whole line if VPATH becomes empty | |
43858 | # (actually we leave an empty line to preserve line numbers). | |
43859 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 43860 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
43861 | s/:*\$(srcdir):*/:/; |
43862 | s/:*\${srcdir}:*/:/; | |
43863 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 43864 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 43865 | s/:*$//; |
ac1cb8d3 | 43866 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
43867 | }' |
43868 | fi | |
43869 | ||
43870 | DEFS=-DHAVE_CONFIG_H | |
43871 | ||
43872 | ac_libobjs= | |
43873 | ac_ltlibobjs= | |
43874 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
43875 | # 1. Remove the extension, and $U if already installed. | |
43876 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 43877 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
43878 | # 2. Add them. |
43879 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
43880 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
43881 | done | |
43882 | LIBOBJS=$ac_libobjs | |
43883 | ||
43884 | LTLIBOBJS=$ac_ltlibobjs | |
43885 | ||
43886 | ||
43887 | ||
43888 | : ${CONFIG_STATUS=./config.status} | |
43889 | ac_clean_files_save=$ac_clean_files | |
43890 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
43891 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
43892 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
43893 | cat >$CONFIG_STATUS <<_ACEOF | |
43894 | #! $SHELL | |
43895 | # Generated by $as_me. | |
43896 | # Run this file to recreate the current configuration. | |
43897 | # Compiler output produced by configure, useful for debugging | |
43898 | # configure, is in config.log if it exists. | |
43899 | ||
43900 | debug=false | |
43901 | ac_cs_recheck=false | |
43902 | ac_cs_silent=false | |
43903 | SHELL=\${CONFIG_SHELL-$SHELL} | |
43904 | _ACEOF | |
43905 | ||
43906 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43907 | ## --------------------- ## | |
43908 | ## M4sh Initialization. ## | |
43909 | ## --------------------- ## | |
43910 | ||
43911 | # Be Bourne compatible | |
43912 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
43913 | emulate sh | |
43914 | NULLCMD=: | |
43915 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
43916 | # is contrary to our usage. Disable this feature. | |
43917 | alias -g '${1+"$@"}'='"$@"' | |
43918 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
43919 | set -o posix | |
43920 | fi | |
ac1cb8d3 | 43921 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
43922 | |
43923 | # Support unset when possible. | |
ac1cb8d3 | 43924 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
43925 | as_unset=unset |
43926 | else | |
43927 | as_unset=false | |
43928 | fi | |
43929 | ||
43930 | ||
43931 | # Work around bugs in pre-3.0 UWIN ksh. | |
43932 | $as_unset ENV MAIL MAILPATH | |
43933 | PS1='$ ' | |
43934 | PS2='> ' | |
43935 | PS4='+ ' | |
43936 | ||
43937 | # NLS nuisances. | |
43938 | for as_var in \ | |
43939 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43940 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
43941 | LC_TELEPHONE LC_TIME | |
43942 | do | |
ac1cb8d3 | 43943 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
43944 | eval $as_var=C; export $as_var |
43945 | else | |
43946 | $as_unset $as_var | |
43947 | fi | |
43948 | done | |
43949 | ||
43950 | # Required to use basename. | |
43951 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
43952 | as_expr=expr | |
43953 | else | |
43954 | as_expr=false | |
43955 | fi | |
43956 | ||
43957 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
43958 | as_basename=basename | |
43959 | else | |
43960 | as_basename=false | |
43961 | fi | |
43962 | ||
43963 | ||
43964 | # Name of the executable. | |
43965 | as_me=`$as_basename "$0" || | |
43966 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
43967 | X"$0" : 'X\(//\)$' \| \ | |
43968 | X"$0" : 'X\(/\)$' \| \ | |
43969 | . : '\(.\)' 2>/dev/null || | |
43970 | echo X/"$0" | | |
43971 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
43972 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
43973 | /^X\/\(\/\).*/{ s//\1/; q; } | |
43974 | s/.*/./; q'` | |
43975 | ||
43976 | ||
43977 | # PATH needs CR, and LINENO needs CR and PATH. | |
43978 | # Avoid depending upon Character Ranges. | |
43979 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
43980 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
43981 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
43982 | as_cr_digits='0123456789' | |
43983 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
43984 | ||
43985 | # The user is always right. | |
43986 | if test "${PATH_SEPARATOR+set}" != set; then | |
43987 | echo "#! /bin/sh" >conf$$.sh | |
43988 | echo "exit 0" >>conf$$.sh | |
43989 | chmod +x conf$$.sh | |
43990 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
43991 | PATH_SEPARATOR=';' | |
43992 | else | |
43993 | PATH_SEPARATOR=: | |
43994 | fi | |
43995 | rm -f conf$$.sh | |
43996 | fi | |
43997 | ||
43998 | ||
43999 | as_lineno_1=$LINENO | |
44000 | as_lineno_2=$LINENO | |
44001 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
44002 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
44003 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
44004 | # Find who we are. Look in the path if we contain no path at all | |
44005 | # relative or not. | |
44006 | case $0 in | |
44007 | *[\\/]* ) as_myself=$0 ;; | |
44008 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44009 | for as_dir in $PATH | |
44010 | do | |
44011 | IFS=$as_save_IFS | |
44012 | test -z "$as_dir" && as_dir=. | |
44013 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
44014 | done | |
44015 | ||
44016 | ;; | |
44017 | esac | |
44018 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
44019 | # in which case we are not to be found in the path. | |
44020 | if test "x$as_myself" = x; then | |
44021 | as_myself=$0 | |
44022 | fi | |
44023 | if test ! -f "$as_myself"; then | |
44024 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
44025 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
44026 | { (exit 1); exit 1; }; } | |
44027 | fi | |
44028 | case $CONFIG_SHELL in | |
44029 | '') | |
44030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44031 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
44032 | do | |
44033 | IFS=$as_save_IFS | |
44034 | test -z "$as_dir" && as_dir=. | |
44035 | for as_base in sh bash ksh sh5; do | |
44036 | case $as_dir in | |
44037 | /*) | |
44038 | if ("$as_dir/$as_base" -c ' | |
44039 | as_lineno_1=$LINENO | |
44040 | as_lineno_2=$LINENO | |
44041 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
44042 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
44043 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
44044 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
44045 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
44046 | CONFIG_SHELL=$as_dir/$as_base | |
44047 | export CONFIG_SHELL | |
44048 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
44049 | fi;; | |
44050 | esac | |
44051 | done | |
44052 | done | |
44053 | ;; | |
44054 | esac | |
44055 | ||
44056 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
44057 | # uniformly replaced by the line number. The first 'sed' inserts a | |
44058 | # line-number line before each line; the second 'sed' does the real | |
44059 | # work. The second script uses 'N' to pair each line-number line | |
44060 | # with the numbered line, and appends trailing '-' during | |
44061 | # substitution so that $LINENO is not a special case at line end. | |
44062 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
44063 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
44064 | sed '=' <$as_myself | | |
44065 | sed ' | |
44066 | N | |
44067 | s,$,-, | |
44068 | : loop | |
44069 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
44070 | t loop | |
44071 | s,-$,, | |
44072 | s,^['$as_cr_digits']*\n,, | |
44073 | ' >$as_me.lineno && | |
44074 | chmod +x $as_me.lineno || | |
44075 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
44076 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
44077 | { (exit 1); exit 1; }; } | |
44078 | ||
44079 | # Don't try to exec as it changes $[0], causing all sort of problems | |
44080 | # (the dirname of $[0] is not the place where we might find the | |
44081 | # original and so on. Autoconf is especially sensible to this). | |
44082 | . ./$as_me.lineno | |
44083 | # Exit status is that of the last command. | |
44084 | exit | |
44085 | } | |
44086 | ||
44087 | ||
44088 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
44089 | *c*,-n*) ECHO_N= ECHO_C=' | |
44090 | ' ECHO_T=' ' ;; | |
44091 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
44092 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
44093 | esac | |
44094 | ||
44095 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
44096 | as_expr=expr | |
44097 | else | |
44098 | as_expr=false | |
44099 | fi | |
44100 | ||
44101 | rm -f conf$$ conf$$.exe conf$$.file | |
44102 | echo >conf$$.file | |
44103 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
44104 | # We could just check for DJGPP; but this test a) works b) is more generic | |
44105 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
44106 | if test -f conf$$.exe; then | |
44107 | # Don't use ln at all; we don't have any links | |
44108 | as_ln_s='cp -p' | |
44109 | else | |
44110 | as_ln_s='ln -s' | |
44111 | fi | |
44112 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
44113 | as_ln_s=ln | |
44114 | else | |
44115 | as_ln_s='cp -p' | |
44116 | fi | |
44117 | rm -f conf$$ conf$$.exe conf$$.file | |
44118 | ||
44119 | if mkdir -p . 2>/dev/null; then | |
44120 | as_mkdir_p=: | |
44121 | else | |
ac1cb8d3 | 44122 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
44123 | as_mkdir_p=false |
44124 | fi | |
44125 | ||
44126 | as_executable_p="test -f" | |
44127 | ||
44128 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 44129 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
44130 | |
44131 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 44132 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
44133 | |
44134 | ||
44135 | # IFS | |
44136 | # We need space, tab and new line, in precisely that order. | |
44137 | as_nl=' | |
44138 | ' | |
44139 | IFS=" $as_nl" | |
44140 | ||
44141 | # CDPATH. | |
44142 | $as_unset CDPATH | |
44143 | ||
44144 | exec 6>&1 | |
44145 | ||
44146 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
44147 | # report actual input values of CONFIG_FILES etc. instead of their | |
44148 | # values after options handling. Logging --version etc. is OK. | |
44149 | exec 5>>config.log | |
44150 | { | |
44151 | echo | |
44152 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
44153 | ## Running $as_me. ## | |
44154 | _ASBOX | |
44155 | } >&5 | |
44156 | cat >&5 <<_CSEOF | |
44157 | ||
e0d84535 | 44158 | This file was extended by wxWidgets $as_me 2.6.0, which was |
ac1cb8d3 | 44159 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
44160 | |
44161 | CONFIG_FILES = $CONFIG_FILES | |
44162 | CONFIG_HEADERS = $CONFIG_HEADERS | |
44163 | CONFIG_LINKS = $CONFIG_LINKS | |
44164 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
44165 | $ $0 $@ | |
44166 | ||
44167 | _CSEOF | |
44168 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
44169 | echo >&5 | |
44170 | _ACEOF | |
44171 | ||
44172 | # Files that config.status was made for. | |
44173 | if test -n "$ac_config_files"; then | |
44174 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
44175 | fi | |
44176 | ||
44177 | if test -n "$ac_config_headers"; then | |
44178 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
44179 | fi | |
44180 | ||
44181 | if test -n "$ac_config_links"; then | |
44182 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
44183 | fi | |
44184 | ||
44185 | if test -n "$ac_config_commands"; then | |
44186 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
44187 | fi | |
44188 | ||
44189 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44190 | ||
44191 | ac_cs_usage="\ | |
44192 | \`$as_me' instantiates files from templates according to the | |
44193 | current configuration. | |
44194 | ||
44195 | Usage: $0 [OPTIONS] [FILE]... | |
44196 | ||
44197 | -h, --help print this help, then exit | |
44198 | -V, --version print version number, then exit | |
44199 | -q, --quiet do not print progress messages | |
44200 | -d, --debug don't remove temporary files | |
44201 | --recheck update $as_me by reconfiguring in the same conditions | |
44202 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 44203 | instantiate the configuration file FILE |
a848cd7e | 44204 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 44205 | instantiate the configuration header FILE |
a848cd7e SC |
44206 | |
44207 | Configuration files: | |
44208 | $config_files | |
44209 | ||
44210 | Configuration headers: | |
44211 | $config_headers | |
44212 | ||
44213 | Configuration commands: | |
44214 | $config_commands | |
44215 | ||
44216 | Report bugs to <bug-autoconf@gnu.org>." | |
44217 | _ACEOF | |
44218 | ||
44219 | cat >>$CONFIG_STATUS <<_ACEOF | |
44220 | ac_cs_version="\\ | |
e0d84535 | 44221 | wxWidgets config.status 2.6.0 |
ac1cb8d3 | 44222 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
44223 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
44224 | ||
ac1cb8d3 | 44225 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
44226 | This config.status script is free software; the Free Software Foundation |
44227 | gives unlimited permission to copy, distribute and modify it." | |
44228 | srcdir=$srcdir | |
44229 | INSTALL="$INSTALL" | |
44230 | _ACEOF | |
44231 | ||
44232 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44233 | # If no file are specified by the user, then we need to provide default | |
44234 | # value. By we need to know if files were specified by the user. | |
44235 | ac_need_defaults=: | |
44236 | while test $# != 0 | |
44237 | do | |
44238 | case $1 in | |
44239 | --*=*) | |
44240 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
44241 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
44242 | ac_shift=: | |
44243 | ;; | |
44244 | -*) | |
44245 | ac_option=$1 | |
44246 | ac_optarg=$2 | |
44247 | ac_shift=shift | |
44248 | ;; | |
44249 | *) # This is not an option, so the user has probably given explicit | |
44250 | # arguments. | |
44251 | ac_option=$1 | |
44252 | ac_need_defaults=false;; | |
44253 | esac | |
44254 | ||
44255 | case $ac_option in | |
44256 | # Handling of the options. | |
44257 | _ACEOF | |
44258 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44259 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
44260 | ac_cs_recheck=: ;; | |
44261 | --version | --vers* | -V ) | |
44262 | echo "$ac_cs_version"; exit 0 ;; | |
44263 | --he | --h) | |
44264 | # Conflict between --help and --header | |
44265 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
44266 | Try \`$0 --help' for more information." >&5 | |
44267 | echo "$as_me: error: ambiguous option: $1 | |
44268 | Try \`$0 --help' for more information." >&2;} | |
44269 | { (exit 1); exit 1; }; };; | |
44270 | --help | --hel | -h ) | |
44271 | echo "$ac_cs_usage"; exit 0 ;; | |
44272 | --debug | --d* | -d ) | |
44273 | debug=: ;; | |
44274 | --file | --fil | --fi | --f ) | |
44275 | $ac_shift | |
44276 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
44277 | ac_need_defaults=false;; | |
44278 | --header | --heade | --head | --hea ) | |
44279 | $ac_shift | |
44280 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
44281 | ac_need_defaults=false;; | |
44282 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
44283 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
44284 | ac_cs_silent=: ;; | |
44285 | ||
44286 | # This is an error. | |
44287 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
44288 | Try \`$0 --help' for more information." >&5 | |
44289 | echo "$as_me: error: unrecognized option: $1 | |
44290 | Try \`$0 --help' for more information." >&2;} | |
44291 | { (exit 1); exit 1; }; } ;; | |
44292 | ||
44293 | *) ac_config_targets="$ac_config_targets $1" ;; | |
44294 | ||
44295 | esac | |
44296 | shift | |
44297 | done | |
44298 | ||
44299 | ac_configure_extra_args= | |
44300 | ||
44301 | if $ac_cs_silent; then | |
44302 | exec 6>/dev/null | |
44303 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
44304 | fi | |
44305 | ||
44306 | _ACEOF | |
44307 | cat >>$CONFIG_STATUS <<_ACEOF | |
44308 | if \$ac_cs_recheck; then | |
44309 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
44310 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
44311 | fi | |
44312 | ||
44313 | _ACEOF | |
44314 | ||
44315 | cat >>$CONFIG_STATUS <<_ACEOF | |
44316 | # | |
44317 | # INIT-COMMANDS section. | |
44318 | # | |
44319 | ||
ceec2216 RL |
44320 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
44321 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
44322 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
44323 | LN_S="${LN_S}" | |
a848cd7e SC |
44324 | |
44325 | ||
44326 | _ACEOF | |
44327 | ||
44328 | ||
44329 | ||
44330 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44331 | for ac_config_target in $ac_config_targets | |
44332 | do | |
44333 | case "$ac_config_target" in | |
44334 | # Handling of arguments. | |
ceec2216 RL |
44335 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
44336 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
44337 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
44338 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
44339 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
44340 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
44341 | "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 |
44342 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
44343 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
44344 | { (exit 1); exit 1; }; };; | |
44345 | esac | |
44346 | done | |
44347 | ||
44348 | # If the user did not use the arguments to specify the items to instantiate, | |
44349 | # then the envvar interface is used. Set only those that are not. | |
44350 | # We use the long form for the default assignment because of an extremely | |
44351 | # bizarre bug on SunOS 4.1.3. | |
44352 | if $ac_need_defaults; then | |
44353 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
44354 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
44355 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
44356 | fi | |
44357 | ||
44358 | # Have a temporary directory for convenience. Make it in the build tree | |
44359 | # simply because there is no reason to put it here, and in addition, | |
44360 | # creating and moving files from /tmp can sometimes cause problems. | |
44361 | # Create a temporary directory, and hook for its removal unless debugging. | |
44362 | $debug || | |
44363 | { | |
44364 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
44365 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
44366 | } | |
44367 | ||
44368 | # Create a (secure) tmp directory for tmp files. | |
44369 | ||
44370 | { | |
44371 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
44372 | test -n "$tmp" && test -d "$tmp" | |
44373 | } || | |
44374 | { | |
44375 | tmp=./confstat$$-$RANDOM | |
44376 | (umask 077 && mkdir $tmp) | |
44377 | } || | |
44378 | { | |
44379 | echo "$me: cannot create a temporary directory in ." >&2 | |
44380 | { (exit 1); exit 1; } | |
44381 | } | |
44382 | ||
44383 | _ACEOF | |
44384 | ||
44385 | cat >>$CONFIG_STATUS <<_ACEOF | |
44386 | ||
44387 | # | |
44388 | # CONFIG_FILES section. | |
44389 | # | |
44390 | ||
44391 | # No need to generate the scripts if there are no CONFIG_FILES. | |
44392 | # This happens for instance when ./config.status config.h | |
44393 | if test -n "\$CONFIG_FILES"; then | |
44394 | # Protect against being on the right side of a sed subst in config.status. | |
44395 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
44396 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
44397 | s,@SHELL@,$SHELL,;t t | |
44398 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
44399 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
44400 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
44401 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
44402 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
44403 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
44404 | s,@exec_prefix@,$exec_prefix,;t t | |
44405 | s,@prefix@,$prefix,;t t | |
44406 | s,@program_transform_name@,$program_transform_name,;t t | |
44407 | s,@bindir@,$bindir,;t t | |
44408 | s,@sbindir@,$sbindir,;t t | |
44409 | s,@libexecdir@,$libexecdir,;t t | |
44410 | s,@datadir@,$datadir,;t t | |
44411 | s,@sysconfdir@,$sysconfdir,;t t | |
44412 | s,@sharedstatedir@,$sharedstatedir,;t t | |
44413 | s,@localstatedir@,$localstatedir,;t t | |
44414 | s,@libdir@,$libdir,;t t | |
44415 | s,@includedir@,$includedir,;t t | |
44416 | s,@oldincludedir@,$oldincludedir,;t t | |
44417 | s,@infodir@,$infodir,;t t | |
44418 | s,@mandir@,$mandir,;t t | |
44419 | s,@build_alias@,$build_alias,;t t | |
44420 | s,@host_alias@,$host_alias,;t t | |
44421 | s,@target_alias@,$target_alias,;t t | |
44422 | s,@DEFS@,$DEFS,;t t | |
44423 | s,@ECHO_C@,$ECHO_C,;t t | |
44424 | s,@ECHO_N@,$ECHO_N,;t t | |
44425 | s,@ECHO_T@,$ECHO_T,;t t | |
44426 | s,@LIBS@,$LIBS,;t t | |
44427 | s,@build@,$build,;t t | |
44428 | s,@build_cpu@,$build_cpu,;t t | |
44429 | s,@build_vendor@,$build_vendor,;t t | |
44430 | s,@build_os@,$build_os,;t t | |
44431 | s,@host@,$host,;t t | |
44432 | s,@host_cpu@,$host_cpu,;t t | |
44433 | s,@host_vendor@,$host_vendor,;t t | |
44434 | s,@host_os@,$host_os,;t t | |
44435 | s,@target@,$target,;t t | |
44436 | s,@target_cpu@,$target_cpu,;t t | |
44437 | s,@target_vendor@,$target_vendor,;t t | |
44438 | s,@target_os@,$target_os,;t t | |
44439 | s,@CC@,$CC,;t t | |
44440 | s,@CFLAGS@,$CFLAGS,;t t | |
44441 | s,@LDFLAGS@,$LDFLAGS,;t t | |
44442 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
44443 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
44444 | s,@EXEEXT@,$EXEEXT,;t t | |
44445 | s,@OBJEXT@,$OBJEXT,;t t | |
44446 | s,@CPP@,$CPP,;t t | |
44447 | s,@EGREP@,$EGREP,;t t | |
44448 | s,@CXX@,$CXX,;t t | |
44449 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
44450 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
44451 | s,@RANLIB@,$RANLIB,;t t | |
44452 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
44453 | s,@AR@,$AR,;t t | |
44454 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
44455 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
44456 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
44457 | s,@STRIP@,$STRIP,;t t | |
44458 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
44459 | s,@LN_S@,$LN_S,;t t | |
44460 | s,@CXXCPP@,$CXXCPP,;t t | |
44461 | s,@subdirs@,$subdirs,;t t | |
44462 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
44463 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
44464 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
44465 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
44466 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
44467 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
44468 | s,@X_LIBS@,$X_LIBS,;t t | |
44469 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
44470 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
44471 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
44472 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
44473 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
44474 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
44475 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
44476 | s,@RESCOMP@,$RESCOMP,;t t | |
44477 | s,@DEREZ@,$DEREZ,;t t | |
44478 | s,@SETFILE@,$SETFILE,;t t | |
44479 | s,@LIBICONV@,$LIBICONV,;t t | |
44480 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
44481 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
44482 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
44483 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
44484 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
44485 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
44486 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
44487 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
44488 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
44489 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
44490 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
44491 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
44492 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
44493 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
44494 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
44495 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
44496 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
44497 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
44498 | s,@VENDOR@,$VENDOR,;t t | |
44499 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
44500 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
44501 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
44502 | s,@WXUNIV@,$WXUNIV,;t t |
44503 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
44504 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
44505 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
44506 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
44507 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
44508 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
44509 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
44510 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
44511 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
44512 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 44513 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
44514 | s,@UNICODE@,$UNICODE,;t t |
44515 | s,@BUILD@,$BUILD,;t t | |
44516 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
44517 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
44518 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
44519 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
44520 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
44521 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
44522 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
44523 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
44524 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
44525 | s,@SET_MAKE@,$SET_MAKE,;t t | |
44526 | s,@MAKE_SET@,$MAKE_SET,;t t | |
44527 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
44528 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
44529 | s,@NM@,$NM,;t t | |
44530 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
44531 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
44532 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
44533 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
44534 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
44535 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
44536 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 44537 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
44538 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
44539 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 44540 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
44541 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
44542 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
44543 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
44544 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
44545 | s,@LIBEXT@,$LIBEXT,;t t | |
44546 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
44547 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
44548 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
44549 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
44550 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
44551 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
44552 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
44553 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
44554 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
44555 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
44556 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
44557 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
44558 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
44559 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
44560 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
44561 | s,@GCC_PCH@,$GCC_PCH,;t t | |
44562 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
44563 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
44564 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
44565 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
44566 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
44567 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
44568 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
44569 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
44570 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
44571 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
44572 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
44573 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
44574 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
44575 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
44576 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
44577 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
44578 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
44579 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 44580 | 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 | 44581 | 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 | 44582 | 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 | 44583 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 44584 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
44585 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
44586 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 44587 | 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 | 44588 | 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 | 44589 | 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 | 44590 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 44591 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
44592 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
44593 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
44594 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
44595 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
44596 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
44597 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
44598 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
44599 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 44600 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
44601 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
44602 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
44603 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 44604 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 44605 | 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 |
44606 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
44607 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
44608 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
44609 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 44610 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
44611 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
44612 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
44613 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
44614 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
44615 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
44616 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
44617 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
44618 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
44619 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
44620 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
44621 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
44622 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
44623 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
44624 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
44625 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
44626 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
52ada004 | 44627 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
44628 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
44629 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
44630 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
44631 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
44632 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
44633 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
52ada004 | 44634 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 44635 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 44636 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 44637 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
44638 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
44639 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
44640 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
44641 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
44642 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
44643 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
44644 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
44645 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
44646 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
44647 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
44648 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
44649 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
44650 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
44651 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
44652 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
44653 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
44654 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
44655 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
44656 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
44657 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
44658 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
44659 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
44660 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
44661 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
44662 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
44663 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
44664 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
44665 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
44666 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
44667 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
44668 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
44669 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
44670 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 44671 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 44672 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e | 44673 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
44674 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
44675 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e SC |
44676 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
44677 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
44678 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
44679 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
44680 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
44681 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 44682 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 44683 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 44684 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
44685 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
44686 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
44687 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
44688 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
44689 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
44690 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
44691 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
44692 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 44693 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
44694 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
44695 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
44696 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
44697 | s,@USE_GUI@,$USE_GUI,;t t | |
44698 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
44699 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
44700 | s,@TOOLKIT@,$TOOLKIT,;t t | |
44701 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 44702 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 44703 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
44704 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
44705 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 44706 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
44707 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
44708 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
44709 | s,@WX_VERSION@,$WX_VERSION,;t t | |
44710 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
44711 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
44712 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 44713 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
44714 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
44715 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
44716 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
44717 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 44718 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
44719 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
44720 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 44721 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 44722 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
44723 | s,@DISTDIR@,$DISTDIR,;t t |
44724 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
44725 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
44726 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
44727 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
44728 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
44729 | s,@RESFLAGS@,$RESFLAGS,;t t | |
44730 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
44731 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
44732 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
44733 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
44734 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
44735 | s,@MACSETFILE@,$MACSETFILE,;t t | |
44736 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
44737 | s,@GCC@,$GCC,;t t | |
a848cd7e | 44738 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
44739 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
44740 | s,@LIBOBJS@,$LIBOBJS,;t t | |
44741 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
44742 | CEOF | |
44743 | ||
44744 | _ACEOF | |
44745 | ||
44746 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44747 | # Split the substitutions into bite-sized pieces for seds with | |
44748 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
44749 | ac_max_sed_lines=48 | |
44750 | ac_sed_frag=1 # Number of current file. | |
44751 | ac_beg=1 # First line for current file. | |
44752 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
44753 | ac_more_lines=: | |
44754 | ac_sed_cmds= | |
44755 | while $ac_more_lines; do | |
44756 | if test $ac_beg -gt 1; then | |
44757 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
44758 | else | |
44759 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
44760 | fi | |
44761 | if test ! -s $tmp/subs.frag; then | |
44762 | ac_more_lines=false | |
44763 | else | |
44764 | # The purpose of the label and of the branching condition is to | |
44765 | # speed up the sed processing (if there are no `@' at all, there | |
44766 | # is no need to browse any of the substitutions). | |
44767 | # These are the two extra sed commands mentioned above. | |
44768 | (echo ':t | |
44769 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
44770 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 44771 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 44772 | else |
ac1cb8d3 | 44773 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
44774 | fi |
44775 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
44776 | ac_beg=$ac_end | |
44777 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
44778 | fi | |
44779 | done | |
44780 | if test -z "$ac_sed_cmds"; then | |
44781 | ac_sed_cmds=cat | |
44782 | fi | |
44783 | fi # test -n "$CONFIG_FILES" | |
44784 | ||
44785 | _ACEOF | |
44786 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44787 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
44788 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
44789 | case $ac_file in | |
44790 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
44791 | cat >$tmp/stdin |
44792 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44793 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 44794 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 44795 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
44796 | * ) ac_file_in=$ac_file.in ;; |
44797 | esac | |
44798 | ||
44799 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
44800 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
44801 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44802 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
44803 | X"$ac_file" : 'X\(//\)$' \| \ | |
44804 | X"$ac_file" : 'X\(/\)' \| \ | |
44805 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44806 | echo X"$ac_file" | |
44807 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44808 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44809 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44810 | /^X\(\/\).*/{ s//\1/; q; } | |
44811 | s/.*/./; q'` | |
44812 | { if $as_mkdir_p; then | |
44813 | mkdir -p "$ac_dir" | |
44814 | else | |
44815 | as_dir="$ac_dir" | |
44816 | as_dirs= | |
44817 | while test ! -d "$as_dir"; do | |
44818 | as_dirs="$as_dir $as_dirs" | |
44819 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44820 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44821 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44822 | X"$as_dir" : 'X\(//\)$' \| \ | |
44823 | X"$as_dir" : 'X\(/\)' \| \ | |
44824 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44825 | echo X"$as_dir" | |
44826 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44827 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44828 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44829 | /^X\(\/\).*/{ s//\1/; q; } | |
44830 | s/.*/./; q'` | |
44831 | done | |
44832 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44833 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44834 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44835 | { (exit 1); exit 1; }; }; } | |
44836 | ||
44837 | ac_builddir=. | |
44838 | ||
44839 | if test "$ac_dir" != .; then | |
44840 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44841 | # A "../" for each directory in $ac_dir_suffix. | |
44842 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44843 | else | |
44844 | ac_dir_suffix= ac_top_builddir= | |
44845 | fi | |
44846 | ||
44847 | case $srcdir in | |
44848 | .) # No --srcdir option. We are building in place. | |
44849 | ac_srcdir=. | |
44850 | if test -z "$ac_top_builddir"; then | |
44851 | ac_top_srcdir=. | |
44852 | else | |
44853 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44854 | fi ;; | |
44855 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44856 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44857 | ac_top_srcdir=$srcdir ;; | |
44858 | *) # Relative path. | |
44859 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44860 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44861 | esac | |
ac1cb8d3 VS |
44862 | |
44863 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44864 | # the directories may not exist. | |
44865 | case `pwd` in | |
44866 | .) ac_abs_builddir="$ac_dir";; | |
44867 | *) | |
44868 | case "$ac_dir" in | |
44869 | .) ac_abs_builddir=`pwd`;; | |
44870 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44871 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44872 | esac;; | |
44873 | esac | |
44874 | case $ac_abs_builddir in | |
44875 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44876 | *) | |
44877 | case ${ac_top_builddir}. in | |
44878 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44879 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44880 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44881 | esac;; | |
44882 | esac | |
44883 | case $ac_abs_builddir in | |
44884 | .) ac_abs_srcdir=$ac_srcdir;; | |
44885 | *) | |
44886 | case $ac_srcdir in | |
44887 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44888 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44889 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44890 | esac;; | |
44891 | esac | |
44892 | case $ac_abs_builddir in | |
44893 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44894 | *) | |
44895 | case $ac_top_srcdir in | |
44896 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44897 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44898 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44899 | esac;; | |
44900 | esac | |
a848cd7e SC |
44901 | |
44902 | ||
44903 | case $INSTALL in | |
44904 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
44905 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
44906 | esac | |
44907 | ||
a848cd7e SC |
44908 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
44909 | # use $as_me), people would be surprised to read: | |
44910 | # /* config.h. Generated by config.status. */ | |
44911 | if test x"$ac_file" = x-; then | |
44912 | configure_input= | |
44913 | else | |
44914 | configure_input="$ac_file. " | |
44915 | fi | |
44916 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 44917 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
44918 | |
44919 | # First look for the input files in the build tree, otherwise in the | |
44920 | # src tree. | |
44921 | ac_file_inputs=`IFS=: | |
44922 | for f in $ac_file_in; do | |
44923 | case $f in | |
44924 | -) echo $tmp/stdin ;; | |
44925 | [\\/$]*) | |
ac1cb8d3 VS |
44926 | # Absolute (can't be DOS-style, as IFS=:) |
44927 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44928 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44929 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44930 | echo "$f";; |
a848cd7e | 44931 | *) # Relative |
ac1cb8d3 VS |
44932 | if test -f "$f"; then |
44933 | # Build tree | |
44934 | echo "$f" | |
44935 | elif test -f "$srcdir/$f"; then | |
44936 | # Source tree | |
44937 | echo "$srcdir/$f" | |
44938 | else | |
44939 | # /dev/null tree | |
44940 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44941 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44942 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44943 | fi;; |
a848cd7e SC |
44944 | esac |
44945 | done` || { (exit 1); exit 1; } | |
9dd0f6c2 DE |
44946 | |
44947 | if test x"$ac_file" != x-; then | |
44948 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
44949 | echo "$as_me: creating $ac_file" >&6;} | |
44950 | rm -f "$ac_file" | |
44951 | fi | |
a848cd7e SC |
44952 | _ACEOF |
44953 | cat >>$CONFIG_STATUS <<_ACEOF | |
44954 | sed "$ac_vpsub | |
44955 | $extrasub | |
44956 | _ACEOF | |
44957 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44958 | :t | |
44959 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
44960 | s,@configure_input@,$configure_input,;t t | |
44961 | s,@srcdir@,$ac_srcdir,;t t | |
44962 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
44963 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
44964 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
44965 | s,@builddir@,$ac_builddir,;t t | |
44966 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
44967 | s,@top_builddir@,$ac_top_builddir,;t t | |
44968 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
44969 | s,@INSTALL@,$ac_INSTALL,;t t | |
44970 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
44971 | rm -f $tmp/stdin | |
44972 | if test x"$ac_file" != x-; then | |
44973 | mv $tmp/out $ac_file | |
44974 | else | |
44975 | cat $tmp/out | |
44976 | rm -f $tmp/out | |
44977 | fi | |
44978 | ||
ceec2216 RL |
44979 | # Run the commands associated with the file. |
44980 | case $ac_file in | |
44981 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
44982 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
44983 | esac | |
a848cd7e SC |
44984 | done |
44985 | _ACEOF | |
44986 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44987 | ||
44988 | # | |
44989 | # CONFIG_HEADER section. | |
44990 | # | |
44991 | ||
44992 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
44993 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
44994 | # | |
44995 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
44996 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
44997 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
44998 | ac_dC=' ' |
44999 | ac_dD=',;t' | |
45000 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 45001 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
45002 | ac_uB='$,\1#\2define\3' |
45003 | ac_uC=' ' | |
45004 | ac_uD=',;t' | |
45005 | ||
45006 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
45007 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
45008 | case $ac_file in | |
45009 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
45010 | cat >$tmp/stdin |
45011 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45012 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 45013 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 45014 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
45015 | * ) ac_file_in=$ac_file.in ;; |
45016 | esac | |
45017 | ||
45018 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
45019 | echo "$as_me: creating $ac_file" >&6;} | |
45020 | ||
45021 | # First look for the input files in the build tree, otherwise in the | |
45022 | # src tree. | |
45023 | ac_file_inputs=`IFS=: | |
45024 | for f in $ac_file_in; do | |
45025 | case $f in | |
45026 | -) echo $tmp/stdin ;; | |
45027 | [\\/$]*) | |
ac1cb8d3 VS |
45028 | # Absolute (can't be DOS-style, as IFS=:) |
45029 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
45030 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45031 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
45032 | # Do quote $f, to prevent DOS paths from being IFS'd. |
45033 | echo "$f";; | |
a848cd7e | 45034 | *) # Relative |
ac1cb8d3 VS |
45035 | if test -f "$f"; then |
45036 | # Build tree | |
45037 | echo "$f" | |
45038 | elif test -f "$srcdir/$f"; then | |
45039 | # Source tree | |
45040 | echo "$srcdir/$f" | |
45041 | else | |
45042 | # /dev/null tree | |
45043 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
45044 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45045 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 45046 | fi;; |
a848cd7e SC |
45047 | esac |
45048 | done` || { (exit 1); exit 1; } | |
45049 | # Remove the trailing spaces. | |
ac1cb8d3 | 45050 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
45051 | |
45052 | _ACEOF | |
45053 | ||
45054 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
45055 | # `conftest.undefs', that substitutes the proper values into | |
45056 | # config.h.in to produce config.h. The first handles `#define' | |
45057 | # templates, and the second `#undef' templates. | |
45058 | # And first: Protect against being on the right side of a sed subst in | |
45059 | # config.status. Protect against being in an unquoted here document | |
45060 | # in config.status. | |
45061 | rm -f conftest.defines conftest.undefs | |
45062 | # Using a here document instead of a string reduces the quoting nightmare. | |
45063 | # Putting comments in sed scripts is not portable. | |
45064 | # | |
45065 | # `end' is used to avoid that the second main sed command (meant for | |
45066 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
45067 | # See the Autoconf documentation for `clear'. | |
45068 | cat >confdef2sed.sed <<\_ACEOF | |
45069 | s/[\\&,]/\\&/g | |
45070 | s,[\\$`],\\&,g | |
45071 | t clear | |
45072 | : clear | |
ac1cb8d3 | 45073 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 45074 | t end |
ac1cb8d3 | 45075 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
45076 | : end |
45077 | _ACEOF | |
45078 | # If some macros were called several times there might be several times | |
45079 | # the same #defines, which is useless. Nevertheless, we may not want to | |
45080 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
45081 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
45082 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
45083 | rm -f confdef2sed.sed | |
45084 | ||
45085 | # This sed command replaces #undef with comments. This is necessary, for | |
45086 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
45087 | # on some systems where configure will not decide to define it. | |
45088 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 45089 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
45090 | _ACEOF |
45091 | ||
45092 | # Break up conftest.defines because some shells have a limit on the size | |
45093 | # of here documents, and old seds have small limits too (100 cmds). | |
45094 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 45095 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
45096 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
45097 | echo ' :' >>$CONFIG_STATUS | |
45098 | rm -f conftest.tail | |
45099 | while grep . conftest.defines >/dev/null | |
45100 | do | |
45101 | # Write a limited-size here document to $tmp/defines.sed. | |
45102 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
45103 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 45104 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
45105 | # Work around the forget-to-reset-the-flag bug. |
45106 | echo 't clr' >>$CONFIG_STATUS | |
45107 | echo ': clr' >>$CONFIG_STATUS | |
45108 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
45109 | echo 'CEOF | |
45110 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
45111 | rm -f $tmp/in | |
45112 | mv $tmp/out $tmp/in | |
45113 | ' >>$CONFIG_STATUS | |
45114 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
45115 | rm -f conftest.defines | |
45116 | mv conftest.tail conftest.defines | |
45117 | done | |
45118 | rm -f conftest.defines | |
45119 | echo ' fi # grep' >>$CONFIG_STATUS | |
45120 | echo >>$CONFIG_STATUS | |
45121 | ||
45122 | # Break up conftest.undefs because some shells have a limit on the size | |
45123 | # of here documents, and old seds have small limits too (100 cmds). | |
45124 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
45125 | rm -f conftest.tail | |
45126 | while grep . conftest.undefs >/dev/null | |
45127 | do | |
45128 | # Write a limited-size here document to $tmp/undefs.sed. | |
45129 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
45130 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 45131 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
45132 | # Work around the forget-to-reset-the-flag bug. |
45133 | echo 't clr' >>$CONFIG_STATUS | |
45134 | echo ': clr' >>$CONFIG_STATUS | |
45135 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
45136 | echo 'CEOF | |
45137 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
45138 | rm -f $tmp/in | |
45139 | mv $tmp/out $tmp/in | |
45140 | ' >>$CONFIG_STATUS | |
45141 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
45142 | rm -f conftest.undefs | |
45143 | mv conftest.tail conftest.undefs | |
45144 | done | |
45145 | rm -f conftest.undefs | |
45146 | ||
45147 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45148 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
45149 | # use $as_me), people would be surprised to read: | |
45150 | # /* config.h. Generated by config.status. */ | |
45151 | if test x"$ac_file" = x-; then | |
45152 | echo "/* Generated by configure. */" >$tmp/config.h | |
45153 | else | |
45154 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
45155 | fi | |
45156 | cat $tmp/in >>$tmp/config.h | |
45157 | rm -f $tmp/in | |
45158 | if test x"$ac_file" != x-; then | |
45159 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
45160 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
45161 | echo "$as_me: $ac_file is unchanged" >&6;} | |
45162 | else | |
45163 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
45164 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45165 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
45166 | X"$ac_file" : 'X\(//\)$' \| \ | |
45167 | X"$ac_file" : 'X\(/\)' \| \ | |
45168 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45169 | echo X"$ac_file" | |
45170 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45171 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45172 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45173 | /^X\(\/\).*/{ s//\1/; q; } | |
45174 | s/.*/./; q'` | |
45175 | { if $as_mkdir_p; then | |
45176 | mkdir -p "$ac_dir" | |
45177 | else | |
45178 | as_dir="$ac_dir" | |
45179 | as_dirs= | |
45180 | while test ! -d "$as_dir"; do | |
45181 | as_dirs="$as_dir $as_dirs" | |
45182 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45183 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45184 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45185 | X"$as_dir" : 'X\(//\)$' \| \ | |
45186 | X"$as_dir" : 'X\(/\)' \| \ | |
45187 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45188 | echo X"$as_dir" | |
45189 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45190 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45191 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45192 | /^X\(\/\).*/{ s//\1/; q; } | |
45193 | s/.*/./; q'` | |
45194 | done | |
45195 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45196 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45197 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45198 | { (exit 1); exit 1; }; }; } | |
45199 | ||
45200 | rm -f $ac_file | |
45201 | mv $tmp/config.h $ac_file | |
45202 | fi | |
45203 | else | |
45204 | cat $tmp/config.h | |
45205 | rm -f $tmp/config.h | |
45206 | fi | |
45207 | done | |
45208 | _ACEOF | |
45209 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45210 | ||
45211 | # | |
45212 | # CONFIG_COMMANDS section. | |
45213 | # | |
45214 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
45215 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
45216 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45217 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
45218 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45219 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
45220 | X"$ac_dest" : 'X\(//\)$' \| \ | |
45221 | X"$ac_dest" : 'X\(/\)' \| \ | |
45222 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45223 | echo X"$ac_dest" | |
45224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45225 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45226 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45227 | /^X\(\/\).*/{ s//\1/; q; } | |
45228 | s/.*/./; q'` | |
ac1cb8d3 VS |
45229 | { if $as_mkdir_p; then |
45230 | mkdir -p "$ac_dir" | |
45231 | else | |
45232 | as_dir="$ac_dir" | |
45233 | as_dirs= | |
45234 | while test ! -d "$as_dir"; do | |
45235 | as_dirs="$as_dir $as_dirs" | |
45236 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45237 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
45238 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
45239 | X"$as_dir" : 'X\(//\)$' \| \ | |
45240 | X"$as_dir" : 'X\(/\)' \| \ | |
45241 | . : '\(.\)' 2>/dev/null || | |
45242 | echo X"$as_dir" | | |
45243 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45244 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45245 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45246 | /^X\(\/\).*/{ s//\1/; q; } | |
45247 | s/.*/./; q'` | |
45248 | done | |
45249 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45250 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45251 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45252 | { (exit 1); exit 1; }; }; } | |
45253 | ||
a848cd7e SC |
45254 | ac_builddir=. |
45255 | ||
45256 | if test "$ac_dir" != .; then | |
45257 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
45258 | # A "../" for each directory in $ac_dir_suffix. | |
45259 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
45260 | else | |
45261 | ac_dir_suffix= ac_top_builddir= | |
45262 | fi | |
45263 | ||
45264 | case $srcdir in | |
45265 | .) # No --srcdir option. We are building in place. | |
45266 | ac_srcdir=. | |
45267 | if test -z "$ac_top_builddir"; then | |
45268 | ac_top_srcdir=. | |
45269 | else | |
45270 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
45271 | fi ;; | |
45272 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
45273 | ac_srcdir=$srcdir$ac_dir_suffix; | |
45274 | ac_top_srcdir=$srcdir ;; | |
45275 | *) # Relative path. | |
45276 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
45277 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
45278 | esac | |
ac1cb8d3 VS |
45279 | |
45280 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
45281 | # the directories may not exist. | |
45282 | case `pwd` in | |
45283 | .) ac_abs_builddir="$ac_dir";; | |
45284 | *) | |
45285 | case "$ac_dir" in | |
45286 | .) ac_abs_builddir=`pwd`;; | |
45287 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
45288 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
45289 | esac;; | |
45290 | esac | |
45291 | case $ac_abs_builddir in | |
45292 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45293 | *) | |
45294 | case ${ac_top_builddir}. in | |
45295 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
45296 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45297 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
45298 | esac;; | |
45299 | esac | |
45300 | case $ac_abs_builddir in | |
45301 | .) ac_abs_srcdir=$ac_srcdir;; | |
45302 | *) | |
45303 | case $ac_srcdir in | |
45304 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
45305 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
45306 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
45307 | esac;; | |
45308 | esac | |
45309 | case $ac_abs_builddir in | |
45310 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45311 | *) | |
45312 | case $ac_top_srcdir in | |
45313 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45314 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45315 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45316 | esac;; | |
45317 | esac | |
a848cd7e SC |
45318 | |
45319 | ||
45320 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
45321 | echo "$as_me: executing $ac_dest commands" >&6;} | |
45322 | case $ac_dest in | |
ceec2216 RL |
45323 | wx-config ) rm -f wx-config |
45324 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
45325 | ;; | |
a848cd7e SC |
45326 | esac |
45327 | done | |
45328 | _ACEOF | |
45329 | ||
45330 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45331 | ||
45332 | { (exit 0); exit 0; } | |
45333 | _ACEOF | |
45334 | chmod +x $CONFIG_STATUS | |
45335 | ac_clean_files=$ac_clean_files_save | |
45336 | ||
45337 | ||
45338 | # configure is writing to config.log, and then calls config.status. | |
45339 | # config.status does its own redirection, appending to config.log. | |
45340 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
45341 | # by configure, so config.status won't be able to write to it; its | |
45342 | # output is simply discarded. So we exec the FD to /dev/null, | |
45343 | # effectively closing config.log, so it can be properly (re)opened and | |
45344 | # appended to by config.status. When coming back to configure, we | |
45345 | # need to make the FD available again. | |
45346 | if test "$no_create" != yes; then | |
45347 | ac_cs_success=: | |
45348 | ac_config_status_args= | |
45349 | test "$silent" = yes && | |
45350 | ac_config_status_args="$ac_config_status_args --quiet" | |
45351 | exec 5>/dev/null | |
45352 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
45353 | exec 5>>config.log | |
45354 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
45355 | # would make configure fail if this is the last instruction. | |
45356 | $ac_cs_success || { (exit 1); exit 1; } | |
45357 | fi | |
45358 | ||
45359 | # | |
45360 | # CONFIG_SUBDIRS section. | |
45361 | # | |
45362 | if test "$no_recursion" != yes; then | |
45363 | ||
45364 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
45365 | ac_sub_configure_args= | |
45366 | ac_prev= | |
45367 | for ac_arg in $ac_configure_args; do | |
45368 | if test -n "$ac_prev"; then | |
45369 | ac_prev= | |
45370 | continue | |
45371 | fi | |
45372 | case $ac_arg in | |
45373 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
45374 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
45375 | ac_prev=cache_file ;; | |
45376 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
45377 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
45378 | | --c=*) | |
45379 | ;; | |
45380 | --config-cache | -C) | |
45381 | ;; | |
45382 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
45383 | ac_prev=srcdir ;; | |
45384 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
45385 | ;; | |
45386 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
45387 | ac_prev=prefix ;; | |
45388 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
45389 | ;; | |
45390 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
45391 | esac | |
45392 | done | |
45393 | ||
45394 | # Always prepend --prefix to ensure using the same prefix | |
45395 | # in subdir configurations. | |
45396 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
45397 | ||
45398 | ac_popdir=`pwd` | |
45399 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
45400 | ||
45401 | # Do not complain, so a configure script can configure whichever | |
45402 | # parts of a large source tree are present. | |
45403 | test -d $srcdir/$ac_dir || continue | |
45404 | ||
45405 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
45406 | echo "$as_me: configuring in $ac_dir" >&6;} | |
45407 | { if $as_mkdir_p; then | |
45408 | mkdir -p "$ac_dir" | |
45409 | else | |
45410 | as_dir="$ac_dir" | |
45411 | as_dirs= | |
45412 | while test ! -d "$as_dir"; do | |
45413 | as_dirs="$as_dir $as_dirs" | |
45414 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45415 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45416 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45417 | X"$as_dir" : 'X\(//\)$' \| \ | |
45418 | X"$as_dir" : 'X\(/\)' \| \ | |
45419 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45420 | echo X"$as_dir" | |
45421 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45422 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45423 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45424 | /^X\(\/\).*/{ s//\1/; q; } | |
45425 | s/.*/./; q'` | |
45426 | done | |
45427 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45428 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45429 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45430 | { (exit 1); exit 1; }; }; } | |
45431 | ||
45432 | ac_builddir=. | |
45433 | ||
45434 | if test "$ac_dir" != .; then | |
45435 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
45436 | # A "../" for each directory in $ac_dir_suffix. | |
45437 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
45438 | else | |
45439 | ac_dir_suffix= ac_top_builddir= | |
45440 | fi | |
45441 | ||
45442 | case $srcdir in | |
45443 | .) # No --srcdir option. We are building in place. | |
45444 | ac_srcdir=. | |
45445 | if test -z "$ac_top_builddir"; then | |
45446 | ac_top_srcdir=. | |
45447 | else | |
45448 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
45449 | fi ;; | |
45450 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
45451 | ac_srcdir=$srcdir$ac_dir_suffix; | |
45452 | ac_top_srcdir=$srcdir ;; | |
45453 | *) # Relative path. | |
45454 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
45455 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
45456 | esac | |
ac1cb8d3 VS |
45457 | |
45458 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
45459 | # the directories may not exist. | |
45460 | case `pwd` in | |
45461 | .) ac_abs_builddir="$ac_dir";; | |
45462 | *) | |
45463 | case "$ac_dir" in | |
45464 | .) ac_abs_builddir=`pwd`;; | |
45465 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
45466 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
45467 | esac;; | |
45468 | esac | |
45469 | case $ac_abs_builddir in | |
45470 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45471 | *) | |
45472 | case ${ac_top_builddir}. in | |
45473 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
45474 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45475 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
45476 | esac;; | |
45477 | esac | |
45478 | case $ac_abs_builddir in | |
45479 | .) ac_abs_srcdir=$ac_srcdir;; | |
45480 | *) | |
45481 | case $ac_srcdir in | |
45482 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
45483 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
45484 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
45485 | esac;; | |
45486 | esac | |
45487 | case $ac_abs_builddir in | |
45488 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45489 | *) | |
45490 | case $ac_top_srcdir in | |
45491 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45492 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45493 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45494 | esac;; | |
45495 | esac | |
a848cd7e SC |
45496 | |
45497 | ||
45498 | cd $ac_dir | |
45499 | ||
45500 | # Check for guested configure; otherwise get Cygnus style configure. | |
45501 | if test -f $ac_srcdir/configure.gnu; then | |
45502 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
45503 | elif test -f $ac_srcdir/configure; then | |
45504 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
45505 | elif test -f $ac_srcdir/configure.in; then | |
45506 | ac_sub_configure=$ac_configure | |
45507 | else | |
45508 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
45509 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
45510 | ac_sub_configure= | |
45511 | fi | |
45512 | ||
45513 | # The recursion is here. | |
45514 | if test -n "$ac_sub_configure"; then | |
45515 | # Make the cache file name correct relative to the subdirectory. | |
45516 | case $cache_file in | |
45517 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
45518 | *) # Relative path. | |
ac1cb8d3 | 45519 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
45520 | esac |
45521 | ||
45522 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
45523 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
45524 | # The eval makes quoting arguments work. | |
45525 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
45526 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
45527 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
45528 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
45529 | { (exit 1); exit 1; }; } | |
45530 | fi | |
45531 | ||
9dd0f6c2 | 45532 | cd "$ac_popdir" |
a848cd7e SC |
45533 | done |
45534 | fi | |
45535 | ||
45536 | ||
45537 | echo | |
77ffb593 | 45538 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 45539 | echo "" |
4d4ff94c | 45540 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 45541 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 45542 | |
77ffb593 JS |
45543 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
45544 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
45545 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 45546 | |
77ffb593 JS |
45547 | echo " What level of wxWidgets compatibility should be enabled?" |
45548 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
45549 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 45550 | |
77ffb593 | 45551 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
45552 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
45553 | echo " png ${wxUSE_LIBPNG-none}" | |
45554 | echo " regex ${wxUSE_REGEX}" | |
45555 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
45556 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
45557 | echo " xpm ${wxUSE_LIBXPM-none}" | |
45558 | fi | |
45559 | echo " zlib ${wxUSE_ZLIB}" | |
45560 | echo " odbc ${wxUSE_ODBC}" | |
45561 | echo " expat ${wxUSE_EXPAT}" | |
45562 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
45563 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 45564 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
45565 | |
45566 | echo "" | |
45567 |