]>
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 | ||
1729 | case "${host}" in | |
1730 | *-hp-hpux* ) | |
1731 | USE_HPUX=1 | |
1732 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1733 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1734 | SO_SUFFIX=sl | |
1735 | cat >>confdefs.h <<\_ACEOF | |
1736 | #define __HPUX__ 1 | |
1737 | _ACEOF | |
1738 | ||
1739 | ;; | |
1740 | *-*-linux* ) | |
1741 | USE_LINUX=1 | |
1742 | cat >>confdefs.h <<\_ACEOF | |
1743 | #define __LINUX__ 1 | |
1744 | _ACEOF | |
1745 | ||
1746 | TMP=`uname -m` | |
1747 | if test "x$TMP" = "xalpha"; then | |
1748 | USE_ALPHA=1 | |
1749 | cat >>confdefs.h <<\_ACEOF | |
1750 | #define __ALPHA__ 1 | |
1751 | _ACEOF | |
1752 | ||
1753 | fi | |
1754 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1755 | ;; | |
1756 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1757 | USE_GNU=1 | |
1758 | TMP=`uname -m` | |
1759 | if test "x$TMP" = "xalpha"; then | |
1760 | USE_ALPHA=1 | |
1761 | cat >>confdefs.h <<\_ACEOF | |
1762 | #define __ALPHA__ 1 | |
1763 | _ACEOF | |
1764 | ||
1765 | fi | |
1766 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1767 | ;; | |
1768 | *-*-irix5* | *-*-irix6* ) | |
1769 | USE_SGI=1 | |
1770 | USE_SVR4=1 | |
1771 | cat >>confdefs.h <<\_ACEOF | |
1772 | #define __SGI__ 1 | |
1773 | _ACEOF | |
1774 | ||
1775 | cat >>confdefs.h <<\_ACEOF | |
1776 | #define __SVR4__ 1 | |
1777 | _ACEOF | |
1778 | ||
1779 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1780 | ;; | |
1781 | *-*-solaris2* ) | |
1782 | USE_SUN=1 | |
1783 | USE_SOLARIS=1 | |
1784 | USE_SVR4=1 | |
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __SUN__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SOLARIS__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | cat >>confdefs.h <<\_ACEOF | |
1794 | #define __SVR4__ 1 | |
1795 | _ACEOF | |
1796 | ||
1797 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1798 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1799 | ;; | |
1800 | *-*-sunos4* ) | |
1801 | USE_SUN=1 | |
1802 | USE_SUNOS=1 | |
1803 | USE_BSD=1 | |
1804 | cat >>confdefs.h <<\_ACEOF | |
1805 | #define __SUN__ 1 | |
1806 | _ACEOF | |
1807 | ||
1808 | cat >>confdefs.h <<\_ACEOF | |
1809 | #define __SUNOS__ 1 | |
1810 | _ACEOF | |
1811 | ||
1812 | cat >>confdefs.h <<\_ACEOF | |
1813 | #define __BSD__ 1 | |
1814 | _ACEOF | |
1815 | ||
1816 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1817 | ;; | |
1818 | *-*-freebsd*) | |
1819 | USE_BSD=1 | |
1820 | USE_FREEBSD=1 | |
1821 | cat >>confdefs.h <<\_ACEOF | |
1822 | #define __FREEBSD__ 1 | |
1823 | _ACEOF | |
1824 | ||
1825 | cat >>confdefs.h <<\_ACEOF | |
1826 | #define __BSD__ 1 | |
1827 | _ACEOF | |
1828 | ||
1829 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1830 | ;; | |
1831 | *-*-openbsd*) | |
1832 | USE_BSD=1 | |
1833 | USE_OPENBSD=1 | |
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __OPENBSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | cat >>confdefs.h <<\_ACEOF | |
1839 | #define __BSD__ 1 | |
1840 | _ACEOF | |
1841 | ||
1842 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1843 | ;; | |
1844 | *-*-netbsd*) | |
1845 | USE_BSD=1 | |
1846 | USE_NETBSD=1 | |
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __NETBSD__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | cat >>confdefs.h <<\_ACEOF | |
1852 | #define __BSD__ 1 | |
1853 | _ACEOF | |
1854 | ||
1855 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1856 | ;; | |
1857 | *-*-osf* ) | |
1858 | USE_ALPHA=1 | |
1859 | USE_OSF=1 | |
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __ALPHA__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | cat >>confdefs.h <<\_ACEOF | |
1865 | #define __OSF__ 1 | |
1866 | _ACEOF | |
1867 | ||
1868 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1869 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1870 | ;; | |
1871 | *-*-dgux5* ) | |
1872 | USE_ALPHA=1 | |
1873 | USE_SVR4=1 | |
1874 | cat >>confdefs.h <<\_ACEOF | |
1875 | #define __ALPHA__ 1 | |
1876 | _ACEOF | |
1877 | ||
1878 | cat >>confdefs.h <<\_ACEOF | |
1879 | #define __SVR4__ 1 | |
1880 | _ACEOF | |
1881 | ||
1882 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1883 | ;; | |
1884 | *-*-sysv5* ) | |
1885 | USE_SYSV=1 | |
1886 | USE_SVR4=1 | |
1887 | cat >>confdefs.h <<\_ACEOF | |
1888 | #define __SYSV__ 1 | |
1889 | _ACEOF | |
1890 | ||
1891 | cat >>confdefs.h <<\_ACEOF | |
1892 | #define __SVR4__ 1 | |
1893 | _ACEOF | |
1894 | ||
1895 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1896 | ;; | |
1897 | *-*-aix* ) | |
1898 | USE_AIX=1 | |
1899 | USE_SYSV=1 | |
1900 | USE_SVR4=1 | |
1901 | SO_SUFFIX=a | |
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __AIX__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __SYSV__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | cat >>confdefs.h <<\_ACEOF | |
1911 | #define __SVR4__ 1 | |
1912 | _ACEOF | |
1913 | ||
1914 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1915 | ;; | |
1916 | ||
1917 | *-*-*UnixWare*) | |
1918 | USE_SYSV=1 | |
1919 | USE_SVR4=1 | |
1920 | USE_UNIXWARE=1 | |
1921 | cat >>confdefs.h <<\_ACEOF | |
1922 | #define __UNIXWARE__ 1 | |
1923 | _ACEOF | |
1924 | ||
1925 | ;; | |
1926 | ||
1927 | *-*-cygwin* | *-*-mingw32* ) | |
1928 | SO_SUFFIX=dll | |
1929 | PROGRAM_EXT=".exe" | |
1930 | RESCOMP=windres | |
1931 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1932 | ;; | |
1933 | ||
1934 | *-pc-msdosdjgpp ) | |
1935 | USE_UNIX=0 | |
1936 | USE_DOS=1 | |
1937 | cat >>confdefs.h <<\_ACEOF | |
1938 | #define __DOS__ 1 | |
1939 | _ACEOF | |
1940 | ||
1941 | PROGRAM_EXT=".exe" | |
1942 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1943 | LIBS="$LIBS -lstdc++" | |
1944 | ;; | |
1945 | ||
1946 | *-pc-os2_emx | *-pc-os2-emx ) | |
1947 | cat >>confdefs.h <<\_ACEOF | |
1948 | #define __EMX__ 1 | |
1949 | _ACEOF | |
1950 | ||
1951 | USE_OS2=1 | |
1952 | cat >>confdefs.h <<\_ACEOF | |
1953 | #define __OS2__ 1 | |
1954 | _ACEOF | |
1955 | ||
1956 | PROGRAM_EXT=".exe" | |
1957 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1958 | CXX=gcc | |
1959 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1960 | ac_executable_extensions=".exe" | |
1961 | export ac_executable_extensions | |
1962 | ac_save_IFS="$IFS" | |
1963 | IFS='\\' | |
1964 | ac_TEMP_PATH= | |
1965 | for ac_dir in $PATH; do | |
1966 | IFS=$ac_save_IFS | |
1967 | if test -z "$ac_TEMP_PATH"; then | |
1968 | ac_TEMP_PATH="$ac_dir" | |
1969 | else | |
1970 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1971 | fi | |
1972 | done | |
1973 | export PATH="$ac_TEMP_PATH" | |
1974 | unset ac_TEMP_PATH | |
1975 | ;; | |
1976 | ||
1977 | powerpc-*-darwin* ) | |
1978 | USE_BSD=1 | |
1979 | USE_DARWIN=1 | |
1980 | SO_SUFFIX=dylib | |
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define __BSD__ 1 | |
1983 | _ACEOF | |
1984 | ||
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define __DARWIN__ 1 | |
a848cd7e SC |
1987 | _ACEOF |
1988 | ||
1989 | cat >>confdefs.h <<\_ACEOF | |
1990 | #define TARGET_CARBON 1 | |
1991 | _ACEOF | |
1992 | ||
1993 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1994 | ;; | |
1e9e8aba DE |
1995 | powerpc-apple-macos* ) |
1996 | USE_UNIX=0 | |
1997 | ac_cv_c_bigendian=yes | |
1998 | SO_SUFFIX=shlib | |
1999 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
2000 | ;; | |
a848cd7e SC |
2001 | |
2002 | *-*-beos* ) | |
2003 | USE_BEOS=1 | |
2004 | cat >>confdefs.h <<\_ACEOF | |
2005 | #define __BEOS__ 1 | |
2006 | _ACEOF | |
2007 | ||
2008 | ;; | |
2009 | ||
2010 | *) | |
2011 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2012 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2013 | { (exit 1); exit 1; }; } | |
2014 | esac | |
2015 | ||
2016 | ||
2017 | ||
2018 | ||
2019 | wx_arg_cache_file="configarg.cache" | |
2020 | echo "loading argument cache $wx_arg_cache_file" | |
2021 | rm -f ${wx_arg_cache_file}.tmp | |
2022 | touch ${wx_arg_cache_file}.tmp | |
2023 | touch ${wx_arg_cache_file} | |
2024 | ||
2025 | ||
2026 | DEBUG_CONFIGURE=0 | |
2027 | if test $DEBUG_CONFIGURE = 1; then | |
2028 | DEFAULT_wxUSE_UNIVERSAL=no | |
2029 | DEFAULT_wxUSE_STL=no | |
2030 | ||
2031 | DEFAULT_wxUSE_NANOX=no | |
2032 | ||
2033 | DEFAULT_wxUSE_THREADS=yes | |
2034 | ||
2035 | DEFAULT_wxUSE_SHARED=yes | |
2036 | DEFAULT_wxUSE_OPTIMISE=no | |
2037 | DEFAULT_wxUSE_PROFILE=no | |
2038 | DEFAULT_wxUSE_NO_DEPS=no | |
2039 | DEFAULT_wxUSE_NO_RTTI=no | |
2040 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2041 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2042 | DEFAULT_wxUSE_PERMISSIVE=no |
2043 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2044 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2045 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2046 | DEFAULT_wxUSE_MEM_TRACING=no | |
2047 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2048 | DEFAULT_wxUSE_DMALLOC=no | |
2049 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2050 | ||
2051 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2052 | DEFAULT_wxUSE_LOG=yes | |
2053 | DEFAULT_wxUSE_LOGWINDOW=no | |
2054 | DEFAULT_wxUSE_LOGGUI=no | |
2055 | DEFAULT_wxUSE_LOGDIALOG=no | |
2056 | ||
2057 | DEFAULT_wxUSE_GUI=yes | |
2058 | DEFAULT_wxUSE_CONTROLS=no | |
2059 | ||
2060 | DEFAULT_wxUSE_REGEX=no | |
2061 | DEFAULT_wxUSE_XML=no | |
2062 | DEFAULT_wxUSE_EXPAT=no | |
2063 | DEFAULT_wxUSE_ZLIB=no | |
2064 | DEFAULT_wxUSE_LIBPNG=no | |
2065 | DEFAULT_wxUSE_LIBJPEG=no | |
2066 | DEFAULT_wxUSE_LIBTIFF=no | |
2067 | DEFAULT_wxUSE_LIBXPM=no | |
2068 | DEFAULT_wxUSE_LIBMSPACK=no | |
2069 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2070 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2071 | DEFAULT_wxUSE_ODBC=no |
2072 | DEFAULT_wxUSE_OPENGL=no | |
2073 | ||
2074 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2075 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2076 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2077 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2078 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2079 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2080 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2081 | DEFAULT_wxUSE_DATETIME=no | |
2082 | DEFAULT_wxUSE_TIMER=no | |
2083 | DEFAULT_wxUSE_STOPWATCH=no | |
2084 | DEFAULT_wxUSE_FILE=no | |
2085 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2086 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2087 | DEFAULT_wxUSE_TEXTBUFFER=no |
2088 | DEFAULT_wxUSE_TEXTFILE=no | |
2089 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b RL |
2090 | DEFAULT_wxUSE_MEDIACTRL=no |
2091 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2092 | DEFAULT_wxUSE_INTL=no |
2093 | DEFAULT_wxUSE_CONFIG=no | |
2094 | DEFAULT_wxUSE_FONTMAP=no | |
2095 | DEFAULT_wxUSE_STREAMS=no | |
2096 | DEFAULT_wxUSE_SOCKETS=no | |
2097 | DEFAULT_wxUSE_OLE=no | |
2098 | DEFAULT_wxUSE_DATAOBJ=no | |
2099 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2100 | DEFAULT_wxUSE_JOYSTICK=no | |
2101 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2102 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2103 | DEFAULT_wxUSE_LONGLONG=no | |
2104 | DEFAULT_wxUSE_GEOMETRY=no | |
2105 | ||
2106 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2107 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2108 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2109 | ||
2110 | DEFAULT_wxUSE_CLIPBOARD=no | |
2111 | DEFAULT_wxUSE_TOOLTIPS=no | |
2112 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2113 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2114 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2115 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2116 | |
8a7b1113 | 2117 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2118 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2119 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2120 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2121 | ||
2122 | DEFAULT_wxUSE_RESOURCES=no | |
2123 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2124 | DEFAULT_wxUSE_IPC=no | |
2125 | DEFAULT_wxUSE_HELP=no | |
2126 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2127 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2128 | DEFAULT_wxUSE_TREELAYOUT=no | |
2129 | DEFAULT_wxUSE_METAFILE=no | |
2130 | DEFAULT_wxUSE_MIMETYPE=no | |
2131 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2132 | DEFAULT_wxUSE_PROTOCOL=no | |
2133 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2134 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2135 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2136 | DEFAULT_wxUSE_URL=no | |
2137 | ||
2138 | DEFAULT_wxUSE_COMMONDLGS=no | |
2139 | DEFAULT_wxUSE_CHOICEDLG=no | |
2140 | DEFAULT_wxUSE_COLOURDLG=no | |
2141 | DEFAULT_wxUSE_DIRDLG=no | |
2142 | DEFAULT_wxUSE_FILEDLG=no | |
2143 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2144 | DEFAULT_wxUSE_FONTDLG=no | |
2145 | DEFAULT_wxUSE_MSGDLG=no | |
2146 | DEFAULT_wxUSE_NUMBERDLG=no | |
2147 | DEFAULT_wxUSE_TEXTDLG=no | |
2148 | DEFAULT_wxUSE_SPLASH=no | |
2149 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2150 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2151 | DEFAULT_wxUSE_WIZARDDLG=no | |
2152 | ||
2153 | DEFAULT_wxUSE_MENUS=no | |
2154 | DEFAULT_wxUSE_MINIFRAME=no | |
2155 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2156 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2157 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2158 | DEFAULT_wxUSE_FILESYSTEM=no |
2159 | DEFAULT_wxUSE_FS_INET=no | |
2160 | DEFAULT_wxUSE_FS_ZIP=no | |
2161 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2162 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2163 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2164 | DEFAULT_wxUSE_VALIDATORS=no |
2165 | ||
2166 | DEFAULT_wxUSE_ACCEL=no | |
2167 | DEFAULT_wxUSE_BUTTON=no | |
2168 | DEFAULT_wxUSE_BMPBUTTON=no | |
2169 | DEFAULT_wxUSE_CALCTRL=no | |
2170 | DEFAULT_wxUSE_CARET=no | |
2171 | DEFAULT_wxUSE_CHECKBOX=no | |
2172 | DEFAULT_wxUSE_CHECKLST=no | |
2173 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2174 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2175 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2176 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2177 | DEFAULT_wxUSE_DISPLAY=no |
2178 | DEFAULT_wxUSE_GAUGE=no | |
2179 | DEFAULT_wxUSE_GRID=no | |
2180 | DEFAULT_wxUSE_IMAGLIST=no | |
2181 | DEFAULT_wxUSE_LISTBOOK=no | |
2182 | DEFAULT_wxUSE_LISTBOX=no | |
2183 | DEFAULT_wxUSE_LISTCTRL=no | |
2184 | DEFAULT_wxUSE_NOTEBOOK=no | |
2185 | DEFAULT_wxUSE_RADIOBOX=no | |
2186 | DEFAULT_wxUSE_RADIOBTN=no | |
2187 | DEFAULT_wxUSE_SASH=no | |
2188 | DEFAULT_wxUSE_SCROLLBAR=no | |
2189 | DEFAULT_wxUSE_SLIDER=no | |
2190 | DEFAULT_wxUSE_SPINBTN=no | |
2191 | DEFAULT_wxUSE_SPINCTRL=no | |
2192 | DEFAULT_wxUSE_SPLITTER=no | |
2193 | DEFAULT_wxUSE_STATBMP=no | |
2194 | DEFAULT_wxUSE_STATBOX=no | |
2195 | DEFAULT_wxUSE_STATLINE=no | |
2196 | DEFAULT_wxUSE_STATTEXT=no | |
2197 | DEFAULT_wxUSE_STATUSBAR=yes | |
2198 | DEFAULT_wxUSE_TABDIALOG=no | |
2199 | DEFAULT_wxUSE_TEXTCTRL=no | |
2200 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2201 | DEFAULT_wxUSE_TOOLBAR=no | |
2202 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2203 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2204 | DEFAULT_wxUSE_TREECTRL=no | |
2205 | DEFAULT_wxUSE_POPUPWIN=no | |
2206 | DEFAULT_wxUSE_TIPWINDOW=no | |
2207 | ||
2208 | DEFAULT_wxUSE_UNICODE=no | |
2209 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2210 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2211 | ||
2212 | DEFAULT_wxUSE_PALETTE=no | |
2213 | DEFAULT_wxUSE_IMAGE=no | |
2214 | DEFAULT_wxUSE_GIF=no | |
2215 | DEFAULT_wxUSE_PCX=no | |
2216 | DEFAULT_wxUSE_PNM=no | |
2217 | DEFAULT_wxUSE_IFF=no | |
2218 | DEFAULT_wxUSE_XPM=no | |
2219 | DEFAULT_wxUSE_ICO_CUR=no | |
2220 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2221 | ||
2222 | DEFAULT_wxUSE_MONOLITHIC=no | |
2223 | DEFAULT_wxUSE_PLUGINS=no | |
2224 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2225 | else | |
2226 | DEFAULT_wxUSE_UNIVERSAL=no | |
2227 | DEFAULT_wxUSE_STL=no | |
2228 | ||
2229 | DEFAULT_wxUSE_NANOX=no | |
2230 | ||
2231 | DEFAULT_wxUSE_THREADS=yes | |
2232 | ||
2233 | DEFAULT_wxUSE_SHARED=yes | |
2234 | DEFAULT_wxUSE_OPTIMISE=yes | |
2235 | DEFAULT_wxUSE_PROFILE=no | |
2236 | DEFAULT_wxUSE_NO_DEPS=no | |
2237 | DEFAULT_wxUSE_NO_RTTI=no | |
2238 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2239 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2240 | DEFAULT_wxUSE_PERMISSIVE=no |
2241 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2242 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2243 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2244 | DEFAULT_wxUSE_MEM_TRACING=no | |
2245 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2246 | DEFAULT_wxUSE_DMALLOC=no | |
2247 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2248 | ||
2249 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2250 | DEFAULT_wxUSE_LOG=yes | |
2251 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2252 | DEFAULT_wxUSE_LOGGUI=yes | |
2253 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2254 | ||
2255 | DEFAULT_wxUSE_GUI=yes | |
2256 | ||
2257 | DEFAULT_wxUSE_REGEX=yes | |
2258 | DEFAULT_wxUSE_XML=yes | |
2259 | DEFAULT_wxUSE_EXPAT=yes | |
2260 | DEFAULT_wxUSE_ZLIB=yes | |
2261 | DEFAULT_wxUSE_LIBPNG=yes | |
2262 | DEFAULT_wxUSE_LIBJPEG=yes | |
2263 | DEFAULT_wxUSE_LIBTIFF=yes | |
2264 | DEFAULT_wxUSE_LIBXPM=yes | |
2265 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2266 | DEFAULT_wxUSE_LIBSDL=no | |
52ada004 | 2267 | DEFAULT_wxUSE_LIBGNOMEPRINT=yes |
a848cd7e | 2268 | DEFAULT_wxUSE_ODBC=no |
52ada004 | 2269 | DEFAULT_wxUSE_OPENGL=yes |
a848cd7e SC |
2270 | |
2271 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2272 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2273 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2274 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
52ada004 RL |
2275 | DEFAULT_wxUSE_STD_IOSTREAM=yes |
2276 | DEFAULT_wxUSE_STD_STRING=yes | |
a848cd7e SC |
2277 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2278 | DEFAULT_wxUSE_DATETIME=yes | |
2279 | DEFAULT_wxUSE_TIMER=yes | |
2280 | DEFAULT_wxUSE_STOPWATCH=yes | |
2281 | DEFAULT_wxUSE_FILE=yes | |
2282 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2283 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2284 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2285 | DEFAULT_wxUSE_TEXTFILE=yes | |
2286 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2287 | DEFAULT_wxUSE_MEDIACTRL=no |
2288 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2289 | DEFAULT_wxUSE_INTL=yes |
2290 | DEFAULT_wxUSE_CONFIG=yes | |
2291 | DEFAULT_wxUSE_FONTMAP=yes | |
2292 | DEFAULT_wxUSE_STREAMS=yes | |
2293 | DEFAULT_wxUSE_SOCKETS=yes | |
2294 | DEFAULT_wxUSE_OLE=yes | |
2295 | DEFAULT_wxUSE_DATAOBJ=yes | |
2296 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2297 | DEFAULT_wxUSE_JOYSTICK=yes | |
2298 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2299 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2300 | DEFAULT_wxUSE_LONGLONG=yes | |
2301 | DEFAULT_wxUSE_GEOMETRY=yes | |
2302 | ||
2303 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2304 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2305 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2306 | ||
2307 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2308 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2309 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2310 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2311 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2312 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2313 | |
8a7b1113 | 2314 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2315 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2316 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2317 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2318 | ||
2319 | DEFAULT_wxUSE_RESOURCES=no | |
2320 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2321 | DEFAULT_wxUSE_IPC=yes | |
2322 | DEFAULT_wxUSE_HELP=yes | |
2323 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2324 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2325 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2326 | DEFAULT_wxUSE_METAFILE=yes | |
2327 | DEFAULT_wxUSE_MIMETYPE=yes | |
2328 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2329 | DEFAULT_wxUSE_PROTOCOL=yes | |
2330 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2331 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2332 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2333 | DEFAULT_wxUSE_URL=yes | |
2334 | ||
2335 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2336 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2337 | DEFAULT_wxUSE_COLOURDLG=yes | |
2338 | DEFAULT_wxUSE_DIRDLG=yes | |
2339 | DEFAULT_wxUSE_FILEDLG=yes | |
2340 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2341 | DEFAULT_wxUSE_FONTDLG=yes | |
2342 | DEFAULT_wxUSE_MSGDLG=yes | |
2343 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2344 | DEFAULT_wxUSE_TEXTDLG=yes | |
2345 | DEFAULT_wxUSE_SPLASH=yes | |
2346 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2347 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2348 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2349 | ||
2350 | DEFAULT_wxUSE_MENUS=yes | |
2351 | DEFAULT_wxUSE_MINIFRAME=yes | |
2352 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2353 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2354 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2355 | DEFAULT_wxUSE_FILESYSTEM=yes |
2356 | DEFAULT_wxUSE_FS_INET=yes | |
2357 | DEFAULT_wxUSE_FS_ZIP=yes | |
2358 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2359 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2360 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2361 | DEFAULT_wxUSE_VALIDATORS=yes |
2362 | ||
2363 | DEFAULT_wxUSE_ACCEL=yes | |
2364 | DEFAULT_wxUSE_BUTTON=yes | |
2365 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2366 | DEFAULT_wxUSE_CALCTRL=yes | |
2367 | DEFAULT_wxUSE_CARET=yes | |
2368 | DEFAULT_wxUSE_CHECKBOX=yes | |
2369 | DEFAULT_wxUSE_CHECKLST=yes | |
2370 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2371 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2372 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2373 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2374 | DEFAULT_wxUSE_DISPLAY=yes |
2375 | DEFAULT_wxUSE_GAUGE=yes | |
2376 | DEFAULT_wxUSE_GRID=yes | |
2377 | DEFAULT_wxUSE_IMAGLIST=yes | |
2378 | DEFAULT_wxUSE_LISTBOOK=yes | |
2379 | DEFAULT_wxUSE_LISTBOX=yes | |
2380 | DEFAULT_wxUSE_LISTCTRL=yes | |
2381 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2382 | DEFAULT_wxUSE_RADIOBOX=yes | |
2383 | DEFAULT_wxUSE_RADIOBTN=yes | |
2384 | DEFAULT_wxUSE_SASH=yes | |
2385 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2386 | DEFAULT_wxUSE_SLIDER=yes | |
2387 | DEFAULT_wxUSE_SPINBTN=yes | |
2388 | DEFAULT_wxUSE_SPINCTRL=yes | |
2389 | DEFAULT_wxUSE_SPLITTER=yes | |
2390 | DEFAULT_wxUSE_STATBMP=yes | |
2391 | DEFAULT_wxUSE_STATBOX=yes | |
2392 | DEFAULT_wxUSE_STATLINE=yes | |
2393 | DEFAULT_wxUSE_STATTEXT=yes | |
2394 | DEFAULT_wxUSE_STATUSBAR=yes | |
2395 | DEFAULT_wxUSE_TABDIALOG=no | |
2396 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2397 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2398 | DEFAULT_wxUSE_TOOLBAR=yes | |
2399 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2400 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2401 | DEFAULT_wxUSE_TREECTRL=yes | |
2402 | DEFAULT_wxUSE_POPUPWIN=yes | |
2403 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2404 | ||
78de529b | 2405 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2406 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2407 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2408 | ||
2409 | DEFAULT_wxUSE_PALETTE=yes | |
2410 | DEFAULT_wxUSE_IMAGE=yes | |
2411 | DEFAULT_wxUSE_GIF=yes | |
2412 | DEFAULT_wxUSE_PCX=yes | |
2413 | DEFAULT_wxUSE_IFF=no | |
2414 | DEFAULT_wxUSE_PNM=yes | |
2415 | DEFAULT_wxUSE_XPM=yes | |
2416 | DEFAULT_wxUSE_ICO_CUR=yes | |
2417 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2418 | ||
2419 | DEFAULT_wxUSE_MONOLITHIC=no | |
2420 | DEFAULT_wxUSE_PLUGINS=no | |
2421 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2422 | |
f34ca037 | 2423 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2424 | fi |
2425 | ||
2426 | ||
2427 | ||
f34ca037 | 2428 | |
a848cd7e SC |
2429 | for toolkit in `echo $ALL_TOOLKITS`; do |
2430 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2431 | if test "x$LINE" != "x" ; then | |
2432 | has_toolkit_in_cache=1 | |
2433 | eval "DEFAULT_$LINE" | |
2434 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2435 | |
2436 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2437 | if test "x$LINE" != "x" ; then | |
2438 | eval "DEFAULT_$LINE" | |
2439 | fi | |
a848cd7e SC |
2440 | fi |
2441 | done | |
2442 | ||
2443 | ||
2444 | ||
2445 | enablestring= | |
2446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2447 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2448 | no_cache=0 | |
2449 | # Check whether --enable-gui or --disable-gui was given. | |
2450 | if test "${enable_gui+set}" = set; then | |
2451 | enableval="$enable_gui" | |
2452 | ||
2453 | if test "$enableval" = yes; then | |
2454 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2455 | else | |
2456 | ac_cv_use_gui='wxUSE_GUI=no' | |
2457 | fi | |
2458 | ||
2459 | else | |
2460 | ||
2461 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2462 | if test "x$LINE" != x ; then | |
2463 | eval "DEFAULT_$LINE" | |
2464 | else | |
2465 | no_cache=1 | |
2466 | fi | |
2467 | ||
2468 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2469 | ||
2470 | fi; | |
2471 | ||
2472 | eval "$ac_cv_use_gui" | |
2473 | if test "$no_cache" != 1; then | |
2474 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2475 | fi | |
2476 | ||
2477 | if test "$wxUSE_GUI" = yes; then | |
2478 | echo "$as_me:$LINENO: result: yes" >&5 | |
2479 | echo "${ECHO_T}yes" >&6 | |
2480 | else | |
2481 | echo "$as_me:$LINENO: result: no" >&5 | |
2482 | echo "${ECHO_T}no" >&6 | |
2483 | fi | |
2484 | ||
2485 | ||
2486 | enablestring= | |
2487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2488 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2489 | no_cache=0 | |
2490 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2491 | if test "${enable_monolithic+set}" = set; then | |
2492 | enableval="$enable_monolithic" | |
2493 | ||
2494 | if test "$enableval" = yes; then | |
2495 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2496 | else | |
2497 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2498 | fi | |
2499 | ||
2500 | else | |
2501 | ||
2502 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2503 | if test "x$LINE" != x ; then | |
2504 | eval "DEFAULT_$LINE" | |
2505 | else | |
2506 | no_cache=1 | |
2507 | fi | |
2508 | ||
2509 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2510 | ||
2511 | fi; | |
2512 | ||
2513 | eval "$ac_cv_use_monolithic" | |
2514 | if test "$no_cache" != 1; then | |
2515 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2516 | fi | |
2517 | ||
2518 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2519 | echo "$as_me:$LINENO: result: yes" >&5 | |
2520 | echo "${ECHO_T}yes" >&6 | |
2521 | else | |
2522 | echo "$as_me:$LINENO: result: no" >&5 | |
2523 | echo "${ECHO_T}no" >&6 | |
2524 | fi | |
2525 | ||
2526 | ||
2527 | enablestring= | |
2528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2529 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2530 | no_cache=0 | |
2531 | # Check whether --enable-plugins or --disable-plugins was given. | |
2532 | if test "${enable_plugins+set}" = set; then | |
2533 | enableval="$enable_plugins" | |
2534 | ||
2535 | if test "$enableval" = yes; then | |
2536 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2537 | else | |
2538 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2539 | fi | |
2540 | ||
2541 | else | |
2542 | ||
2543 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2544 | if test "x$LINE" != x ; then | |
2545 | eval "DEFAULT_$LINE" | |
2546 | else | |
2547 | no_cache=1 | |
2548 | fi | |
2549 | ||
2550 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2551 | ||
2552 | fi; | |
2553 | ||
2554 | eval "$ac_cv_use_plugins" | |
2555 | if test "$no_cache" != 1; then | |
2556 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2557 | fi | |
2558 | ||
2559 | if test "$wxUSE_PLUGINS" = yes; then | |
2560 | echo "$as_me:$LINENO: result: yes" >&5 | |
2561 | echo "${ECHO_T}yes" >&6 | |
2562 | else | |
2563 | echo "$as_me:$LINENO: result: no" >&5 | |
2564 | echo "${ECHO_T}no" >&6 | |
2565 | fi | |
2566 | ||
2567 | ||
2568 | if test "$wxUSE_GUI" = "yes"; then | |
2569 | ||
2570 | ||
2571 | enablestring= | |
2572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2573 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2574 | no_cache=0 | |
2575 | # Check whether --enable-universal or --disable-universal was given. | |
2576 | if test "${enable_universal+set}" = set; then | |
2577 | enableval="$enable_universal" | |
2578 | ||
2579 | if test "$enableval" = yes; then | |
2580 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2581 | else | |
2582 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2583 | fi | |
2584 | ||
2585 | else | |
2586 | ||
2587 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2588 | if test "x$LINE" != x ; then | |
2589 | eval "DEFAULT_$LINE" | |
2590 | else | |
2591 | no_cache=1 | |
2592 | fi | |
2593 | ||
2594 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2595 | ||
2596 | fi; | |
2597 | ||
2598 | eval "$ac_cv_use_universal" | |
2599 | if test "$no_cache" != 1; then | |
2600 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2601 | fi | |
2602 | ||
2603 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2604 | echo "$as_me:$LINENO: result: yes" >&5 | |
2605 | echo "${ECHO_T}yes" >&6 | |
2606 | else | |
2607 | echo "$as_me:$LINENO: result: no" >&5 | |
2608 | echo "${ECHO_T}no" >&6 | |
2609 | fi | |
2610 | ||
2611 | ||
2612 | # Check whether --with-gtk or --without-gtk was given. | |
2613 | if test "${with_gtk+set}" = set; then | |
2614 | withval="$with_gtk" | |
2615 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2616 | fi; | |
2617 | ||
2618 | # Check whether --with-motif or --without-motif was given. | |
2619 | if test "${with_motif+set}" = set; then | |
2620 | withval="$with_motif" | |
2621 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2622 | fi; | |
2623 | ||
2624 | # Check whether --with-mac or --without-mac was given. | |
2625 | if test "${with_mac+set}" = set; then | |
2626 | withval="$with_mac" | |
c228d3a4 | 2627 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2628 | fi; |
2629 | ||
2630 | # Check whether --with-cocoa or --without-cocoa was given. | |
2631 | if test "${with_cocoa+set}" = set; then | |
2632 | withval="$with_cocoa" | |
c228d3a4 | 2633 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2634 | fi; |
2635 | ||
2636 | # Check whether --with-wine or --without-wine was given. | |
2637 | if test "${with_wine+set}" = set; then | |
2638 | withval="$with_wine" | |
2639 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2640 | fi; | |
2641 | ||
2642 | # Check whether --with-msw or --without-msw was given. | |
2643 | if test "${with_msw+set}" = set; then | |
2644 | withval="$with_msw" | |
2645 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2646 | fi; | |
2647 | ||
2648 | # Check whether --with-pm or --without-pm was given. | |
2649 | if test "${with_pm+set}" = set; then | |
2650 | withval="$with_pm" | |
2651 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2652 | fi; | |
2653 | ||
2654 | # Check whether --with-mgl or --without-mgl was given. | |
2655 | if test "${with_mgl+set}" = set; then | |
2656 | withval="$with_mgl" | |
2657 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2658 | fi; | |
2659 | ||
2660 | # Check whether --with-microwin or --without-microwin was given. | |
2661 | if test "${with_microwin+set}" = set; then | |
2662 | withval="$with_microwin" | |
2663 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2664 | fi; | |
2665 | ||
2666 | # Check whether --with-x11 or --without-x11 was given. | |
2667 | if test "${with_x11+set}" = set; then | |
2668 | withval="$with_x11" | |
2669 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2670 | fi; | |
2671 | ||
2672 | enablestring= | |
2673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2674 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2675 | no_cache=0 | |
2676 | # Check whether --enable-nanox or --disable-nanox was given. | |
2677 | if test "${enable_nanox+set}" = set; then | |
2678 | enableval="$enable_nanox" | |
2679 | ||
2680 | if test "$enableval" = yes; then | |
2681 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2682 | else | |
2683 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2684 | fi | |
2685 | ||
2686 | else | |
2687 | ||
2688 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2689 | if test "x$LINE" != x ; then | |
2690 | eval "DEFAULT_$LINE" | |
2691 | else | |
2692 | no_cache=1 | |
2693 | fi | |
2694 | ||
2695 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2696 | ||
2697 | fi; | |
2698 | ||
2699 | eval "$ac_cv_use_nanox" | |
2700 | if test "$no_cache" != 1; then | |
2701 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2702 | fi | |
2703 | ||
2704 | if test "$wxUSE_NANOX" = yes; then | |
2705 | echo "$as_me:$LINENO: result: yes" >&5 | |
2706 | echo "${ECHO_T}yes" >&6 | |
2707 | else | |
2708 | echo "$as_me:$LINENO: result: no" >&5 | |
2709 | echo "${ECHO_T}no" >&6 | |
2710 | fi | |
2711 | ||
2712 | ||
f34ca037 MW |
2713 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2714 | if test "${enable_gtk2+set}" = set; then | |
2715 | enableval="$enable_gtk2" | |
2716 | wxUSE_GTK2="$enableval" | |
2717 | fi; | |
a848cd7e | 2718 | |
a848cd7e SC |
2719 | enablestring= |
2720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2721 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2722 | no_cache=0 | |
2723 | # Check whether --enable-gpe or --disable-gpe was given. | |
2724 | if test "${enable_gpe+set}" = set; then | |
2725 | enableval="$enable_gpe" | |
2726 | ||
2727 | if test "$enableval" = yes; then | |
2728 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2729 | else | |
2730 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2731 | fi | |
2732 | ||
2733 | else | |
2734 | ||
2735 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2736 | if test "x$LINE" != x ; then | |
2737 | eval "DEFAULT_$LINE" | |
2738 | else | |
2739 | no_cache=1 | |
2740 | fi | |
2741 | ||
2742 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2743 | ||
2744 | fi; | |
2745 | ||
2746 | eval "$ac_cv_use_gpe" | |
2747 | if test "$no_cache" != 1; then | |
2748 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2749 | fi | |
2750 | ||
2751 | if test "$wxUSE_GPE" = yes; then | |
2752 | echo "$as_me:$LINENO: result: yes" >&5 | |
2753 | echo "${ECHO_T}yes" >&6 | |
2754 | else | |
2755 | echo "$as_me:$LINENO: result: no" >&5 | |
2756 | echo "${ECHO_T}no" >&6 | |
2757 | fi | |
2758 | ||
2759 | ||
2760 | ||
2761 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2762 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2763 | no_cache=0 | |
2764 | ||
2765 | # Check whether --with-libpng or --without-libpng was given. | |
2766 | if test "${with_libpng+set}" = set; then | |
2767 | withval="$with_libpng" | |
2768 | ||
2769 | if test "$withval" = yes; then | |
2770 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2771 | elif test "$withval" = no; then | |
2772 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2773 | elif test "$withval" = sys; then | |
2774 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2775 | elif test "$withval" = builtin; then | |
2776 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2777 | else | |
2778 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2779 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2780 | { (exit 1); exit 1; }; } | |
2781 | fi | |
2782 | ||
2783 | else | |
2784 | ||
2785 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2786 | if test "x$LINE" != x ; then | |
2787 | eval "DEFAULT_$LINE" | |
2788 | else | |
2789 | no_cache=1 | |
2790 | fi | |
2791 | ||
2792 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2793 | ||
2794 | fi; | |
2795 | ||
2796 | eval "$ac_cv_use_libpng" | |
2797 | if test "$no_cache" != 1; then | |
2798 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2799 | fi | |
2800 | ||
2801 | if test "$wxUSE_LIBPNG" = yes; then | |
2802 | echo "$as_me:$LINENO: result: yes" >&5 | |
2803 | echo "${ECHO_T}yes" >&6 | |
2804 | elif test "$wxUSE_LIBPNG" = no; then | |
2805 | echo "$as_me:$LINENO: result: no" >&5 | |
2806 | echo "${ECHO_T}no" >&6 | |
2807 | elif test "$wxUSE_LIBPNG" = sys; then | |
2808 | echo "$as_me:$LINENO: result: system version" >&5 | |
2809 | echo "${ECHO_T}system version" >&6 | |
2810 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2811 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2812 | echo "${ECHO_T}builtin version" >&6 | |
2813 | else | |
2814 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2815 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2816 | { (exit 1); exit 1; }; } | |
2817 | fi | |
2818 | ||
2819 | ||
2820 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2821 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2822 | no_cache=0 | |
2823 | ||
2824 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2825 | if test "${with_libjpeg+set}" = set; then | |
2826 | withval="$with_libjpeg" | |
2827 | ||
2828 | if test "$withval" = yes; then | |
2829 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2830 | elif test "$withval" = no; then | |
2831 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2832 | elif test "$withval" = sys; then | |
2833 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2834 | elif test "$withval" = builtin; then | |
2835 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2836 | else | |
2837 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2838 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2839 | { (exit 1); exit 1; }; } | |
2840 | fi | |
2841 | ||
2842 | else | |
2843 | ||
2844 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2845 | if test "x$LINE" != x ; then | |
2846 | eval "DEFAULT_$LINE" | |
2847 | else | |
2848 | no_cache=1 | |
2849 | fi | |
2850 | ||
2851 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2852 | ||
2853 | fi; | |
2854 | ||
2855 | eval "$ac_cv_use_libjpeg" | |
2856 | if test "$no_cache" != 1; then | |
2857 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2858 | fi | |
2859 | ||
2860 | if test "$wxUSE_LIBJPEG" = yes; then | |
2861 | echo "$as_me:$LINENO: result: yes" >&5 | |
2862 | echo "${ECHO_T}yes" >&6 | |
2863 | elif test "$wxUSE_LIBJPEG" = no; then | |
2864 | echo "$as_me:$LINENO: result: no" >&5 | |
2865 | echo "${ECHO_T}no" >&6 | |
2866 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2867 | echo "$as_me:$LINENO: result: system version" >&5 | |
2868 | echo "${ECHO_T}system version" >&6 | |
2869 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2870 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2871 | echo "${ECHO_T}builtin version" >&6 | |
2872 | else | |
2873 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2874 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2875 | { (exit 1); exit 1; }; } | |
2876 | fi | |
2877 | ||
2878 | ||
2879 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2880 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2881 | no_cache=0 | |
2882 | ||
2883 | # Check whether --with-libtiff or --without-libtiff was given. | |
2884 | if test "${with_libtiff+set}" = set; then | |
2885 | withval="$with_libtiff" | |
2886 | ||
2887 | if test "$withval" = yes; then | |
2888 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2889 | elif test "$withval" = no; then | |
2890 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2891 | elif test "$withval" = sys; then | |
2892 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2893 | elif test "$withval" = builtin; then | |
2894 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2895 | else | |
2896 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2897 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2898 | { (exit 1); exit 1; }; } | |
2899 | fi | |
2900 | ||
2901 | else | |
2902 | ||
2903 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2904 | if test "x$LINE" != x ; then | |
2905 | eval "DEFAULT_$LINE" | |
2906 | else | |
2907 | no_cache=1 | |
2908 | fi | |
2909 | ||
2910 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2911 | ||
2912 | fi; | |
2913 | ||
2914 | eval "$ac_cv_use_libtiff" | |
2915 | if test "$no_cache" != 1; then | |
2916 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2917 | fi | |
2918 | ||
2919 | if test "$wxUSE_LIBTIFF" = yes; then | |
2920 | echo "$as_me:$LINENO: result: yes" >&5 | |
2921 | echo "${ECHO_T}yes" >&6 | |
2922 | elif test "$wxUSE_LIBTIFF" = no; then | |
2923 | echo "$as_me:$LINENO: result: no" >&5 | |
2924 | echo "${ECHO_T}no" >&6 | |
2925 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2926 | echo "$as_me:$LINENO: result: system version" >&5 | |
2927 | echo "${ECHO_T}system version" >&6 | |
2928 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2929 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2930 | echo "${ECHO_T}builtin version" >&6 | |
2931 | else | |
2932 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2933 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2934 | { (exit 1); exit 1; }; } | |
2935 | fi | |
2936 | ||
2937 | ||
2938 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2939 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2940 | no_cache=0 | |
2941 | ||
2942 | # Check whether --with-libxpm or --without-libxpm was given. | |
2943 | if test "${with_libxpm+set}" = set; then | |
2944 | withval="$with_libxpm" | |
2945 | ||
2946 | if test "$withval" = yes; then | |
2947 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2948 | elif test "$withval" = no; then | |
2949 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2950 | elif test "$withval" = sys; then | |
2951 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2952 | elif test "$withval" = builtin; then | |
2953 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2954 | else | |
2955 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2956 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2957 | { (exit 1); exit 1; }; } | |
2958 | fi | |
2959 | ||
2960 | else | |
2961 | ||
2962 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2963 | if test "x$LINE" != x ; then | |
2964 | eval "DEFAULT_$LINE" | |
2965 | else | |
2966 | no_cache=1 | |
2967 | fi | |
2968 | ||
2969 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2970 | ||
2971 | fi; | |
2972 | ||
2973 | eval "$ac_cv_use_libxpm" | |
2974 | if test "$no_cache" != 1; then | |
2975 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2976 | fi | |
2977 | ||
2978 | if test "$wxUSE_LIBXPM" = yes; then | |
2979 | echo "$as_me:$LINENO: result: yes" >&5 | |
2980 | echo "${ECHO_T}yes" >&6 | |
2981 | elif test "$wxUSE_LIBXPM" = no; then | |
2982 | echo "$as_me:$LINENO: result: no" >&5 | |
2983 | echo "${ECHO_T}no" >&6 | |
2984 | elif test "$wxUSE_LIBXPM" = sys; then | |
2985 | echo "$as_me:$LINENO: result: system version" >&5 | |
2986 | echo "${ECHO_T}system version" >&6 | |
2987 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2988 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2989 | echo "${ECHO_T}builtin version" >&6 | |
2990 | else | |
2991 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2992 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2993 | { (exit 1); exit 1; }; } | |
2994 | fi | |
2995 | ||
2996 | ||
2997 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2998 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2999 | no_cache=0 | |
3000 | ||
3001 | # Check whether --with-libmspack or --without-libmspack was given. | |
3002 | if test "${with_libmspack+set}" = set; then | |
3003 | withval="$with_libmspack" | |
3004 | ||
3005 | if test "$withval" = yes; then | |
3006 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3007 | else | |
3008 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3009 | fi | |
3010 | ||
3011 | else | |
3012 | ||
3013 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3014 | if test "x$LINE" != x ; then | |
3015 | eval "DEFAULT_$LINE" | |
3016 | else | |
3017 | no_cache=1 | |
3018 | fi | |
3019 | ||
3020 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3021 | ||
3022 | fi; | |
3023 | ||
3024 | eval "$ac_cv_use_libmspack" | |
3025 | if test "$no_cache" != 1; then | |
3026 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3027 | fi | |
3028 | ||
3029 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3030 | echo "$as_me:$LINENO: result: yes" >&5 | |
3031 | echo "${ECHO_T}yes" >&6 | |
3032 | else | |
3033 | echo "$as_me:$LINENO: result: no" >&5 | |
3034 | echo "${ECHO_T}no" >&6 | |
3035 | fi | |
3036 | ||
3037 | ||
3038 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3039 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3040 | no_cache=0 | |
3041 | ||
3042 | # Check whether --with-sdl or --without-sdl was given. | |
3043 | if test "${with_sdl+set}" = set; then | |
3044 | withval="$with_sdl" | |
3045 | ||
3046 | if test "$withval" = yes; then | |
3047 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3048 | else | |
3049 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3050 | fi | |
3051 | ||
3052 | else | |
3053 | ||
3054 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3055 | if test "x$LINE" != x ; then | |
3056 | eval "DEFAULT_$LINE" | |
3057 | else | |
3058 | no_cache=1 | |
3059 | fi | |
3060 | ||
3061 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3062 | ||
3063 | fi; | |
3064 | ||
3065 | eval "$ac_cv_use_sdl" | |
3066 | if test "$no_cache" != 1; then | |
3067 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3068 | fi | |
3069 | ||
3070 | if test "$wxUSE_LIBSDL" = yes; then | |
3071 | echo "$as_me:$LINENO: result: yes" >&5 | |
3072 | echo "${ECHO_T}yes" >&6 | |
3073 | else | |
3074 | echo "$as_me:$LINENO: result: no" >&5 | |
3075 | echo "${ECHO_T}no" >&6 | |
3076 | fi | |
3077 | ||
3078 | ||
d1c38808 VZ |
3079 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3080 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3081 | no_cache=0 | |
3082 | ||
3083 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3084 | if test "${with_gnomeprint+set}" = set; then | |
3085 | withval="$with_gnomeprint" | |
3086 | ||
3087 | if test "$withval" = yes; then | |
3088 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3089 | else | |
3090 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3091 | fi | |
3092 | ||
3093 | else | |
3094 | ||
3095 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3096 | if test "x$LINE" != x ; then | |
3097 | eval "DEFAULT_$LINE" | |
3098 | else | |
3099 | no_cache=1 | |
3100 | fi | |
3101 | ||
3102 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3103 | ||
3104 | fi; | |
3105 | ||
3106 | eval "$ac_cv_use_gnomeprint" | |
3107 | if test "$no_cache" != 1; then | |
3108 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3109 | fi | |
3110 | ||
3111 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3112 | echo "$as_me:$LINENO: result: yes" >&5 | |
3113 | echo "${ECHO_T}yes" >&6 | |
3114 | else | |
3115 | echo "$as_me:$LINENO: result: no" >&5 | |
3116 | echo "${ECHO_T}no" >&6 | |
3117 | fi | |
3118 | ||
3119 | ||
a848cd7e SC |
3120 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3121 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3122 | no_cache=0 | |
3123 | ||
3124 | # Check whether --with-opengl or --without-opengl was given. | |
3125 | if test "${with_opengl+set}" = set; then | |
3126 | withval="$with_opengl" | |
3127 | ||
3128 | if test "$withval" = yes; then | |
3129 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3130 | else | |
3131 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3132 | fi | |
3133 | ||
3134 | else | |
3135 | ||
3136 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3137 | if test "x$LINE" != x ; then | |
3138 | eval "DEFAULT_$LINE" | |
3139 | else | |
3140 | no_cache=1 | |
3141 | fi | |
3142 | ||
3143 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3144 | ||
3145 | fi; | |
3146 | ||
3147 | eval "$ac_cv_use_opengl" | |
3148 | if test "$no_cache" != 1; then | |
3149 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3150 | fi | |
3151 | ||
3152 | if test "$wxUSE_OPENGL" = yes; then | |
3153 | echo "$as_me:$LINENO: result: yes" >&5 | |
3154 | echo "${ECHO_T}yes" >&6 | |
3155 | else | |
3156 | echo "$as_me:$LINENO: result: no" >&5 | |
3157 | echo "${ECHO_T}no" >&6 | |
3158 | fi | |
3159 | ||
3160 | ||
3161 | fi | |
3162 | ||
3163 | ||
3164 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3165 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3166 | no_cache=0 | |
3167 | ||
3168 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3169 | if test "${with_dmalloc+set}" = set; then | |
3170 | withval="$with_dmalloc" | |
3171 | ||
3172 | if test "$withval" = yes; then | |
3173 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3174 | else | |
3175 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3176 | fi | |
3177 | ||
3178 | else | |
3179 | ||
3180 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3181 | if test "x$LINE" != x ; then | |
3182 | eval "DEFAULT_$LINE" | |
3183 | else | |
3184 | no_cache=1 | |
3185 | fi | |
3186 | ||
3187 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3188 | ||
3189 | fi; | |
3190 | ||
3191 | eval "$ac_cv_use_dmalloc" | |
3192 | if test "$no_cache" != 1; then | |
3193 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3194 | fi | |
3195 | ||
3196 | if test "$wxUSE_DMALLOC" = yes; then | |
3197 | echo "$as_me:$LINENO: result: yes" >&5 | |
3198 | echo "${ECHO_T}yes" >&6 | |
3199 | else | |
3200 | echo "$as_me:$LINENO: result: no" >&5 | |
3201 | echo "${ECHO_T}no" >&6 | |
3202 | fi | |
3203 | ||
3204 | ||
3205 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3206 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3207 | no_cache=0 | |
3208 | ||
3209 | # Check whether --with-regex or --without-regex was given. | |
3210 | if test "${with_regex+set}" = set; then | |
3211 | withval="$with_regex" | |
3212 | ||
3213 | if test "$withval" = yes; then | |
3214 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3215 | elif test "$withval" = no; then | |
3216 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3217 | elif test "$withval" = sys; then | |
3218 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3219 | elif test "$withval" = builtin; then | |
3220 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3221 | else | |
3222 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3223 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3224 | { (exit 1); exit 1; }; } | |
3225 | fi | |
3226 | ||
3227 | else | |
3228 | ||
3229 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3230 | if test "x$LINE" != x ; then | |
3231 | eval "DEFAULT_$LINE" | |
3232 | else | |
3233 | no_cache=1 | |
3234 | fi | |
3235 | ||
3236 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3237 | ||
3238 | fi; | |
3239 | ||
3240 | eval "$ac_cv_use_regex" | |
3241 | if test "$no_cache" != 1; then | |
3242 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3243 | fi | |
3244 | ||
3245 | if test "$wxUSE_REGEX" = yes; then | |
3246 | echo "$as_me:$LINENO: result: yes" >&5 | |
3247 | echo "${ECHO_T}yes" >&6 | |
3248 | elif test "$wxUSE_REGEX" = no; then | |
3249 | echo "$as_me:$LINENO: result: no" >&5 | |
3250 | echo "${ECHO_T}no" >&6 | |
3251 | elif test "$wxUSE_REGEX" = sys; then | |
3252 | echo "$as_me:$LINENO: result: system version" >&5 | |
3253 | echo "${ECHO_T}system version" >&6 | |
3254 | elif test "$wxUSE_REGEX" = builtin; then | |
3255 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3256 | echo "${ECHO_T}builtin version" >&6 | |
3257 | else | |
3258 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3259 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3260 | { (exit 1); exit 1; }; } | |
3261 | fi | |
3262 | ||
3263 | ||
3264 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3265 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3266 | no_cache=0 | |
3267 | ||
3268 | # Check whether --with-zlib or --without-zlib was given. | |
3269 | if test "${with_zlib+set}" = set; then | |
3270 | withval="$with_zlib" | |
3271 | ||
3272 | if test "$withval" = yes; then | |
3273 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3274 | elif test "$withval" = no; then | |
3275 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3276 | elif test "$withval" = sys; then | |
3277 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3278 | elif test "$withval" = builtin; then | |
3279 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3280 | else | |
3281 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3282 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3283 | { (exit 1); exit 1; }; } | |
3284 | fi | |
3285 | ||
3286 | else | |
3287 | ||
3288 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3289 | if test "x$LINE" != x ; then | |
3290 | eval "DEFAULT_$LINE" | |
3291 | else | |
3292 | no_cache=1 | |
3293 | fi | |
3294 | ||
3295 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3296 | ||
3297 | fi; | |
3298 | ||
3299 | eval "$ac_cv_use_zlib" | |
3300 | if test "$no_cache" != 1; then | |
3301 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3302 | fi | |
3303 | ||
3304 | if test "$wxUSE_ZLIB" = yes; then | |
3305 | echo "$as_me:$LINENO: result: yes" >&5 | |
3306 | echo "${ECHO_T}yes" >&6 | |
3307 | elif test "$wxUSE_ZLIB" = no; then | |
3308 | echo "$as_me:$LINENO: result: no" >&5 | |
3309 | echo "${ECHO_T}no" >&6 | |
3310 | elif test "$wxUSE_ZLIB" = sys; then | |
3311 | echo "$as_me:$LINENO: result: system version" >&5 | |
3312 | echo "${ECHO_T}system version" >&6 | |
3313 | elif test "$wxUSE_ZLIB" = builtin; then | |
3314 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3315 | echo "${ECHO_T}builtin version" >&6 | |
3316 | else | |
3317 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3318 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3319 | { (exit 1); exit 1; }; } | |
3320 | fi | |
3321 | ||
3322 | ||
3323 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3324 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3325 | no_cache=0 | |
3326 | ||
3327 | # Check whether --with-odbc or --without-odbc was given. | |
3328 | if test "${with_odbc+set}" = set; then | |
3329 | withval="$with_odbc" | |
3330 | ||
3331 | if test "$withval" = yes; then | |
3332 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3333 | elif test "$withval" = no; then | |
3334 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3335 | elif test "$withval" = sys; then | |
3336 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3337 | elif test "$withval" = builtin; then | |
3338 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3339 | else | |
3340 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3341 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3342 | { (exit 1); exit 1; }; } | |
3343 | fi | |
3344 | ||
3345 | else | |
3346 | ||
3347 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3348 | if test "x$LINE" != x ; then | |
3349 | eval "DEFAULT_$LINE" | |
3350 | else | |
3351 | no_cache=1 | |
3352 | fi | |
3353 | ||
3354 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3355 | ||
3356 | fi; | |
3357 | ||
3358 | eval "$ac_cv_use_odbc" | |
3359 | if test "$no_cache" != 1; then | |
3360 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3361 | fi | |
3362 | ||
3363 | if test "$wxUSE_ODBC" = yes; then | |
3364 | echo "$as_me:$LINENO: result: yes" >&5 | |
3365 | echo "${ECHO_T}yes" >&6 | |
3366 | elif test "$wxUSE_ODBC" = no; then | |
3367 | echo "$as_me:$LINENO: result: no" >&5 | |
3368 | echo "${ECHO_T}no" >&6 | |
3369 | elif test "$wxUSE_ODBC" = sys; then | |
3370 | echo "$as_me:$LINENO: result: system version" >&5 | |
3371 | echo "${ECHO_T}system version" >&6 | |
3372 | elif test "$wxUSE_ODBC" = builtin; then | |
3373 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3374 | echo "${ECHO_T}builtin version" >&6 | |
3375 | else | |
3376 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3377 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3378 | { (exit 1); exit 1; }; } | |
3379 | fi | |
3380 | ||
3381 | ||
3382 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3383 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3384 | no_cache=0 | |
3385 | ||
3386 | # Check whether --with-expat or --without-expat was given. | |
3387 | if test "${with_expat+set}" = set; then | |
3388 | withval="$with_expat" | |
3389 | ||
3390 | if test "$withval" = yes; then | |
3391 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3392 | elif test "$withval" = no; then | |
3393 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3394 | elif test "$withval" = sys; then | |
3395 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3396 | elif test "$withval" = builtin; then | |
3397 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3398 | else | |
3399 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3400 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3401 | { (exit 1); exit 1; }; } | |
3402 | fi | |
3403 | ||
3404 | else | |
3405 | ||
3406 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3407 | if test "x$LINE" != x ; then | |
3408 | eval "DEFAULT_$LINE" | |
3409 | else | |
3410 | no_cache=1 | |
3411 | fi | |
3412 | ||
3413 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3414 | ||
3415 | fi; | |
3416 | ||
3417 | eval "$ac_cv_use_expat" | |
3418 | if test "$no_cache" != 1; then | |
3419 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3420 | fi | |
3421 | ||
3422 | if test "$wxUSE_EXPAT" = yes; then | |
3423 | echo "$as_me:$LINENO: result: yes" >&5 | |
3424 | echo "${ECHO_T}yes" >&6 | |
3425 | elif test "$wxUSE_EXPAT" = no; then | |
3426 | echo "$as_me:$LINENO: result: no" >&5 | |
3427 | echo "${ECHO_T}no" >&6 | |
3428 | elif test "$wxUSE_EXPAT" = sys; then | |
3429 | echo "$as_me:$LINENO: result: system version" >&5 | |
3430 | echo "${ECHO_T}system version" >&6 | |
3431 | elif test "$wxUSE_EXPAT" = builtin; then | |
3432 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3433 | echo "${ECHO_T}builtin version" >&6 | |
3434 | else | |
3435 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3436 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3437 | { (exit 1); exit 1; }; } | |
3438 | fi | |
3439 | ||
3440 | ||
3441 | ||
3442 | ||
3443 | enablestring= | |
3444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3445 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3446 | no_cache=0 | |
3447 | # Check whether --enable-shared or --disable-shared was given. | |
3448 | if test "${enable_shared+set}" = set; then | |
3449 | enableval="$enable_shared" | |
3450 | ||
3451 | if test "$enableval" = yes; then | |
3452 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3453 | else | |
3454 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3455 | fi | |
3456 | ||
3457 | else | |
3458 | ||
3459 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3460 | if test "x$LINE" != x ; then | |
3461 | eval "DEFAULT_$LINE" | |
3462 | else | |
3463 | no_cache=1 | |
3464 | fi | |
3465 | ||
3466 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3467 | ||
3468 | fi; | |
3469 | ||
3470 | eval "$ac_cv_use_shared" | |
3471 | if test "$no_cache" != 1; then | |
3472 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3473 | fi | |
3474 | ||
3475 | if test "$wxUSE_SHARED" = yes; then | |
3476 | echo "$as_me:$LINENO: result: yes" >&5 | |
3477 | echo "${ECHO_T}yes" >&6 | |
3478 | else | |
3479 | echo "$as_me:$LINENO: result: no" >&5 | |
3480 | echo "${ECHO_T}no" >&6 | |
3481 | fi | |
3482 | ||
3483 | ||
3484 | enablestring= | |
3485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3486 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3487 | no_cache=0 | |
3488 | # Check whether --enable-optimise or --disable-optimise was given. | |
3489 | if test "${enable_optimise+set}" = set; then | |
3490 | enableval="$enable_optimise" | |
3491 | ||
3492 | if test "$enableval" = yes; then | |
3493 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3494 | else | |
3495 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3496 | fi | |
3497 | ||
3498 | else | |
3499 | ||
3500 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3501 | if test "x$LINE" != x ; then | |
3502 | eval "DEFAULT_$LINE" | |
3503 | else | |
3504 | no_cache=1 | |
3505 | fi | |
3506 | ||
3507 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3508 | ||
3509 | fi; | |
3510 | ||
3511 | eval "$ac_cv_use_optimise" | |
3512 | if test "$no_cache" != 1; then | |
3513 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3514 | fi | |
3515 | ||
3516 | if test "$wxUSE_OPTIMISE" = yes; then | |
3517 | echo "$as_me:$LINENO: result: yes" >&5 | |
3518 | echo "${ECHO_T}yes" >&6 | |
3519 | else | |
3520 | echo "$as_me:$LINENO: result: no" >&5 | |
3521 | echo "${ECHO_T}no" >&6 | |
3522 | fi | |
3523 | ||
3524 | ||
3525 | enablestring= | |
3526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3527 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3528 | no_cache=0 | |
3529 | # Check whether --enable-debug or --disable-debug was given. | |
3530 | if test "${enable_debug+set}" = set; then | |
3531 | enableval="$enable_debug" | |
3532 | ||
3533 | if test "$enableval" = yes; then | |
3534 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3535 | else | |
3536 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3537 | fi | |
3538 | ||
3539 | else | |
3540 | ||
3541 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3542 | if test "x$LINE" != x ; then | |
3543 | eval "DEFAULT_$LINE" | |
3544 | else | |
3545 | no_cache=1 | |
3546 | fi | |
3547 | ||
3548 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3549 | ||
3550 | fi; | |
3551 | ||
3552 | eval "$ac_cv_use_debug" | |
3553 | if test "$no_cache" != 1; then | |
3554 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3555 | fi | |
3556 | ||
3557 | if test "$wxUSE_DEBUG" = yes; then | |
3558 | echo "$as_me:$LINENO: result: yes" >&5 | |
3559 | echo "${ECHO_T}yes" >&6 | |
3560 | else | |
3561 | echo "$as_me:$LINENO: result: no" >&5 | |
3562 | echo "${ECHO_T}no" >&6 | |
3563 | fi | |
3564 | ||
3565 | ||
3566 | enablestring= | |
3567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3568 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3569 | no_cache=0 | |
3570 | # Check whether --enable-stl or --disable-stl was given. | |
3571 | if test "${enable_stl+set}" = set; then | |
3572 | enableval="$enable_stl" | |
3573 | ||
3574 | if test "$enableval" = yes; then | |
3575 | ac_cv_use_stl='wxUSE_STL=yes' | |
3576 | else | |
3577 | ac_cv_use_stl='wxUSE_STL=no' | |
3578 | fi | |
3579 | ||
3580 | else | |
3581 | ||
3582 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3583 | if test "x$LINE" != x ; then | |
3584 | eval "DEFAULT_$LINE" | |
3585 | else | |
3586 | no_cache=1 | |
3587 | fi | |
3588 | ||
3589 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3590 | ||
3591 | fi; | |
3592 | ||
3593 | eval "$ac_cv_use_stl" | |
3594 | if test "$no_cache" != 1; then | |
3595 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3596 | fi | |
3597 | ||
3598 | if test "$wxUSE_STL" = yes; then | |
3599 | echo "$as_me:$LINENO: result: yes" >&5 | |
3600 | echo "${ECHO_T}yes" >&6 | |
3601 | else | |
3602 | echo "$as_me:$LINENO: result: no" >&5 | |
3603 | echo "${ECHO_T}no" >&6 | |
3604 | fi | |
3605 | ||
3606 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3607 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3608 | |
3609 | enablestring= | |
3610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3611 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3612 | no_cache=0 | |
3613 | # Check whether --enable-omf or --disable-omf was given. | |
3614 | if test "${enable_omf+set}" = set; then | |
3615 | enableval="$enable_omf" | |
3616 | ||
3617 | if test "$enableval" = yes; then | |
3618 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3619 | else | |
3620 | ac_cv_use_omf='wxUSE_OMF=no' | |
3621 | fi | |
3622 | ||
3623 | else | |
3624 | ||
3625 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3626 | if test "x$LINE" != x ; then | |
3627 | eval "DEFAULT_$LINE" | |
3628 | else | |
3629 | no_cache=1 | |
3630 | fi | |
3631 | ||
3632 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3633 | ||
3634 | fi; | |
3635 | ||
3636 | eval "$ac_cv_use_omf" | |
3637 | if test "$no_cache" != 1; then | |
3638 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3639 | fi | |
3640 | ||
3641 | if test "$wxUSE_OMF" = yes; then | |
3642 | echo "$as_me:$LINENO: result: yes" >&5 | |
3643 | echo "${ECHO_T}yes" >&6 | |
3644 | else | |
3645 | echo "$as_me:$LINENO: result: no" >&5 | |
3646 | echo "${ECHO_T}no" >&6 | |
3647 | fi | |
3648 | ||
3649 | fi | |
3650 | ||
3651 | if test "$wxUSE_DEBUG" = "yes"; then | |
3652 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3653 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3654 | BUILD=debug | |
3655 | elif test "$wxUSE_DEBUG" = "no"; then | |
3656 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3657 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3658 | BUILD=release | |
3659 | fi | |
3660 | ||
3661 | ||
3662 | enablestring= | |
3663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3664 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3665 | no_cache=0 | |
3666 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3667 | if test "${enable_debug_flag+set}" = set; then | |
3668 | enableval="$enable_debug_flag" | |
3669 | ||
3670 | if test "$enableval" = yes; then | |
3671 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3672 | else | |
3673 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3674 | fi | |
3675 | ||
3676 | else | |
3677 | ||
3678 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3679 | if test "x$LINE" != x ; then | |
3680 | eval "DEFAULT_$LINE" | |
3681 | else | |
3682 | no_cache=1 | |
3683 | fi | |
3684 | ||
3685 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3686 | ||
3687 | fi; | |
3688 | ||
3689 | eval "$ac_cv_use_debug_flag" | |
3690 | if test "$no_cache" != 1; then | |
3691 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3692 | fi | |
3693 | ||
3694 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3695 | echo "$as_me:$LINENO: result: yes" >&5 | |
3696 | echo "${ECHO_T}yes" >&6 | |
3697 | else | |
3698 | echo "$as_me:$LINENO: result: no" >&5 | |
3699 | echo "${ECHO_T}no" >&6 | |
3700 | fi | |
3701 | ||
3702 | ||
3703 | enablestring= | |
3704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3705 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3706 | no_cache=0 | |
3707 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3708 | if test "${enable_debug_info+set}" = set; then | |
3709 | enableval="$enable_debug_info" | |
3710 | ||
3711 | if test "$enableval" = yes; then | |
3712 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3713 | else | |
3714 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3715 | fi | |
3716 | ||
3717 | else | |
3718 | ||
3719 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3720 | if test "x$LINE" != x ; then | |
3721 | eval "DEFAULT_$LINE" | |
3722 | else | |
3723 | no_cache=1 | |
3724 | fi | |
3725 | ||
3726 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3727 | ||
3728 | fi; | |
3729 | ||
3730 | eval "$ac_cv_use_debug_info" | |
3731 | if test "$no_cache" != 1; then | |
3732 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3733 | fi | |
3734 | ||
3735 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3736 | echo "$as_me:$LINENO: result: yes" >&5 | |
3737 | echo "${ECHO_T}yes" >&6 | |
3738 | else | |
3739 | echo "$as_me:$LINENO: result: no" >&5 | |
3740 | echo "${ECHO_T}no" >&6 | |
3741 | fi | |
3742 | ||
3743 | ||
3744 | enablestring= | |
3745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3746 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3747 | no_cache=0 | |
3748 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3749 | if test "${enable_debug_gdb+set}" = set; then | |
3750 | enableval="$enable_debug_gdb" | |
3751 | ||
3752 | if test "$enableval" = yes; then | |
3753 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3754 | else | |
3755 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3756 | fi | |
3757 | ||
3758 | else | |
3759 | ||
3760 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3761 | if test "x$LINE" != x ; then | |
3762 | eval "DEFAULT_$LINE" | |
3763 | else | |
3764 | no_cache=1 | |
3765 | fi | |
3766 | ||
3767 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3768 | ||
3769 | fi; | |
3770 | ||
3771 | eval "$ac_cv_use_debug_gdb" | |
3772 | if test "$no_cache" != 1; then | |
3773 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3774 | fi | |
3775 | ||
3776 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3777 | echo "$as_me:$LINENO: result: yes" >&5 | |
3778 | echo "${ECHO_T}yes" >&6 | |
3779 | else | |
3780 | echo "$as_me:$LINENO: result: no" >&5 | |
3781 | echo "${ECHO_T}no" >&6 | |
3782 | fi | |
3783 | ||
3784 | ||
3785 | enablestring= | |
3786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3787 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3788 | no_cache=0 | |
3789 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3790 | if test "${enable_debug_cntxt+set}" = set; then | |
3791 | enableval="$enable_debug_cntxt" | |
3792 | ||
3793 | if test "$enableval" = yes; then | |
3794 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3795 | else | |
3796 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3797 | fi | |
3798 | ||
3799 | else | |
3800 | ||
3801 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3802 | if test "x$LINE" != x ; then | |
3803 | eval "DEFAULT_$LINE" | |
3804 | else | |
3805 | no_cache=1 | |
3806 | fi | |
3807 | ||
3808 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3809 | ||
3810 | fi; | |
3811 | ||
3812 | eval "$ac_cv_use_debug_cntxt" | |
3813 | if test "$no_cache" != 1; then | |
3814 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3815 | fi | |
3816 | ||
3817 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3818 | echo "$as_me:$LINENO: result: yes" >&5 | |
3819 | echo "${ECHO_T}yes" >&6 | |
3820 | else | |
3821 | echo "$as_me:$LINENO: result: no" >&5 | |
3822 | echo "${ECHO_T}no" >&6 | |
3823 | fi | |
3824 | ||
3825 | ||
3826 | enablestring= | |
3827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3828 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3829 | no_cache=0 | |
3830 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3831 | if test "${enable_mem_tracing+set}" = set; then | |
3832 | enableval="$enable_mem_tracing" | |
3833 | ||
3834 | if test "$enableval" = yes; then | |
3835 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3836 | else | |
3837 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3838 | fi | |
3839 | ||
3840 | else | |
3841 | ||
3842 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3843 | if test "x$LINE" != x ; then | |
3844 | eval "DEFAULT_$LINE" | |
3845 | else | |
3846 | no_cache=1 | |
3847 | fi | |
3848 | ||
3849 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3850 | ||
3851 | fi; | |
3852 | ||
3853 | eval "$ac_cv_use_mem_tracing" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3859 | echo "$as_me:$LINENO: result: yes" >&5 | |
3860 | echo "${ECHO_T}yes" >&6 | |
3861 | else | |
3862 | echo "$as_me:$LINENO: result: no" >&5 | |
3863 | echo "${ECHO_T}no" >&6 | |
3864 | fi | |
3865 | ||
3866 | ||
3867 | enablestring= | |
3868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3869 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3870 | no_cache=0 | |
3871 | # Check whether --enable-profile or --disable-profile was given. | |
3872 | if test "${enable_profile+set}" = set; then | |
3873 | enableval="$enable_profile" | |
3874 | ||
3875 | if test "$enableval" = yes; then | |
3876 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3877 | else | |
3878 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3879 | fi | |
3880 | ||
3881 | else | |
3882 | ||
3883 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3891 | ||
3892 | fi; | |
3893 | ||
3894 | eval "$ac_cv_use_profile" | |
3895 | if test "$no_cache" != 1; then | |
3896 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3897 | fi | |
3898 | ||
3899 | if test "$wxUSE_PROFILE" = yes; then | |
3900 | echo "$as_me:$LINENO: result: yes" >&5 | |
3901 | echo "${ECHO_T}yes" >&6 | |
3902 | else | |
3903 | echo "$as_me:$LINENO: result: no" >&5 | |
3904 | echo "${ECHO_T}no" >&6 | |
3905 | fi | |
3906 | ||
3907 | ||
3908 | enablestring= | |
3909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3910 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3911 | no_cache=0 | |
3912 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3913 | if test "${enable_no_rtti+set}" = set; then | |
3914 | enableval="$enable_no_rtti" | |
3915 | ||
3916 | if test "$enableval" = yes; then | |
3917 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3918 | else | |
3919 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3920 | fi | |
3921 | ||
3922 | else | |
3923 | ||
3924 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3925 | if test "x$LINE" != x ; then | |
3926 | eval "DEFAULT_$LINE" | |
3927 | else | |
3928 | no_cache=1 | |
3929 | fi | |
3930 | ||
3931 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3932 | ||
3933 | fi; | |
3934 | ||
3935 | eval "$ac_cv_use_no_rtti" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_NO_RTTI" = yes; then | |
3941 | echo "$as_me:$LINENO: result: yes" >&5 | |
3942 | echo "${ECHO_T}yes" >&6 | |
3943 | else | |
3944 | echo "$as_me:$LINENO: result: no" >&5 | |
3945 | echo "${ECHO_T}no" >&6 | |
3946 | fi | |
3947 | ||
3948 | ||
3949 | enablestring= | |
3950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3951 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3952 | no_cache=0 | |
3953 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3954 | if test "${enable_no_exceptions+set}" = set; then | |
3955 | enableval="$enable_no_exceptions" | |
3956 | ||
3957 | if test "$enableval" = yes; then | |
3958 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3959 | else | |
3960 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3961 | fi | |
3962 | ||
3963 | else | |
3964 | ||
3965 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3966 | if test "x$LINE" != x ; then | |
3967 | eval "DEFAULT_$LINE" | |
3968 | else | |
3969 | no_cache=1 | |
3970 | fi | |
3971 | ||
3972 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3973 | ||
3974 | fi; | |
3975 | ||
3976 | eval "$ac_cv_use_no_exceptions" | |
3977 | if test "$no_cache" != 1; then | |
3978 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3979 | fi | |
3980 | ||
3981 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3982 | echo "$as_me:$LINENO: result: yes" >&5 | |
3983 | echo "${ECHO_T}yes" >&6 | |
3984 | else | |
3985 | echo "$as_me:$LINENO: result: no" >&5 | |
3986 | echo "${ECHO_T}no" >&6 | |
3987 | fi | |
3988 | ||
3989 | ||
3990 | enablestring= | |
3991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3992 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3993 | no_cache=0 | |
3994 | # Check whether --enable-permissive or --disable-permissive was given. | |
3995 | if test "${enable_permissive+set}" = set; then | |
3996 | enableval="$enable_permissive" | |
3997 | ||
3998 | if test "$enableval" = yes; then | |
3999 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4000 | else | |
4001 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4002 | fi | |
4003 | ||
4004 | else | |
4005 | ||
4006 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4007 | if test "x$LINE" != x ; then | |
4008 | eval "DEFAULT_$LINE" | |
4009 | else | |
4010 | no_cache=1 | |
4011 | fi | |
4012 | ||
4013 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4014 | ||
4015 | fi; | |
4016 | ||
4017 | eval "$ac_cv_use_permissive" | |
4018 | if test "$no_cache" != 1; then | |
4019 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4020 | fi | |
4021 | ||
4022 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4023 | echo "$as_me:$LINENO: result: yes" >&5 | |
4024 | echo "${ECHO_T}yes" >&6 | |
4025 | else | |
4026 | echo "$as_me:$LINENO: result: no" >&5 | |
4027 | echo "${ECHO_T}no" >&6 | |
4028 | fi | |
4029 | ||
4030 | ||
4031 | enablestring= | |
4032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4033 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4034 | no_cache=0 | |
4035 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4036 | if test "${enable_no_deps+set}" = set; then | |
4037 | enableval="$enable_no_deps" | |
4038 | ||
4039 | if test "$enableval" = yes; then | |
4040 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4041 | else | |
4042 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4043 | fi | |
4044 | ||
4045 | else | |
4046 | ||
4047 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4048 | if test "x$LINE" != x ; then | |
4049 | eval "DEFAULT_$LINE" | |
4050 | else | |
4051 | no_cache=1 | |
4052 | fi | |
4053 | ||
4054 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4055 | ||
4056 | fi; | |
4057 | ||
4058 | eval "$ac_cv_use_no_deps" | |
4059 | if test "$no_cache" != 1; then | |
4060 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4061 | fi | |
4062 | ||
4063 | if test "$wxUSE_NO_DEPS" = yes; then | |
4064 | echo "$as_me:$LINENO: result: yes" >&5 | |
4065 | echo "${ECHO_T}yes" >&6 | |
4066 | else | |
4067 | echo "$as_me:$LINENO: result: no" >&5 | |
4068 | echo "${ECHO_T}no" >&6 | |
4069 | fi | |
4070 | ||
4071 | ||
4072 | ||
4073 | enablestring= | |
4074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4075 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4076 | no_cache=0 | |
4077 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4078 | if test "${enable_compat22+set}" = set; then | |
4079 | enableval="$enable_compat22" | |
4080 | ||
4081 | if test "$enableval" = yes; then | |
4082 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4083 | else | |
4084 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4085 | fi | |
4086 | ||
4087 | else | |
4088 | ||
4089 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4090 | if test "x$LINE" != x ; then | |
4091 | eval "DEFAULT_$LINE" | |
4092 | else | |
4093 | no_cache=1 | |
4094 | fi | |
4095 | ||
4096 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4097 | ||
4098 | fi; | |
4099 | ||
4100 | eval "$ac_cv_use_compat22" | |
4101 | if test "$no_cache" != 1; then | |
4102 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4103 | fi | |
4104 | ||
4105 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4106 | echo "$as_me:$LINENO: result: yes" >&5 | |
4107 | echo "${ECHO_T}yes" >&6 | |
4108 | else | |
4109 | echo "$as_me:$LINENO: result: no" >&5 | |
4110 | echo "${ECHO_T}no" >&6 | |
4111 | fi | |
4112 | ||
4113 | ||
4114 | enablestring=disable | |
4115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4116 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4117 | no_cache=0 | |
4118 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4119 | if test "${enable_compat24+set}" = set; then | |
4120 | enableval="$enable_compat24" | |
4121 | ||
4122 | if test "$enableval" = yes; then | |
4123 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4124 | else | |
4125 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4126 | fi | |
4127 | ||
4128 | else | |
4129 | ||
4130 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4131 | if test "x$LINE" != x ; then | |
4132 | eval "DEFAULT_$LINE" | |
4133 | else | |
4134 | no_cache=1 | |
4135 | fi | |
4136 | ||
4137 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4138 | ||
4139 | fi; | |
4140 | ||
4141 | eval "$ac_cv_use_compat24" | |
4142 | if test "$no_cache" != 1; then | |
4143 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4144 | fi | |
4145 | ||
4146 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4147 | echo "$as_me:$LINENO: result: yes" >&5 | |
4148 | echo "${ECHO_T}yes" >&6 | |
4149 | else | |
4150 | echo "$as_me:$LINENO: result: no" >&5 | |
4151 | echo "${ECHO_T}no" >&6 | |
4152 | fi | |
4153 | ||
4154 | ||
ffa0583f RL |
4155 | |
4156 | enablestring= | |
4157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4158 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4159 | no_cache=0 | |
4160 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4161 | if test "${enable_rpath+set}" = set; then |
4162 | enableval="$enable_rpath" | |
ffa0583f RL |
4163 | |
4164 | if test "$enableval" = yes; then | |
4165 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4166 | else | |
4167 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4168 | fi | |
4169 | ||
4170 | else | |
4171 | ||
4172 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4173 | if test "x$LINE" != x ; then | |
4174 | eval "DEFAULT_$LINE" | |
4175 | else | |
4176 | no_cache=1 | |
4177 | fi | |
4178 | ||
4179 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4180 | ||
a848cd7e SC |
4181 | fi; |
4182 | ||
ffa0583f RL |
4183 | eval "$ac_cv_use_rpath" |
4184 | if test "$no_cache" != 1; then | |
4185 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4186 | fi | |
4187 | ||
4188 | if test "$wxUSE_RPATH" = yes; then | |
4189 | echo "$as_me:$LINENO: result: yes" >&5 | |
4190 | echo "${ECHO_T}yes" >&6 | |
4191 | else | |
4192 | echo "$as_me:$LINENO: result: no" >&5 | |
4193 | echo "${ECHO_T}no" >&6 | |
4194 | fi | |
4195 | ||
a848cd7e SC |
4196 | |
4197 | ||
4198 | ||
4199 | ||
4200 | enablestring= | |
4201 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4202 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4203 | no_cache=0 | |
4204 | # Check whether --enable-intl or --disable-intl was given. | |
4205 | if test "${enable_intl+set}" = set; then | |
4206 | enableval="$enable_intl" | |
4207 | ||
4208 | if test "$enableval" = yes; then | |
4209 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4210 | else | |
4211 | ac_cv_use_intl='wxUSE_INTL=no' | |
4212 | fi | |
4213 | ||
4214 | else | |
4215 | ||
4216 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4217 | if test "x$LINE" != x ; then | |
4218 | eval "DEFAULT_$LINE" | |
4219 | else | |
4220 | no_cache=1 | |
4221 | fi | |
4222 | ||
4223 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4224 | ||
4225 | fi; | |
4226 | ||
4227 | eval "$ac_cv_use_intl" | |
4228 | if test "$no_cache" != 1; then | |
4229 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4230 | fi | |
4231 | ||
4232 | if test "$wxUSE_INTL" = yes; then | |
4233 | echo "$as_me:$LINENO: result: yes" >&5 | |
4234 | echo "${ECHO_T}yes" >&6 | |
4235 | else | |
4236 | echo "$as_me:$LINENO: result: no" >&5 | |
4237 | echo "${ECHO_T}no" >&6 | |
4238 | fi | |
4239 | ||
4240 | ||
4241 | enablestring= | |
4242 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4243 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4244 | no_cache=0 | |
4245 | # Check whether --enable-config or --disable-config was given. | |
4246 | if test "${enable_config+set}" = set; then | |
4247 | enableval="$enable_config" | |
4248 | ||
4249 | if test "$enableval" = yes; then | |
4250 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4251 | else | |
4252 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4253 | fi | |
4254 | ||
4255 | else | |
4256 | ||
4257 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4258 | if test "x$LINE" != x ; then | |
4259 | eval "DEFAULT_$LINE" | |
4260 | else | |
4261 | no_cache=1 | |
4262 | fi | |
4263 | ||
4264 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4265 | ||
4266 | fi; | |
4267 | ||
4268 | eval "$ac_cv_use_config" | |
4269 | if test "$no_cache" != 1; then | |
4270 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4271 | fi | |
4272 | ||
4273 | if test "$wxUSE_CONFIG" = yes; then | |
4274 | echo "$as_me:$LINENO: result: yes" >&5 | |
4275 | echo "${ECHO_T}yes" >&6 | |
4276 | else | |
4277 | echo "$as_me:$LINENO: result: no" >&5 | |
4278 | echo "${ECHO_T}no" >&6 | |
4279 | fi | |
4280 | ||
4281 | ||
4282 | ||
4283 | enablestring= | |
4284 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4285 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4286 | no_cache=0 | |
4287 | # Check whether --enable-protocols or --disable-protocols was given. | |
4288 | if test "${enable_protocols+set}" = set; then | |
4289 | enableval="$enable_protocols" | |
4290 | ||
4291 | if test "$enableval" = yes; then | |
4292 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4293 | else | |
4294 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4295 | fi | |
4296 | ||
4297 | else | |
4298 | ||
4299 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4300 | if test "x$LINE" != x ; then | |
4301 | eval "DEFAULT_$LINE" | |
4302 | else | |
4303 | no_cache=1 | |
4304 | fi | |
4305 | ||
4306 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4307 | ||
4308 | fi; | |
4309 | ||
4310 | eval "$ac_cv_use_protocols" | |
4311 | if test "$no_cache" != 1; then | |
4312 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4313 | fi | |
4314 | ||
4315 | if test "$wxUSE_PROTOCOL" = yes; then | |
4316 | echo "$as_me:$LINENO: result: yes" >&5 | |
4317 | echo "${ECHO_T}yes" >&6 | |
4318 | else | |
4319 | echo "$as_me:$LINENO: result: no" >&5 | |
4320 | echo "${ECHO_T}no" >&6 | |
4321 | fi | |
4322 | ||
4323 | ||
4324 | enablestring= | |
4325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4326 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4327 | no_cache=0 | |
4328 | # Check whether --enable-ftp or --disable-ftp was given. | |
4329 | if test "${enable_ftp+set}" = set; then | |
4330 | enableval="$enable_ftp" | |
4331 | ||
4332 | if test "$enableval" = yes; then | |
4333 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4334 | else | |
4335 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4336 | fi | |
4337 | ||
4338 | else | |
4339 | ||
4340 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4341 | if test "x$LINE" != x ; then | |
4342 | eval "DEFAULT_$LINE" | |
4343 | else | |
4344 | no_cache=1 | |
4345 | fi | |
4346 | ||
4347 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4348 | ||
4349 | fi; | |
4350 | ||
4351 | eval "$ac_cv_use_ftp" | |
4352 | if test "$no_cache" != 1; then | |
4353 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4354 | fi | |
4355 | ||
4356 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4357 | echo "$as_me:$LINENO: result: yes" >&5 | |
4358 | echo "${ECHO_T}yes" >&6 | |
4359 | else | |
4360 | echo "$as_me:$LINENO: result: no" >&5 | |
4361 | echo "${ECHO_T}no" >&6 | |
4362 | fi | |
4363 | ||
4364 | ||
4365 | enablestring= | |
4366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4367 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4368 | no_cache=0 | |
4369 | # Check whether --enable-http or --disable-http was given. | |
4370 | if test "${enable_http+set}" = set; then | |
4371 | enableval="$enable_http" | |
4372 | ||
4373 | if test "$enableval" = yes; then | |
4374 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4375 | else | |
4376 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4377 | fi | |
4378 | ||
4379 | else | |
4380 | ||
4381 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4382 | if test "x$LINE" != x ; then | |
4383 | eval "DEFAULT_$LINE" | |
4384 | else | |
4385 | no_cache=1 | |
4386 | fi | |
4387 | ||
4388 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4389 | ||
4390 | fi; | |
4391 | ||
4392 | eval "$ac_cv_use_http" | |
4393 | if test "$no_cache" != 1; then | |
4394 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4395 | fi | |
4396 | ||
4397 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4398 | echo "$as_me:$LINENO: result: yes" >&5 | |
4399 | echo "${ECHO_T}yes" >&6 | |
4400 | else | |
4401 | echo "$as_me:$LINENO: result: no" >&5 | |
4402 | echo "${ECHO_T}no" >&6 | |
4403 | fi | |
4404 | ||
4405 | ||
4406 | enablestring= | |
4407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4408 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4409 | no_cache=0 | |
4410 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4411 | if test "${enable_fileproto+set}" = set; then | |
4412 | enableval="$enable_fileproto" | |
4413 | ||
4414 | if test "$enableval" = yes; then | |
4415 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4416 | else | |
4417 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4418 | fi | |
4419 | ||
4420 | else | |
4421 | ||
4422 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4423 | if test "x$LINE" != x ; then | |
4424 | eval "DEFAULT_$LINE" | |
4425 | else | |
4426 | no_cache=1 | |
4427 | fi | |
4428 | ||
4429 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4430 | ||
4431 | fi; | |
4432 | ||
4433 | eval "$ac_cv_use_fileproto" | |
4434 | if test "$no_cache" != 1; then | |
4435 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4436 | fi | |
4437 | ||
4438 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4439 | echo "$as_me:$LINENO: result: yes" >&5 | |
4440 | echo "${ECHO_T}yes" >&6 | |
4441 | else | |
4442 | echo "$as_me:$LINENO: result: no" >&5 | |
4443 | echo "${ECHO_T}no" >&6 | |
4444 | fi | |
4445 | ||
4446 | ||
4447 | enablestring= | |
4448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4449 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4450 | no_cache=0 | |
4451 | # Check whether --enable-sockets or --disable-sockets was given. | |
4452 | if test "${enable_sockets+set}" = set; then | |
4453 | enableval="$enable_sockets" | |
4454 | ||
4455 | if test "$enableval" = yes; then | |
4456 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4457 | else | |
4458 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4459 | fi | |
4460 | ||
4461 | else | |
4462 | ||
4463 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4464 | if test "x$LINE" != x ; then | |
4465 | eval "DEFAULT_$LINE" | |
4466 | else | |
4467 | no_cache=1 | |
4468 | fi | |
4469 | ||
4470 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4471 | ||
4472 | fi; | |
4473 | ||
4474 | eval "$ac_cv_use_sockets" | |
4475 | if test "$no_cache" != 1; then | |
4476 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4477 | fi | |
4478 | ||
4479 | if test "$wxUSE_SOCKETS" = yes; then | |
4480 | echo "$as_me:$LINENO: result: yes" >&5 | |
4481 | echo "${ECHO_T}yes" >&6 | |
4482 | else | |
4483 | echo "$as_me:$LINENO: result: no" >&5 | |
4484 | echo "${ECHO_T}no" >&6 | |
4485 | fi | |
4486 | ||
4487 | ||
4488 | enablestring= | |
4489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4490 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4491 | no_cache=0 | |
4492 | # Check whether --enable-ole or --disable-ole was given. | |
4493 | if test "${enable_ole+set}" = set; then | |
4494 | enableval="$enable_ole" | |
4495 | ||
4496 | if test "$enableval" = yes; then | |
4497 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4498 | else | |
4499 | ac_cv_use_ole='wxUSE_OLE=no' | |
4500 | fi | |
4501 | ||
4502 | else | |
4503 | ||
4504 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4505 | if test "x$LINE" != x ; then | |
4506 | eval "DEFAULT_$LINE" | |
4507 | else | |
4508 | no_cache=1 | |
4509 | fi | |
4510 | ||
4511 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4512 | ||
4513 | fi; | |
4514 | ||
4515 | eval "$ac_cv_use_ole" | |
4516 | if test "$no_cache" != 1; then | |
4517 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4518 | fi | |
4519 | ||
4520 | if test "$wxUSE_OLE" = yes; then | |
4521 | echo "$as_me:$LINENO: result: yes" >&5 | |
4522 | echo "${ECHO_T}yes" >&6 | |
4523 | else | |
4524 | echo "$as_me:$LINENO: result: no" >&5 | |
4525 | echo "${ECHO_T}no" >&6 | |
4526 | fi | |
4527 | ||
4528 | ||
4529 | enablestring= | |
4530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4531 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4532 | no_cache=0 | |
4533 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4534 | if test "${enable_dataobj+set}" = set; then | |
4535 | enableval="$enable_dataobj" | |
4536 | ||
4537 | if test "$enableval" = yes; then | |
4538 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4539 | else | |
4540 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4541 | fi | |
4542 | ||
4543 | else | |
4544 | ||
4545 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4546 | if test "x$LINE" != x ; then | |
4547 | eval "DEFAULT_$LINE" | |
4548 | else | |
4549 | no_cache=1 | |
4550 | fi | |
4551 | ||
4552 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4553 | ||
4554 | fi; | |
4555 | ||
4556 | eval "$ac_cv_use_dataobj" | |
4557 | if test "$no_cache" != 1; then | |
4558 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4559 | fi | |
4560 | ||
4561 | if test "$wxUSE_DATAOBJ" = yes; then | |
4562 | echo "$as_me:$LINENO: result: yes" >&5 | |
4563 | echo "${ECHO_T}yes" >&6 | |
4564 | else | |
4565 | echo "$as_me:$LINENO: result: no" >&5 | |
4566 | echo "${ECHO_T}no" >&6 | |
4567 | fi | |
4568 | ||
4569 | ||
4570 | ||
4571 | enablestring= | |
4572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4573 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4574 | no_cache=0 | |
4575 | # Check whether --enable-ipc or --disable-ipc was given. | |
4576 | if test "${enable_ipc+set}" = set; then | |
4577 | enableval="$enable_ipc" | |
4578 | ||
4579 | if test "$enableval" = yes; then | |
4580 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4581 | else | |
4582 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4583 | fi | |
4584 | ||
4585 | else | |
4586 | ||
4587 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4588 | if test "x$LINE" != x ; then | |
4589 | eval "DEFAULT_$LINE" | |
4590 | else | |
4591 | no_cache=1 | |
4592 | fi | |
4593 | ||
4594 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4595 | ||
4596 | fi; | |
4597 | ||
4598 | eval "$ac_cv_use_ipc" | |
4599 | if test "$no_cache" != 1; then | |
4600 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4601 | fi | |
4602 | ||
4603 | if test "$wxUSE_IPC" = yes; then | |
4604 | echo "$as_me:$LINENO: result: yes" >&5 | |
4605 | echo "${ECHO_T}yes" >&6 | |
4606 | else | |
4607 | echo "$as_me:$LINENO: result: no" >&5 | |
4608 | echo "${ECHO_T}no" >&6 | |
4609 | fi | |
4610 | ||
4611 | ||
4612 | ||
4613 | enablestring= | |
4614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4615 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4616 | no_cache=0 | |
4617 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4618 | if test "${enable_apple_ieee+set}" = set; then | |
4619 | enableval="$enable_apple_ieee" | |
4620 | ||
4621 | if test "$enableval" = yes; then | |
4622 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4623 | else | |
4624 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4625 | fi | |
4626 | ||
4627 | else | |
4628 | ||
4629 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4630 | if test "x$LINE" != x ; then | |
4631 | eval "DEFAULT_$LINE" | |
4632 | else | |
4633 | no_cache=1 | |
4634 | fi | |
4635 | ||
4636 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4637 | ||
4638 | fi; | |
4639 | ||
4640 | eval "$ac_cv_use_apple_ieee" | |
4641 | if test "$no_cache" != 1; then | |
4642 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4643 | fi | |
4644 | ||
4645 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4646 | echo "$as_me:$LINENO: result: yes" >&5 | |
4647 | echo "${ECHO_T}yes" >&6 | |
4648 | else | |
4649 | echo "$as_me:$LINENO: result: no" >&5 | |
4650 | echo "${ECHO_T}no" >&6 | |
4651 | fi | |
4652 | ||
4653 | ||
81f90336 MW |
4654 | enablestring= |
4655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4656 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4657 | no_cache=0 | |
4658 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4659 | if test "${enable_arcstream+set}" = set; then | |
4660 | enableval="$enable_arcstream" | |
4661 | ||
4662 | if test "$enableval" = yes; then | |
9e8e867f | 4663 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4664 | else |
9e8e867f | 4665 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4666 | fi |
4667 | ||
4668 | else | |
4669 | ||
9e8e867f | 4670 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4671 | if test "x$LINE" != x ; then |
4672 | eval "DEFAULT_$LINE" | |
4673 | else | |
4674 | no_cache=1 | |
4675 | fi | |
4676 | ||
9e8e867f | 4677 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4678 | |
4679 | fi; | |
4680 | ||
4681 | eval "$ac_cv_use_arcstream" | |
4682 | if test "$no_cache" != 1; then | |
4683 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4684 | fi | |
4685 | ||
9e8e867f | 4686 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4687 | echo "$as_me:$LINENO: result: yes" >&5 |
4688 | echo "${ECHO_T}yes" >&6 | |
4689 | else | |
4690 | echo "$as_me:$LINENO: result: no" >&5 | |
4691 | echo "${ECHO_T}no" >&6 | |
4692 | fi | |
4693 | ||
4694 | ||
a848cd7e | 4695 | enablestring= |
36b6448c VZ |
4696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4697 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4698 | no_cache=0 |
36b6448c VZ |
4699 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4700 | if test "${enable_backtrace+set}" = set; then | |
4701 | enableval="$enable_backtrace" | |
a848cd7e SC |
4702 | |
4703 | if test "$enableval" = yes; then | |
36b6448c | 4704 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4705 | else |
36b6448c | 4706 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4707 | fi |
4708 | ||
4709 | else | |
4710 | ||
36b6448c | 4711 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4712 | if test "x$LINE" != x ; then |
4713 | eval "DEFAULT_$LINE" | |
4714 | else | |
4715 | no_cache=1 | |
4716 | fi | |
4717 | ||
36b6448c | 4718 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4719 | |
4720 | fi; | |
4721 | ||
36b6448c | 4722 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4723 | if test "$no_cache" != 1; then |
36b6448c | 4724 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4725 | fi |
4726 | ||
36b6448c | 4727 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4728 | echo "$as_me:$LINENO: result: yes" >&5 |
4729 | echo "${ECHO_T}yes" >&6 | |
4730 | else | |
4731 | echo "$as_me:$LINENO: result: no" >&5 | |
4732 | echo "${ECHO_T}no" >&6 | |
4733 | fi | |
4734 | ||
4735 | ||
eaff0f0d | 4736 | enablestring= |
36b6448c VZ |
4737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4738 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4739 | no_cache=0 |
36b6448c VZ |
4740 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4741 | if test "${enable_catch_segvs+set}" = set; then | |
4742 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4743 | |
4744 | if test "$enableval" = yes; then | |
36b6448c | 4745 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4746 | else |
36b6448c | 4747 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4748 | fi |
4749 | ||
4750 | else | |
4751 | ||
36b6448c | 4752 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4753 | if test "x$LINE" != x ; then |
4754 | eval "DEFAULT_$LINE" | |
4755 | else | |
4756 | no_cache=1 | |
4757 | fi | |
4758 | ||
36b6448c | 4759 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4760 | |
4761 | fi; | |
4762 | ||
36b6448c | 4763 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4764 | if test "$no_cache" != 1; then |
36b6448c | 4765 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4766 | fi |
4767 | ||
36b6448c | 4768 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4769 | echo "$as_me:$LINENO: result: yes" >&5 |
4770 | echo "${ECHO_T}yes" >&6 | |
4771 | else | |
4772 | echo "$as_me:$LINENO: result: no" >&5 | |
4773 | echo "${ECHO_T}no" >&6 | |
4774 | fi | |
4775 | ||
4776 | ||
a848cd7e SC |
4777 | enablestring= |
4778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4779 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4780 | no_cache=0 | |
4781 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4782 | if test "${enable_cmdline+set}" = set; then | |
4783 | enableval="$enable_cmdline" | |
4784 | ||
4785 | if test "$enableval" = yes; then | |
4786 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4787 | else | |
4788 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4789 | fi | |
4790 | ||
4791 | else | |
4792 | ||
4793 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4794 | if test "x$LINE" != x ; then | |
4795 | eval "DEFAULT_$LINE" | |
4796 | else | |
4797 | no_cache=1 | |
4798 | fi | |
4799 | ||
4800 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4801 | ||
4802 | fi; | |
4803 | ||
4804 | eval "$ac_cv_use_cmdline" | |
4805 | if test "$no_cache" != 1; then | |
4806 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4807 | fi | |
4808 | ||
4809 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4810 | echo "$as_me:$LINENO: result: yes" >&5 | |
4811 | echo "${ECHO_T}yes" >&6 | |
4812 | else | |
4813 | echo "$as_me:$LINENO: result: no" >&5 | |
4814 | echo "${ECHO_T}no" >&6 | |
4815 | fi | |
4816 | ||
4817 | ||
4818 | enablestring= | |
4819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4820 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4821 | no_cache=0 | |
4822 | # Check whether --enable-datetime or --disable-datetime was given. | |
4823 | if test "${enable_datetime+set}" = set; then | |
4824 | enableval="$enable_datetime" | |
4825 | ||
4826 | if test "$enableval" = yes; then | |
4827 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4828 | else | |
4829 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4830 | fi | |
4831 | ||
4832 | else | |
4833 | ||
4834 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4842 | ||
4843 | fi; | |
4844 | ||
4845 | eval "$ac_cv_use_datetime" | |
4846 | if test "$no_cache" != 1; then | |
4847 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4848 | fi | |
4849 | ||
4850 | if test "$wxUSE_DATETIME" = yes; then | |
4851 | echo "$as_me:$LINENO: result: yes" >&5 | |
4852 | echo "${ECHO_T}yes" >&6 | |
4853 | else | |
4854 | echo "$as_me:$LINENO: result: no" >&5 | |
4855 | echo "${ECHO_T}no" >&6 | |
4856 | fi | |
4857 | ||
4858 | ||
36b6448c VZ |
4859 | enablestring= |
4860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4861 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4862 | no_cache=0 | |
4863 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4864 | if test "${enable_debugreport+set}" = set; then | |
4865 | enableval="$enable_debugreport" | |
4866 | ||
4867 | if test "$enableval" = yes; then | |
4868 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4869 | else | |
4870 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4871 | fi | |
4872 | ||
4873 | else | |
4874 | ||
4875 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4876 | if test "x$LINE" != x ; then | |
4877 | eval "DEFAULT_$LINE" | |
4878 | else | |
4879 | no_cache=1 | |
4880 | fi | |
4881 | ||
4882 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4883 | ||
4884 | fi; | |
4885 | ||
4886 | eval "$ac_cv_use_debugreport" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
4891 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
4892 | echo "$as_me:$LINENO: result: yes" >&5 | |
4893 | echo "${ECHO_T}yes" >&6 | |
4894 | else | |
4895 | echo "$as_me:$LINENO: result: no" >&5 | |
4896 | echo "${ECHO_T}no" >&6 | |
4897 | fi | |
4898 | ||
4899 | ||
a848cd7e SC |
4900 | enablestring= |
4901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4902 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4903 | no_cache=0 | |
4904 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4905 | if test "${enable_dialupman+set}" = set; then | |
4906 | enableval="$enable_dialupman" | |
4907 | ||
4908 | if test "$enableval" = yes; then | |
4909 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4910 | else | |
4911 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4912 | fi | |
4913 | ||
4914 | else | |
4915 | ||
4916 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4917 | if test "x$LINE" != x ; then | |
4918 | eval "DEFAULT_$LINE" | |
4919 | else | |
4920 | no_cache=1 | |
4921 | fi | |
4922 | ||
4923 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4924 | ||
4925 | fi; | |
4926 | ||
4927 | eval "$ac_cv_use_dialupman" | |
4928 | if test "$no_cache" != 1; then | |
4929 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4930 | fi | |
4931 | ||
4932 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4933 | echo "$as_me:$LINENO: result: yes" >&5 | |
4934 | echo "${ECHO_T}yes" >&6 | |
4935 | else | |
4936 | echo "$as_me:$LINENO: result: no" >&5 | |
4937 | echo "${ECHO_T}no" >&6 | |
4938 | fi | |
4939 | ||
4940 | ||
4941 | enablestring= | |
4942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4943 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4944 | no_cache=0 | |
4945 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4946 | if test "${enable_dynlib+set}" = set; then | |
4947 | enableval="$enable_dynlib" | |
4948 | ||
4949 | if test "$enableval" = yes; then | |
4950 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4951 | else | |
4952 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4953 | fi | |
4954 | ||
4955 | else | |
4956 | ||
4957 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4958 | if test "x$LINE" != x ; then | |
4959 | eval "DEFAULT_$LINE" | |
4960 | else | |
4961 | no_cache=1 | |
4962 | fi | |
4963 | ||
4964 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4965 | ||
4966 | fi; | |
4967 | ||
4968 | eval "$ac_cv_use_dynlib" | |
4969 | if test "$no_cache" != 1; then | |
4970 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4971 | fi | |
4972 | ||
4973 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4974 | echo "$as_me:$LINENO: result: yes" >&5 | |
4975 | echo "${ECHO_T}yes" >&6 | |
4976 | else | |
4977 | echo "$as_me:$LINENO: result: no" >&5 | |
4978 | echo "${ECHO_T}no" >&6 | |
4979 | fi | |
4980 | ||
4981 | ||
4982 | enablestring= | |
4983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4984 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4985 | no_cache=0 | |
4986 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4987 | if test "${enable_dynamicloader+set}" = set; then | |
4988 | enableval="$enable_dynamicloader" | |
4989 | ||
4990 | if test "$enableval" = yes; then | |
4991 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4992 | else | |
4993 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4994 | fi | |
4995 | ||
4996 | else | |
4997 | ||
4998 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4999 | if test "x$LINE" != x ; then | |
5000 | eval "DEFAULT_$LINE" | |
5001 | else | |
5002 | no_cache=1 | |
5003 | fi | |
5004 | ||
5005 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5006 | ||
5007 | fi; | |
5008 | ||
5009 | eval "$ac_cv_use_dynamicloader" | |
5010 | if test "$no_cache" != 1; then | |
5011 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5012 | fi | |
5013 | ||
5014 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5015 | echo "$as_me:$LINENO: result: yes" >&5 | |
5016 | echo "${ECHO_T}yes" >&6 | |
5017 | else | |
5018 | echo "$as_me:$LINENO: result: no" >&5 | |
5019 | echo "${ECHO_T}no" >&6 | |
5020 | fi | |
5021 | ||
5022 | ||
5023 | enablestring= | |
5024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5025 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5026 | no_cache=0 | |
5027 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5028 | if test "${enable_exceptions+set}" = set; then | |
5029 | enableval="$enable_exceptions" | |
5030 | ||
5031 | if test "$enableval" = yes; then | |
5032 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5033 | else | |
5034 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5035 | fi | |
5036 | ||
5037 | else | |
5038 | ||
5039 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5040 | if test "x$LINE" != x ; then | |
5041 | eval "DEFAULT_$LINE" | |
5042 | else | |
5043 | no_cache=1 | |
5044 | fi | |
5045 | ||
5046 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5047 | ||
5048 | fi; | |
5049 | ||
5050 | eval "$ac_cv_use_exceptions" | |
5051 | if test "$no_cache" != 1; then | |
5052 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5053 | fi | |
5054 | ||
5055 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5056 | echo "$as_me:$LINENO: result: yes" >&5 | |
5057 | echo "${ECHO_T}yes" >&6 | |
5058 | else | |
5059 | echo "$as_me:$LINENO: result: no" >&5 | |
5060 | echo "${ECHO_T}no" >&6 | |
5061 | fi | |
5062 | ||
5063 | ||
5064 | enablestring= | |
5065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5066 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5067 | no_cache=0 | |
5068 | # Check whether --enable-ffile or --disable-ffile was given. | |
5069 | if test "${enable_ffile+set}" = set; then | |
5070 | enableval="$enable_ffile" | |
5071 | ||
5072 | if test "$enableval" = yes; then | |
5073 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5074 | else | |
5075 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5076 | fi | |
5077 | ||
5078 | else | |
5079 | ||
5080 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5081 | if test "x$LINE" != x ; then | |
5082 | eval "DEFAULT_$LINE" | |
5083 | else | |
5084 | no_cache=1 | |
5085 | fi | |
5086 | ||
5087 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5088 | ||
5089 | fi; | |
5090 | ||
5091 | eval "$ac_cv_use_ffile" | |
5092 | if test "$no_cache" != 1; then | |
5093 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5094 | fi | |
5095 | ||
5096 | if test "$wxUSE_FFILE" = yes; then | |
5097 | echo "$as_me:$LINENO: result: yes" >&5 | |
5098 | echo "${ECHO_T}yes" >&6 | |
5099 | else | |
5100 | echo "$as_me:$LINENO: result: no" >&5 | |
5101 | echo "${ECHO_T}no" >&6 | |
5102 | fi | |
5103 | ||
5104 | ||
5105 | enablestring= | |
5106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5107 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5108 | no_cache=0 | |
5109 | # Check whether --enable-file or --disable-file was given. | |
5110 | if test "${enable_file+set}" = set; then | |
5111 | enableval="$enable_file" | |
5112 | ||
5113 | if test "$enableval" = yes; then | |
5114 | ac_cv_use_file='wxUSE_FILE=yes' | |
5115 | else | |
5116 | ac_cv_use_file='wxUSE_FILE=no' | |
5117 | fi | |
5118 | ||
5119 | else | |
5120 | ||
5121 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5122 | if test "x$LINE" != x ; then | |
5123 | eval "DEFAULT_$LINE" | |
5124 | else | |
5125 | no_cache=1 | |
5126 | fi | |
5127 | ||
5128 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5129 | ||
5130 | fi; | |
5131 | ||
5132 | eval "$ac_cv_use_file" | |
5133 | if test "$no_cache" != 1; then | |
5134 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5135 | fi | |
5136 | ||
5137 | if test "$wxUSE_FILE" = yes; then | |
5138 | echo "$as_me:$LINENO: result: yes" >&5 | |
5139 | echo "${ECHO_T}yes" >&6 | |
5140 | else | |
5141 | echo "$as_me:$LINENO: result: no" >&5 | |
5142 | echo "${ECHO_T}no" >&6 | |
5143 | fi | |
5144 | ||
5145 | ||
5146 | enablestring= | |
5147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5148 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5149 | no_cache=0 | |
5150 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5151 | if test "${enable_filesystem+set}" = set; then | |
5152 | enableval="$enable_filesystem" | |
5153 | ||
5154 | if test "$enableval" = yes; then | |
5155 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5156 | else | |
5157 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5158 | fi | |
5159 | ||
5160 | else | |
5161 | ||
5162 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5163 | if test "x$LINE" != x ; then | |
5164 | eval "DEFAULT_$LINE" | |
5165 | else | |
5166 | no_cache=1 | |
5167 | fi | |
5168 | ||
5169 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5170 | ||
5171 | fi; | |
5172 | ||
5173 | eval "$ac_cv_use_filesystem" | |
5174 | if test "$no_cache" != 1; then | |
5175 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5176 | fi | |
5177 | ||
5178 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5179 | echo "$as_me:$LINENO: result: yes" >&5 | |
5180 | echo "${ECHO_T}yes" >&6 | |
5181 | else | |
5182 | echo "$as_me:$LINENO: result: no" >&5 | |
5183 | echo "${ECHO_T}no" >&6 | |
5184 | fi | |
5185 | ||
5186 | ||
5187 | enablestring= | |
5188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5189 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5190 | no_cache=0 | |
5191 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5192 | if test "${enable_fontmap+set}" = set; then | |
5193 | enableval="$enable_fontmap" | |
5194 | ||
5195 | if test "$enableval" = yes; then | |
5196 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5197 | else | |
5198 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5199 | fi | |
5200 | ||
5201 | else | |
5202 | ||
5203 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5204 | if test "x$LINE" != x ; then | |
5205 | eval "DEFAULT_$LINE" | |
5206 | else | |
5207 | no_cache=1 | |
5208 | fi | |
5209 | ||
5210 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5211 | ||
5212 | fi; | |
5213 | ||
5214 | eval "$ac_cv_use_fontmap" | |
5215 | if test "$no_cache" != 1; then | |
5216 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5217 | fi | |
5218 | ||
5219 | if test "$wxUSE_FONTMAP" = yes; then | |
5220 | echo "$as_me:$LINENO: result: yes" >&5 | |
5221 | echo "${ECHO_T}yes" >&6 | |
5222 | else | |
5223 | echo "$as_me:$LINENO: result: no" >&5 | |
5224 | echo "${ECHO_T}no" >&6 | |
5225 | fi | |
5226 | ||
5227 | ||
5228 | enablestring= | |
5229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5230 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5231 | no_cache=0 | |
5232 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5233 | if test "${enable_fs_inet+set}" = set; then | |
5234 | enableval="$enable_fs_inet" | |
5235 | ||
5236 | if test "$enableval" = yes; then | |
5237 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5238 | else | |
5239 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5240 | fi | |
5241 | ||
5242 | else | |
5243 | ||
5244 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5245 | if test "x$LINE" != x ; then | |
5246 | eval "DEFAULT_$LINE" | |
5247 | else | |
5248 | no_cache=1 | |
5249 | fi | |
5250 | ||
5251 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5252 | ||
5253 | fi; | |
5254 | ||
5255 | eval "$ac_cv_use_fs_inet" | |
5256 | if test "$no_cache" != 1; then | |
5257 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5258 | fi | |
5259 | ||
5260 | if test "$wxUSE_FS_INET" = yes; then | |
5261 | echo "$as_me:$LINENO: result: yes" >&5 | |
5262 | echo "${ECHO_T}yes" >&6 | |
5263 | else | |
5264 | echo "$as_me:$LINENO: result: no" >&5 | |
5265 | echo "${ECHO_T}no" >&6 | |
5266 | fi | |
5267 | ||
5268 | ||
5269 | enablestring= | |
5270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5271 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5272 | no_cache=0 | |
5273 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5274 | if test "${enable_fs_zip+set}" = set; then | |
5275 | enableval="$enable_fs_zip" | |
5276 | ||
5277 | if test "$enableval" = yes; then | |
5278 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5279 | else | |
5280 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5281 | fi | |
5282 | ||
5283 | else | |
5284 | ||
5285 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5286 | if test "x$LINE" != x ; then | |
5287 | eval "DEFAULT_$LINE" | |
5288 | else | |
5289 | no_cache=1 | |
5290 | fi | |
5291 | ||
5292 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5293 | ||
5294 | fi; | |
5295 | ||
5296 | eval "$ac_cv_use_fs_zip" | |
5297 | if test "$no_cache" != 1; then | |
5298 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5299 | fi | |
5300 | ||
5301 | if test "$wxUSE_FS_ZIP" = yes; then | |
5302 | echo "$as_me:$LINENO: result: yes" >&5 | |
5303 | echo "${ECHO_T}yes" >&6 | |
5304 | else | |
5305 | echo "$as_me:$LINENO: result: no" >&5 | |
5306 | echo "${ECHO_T}no" >&6 | |
5307 | fi | |
5308 | ||
5309 | ||
5310 | enablestring= | |
5311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5312 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5313 | no_cache=0 | |
5314 | # Check whether --enable-geometry or --disable-geometry was given. | |
5315 | if test "${enable_geometry+set}" = set; then | |
5316 | enableval="$enable_geometry" | |
5317 | ||
5318 | if test "$enableval" = yes; then | |
5319 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5320 | else | |
5321 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5322 | fi | |
5323 | ||
5324 | else | |
5325 | ||
5326 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5327 | if test "x$LINE" != x ; then | |
5328 | eval "DEFAULT_$LINE" | |
5329 | else | |
5330 | no_cache=1 | |
5331 | fi | |
5332 | ||
5333 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5334 | ||
5335 | fi; | |
5336 | ||
5337 | eval "$ac_cv_use_geometry" | |
5338 | if test "$no_cache" != 1; then | |
5339 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5340 | fi | |
5341 | ||
5342 | if test "$wxUSE_GEOMETRY" = yes; then | |
5343 | echo "$as_me:$LINENO: result: yes" >&5 | |
5344 | echo "${ECHO_T}yes" >&6 | |
5345 | else | |
5346 | echo "$as_me:$LINENO: result: no" >&5 | |
5347 | echo "${ECHO_T}no" >&6 | |
5348 | fi | |
5349 | ||
5350 | ||
5351 | enablestring= | |
5352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5353 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5354 | no_cache=0 | |
5355 | # Check whether --enable-log or --disable-log was given. | |
5356 | if test "${enable_log+set}" = set; then | |
5357 | enableval="$enable_log" | |
5358 | ||
5359 | if test "$enableval" = yes; then | |
5360 | ac_cv_use_log='wxUSE_LOG=yes' | |
5361 | else | |
5362 | ac_cv_use_log='wxUSE_LOG=no' | |
5363 | fi | |
5364 | ||
5365 | else | |
5366 | ||
5367 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5368 | if test "x$LINE" != x ; then | |
5369 | eval "DEFAULT_$LINE" | |
5370 | else | |
5371 | no_cache=1 | |
5372 | fi | |
5373 | ||
5374 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5375 | ||
5376 | fi; | |
5377 | ||
5378 | eval "$ac_cv_use_log" | |
5379 | if test "$no_cache" != 1; then | |
5380 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5381 | fi | |
5382 | ||
5383 | if test "$wxUSE_LOG" = yes; then | |
5384 | echo "$as_me:$LINENO: result: yes" >&5 | |
5385 | echo "${ECHO_T}yes" >&6 | |
5386 | else | |
5387 | echo "$as_me:$LINENO: result: no" >&5 | |
5388 | echo "${ECHO_T}no" >&6 | |
5389 | fi | |
5390 | ||
5391 | ||
5392 | enablestring= | |
5393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5394 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5395 | no_cache=0 | |
5396 | # Check whether --enable-longlong or --disable-longlong was given. | |
5397 | if test "${enable_longlong+set}" = set; then | |
5398 | enableval="$enable_longlong" | |
5399 | ||
5400 | if test "$enableval" = yes; then | |
5401 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5402 | else | |
5403 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5404 | fi | |
5405 | ||
5406 | else | |
5407 | ||
5408 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5409 | if test "x$LINE" != x ; then | |
5410 | eval "DEFAULT_$LINE" | |
5411 | else | |
5412 | no_cache=1 | |
5413 | fi | |
5414 | ||
5415 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5416 | ||
5417 | fi; | |
5418 | ||
5419 | eval "$ac_cv_use_longlong" | |
5420 | if test "$no_cache" != 1; then | |
5421 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5422 | fi | |
5423 | ||
5424 | if test "$wxUSE_LONGLONG" = yes; then | |
5425 | echo "$as_me:$LINENO: result: yes" >&5 | |
5426 | echo "${ECHO_T}yes" >&6 | |
5427 | else | |
5428 | echo "$as_me:$LINENO: result: no" >&5 | |
5429 | echo "${ECHO_T}no" >&6 | |
5430 | fi | |
5431 | ||
5432 | ||
5433 | enablestring= | |
5434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5435 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5436 | no_cache=0 | |
5437 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5438 | if test "${enable_mimetype+set}" = set; then | |
5439 | enableval="$enable_mimetype" | |
5440 | ||
5441 | if test "$enableval" = yes; then | |
5442 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5443 | else | |
5444 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5445 | fi | |
5446 | ||
5447 | else | |
5448 | ||
5449 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5450 | if test "x$LINE" != x ; then | |
5451 | eval "DEFAULT_$LINE" | |
5452 | else | |
5453 | no_cache=1 | |
5454 | fi | |
5455 | ||
5456 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5457 | ||
5458 | fi; | |
5459 | ||
5460 | eval "$ac_cv_use_mimetype" | |
5461 | if test "$no_cache" != 1; then | |
5462 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5463 | fi | |
5464 | ||
5465 | if test "$wxUSE_MIMETYPE" = yes; then | |
5466 | echo "$as_me:$LINENO: result: yes" >&5 | |
5467 | echo "${ECHO_T}yes" >&6 | |
5468 | else | |
5469 | echo "$as_me:$LINENO: result: no" >&5 | |
5470 | echo "${ECHO_T}no" >&6 | |
5471 | fi | |
5472 | ||
5473 | ||
5474 | enablestring= | |
5475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5476 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5477 | no_cache=0 | |
5478 | # Check whether --enable-mslu or --disable-mslu was given. | |
5479 | if test "${enable_mslu+set}" = set; then | |
5480 | enableval="$enable_mslu" | |
5481 | ||
5482 | if test "$enableval" = yes; then | |
5483 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5484 | else | |
5485 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5486 | fi | |
5487 | ||
5488 | else | |
5489 | ||
5490 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5491 | if test "x$LINE" != x ; then | |
5492 | eval "DEFAULT_$LINE" | |
5493 | else | |
5494 | no_cache=1 | |
5495 | fi | |
5496 | ||
5497 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5498 | ||
5499 | fi; | |
5500 | ||
5501 | eval "$ac_cv_use_mslu" | |
5502 | if test "$no_cache" != 1; then | |
5503 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5504 | fi | |
5505 | ||
5506 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5507 | echo "$as_me:$LINENO: result: yes" >&5 | |
5508 | echo "${ECHO_T}yes" >&6 | |
5509 | else | |
5510 | echo "$as_me:$LINENO: result: no" >&5 | |
5511 | echo "${ECHO_T}no" >&6 | |
5512 | fi | |
5513 | ||
5514 | ||
5515 | enablestring= | |
5516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5517 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5518 | no_cache=0 | |
5519 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5520 | if test "${enable_snglinst+set}" = set; then | |
5521 | enableval="$enable_snglinst" | |
5522 | ||
5523 | if test "$enableval" = yes; then | |
5524 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5525 | else | |
5526 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5527 | fi | |
5528 | ||
5529 | else | |
5530 | ||
5531 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5532 | if test "x$LINE" != x ; then | |
5533 | eval "DEFAULT_$LINE" | |
5534 | else | |
5535 | no_cache=1 | |
5536 | fi | |
5537 | ||
5538 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5539 | ||
5540 | fi; | |
5541 | ||
5542 | eval "$ac_cv_use_snglinst" | |
5543 | if test "$no_cache" != 1; then | |
5544 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5545 | fi | |
5546 | ||
5547 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5548 | echo "$as_me:$LINENO: result: yes" >&5 | |
5549 | echo "${ECHO_T}yes" >&6 | |
5550 | else | |
5551 | echo "$as_me:$LINENO: result: no" >&5 | |
5552 | echo "${ECHO_T}no" >&6 | |
5553 | fi | |
5554 | ||
5555 | ||
5556 | enablestring= | |
07158944 VZ |
5557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5558 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5559 | no_cache=0 |
07158944 VZ |
5560 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5561 | if test "${enable_std_iostreams+set}" = set; then | |
5562 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5563 | |
5564 | if test "$enableval" = yes; then | |
07158944 | 5565 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5566 | else |
07158944 | 5567 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5568 | fi |
5569 | ||
5570 | else | |
5571 | ||
07158944 | 5572 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5573 | if test "x$LINE" != x ; then |
5574 | eval "DEFAULT_$LINE" | |
5575 | else | |
5576 | no_cache=1 | |
5577 | fi | |
5578 | ||
07158944 | 5579 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5580 | |
5581 | fi; | |
5582 | ||
07158944 | 5583 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5584 | if test "$no_cache" != 1; then |
07158944 | 5585 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5586 | fi |
5587 | ||
07158944 | 5588 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5589 | echo "$as_me:$LINENO: result: yes" >&5 |
5590 | echo "${ECHO_T}yes" >&6 | |
5591 | else | |
5592 | echo "$as_me:$LINENO: result: no" >&5 | |
5593 | echo "${ECHO_T}no" >&6 | |
5594 | fi | |
5595 | ||
5596 | ||
59746b65 MW |
5597 | enablestring= |
5598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5599 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5600 | no_cache=0 | |
5601 | # Check whether --enable-std_string or --disable-std_string was given. | |
5602 | if test "${enable_std_string+set}" = set; then | |
5603 | enableval="$enable_std_string" | |
5604 | ||
5605 | if test "$enableval" = yes; then | |
5606 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5607 | else | |
5608 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5609 | fi | |
5610 | ||
5611 | else | |
5612 | ||
5613 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5614 | if test "x$LINE" != x ; then | |
5615 | eval "DEFAULT_$LINE" | |
5616 | else | |
5617 | no_cache=1 | |
5618 | fi | |
5619 | ||
5620 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5621 | ||
5622 | fi; | |
5623 | ||
5624 | eval "$ac_cv_use_std_string" | |
5625 | if test "$no_cache" != 1; then | |
5626 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5627 | fi | |
5628 | ||
5629 | if test "$wxUSE_STD_STRING" = yes; then | |
5630 | echo "$as_me:$LINENO: result: yes" >&5 | |
5631 | echo "${ECHO_T}yes" >&6 | |
5632 | else | |
5633 | echo "$as_me:$LINENO: result: no" >&5 | |
5634 | echo "${ECHO_T}no" >&6 | |
5635 | fi | |
5636 | ||
5637 | ||
a848cd7e | 5638 | enablestring= |
07158944 VZ |
5639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5640 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5641 | no_cache=0 |
07158944 VZ |
5642 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5643 | if test "${enable_stdpaths+set}" = set; then | |
5644 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5645 | |
5646 | if test "$enableval" = yes; then | |
07158944 | 5647 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5648 | else |
07158944 | 5649 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5650 | fi |
5651 | ||
5652 | else | |
5653 | ||
07158944 | 5654 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5655 | if test "x$LINE" != x ; then |
5656 | eval "DEFAULT_$LINE" | |
5657 | else | |
5658 | no_cache=1 | |
5659 | fi | |
5660 | ||
07158944 | 5661 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5662 | |
5663 | fi; | |
5664 | ||
07158944 | 5665 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5666 | if test "$no_cache" != 1; then |
07158944 | 5667 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5668 | fi |
5669 | ||
07158944 | 5670 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5671 | echo "$as_me:$LINENO: result: yes" >&5 |
5672 | echo "${ECHO_T}yes" >&6 | |
5673 | else | |
5674 | echo "$as_me:$LINENO: result: no" >&5 | |
5675 | echo "${ECHO_T}no" >&6 | |
5676 | fi | |
5677 | ||
5678 | ||
5679 | enablestring= | |
5680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5681 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5682 | no_cache=0 | |
5683 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5684 | if test "${enable_stopwatch+set}" = set; then | |
5685 | enableval="$enable_stopwatch" | |
5686 | ||
5687 | if test "$enableval" = yes; then | |
5688 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5689 | else | |
5690 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5691 | fi | |
5692 | ||
5693 | else | |
5694 | ||
5695 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5696 | if test "x$LINE" != x ; then | |
5697 | eval "DEFAULT_$LINE" | |
5698 | else | |
5699 | no_cache=1 | |
5700 | fi | |
5701 | ||
5702 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5703 | ||
5704 | fi; | |
5705 | ||
5706 | eval "$ac_cv_use_stopwatch" | |
5707 | if test "$no_cache" != 1; then | |
5708 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5709 | fi | |
5710 | ||
5711 | if test "$wxUSE_STOPWATCH" = yes; then | |
5712 | echo "$as_me:$LINENO: result: yes" >&5 | |
5713 | echo "${ECHO_T}yes" >&6 | |
5714 | else | |
5715 | echo "$as_me:$LINENO: result: no" >&5 | |
5716 | echo "${ECHO_T}no" >&6 | |
5717 | fi | |
5718 | ||
5719 | ||
07158944 VZ |
5720 | enablestring= |
5721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5722 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5723 | no_cache=0 | |
5724 | # Check whether --enable-streams or --disable-streams was given. | |
5725 | if test "${enable_streams+set}" = set; then | |
5726 | enableval="$enable_streams" | |
5727 | ||
5728 | if test "$enableval" = yes; then | |
5729 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5730 | else | |
5731 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5732 | fi | |
5733 | ||
5734 | else | |
5735 | ||
5736 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5737 | if test "x$LINE" != x ; then | |
5738 | eval "DEFAULT_$LINE" | |
5739 | else | |
5740 | no_cache=1 | |
5741 | fi | |
5742 | ||
5743 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5744 | ||
5745 | fi; | |
5746 | ||
5747 | eval "$ac_cv_use_streams" | |
5748 | if test "$no_cache" != 1; then | |
5749 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5750 | fi | |
5751 | ||
5752 | if test "$wxUSE_STREAMS" = yes; then | |
5753 | echo "$as_me:$LINENO: result: yes" >&5 | |
5754 | echo "${ECHO_T}yes" >&6 | |
5755 | else | |
5756 | echo "$as_me:$LINENO: result: no" >&5 | |
5757 | echo "${ECHO_T}no" >&6 | |
5758 | fi | |
5759 | ||
5760 | ||
a848cd7e SC |
5761 | enablestring= |
5762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5763 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5764 | no_cache=0 | |
5765 | # Check whether --enable-system_options or --disable-system_options was given. | |
5766 | if test "${enable_system_options+set}" = set; then | |
5767 | enableval="$enable_system_options" | |
5768 | ||
5769 | if test "$enableval" = yes; then | |
5770 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5771 | else | |
5772 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5773 | fi | |
5774 | ||
5775 | else | |
5776 | ||
5777 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5778 | if test "x$LINE" != x ; then | |
5779 | eval "DEFAULT_$LINE" | |
5780 | else | |
5781 | no_cache=1 | |
5782 | fi | |
5783 | ||
5784 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5785 | ||
5786 | fi; | |
5787 | ||
5788 | eval "$ac_cv_use_system_options" | |
5789 | if test "$no_cache" != 1; then | |
5790 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5791 | fi | |
5792 | ||
5793 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5794 | echo "$as_me:$LINENO: result: yes" >&5 | |
5795 | echo "${ECHO_T}yes" >&6 | |
5796 | else | |
5797 | echo "$as_me:$LINENO: result: no" >&5 | |
5798 | echo "${ECHO_T}no" >&6 | |
5799 | fi | |
5800 | ||
5801 | ||
5802 | enablestring= | |
5803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5804 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5805 | no_cache=0 | |
5806 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5807 | if test "${enable_textbuf+set}" = set; then | |
5808 | enableval="$enable_textbuf" | |
5809 | ||
5810 | if test "$enableval" = yes; then | |
5811 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5812 | else | |
5813 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5814 | fi | |
5815 | ||
5816 | else | |
5817 | ||
5818 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5819 | if test "x$LINE" != x ; then | |
5820 | eval "DEFAULT_$LINE" | |
5821 | else | |
5822 | no_cache=1 | |
5823 | fi | |
5824 | ||
5825 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5826 | ||
5827 | fi; | |
5828 | ||
5829 | eval "$ac_cv_use_textbuf" | |
5830 | if test "$no_cache" != 1; then | |
5831 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5832 | fi | |
5833 | ||
5834 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5835 | echo "$as_me:$LINENO: result: yes" >&5 | |
5836 | echo "${ECHO_T}yes" >&6 | |
5837 | else | |
5838 | echo "$as_me:$LINENO: result: no" >&5 | |
5839 | echo "${ECHO_T}no" >&6 | |
5840 | fi | |
5841 | ||
5842 | ||
5843 | enablestring= | |
5844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5845 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5846 | no_cache=0 | |
5847 | # Check whether --enable-textfile or --disable-textfile was given. | |
5848 | if test "${enable_textfile+set}" = set; then | |
5849 | enableval="$enable_textfile" | |
5850 | ||
5851 | if test "$enableval" = yes; then | |
5852 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5853 | else | |
5854 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5855 | fi | |
5856 | ||
5857 | else | |
5858 | ||
5859 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5860 | if test "x$LINE" != x ; then | |
5861 | eval "DEFAULT_$LINE" | |
5862 | else | |
5863 | no_cache=1 | |
5864 | fi | |
5865 | ||
5866 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5867 | ||
5868 | fi; | |
5869 | ||
5870 | eval "$ac_cv_use_textfile" | |
5871 | if test "$no_cache" != 1; then | |
5872 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5873 | fi | |
5874 | ||
5875 | if test "$wxUSE_TEXTFILE" = yes; then | |
5876 | echo "$as_me:$LINENO: result: yes" >&5 | |
5877 | echo "${ECHO_T}yes" >&6 | |
5878 | else | |
5879 | echo "$as_me:$LINENO: result: no" >&5 | |
5880 | echo "${ECHO_T}no" >&6 | |
5881 | fi | |
5882 | ||
5883 | ||
5884 | enablestring= | |
5885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5886 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5887 | no_cache=0 | |
5888 | # Check whether --enable-timer or --disable-timer was given. | |
5889 | if test "${enable_timer+set}" = set; then | |
5890 | enableval="$enable_timer" | |
5891 | ||
5892 | if test "$enableval" = yes; then | |
5893 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5894 | else | |
5895 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5896 | fi | |
5897 | ||
5898 | else | |
5899 | ||
5900 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5901 | if test "x$LINE" != x ; then | |
5902 | eval "DEFAULT_$LINE" | |
5903 | else | |
5904 | no_cache=1 | |
5905 | fi | |
5906 | ||
5907 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5908 | ||
5909 | fi; | |
5910 | ||
5911 | eval "$ac_cv_use_timer" | |
5912 | if test "$no_cache" != 1; then | |
5913 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5914 | fi | |
5915 | ||
5916 | if test "$wxUSE_TIMER" = yes; then | |
5917 | echo "$as_me:$LINENO: result: yes" >&5 | |
5918 | echo "${ECHO_T}yes" >&6 | |
5919 | else | |
5920 | echo "$as_me:$LINENO: result: no" >&5 | |
5921 | echo "${ECHO_T}no" >&6 | |
5922 | fi | |
5923 | ||
5924 | ||
5925 | enablestring= | |
5926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5927 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5928 | no_cache=0 | |
5929 | # Check whether --enable-unicode or --disable-unicode was given. | |
5930 | if test "${enable_unicode+set}" = set; then | |
5931 | enableval="$enable_unicode" | |
5932 | ||
5933 | if test "$enableval" = yes; then | |
5934 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5935 | else | |
5936 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5937 | fi | |
5938 | ||
5939 | else | |
5940 | ||
5941 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5942 | if test "x$LINE" != x ; then | |
5943 | eval "DEFAULT_$LINE" | |
5944 | else | |
5945 | no_cache=1 | |
5946 | fi | |
5947 | ||
5948 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5949 | ||
5950 | fi; | |
5951 | ||
5952 | eval "$ac_cv_use_unicode" | |
5953 | if test "$no_cache" != 1; then | |
5954 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5955 | fi | |
5956 | ||
5957 | if test "$wxUSE_UNICODE" = yes; then | |
5958 | echo "$as_me:$LINENO: result: yes" >&5 | |
5959 | echo "${ECHO_T}yes" >&6 | |
5960 | else | |
5961 | echo "$as_me:$LINENO: result: no" >&5 | |
5962 | echo "${ECHO_T}no" >&6 | |
5963 | fi | |
5964 | ||
5965 | ||
5966 | enablestring= | |
5967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5968 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5969 | no_cache=0 | |
5970 | # Check whether --enable-sound or --disable-sound was given. | |
5971 | if test "${enable_sound+set}" = set; then | |
5972 | enableval="$enable_sound" | |
5973 | ||
5974 | if test "$enableval" = yes; then | |
5975 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5976 | else | |
5977 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5978 | fi | |
5979 | ||
5980 | else | |
5981 | ||
5982 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5983 | if test "x$LINE" != x ; then | |
5984 | eval "DEFAULT_$LINE" | |
5985 | else | |
5986 | no_cache=1 | |
5987 | fi | |
5988 | ||
5989 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5990 | ||
5991 | fi; | |
5992 | ||
5993 | eval "$ac_cv_use_sound" | |
5994 | if test "$no_cache" != 1; then | |
5995 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5996 | fi | |
5997 | ||
5998 | if test "$wxUSE_SOUND" = yes; then | |
5999 | echo "$as_me:$LINENO: result: yes" >&5 | |
6000 | echo "${ECHO_T}yes" >&6 | |
6001 | else | |
6002 | echo "$as_me:$LINENO: result: no" >&5 | |
6003 | echo "${ECHO_T}no" >&6 | |
6004 | fi | |
6005 | ||
6006 | ||
3b57de8b RL |
6007 | enablestring= |
6008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6009 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6010 | no_cache=0 | |
6011 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6012 | if test "${enable_mediactrl+set}" = set; then | |
6013 | enableval="$enable_mediactrl" | |
6014 | ||
6015 | if test "$enableval" = yes; then | |
6016 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6017 | else | |
6018 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6019 | fi | |
6020 | ||
6021 | else | |
6022 | ||
6023 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6024 | if test "x$LINE" != x ; then | |
6025 | eval "DEFAULT_$LINE" | |
6026 | else | |
6027 | no_cache=1 | |
6028 | fi | |
6029 | ||
6030 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6031 | ||
6032 | fi; | |
6033 | ||
6034 | eval "$ac_cv_use_mediactrl" | |
6035 | if test "$no_cache" != 1; then | |
6036 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6037 | fi | |
6038 | ||
6039 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6040 | echo "$as_me:$LINENO: result: yes" >&5 | |
6041 | echo "${ECHO_T}yes" >&6 | |
6042 | else | |
6043 | echo "$as_me:$LINENO: result: no" >&5 | |
6044 | echo "${ECHO_T}no" >&6 | |
6045 | fi | |
6046 | ||
6047 | ||
a848cd7e SC |
6048 | enablestring= |
6049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6050 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6051 | no_cache=0 | |
6052 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6053 | if test "${enable_wxprintfv+set}" = set; then | |
6054 | enableval="$enable_wxprintfv" | |
6055 | ||
6056 | if test "$enableval" = yes; then | |
6057 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6058 | else | |
6059 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6060 | fi | |
6061 | ||
6062 | else | |
6063 | ||
6064 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6065 | if test "x$LINE" != x ; then | |
6066 | eval "DEFAULT_$LINE" | |
6067 | else | |
6068 | no_cache=1 | |
6069 | fi | |
6070 | ||
6071 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6072 | ||
6073 | fi; | |
6074 | ||
6075 | eval "$ac_cv_use_wxprintfv" | |
6076 | if test "$no_cache" != 1; then | |
6077 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6078 | fi | |
6079 | ||
6080 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6081 | echo "$as_me:$LINENO: result: yes" >&5 | |
6082 | echo "${ECHO_T}yes" >&6 | |
6083 | else | |
6084 | echo "$as_me:$LINENO: result: no" >&5 | |
6085 | echo "${ECHO_T}no" >&6 | |
6086 | fi | |
6087 | ||
6088 | ||
6089 | enablestring= | |
6090 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6091 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6092 | no_cache=0 | |
6093 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6094 | if test "${enable_zipstream+set}" = set; then | |
6095 | enableval="$enable_zipstream" | |
6096 | ||
6097 | if test "$enableval" = yes; then | |
6098 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6099 | else | |
6100 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6101 | fi | |
6102 | ||
6103 | else | |
6104 | ||
6105 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6106 | if test "x$LINE" != x ; then | |
6107 | eval "DEFAULT_$LINE" | |
6108 | else | |
6109 | no_cache=1 | |
6110 | fi | |
6111 | ||
6112 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6113 | ||
6114 | fi; | |
6115 | ||
6116 | eval "$ac_cv_use_zipstream" | |
6117 | if test "$no_cache" != 1; then | |
6118 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6119 | fi | |
6120 | ||
6121 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6122 | echo "$as_me:$LINENO: result: yes" >&5 | |
6123 | echo "${ECHO_T}yes" >&6 | |
6124 | else | |
6125 | echo "$as_me:$LINENO: result: no" >&5 | |
6126 | echo "${ECHO_T}no" >&6 | |
6127 | fi | |
6128 | ||
6129 | ||
a848cd7e SC |
6130 | |
6131 | enablestring= | |
6132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6133 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6134 | no_cache=0 | |
6135 | # Check whether --enable-url or --disable-url was given. | |
6136 | if test "${enable_url+set}" = set; then | |
6137 | enableval="$enable_url" | |
6138 | ||
6139 | if test "$enableval" = yes; then | |
6140 | ac_cv_use_url='wxUSE_URL=yes' | |
6141 | else | |
6142 | ac_cv_use_url='wxUSE_URL=no' | |
6143 | fi | |
6144 | ||
6145 | else | |
6146 | ||
6147 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6148 | if test "x$LINE" != x ; then | |
6149 | eval "DEFAULT_$LINE" | |
6150 | else | |
6151 | no_cache=1 | |
6152 | fi | |
6153 | ||
6154 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6155 | ||
6156 | fi; | |
6157 | ||
6158 | eval "$ac_cv_use_url" | |
6159 | if test "$no_cache" != 1; then | |
6160 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6161 | fi | |
6162 | ||
6163 | if test "$wxUSE_URL" = yes; then | |
6164 | echo "$as_me:$LINENO: result: yes" >&5 | |
6165 | echo "${ECHO_T}yes" >&6 | |
6166 | else | |
6167 | echo "$as_me:$LINENO: result: no" >&5 | |
6168 | echo "${ECHO_T}no" >&6 | |
6169 | fi | |
6170 | ||
6171 | ||
6172 | enablestring= | |
6173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6174 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6175 | no_cache=0 | |
6176 | # Check whether --enable-protocol or --disable-protocol was given. | |
6177 | if test "${enable_protocol+set}" = set; then | |
6178 | enableval="$enable_protocol" | |
6179 | ||
6180 | if test "$enableval" = yes; then | |
6181 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6182 | else | |
6183 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6184 | fi | |
6185 | ||
6186 | else | |
6187 | ||
6188 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6189 | if test "x$LINE" != x ; then | |
6190 | eval "DEFAULT_$LINE" | |
6191 | else | |
6192 | no_cache=1 | |
6193 | fi | |
6194 | ||
6195 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6196 | ||
6197 | fi; | |
6198 | ||
6199 | eval "$ac_cv_use_protocol" | |
6200 | if test "$no_cache" != 1; then | |
6201 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6202 | fi | |
6203 | ||
6204 | if test "$wxUSE_PROTOCOL" = yes; then | |
6205 | echo "$as_me:$LINENO: result: yes" >&5 | |
6206 | echo "${ECHO_T}yes" >&6 | |
6207 | else | |
6208 | echo "$as_me:$LINENO: result: no" >&5 | |
6209 | echo "${ECHO_T}no" >&6 | |
6210 | fi | |
6211 | ||
6212 | ||
6213 | enablestring= | |
6214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6215 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6216 | no_cache=0 | |
6217 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6218 | if test "${enable_protocol_http+set}" = set; then | |
6219 | enableval="$enable_protocol_http" | |
6220 | ||
6221 | if test "$enableval" = yes; then | |
6222 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6223 | else | |
6224 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6225 | fi | |
6226 | ||
6227 | else | |
6228 | ||
6229 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6230 | if test "x$LINE" != x ; then | |
6231 | eval "DEFAULT_$LINE" | |
6232 | else | |
6233 | no_cache=1 | |
6234 | fi | |
6235 | ||
6236 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6237 | ||
6238 | fi; | |
6239 | ||
6240 | eval "$ac_cv_use_protocol_http" | |
6241 | if test "$no_cache" != 1; then | |
6242 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6243 | fi | |
6244 | ||
6245 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6246 | echo "$as_me:$LINENO: result: yes" >&5 | |
6247 | echo "${ECHO_T}yes" >&6 | |
6248 | else | |
6249 | echo "$as_me:$LINENO: result: no" >&5 | |
6250 | echo "${ECHO_T}no" >&6 | |
6251 | fi | |
6252 | ||
6253 | ||
6254 | enablestring= | |
6255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6256 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6257 | no_cache=0 | |
6258 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6259 | if test "${enable_protocol_ftp+set}" = set; then | |
6260 | enableval="$enable_protocol_ftp" | |
6261 | ||
6262 | if test "$enableval" = yes; then | |
6263 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6264 | else | |
6265 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6266 | fi | |
6267 | ||
6268 | else | |
6269 | ||
6270 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6271 | if test "x$LINE" != x ; then | |
6272 | eval "DEFAULT_$LINE" | |
6273 | else | |
6274 | no_cache=1 | |
6275 | fi | |
6276 | ||
6277 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6278 | ||
6279 | fi; | |
6280 | ||
6281 | eval "$ac_cv_use_protocol_ftp" | |
6282 | if test "$no_cache" != 1; then | |
6283 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6284 | fi | |
6285 | ||
6286 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6287 | echo "$as_me:$LINENO: result: yes" >&5 | |
6288 | echo "${ECHO_T}yes" >&6 | |
6289 | else | |
6290 | echo "$as_me:$LINENO: result: no" >&5 | |
6291 | echo "${ECHO_T}no" >&6 | |
6292 | fi | |
6293 | ||
6294 | ||
6295 | enablestring= | |
6296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6297 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6298 | no_cache=0 | |
6299 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6300 | if test "${enable_protocol_file+set}" = set; then | |
6301 | enableval="$enable_protocol_file" | |
6302 | ||
6303 | if test "$enableval" = yes; then | |
6304 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6305 | else | |
6306 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6307 | fi | |
6308 | ||
6309 | else | |
6310 | ||
6311 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6312 | if test "x$LINE" != x ; then | |
6313 | eval "DEFAULT_$LINE" | |
6314 | else | |
6315 | no_cache=1 | |
6316 | fi | |
6317 | ||
6318 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6319 | ||
6320 | fi; | |
6321 | ||
6322 | eval "$ac_cv_use_protocol_file" | |
6323 | if test "$no_cache" != 1; then | |
6324 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6325 | fi | |
6326 | ||
6327 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6328 | echo "$as_me:$LINENO: result: yes" >&5 | |
6329 | echo "${ECHO_T}yes" >&6 | |
6330 | else | |
6331 | echo "$as_me:$LINENO: result: no" >&5 | |
6332 | echo "${ECHO_T}no" >&6 | |
6333 | fi | |
6334 | ||
6335 | ||
6336 | ||
6337 | ||
6338 | ||
6339 | enablestring= | |
6340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6341 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6342 | no_cache=0 | |
6343 | # Check whether --enable-threads or --disable-threads was given. | |
6344 | if test "${enable_threads+set}" = set; then | |
6345 | enableval="$enable_threads" | |
6346 | ||
6347 | if test "$enableval" = yes; then | |
6348 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6349 | else | |
6350 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6351 | fi | |
6352 | ||
6353 | else | |
6354 | ||
6355 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6356 | if test "x$LINE" != x ; then | |
6357 | eval "DEFAULT_$LINE" | |
6358 | else | |
6359 | no_cache=1 | |
6360 | fi | |
6361 | ||
6362 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6363 | ||
6364 | fi; | |
6365 | ||
6366 | eval "$ac_cv_use_threads" | |
6367 | if test "$no_cache" != 1; then | |
6368 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6369 | fi | |
6370 | ||
6371 | if test "$wxUSE_THREADS" = yes; then | |
6372 | echo "$as_me:$LINENO: result: yes" >&5 | |
6373 | echo "${ECHO_T}yes" >&6 | |
6374 | else | |
6375 | echo "$as_me:$LINENO: result: no" >&5 | |
6376 | echo "${ECHO_T}no" >&6 | |
6377 | fi | |
6378 | ||
6379 | ||
6380 | if test "$wxUSE_GUI" = "yes"; then | |
6381 | ||
6382 | ||
6383 | ||
6384 | enablestring= | |
6385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6386 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6387 | no_cache=0 | |
6388 | # Check whether --enable-docview or --disable-docview was given. | |
6389 | if test "${enable_docview+set}" = set; then | |
6390 | enableval="$enable_docview" | |
6391 | ||
6392 | if test "$enableval" = yes; then | |
6393 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6394 | else | |
6395 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6396 | fi | |
6397 | ||
6398 | else | |
6399 | ||
6400 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6401 | if test "x$LINE" != x ; then | |
6402 | eval "DEFAULT_$LINE" | |
6403 | else | |
6404 | no_cache=1 | |
6405 | fi | |
6406 | ||
6407 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6408 | ||
6409 | fi; | |
6410 | ||
6411 | eval "$ac_cv_use_docview" | |
6412 | if test "$no_cache" != 1; then | |
6413 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6414 | fi | |
6415 | ||
6416 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6417 | echo "$as_me:$LINENO: result: yes" >&5 | |
6418 | echo "${ECHO_T}yes" >&6 | |
6419 | else | |
6420 | echo "$as_me:$LINENO: result: no" >&5 | |
6421 | echo "${ECHO_T}no" >&6 | |
6422 | fi | |
6423 | ||
6424 | ||
6425 | enablestring= | |
6426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6427 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6428 | no_cache=0 | |
6429 | # Check whether --enable-help or --disable-help was given. | |
6430 | if test "${enable_help+set}" = set; then | |
6431 | enableval="$enable_help" | |
6432 | ||
6433 | if test "$enableval" = yes; then | |
6434 | ac_cv_use_help='wxUSE_HELP=yes' | |
6435 | else | |
6436 | ac_cv_use_help='wxUSE_HELP=no' | |
6437 | fi | |
6438 | ||
6439 | else | |
6440 | ||
6441 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6442 | if test "x$LINE" != x ; then | |
6443 | eval "DEFAULT_$LINE" | |
6444 | else | |
6445 | no_cache=1 | |
6446 | fi | |
6447 | ||
6448 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6449 | ||
6450 | fi; | |
6451 | ||
6452 | eval "$ac_cv_use_help" | |
6453 | if test "$no_cache" != 1; then | |
6454 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6455 | fi | |
6456 | ||
6457 | if test "$wxUSE_HELP" = yes; then | |
6458 | echo "$as_me:$LINENO: result: yes" >&5 | |
6459 | echo "${ECHO_T}yes" >&6 | |
6460 | else | |
6461 | echo "$as_me:$LINENO: result: no" >&5 | |
6462 | echo "${ECHO_T}no" >&6 | |
6463 | fi | |
6464 | ||
6465 | ||
6466 | enablestring= | |
6467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6468 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6469 | no_cache=0 | |
6470 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6471 | if test "${enable_mshtmlhelp+set}" = set; then | |
6472 | enableval="$enable_mshtmlhelp" | |
6473 | ||
6474 | if test "$enableval" = yes; then | |
6475 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6476 | else | |
6477 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6478 | fi | |
6479 | ||
6480 | else | |
6481 | ||
6482 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6483 | if test "x$LINE" != x ; then | |
6484 | eval "DEFAULT_$LINE" | |
6485 | else | |
6486 | no_cache=1 | |
6487 | fi | |
6488 | ||
6489 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6490 | ||
6491 | fi; | |
6492 | ||
6493 | eval "$ac_cv_use_mshtmlhelp" | |
6494 | if test "$no_cache" != 1; then | |
6495 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6496 | fi | |
6497 | ||
6498 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6499 | echo "$as_me:$LINENO: result: yes" >&5 | |
6500 | echo "${ECHO_T}yes" >&6 | |
6501 | else | |
6502 | echo "$as_me:$LINENO: result: no" >&5 | |
6503 | echo "${ECHO_T}no" >&6 | |
6504 | fi | |
6505 | ||
6506 | ||
6507 | enablestring= | |
6508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6509 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6510 | no_cache=0 | |
6511 | # Check whether --enable-html or --disable-html was given. | |
6512 | if test "${enable_html+set}" = set; then | |
6513 | enableval="$enable_html" | |
6514 | ||
6515 | if test "$enableval" = yes; then | |
6516 | ac_cv_use_html='wxUSE_HTML=yes' | |
6517 | else | |
6518 | ac_cv_use_html='wxUSE_HTML=no' | |
6519 | fi | |
6520 | ||
6521 | else | |
6522 | ||
6523 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6524 | if test "x$LINE" != x ; then | |
6525 | eval "DEFAULT_$LINE" | |
6526 | else | |
6527 | no_cache=1 | |
6528 | fi | |
6529 | ||
6530 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6531 | ||
6532 | fi; | |
6533 | ||
6534 | eval "$ac_cv_use_html" | |
6535 | if test "$no_cache" != 1; then | |
6536 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6537 | fi | |
6538 | ||
6539 | if test "$wxUSE_HTML" = yes; then | |
6540 | echo "$as_me:$LINENO: result: yes" >&5 | |
6541 | echo "${ECHO_T}yes" >&6 | |
6542 | else | |
6543 | echo "$as_me:$LINENO: result: no" >&5 | |
6544 | echo "${ECHO_T}no" >&6 | |
6545 | fi | |
6546 | ||
6547 | ||
6548 | enablestring= | |
6549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6550 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6551 | no_cache=0 | |
6552 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6553 | if test "${enable_htmlhelp+set}" = set; then | |
6554 | enableval="$enable_htmlhelp" | |
6555 | ||
6556 | if test "$enableval" = yes; then | |
6557 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6558 | else | |
6559 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6560 | fi | |
6561 | ||
6562 | else | |
6563 | ||
6564 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6565 | if test "x$LINE" != x ; then | |
6566 | eval "DEFAULT_$LINE" | |
6567 | else | |
6568 | no_cache=1 | |
6569 | fi | |
6570 | ||
6571 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6572 | ||
6573 | fi; | |
6574 | ||
6575 | eval "$ac_cv_use_htmlhelp" | |
6576 | if test "$no_cache" != 1; then | |
6577 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6578 | fi | |
6579 | ||
6580 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6581 | echo "$as_me:$LINENO: result: yes" >&5 | |
6582 | echo "${ECHO_T}yes" >&6 | |
6583 | else | |
6584 | echo "$as_me:$LINENO: result: no" >&5 | |
6585 | echo "${ECHO_T}no" >&6 | |
6586 | fi | |
6587 | ||
6588 | ||
9a8f0513 VS |
6589 | enablestring= |
6590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6591 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6592 | no_cache=0 | |
6593 | # Check whether --enable-xrc or --disable-xrc was given. | |
6594 | if test "${enable_xrc+set}" = set; then | |
6595 | enableval="$enable_xrc" | |
6596 | ||
6597 | if test "$enableval" = yes; then | |
6598 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6599 | else | |
6600 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6601 | fi | |
6602 | ||
6603 | else | |
6604 | ||
6605 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6606 | if test "x$LINE" != x ; then | |
6607 | eval "DEFAULT_$LINE" | |
6608 | else | |
6609 | no_cache=1 | |
6610 | fi | |
6611 | ||
6612 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6613 | ||
6614 | fi; | |
6615 | ||
6616 | eval "$ac_cv_use_xrc" | |
6617 | if test "$no_cache" != 1; then | |
6618 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6619 | fi | |
6620 | ||
6621 | if test "$wxUSE_XRC" = yes; then | |
6622 | echo "$as_me:$LINENO: result: yes" >&5 | |
6623 | echo "${ECHO_T}yes" >&6 | |
6624 | else | |
6625 | echo "$as_me:$LINENO: result: no" >&5 | |
6626 | echo "${ECHO_T}no" >&6 | |
6627 | fi | |
6628 | ||
6629 | ||
a848cd7e SC |
6630 | enablestring= |
6631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6632 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6633 | no_cache=0 | |
6634 | # Check whether --enable-constraints or --disable-constraints was given. | |
6635 | if test "${enable_constraints+set}" = set; then | |
6636 | enableval="$enable_constraints" | |
6637 | ||
6638 | if test "$enableval" = yes; then | |
6639 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6640 | else | |
6641 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6642 | fi | |
6643 | ||
6644 | else | |
6645 | ||
6646 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6647 | if test "x$LINE" != x ; then | |
6648 | eval "DEFAULT_$LINE" | |
6649 | else | |
6650 | no_cache=1 | |
6651 | fi | |
6652 | ||
6653 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6654 | ||
6655 | fi; | |
6656 | ||
6657 | eval "$ac_cv_use_constraints" | |
6658 | if test "$no_cache" != 1; then | |
6659 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6660 | fi | |
6661 | ||
6662 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6663 | echo "$as_me:$LINENO: result: yes" >&5 | |
6664 | echo "${ECHO_T}yes" >&6 | |
6665 | else | |
6666 | echo "$as_me:$LINENO: result: no" >&5 | |
6667 | echo "${ECHO_T}no" >&6 | |
6668 | fi | |
6669 | ||
6670 | ||
6671 | enablestring= | |
6672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6673 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6674 | no_cache=0 | |
6675 | # Check whether --enable-printarch or --disable-printarch was given. | |
6676 | if test "${enable_printarch+set}" = set; then | |
6677 | enableval="$enable_printarch" | |
6678 | ||
6679 | if test "$enableval" = yes; then | |
6680 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6681 | else | |
6682 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6683 | fi | |
6684 | ||
6685 | else | |
6686 | ||
6687 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6688 | if test "x$LINE" != x ; then | |
6689 | eval "DEFAULT_$LINE" | |
6690 | else | |
6691 | no_cache=1 | |
6692 | fi | |
6693 | ||
6694 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6695 | ||
6696 | fi; | |
6697 | ||
6698 | eval "$ac_cv_use_printarch" | |
6699 | if test "$no_cache" != 1; then | |
6700 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6701 | fi | |
6702 | ||
6703 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6704 | echo "$as_me:$LINENO: result: yes" >&5 | |
6705 | echo "${ECHO_T}yes" >&6 | |
6706 | else | |
6707 | echo "$as_me:$LINENO: result: no" >&5 | |
6708 | echo "${ECHO_T}no" >&6 | |
6709 | fi | |
6710 | ||
6711 | ||
6712 | enablestring= | |
6713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6714 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6715 | no_cache=0 | |
6716 | # Check whether --enable-mdi or --disable-mdi was given. | |
6717 | if test "${enable_mdi+set}" = set; then | |
6718 | enableval="$enable_mdi" | |
6719 | ||
6720 | if test "$enableval" = yes; then | |
8a7b1113 | 6721 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6722 | else |
8a7b1113 | 6723 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6724 | fi |
6725 | ||
6726 | else | |
6727 | ||
8a7b1113 | 6728 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6729 | if test "x$LINE" != x ; then |
6730 | eval "DEFAULT_$LINE" | |
6731 | else | |
6732 | no_cache=1 | |
6733 | fi | |
6734 | ||
8a7b1113 | 6735 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6736 | |
6737 | fi; | |
6738 | ||
6739 | eval "$ac_cv_use_mdi" | |
6740 | if test "$no_cache" != 1; then | |
6741 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6742 | fi | |
6743 | ||
8a7b1113 VZ |
6744 | if test "$wxUSE_MDI" = yes; then |
6745 | echo "$as_me:$LINENO: result: yes" >&5 | |
6746 | echo "${ECHO_T}yes" >&6 | |
6747 | else | |
6748 | echo "$as_me:$LINENO: result: no" >&5 | |
6749 | echo "${ECHO_T}no" >&6 | |
6750 | fi | |
6751 | ||
6752 | ||
6753 | enablestring= | |
6754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6755 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6756 | no_cache=0 | |
6757 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6758 | if test "${enable_mdidoc+set}" = set; then | |
6759 | enableval="$enable_mdidoc" | |
6760 | ||
6761 | if test "$enableval" = yes; then | |
6762 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6763 | else | |
6764 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6765 | fi | |
6766 | ||
6767 | else | |
6768 | ||
6769 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6770 | if test "x$LINE" != x ; then | |
6771 | eval "DEFAULT_$LINE" | |
6772 | else | |
6773 | no_cache=1 | |
6774 | fi | |
6775 | ||
6776 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6777 | ||
6778 | fi; | |
6779 | ||
6780 | eval "$ac_cv_use_mdidoc" | |
6781 | if test "$no_cache" != 1; then | |
6782 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6783 | fi | |
6784 | ||
a848cd7e SC |
6785 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6786 | echo "$as_me:$LINENO: result: yes" >&5 | |
6787 | echo "${ECHO_T}yes" >&6 | |
6788 | else | |
6789 | echo "$as_me:$LINENO: result: no" >&5 | |
6790 | echo "${ECHO_T}no" >&6 | |
6791 | fi | |
6792 | ||
6793 | ||
6794 | enablestring= | |
6795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6796 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6797 | no_cache=0 | |
6798 | # Check whether --enable-loggui or --disable-loggui was given. | |
6799 | if test "${enable_loggui+set}" = set; then | |
6800 | enableval="$enable_loggui" | |
6801 | ||
6802 | if test "$enableval" = yes; then | |
6803 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6804 | else | |
6805 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6806 | fi | |
6807 | ||
6808 | else | |
6809 | ||
6810 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6811 | if test "x$LINE" != x ; then | |
6812 | eval "DEFAULT_$LINE" | |
6813 | else | |
6814 | no_cache=1 | |
6815 | fi | |
6816 | ||
6817 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6818 | ||
6819 | fi; | |
6820 | ||
6821 | eval "$ac_cv_use_loggui" | |
6822 | if test "$no_cache" != 1; then | |
6823 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6824 | fi | |
6825 | ||
6826 | if test "$wxUSE_LOGGUI" = yes; then | |
6827 | echo "$as_me:$LINENO: result: yes" >&5 | |
6828 | echo "${ECHO_T}yes" >&6 | |
6829 | else | |
6830 | echo "$as_me:$LINENO: result: no" >&5 | |
6831 | echo "${ECHO_T}no" >&6 | |
6832 | fi | |
6833 | ||
6834 | ||
6835 | enablestring= | |
6836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6837 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6838 | no_cache=0 | |
6839 | # Check whether --enable-logwin or --disable-logwin was given. | |
6840 | if test "${enable_logwin+set}" = set; then | |
6841 | enableval="$enable_logwin" | |
6842 | ||
6843 | if test "$enableval" = yes; then | |
6844 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6845 | else | |
6846 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6847 | fi | |
6848 | ||
6849 | else | |
6850 | ||
6851 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6852 | if test "x$LINE" != x ; then | |
6853 | eval "DEFAULT_$LINE" | |
6854 | else | |
6855 | no_cache=1 | |
6856 | fi | |
6857 | ||
6858 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6859 | ||
6860 | fi; | |
6861 | ||
6862 | eval "$ac_cv_use_logwin" | |
6863 | if test "$no_cache" != 1; then | |
6864 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6865 | fi | |
6866 | ||
6867 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6868 | echo "$as_me:$LINENO: result: yes" >&5 | |
6869 | echo "${ECHO_T}yes" >&6 | |
6870 | else | |
6871 | echo "$as_me:$LINENO: result: no" >&5 | |
6872 | echo "${ECHO_T}no" >&6 | |
6873 | fi | |
6874 | ||
6875 | ||
6876 | enablestring= | |
6877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6878 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6879 | no_cache=0 | |
6880 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6881 | if test "${enable_logdialog+set}" = set; then | |
6882 | enableval="$enable_logdialog" | |
6883 | ||
6884 | if test "$enableval" = yes; then | |
6885 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6886 | else | |
6887 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6888 | fi | |
6889 | ||
6890 | else | |
6891 | ||
6892 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6893 | if test "x$LINE" != x ; then | |
6894 | eval "DEFAULT_$LINE" | |
6895 | else | |
6896 | no_cache=1 | |
6897 | fi | |
6898 | ||
6899 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6900 | ||
6901 | fi; | |
6902 | ||
6903 | eval "$ac_cv_use_logdialog" | |
6904 | if test "$no_cache" != 1; then | |
6905 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6906 | fi | |
6907 | ||
6908 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6909 | echo "$as_me:$LINENO: result: yes" >&5 | |
6910 | echo "${ECHO_T}yes" >&6 | |
6911 | else | |
6912 | echo "$as_me:$LINENO: result: no" >&5 | |
6913 | echo "${ECHO_T}no" >&6 | |
6914 | fi | |
6915 | ||
6916 | ||
646b6ec1 VS |
6917 | enablestring= |
6918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6919 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6920 | no_cache=0 | |
6921 | # Check whether --enable-webkit or --disable-webkit was given. | |
6922 | if test "${enable_webkit+set}" = set; then | |
6923 | enableval="$enable_webkit" | |
6924 | ||
6925 | if test "$enableval" = yes; then | |
6926 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6927 | else | |
6928 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6929 | fi | |
6930 | ||
6931 | else | |
6932 | ||
6933 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6934 | if test "x$LINE" != x ; then | |
6935 | eval "DEFAULT_$LINE" | |
6936 | else | |
6937 | no_cache=1 | |
6938 | fi | |
6939 | ||
6940 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6941 | ||
6942 | fi; | |
6943 | ||
6944 | eval "$ac_cv_use_webkit" | |
6945 | if test "$no_cache" != 1; then | |
6946 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6947 | fi | |
6948 | ||
6949 | if test "$wxUSE_WEBKIT" = yes; then | |
6950 | echo "$as_me:$LINENO: result: yes" >&5 | |
6951 | echo "${ECHO_T}yes" >&6 | |
6952 | else | |
6953 | echo "$as_me:$LINENO: result: no" >&5 | |
6954 | echo "${ECHO_T}no" >&6 | |
6955 | fi | |
6956 | ||
6957 | ||
a848cd7e SC |
6958 | |
6959 | enablestring= | |
6960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6961 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6962 | no_cache=0 | |
6963 | # Check whether --enable-postscript or --disable-postscript was given. | |
6964 | if test "${enable_postscript+set}" = set; then | |
6965 | enableval="$enable_postscript" | |
6966 | ||
6967 | if test "$enableval" = yes; then | |
6968 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6969 | else | |
6970 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6971 | fi | |
6972 | ||
6973 | else | |
6974 | ||
6975 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6976 | if test "x$LINE" != x ; then | |
6977 | eval "DEFAULT_$LINE" | |
6978 | else | |
6979 | no_cache=1 | |
6980 | fi | |
6981 | ||
6982 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6983 | ||
6984 | fi; | |
6985 | ||
6986 | eval "$ac_cv_use_postscript" | |
6987 | if test "$no_cache" != 1; then | |
6988 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6989 | fi | |
6990 | ||
6991 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6992 | echo "$as_me:$LINENO: result: yes" >&5 | |
6993 | echo "${ECHO_T}yes" >&6 | |
6994 | else | |
6995 | echo "$as_me:$LINENO: result: no" >&5 | |
6996 | echo "${ECHO_T}no" >&6 | |
6997 | fi | |
6998 | ||
6999 | ||
7000 | ||
7001 | ||
7002 | ||
7003 | enablestring= | |
7004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7005 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7006 | no_cache=0 | |
7007 | # Check whether --enable-prologio or --disable-prologio was given. | |
7008 | if test "${enable_prologio+set}" = set; then | |
7009 | enableval="$enable_prologio" | |
7010 | ||
7011 | if test "$enableval" = yes; then | |
7012 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7013 | else | |
7014 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7015 | fi | |
7016 | ||
7017 | else | |
7018 | ||
7019 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7020 | if test "x$LINE" != x ; then | |
7021 | eval "DEFAULT_$LINE" | |
7022 | else | |
7023 | no_cache=1 | |
7024 | fi | |
7025 | ||
7026 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7027 | ||
7028 | fi; | |
7029 | ||
7030 | eval "$ac_cv_use_prologio" | |
7031 | if test "$no_cache" != 1; then | |
7032 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7033 | fi | |
7034 | ||
7035 | if test "$wxUSE_PROLOGIO" = yes; then | |
7036 | echo "$as_me:$LINENO: result: yes" >&5 | |
7037 | echo "${ECHO_T}yes" >&6 | |
7038 | else | |
7039 | echo "$as_me:$LINENO: result: no" >&5 | |
7040 | echo "${ECHO_T}no" >&6 | |
7041 | fi | |
7042 | ||
7043 | ||
7044 | enablestring= | |
7045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7046 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7047 | no_cache=0 | |
7048 | # Check whether --enable-resources or --disable-resources was given. | |
7049 | if test "${enable_resources+set}" = set; then | |
7050 | enableval="$enable_resources" | |
7051 | ||
7052 | if test "$enableval" = yes; then | |
7053 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7054 | else | |
7055 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7056 | fi | |
7057 | ||
7058 | else | |
7059 | ||
7060 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7061 | if test "x$LINE" != x ; then | |
7062 | eval "DEFAULT_$LINE" | |
7063 | else | |
7064 | no_cache=1 | |
7065 | fi | |
7066 | ||
7067 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7068 | ||
7069 | fi; | |
7070 | ||
7071 | eval "$ac_cv_use_resources" | |
7072 | if test "$no_cache" != 1; then | |
7073 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7074 | fi | |
7075 | ||
7076 | if test "$wxUSE_RESOURCES" = yes; then | |
7077 | echo "$as_me:$LINENO: result: yes" >&5 | |
7078 | echo "${ECHO_T}yes" >&6 | |
7079 | else | |
7080 | echo "$as_me:$LINENO: result: no" >&5 | |
7081 | echo "${ECHO_T}no" >&6 | |
7082 | fi | |
7083 | ||
7084 | ||
7085 | ||
7086 | ||
7087 | enablestring= | |
7088 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7089 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7090 | no_cache=0 | |
7091 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7092 | if test "${enable_clipboard+set}" = set; then | |
7093 | enableval="$enable_clipboard" | |
7094 | ||
7095 | if test "$enableval" = yes; then | |
7096 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7097 | else | |
7098 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7099 | fi | |
7100 | ||
7101 | else | |
7102 | ||
7103 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7104 | if test "x$LINE" != x ; then | |
7105 | eval "DEFAULT_$LINE" | |
7106 | else | |
7107 | no_cache=1 | |
7108 | fi | |
7109 | ||
7110 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7111 | ||
7112 | fi; | |
7113 | ||
7114 | eval "$ac_cv_use_clipboard" | |
7115 | if test "$no_cache" != 1; then | |
7116 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7117 | fi | |
7118 | ||
7119 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7120 | echo "$as_me:$LINENO: result: yes" >&5 | |
7121 | echo "${ECHO_T}yes" >&6 | |
7122 | else | |
7123 | echo "$as_me:$LINENO: result: no" >&5 | |
7124 | echo "${ECHO_T}no" >&6 | |
7125 | fi | |
7126 | ||
7127 | ||
7128 | enablestring= | |
7129 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7130 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7131 | no_cache=0 | |
7132 | # Check whether --enable-dnd or --disable-dnd was given. | |
7133 | if test "${enable_dnd+set}" = set; then | |
7134 | enableval="$enable_dnd" | |
7135 | ||
7136 | if test "$enableval" = yes; then | |
7137 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7138 | else | |
7139 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7140 | fi | |
7141 | ||
7142 | else | |
7143 | ||
7144 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7145 | if test "x$LINE" != x ; then | |
7146 | eval "DEFAULT_$LINE" | |
7147 | else | |
7148 | no_cache=1 | |
7149 | fi | |
7150 | ||
7151 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7152 | ||
7153 | fi; | |
7154 | ||
7155 | eval "$ac_cv_use_dnd" | |
7156 | if test "$no_cache" != 1; then | |
7157 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7158 | fi | |
7159 | ||
7160 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7161 | echo "$as_me:$LINENO: result: yes" >&5 | |
7162 | echo "${ECHO_T}yes" >&6 | |
7163 | else | |
7164 | echo "$as_me:$LINENO: result: no" >&5 | |
7165 | echo "${ECHO_T}no" >&6 | |
7166 | fi | |
7167 | ||
7168 | ||
7169 | enablestring= | |
7170 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7171 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7172 | no_cache=0 | |
7173 | # Check whether --enable-metafile or --disable-metafile was given. | |
7174 | if test "${enable_metafile+set}" = set; then | |
7175 | enableval="$enable_metafile" | |
7176 | ||
7177 | if test "$enableval" = yes; then | |
7178 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7179 | else | |
7180 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7181 | fi | |
7182 | ||
7183 | else | |
7184 | ||
7185 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7186 | if test "x$LINE" != x ; then | |
7187 | eval "DEFAULT_$LINE" | |
7188 | else | |
7189 | no_cache=1 | |
7190 | fi | |
7191 | ||
7192 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7193 | ||
7194 | fi; | |
7195 | ||
7196 | eval "$ac_cv_use_metafile" | |
7197 | if test "$no_cache" != 1; then | |
7198 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7199 | fi | |
7200 | ||
7201 | if test "$wxUSE_METAFILE" = yes; then | |
7202 | echo "$as_me:$LINENO: result: yes" >&5 | |
7203 | echo "${ECHO_T}yes" >&6 | |
7204 | else | |
7205 | echo "$as_me:$LINENO: result: no" >&5 | |
7206 | echo "${ECHO_T}no" >&6 | |
7207 | fi | |
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | enablestring= | |
7214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7215 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7216 | no_cache=0 | |
7217 | # Check whether --enable-controls or --disable-controls was given. | |
7218 | if test "${enable_controls+set}" = set; then | |
7219 | enableval="$enable_controls" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7223 | else | |
7224 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7237 | ||
7238 | fi; | |
7239 | ||
7240 | eval "$ac_cv_use_controls" | |
7241 | if test "$no_cache" != 1; then | |
7242 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7243 | fi | |
7244 | ||
7245 | if test "$wxUSE_CONTROLS" = yes; then | |
7246 | echo "$as_me:$LINENO: result: yes" >&5 | |
7247 | echo "${ECHO_T}yes" >&6 | |
7248 | else | |
7249 | echo "$as_me:$LINENO: result: no" >&5 | |
7250 | echo "${ECHO_T}no" >&6 | |
7251 | fi | |
7252 | ||
7253 | ||
7254 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7255 | DEFAULT_wxUSE_ACCEL=yes | |
7256 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7257 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7258 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7259 | DEFAULT_wxUSE_CARET=yes |
7260 | DEFAULT_wxUSE_COMBOBOX=yes | |
7261 | DEFAULT_wxUSE_CHECKBOX=yes | |
7262 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7263 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7264 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7265 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7266 | DEFAULT_wxUSE_GAUGE=yes |
7267 | DEFAULT_wxUSE_GRID=yes | |
7268 | DEFAULT_wxUSE_IMAGLIST=yes | |
7269 | DEFAULT_wxUSE_LISTBOOK=yes | |
7270 | DEFAULT_wxUSE_LISTBOX=yes | |
7271 | DEFAULT_wxUSE_LISTCTRL=yes | |
7272 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7273 | DEFAULT_wxUSE_RADIOBOX=yes | |
7274 | DEFAULT_wxUSE_RADIOBTN=yes | |
7275 | DEFAULT_wxUSE_SASH=yes | |
7276 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7277 | DEFAULT_wxUSE_SLIDER=yes | |
7278 | DEFAULT_wxUSE_SPINBTN=yes | |
7279 | DEFAULT_wxUSE_SPINCTRL=yes | |
7280 | DEFAULT_wxUSE_SPLITTER=yes | |
7281 | DEFAULT_wxUSE_STATBMP=yes | |
7282 | DEFAULT_wxUSE_STATBOX=yes | |
7283 | DEFAULT_wxUSE_STATLINE=yes | |
7284 | DEFAULT_wxUSE_STATUSBAR=yes | |
7285 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7286 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7287 | DEFAULT_wxUSE_TOOLBAR=yes | |
7288 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7289 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7290 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7291 | DEFAULT_wxUSE_TREECTRL=yes | |
7292 | DEFAULT_wxUSE_POPUPWIN=yes | |
7293 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7294 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7295 | DEFAULT_wxUSE_ACCEL=no | |
7296 | DEFAULT_wxUSE_BMPBUTTON=no | |
7297 | DEFAULT_wxUSE_BUTTON=no | |
7298 | DEFAULT_wxUSE_CALCTRL=no | |
7299 | DEFAULT_wxUSE_CARET=no | |
7300 | DEFAULT_wxUSE_COMBOBOX=no | |
7301 | DEFAULT_wxUSE_CHECKBOX=no | |
7302 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7303 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7304 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7305 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7306 | DEFAULT_wxUSE_GAUGE=no |
7307 | DEFAULT_wxUSE_GRID=no | |
7308 | DEFAULT_wxUSE_IMAGLIST=no | |
7309 | DEFAULT_wxUSE_LISTBOOK=no | |
7310 | DEFAULT_wxUSE_LISTBOX=no | |
7311 | DEFAULT_wxUSE_LISTCTRL=no | |
7312 | DEFAULT_wxUSE_NOTEBOOK=no | |
7313 | DEFAULT_wxUSE_RADIOBOX=no | |
7314 | DEFAULT_wxUSE_RADIOBTN=no | |
7315 | DEFAULT_wxUSE_SASH=no | |
7316 | DEFAULT_wxUSE_SCROLLBAR=no | |
7317 | DEFAULT_wxUSE_SLIDER=no | |
7318 | DEFAULT_wxUSE_SPINBTN=no | |
7319 | DEFAULT_wxUSE_SPINCTRL=no | |
7320 | DEFAULT_wxUSE_SPLITTER=no | |
7321 | DEFAULT_wxUSE_STATBMP=no | |
7322 | DEFAULT_wxUSE_STATBOX=no | |
7323 | DEFAULT_wxUSE_STATLINE=no | |
7324 | DEFAULT_wxUSE_STATUSBAR=no | |
7325 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7326 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7327 | DEFAULT_wxUSE_TOOLBAR=no | |
7328 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7329 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7330 | DEFAULT_wxUSE_TOOLTIPS=no | |
7331 | DEFAULT_wxUSE_TREECTRL=no | |
7332 | DEFAULT_wxUSE_POPUPWIN=no | |
7333 | DEFAULT_wxUSE_TIPWINDOW=no | |
7334 | fi | |
7335 | ||
a848cd7e SC |
7336 | |
7337 | enablestring= | |
7338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7339 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7340 | no_cache=0 | |
7341 | # Check whether --enable-accel or --disable-accel was given. | |
7342 | if test "${enable_accel+set}" = set; then | |
7343 | enableval="$enable_accel" | |
7344 | ||
7345 | if test "$enableval" = yes; then | |
7346 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7347 | else | |
7348 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7349 | fi | |
7350 | ||
7351 | else | |
7352 | ||
7353 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7354 | if test "x$LINE" != x ; then | |
7355 | eval "DEFAULT_$LINE" | |
7356 | else | |
7357 | no_cache=1 | |
7358 | fi | |
7359 | ||
7360 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7361 | ||
7362 | fi; | |
7363 | ||
7364 | eval "$ac_cv_use_accel" | |
7365 | if test "$no_cache" != 1; then | |
7366 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7367 | fi | |
7368 | ||
7369 | if test "$wxUSE_ACCEL" = yes; then | |
7370 | echo "$as_me:$LINENO: result: yes" >&5 | |
7371 | echo "${ECHO_T}yes" >&6 | |
7372 | else | |
7373 | echo "$as_me:$LINENO: result: no" >&5 | |
7374 | echo "${ECHO_T}no" >&6 | |
7375 | fi | |
7376 | ||
7377 | ||
7378 | enablestring= | |
7379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7380 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7381 | no_cache=0 | |
7382 | # Check whether --enable-button or --disable-button was given. | |
7383 | if test "${enable_button+set}" = set; then | |
7384 | enableval="$enable_button" | |
7385 | ||
7386 | if test "$enableval" = yes; then | |
7387 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7388 | else | |
7389 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7390 | fi | |
7391 | ||
7392 | else | |
7393 | ||
7394 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7395 | if test "x$LINE" != x ; then | |
7396 | eval "DEFAULT_$LINE" | |
7397 | else | |
7398 | no_cache=1 | |
7399 | fi | |
7400 | ||
7401 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7402 | ||
7403 | fi; | |
7404 | ||
7405 | eval "$ac_cv_use_button" | |
7406 | if test "$no_cache" != 1; then | |
7407 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7408 | fi | |
7409 | ||
7410 | if test "$wxUSE_BUTTON" = yes; then | |
7411 | echo "$as_me:$LINENO: result: yes" >&5 | |
7412 | echo "${ECHO_T}yes" >&6 | |
7413 | else | |
7414 | echo "$as_me:$LINENO: result: no" >&5 | |
7415 | echo "${ECHO_T}no" >&6 | |
7416 | fi | |
7417 | ||
7418 | ||
7419 | enablestring= | |
7420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7421 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7422 | no_cache=0 | |
7423 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7424 | if test "${enable_bmpbutton+set}" = set; then | |
7425 | enableval="$enable_bmpbutton" | |
7426 | ||
7427 | if test "$enableval" = yes; then | |
7428 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7429 | else | |
7430 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7431 | fi | |
7432 | ||
7433 | else | |
7434 | ||
7435 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7436 | if test "x$LINE" != x ; then | |
7437 | eval "DEFAULT_$LINE" | |
7438 | else | |
7439 | no_cache=1 | |
7440 | fi | |
7441 | ||
7442 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7443 | ||
7444 | fi; | |
7445 | ||
7446 | eval "$ac_cv_use_bmpbutton" | |
7447 | if test "$no_cache" != 1; then | |
7448 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7449 | fi | |
7450 | ||
7451 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7452 | echo "$as_me:$LINENO: result: yes" >&5 | |
7453 | echo "${ECHO_T}yes" >&6 | |
7454 | else | |
7455 | echo "$as_me:$LINENO: result: no" >&5 | |
7456 | echo "${ECHO_T}no" >&6 | |
7457 | fi | |
7458 | ||
7459 | ||
7460 | enablestring= | |
7461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7462 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7463 | no_cache=0 | |
7464 | # Check whether --enable-calendar or --disable-calendar was given. | |
7465 | if test "${enable_calendar+set}" = set; then | |
7466 | enableval="$enable_calendar" | |
7467 | ||
7468 | if test "$enableval" = yes; then | |
7469 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7470 | else | |
7471 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7472 | fi | |
7473 | ||
7474 | else | |
7475 | ||
7476 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7477 | if test "x$LINE" != x ; then | |
7478 | eval "DEFAULT_$LINE" | |
7479 | else | |
7480 | no_cache=1 | |
7481 | fi | |
7482 | ||
7483 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7484 | ||
7485 | fi; | |
7486 | ||
7487 | eval "$ac_cv_use_calendar" | |
7488 | if test "$no_cache" != 1; then | |
7489 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7490 | fi | |
7491 | ||
7492 | if test "$wxUSE_CALCTRL" = yes; then | |
7493 | echo "$as_me:$LINENO: result: yes" >&5 | |
7494 | echo "${ECHO_T}yes" >&6 | |
7495 | else | |
7496 | echo "$as_me:$LINENO: result: no" >&5 | |
7497 | echo "${ECHO_T}no" >&6 | |
7498 | fi | |
7499 | ||
7500 | ||
7501 | enablestring= | |
7502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7503 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7504 | no_cache=0 | |
7505 | # Check whether --enable-caret or --disable-caret was given. | |
7506 | if test "${enable_caret+set}" = set; then | |
7507 | enableval="$enable_caret" | |
7508 | ||
7509 | if test "$enableval" = yes; then | |
7510 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7511 | else | |
7512 | ac_cv_use_caret='wxUSE_CARET=no' | |
7513 | fi | |
7514 | ||
7515 | else | |
7516 | ||
7517 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7518 | if test "x$LINE" != x ; then | |
7519 | eval "DEFAULT_$LINE" | |
7520 | else | |
7521 | no_cache=1 | |
7522 | fi | |
7523 | ||
7524 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7525 | ||
7526 | fi; | |
7527 | ||
7528 | eval "$ac_cv_use_caret" | |
7529 | if test "$no_cache" != 1; then | |
7530 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7531 | fi | |
7532 | ||
7533 | if test "$wxUSE_CARET" = yes; then | |
7534 | echo "$as_me:$LINENO: result: yes" >&5 | |
7535 | echo "${ECHO_T}yes" >&6 | |
7536 | else | |
7537 | echo "$as_me:$LINENO: result: no" >&5 | |
7538 | echo "${ECHO_T}no" >&6 | |
7539 | fi | |
7540 | ||
7541 | ||
7542 | enablestring= | |
7543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7544 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7545 | no_cache=0 | |
7546 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7547 | if test "${enable_checkbox+set}" = set; then | |
7548 | enableval="$enable_checkbox" | |
7549 | ||
7550 | if test "$enableval" = yes; then | |
7551 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7552 | else | |
7553 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7554 | fi | |
7555 | ||
7556 | else | |
7557 | ||
7558 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7559 | if test "x$LINE" != x ; then | |
7560 | eval "DEFAULT_$LINE" | |
7561 | else | |
7562 | no_cache=1 | |
7563 | fi | |
7564 | ||
7565 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7566 | ||
7567 | fi; | |
7568 | ||
7569 | eval "$ac_cv_use_checkbox" | |
7570 | if test "$no_cache" != 1; then | |
7571 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7572 | fi | |
7573 | ||
7574 | if test "$wxUSE_CHECKBOX" = yes; then | |
7575 | echo "$as_me:$LINENO: result: yes" >&5 | |
7576 | echo "${ECHO_T}yes" >&6 | |
7577 | else | |
7578 | echo "$as_me:$LINENO: result: no" >&5 | |
7579 | echo "${ECHO_T}no" >&6 | |
7580 | fi | |
7581 | ||
7582 | ||
7583 | enablestring= | |
7584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7585 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7586 | no_cache=0 | |
7587 | # Check whether --enable-checklst or --disable-checklst was given. | |
7588 | if test "${enable_checklst+set}" = set; then | |
7589 | enableval="$enable_checklst" | |
7590 | ||
7591 | if test "$enableval" = yes; then | |
7592 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7593 | else | |
7594 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7595 | fi | |
7596 | ||
7597 | else | |
7598 | ||
7599 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7600 | if test "x$LINE" != x ; then | |
7601 | eval "DEFAULT_$LINE" | |
7602 | else | |
7603 | no_cache=1 | |
7604 | fi | |
7605 | ||
7606 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7607 | ||
7608 | fi; | |
7609 | ||
7610 | eval "$ac_cv_use_checklst" | |
7611 | if test "$no_cache" != 1; then | |
7612 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7613 | fi | |
7614 | ||
7615 | if test "$wxUSE_CHECKLST" = yes; then | |
7616 | echo "$as_me:$LINENO: result: yes" >&5 | |
7617 | echo "${ECHO_T}yes" >&6 | |
7618 | else | |
7619 | echo "$as_me:$LINENO: result: no" >&5 | |
7620 | echo "${ECHO_T}no" >&6 | |
7621 | fi | |
7622 | ||
7623 | ||
7624 | enablestring= | |
7625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7626 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7627 | no_cache=0 | |
7628 | # Check whether --enable-choice or --disable-choice was given. | |
7629 | if test "${enable_choice+set}" = set; then | |
7630 | enableval="$enable_choice" | |
7631 | ||
7632 | if test "$enableval" = yes; then | |
7633 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7634 | else | |
7635 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7636 | fi | |
7637 | ||
7638 | else | |
7639 | ||
7640 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7641 | if test "x$LINE" != x ; then | |
7642 | eval "DEFAULT_$LINE" | |
7643 | else | |
7644 | no_cache=1 | |
7645 | fi | |
7646 | ||
7647 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7648 | ||
7649 | fi; | |
7650 | ||
7651 | eval "$ac_cv_use_choice" | |
7652 | if test "$no_cache" != 1; then | |
7653 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7654 | fi | |
7655 | ||
7656 | if test "$wxUSE_CHOICE" = yes; then | |
7657 | echo "$as_me:$LINENO: result: yes" >&5 | |
7658 | echo "${ECHO_T}yes" >&6 | |
7659 | else | |
7660 | echo "$as_me:$LINENO: result: no" >&5 | |
7661 | echo "${ECHO_T}no" >&6 | |
7662 | fi | |
7663 | ||
7664 | ||
92bbdbcd WS |
7665 | enablestring= |
7666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7667 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7668 | no_cache=0 | |
7669 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7670 | if test "${enable_choicebook+set}" = set; then | |
7671 | enableval="$enable_choicebook" | |
7672 | ||
7673 | if test "$enableval" = yes; then | |
7674 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7675 | else | |
7676 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7677 | fi | |
7678 | ||
7679 | else | |
7680 | ||
7681 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7682 | if test "x$LINE" != x ; then | |
7683 | eval "DEFAULT_$LINE" | |
7684 | else | |
7685 | no_cache=1 | |
7686 | fi | |
7687 | ||
7688 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7689 | ||
7690 | fi; | |
7691 | ||
7692 | eval "$ac_cv_use_choicebook" | |
7693 | if test "$no_cache" != 1; then | |
7694 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7695 | fi | |
7696 | ||
7697 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7698 | echo "$as_me:$LINENO: result: yes" >&5 | |
7699 | echo "${ECHO_T}yes" >&6 | |
7700 | else | |
7701 | echo "$as_me:$LINENO: result: no" >&5 | |
7702 | echo "${ECHO_T}no" >&6 | |
7703 | fi | |
7704 | ||
7705 | ||
a848cd7e SC |
7706 | enablestring= |
7707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7708 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7709 | no_cache=0 | |
7710 | # Check whether --enable-combobox or --disable-combobox was given. | |
7711 | if test "${enable_combobox+set}" = set; then | |
7712 | enableval="$enable_combobox" | |
7713 | ||
7714 | if test "$enableval" = yes; then | |
7715 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7716 | else | |
7717 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7718 | fi | |
7719 | ||
7720 | else | |
7721 | ||
7722 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7723 | if test "x$LINE" != x ; then | |
7724 | eval "DEFAULT_$LINE" | |
7725 | else | |
7726 | no_cache=1 | |
7727 | fi | |
7728 | ||
7729 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7730 | ||
7731 | fi; | |
7732 | ||
7733 | eval "$ac_cv_use_combobox" | |
7734 | if test "$no_cache" != 1; then | |
7735 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7736 | fi | |
7737 | ||
7738 | if test "$wxUSE_COMBOBOX" = yes; then | |
7739 | echo "$as_me:$LINENO: result: yes" >&5 | |
7740 | echo "${ECHO_T}yes" >&6 | |
7741 | else | |
7742 | echo "$as_me:$LINENO: result: no" >&5 | |
7743 | echo "${ECHO_T}no" >&6 | |
7744 | fi | |
7745 | ||
7746 | ||
da98e9be VZ |
7747 | enablestring= |
7748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7749 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7750 | no_cache=0 | |
7751 | # Check whether --enable-datepick or --disable-datepick was given. | |
7752 | if test "${enable_datepick+set}" = set; then | |
7753 | enableval="$enable_datepick" | |
7754 | ||
7755 | if test "$enableval" = yes; then | |
7756 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7757 | else | |
7758 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7759 | fi | |
7760 | ||
7761 | else | |
7762 | ||
7763 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7764 | if test "x$LINE" != x ; then | |
7765 | eval "DEFAULT_$LINE" | |
7766 | else | |
7767 | no_cache=1 | |
7768 | fi | |
7769 | ||
7770 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7771 | ||
7772 | fi; | |
7773 | ||
7774 | eval "$ac_cv_use_datepick" | |
7775 | if test "$no_cache" != 1; then | |
7776 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7777 | fi | |
7778 | ||
7779 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7780 | echo "$as_me:$LINENO: result: yes" >&5 | |
7781 | echo "${ECHO_T}yes" >&6 | |
7782 | else | |
7783 | echo "$as_me:$LINENO: result: no" >&5 | |
7784 | echo "${ECHO_T}no" >&6 | |
7785 | fi | |
7786 | ||
7787 | ||
a848cd7e SC |
7788 | enablestring= |
7789 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7790 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7791 | no_cache=0 | |
7792 | # Check whether --enable-display or --disable-display was given. | |
7793 | if test "${enable_display+set}" = set; then | |
7794 | enableval="$enable_display" | |
7795 | ||
7796 | if test "$enableval" = yes; then | |
7797 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7798 | else | |
7799 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7800 | fi | |
7801 | ||
7802 | else | |
7803 | ||
7804 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7805 | if test "x$LINE" != x ; then | |
7806 | eval "DEFAULT_$LINE" | |
7807 | else | |
7808 | no_cache=1 | |
7809 | fi | |
7810 | ||
7811 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7812 | ||
7813 | fi; | |
7814 | ||
7815 | eval "$ac_cv_use_display" | |
7816 | if test "$no_cache" != 1; then | |
7817 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7818 | fi | |
7819 | ||
7820 | if test "$wxUSE_DISPLAY" = yes; then | |
7821 | echo "$as_me:$LINENO: result: yes" >&5 | |
7822 | echo "${ECHO_T}yes" >&6 | |
7823 | else | |
7824 | echo "$as_me:$LINENO: result: no" >&5 | |
7825 | echo "${ECHO_T}no" >&6 | |
7826 | fi | |
7827 | ||
7828 | ||
7829 | enablestring= | |
7830 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7831 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7832 | no_cache=0 | |
7833 | # Check whether --enable-gauge or --disable-gauge was given. | |
7834 | if test "${enable_gauge+set}" = set; then | |
7835 | enableval="$enable_gauge" | |
7836 | ||
7837 | if test "$enableval" = yes; then | |
7838 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7839 | else | |
7840 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7841 | fi | |
7842 | ||
7843 | else | |
7844 | ||
7845 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7846 | if test "x$LINE" != x ; then | |
7847 | eval "DEFAULT_$LINE" | |
7848 | else | |
7849 | no_cache=1 | |
7850 | fi | |
7851 | ||
7852 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7853 | ||
7854 | fi; | |
7855 | ||
7856 | eval "$ac_cv_use_gauge" | |
7857 | if test "$no_cache" != 1; then | |
7858 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7859 | fi | |
7860 | ||
7861 | if test "$wxUSE_GAUGE" = yes; then | |
7862 | echo "$as_me:$LINENO: result: yes" >&5 | |
7863 | echo "${ECHO_T}yes" >&6 | |
7864 | else | |
7865 | echo "$as_me:$LINENO: result: no" >&5 | |
7866 | echo "${ECHO_T}no" >&6 | |
7867 | fi | |
7868 | ||
7869 | ||
7870 | enablestring= | |
7871 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7872 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7873 | no_cache=0 | |
7874 | # Check whether --enable-grid or --disable-grid was given. | |
7875 | if test "${enable_grid+set}" = set; then | |
7876 | enableval="$enable_grid" | |
7877 | ||
7878 | if test "$enableval" = yes; then | |
7879 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7880 | else | |
7881 | ac_cv_use_grid='wxUSE_GRID=no' | |
7882 | fi | |
7883 | ||
7884 | else | |
7885 | ||
7886 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7887 | if test "x$LINE" != x ; then | |
7888 | eval "DEFAULT_$LINE" | |
7889 | else | |
7890 | no_cache=1 | |
7891 | fi | |
7892 | ||
7893 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7894 | ||
7895 | fi; | |
7896 | ||
7897 | eval "$ac_cv_use_grid" | |
7898 | if test "$no_cache" != 1; then | |
7899 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7900 | fi | |
7901 | ||
7902 | if test "$wxUSE_GRID" = yes; then | |
7903 | echo "$as_me:$LINENO: result: yes" >&5 | |
7904 | echo "${ECHO_T}yes" >&6 | |
7905 | else | |
7906 | echo "$as_me:$LINENO: result: no" >&5 | |
7907 | echo "${ECHO_T}no" >&6 | |
7908 | fi | |
7909 | ||
7910 | ||
7911 | enablestring= | |
7912 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7913 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7914 | no_cache=0 | |
7915 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7916 | if test "${enable_imaglist+set}" = set; then | |
7917 | enableval="$enable_imaglist" | |
7918 | ||
7919 | if test "$enableval" = yes; then | |
7920 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7921 | else | |
7922 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7923 | fi | |
7924 | ||
7925 | else | |
7926 | ||
7927 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7928 | if test "x$LINE" != x ; then | |
7929 | eval "DEFAULT_$LINE" | |
7930 | else | |
7931 | no_cache=1 | |
7932 | fi | |
7933 | ||
7934 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7935 | ||
7936 | fi; | |
7937 | ||
7938 | eval "$ac_cv_use_imaglist" | |
7939 | if test "$no_cache" != 1; then | |
7940 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7941 | fi | |
7942 | ||
7943 | if test "$wxUSE_IMAGLIST" = yes; then | |
7944 | echo "$as_me:$LINENO: result: yes" >&5 | |
7945 | echo "${ECHO_T}yes" >&6 | |
7946 | else | |
7947 | echo "$as_me:$LINENO: result: no" >&5 | |
7948 | echo "${ECHO_T}no" >&6 | |
7949 | fi | |
7950 | ||
7951 | ||
7952 | enablestring= | |
7953 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7954 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7955 | no_cache=0 | |
7956 | # Check whether --enable-listbook or --disable-listbook was given. | |
7957 | if test "${enable_listbook+set}" = set; then | |
7958 | enableval="$enable_listbook" | |
7959 | ||
7960 | if test "$enableval" = yes; then | |
7961 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7962 | else | |
7963 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7964 | fi | |
7965 | ||
7966 | else | |
7967 | ||
7968 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7969 | if test "x$LINE" != x ; then | |
7970 | eval "DEFAULT_$LINE" | |
7971 | else | |
7972 | no_cache=1 | |
7973 | fi | |
7974 | ||
7975 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7976 | ||
7977 | fi; | |
7978 | ||
7979 | eval "$ac_cv_use_listbook" | |
7980 | if test "$no_cache" != 1; then | |
7981 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7982 | fi | |
7983 | ||
7984 | if test "$wxUSE_LISTBOOK" = yes; then | |
7985 | echo "$as_me:$LINENO: result: yes" >&5 | |
7986 | echo "${ECHO_T}yes" >&6 | |
7987 | else | |
7988 | echo "$as_me:$LINENO: result: no" >&5 | |
7989 | echo "${ECHO_T}no" >&6 | |
7990 | fi | |
7991 | ||
7992 | ||
7993 | enablestring= | |
7994 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7995 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7996 | no_cache=0 | |
7997 | # Check whether --enable-listbox or --disable-listbox was given. | |
7998 | if test "${enable_listbox+set}" = set; then | |
7999 | enableval="$enable_listbox" | |
8000 | ||
8001 | if test "$enableval" = yes; then | |
8002 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8003 | else | |
8004 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8005 | fi | |
8006 | ||
8007 | else | |
8008 | ||
8009 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8010 | if test "x$LINE" != x ; then | |
8011 | eval "DEFAULT_$LINE" | |
8012 | else | |
8013 | no_cache=1 | |
8014 | fi | |
8015 | ||
8016 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8017 | ||
8018 | fi; | |
8019 | ||
8020 | eval "$ac_cv_use_listbox" | |
8021 | if test "$no_cache" != 1; then | |
8022 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8023 | fi | |
8024 | ||
8025 | if test "$wxUSE_LISTBOX" = yes; then | |
8026 | echo "$as_me:$LINENO: result: yes" >&5 | |
8027 | echo "${ECHO_T}yes" >&6 | |
8028 | else | |
8029 | echo "$as_me:$LINENO: result: no" >&5 | |
8030 | echo "${ECHO_T}no" >&6 | |
8031 | fi | |
8032 | ||
8033 | ||
8034 | enablestring= | |
8035 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8036 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8037 | no_cache=0 | |
8038 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8039 | if test "${enable_listctrl+set}" = set; then | |
8040 | enableval="$enable_listctrl" | |
8041 | ||
8042 | if test "$enableval" = yes; then | |
8043 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8044 | else | |
8045 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8046 | fi | |
8047 | ||
8048 | else | |
8049 | ||
8050 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8051 | if test "x$LINE" != x ; then | |
8052 | eval "DEFAULT_$LINE" | |
8053 | else | |
8054 | no_cache=1 | |
8055 | fi | |
8056 | ||
8057 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8058 | ||
8059 | fi; | |
8060 | ||
8061 | eval "$ac_cv_use_listctrl" | |
8062 | if test "$no_cache" != 1; then | |
8063 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8064 | fi | |
8065 | ||
8066 | if test "$wxUSE_LISTCTRL" = yes; then | |
8067 | echo "$as_me:$LINENO: result: yes" >&5 | |
8068 | echo "${ECHO_T}yes" >&6 | |
8069 | else | |
8070 | echo "$as_me:$LINENO: result: no" >&5 | |
8071 | echo "${ECHO_T}no" >&6 | |
8072 | fi | |
8073 | ||
8074 | ||
8075 | enablestring= | |
8076 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8077 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8078 | no_cache=0 | |
8079 | # Check whether --enable-notebook or --disable-notebook was given. | |
8080 | if test "${enable_notebook+set}" = set; then | |
8081 | enableval="$enable_notebook" | |
8082 | ||
8083 | if test "$enableval" = yes; then | |
8084 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8085 | else | |
8086 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8087 | fi | |
8088 | ||
8089 | else | |
8090 | ||
8091 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8092 | if test "x$LINE" != x ; then | |
8093 | eval "DEFAULT_$LINE" | |
8094 | else | |
8095 | no_cache=1 | |
8096 | fi | |
8097 | ||
8098 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8099 | ||
8100 | fi; | |
8101 | ||
8102 | eval "$ac_cv_use_notebook" | |
8103 | if test "$no_cache" != 1; then | |
8104 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8105 | fi | |
8106 | ||
8107 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8108 | echo "$as_me:$LINENO: result: yes" >&5 | |
8109 | echo "${ECHO_T}yes" >&6 | |
8110 | else | |
8111 | echo "$as_me:$LINENO: result: no" >&5 | |
8112 | echo "${ECHO_T}no" >&6 | |
8113 | fi | |
8114 | ||
8115 | ||
8116 | enablestring= | |
8117 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8118 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8119 | no_cache=0 | |
8120 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8121 | if test "${enable_radiobox+set}" = set; then | |
8122 | enableval="$enable_radiobox" | |
8123 | ||
8124 | if test "$enableval" = yes; then | |
8125 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8126 | else | |
8127 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8128 | fi | |
8129 | ||
8130 | else | |
8131 | ||
8132 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8133 | if test "x$LINE" != x ; then | |
8134 | eval "DEFAULT_$LINE" | |
8135 | else | |
8136 | no_cache=1 | |
8137 | fi | |
8138 | ||
8139 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8140 | ||
8141 | fi; | |
8142 | ||
8143 | eval "$ac_cv_use_radiobox" | |
8144 | if test "$no_cache" != 1; then | |
8145 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8146 | fi | |
8147 | ||
8148 | if test "$wxUSE_RADIOBOX" = yes; then | |
8149 | echo "$as_me:$LINENO: result: yes" >&5 | |
8150 | echo "${ECHO_T}yes" >&6 | |
8151 | else | |
8152 | echo "$as_me:$LINENO: result: no" >&5 | |
8153 | echo "${ECHO_T}no" >&6 | |
8154 | fi | |
8155 | ||
8156 | ||
8157 | enablestring= | |
8158 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8159 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8160 | no_cache=0 | |
8161 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8162 | if test "${enable_radiobtn+set}" = set; then | |
8163 | enableval="$enable_radiobtn" | |
8164 | ||
8165 | if test "$enableval" = yes; then | |
8166 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8167 | else | |
8168 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8169 | fi | |
8170 | ||
8171 | else | |
8172 | ||
8173 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8174 | if test "x$LINE" != x ; then | |
8175 | eval "DEFAULT_$LINE" | |
8176 | else | |
8177 | no_cache=1 | |
8178 | fi | |
8179 | ||
8180 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8181 | ||
8182 | fi; | |
8183 | ||
8184 | eval "$ac_cv_use_radiobtn" | |
8185 | if test "$no_cache" != 1; then | |
8186 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8187 | fi | |
8188 | ||
8189 | if test "$wxUSE_RADIOBTN" = yes; then | |
8190 | echo "$as_me:$LINENO: result: yes" >&5 | |
8191 | echo "${ECHO_T}yes" >&6 | |
8192 | else | |
8193 | echo "$as_me:$LINENO: result: no" >&5 | |
8194 | echo "${ECHO_T}no" >&6 | |
8195 | fi | |
8196 | ||
8197 | ||
8198 | enablestring= | |
8199 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8200 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8201 | no_cache=0 | |
8202 | # Check whether --enable-sash or --disable-sash was given. | |
8203 | if test "${enable_sash+set}" = set; then | |
8204 | enableval="$enable_sash" | |
8205 | ||
8206 | if test "$enableval" = yes; then | |
8207 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8208 | else | |
8209 | ac_cv_use_sash='wxUSE_SASH=no' | |
8210 | fi | |
8211 | ||
8212 | else | |
8213 | ||
8214 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8215 | if test "x$LINE" != x ; then | |
8216 | eval "DEFAULT_$LINE" | |
8217 | else | |
8218 | no_cache=1 | |
8219 | fi | |
8220 | ||
8221 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8222 | ||
8223 | fi; | |
8224 | ||
8225 | eval "$ac_cv_use_sash" | |
8226 | if test "$no_cache" != 1; then | |
8227 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8228 | fi | |
8229 | ||
8230 | if test "$wxUSE_SASH" = yes; then | |
8231 | echo "$as_me:$LINENO: result: yes" >&5 | |
8232 | echo "${ECHO_T}yes" >&6 | |
8233 | else | |
8234 | echo "$as_me:$LINENO: result: no" >&5 | |
8235 | echo "${ECHO_T}no" >&6 | |
8236 | fi | |
8237 | ||
8238 | ||
8239 | enablestring= | |
8240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8241 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8242 | no_cache=0 | |
8243 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8244 | if test "${enable_scrollbar+set}" = set; then | |
8245 | enableval="$enable_scrollbar" | |
8246 | ||
8247 | if test "$enableval" = yes; then | |
8248 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8249 | else | |
8250 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8251 | fi | |
8252 | ||
8253 | else | |
8254 | ||
8255 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8256 | if test "x$LINE" != x ; then | |
8257 | eval "DEFAULT_$LINE" | |
8258 | else | |
8259 | no_cache=1 | |
8260 | fi | |
8261 | ||
8262 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8263 | ||
8264 | fi; | |
8265 | ||
8266 | eval "$ac_cv_use_scrollbar" | |
8267 | if test "$no_cache" != 1; then | |
8268 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8269 | fi | |
8270 | ||
8271 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8272 | echo "$as_me:$LINENO: result: yes" >&5 | |
8273 | echo "${ECHO_T}yes" >&6 | |
8274 | else | |
8275 | echo "$as_me:$LINENO: result: no" >&5 | |
8276 | echo "${ECHO_T}no" >&6 | |
8277 | fi | |
8278 | ||
8279 | ||
8280 | enablestring= | |
8281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8282 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8283 | no_cache=0 | |
8284 | # Check whether --enable-slider or --disable-slider was given. | |
8285 | if test "${enable_slider+set}" = set; then | |
8286 | enableval="$enable_slider" | |
8287 | ||
8288 | if test "$enableval" = yes; then | |
8289 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8290 | else | |
8291 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8292 | fi | |
8293 | ||
8294 | else | |
8295 | ||
8296 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8297 | if test "x$LINE" != x ; then | |
8298 | eval "DEFAULT_$LINE" | |
8299 | else | |
8300 | no_cache=1 | |
8301 | fi | |
8302 | ||
8303 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8304 | ||
8305 | fi; | |
8306 | ||
8307 | eval "$ac_cv_use_slider" | |
8308 | if test "$no_cache" != 1; then | |
8309 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8310 | fi | |
8311 | ||
8312 | if test "$wxUSE_SLIDER" = yes; then | |
8313 | echo "$as_me:$LINENO: result: yes" >&5 | |
8314 | echo "${ECHO_T}yes" >&6 | |
8315 | else | |
8316 | echo "$as_me:$LINENO: result: no" >&5 | |
8317 | echo "${ECHO_T}no" >&6 | |
8318 | fi | |
8319 | ||
8320 | ||
8321 | enablestring= | |
8322 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8323 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8324 | no_cache=0 | |
8325 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8326 | if test "${enable_spinbtn+set}" = set; then | |
8327 | enableval="$enable_spinbtn" | |
8328 | ||
8329 | if test "$enableval" = yes; then | |
8330 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8331 | else | |
8332 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8333 | fi | |
8334 | ||
8335 | else | |
8336 | ||
8337 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8338 | if test "x$LINE" != x ; then | |
8339 | eval "DEFAULT_$LINE" | |
8340 | else | |
8341 | no_cache=1 | |
8342 | fi | |
8343 | ||
8344 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8345 | ||
8346 | fi; | |
8347 | ||
8348 | eval "$ac_cv_use_spinbtn" | |
8349 | if test "$no_cache" != 1; then | |
8350 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8351 | fi | |
8352 | ||
8353 | if test "$wxUSE_SPINBTN" = yes; then | |
8354 | echo "$as_me:$LINENO: result: yes" >&5 | |
8355 | echo "${ECHO_T}yes" >&6 | |
8356 | else | |
8357 | echo "$as_me:$LINENO: result: no" >&5 | |
8358 | echo "${ECHO_T}no" >&6 | |
8359 | fi | |
8360 | ||
8361 | ||
8362 | enablestring= | |
8363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8364 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8365 | no_cache=0 | |
8366 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8367 | if test "${enable_spinctrl+set}" = set; then | |
8368 | enableval="$enable_spinctrl" | |
8369 | ||
8370 | if test "$enableval" = yes; then | |
8371 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8372 | else | |
8373 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8374 | fi | |
8375 | ||
8376 | else | |
8377 | ||
8378 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8379 | if test "x$LINE" != x ; then | |
8380 | eval "DEFAULT_$LINE" | |
8381 | else | |
8382 | no_cache=1 | |
8383 | fi | |
8384 | ||
8385 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8386 | ||
8387 | fi; | |
8388 | ||
8389 | eval "$ac_cv_use_spinctrl" | |
8390 | if test "$no_cache" != 1; then | |
8391 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8392 | fi | |
8393 | ||
8394 | if test "$wxUSE_SPINCTRL" = yes; then | |
8395 | echo "$as_me:$LINENO: result: yes" >&5 | |
8396 | echo "${ECHO_T}yes" >&6 | |
8397 | else | |
8398 | echo "$as_me:$LINENO: result: no" >&5 | |
8399 | echo "${ECHO_T}no" >&6 | |
8400 | fi | |
8401 | ||
8402 | ||
8403 | enablestring= | |
8404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8405 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8406 | no_cache=0 | |
8407 | # Check whether --enable-splitter or --disable-splitter was given. | |
8408 | if test "${enable_splitter+set}" = set; then | |
8409 | enableval="$enable_splitter" | |
8410 | ||
8411 | if test "$enableval" = yes; then | |
8412 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8413 | else | |
8414 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8415 | fi | |
8416 | ||
8417 | else | |
8418 | ||
8419 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8420 | if test "x$LINE" != x ; then | |
8421 | eval "DEFAULT_$LINE" | |
8422 | else | |
8423 | no_cache=1 | |
8424 | fi | |
8425 | ||
8426 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8427 | ||
8428 | fi; | |
8429 | ||
8430 | eval "$ac_cv_use_splitter" | |
8431 | if test "$no_cache" != 1; then | |
8432 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8433 | fi | |
8434 | ||
8435 | if test "$wxUSE_SPLITTER" = yes; then | |
8436 | echo "$as_me:$LINENO: result: yes" >&5 | |
8437 | echo "${ECHO_T}yes" >&6 | |
8438 | else | |
8439 | echo "$as_me:$LINENO: result: no" >&5 | |
8440 | echo "${ECHO_T}no" >&6 | |
8441 | fi | |
8442 | ||
8443 | ||
8444 | enablestring= | |
8445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8446 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8447 | no_cache=0 | |
8448 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8449 | if test "${enable_statbmp+set}" = set; then | |
8450 | enableval="$enable_statbmp" | |
8451 | ||
8452 | if test "$enableval" = yes; then | |
8453 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8454 | else | |
8455 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8456 | fi | |
8457 | ||
8458 | else | |
8459 | ||
8460 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8461 | if test "x$LINE" != x ; then | |
8462 | eval "DEFAULT_$LINE" | |
8463 | else | |
8464 | no_cache=1 | |
8465 | fi | |
8466 | ||
8467 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8468 | ||
8469 | fi; | |
8470 | ||
8471 | eval "$ac_cv_use_statbmp" | |
8472 | if test "$no_cache" != 1; then | |
8473 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8474 | fi | |
8475 | ||
8476 | if test "$wxUSE_STATBMP" = yes; then | |
8477 | echo "$as_me:$LINENO: result: yes" >&5 | |
8478 | echo "${ECHO_T}yes" >&6 | |
8479 | else | |
8480 | echo "$as_me:$LINENO: result: no" >&5 | |
8481 | echo "${ECHO_T}no" >&6 | |
8482 | fi | |
8483 | ||
8484 | ||
8485 | enablestring= | |
8486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8487 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8488 | no_cache=0 | |
8489 | # Check whether --enable-statbox or --disable-statbox was given. | |
8490 | if test "${enable_statbox+set}" = set; then | |
8491 | enableval="$enable_statbox" | |
8492 | ||
8493 | if test "$enableval" = yes; then | |
8494 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8495 | else | |
8496 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8497 | fi | |
8498 | ||
8499 | else | |
8500 | ||
8501 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8502 | if test "x$LINE" != x ; then | |
8503 | eval "DEFAULT_$LINE" | |
8504 | else | |
8505 | no_cache=1 | |
8506 | fi | |
8507 | ||
8508 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8509 | ||
8510 | fi; | |
8511 | ||
8512 | eval "$ac_cv_use_statbox" | |
8513 | if test "$no_cache" != 1; then | |
8514 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8515 | fi | |
8516 | ||
8517 | if test "$wxUSE_STATBOX" = yes; then | |
8518 | echo "$as_me:$LINENO: result: yes" >&5 | |
8519 | echo "${ECHO_T}yes" >&6 | |
8520 | else | |
8521 | echo "$as_me:$LINENO: result: no" >&5 | |
8522 | echo "${ECHO_T}no" >&6 | |
8523 | fi | |
8524 | ||
8525 | ||
8526 | enablestring= | |
8527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8528 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8529 | no_cache=0 | |
8530 | # Check whether --enable-statline or --disable-statline was given. | |
8531 | if test "${enable_statline+set}" = set; then | |
8532 | enableval="$enable_statline" | |
8533 | ||
8534 | if test "$enableval" = yes; then | |
8535 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8536 | else | |
8537 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8538 | fi | |
8539 | ||
8540 | else | |
8541 | ||
8542 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8543 | if test "x$LINE" != x ; then | |
8544 | eval "DEFAULT_$LINE" | |
8545 | else | |
8546 | no_cache=1 | |
8547 | fi | |
8548 | ||
8549 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8550 | ||
8551 | fi; | |
8552 | ||
8553 | eval "$ac_cv_use_statline" | |
8554 | if test "$no_cache" != 1; then | |
8555 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8556 | fi | |
8557 | ||
8558 | if test "$wxUSE_STATLINE" = yes; then | |
8559 | echo "$as_me:$LINENO: result: yes" >&5 | |
8560 | echo "${ECHO_T}yes" >&6 | |
8561 | else | |
8562 | echo "$as_me:$LINENO: result: no" >&5 | |
8563 | echo "${ECHO_T}no" >&6 | |
8564 | fi | |
8565 | ||
8566 | ||
8567 | enablestring= | |
8568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8569 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8570 | no_cache=0 | |
8571 | # Check whether --enable-stattext or --disable-stattext was given. | |
8572 | if test "${enable_stattext+set}" = set; then | |
8573 | enableval="$enable_stattext" | |
8574 | ||
8575 | if test "$enableval" = yes; then | |
8576 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8577 | else | |
8578 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8579 | fi | |
8580 | ||
8581 | else | |
8582 | ||
8583 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8584 | if test "x$LINE" != x ; then | |
8585 | eval "DEFAULT_$LINE" | |
8586 | else | |
8587 | no_cache=1 | |
8588 | fi | |
8589 | ||
8590 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8591 | ||
8592 | fi; | |
8593 | ||
8594 | eval "$ac_cv_use_stattext" | |
8595 | if test "$no_cache" != 1; then | |
8596 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8597 | fi | |
8598 | ||
8599 | if test "$wxUSE_STATTEXT" = yes; then | |
8600 | echo "$as_me:$LINENO: result: yes" >&5 | |
8601 | echo "${ECHO_T}yes" >&6 | |
8602 | else | |
8603 | echo "$as_me:$LINENO: result: no" >&5 | |
8604 | echo "${ECHO_T}no" >&6 | |
8605 | fi | |
8606 | ||
8607 | ||
8608 | enablestring= | |
8609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8610 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8611 | no_cache=0 | |
8612 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8613 | if test "${enable_statusbar+set}" = set; then | |
8614 | enableval="$enable_statusbar" | |
8615 | ||
8616 | if test "$enableval" = yes; then | |
8617 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8618 | else | |
8619 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8620 | fi | |
8621 | ||
8622 | else | |
8623 | ||
8624 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8625 | if test "x$LINE" != x ; then | |
8626 | eval "DEFAULT_$LINE" | |
8627 | else | |
8628 | no_cache=1 | |
8629 | fi | |
8630 | ||
8631 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8632 | ||
8633 | fi; | |
8634 | ||
8635 | eval "$ac_cv_use_statusbar" | |
8636 | if test "$no_cache" != 1; then | |
8637 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8638 | fi | |
8639 | ||
8640 | if test "$wxUSE_STATUSBAR" = yes; then | |
8641 | echo "$as_me:$LINENO: result: yes" >&5 | |
8642 | echo "${ECHO_T}yes" >&6 | |
8643 | else | |
8644 | echo "$as_me:$LINENO: result: no" >&5 | |
8645 | echo "${ECHO_T}no" >&6 | |
8646 | fi | |
8647 | ||
8648 | ||
8649 | enablestring= | |
8650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8651 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8652 | no_cache=0 | |
8653 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8654 | if test "${enable_tabdialog+set}" = set; then | |
8655 | enableval="$enable_tabdialog" | |
8656 | ||
8657 | if test "$enableval" = yes; then | |
8658 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8659 | else | |
8660 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8661 | fi | |
8662 | ||
8663 | else | |
8664 | ||
8665 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8666 | if test "x$LINE" != x ; then | |
8667 | eval "DEFAULT_$LINE" | |
8668 | else | |
8669 | no_cache=1 | |
8670 | fi | |
8671 | ||
8672 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8673 | ||
8674 | fi; | |
8675 | ||
8676 | eval "$ac_cv_use_tabdialog" | |
8677 | if test "$no_cache" != 1; then | |
8678 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8679 | fi | |
8680 | ||
8681 | if test "$wxUSE_TABDIALOG" = yes; then | |
8682 | echo "$as_me:$LINENO: result: yes" >&5 | |
8683 | echo "${ECHO_T}yes" >&6 | |
8684 | else | |
8685 | echo "$as_me:$LINENO: result: no" >&5 | |
8686 | echo "${ECHO_T}no" >&6 | |
8687 | fi | |
8688 | ||
8689 | ||
8690 | enablestring= | |
8691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8692 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8693 | no_cache=0 | |
8694 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8695 | if test "${enable_textctrl+set}" = set; then | |
8696 | enableval="$enable_textctrl" | |
8697 | ||
8698 | if test "$enableval" = yes; then | |
8699 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8700 | else | |
8701 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8702 | fi | |
8703 | ||
8704 | else | |
8705 | ||
8706 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8707 | if test "x$LINE" != x ; then | |
8708 | eval "DEFAULT_$LINE" | |
8709 | else | |
8710 | no_cache=1 | |
8711 | fi | |
8712 | ||
8713 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8714 | ||
8715 | fi; | |
8716 | ||
8717 | eval "$ac_cv_use_textctrl" | |
8718 | if test "$no_cache" != 1; then | |
8719 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8720 | fi | |
8721 | ||
8722 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8723 | echo "$as_me:$LINENO: result: yes" >&5 | |
8724 | echo "${ECHO_T}yes" >&6 | |
8725 | else | |
8726 | echo "$as_me:$LINENO: result: no" >&5 | |
8727 | echo "${ECHO_T}no" >&6 | |
8728 | fi | |
8729 | ||
8730 | ||
8731 | enablestring= | |
8732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8733 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8734 | no_cache=0 | |
8735 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8736 | if test "${enable_togglebtn+set}" = set; then | |
8737 | enableval="$enable_togglebtn" | |
8738 | ||
8739 | if test "$enableval" = yes; then | |
8740 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8741 | else | |
8742 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8743 | fi | |
8744 | ||
8745 | else | |
8746 | ||
8747 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8748 | if test "x$LINE" != x ; then | |
8749 | eval "DEFAULT_$LINE" | |
8750 | else | |
8751 | no_cache=1 | |
8752 | fi | |
8753 | ||
8754 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8755 | ||
8756 | fi; | |
8757 | ||
8758 | eval "$ac_cv_use_togglebtn" | |
8759 | if test "$no_cache" != 1; then | |
8760 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8761 | fi | |
8762 | ||
8763 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8764 | echo "$as_me:$LINENO: result: yes" >&5 | |
8765 | echo "${ECHO_T}yes" >&6 | |
8766 | else | |
8767 | echo "$as_me:$LINENO: result: no" >&5 | |
8768 | echo "${ECHO_T}no" >&6 | |
8769 | fi | |
8770 | ||
8771 | ||
8772 | enablestring= | |
8773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8774 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8775 | no_cache=0 | |
8776 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8777 | if test "${enable_toolbar+set}" = set; then | |
8778 | enableval="$enable_toolbar" | |
8779 | ||
8780 | if test "$enableval" = yes; then | |
8781 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8782 | else | |
8783 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8784 | fi | |
8785 | ||
8786 | else | |
8787 | ||
8788 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8789 | if test "x$LINE" != x ; then | |
8790 | eval "DEFAULT_$LINE" | |
8791 | else | |
8792 | no_cache=1 | |
8793 | fi | |
8794 | ||
8795 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8796 | ||
8797 | fi; | |
8798 | ||
8799 | eval "$ac_cv_use_toolbar" | |
8800 | if test "$no_cache" != 1; then | |
8801 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8802 | fi | |
8803 | ||
8804 | if test "$wxUSE_TOOLBAR" = yes; then | |
8805 | echo "$as_me:$LINENO: result: yes" >&5 | |
8806 | echo "${ECHO_T}yes" >&6 | |
8807 | else | |
8808 | echo "$as_me:$LINENO: result: no" >&5 | |
8809 | echo "${ECHO_T}no" >&6 | |
8810 | fi | |
8811 | ||
8812 | ||
8813 | enablestring= | |
8814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8815 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8816 | no_cache=0 | |
8817 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8818 | if test "${enable_tbarnative+set}" = set; then | |
8819 | enableval="$enable_tbarnative" | |
8820 | ||
8821 | if test "$enableval" = yes; then | |
8822 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8823 | else | |
8824 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8825 | fi | |
8826 | ||
8827 | else | |
8828 | ||
8829 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8830 | if test "x$LINE" != x ; then | |
8831 | eval "DEFAULT_$LINE" | |
8832 | else | |
8833 | no_cache=1 | |
8834 | fi | |
8835 | ||
8836 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8837 | ||
8838 | fi; | |
8839 | ||
8840 | eval "$ac_cv_use_tbarnative" | |
8841 | if test "$no_cache" != 1; then | |
8842 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8843 | fi | |
8844 | ||
8845 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8846 | echo "$as_me:$LINENO: result: yes" >&5 | |
8847 | echo "${ECHO_T}yes" >&6 | |
8848 | else | |
8849 | echo "$as_me:$LINENO: result: no" >&5 | |
8850 | echo "${ECHO_T}no" >&6 | |
8851 | fi | |
8852 | ||
8853 | ||
8854 | enablestring= | |
8855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8856 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8857 | no_cache=0 | |
8858 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8859 | if test "${enable_tbarsmpl+set}" = set; then | |
8860 | enableval="$enable_tbarsmpl" | |
8861 | ||
8862 | if test "$enableval" = yes; then | |
8863 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8864 | else | |
8865 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8866 | fi | |
8867 | ||
8868 | else | |
8869 | ||
8870 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8871 | if test "x$LINE" != x ; then | |
8872 | eval "DEFAULT_$LINE" | |
8873 | else | |
8874 | no_cache=1 | |
8875 | fi | |
8876 | ||
8877 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8878 | ||
8879 | fi; | |
8880 | ||
8881 | eval "$ac_cv_use_tbarsmpl" | |
8882 | if test "$no_cache" != 1; then | |
8883 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8884 | fi | |
8885 | ||
8886 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8887 | echo "$as_me:$LINENO: result: yes" >&5 | |
8888 | echo "${ECHO_T}yes" >&6 | |
8889 | else | |
8890 | echo "$as_me:$LINENO: result: no" >&5 | |
8891 | echo "${ECHO_T}no" >&6 | |
8892 | fi | |
8893 | ||
8894 | ||
8895 | enablestring= | |
8896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8897 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8898 | no_cache=0 | |
8899 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8900 | if test "${enable_treectrl+set}" = set; then | |
8901 | enableval="$enable_treectrl" | |
8902 | ||
8903 | if test "$enableval" = yes; then | |
8904 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8905 | else | |
8906 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8907 | fi | |
8908 | ||
8909 | else | |
8910 | ||
8911 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8912 | if test "x$LINE" != x ; then | |
8913 | eval "DEFAULT_$LINE" | |
8914 | else | |
8915 | no_cache=1 | |
8916 | fi | |
8917 | ||
8918 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8919 | ||
8920 | fi; | |
8921 | ||
8922 | eval "$ac_cv_use_treectrl" | |
8923 | if test "$no_cache" != 1; then | |
8924 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8925 | fi | |
8926 | ||
8927 | if test "$wxUSE_TREECTRL" = yes; then | |
8928 | echo "$as_me:$LINENO: result: yes" >&5 | |
8929 | echo "${ECHO_T}yes" >&6 | |
8930 | else | |
8931 | echo "$as_me:$LINENO: result: no" >&5 | |
8932 | echo "${ECHO_T}no" >&6 | |
8933 | fi | |
8934 | ||
8935 | ||
8936 | enablestring= | |
8937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8938 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8939 | no_cache=0 | |
8940 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8941 | if test "${enable_tipwindow+set}" = set; then | |
8942 | enableval="$enable_tipwindow" | |
8943 | ||
8944 | if test "$enableval" = yes; then | |
8945 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8946 | else | |
8947 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8948 | fi | |
8949 | ||
8950 | else | |
8951 | ||
8952 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8953 | if test "x$LINE" != x ; then | |
8954 | eval "DEFAULT_$LINE" | |
8955 | else | |
8956 | no_cache=1 | |
8957 | fi | |
8958 | ||
8959 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8960 | ||
8961 | fi; | |
8962 | ||
8963 | eval "$ac_cv_use_tipwindow" | |
8964 | if test "$no_cache" != 1; then | |
8965 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8966 | fi | |
8967 | ||
8968 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8969 | echo "$as_me:$LINENO: result: yes" >&5 | |
8970 | echo "${ECHO_T}yes" >&6 | |
8971 | else | |
8972 | echo "$as_me:$LINENO: result: no" >&5 | |
8973 | echo "${ECHO_T}no" >&6 | |
8974 | fi | |
8975 | ||
8976 | ||
8977 | enablestring= | |
8978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8979 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8980 | no_cache=0 | |
8981 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8982 | if test "${enable_popupwin+set}" = set; then | |
8983 | enableval="$enable_popupwin" | |
8984 | ||
8985 | if test "$enableval" = yes; then | |
8986 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8987 | else | |
8988 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8989 | fi | |
8990 | ||
8991 | else | |
8992 | ||
8993 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8994 | if test "x$LINE" != x ; then | |
8995 | eval "DEFAULT_$LINE" | |
8996 | else | |
8997 | no_cache=1 | |
8998 | fi | |
8999 | ||
9000 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9001 | ||
9002 | fi; | |
9003 | ||
9004 | eval "$ac_cv_use_popupwin" | |
9005 | if test "$no_cache" != 1; then | |
9006 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9007 | fi | |
9008 | ||
9009 | if test "$wxUSE_POPUPWIN" = yes; then | |
9010 | echo "$as_me:$LINENO: result: yes" >&5 | |
9011 | echo "${ECHO_T}yes" >&6 | |
9012 | else | |
9013 | echo "$as_me:$LINENO: result: no" >&5 | |
9014 | echo "${ECHO_T}no" >&6 | |
9015 | fi | |
9016 | ||
9017 | ||
9018 | ||
9019 | ||
9020 | enablestring= | |
9021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9022 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9023 | no_cache=0 | |
9024 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9025 | if test "${enable_commondlg+set}" = set; then | |
9026 | enableval="$enable_commondlg" | |
9027 | ||
9028 | if test "$enableval" = yes; then | |
9029 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9030 | else | |
9031 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9032 | fi | |
9033 | ||
9034 | else | |
9035 | ||
9036 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9037 | if test "x$LINE" != x ; then | |
9038 | eval "DEFAULT_$LINE" | |
9039 | else | |
9040 | no_cache=1 | |
9041 | fi | |
9042 | ||
9043 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9044 | ||
9045 | fi; | |
9046 | ||
9047 | eval "$ac_cv_use_commondlg" | |
9048 | if test "$no_cache" != 1; then | |
9049 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9050 | fi | |
9051 | ||
9052 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9053 | echo "$as_me:$LINENO: result: yes" >&5 | |
9054 | echo "${ECHO_T}yes" >&6 | |
9055 | else | |
9056 | echo "$as_me:$LINENO: result: no" >&5 | |
9057 | echo "${ECHO_T}no" >&6 | |
9058 | fi | |
9059 | ||
9060 | ||
9061 | enablestring= | |
9062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9063 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9064 | no_cache=0 | |
9065 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9066 | if test "${enable_choicedlg+set}" = set; then | |
9067 | enableval="$enable_choicedlg" | |
9068 | ||
9069 | if test "$enableval" = yes; then | |
9070 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9071 | else | |
9072 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9073 | fi | |
9074 | ||
9075 | else | |
9076 | ||
9077 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9078 | if test "x$LINE" != x ; then | |
9079 | eval "DEFAULT_$LINE" | |
9080 | else | |
9081 | no_cache=1 | |
9082 | fi | |
9083 | ||
9084 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9085 | ||
9086 | fi; | |
9087 | ||
9088 | eval "$ac_cv_use_choicedlg" | |
9089 | if test "$no_cache" != 1; then | |
9090 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9091 | fi | |
9092 | ||
9093 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9094 | echo "$as_me:$LINENO: result: yes" >&5 | |
9095 | echo "${ECHO_T}yes" >&6 | |
9096 | else | |
9097 | echo "$as_me:$LINENO: result: no" >&5 | |
9098 | echo "${ECHO_T}no" >&6 | |
9099 | fi | |
9100 | ||
9101 | ||
9102 | enablestring= | |
9103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9104 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9105 | no_cache=0 | |
9106 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9107 | if test "${enable_coldlg+set}" = set; then | |
9108 | enableval="$enable_coldlg" | |
9109 | ||
9110 | if test "$enableval" = yes; then | |
9111 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9112 | else | |
9113 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9114 | fi | |
9115 | ||
9116 | else | |
9117 | ||
9118 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9119 | if test "x$LINE" != x ; then | |
9120 | eval "DEFAULT_$LINE" | |
9121 | else | |
9122 | no_cache=1 | |
9123 | fi | |
9124 | ||
9125 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9126 | ||
9127 | fi; | |
9128 | ||
9129 | eval "$ac_cv_use_coldlg" | |
9130 | if test "$no_cache" != 1; then | |
9131 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9132 | fi | |
9133 | ||
9134 | if test "$wxUSE_COLOURDLG" = yes; then | |
9135 | echo "$as_me:$LINENO: result: yes" >&5 | |
9136 | echo "${ECHO_T}yes" >&6 | |
9137 | else | |
9138 | echo "$as_me:$LINENO: result: no" >&5 | |
9139 | echo "${ECHO_T}no" >&6 | |
9140 | fi | |
9141 | ||
9142 | ||
9143 | enablestring= | |
9144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9145 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9146 | no_cache=0 | |
9147 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9148 | if test "${enable_filedlg+set}" = set; then | |
9149 | enableval="$enable_filedlg" | |
9150 | ||
9151 | if test "$enableval" = yes; then | |
9152 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9153 | else | |
9154 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9155 | fi | |
9156 | ||
9157 | else | |
9158 | ||
9159 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9160 | if test "x$LINE" != x ; then | |
9161 | eval "DEFAULT_$LINE" | |
9162 | else | |
9163 | no_cache=1 | |
9164 | fi | |
9165 | ||
9166 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9167 | ||
9168 | fi; | |
9169 | ||
9170 | eval "$ac_cv_use_filedlg" | |
9171 | if test "$no_cache" != 1; then | |
9172 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9173 | fi | |
9174 | ||
9175 | if test "$wxUSE_FILEDLG" = yes; then | |
9176 | echo "$as_me:$LINENO: result: yes" >&5 | |
9177 | echo "${ECHO_T}yes" >&6 | |
9178 | else | |
9179 | echo "$as_me:$LINENO: result: no" >&5 | |
9180 | echo "${ECHO_T}no" >&6 | |
9181 | fi | |
9182 | ||
9183 | ||
9184 | enablestring= | |
9185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9186 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9187 | no_cache=0 | |
9188 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9189 | if test "${enable_finddlg+set}" = set; then | |
9190 | enableval="$enable_finddlg" | |
9191 | ||
9192 | if test "$enableval" = yes; then | |
9193 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9194 | else | |
9195 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9196 | fi | |
9197 | ||
9198 | else | |
9199 | ||
9200 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9201 | if test "x$LINE" != x ; then | |
9202 | eval "DEFAULT_$LINE" | |
9203 | else | |
9204 | no_cache=1 | |
9205 | fi | |
9206 | ||
9207 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9208 | ||
9209 | fi; | |
9210 | ||
9211 | eval "$ac_cv_use_finddlg" | |
9212 | if test "$no_cache" != 1; then | |
9213 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9214 | fi | |
9215 | ||
9216 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9217 | echo "$as_me:$LINENO: result: yes" >&5 | |
9218 | echo "${ECHO_T}yes" >&6 | |
9219 | else | |
9220 | echo "$as_me:$LINENO: result: no" >&5 | |
9221 | echo "${ECHO_T}no" >&6 | |
9222 | fi | |
9223 | ||
9224 | ||
9225 | enablestring= | |
9226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9227 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9228 | no_cache=0 | |
9229 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9230 | if test "${enable_fontdlg+set}" = set; then | |
9231 | enableval="$enable_fontdlg" | |
9232 | ||
9233 | if test "$enableval" = yes; then | |
9234 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9235 | else | |
9236 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9237 | fi | |
9238 | ||
9239 | else | |
9240 | ||
9241 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9242 | if test "x$LINE" != x ; then | |
9243 | eval "DEFAULT_$LINE" | |
9244 | else | |
9245 | no_cache=1 | |
9246 | fi | |
9247 | ||
9248 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9249 | ||
9250 | fi; | |
9251 | ||
9252 | eval "$ac_cv_use_fontdlg" | |
9253 | if test "$no_cache" != 1; then | |
9254 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9255 | fi | |
9256 | ||
9257 | if test "$wxUSE_FONTDLG" = yes; then | |
9258 | echo "$as_me:$LINENO: result: yes" >&5 | |
9259 | echo "${ECHO_T}yes" >&6 | |
9260 | else | |
9261 | echo "$as_me:$LINENO: result: no" >&5 | |
9262 | echo "${ECHO_T}no" >&6 | |
9263 | fi | |
9264 | ||
9265 | ||
9266 | enablestring= | |
9267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9268 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9269 | no_cache=0 | |
9270 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9271 | if test "${enable_dirdlg+set}" = set; then | |
9272 | enableval="$enable_dirdlg" | |
9273 | ||
9274 | if test "$enableval" = yes; then | |
9275 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9276 | else | |
9277 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9278 | fi | |
9279 | ||
9280 | else | |
9281 | ||
9282 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9283 | if test "x$LINE" != x ; then | |
9284 | eval "DEFAULT_$LINE" | |
9285 | else | |
9286 | no_cache=1 | |
9287 | fi | |
9288 | ||
9289 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9290 | ||
9291 | fi; | |
9292 | ||
9293 | eval "$ac_cv_use_dirdlg" | |
9294 | if test "$no_cache" != 1; then | |
9295 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9296 | fi | |
9297 | ||
9298 | if test "$wxUSE_DIRDLG" = yes; then | |
9299 | echo "$as_me:$LINENO: result: yes" >&5 | |
9300 | echo "${ECHO_T}yes" >&6 | |
9301 | else | |
9302 | echo "$as_me:$LINENO: result: no" >&5 | |
9303 | echo "${ECHO_T}no" >&6 | |
9304 | fi | |
9305 | ||
9306 | ||
9307 | enablestring= | |
9308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9309 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9310 | no_cache=0 | |
9311 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9312 | if test "${enable_msgdlg+set}" = set; then | |
9313 | enableval="$enable_msgdlg" | |
9314 | ||
9315 | if test "$enableval" = yes; then | |
9316 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9317 | else | |
9318 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9319 | fi | |
9320 | ||
9321 | else | |
9322 | ||
9323 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9324 | if test "x$LINE" != x ; then | |
9325 | eval "DEFAULT_$LINE" | |
9326 | else | |
9327 | no_cache=1 | |
9328 | fi | |
9329 | ||
9330 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9331 | ||
9332 | fi; | |
9333 | ||
9334 | eval "$ac_cv_use_msgdlg" | |
9335 | if test "$no_cache" != 1; then | |
9336 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9337 | fi | |
9338 | ||
9339 | if test "$wxUSE_MSGDLG" = yes; then | |
9340 | echo "$as_me:$LINENO: result: yes" >&5 | |
9341 | echo "${ECHO_T}yes" >&6 | |
9342 | else | |
9343 | echo "$as_me:$LINENO: result: no" >&5 | |
9344 | echo "${ECHO_T}no" >&6 | |
9345 | fi | |
9346 | ||
9347 | ||
9348 | enablestring= | |
9349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9350 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9351 | no_cache=0 | |
9352 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9353 | if test "${enable_numberdlg+set}" = set; then | |
9354 | enableval="$enable_numberdlg" | |
9355 | ||
9356 | if test "$enableval" = yes; then | |
9357 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9358 | else | |
9359 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9360 | fi | |
9361 | ||
9362 | else | |
9363 | ||
9364 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9365 | if test "x$LINE" != x ; then | |
9366 | eval "DEFAULT_$LINE" | |
9367 | else | |
9368 | no_cache=1 | |
9369 | fi | |
9370 | ||
9371 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9372 | ||
9373 | fi; | |
9374 | ||
9375 | eval "$ac_cv_use_numberdlg" | |
9376 | if test "$no_cache" != 1; then | |
9377 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9378 | fi | |
9379 | ||
9380 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9381 | echo "$as_me:$LINENO: result: yes" >&5 | |
9382 | echo "${ECHO_T}yes" >&6 | |
9383 | else | |
9384 | echo "$as_me:$LINENO: result: no" >&5 | |
9385 | echo "${ECHO_T}no" >&6 | |
9386 | fi | |
9387 | ||
9388 | ||
9389 | enablestring= | |
9390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9391 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9392 | no_cache=0 | |
9393 | # Check whether --enable-splash or --disable-splash was given. | |
9394 | if test "${enable_splash+set}" = set; then | |
9395 | enableval="$enable_splash" | |
9396 | ||
9397 | if test "$enableval" = yes; then | |
9398 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9399 | else | |
9400 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9401 | fi | |
9402 | ||
9403 | else | |
9404 | ||
9405 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9406 | if test "x$LINE" != x ; then | |
9407 | eval "DEFAULT_$LINE" | |
9408 | else | |
9409 | no_cache=1 | |
9410 | fi | |
9411 | ||
9412 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9413 | ||
9414 | fi; | |
9415 | ||
9416 | eval "$ac_cv_use_splash" | |
9417 | if test "$no_cache" != 1; then | |
9418 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9419 | fi | |
9420 | ||
9421 | if test "$wxUSE_SPLASH" = yes; then | |
9422 | echo "$as_me:$LINENO: result: yes" >&5 | |
9423 | echo "${ECHO_T}yes" >&6 | |
9424 | else | |
9425 | echo "$as_me:$LINENO: result: no" >&5 | |
9426 | echo "${ECHO_T}no" >&6 | |
9427 | fi | |
9428 | ||
9429 | ||
9430 | enablestring= | |
9431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9432 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9433 | no_cache=0 | |
9434 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9435 | if test "${enable_textdlg+set}" = set; then | |
9436 | enableval="$enable_textdlg" | |
9437 | ||
9438 | if test "$enableval" = yes; then | |
9439 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9440 | else | |
9441 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9442 | fi | |
9443 | ||
9444 | else | |
9445 | ||
9446 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9447 | if test "x$LINE" != x ; then | |
9448 | eval "DEFAULT_$LINE" | |
9449 | else | |
9450 | no_cache=1 | |
9451 | fi | |
9452 | ||
9453 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9454 | ||
9455 | fi; | |
9456 | ||
9457 | eval "$ac_cv_use_textdlg" | |
9458 | if test "$no_cache" != 1; then | |
9459 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9460 | fi | |
9461 | ||
9462 | if test "$wxUSE_TEXTDLG" = yes; then | |
9463 | echo "$as_me:$LINENO: result: yes" >&5 | |
9464 | echo "${ECHO_T}yes" >&6 | |
9465 | else | |
9466 | echo "$as_me:$LINENO: result: no" >&5 | |
9467 | echo "${ECHO_T}no" >&6 | |
9468 | fi | |
9469 | ||
9470 | ||
9471 | enablestring= | |
9472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9473 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9474 | no_cache=0 | |
9475 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9476 | if test "${enable_tipdlg+set}" = set; then | |
9477 | enableval="$enable_tipdlg" | |
9478 | ||
9479 | if test "$enableval" = yes; then | |
9480 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9481 | else | |
9482 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9483 | fi | |
9484 | ||
9485 | else | |
9486 | ||
9487 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9488 | if test "x$LINE" != x ; then | |
9489 | eval "DEFAULT_$LINE" | |
9490 | else | |
9491 | no_cache=1 | |
9492 | fi | |
9493 | ||
9494 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9495 | ||
9496 | fi; | |
9497 | ||
9498 | eval "$ac_cv_use_tipdlg" | |
9499 | if test "$no_cache" != 1; then | |
9500 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9501 | fi | |
9502 | ||
9503 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9504 | echo "$as_me:$LINENO: result: yes" >&5 | |
9505 | echo "${ECHO_T}yes" >&6 | |
9506 | else | |
9507 | echo "$as_me:$LINENO: result: no" >&5 | |
9508 | echo "${ECHO_T}no" >&6 | |
9509 | fi | |
9510 | ||
9511 | ||
9512 | enablestring= | |
9513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9514 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9515 | no_cache=0 | |
9516 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9517 | if test "${enable_progressdlg+set}" = set; then | |
9518 | enableval="$enable_progressdlg" | |
9519 | ||
9520 | if test "$enableval" = yes; then | |
9521 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9522 | else | |
9523 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9524 | fi | |
9525 | ||
9526 | else | |
9527 | ||
9528 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9529 | if test "x$LINE" != x ; then | |
9530 | eval "DEFAULT_$LINE" | |
9531 | else | |
9532 | no_cache=1 | |
9533 | fi | |
9534 | ||
9535 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9536 | ||
9537 | fi; | |
9538 | ||
9539 | eval "$ac_cv_use_progressdlg" | |
9540 | if test "$no_cache" != 1; then | |
9541 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9542 | fi | |
9543 | ||
9544 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9545 | echo "$as_me:$LINENO: result: yes" >&5 | |
9546 | echo "${ECHO_T}yes" >&6 | |
9547 | else | |
9548 | echo "$as_me:$LINENO: result: no" >&5 | |
9549 | echo "${ECHO_T}no" >&6 | |
9550 | fi | |
9551 | ||
9552 | ||
9553 | enablestring= | |
9554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9555 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9556 | no_cache=0 | |
9557 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9558 | if test "${enable_wizarddlg+set}" = set; then | |
9559 | enableval="$enable_wizarddlg" | |
9560 | ||
9561 | if test "$enableval" = yes; then | |
9562 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9563 | else | |
9564 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9565 | fi | |
9566 | ||
9567 | else | |
9568 | ||
9569 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9570 | if test "x$LINE" != x ; then | |
9571 | eval "DEFAULT_$LINE" | |
9572 | else | |
9573 | no_cache=1 | |
9574 | fi | |
9575 | ||
9576 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9577 | ||
9578 | fi; | |
9579 | ||
9580 | eval "$ac_cv_use_wizarddlg" | |
9581 | if test "$no_cache" != 1; then | |
9582 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9583 | fi | |
9584 | ||
9585 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9586 | echo "$as_me:$LINENO: result: yes" >&5 | |
9587 | echo "${ECHO_T}yes" >&6 | |
9588 | else | |
9589 | echo "$as_me:$LINENO: result: no" >&5 | |
9590 | echo "${ECHO_T}no" >&6 | |
9591 | fi | |
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | enablestring= | |
9597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9598 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9599 | no_cache=0 | |
9600 | # Check whether --enable-menus or --disable-menus was given. | |
9601 | if test "${enable_menus+set}" = set; then | |
9602 | enableval="$enable_menus" | |
9603 | ||
9604 | if test "$enableval" = yes; then | |
9605 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9606 | else | |
9607 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9608 | fi | |
9609 | ||
9610 | else | |
9611 | ||
9612 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9613 | if test "x$LINE" != x ; then | |
9614 | eval "DEFAULT_$LINE" | |
9615 | else | |
9616 | no_cache=1 | |
9617 | fi | |
9618 | ||
9619 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9620 | ||
9621 | fi; | |
9622 | ||
9623 | eval "$ac_cv_use_menus" | |
9624 | if test "$no_cache" != 1; then | |
9625 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9626 | fi | |
9627 | ||
9628 | if test "$wxUSE_MENUS" = yes; then | |
9629 | echo "$as_me:$LINENO: result: yes" >&5 | |
9630 | echo "${ECHO_T}yes" >&6 | |
9631 | else | |
9632 | echo "$as_me:$LINENO: result: no" >&5 | |
9633 | echo "${ECHO_T}no" >&6 | |
9634 | fi | |
9635 | ||
9636 | ||
9637 | enablestring= | |
9638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9639 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9640 | no_cache=0 | |
9641 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9642 | if test "${enable_miniframe+set}" = set; then | |
9643 | enableval="$enable_miniframe" | |
9644 | ||
9645 | if test "$enableval" = yes; then | |
9646 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9647 | else | |
9648 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9649 | fi | |
9650 | ||
9651 | else | |
9652 | ||
9653 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9654 | if test "x$LINE" != x ; then | |
9655 | eval "DEFAULT_$LINE" | |
9656 | else | |
9657 | no_cache=1 | |
9658 | fi | |
9659 | ||
9660 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9661 | ||
9662 | fi; | |
9663 | ||
9664 | eval "$ac_cv_use_miniframe" | |
9665 | if test "$no_cache" != 1; then | |
9666 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9667 | fi | |
9668 | ||
9669 | if test "$wxUSE_MINIFRAME" = yes; then | |
9670 | echo "$as_me:$LINENO: result: yes" >&5 | |
9671 | echo "${ECHO_T}yes" >&6 | |
9672 | else | |
9673 | echo "$as_me:$LINENO: result: no" >&5 | |
9674 | echo "${ECHO_T}no" >&6 | |
9675 | fi | |
9676 | ||
9677 | ||
9678 | enablestring= | |
9679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9680 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9681 | no_cache=0 | |
9682 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9683 | if test "${enable_tooltips+set}" = set; then | |
9684 | enableval="$enable_tooltips" | |
9685 | ||
9686 | if test "$enableval" = yes; then | |
9687 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9688 | else | |
9689 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9690 | fi | |
9691 | ||
9692 | else | |
9693 | ||
9694 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9695 | if test "x$LINE" != x ; then | |
9696 | eval "DEFAULT_$LINE" | |
9697 | else | |
9698 | no_cache=1 | |
9699 | fi | |
9700 | ||
9701 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9702 | ||
9703 | fi; | |
9704 | ||
9705 | eval "$ac_cv_use_tooltips" | |
9706 | if test "$no_cache" != 1; then | |
9707 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9708 | fi | |
9709 | ||
9710 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9711 | echo "$as_me:$LINENO: result: yes" >&5 | |
9712 | echo "${ECHO_T}yes" >&6 | |
9713 | else | |
9714 | echo "$as_me:$LINENO: result: no" >&5 | |
9715 | echo "${ECHO_T}no" >&6 | |
9716 | fi | |
9717 | ||
9718 | ||
9719 | enablestring= | |
9720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9721 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9722 | no_cache=0 | |
9723 | # Check whether --enable-splines or --disable-splines was given. | |
9724 | if test "${enable_splines+set}" = set; then | |
9725 | enableval="$enable_splines" | |
9726 | ||
9727 | if test "$enableval" = yes; then | |
9728 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9729 | else | |
9730 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9731 | fi | |
9732 | ||
9733 | else | |
9734 | ||
9735 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9736 | if test "x$LINE" != x ; then | |
9737 | eval "DEFAULT_$LINE" | |
9738 | else | |
9739 | no_cache=1 | |
9740 | fi | |
9741 | ||
9742 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9743 | ||
9744 | fi; | |
9745 | ||
9746 | eval "$ac_cv_use_splines" | |
9747 | if test "$no_cache" != 1; then | |
9748 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9749 | fi | |
9750 | ||
9751 | if test "$wxUSE_SPLINES" = yes; then | |
9752 | echo "$as_me:$LINENO: result: yes" >&5 | |
9753 | echo "${ECHO_T}yes" >&6 | |
9754 | else | |
9755 | echo "$as_me:$LINENO: result: no" >&5 | |
9756 | echo "${ECHO_T}no" >&6 | |
9757 | fi | |
9758 | ||
9759 | ||
fbe2ca43 SN |
9760 | enablestring= |
9761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9762 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9763 | no_cache=0 | |
9764 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9765 | if test "${enable_mousewheel+set}" = set; then | |
9766 | enableval="$enable_mousewheel" | |
9767 | ||
9768 | if test "$enableval" = yes; then | |
9769 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
9770 | else | |
9771 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
9772 | fi | |
9773 | ||
9774 | else | |
9775 | ||
9776 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
9777 | if test "x$LINE" != x ; then | |
9778 | eval "DEFAULT_$LINE" | |
9779 | else | |
9780 | no_cache=1 | |
9781 | fi | |
9782 | ||
9783 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
9784 | ||
9785 | fi; | |
9786 | ||
9787 | eval "$ac_cv_use_mousewheel" | |
9788 | if test "$no_cache" != 1; then | |
9789 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
9790 | fi | |
9791 | ||
9792 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
9793 | echo "$as_me:$LINENO: result: yes" >&5 | |
9794 | echo "${ECHO_T}yes" >&6 | |
9795 | else | |
9796 | echo "$as_me:$LINENO: result: no" >&5 | |
9797 | echo "${ECHO_T}no" >&6 | |
9798 | fi | |
9799 | ||
9800 | ||
a848cd7e SC |
9801 | enablestring= |
9802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9803 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9804 | no_cache=0 | |
9805 | # Check whether --enable-validators or --disable-validators was given. | |
9806 | if test "${enable_validators+set}" = set; then | |
9807 | enableval="$enable_validators" | |
9808 | ||
9809 | if test "$enableval" = yes; then | |
9810 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9811 | else | |
9812 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9813 | fi | |
9814 | ||
9815 | else | |
9816 | ||
9817 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9818 | if test "x$LINE" != x ; then | |
9819 | eval "DEFAULT_$LINE" | |
9820 | else | |
9821 | no_cache=1 | |
9822 | fi | |
9823 | ||
9824 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9825 | ||
9826 | fi; | |
9827 | ||
9828 | eval "$ac_cv_use_validators" | |
9829 | if test "$no_cache" != 1; then | |
9830 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9831 | fi | |
9832 | ||
9833 | if test "$wxUSE_VALIDATORS" = yes; then | |
9834 | echo "$as_me:$LINENO: result: yes" >&5 | |
9835 | echo "${ECHO_T}yes" >&6 | |
9836 | else | |
9837 | echo "$as_me:$LINENO: result: no" >&5 | |
9838 | echo "${ECHO_T}no" >&6 | |
9839 | fi | |
9840 | ||
9841 | ||
9842 | enablestring= | |
9843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9844 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9845 | no_cache=0 | |
9846 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9847 | if test "${enable_busyinfo+set}" = set; then | |
9848 | enableval="$enable_busyinfo" | |
9849 | ||
9850 | if test "$enableval" = yes; then | |
9851 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9852 | else | |
9853 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9854 | fi | |
9855 | ||
9856 | else | |
9857 | ||
9858 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9859 | if test "x$LINE" != x ; then | |
9860 | eval "DEFAULT_$LINE" | |
9861 | else | |
9862 | no_cache=1 | |
9863 | fi | |
9864 | ||
9865 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9866 | ||
9867 | fi; | |
9868 | ||
9869 | eval "$ac_cv_use_busyinfo" | |
9870 | if test "$no_cache" != 1; then | |
9871 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9872 | fi | |
9873 | ||
9874 | if test "$wxUSE_BUSYINFO" = yes; then | |
9875 | echo "$as_me:$LINENO: result: yes" >&5 | |
9876 | echo "${ECHO_T}yes" >&6 | |
9877 | else | |
9878 | echo "$as_me:$LINENO: result: no" >&5 | |
9879 | echo "${ECHO_T}no" >&6 | |
9880 | fi | |
9881 | ||
9882 | ||
9883 | enablestring= | |
9884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9885 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9886 | no_cache=0 | |
9887 | # Check whether --enable-joystick or --disable-joystick was given. | |
9888 | if test "${enable_joystick+set}" = set; then | |
9889 | enableval="$enable_joystick" | |
9890 | ||
9891 | if test "$enableval" = yes; then | |
9892 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9893 | else | |
9894 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9895 | fi | |
9896 | ||
9897 | else | |
9898 | ||
9899 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9900 | if test "x$LINE" != x ; then | |
9901 | eval "DEFAULT_$LINE" | |
9902 | else | |
9903 | no_cache=1 | |
9904 | fi | |
9905 | ||
9906 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9907 | ||
9908 | fi; | |
9909 | ||
9910 | eval "$ac_cv_use_joystick" | |
9911 | if test "$no_cache" != 1; then | |
9912 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9913 | fi | |
9914 | ||
9915 | if test "$wxUSE_JOYSTICK" = yes; then | |
9916 | echo "$as_me:$LINENO: result: yes" >&5 | |
9917 | echo "${ECHO_T}yes" >&6 | |
9918 | else | |
9919 | echo "$as_me:$LINENO: result: no" >&5 | |
9920 | echo "${ECHO_T}no" >&6 | |
9921 | fi | |
9922 | ||
9923 | ||
9924 | enablestring= | |
9925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9926 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9927 | no_cache=0 | |
9928 | # Check whether --enable-metafile or --disable-metafile was given. | |
9929 | if test "${enable_metafile+set}" = set; then | |
9930 | enableval="$enable_metafile" | |
9931 | ||
9932 | if test "$enableval" = yes; then | |
9933 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9934 | else | |
9935 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9936 | fi | |
9937 | ||
9938 | else | |
9939 | ||
9940 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9941 | if test "x$LINE" != x ; then | |
9942 | eval "DEFAULT_$LINE" | |
9943 | else | |
9944 | no_cache=1 | |
9945 | fi | |
9946 | ||
9947 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9948 | ||
9949 | fi; | |
9950 | ||
9951 | eval "$ac_cv_use_metafile" | |
9952 | if test "$no_cache" != 1; then | |
9953 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9954 | fi | |
9955 | ||
9956 | if test "$wxUSE_METAFILE" = yes; then | |
9957 | echo "$as_me:$LINENO: result: yes" >&5 | |
9958 | echo "${ECHO_T}yes" >&6 | |
9959 | else | |
9960 | echo "$as_me:$LINENO: result: no" >&5 | |
9961 | echo "${ECHO_T}no" >&6 | |
9962 | fi | |
9963 | ||
9964 | ||
9965 | enablestring= | |
9966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9967 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9968 | no_cache=0 | |
9969 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9970 | if test "${enable_dragimage+set}" = set; then | |
9971 | enableval="$enable_dragimage" | |
9972 | ||
9973 | if test "$enableval" = yes; then | |
9974 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9975 | else | |
9976 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9977 | fi | |
9978 | ||
9979 | else | |
9980 | ||
9981 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9982 | if test "x$LINE" != x ; then | |
9983 | eval "DEFAULT_$LINE" | |
9984 | else | |
9985 | no_cache=1 | |
9986 | fi | |
9987 | ||
9988 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9989 | ||
9990 | fi; | |
9991 | ||
9992 | eval "$ac_cv_use_dragimage" | |
9993 | if test "$no_cache" != 1; then | |
9994 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9995 | fi | |
9996 | ||
9997 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9998 | echo "$as_me:$LINENO: result: yes" >&5 | |
9999 | echo "${ECHO_T}yes" >&6 | |
10000 | else | |
10001 | echo "$as_me:$LINENO: result: no" >&5 | |
10002 | echo "${ECHO_T}no" >&6 | |
10003 | fi | |
10004 | ||
10005 | ||
10006 | enablestring= | |
10007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10008 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10009 | no_cache=0 | |
10010 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10011 | if test "${enable_accessibility+set}" = set; then | |
10012 | enableval="$enable_accessibility" | |
10013 | ||
10014 | if test "$enableval" = yes; then | |
10015 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10016 | else | |
10017 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10018 | fi | |
10019 | ||
10020 | else | |
10021 | ||
10022 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10023 | if test "x$LINE" != x ; then | |
10024 | eval "DEFAULT_$LINE" | |
10025 | else | |
10026 | no_cache=1 | |
10027 | fi | |
10028 | ||
10029 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10030 | ||
10031 | fi; | |
10032 | ||
10033 | eval "$ac_cv_use_accessibility" | |
10034 | if test "$no_cache" != 1; then | |
10035 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10036 | fi | |
10037 | ||
10038 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10039 | echo "$as_me:$LINENO: result: yes" >&5 | |
10040 | echo "${ECHO_T}yes" >&6 | |
10041 | else | |
10042 | echo "$as_me:$LINENO: result: no" >&5 | |
10043 | echo "${ECHO_T}no" >&6 | |
10044 | fi | |
10045 | ||
10046 | ||
10047 | ||
10048 | ||
10049 | enablestring= | |
10050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10051 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10052 | no_cache=0 | |
10053 | # Check whether --enable-palette or --disable-palette was given. | |
10054 | if test "${enable_palette+set}" = set; then | |
10055 | enableval="$enable_palette" | |
10056 | ||
10057 | if test "$enableval" = yes; then | |
10058 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10059 | else | |
10060 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10061 | fi | |
10062 | ||
10063 | else | |
10064 | ||
10065 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10066 | if test "x$LINE" != x ; then | |
10067 | eval "DEFAULT_$LINE" | |
10068 | else | |
10069 | no_cache=1 | |
10070 | fi | |
10071 | ||
10072 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10073 | ||
10074 | fi; | |
10075 | ||
10076 | eval "$ac_cv_use_palette" | |
10077 | if test "$no_cache" != 1; then | |
10078 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10079 | fi | |
10080 | ||
10081 | if test "$wxUSE_PALETTE" = yes; then | |
10082 | echo "$as_me:$LINENO: result: yes" >&5 | |
10083 | echo "${ECHO_T}yes" >&6 | |
10084 | else | |
10085 | echo "$as_me:$LINENO: result: no" >&5 | |
10086 | echo "${ECHO_T}no" >&6 | |
10087 | fi | |
10088 | ||
10089 | ||
10090 | enablestring= | |
10091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10092 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10093 | no_cache=0 | |
10094 | # Check whether --enable-image or --disable-image was given. | |
10095 | if test "${enable_image+set}" = set; then | |
10096 | enableval="$enable_image" | |
10097 | ||
10098 | if test "$enableval" = yes; then | |
10099 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10100 | else | |
10101 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10102 | fi | |
10103 | ||
10104 | else | |
10105 | ||
10106 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10107 | if test "x$LINE" != x ; then | |
10108 | eval "DEFAULT_$LINE" | |
10109 | else | |
10110 | no_cache=1 | |
10111 | fi | |
10112 | ||
10113 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10114 | ||
10115 | fi; | |
10116 | ||
10117 | eval "$ac_cv_use_image" | |
10118 | if test "$no_cache" != 1; then | |
10119 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10120 | fi | |
10121 | ||
10122 | if test "$wxUSE_IMAGE" = yes; then | |
10123 | echo "$as_me:$LINENO: result: yes" >&5 | |
10124 | echo "${ECHO_T}yes" >&6 | |
10125 | else | |
10126 | echo "$as_me:$LINENO: result: no" >&5 | |
10127 | echo "${ECHO_T}no" >&6 | |
10128 | fi | |
10129 | ||
10130 | ||
10131 | enablestring= | |
10132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10133 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10134 | no_cache=0 | |
10135 | # Check whether --enable-gif or --disable-gif was given. | |
10136 | if test "${enable_gif+set}" = set; then | |
10137 | enableval="$enable_gif" | |
10138 | ||
10139 | if test "$enableval" = yes; then | |
10140 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10141 | else | |
10142 | ac_cv_use_gif='wxUSE_GIF=no' | |
10143 | fi | |
10144 | ||
10145 | else | |
10146 | ||
10147 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10148 | if test "x$LINE" != x ; then | |
10149 | eval "DEFAULT_$LINE" | |
10150 | else | |
10151 | no_cache=1 | |
10152 | fi | |
10153 | ||
10154 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10155 | ||
10156 | fi; | |
10157 | ||
10158 | eval "$ac_cv_use_gif" | |
10159 | if test "$no_cache" != 1; then | |
10160 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10161 | fi | |
10162 | ||
10163 | if test "$wxUSE_GIF" = yes; then | |
10164 | echo "$as_me:$LINENO: result: yes" >&5 | |
10165 | echo "${ECHO_T}yes" >&6 | |
10166 | else | |
10167 | echo "$as_me:$LINENO: result: no" >&5 | |
10168 | echo "${ECHO_T}no" >&6 | |
10169 | fi | |
10170 | ||
10171 | ||
10172 | enablestring= | |
10173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10174 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10175 | no_cache=0 | |
10176 | # Check whether --enable-pcx or --disable-pcx was given. | |
10177 | if test "${enable_pcx+set}" = set; then | |
10178 | enableval="$enable_pcx" | |
10179 | ||
10180 | if test "$enableval" = yes; then | |
10181 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10182 | else | |
10183 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10184 | fi | |
10185 | ||
10186 | else | |
10187 | ||
10188 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10189 | if test "x$LINE" != x ; then | |
10190 | eval "DEFAULT_$LINE" | |
10191 | else | |
10192 | no_cache=1 | |
10193 | fi | |
10194 | ||
10195 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10196 | ||
10197 | fi; | |
10198 | ||
10199 | eval "$ac_cv_use_pcx" | |
10200 | if test "$no_cache" != 1; then | |
10201 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10202 | fi | |
10203 | ||
10204 | if test "$wxUSE_PCX" = yes; then | |
10205 | echo "$as_me:$LINENO: result: yes" >&5 | |
10206 | echo "${ECHO_T}yes" >&6 | |
10207 | else | |
10208 | echo "$as_me:$LINENO: result: no" >&5 | |
10209 | echo "${ECHO_T}no" >&6 | |
10210 | fi | |
10211 | ||
10212 | ||
10213 | enablestring= | |
10214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10215 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10216 | no_cache=0 | |
10217 | # Check whether --enable-iff or --disable-iff was given. | |
10218 | if test "${enable_iff+set}" = set; then | |
10219 | enableval="$enable_iff" | |
10220 | ||
10221 | if test "$enableval" = yes; then | |
10222 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10223 | else | |
10224 | ac_cv_use_iff='wxUSE_IFF=no' | |
10225 | fi | |
10226 | ||
10227 | else | |
10228 | ||
10229 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10230 | if test "x$LINE" != x ; then | |
10231 | eval "DEFAULT_$LINE" | |
10232 | else | |
10233 | no_cache=1 | |
10234 | fi | |
10235 | ||
10236 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10237 | ||
10238 | fi; | |
10239 | ||
10240 | eval "$ac_cv_use_iff" | |
10241 | if test "$no_cache" != 1; then | |
10242 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10243 | fi | |
10244 | ||
10245 | if test "$wxUSE_IFF" = yes; then | |
10246 | echo "$as_me:$LINENO: result: yes" >&5 | |
10247 | echo "${ECHO_T}yes" >&6 | |
10248 | else | |
10249 | echo "$as_me:$LINENO: result: no" >&5 | |
10250 | echo "${ECHO_T}no" >&6 | |
10251 | fi | |
10252 | ||
10253 | ||
10254 | enablestring= | |
10255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10256 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10257 | no_cache=0 | |
10258 | # Check whether --enable-pnm or --disable-pnm was given. | |
10259 | if test "${enable_pnm+set}" = set; then | |
10260 | enableval="$enable_pnm" | |
10261 | ||
10262 | if test "$enableval" = yes; then | |
10263 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10264 | else | |
10265 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10266 | fi | |
10267 | ||
10268 | else | |
10269 | ||
10270 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10271 | if test "x$LINE" != x ; then | |
10272 | eval "DEFAULT_$LINE" | |
10273 | else | |
10274 | no_cache=1 | |
10275 | fi | |
10276 | ||
10277 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10278 | ||
10279 | fi; | |
10280 | ||
10281 | eval "$ac_cv_use_pnm" | |
10282 | if test "$no_cache" != 1; then | |
10283 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10284 | fi | |
10285 | ||
10286 | if test "$wxUSE_PNM" = yes; then | |
10287 | echo "$as_me:$LINENO: result: yes" >&5 | |
10288 | echo "${ECHO_T}yes" >&6 | |
10289 | else | |
10290 | echo "$as_me:$LINENO: result: no" >&5 | |
10291 | echo "${ECHO_T}no" >&6 | |
10292 | fi | |
10293 | ||
10294 | ||
10295 | enablestring= | |
10296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10297 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10298 | no_cache=0 | |
10299 | # Check whether --enable-xpm or --disable-xpm was given. | |
10300 | if test "${enable_xpm+set}" = set; then | |
10301 | enableval="$enable_xpm" | |
10302 | ||
10303 | if test "$enableval" = yes; then | |
10304 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10305 | else | |
10306 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10307 | fi | |
10308 | ||
10309 | else | |
10310 | ||
10311 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10312 | if test "x$LINE" != x ; then | |
10313 | eval "DEFAULT_$LINE" | |
10314 | else | |
10315 | no_cache=1 | |
10316 | fi | |
10317 | ||
10318 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10319 | ||
10320 | fi; | |
10321 | ||
10322 | eval "$ac_cv_use_xpm" | |
10323 | if test "$no_cache" != 1; then | |
10324 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10325 | fi | |
10326 | ||
10327 | if test "$wxUSE_XPM" = yes; then | |
10328 | echo "$as_me:$LINENO: result: yes" >&5 | |
10329 | echo "${ECHO_T}yes" >&6 | |
10330 | else | |
10331 | echo "$as_me:$LINENO: result: no" >&5 | |
10332 | echo "${ECHO_T}no" >&6 | |
10333 | fi | |
10334 | ||
10335 | ||
10336 | enablestring= | |
10337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10338 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10339 | no_cache=0 | |
10340 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10341 | if test "${enable_ico_cur+set}" = set; then | |
10342 | enableval="$enable_ico_cur" | |
10343 | ||
10344 | if test "$enableval" = yes; then | |
10345 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10346 | else | |
10347 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10348 | fi | |
10349 | ||
10350 | else | |
10351 | ||
10352 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10353 | if test "x$LINE" != x ; then | |
10354 | eval "DEFAULT_$LINE" | |
10355 | else | |
10356 | no_cache=1 | |
10357 | fi | |
10358 | ||
10359 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10360 | ||
10361 | fi; | |
10362 | ||
10363 | eval "$ac_cv_use_ico_cur" | |
10364 | if test "$no_cache" != 1; then | |
10365 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10366 | fi | |
10367 | ||
10368 | if test "$wxUSE_ICO_CUR" = yes; then | |
10369 | echo "$as_me:$LINENO: result: yes" >&5 | |
10370 | echo "${ECHO_T}yes" >&6 | |
10371 | else | |
10372 | echo "$as_me:$LINENO: result: no" >&5 | |
10373 | echo "${ECHO_T}no" >&6 | |
10374 | fi | |
10375 | ||
10376 | ||
10377 | fi | |
10378 | ||
10379 | ||
10380 | ||
ceec2216 RL |
10381 | # Check whether --with-flavour or --without-flavour was given. |
10382 | if test "${with_flavour+set}" = set; then | |
10383 | withval="$with_flavour" | |
10384 | WX_FLAVOUR="$withval" | |
10385 | fi; | |
10386 | ||
10387 | ||
10388 | ||
a848cd7e SC |
10389 | enablestring= |
10390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10391 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10392 | no_cache=0 | |
10393 | # Check whether --enable-official_build or --disable-official_build was given. | |
10394 | if test "${enable_official_build+set}" = set; then | |
10395 | enableval="$enable_official_build" | |
10396 | ||
10397 | if test "$enableval" = yes; then | |
10398 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10399 | else | |
10400 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10401 | fi | |
10402 | ||
10403 | else | |
10404 | ||
10405 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10406 | if test "x$LINE" != x ; then | |
10407 | eval "DEFAULT_$LINE" | |
10408 | else | |
10409 | no_cache=1 | |
10410 | fi | |
10411 | ||
10412 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10413 | ||
10414 | fi; | |
10415 | ||
10416 | eval "$ac_cv_use_official_build" | |
10417 | if test "$no_cache" != 1; then | |
10418 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10419 | fi | |
10420 | ||
10421 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10422 | echo "$as_me:$LINENO: result: yes" >&5 | |
10423 | echo "${ECHO_T}yes" >&6 | |
10424 | else | |
10425 | echo "$as_me:$LINENO: result: no" >&5 | |
10426 | echo "${ECHO_T}no" >&6 | |
10427 | fi | |
10428 | ||
10429 | # Check whether --enable-vendor or --disable-vendor was given. | |
10430 | if test "${enable_vendor+set}" = set; then | |
10431 | enableval="$enable_vendor" | |
10432 | VENDOR="$enableval" | |
10433 | fi; | |
10434 | if test "x$VENDOR" = "x"; then | |
10435 | VENDOR="custom" | |
10436 | fi | |
10437 | ||
a848cd7e SC |
10438 | |
10439 | ||
10440 | ||
10441 | echo "saving argument cache $wx_arg_cache_file" | |
10442 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10443 | ||
10444 | ||
10445 | ||
10446 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10447 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10448 | ||
10449 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10450 | if test "$wxUSE_WINE" = "yes"; then | |
10451 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10452 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10453 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10454 | wxUSE_SHARED=no | |
10455 | fi | |
10456 | ||
f597b41c | 10457 | |
a848cd7e SC |
10458 | if test "$wxUSE_GUI" = "yes"; then |
10459 | ||
10460 | if test "$USE_BEOS" = 1; then | |
10461 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10462 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10463 | { (exit 1); exit 1; }; } | |
10464 | fi | |
10465 | ||
10466 | if test "$TOOLKIT_GIVEN" = 1; then | |
10467 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10468 | var=wxUSE_$toolkit | |
10469 | eval "value=\$${var}" | |
f34ca037 MW |
10470 | if test "x$value" = "xno"; then |
10471 | eval "$var=0" | |
10472 | elif test "x$value" != "x"; then | |
10473 | eval "$var=1" | |
10474 | fi | |
10475 | ||
10476 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10477 | eval "wx${toolkit}_VERSION=$value" | |
10478 | fi | |
a848cd7e SC |
10479 | done |
10480 | else | |
10481 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10482 | if test "$has_toolkit_in_cache" != 1; then | |
10483 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10484 | else | |
10485 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10486 | |
10487 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10488 | if test "x$version" != "x"; then | |
10489 | eval "wx${toolkit}_VERSION=$version" | |
10490 | fi | |
a848cd7e SC |
10491 | fi |
10492 | eval "wxUSE_$toolkit=\$${var}" | |
10493 | done | |
10494 | fi | |
10495 | ||
10496 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10497 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10498 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10499 | ||
10500 | case "${host}" in | |
10501 | *-pc-os2_emx | *-pc-os2-emx ) | |
10502 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10503 | esac | |
10504 | ||
10505 | case "$NUM_TOOLKITS" in | |
10506 | 1) | |
10507 | ;; | |
10508 | 0) | |
10509 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10510 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10511 | { (exit 1); exit 1; }; } | |
10512 | ;; | |
10513 | *) | |
10514 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10515 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10516 | { (exit 1); exit 1; }; } | |
10517 | esac | |
10518 | ||
f34ca037 MW |
10519 | # to be removed when --disable-gtk2 isn't needed |
10520 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10521 | wxGTK_VERSION=2 | |
10522 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10523 | wxGTK_VERSION=1 | |
10524 | fi | |
10525 | ||
a848cd7e SC |
10526 | for toolkit in `echo $ALL_TOOLKITS`; do |
10527 | var=wxUSE_$toolkit | |
10528 | eval "value=\$${var}" | |
10529 | if test "x$value" != x; then | |
10530 | cache_var=CACHE_$toolkit | |
10531 | eval "cache=\$${cache_var}" | |
10532 | if test "$cache" = 1; then | |
10533 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10534 | eval "version=\$wx${toolkit}_VERSION" |
10535 | if test "x$version" != "x"; then | |
10536 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10537 | fi | |
a848cd7e SC |
10538 | fi |
10539 | if test "$value" = 1; then | |
10540 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10541 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10542 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10543 | fi | |
10544 | fi | |
10545 | done | |
10546 | else | |
10547 | if test "x$host_alias" != "x"; then | |
10548 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10549 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10550 | else | |
10551 | echo "$as_me:$LINENO: result: base only" >&5 | |
10552 | echo "${ECHO_T}base only" >&6 | |
10553 | fi | |
10554 | fi | |
10555 | ||
10556 | wants_win32=0 | |
10557 | doesnt_want_win32=0 | |
10558 | case "${host}" in | |
10559 | *-*-cygwin*) | |
10560 | if test "$wxUSE_MSW" = 1 ; then | |
10561 | wants_win32=1 | |
10562 | else | |
10563 | doesnt_want_win32=1 | |
10564 | fi | |
10565 | ;; | |
10566 | *-*-mingw*) | |
10567 | wants_win32=1 | |
10568 | ;; | |
10569 | esac | |
10570 | ||
10571 | if test "$wxUSE_WINE" = "yes"; then | |
10572 | wants_win32=1 | |
10573 | CC=winegcc | |
10574 | CXX=wineg++ | |
10575 | RESCOMP=wrc | |
10576 | LDFLAGS_GUI="-mwindows" | |
10577 | fi | |
10578 | ||
10579 | if test "$wants_win32" = 1 ; then | |
10580 | USE_UNIX=0 | |
10581 | USE_WIN32=1 | |
10582 | cat >>confdefs.h <<\_ACEOF | |
10583 | #define __WIN32__ 1 | |
10584 | _ACEOF | |
10585 | ||
10586 | cat >>confdefs.h <<\_ACEOF | |
10587 | #define __WIN95__ 1 | |
10588 | _ACEOF | |
10589 | ||
10590 | cat >>confdefs.h <<\_ACEOF | |
10591 | #define __WINDOWS__ 1 | |
10592 | _ACEOF | |
10593 | ||
10594 | cat >>confdefs.h <<\_ACEOF | |
10595 | #define __GNUWIN32__ 1 | |
10596 | _ACEOF | |
10597 | ||
10598 | cat >>confdefs.h <<\_ACEOF | |
10599 | #define STRICT 1 | |
10600 | _ACEOF | |
10601 | ||
10602 | cat >>confdefs.h <<\_ACEOF | |
10603 | #define WINVER 0x0400 | |
10604 | _ACEOF | |
10605 | ||
10606 | fi | |
10607 | if test "$doesnt_want_win32" = 1 ; then | |
10608 | USE_UNIX=1 | |
10609 | USE_WIN32=0 | |
10610 | fi | |
10611 | ||
10612 | if test "$USE_UNIX" = 1 ; then | |
10613 | wxUSE_UNIX=yes | |
10614 | cat >>confdefs.h <<\_ACEOF | |
10615 | #define __UNIX__ 1 | |
10616 | _ACEOF | |
10617 | ||
10618 | fi | |
10619 | ||
10620 | ||
10621 | cat >confcache <<\_ACEOF | |
10622 | # This file is a shell script that caches the results of configure | |
10623 | # tests run on this system so they can be shared between configure | |
10624 | # scripts and configure runs, see configure's option --config-cache. | |
10625 | # It is not useful on other systems. If it contains results you don't | |
10626 | # want to keep, you may remove or edit it. | |
10627 | # | |
10628 | # config.status only pays attention to the cache file if you give it | |
10629 | # the --recheck option to rerun configure. | |
10630 | # | |
10631 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10632 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10633 | # following values. | |
10634 | ||
10635 | _ACEOF | |
10636 | ||
10637 | # The following way of writing the cache mishandles newlines in values, | |
10638 | # but we know of no workaround that is simple, portable, and efficient. | |
10639 | # So, don't put newlines in cache variables' values. | |
10640 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10641 | # and sets the high bit in the cache file unless we assign to the vars. | |
10642 | { | |
10643 | (set) 2>&1 | | |
10644 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10645 | *ac_space=\ *) | |
10646 | # `set' does not quote correctly, so add quotes (double-quote | |
10647 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10648 | sed -n \ | |
ac1cb8d3 VS |
10649 | "s/'/'\\\\''/g; |
10650 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10651 | ;; |
10652 | *) | |
10653 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10654 | sed -n \ | |
ac1cb8d3 | 10655 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10656 | ;; |
10657 | esac; | |
10658 | } | | |
10659 | sed ' | |
10660 | t clear | |
10661 | : clear | |
10662 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10663 | t end | |
10664 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10665 | : end' >>confcache | |
10666 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10667 | if test -w $cache_file; then | |
10668 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10669 | cat confcache >$cache_file | |
10670 | else | |
10671 | echo "not updating unwritable cache $cache_file" | |
10672 | fi | |
10673 | fi | |
10674 | rm -f confcache | |
10675 | ||
10676 | if test "$build" != "$host" ; then | |
1e9e8aba | 10677 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10678 | CC=$host_alias-gcc |
10679 | CXX=$host_alias-c++ | |
10680 | AR=$host_alias-ar | |
10681 | RANLIB=$host_alias-ranlib | |
10682 | DLLTOOL=$host_alias-dlltool | |
10683 | RESCOMP=$host_alias-windres | |
a848cd7e | 10684 | STRIP=$host_alias-strip |
1e9e8aba DE |
10685 | elif test "x$CC" '!=' "x"; then |
10686 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10687 | else |
10688 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10689 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10690 | { (exit 1); exit 1; }; } | |
10691 | fi | |
10692 | fi | |
10693 | ||
10694 | CFLAGS=${CFLAGS:=} | |
6dcfc289 DE |
10695 | |
10696 | ||
10697 | ac_ext=c | |
a848cd7e SC |
10698 | ac_cpp='$CPP $CPPFLAGS' |
10699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10702 | if test -n "$ac_tool_prefix"; then | |
10703 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10704 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10705 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10707 | if test "${ac_cv_prog_CC+set}" = set; then | |
10708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10709 | else | |
10710 | if test -n "$CC"; then | |
10711 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10712 | else | |
10713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10714 | for as_dir in $PATH | |
10715 | do | |
10716 | IFS=$as_save_IFS | |
10717 | test -z "$as_dir" && as_dir=. | |
10718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10719 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10720 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10722 | break 2 | |
10723 | fi | |
10724 | done | |
10725 | done | |
10726 | ||
10727 | fi | |
10728 | fi | |
10729 | CC=$ac_cv_prog_CC | |
10730 | if test -n "$CC"; then | |
10731 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10732 | echo "${ECHO_T}$CC" >&6 | |
10733 | else | |
10734 | echo "$as_me:$LINENO: result: no" >&5 | |
10735 | echo "${ECHO_T}no" >&6 | |
10736 | fi | |
10737 | ||
10738 | fi | |
10739 | if test -z "$ac_cv_prog_CC"; then | |
10740 | ac_ct_CC=$CC | |
10741 | # Extract the first word of "gcc", so it can be a program name with args. | |
10742 | set dummy gcc; ac_word=$2 | |
10743 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10745 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10747 | else | |
10748 | if test -n "$ac_ct_CC"; then | |
10749 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10750 | else | |
10751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10752 | for as_dir in $PATH | |
10753 | do | |
10754 | IFS=$as_save_IFS | |
10755 | test -z "$as_dir" && as_dir=. | |
10756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10757 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10758 | ac_cv_prog_ac_ct_CC="gcc" | |
10759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10760 | break 2 | |
10761 | fi | |
10762 | done | |
10763 | done | |
10764 | ||
10765 | fi | |
10766 | fi | |
10767 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10768 | if test -n "$ac_ct_CC"; then | |
10769 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10770 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10771 | else | |
10772 | echo "$as_me:$LINENO: result: no" >&5 | |
10773 | echo "${ECHO_T}no" >&6 | |
10774 | fi | |
10775 | ||
10776 | CC=$ac_ct_CC | |
10777 | else | |
10778 | CC="$ac_cv_prog_CC" | |
10779 | fi | |
10780 | ||
10781 | if test -z "$CC"; then | |
10782 | if test -n "$ac_tool_prefix"; then | |
10783 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10784 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10785 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10786 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10787 | if test "${ac_cv_prog_CC+set}" = set; then | |
10788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10789 | else | |
10790 | if test -n "$CC"; then | |
10791 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10792 | else | |
10793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10794 | for as_dir in $PATH | |
10795 | do | |
10796 | IFS=$as_save_IFS | |
10797 | test -z "$as_dir" && as_dir=. | |
10798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10799 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10800 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10801 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10802 | break 2 | |
10803 | fi | |
10804 | done | |
10805 | done | |
10806 | ||
10807 | fi | |
10808 | fi | |
10809 | CC=$ac_cv_prog_CC | |
10810 | if test -n "$CC"; then | |
10811 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10812 | echo "${ECHO_T}$CC" >&6 | |
10813 | else | |
10814 | echo "$as_me:$LINENO: result: no" >&5 | |
10815 | echo "${ECHO_T}no" >&6 | |
10816 | fi | |
10817 | ||
10818 | fi | |
10819 | if test -z "$ac_cv_prog_CC"; then | |
10820 | ac_ct_CC=$CC | |
10821 | # Extract the first word of "cc", so it can be a program name with args. | |
10822 | set dummy cc; ac_word=$2 | |
10823 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10825 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10827 | else | |
10828 | if test -n "$ac_ct_CC"; then | |
10829 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10830 | else | |
10831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10832 | for as_dir in $PATH | |
10833 | do | |
10834 | IFS=$as_save_IFS | |
10835 | test -z "$as_dir" && as_dir=. | |
10836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10837 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10838 | ac_cv_prog_ac_ct_CC="cc" | |
10839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10840 | break 2 | |
10841 | fi | |
10842 | done | |
10843 | done | |
10844 | ||
10845 | fi | |
10846 | fi | |
10847 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10848 | if test -n "$ac_ct_CC"; then | |
10849 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10850 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10851 | else | |
10852 | echo "$as_me:$LINENO: result: no" >&5 | |
10853 | echo "${ECHO_T}no" >&6 | |
10854 | fi | |
10855 | ||
10856 | CC=$ac_ct_CC | |
10857 | else | |
10858 | CC="$ac_cv_prog_CC" | |
10859 | fi | |
10860 | ||
10861 | fi | |
10862 | if test -z "$CC"; then | |
10863 | # Extract the first word of "cc", so it can be a program name with args. | |
10864 | set dummy cc; ac_word=$2 | |
10865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10867 | if test "${ac_cv_prog_CC+set}" = set; then | |
10868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10869 | else | |
10870 | if test -n "$CC"; then | |
10871 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10872 | else | |
10873 | ac_prog_rejected=no | |
10874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10875 | for as_dir in $PATH | |
10876 | do | |
10877 | IFS=$as_save_IFS | |
10878 | test -z "$as_dir" && as_dir=. | |
10879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10881 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10882 | ac_prog_rejected=yes | |
10883 | continue | |
10884 | fi | |
10885 | ac_cv_prog_CC="cc" | |
10886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10887 | break 2 | |
10888 | fi | |
10889 | done | |
10890 | done | |
10891 | ||
10892 | if test $ac_prog_rejected = yes; then | |
10893 | # We found a bogon in the path, so make sure we never use it. | |
10894 | set dummy $ac_cv_prog_CC | |
10895 | shift | |
10896 | if test $# != 0; then | |
10897 | # We chose a different compiler from the bogus one. | |
10898 | # However, it has the same basename, so the bogon will be chosen | |
10899 | # first if we set CC to just the basename; use the full file name. | |
10900 | shift | |
10901 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10902 | fi | |
10903 | fi | |
10904 | fi | |
10905 | fi | |
10906 | CC=$ac_cv_prog_CC | |
10907 | if test -n "$CC"; then | |
10908 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10909 | echo "${ECHO_T}$CC" >&6 | |
10910 | else | |
10911 | echo "$as_me:$LINENO: result: no" >&5 | |
10912 | echo "${ECHO_T}no" >&6 | |
10913 | fi | |
10914 | ||
10915 | fi | |
10916 | if test -z "$CC"; then | |
10917 | if test -n "$ac_tool_prefix"; then | |
10918 | for ac_prog in cl | |
10919 | do | |
10920 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10921 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10924 | if test "${ac_cv_prog_CC+set}" = set; then | |
10925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10926 | else | |
10927 | if test -n "$CC"; then | |
10928 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10929 | else | |
10930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10931 | for as_dir in $PATH | |
10932 | do | |
10933 | IFS=$as_save_IFS | |
10934 | test -z "$as_dir" && as_dir=. | |
10935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10936 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10937 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10939 | break 2 | |
10940 | fi | |
10941 | done | |
10942 | done | |
10943 | ||
10944 | fi | |
10945 | fi | |
10946 | CC=$ac_cv_prog_CC | |
10947 | if test -n "$CC"; then | |
10948 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10949 | echo "${ECHO_T}$CC" >&6 | |
10950 | else | |
10951 | echo "$as_me:$LINENO: result: no" >&5 | |
10952 | echo "${ECHO_T}no" >&6 | |
10953 | fi | |
10954 | ||
10955 | test -n "$CC" && break | |
10956 | done | |
10957 | fi | |
10958 | if test -z "$CC"; then | |
10959 | ac_ct_CC=$CC | |
10960 | for ac_prog in cl | |
10961 | do | |
10962 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10963 | set dummy $ac_prog; ac_word=$2 | |
10964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10966 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10968 | else | |
10969 | if test -n "$ac_ct_CC"; then | |
10970 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10971 | else | |
10972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10973 | for as_dir in $PATH | |
10974 | do | |
10975 | IFS=$as_save_IFS | |
10976 | test -z "$as_dir" && as_dir=. | |
10977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10979 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10981 | break 2 | |
10982 | fi | |
10983 | done | |
10984 | done | |
10985 | ||
10986 | fi | |
10987 | fi | |
10988 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10989 | if test -n "$ac_ct_CC"; then | |
10990 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10991 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10992 | else | |
10993 | echo "$as_me:$LINENO: result: no" >&5 | |
10994 | echo "${ECHO_T}no" >&6 | |
10995 | fi | |
10996 | ||
10997 | test -n "$ac_ct_CC" && break | |
10998 | done | |
10999 | ||
11000 | CC=$ac_ct_CC | |
11001 | fi | |
11002 | ||
11003 | fi | |
11004 | ||
11005 | ||
11006 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11007 | See \`config.log' for more details." >&5 | |
11008 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11009 | See \`config.log' for more details." >&2;} | |
11010 | { (exit 1); exit 1; }; } | |
11011 | ||
11012 | # Provide some information about the compiler. | |
11013 | echo "$as_me:$LINENO:" \ | |
11014 | "checking for C compiler version" >&5 | |
11015 | ac_compiler=`set X $ac_compile; echo $2` | |
11016 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11017 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11018 | ac_status=$? | |
11019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11020 | (exit $ac_status); } | |
11021 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11022 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11023 | ac_status=$? | |
11024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11025 | (exit $ac_status); } | |
11026 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11027 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11028 | ac_status=$? | |
11029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11030 | (exit $ac_status); } | |
11031 | ||
11032 | cat >conftest.$ac_ext <<_ACEOF | |
11033 | /* confdefs.h. */ | |
11034 | _ACEOF | |
11035 | cat confdefs.h >>conftest.$ac_ext | |
11036 | cat >>conftest.$ac_ext <<_ACEOF | |
11037 | /* end confdefs.h. */ | |
11038 | ||
11039 | int | |
11040 | main () | |
11041 | { | |
11042 | ||
11043 | ; | |
11044 | return 0; | |
11045 | } | |
11046 | _ACEOF | |
11047 | ac_clean_files_save=$ac_clean_files | |
11048 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11049 | # Try to create an executable without -o first, disregard a.out. | |
11050 | # It will help us diagnose broken compilers, and finding out an intuition | |
11051 | # of exeext. | |
ac1cb8d3 VS |
11052 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11053 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11054 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11055 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11056 | (eval $ac_link_default) 2>&5 | |
11057 | ac_status=$? | |
11058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11059 | (exit $ac_status); }; then | |
11060 | # Find the output, starting from the most likely. This scheme is | |
11061 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11062 | # resort. | |
11063 | ||
11064 | # Be careful to initialize this variable, since it used to be cached. | |
11065 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11066 | ac_cv_exeext= | |
11067 | # b.out is created by i960 compilers. | |
11068 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11069 | do | |
11070 | test -f "$ac_file" || continue | |
11071 | case $ac_file in | |
11072 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11073 | ;; |
a848cd7e | 11074 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11075 | # This is the source file. |
11076 | ;; | |
a848cd7e | 11077 | [ab].out ) |
ac1cb8d3 VS |
11078 | # We found the default executable, but exeext='' is most |
11079 | # certainly right. | |
11080 | break;; | |
a848cd7e | 11081 | *.* ) |
ac1cb8d3 VS |
11082 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11083 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11084 | # but it would be cool to find out if it's true. Does anybody | |
11085 | # maintain Libtool? --akim. | |
11086 | export ac_cv_exeext | |
11087 | break;; | |
a848cd7e | 11088 | * ) |
ac1cb8d3 | 11089 | break;; |
a848cd7e SC |
11090 | esac |
11091 | done | |
11092 | else | |
11093 | echo "$as_me: failed program was:" >&5 | |
11094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11095 | ||
11096 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11097 | See \`config.log' for more details." >&5 | |
11098 | echo "$as_me: error: C compiler cannot create executables | |
11099 | See \`config.log' for more details." >&2;} | |
11100 | { (exit 77); exit 77; }; } | |
11101 | fi | |
11102 | ||
11103 | ac_exeext=$ac_cv_exeext | |
11104 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11105 | echo "${ECHO_T}$ac_file" >&6 | |
11106 | ||
11107 | # Check the compiler produces executables we can run. If not, either | |
11108 | # the compiler is broken, or we cross compile. | |
11109 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11110 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11111 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11112 | # If not cross compiling, check that we can run a simple program. | |
11113 | if test "$cross_compiling" != yes; then | |
11114 | if { ac_try='./$ac_file' | |
11115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11116 | (eval $ac_try) 2>&5 | |
11117 | ac_status=$? | |
11118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11119 | (exit $ac_status); }; }; then | |
11120 | cross_compiling=no | |
11121 | else | |
11122 | if test "$cross_compiling" = maybe; then | |
11123 | cross_compiling=yes | |
11124 | else | |
11125 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11126 | If you meant to cross compile, use \`--host'. | |
11127 | See \`config.log' for more details." >&5 | |
11128 | echo "$as_me: error: cannot run C compiled programs. | |
11129 | If you meant to cross compile, use \`--host'. | |
11130 | See \`config.log' for more details." >&2;} | |
11131 | { (exit 1); exit 1; }; } | |
11132 | fi | |
11133 | fi | |
11134 | fi | |
11135 | echo "$as_me:$LINENO: result: yes" >&5 | |
11136 | echo "${ECHO_T}yes" >&6 | |
11137 | ||
11138 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11139 | ac_clean_files=$ac_clean_files_save | |
11140 | # Check the compiler produces executables we can run. If not, either | |
11141 | # the compiler is broken, or we cross compile. | |
11142 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11143 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11144 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11145 | echo "${ECHO_T}$cross_compiling" >&6 | |
11146 | ||
11147 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11148 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11150 | (eval $ac_link) 2>&5 | |
11151 | ac_status=$? | |
11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11153 | (exit $ac_status); }; then | |
11154 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11155 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11156 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11157 | # `rm'. | |
11158 | for ac_file in conftest.exe conftest conftest.*; do | |
11159 | test -f "$ac_file" || continue | |
11160 | case $ac_file in | |
11161 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11162 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11163 | export ac_cv_exeext |
11164 | break;; | |
a848cd7e SC |
11165 | * ) break;; |
11166 | esac | |
11167 | done | |
11168 | else | |
11169 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11170 | See \`config.log' for more details." >&5 | |
11171 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11172 | See \`config.log' for more details." >&2;} | |
11173 | { (exit 1); exit 1; }; } | |
11174 | fi | |
11175 | ||
11176 | rm -f conftest$ac_cv_exeext | |
11177 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11178 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11179 | ||
11180 | rm -f conftest.$ac_ext | |
11181 | EXEEXT=$ac_cv_exeext | |
11182 | ac_exeext=$EXEEXT | |
11183 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11184 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11185 | if test "${ac_cv_objext+set}" = set; then | |
11186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11187 | else | |
11188 | cat >conftest.$ac_ext <<_ACEOF | |
11189 | /* confdefs.h. */ | |
11190 | _ACEOF | |
11191 | cat confdefs.h >>conftest.$ac_ext | |
11192 | cat >>conftest.$ac_ext <<_ACEOF | |
11193 | /* end confdefs.h. */ | |
11194 | ||
11195 | int | |
11196 | main () | |
11197 | { | |
11198 | ||
11199 | ; | |
11200 | return 0; | |
11201 | } | |
11202 | _ACEOF | |
11203 | rm -f conftest.o conftest.obj | |
11204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11205 | (eval $ac_compile) 2>&5 | |
11206 | ac_status=$? | |
11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11208 | (exit $ac_status); }; then | |
11209 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11210 | case $ac_file in | |
11211 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11212 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11213 | break;; | |
11214 | esac | |
11215 | done | |
11216 | else | |
11217 | echo "$as_me: failed program was:" >&5 | |
11218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11219 | ||
11220 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11221 | See \`config.log' for more details." >&5 | |
11222 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11223 | See \`config.log' for more details." >&2;} | |
11224 | { (exit 1); exit 1; }; } | |
11225 | fi | |
11226 | ||
11227 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11228 | fi | |
11229 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11230 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11231 | OBJEXT=$ac_cv_objext | |
11232 | ac_objext=$OBJEXT | |
11233 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11234 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11235 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11237 | else | |
11238 | cat >conftest.$ac_ext <<_ACEOF | |
11239 | /* confdefs.h. */ | |
11240 | _ACEOF | |
11241 | cat confdefs.h >>conftest.$ac_ext | |
11242 | cat >>conftest.$ac_ext <<_ACEOF | |
11243 | /* end confdefs.h. */ | |
11244 | ||
11245 | int | |
11246 | main () | |
11247 | { | |
11248 | #ifndef __GNUC__ | |
11249 | choke me | |
11250 | #endif | |
11251 | ||
11252 | ; | |
11253 | return 0; | |
11254 | } | |
11255 | _ACEOF | |
11256 | rm -f conftest.$ac_objext | |
11257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11258 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11259 | ac_status=$? |
ac1cb8d3 VS |
11260 | grep -v '^ *+' conftest.er1 >conftest.err |
11261 | rm -f conftest.er1 | |
11262 | cat conftest.err >&5 | |
a848cd7e SC |
11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11264 | (exit $ac_status); } && | |
9dd0f6c2 | 11265 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11267 | (eval $ac_try) 2>&5 | |
11268 | ac_status=$? | |
11269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11270 | (exit $ac_status); }; } && | |
11271 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
11277 | ac_compiler_gnu=yes | |
11278 | else | |
11279 | echo "$as_me: failed program was:" >&5 | |
11280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11281 | ||
11282 | ac_compiler_gnu=no | |
11283 | fi | |
ac1cb8d3 | 11284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11285 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11286 | ||
11287 | fi | |
11288 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11289 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11290 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11291 | ac_test_CFLAGS=${CFLAGS+set} | |
11292 | ac_save_CFLAGS=$CFLAGS | |
52ada004 | 11293 | CFLAGS="-g" |
a848cd7e SC |
11294 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11295 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11296 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11298 | else | |
11299 | cat >conftest.$ac_ext <<_ACEOF | |
11300 | /* confdefs.h. */ | |
11301 | _ACEOF | |
11302 | cat confdefs.h >>conftest.$ac_ext | |
11303 | cat >>conftest.$ac_ext <<_ACEOF | |
11304 | /* end confdefs.h. */ | |
11305 | ||
11306 | int | |
11307 | main () | |
11308 | { | |
11309 | ||
11310 | ; | |
11311 | return 0; | |
11312 | } | |
11313 | _ACEOF | |
11314 | rm -f conftest.$ac_objext | |
11315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11316 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11317 | ac_status=$? |
ac1cb8d3 VS |
11318 | grep -v '^ *+' conftest.er1 >conftest.err |
11319 | rm -f conftest.er1 | |
11320 | cat conftest.err >&5 | |
a848cd7e SC |
11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11322 | (exit $ac_status); } && | |
9dd0f6c2 | 11323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11325 | (eval $ac_try) 2>&5 | |
11326 | ac_status=$? | |
11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11328 | (exit $ac_status); }; } && | |
11329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
11335 | ac_cv_prog_cc_g=yes | |
11336 | else | |
11337 | echo "$as_me: failed program was:" >&5 | |
11338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11339 | ||
11340 | ac_cv_prog_cc_g=no | |
11341 | fi | |
ac1cb8d3 | 11342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11343 | fi |
11344 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11345 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11346 | if test "$ac_test_CFLAGS" = set; then | |
11347 | CFLAGS=$ac_save_CFLAGS | |
11348 | elif test $ac_cv_prog_cc_g = yes; then | |
11349 | if test "$GCC" = yes; then | |
11350 | CFLAGS="-g -O2" | |
11351 | else | |
11352 | CFLAGS="-g" | |
11353 | fi | |
11354 | else | |
11355 | if test "$GCC" = yes; then | |
11356 | CFLAGS="-O2" | |
11357 | else | |
11358 | CFLAGS= | |
11359 | fi | |
11360 | fi | |
11361 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11362 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11363 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11365 | else | |
11366 | ac_cv_prog_cc_stdc=no | |
11367 | ac_save_CC=$CC | |
11368 | cat >conftest.$ac_ext <<_ACEOF | |
11369 | /* confdefs.h. */ | |
11370 | _ACEOF | |
11371 | cat confdefs.h >>conftest.$ac_ext | |
11372 | cat >>conftest.$ac_ext <<_ACEOF | |
11373 | /* end confdefs.h. */ | |
11374 | #include <stdarg.h> | |
11375 | #include <stdio.h> | |
11376 | #include <sys/types.h> | |
11377 | #include <sys/stat.h> | |
11378 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11379 | struct buf { int x; }; | |
11380 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11381 | static char *e (p, i) | |
11382 | char **p; | |
11383 | int i; | |
11384 | { | |
11385 | return p[i]; | |
11386 | } | |
11387 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11388 | { | |
11389 | char *s; | |
11390 | va_list v; | |
11391 | va_start (v,p); | |
11392 | s = g (p, va_arg (v,int)); | |
11393 | va_end (v); | |
11394 | return s; | |
11395 | } | |
ac1cb8d3 VS |
11396 | |
11397 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11398 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11399 | These don't provoke an error unfortunately, instead are silently treated | |
11400 | as 'x'. The following induces an error, until -std1 is added to get | |
11401 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11402 | array size at least. It's necessary to write '\x00'==0 to get something | |
11403 | that's true only with -std1. */ | |
11404 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11405 | ||
a848cd7e SC |
11406 | int test (int i, double x); |
11407 | struct s1 {int (*f) (int a);}; | |
11408 | struct s2 {int (*f) (double a);}; | |
11409 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11410 | int argc; | |
11411 | char **argv; | |
11412 | int | |
11413 | main () | |
11414 | { | |
11415 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11416 | ; | |
11417 | return 0; | |
11418 | } | |
11419 | _ACEOF | |
11420 | # Don't try gcc -ansi; that turns off useful extensions and | |
11421 | # breaks some systems' header files. | |
11422 | # AIX -qlanglvl=ansi | |
11423 | # Ultrix and OSF/1 -std1 | |
11424 | # HP-UX 10.20 and later -Ae | |
11425 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11426 | # SVR4 -Xc -D__EXTENSIONS__ | |
11427 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11428 | do | |
11429 | CC="$ac_save_CC $ac_arg" | |
11430 | rm -f conftest.$ac_objext | |
11431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11432 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11433 | ac_status=$? |
ac1cb8d3 VS |
11434 | grep -v '^ *+' conftest.er1 >conftest.err |
11435 | rm -f conftest.er1 | |
11436 | cat conftest.err >&5 | |
a848cd7e SC |
11437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11438 | (exit $ac_status); } && | |
9dd0f6c2 | 11439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11441 | (eval $ac_try) 2>&5 | |
11442 | ac_status=$? | |
11443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11444 | (exit $ac_status); }; } && | |
11445 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
11451 | ac_cv_prog_cc_stdc=$ac_arg | |
11452 | break | |
11453 | else | |
11454 | echo "$as_me: failed program was:" >&5 | |
11455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11456 | ||
11457 | fi | |
ac1cb8d3 | 11458 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11459 | done |
11460 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11461 | CC=$ac_save_CC | |
11462 | ||
11463 | fi | |
11464 | ||
11465 | case "x$ac_cv_prog_cc_stdc" in | |
11466 | x|xno) | |
11467 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11468 | echo "${ECHO_T}none needed" >&6 ;; | |
11469 | *) | |
11470 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11471 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11472 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11473 | esac | |
11474 | ||
11475 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11476 | # in C++ we need to declare it. In case someone uses the same compiler | |
11477 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11478 | # the declaration of exit, since it's the most demanding environment. | |
11479 | cat >conftest.$ac_ext <<_ACEOF | |
11480 | #ifndef __cplusplus | |
11481 | choke me | |
11482 | #endif | |
11483 | _ACEOF | |
11484 | rm -f conftest.$ac_objext | |
11485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11486 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11487 | ac_status=$? |
ac1cb8d3 VS |
11488 | grep -v '^ *+' conftest.er1 >conftest.err |
11489 | rm -f conftest.er1 | |
11490 | cat conftest.err >&5 | |
a848cd7e SC |
11491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11492 | (exit $ac_status); } && | |
9dd0f6c2 | 11493 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11495 | (eval $ac_try) 2>&5 | |
11496 | ac_status=$? | |
11497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11498 | (exit $ac_status); }; } && | |
11499 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
11505 | for ac_declaration in \ | |
ac1cb8d3 | 11506 | '' \ |
a848cd7e SC |
11507 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11508 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11509 | 'extern "C" void exit (int) throw ();' \ | |
11510 | 'extern "C" void exit (int);' \ | |
11511 | 'void exit (int);' | |
11512 | do | |
11513 | cat >conftest.$ac_ext <<_ACEOF | |
11514 | /* confdefs.h. */ | |
11515 | _ACEOF | |
11516 | cat confdefs.h >>conftest.$ac_ext | |
11517 | cat >>conftest.$ac_ext <<_ACEOF | |
11518 | /* end confdefs.h. */ | |
de59c161 | 11519 | $ac_declaration |
ac1cb8d3 | 11520 | #include <stdlib.h> |
a848cd7e SC |
11521 | int |
11522 | main () | |
11523 | { | |
11524 | exit (42); | |
11525 | ; | |
11526 | return 0; | |
11527 | } | |
11528 | _ACEOF | |
11529 | rm -f conftest.$ac_objext | |
11530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11531 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11532 | ac_status=$? |
ac1cb8d3 VS |
11533 | grep -v '^ *+' conftest.er1 >conftest.err |
11534 | rm -f conftest.er1 | |
11535 | cat conftest.err >&5 | |
a848cd7e SC |
11536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11537 | (exit $ac_status); } && | |
9dd0f6c2 | 11538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11540 | (eval $ac_try) 2>&5 | |
11541 | ac_status=$? | |
11542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11543 | (exit $ac_status); }; } && | |
11544 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
11550 | : | |
11551 | else | |
11552 | echo "$as_me: failed program was:" >&5 | |
11553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11554 | ||
11555 | continue | |
11556 | fi | |
ac1cb8d3 | 11557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11558 | cat >conftest.$ac_ext <<_ACEOF |
11559 | /* confdefs.h. */ | |
11560 | _ACEOF | |
11561 | cat confdefs.h >>conftest.$ac_ext | |
11562 | cat >>conftest.$ac_ext <<_ACEOF | |
11563 | /* end confdefs.h. */ | |
11564 | $ac_declaration | |
11565 | int | |
11566 | main () | |
11567 | { | |
11568 | exit (42); | |
11569 | ; | |
11570 | return 0; | |
11571 | } | |
11572 | _ACEOF | |
11573 | rm -f conftest.$ac_objext | |
11574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11575 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11576 | ac_status=$? |
ac1cb8d3 VS |
11577 | grep -v '^ *+' conftest.er1 >conftest.err |
11578 | rm -f conftest.er1 | |
11579 | cat conftest.err >&5 | |
a848cd7e SC |
11580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11581 | (exit $ac_status); } && | |
9dd0f6c2 | 11582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11584 | (eval $ac_try) 2>&5 | |
11585 | ac_status=$? | |
11586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11587 | (exit $ac_status); }; } && | |
11588 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
11594 | break | |
11595 | else | |
11596 | echo "$as_me: failed program was:" >&5 | |
11597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11598 | ||
11599 | fi | |
ac1cb8d3 | 11600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11601 | done |
11602 | rm -f conftest* | |
11603 | if test -n "$ac_declaration"; then | |
11604 | echo '#ifdef __cplusplus' >>confdefs.h | |
11605 | echo $ac_declaration >>confdefs.h | |
11606 | echo '#endif' >>confdefs.h | |
11607 | fi | |
11608 | ||
11609 | else | |
11610 | echo "$as_me: failed program was:" >&5 | |
11611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11612 | ||
11613 | fi | |
ac1cb8d3 | 11614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11615 | ac_ext=c |
11616 | ac_cpp='$CPP $CPPFLAGS' | |
11617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11620 | ||
6dcfc289 | 11621 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
480ccd21 DE |
11622 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
11623 | if test "${wx_cv_c_exto+set}" = set; then | |
11624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11625 | else | |
11626 | cat >conftest.$ac_ext <<_ACEOF | |
11627 | /* confdefs.h. */ | |
11628 | _ACEOF | |
11629 | cat confdefs.h >>conftest.$ac_ext | |
11630 | cat >>conftest.$ac_ext <<_ACEOF | |
11631 | /* end confdefs.h. */ | |
11632 | ||
11633 | int | |
11634 | main () | |
11635 | { | |
11636 | ||
11637 | ; | |
11638 | return 0; | |
11639 | } | |
11640 | _ACEOF | |
11641 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11643 | (eval $ac_compile) 2>&5 | |
11644 | ac_status=$? | |
11645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11646 | (exit $ac_status); }; then | |
11647 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11648 | case $ac_file in | |
11649 | conftest.$ac_ext.o) | |
11650 | wx_cv_c_exto="-ext o" | |
11651 | ;; | |
11652 | *) | |
11653 | ;; | |
11654 | esac | |
11655 | done | |
11656 | else | |
11657 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11658 | See \`config.log' for more details." >&5 | |
11659 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11660 | See \`config.log' for more details." >&2;} | |
11661 | { (exit 1); exit 1; }; } | |
11662 | ||
11663 | fi | |
11664 | ||
11665 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11666 | ||
11667 | fi | |
11668 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11669 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11670 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11671 | if test "c" = "c"; then | |
11672 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11673 | fi | |
11674 | if test "c" = "cxx"; then | |
11675 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11676 | fi | |
11677 | fi | |
11678 | ||
6dcfc289 DE |
11679 | if test "x$wx_cv_c_exto" '!=' "x"; then |
11680 | unset ac_cv_prog_cc_g | |
11681 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 11682 | ac_save_CFLAGS=$CFLAGS |
52ada004 | 11683 | CFLAGS="-g" |
480ccd21 DE |
11684 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11685 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11686 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11688 | else | |
11689 | cat >conftest.$ac_ext <<_ACEOF | |
11690 | /* confdefs.h. */ | |
11691 | _ACEOF | |
11692 | cat confdefs.h >>conftest.$ac_ext | |
11693 | cat >>conftest.$ac_ext <<_ACEOF | |
11694 | /* end confdefs.h. */ | |
11695 | ||
11696 | int | |
11697 | main () | |
11698 | { | |
11699 | ||
11700 | ; | |
11701 | return 0; | |
11702 | } | |
11703 | _ACEOF | |
11704 | rm -f conftest.$ac_objext | |
11705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11706 | (eval $ac_compile) 2>conftest.er1 | |
11707 | ac_status=$? | |
11708 | grep -v '^ *+' conftest.er1 >conftest.err | |
11709 | rm -f conftest.er1 | |
11710 | cat conftest.err >&5 | |
11711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11712 | (exit $ac_status); } && | |
9dd0f6c2 | 11713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
11714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11715 | (eval $ac_try) 2>&5 | |
11716 | ac_status=$? | |
11717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11718 | (exit $ac_status); }; } && | |
11719 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
11725 | ac_cv_prog_cc_g=yes | |
11726 | else | |
11727 | echo "$as_me: failed program was:" >&5 | |
11728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11729 | ||
11730 | ac_cv_prog_cc_g=no | |
11731 | fi | |
11732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11733 | fi | |
11734 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11735 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11736 | if test "$ac_test_CFLAGS" = set; then | |
11737 | CFLAGS=$ac_save_CFLAGS | |
11738 | elif test $ac_cv_prog_cc_g = yes; then | |
11739 | if test "$GCC" = yes; then | |
11740 | CFLAGS="-g -O2" | |
11741 | else | |
11742 | CFLAGS="-g" | |
11743 | fi | |
11744 | else | |
11745 | if test "$GCC" = yes; then | |
11746 | CFLAGS="-O2" | |
11747 | else | |
11748 | CFLAGS= | |
11749 | fi | |
11750 | fi | |
6dcfc289 DE |
11751 | fi |
11752 | ac_ext=c | |
95986553 DE |
11753 | ac_cpp='$CPP $CPPFLAGS' |
11754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11757 | ||
11758 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11759 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11760 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11762 | else | |
11763 | cat >conftest.$ac_ext <<_ACEOF | |
11764 | /* confdefs.h. */ | |
11765 | _ACEOF | |
11766 | cat confdefs.h >>conftest.$ac_ext | |
11767 | cat >>conftest.$ac_ext <<_ACEOF | |
11768 | /* end confdefs.h. */ | |
11769 | ||
11770 | int | |
11771 | main () | |
11772 | { | |
11773 | #ifndef __MWERKS__ | |
11774 | choke me | |
11775 | #endif | |
11776 | ||
11777 | ; | |
11778 | return 0; | |
11779 | } | |
11780 | _ACEOF | |
11781 | rm -f conftest.$ac_objext | |
11782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11783 | (eval $ac_compile) 2>conftest.er1 | |
11784 | ac_status=$? | |
11785 | grep -v '^ *+' conftest.er1 >conftest.err | |
11786 | rm -f conftest.er1 | |
11787 | cat conftest.err >&5 | |
11788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11789 | (exit $ac_status); } && | |
9dd0f6c2 | 11790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
11791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11792 | (eval $ac_try) 2>&5 | |
11793 | ac_status=$? | |
11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11795 | (exit $ac_status); }; } && | |
11796 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
11802 | bakefile_compiler_mwerks=yes | |
11803 | else | |
11804 | echo "$as_me: failed program was:" >&5 | |
11805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11806 | ||
11807 | bakefile_compiler_mwerks=no | |
11808 | fi | |
11809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11810 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11811 | ||
11812 | fi | |
11813 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11814 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11815 | ||
0e6fa1d9 | 11816 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
11817 | ac_ext=c |
11818 | ac_cpp='$CPP $CPPFLAGS' | |
11819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11822 | ||
11823 | ||
6dcfc289 | 11824 | ac_ext=c |
9273ffba DE |
11825 | ac_cpp='$CPP $CPPFLAGS' |
11826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11829 | ||
11830 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11831 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
11832 | if test "${wx_cv_c_compiler_xlc+set}" = set; then | |
11833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11834 | else | |
11835 | cat >conftest.$ac_ext <<_ACEOF | |
11836 | /* confdefs.h. */ | |
11837 | _ACEOF | |
11838 | cat confdefs.h >>conftest.$ac_ext | |
11839 | cat >>conftest.$ac_ext <<_ACEOF | |
11840 | /* end confdefs.h. */ | |
11841 | ||
11842 | int | |
11843 | main () | |
11844 | { | |
11845 | #ifndef __xlC__ | |
11846 | choke me | |
11847 | #endif | |
11848 | ||
11849 | ; | |
11850 | return 0; | |
11851 | } | |
11852 | _ACEOF | |
11853 | rm -f conftest.$ac_objext | |
11854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11855 | (eval $ac_compile) 2>conftest.er1 | |
11856 | ac_status=$? | |
11857 | grep -v '^ *+' conftest.er1 >conftest.err | |
11858 | rm -f conftest.er1 | |
11859 | cat conftest.err >&5 | |
11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11861 | (exit $ac_status); } && | |
9dd0f6c2 | 11862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
11863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11864 | (eval $ac_try) 2>&5 | |
11865 | ac_status=$? | |
11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11867 | (exit $ac_status); }; } && | |
11868 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
11874 | wx_compiler_xlc=yes | |
11875 | else | |
11876 | echo "$as_me: failed program was:" >&5 | |
11877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11878 | ||
11879 | wx_compiler_xlc=no | |
11880 | fi | |
11881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11882 | wx_cv_c_compiler_xlc=$wx_compiler_xlc | |
11883 | ||
11884 | fi | |
11885 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 | |
11886 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
11887 | ||
0e6fa1d9 | 11888 | XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
11889 | ac_ext=c |
11890 | ac_cpp='$CPP $CPPFLAGS' | |
11891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11894 | ||
11895 | ||
a848cd7e | 11896 | |
6dcfc289 | 11897 | |
a848cd7e SC |
11898 | ac_ext=c |
11899 | ac_cpp='$CPP $CPPFLAGS' | |
11900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11903 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11904 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11905 | # On Suns, sometimes $CPP names a directory. | |
11906 | if test -n "$CPP" && test -d "$CPP"; then | |
11907 | CPP= | |
11908 | fi | |
11909 | if test -z "$CPP"; then | |
11910 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11912 | else | |
11913 | # Double quotes because CPP needs to be expanded | |
11914 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11915 | do | |
11916 | ac_preproc_ok=false | |
11917 | for ac_c_preproc_warn_flag in '' yes | |
11918 | do | |
11919 | # Use a header file that comes with gcc, so configuring glibc | |
11920 | # with a fresh cross-compiler works. | |
11921 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11922 | # <limits.h> exists even on freestanding compilers. | |
11923 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11924 | # not just through cpp. "Syntax error" is here to catch this case. | |
11925 | cat >conftest.$ac_ext <<_ACEOF | |
11926 | /* confdefs.h. */ | |
11927 | _ACEOF | |
11928 | cat confdefs.h >>conftest.$ac_ext | |
11929 | cat >>conftest.$ac_ext <<_ACEOF | |
11930 | /* end confdefs.h. */ | |
11931 | #ifdef __STDC__ | |
11932 | # include <limits.h> | |
11933 | #else | |
11934 | # include <assert.h> | |
11935 | #endif | |
ac1cb8d3 | 11936 | Syntax error |
a848cd7e SC |
11937 | _ACEOF |
11938 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11939 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11940 | ac_status=$? | |
11941 | grep -v '^ *+' conftest.er1 >conftest.err | |
11942 | rm -f conftest.er1 | |
11943 | cat conftest.err >&5 | |
11944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11945 | (exit $ac_status); } >/dev/null; then | |
11946 | if test -s conftest.err; then | |
11947 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11948 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11949 | else |
11950 | ac_cpp_err= | |
11951 | fi | |
11952 | else | |
11953 | ac_cpp_err=yes | |
11954 | fi | |
11955 | if test -z "$ac_cpp_err"; then | |
11956 | : | |
11957 | else | |
11958 | echo "$as_me: failed program was:" >&5 | |
11959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11960 | ||
11961 | # Broken: fails on valid input. | |
11962 | continue | |
11963 | fi | |
11964 | rm -f conftest.err conftest.$ac_ext | |
11965 | ||
11966 | # OK, works on sane cases. Now check whether non-existent headers | |
11967 | # can be detected and how. | |
11968 | cat >conftest.$ac_ext <<_ACEOF | |
11969 | /* confdefs.h. */ | |
11970 | _ACEOF | |
11971 | cat confdefs.h >>conftest.$ac_ext | |
11972 | cat >>conftest.$ac_ext <<_ACEOF | |
11973 | /* end confdefs.h. */ | |
11974 | #include <ac_nonexistent.h> | |
11975 | _ACEOF | |
11976 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11977 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11978 | ac_status=$? | |
11979 | grep -v '^ *+' conftest.er1 >conftest.err | |
11980 | rm -f conftest.er1 | |
11981 | cat conftest.err >&5 | |
11982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11983 | (exit $ac_status); } >/dev/null; then | |
11984 | if test -s conftest.err; then | |
11985 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11986 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11987 | else |
11988 | ac_cpp_err= | |
11989 | fi | |
11990 | else | |
11991 | ac_cpp_err=yes | |
11992 | fi | |
11993 | if test -z "$ac_cpp_err"; then | |
11994 | # Broken: success on invalid input. | |
11995 | continue | |
11996 | else | |
11997 | echo "$as_me: failed program was:" >&5 | |
11998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11999 | ||
12000 | # Passes both tests. | |
12001 | ac_preproc_ok=: | |
12002 | break | |
12003 | fi | |
12004 | rm -f conftest.err conftest.$ac_ext | |
12005 | ||
12006 | done | |
12007 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12008 | rm -f conftest.err conftest.$ac_ext | |
12009 | if $ac_preproc_ok; then | |
12010 | break | |
12011 | fi | |
12012 | ||
12013 | done | |
12014 | ac_cv_prog_CPP=$CPP | |
12015 | ||
12016 | fi | |
12017 | CPP=$ac_cv_prog_CPP | |
12018 | else | |
12019 | ac_cv_prog_CPP=$CPP | |
12020 | fi | |
12021 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12022 | echo "${ECHO_T}$CPP" >&6 | |
12023 | ac_preproc_ok=false | |
12024 | for ac_c_preproc_warn_flag in '' yes | |
12025 | do | |
12026 | # Use a header file that comes with gcc, so configuring glibc | |
12027 | # with a fresh cross-compiler works. | |
12028 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12029 | # <limits.h> exists even on freestanding compilers. | |
12030 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12031 | # not just through cpp. "Syntax error" is here to catch this case. | |
12032 | cat >conftest.$ac_ext <<_ACEOF | |
12033 | /* confdefs.h. */ | |
12034 | _ACEOF | |
12035 | cat confdefs.h >>conftest.$ac_ext | |
12036 | cat >>conftest.$ac_ext <<_ACEOF | |
12037 | /* end confdefs.h. */ | |
12038 | #ifdef __STDC__ | |
12039 | # include <limits.h> | |
12040 | #else | |
12041 | # include <assert.h> | |
12042 | #endif | |
ac1cb8d3 | 12043 | Syntax error |
a848cd7e SC |
12044 | _ACEOF |
12045 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12046 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12047 | ac_status=$? | |
12048 | grep -v '^ *+' conftest.er1 >conftest.err | |
12049 | rm -f conftest.er1 | |
12050 | cat conftest.err >&5 | |
12051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12052 | (exit $ac_status); } >/dev/null; then | |
12053 | if test -s conftest.err; then | |
12054 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12056 | else |
12057 | ac_cpp_err= | |
12058 | fi | |
12059 | else | |
12060 | ac_cpp_err=yes | |
12061 | fi | |
12062 | if test -z "$ac_cpp_err"; then | |
12063 | : | |
12064 | else | |
12065 | echo "$as_me: failed program was:" >&5 | |
12066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12067 | ||
12068 | # Broken: fails on valid input. | |
12069 | continue | |
12070 | fi | |
12071 | rm -f conftest.err conftest.$ac_ext | |
12072 | ||
12073 | # OK, works on sane cases. Now check whether non-existent headers | |
12074 | # can be detected and how. | |
12075 | cat >conftest.$ac_ext <<_ACEOF | |
12076 | /* confdefs.h. */ | |
12077 | _ACEOF | |
12078 | cat confdefs.h >>conftest.$ac_ext | |
12079 | cat >>conftest.$ac_ext <<_ACEOF | |
12080 | /* end confdefs.h. */ | |
12081 | #include <ac_nonexistent.h> | |
12082 | _ACEOF | |
12083 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12084 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12085 | ac_status=$? | |
12086 | grep -v '^ *+' conftest.er1 >conftest.err | |
12087 | rm -f conftest.er1 | |
12088 | cat conftest.err >&5 | |
12089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12090 | (exit $ac_status); } >/dev/null; then | |
12091 | if test -s conftest.err; then | |
12092 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12093 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12094 | else |
12095 | ac_cpp_err= | |
12096 | fi | |
12097 | else | |
12098 | ac_cpp_err=yes | |
12099 | fi | |
12100 | if test -z "$ac_cpp_err"; then | |
12101 | # Broken: success on invalid input. | |
12102 | continue | |
12103 | else | |
12104 | echo "$as_me: failed program was:" >&5 | |
12105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12106 | ||
12107 | # Passes both tests. | |
12108 | ac_preproc_ok=: | |
12109 | break | |
12110 | fi | |
12111 | rm -f conftest.err conftest.$ac_ext | |
12112 | ||
12113 | done | |
12114 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12115 | rm -f conftest.err conftest.$ac_ext | |
12116 | if $ac_preproc_ok; then | |
12117 | : | |
12118 | else | |
12119 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12120 | See \`config.log' for more details." >&5 | |
12121 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12122 | See \`config.log' for more details." >&2;} | |
12123 | { (exit 1); exit 1; }; } | |
12124 | fi | |
12125 | ||
12126 | ac_ext=c | |
12127 | ac_cpp='$CPP $CPPFLAGS' | |
12128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12131 | ||
12132 | ||
12133 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12134 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12135 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12137 | else | |
12138 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12139 | then ac_cv_prog_egrep='grep -E' | |
12140 | else ac_cv_prog_egrep='egrep' | |
12141 | fi | |
12142 | fi | |
12143 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12144 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12145 | EGREP=$ac_cv_prog_egrep | |
12146 | ||
12147 | ||
12148 | if test $ac_cv_c_compiler_gnu = yes; then | |
12149 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12150 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12151 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12153 | else | |
12154 | ac_pattern="Autoconf.*'x'" | |
12155 | cat >conftest.$ac_ext <<_ACEOF | |
12156 | /* confdefs.h. */ | |
12157 | _ACEOF | |
12158 | cat confdefs.h >>conftest.$ac_ext | |
12159 | cat >>conftest.$ac_ext <<_ACEOF | |
12160 | /* end confdefs.h. */ | |
12161 | #include <sgtty.h> | |
12162 | Autoconf TIOCGETP | |
12163 | _ACEOF | |
12164 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12165 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12166 | ac_cv_prog_gcc_traditional=yes | |
12167 | else | |
12168 | ac_cv_prog_gcc_traditional=no | |
12169 | fi | |
12170 | rm -f conftest* | |
12171 | ||
12172 | ||
12173 | if test $ac_cv_prog_gcc_traditional = no; then | |
12174 | cat >conftest.$ac_ext <<_ACEOF | |
12175 | /* confdefs.h. */ | |
12176 | _ACEOF | |
12177 | cat confdefs.h >>conftest.$ac_ext | |
12178 | cat >>conftest.$ac_ext <<_ACEOF | |
12179 | /* end confdefs.h. */ | |
12180 | #include <termio.h> | |
12181 | Autoconf TCGETA | |
12182 | _ACEOF | |
12183 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12184 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12185 | ac_cv_prog_gcc_traditional=yes | |
12186 | fi | |
12187 | rm -f conftest* | |
12188 | ||
12189 | fi | |
12190 | fi | |
12191 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12192 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12193 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12194 | CC="$CC -traditional" | |
12195 | fi | |
12196 | fi | |
12197 | ||
12198 | ||
12199 | ||
12200 | ||
12201 | ac_ext=cc | |
12202 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12203 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12204 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12205 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12206 | ||
12207 | ||
12208 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12209 | |
12210 | ||
12211 | ac_ext=cc | |
a848cd7e SC |
12212 | ac_cpp='$CXXCPP $CPPFLAGS' |
12213 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12214 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12215 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12216 | if test -n "$ac_tool_prefix"; then | |
12217 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12218 | do | |
12219 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12220 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12221 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12223 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12225 | else | |
12226 | if test -n "$CXX"; then | |
12227 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12228 | else | |
12229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12230 | for as_dir in $PATH | |
12231 | do | |
12232 | IFS=$as_save_IFS | |
12233 | test -z "$as_dir" && as_dir=. | |
12234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12235 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12236 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12237 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12238 | break 2 | |
12239 | fi | |
12240 | done | |
12241 | done | |
12242 | ||
12243 | fi | |
12244 | fi | |
12245 | CXX=$ac_cv_prog_CXX | |
12246 | if test -n "$CXX"; then | |
12247 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12248 | echo "${ECHO_T}$CXX" >&6 | |
12249 | else | |
12250 | echo "$as_me:$LINENO: result: no" >&5 | |
12251 | echo "${ECHO_T}no" >&6 | |
12252 | fi | |
12253 | ||
12254 | test -n "$CXX" && break | |
12255 | done | |
12256 | fi | |
12257 | if test -z "$CXX"; then | |
12258 | ac_ct_CXX=$CXX | |
12259 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12260 | do | |
12261 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12262 | set dummy $ac_prog; ac_word=$2 | |
12263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12265 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12267 | else | |
12268 | if test -n "$ac_ct_CXX"; then | |
12269 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12270 | else | |
12271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12272 | for as_dir in $PATH | |
12273 | do | |
12274 | IFS=$as_save_IFS | |
12275 | test -z "$as_dir" && as_dir=. | |
12276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12277 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12278 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12279 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12280 | break 2 | |
12281 | fi | |
12282 | done | |
12283 | done | |
12284 | ||
12285 | fi | |
12286 | fi | |
12287 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12288 | if test -n "$ac_ct_CXX"; then | |
12289 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12290 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12291 | else | |
12292 | echo "$as_me:$LINENO: result: no" >&5 | |
12293 | echo "${ECHO_T}no" >&6 | |
12294 | fi | |
12295 | ||
12296 | test -n "$ac_ct_CXX" && break | |
12297 | done | |
12298 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12299 | ||
12300 | CXX=$ac_ct_CXX | |
12301 | fi | |
12302 | ||
12303 | ||
12304 | # Provide some information about the compiler. | |
12305 | echo "$as_me:$LINENO:" \ | |
12306 | "checking for C++ compiler version" >&5 | |
12307 | ac_compiler=`set X $ac_compile; echo $2` | |
12308 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12309 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12310 | ac_status=$? | |
12311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12312 | (exit $ac_status); } | |
12313 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12314 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12315 | ac_status=$? | |
12316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12317 | (exit $ac_status); } | |
12318 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12319 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12320 | ac_status=$? | |
12321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12322 | (exit $ac_status); } | |
12323 | ||
12324 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12325 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12326 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12328 | else | |
12329 | cat >conftest.$ac_ext <<_ACEOF | |
12330 | /* confdefs.h. */ | |
12331 | _ACEOF | |
12332 | cat confdefs.h >>conftest.$ac_ext | |
12333 | cat >>conftest.$ac_ext <<_ACEOF | |
12334 | /* end confdefs.h. */ | |
12335 | ||
12336 | int | |
12337 | main () | |
12338 | { | |
12339 | #ifndef __GNUC__ | |
12340 | choke me | |
12341 | #endif | |
12342 | ||
12343 | ; | |
12344 | return 0; | |
12345 | } | |
12346 | _ACEOF | |
12347 | rm -f conftest.$ac_objext | |
12348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12349 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12350 | ac_status=$? |
ac1cb8d3 VS |
12351 | grep -v '^ *+' conftest.er1 >conftest.err |
12352 | rm -f conftest.er1 | |
12353 | cat conftest.err >&5 | |
a848cd7e SC |
12354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12355 | (exit $ac_status); } && | |
9dd0f6c2 | 12356 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12358 | (eval $ac_try) 2>&5 | |
12359 | ac_status=$? | |
12360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12361 | (exit $ac_status); }; } && | |
12362 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
12368 | ac_compiler_gnu=yes | |
12369 | else | |
12370 | echo "$as_me: failed program was:" >&5 | |
12371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12372 | ||
12373 | ac_compiler_gnu=no | |
12374 | fi | |
ac1cb8d3 | 12375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12376 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12377 | ||
12378 | fi | |
12379 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12380 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12381 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12382 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12383 | ac_save_CXXFLAGS=$CXXFLAGS | |
12384 | CXXFLAGS="-g" | |
12385 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12386 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12387 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12389 | else | |
12390 | cat >conftest.$ac_ext <<_ACEOF | |
12391 | /* confdefs.h. */ | |
12392 | _ACEOF | |
12393 | cat confdefs.h >>conftest.$ac_ext | |
12394 | cat >>conftest.$ac_ext <<_ACEOF | |
12395 | /* end confdefs.h. */ | |
12396 | ||
12397 | int | |
12398 | main () | |
12399 | { | |
12400 | ||
12401 | ; | |
12402 | return 0; | |
12403 | } | |
12404 | _ACEOF | |
12405 | rm -f conftest.$ac_objext | |
12406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12407 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12408 | ac_status=$? |
ac1cb8d3 VS |
12409 | grep -v '^ *+' conftest.er1 >conftest.err |
12410 | rm -f conftest.er1 | |
12411 | cat conftest.err >&5 | |
a848cd7e SC |
12412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12413 | (exit $ac_status); } && | |
9dd0f6c2 | 12414 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12416 | (eval $ac_try) 2>&5 | |
12417 | ac_status=$? | |
12418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12419 | (exit $ac_status); }; } && | |
12420 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
12426 | ac_cv_prog_cxx_g=yes | |
12427 | else | |
12428 | echo "$as_me: failed program was:" >&5 | |
12429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12430 | ||
12431 | ac_cv_prog_cxx_g=no | |
12432 | fi | |
ac1cb8d3 | 12433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12434 | fi |
12435 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12436 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12437 | if test "$ac_test_CXXFLAGS" = set; then | |
12438 | CXXFLAGS=$ac_save_CXXFLAGS | |
12439 | elif test $ac_cv_prog_cxx_g = yes; then | |
12440 | if test "$GXX" = yes; then | |
52ada004 | 12441 | CXXFLAGS="-g -O2" |
a848cd7e | 12442 | else |
52ada004 | 12443 | CXXFLAGS="-g" |
a848cd7e SC |
12444 | fi |
12445 | else | |
12446 | if test "$GXX" = yes; then | |
12447 | CXXFLAGS="-O2" | |
12448 | else | |
12449 | CXXFLAGS= | |
12450 | fi | |
12451 | fi | |
12452 | for ac_declaration in \ | |
ac1cb8d3 | 12453 | '' \ |
a848cd7e SC |
12454 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12455 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12456 | 'extern "C" void exit (int) throw ();' \ | |
12457 | 'extern "C" void exit (int);' \ | |
12458 | 'void exit (int);' | |
12459 | do | |
12460 | cat >conftest.$ac_ext <<_ACEOF | |
12461 | /* confdefs.h. */ | |
12462 | _ACEOF | |
12463 | cat confdefs.h >>conftest.$ac_ext | |
12464 | cat >>conftest.$ac_ext <<_ACEOF | |
12465 | /* end confdefs.h. */ | |
de59c161 | 12466 | $ac_declaration |
ac1cb8d3 | 12467 | #include <stdlib.h> |
a848cd7e SC |
12468 | int |
12469 | main () | |
12470 | { | |
12471 | exit (42); | |
12472 | ; | |
12473 | return 0; | |
12474 | } | |
12475 | _ACEOF | |
12476 | rm -f conftest.$ac_objext | |
12477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12478 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12479 | ac_status=$? |
ac1cb8d3 VS |
12480 | grep -v '^ *+' conftest.er1 >conftest.err |
12481 | rm -f conftest.er1 | |
12482 | cat conftest.err >&5 | |
a848cd7e SC |
12483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12484 | (exit $ac_status); } && | |
9dd0f6c2 | 12485 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12487 | (eval $ac_try) 2>&5 | |
12488 | ac_status=$? | |
12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12490 | (exit $ac_status); }; } && | |
12491 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
12497 | : | |
12498 | else | |
12499 | echo "$as_me: failed program was:" >&5 | |
12500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12501 | ||
12502 | continue | |
12503 | fi | |
ac1cb8d3 | 12504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12505 | cat >conftest.$ac_ext <<_ACEOF |
12506 | /* confdefs.h. */ | |
12507 | _ACEOF | |
12508 | cat confdefs.h >>conftest.$ac_ext | |
12509 | cat >>conftest.$ac_ext <<_ACEOF | |
12510 | /* end confdefs.h. */ | |
12511 | $ac_declaration | |
12512 | int | |
12513 | main () | |
12514 | { | |
12515 | exit (42); | |
12516 | ; | |
12517 | return 0; | |
12518 | } | |
12519 | _ACEOF | |
12520 | rm -f conftest.$ac_objext | |
12521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12522 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12523 | ac_status=$? |
ac1cb8d3 VS |
12524 | grep -v '^ *+' conftest.er1 >conftest.err |
12525 | rm -f conftest.er1 | |
12526 | cat conftest.err >&5 | |
a848cd7e SC |
12527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12528 | (exit $ac_status); } && | |
9dd0f6c2 | 12529 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12531 | (eval $ac_try) 2>&5 | |
12532 | ac_status=$? | |
12533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12534 | (exit $ac_status); }; } && | |
12535 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
12541 | break | |
12542 | else | |
12543 | echo "$as_me: failed program was:" >&5 | |
12544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12545 | ||
12546 | fi | |
ac1cb8d3 | 12547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12548 | done |
12549 | rm -f conftest* | |
12550 | if test -n "$ac_declaration"; then | |
12551 | echo '#ifdef __cplusplus' >>confdefs.h | |
12552 | echo $ac_declaration >>confdefs.h | |
12553 | echo '#endif' >>confdefs.h | |
12554 | fi | |
12555 | ||
12556 | ac_ext=cc | |
12557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12561 | ||
6dcfc289 | 12562 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 |
480ccd21 DE |
12563 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
12564 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12566 | else | |
12567 | cat >conftest.$ac_ext <<_ACEOF | |
12568 | /* confdefs.h. */ | |
12569 | _ACEOF | |
12570 | cat confdefs.h >>conftest.$ac_ext | |
12571 | cat >>conftest.$ac_ext <<_ACEOF | |
12572 | /* end confdefs.h. */ | |
12573 | ||
12574 | int | |
12575 | main () | |
12576 | { | |
12577 | ||
12578 | ; | |
12579 | return 0; | |
12580 | } | |
12581 | _ACEOF | |
12582 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12584 | (eval $ac_compile) 2>&5 | |
12585 | ac_status=$? | |
12586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12587 | (exit $ac_status); }; then | |
12588 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12589 | case $ac_file in | |
12590 | conftest.$ac_ext.o) | |
12591 | wx_cv_cxx_exto="-ext o" | |
12592 | ;; | |
12593 | *) | |
12594 | ;; | |
12595 | esac | |
12596 | done | |
12597 | else | |
12598 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12599 | See \`config.log' for more details." >&5 | |
12600 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12601 | See \`config.log' for more details." >&2;} | |
12602 | { (exit 1); exit 1; }; } | |
12603 | ||
12604 | fi | |
12605 | ||
12606 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12607 | ||
12608 | fi | |
12609 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
12610 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
12611 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12612 | if test "cxx" = "c"; then | |
12613 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
12614 | fi | |
12615 | if test "cxx" = "cxx"; then | |
12616 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
12617 | fi | |
12618 | fi | |
12619 | ||
6dcfc289 DE |
12620 | if test "x$wx_cv_cxx_exto" '!=' "x"; then |
12621 | unset ac_cv_prog_cxx_g | |
12622 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
480ccd21 DE |
12623 | ac_save_CXXFLAGS=$CXXFLAGS |
12624 | CXXFLAGS="-g" | |
12625 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12626 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12627 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12629 | else | |
12630 | cat >conftest.$ac_ext <<_ACEOF | |
12631 | /* confdefs.h. */ | |
12632 | _ACEOF | |
12633 | cat confdefs.h >>conftest.$ac_ext | |
12634 | cat >>conftest.$ac_ext <<_ACEOF | |
12635 | /* end confdefs.h. */ | |
12636 | ||
12637 | int | |
12638 | main () | |
12639 | { | |
12640 | ||
12641 | ; | |
12642 | return 0; | |
12643 | } | |
12644 | _ACEOF | |
12645 | rm -f conftest.$ac_objext | |
12646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12647 | (eval $ac_compile) 2>conftest.er1 | |
12648 | ac_status=$? | |
12649 | grep -v '^ *+' conftest.er1 >conftest.err | |
12650 | rm -f conftest.er1 | |
12651 | cat conftest.err >&5 | |
12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12653 | (exit $ac_status); } && | |
9dd0f6c2 | 12654 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12656 | (eval $ac_try) 2>&5 | |
12657 | ac_status=$? | |
12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12659 | (exit $ac_status); }; } && | |
12660 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
12666 | ac_cv_prog_cxx_g=yes | |
12667 | else | |
12668 | echo "$as_me: failed program was:" >&5 | |
12669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12670 | ||
12671 | ac_cv_prog_cxx_g=no | |
12672 | fi | |
12673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12674 | fi | |
12675 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12676 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12677 | if test "$ac_test_CXXFLAGS" = set; then | |
12678 | CXXFLAGS=$ac_save_CXXFLAGS | |
12679 | elif test $ac_cv_prog_cxx_g = yes; then | |
12680 | if test "$GXX" = yes; then | |
52ada004 | 12681 | CXXFLAGS="-g -O2" |
480ccd21 | 12682 | else |
52ada004 | 12683 | CXXFLAGS="-g" |
480ccd21 DE |
12684 | fi |
12685 | else | |
12686 | if test "$GXX" = yes; then | |
12687 | CXXFLAGS="-O2" | |
12688 | else | |
12689 | CXXFLAGS= | |
12690 | fi | |
12691 | fi | |
6dcfc289 DE |
12692 | fi |
12693 | ac_ext=cc | |
95986553 DE |
12694 | ac_cpp='$CXXCPP $CPPFLAGS' |
12695 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12696 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12697 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12698 | ||
12699 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12700 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12701 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12703 | else | |
12704 | cat >conftest.$ac_ext <<_ACEOF | |
12705 | /* confdefs.h. */ | |
12706 | _ACEOF | |
12707 | cat confdefs.h >>conftest.$ac_ext | |
12708 | cat >>conftest.$ac_ext <<_ACEOF | |
12709 | /* end confdefs.h. */ | |
12710 | ||
12711 | int | |
12712 | main () | |
12713 | { | |
12714 | #ifndef __MWERKS__ | |
12715 | choke me | |
12716 | #endif | |
12717 | ||
12718 | ; | |
12719 | return 0; | |
12720 | } | |
12721 | _ACEOF | |
12722 | rm -f conftest.$ac_objext | |
12723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12724 | (eval $ac_compile) 2>conftest.er1 | |
12725 | ac_status=$? | |
12726 | grep -v '^ *+' conftest.er1 >conftest.err | |
12727 | rm -f conftest.er1 | |
12728 | cat conftest.err >&5 | |
12729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12730 | (exit $ac_status); } && | |
9dd0f6c2 | 12731 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12733 | (eval $ac_try) 2>&5 | |
12734 | ac_status=$? | |
12735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12736 | (exit $ac_status); }; } && | |
12737 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
12743 | bakefile_compiler_mwerks=yes | |
12744 | else | |
12745 | echo "$as_me: failed program was:" >&5 | |
12746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12747 | ||
12748 | bakefile_compiler_mwerks=no | |
12749 | fi | |
12750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12751 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12752 | ||
12753 | fi | |
12754 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12755 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12756 | ||
0e6fa1d9 | 12757 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
12758 | ac_ext=cc |
12759 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12760 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12761 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12762 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12763 | ||
12764 | ||
6dcfc289 | 12765 | ac_ext=cc |
9273ffba DE |
12766 | ac_cpp='$CXXCPP $CPPFLAGS' |
12767 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12768 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12769 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12770 | ||
12771 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
12772 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
12773 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then | |
12774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12775 | else | |
12776 | cat >conftest.$ac_ext <<_ACEOF | |
12777 | /* confdefs.h. */ | |
12778 | _ACEOF | |
12779 | cat confdefs.h >>conftest.$ac_ext | |
12780 | cat >>conftest.$ac_ext <<_ACEOF | |
12781 | /* end confdefs.h. */ | |
12782 | ||
12783 | int | |
12784 | main () | |
12785 | { | |
12786 | #ifndef __xlC__ | |
12787 | choke me | |
12788 | #endif | |
12789 | ||
12790 | ; | |
12791 | return 0; | |
12792 | } | |
12793 | _ACEOF | |
12794 | rm -f conftest.$ac_objext | |
12795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12796 | (eval $ac_compile) 2>conftest.er1 | |
12797 | ac_status=$? | |
12798 | grep -v '^ *+' conftest.er1 >conftest.err | |
12799 | rm -f conftest.er1 | |
12800 | cat conftest.err >&5 | |
12801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12802 | (exit $ac_status); } && | |
9dd0f6c2 | 12803 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12805 | (eval $ac_try) 2>&5 | |
12806 | ac_status=$? | |
12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12808 | (exit $ac_status); }; } && | |
12809 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
12815 | wx_compiler_xlc=yes | |
12816 | else | |
12817 | echo "$as_me: failed program was:" >&5 | |
12818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12819 | ||
12820 | wx_compiler_xlc=no | |
12821 | fi | |
12822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12823 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc | |
12824 | ||
12825 | fi | |
12826 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 | |
12827 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
12828 | ||
0e6fa1d9 | 12829 | XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
12830 | ac_ext=cc |
12831 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12832 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12833 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12834 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12835 | ||
12836 | ||
95986553 | 12837 | |
6dcfc289 | 12838 | |
a848cd7e SC |
12839 | ac_ext=c |
12840 | ac_cpp='$CPP $CPPFLAGS' | |
12841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12844 | ||
12845 | ||
a848cd7e SC |
12846 | if test -n "$ac_tool_prefix"; then |
12847 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12848 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12849 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12851 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12853 | else | |
12854 | if test -n "$RANLIB"; then | |
12855 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12856 | else | |
12857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12858 | for as_dir in $PATH | |
12859 | do | |
12860 | IFS=$as_save_IFS | |
12861 | test -z "$as_dir" && as_dir=. | |
12862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12863 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12864 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12866 | break 2 | |
12867 | fi | |
12868 | done | |
12869 | done | |
12870 | ||
12871 | fi | |
12872 | fi | |
12873 | RANLIB=$ac_cv_prog_RANLIB | |
12874 | if test -n "$RANLIB"; then | |
12875 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12876 | echo "${ECHO_T}$RANLIB" >&6 | |
12877 | else | |
12878 | echo "$as_me:$LINENO: result: no" >&5 | |
12879 | echo "${ECHO_T}no" >&6 | |
12880 | fi | |
12881 | ||
12882 | fi | |
12883 | if test -z "$ac_cv_prog_RANLIB"; then | |
12884 | ac_ct_RANLIB=$RANLIB | |
12885 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12886 | set dummy ranlib; ac_word=$2 | |
12887 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12889 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12891 | else | |
12892 | if test -n "$ac_ct_RANLIB"; then | |
12893 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12894 | else | |
12895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12896 | for as_dir in $PATH | |
12897 | do | |
12898 | IFS=$as_save_IFS | |
12899 | test -z "$as_dir" && as_dir=. | |
12900 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12901 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12902 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12903 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12904 | break 2 | |
12905 | fi | |
12906 | done | |
12907 | done | |
12908 | ||
12909 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12910 | fi | |
12911 | fi | |
12912 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12913 | if test -n "$ac_ct_RANLIB"; then | |
12914 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12915 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12916 | else | |
12917 | echo "$as_me:$LINENO: result: no" >&5 | |
12918 | echo "${ECHO_T}no" >&6 | |
12919 | fi | |
12920 | ||
12921 | RANLIB=$ac_ct_RANLIB | |
12922 | else | |
12923 | RANLIB="$ac_cv_prog_RANLIB" | |
12924 | fi | |
12925 | ||
12926 | ||
12927 | # Extract the first word of "ar", so it can be a program name with args. | |
12928 | set dummy ar; ac_word=$2 | |
12929 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12931 | if test "${ac_cv_prog_AR+set}" = set; then | |
12932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12933 | else | |
12934 | if test -n "$AR"; then | |
12935 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12936 | else | |
12937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12938 | for as_dir in $PATH | |
12939 | do | |
12940 | IFS=$as_save_IFS | |
12941 | test -z "$as_dir" && as_dir=. | |
12942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12943 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12944 | ac_cv_prog_AR="ar" | |
12945 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12946 | break 2 | |
12947 | fi | |
12948 | done | |
12949 | done | |
12950 | ||
12951 | fi | |
12952 | fi | |
12953 | AR=$ac_cv_prog_AR | |
12954 | if test -n "$AR"; then | |
12955 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12956 | echo "${ECHO_T}$AR" >&6 | |
12957 | else | |
12958 | echo "$as_me:$LINENO: result: no" >&5 | |
12959 | echo "${ECHO_T}no" >&6 | |
12960 | fi | |
12961 | ||
12962 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12963 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12964 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12965 | { (exit 1); exit 1; }; } |
12966 | fi | |
12967 | ||
12968 | # Find a good install program. We prefer a C program (faster), | |
12969 | # so one script is as good as another. But avoid the broken or | |
12970 | # incompatible versions: | |
12971 | # SysV /etc/install, /usr/sbin/install | |
12972 | # SunOS /usr/etc/install | |
12973 | # IRIX /sbin/install | |
12974 | # AIX /bin/install | |
12975 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12976 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12977 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12978 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12979 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12980 | # ./install, which can be erroneously created by make from ./install.sh. |
12981 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12982 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12983 | if test -z "$INSTALL"; then | |
12984 | if test "${ac_cv_path_install+set}" = set; then | |
12985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12986 | else | |
12987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12988 | for as_dir in $PATH | |
12989 | do | |
12990 | IFS=$as_save_IFS | |
12991 | test -z "$as_dir" && as_dir=. | |
12992 | # Account for people who put trailing slashes in PATH elements. | |
12993 | case $as_dir/ in | |
12994 | ./ | .// | /cC/* | \ | |
12995 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12996 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12997 | /usr/ucb/* ) ;; |
12998 | *) | |
12999 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
13000 | # Don't use installbsd from OSF since it installs stuff as root | |
13001 | # by default. | |
13002 | for ac_prog in ginstall scoinst install; do | |
13003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
13004 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
13005 | if test $ac_prog = install && | |
13006 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13007 | # AIX install. It has an incompatible calling convention. | |
13008 | : | |
13009 | elif test $ac_prog = install && | |
13010 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13011 | # program-specific install script used by HP pwplus--don't use. | |
13012 | : | |
13013 | else | |
13014 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
13015 | break 3 | |
13016 | fi | |
13017 | fi | |
a848cd7e SC |
13018 | done |
13019 | done | |
13020 | ;; | |
13021 | esac | |
13022 | done | |
13023 | ||
13024 | ||
13025 | fi | |
13026 | if test "${ac_cv_path_install+set}" = set; then | |
13027 | INSTALL=$ac_cv_path_install | |
13028 | else | |
13029 | # As a last resort, use the slow shell script. We don't cache a | |
13030 | # path for INSTALL within a source directory, because that will | |
13031 | # break other packages using the cache if that directory is | |
13032 | # removed, or if the path is relative. | |
13033 | INSTALL=$ac_install_sh | |
13034 | fi | |
13035 | fi | |
13036 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
13037 | echo "${ECHO_T}$INSTALL" >&6 | |
13038 | ||
13039 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
13040 | # It thinks the first close brace ends the variable substitution. | |
13041 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
13042 | ||
13043 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
13044 | ||
13045 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
13046 | ||
13047 | ||
13048 | case ${INSTALL} in | |
13049 | /* ) # Absolute | |
13050 | ;; | |
13051 | ?:* ) # Drive letter, considered as absolute. | |
13052 | ;; | |
13053 | *) | |
13054 | INSTALL=`pwd`/${INSTALL} ;; | |
13055 | esac | |
13056 | ||
a848cd7e SC |
13057 | |
13058 | case "${host}" in | |
13059 | ||
13060 | powerpc-*-darwin* ) | |
13061 | INSTALL_PROGRAM="cp -fp" | |
13062 | INSTALL_DATA="cp -fp" | |
13063 | ;; | |
13064 | *) | |
13065 | ;; | |
13066 | esac | |
13067 | ||
13068 | # Extract the first word of "strip", so it can be a program name with args. | |
13069 | set dummy strip; ac_word=$2 | |
13070 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13072 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
13073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13074 | else | |
13075 | if test -n "$STRIP"; then | |
13076 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13077 | else | |
13078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13079 | for as_dir in $PATH | |
13080 | do | |
13081 | IFS=$as_save_IFS | |
13082 | test -z "$as_dir" && as_dir=. | |
13083 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13084 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13085 | ac_cv_prog_STRIP="strip" | |
13086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13087 | break 2 | |
13088 | fi | |
13089 | done | |
13090 | done | |
13091 | ||
13092 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
13093 | fi | |
13094 | fi | |
13095 | STRIP=$ac_cv_prog_STRIP | |
13096 | if test -n "$STRIP"; then | |
13097 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
13098 | echo "${ECHO_T}$STRIP" >&6 | |
13099 | else | |
13100 | echo "$as_me:$LINENO: result: no" >&5 | |
13101 | echo "${ECHO_T}no" >&6 | |
13102 | fi | |
13103 | ||
13104 | ||
13105 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
13106 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
13107 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
13108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13109 | else | |
13110 | ||
13111 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
13112 | egrep -s GNU > /dev/null); then | |
13113 | wx_cv_prog_makeisgnu="yes" | |
13114 | else | |
13115 | wx_cv_prog_makeisgnu="no" | |
13116 | fi | |
13117 | ||
13118 | fi | |
13119 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
13120 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
13121 | ||
13122 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
13123 | IF_GNU_MAKE="" | |
13124 | else | |
13125 | IF_GNU_MAKE="#" | |
13126 | fi | |
13127 | ||
13128 | ||
13129 | ||
13130 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
13131 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
13132 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
13133 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
13134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13135 | else | |
13136 | ||
13137 | cat - << EOF > confMake | |
13138 | check : file | |
13139 | cp \$? \$@ | |
13140 | cp \$? final_file | |
13141 | EOF | |
13142 | ||
13143 | if test ! -d sub ; then | |
13144 | mkdir sub | |
13145 | fi | |
13146 | echo dummy > sub/file | |
13147 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
13148 | RESULT=$? | |
13149 | rm -f sub/file check final_file confMake | |
13150 | rmdir sub | |
13151 | if test "$RESULT" = 0; then | |
13152 | wx_cv_prog_makevpath="yes" | |
13153 | else | |
13154 | wx_cv_prog_makevpath="no" | |
13155 | fi | |
13156 | ||
13157 | fi | |
13158 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
13159 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
13160 | ||
13161 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
13162 | { { echo "$as_me:$LINENO: error: | |
13163 | You need a make-utility that is able to use the variable | |
13164 | VPATH correctly. | |
13165 | If your version of make does not support VPATH correctly, | |
13166 | please install GNU-make (possibly as gmake), and start | |
13167 | configure with the following command: | |
13168 | export MAKE=gmake; ./configure for sh-type shells | |
13169 | setenv MAKE gmake; ./configure for csh-type shells | |
13170 | Also please do remember to use gmake in this case every time | |
13171 | you are trying to compile. | |
13172 | " >&5 | |
13173 | echo "$as_me: error: | |
13174 | You need a make-utility that is able to use the variable | |
13175 | VPATH correctly. | |
13176 | If your version of make does not support VPATH correctly, | |
13177 | please install GNU-make (possibly as gmake), and start | |
13178 | configure with the following command: | |
13179 | export MAKE=gmake; ./configure for sh-type shells | |
13180 | setenv MAKE gmake; ./configure for csh-type shells | |
13181 | Also please do remember to use gmake in this case every time | |
13182 | you are trying to compile. | |
13183 | " >&2;} | |
13184 | { (exit 1); exit 1; }; } | |
13185 | fi fi | |
13186 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
13187 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
13188 | LN_S=$as_ln_s | |
13189 | if test "$LN_S" = "ln -s"; then | |
13190 | echo "$as_me:$LINENO: result: yes" >&5 | |
13191 | echo "${ECHO_T}yes" >&6 | |
13192 | else | |
13193 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
13194 | echo "${ECHO_T}no, using $LN_S" >&6 | |
13195 | fi | |
13196 | ||
13197 | ||
13198 | ||
9273ffba DE |
13199 | if test "x$XLCXX" = "xyes"; then |
13200 | CXXFLAGS="$CXXFLAGS -qunique" | |
13201 | fi | |
13202 | ||
13203 | ||
4d7ec9f1 DE |
13204 | case "${host}" in |
13205 | powerpc-*-darwin* ) | |
13206 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
13207 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
13208 | cat >conftest.$ac_ext <<_ACEOF | |
13209 | /* confdefs.h. */ | |
13210 | _ACEOF | |
13211 | cat confdefs.h >>conftest.$ac_ext | |
13212 | cat >>conftest.$ac_ext <<_ACEOF | |
13213 | /* end confdefs.h. */ | |
13214 | ||
13215 | int | |
13216 | main () | |
13217 | { | |
13218 | #ifndef __POWERPC__ | |
13219 | choke me for lack of PowerPC | |
13220 | #endif | |
13221 | ||
13222 | ; | |
13223 | return 0; | |
13224 | } | |
13225 | _ACEOF | |
13226 | rm -f conftest.$ac_objext | |
13227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13228 | (eval $ac_compile) 2>conftest.er1 | |
13229 | ac_status=$? | |
13230 | grep -v '^ *+' conftest.er1 >conftest.err | |
13231 | rm -f conftest.er1 | |
13232 | cat conftest.err >&5 | |
13233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13234 | (exit $ac_status); } && | |
9dd0f6c2 | 13235 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13237 | (eval $ac_try) 2>&5 | |
13238 | ac_status=$? | |
13239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13240 | (exit $ac_status); }; } && | |
13241 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
13247 | echo "$as_me:$LINENO: result: yes" >&5 | |
13248 | echo "${ECHO_T}yes" >&6 | |
13249 | else | |
13250 | echo "$as_me: failed program was:" >&5 | |
13251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13252 | ||
13253 | echo "$as_me:$LINENO: result: no" >&5 | |
13254 | echo "${ECHO_T}no" >&6 | |
13255 | cat >>confdefs.h <<\_ACEOF | |
13256 | #define __POWERPC__ 1 | |
13257 | _ACEOF | |
13258 | ||
13259 | ||
13260 | fi | |
13261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13262 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 | |
13263 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
13264 | cat >conftest.$ac_ext <<_ACEOF | |
13265 | /* confdefs.h. */ | |
13266 | _ACEOF | |
13267 | cat confdefs.h >>conftest.$ac_ext | |
13268 | cat >>conftest.$ac_ext <<_ACEOF | |
13269 | /* end confdefs.h. */ | |
13270 | #include <CoreFoundation/CFBase.h> | |
13271 | ||
13272 | int | |
13273 | main () | |
13274 | { | |
13275 | ||
13276 | ; | |
13277 | return 0; | |
13278 | } | |
13279 | _ACEOF | |
13280 | rm -f conftest.$ac_objext | |
13281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13282 | (eval $ac_compile) 2>conftest.er1 | |
13283 | ac_status=$? | |
13284 | grep -v '^ *+' conftest.er1 >conftest.err | |
13285 | rm -f conftest.er1 | |
13286 | cat conftest.err >&5 | |
13287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13288 | (exit $ac_status); } && | |
9dd0f6c2 | 13289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13291 | (eval $ac_try) 2>&5 | |
13292 | ac_status=$? | |
13293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13294 | (exit $ac_status); }; } && | |
13295 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
13301 | echo "$as_me:$LINENO: result: yes" >&5 | |
13302 | echo "${ECHO_T}yes" >&6 | |
13303 | else | |
13304 | echo "$as_me: failed program was:" >&5 | |
13305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13306 | ||
13307 | echo "$as_me:$LINENO: result: no" >&5 | |
13308 | echo "${ECHO_T}no" >&6 | |
13309 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
13310 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
13311 | cat >conftest.$ac_ext <<_ACEOF | |
13312 | /* confdefs.h. */ | |
13313 | _ACEOF | |
13314 | cat confdefs.h >>conftest.$ac_ext | |
13315 | cat >>conftest.$ac_ext <<_ACEOF | |
13316 | /* end confdefs.h. */ | |
13317 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
13318 | #include <CoreFoundation/CFBase.h> | |
13319 | ||
13320 | int | |
13321 | main () | |
13322 | { | |
13323 | ||
13324 | ; | |
13325 | return 0; | |
13326 | } | |
13327 | _ACEOF | |
13328 | rm -f conftest.$ac_objext | |
13329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13330 | (eval $ac_compile) 2>conftest.er1 | |
13331 | ac_status=$? | |
13332 | grep -v '^ *+' conftest.er1 >conftest.err | |
13333 | rm -f conftest.er1 | |
13334 | cat conftest.err >&5 | |
13335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13336 | (exit $ac_status); } && | |
9dd0f6c2 | 13337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13339 | (eval $ac_try) 2>&5 | |
13340 | ac_status=$? | |
13341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13342 | (exit $ac_status); }; } && | |
13343 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
13349 | echo "$as_me:$LINENO: result: yes" >&5 | |
13350 | echo "${ECHO_T}yes" >&6 | |
13351 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
13352 | else | |
13353 | echo "$as_me: failed program was:" >&5 | |
13354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13355 | ||
13356 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
13357 | See \`config.log' for more details." >&5 | |
13358 | echo "$as_me: error: no. CoreFoundation not available. | |
13359 | See \`config.log' for more details." >&2;} | |
13360 | { (exit 1); exit 1; }; } | |
13361 | ||
13362 | fi | |
13363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13364 | ||
13365 | ||
13366 | fi | |
13367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13368 | ;; | |
13369 | esac | |
13370 | ||
a848cd7e SC |
13371 | case "${host}" in |
13372 | *-pc-os2_emx | *-pc-os2-emx ) | |
13373 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
13374 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
13375 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
13376 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
13377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13378 | else | |
13379 | ac_check_lib_save_LIBS=$LIBS | |
13380 | LIBS="-lcExt $LIBS" | |
13381 | cat >conftest.$ac_ext <<_ACEOF | |
13382 | /* confdefs.h. */ | |
13383 | _ACEOF | |
13384 | cat confdefs.h >>conftest.$ac_ext | |
13385 | cat >>conftest.$ac_ext <<_ACEOF | |
13386 | /* end confdefs.h. */ | |
13387 | ||
13388 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13389 | #ifdef __cplusplus | |
13390 | extern "C" | |
13391 | #endif | |
13392 | /* We use char because int might match the return type of a gcc2 | |
13393 | builtin and then its argument prototype would still apply. */ | |
13394 | char drand48 (); | |
13395 | int | |
13396 | main () | |
13397 | { | |
13398 | drand48 (); | |
13399 | ; | |
13400 | return 0; | |
13401 | } | |
13402 | _ACEOF | |
13403 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13405 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13406 | ac_status=$? |
ac1cb8d3 VS |
13407 | grep -v '^ *+' conftest.er1 >conftest.err |
13408 | rm -f conftest.er1 | |
13409 | cat conftest.err >&5 | |
a848cd7e SC |
13410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13411 | (exit $ac_status); } && | |
9dd0f6c2 | 13412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13414 | (eval $ac_try) 2>&5 | |
13415 | ac_status=$? | |
13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13417 | (exit $ac_status); }; } && | |
13418 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
13424 | ac_cv_lib_cExt_drand48=yes | |
13425 | else | |
13426 | echo "$as_me: failed program was:" >&5 | |
13427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13428 | ||
13429 | ac_cv_lib_cExt_drand48=no | |
13430 | fi | |
ac1cb8d3 VS |
13431 | rm -f conftest.err conftest.$ac_objext \ |
13432 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13433 | LIBS=$ac_check_lib_save_LIBS |
13434 | fi | |
13435 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
13436 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
13437 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
13438 | LIBS="$LIBS -lcExt" | |
13439 | fi | |
13440 | ||
13441 | else | |
13442 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
13443 | fi | |
69120ee4 VZ |
13444 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
13445 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
13446 | if test "${wx_cv_gccversion+set}" = set; then |
13447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13448 | else | |
13449 | ||
391a765e VS |
13450 | if test "$cross_compiling" = yes; then |
13451 | wx_cv_gccversion="EMX2" | |
13452 | ||
13453 | else | |
13454 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
13455 | /* confdefs.h. */ |
13456 | _ACEOF | |
13457 | cat confdefs.h >>conftest.$ac_ext | |
13458 | cat >>conftest.$ac_ext <<_ACEOF | |
13459 | /* end confdefs.h. */ | |
13460 | ||
391a765e | 13461 | #include <stdio.h> |
a848cd7e | 13462 | |
391a765e VS |
13463 | int main() |
13464 | { | |
13465 | FILE *f=fopen("conftestval", "w"); | |
13466 | if (!f) exit(1); | |
13467 | fprintf(f, | |
a848cd7e | 13468 | #if (__GNUC__ < 3) |
391a765e VS |
13469 | "EMX2" |
13470 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
13471 | "EMX3" | |
13472 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
13473 | "Innotek5" | |
13474 | #else | |
13475 | "Innotek6" | |
a848cd7e | 13476 | #endif |
391a765e VS |
13477 | ); |
13478 | exit(0); | |
13479 | } | |
a848cd7e | 13480 | |
a848cd7e | 13481 | _ACEOF |
391a765e VS |
13482 | rm -f conftest$ac_exeext |
13483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13484 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
13485 | ac_status=$? |
13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 13487 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
13488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13489 | (eval $ac_try) 2>&5 | |
13490 | ac_status=$? | |
13491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13492 | (exit $ac_status); }; }; then | |
391a765e | 13493 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 13494 | else |
391a765e VS |
13495 | echo "$as_me: program exited with status $ac_status" >&5 |
13496 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
13497 | sed 's/^/| /' conftest.$ac_ext >&5 |
13498 | ||
391a765e VS |
13499 | ( exit $ac_status ) |
13500 | wx_cv_gccversion="EMX2" | |
a848cd7e | 13501 | fi |
391a765e | 13502 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 13503 | fi |
a848cd7e SC |
13504 | |
13505 | fi | |
13506 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
13507 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 13508 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
13509 | LIBS="$LIBS -lstdcpp" |
13510 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13511 | else | |
391a765e | 13512 | if test "$wx_cv_gccversion" = "EMX3"; then |
a848cd7e SC |
13513 | LIBS="$LIBS -lstdcxx" |
13514 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13515 | else | |
13516 | LIBS="$LIBS -lstdc++" | |
13517 | fi | |
13518 | fi | |
94acd38e DE |
13519 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
13520 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
13521 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
13522 | wxUSE_OMF=yes | |
2da0c077 | 13523 | enable_omf=yes |
a848cd7e SC |
13524 | fi |
13525 | ;; | |
13526 | *) | |
13527 | ||
13528 | ||
13529 | ||
13530 | ac_ext=cc | |
13531 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13532 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13533 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13534 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13535 | ||
13536 | ||
95986553 | 13537 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
13538 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
13539 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
13540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13541 | else | |
13542 | ||
13543 | cat >conftest.$ac_ext <<_ACEOF | |
13544 | /* confdefs.h. */ | |
13545 | _ACEOF | |
13546 | cat confdefs.h >>conftest.$ac_ext | |
13547 | cat >>conftest.$ac_ext <<_ACEOF | |
13548 | /* end confdefs.h. */ | |
13549 | ||
13550 | #include <string.h> | |
13551 | ||
13552 | int | |
13553 | main () | |
13554 | { | |
13555 | ||
13556 | strcasecmp("foo", "bar"); | |
13557 | ||
13558 | ; | |
13559 | return 0; | |
13560 | } | |
13561 | _ACEOF | |
13562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13564 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13565 | ac_status=$? |
ac1cb8d3 VS |
13566 | grep -v '^ *+' conftest.er1 >conftest.err |
13567 | rm -f conftest.er1 | |
13568 | cat conftest.err >&5 | |
a848cd7e SC |
13569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13570 | (exit $ac_status); } && | |
9dd0f6c2 | 13571 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13573 | (eval $ac_try) 2>&5 | |
13574 | ac_status=$? | |
13575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13576 | (exit $ac_status); }; } && | |
13577 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
13583 | ac_cv_string_strcasecmp=yes | |
13584 | else | |
13585 | echo "$as_me: failed program was:" >&5 | |
13586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13587 | ||
13588 | ac_cv_string_strcasecmp=no | |
13589 | ||
13590 | fi | |
ac1cb8d3 VS |
13591 | rm -f conftest.err conftest.$ac_objext \ |
13592 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13593 | |
13594 | fi | |
13595 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
13596 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
13597 | ||
13598 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
13599 | cat >>confdefs.h <<\_ACEOF | |
13600 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
13601 | _ACEOF | |
13602 | ||
13603 | else | |
13604 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
13605 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
13606 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
13607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13608 | else | |
13609 | ||
13610 | cat >conftest.$ac_ext <<_ACEOF | |
13611 | /* confdefs.h. */ | |
13612 | _ACEOF | |
13613 | cat confdefs.h >>conftest.$ac_ext | |
13614 | cat >>conftest.$ac_ext <<_ACEOF | |
13615 | /* end confdefs.h. */ | |
13616 | ||
13617 | #include <strings.h> | |
13618 | ||
13619 | int | |
13620 | main () | |
13621 | { | |
13622 | ||
13623 | strcasecmp("foo", "bar"); | |
13624 | ||
13625 | ; | |
13626 | return 0; | |
13627 | } | |
13628 | _ACEOF | |
13629 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13631 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13632 | ac_status=$? |
ac1cb8d3 VS |
13633 | grep -v '^ *+' conftest.er1 >conftest.err |
13634 | rm -f conftest.er1 | |
13635 | cat conftest.err >&5 | |
a848cd7e SC |
13636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13637 | (exit $ac_status); } && | |
9dd0f6c2 | 13638 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13640 | (eval $ac_try) 2>&5 | |
13641 | ac_status=$? | |
13642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13643 | (exit $ac_status); }; } && | |
13644 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
13650 | ac_cv_strings_strcasecmp=yes | |
13651 | else | |
13652 | echo "$as_me: failed program was:" >&5 | |
13653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13654 | ||
13655 | ac_cv_strings_strcasecmp=no | |
13656 | ||
13657 | fi | |
ac1cb8d3 VS |
13658 | rm -f conftest.err conftest.$ac_objext \ |
13659 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13660 | |
13661 | fi | |
13662 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
13663 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
13664 | ||
0c3c69fc | 13665 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
13666 | cat >>confdefs.h <<\_ACEOF |
13667 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
13668 | _ACEOF | |
13669 | ||
13670 | else | |
13671 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
13672 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
13673 | { (exit 1); exit 1; }; } | |
13674 | fi | |
13675 | fi | |
13676 | ||
13677 | ac_ext=c | |
13678 | ac_cpp='$CPP $CPPFLAGS' | |
13679 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13680 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13681 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13682 | ||
13683 | ;; | |
13684 | esac | |
13685 | ||
13686 | ||
13687 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
13688 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
13689 | if test "${ac_cv_header_stdc+set}" = set; then | |
13690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13691 | else | |
13692 | cat >conftest.$ac_ext <<_ACEOF | |
13693 | /* confdefs.h. */ | |
13694 | _ACEOF | |
13695 | cat confdefs.h >>conftest.$ac_ext | |
13696 | cat >>conftest.$ac_ext <<_ACEOF | |
13697 | /* end confdefs.h. */ | |
13698 | #include <stdlib.h> | |
13699 | #include <stdarg.h> | |
13700 | #include <string.h> | |
13701 | #include <float.h> | |
13702 | ||
13703 | int | |
13704 | main () | |
13705 | { | |
13706 | ||
13707 | ; | |
13708 | return 0; | |
13709 | } | |
13710 | _ACEOF | |
13711 | rm -f conftest.$ac_objext | |
13712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13713 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13714 | ac_status=$? |
ac1cb8d3 VS |
13715 | grep -v '^ *+' conftest.er1 >conftest.err |
13716 | rm -f conftest.er1 | |
13717 | cat conftest.err >&5 | |
a848cd7e SC |
13718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13719 | (exit $ac_status); } && | |
9dd0f6c2 | 13720 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13722 | (eval $ac_try) 2>&5 | |
13723 | ac_status=$? | |
13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13725 | (exit $ac_status); }; } && | |
13726 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
13732 | ac_cv_header_stdc=yes | |
13733 | else | |
13734 | echo "$as_me: failed program was:" >&5 | |
13735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13736 | ||
13737 | ac_cv_header_stdc=no | |
13738 | fi | |
ac1cb8d3 | 13739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13740 | |
13741 | if test $ac_cv_header_stdc = yes; then | |
13742 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13743 | cat >conftest.$ac_ext <<_ACEOF | |
13744 | /* confdefs.h. */ | |
13745 | _ACEOF | |
13746 | cat confdefs.h >>conftest.$ac_ext | |
13747 | cat >>conftest.$ac_ext <<_ACEOF | |
13748 | /* end confdefs.h. */ | |
13749 | #include <string.h> | |
13750 | ||
13751 | _ACEOF | |
13752 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13753 | $EGREP "memchr" >/dev/null 2>&1; then | |
13754 | : | |
13755 | else | |
13756 | ac_cv_header_stdc=no | |
13757 | fi | |
13758 | rm -f conftest* | |
13759 | ||
13760 | fi | |
13761 | ||
13762 | if test $ac_cv_header_stdc = yes; then | |
13763 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13764 | cat >conftest.$ac_ext <<_ACEOF | |
13765 | /* confdefs.h. */ | |
13766 | _ACEOF | |
13767 | cat confdefs.h >>conftest.$ac_ext | |
13768 | cat >>conftest.$ac_ext <<_ACEOF | |
13769 | /* end confdefs.h. */ | |
13770 | #include <stdlib.h> | |
13771 | ||
13772 | _ACEOF | |
13773 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13774 | $EGREP "free" >/dev/null 2>&1; then | |
13775 | : | |
13776 | else | |
13777 | ac_cv_header_stdc=no | |
13778 | fi | |
13779 | rm -f conftest* | |
13780 | ||
13781 | fi | |
13782 | ||
13783 | if test $ac_cv_header_stdc = yes; then | |
13784 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13785 | if test "$cross_compiling" = yes; then | |
13786 | : | |
13787 | else | |
13788 | cat >conftest.$ac_ext <<_ACEOF | |
13789 | /* confdefs.h. */ | |
13790 | _ACEOF | |
13791 | cat confdefs.h >>conftest.$ac_ext | |
13792 | cat >>conftest.$ac_ext <<_ACEOF | |
13793 | /* end confdefs.h. */ | |
13794 | #include <ctype.h> | |
13795 | #if ((' ' & 0x0FF) == 0x020) | |
13796 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13797 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13798 | #else | |
13799 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
13800 | (('a' <= (c) && (c) <= 'i') \ |
13801 | || ('j' <= (c) && (c) <= 'r') \ | |
13802 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
13803 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
13804 | #endif | |
13805 | ||
13806 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
13807 | int | |
13808 | main () | |
13809 | { | |
13810 | int i; | |
13811 | for (i = 0; i < 256; i++) | |
13812 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 13813 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
13814 | exit(2); |
13815 | exit (0); | |
13816 | } | |
13817 | _ACEOF | |
13818 | rm -f conftest$ac_exeext | |
13819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13820 | (eval $ac_link) 2>&5 | |
13821 | ac_status=$? | |
13822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13823 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13825 | (eval $ac_try) 2>&5 | |
13826 | ac_status=$? | |
13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13828 | (exit $ac_status); }; }; then | |
13829 | : | |
13830 | else | |
13831 | echo "$as_me: program exited with status $ac_status" >&5 | |
13832 | echo "$as_me: failed program was:" >&5 | |
13833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13834 | ||
13835 | ( exit $ac_status ) | |
13836 | ac_cv_header_stdc=no | |
13837 | fi | |
ac1cb8d3 | 13838 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13839 | fi |
13840 | fi | |
13841 | fi | |
13842 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
13843 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
13844 | if test $ac_cv_header_stdc = yes; then | |
13845 | ||
13846 | cat >>confdefs.h <<\_ACEOF | |
13847 | #define STDC_HEADERS 1 | |
13848 | _ACEOF | |
13849 | ||
13850 | fi | |
13851 | ||
13852 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
13853 | ||
13854 | ||
13855 | ||
13856 | ||
13857 | ||
13858 | ||
13859 | ||
13860 | ||
13861 | ||
13862 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 13863 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
13864 | do |
13865 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13866 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13870 | else | |
13871 | cat >conftest.$ac_ext <<_ACEOF | |
13872 | /* confdefs.h. */ | |
13873 | _ACEOF | |
13874 | cat confdefs.h >>conftest.$ac_ext | |
13875 | cat >>conftest.$ac_ext <<_ACEOF | |
13876 | /* end confdefs.h. */ | |
13877 | $ac_includes_default | |
13878 | ||
13879 | #include <$ac_header> | |
13880 | _ACEOF | |
13881 | rm -f conftest.$ac_objext | |
13882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13883 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13884 | ac_status=$? |
ac1cb8d3 VS |
13885 | grep -v '^ *+' conftest.er1 >conftest.err |
13886 | rm -f conftest.er1 | |
13887 | cat conftest.err >&5 | |
a848cd7e SC |
13888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13889 | (exit $ac_status); } && | |
9dd0f6c2 | 13890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13892 | (eval $ac_try) 2>&5 | |
13893 | ac_status=$? | |
13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13895 | (exit $ac_status); }; } && | |
13896 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
13902 | eval "$as_ac_Header=yes" | |
13903 | else | |
13904 | echo "$as_me: failed program was:" >&5 | |
13905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13906 | ||
13907 | eval "$as_ac_Header=no" | |
13908 | fi | |
ac1cb8d3 | 13909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13910 | fi |
13911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13913 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13914 | cat >>confdefs.h <<_ACEOF | |
13915 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13916 | _ACEOF | |
13917 | ||
13918 | fi | |
13919 | ||
13920 | done | |
13921 | ||
13922 | ||
13923 | ||
13924 | for ac_header in stdlib.h | |
13925 | do | |
13926 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13932 | fi | |
13933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13935 | else | |
13936 | # Is the header compilable? | |
13937 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13938 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13939 | cat >conftest.$ac_ext <<_ACEOF | |
13940 | /* confdefs.h. */ | |
13941 | _ACEOF | |
13942 | cat confdefs.h >>conftest.$ac_ext | |
13943 | cat >>conftest.$ac_ext <<_ACEOF | |
13944 | /* end confdefs.h. */ | |
13945 | $ac_includes_default | |
13946 | #include <$ac_header> | |
13947 | _ACEOF | |
13948 | rm -f conftest.$ac_objext | |
13949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13950 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13951 | ac_status=$? |
ac1cb8d3 VS |
13952 | grep -v '^ *+' conftest.er1 >conftest.err |
13953 | rm -f conftest.er1 | |
13954 | cat conftest.err >&5 | |
a848cd7e SC |
13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13956 | (exit $ac_status); } && | |
9dd0f6c2 | 13957 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13959 | (eval $ac_try) 2>&5 | |
13960 | ac_status=$? | |
13961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13962 | (exit $ac_status); }; } && | |
13963 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
13969 | ac_header_compiler=yes | |
13970 | else | |
13971 | echo "$as_me: failed program was:" >&5 | |
13972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13973 | ||
13974 | ac_header_compiler=no | |
13975 | fi | |
ac1cb8d3 | 13976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13977 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13978 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13979 | ||
13980 | # Is the header present? | |
13981 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13982 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13983 | cat >conftest.$ac_ext <<_ACEOF | |
13984 | /* confdefs.h. */ | |
13985 | _ACEOF | |
13986 | cat confdefs.h >>conftest.$ac_ext | |
13987 | cat >>conftest.$ac_ext <<_ACEOF | |
13988 | /* end confdefs.h. */ | |
13989 | #include <$ac_header> | |
13990 | _ACEOF | |
13991 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13992 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13993 | ac_status=$? | |
13994 | grep -v '^ *+' conftest.er1 >conftest.err | |
13995 | rm -f conftest.er1 | |
13996 | cat conftest.err >&5 | |
13997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13998 | (exit $ac_status); } >/dev/null; then | |
13999 | if test -s conftest.err; then | |
14000 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14001 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14002 | else |
14003 | ac_cpp_err= | |
14004 | fi | |
14005 | else | |
14006 | ac_cpp_err=yes | |
14007 | fi | |
14008 | if test -z "$ac_cpp_err"; then | |
14009 | ac_header_preproc=yes | |
14010 | else | |
14011 | echo "$as_me: failed program was:" >&5 | |
14012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14013 | ||
14014 | ac_header_preproc=no | |
14015 | fi | |
14016 | rm -f conftest.err conftest.$ac_ext | |
14017 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14018 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14019 | ||
14020 | # So? What about this header? | |
ac1cb8d3 VS |
14021 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14022 | yes:no: ) | |
a848cd7e SC |
14023 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14024 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14025 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14026 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14027 | ac_header_preproc=yes | |
a848cd7e | 14028 | ;; |
ac1cb8d3 | 14029 | no:yes:* ) |
a848cd7e SC |
14030 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14031 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14032 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14033 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14034 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14035 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14036 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14037 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14039 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14040 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14041 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14042 | ( |
14043 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14044 | ## ----------------------------------------- ## |
14045 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14046 | ## ----------------------------------------- ## | |
a848cd7e SC |
14047 | _ASBOX |
14048 | ) | | |
14049 | sed "s/^/$as_me: WARNING: /" >&2 | |
14050 | ;; | |
14051 | esac | |
14052 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14056 | else | |
ac1cb8d3 | 14057 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14058 | fi |
14059 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14060 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14061 | ||
14062 | fi | |
14063 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14064 | cat >>confdefs.h <<_ACEOF | |
14065 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14066 | _ACEOF | |
14067 | ||
14068 | fi | |
14069 | ||
14070 | done | |
14071 | ||
14072 | ||
14073 | for ac_header in malloc.h | |
14074 | do | |
14075 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14076 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14077 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14078 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14079 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14081 | fi | |
14082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14083 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14084 | else | |
14085 | # Is the header compilable? | |
14086 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14087 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14088 | cat >conftest.$ac_ext <<_ACEOF | |
14089 | /* confdefs.h. */ | |
14090 | _ACEOF | |
14091 | cat confdefs.h >>conftest.$ac_ext | |
14092 | cat >>conftest.$ac_ext <<_ACEOF | |
14093 | /* end confdefs.h. */ | |
14094 | $ac_includes_default | |
14095 | #include <$ac_header> | |
14096 | _ACEOF | |
14097 | rm -f conftest.$ac_objext | |
14098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14099 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14100 | ac_status=$? |
ac1cb8d3 VS |
14101 | grep -v '^ *+' conftest.er1 >conftest.err |
14102 | rm -f conftest.er1 | |
14103 | cat conftest.err >&5 | |
a848cd7e SC |
14104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14105 | (exit $ac_status); } && | |
9dd0f6c2 | 14106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14108 | (eval $ac_try) 2>&5 | |
14109 | ac_status=$? | |
14110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14111 | (exit $ac_status); }; } && | |
14112 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
14118 | ac_header_compiler=yes | |
14119 | else | |
14120 | echo "$as_me: failed program was:" >&5 | |
14121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14122 | ||
14123 | ac_header_compiler=no | |
14124 | fi | |
ac1cb8d3 | 14125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14126 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14127 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14128 | ||
14129 | # Is the header present? | |
14130 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14131 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14132 | cat >conftest.$ac_ext <<_ACEOF | |
14133 | /* confdefs.h. */ | |
14134 | _ACEOF | |
14135 | cat confdefs.h >>conftest.$ac_ext | |
14136 | cat >>conftest.$ac_ext <<_ACEOF | |
14137 | /* end confdefs.h. */ | |
14138 | #include <$ac_header> | |
14139 | _ACEOF | |
14140 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14141 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14142 | ac_status=$? | |
14143 | grep -v '^ *+' conftest.er1 >conftest.err | |
14144 | rm -f conftest.er1 | |
14145 | cat conftest.err >&5 | |
14146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14147 | (exit $ac_status); } >/dev/null; then | |
14148 | if test -s conftest.err; then | |
14149 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14150 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14151 | else |
14152 | ac_cpp_err= | |
14153 | fi | |
14154 | else | |
14155 | ac_cpp_err=yes | |
14156 | fi | |
14157 | if test -z "$ac_cpp_err"; then | |
14158 | ac_header_preproc=yes | |
14159 | else | |
14160 | echo "$as_me: failed program was:" >&5 | |
14161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14162 | ||
14163 | ac_header_preproc=no | |
14164 | fi | |
14165 | rm -f conftest.err conftest.$ac_ext | |
14166 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14167 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14168 | ||
14169 | # So? What about this header? | |
ac1cb8d3 VS |
14170 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14171 | yes:no: ) | |
a848cd7e SC |
14172 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14173 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14174 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14175 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14176 | ac_header_preproc=yes | |
a848cd7e | 14177 | ;; |
ac1cb8d3 | 14178 | no:yes:* ) |
a848cd7e SC |
14179 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14180 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14181 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14182 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14183 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14184 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14185 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14186 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14187 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14188 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14189 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14190 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14191 | ( |
14192 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14193 | ## ----------------------------------------- ## |
14194 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14195 | ## ----------------------------------------- ## | |
a848cd7e SC |
14196 | _ASBOX |
14197 | ) | | |
14198 | sed "s/^/$as_me: WARNING: /" >&2 | |
14199 | ;; | |
14200 | esac | |
14201 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14202 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14203 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14205 | else | |
ac1cb8d3 | 14206 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14207 | fi |
14208 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14209 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14210 | ||
14211 | fi | |
14212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14213 | cat >>confdefs.h <<_ACEOF | |
14214 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14215 | _ACEOF | |
14216 | ||
14217 | fi | |
14218 | ||
14219 | done | |
14220 | ||
14221 | ||
14222 | for ac_header in unistd.h | |
14223 | do | |
14224 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14226 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14227 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14228 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14230 | fi | |
14231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14232 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14233 | else | |
14234 | # Is the header compilable? | |
14235 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14236 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14237 | cat >conftest.$ac_ext <<_ACEOF | |
14238 | /* confdefs.h. */ | |
14239 | _ACEOF | |
14240 | cat confdefs.h >>conftest.$ac_ext | |
14241 | cat >>conftest.$ac_ext <<_ACEOF | |
14242 | /* end confdefs.h. */ | |
14243 | $ac_includes_default | |
14244 | #include <$ac_header> | |
14245 | _ACEOF | |
14246 | rm -f conftest.$ac_objext | |
14247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14248 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14249 | ac_status=$? |
ac1cb8d3 VS |
14250 | grep -v '^ *+' conftest.er1 >conftest.err |
14251 | rm -f conftest.er1 | |
14252 | cat conftest.err >&5 | |
a848cd7e SC |
14253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14254 | (exit $ac_status); } && | |
9dd0f6c2 | 14255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14257 | (eval $ac_try) 2>&5 | |
14258 | ac_status=$? | |
14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14260 | (exit $ac_status); }; } && | |
14261 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
14267 | ac_header_compiler=yes | |
14268 | else | |
14269 | echo "$as_me: failed program was:" >&5 | |
14270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14271 | ||
14272 | ac_header_compiler=no | |
14273 | fi | |
ac1cb8d3 | 14274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14275 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14276 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14277 | ||
14278 | # Is the header present? | |
14279 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14280 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14281 | cat >conftest.$ac_ext <<_ACEOF | |
14282 | /* confdefs.h. */ | |
14283 | _ACEOF | |
14284 | cat confdefs.h >>conftest.$ac_ext | |
14285 | cat >>conftest.$ac_ext <<_ACEOF | |
14286 | /* end confdefs.h. */ | |
14287 | #include <$ac_header> | |
14288 | _ACEOF | |
14289 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14290 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14291 | ac_status=$? | |
14292 | grep -v '^ *+' conftest.er1 >conftest.err | |
14293 | rm -f conftest.er1 | |
14294 | cat conftest.err >&5 | |
14295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14296 | (exit $ac_status); } >/dev/null; then | |
14297 | if test -s conftest.err; then | |
14298 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14299 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14300 | else |
14301 | ac_cpp_err= | |
14302 | fi | |
14303 | else | |
14304 | ac_cpp_err=yes | |
14305 | fi | |
14306 | if test -z "$ac_cpp_err"; then | |
14307 | ac_header_preproc=yes | |
14308 | else | |
14309 | echo "$as_me: failed program was:" >&5 | |
14310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14311 | ||
14312 | ac_header_preproc=no | |
14313 | fi | |
14314 | rm -f conftest.err conftest.$ac_ext | |
14315 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14316 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14317 | ||
14318 | # So? What about this header? | |
ac1cb8d3 VS |
14319 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14320 | yes:no: ) | |
a848cd7e SC |
14321 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14322 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14323 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14324 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14325 | ac_header_preproc=yes | |
a848cd7e | 14326 | ;; |
ac1cb8d3 | 14327 | no:yes:* ) |
a848cd7e SC |
14328 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14329 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14330 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14331 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14332 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14333 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14334 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14335 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14336 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14337 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14338 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14339 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14340 | ( |
14341 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14342 | ## ----------------------------------------- ## |
14343 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14344 | ## ----------------------------------------- ## | |
a848cd7e SC |
14345 | _ASBOX |
14346 | ) | | |
14347 | sed "s/^/$as_me: WARNING: /" >&2 | |
14348 | ;; | |
14349 | esac | |
14350 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14354 | else | |
ac1cb8d3 | 14355 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14356 | fi |
14357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14358 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14359 | ||
14360 | fi | |
14361 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14362 | cat >>confdefs.h <<_ACEOF | |
14363 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14364 | _ACEOF | |
14365 | ||
14366 | fi | |
14367 | ||
14368 | done | |
14369 | ||
14370 | ||
14371 | for ac_header in wchar.h | |
14372 | do | |
14373 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14375 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14376 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14377 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14379 | fi | |
14380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14381 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14382 | else | |
14383 | # Is the header compilable? | |
14384 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14385 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14386 | cat >conftest.$ac_ext <<_ACEOF | |
14387 | /* confdefs.h. */ | |
14388 | _ACEOF | |
14389 | cat confdefs.h >>conftest.$ac_ext | |
14390 | cat >>conftest.$ac_ext <<_ACEOF | |
14391 | /* end confdefs.h. */ | |
14392 | $ac_includes_default | |
14393 | #include <$ac_header> | |
14394 | _ACEOF | |
14395 | rm -f conftest.$ac_objext | |
14396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14397 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14398 | ac_status=$? |
ac1cb8d3 VS |
14399 | grep -v '^ *+' conftest.er1 >conftest.err |
14400 | rm -f conftest.er1 | |
14401 | cat conftest.err >&5 | |
a848cd7e SC |
14402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14403 | (exit $ac_status); } && | |
9dd0f6c2 | 14404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14406 | (eval $ac_try) 2>&5 | |
14407 | ac_status=$? | |
14408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14409 | (exit $ac_status); }; } && | |
14410 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
14416 | ac_header_compiler=yes | |
14417 | else | |
14418 | echo "$as_me: failed program was:" >&5 | |
14419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14420 | ||
14421 | ac_header_compiler=no | |
14422 | fi | |
ac1cb8d3 | 14423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14424 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14425 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14426 | ||
14427 | # Is the header present? | |
14428 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14429 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14430 | cat >conftest.$ac_ext <<_ACEOF | |
14431 | /* confdefs.h. */ | |
14432 | _ACEOF | |
14433 | cat confdefs.h >>conftest.$ac_ext | |
14434 | cat >>conftest.$ac_ext <<_ACEOF | |
14435 | /* end confdefs.h. */ | |
14436 | #include <$ac_header> | |
14437 | _ACEOF | |
14438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14440 | ac_status=$? | |
14441 | grep -v '^ *+' conftest.er1 >conftest.err | |
14442 | rm -f conftest.er1 | |
14443 | cat conftest.err >&5 | |
14444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14445 | (exit $ac_status); } >/dev/null; then | |
14446 | if test -s conftest.err; then | |
14447 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14448 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14449 | else |
14450 | ac_cpp_err= | |
14451 | fi | |
14452 | else | |
14453 | ac_cpp_err=yes | |
14454 | fi | |
14455 | if test -z "$ac_cpp_err"; then | |
14456 | ac_header_preproc=yes | |
14457 | else | |
14458 | echo "$as_me: failed program was:" >&5 | |
14459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14460 | ||
14461 | ac_header_preproc=no | |
14462 | fi | |
14463 | rm -f conftest.err conftest.$ac_ext | |
14464 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14465 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14466 | ||
14467 | # So? What about this header? | |
ac1cb8d3 VS |
14468 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14469 | yes:no: ) | |
a848cd7e SC |
14470 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14471 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14472 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14473 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14474 | ac_header_preproc=yes | |
a848cd7e | 14475 | ;; |
ac1cb8d3 | 14476 | no:yes:* ) |
a848cd7e SC |
14477 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14478 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14479 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14480 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14481 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14482 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14483 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14484 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14485 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14486 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14487 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14488 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14489 | ( |
14490 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14491 | ## ----------------------------------------- ## |
14492 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14493 | ## ----------------------------------------- ## | |
a848cd7e SC |
14494 | _ASBOX |
14495 | ) | | |
14496 | sed "s/^/$as_me: WARNING: /" >&2 | |
14497 | ;; | |
14498 | esac | |
14499 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14500 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14501 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14503 | else | |
ac1cb8d3 | 14504 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14505 | fi |
14506 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14507 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14508 | ||
14509 | fi | |
14510 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14511 | cat >>confdefs.h <<_ACEOF | |
14512 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14513 | _ACEOF | |
14514 | ||
14515 | fi | |
14516 | ||
14517 | done | |
14518 | ||
14519 | ||
14520 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
14521 | ||
14522 | for ac_header in wcstr.h | |
14523 | do | |
14524 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14525 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14526 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14530 | fi | |
14531 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14532 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14533 | else | |
14534 | # Is the header compilable? | |
14535 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14536 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14537 | cat >conftest.$ac_ext <<_ACEOF | |
14538 | /* confdefs.h. */ | |
14539 | _ACEOF | |
14540 | cat confdefs.h >>conftest.$ac_ext | |
14541 | cat >>conftest.$ac_ext <<_ACEOF | |
14542 | /* end confdefs.h. */ | |
14543 | $ac_includes_default | |
14544 | #include <$ac_header> | |
14545 | _ACEOF | |
14546 | rm -f conftest.$ac_objext | |
14547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14548 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14549 | ac_status=$? |
ac1cb8d3 VS |
14550 | grep -v '^ *+' conftest.er1 >conftest.err |
14551 | rm -f conftest.er1 | |
14552 | cat conftest.err >&5 | |
a848cd7e SC |
14553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14554 | (exit $ac_status); } && | |
9dd0f6c2 | 14555 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14557 | (eval $ac_try) 2>&5 | |
14558 | ac_status=$? | |
14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14560 | (exit $ac_status); }; } && | |
14561 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
14567 | ac_header_compiler=yes | |
14568 | else | |
14569 | echo "$as_me: failed program was:" >&5 | |
14570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14571 | ||
14572 | ac_header_compiler=no | |
14573 | fi | |
ac1cb8d3 | 14574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14575 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14576 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14577 | ||
14578 | # Is the header present? | |
14579 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14580 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14581 | cat >conftest.$ac_ext <<_ACEOF | |
14582 | /* confdefs.h. */ | |
14583 | _ACEOF | |
14584 | cat confdefs.h >>conftest.$ac_ext | |
14585 | cat >>conftest.$ac_ext <<_ACEOF | |
14586 | /* end confdefs.h. */ | |
14587 | #include <$ac_header> | |
14588 | _ACEOF | |
14589 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14590 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14591 | ac_status=$? | |
14592 | grep -v '^ *+' conftest.er1 >conftest.err | |
14593 | rm -f conftest.er1 | |
14594 | cat conftest.err >&5 | |
14595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14596 | (exit $ac_status); } >/dev/null; then | |
14597 | if test -s conftest.err; then | |
14598 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14599 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14600 | else |
14601 | ac_cpp_err= | |
14602 | fi | |
14603 | else | |
14604 | ac_cpp_err=yes | |
14605 | fi | |
14606 | if test -z "$ac_cpp_err"; then | |
14607 | ac_header_preproc=yes | |
14608 | else | |
14609 | echo "$as_me: failed program was:" >&5 | |
14610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14611 | ||
14612 | ac_header_preproc=no | |
14613 | fi | |
14614 | rm -f conftest.err conftest.$ac_ext | |
14615 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14616 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14617 | ||
14618 | # So? What about this header? | |
ac1cb8d3 VS |
14619 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14620 | yes:no: ) | |
a848cd7e SC |
14621 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14622 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14623 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14624 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14625 | ac_header_preproc=yes | |
a848cd7e | 14626 | ;; |
ac1cb8d3 | 14627 | no:yes:* ) |
a848cd7e SC |
14628 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14629 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14630 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14631 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14632 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14633 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14634 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14635 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14636 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14637 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14638 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14639 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14640 | ( |
14641 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14642 | ## ----------------------------------------- ## |
14643 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14644 | ## ----------------------------------------- ## | |
a848cd7e SC |
14645 | _ASBOX |
14646 | ) | | |
14647 | sed "s/^/$as_me: WARNING: /" >&2 | |
14648 | ;; | |
14649 | esac | |
14650 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14651 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14652 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14654 | else | |
ac1cb8d3 | 14655 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14656 | fi |
14657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14658 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14659 | ||
14660 | fi | |
14661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14662 | cat >>confdefs.h <<_ACEOF | |
14663 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14664 | _ACEOF | |
14665 | ||
14666 | fi | |
14667 | ||
14668 | done | |
14669 | ||
14670 | fi | |
14671 | ||
14672 | ||
14673 | for ac_header in fnmatch.h | |
14674 | do | |
14675 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14677 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14681 | fi | |
14682 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14683 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14684 | else | |
14685 | # Is the header compilable? | |
14686 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14687 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14688 | cat >conftest.$ac_ext <<_ACEOF | |
14689 | /* confdefs.h. */ | |
14690 | _ACEOF | |
14691 | cat confdefs.h >>conftest.$ac_ext | |
14692 | cat >>conftest.$ac_ext <<_ACEOF | |
14693 | /* end confdefs.h. */ | |
14694 | $ac_includes_default | |
14695 | #include <$ac_header> | |
14696 | _ACEOF | |
14697 | rm -f conftest.$ac_objext | |
14698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14699 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14700 | ac_status=$? |
ac1cb8d3 VS |
14701 | grep -v '^ *+' conftest.er1 >conftest.err |
14702 | rm -f conftest.er1 | |
14703 | cat conftest.err >&5 | |
a848cd7e SC |
14704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14705 | (exit $ac_status); } && | |
9dd0f6c2 | 14706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14708 | (eval $ac_try) 2>&5 | |
14709 | ac_status=$? | |
14710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14711 | (exit $ac_status); }; } && | |
14712 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
14718 | ac_header_compiler=yes | |
14719 | else | |
14720 | echo "$as_me: failed program was:" >&5 | |
14721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14722 | ||
14723 | ac_header_compiler=no | |
14724 | fi | |
ac1cb8d3 | 14725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14726 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14727 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14728 | ||
14729 | # Is the header present? | |
14730 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14731 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14732 | cat >conftest.$ac_ext <<_ACEOF | |
14733 | /* confdefs.h. */ | |
14734 | _ACEOF | |
14735 | cat confdefs.h >>conftest.$ac_ext | |
14736 | cat >>conftest.$ac_ext <<_ACEOF | |
14737 | /* end confdefs.h. */ | |
14738 | #include <$ac_header> | |
14739 | _ACEOF | |
14740 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14741 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14742 | ac_status=$? | |
14743 | grep -v '^ *+' conftest.er1 >conftest.err | |
14744 | rm -f conftest.er1 | |
14745 | cat conftest.err >&5 | |
14746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14747 | (exit $ac_status); } >/dev/null; then | |
14748 | if test -s conftest.err; then | |
14749 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14750 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14751 | else |
14752 | ac_cpp_err= | |
14753 | fi | |
14754 | else | |
14755 | ac_cpp_err=yes | |
14756 | fi | |
14757 | if test -z "$ac_cpp_err"; then | |
14758 | ac_header_preproc=yes | |
14759 | else | |
14760 | echo "$as_me: failed program was:" >&5 | |
14761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14762 | ||
14763 | ac_header_preproc=no | |
14764 | fi | |
14765 | rm -f conftest.err conftest.$ac_ext | |
14766 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14767 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14768 | ||
14769 | # So? What about this header? | |
ac1cb8d3 VS |
14770 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14771 | yes:no: ) | |
a848cd7e SC |
14772 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14773 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14774 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14775 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14776 | ac_header_preproc=yes | |
a848cd7e | 14777 | ;; |
ac1cb8d3 | 14778 | no:yes:* ) |
a848cd7e SC |
14779 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14780 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14781 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14782 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14783 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14784 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14785 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14786 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14787 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14788 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14789 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14790 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14791 | ( |
14792 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14793 | ## ----------------------------------------- ## |
14794 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14795 | ## ----------------------------------------- ## | |
a848cd7e SC |
14796 | _ASBOX |
14797 | ) | | |
14798 | sed "s/^/$as_me: WARNING: /" >&2 | |
14799 | ;; | |
14800 | esac | |
14801 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14802 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14805 | else | |
ac1cb8d3 | 14806 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14807 | fi |
14808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14810 | ||
14811 | fi | |
14812 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14813 | cat >>confdefs.h <<_ACEOF | |
14814 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14815 | _ACEOF | |
14816 | ||
14817 | fi | |
14818 | ||
14819 | done | |
14820 | ||
14821 | ||
14822 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
14823 | ||
14824 | for ac_func in fnmatch | |
14825 | do | |
14826 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14827 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14828 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14829 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14831 | else | |
14832 | cat >conftest.$ac_ext <<_ACEOF | |
14833 | /* confdefs.h. */ | |
14834 | _ACEOF | |
14835 | cat confdefs.h >>conftest.$ac_ext | |
14836 | cat >>conftest.$ac_ext <<_ACEOF | |
14837 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
14838 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14839 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14840 | #define $ac_func innocuous_$ac_func | |
14841 | ||
a848cd7e SC |
14842 | /* System header to define __stub macros and hopefully few prototypes, |
14843 | which can conflict with char $ac_func (); below. | |
14844 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14845 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 14846 | |
a848cd7e SC |
14847 | #ifdef __STDC__ |
14848 | # include <limits.h> | |
14849 | #else | |
14850 | # include <assert.h> | |
14851 | #endif | |
ac1cb8d3 VS |
14852 | |
14853 | #undef $ac_func | |
14854 | ||
a848cd7e SC |
14855 | /* Override any gcc2 internal prototype to avoid an error. */ |
14856 | #ifdef __cplusplus | |
14857 | extern "C" | |
14858 | { | |
14859 | #endif | |
14860 | /* We use char because int might match the return type of a gcc2 | |
14861 | builtin and then its argument prototype would still apply. */ | |
14862 | char $ac_func (); | |
14863 | /* The GNU C library defines this for functions which it implements | |
14864 | to always fail with ENOSYS. Some functions are actually named | |
14865 | something starting with __ and the normal name is an alias. */ | |
14866 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14867 | choke me | |
14868 | #else | |
14869 | char (*f) () = $ac_func; | |
14870 | #endif | |
14871 | #ifdef __cplusplus | |
14872 | } | |
14873 | #endif | |
14874 | ||
14875 | int | |
14876 | main () | |
14877 | { | |
14878 | return f != $ac_func; | |
14879 | ; | |
14880 | return 0; | |
14881 | } | |
14882 | _ACEOF | |
14883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14885 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14886 | ac_status=$? |
ac1cb8d3 VS |
14887 | grep -v '^ *+' conftest.er1 >conftest.err |
14888 | rm -f conftest.er1 | |
14889 | cat conftest.err >&5 | |
a848cd7e SC |
14890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14891 | (exit $ac_status); } && | |
9dd0f6c2 | 14892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14894 | (eval $ac_try) 2>&5 | |
14895 | ac_status=$? | |
14896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14897 | (exit $ac_status); }; } && | |
14898 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
14904 | eval "$as_ac_var=yes" | |
14905 | else | |
14906 | echo "$as_me: failed program was:" >&5 | |
14907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14908 | ||
14909 | eval "$as_ac_var=no" | |
14910 | fi | |
ac1cb8d3 VS |
14911 | rm -f conftest.err conftest.$ac_objext \ |
14912 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14913 | fi |
14914 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14915 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14916 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14917 | cat >>confdefs.h <<_ACEOF | |
14918 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14919 | _ACEOF | |
14920 | ||
14921 | fi | |
14922 | done | |
14923 | ||
14924 | fi | |
14925 | ||
14926 | ||
14927 | for ac_header in langinfo.h | |
14928 | do | |
14929 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14931 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14932 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14933 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14935 | fi | |
14936 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14937 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14938 | else | |
14939 | # Is the header compilable? | |
14940 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14941 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14942 | cat >conftest.$ac_ext <<_ACEOF | |
14943 | /* confdefs.h. */ | |
14944 | _ACEOF | |
14945 | cat confdefs.h >>conftest.$ac_ext | |
14946 | cat >>conftest.$ac_ext <<_ACEOF | |
14947 | /* end confdefs.h. */ | |
14948 | $ac_includes_default | |
14949 | #include <$ac_header> | |
14950 | _ACEOF | |
14951 | rm -f conftest.$ac_objext | |
14952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14953 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14954 | ac_status=$? |
ac1cb8d3 VS |
14955 | grep -v '^ *+' conftest.er1 >conftest.err |
14956 | rm -f conftest.er1 | |
14957 | cat conftest.err >&5 | |
a848cd7e SC |
14958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14959 | (exit $ac_status); } && | |
9dd0f6c2 | 14960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14962 | (eval $ac_try) 2>&5 | |
14963 | ac_status=$? | |
14964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14965 | (exit $ac_status); }; } && | |
14966 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
14972 | ac_header_compiler=yes | |
14973 | else | |
14974 | echo "$as_me: failed program was:" >&5 | |
14975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14976 | ||
14977 | ac_header_compiler=no | |
14978 | fi | |
ac1cb8d3 | 14979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14980 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14981 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14982 | ||
14983 | # Is the header present? | |
14984 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14985 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14986 | cat >conftest.$ac_ext <<_ACEOF | |
14987 | /* confdefs.h. */ | |
14988 | _ACEOF | |
14989 | cat confdefs.h >>conftest.$ac_ext | |
14990 | cat >>conftest.$ac_ext <<_ACEOF | |
14991 | /* end confdefs.h. */ | |
14992 | #include <$ac_header> | |
14993 | _ACEOF | |
14994 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14995 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14996 | ac_status=$? | |
14997 | grep -v '^ *+' conftest.er1 >conftest.err | |
14998 | rm -f conftest.er1 | |
14999 | cat conftest.err >&5 | |
15000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15001 | (exit $ac_status); } >/dev/null; then | |
15002 | if test -s conftest.err; then | |
15003 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15004 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15005 | else |
15006 | ac_cpp_err= | |
15007 | fi | |
15008 | else | |
15009 | ac_cpp_err=yes | |
15010 | fi | |
15011 | if test -z "$ac_cpp_err"; then | |
15012 | ac_header_preproc=yes | |
15013 | else | |
15014 | echo "$as_me: failed program was:" >&5 | |
15015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15016 | ||
15017 | ac_header_preproc=no | |
15018 | fi | |
15019 | rm -f conftest.err conftest.$ac_ext | |
15020 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15021 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15022 | ||
15023 | # So? What about this header? | |
ac1cb8d3 VS |
15024 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15025 | yes:no: ) | |
a848cd7e SC |
15026 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15027 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15028 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15029 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15030 | ac_header_preproc=yes | |
a848cd7e | 15031 | ;; |
ac1cb8d3 | 15032 | no:yes:* ) |
a848cd7e SC |
15033 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15034 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15035 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15036 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15037 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15038 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15039 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15040 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15042 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15043 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15044 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15045 | ( |
15046 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15047 | ## ----------------------------------------- ## |
15048 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15049 | ## ----------------------------------------- ## | |
a848cd7e SC |
15050 | _ASBOX |
15051 | ) | | |
15052 | sed "s/^/$as_me: WARNING: /" >&2 | |
15053 | ;; | |
15054 | esac | |
15055 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15059 | else | |
ac1cb8d3 | 15060 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15061 | fi |
15062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15064 | ||
15065 | fi | |
15066 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15067 | cat >>confdefs.h <<_ACEOF | |
15068 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15069 | _ACEOF | |
15070 | ||
15071 | fi | |
15072 | ||
15073 | done | |
15074 | ||
15075 | ||
15076 | case "${host}" in | |
15077 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
15078 | if test $ac_cv_header_langinfo_h = "yes" \ |
15079 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
15080 | -o "$wx_cv_gccversion" = "EMX3" \ | |
15081 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
15082 | LIBS="$LIBS -lintl" |
15083 | fi | |
15084 | ;; | |
15085 | esac | |
15086 | ||
15087 | if test "$wxUSE_GUI" = "yes"; then | |
15088 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
15089 | ||
15090 | for ac_header in X11/Xlib.h | |
15091 | do | |
15092 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15098 | fi | |
15099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15100 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15101 | else | |
15102 | # Is the header compilable? | |
15103 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15104 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15105 | cat >conftest.$ac_ext <<_ACEOF | |
15106 | /* confdefs.h. */ | |
15107 | _ACEOF | |
15108 | cat confdefs.h >>conftest.$ac_ext | |
15109 | cat >>conftest.$ac_ext <<_ACEOF | |
15110 | /* end confdefs.h. */ | |
15111 | $ac_includes_default | |
15112 | #include <$ac_header> | |
15113 | _ACEOF | |
15114 | rm -f conftest.$ac_objext | |
15115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15116 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15117 | ac_status=$? |
ac1cb8d3 VS |
15118 | grep -v '^ *+' conftest.er1 >conftest.err |
15119 | rm -f conftest.er1 | |
15120 | cat conftest.err >&5 | |
a848cd7e SC |
15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15122 | (exit $ac_status); } && | |
9dd0f6c2 | 15123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15125 | (eval $ac_try) 2>&5 | |
15126 | ac_status=$? | |
15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15128 | (exit $ac_status); }; } && | |
15129 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15135 | ac_header_compiler=yes | |
15136 | else | |
15137 | echo "$as_me: failed program was:" >&5 | |
15138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15139 | ||
15140 | ac_header_compiler=no | |
15141 | fi | |
ac1cb8d3 | 15142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15143 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15144 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15145 | ||
15146 | # Is the header present? | |
15147 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15148 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15149 | cat >conftest.$ac_ext <<_ACEOF | |
15150 | /* confdefs.h. */ | |
15151 | _ACEOF | |
15152 | cat confdefs.h >>conftest.$ac_ext | |
15153 | cat >>conftest.$ac_ext <<_ACEOF | |
15154 | /* end confdefs.h. */ | |
15155 | #include <$ac_header> | |
15156 | _ACEOF | |
15157 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15159 | ac_status=$? | |
15160 | grep -v '^ *+' conftest.er1 >conftest.err | |
15161 | rm -f conftest.er1 | |
15162 | cat conftest.err >&5 | |
15163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15164 | (exit $ac_status); } >/dev/null; then | |
15165 | if test -s conftest.err; then | |
15166 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15167 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15168 | else |
15169 | ac_cpp_err= | |
15170 | fi | |
15171 | else | |
15172 | ac_cpp_err=yes | |
15173 | fi | |
15174 | if test -z "$ac_cpp_err"; then | |
15175 | ac_header_preproc=yes | |
15176 | else | |
15177 | echo "$as_me: failed program was:" >&5 | |
15178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15179 | ||
15180 | ac_header_preproc=no | |
15181 | fi | |
15182 | rm -f conftest.err conftest.$ac_ext | |
15183 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15184 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15185 | ||
15186 | # So? What about this header? | |
ac1cb8d3 VS |
15187 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15188 | yes:no: ) | |
a848cd7e SC |
15189 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15190 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15191 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15192 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15193 | ac_header_preproc=yes | |
a848cd7e | 15194 | ;; |
ac1cb8d3 | 15195 | no:yes:* ) |
a848cd7e SC |
15196 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15197 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15198 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15199 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15200 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15201 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15202 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15203 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15204 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15205 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15206 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15207 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15208 | ( |
15209 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15210 | ## ----------------------------------------- ## |
15211 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15212 | ## ----------------------------------------- ## | |
a848cd7e SC |
15213 | _ASBOX |
15214 | ) | | |
15215 | sed "s/^/$as_me: WARNING: /" >&2 | |
15216 | ;; | |
15217 | esac | |
15218 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15222 | else | |
ac1cb8d3 | 15223 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15224 | fi |
15225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15226 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15227 | ||
15228 | fi | |
15229 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15230 | cat >>confdefs.h <<_ACEOF | |
15231 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15232 | _ACEOF | |
15233 | ||
15234 | fi | |
15235 | ||
15236 | done | |
15237 | ||
15238 | ||
15239 | for ac_header in X11/XKBlib.h | |
15240 | do | |
15241 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15242 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15246 | else | |
15247 | cat >conftest.$ac_ext <<_ACEOF | |
15248 | /* confdefs.h. */ | |
15249 | _ACEOF | |
15250 | cat confdefs.h >>conftest.$ac_ext | |
15251 | cat >>conftest.$ac_ext <<_ACEOF | |
15252 | /* end confdefs.h. */ | |
15253 | ||
15254 | #if HAVE_X11_XLIB_H | |
15255 | #include <X11/Xlib.h> | |
15256 | #endif | |
15257 | ||
15258 | ||
15259 | #include <$ac_header> | |
15260 | _ACEOF | |
15261 | rm -f conftest.$ac_objext | |
15262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15263 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15264 | ac_status=$? |
ac1cb8d3 VS |
15265 | grep -v '^ *+' conftest.er1 >conftest.err |
15266 | rm -f conftest.er1 | |
15267 | cat conftest.err >&5 | |
a848cd7e SC |
15268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15269 | (exit $ac_status); } && | |
9dd0f6c2 | 15270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15272 | (eval $ac_try) 2>&5 | |
15273 | ac_status=$? | |
15274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15275 | (exit $ac_status); }; } && | |
15276 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15282 | eval "$as_ac_Header=yes" | |
15283 | else | |
15284 | echo "$as_me: failed program was:" >&5 | |
15285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15286 | ||
15287 | eval "$as_ac_Header=no" | |
15288 | fi | |
ac1cb8d3 | 15289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15290 | fi |
15291 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15292 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15294 | cat >>confdefs.h <<_ACEOF | |
15295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15296 | _ACEOF | |
15297 | ||
15298 | fi | |
15299 | ||
15300 | done | |
15301 | ||
15302 | fi | |
15303 | fi | |
15304 | ||
15305 | ||
15306 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15307 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15308 | if test "${ac_cv_c_const+set}" = set; then | |
15309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15310 | else | |
15311 | cat >conftest.$ac_ext <<_ACEOF | |
15312 | /* confdefs.h. */ | |
15313 | _ACEOF | |
15314 | cat confdefs.h >>conftest.$ac_ext | |
15315 | cat >>conftest.$ac_ext <<_ACEOF | |
15316 | /* end confdefs.h. */ | |
15317 | ||
15318 | int | |
15319 | main () | |
15320 | { | |
15321 | /* FIXME: Include the comments suggested by Paul. */ | |
15322 | #ifndef __cplusplus | |
15323 | /* Ultrix mips cc rejects this. */ | |
15324 | typedef int charset[2]; | |
15325 | const charset x; | |
15326 | /* SunOS 4.1.1 cc rejects this. */ | |
15327 | char const *const *ccp; | |
15328 | char **p; | |
15329 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15330 | struct point {int x, y;}; | |
15331 | static struct point const zero = {0,0}; | |
15332 | /* AIX XL C 1.02.0.0 rejects this. | |
15333 | It does not let you subtract one const X* pointer from another in | |
15334 | an arm of an if-expression whose if-part is not a constant | |
15335 | expression */ | |
15336 | const char *g = "string"; | |
15337 | ccp = &g + (g ? g-g : 0); | |
15338 | /* HPUX 7.0 cc rejects these. */ | |
15339 | ++ccp; | |
15340 | p = (char**) ccp; | |
15341 | ccp = (char const *const *) p; | |
15342 | { /* SCO 3.2v4 cc rejects this. */ | |
15343 | char *t; | |
15344 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15345 | ||
15346 | *t++ = 0; | |
15347 | } | |
15348 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15349 | int x[] = {25, 17}; | |
15350 | const int *foo = &x[0]; | |
15351 | ++foo; | |
15352 | } | |
15353 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15354 | typedef const int *iptr; | |
15355 | iptr p = 0; | |
15356 | ++p; | |
15357 | } | |
15358 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15359 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15360 | struct s { int j; const int *ap[3]; }; | |
15361 | struct s *b; b->j = 5; | |
15362 | } | |
15363 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15364 | const int foo = 10; | |
15365 | } | |
15366 | #endif | |
15367 | ||
15368 | ; | |
15369 | return 0; | |
15370 | } | |
15371 | _ACEOF | |
15372 | rm -f conftest.$ac_objext | |
15373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15374 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15375 | ac_status=$? |
ac1cb8d3 VS |
15376 | grep -v '^ *+' conftest.er1 >conftest.err |
15377 | rm -f conftest.er1 | |
15378 | cat conftest.err >&5 | |
a848cd7e SC |
15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15380 | (exit $ac_status); } && | |
9dd0f6c2 | 15381 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15383 | (eval $ac_try) 2>&5 | |
15384 | ac_status=$? | |
15385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15386 | (exit $ac_status); }; } && | |
15387 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15393 | ac_cv_c_const=yes | |
15394 | else | |
15395 | echo "$as_me: failed program was:" >&5 | |
15396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15397 | ||
15398 | ac_cv_c_const=no | |
15399 | fi | |
ac1cb8d3 | 15400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15401 | fi |
15402 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15403 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15404 | if test $ac_cv_c_const = no; then | |
15405 | ||
15406 | cat >>confdefs.h <<\_ACEOF | |
15407 | #define const | |
15408 | _ACEOF | |
15409 | ||
15410 | fi | |
15411 | ||
15412 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15413 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15414 | if test "${ac_cv_c_inline+set}" = set; then | |
15415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15416 | else | |
15417 | ac_cv_c_inline=no | |
15418 | for ac_kw in inline __inline__ __inline; do | |
15419 | cat >conftest.$ac_ext <<_ACEOF | |
15420 | /* confdefs.h. */ | |
15421 | _ACEOF | |
15422 | cat confdefs.h >>conftest.$ac_ext | |
15423 | cat >>conftest.$ac_ext <<_ACEOF | |
15424 | /* end confdefs.h. */ | |
15425 | #ifndef __cplusplus | |
15426 | typedef int foo_t; | |
15427 | static $ac_kw foo_t static_foo () {return 0; } | |
15428 | $ac_kw foo_t foo () {return 0; } | |
15429 | #endif | |
15430 | ||
15431 | _ACEOF | |
15432 | rm -f conftest.$ac_objext | |
15433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15434 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15435 | ac_status=$? |
ac1cb8d3 VS |
15436 | grep -v '^ *+' conftest.er1 >conftest.err |
15437 | rm -f conftest.er1 | |
15438 | cat conftest.err >&5 | |
a848cd7e SC |
15439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15440 | (exit $ac_status); } && | |
9dd0f6c2 | 15441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15443 | (eval $ac_try) 2>&5 | |
15444 | ac_status=$? | |
15445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15446 | (exit $ac_status); }; } && | |
15447 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15453 | ac_cv_c_inline=$ac_kw; break | |
15454 | else | |
15455 | echo "$as_me: failed program was:" >&5 | |
15456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15457 | ||
15458 | fi | |
ac1cb8d3 | 15459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15460 | done |
15461 | ||
15462 | fi | |
15463 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
15464 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
15465 | |
15466 | ||
a848cd7e SC |
15467 | case $ac_cv_c_inline in |
15468 | inline | yes) ;; | |
ac1cb8d3 VS |
15469 | *) |
15470 | case $ac_cv_c_inline in | |
15471 | no) ac_val=;; | |
15472 | *) ac_val=$ac_cv_c_inline;; | |
15473 | esac | |
15474 | cat >>confdefs.h <<_ACEOF | |
15475 | #ifndef __cplusplus | |
15476 | #define inline $ac_val | |
15477 | #endif | |
de59c161 | 15478 | _ACEOF |
ac1cb8d3 | 15479 | ;; |
a848cd7e SC |
15480 | esac |
15481 | ||
15482 | ||
15483 | echo "$as_me:$LINENO: checking for char" >&5 | |
15484 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15485 | if test "${ac_cv_type_char+set}" = set; then | |
15486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15487 | else | |
15488 | cat >conftest.$ac_ext <<_ACEOF | |
15489 | /* confdefs.h. */ | |
15490 | _ACEOF | |
15491 | cat confdefs.h >>conftest.$ac_ext | |
15492 | cat >>conftest.$ac_ext <<_ACEOF | |
15493 | /* end confdefs.h. */ | |
15494 | $ac_includes_default | |
15495 | int | |
15496 | main () | |
15497 | { | |
15498 | if ((char *) 0) | |
15499 | return 0; | |
15500 | if (sizeof (char)) | |
15501 | return 0; | |
15502 | ; | |
15503 | return 0; | |
15504 | } | |
15505 | _ACEOF | |
15506 | rm -f conftest.$ac_objext | |
15507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15508 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15509 | ac_status=$? |
ac1cb8d3 VS |
15510 | grep -v '^ *+' conftest.er1 >conftest.err |
15511 | rm -f conftest.er1 | |
15512 | cat conftest.err >&5 | |
a848cd7e SC |
15513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15514 | (exit $ac_status); } && | |
9dd0f6c2 | 15515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15517 | (eval $ac_try) 2>&5 | |
15518 | ac_status=$? | |
15519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15520 | (exit $ac_status); }; } && | |
15521 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15527 | ac_cv_type_char=yes | |
15528 | else | |
15529 | echo "$as_me: failed program was:" >&5 | |
15530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15531 | ||
15532 | ac_cv_type_char=no | |
15533 | fi | |
ac1cb8d3 | 15534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15535 | fi |
15536 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15537 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15538 | ||
15539 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15540 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15541 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15543 | else | |
15544 | if test "$ac_cv_type_char" = yes; then | |
15545 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15546 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15547 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15548 | # This bug is HP SR number 8606223364. | |
15549 | if test "$cross_compiling" = yes; then | |
15550 | # Depending upon the size, compute the lo and hi bounds. | |
15551 | cat >conftest.$ac_ext <<_ACEOF | |
15552 | /* confdefs.h. */ | |
15553 | _ACEOF | |
15554 | cat confdefs.h >>conftest.$ac_ext | |
15555 | cat >>conftest.$ac_ext <<_ACEOF | |
15556 | /* end confdefs.h. */ | |
15557 | $ac_includes_default | |
15558 | int | |
15559 | main () | |
15560 | { | |
15561 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15562 | test_array [0] = 0 | |
15563 | ||
15564 | ; | |
15565 | return 0; | |
15566 | } | |
15567 | _ACEOF | |
15568 | rm -f conftest.$ac_objext | |
15569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15570 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15571 | ac_status=$? |
ac1cb8d3 VS |
15572 | grep -v '^ *+' conftest.er1 >conftest.err |
15573 | rm -f conftest.er1 | |
15574 | cat conftest.err >&5 | |
a848cd7e SC |
15575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15576 | (exit $ac_status); } && | |
9dd0f6c2 | 15577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15579 | (eval $ac_try) 2>&5 | |
15580 | ac_status=$? | |
15581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15582 | (exit $ac_status); }; } && | |
15583 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15589 | ac_lo=0 ac_mid=0 | |
15590 | while :; do | |
15591 | cat >conftest.$ac_ext <<_ACEOF | |
15592 | /* confdefs.h. */ | |
15593 | _ACEOF | |
15594 | cat confdefs.h >>conftest.$ac_ext | |
15595 | cat >>conftest.$ac_ext <<_ACEOF | |
15596 | /* end confdefs.h. */ | |
15597 | $ac_includes_default | |
15598 | int | |
15599 | main () | |
15600 | { | |
15601 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15602 | test_array [0] = 0 | |
15603 | ||
15604 | ; | |
15605 | return 0; | |
15606 | } | |
15607 | _ACEOF | |
15608 | rm -f conftest.$ac_objext | |
15609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15610 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15611 | ac_status=$? |
ac1cb8d3 VS |
15612 | grep -v '^ *+' conftest.er1 >conftest.err |
15613 | rm -f conftest.er1 | |
15614 | cat conftest.err >&5 | |
a848cd7e SC |
15615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15616 | (exit $ac_status); } && | |
9dd0f6c2 | 15617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15619 | (eval $ac_try) 2>&5 | |
15620 | ac_status=$? | |
15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15622 | (exit $ac_status); }; } && | |
15623 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15629 | ac_hi=$ac_mid; break | |
15630 | else | |
15631 | echo "$as_me: failed program was:" >&5 | |
15632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15633 | ||
15634 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15635 | if test $ac_lo -le $ac_mid; then |
15636 | ac_lo= ac_hi= | |
15637 | break | |
15638 | fi | |
15639 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15640 | fi |
ac1cb8d3 | 15641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15642 | done |
15643 | else | |
15644 | echo "$as_me: failed program was:" >&5 | |
15645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15646 | ||
15647 | cat >conftest.$ac_ext <<_ACEOF | |
15648 | /* confdefs.h. */ | |
15649 | _ACEOF | |
15650 | cat confdefs.h >>conftest.$ac_ext | |
15651 | cat >>conftest.$ac_ext <<_ACEOF | |
15652 | /* end confdefs.h. */ | |
15653 | $ac_includes_default | |
15654 | int | |
15655 | main () | |
15656 | { | |
15657 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
15658 | test_array [0] = 0 | |
15659 | ||
15660 | ; | |
15661 | return 0; | |
15662 | } | |
15663 | _ACEOF | |
15664 | rm -f conftest.$ac_objext | |
15665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15666 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15667 | ac_status=$? |
ac1cb8d3 VS |
15668 | grep -v '^ *+' conftest.er1 >conftest.err |
15669 | rm -f conftest.er1 | |
15670 | cat conftest.err >&5 | |
a848cd7e SC |
15671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15672 | (exit $ac_status); } && | |
9dd0f6c2 | 15673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15675 | (eval $ac_try) 2>&5 | |
15676 | ac_status=$? | |
15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15678 | (exit $ac_status); }; } && | |
15679 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15685 | ac_hi=-1 ac_mid=-1 | |
15686 | while :; do | |
15687 | cat >conftest.$ac_ext <<_ACEOF | |
15688 | /* confdefs.h. */ | |
15689 | _ACEOF | |
15690 | cat confdefs.h >>conftest.$ac_ext | |
15691 | cat >>conftest.$ac_ext <<_ACEOF | |
15692 | /* end confdefs.h. */ | |
15693 | $ac_includes_default | |
15694 | int | |
15695 | main () | |
15696 | { | |
15697 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15698 | test_array [0] = 0 | |
15699 | ||
15700 | ; | |
15701 | return 0; | |
15702 | } | |
15703 | _ACEOF | |
15704 | rm -f conftest.$ac_objext | |
15705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15706 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15707 | ac_status=$? |
ac1cb8d3 VS |
15708 | grep -v '^ *+' conftest.er1 >conftest.err |
15709 | rm -f conftest.er1 | |
15710 | cat conftest.err >&5 | |
a848cd7e SC |
15711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15712 | (exit $ac_status); } && | |
9dd0f6c2 | 15713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15715 | (eval $ac_try) 2>&5 | |
15716 | ac_status=$? | |
15717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15718 | (exit $ac_status); }; } && | |
15719 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15725 | ac_lo=$ac_mid; break | |
15726 | else | |
15727 | echo "$as_me: failed program was:" >&5 | |
15728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15729 | ||
15730 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15731 | if test $ac_mid -le $ac_hi; then |
15732 | ac_lo= ac_hi= | |
15733 | break | |
15734 | fi | |
15735 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15736 | fi |
ac1cb8d3 | 15737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15738 | done |
15739 | else | |
15740 | echo "$as_me: failed program was:" >&5 | |
15741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15742 | ||
15743 | ac_lo= ac_hi= | |
15744 | fi | |
ac1cb8d3 | 15745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15746 | fi |
ac1cb8d3 | 15747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15748 | # Binary search between lo and hi bounds. |
15749 | while test "x$ac_lo" != "x$ac_hi"; do | |
15750 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15751 | cat >conftest.$ac_ext <<_ACEOF | |
15752 | /* confdefs.h. */ | |
15753 | _ACEOF | |
15754 | cat confdefs.h >>conftest.$ac_ext | |
15755 | cat >>conftest.$ac_ext <<_ACEOF | |
15756 | /* end confdefs.h. */ | |
15757 | $ac_includes_default | |
15758 | int | |
15759 | main () | |
15760 | { | |
15761 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15762 | test_array [0] = 0 | |
15763 | ||
15764 | ; | |
15765 | return 0; | |
15766 | } | |
15767 | _ACEOF | |
15768 | rm -f conftest.$ac_objext | |
15769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15770 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15771 | ac_status=$? |
ac1cb8d3 VS |
15772 | grep -v '^ *+' conftest.er1 >conftest.err |
15773 | rm -f conftest.er1 | |
15774 | cat conftest.err >&5 | |
a848cd7e SC |
15775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15776 | (exit $ac_status); } && | |
9dd0f6c2 | 15777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15779 | (eval $ac_try) 2>&5 | |
15780 | ac_status=$? | |
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15782 | (exit $ac_status); }; } && | |
15783 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15789 | ac_hi=$ac_mid | |
15790 | else | |
15791 | echo "$as_me: failed program was:" >&5 | |
15792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15793 | ||
15794 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15795 | fi | |
ac1cb8d3 | 15796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15797 | done |
15798 | case $ac_lo in | |
15799 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
15800 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15801 | See \`config.log' for more details." >&5 | |
15802 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15803 | See \`config.log' for more details." >&2;} | |
15804 | { (exit 1); exit 1; }; } ;; | |
15805 | esac | |
15806 | else | |
15807 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
15808 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15809 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15810 | { (exit 1); exit 1; }; } |
15811 | else | |
15812 | cat >conftest.$ac_ext <<_ACEOF | |
15813 | /* confdefs.h. */ | |
15814 | _ACEOF | |
15815 | cat confdefs.h >>conftest.$ac_ext | |
15816 | cat >>conftest.$ac_ext <<_ACEOF | |
15817 | /* end confdefs.h. */ | |
15818 | $ac_includes_default | |
15819 | long longval () { return (long) (sizeof (char)); } | |
15820 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
15821 | #include <stdio.h> | |
15822 | #include <stdlib.h> | |
15823 | int | |
15824 | main () | |
15825 | { | |
15826 | ||
15827 | FILE *f = fopen ("conftest.val", "w"); | |
15828 | if (! f) | |
15829 | exit (1); | |
15830 | if (((long) (sizeof (char))) < 0) | |
15831 | { | |
15832 | long i = longval (); | |
15833 | if (i != ((long) (sizeof (char)))) | |
15834 | exit (1); | |
15835 | fprintf (f, "%ld\n", i); | |
15836 | } | |
15837 | else | |
15838 | { | |
15839 | unsigned long i = ulongval (); | |
15840 | if (i != ((long) (sizeof (char)))) | |
15841 | exit (1); | |
15842 | fprintf (f, "%lu\n", i); | |
15843 | } | |
15844 | exit (ferror (f) || fclose (f) != 0); | |
15845 | ||
15846 | ; | |
15847 | return 0; | |
15848 | } | |
15849 | _ACEOF | |
15850 | rm -f conftest$ac_exeext | |
15851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15852 | (eval $ac_link) 2>&5 | |
15853 | ac_status=$? | |
15854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15857 | (eval $ac_try) 2>&5 | |
15858 | ac_status=$? | |
15859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15860 | (exit $ac_status); }; }; then | |
15861 | ac_cv_sizeof_char=`cat conftest.val` | |
15862 | else | |
15863 | echo "$as_me: program exited with status $ac_status" >&5 | |
15864 | echo "$as_me: failed program was:" >&5 | |
15865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15866 | ||
15867 | ( exit $ac_status ) | |
15868 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15869 | See \`config.log' for more details." >&5 | |
15870 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15871 | See \`config.log' for more details." >&2;} | |
15872 | { (exit 1); exit 1; }; } | |
15873 | fi | |
ac1cb8d3 | 15874 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15875 | fi |
15876 | fi | |
15877 | rm -f conftest.val | |
15878 | else | |
15879 | ac_cv_sizeof_char=0 | |
15880 | fi | |
15881 | fi | |
15882 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
15883 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
15884 | cat >>confdefs.h <<_ACEOF | |
15885 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15886 | _ACEOF | |
15887 | ||
15888 | ||
15889 | echo "$as_me:$LINENO: checking for short" >&5 | |
15890 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
15891 | if test "${ac_cv_type_short+set}" = set; then | |
15892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15893 | else | |
15894 | cat >conftest.$ac_ext <<_ACEOF | |
15895 | /* confdefs.h. */ | |
15896 | _ACEOF | |
15897 | cat confdefs.h >>conftest.$ac_ext | |
15898 | cat >>conftest.$ac_ext <<_ACEOF | |
15899 | /* end confdefs.h. */ | |
15900 | $ac_includes_default | |
15901 | int | |
15902 | main () | |
15903 | { | |
15904 | if ((short *) 0) | |
15905 | return 0; | |
15906 | if (sizeof (short)) | |
15907 | return 0; | |
15908 | ; | |
15909 | return 0; | |
15910 | } | |
15911 | _ACEOF | |
15912 | rm -f conftest.$ac_objext | |
15913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15914 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15915 | ac_status=$? |
ac1cb8d3 VS |
15916 | grep -v '^ *+' conftest.er1 >conftest.err |
15917 | rm -f conftest.er1 | |
15918 | cat conftest.err >&5 | |
a848cd7e SC |
15919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15920 | (exit $ac_status); } && | |
9dd0f6c2 | 15921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15923 | (eval $ac_try) 2>&5 | |
15924 | ac_status=$? | |
15925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15926 | (exit $ac_status); }; } && | |
15927 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15933 | ac_cv_type_short=yes | |
15934 | else | |
15935 | echo "$as_me: failed program was:" >&5 | |
15936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15937 | ||
15938 | ac_cv_type_short=no | |
15939 | fi | |
ac1cb8d3 | 15940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15941 | fi |
15942 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
15943 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
15944 | ||
15945 | echo "$as_me:$LINENO: checking size of short" >&5 | |
15946 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
15947 | if test "${ac_cv_sizeof_short+set}" = set; then | |
15948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15949 | else | |
15950 | if test "$ac_cv_type_short" = yes; then | |
15951 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15952 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15953 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15954 | # This bug is HP SR number 8606223364. | |
15955 | if test "$cross_compiling" = yes; then | |
15956 | # Depending upon the size, compute the lo and hi bounds. | |
15957 | cat >conftest.$ac_ext <<_ACEOF | |
15958 | /* confdefs.h. */ | |
15959 | _ACEOF | |
15960 | cat confdefs.h >>conftest.$ac_ext | |
15961 | cat >>conftest.$ac_ext <<_ACEOF | |
15962 | /* end confdefs.h. */ | |
15963 | $ac_includes_default | |
15964 | int | |
15965 | main () | |
15966 | { | |
15967 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
15968 | test_array [0] = 0 | |
15969 | ||
15970 | ; | |
15971 | return 0; | |
15972 | } | |
15973 | _ACEOF | |
15974 | rm -f conftest.$ac_objext | |
15975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15976 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15977 | ac_status=$? |
ac1cb8d3 VS |
15978 | grep -v '^ *+' conftest.er1 >conftest.err |
15979 | rm -f conftest.er1 | |
15980 | cat conftest.err >&5 | |
a848cd7e SC |
15981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15982 | (exit $ac_status); } && | |
9dd0f6c2 | 15983 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15985 | (eval $ac_try) 2>&5 | |
15986 | ac_status=$? | |
15987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15988 | (exit $ac_status); }; } && | |
15989 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15995 | ac_lo=0 ac_mid=0 | |
15996 | while :; do | |
15997 | cat >conftest.$ac_ext <<_ACEOF | |
15998 | /* confdefs.h. */ | |
15999 | _ACEOF | |
16000 | cat confdefs.h >>conftest.$ac_ext | |
16001 | cat >>conftest.$ac_ext <<_ACEOF | |
16002 | /* end confdefs.h. */ | |
16003 | $ac_includes_default | |
16004 | int | |
16005 | main () | |
16006 | { | |
16007 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16008 | test_array [0] = 0 | |
16009 | ||
16010 | ; | |
16011 | return 0; | |
16012 | } | |
16013 | _ACEOF | |
16014 | rm -f conftest.$ac_objext | |
16015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16016 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16017 | ac_status=$? |
ac1cb8d3 VS |
16018 | grep -v '^ *+' conftest.er1 >conftest.err |
16019 | rm -f conftest.er1 | |
16020 | cat conftest.err >&5 | |
a848cd7e SC |
16021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16022 | (exit $ac_status); } && | |
9dd0f6c2 | 16023 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16025 | (eval $ac_try) 2>&5 | |
16026 | ac_status=$? | |
16027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16028 | (exit $ac_status); }; } && | |
16029 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16035 | ac_hi=$ac_mid; break | |
16036 | else | |
16037 | echo "$as_me: failed program was:" >&5 | |
16038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16039 | ||
16040 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16041 | if test $ac_lo -le $ac_mid; then |
16042 | ac_lo= ac_hi= | |
16043 | break | |
16044 | fi | |
16045 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16046 | fi |
ac1cb8d3 | 16047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16048 | done |
16049 | else | |
16050 | echo "$as_me: failed program was:" >&5 | |
16051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16052 | ||
16053 | cat >conftest.$ac_ext <<_ACEOF | |
16054 | /* confdefs.h. */ | |
16055 | _ACEOF | |
16056 | cat confdefs.h >>conftest.$ac_ext | |
16057 | cat >>conftest.$ac_ext <<_ACEOF | |
16058 | /* end confdefs.h. */ | |
16059 | $ac_includes_default | |
16060 | int | |
16061 | main () | |
16062 | { | |
16063 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
16064 | test_array [0] = 0 | |
16065 | ||
16066 | ; | |
16067 | return 0; | |
16068 | } | |
16069 | _ACEOF | |
16070 | rm -f conftest.$ac_objext | |
16071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16072 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16073 | ac_status=$? |
ac1cb8d3 VS |
16074 | grep -v '^ *+' conftest.er1 >conftest.err |
16075 | rm -f conftest.er1 | |
16076 | cat conftest.err >&5 | |
a848cd7e SC |
16077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16078 | (exit $ac_status); } && | |
9dd0f6c2 | 16079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16081 | (eval $ac_try) 2>&5 | |
16082 | ac_status=$? | |
16083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16084 | (exit $ac_status); }; } && | |
16085 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16091 | ac_hi=-1 ac_mid=-1 | |
16092 | while :; do | |
16093 | cat >conftest.$ac_ext <<_ACEOF | |
16094 | /* confdefs.h. */ | |
16095 | _ACEOF | |
16096 | cat confdefs.h >>conftest.$ac_ext | |
16097 | cat >>conftest.$ac_ext <<_ACEOF | |
16098 | /* end confdefs.h. */ | |
16099 | $ac_includes_default | |
16100 | int | |
16101 | main () | |
16102 | { | |
16103 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
16104 | test_array [0] = 0 | |
16105 | ||
16106 | ; | |
16107 | return 0; | |
16108 | } | |
16109 | _ACEOF | |
16110 | rm -f conftest.$ac_objext | |
16111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16113 | ac_status=$? |
ac1cb8d3 VS |
16114 | grep -v '^ *+' conftest.er1 >conftest.err |
16115 | rm -f conftest.er1 | |
16116 | cat conftest.err >&5 | |
a848cd7e SC |
16117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16118 | (exit $ac_status); } && | |
9dd0f6c2 | 16119 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16121 | (eval $ac_try) 2>&5 | |
16122 | ac_status=$? | |
16123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16124 | (exit $ac_status); }; } && | |
16125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16131 | ac_lo=$ac_mid; break | |
16132 | else | |
16133 | echo "$as_me: failed program was:" >&5 | |
16134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16135 | ||
16136 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16137 | if test $ac_mid -le $ac_hi; then |
16138 | ac_lo= ac_hi= | |
16139 | break | |
16140 | fi | |
16141 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16142 | fi |
ac1cb8d3 | 16143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16144 | done |
16145 | else | |
16146 | echo "$as_me: failed program was:" >&5 | |
16147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16148 | ||
16149 | ac_lo= ac_hi= | |
16150 | fi | |
ac1cb8d3 | 16151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16152 | fi |
ac1cb8d3 | 16153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16154 | # Binary search between lo and hi bounds. |
16155 | while test "x$ac_lo" != "x$ac_hi"; do | |
16156 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16157 | cat >conftest.$ac_ext <<_ACEOF | |
16158 | /* confdefs.h. */ | |
16159 | _ACEOF | |
16160 | cat confdefs.h >>conftest.$ac_ext | |
16161 | cat >>conftest.$ac_ext <<_ACEOF | |
16162 | /* end confdefs.h. */ | |
16163 | $ac_includes_default | |
16164 | int | |
16165 | main () | |
16166 | { | |
16167 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16168 | test_array [0] = 0 | |
16169 | ||
16170 | ; | |
16171 | return 0; | |
16172 | } | |
16173 | _ACEOF | |
16174 | rm -f conftest.$ac_objext | |
16175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16176 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16177 | ac_status=$? |
ac1cb8d3 VS |
16178 | grep -v '^ *+' conftest.er1 >conftest.err |
16179 | rm -f conftest.er1 | |
16180 | cat conftest.err >&5 | |
a848cd7e SC |
16181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16182 | (exit $ac_status); } && | |
9dd0f6c2 | 16183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16185 | (eval $ac_try) 2>&5 | |
16186 | ac_status=$? | |
16187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16188 | (exit $ac_status); }; } && | |
16189 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16195 | ac_hi=$ac_mid | |
16196 | else | |
16197 | echo "$as_me: failed program was:" >&5 | |
16198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16199 | ||
16200 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16201 | fi | |
ac1cb8d3 | 16202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16203 | done |
16204 | case $ac_lo in | |
16205 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
16206 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16207 | See \`config.log' for more details." >&5 | |
16208 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16209 | See \`config.log' for more details." >&2;} | |
16210 | { (exit 1); exit 1; }; } ;; | |
16211 | esac | |
16212 | else | |
16213 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
16214 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16215 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16216 | { (exit 1); exit 1; }; } |
16217 | else | |
16218 | cat >conftest.$ac_ext <<_ACEOF | |
16219 | /* confdefs.h. */ | |
16220 | _ACEOF | |
16221 | cat confdefs.h >>conftest.$ac_ext | |
16222 | cat >>conftest.$ac_ext <<_ACEOF | |
16223 | /* end confdefs.h. */ | |
16224 | $ac_includes_default | |
16225 | long longval () { return (long) (sizeof (short)); } | |
16226 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16227 | #include <stdio.h> | |
16228 | #include <stdlib.h> | |
16229 | int | |
16230 | main () | |
16231 | { | |
16232 | ||
16233 | FILE *f = fopen ("conftest.val", "w"); | |
16234 | if (! f) | |
16235 | exit (1); | |
16236 | if (((long) (sizeof (short))) < 0) | |
16237 | { | |
16238 | long i = longval (); | |
16239 | if (i != ((long) (sizeof (short)))) | |
16240 | exit (1); | |
16241 | fprintf (f, "%ld\n", i); | |
16242 | } | |
16243 | else | |
16244 | { | |
16245 | unsigned long i = ulongval (); | |
16246 | if (i != ((long) (sizeof (short)))) | |
16247 | exit (1); | |
16248 | fprintf (f, "%lu\n", i); | |
16249 | } | |
16250 | exit (ferror (f) || fclose (f) != 0); | |
16251 | ||
16252 | ; | |
16253 | return 0; | |
16254 | } | |
16255 | _ACEOF | |
16256 | rm -f conftest$ac_exeext | |
16257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16258 | (eval $ac_link) 2>&5 | |
16259 | ac_status=$? | |
16260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16261 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16263 | (eval $ac_try) 2>&5 | |
16264 | ac_status=$? | |
16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16266 | (exit $ac_status); }; }; then | |
16267 | ac_cv_sizeof_short=`cat conftest.val` | |
16268 | else | |
16269 | echo "$as_me: program exited with status $ac_status" >&5 | |
16270 | echo "$as_me: failed program was:" >&5 | |
16271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16272 | ||
16273 | ( exit $ac_status ) | |
16274 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16275 | See \`config.log' for more details." >&5 | |
16276 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16277 | See \`config.log' for more details." >&2;} | |
16278 | { (exit 1); exit 1; }; } | |
16279 | fi | |
ac1cb8d3 | 16280 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16281 | fi |
16282 | fi | |
16283 | rm -f conftest.val | |
16284 | else | |
16285 | ac_cv_sizeof_short=0 | |
16286 | fi | |
16287 | fi | |
16288 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16289 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16290 | cat >>confdefs.h <<_ACEOF | |
16291 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16292 | _ACEOF | |
16293 | ||
16294 | ||
16295 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16296 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16297 | if test "${ac_cv_type_void_p+set}" = set; then | |
16298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16299 | else | |
16300 | cat >conftest.$ac_ext <<_ACEOF | |
16301 | /* confdefs.h. */ | |
16302 | _ACEOF | |
16303 | cat confdefs.h >>conftest.$ac_ext | |
16304 | cat >>conftest.$ac_ext <<_ACEOF | |
16305 | /* end confdefs.h. */ | |
16306 | $ac_includes_default | |
16307 | int | |
16308 | main () | |
16309 | { | |
16310 | if ((void * *) 0) | |
16311 | return 0; | |
16312 | if (sizeof (void *)) | |
16313 | return 0; | |
16314 | ; | |
16315 | return 0; | |
16316 | } | |
16317 | _ACEOF | |
16318 | rm -f conftest.$ac_objext | |
16319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16320 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16321 | ac_status=$? |
ac1cb8d3 VS |
16322 | grep -v '^ *+' conftest.er1 >conftest.err |
16323 | rm -f conftest.er1 | |
16324 | cat conftest.err >&5 | |
a848cd7e SC |
16325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16326 | (exit $ac_status); } && | |
9dd0f6c2 | 16327 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16329 | (eval $ac_try) 2>&5 | |
16330 | ac_status=$? | |
16331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16332 | (exit $ac_status); }; } && | |
16333 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16339 | ac_cv_type_void_p=yes | |
16340 | else | |
16341 | echo "$as_me: failed program was:" >&5 | |
16342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16343 | ||
16344 | ac_cv_type_void_p=no | |
16345 | fi | |
ac1cb8d3 | 16346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16347 | fi |
16348 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16349 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16350 | ||
16351 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16352 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16353 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16355 | else | |
16356 | if test "$ac_cv_type_void_p" = yes; then | |
16357 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16358 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16359 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16360 | # This bug is HP SR number 8606223364. | |
16361 | if test "$cross_compiling" = yes; then | |
16362 | # Depending upon the size, compute the lo and hi bounds. | |
16363 | cat >conftest.$ac_ext <<_ACEOF | |
16364 | /* confdefs.h. */ | |
16365 | _ACEOF | |
16366 | cat confdefs.h >>conftest.$ac_ext | |
16367 | cat >>conftest.$ac_ext <<_ACEOF | |
16368 | /* end confdefs.h. */ | |
16369 | $ac_includes_default | |
16370 | int | |
16371 | main () | |
16372 | { | |
16373 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16374 | test_array [0] = 0 | |
16375 | ||
16376 | ; | |
16377 | return 0; | |
16378 | } | |
16379 | _ACEOF | |
16380 | rm -f conftest.$ac_objext | |
16381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16382 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16383 | ac_status=$? |
ac1cb8d3 VS |
16384 | grep -v '^ *+' conftest.er1 >conftest.err |
16385 | rm -f conftest.er1 | |
16386 | cat conftest.err >&5 | |
a848cd7e SC |
16387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16388 | (exit $ac_status); } && | |
9dd0f6c2 | 16389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16391 | (eval $ac_try) 2>&5 | |
16392 | ac_status=$? | |
16393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16394 | (exit $ac_status); }; } && | |
16395 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16401 | ac_lo=0 ac_mid=0 | |
16402 | while :; do | |
16403 | cat >conftest.$ac_ext <<_ACEOF | |
16404 | /* confdefs.h. */ | |
16405 | _ACEOF | |
16406 | cat confdefs.h >>conftest.$ac_ext | |
16407 | cat >>conftest.$ac_ext <<_ACEOF | |
16408 | /* end confdefs.h. */ | |
16409 | $ac_includes_default | |
16410 | int | |
16411 | main () | |
16412 | { | |
16413 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16414 | test_array [0] = 0 | |
16415 | ||
16416 | ; | |
16417 | return 0; | |
16418 | } | |
16419 | _ACEOF | |
16420 | rm -f conftest.$ac_objext | |
16421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16422 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16423 | ac_status=$? |
ac1cb8d3 VS |
16424 | grep -v '^ *+' conftest.er1 >conftest.err |
16425 | rm -f conftest.er1 | |
16426 | cat conftest.err >&5 | |
a848cd7e SC |
16427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16428 | (exit $ac_status); } && | |
9dd0f6c2 | 16429 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16431 | (eval $ac_try) 2>&5 | |
16432 | ac_status=$? | |
16433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16434 | (exit $ac_status); }; } && | |
16435 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16441 | ac_hi=$ac_mid; break | |
16442 | else | |
16443 | echo "$as_me: failed program was:" >&5 | |
16444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16445 | ||
16446 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16447 | if test $ac_lo -le $ac_mid; then |
16448 | ac_lo= ac_hi= | |
16449 | break | |
16450 | fi | |
16451 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16452 | fi |
ac1cb8d3 | 16453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16454 | done |
16455 | else | |
16456 | echo "$as_me: failed program was:" >&5 | |
16457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16458 | ||
16459 | cat >conftest.$ac_ext <<_ACEOF | |
16460 | /* confdefs.h. */ | |
16461 | _ACEOF | |
16462 | cat confdefs.h >>conftest.$ac_ext | |
16463 | cat >>conftest.$ac_ext <<_ACEOF | |
16464 | /* end confdefs.h. */ | |
16465 | $ac_includes_default | |
16466 | int | |
16467 | main () | |
16468 | { | |
16469 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
16470 | test_array [0] = 0 | |
16471 | ||
16472 | ; | |
16473 | return 0; | |
16474 | } | |
16475 | _ACEOF | |
16476 | rm -f conftest.$ac_objext | |
16477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16478 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16479 | ac_status=$? |
ac1cb8d3 VS |
16480 | grep -v '^ *+' conftest.er1 >conftest.err |
16481 | rm -f conftest.er1 | |
16482 | cat conftest.err >&5 | |
a848cd7e SC |
16483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16484 | (exit $ac_status); } && | |
9dd0f6c2 | 16485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16487 | (eval $ac_try) 2>&5 | |
16488 | ac_status=$? | |
16489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16490 | (exit $ac_status); }; } && | |
16491 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16497 | ac_hi=-1 ac_mid=-1 | |
16498 | while :; do | |
16499 | cat >conftest.$ac_ext <<_ACEOF | |
16500 | /* confdefs.h. */ | |
16501 | _ACEOF | |
16502 | cat confdefs.h >>conftest.$ac_ext | |
16503 | cat >>conftest.$ac_ext <<_ACEOF | |
16504 | /* end confdefs.h. */ | |
16505 | $ac_includes_default | |
16506 | int | |
16507 | main () | |
16508 | { | |
16509 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
16510 | test_array [0] = 0 | |
16511 | ||
16512 | ; | |
16513 | return 0; | |
16514 | } | |
16515 | _ACEOF | |
16516 | rm -f conftest.$ac_objext | |
16517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16518 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16519 | ac_status=$? |
ac1cb8d3 VS |
16520 | grep -v '^ *+' conftest.er1 >conftest.err |
16521 | rm -f conftest.er1 | |
16522 | cat conftest.err >&5 | |
a848cd7e SC |
16523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16524 | (exit $ac_status); } && | |
9dd0f6c2 | 16525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16527 | (eval $ac_try) 2>&5 | |
16528 | ac_status=$? | |
16529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16530 | (exit $ac_status); }; } && | |
16531 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16537 | ac_lo=$ac_mid; break | |
16538 | else | |
16539 | echo "$as_me: failed program was:" >&5 | |
16540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16541 | ||
16542 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16543 | if test $ac_mid -le $ac_hi; then |
16544 | ac_lo= ac_hi= | |
16545 | break | |
16546 | fi | |
16547 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16548 | fi |
ac1cb8d3 | 16549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16550 | done |
16551 | else | |
16552 | echo "$as_me: failed program was:" >&5 | |
16553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16554 | ||
16555 | ac_lo= ac_hi= | |
16556 | fi | |
ac1cb8d3 | 16557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16558 | fi |
ac1cb8d3 | 16559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16560 | # Binary search between lo and hi bounds. |
16561 | while test "x$ac_lo" != "x$ac_hi"; do | |
16562 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16563 | cat >conftest.$ac_ext <<_ACEOF | |
16564 | /* confdefs.h. */ | |
16565 | _ACEOF | |
16566 | cat confdefs.h >>conftest.$ac_ext | |
16567 | cat >>conftest.$ac_ext <<_ACEOF | |
16568 | /* end confdefs.h. */ | |
16569 | $ac_includes_default | |
16570 | int | |
16571 | main () | |
16572 | { | |
16573 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16574 | test_array [0] = 0 | |
16575 | ||
16576 | ; | |
16577 | return 0; | |
16578 | } | |
16579 | _ACEOF | |
16580 | rm -f conftest.$ac_objext | |
16581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16582 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16583 | ac_status=$? |
ac1cb8d3 VS |
16584 | grep -v '^ *+' conftest.er1 >conftest.err |
16585 | rm -f conftest.er1 | |
16586 | cat conftest.err >&5 | |
a848cd7e SC |
16587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16588 | (exit $ac_status); } && | |
9dd0f6c2 | 16589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16591 | (eval $ac_try) 2>&5 | |
16592 | ac_status=$? | |
16593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16594 | (exit $ac_status); }; } && | |
16595 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16601 | ac_hi=$ac_mid | |
16602 | else | |
16603 | echo "$as_me: failed program was:" >&5 | |
16604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16605 | ||
16606 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16607 | fi | |
ac1cb8d3 | 16608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16609 | done |
16610 | case $ac_lo in | |
16611 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
16612 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16613 | See \`config.log' for more details." >&5 | |
16614 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16615 | See \`config.log' for more details." >&2;} | |
16616 | { (exit 1); exit 1; }; } ;; | |
16617 | esac | |
16618 | else | |
16619 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
16620 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16621 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16622 | { (exit 1); exit 1; }; } |
16623 | else | |
16624 | cat >conftest.$ac_ext <<_ACEOF | |
16625 | /* confdefs.h. */ | |
16626 | _ACEOF | |
16627 | cat confdefs.h >>conftest.$ac_ext | |
16628 | cat >>conftest.$ac_ext <<_ACEOF | |
16629 | /* end confdefs.h. */ | |
16630 | $ac_includes_default | |
16631 | long longval () { return (long) (sizeof (void *)); } | |
16632 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
16633 | #include <stdio.h> | |
16634 | #include <stdlib.h> | |
16635 | int | |
16636 | main () | |
16637 | { | |
16638 | ||
16639 | FILE *f = fopen ("conftest.val", "w"); | |
16640 | if (! f) | |
16641 | exit (1); | |
16642 | if (((long) (sizeof (void *))) < 0) | |
16643 | { | |
16644 | long i = longval (); | |
16645 | if (i != ((long) (sizeof (void *)))) | |
16646 | exit (1); | |
16647 | fprintf (f, "%ld\n", i); | |
16648 | } | |
16649 | else | |
16650 | { | |
16651 | unsigned long i = ulongval (); | |
16652 | if (i != ((long) (sizeof (void *)))) | |
16653 | exit (1); | |
16654 | fprintf (f, "%lu\n", i); | |
16655 | } | |
16656 | exit (ferror (f) || fclose (f) != 0); | |
16657 | ||
16658 | ; | |
16659 | return 0; | |
16660 | } | |
16661 | _ACEOF | |
16662 | rm -f conftest$ac_exeext | |
16663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16664 | (eval $ac_link) 2>&5 | |
16665 | ac_status=$? | |
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16667 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16669 | (eval $ac_try) 2>&5 | |
16670 | ac_status=$? | |
16671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16672 | (exit $ac_status); }; }; then | |
16673 | ac_cv_sizeof_void_p=`cat conftest.val` | |
16674 | else | |
16675 | echo "$as_me: program exited with status $ac_status" >&5 | |
16676 | echo "$as_me: failed program was:" >&5 | |
16677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16678 | ||
16679 | ( exit $ac_status ) | |
16680 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16681 | See \`config.log' for more details." >&5 | |
16682 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16683 | See \`config.log' for more details." >&2;} | |
16684 | { (exit 1); exit 1; }; } | |
16685 | fi | |
ac1cb8d3 | 16686 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16687 | fi |
16688 | fi | |
16689 | rm -f conftest.val | |
16690 | else | |
16691 | ac_cv_sizeof_void_p=0 | |
16692 | fi | |
16693 | fi | |
16694 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
16695 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
16696 | cat >>confdefs.h <<_ACEOF | |
16697 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16698 | _ACEOF | |
16699 | ||
16700 | ||
16701 | echo "$as_me:$LINENO: checking for int" >&5 | |
16702 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
16703 | if test "${ac_cv_type_int+set}" = set; then | |
16704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16705 | else | |
16706 | cat >conftest.$ac_ext <<_ACEOF | |
16707 | /* confdefs.h. */ | |
16708 | _ACEOF | |
16709 | cat confdefs.h >>conftest.$ac_ext | |
16710 | cat >>conftest.$ac_ext <<_ACEOF | |
16711 | /* end confdefs.h. */ | |
16712 | $ac_includes_default | |
16713 | int | |
16714 | main () | |
16715 | { | |
16716 | if ((int *) 0) | |
16717 | return 0; | |
16718 | if (sizeof (int)) | |
16719 | return 0; | |
16720 | ; | |
16721 | return 0; | |
16722 | } | |
16723 | _ACEOF | |
16724 | rm -f conftest.$ac_objext | |
16725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16726 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16727 | ac_status=$? |
ac1cb8d3 VS |
16728 | grep -v '^ *+' conftest.er1 >conftest.err |
16729 | rm -f conftest.er1 | |
16730 | cat conftest.err >&5 | |
a848cd7e SC |
16731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16732 | (exit $ac_status); } && | |
9dd0f6c2 | 16733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16735 | (eval $ac_try) 2>&5 | |
16736 | ac_status=$? | |
16737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16738 | (exit $ac_status); }; } && | |
16739 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16745 | ac_cv_type_int=yes | |
16746 | else | |
16747 | echo "$as_me: failed program was:" >&5 | |
16748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16749 | ||
16750 | ac_cv_type_int=no | |
16751 | fi | |
ac1cb8d3 | 16752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16753 | fi |
16754 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16755 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16756 | ||
16757 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16758 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16759 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16761 | else | |
16762 | if test "$ac_cv_type_int" = yes; then | |
16763 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16764 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16765 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16766 | # This bug is HP SR number 8606223364. | |
16767 | if test "$cross_compiling" = yes; then | |
16768 | # Depending upon the size, compute the lo and hi bounds. | |
16769 | cat >conftest.$ac_ext <<_ACEOF | |
16770 | /* confdefs.h. */ | |
16771 | _ACEOF | |
16772 | cat confdefs.h >>conftest.$ac_ext | |
16773 | cat >>conftest.$ac_ext <<_ACEOF | |
16774 | /* end confdefs.h. */ | |
16775 | $ac_includes_default | |
16776 | int | |
16777 | main () | |
16778 | { | |
16779 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
16780 | test_array [0] = 0 | |
16781 | ||
16782 | ; | |
16783 | return 0; | |
16784 | } | |
16785 | _ACEOF | |
16786 | rm -f conftest.$ac_objext | |
16787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16788 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16789 | ac_status=$? |
ac1cb8d3 VS |
16790 | grep -v '^ *+' conftest.er1 >conftest.err |
16791 | rm -f conftest.er1 | |
16792 | cat conftest.err >&5 | |
a848cd7e SC |
16793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16794 | (exit $ac_status); } && | |
9dd0f6c2 | 16795 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16797 | (eval $ac_try) 2>&5 | |
16798 | ac_status=$? | |
16799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16800 | (exit $ac_status); }; } && | |
16801 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16807 | ac_lo=0 ac_mid=0 | |
16808 | while :; do | |
16809 | cat >conftest.$ac_ext <<_ACEOF | |
16810 | /* confdefs.h. */ | |
16811 | _ACEOF | |
16812 | cat confdefs.h >>conftest.$ac_ext | |
16813 | cat >>conftest.$ac_ext <<_ACEOF | |
16814 | /* end confdefs.h. */ | |
16815 | $ac_includes_default | |
16816 | int | |
16817 | main () | |
16818 | { | |
16819 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16820 | test_array [0] = 0 | |
16821 | ||
16822 | ; | |
16823 | return 0; | |
16824 | } | |
16825 | _ACEOF | |
16826 | rm -f conftest.$ac_objext | |
16827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16828 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16829 | ac_status=$? |
ac1cb8d3 VS |
16830 | grep -v '^ *+' conftest.er1 >conftest.err |
16831 | rm -f conftest.er1 | |
16832 | cat conftest.err >&5 | |
a848cd7e SC |
16833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16834 | (exit $ac_status); } && | |
9dd0f6c2 | 16835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16837 | (eval $ac_try) 2>&5 | |
16838 | ac_status=$? | |
16839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16840 | (exit $ac_status); }; } && | |
16841 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16847 | ac_hi=$ac_mid; break | |
16848 | else | |
16849 | echo "$as_me: failed program was:" >&5 | |
16850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16851 | ||
16852 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16853 | if test $ac_lo -le $ac_mid; then |
16854 | ac_lo= ac_hi= | |
16855 | break | |
16856 | fi | |
16857 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16858 | fi |
ac1cb8d3 | 16859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16860 | done |
16861 | else | |
16862 | echo "$as_me: failed program was:" >&5 | |
16863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16864 | ||
16865 | cat >conftest.$ac_ext <<_ACEOF | |
16866 | /* confdefs.h. */ | |
16867 | _ACEOF | |
16868 | cat confdefs.h >>conftest.$ac_ext | |
16869 | cat >>conftest.$ac_ext <<_ACEOF | |
16870 | /* end confdefs.h. */ | |
16871 | $ac_includes_default | |
16872 | int | |
16873 | main () | |
16874 | { | |
16875 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
16876 | test_array [0] = 0 | |
16877 | ||
16878 | ; | |
16879 | return 0; | |
16880 | } | |
16881 | _ACEOF | |
16882 | rm -f conftest.$ac_objext | |
16883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16884 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16885 | ac_status=$? |
ac1cb8d3 VS |
16886 | grep -v '^ *+' conftest.er1 >conftest.err |
16887 | rm -f conftest.er1 | |
16888 | cat conftest.err >&5 | |
a848cd7e SC |
16889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16890 | (exit $ac_status); } && | |
9dd0f6c2 | 16891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16893 | (eval $ac_try) 2>&5 | |
16894 | ac_status=$? | |
16895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16896 | (exit $ac_status); }; } && | |
16897 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16903 | ac_hi=-1 ac_mid=-1 | |
16904 | while :; do | |
16905 | cat >conftest.$ac_ext <<_ACEOF | |
16906 | /* confdefs.h. */ | |
16907 | _ACEOF | |
16908 | cat confdefs.h >>conftest.$ac_ext | |
16909 | cat >>conftest.$ac_ext <<_ACEOF | |
16910 | /* end confdefs.h. */ | |
16911 | $ac_includes_default | |
16912 | int | |
16913 | main () | |
16914 | { | |
16915 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
16916 | test_array [0] = 0 | |
16917 | ||
16918 | ; | |
16919 | return 0; | |
16920 | } | |
16921 | _ACEOF | |
16922 | rm -f conftest.$ac_objext | |
16923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16924 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16925 | ac_status=$? |
ac1cb8d3 VS |
16926 | grep -v '^ *+' conftest.er1 >conftest.err |
16927 | rm -f conftest.er1 | |
16928 | cat conftest.err >&5 | |
a848cd7e SC |
16929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16930 | (exit $ac_status); } && | |
9dd0f6c2 | 16931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16933 | (eval $ac_try) 2>&5 | |
16934 | ac_status=$? | |
16935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16936 | (exit $ac_status); }; } && | |
16937 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16943 | ac_lo=$ac_mid; break | |
16944 | else | |
16945 | echo "$as_me: failed program was:" >&5 | |
16946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16947 | ||
16948 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16949 | if test $ac_mid -le $ac_hi; then |
16950 | ac_lo= ac_hi= | |
16951 | break | |
16952 | fi | |
16953 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16954 | fi |
ac1cb8d3 | 16955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16956 | done |
16957 | else | |
16958 | echo "$as_me: failed program was:" >&5 | |
16959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16960 | ||
16961 | ac_lo= ac_hi= | |
16962 | fi | |
ac1cb8d3 | 16963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16964 | fi |
ac1cb8d3 | 16965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16966 | # Binary search between lo and hi bounds. |
16967 | while test "x$ac_lo" != "x$ac_hi"; do | |
16968 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16969 | cat >conftest.$ac_ext <<_ACEOF | |
16970 | /* confdefs.h. */ | |
16971 | _ACEOF | |
16972 | cat confdefs.h >>conftest.$ac_ext | |
16973 | cat >>conftest.$ac_ext <<_ACEOF | |
16974 | /* end confdefs.h. */ | |
16975 | $ac_includes_default | |
16976 | int | |
16977 | main () | |
16978 | { | |
16979 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16980 | test_array [0] = 0 | |
16981 | ||
16982 | ; | |
16983 | return 0; | |
16984 | } | |
16985 | _ACEOF | |
16986 | rm -f conftest.$ac_objext | |
16987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16988 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16989 | ac_status=$? |
ac1cb8d3 VS |
16990 | grep -v '^ *+' conftest.er1 >conftest.err |
16991 | rm -f conftest.er1 | |
16992 | cat conftest.err >&5 | |
a848cd7e SC |
16993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16994 | (exit $ac_status); } && | |
9dd0f6c2 | 16995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16997 | (eval $ac_try) 2>&5 | |
16998 | ac_status=$? | |
16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17000 | (exit $ac_status); }; } && | |
17001 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17003 | (eval $ac_try) 2>&5 | |
17004 | ac_status=$? | |
17005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17006 | (exit $ac_status); }; }; then | |
17007 | ac_hi=$ac_mid | |
17008 | else | |
17009 | echo "$as_me: failed program was:" >&5 | |
17010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17011 | ||
17012 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17013 | fi | |
ac1cb8d3 | 17014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17015 | done |
17016 | case $ac_lo in | |
17017 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
17018 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17019 | See \`config.log' for more details." >&5 | |
17020 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17021 | See \`config.log' for more details." >&2;} | |
17022 | { (exit 1); exit 1; }; } ;; | |
17023 | esac | |
17024 | else | |
17025 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
17026 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17027 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17028 | { (exit 1); exit 1; }; } |
17029 | else | |
17030 | cat >conftest.$ac_ext <<_ACEOF | |
17031 | /* confdefs.h. */ | |
17032 | _ACEOF | |
17033 | cat confdefs.h >>conftest.$ac_ext | |
17034 | cat >>conftest.$ac_ext <<_ACEOF | |
17035 | /* end confdefs.h. */ | |
17036 | $ac_includes_default | |
17037 | long longval () { return (long) (sizeof (int)); } | |
17038 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
17039 | #include <stdio.h> | |
17040 | #include <stdlib.h> | |
17041 | int | |
17042 | main () | |
17043 | { | |
17044 | ||
17045 | FILE *f = fopen ("conftest.val", "w"); | |
17046 | if (! f) | |
17047 | exit (1); | |
17048 | if (((long) (sizeof (int))) < 0) | |
17049 | { | |
17050 | long i = longval (); | |
17051 | if (i != ((long) (sizeof (int)))) | |
17052 | exit (1); | |
17053 | fprintf (f, "%ld\n", i); | |
17054 | } | |
17055 | else | |
17056 | { | |
17057 | unsigned long i = ulongval (); | |
17058 | if (i != ((long) (sizeof (int)))) | |
17059 | exit (1); | |
17060 | fprintf (f, "%lu\n", i); | |
17061 | } | |
17062 | exit (ferror (f) || fclose (f) != 0); | |
17063 | ||
17064 | ; | |
17065 | return 0; | |
17066 | } | |
17067 | _ACEOF | |
17068 | rm -f conftest$ac_exeext | |
17069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17070 | (eval $ac_link) 2>&5 | |
17071 | ac_status=$? | |
17072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17073 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17075 | (eval $ac_try) 2>&5 | |
17076 | ac_status=$? | |
17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17078 | (exit $ac_status); }; }; then | |
17079 | ac_cv_sizeof_int=`cat conftest.val` | |
17080 | else | |
17081 | echo "$as_me: program exited with status $ac_status" >&5 | |
17082 | echo "$as_me: failed program was:" >&5 | |
17083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17084 | ||
17085 | ( exit $ac_status ) | |
17086 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17087 | See \`config.log' for more details." >&5 | |
17088 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17089 | See \`config.log' for more details." >&2;} | |
17090 | { (exit 1); exit 1; }; } | |
17091 | fi | |
ac1cb8d3 | 17092 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17093 | fi |
17094 | fi | |
17095 | rm -f conftest.val | |
17096 | else | |
17097 | ac_cv_sizeof_int=0 | |
17098 | fi | |
17099 | fi | |
17100 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
17101 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
17102 | cat >>confdefs.h <<_ACEOF | |
17103 | #define SIZEOF_INT $ac_cv_sizeof_int | |
17104 | _ACEOF | |
17105 | ||
17106 | ||
17107 | echo "$as_me:$LINENO: checking for long" >&5 | |
17108 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
17109 | if test "${ac_cv_type_long+set}" = set; then | |
17110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17111 | else | |
17112 | cat >conftest.$ac_ext <<_ACEOF | |
17113 | /* confdefs.h. */ | |
17114 | _ACEOF | |
17115 | cat confdefs.h >>conftest.$ac_ext | |
17116 | cat >>conftest.$ac_ext <<_ACEOF | |
17117 | /* end confdefs.h. */ | |
17118 | $ac_includes_default | |
17119 | int | |
17120 | main () | |
17121 | { | |
17122 | if ((long *) 0) | |
17123 | return 0; | |
17124 | if (sizeof (long)) | |
17125 | return 0; | |
17126 | ; | |
17127 | return 0; | |
17128 | } | |
17129 | _ACEOF | |
17130 | rm -f conftest.$ac_objext | |
17131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17132 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17133 | ac_status=$? |
ac1cb8d3 VS |
17134 | grep -v '^ *+' conftest.er1 >conftest.err |
17135 | rm -f conftest.er1 | |
17136 | cat conftest.err >&5 | |
a848cd7e SC |
17137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17138 | (exit $ac_status); } && | |
9dd0f6c2 | 17139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17141 | (eval $ac_try) 2>&5 | |
17142 | ac_status=$? | |
17143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17144 | (exit $ac_status); }; } && | |
17145 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17151 | ac_cv_type_long=yes | |
17152 | else | |
17153 | echo "$as_me: failed program was:" >&5 | |
17154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17155 | ||
17156 | ac_cv_type_long=no | |
17157 | fi | |
ac1cb8d3 | 17158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17159 | fi |
17160 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
17161 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
17162 | ||
17163 | echo "$as_me:$LINENO: checking size of long" >&5 | |
17164 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
17165 | if test "${ac_cv_sizeof_long+set}" = set; then | |
17166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17167 | else | |
17168 | if test "$ac_cv_type_long" = yes; then | |
17169 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17170 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17171 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17172 | # This bug is HP SR number 8606223364. | |
17173 | if test "$cross_compiling" = yes; then | |
17174 | # Depending upon the size, compute the lo and hi bounds. | |
17175 | cat >conftest.$ac_ext <<_ACEOF | |
17176 | /* confdefs.h. */ | |
17177 | _ACEOF | |
17178 | cat confdefs.h >>conftest.$ac_ext | |
17179 | cat >>conftest.$ac_ext <<_ACEOF | |
17180 | /* end confdefs.h. */ | |
17181 | $ac_includes_default | |
17182 | int | |
17183 | main () | |
17184 | { | |
17185 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
17186 | test_array [0] = 0 | |
17187 | ||
17188 | ; | |
17189 | return 0; | |
17190 | } | |
17191 | _ACEOF | |
17192 | rm -f conftest.$ac_objext | |
17193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17194 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17195 | ac_status=$? |
ac1cb8d3 VS |
17196 | grep -v '^ *+' conftest.er1 >conftest.err |
17197 | rm -f conftest.er1 | |
17198 | cat conftest.err >&5 | |
a848cd7e SC |
17199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17200 | (exit $ac_status); } && | |
9dd0f6c2 | 17201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17203 | (eval $ac_try) 2>&5 | |
17204 | ac_status=$? | |
17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17206 | (exit $ac_status); }; } && | |
17207 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17213 | ac_lo=0 ac_mid=0 | |
17214 | while :; do | |
17215 | cat >conftest.$ac_ext <<_ACEOF | |
17216 | /* confdefs.h. */ | |
17217 | _ACEOF | |
17218 | cat confdefs.h >>conftest.$ac_ext | |
17219 | cat >>conftest.$ac_ext <<_ACEOF | |
17220 | /* end confdefs.h. */ | |
17221 | $ac_includes_default | |
17222 | int | |
17223 | main () | |
17224 | { | |
17225 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17226 | test_array [0] = 0 | |
17227 | ||
17228 | ; | |
17229 | return 0; | |
17230 | } | |
17231 | _ACEOF | |
17232 | rm -f conftest.$ac_objext | |
17233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17234 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17235 | ac_status=$? |
ac1cb8d3 VS |
17236 | grep -v '^ *+' conftest.er1 >conftest.err |
17237 | rm -f conftest.er1 | |
17238 | cat conftest.err >&5 | |
a848cd7e SC |
17239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17240 | (exit $ac_status); } && | |
9dd0f6c2 | 17241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17243 | (eval $ac_try) 2>&5 | |
17244 | ac_status=$? | |
17245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17246 | (exit $ac_status); }; } && | |
17247 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17253 | ac_hi=$ac_mid; break | |
17254 | else | |
17255 | echo "$as_me: failed program was:" >&5 | |
17256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17257 | ||
17258 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17259 | if test $ac_lo -le $ac_mid; then |
17260 | ac_lo= ac_hi= | |
17261 | break | |
17262 | fi | |
17263 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17264 | fi |
ac1cb8d3 | 17265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17266 | done |
17267 | else | |
17268 | echo "$as_me: failed program was:" >&5 | |
17269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17270 | ||
17271 | cat >conftest.$ac_ext <<_ACEOF | |
17272 | /* confdefs.h. */ | |
17273 | _ACEOF | |
17274 | cat confdefs.h >>conftest.$ac_ext | |
17275 | cat >>conftest.$ac_ext <<_ACEOF | |
17276 | /* end confdefs.h. */ | |
17277 | $ac_includes_default | |
17278 | int | |
17279 | main () | |
17280 | { | |
17281 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17282 | test_array [0] = 0 | |
17283 | ||
17284 | ; | |
17285 | return 0; | |
17286 | } | |
17287 | _ACEOF | |
17288 | rm -f conftest.$ac_objext | |
17289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17290 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17291 | ac_status=$? |
ac1cb8d3 VS |
17292 | grep -v '^ *+' conftest.er1 >conftest.err |
17293 | rm -f conftest.er1 | |
17294 | cat conftest.err >&5 | |
a848cd7e SC |
17295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17296 | (exit $ac_status); } && | |
9dd0f6c2 | 17297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17299 | (eval $ac_try) 2>&5 | |
17300 | ac_status=$? | |
17301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17302 | (exit $ac_status); }; } && | |
17303 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17309 | ac_hi=-1 ac_mid=-1 | |
17310 | while :; do | |
17311 | cat >conftest.$ac_ext <<_ACEOF | |
17312 | /* confdefs.h. */ | |
17313 | _ACEOF | |
17314 | cat confdefs.h >>conftest.$ac_ext | |
17315 | cat >>conftest.$ac_ext <<_ACEOF | |
17316 | /* end confdefs.h. */ | |
17317 | $ac_includes_default | |
17318 | int | |
17319 | main () | |
17320 | { | |
17321 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17322 | test_array [0] = 0 | |
17323 | ||
17324 | ; | |
17325 | return 0; | |
17326 | } | |
17327 | _ACEOF | |
17328 | rm -f conftest.$ac_objext | |
17329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17330 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17331 | ac_status=$? |
ac1cb8d3 VS |
17332 | grep -v '^ *+' conftest.er1 >conftest.err |
17333 | rm -f conftest.er1 | |
17334 | cat conftest.err >&5 | |
a848cd7e SC |
17335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17336 | (exit $ac_status); } && | |
9dd0f6c2 | 17337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17339 | (eval $ac_try) 2>&5 | |
17340 | ac_status=$? | |
17341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17342 | (exit $ac_status); }; } && | |
17343 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17349 | ac_lo=$ac_mid; break | |
17350 | else | |
17351 | echo "$as_me: failed program was:" >&5 | |
17352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17353 | ||
17354 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17355 | if test $ac_mid -le $ac_hi; then |
17356 | ac_lo= ac_hi= | |
17357 | break | |
17358 | fi | |
17359 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17360 | fi |
ac1cb8d3 | 17361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17362 | done |
17363 | else | |
17364 | echo "$as_me: failed program was:" >&5 | |
17365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17366 | ||
17367 | ac_lo= ac_hi= | |
17368 | fi | |
ac1cb8d3 | 17369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17370 | fi |
ac1cb8d3 | 17371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17372 | # Binary search between lo and hi bounds. |
17373 | while test "x$ac_lo" != "x$ac_hi"; do | |
17374 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17375 | cat >conftest.$ac_ext <<_ACEOF | |
17376 | /* confdefs.h. */ | |
17377 | _ACEOF | |
17378 | cat confdefs.h >>conftest.$ac_ext | |
17379 | cat >>conftest.$ac_ext <<_ACEOF | |
17380 | /* end confdefs.h. */ | |
17381 | $ac_includes_default | |
17382 | int | |
17383 | main () | |
17384 | { | |
17385 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17386 | test_array [0] = 0 | |
17387 | ||
17388 | ; | |
17389 | return 0; | |
17390 | } | |
17391 | _ACEOF | |
17392 | rm -f conftest.$ac_objext | |
17393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17394 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17395 | ac_status=$? |
ac1cb8d3 VS |
17396 | grep -v '^ *+' conftest.er1 >conftest.err |
17397 | rm -f conftest.er1 | |
17398 | cat conftest.err >&5 | |
a848cd7e SC |
17399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17400 | (exit $ac_status); } && | |
9dd0f6c2 | 17401 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17403 | (eval $ac_try) 2>&5 | |
17404 | ac_status=$? | |
17405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17406 | (exit $ac_status); }; } && | |
17407 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17413 | ac_hi=$ac_mid | |
17414 | else | |
17415 | echo "$as_me: failed program was:" >&5 | |
17416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17417 | ||
17418 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17419 | fi | |
ac1cb8d3 | 17420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17421 | done |
17422 | case $ac_lo in | |
17423 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17424 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17425 | See \`config.log' for more details." >&5 | |
17426 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17427 | See \`config.log' for more details." >&2;} | |
17428 | { (exit 1); exit 1; }; } ;; | |
17429 | esac | |
17430 | else | |
17431 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
17432 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17433 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17434 | { (exit 1); exit 1; }; } |
17435 | else | |
17436 | cat >conftest.$ac_ext <<_ACEOF | |
17437 | /* confdefs.h. */ | |
17438 | _ACEOF | |
17439 | cat confdefs.h >>conftest.$ac_ext | |
17440 | cat >>conftest.$ac_ext <<_ACEOF | |
17441 | /* end confdefs.h. */ | |
17442 | $ac_includes_default | |
17443 | long longval () { return (long) (sizeof (long)); } | |
17444 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
17445 | #include <stdio.h> | |
17446 | #include <stdlib.h> | |
17447 | int | |
17448 | main () | |
17449 | { | |
17450 | ||
17451 | FILE *f = fopen ("conftest.val", "w"); | |
17452 | if (! f) | |
17453 | exit (1); | |
17454 | if (((long) (sizeof (long))) < 0) | |
17455 | { | |
17456 | long i = longval (); | |
17457 | if (i != ((long) (sizeof (long)))) | |
17458 | exit (1); | |
17459 | fprintf (f, "%ld\n", i); | |
17460 | } | |
17461 | else | |
17462 | { | |
17463 | unsigned long i = ulongval (); | |
17464 | if (i != ((long) (sizeof (long)))) | |
17465 | exit (1); | |
17466 | fprintf (f, "%lu\n", i); | |
17467 | } | |
17468 | exit (ferror (f) || fclose (f) != 0); | |
17469 | ||
17470 | ; | |
17471 | return 0; | |
17472 | } | |
17473 | _ACEOF | |
17474 | rm -f conftest$ac_exeext | |
17475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17476 | (eval $ac_link) 2>&5 | |
17477 | ac_status=$? | |
17478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17479 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17481 | (eval $ac_try) 2>&5 | |
17482 | ac_status=$? | |
17483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17484 | (exit $ac_status); }; }; then | |
17485 | ac_cv_sizeof_long=`cat conftest.val` | |
17486 | else | |
17487 | echo "$as_me: program exited with status $ac_status" >&5 | |
17488 | echo "$as_me: failed program was:" >&5 | |
17489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17490 | ||
17491 | ( exit $ac_status ) | |
17492 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17493 | See \`config.log' for more details." >&5 | |
17494 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17495 | See \`config.log' for more details." >&2;} | |
17496 | { (exit 1); exit 1; }; } | |
17497 | fi | |
ac1cb8d3 | 17498 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17499 | fi |
17500 | fi | |
17501 | rm -f conftest.val | |
17502 | else | |
17503 | ac_cv_sizeof_long=0 | |
17504 | fi | |
17505 | fi | |
17506 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
17507 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
17508 | cat >>confdefs.h <<_ACEOF | |
17509 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17510 | _ACEOF | |
17511 | ||
17512 | ||
17513 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
17514 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
17515 | if test "${ac_cv_type_size_t+set}" = set; then | |
17516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17517 | else | |
17518 | cat >conftest.$ac_ext <<_ACEOF | |
17519 | /* confdefs.h. */ | |
17520 | _ACEOF | |
17521 | cat confdefs.h >>conftest.$ac_ext | |
17522 | cat >>conftest.$ac_ext <<_ACEOF | |
17523 | /* end confdefs.h. */ | |
17524 | $ac_includes_default | |
17525 | int | |
17526 | main () | |
17527 | { | |
17528 | if ((size_t *) 0) | |
17529 | return 0; | |
17530 | if (sizeof (size_t)) | |
17531 | return 0; | |
17532 | ; | |
17533 | return 0; | |
17534 | } | |
17535 | _ACEOF | |
17536 | rm -f conftest.$ac_objext | |
17537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17538 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17539 | ac_status=$? |
ac1cb8d3 VS |
17540 | grep -v '^ *+' conftest.er1 >conftest.err |
17541 | rm -f conftest.er1 | |
17542 | cat conftest.err >&5 | |
a848cd7e SC |
17543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17544 | (exit $ac_status); } && | |
9dd0f6c2 | 17545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17547 | (eval $ac_try) 2>&5 | |
17548 | ac_status=$? | |
17549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17550 | (exit $ac_status); }; } && | |
17551 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17557 | ac_cv_type_size_t=yes | |
17558 | else | |
17559 | echo "$as_me: failed program was:" >&5 | |
17560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17561 | ||
17562 | ac_cv_type_size_t=no | |
17563 | fi | |
ac1cb8d3 | 17564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17565 | fi |
17566 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
17567 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
17568 | ||
17569 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
17570 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
17571 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
17572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17573 | else | |
17574 | if test "$ac_cv_type_size_t" = yes; then | |
17575 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17576 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17577 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17578 | # This bug is HP SR number 8606223364. | |
17579 | if test "$cross_compiling" = yes; then | |
17580 | # Depending upon the size, compute the lo and hi bounds. | |
17581 | cat >conftest.$ac_ext <<_ACEOF | |
17582 | /* confdefs.h. */ | |
17583 | _ACEOF | |
17584 | cat confdefs.h >>conftest.$ac_ext | |
17585 | cat >>conftest.$ac_ext <<_ACEOF | |
17586 | /* end confdefs.h. */ | |
17587 | $ac_includes_default | |
17588 | int | |
17589 | main () | |
17590 | { | |
17591 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
17592 | test_array [0] = 0 | |
17593 | ||
17594 | ; | |
17595 | return 0; | |
17596 | } | |
17597 | _ACEOF | |
17598 | rm -f conftest.$ac_objext | |
17599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17600 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17601 | ac_status=$? |
ac1cb8d3 VS |
17602 | grep -v '^ *+' conftest.er1 >conftest.err |
17603 | rm -f conftest.er1 | |
17604 | cat conftest.err >&5 | |
a848cd7e SC |
17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17606 | (exit $ac_status); } && | |
9dd0f6c2 | 17607 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17609 | (eval $ac_try) 2>&5 | |
17610 | ac_status=$? | |
17611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17612 | (exit $ac_status); }; } && | |
17613 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17619 | ac_lo=0 ac_mid=0 | |
17620 | while :; do | |
17621 | cat >conftest.$ac_ext <<_ACEOF | |
17622 | /* confdefs.h. */ | |
17623 | _ACEOF | |
17624 | cat confdefs.h >>conftest.$ac_ext | |
17625 | cat >>conftest.$ac_ext <<_ACEOF | |
17626 | /* end confdefs.h. */ | |
17627 | $ac_includes_default | |
17628 | int | |
17629 | main () | |
17630 | { | |
17631 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17632 | test_array [0] = 0 | |
17633 | ||
17634 | ; | |
17635 | return 0; | |
17636 | } | |
17637 | _ACEOF | |
17638 | rm -f conftest.$ac_objext | |
17639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17640 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17641 | ac_status=$? |
ac1cb8d3 VS |
17642 | grep -v '^ *+' conftest.er1 >conftest.err |
17643 | rm -f conftest.er1 | |
17644 | cat conftest.err >&5 | |
a848cd7e SC |
17645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17646 | (exit $ac_status); } && | |
9dd0f6c2 | 17647 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17649 | (eval $ac_try) 2>&5 | |
17650 | ac_status=$? | |
17651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17652 | (exit $ac_status); }; } && | |
17653 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17659 | ac_hi=$ac_mid; break | |
17660 | else | |
17661 | echo "$as_me: failed program was:" >&5 | |
17662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17663 | ||
17664 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17665 | if test $ac_lo -le $ac_mid; then |
17666 | ac_lo= ac_hi= | |
17667 | break | |
17668 | fi | |
17669 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17670 | fi |
ac1cb8d3 | 17671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17672 | done |
17673 | else | |
17674 | echo "$as_me: failed program was:" >&5 | |
17675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17676 | ||
17677 | cat >conftest.$ac_ext <<_ACEOF | |
17678 | /* confdefs.h. */ | |
17679 | _ACEOF | |
17680 | cat confdefs.h >>conftest.$ac_ext | |
17681 | cat >>conftest.$ac_ext <<_ACEOF | |
17682 | /* end confdefs.h. */ | |
17683 | $ac_includes_default | |
17684 | int | |
17685 | main () | |
17686 | { | |
17687 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
17688 | test_array [0] = 0 | |
17689 | ||
17690 | ; | |
17691 | return 0; | |
17692 | } | |
17693 | _ACEOF | |
17694 | rm -f conftest.$ac_objext | |
17695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17697 | ac_status=$? |
ac1cb8d3 VS |
17698 | grep -v '^ *+' conftest.er1 >conftest.err |
17699 | rm -f conftest.er1 | |
17700 | cat conftest.err >&5 | |
a848cd7e SC |
17701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17702 | (exit $ac_status); } && | |
9dd0f6c2 | 17703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17705 | (eval $ac_try) 2>&5 | |
17706 | ac_status=$? | |
17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17708 | (exit $ac_status); }; } && | |
17709 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17715 | ac_hi=-1 ac_mid=-1 | |
17716 | while :; do | |
17717 | cat >conftest.$ac_ext <<_ACEOF | |
17718 | /* confdefs.h. */ | |
17719 | _ACEOF | |
17720 | cat confdefs.h >>conftest.$ac_ext | |
17721 | cat >>conftest.$ac_ext <<_ACEOF | |
17722 | /* end confdefs.h. */ | |
17723 | $ac_includes_default | |
17724 | int | |
17725 | main () | |
17726 | { | |
17727 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
17728 | test_array [0] = 0 | |
17729 | ||
17730 | ; | |
17731 | return 0; | |
17732 | } | |
17733 | _ACEOF | |
17734 | rm -f conftest.$ac_objext | |
17735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17736 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17737 | ac_status=$? |
ac1cb8d3 VS |
17738 | grep -v '^ *+' conftest.er1 >conftest.err |
17739 | rm -f conftest.er1 | |
17740 | cat conftest.err >&5 | |
a848cd7e SC |
17741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17742 | (exit $ac_status); } && | |
9dd0f6c2 | 17743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17745 | (eval $ac_try) 2>&5 | |
17746 | ac_status=$? | |
17747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17748 | (exit $ac_status); }; } && | |
17749 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17755 | ac_lo=$ac_mid; break | |
17756 | else | |
17757 | echo "$as_me: failed program was:" >&5 | |
17758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17759 | ||
17760 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17761 | if test $ac_mid -le $ac_hi; then |
17762 | ac_lo= ac_hi= | |
17763 | break | |
17764 | fi | |
17765 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17766 | fi |
ac1cb8d3 | 17767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17768 | done |
17769 | else | |
17770 | echo "$as_me: failed program was:" >&5 | |
17771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17772 | ||
17773 | ac_lo= ac_hi= | |
17774 | fi | |
ac1cb8d3 | 17775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17776 | fi |
ac1cb8d3 | 17777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17778 | # Binary search between lo and hi bounds. |
17779 | while test "x$ac_lo" != "x$ac_hi"; do | |
17780 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17781 | cat >conftest.$ac_ext <<_ACEOF | |
17782 | /* confdefs.h. */ | |
17783 | _ACEOF | |
17784 | cat confdefs.h >>conftest.$ac_ext | |
17785 | cat >>conftest.$ac_ext <<_ACEOF | |
17786 | /* end confdefs.h. */ | |
17787 | $ac_includes_default | |
17788 | int | |
17789 | main () | |
17790 | { | |
17791 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17792 | test_array [0] = 0 | |
17793 | ||
17794 | ; | |
17795 | return 0; | |
17796 | } | |
17797 | _ACEOF | |
17798 | rm -f conftest.$ac_objext | |
17799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17800 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17801 | ac_status=$? |
ac1cb8d3 VS |
17802 | grep -v '^ *+' conftest.er1 >conftest.err |
17803 | rm -f conftest.er1 | |
17804 | cat conftest.err >&5 | |
a848cd7e SC |
17805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17806 | (exit $ac_status); } && | |
9dd0f6c2 | 17807 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17809 | (eval $ac_try) 2>&5 | |
17810 | ac_status=$? | |
17811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17812 | (exit $ac_status); }; } && | |
17813 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17819 | ac_hi=$ac_mid | |
17820 | else | |
17821 | echo "$as_me: failed program was:" >&5 | |
17822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17823 | ||
17824 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17825 | fi | |
ac1cb8d3 | 17826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17827 | done |
17828 | case $ac_lo in | |
17829 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
17830 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17831 | See \`config.log' for more details." >&5 | |
17832 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17833 | See \`config.log' for more details." >&2;} | |
17834 | { (exit 1); exit 1; }; } ;; | |
17835 | esac | |
17836 | else | |
17837 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
17838 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17839 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17840 | { (exit 1); exit 1; }; } |
17841 | else | |
17842 | cat >conftest.$ac_ext <<_ACEOF | |
17843 | /* confdefs.h. */ | |
17844 | _ACEOF | |
17845 | cat confdefs.h >>conftest.$ac_ext | |
17846 | cat >>conftest.$ac_ext <<_ACEOF | |
17847 | /* end confdefs.h. */ | |
17848 | $ac_includes_default | |
17849 | long longval () { return (long) (sizeof (size_t)); } | |
17850 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
17851 | #include <stdio.h> | |
17852 | #include <stdlib.h> | |
17853 | int | |
17854 | main () | |
17855 | { | |
17856 | ||
17857 | FILE *f = fopen ("conftest.val", "w"); | |
17858 | if (! f) | |
17859 | exit (1); | |
17860 | if (((long) (sizeof (size_t))) < 0) | |
17861 | { | |
17862 | long i = longval (); | |
17863 | if (i != ((long) (sizeof (size_t)))) | |
17864 | exit (1); | |
17865 | fprintf (f, "%ld\n", i); | |
17866 | } | |
17867 | else | |
17868 | { | |
17869 | unsigned long i = ulongval (); | |
17870 | if (i != ((long) (sizeof (size_t)))) | |
17871 | exit (1); | |
17872 | fprintf (f, "%lu\n", i); | |
17873 | } | |
17874 | exit (ferror (f) || fclose (f) != 0); | |
17875 | ||
17876 | ; | |
17877 | return 0; | |
17878 | } | |
17879 | _ACEOF | |
17880 | rm -f conftest$ac_exeext | |
17881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17882 | (eval $ac_link) 2>&5 | |
17883 | ac_status=$? | |
17884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17885 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17887 | (eval $ac_try) 2>&5 | |
17888 | ac_status=$? | |
17889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17890 | (exit $ac_status); }; }; then | |
17891 | ac_cv_sizeof_size_t=`cat conftest.val` | |
17892 | else | |
17893 | echo "$as_me: program exited with status $ac_status" >&5 | |
17894 | echo "$as_me: failed program was:" >&5 | |
17895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17896 | ||
17897 | ( exit $ac_status ) | |
17898 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17899 | See \`config.log' for more details." >&5 | |
17900 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17901 | See \`config.log' for more details." >&2;} | |
17902 | { (exit 1); exit 1; }; } | |
17903 | fi | |
ac1cb8d3 | 17904 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17905 | fi |
17906 | fi | |
17907 | rm -f conftest.val | |
17908 | else | |
17909 | ac_cv_sizeof_size_t=0 | |
17910 | fi | |
17911 | fi | |
17912 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
17913 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
17914 | cat >>confdefs.h <<_ACEOF | |
17915 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
17916 | _ACEOF | |
17917 | ||
17918 | ||
17919 | ||
17920 | case "${host}" in | |
17921 | arm-*-linux* ) | |
17922 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17923 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17924 | if test "${ac_cv_type_long_long+set}" = set; then | |
17925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17926 | else | |
17927 | cat >conftest.$ac_ext <<_ACEOF | |
17928 | /* confdefs.h. */ | |
17929 | _ACEOF | |
17930 | cat confdefs.h >>conftest.$ac_ext | |
17931 | cat >>conftest.$ac_ext <<_ACEOF | |
17932 | /* end confdefs.h. */ | |
17933 | $ac_includes_default | |
17934 | int | |
17935 | main () | |
17936 | { | |
17937 | if ((long long *) 0) | |
17938 | return 0; | |
17939 | if (sizeof (long long)) | |
17940 | return 0; | |
17941 | ; | |
17942 | return 0; | |
17943 | } | |
17944 | _ACEOF | |
17945 | rm -f conftest.$ac_objext | |
17946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17947 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17948 | ac_status=$? |
ac1cb8d3 VS |
17949 | grep -v '^ *+' conftest.er1 >conftest.err |
17950 | rm -f conftest.er1 | |
17951 | cat conftest.err >&5 | |
a848cd7e SC |
17952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17953 | (exit $ac_status); } && | |
9dd0f6c2 | 17954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17956 | (eval $ac_try) 2>&5 | |
17957 | ac_status=$? | |
17958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17959 | (exit $ac_status); }; } && | |
17960 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17966 | ac_cv_type_long_long=yes | |
17967 | else | |
17968 | echo "$as_me: failed program was:" >&5 | |
17969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17970 | ||
17971 | ac_cv_type_long_long=no | |
17972 | fi | |
ac1cb8d3 | 17973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17974 | fi |
17975 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17976 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17977 | ||
17978 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17979 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17980 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17982 | else | |
17983 | if test "$ac_cv_type_long_long" = yes; then | |
17984 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17985 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17986 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17987 | # This bug is HP SR number 8606223364. | |
17988 | if test "$cross_compiling" = yes; then | |
17989 | # Depending upon the size, compute the lo and hi bounds. | |
17990 | cat >conftest.$ac_ext <<_ACEOF | |
17991 | /* confdefs.h. */ | |
17992 | _ACEOF | |
17993 | cat confdefs.h >>conftest.$ac_ext | |
17994 | cat >>conftest.$ac_ext <<_ACEOF | |
17995 | /* end confdefs.h. */ | |
17996 | $ac_includes_default | |
17997 | int | |
17998 | main () | |
17999 | { | |
18000 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18001 | test_array [0] = 0 | |
18002 | ||
18003 | ; | |
18004 | return 0; | |
18005 | } | |
18006 | _ACEOF | |
18007 | rm -f conftest.$ac_objext | |
18008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18009 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18010 | ac_status=$? |
ac1cb8d3 VS |
18011 | grep -v '^ *+' conftest.er1 >conftest.err |
18012 | rm -f conftest.er1 | |
18013 | cat conftest.err >&5 | |
a848cd7e SC |
18014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18015 | (exit $ac_status); } && | |
9dd0f6c2 | 18016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18018 | (eval $ac_try) 2>&5 | |
18019 | ac_status=$? | |
18020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18021 | (exit $ac_status); }; } && | |
18022 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18028 | ac_lo=0 ac_mid=0 | |
18029 | while :; do | |
18030 | cat >conftest.$ac_ext <<_ACEOF | |
18031 | /* confdefs.h. */ | |
18032 | _ACEOF | |
18033 | cat confdefs.h >>conftest.$ac_ext | |
18034 | cat >>conftest.$ac_ext <<_ACEOF | |
18035 | /* end confdefs.h. */ | |
18036 | $ac_includes_default | |
18037 | int | |
18038 | main () | |
18039 | { | |
18040 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18041 | test_array [0] = 0 | |
18042 | ||
18043 | ; | |
18044 | return 0; | |
18045 | } | |
18046 | _ACEOF | |
18047 | rm -f conftest.$ac_objext | |
18048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18049 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18050 | ac_status=$? |
ac1cb8d3 VS |
18051 | grep -v '^ *+' conftest.er1 >conftest.err |
18052 | rm -f conftest.er1 | |
18053 | cat conftest.err >&5 | |
a848cd7e SC |
18054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18055 | (exit $ac_status); } && | |
9dd0f6c2 | 18056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18058 | (eval $ac_try) 2>&5 | |
18059 | ac_status=$? | |
18060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18061 | (exit $ac_status); }; } && | |
18062 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18068 | ac_hi=$ac_mid; break | |
18069 | else | |
18070 | echo "$as_me: failed program was:" >&5 | |
18071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18072 | ||
18073 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18074 | if test $ac_lo -le $ac_mid; then |
18075 | ac_lo= ac_hi= | |
18076 | break | |
18077 | fi | |
18078 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18079 | fi |
ac1cb8d3 | 18080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18081 | done |
18082 | else | |
18083 | echo "$as_me: failed program was:" >&5 | |
18084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18085 | ||
18086 | cat >conftest.$ac_ext <<_ACEOF | |
18087 | /* confdefs.h. */ | |
18088 | _ACEOF | |
18089 | cat confdefs.h >>conftest.$ac_ext | |
18090 | cat >>conftest.$ac_ext <<_ACEOF | |
18091 | /* end confdefs.h. */ | |
18092 | $ac_includes_default | |
18093 | int | |
18094 | main () | |
18095 | { | |
18096 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18097 | test_array [0] = 0 | |
18098 | ||
18099 | ; | |
18100 | return 0; | |
18101 | } | |
18102 | _ACEOF | |
18103 | rm -f conftest.$ac_objext | |
18104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18105 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18106 | ac_status=$? |
ac1cb8d3 VS |
18107 | grep -v '^ *+' conftest.er1 >conftest.err |
18108 | rm -f conftest.er1 | |
18109 | cat conftest.err >&5 | |
a848cd7e SC |
18110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18111 | (exit $ac_status); } && | |
9dd0f6c2 | 18112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18114 | (eval $ac_try) 2>&5 | |
18115 | ac_status=$? | |
18116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18117 | (exit $ac_status); }; } && | |
18118 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18124 | ac_hi=-1 ac_mid=-1 | |
18125 | while :; do | |
18126 | cat >conftest.$ac_ext <<_ACEOF | |
18127 | /* confdefs.h. */ | |
18128 | _ACEOF | |
18129 | cat confdefs.h >>conftest.$ac_ext | |
18130 | cat >>conftest.$ac_ext <<_ACEOF | |
18131 | /* end confdefs.h. */ | |
18132 | $ac_includes_default | |
18133 | int | |
18134 | main () | |
18135 | { | |
18136 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18137 | test_array [0] = 0 | |
18138 | ||
18139 | ; | |
18140 | return 0; | |
18141 | } | |
18142 | _ACEOF | |
18143 | rm -f conftest.$ac_objext | |
18144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18145 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18146 | ac_status=$? |
ac1cb8d3 VS |
18147 | grep -v '^ *+' conftest.er1 >conftest.err |
18148 | rm -f conftest.er1 | |
18149 | cat conftest.err >&5 | |
a848cd7e SC |
18150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18151 | (exit $ac_status); } && | |
9dd0f6c2 | 18152 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18154 | (eval $ac_try) 2>&5 | |
18155 | ac_status=$? | |
18156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18157 | (exit $ac_status); }; } && | |
18158 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18164 | ac_lo=$ac_mid; break | |
18165 | else | |
18166 | echo "$as_me: failed program was:" >&5 | |
18167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18168 | ||
18169 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18170 | if test $ac_mid -le $ac_hi; then |
18171 | ac_lo= ac_hi= | |
18172 | break | |
18173 | fi | |
18174 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18175 | fi |
ac1cb8d3 | 18176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18177 | done |
18178 | else | |
18179 | echo "$as_me: failed program was:" >&5 | |
18180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18181 | ||
18182 | ac_lo= ac_hi= | |
18183 | fi | |
ac1cb8d3 | 18184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18185 | fi |
ac1cb8d3 | 18186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18187 | # Binary search between lo and hi bounds. |
18188 | while test "x$ac_lo" != "x$ac_hi"; do | |
18189 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18190 | cat >conftest.$ac_ext <<_ACEOF | |
18191 | /* confdefs.h. */ | |
18192 | _ACEOF | |
18193 | cat confdefs.h >>conftest.$ac_ext | |
18194 | cat >>conftest.$ac_ext <<_ACEOF | |
18195 | /* end confdefs.h. */ | |
18196 | $ac_includes_default | |
18197 | int | |
18198 | main () | |
18199 | { | |
18200 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18201 | test_array [0] = 0 | |
18202 | ||
18203 | ; | |
18204 | return 0; | |
18205 | } | |
18206 | _ACEOF | |
18207 | rm -f conftest.$ac_objext | |
18208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18209 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18210 | ac_status=$? |
ac1cb8d3 VS |
18211 | grep -v '^ *+' conftest.er1 >conftest.err |
18212 | rm -f conftest.er1 | |
18213 | cat conftest.err >&5 | |
a848cd7e SC |
18214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18215 | (exit $ac_status); } && | |
9dd0f6c2 | 18216 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18218 | (eval $ac_try) 2>&5 | |
18219 | ac_status=$? | |
18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18221 | (exit $ac_status); }; } && | |
18222 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18228 | ac_hi=$ac_mid | |
18229 | else | |
18230 | echo "$as_me: failed program was:" >&5 | |
18231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18232 | ||
18233 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18234 | fi | |
ac1cb8d3 | 18235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18236 | done |
18237 | case $ac_lo in | |
18238 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18239 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18240 | See \`config.log' for more details." >&5 | |
18241 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18242 | See \`config.log' for more details." >&2;} | |
18243 | { (exit 1); exit 1; }; } ;; | |
18244 | esac | |
18245 | else | |
18246 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
18247 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18248 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18249 | { (exit 1); exit 1; }; } |
18250 | else | |
18251 | cat >conftest.$ac_ext <<_ACEOF | |
18252 | /* confdefs.h. */ | |
18253 | _ACEOF | |
18254 | cat confdefs.h >>conftest.$ac_ext | |
18255 | cat >>conftest.$ac_ext <<_ACEOF | |
18256 | /* end confdefs.h. */ | |
18257 | $ac_includes_default | |
18258 | long longval () { return (long) (sizeof (long long)); } | |
18259 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18260 | #include <stdio.h> | |
18261 | #include <stdlib.h> | |
18262 | int | |
18263 | main () | |
18264 | { | |
18265 | ||
18266 | FILE *f = fopen ("conftest.val", "w"); | |
18267 | if (! f) | |
18268 | exit (1); | |
18269 | if (((long) (sizeof (long long))) < 0) | |
18270 | { | |
18271 | long i = longval (); | |
18272 | if (i != ((long) (sizeof (long long)))) | |
18273 | exit (1); | |
18274 | fprintf (f, "%ld\n", i); | |
18275 | } | |
18276 | else | |
18277 | { | |
18278 | unsigned long i = ulongval (); | |
18279 | if (i != ((long) (sizeof (long long)))) | |
18280 | exit (1); | |
18281 | fprintf (f, "%lu\n", i); | |
18282 | } | |
18283 | exit (ferror (f) || fclose (f) != 0); | |
18284 | ||
18285 | ; | |
18286 | return 0; | |
18287 | } | |
18288 | _ACEOF | |
18289 | rm -f conftest$ac_exeext | |
18290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18291 | (eval $ac_link) 2>&5 | |
18292 | ac_status=$? | |
18293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18294 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18296 | (eval $ac_try) 2>&5 | |
18297 | ac_status=$? | |
18298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18299 | (exit $ac_status); }; }; then | |
18300 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18301 | else | |
18302 | echo "$as_me: program exited with status $ac_status" >&5 | |
18303 | echo "$as_me: failed program was:" >&5 | |
18304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18305 | ||
18306 | ( exit $ac_status ) | |
18307 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18308 | See \`config.log' for more details." >&5 | |
18309 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18310 | See \`config.log' for more details." >&2;} | |
18311 | { (exit 1); exit 1; }; } | |
18312 | fi | |
ac1cb8d3 | 18313 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18314 | fi |
18315 | fi | |
18316 | rm -f conftest.val | |
18317 | else | |
18318 | ac_cv_sizeof_long_long=0 | |
18319 | fi | |
18320 | fi | |
18321 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18322 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18323 | cat >>confdefs.h <<_ACEOF | |
18324 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18325 | _ACEOF | |
18326 | ||
18327 | ||
18328 | ;; | |
18329 | *-hp-hpux* ) | |
18330 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18331 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18332 | if test "${ac_cv_type_long_long+set}" = set; then | |
18333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18334 | else | |
18335 | cat >conftest.$ac_ext <<_ACEOF | |
18336 | /* confdefs.h. */ | |
18337 | _ACEOF | |
18338 | cat confdefs.h >>conftest.$ac_ext | |
18339 | cat >>conftest.$ac_ext <<_ACEOF | |
18340 | /* end confdefs.h. */ | |
18341 | $ac_includes_default | |
18342 | int | |
18343 | main () | |
18344 | { | |
18345 | if ((long long *) 0) | |
18346 | return 0; | |
18347 | if (sizeof (long long)) | |
18348 | return 0; | |
18349 | ; | |
18350 | return 0; | |
18351 | } | |
18352 | _ACEOF | |
18353 | rm -f conftest.$ac_objext | |
18354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18355 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18356 | ac_status=$? |
ac1cb8d3 VS |
18357 | grep -v '^ *+' conftest.er1 >conftest.err |
18358 | rm -f conftest.er1 | |
18359 | cat conftest.err >&5 | |
a848cd7e SC |
18360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18361 | (exit $ac_status); } && | |
9dd0f6c2 | 18362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18364 | (eval $ac_try) 2>&5 | |
18365 | ac_status=$? | |
18366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18367 | (exit $ac_status); }; } && | |
18368 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18374 | ac_cv_type_long_long=yes | |
18375 | else | |
18376 | echo "$as_me: failed program was:" >&5 | |
18377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18378 | ||
18379 | ac_cv_type_long_long=no | |
18380 | fi | |
ac1cb8d3 | 18381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18382 | fi |
18383 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18384 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18385 | ||
18386 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18387 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18388 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18390 | else | |
18391 | if test "$ac_cv_type_long_long" = yes; then | |
18392 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18393 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18394 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18395 | # This bug is HP SR number 8606223364. | |
18396 | if test "$cross_compiling" = yes; then | |
18397 | # Depending upon the size, compute the lo and hi bounds. | |
18398 | cat >conftest.$ac_ext <<_ACEOF | |
18399 | /* confdefs.h. */ | |
18400 | _ACEOF | |
18401 | cat confdefs.h >>conftest.$ac_ext | |
18402 | cat >>conftest.$ac_ext <<_ACEOF | |
18403 | /* end confdefs.h. */ | |
18404 | $ac_includes_default | |
18405 | int | |
18406 | main () | |
18407 | { | |
18408 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18409 | test_array [0] = 0 | |
18410 | ||
18411 | ; | |
18412 | return 0; | |
18413 | } | |
18414 | _ACEOF | |
18415 | rm -f conftest.$ac_objext | |
18416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18417 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18418 | ac_status=$? |
ac1cb8d3 VS |
18419 | grep -v '^ *+' conftest.er1 >conftest.err |
18420 | rm -f conftest.er1 | |
18421 | cat conftest.err >&5 | |
a848cd7e SC |
18422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18423 | (exit $ac_status); } && | |
9dd0f6c2 | 18424 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18426 | (eval $ac_try) 2>&5 | |
18427 | ac_status=$? | |
18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18429 | (exit $ac_status); }; } && | |
18430 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18436 | ac_lo=0 ac_mid=0 | |
18437 | while :; do | |
18438 | cat >conftest.$ac_ext <<_ACEOF | |
18439 | /* confdefs.h. */ | |
18440 | _ACEOF | |
18441 | cat confdefs.h >>conftest.$ac_ext | |
18442 | cat >>conftest.$ac_ext <<_ACEOF | |
18443 | /* end confdefs.h. */ | |
18444 | $ac_includes_default | |
18445 | int | |
18446 | main () | |
18447 | { | |
18448 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18449 | test_array [0] = 0 | |
18450 | ||
18451 | ; | |
18452 | return 0; | |
18453 | } | |
18454 | _ACEOF | |
18455 | rm -f conftest.$ac_objext | |
18456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18457 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18458 | ac_status=$? |
ac1cb8d3 VS |
18459 | grep -v '^ *+' conftest.er1 >conftest.err |
18460 | rm -f conftest.er1 | |
18461 | cat conftest.err >&5 | |
a848cd7e SC |
18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18463 | (exit $ac_status); } && | |
9dd0f6c2 | 18464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18466 | (eval $ac_try) 2>&5 | |
18467 | ac_status=$? | |
18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18469 | (exit $ac_status); }; } && | |
18470 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18476 | ac_hi=$ac_mid; break | |
18477 | else | |
18478 | echo "$as_me: failed program was:" >&5 | |
18479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18480 | ||
18481 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18482 | if test $ac_lo -le $ac_mid; then |
18483 | ac_lo= ac_hi= | |
18484 | break | |
18485 | fi | |
18486 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18487 | fi |
ac1cb8d3 | 18488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18489 | done |
18490 | else | |
18491 | echo "$as_me: failed program was:" >&5 | |
18492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18493 | ||
18494 | cat >conftest.$ac_ext <<_ACEOF | |
18495 | /* confdefs.h. */ | |
18496 | _ACEOF | |
18497 | cat confdefs.h >>conftest.$ac_ext | |
18498 | cat >>conftest.$ac_ext <<_ACEOF | |
18499 | /* end confdefs.h. */ | |
18500 | $ac_includes_default | |
18501 | int | |
18502 | main () | |
18503 | { | |
18504 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18505 | test_array [0] = 0 | |
18506 | ||
18507 | ; | |
18508 | return 0; | |
18509 | } | |
18510 | _ACEOF | |
18511 | rm -f conftest.$ac_objext | |
18512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18513 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18514 | ac_status=$? |
ac1cb8d3 VS |
18515 | grep -v '^ *+' conftest.er1 >conftest.err |
18516 | rm -f conftest.er1 | |
18517 | cat conftest.err >&5 | |
a848cd7e SC |
18518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18519 | (exit $ac_status); } && | |
9dd0f6c2 | 18520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18522 | (eval $ac_try) 2>&5 | |
18523 | ac_status=$? | |
18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18525 | (exit $ac_status); }; } && | |
18526 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18532 | ac_hi=-1 ac_mid=-1 | |
18533 | while :; do | |
18534 | cat >conftest.$ac_ext <<_ACEOF | |
18535 | /* confdefs.h. */ | |
18536 | _ACEOF | |
18537 | cat confdefs.h >>conftest.$ac_ext | |
18538 | cat >>conftest.$ac_ext <<_ACEOF | |
18539 | /* end confdefs.h. */ | |
18540 | $ac_includes_default | |
18541 | int | |
18542 | main () | |
18543 | { | |
18544 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18545 | test_array [0] = 0 | |
18546 | ||
18547 | ; | |
18548 | return 0; | |
18549 | } | |
18550 | _ACEOF | |
18551 | rm -f conftest.$ac_objext | |
18552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18553 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18554 | ac_status=$? |
ac1cb8d3 VS |
18555 | grep -v '^ *+' conftest.er1 >conftest.err |
18556 | rm -f conftest.er1 | |
18557 | cat conftest.err >&5 | |
a848cd7e SC |
18558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18559 | (exit $ac_status); } && | |
9dd0f6c2 | 18560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18562 | (eval $ac_try) 2>&5 | |
18563 | ac_status=$? | |
18564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18565 | (exit $ac_status); }; } && | |
18566 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18572 | ac_lo=$ac_mid; break | |
18573 | else | |
18574 | echo "$as_me: failed program was:" >&5 | |
18575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18576 | ||
18577 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18578 | if test $ac_mid -le $ac_hi; then |
18579 | ac_lo= ac_hi= | |
18580 | break | |
18581 | fi | |
18582 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18583 | fi |
ac1cb8d3 | 18584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18585 | done |
18586 | else | |
18587 | echo "$as_me: failed program was:" >&5 | |
18588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18589 | ||
18590 | ac_lo= ac_hi= | |
18591 | fi | |
ac1cb8d3 | 18592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18593 | fi |
ac1cb8d3 | 18594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18595 | # Binary search between lo and hi bounds. |
18596 | while test "x$ac_lo" != "x$ac_hi"; do | |
18597 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18598 | cat >conftest.$ac_ext <<_ACEOF | |
18599 | /* confdefs.h. */ | |
18600 | _ACEOF | |
18601 | cat confdefs.h >>conftest.$ac_ext | |
18602 | cat >>conftest.$ac_ext <<_ACEOF | |
18603 | /* end confdefs.h. */ | |
18604 | $ac_includes_default | |
18605 | int | |
18606 | main () | |
18607 | { | |
18608 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18609 | test_array [0] = 0 | |
18610 | ||
18611 | ; | |
18612 | return 0; | |
18613 | } | |
18614 | _ACEOF | |
18615 | rm -f conftest.$ac_objext | |
18616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18617 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18618 | ac_status=$? |
ac1cb8d3 VS |
18619 | grep -v '^ *+' conftest.er1 >conftest.err |
18620 | rm -f conftest.er1 | |
18621 | cat conftest.err >&5 | |
a848cd7e SC |
18622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18623 | (exit $ac_status); } && | |
9dd0f6c2 | 18624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18626 | (eval $ac_try) 2>&5 | |
18627 | ac_status=$? | |
18628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18629 | (exit $ac_status); }; } && | |
18630 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18636 | ac_hi=$ac_mid | |
18637 | else | |
18638 | echo "$as_me: failed program was:" >&5 | |
18639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18640 | ||
18641 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18642 | fi | |
ac1cb8d3 | 18643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18644 | done |
18645 | case $ac_lo in | |
18646 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18647 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18648 | See \`config.log' for more details." >&5 | |
18649 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18650 | See \`config.log' for more details." >&2;} | |
18651 | { (exit 1); exit 1; }; } ;; | |
18652 | esac | |
18653 | else | |
18654 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
18655 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18656 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18657 | { (exit 1); exit 1; }; } |
18658 | else | |
18659 | cat >conftest.$ac_ext <<_ACEOF | |
18660 | /* confdefs.h. */ | |
18661 | _ACEOF | |
18662 | cat confdefs.h >>conftest.$ac_ext | |
18663 | cat >>conftest.$ac_ext <<_ACEOF | |
18664 | /* end confdefs.h. */ | |
18665 | $ac_includes_default | |
18666 | long longval () { return (long) (sizeof (long long)); } | |
18667 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18668 | #include <stdio.h> | |
18669 | #include <stdlib.h> | |
18670 | int | |
18671 | main () | |
18672 | { | |
18673 | ||
18674 | FILE *f = fopen ("conftest.val", "w"); | |
18675 | if (! f) | |
18676 | exit (1); | |
18677 | if (((long) (sizeof (long long))) < 0) | |
18678 | { | |
18679 | long i = longval (); | |
18680 | if (i != ((long) (sizeof (long long)))) | |
18681 | exit (1); | |
18682 | fprintf (f, "%ld\n", i); | |
18683 | } | |
18684 | else | |
18685 | { | |
18686 | unsigned long i = ulongval (); | |
18687 | if (i != ((long) (sizeof (long long)))) | |
18688 | exit (1); | |
18689 | fprintf (f, "%lu\n", i); | |
18690 | } | |
18691 | exit (ferror (f) || fclose (f) != 0); | |
18692 | ||
18693 | ; | |
18694 | return 0; | |
18695 | } | |
18696 | _ACEOF | |
18697 | rm -f conftest$ac_exeext | |
18698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18699 | (eval $ac_link) 2>&5 | |
18700 | ac_status=$? | |
18701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18702 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18704 | (eval $ac_try) 2>&5 | |
18705 | ac_status=$? | |
18706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18707 | (exit $ac_status); }; }; then | |
18708 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18709 | else | |
18710 | echo "$as_me: program exited with status $ac_status" >&5 | |
18711 | echo "$as_me: failed program was:" >&5 | |
18712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18713 | ||
18714 | ( exit $ac_status ) | |
18715 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18716 | See \`config.log' for more details." >&5 | |
18717 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18718 | See \`config.log' for more details." >&2;} | |
18719 | { (exit 1); exit 1; }; } | |
18720 | fi | |
ac1cb8d3 | 18721 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18722 | fi |
18723 | fi | |
18724 | rm -f conftest.val | |
18725 | else | |
18726 | ac_cv_sizeof_long_long=0 | |
18727 | fi | |
18728 | fi | |
18729 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18730 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18731 | cat >>confdefs.h <<_ACEOF | |
18732 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18733 | _ACEOF | |
18734 | ||
18735 | ||
18736 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
18737 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
18738 | fi | |
18739 | ;; | |
18740 | * ) | |
18741 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18742 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18743 | if test "${ac_cv_type_long_long+set}" = set; then | |
18744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18745 | else | |
18746 | cat >conftest.$ac_ext <<_ACEOF | |
18747 | /* confdefs.h. */ | |
18748 | _ACEOF | |
18749 | cat confdefs.h >>conftest.$ac_ext | |
18750 | cat >>conftest.$ac_ext <<_ACEOF | |
18751 | /* end confdefs.h. */ | |
18752 | $ac_includes_default | |
18753 | int | |
18754 | main () | |
18755 | { | |
18756 | if ((long long *) 0) | |
18757 | return 0; | |
18758 | if (sizeof (long long)) | |
18759 | return 0; | |
18760 | ; | |
18761 | return 0; | |
18762 | } | |
18763 | _ACEOF | |
18764 | rm -f conftest.$ac_objext | |
18765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18766 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18767 | ac_status=$? |
ac1cb8d3 VS |
18768 | grep -v '^ *+' conftest.er1 >conftest.err |
18769 | rm -f conftest.er1 | |
18770 | cat conftest.err >&5 | |
a848cd7e SC |
18771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18772 | (exit $ac_status); } && | |
9dd0f6c2 | 18773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18775 | (eval $ac_try) 2>&5 | |
18776 | ac_status=$? | |
18777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18778 | (exit $ac_status); }; } && | |
18779 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18785 | ac_cv_type_long_long=yes | |
18786 | else | |
18787 | echo "$as_me: failed program was:" >&5 | |
18788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18789 | ||
18790 | ac_cv_type_long_long=no | |
18791 | fi | |
ac1cb8d3 | 18792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18793 | fi |
18794 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18795 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18796 | ||
18797 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18798 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18799 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18801 | else | |
18802 | if test "$ac_cv_type_long_long" = yes; then | |
18803 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18804 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18805 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18806 | # This bug is HP SR number 8606223364. | |
18807 | if test "$cross_compiling" = yes; then | |
18808 | # Depending upon the size, compute the lo and hi bounds. | |
18809 | cat >conftest.$ac_ext <<_ACEOF | |
18810 | /* confdefs.h. */ | |
18811 | _ACEOF | |
18812 | cat confdefs.h >>conftest.$ac_ext | |
18813 | cat >>conftest.$ac_ext <<_ACEOF | |
18814 | /* end confdefs.h. */ | |
18815 | $ac_includes_default | |
18816 | int | |
18817 | main () | |
18818 | { | |
18819 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18820 | test_array [0] = 0 | |
18821 | ||
18822 | ; | |
18823 | return 0; | |
18824 | } | |
18825 | _ACEOF | |
18826 | rm -f conftest.$ac_objext | |
18827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18828 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18829 | ac_status=$? |
ac1cb8d3 VS |
18830 | grep -v '^ *+' conftest.er1 >conftest.err |
18831 | rm -f conftest.er1 | |
18832 | cat conftest.err >&5 | |
a848cd7e SC |
18833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18834 | (exit $ac_status); } && | |
9dd0f6c2 | 18835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18837 | (eval $ac_try) 2>&5 | |
18838 | ac_status=$? | |
18839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18840 | (exit $ac_status); }; } && | |
18841 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18847 | ac_lo=0 ac_mid=0 | |
18848 | while :; do | |
18849 | cat >conftest.$ac_ext <<_ACEOF | |
18850 | /* confdefs.h. */ | |
18851 | _ACEOF | |
18852 | cat confdefs.h >>conftest.$ac_ext | |
18853 | cat >>conftest.$ac_ext <<_ACEOF | |
18854 | /* end confdefs.h. */ | |
18855 | $ac_includes_default | |
18856 | int | |
18857 | main () | |
18858 | { | |
18859 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18860 | test_array [0] = 0 | |
18861 | ||
18862 | ; | |
18863 | return 0; | |
18864 | } | |
18865 | _ACEOF | |
18866 | rm -f conftest.$ac_objext | |
18867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18869 | ac_status=$? |
ac1cb8d3 VS |
18870 | grep -v '^ *+' conftest.er1 >conftest.err |
18871 | rm -f conftest.er1 | |
18872 | cat conftest.err >&5 | |
a848cd7e SC |
18873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18874 | (exit $ac_status); } && | |
9dd0f6c2 | 18875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18877 | (eval $ac_try) 2>&5 | |
18878 | ac_status=$? | |
18879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18880 | (exit $ac_status); }; } && | |
18881 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18887 | ac_hi=$ac_mid; break | |
18888 | else | |
18889 | echo "$as_me: failed program was:" >&5 | |
18890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18891 | ||
18892 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18893 | if test $ac_lo -le $ac_mid; then |
18894 | ac_lo= ac_hi= | |
18895 | break | |
18896 | fi | |
18897 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18898 | fi |
ac1cb8d3 | 18899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18900 | done |
18901 | else | |
18902 | echo "$as_me: failed program was:" >&5 | |
18903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18904 | ||
18905 | cat >conftest.$ac_ext <<_ACEOF | |
18906 | /* confdefs.h. */ | |
18907 | _ACEOF | |
18908 | cat confdefs.h >>conftest.$ac_ext | |
18909 | cat >>conftest.$ac_ext <<_ACEOF | |
18910 | /* end confdefs.h. */ | |
18911 | $ac_includes_default | |
18912 | int | |
18913 | main () | |
18914 | { | |
18915 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18916 | test_array [0] = 0 | |
18917 | ||
18918 | ; | |
18919 | return 0; | |
18920 | } | |
18921 | _ACEOF | |
18922 | rm -f conftest.$ac_objext | |
18923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18924 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18925 | ac_status=$? |
ac1cb8d3 VS |
18926 | grep -v '^ *+' conftest.er1 >conftest.err |
18927 | rm -f conftest.er1 | |
18928 | cat conftest.err >&5 | |
a848cd7e SC |
18929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18930 | (exit $ac_status); } && | |
9dd0f6c2 | 18931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18933 | (eval $ac_try) 2>&5 | |
18934 | ac_status=$? | |
18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18936 | (exit $ac_status); }; } && | |
18937 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18943 | ac_hi=-1 ac_mid=-1 | |
18944 | while :; do | |
18945 | cat >conftest.$ac_ext <<_ACEOF | |
18946 | /* confdefs.h. */ | |
18947 | _ACEOF | |
18948 | cat confdefs.h >>conftest.$ac_ext | |
18949 | cat >>conftest.$ac_ext <<_ACEOF | |
18950 | /* end confdefs.h. */ | |
18951 | $ac_includes_default | |
18952 | int | |
18953 | main () | |
18954 | { | |
18955 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18956 | test_array [0] = 0 | |
18957 | ||
18958 | ; | |
18959 | return 0; | |
18960 | } | |
18961 | _ACEOF | |
18962 | rm -f conftest.$ac_objext | |
18963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18964 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18965 | ac_status=$? |
ac1cb8d3 VS |
18966 | grep -v '^ *+' conftest.er1 >conftest.err |
18967 | rm -f conftest.er1 | |
18968 | cat conftest.err >&5 | |
a848cd7e SC |
18969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18970 | (exit $ac_status); } && | |
9dd0f6c2 | 18971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18973 | (eval $ac_try) 2>&5 | |
18974 | ac_status=$? | |
18975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18976 | (exit $ac_status); }; } && | |
18977 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18983 | ac_lo=$ac_mid; break | |
18984 | else | |
18985 | echo "$as_me: failed program was:" >&5 | |
18986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18987 | ||
18988 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18989 | if test $ac_mid -le $ac_hi; then |
18990 | ac_lo= ac_hi= | |
18991 | break | |
18992 | fi | |
18993 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18994 | fi |
ac1cb8d3 | 18995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18996 | done |
18997 | else | |
18998 | echo "$as_me: failed program was:" >&5 | |
18999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19000 | ||
19001 | ac_lo= ac_hi= | |
19002 | fi | |
ac1cb8d3 | 19003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19004 | fi |
ac1cb8d3 | 19005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19006 | # Binary search between lo and hi bounds. |
19007 | while test "x$ac_lo" != "x$ac_hi"; do | |
19008 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19009 | cat >conftest.$ac_ext <<_ACEOF | |
19010 | /* confdefs.h. */ | |
19011 | _ACEOF | |
19012 | cat confdefs.h >>conftest.$ac_ext | |
19013 | cat >>conftest.$ac_ext <<_ACEOF | |
19014 | /* end confdefs.h. */ | |
19015 | $ac_includes_default | |
19016 | int | |
19017 | main () | |
19018 | { | |
19019 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19020 | test_array [0] = 0 | |
19021 | ||
19022 | ; | |
19023 | return 0; | |
19024 | } | |
19025 | _ACEOF | |
19026 | rm -f conftest.$ac_objext | |
19027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19028 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19029 | ac_status=$? |
ac1cb8d3 VS |
19030 | grep -v '^ *+' conftest.er1 >conftest.err |
19031 | rm -f conftest.er1 | |
19032 | cat conftest.err >&5 | |
a848cd7e SC |
19033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19034 | (exit $ac_status); } && | |
9dd0f6c2 | 19035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19037 | (eval $ac_try) 2>&5 | |
19038 | ac_status=$? | |
19039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19040 | (exit $ac_status); }; } && | |
19041 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
19047 | ac_hi=$ac_mid | |
19048 | else | |
19049 | echo "$as_me: failed program was:" >&5 | |
19050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19051 | ||
19052 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19053 | fi | |
ac1cb8d3 | 19054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19055 | done |
19056 | case $ac_lo in | |
19057 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19058 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19059 | See \`config.log' for more details." >&5 | |
19060 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19061 | See \`config.log' for more details." >&2;} | |
19062 | { (exit 1); exit 1; }; } ;; | |
19063 | esac | |
19064 | else | |
19065 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
19066 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19067 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19068 | { (exit 1); exit 1; }; } |
19069 | else | |
19070 | cat >conftest.$ac_ext <<_ACEOF | |
19071 | /* confdefs.h. */ | |
19072 | _ACEOF | |
19073 | cat confdefs.h >>conftest.$ac_ext | |
19074 | cat >>conftest.$ac_ext <<_ACEOF | |
19075 | /* end confdefs.h. */ | |
19076 | $ac_includes_default | |
19077 | long longval () { return (long) (sizeof (long long)); } | |
19078 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19079 | #include <stdio.h> | |
19080 | #include <stdlib.h> | |
19081 | int | |
19082 | main () | |
19083 | { | |
19084 | ||
19085 | FILE *f = fopen ("conftest.val", "w"); | |
19086 | if (! f) | |
19087 | exit (1); | |
19088 | if (((long) (sizeof (long long))) < 0) | |
19089 | { | |
19090 | long i = longval (); | |
19091 | if (i != ((long) (sizeof (long long)))) | |
19092 | exit (1); | |
19093 | fprintf (f, "%ld\n", i); | |
19094 | } | |
19095 | else | |
19096 | { | |
19097 | unsigned long i = ulongval (); | |
19098 | if (i != ((long) (sizeof (long long)))) | |
19099 | exit (1); | |
19100 | fprintf (f, "%lu\n", i); | |
19101 | } | |
19102 | exit (ferror (f) || fclose (f) != 0); | |
19103 | ||
19104 | ; | |
19105 | return 0; | |
19106 | } | |
19107 | _ACEOF | |
19108 | rm -f conftest$ac_exeext | |
19109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19110 | (eval $ac_link) 2>&5 | |
19111 | ac_status=$? | |
19112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19113 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19115 | (eval $ac_try) 2>&5 | |
19116 | ac_status=$? | |
19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19118 | (exit $ac_status); }; }; then | |
19119 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19120 | else | |
19121 | echo "$as_me: program exited with status $ac_status" >&5 | |
19122 | echo "$as_me: failed program was:" >&5 | |
19123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19124 | ||
19125 | ( exit $ac_status ) | |
19126 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19127 | See \`config.log' for more details." >&5 | |
19128 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19129 | See \`config.log' for more details." >&2;} | |
19130 | { (exit 1); exit 1; }; } | |
19131 | fi | |
ac1cb8d3 | 19132 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19133 | fi |
19134 | fi | |
19135 | rm -f conftest.val | |
19136 | else | |
19137 | ac_cv_sizeof_long_long=0 | |
19138 | fi | |
19139 | fi | |
19140 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19141 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19142 | cat >>confdefs.h <<_ACEOF | |
19143 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19144 | _ACEOF | |
19145 | ||
19146 | ||
19147 | esac | |
19148 | ||
238ecede MW |
19149 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
19150 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
19151 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
19152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19153 | else | |
19154 | cat >conftest.$ac_ext <<_ACEOF | |
19155 | /* confdefs.h. */ | |
19156 | _ACEOF | |
19157 | cat confdefs.h >>conftest.$ac_ext | |
19158 | cat >>conftest.$ac_ext <<_ACEOF | |
19159 | /* end confdefs.h. */ | |
19160 | ||
19161 | /* DJGPP only has fake wchar_t: */ | |
19162 | #ifdef __DJGPP__ | |
19163 | # error "fake wchar_t" | |
19164 | #endif | |
19165 | #ifdef HAVE_WCHAR_H | |
19166 | # ifdef __CYGWIN__ | |
19167 | # include <stddef.h> | |
19168 | # endif | |
19169 | # include <wchar.h> | |
19170 | #endif | |
19171 | #ifdef HAVE_STDLIB_H | |
19172 | # include <stdlib.h> | |
19173 | #endif | |
19174 | #include <stdio.h> | |
19175 | ||
19176 | ||
19177 | ||
19178 | int | |
19179 | main () | |
19180 | { | |
19181 | if ((wchar_t *) 0) | |
19182 | return 0; | |
19183 | if (sizeof (wchar_t)) | |
19184 | return 0; | |
19185 | ; | |
19186 | return 0; | |
19187 | } | |
19188 | _ACEOF | |
19189 | rm -f conftest.$ac_objext | |
19190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19191 | (eval $ac_compile) 2>conftest.er1 | |
19192 | ac_status=$? | |
19193 | grep -v '^ *+' conftest.er1 >conftest.err | |
19194 | rm -f conftest.er1 | |
19195 | cat conftest.err >&5 | |
19196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19197 | (exit $ac_status); } && | |
9dd0f6c2 | 19198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19200 | (eval $ac_try) 2>&5 | |
19201 | ac_status=$? | |
19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19203 | (exit $ac_status); }; } && | |
19204 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
19210 | ac_cv_type_wchar_t=yes | |
19211 | else | |
19212 | echo "$as_me: failed program was:" >&5 | |
19213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19214 | ||
19215 | ac_cv_type_wchar_t=no | |
19216 | fi | |
19217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19218 | fi | |
19219 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
19220 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
19221 | ||
a848cd7e SC |
19222 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
19223 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 19224 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
19225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19226 | else | |
238ecede MW |
19227 | if test "$ac_cv_type_wchar_t" = yes; then |
19228 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19229 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19230 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19231 | # This bug is HP SR number 8606223364. | |
19232 | if test "$cross_compiling" = yes; then | |
19233 | # Depending upon the size, compute the lo and hi bounds. | |
19234 | cat >conftest.$ac_ext <<_ACEOF | |
19235 | /* confdefs.h. */ | |
19236 | _ACEOF | |
19237 | cat confdefs.h >>conftest.$ac_ext | |
19238 | cat >>conftest.$ac_ext <<_ACEOF | |
19239 | /* end confdefs.h. */ | |
19240 | ||
19241 | /* DJGPP only has fake wchar_t: */ | |
19242 | #ifdef __DJGPP__ | |
19243 | # error "fake wchar_t" | |
19244 | #endif | |
19245 | #ifdef HAVE_WCHAR_H | |
19246 | # ifdef __CYGWIN__ | |
19247 | # include <stddef.h> | |
19248 | # endif | |
19249 | # include <wchar.h> | |
19250 | #endif | |
19251 | #ifdef HAVE_STDLIB_H | |
19252 | # include <stdlib.h> | |
19253 | #endif | |
19254 | #include <stdio.h> | |
19255 | ||
19256 | ||
19257 | ||
19258 | int | |
19259 | main () | |
19260 | { | |
19261 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
19262 | test_array [0] = 0 | |
19263 | ||
19264 | ; | |
19265 | return 0; | |
19266 | } | |
19267 | _ACEOF | |
19268 | rm -f conftest.$ac_objext | |
19269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19270 | (eval $ac_compile) 2>conftest.er1 | |
19271 | ac_status=$? | |
19272 | grep -v '^ *+' conftest.er1 >conftest.err | |
19273 | rm -f conftest.er1 | |
19274 | cat conftest.err >&5 | |
19275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19276 | (exit $ac_status); } && | |
9dd0f6c2 | 19277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19279 | (eval $ac_try) 2>&5 | |
19280 | ac_status=$? | |
19281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19282 | (exit $ac_status); }; } && | |
19283 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
19289 | ac_lo=0 ac_mid=0 | |
19290 | while :; do | |
19291 | cat >conftest.$ac_ext <<_ACEOF | |
19292 | /* confdefs.h. */ | |
19293 | _ACEOF | |
19294 | cat confdefs.h >>conftest.$ac_ext | |
19295 | cat >>conftest.$ac_ext <<_ACEOF | |
19296 | /* end confdefs.h. */ | |
19297 | ||
19298 | /* DJGPP only has fake wchar_t: */ | |
19299 | #ifdef __DJGPP__ | |
19300 | # error "fake wchar_t" | |
19301 | #endif | |
19302 | #ifdef HAVE_WCHAR_H | |
19303 | # ifdef __CYGWIN__ | |
19304 | # include <stddef.h> | |
19305 | # endif | |
19306 | # include <wchar.h> | |
19307 | #endif | |
19308 | #ifdef HAVE_STDLIB_H | |
19309 | # include <stdlib.h> | |
19310 | #endif | |
19311 | #include <stdio.h> | |
19312 | ||
19313 | ||
19314 | ||
19315 | int | |
19316 | main () | |
19317 | { | |
19318 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19319 | test_array [0] = 0 | |
19320 | ||
19321 | ; | |
19322 | return 0; | |
19323 | } | |
19324 | _ACEOF | |
19325 | rm -f conftest.$ac_objext | |
19326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19327 | (eval $ac_compile) 2>conftest.er1 | |
19328 | ac_status=$? | |
19329 | grep -v '^ *+' conftest.er1 >conftest.err | |
19330 | rm -f conftest.er1 | |
19331 | cat conftest.err >&5 | |
19332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19333 | (exit $ac_status); } && | |
9dd0f6c2 | 19334 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19336 | (eval $ac_try) 2>&5 | |
19337 | ac_status=$? | |
19338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19339 | (exit $ac_status); }; } && | |
19340 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
19346 | ac_hi=$ac_mid; break | |
19347 | else | |
19348 | echo "$as_me: failed program was:" >&5 | |
19349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19350 | ||
19351 | ac_lo=`expr $ac_mid + 1` | |
19352 | if test $ac_lo -le $ac_mid; then | |
19353 | ac_lo= ac_hi= | |
19354 | break | |
19355 | fi | |
19356 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19357 | fi | |
19358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19359 | done | |
19360 | else | |
19361 | echo "$as_me: failed program was:" >&5 | |
19362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19363 | ||
19364 | cat >conftest.$ac_ext <<_ACEOF | |
19365 | /* confdefs.h. */ | |
19366 | _ACEOF | |
19367 | cat confdefs.h >>conftest.$ac_ext | |
19368 | cat >>conftest.$ac_ext <<_ACEOF | |
19369 | /* end confdefs.h. */ | |
19370 | ||
19371 | /* DJGPP only has fake wchar_t: */ | |
19372 | #ifdef __DJGPP__ | |
19373 | # error "fake wchar_t" | |
19374 | #endif | |
19375 | #ifdef HAVE_WCHAR_H | |
19376 | # ifdef __CYGWIN__ | |
19377 | # include <stddef.h> | |
19378 | # endif | |
19379 | # include <wchar.h> | |
19380 | #endif | |
19381 | #ifdef HAVE_STDLIB_H | |
19382 | # include <stdlib.h> | |
19383 | #endif | |
19384 | #include <stdio.h> | |
19385 | ||
19386 | ||
19387 | ||
19388 | int | |
19389 | main () | |
19390 | { | |
19391 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
19392 | test_array [0] = 0 | |
19393 | ||
19394 | ; | |
19395 | return 0; | |
19396 | } | |
19397 | _ACEOF | |
19398 | rm -f conftest.$ac_objext | |
19399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19400 | (eval $ac_compile) 2>conftest.er1 | |
19401 | ac_status=$? | |
19402 | grep -v '^ *+' conftest.er1 >conftest.err | |
19403 | rm -f conftest.er1 | |
19404 | cat conftest.err >&5 | |
19405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19406 | (exit $ac_status); } && | |
9dd0f6c2 | 19407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19409 | (eval $ac_try) 2>&5 | |
19410 | ac_status=$? | |
19411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19412 | (exit $ac_status); }; } && | |
19413 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
19419 | ac_hi=-1 ac_mid=-1 | |
19420 | while :; do | |
19421 | cat >conftest.$ac_ext <<_ACEOF | |
19422 | /* confdefs.h. */ | |
19423 | _ACEOF | |
19424 | cat confdefs.h >>conftest.$ac_ext | |
19425 | cat >>conftest.$ac_ext <<_ACEOF | |
19426 | /* end confdefs.h. */ | |
19427 | ||
19428 | /* DJGPP only has fake wchar_t: */ | |
19429 | #ifdef __DJGPP__ | |
19430 | # error "fake wchar_t" | |
19431 | #endif | |
19432 | #ifdef HAVE_WCHAR_H | |
19433 | # ifdef __CYGWIN__ | |
19434 | # include <stddef.h> | |
19435 | # endif | |
19436 | # include <wchar.h> | |
19437 | #endif | |
19438 | #ifdef HAVE_STDLIB_H | |
19439 | # include <stdlib.h> | |
19440 | #endif | |
19441 | #include <stdio.h> | |
19442 | ||
19443 | ||
19444 | ||
19445 | int | |
19446 | main () | |
19447 | { | |
19448 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
19449 | test_array [0] = 0 | |
19450 | ||
19451 | ; | |
19452 | return 0; | |
19453 | } | |
19454 | _ACEOF | |
19455 | rm -f conftest.$ac_objext | |
19456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19457 | (eval $ac_compile) 2>conftest.er1 | |
19458 | ac_status=$? | |
19459 | grep -v '^ *+' conftest.er1 >conftest.err | |
19460 | rm -f conftest.er1 | |
19461 | cat conftest.err >&5 | |
19462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19463 | (exit $ac_status); } && | |
9dd0f6c2 | 19464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19466 | (eval $ac_try) 2>&5 | |
19467 | ac_status=$? | |
19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19469 | (exit $ac_status); }; } && | |
19470 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
19476 | ac_lo=$ac_mid; break | |
19477 | else | |
19478 | echo "$as_me: failed program was:" >&5 | |
19479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19480 | ||
19481 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19482 | if test $ac_mid -le $ac_hi; then | |
19483 | ac_lo= ac_hi= | |
19484 | break | |
19485 | fi | |
19486 | ac_mid=`expr 2 '*' $ac_mid` | |
19487 | fi | |
19488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19489 | done | |
19490 | else | |
19491 | echo "$as_me: failed program was:" >&5 | |
19492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19493 | ||
19494 | ac_lo= ac_hi= | |
19495 | fi | |
19496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19497 | fi | |
19498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19499 | # Binary search between lo and hi bounds. | |
19500 | while test "x$ac_lo" != "x$ac_hi"; do | |
19501 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19502 | cat >conftest.$ac_ext <<_ACEOF | |
19503 | /* confdefs.h. */ | |
19504 | _ACEOF | |
19505 | cat confdefs.h >>conftest.$ac_ext | |
19506 | cat >>conftest.$ac_ext <<_ACEOF | |
19507 | /* end confdefs.h. */ | |
19508 | ||
19509 | /* DJGPP only has fake wchar_t: */ | |
19510 | #ifdef __DJGPP__ | |
19511 | # error "fake wchar_t" | |
19512 | #endif | |
19513 | #ifdef HAVE_WCHAR_H | |
19514 | # ifdef __CYGWIN__ | |
19515 | # include <stddef.h> | |
19516 | # endif | |
19517 | # include <wchar.h> | |
19518 | #endif | |
19519 | #ifdef HAVE_STDLIB_H | |
19520 | # include <stdlib.h> | |
19521 | #endif | |
19522 | #include <stdio.h> | |
a848cd7e | 19523 | |
a848cd7e | 19524 | |
a848cd7e | 19525 | |
238ecede MW |
19526 | int |
19527 | main () | |
19528 | { | |
19529 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19530 | test_array [0] = 0 | |
a848cd7e | 19531 | |
238ecede MW |
19532 | ; |
19533 | return 0; | |
19534 | } | |
19535 | _ACEOF | |
19536 | rm -f conftest.$ac_objext | |
19537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19538 | (eval $ac_compile) 2>conftest.er1 | |
19539 | ac_status=$? | |
19540 | grep -v '^ *+' conftest.er1 >conftest.err | |
19541 | rm -f conftest.er1 | |
19542 | cat conftest.err >&5 | |
19543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19544 | (exit $ac_status); } && | |
9dd0f6c2 | 19545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19547 | (eval $ac_try) 2>&5 | |
19548 | ac_status=$? | |
19549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19550 | (exit $ac_status); }; } && | |
19551 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
19557 | ac_hi=$ac_mid | |
19558 | else | |
19559 | echo "$as_me: failed program was:" >&5 | |
19560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19561 | ||
19562 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19563 | fi | |
19564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19565 | done | |
19566 | case $ac_lo in | |
19567 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
19568 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
19569 | See \`config.log' for more details." >&5 | |
19570 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19571 | See \`config.log' for more details." >&2;} | |
19572 | { (exit 1); exit 1; }; } ;; | |
19573 | esac | |
19574 | else | |
19575 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
19576 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19577 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 19578 | { (exit 1); exit 1; }; } |
a848cd7e SC |
19579 | else |
19580 | cat >conftest.$ac_ext <<_ACEOF | |
19581 | /* confdefs.h. */ | |
19582 | _ACEOF | |
19583 | cat confdefs.h >>conftest.$ac_ext | |
19584 | cat >>conftest.$ac_ext <<_ACEOF | |
19585 | /* end confdefs.h. */ | |
19586 | ||
238ecede MW |
19587 | /* DJGPP only has fake wchar_t: */ |
19588 | #ifdef __DJGPP__ | |
19589 | # error "fake wchar_t" | |
19590 | #endif | |
19591 | #ifdef HAVE_WCHAR_H | |
19592 | # ifdef __CYGWIN__ | |
19593 | # include <stddef.h> | |
19594 | # endif | |
19595 | # include <wchar.h> | |
19596 | #endif | |
19597 | #ifdef HAVE_STDLIB_H | |
19598 | # include <stdlib.h> | |
19599 | #endif | |
19600 | #include <stdio.h> | |
19601 | ||
19602 | ||
19603 | ||
19604 | long longval () { return (long) (sizeof (wchar_t)); } | |
19605 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
19606 | #include <stdio.h> | |
19607 | #include <stdlib.h> | |
19608 | int | |
19609 | main () | |
19610 | { | |
a848cd7e | 19611 | |
238ecede MW |
19612 | FILE *f = fopen ("conftest.val", "w"); |
19613 | if (! f) | |
19614 | exit (1); | |
19615 | if (((long) (sizeof (wchar_t))) < 0) | |
19616 | { | |
19617 | long i = longval (); | |
19618 | if (i != ((long) (sizeof (wchar_t)))) | |
19619 | exit (1); | |
19620 | fprintf (f, "%ld\n", i); | |
19621 | } | |
19622 | else | |
19623 | { | |
19624 | unsigned long i = ulongval (); | |
19625 | if (i != ((long) (sizeof (wchar_t)))) | |
19626 | exit (1); | |
19627 | fprintf (f, "%lu\n", i); | |
19628 | } | |
19629 | exit (ferror (f) || fclose (f) != 0); | |
19630 | ||
19631 | ; | |
19632 | return 0; | |
19633 | } | |
a848cd7e SC |
19634 | _ACEOF |
19635 | rm -f conftest$ac_exeext | |
19636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19637 | (eval $ac_link) 2>&5 | |
19638 | ac_status=$? | |
19639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19640 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19642 | (eval $ac_try) 2>&5 | |
19643 | ac_status=$? | |
19644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19645 | (exit $ac_status); }; }; then | |
238ecede | 19646 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
19647 | else |
19648 | echo "$as_me: program exited with status $ac_status" >&5 | |
19649 | echo "$as_me: failed program was:" >&5 | |
19650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19651 | ||
19652 | ( exit $ac_status ) | |
238ecede MW |
19653 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
19654 | See \`config.log' for more details." >&5 | |
19655 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19656 | See \`config.log' for more details." >&2;} | |
19657 | { (exit 1); exit 1; }; } | |
a848cd7e | 19658 | fi |
ac1cb8d3 | 19659 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19660 | fi |
a848cd7e | 19661 | fi |
238ecede MW |
19662 | rm -f conftest.val |
19663 | else | |
19664 | ac_cv_sizeof_wchar_t=0 | |
19665 | fi | |
19666 | fi | |
19667 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
19668 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 19669 | cat >>confdefs.h <<_ACEOF |
238ecede | 19670 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
19671 | _ACEOF |
19672 | ||
19673 | ||
238ecede | 19674 | |
ba3d13e1 VZ |
19675 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
19676 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
19677 | if test "${wx_cv_func_va_copy+set}" = set; then | |
19678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19679 | else | |
19680 | ||
19681 | cat >conftest.$ac_ext <<_ACEOF | |
19682 | ||
19683 | #include <stdarg.h> | |
19684 | void foo(char *f, ...) | |
19685 | { | |
19686 | va_list ap1, ap2; | |
19687 | va_start(ap1, f); | |
19688 | va_copy(ap2, ap1); | |
19689 | va_end(ap2); | |
19690 | va_end(ap1); | |
19691 | } | |
5886b072 VZ |
19692 | int main() |
19693 | { | |
b902e639 VZ |
19694 | foo("hi", 17); |
19695 | return 0; | |
5886b072 | 19696 | } |
ba3d13e1 VZ |
19697 | _ACEOF |
19698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19700 | (eval $ac_link) 2>conftest.er1 | |
19701 | ac_status=$? | |
19702 | grep -v '^ *+' conftest.er1 >conftest.err | |
19703 | rm -f conftest.er1 | |
19704 | cat conftest.err >&5 | |
19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19706 | (exit $ac_status); } && | |
9dd0f6c2 | 19707 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
19708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19709 | (eval $ac_try) 2>&5 | |
19710 | ac_status=$? | |
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19712 | (exit $ac_status); }; } && | |
19713 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
19719 | wx_cv_func_va_copy=yes | |
19720 | else | |
19721 | echo "$as_me: failed program was:" >&5 | |
19722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19723 | ||
19724 | wx_cv_func_va_copy=no | |
19725 | ||
19726 | fi | |
19727 | rm -f conftest.err conftest.$ac_objext \ | |
19728 | conftest$ac_exeext conftest.$ac_ext | |
19729 | ||
19730 | ||
19731 | fi | |
19732 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
19733 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
19734 | ||
19735 | if test $wx_cv_func_va_copy = "yes"; then | |
19736 | cat >>confdefs.h <<\_ACEOF | |
19737 | #define HAVE_VA_COPY 1 | |
19738 | _ACEOF | |
19739 | ||
19740 | else | |
19741 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
19742 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
19743 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
19744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19745 | else | |
19746 | ||
19747 | if test "$cross_compiling" = yes; then | |
19748 | wx_cv_type_va_list_lvalue=yes | |
19749 | ||
19750 | else | |
19751 | cat >conftest.$ac_ext <<_ACEOF | |
19752 | ||
19753 | #include <stdarg.h> | |
19754 | int foo(char *f, ...) | |
19755 | { | |
19756 | va_list ap1, ap2; | |
19757 | va_start(ap1, f); | |
19758 | ap2 = ap1; | |
19759 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
19760 | return 1; | |
19761 | va_end(ap2); | |
19762 | va_end(ap1); | |
19763 | return 0; | |
19764 | } | |
19765 | int main() | |
19766 | { | |
19767 | return foo("hi", 17); | |
19768 | } | |
19769 | _ACEOF | |
19770 | rm -f conftest$ac_exeext | |
19771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19772 | (eval $ac_link) 2>&5 | |
19773 | ac_status=$? | |
19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19775 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19777 | (eval $ac_try) 2>&5 | |
19778 | ac_status=$? | |
19779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19780 | (exit $ac_status); }; }; then | |
19781 | wx_cv_type_va_list_lvalue=yes | |
19782 | else | |
19783 | echo "$as_me: program exited with status $ac_status" >&5 | |
19784 | echo "$as_me: failed program was:" >&5 | |
19785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19786 | ||
19787 | ( exit $ac_status ) | |
19788 | wx_cv_type_va_list_lvalue=no | |
19789 | fi | |
19790 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19791 | fi | |
19792 | ||
19793 | ||
19794 | fi | |
19795 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
19796 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
19797 | ||
19798 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
19799 | cat >>confdefs.h <<\_ACEOF | |
19800 | #define VA_LIST_IS_ARRAY 1 | |
19801 | _ACEOF | |
19802 | ||
19803 | fi | |
19804 | fi | |
19805 | ||
a848cd7e SC |
19806 | # Check whether --enable-largefile or --disable-largefile was given. |
19807 | if test "${enable_largefile+set}" = set; then | |
19808 | enableval="$enable_largefile" | |
19809 | ||
19810 | fi; | |
19811 | if test "$enable_largefile" != no; then | |
19812 | wx_largefile=no | |
19813 | ||
19814 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
19815 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
19816 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
19817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19818 | else | |
19819 | ||
19820 | cat >conftest.$ac_ext <<_ACEOF | |
19821 | /* confdefs.h. */ | |
19822 | _ACEOF | |
19823 | cat confdefs.h >>conftest.$ac_ext | |
19824 | cat >>conftest.$ac_ext <<_ACEOF | |
19825 | /* end confdefs.h. */ | |
19826 | #define _FILE_OFFSET_BITS 64 | |
19827 | #include <sys/types.h> | |
19828 | int | |
19829 | main () | |
19830 | { | |
19831 | typedef struct { | |
19832 | unsigned int field: sizeof(off_t) == 8; | |
19833 | } wxlf; | |
19834 | ||
19835 | ; | |
19836 | return 0; | |
19837 | } | |
19838 | _ACEOF | |
19839 | rm -f conftest.$ac_objext | |
19840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19841 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19842 | ac_status=$? |
ac1cb8d3 VS |
19843 | grep -v '^ *+' conftest.er1 >conftest.err |
19844 | rm -f conftest.er1 | |
19845 | cat conftest.err >&5 | |
a848cd7e SC |
19846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19847 | (exit $ac_status); } && | |
9dd0f6c2 | 19848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19850 | (eval $ac_try) 2>&5 | |
19851 | ac_status=$? | |
19852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19853 | (exit $ac_status); }; } && | |
19854 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
19860 | ac_cv_sys_file_offset_bits=64 | |
19861 | else | |
19862 | echo "$as_me: failed program was:" >&5 | |
19863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19864 | ||
19865 | ac_cv_sys_file_offset_bits=no | |
19866 | fi | |
ac1cb8d3 | 19867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19868 | |
19869 | ||
19870 | fi | |
19871 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
19872 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
19873 | ||
19874 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
19875 | wx_largefile=yes | |
19876 | cat >>confdefs.h <<_ACEOF | |
19877 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
19878 | _ACEOF | |
19879 | ||
19880 | fi | |
19881 | ||
19882 | if test "x$wx_largefile" != "xyes"; then | |
19883 | ||
19884 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
19885 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
19886 | if test "${ac_cv_sys_large_files+set}" = set; then | |
19887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19888 | else | |
19889 | ||
19890 | cat >conftest.$ac_ext <<_ACEOF | |
19891 | /* confdefs.h. */ | |
19892 | _ACEOF | |
19893 | cat confdefs.h >>conftest.$ac_ext | |
19894 | cat >>conftest.$ac_ext <<_ACEOF | |
19895 | /* end confdefs.h. */ | |
19896 | #define _LARGE_FILES 1 | |
19897 | #include <sys/types.h> | |
19898 | int | |
19899 | main () | |
19900 | { | |
19901 | typedef struct { | |
19902 | unsigned int field: sizeof(off_t) == 8; | |
19903 | } wxlf; | |
19904 | ||
19905 | ; | |
19906 | return 0; | |
19907 | } | |
19908 | _ACEOF | |
19909 | rm -f conftest.$ac_objext | |
19910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19911 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19912 | ac_status=$? |
ac1cb8d3 VS |
19913 | grep -v '^ *+' conftest.er1 >conftest.err |
19914 | rm -f conftest.er1 | |
19915 | cat conftest.err >&5 | |
a848cd7e SC |
19916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19917 | (exit $ac_status); } && | |
9dd0f6c2 | 19918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19920 | (eval $ac_try) 2>&5 | |
19921 | ac_status=$? | |
19922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19923 | (exit $ac_status); }; } && | |
19924 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
19930 | ac_cv_sys_large_files=1 | |
19931 | else | |
19932 | echo "$as_me: failed program was:" >&5 | |
19933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19934 | ||
19935 | ac_cv_sys_large_files=no | |
19936 | fi | |
ac1cb8d3 | 19937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19938 | |
19939 | ||
19940 | fi | |
19941 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
19942 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
19943 | ||
19944 | if test "$ac_cv_sys_large_files" != no; then | |
19945 | wx_largefile=yes | |
19946 | cat >>confdefs.h <<_ACEOF | |
19947 | #define _LARGE_FILES $ac_cv_sys_large_files | |
19948 | _ACEOF | |
19949 | ||
19950 | fi | |
19951 | ||
19952 | fi | |
19953 | ||
19954 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
19955 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
19956 | if test "x$wx_largefile" = "xyes"; then | |
19957 | cat >>confdefs.h <<\_ACEOF | |
19958 | #define HAVE_LARGEFILE_SUPPORT 1 | |
19959 | _ACEOF | |
19960 | ||
19961 | fi | |
19962 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
19963 | echo "${ECHO_T}$wx_largefile" >&6 | |
19964 | fi | |
19965 | ||
5b674b9d DE |
19966 | |
19967 | if test "x$wx_largefile" = "xyes"; then | |
19968 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
19969 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
19970 | else | |
19971 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
19972 | fi | |
19973 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
19974 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
19975 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
19976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19977 | else | |
19978 | while :; do | |
19979 | ac_cv_sys_largefile_source=no | |
19980 | cat >conftest.$ac_ext <<_ACEOF | |
19981 | /* confdefs.h. */ | |
19982 | _ACEOF | |
19983 | cat confdefs.h >>conftest.$ac_ext | |
19984 | cat >>conftest.$ac_ext <<_ACEOF | |
19985 | /* end confdefs.h. */ | |
19986 | #include <stdio.h> | |
19987 | int | |
19988 | main () | |
19989 | { | |
19990 | return !fseeko; | |
19991 | ; | |
19992 | return 0; | |
19993 | } | |
19994 | _ACEOF | |
19995 | rm -f conftest.$ac_objext | |
19996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19997 | (eval $ac_compile) 2>conftest.er1 | |
19998 | ac_status=$? | |
19999 | grep -v '^ *+' conftest.er1 >conftest.err | |
20000 | rm -f conftest.er1 | |
20001 | cat conftest.err >&5 | |
20002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20003 | (exit $ac_status); } && | |
9dd0f6c2 | 20004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20006 | (eval $ac_try) 2>&5 | |
20007 | ac_status=$? | |
20008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20009 | (exit $ac_status); }; } && | |
20010 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
20016 | break | |
20017 | else | |
20018 | echo "$as_me: failed program was:" >&5 | |
20019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20020 | ||
20021 | fi | |
20022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20023 | cat >conftest.$ac_ext <<_ACEOF | |
20024 | /* confdefs.h. */ | |
20025 | _ACEOF | |
20026 | cat confdefs.h >>conftest.$ac_ext | |
20027 | cat >>conftest.$ac_ext <<_ACEOF | |
20028 | /* end confdefs.h. */ | |
20029 | #define _LARGEFILE_SOURCE 1 | |
20030 | #include <stdio.h> | |
20031 | int | |
20032 | main () | |
20033 | { | |
20034 | return !fseeko; | |
20035 | ; | |
20036 | return 0; | |
20037 | } | |
20038 | _ACEOF | |
20039 | rm -f conftest.$ac_objext | |
20040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20041 | (eval $ac_compile) 2>conftest.er1 | |
20042 | ac_status=$? | |
20043 | grep -v '^ *+' conftest.er1 >conftest.err | |
20044 | rm -f conftest.er1 | |
20045 | cat conftest.err >&5 | |
20046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20047 | (exit $ac_status); } && | |
9dd0f6c2 | 20048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20050 | (eval $ac_try) 2>&5 | |
20051 | ac_status=$? | |
20052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20053 | (exit $ac_status); }; } && | |
20054 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
20060 | ac_cv_sys_largefile_source=1; break | |
20061 | else | |
20062 | echo "$as_me: failed program was:" >&5 | |
20063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20064 | ||
20065 | fi | |
20066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20067 | break | |
20068 | done | |
20069 | fi | |
20070 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
20071 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
20072 | if test "$ac_cv_sys_largefile_source" != no; then | |
20073 | ||
20074 | cat >>confdefs.h <<_ACEOF | |
20075 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20076 | _ACEOF | |
20077 | ||
20078 | fi | |
20079 | rm -f conftest* | |
20080 | ||
20081 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
20082 | # in glibc 2.1.3, but that breaks too many other things. | |
20083 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
20084 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
20085 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
20086 | if test "${ac_cv_func_fseeko+set}" = set; then | |
20087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20088 | else | |
20089 | cat >conftest.$ac_ext <<_ACEOF | |
20090 | /* confdefs.h. */ | |
20091 | _ACEOF | |
20092 | cat confdefs.h >>conftest.$ac_ext | |
20093 | cat >>conftest.$ac_ext <<_ACEOF | |
20094 | /* end confdefs.h. */ | |
20095 | #include <stdio.h> | |
20096 | int | |
20097 | main () | |
20098 | { | |
20099 | return fseeko && fseeko (stdin, 0, 0); | |
20100 | ; | |
20101 | return 0; | |
20102 | } | |
20103 | _ACEOF | |
20104 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20106 | (eval $ac_link) 2>conftest.er1 | |
20107 | ac_status=$? | |
20108 | grep -v '^ *+' conftest.er1 >conftest.err | |
20109 | rm -f conftest.er1 | |
20110 | cat conftest.err >&5 | |
20111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20112 | (exit $ac_status); } && | |
9dd0f6c2 | 20113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20115 | (eval $ac_try) 2>&5 | |
20116 | ac_status=$? | |
20117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20118 | (exit $ac_status); }; } && | |
20119 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
20125 | ac_cv_func_fseeko=yes | |
20126 | else | |
20127 | echo "$as_me: failed program was:" >&5 | |
20128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20129 | ||
20130 | ac_cv_func_fseeko=no | |
20131 | fi | |
20132 | rm -f conftest.err conftest.$ac_objext \ | |
20133 | conftest$ac_exeext conftest.$ac_ext | |
20134 | fi | |
20135 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
20136 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
20137 | if test $ac_cv_func_fseeko = yes; then | |
20138 | ||
20139 | cat >>confdefs.h <<\_ACEOF | |
20140 | #define HAVE_FSEEKO 1 | |
20141 | _ACEOF | |
20142 | ||
20143 | fi | |
20144 | ||
5b674b9d DE |
20145 | if test "$ac_cv_sys_largefile_source" != no; then |
20146 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
20147 | fi |
20148 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
20149 | fi | |
20150 | ||
20151 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
20152 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
20153 | if test "${ac_cv_c_bigendian+set}" = set; then | |
20154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20155 | else | |
20156 | ac_cv_c_bigendian=unknown | |
20157 | # See if sys/param.h defines the BYTE_ORDER macro. | |
20158 | cat >conftest.$ac_ext <<_ACEOF | |
20159 | /* confdefs.h. */ | |
20160 | _ACEOF | |
20161 | cat confdefs.h >>conftest.$ac_ext | |
20162 | cat >>conftest.$ac_ext <<_ACEOF | |
20163 | /* end confdefs.h. */ | |
20164 | #include <sys/types.h> | |
20165 | #include <sys/param.h> | |
20166 | int | |
20167 | main () | |
20168 | { | |
20169 | ||
20170 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20171 | bogus endian macros | |
20172 | #endif | |
20173 | ; | |
20174 | return 0; | |
20175 | } | |
20176 | _ACEOF | |
20177 | rm -f conftest.$ac_objext | |
20178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20179 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20180 | ac_status=$? |
ac1cb8d3 VS |
20181 | grep -v '^ *+' conftest.er1 >conftest.err |
20182 | rm -f conftest.er1 | |
20183 | cat conftest.err >&5 | |
a848cd7e SC |
20184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20185 | (exit $ac_status); } && | |
9dd0f6c2 | 20186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20188 | (eval $ac_try) 2>&5 | |
20189 | ac_status=$? | |
20190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20191 | (exit $ac_status); }; } && | |
20192 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20198 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
20199 | cat >conftest.$ac_ext <<_ACEOF | |
20200 | /* confdefs.h. */ | |
20201 | _ACEOF | |
20202 | cat confdefs.h >>conftest.$ac_ext | |
20203 | cat >>conftest.$ac_ext <<_ACEOF | |
20204 | /* end confdefs.h. */ | |
20205 | #include <sys/types.h> | |
20206 | #include <sys/param.h> | |
20207 | int | |
20208 | main () | |
20209 | { | |
20210 | ||
20211 | #if BYTE_ORDER != BIG_ENDIAN | |
20212 | not big endian | |
20213 | #endif | |
20214 | ; | |
20215 | return 0; | |
20216 | } | |
20217 | _ACEOF | |
20218 | rm -f conftest.$ac_objext | |
20219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20220 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20221 | ac_status=$? |
ac1cb8d3 VS |
20222 | grep -v '^ *+' conftest.er1 >conftest.err |
20223 | rm -f conftest.er1 | |
20224 | cat conftest.err >&5 | |
a848cd7e SC |
20225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20226 | (exit $ac_status); } && | |
9dd0f6c2 | 20227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20229 | (eval $ac_try) 2>&5 | |
20230 | ac_status=$? | |
20231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20232 | (exit $ac_status); }; } && | |
20233 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20239 | ac_cv_c_bigendian=yes | |
20240 | else | |
20241 | echo "$as_me: failed program was:" >&5 | |
20242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20243 | ||
20244 | ac_cv_c_bigendian=no | |
20245 | fi | |
ac1cb8d3 | 20246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20247 | else |
20248 | echo "$as_me: failed program was:" >&5 | |
20249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20250 | ||
20251 | fi | |
ac1cb8d3 | 20252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20253 | if test $ac_cv_c_bigendian = unknown; then |
20254 | if test "$cross_compiling" = yes; then | |
20255 | ac_cv_c_bigendian=unknown | |
20256 | else | |
20257 | cat >conftest.$ac_ext <<_ACEOF | |
20258 | /* confdefs.h. */ | |
20259 | _ACEOF | |
20260 | cat confdefs.h >>conftest.$ac_ext | |
20261 | cat >>conftest.$ac_ext <<_ACEOF | |
20262 | /* end confdefs.h. */ | |
20263 | main () { | |
20264 | /* Are we little or big endian? From Harbison&Steele. */ | |
20265 | union | |
20266 | { | |
20267 | long l; | |
20268 | char c[sizeof (long)]; | |
20269 | } u; | |
20270 | u.l = 1; | |
20271 | exit (u.c[sizeof (long) - 1] == 1); | |
20272 | } | |
20273 | _ACEOF | |
20274 | rm -f conftest$ac_exeext | |
20275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20276 | (eval $ac_link) 2>&5 | |
20277 | ac_status=$? | |
20278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20279 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20281 | (eval $ac_try) 2>&5 | |
20282 | ac_status=$? | |
20283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20284 | (exit $ac_status); }; }; then | |
20285 | ac_cv_c_bigendian=no | |
20286 | else | |
20287 | echo "$as_me: program exited with status $ac_status" >&5 | |
20288 | echo "$as_me: failed program was:" >&5 | |
20289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20290 | ||
20291 | ( exit $ac_status ) | |
20292 | ac_cv_c_bigendian=yes | |
20293 | fi | |
ac1cb8d3 | 20294 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20295 | fi |
20296 | fi | |
20297 | fi | |
20298 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20299 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
20300 | if test $ac_cv_c_bigendian = unknown; then | |
20301 | { 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 | |
20302 | 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;} | |
20303 | fi | |
20304 | if test $ac_cv_c_bigendian = yes; then | |
20305 | cat >>confdefs.h <<\_ACEOF | |
20306 | #define WORDS_BIGENDIAN 1 | |
20307 | _ACEOF | |
20308 | ||
20309 | fi | |
20310 | ||
20311 | ||
20312 | ac_ext=cc | |
20313 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20314 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20315 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20316 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20317 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
20318 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
20319 | if test -z "$CXXCPP"; then | |
20320 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
20321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20322 | else | |
20323 | # Double quotes because CXXCPP needs to be expanded | |
20324 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
20325 | do | |
20326 | ac_preproc_ok=false | |
20327 | for ac_cxx_preproc_warn_flag in '' yes | |
20328 | do | |
20329 | # Use a header file that comes with gcc, so configuring glibc | |
20330 | # with a fresh cross-compiler works. | |
20331 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20332 | # <limits.h> exists even on freestanding compilers. | |
20333 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20334 | # not just through cpp. "Syntax error" is here to catch this case. | |
20335 | cat >conftest.$ac_ext <<_ACEOF | |
20336 | /* confdefs.h. */ | |
20337 | _ACEOF | |
20338 | cat confdefs.h >>conftest.$ac_ext | |
20339 | cat >>conftest.$ac_ext <<_ACEOF | |
20340 | /* end confdefs.h. */ | |
20341 | #ifdef __STDC__ | |
20342 | # include <limits.h> | |
20343 | #else | |
20344 | # include <assert.h> | |
20345 | #endif | |
ac1cb8d3 | 20346 | Syntax error |
a848cd7e SC |
20347 | _ACEOF |
20348 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20349 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20350 | ac_status=$? | |
20351 | grep -v '^ *+' conftest.er1 >conftest.err | |
20352 | rm -f conftest.er1 | |
20353 | cat conftest.err >&5 | |
20354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20355 | (exit $ac_status); } >/dev/null; then | |
20356 | if test -s conftest.err; then | |
20357 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20358 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20359 | else |
20360 | ac_cpp_err= | |
20361 | fi | |
20362 | else | |
20363 | ac_cpp_err=yes | |
20364 | fi | |
20365 | if test -z "$ac_cpp_err"; then | |
20366 | : | |
20367 | else | |
20368 | echo "$as_me: failed program was:" >&5 | |
20369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20370 | ||
20371 | # Broken: fails on valid input. | |
20372 | continue | |
20373 | fi | |
20374 | rm -f conftest.err conftest.$ac_ext | |
20375 | ||
20376 | # OK, works on sane cases. Now check whether non-existent headers | |
20377 | # can be detected and how. | |
20378 | cat >conftest.$ac_ext <<_ACEOF | |
20379 | /* confdefs.h. */ | |
20380 | _ACEOF | |
20381 | cat confdefs.h >>conftest.$ac_ext | |
20382 | cat >>conftest.$ac_ext <<_ACEOF | |
20383 | /* end confdefs.h. */ | |
20384 | #include <ac_nonexistent.h> | |
20385 | _ACEOF | |
20386 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20387 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20388 | ac_status=$? | |
20389 | grep -v '^ *+' conftest.er1 >conftest.err | |
20390 | rm -f conftest.er1 | |
20391 | cat conftest.err >&5 | |
20392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20393 | (exit $ac_status); } >/dev/null; then | |
20394 | if test -s conftest.err; then | |
20395 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20396 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20397 | else |
20398 | ac_cpp_err= | |
20399 | fi | |
20400 | else | |
20401 | ac_cpp_err=yes | |
20402 | fi | |
20403 | if test -z "$ac_cpp_err"; then | |
20404 | # Broken: success on invalid input. | |
20405 | continue | |
20406 | else | |
20407 | echo "$as_me: failed program was:" >&5 | |
20408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20409 | ||
20410 | # Passes both tests. | |
20411 | ac_preproc_ok=: | |
20412 | break | |
20413 | fi | |
20414 | rm -f conftest.err conftest.$ac_ext | |
20415 | ||
20416 | done | |
20417 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20418 | rm -f conftest.err conftest.$ac_ext | |
20419 | if $ac_preproc_ok; then | |
20420 | break | |
20421 | fi | |
20422 | ||
20423 | done | |
20424 | ac_cv_prog_CXXCPP=$CXXCPP | |
20425 | ||
20426 | fi | |
20427 | CXXCPP=$ac_cv_prog_CXXCPP | |
20428 | else | |
20429 | ac_cv_prog_CXXCPP=$CXXCPP | |
20430 | fi | |
20431 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
20432 | echo "${ECHO_T}$CXXCPP" >&6 | |
20433 | ac_preproc_ok=false | |
20434 | for ac_cxx_preproc_warn_flag in '' yes | |
20435 | do | |
20436 | # Use a header file that comes with gcc, so configuring glibc | |
20437 | # with a fresh cross-compiler works. | |
20438 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20439 | # <limits.h> exists even on freestanding compilers. | |
20440 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20441 | # not just through cpp. "Syntax error" is here to catch this case. | |
20442 | cat >conftest.$ac_ext <<_ACEOF | |
20443 | /* confdefs.h. */ | |
20444 | _ACEOF | |
20445 | cat confdefs.h >>conftest.$ac_ext | |
20446 | cat >>conftest.$ac_ext <<_ACEOF | |
20447 | /* end confdefs.h. */ | |
20448 | #ifdef __STDC__ | |
20449 | # include <limits.h> | |
20450 | #else | |
20451 | # include <assert.h> | |
20452 | #endif | |
ac1cb8d3 | 20453 | Syntax error |
a848cd7e SC |
20454 | _ACEOF |
20455 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20456 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20457 | ac_status=$? | |
20458 | grep -v '^ *+' conftest.er1 >conftest.err | |
20459 | rm -f conftest.er1 | |
20460 | cat conftest.err >&5 | |
20461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20462 | (exit $ac_status); } >/dev/null; then | |
20463 | if test -s conftest.err; then | |
20464 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20465 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20466 | else |
20467 | ac_cpp_err= | |
20468 | fi | |
20469 | else | |
20470 | ac_cpp_err=yes | |
20471 | fi | |
20472 | if test -z "$ac_cpp_err"; then | |
20473 | : | |
20474 | else | |
20475 | echo "$as_me: failed program was:" >&5 | |
20476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20477 | ||
20478 | # Broken: fails on valid input. | |
20479 | continue | |
20480 | fi | |
20481 | rm -f conftest.err conftest.$ac_ext | |
20482 | ||
20483 | # OK, works on sane cases. Now check whether non-existent headers | |
20484 | # can be detected and how. | |
20485 | cat >conftest.$ac_ext <<_ACEOF | |
20486 | /* confdefs.h. */ | |
20487 | _ACEOF | |
20488 | cat confdefs.h >>conftest.$ac_ext | |
20489 | cat >>conftest.$ac_ext <<_ACEOF | |
20490 | /* end confdefs.h. */ | |
20491 | #include <ac_nonexistent.h> | |
20492 | _ACEOF | |
20493 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20494 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20495 | ac_status=$? | |
20496 | grep -v '^ *+' conftest.er1 >conftest.err | |
20497 | rm -f conftest.er1 | |
20498 | cat conftest.err >&5 | |
20499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20500 | (exit $ac_status); } >/dev/null; then | |
20501 | if test -s conftest.err; then | |
20502 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20503 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20504 | else |
20505 | ac_cpp_err= | |
20506 | fi | |
20507 | else | |
20508 | ac_cpp_err=yes | |
20509 | fi | |
20510 | if test -z "$ac_cpp_err"; then | |
20511 | # Broken: success on invalid input. | |
20512 | continue | |
20513 | else | |
20514 | echo "$as_me: failed program was:" >&5 | |
20515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20516 | ||
20517 | # Passes both tests. | |
20518 | ac_preproc_ok=: | |
20519 | break | |
20520 | fi | |
20521 | rm -f conftest.err conftest.$ac_ext | |
20522 | ||
20523 | done | |
20524 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20525 | rm -f conftest.err conftest.$ac_ext | |
20526 | if $ac_preproc_ok; then | |
20527 | : | |
20528 | else | |
20529 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20530 | See \`config.log' for more details." >&5 | |
20531 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20532 | See \`config.log' for more details." >&2;} | |
20533 | { (exit 1); exit 1; }; } | |
20534 | fi | |
20535 | ||
20536 | ac_ext=cc | |
20537 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20538 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20539 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20540 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20541 | ||
20542 | ||
20543 | ||
20544 | ||
20545 | ||
20546 | ac_ext=cc | |
20547 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20548 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20549 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20550 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20551 | ||
20552 | ||
20553 | ||
20554 | for ac_header in iostream | |
20555 | do | |
20556 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20562 | fi | |
20563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20564 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20565 | else | |
20566 | # Is the header compilable? | |
20567 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20568 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20569 | cat >conftest.$ac_ext <<_ACEOF | |
20570 | /* confdefs.h. */ | |
20571 | _ACEOF | |
20572 | cat confdefs.h >>conftest.$ac_ext | |
20573 | cat >>conftest.$ac_ext <<_ACEOF | |
20574 | /* end confdefs.h. */ | |
20575 | $ac_includes_default | |
20576 | #include <$ac_header> | |
20577 | _ACEOF | |
20578 | rm -f conftest.$ac_objext | |
20579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20580 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20581 | ac_status=$? |
ac1cb8d3 VS |
20582 | grep -v '^ *+' conftest.er1 >conftest.err |
20583 | rm -f conftest.er1 | |
20584 | cat conftest.err >&5 | |
a848cd7e SC |
20585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20586 | (exit $ac_status); } && | |
9dd0f6c2 | 20587 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20589 | (eval $ac_try) 2>&5 | |
20590 | ac_status=$? | |
20591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20592 | (exit $ac_status); }; } && | |
20593 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20599 | ac_header_compiler=yes | |
20600 | else | |
20601 | echo "$as_me: failed program was:" >&5 | |
20602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20603 | ||
20604 | ac_header_compiler=no | |
20605 | fi | |
ac1cb8d3 | 20606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20607 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20608 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20609 | ||
20610 | # Is the header present? | |
20611 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20612 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20613 | cat >conftest.$ac_ext <<_ACEOF | |
20614 | /* confdefs.h. */ | |
20615 | _ACEOF | |
20616 | cat confdefs.h >>conftest.$ac_ext | |
20617 | cat >>conftest.$ac_ext <<_ACEOF | |
20618 | /* end confdefs.h. */ | |
20619 | #include <$ac_header> | |
20620 | _ACEOF | |
20621 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20622 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20623 | ac_status=$? | |
20624 | grep -v '^ *+' conftest.er1 >conftest.err | |
20625 | rm -f conftest.er1 | |
20626 | cat conftest.err >&5 | |
20627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20628 | (exit $ac_status); } >/dev/null; then | |
20629 | if test -s conftest.err; then | |
20630 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20631 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20632 | else |
20633 | ac_cpp_err= | |
20634 | fi | |
20635 | else | |
20636 | ac_cpp_err=yes | |
20637 | fi | |
20638 | if test -z "$ac_cpp_err"; then | |
20639 | ac_header_preproc=yes | |
20640 | else | |
20641 | echo "$as_me: failed program was:" >&5 | |
20642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20643 | ||
20644 | ac_header_preproc=no | |
20645 | fi | |
20646 | rm -f conftest.err conftest.$ac_ext | |
20647 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20648 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20649 | ||
20650 | # So? What about this header? | |
ac1cb8d3 VS |
20651 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20652 | yes:no: ) | |
a848cd7e SC |
20653 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20654 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20656 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20657 | ac_header_preproc=yes | |
a848cd7e | 20658 | ;; |
ac1cb8d3 | 20659 | no:yes:* ) |
a848cd7e SC |
20660 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20661 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20662 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20663 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20664 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20665 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20666 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20667 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20668 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20669 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20670 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20671 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20672 | ( |
20673 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20674 | ## ----------------------------------------- ## |
20675 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20676 | ## ----------------------------------------- ## | |
a848cd7e SC |
20677 | _ASBOX |
20678 | ) | | |
20679 | sed "s/^/$as_me: WARNING: /" >&2 | |
20680 | ;; | |
20681 | esac | |
20682 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20683 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20684 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20686 | else | |
ac1cb8d3 | 20687 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
20688 | fi |
20689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20690 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20691 | ||
20692 | fi | |
20693 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20694 | cat >>confdefs.h <<_ACEOF | |
20695 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20696 | _ACEOF | |
20697 | ||
20698 | fi | |
20699 | ||
20700 | done | |
20701 | ||
20702 | ||
20703 | if test "$ac_cv_header_iostream" = "yes" ; then | |
20704 | : | |
20705 | else | |
20706 | cat >>confdefs.h <<\_ACEOF | |
20707 | #define wxUSE_IOSTREAMH 1 | |
20708 | _ACEOF | |
20709 | ||
20710 | fi | |
20711 | ||
20712 | ac_ext=c | |
20713 | ac_cpp='$CPP $CPPFLAGS' | |
20714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20717 | ||
20718 | ||
20719 | ||
20720 | ||
20721 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
20722 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
20723 | if test "${wx_cv_cpp_bool+set}" = set; then | |
20724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20725 | else | |
20726 | ||
20727 | ||
20728 | ||
20729 | ac_ext=cc | |
20730 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20731 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20732 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20733 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20734 | ||
20735 | ||
20736 | cat >conftest.$ac_ext <<_ACEOF | |
20737 | /* confdefs.h. */ | |
20738 | _ACEOF | |
20739 | cat confdefs.h >>conftest.$ac_ext | |
20740 | cat >>conftest.$ac_ext <<_ACEOF | |
20741 | /* end confdefs.h. */ | |
20742 | ||
20743 | ||
20744 | int | |
20745 | main () | |
20746 | { | |
20747 | ||
20748 | bool b = true; | |
20749 | ||
20750 | return 0; | |
20751 | ||
20752 | ; | |
20753 | return 0; | |
20754 | } | |
20755 | _ACEOF | |
20756 | rm -f conftest.$ac_objext | |
20757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20758 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20759 | ac_status=$? |
ac1cb8d3 VS |
20760 | grep -v '^ *+' conftest.er1 >conftest.err |
20761 | rm -f conftest.er1 | |
20762 | cat conftest.err >&5 | |
a848cd7e SC |
20763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20764 | (exit $ac_status); } && | |
9dd0f6c2 | 20765 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20767 | (eval $ac_try) 2>&5 | |
20768 | ac_status=$? | |
20769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20770 | (exit $ac_status); }; } && | |
20771 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20777 | ||
20778 | wx_cv_cpp_bool=yes | |
20779 | ||
20780 | else | |
20781 | echo "$as_me: failed program was:" >&5 | |
20782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20783 | ||
20784 | ||
20785 | wx_cv_cpp_bool=no | |
20786 | ||
20787 | ||
20788 | fi | |
ac1cb8d3 | 20789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20790 | |
20791 | ac_ext=c | |
20792 | ac_cpp='$CPP $CPPFLAGS' | |
20793 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20794 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20795 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20796 | ||
20797 | ||
20798 | fi | |
20799 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
20800 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
20801 | ||
20802 | if test "$wx_cv_cpp_bool" = "yes"; then | |
20803 | cat >>confdefs.h <<\_ACEOF | |
20804 | #define HAVE_BOOL 1 | |
20805 | _ACEOF | |
20806 | ||
20807 | fi | |
20808 | ||
20809 | ||
20810 | ||
20811 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
20812 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
20813 | if test "${wx_cv_explicit+set}" = set; then | |
20814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20815 | else | |
20816 | ||
20817 | ||
20818 | ||
20819 | ac_ext=cc | |
20820 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20821 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20822 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20823 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20824 | ||
20825 | ||
20826 | cat >conftest.$ac_ext <<_ACEOF | |
20827 | /* confdefs.h. */ | |
20828 | _ACEOF | |
20829 | cat confdefs.h >>conftest.$ac_ext | |
20830 | cat >>conftest.$ac_ext <<_ACEOF | |
20831 | /* end confdefs.h. */ | |
20832 | ||
20833 | class Foo { public: explicit Foo(int) {} }; | |
20834 | ||
20835 | int | |
20836 | main () | |
20837 | { | |
20838 | ||
20839 | return 0; | |
20840 | ||
20841 | ; | |
20842 | return 0; | |
20843 | } | |
20844 | _ACEOF | |
20845 | rm -f conftest.$ac_objext | |
20846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20848 | ac_status=$? |
ac1cb8d3 VS |
20849 | grep -v '^ *+' conftest.er1 >conftest.err |
20850 | rm -f conftest.er1 | |
20851 | cat conftest.err >&5 | |
a848cd7e SC |
20852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20853 | (exit $ac_status); } && | |
9dd0f6c2 | 20854 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20856 | (eval $ac_try) 2>&5 | |
20857 | ac_status=$? | |
20858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20859 | (exit $ac_status); }; } && | |
20860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20866 | ||
20867 | cat >conftest.$ac_ext <<_ACEOF | |
20868 | /* confdefs.h. */ | |
20869 | _ACEOF | |
20870 | cat confdefs.h >>conftest.$ac_ext | |
20871 | cat >>conftest.$ac_ext <<_ACEOF | |
20872 | /* end confdefs.h. */ | |
20873 | ||
20874 | class Foo { public: explicit Foo(int) {} }; | |
20875 | static void TakeFoo(const Foo& foo) { } | |
20876 | ||
20877 | int | |
20878 | main () | |
20879 | { | |
20880 | ||
20881 | TakeFoo(17); | |
20882 | return 0; | |
20883 | ||
20884 | ; | |
20885 | return 0; | |
20886 | } | |
20887 | _ACEOF | |
20888 | rm -f conftest.$ac_objext | |
20889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20890 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20891 | ac_status=$? |
ac1cb8d3 VS |
20892 | grep -v '^ *+' conftest.er1 >conftest.err |
20893 | rm -f conftest.er1 | |
20894 | cat conftest.err >&5 | |
a848cd7e SC |
20895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20896 | (exit $ac_status); } && | |
9dd0f6c2 | 20897 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20899 | (eval $ac_try) 2>&5 | |
20900 | ac_status=$? | |
20901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20902 | (exit $ac_status); }; } && | |
20903 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20909 | wx_cv_explicit=no | |
20910 | else | |
20911 | echo "$as_me: failed program was:" >&5 | |
20912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20913 | ||
20914 | wx_cv_explicit=yes | |
20915 | ||
20916 | fi | |
ac1cb8d3 | 20917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20918 | |
20919 | else | |
20920 | echo "$as_me: failed program was:" >&5 | |
20921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20922 | ||
20923 | wx_cv_explicit=no | |
20924 | ||
20925 | fi | |
ac1cb8d3 | 20926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20927 | |
20928 | ac_ext=c | |
20929 | ac_cpp='$CPP $CPPFLAGS' | |
20930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20933 | ||
20934 | ||
20935 | fi | |
20936 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
20937 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
20938 | ||
20939 | if test "$wx_cv_explicit" = "yes"; then | |
20940 | cat >>confdefs.h <<\_ACEOF | |
20941 | #define HAVE_EXPLICIT 1 | |
20942 | _ACEOF | |
20943 | ||
20944 | fi | |
20945 | ||
20946 | ||
20947 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
20948 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
20949 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
20950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20951 | else | |
20952 | ||
20953 | ||
20954 | ac_ext=cc | |
20955 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20956 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20957 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20958 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20959 | ||
20960 | cat >conftest.$ac_ext <<_ACEOF | |
20961 | /* confdefs.h. */ | |
20962 | _ACEOF | |
20963 | cat confdefs.h >>conftest.$ac_ext | |
20964 | cat >>conftest.$ac_ext <<_ACEOF | |
20965 | /* end confdefs.h. */ | |
20966 | ||
20967 | int | |
20968 | main () | |
20969 | { | |
20970 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
20971 | ; | |
20972 | return 0; | |
20973 | } | |
20974 | _ACEOF | |
20975 | rm -f conftest.$ac_objext | |
20976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20977 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20978 | ac_status=$? |
ac1cb8d3 VS |
20979 | grep -v '^ *+' conftest.er1 >conftest.err |
20980 | rm -f conftest.er1 | |
20981 | cat conftest.err >&5 | |
a848cd7e SC |
20982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20983 | (exit $ac_status); } && | |
9dd0f6c2 | 20984 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20986 | (eval $ac_try) 2>&5 | |
20987 | ac_status=$? | |
20988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20989 | (exit $ac_status); }; } && | |
20990 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20996 | ac_cv_cxx_const_cast=yes | |
20997 | else | |
20998 | echo "$as_me: failed program was:" >&5 | |
20999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21000 | ||
21001 | ac_cv_cxx_const_cast=no | |
21002 | fi | |
ac1cb8d3 | 21003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21004 | ac_ext=c |
21005 | ac_cpp='$CPP $CPPFLAGS' | |
21006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21009 | ||
21010 | ||
21011 | fi | |
21012 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
21013 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
21014 | if test "$ac_cv_cxx_const_cast" = yes; then | |
21015 | ||
21016 | cat >>confdefs.h <<\_ACEOF | |
21017 | #define HAVE_CONST_CAST | |
21018 | _ACEOF | |
21019 | ||
21020 | fi | |
21021 | ||
7714864e RL |
21022 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
21023 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
21024 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
21025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21026 | else | |
21027 | ||
21028 | ||
21029 | ac_ext=cc | |
21030 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21031 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21032 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21033 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21034 | ||
21035 | cat >conftest.$ac_ext <<_ACEOF | |
21036 | /* confdefs.h. */ | |
21037 | _ACEOF | |
21038 | cat confdefs.h >>conftest.$ac_ext | |
21039 | cat >>conftest.$ac_ext <<_ACEOF | |
21040 | /* end confdefs.h. */ | |
21041 | #include <typeinfo> | |
21042 | class Base { public : Base () {} virtual void f () = 0;}; | |
21043 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21044 | class Unrelated { public : Unrelated () {} }; | |
21045 | int g (Unrelated&) { return 0; } | |
21046 | int | |
21047 | main () | |
21048 | { | |
21049 | ||
21050 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
21051 | ; | |
21052 | return 0; | |
21053 | } | |
21054 | _ACEOF | |
21055 | rm -f conftest.$ac_objext | |
21056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21057 | (eval $ac_compile) 2>conftest.er1 | |
21058 | ac_status=$? | |
21059 | grep -v '^ *+' conftest.er1 >conftest.err | |
21060 | rm -f conftest.er1 | |
21061 | cat conftest.err >&5 | |
21062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21063 | (exit $ac_status); } && | |
9dd0f6c2 | 21064 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
21065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21066 | (eval $ac_try) 2>&5 | |
21067 | ac_status=$? | |
21068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21069 | (exit $ac_status); }; } && | |
21070 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
21076 | ac_cv_cxx_reinterpret_cast=yes | |
21077 | else | |
21078 | echo "$as_me: failed program was:" >&5 | |
21079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21080 | ||
21081 | ac_cv_cxx_reinterpret_cast=no | |
21082 | fi | |
21083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21084 | ac_ext=c | |
21085 | ac_cpp='$CPP $CPPFLAGS' | |
21086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21089 | ||
21090 | ||
21091 | fi | |
21092 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
21093 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
21094 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
21095 | ||
21096 | cat >>confdefs.h <<\_ACEOF | |
21097 | #define HAVE_REINTERPRET_CAST | |
21098 | _ACEOF | |
21099 | ||
21100 | fi | |
21101 | ||
a848cd7e SC |
21102 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
21103 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
21104 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
21105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21106 | else | |
21107 | ||
21108 | ||
21109 | ac_ext=cc | |
21110 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21111 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21112 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21113 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21114 | ||
21115 | cat >conftest.$ac_ext <<_ACEOF | |
21116 | /* confdefs.h. */ | |
21117 | _ACEOF | |
21118 | cat confdefs.h >>conftest.$ac_ext | |
21119 | cat >>conftest.$ac_ext <<_ACEOF | |
21120 | /* end confdefs.h. */ | |
21121 | #include <typeinfo> | |
21122 | class Base { public : Base () {} virtual void f () = 0; }; | |
21123 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21124 | int g (Derived&) { return 0; } | |
21125 | int | |
21126 | main () | |
21127 | { | |
21128 | ||
21129 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
21130 | ; | |
21131 | return 0; | |
21132 | } | |
21133 | _ACEOF | |
21134 | rm -f conftest.$ac_objext | |
21135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21136 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21137 | ac_status=$? |
ac1cb8d3 VS |
21138 | grep -v '^ *+' conftest.er1 >conftest.err |
21139 | rm -f conftest.er1 | |
21140 | cat conftest.err >&5 | |
a848cd7e SC |
21141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21142 | (exit $ac_status); } && | |
9dd0f6c2 | 21143 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21145 | (eval $ac_try) 2>&5 | |
21146 | ac_status=$? | |
21147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21148 | (exit $ac_status); }; } && | |
21149 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
21155 | ac_cv_cxx_static_cast=yes | |
21156 | else | |
21157 | echo "$as_me: failed program was:" >&5 | |
21158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21159 | ||
21160 | ac_cv_cxx_static_cast=no | |
21161 | fi | |
ac1cb8d3 | 21162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21163 | ac_ext=c |
21164 | ac_cpp='$CPP $CPPFLAGS' | |
21165 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21166 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21167 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21168 | ||
21169 | ||
21170 | fi | |
21171 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
21172 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
21173 | if test "$ac_cv_cxx_static_cast" = yes; then | |
21174 | ||
21175 | cat >>confdefs.h <<\_ACEOF | |
21176 | #define HAVE_STATIC_CAST | |
21177 | _ACEOF | |
21178 | ||
21179 | fi | |
21180 | ||
21181 | ||
0a08f02a MB |
21182 | if test "$wxUSE_UNICODE" = "yes" -a \ |
21183 | \( "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes" \); then | |
a848cd7e SC |
21184 | ac_ext=cc |
21185 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21186 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21187 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21188 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21189 | ||
21190 | ||
0a08f02a MB |
21191 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 |
21192 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
21193 | cat >conftest.$ac_ext <<_ACEOF |
21194 | /* confdefs.h. */ | |
21195 | _ACEOF | |
21196 | cat confdefs.h >>conftest.$ac_ext | |
21197 | cat >>conftest.$ac_ext <<_ACEOF | |
21198 | /* end confdefs.h. */ | |
21199 | #include <string> | |
a848cd7e SC |
21200 | int |
21201 | main () | |
21202 | { | |
0a08f02a | 21203 | std::wstring foo; |
a848cd7e SC |
21204 | ; |
21205 | return 0; | |
21206 | } | |
21207 | _ACEOF | |
21208 | rm -f conftest.$ac_objext | |
21209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21210 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21211 | ac_status=$? |
ac1cb8d3 VS |
21212 | grep -v '^ *+' conftest.er1 >conftest.err |
21213 | rm -f conftest.er1 | |
21214 | cat conftest.err >&5 | |
a848cd7e SC |
21215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21216 | (exit $ac_status); } && | |
9dd0f6c2 | 21217 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21219 | (eval $ac_try) 2>&5 | |
21220 | ac_status=$? | |
21221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21222 | (exit $ac_status); }; } && | |
21223 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
21229 | echo "$as_me:$LINENO: result: yes" >&5 | |
21230 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
21231 | cat >>confdefs.h <<\_ACEOF |
21232 | #define HAVE_STD_WSTRING 1 | |
21233 | _ACEOF | |
21234 | ||
a848cd7e SC |
21235 | else |
21236 | echo "$as_me: failed program was:" >&5 | |
21237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21238 | ||
21239 | echo "$as_me:$LINENO: result: no" >&5 | |
21240 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
21241 | echo "$as_me:$LINENO: checking if std::basic_string<wchar_t> works" >&5 |
21242 | echo $ECHO_N "checking if std::basic_string<wchar_t> works... $ECHO_C" >&6 | |
21243 | cat >conftest.$ac_ext <<_ACEOF | |
21244 | /* confdefs.h. */ | |
21245 | _ACEOF | |
21246 | cat confdefs.h >>conftest.$ac_ext | |
21247 | cat >>conftest.$ac_ext <<_ACEOF | |
21248 | /* end confdefs.h. */ | |
21249 | ||
21250 | #ifdef HAVE_WCHAR_H | |
21251 | # ifdef __CYGWIN__ | |
21252 | # include <stddef.h> | |
21253 | # endif | |
21254 | # include <wchar.h> | |
21255 | #endif | |
21256 | #ifdef HAVE_STDLIB_H | |
21257 | # include <stdlib.h> | |
21258 | #endif | |
21259 | #include <stdio.h> | |
21260 | #include <string> | |
21261 | ||
21262 | int | |
21263 | main () | |
21264 | { | |
21265 | std::basic_string<wchar_t> foo; | |
21266 | const wchar_t* dummy = foo.c_str(); | |
21267 | ; | |
21268 | return 0; | |
21269 | } | |
21270 | _ACEOF | |
21271 | rm -f conftest.$ac_objext | |
21272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21273 | (eval $ac_compile) 2>conftest.er1 | |
21274 | ac_status=$? | |
21275 | grep -v '^ *+' conftest.er1 >conftest.err | |
21276 | rm -f conftest.er1 | |
21277 | cat conftest.err >&5 | |
21278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21279 | (exit $ac_status); } && | |
21280 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
21281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21282 | (eval $ac_try) 2>&5 | |
21283 | ac_status=$? | |
21284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21285 | (exit $ac_status); }; } && | |
21286 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
21292 | echo "$as_me:$LINENO: result: yes" >&5 | |
21293 | echo "${ECHO_T}yes" >&6 | |
21294 | else | |
21295 | echo "$as_me: failed program was:" >&5 | |
21296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21297 | ||
21298 | echo "$as_me:$LINENO: result: no" >&5 | |
21299 | echo "${ECHO_T}no" >&6 | |
21300 | { { echo "$as_me:$LINENO: error: Can't compile without unicode string class" >&5 | |
21301 | echo "$as_me: error: Can't compile without unicode string class" >&2;} | |
a848cd7e | 21302 | { (exit 1); exit 1; }; } |
0a08f02a | 21303 | |
a848cd7e | 21304 | fi |
ac1cb8d3 | 21305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21306 | |
0a08f02a MB |
21307 | fi |
21308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21309 | ||
21310 | ac_ext=c | |
21311 | ac_cpp='$CPP $CPPFLAGS' | |
21312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21315 | ||
21316 | fi | |
21317 | ||
21318 | if test "$wxUSE_STL" = "yes"; then | |
21319 | ac_ext=cc | |
21320 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21321 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21322 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21323 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21324 | ||
21325 | ||
21326 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
21327 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
21328 | cat >conftest.$ac_ext <<_ACEOF |
21329 | /* confdefs.h. */ | |
21330 | _ACEOF | |
21331 | cat confdefs.h >>conftest.$ac_ext | |
21332 | cat >>conftest.$ac_ext <<_ACEOF | |
21333 | /* end confdefs.h. */ | |
21334 | #include <string> | |
0a08f02a MB |
21335 | #include <functional> |
21336 | #include <algorithm> | |
21337 | #include <vector> | |
21338 | #include <list> | |
a848cd7e SC |
21339 | int |
21340 | main () | |
21341 | { | |
0a08f02a MB |
21342 | std::vector<int> moo; |
21343 | std::list<int> foo; | |
21344 | std::vector<int>::iterator it = | |
21345 | std::find_if(moo.begin(), moo.end(), | |
21346 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
21347 | ; |
21348 | return 0; | |
21349 | } | |
21350 | _ACEOF | |
21351 | rm -f conftest.$ac_objext | |
21352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21353 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21354 | ac_status=$? |
ac1cb8d3 VS |
21355 | grep -v '^ *+' conftest.er1 >conftest.err |
21356 | rm -f conftest.er1 | |
21357 | cat conftest.err >&5 | |
a848cd7e SC |
21358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21359 | (exit $ac_status); } && | |
9dd0f6c2 | 21360 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21362 | (eval $ac_try) 2>&5 | |
21363 | ac_status=$? | |
21364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21365 | (exit $ac_status); }; } && | |
21366 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
21372 | echo "$as_me:$LINENO: result: yes" >&5 | |
21373 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
21374 | else |
21375 | echo "$as_me: failed program was:" >&5 | |
21376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21377 | ||
21378 | echo "$as_me:$LINENO: result: no" >&5 | |
21379 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
21380 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
21381 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
21382 | { (exit 1); exit 1; }; } | |
a848cd7e | 21383 | fi |
ac1cb8d3 | 21384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21385 | |
21386 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
21387 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
21388 | cat >conftest.$ac_ext <<_ACEOF | |
21389 | /* confdefs.h. */ | |
21390 | _ACEOF | |
21391 | cat confdefs.h >>conftest.$ac_ext | |
21392 | cat >>conftest.$ac_ext <<_ACEOF | |
21393 | /* end confdefs.h. */ | |
21394 | #include <string> | |
21395 | int | |
21396 | main () | |
21397 | { | |
21398 | std::string foo, bar; | |
21399 | foo.compare(bar); | |
21400 | foo.compare(1, 1, bar); | |
21401 | foo.compare(1, 1, bar, 1, 1); | |
21402 | foo.compare(""); | |
21403 | foo.compare(1, 1, ""); | |
21404 | foo.compare(1, 1, "", 2); | |
21405 | ; | |
21406 | return 0; | |
21407 | } | |
21408 | _ACEOF | |
21409 | rm -f conftest.$ac_objext | |
21410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21411 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21412 | ac_status=$? |
ac1cb8d3 VS |
21413 | grep -v '^ *+' conftest.er1 >conftest.err |
21414 | rm -f conftest.er1 | |
21415 | cat conftest.err >&5 | |
a848cd7e SC |
21416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21417 | (exit $ac_status); } && | |
9dd0f6c2 | 21418 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21420 | (eval $ac_try) 2>&5 | |
21421 | ac_status=$? | |
21422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21423 | (exit $ac_status); }; } && | |
21424 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
21430 | echo "$as_me:$LINENO: result: yes" >&5 | |
21431 | echo "${ECHO_T}yes" >&6 | |
21432 | cat >>confdefs.h <<\_ACEOF | |
21433 | #define HAVE_STD_STRING_COMPARE 1 | |
21434 | _ACEOF | |
21435 | ||
21436 | else | |
21437 | echo "$as_me: failed program was:" >&5 | |
21438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21439 | ||
21440 | echo "$as_me:$LINENO: result: no" >&5 | |
21441 | echo "${ECHO_T}no" >&6 | |
21442 | fi | |
ac1cb8d3 | 21443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21444 | |
21445 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21446 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
21447 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
21448 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21450 | fi | |
21451 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21452 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21453 | else | |
21454 | # Is the header compilable? | |
21455 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
21456 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
21457 | cat >conftest.$ac_ext <<_ACEOF | |
21458 | /* confdefs.h. */ | |
21459 | _ACEOF | |
21460 | cat confdefs.h >>conftest.$ac_ext | |
21461 | cat >>conftest.$ac_ext <<_ACEOF | |
21462 | /* end confdefs.h. */ | |
21463 | $ac_includes_default | |
21464 | #include <hash_map> | |
21465 | _ACEOF | |
21466 | rm -f conftest.$ac_objext | |
21467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21468 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21469 | ac_status=$? |
ac1cb8d3 VS |
21470 | grep -v '^ *+' conftest.er1 >conftest.err |
21471 | rm -f conftest.er1 | |
21472 | cat conftest.err >&5 | |
bdcade0a MB |
21473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21474 | (exit $ac_status); } && | |
9dd0f6c2 | 21475 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21477 | (eval $ac_try) 2>&5 | |
21478 | ac_status=$? | |
21479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21480 | (exit $ac_status); }; } && | |
21481 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
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); }; }; then | |
21487 | ac_header_compiler=yes | |
21488 | else | |
21489 | echo "$as_me: failed program was:" >&5 | |
21490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21491 | ||
21492 | ac_header_compiler=no | |
21493 | fi | |
ac1cb8d3 | 21494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21495 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21496 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21497 | ||
21498 | # Is the header present? | |
21499 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
21500 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
21501 | cat >conftest.$ac_ext <<_ACEOF | |
21502 | /* confdefs.h. */ | |
21503 | _ACEOF | |
21504 | cat confdefs.h >>conftest.$ac_ext | |
21505 | cat >>conftest.$ac_ext <<_ACEOF | |
21506 | /* end confdefs.h. */ | |
21507 | #include <hash_map> | |
21508 | _ACEOF | |
21509 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21510 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21511 | ac_status=$? | |
21512 | grep -v '^ *+' conftest.er1 >conftest.err | |
21513 | rm -f conftest.er1 | |
21514 | cat conftest.err >&5 | |
21515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21516 | (exit $ac_status); } >/dev/null; then | |
21517 | if test -s conftest.err; then | |
21518 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21519 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
21520 | else |
21521 | ac_cpp_err= | |
21522 | fi | |
21523 | else | |
21524 | ac_cpp_err=yes | |
21525 | fi | |
21526 | if test -z "$ac_cpp_err"; then | |
21527 | ac_header_preproc=yes | |
21528 | else | |
21529 | echo "$as_me: failed program was:" >&5 | |
21530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21531 | ||
21532 | ac_header_preproc=no | |
21533 | fi | |
21534 | rm -f conftest.err conftest.$ac_ext | |
21535 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21536 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21537 | ||
21538 | # So? What about this header? | |
ac1cb8d3 VS |
21539 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21540 | yes:no: ) | |
bdcade0a MB |
21541 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
21542 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21543 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
21544 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
21545 | ac_header_preproc=yes | |
bdcade0a | 21546 | ;; |
ac1cb8d3 | 21547 | no:yes:* ) |
bdcade0a MB |
21548 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
21549 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21550 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
21551 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
21552 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
21553 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
21554 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
21555 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
21556 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
21557 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21558 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
21559 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
21560 | ( |
21561 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21562 | ## ----------------------------------------- ## |
21563 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21564 | ## ----------------------------------------- ## | |
bdcade0a MB |
21565 | _ASBOX |
21566 | ) | | |
21567 | sed "s/^/$as_me: WARNING: /" >&2 | |
21568 | ;; | |
21569 | esac | |
21570 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
21571 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
21572 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21574 | else | |
21575 | ac_cv_header_hash_map=$ac_header_preproc | |
21576 | fi | |
21577 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21578 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21579 | ||
21580 | fi | |
21581 | if test $ac_cv_header_hash_map = yes; then | |
21582 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21583 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21584 | cat >conftest.$ac_ext <<_ACEOF | |
21585 | /* confdefs.h. */ | |
21586 | _ACEOF | |
21587 | cat confdefs.h >>conftest.$ac_ext | |
21588 | cat >>conftest.$ac_ext <<_ACEOF | |
21589 | /* end confdefs.h. */ | |
21590 | #include <hash_map> | |
21591 | #include <hash_set> | |
21592 | int | |
21593 | main () | |
21594 | { | |
21595 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
21596 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
21597 | ; | |
21598 | return 0; | |
21599 | } | |
21600 | _ACEOF | |
21601 | rm -f conftest.$ac_objext | |
21602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21603 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21604 | ac_status=$? |
ac1cb8d3 VS |
21605 | grep -v '^ *+' conftest.er1 >conftest.err |
21606 | rm -f conftest.er1 | |
21607 | cat conftest.err >&5 | |
bdcade0a MB |
21608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21609 | (exit $ac_status); } && | |
9dd0f6c2 | 21610 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21612 | (eval $ac_try) 2>&5 | |
21613 | ac_status=$? | |
21614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21615 | (exit $ac_status); }; } && | |
21616 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
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); }; }; then | |
21622 | echo "$as_me:$LINENO: result: yes" >&5 | |
21623 | echo "${ECHO_T}yes" >&6 | |
21624 | cat >>confdefs.h <<\_ACEOF | |
21625 | #define HAVE_HASH_MAP 1 | |
21626 | _ACEOF | |
21627 | ||
21628 | cat >>confdefs.h <<\_ACEOF | |
21629 | #define HAVE_STD_HASH_MAP 1 | |
21630 | _ACEOF | |
21631 | ||
21632 | else | |
21633 | echo "$as_me: failed program was:" >&5 | |
21634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21635 | ||
21636 | echo "$as_me:$LINENO: result: no" >&5 | |
21637 | echo "${ECHO_T}no" >&6 | |
21638 | fi | |
ac1cb8d3 | 21639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21640 | |
21641 | fi | |
21642 | ||
21643 | ||
21644 | ||
21645 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21646 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21647 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21648 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21650 | fi | |
21651 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21652 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21653 | else | |
21654 | # Is the header compilable? | |
21655 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
21656 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
21657 | cat >conftest.$ac_ext <<_ACEOF | |
21658 | /* confdefs.h. */ | |
21659 | _ACEOF | |
21660 | cat confdefs.h >>conftest.$ac_ext | |
21661 | cat >>conftest.$ac_ext <<_ACEOF | |
21662 | /* end confdefs.h. */ | |
21663 | $ac_includes_default | |
21664 | #include <ext/hash_map> | |
21665 | _ACEOF | |
21666 | rm -f conftest.$ac_objext | |
21667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21668 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21669 | ac_status=$? |
ac1cb8d3 VS |
21670 | grep -v '^ *+' conftest.er1 >conftest.err |
21671 | rm -f conftest.er1 | |
21672 | cat conftest.err >&5 | |
bdcade0a MB |
21673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21674 | (exit $ac_status); } && | |
9dd0f6c2 | 21675 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21677 | (eval $ac_try) 2>&5 | |
21678 | ac_status=$? | |
21679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21680 | (exit $ac_status); }; } && | |
21681 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
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); }; }; then | |
21687 | ac_header_compiler=yes | |
21688 | else | |
21689 | echo "$as_me: failed program was:" >&5 | |
21690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21691 | ||
21692 | ac_header_compiler=no | |
21693 | fi | |
ac1cb8d3 | 21694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21695 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21696 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21697 | ||
21698 | # Is the header present? | |
21699 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
21700 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
21701 | cat >conftest.$ac_ext <<_ACEOF | |
21702 | /* confdefs.h. */ | |
21703 | _ACEOF | |
21704 | cat confdefs.h >>conftest.$ac_ext | |
21705 | cat >>conftest.$ac_ext <<_ACEOF | |
21706 | /* end confdefs.h. */ | |
21707 | #include <ext/hash_map> | |
21708 | _ACEOF | |
21709 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21710 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21711 | ac_status=$? | |
21712 | grep -v '^ *+' conftest.er1 >conftest.err | |
21713 | rm -f conftest.er1 | |
21714 | cat conftest.err >&5 | |
21715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21716 | (exit $ac_status); } >/dev/null; then | |
21717 | if test -s conftest.err; then | |
21718 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21719 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
21720 | else |
21721 | ac_cpp_err= | |
21722 | fi | |
21723 | else | |
21724 | ac_cpp_err=yes | |
21725 | fi | |
21726 | if test -z "$ac_cpp_err"; then | |
21727 | ac_header_preproc=yes | |
21728 | else | |
21729 | echo "$as_me: failed program was:" >&5 | |
21730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21731 | ||
21732 | ac_header_preproc=no | |
21733 | fi | |
21734 | rm -f conftest.err conftest.$ac_ext | |
21735 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21736 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21737 | ||
21738 | # So? What about this header? | |
ac1cb8d3 VS |
21739 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21740 | yes:no: ) | |
bdcade0a MB |
21741 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
21742 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21743 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
21744 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
21745 | ac_header_preproc=yes | |
bdcade0a | 21746 | ;; |
ac1cb8d3 | 21747 | no:yes:* ) |
bdcade0a MB |
21748 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
21749 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21750 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
21751 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
21752 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
21753 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
21754 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
21755 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
21756 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
21757 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21758 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
21759 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
21760 | ( |
21761 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21762 | ## ----------------------------------------- ## |
21763 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21764 | ## ----------------------------------------- ## | |
bdcade0a MB |
21765 | _ASBOX |
21766 | ) | | |
21767 | sed "s/^/$as_me: WARNING: /" >&2 | |
21768 | ;; | |
21769 | esac | |
21770 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21771 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21772 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21774 | else | |
21775 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
21776 | fi | |
21777 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21778 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21779 | ||
21780 | fi | |
21781 | if test $ac_cv_header_ext_hash_map = yes; then | |
21782 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21783 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21784 | cat >conftest.$ac_ext <<_ACEOF | |
21785 | /* confdefs.h. */ | |
21786 | _ACEOF | |
21787 | cat confdefs.h >>conftest.$ac_ext | |
21788 | cat >>conftest.$ac_ext <<_ACEOF | |
21789 | /* end confdefs.h. */ | |
21790 | #include <ext/hash_map> | |
21791 | #include <ext/hash_set> | |
21792 | int | |
21793 | main () | |
21794 | { | |
21795 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
21796 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
21797 | ; | |
21798 | return 0; | |
21799 | } | |
21800 | _ACEOF | |
21801 | rm -f conftest.$ac_objext | |
21802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21803 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21804 | ac_status=$? |
ac1cb8d3 VS |
21805 | grep -v '^ *+' conftest.er1 >conftest.err |
21806 | rm -f conftest.er1 | |
21807 | cat conftest.err >&5 | |
bdcade0a MB |
21808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21809 | (exit $ac_status); } && | |
9dd0f6c2 | 21810 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21812 | (eval $ac_try) 2>&5 | |
21813 | ac_status=$? | |
21814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21815 | (exit $ac_status); }; } && | |
21816 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
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); }; }; then | |
21822 | echo "$as_me:$LINENO: result: yes" >&5 | |
21823 | echo "${ECHO_T}yes" >&6 | |
21824 | cat >>confdefs.h <<\_ACEOF | |
21825 | #define HAVE_EXT_HASH_MAP 1 | |
21826 | _ACEOF | |
21827 | ||
21828 | cat >>confdefs.h <<\_ACEOF | |
21829 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
21830 | _ACEOF | |
21831 | ||
21832 | else | |
21833 | echo "$as_me: failed program was:" >&5 | |
21834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21835 | ||
21836 | echo "$as_me:$LINENO: result: no" >&5 | |
21837 | echo "${ECHO_T}no" >&6 | |
21838 | fi | |
ac1cb8d3 | 21839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21840 | |
21841 | fi | |
21842 | ||
21843 | ||
a848cd7e SC |
21844 | |
21845 | ac_ext=c | |
21846 | ac_cpp='$CPP $CPPFLAGS' | |
21847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21850 | ||
21851 | fi | |
21852 | ||
21853 | ||
21854 | SEARCH_INCLUDE="\ | |
21855 | /usr/local/include \ | |
21856 | \ | |
21857 | /usr/Motif-2.1/include \ | |
21858 | /usr/Motif-1.2/include \ | |
21859 | /usr/include/Motif1.2 \ | |
21860 | /opt/xpm/include/X11 \ | |
21861 | /opt/GBxpm/include/ \ | |
21862 | /opt/GBxpm/X11/include/ \ | |
21863 | \ | |
21864 | /usr/dt/include \ | |
21865 | /usr/openwin/include \ | |
21866 | \ | |
21867 | /usr/include/Xm \ | |
21868 | \ | |
21869 | /usr/X11R6/include \ | |
21870 | /usr/X11R6.4/include \ | |
21871 | /usr/X11R5/include \ | |
21872 | /usr/X11R4/include \ | |
21873 | \ | |
21874 | /usr/include/X11R6 \ | |
21875 | /usr/include/X11R5 \ | |
21876 | /usr/include/X11R4 \ | |
21877 | \ | |
21878 | /usr/local/X11R6/include \ | |
21879 | /usr/local/X11R5/include \ | |
21880 | /usr/local/X11R4/include \ | |
21881 | \ | |
21882 | /usr/local/include/X11R6 \ | |
21883 | /usr/local/include/X11R5 \ | |
21884 | /usr/local/include/X11R4 \ | |
21885 | \ | |
21886 | /usr/X11/include \ | |
21887 | /usr/include/X11 \ | |
21888 | /usr/local/X11/include \ | |
21889 | /usr/local/include/X11 \ | |
21890 | \ | |
21891 | /usr/X386/include \ | |
21892 | /usr/x386/include \ | |
21893 | /usr/XFree86/include/X11 \ | |
21894 | \ | |
21895 | X:/XFree86/include \ | |
21896 | X:/XFree86/include/X11 \ | |
21897 | \ | |
21898 | /usr/include/gtk \ | |
21899 | /usr/local/include/gtk \ | |
21900 | /usr/include/glib \ | |
21901 | /usr/local/include/glib \ | |
21902 | \ | |
21903 | /usr/include/qt \ | |
21904 | /usr/local/include/qt \ | |
21905 | \ | |
21906 | /usr/local/arm/3.3.2/include \ | |
21907 | \ | |
21908 | /usr/include/windows \ | |
21909 | /usr/include/wine \ | |
21910 | /usr/local/include/wine \ | |
21911 | \ | |
21912 | /usr/unsupported/include \ | |
21913 | /usr/athena/include \ | |
21914 | /usr/local/x11r5/include \ | |
21915 | /usr/lpp/Xamples/include \ | |
21916 | \ | |
21917 | /usr/openwin/share/include" | |
21918 | ||
07158944 | 21919 | SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`" |
a848cd7e SC |
21920 | |
21921 | ||
21922 | cat >confcache <<\_ACEOF | |
21923 | # This file is a shell script that caches the results of configure | |
21924 | # tests run on this system so they can be shared between configure | |
21925 | # scripts and configure runs, see configure's option --config-cache. | |
21926 | # It is not useful on other systems. If it contains results you don't | |
21927 | # want to keep, you may remove or edit it. | |
21928 | # | |
21929 | # config.status only pays attention to the cache file if you give it | |
21930 | # the --recheck option to rerun configure. | |
21931 | # | |
21932 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21933 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21934 | # following values. | |
21935 | ||
21936 | _ACEOF | |
21937 | ||
21938 | # The following way of writing the cache mishandles newlines in values, | |
21939 | # but we know of no workaround that is simple, portable, and efficient. | |
21940 | # So, don't put newlines in cache variables' values. | |
21941 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21942 | # and sets the high bit in the cache file unless we assign to the vars. | |
21943 | { | |
21944 | (set) 2>&1 | | |
21945 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21946 | *ac_space=\ *) | |
21947 | # `set' does not quote correctly, so add quotes (double-quote | |
21948 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21949 | sed -n \ | |
ac1cb8d3 VS |
21950 | "s/'/'\\\\''/g; |
21951 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
21952 | ;; |
21953 | *) | |
21954 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21955 | sed -n \ | |
ac1cb8d3 | 21956 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
21957 | ;; |
21958 | esac; | |
21959 | } | | |
21960 | sed ' | |
21961 | t clear | |
21962 | : clear | |
21963 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21964 | t end | |
21965 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21966 | : end' >>confcache | |
21967 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21968 | if test -w $cache_file; then | |
21969 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21970 | cat confcache >$cache_file | |
21971 | else | |
21972 | echo "not updating unwritable cache $cache_file" | |
21973 | fi | |
21974 | fi | |
21975 | rm -f confcache | |
21976 | ||
21977 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
21978 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
21979 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
21980 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
21981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21982 | else | |
21983 | ||
21984 | cat >conftest.$ac_ext <<_ACEOF | |
21985 | /* confdefs.h. */ | |
21986 | _ACEOF | |
21987 | cat confdefs.h >>conftest.$ac_ext | |
21988 | cat >>conftest.$ac_ext <<_ACEOF | |
21989 | /* end confdefs.h. */ | |
21990 | #include <features.h> | |
21991 | int | |
21992 | main () | |
21993 | { | |
21994 | ||
21995 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
21996 | #error not glibc2.1 | |
21997 | #endif | |
21998 | ||
21999 | ; | |
22000 | return 0; | |
22001 | } | |
22002 | _ACEOF | |
22003 | rm -f conftest.$ac_objext | |
22004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22005 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22006 | ac_status=$? |
ac1cb8d3 VS |
22007 | grep -v '^ *+' conftest.er1 >conftest.err |
22008 | rm -f conftest.er1 | |
22009 | cat conftest.err >&5 | |
a848cd7e SC |
22010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22011 | (exit $ac_status); } && | |
9dd0f6c2 | 22012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22014 | (eval $ac_try) 2>&5 | |
22015 | ac_status=$? | |
22016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22017 | (exit $ac_status); }; } && | |
22018 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
22024 | ||
22025 | wx_cv_lib_glibc21=yes | |
22026 | ||
22027 | else | |
22028 | echo "$as_me: failed program was:" >&5 | |
22029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22030 | ||
22031 | ||
22032 | wx_cv_lib_glibc21=no | |
22033 | ||
22034 | ||
22035 | fi | |
ac1cb8d3 | 22036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22037 | |
22038 | fi | |
22039 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
22040 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
22041 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
22042 | cat >>confdefs.h <<\_ACEOF | |
22043 | #define wxHAVE_GLIBC2 1 | |
22044 | _ACEOF | |
22045 | ||
22046 | fi | |
22047 | fi | |
22048 | ||
22049 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
22050 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
22051 | cat >>confdefs.h <<\_ACEOF | |
22052 | #define _GNU_SOURCE 1 | |
22053 | _ACEOF | |
22054 | ||
22055 | fi | |
22056 | fi | |
22057 | ||
22058 | ||
22059 | ||
22060 | if test "$wxUSE_REGEX" != "no"; then | |
22061 | cat >>confdefs.h <<\_ACEOF | |
22062 | #define wxUSE_REGEX 1 | |
22063 | _ACEOF | |
22064 | ||
22065 | ||
22066 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
22067 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
22068 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
22069 | wxUSE_REGEX=builtin | |
22070 | fi | |
22071 | ||
22072 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
22073 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22074 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22075 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22076 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22078 | fi | |
22079 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22080 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22081 | else | |
22082 | # Is the header compilable? | |
22083 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
22084 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
22085 | cat >conftest.$ac_ext <<_ACEOF | |
22086 | /* confdefs.h. */ | |
22087 | _ACEOF | |
22088 | cat confdefs.h >>conftest.$ac_ext | |
22089 | cat >>conftest.$ac_ext <<_ACEOF | |
22090 | /* end confdefs.h. */ | |
22091 | $ac_includes_default | |
22092 | #include <regex.h> | |
22093 | _ACEOF | |
22094 | rm -f conftest.$ac_objext | |
22095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22096 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22097 | ac_status=$? |
ac1cb8d3 VS |
22098 | grep -v '^ *+' conftest.er1 >conftest.err |
22099 | rm -f conftest.er1 | |
22100 | cat conftest.err >&5 | |
a848cd7e SC |
22101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22102 | (exit $ac_status); } && | |
9dd0f6c2 | 22103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22105 | (eval $ac_try) 2>&5 | |
22106 | ac_status=$? | |
22107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22108 | (exit $ac_status); }; } && | |
22109 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
22115 | ac_header_compiler=yes | |
22116 | else | |
22117 | echo "$as_me: failed program was:" >&5 | |
22118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22119 | ||
22120 | ac_header_compiler=no | |
22121 | fi | |
ac1cb8d3 | 22122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22123 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22124 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22125 | ||
22126 | # Is the header present? | |
22127 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
22128 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
22129 | cat >conftest.$ac_ext <<_ACEOF | |
22130 | /* confdefs.h. */ | |
22131 | _ACEOF | |
22132 | cat confdefs.h >>conftest.$ac_ext | |
22133 | cat >>conftest.$ac_ext <<_ACEOF | |
22134 | /* end confdefs.h. */ | |
22135 | #include <regex.h> | |
22136 | _ACEOF | |
22137 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22138 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22139 | ac_status=$? | |
22140 | grep -v '^ *+' conftest.er1 >conftest.err | |
22141 | rm -f conftest.er1 | |
22142 | cat conftest.err >&5 | |
22143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22144 | (exit $ac_status); } >/dev/null; then | |
22145 | if test -s conftest.err; then | |
22146 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22147 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22148 | else |
22149 | ac_cpp_err= | |
22150 | fi | |
22151 | else | |
22152 | ac_cpp_err=yes | |
22153 | fi | |
22154 | if test -z "$ac_cpp_err"; then | |
22155 | ac_header_preproc=yes | |
22156 | else | |
22157 | echo "$as_me: failed program was:" >&5 | |
22158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22159 | ||
22160 | ac_header_preproc=no | |
22161 | fi | |
22162 | rm -f conftest.err conftest.$ac_ext | |
22163 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22164 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22165 | ||
22166 | # So? What about this header? | |
ac1cb8d3 VS |
22167 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22168 | yes:no: ) | |
a848cd7e SC |
22169 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22170 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22171 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
22172 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
22173 | ac_header_preproc=yes | |
a848cd7e | 22174 | ;; |
ac1cb8d3 | 22175 | no:yes:* ) |
a848cd7e SC |
22176 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
22177 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22178 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
22179 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
22180 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
22181 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
22182 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22183 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22184 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
22185 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22186 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
22187 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22188 | ( |
22189 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22190 | ## ----------------------------------------- ## |
22191 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22192 | ## ----------------------------------------- ## | |
a848cd7e SC |
22193 | _ASBOX |
22194 | ) | | |
22195 | sed "s/^/$as_me: WARNING: /" >&2 | |
22196 | ;; | |
22197 | esac | |
22198 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22199 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22200 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22202 | else | |
22203 | ac_cv_header_regex_h=$ac_header_preproc | |
22204 | fi | |
22205 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22206 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22207 | ||
22208 | fi | |
22209 | if test $ac_cv_header_regex_h = yes; then | |
22210 | ||
22211 | for ac_func in regcomp | |
22212 | do | |
22213 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22214 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22215 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22216 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22218 | else | |
22219 | cat >conftest.$ac_ext <<_ACEOF | |
22220 | /* confdefs.h. */ | |
22221 | _ACEOF | |
22222 | cat confdefs.h >>conftest.$ac_ext | |
22223 | cat >>conftest.$ac_ext <<_ACEOF | |
22224 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
22225 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22226 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22227 | #define $ac_func innocuous_$ac_func | |
22228 | ||
a848cd7e SC |
22229 | /* System header to define __stub macros and hopefully few prototypes, |
22230 | which can conflict with char $ac_func (); below. | |
22231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22232 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 22233 | |
a848cd7e SC |
22234 | #ifdef __STDC__ |
22235 | # include <limits.h> | |
22236 | #else | |
22237 | # include <assert.h> | |
22238 | #endif | |
ac1cb8d3 VS |
22239 | |
22240 | #undef $ac_func | |
22241 | ||
a848cd7e SC |
22242 | /* Override any gcc2 internal prototype to avoid an error. */ |
22243 | #ifdef __cplusplus | |
22244 | extern "C" | |
22245 | { | |
22246 | #endif | |
22247 | /* We use char because int might match the return type of a gcc2 | |
22248 | builtin and then its argument prototype would still apply. */ | |
22249 | char $ac_func (); | |
22250 | /* The GNU C library defines this for functions which it implements | |
22251 | to always fail with ENOSYS. Some functions are actually named | |
22252 | something starting with __ and the normal name is an alias. */ | |
22253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22254 | choke me | |
22255 | #else | |
22256 | char (*f) () = $ac_func; | |
22257 | #endif | |
22258 | #ifdef __cplusplus | |
22259 | } | |
22260 | #endif | |
22261 | ||
22262 | int | |
22263 | main () | |
22264 | { | |
22265 | return f != $ac_func; | |
22266 | ; | |
22267 | return 0; | |
22268 | } | |
22269 | _ACEOF | |
22270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22272 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22273 | ac_status=$? |
ac1cb8d3 VS |
22274 | grep -v '^ *+' conftest.er1 >conftest.err |
22275 | rm -f conftest.er1 | |
22276 | cat conftest.err >&5 | |
a848cd7e SC |
22277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22278 | (exit $ac_status); } && | |
9dd0f6c2 | 22279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22281 | (eval $ac_try) 2>&5 | |
22282 | ac_status=$? | |
22283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22284 | (exit $ac_status); }; } && | |
22285 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
22291 | eval "$as_ac_var=yes" | |
22292 | else | |
22293 | echo "$as_me: failed program was:" >&5 | |
22294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22295 | ||
22296 | eval "$as_ac_var=no" | |
22297 | fi | |
ac1cb8d3 VS |
22298 | rm -f conftest.err conftest.$ac_objext \ |
22299 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22300 | fi |
22301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22302 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22303 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22304 | cat >>confdefs.h <<_ACEOF | |
22305 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22306 | _ACEOF | |
22307 | ||
22308 | fi | |
22309 | done | |
22310 | ||
22311 | fi | |
22312 | ||
22313 | ||
22314 | ||
22315 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
22316 | if test "$wxUSE_REGEX" = "sys" ; then | |
22317 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
22318 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
22319 | { (exit 1); exit 1; }; } | |
22320 | else | |
22321 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
22322 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
22323 | wxUSE_REGEX=builtin | |
22324 | fi | |
22325 | else | |
22326 | wxUSE_REGEX=sys | |
22327 | cat >>confdefs.h <<\_ACEOF | |
22328 | #define WX_NO_REGEX_ADVANCED 1 | |
22329 | _ACEOF | |
22330 | ||
22331 | fi | |
22332 | fi | |
22333 | fi | |
22334 | ||
22335 | ||
22336 | ZLIB_LINK= | |
22337 | if test "$wxUSE_ZLIB" != "no" ; then | |
22338 | cat >>confdefs.h <<\_ACEOF | |
22339 | #define wxUSE_ZLIB 1 | |
22340 | _ACEOF | |
22341 | ||
22342 | ||
22343 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
22344 | if test "$USE_DARWIN" = 1; then | |
22345 | system_zlib_h_ok="yes" | |
22346 | else | |
22347 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
22348 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
22349 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22351 | else | |
22352 | if test "$cross_compiling" = yes; then | |
22353 | unset ac_cv_header_zlib_h | |
22354 | ||
22355 | else | |
22356 | cat >conftest.$ac_ext <<_ACEOF | |
22357 | /* confdefs.h. */ | |
22358 | _ACEOF | |
22359 | cat confdefs.h >>conftest.$ac_ext | |
22360 | cat >>conftest.$ac_ext <<_ACEOF | |
22361 | /* end confdefs.h. */ | |
22362 | ||
22363 | #include <zlib.h> | |
22364 | #include <stdio.h> | |
22365 | ||
22366 | int main() | |
22367 | { | |
22368 | FILE *f=fopen("conftestval", "w"); | |
22369 | if (!f) exit(1); | |
22370 | fprintf(f, "%s", | |
22371 | ZLIB_VERSION[0] == '1' && | |
22372 | (ZLIB_VERSION[2] > '1' || | |
22373 | (ZLIB_VERSION[2] == '1' && | |
22374 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
22375 | exit(0); | |
22376 | } | |
22377 | ||
22378 | _ACEOF | |
22379 | rm -f conftest$ac_exeext | |
22380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22381 | (eval $ac_link) 2>&5 | |
22382 | ac_status=$? | |
22383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22386 | (eval $ac_try) 2>&5 | |
22387 | ac_status=$? | |
22388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22389 | (exit $ac_status); }; }; then | |
22390 | ac_cv_header_zlib_h=`cat conftestval` | |
22391 | else | |
22392 | echo "$as_me: program exited with status $ac_status" >&5 | |
22393 | echo "$as_me: failed program was:" >&5 | |
22394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22395 | ||
22396 | ( exit $ac_status ) | |
22397 | ac_cv_header_zlib_h=no | |
22398 | fi | |
ac1cb8d3 | 22399 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22400 | fi |
22401 | ||
22402 | fi | |
22403 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22404 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22405 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22406 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
22407 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
22408 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22410 | fi | |
22411 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22412 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22413 | else | |
22414 | # Is the header compilable? | |
22415 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
22416 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
22417 | cat >conftest.$ac_ext <<_ACEOF | |
22418 | /* confdefs.h. */ | |
22419 | _ACEOF | |
22420 | cat confdefs.h >>conftest.$ac_ext | |
22421 | cat >>conftest.$ac_ext <<_ACEOF | |
22422 | /* end confdefs.h. */ | |
22423 | $ac_includes_default | |
22424 | #include <zlib.h> | |
22425 | _ACEOF | |
22426 | rm -f conftest.$ac_objext | |
22427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22428 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22429 | ac_status=$? |
ac1cb8d3 VS |
22430 | grep -v '^ *+' conftest.er1 >conftest.err |
22431 | rm -f conftest.er1 | |
22432 | cat conftest.err >&5 | |
a848cd7e SC |
22433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22434 | (exit $ac_status); } && | |
9dd0f6c2 | 22435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22437 | (eval $ac_try) 2>&5 | |
22438 | ac_status=$? | |
22439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22440 | (exit $ac_status); }; } && | |
22441 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22443 | (eval $ac_try) 2>&5 | |
22444 | ac_status=$? | |
22445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22446 | (exit $ac_status); }; }; then | |
22447 | ac_header_compiler=yes | |
22448 | else | |
22449 | echo "$as_me: failed program was:" >&5 | |
22450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22451 | ||
22452 | ac_header_compiler=no | |
22453 | fi | |
ac1cb8d3 | 22454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22455 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22456 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22457 | ||
22458 | # Is the header present? | |
22459 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
22460 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
22461 | cat >conftest.$ac_ext <<_ACEOF | |
22462 | /* confdefs.h. */ | |
22463 | _ACEOF | |
22464 | cat confdefs.h >>conftest.$ac_ext | |
22465 | cat >>conftest.$ac_ext <<_ACEOF | |
22466 | /* end confdefs.h. */ | |
22467 | #include <zlib.h> | |
22468 | _ACEOF | |
22469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22471 | ac_status=$? | |
22472 | grep -v '^ *+' conftest.er1 >conftest.err | |
22473 | rm -f conftest.er1 | |
22474 | cat conftest.err >&5 | |
22475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22476 | (exit $ac_status); } >/dev/null; then | |
22477 | if test -s conftest.err; then | |
22478 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22480 | else |
22481 | ac_cpp_err= | |
22482 | fi | |
22483 | else | |
22484 | ac_cpp_err=yes | |
22485 | fi | |
22486 | if test -z "$ac_cpp_err"; then | |
22487 | ac_header_preproc=yes | |
22488 | else | |
22489 | echo "$as_me: failed program was:" >&5 | |
22490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22491 | ||
22492 | ac_header_preproc=no | |
22493 | fi | |
22494 | rm -f conftest.err conftest.$ac_ext | |
22495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22496 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22497 | ||
22498 | # So? What about this header? | |
ac1cb8d3 VS |
22499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22500 | yes:no: ) | |
a848cd7e SC |
22501 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22502 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22503 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
22504 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
22505 | ac_header_preproc=yes | |
a848cd7e | 22506 | ;; |
ac1cb8d3 | 22507 | no:yes:* ) |
a848cd7e SC |
22508 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
22509 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22510 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
22511 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
22512 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
22513 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
22514 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22515 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22516 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
22517 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22518 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
22519 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22520 | ( |
22521 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22522 | ## ----------------------------------------- ## |
22523 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22524 | ## ----------------------------------------- ## | |
a848cd7e SC |
22525 | _ASBOX |
22526 | ) | | |
22527 | sed "s/^/$as_me: WARNING: /" >&2 | |
22528 | ;; | |
22529 | esac | |
22530 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
22531 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
22532 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22534 | else | |
22535 | ac_cv_header_zlib_h=$ac_header_preproc | |
22536 | fi | |
22537 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22538 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22539 | ||
22540 | fi | |
22541 | ||
22542 | ||
22543 | ||
22544 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
22545 | fi | |
22546 | ||
22547 | if test "$system_zlib_h_ok" = "yes"; then | |
22548 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
22549 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
22550 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
22551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22552 | else | |
22553 | ac_check_lib_save_LIBS=$LIBS | |
22554 | LIBS="-lz $LIBS" | |
22555 | cat >conftest.$ac_ext <<_ACEOF | |
22556 | /* confdefs.h. */ | |
22557 | _ACEOF | |
22558 | cat confdefs.h >>conftest.$ac_ext | |
22559 | cat >>conftest.$ac_ext <<_ACEOF | |
22560 | /* end confdefs.h. */ | |
22561 | ||
22562 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22563 | #ifdef __cplusplus | |
22564 | extern "C" | |
22565 | #endif | |
22566 | /* We use char because int might match the return type of a gcc2 | |
22567 | builtin and then its argument prototype would still apply. */ | |
22568 | char deflate (); | |
22569 | int | |
22570 | main () | |
22571 | { | |
22572 | deflate (); | |
22573 | ; | |
22574 | return 0; | |
22575 | } | |
22576 | _ACEOF | |
22577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22579 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22580 | ac_status=$? |
ac1cb8d3 VS |
22581 | grep -v '^ *+' conftest.er1 >conftest.err |
22582 | rm -f conftest.er1 | |
22583 | cat conftest.err >&5 | |
a848cd7e SC |
22584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22585 | (exit $ac_status); } && | |
9dd0f6c2 | 22586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22588 | (eval $ac_try) 2>&5 | |
22589 | ac_status=$? | |
22590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22591 | (exit $ac_status); }; } && | |
22592 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
22598 | ac_cv_lib_z_deflate=yes | |
22599 | else | |
22600 | echo "$as_me: failed program was:" >&5 | |
22601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22602 | ||
22603 | ac_cv_lib_z_deflate=no | |
22604 | fi | |
ac1cb8d3 VS |
22605 | rm -f conftest.err conftest.$ac_objext \ |
22606 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22607 | LIBS=$ac_check_lib_save_LIBS |
22608 | fi | |
22609 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
22610 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
22611 | if test $ac_cv_lib_z_deflate = yes; then | |
22612 | ZLIB_LINK=" -lz" | |
22613 | fi | |
22614 | ||
22615 | fi | |
22616 | ||
22617 | if test "x$ZLIB_LINK" = "x" ; then | |
22618 | if test "$wxUSE_ZLIB" = "sys" ; then | |
22619 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
22620 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
22621 | { (exit 1); exit 1; }; } | |
22622 | else | |
22623 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
22624 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
22625 | wxUSE_ZLIB=builtin | |
22626 | fi | |
22627 | else | |
22628 | wxUSE_ZLIB=sys | |
22629 | fi | |
22630 | fi | |
22631 | fi | |
22632 | ||
22633 | ||
22634 | PNG_LINK= | |
22635 | if test "$wxUSE_LIBPNG" != "no" ; then | |
22636 | cat >>confdefs.h <<\_ACEOF | |
22637 | #define wxUSE_LIBPNG 1 | |
22638 | _ACEOF | |
22639 | ||
22640 | ||
22641 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
22642 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
22643 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
22644 | wxUSE_LIBPNG=sys | |
22645 | fi | |
22646 | ||
22647 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
22648 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
22649 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
22650 | wxUSE_LIBPNG=builtin | |
22651 | fi | |
22652 | ||
22653 | if test "$wxUSE_MGL" != 1 ; then | |
22654 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
22655 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
22656 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
22657 | if test "${ac_cv_header_png_h+set}" = set; then | |
22658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22659 | else | |
22660 | if test "$cross_compiling" = yes; then | |
22661 | unset ac_cv_header_png_h | |
22662 | ||
22663 | else | |
22664 | cat >conftest.$ac_ext <<_ACEOF | |
22665 | /* confdefs.h. */ | |
22666 | _ACEOF | |
22667 | cat confdefs.h >>conftest.$ac_ext | |
22668 | cat >>conftest.$ac_ext <<_ACEOF | |
22669 | /* end confdefs.h. */ | |
22670 | ||
22671 | #include <png.h> | |
22672 | #include <stdio.h> | |
22673 | ||
22674 | int main() | |
22675 | { | |
22676 | FILE *f=fopen("conftestval", "w"); | |
22677 | if (!f) exit(1); | |
22678 | fprintf(f, "%s", | |
22679 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
22680 | exit(0); | |
22681 | } | |
22682 | ||
22683 | _ACEOF | |
22684 | rm -f conftest$ac_exeext | |
22685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22686 | (eval $ac_link) 2>&5 | |
22687 | ac_status=$? | |
22688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22689 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22691 | (eval $ac_try) 2>&5 | |
22692 | ac_status=$? | |
22693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22694 | (exit $ac_status); }; }; then | |
22695 | ac_cv_header_png_h=`cat conftestval` | |
22696 | else | |
22697 | echo "$as_me: program exited with status $ac_status" >&5 | |
22698 | echo "$as_me: failed program was:" >&5 | |
22699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22700 | ||
22701 | ( exit $ac_status ) | |
22702 | ac_cv_header_png_h=no | |
22703 | fi | |
ac1cb8d3 | 22704 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22705 | fi |
22706 | ||
22707 | fi | |
22708 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22709 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22710 | if test "${ac_cv_header_png_h+set}" = set; then | |
22711 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22712 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22713 | if test "${ac_cv_header_png_h+set}" = set; then | |
22714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22715 | fi | |
22716 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22717 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22718 | else | |
22719 | # Is the header compilable? | |
22720 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
22721 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
22722 | cat >conftest.$ac_ext <<_ACEOF | |
22723 | /* confdefs.h. */ | |
22724 | _ACEOF | |
22725 | cat confdefs.h >>conftest.$ac_ext | |
22726 | cat >>conftest.$ac_ext <<_ACEOF | |
22727 | /* end confdefs.h. */ | |
22728 | $ac_includes_default | |
22729 | #include <png.h> | |
22730 | _ACEOF | |
22731 | rm -f conftest.$ac_objext | |
22732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22733 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22734 | ac_status=$? |
ac1cb8d3 VS |
22735 | grep -v '^ *+' conftest.er1 >conftest.err |
22736 | rm -f conftest.er1 | |
22737 | cat conftest.err >&5 | |
a848cd7e SC |
22738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22739 | (exit $ac_status); } && | |
9dd0f6c2 | 22740 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22742 | (eval $ac_try) 2>&5 | |
22743 | ac_status=$? | |
22744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22745 | (exit $ac_status); }; } && | |
22746 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
22752 | ac_header_compiler=yes | |
22753 | else | |
22754 | echo "$as_me: failed program was:" >&5 | |
22755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22756 | ||
22757 | ac_header_compiler=no | |
22758 | fi | |
ac1cb8d3 | 22759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22760 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22761 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22762 | ||
22763 | # Is the header present? | |
22764 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
22765 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
22766 | cat >conftest.$ac_ext <<_ACEOF | |
22767 | /* confdefs.h. */ | |
22768 | _ACEOF | |
22769 | cat confdefs.h >>conftest.$ac_ext | |
22770 | cat >>conftest.$ac_ext <<_ACEOF | |
22771 | /* end confdefs.h. */ | |
22772 | #include <png.h> | |
22773 | _ACEOF | |
22774 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22775 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22776 | ac_status=$? | |
22777 | grep -v '^ *+' conftest.er1 >conftest.err | |
22778 | rm -f conftest.er1 | |
22779 | cat conftest.err >&5 | |
22780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22781 | (exit $ac_status); } >/dev/null; then | |
22782 | if test -s conftest.err; then | |
22783 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22784 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22785 | else |
22786 | ac_cpp_err= | |
22787 | fi | |
22788 | else | |
22789 | ac_cpp_err=yes | |
22790 | fi | |
22791 | if test -z "$ac_cpp_err"; then | |
22792 | ac_header_preproc=yes | |
22793 | else | |
22794 | echo "$as_me: failed program was:" >&5 | |
22795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22796 | ||
22797 | ac_header_preproc=no | |
22798 | fi | |
22799 | rm -f conftest.err conftest.$ac_ext | |
22800 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22801 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22802 | ||
22803 | # So? What about this header? | |
ac1cb8d3 VS |
22804 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22805 | yes:no: ) | |
a848cd7e SC |
22806 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22807 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22808 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
22809 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
22810 | ac_header_preproc=yes | |
a848cd7e | 22811 | ;; |
ac1cb8d3 | 22812 | no:yes:* ) |
a848cd7e SC |
22813 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
22814 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22815 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
22816 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
22817 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
22818 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
22819 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22820 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22821 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
22822 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22823 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
22824 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22825 | ( |
22826 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22827 | ## ----------------------------------------- ## |
22828 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22829 | ## ----------------------------------------- ## | |
a848cd7e SC |
22830 | _ASBOX |
22831 | ) | | |
22832 | sed "s/^/$as_me: WARNING: /" >&2 | |
22833 | ;; | |
22834 | esac | |
22835 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22836 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22837 | if test "${ac_cv_header_png_h+set}" = set; then | |
22838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22839 | else | |
22840 | ac_cv_header_png_h=$ac_header_preproc | |
22841 | fi | |
22842 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22843 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22844 | ||
22845 | fi | |
22846 | ||
22847 | ||
22848 | ||
22849 | if test "$ac_cv_header_png_h" = "yes"; then | |
22850 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
22851 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
22852 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
22853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22854 | else | |
22855 | ac_check_lib_save_LIBS=$LIBS | |
22856 | LIBS="-lpng -lz -lm $LIBS" | |
22857 | cat >conftest.$ac_ext <<_ACEOF | |
22858 | /* confdefs.h. */ | |
22859 | _ACEOF | |
22860 | cat confdefs.h >>conftest.$ac_ext | |
22861 | cat >>conftest.$ac_ext <<_ACEOF | |
22862 | /* end confdefs.h. */ | |
22863 | ||
22864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22865 | #ifdef __cplusplus | |
22866 | extern "C" | |
22867 | #endif | |
22868 | /* We use char because int might match the return type of a gcc2 | |
22869 | builtin and then its argument prototype would still apply. */ | |
22870 | char png_check_sig (); | |
22871 | int | |
22872 | main () | |
22873 | { | |
22874 | png_check_sig (); | |
22875 | ; | |
22876 | return 0; | |
22877 | } | |
22878 | _ACEOF | |
22879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22881 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22882 | ac_status=$? |
ac1cb8d3 VS |
22883 | grep -v '^ *+' conftest.er1 >conftest.err |
22884 | rm -f conftest.er1 | |
22885 | cat conftest.err >&5 | |
a848cd7e SC |
22886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22887 | (exit $ac_status); } && | |
9dd0f6c2 | 22888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22890 | (eval $ac_try) 2>&5 | |
22891 | ac_status=$? | |
22892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22893 | (exit $ac_status); }; } && | |
22894 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
22900 | ac_cv_lib_png_png_check_sig=yes | |
22901 | else | |
22902 | echo "$as_me: failed program was:" >&5 | |
22903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22904 | ||
22905 | ac_cv_lib_png_png_check_sig=no | |
22906 | fi | |
ac1cb8d3 VS |
22907 | rm -f conftest.err conftest.$ac_objext \ |
22908 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22909 | LIBS=$ac_check_lib_save_LIBS |
22910 | fi | |
22911 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
22912 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
22913 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
22914 | PNG_LINK=" -lpng -lz" | |
22915 | fi | |
22916 | ||
22917 | fi | |
22918 | ||
22919 | if test "x$PNG_LINK" = "x" ; then | |
22920 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
22921 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
22922 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
22923 | { (exit 1); exit 1; }; } | |
22924 | else | |
22925 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
22926 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
22927 | wxUSE_LIBPNG=builtin | |
22928 | fi | |
22929 | else | |
22930 | wxUSE_LIBPNG=sys | |
22931 | fi | |
22932 | fi | |
22933 | fi | |
22934 | ||
22935 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
22936 | fi | |
22937 | ||
22938 | ||
22939 | JPEG_LINK= | |
22940 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
22941 | cat >>confdefs.h <<\_ACEOF | |
22942 | #define wxUSE_LIBJPEG 1 | |
22943 | _ACEOF | |
22944 | ||
22945 | ||
22946 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
22947 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
22948 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
22949 | wxUSE_LIBJPEG=sys | |
22950 | fi | |
22951 | ||
22952 | if test "$wxUSE_MGL" != 1 ; then | |
22953 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
22954 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
22955 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
22956 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
22957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22958 | else | |
22959 | cat >conftest.$ac_ext <<_ACEOF | |
22960 | /* confdefs.h. */ | |
22961 | _ACEOF | |
22962 | cat confdefs.h >>conftest.$ac_ext | |
22963 | cat >>conftest.$ac_ext <<_ACEOF | |
22964 | /* end confdefs.h. */ | |
22965 | ||
22966 | #undef HAVE_STDLIB_H | |
22967 | #include <stdio.h> | |
22968 | #include <jpeglib.h> | |
22969 | ||
22970 | int | |
22971 | main () | |
22972 | { | |
22973 | ||
22974 | ||
22975 | ; | |
22976 | return 0; | |
22977 | } | |
22978 | _ACEOF | |
22979 | rm -f conftest.$ac_objext | |
22980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22982 | ac_status=$? |
ac1cb8d3 VS |
22983 | grep -v '^ *+' conftest.er1 >conftest.err |
22984 | rm -f conftest.er1 | |
22985 | cat conftest.err >&5 | |
a848cd7e SC |
22986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22987 | (exit $ac_status); } && | |
9dd0f6c2 | 22988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22990 | (eval $ac_try) 2>&5 | |
22991 | ac_status=$? | |
22992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22993 | (exit $ac_status); }; } && | |
22994 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
23000 | ac_cv_header_jpeglib_h=yes | |
23001 | else | |
23002 | echo "$as_me: failed program was:" >&5 | |
23003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23004 | ||
23005 | ac_cv_header_jpeglib_h=no | |
23006 | ||
23007 | fi | |
ac1cb8d3 | 23008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23009 | |
23010 | fi | |
23011 | ||
23012 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
23013 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
23014 | ||
23015 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
23016 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
23017 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
23018 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
23019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23020 | else | |
23021 | ac_check_lib_save_LIBS=$LIBS | |
23022 | LIBS="-ljpeg $LIBS" | |
23023 | cat >conftest.$ac_ext <<_ACEOF | |
23024 | /* confdefs.h. */ | |
23025 | _ACEOF | |
23026 | cat confdefs.h >>conftest.$ac_ext | |
23027 | cat >>conftest.$ac_ext <<_ACEOF | |
23028 | /* end confdefs.h. */ | |
23029 | ||
23030 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23031 | #ifdef __cplusplus | |
23032 | extern "C" | |
23033 | #endif | |
23034 | /* We use char because int might match the return type of a gcc2 | |
23035 | builtin and then its argument prototype would still apply. */ | |
23036 | char jpeg_read_header (); | |
23037 | int | |
23038 | main () | |
23039 | { | |
23040 | jpeg_read_header (); | |
23041 | ; | |
23042 | return 0; | |
23043 | } | |
23044 | _ACEOF | |
23045 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23047 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23048 | ac_status=$? |
ac1cb8d3 VS |
23049 | grep -v '^ *+' conftest.er1 >conftest.err |
23050 | rm -f conftest.er1 | |
23051 | cat conftest.err >&5 | |
a848cd7e SC |
23052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23053 | (exit $ac_status); } && | |
9dd0f6c2 | 23054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23056 | (eval $ac_try) 2>&5 | |
23057 | ac_status=$? | |
23058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23059 | (exit $ac_status); }; } && | |
23060 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
23066 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
23067 | else | |
23068 | echo "$as_me: failed program was:" >&5 | |
23069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23070 | ||
23071 | ac_cv_lib_jpeg_jpeg_read_header=no | |
23072 | fi | |
ac1cb8d3 VS |
23073 | rm -f conftest.err conftest.$ac_objext \ |
23074 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23075 | LIBS=$ac_check_lib_save_LIBS |
23076 | fi | |
23077 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
23078 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
23079 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
23080 | JPEG_LINK=" -ljpeg" | |
23081 | fi | |
23082 | ||
23083 | fi | |
23084 | ||
23085 | if test "x$JPEG_LINK" = "x" ; then | |
23086 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
23087 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
23088 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
23089 | { (exit 1); exit 1; }; } | |
23090 | else | |
23091 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
23092 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
23093 | wxUSE_LIBJPEG=builtin | |
23094 | fi | |
23095 | else | |
23096 | wxUSE_LIBJPEG=sys | |
23097 | fi | |
23098 | fi | |
23099 | fi | |
23100 | fi | |
23101 | ||
23102 | ||
23103 | TIFF_LINK= | |
23104 | TIFF_PREREQ_LINKS=-lm | |
23105 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
23106 | cat >>confdefs.h <<\_ACEOF | |
23107 | #define wxUSE_LIBTIFF 1 | |
23108 | _ACEOF | |
23109 | ||
23110 | ||
23111 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
23112 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
23113 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
23114 | fi | |
23115 | if test "$wxUSE_ZLIB" = "sys"; then | |
23116 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
23117 | fi | |
23118 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23119 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23120 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23121 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23123 | fi | |
23124 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23125 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23126 | else | |
23127 | # Is the header compilable? | |
23128 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
23129 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
23130 | cat >conftest.$ac_ext <<_ACEOF | |
23131 | /* confdefs.h. */ | |
23132 | _ACEOF | |
23133 | cat confdefs.h >>conftest.$ac_ext | |
23134 | cat >>conftest.$ac_ext <<_ACEOF | |
23135 | /* end confdefs.h. */ | |
23136 | $ac_includes_default | |
23137 | #include <tiffio.h> | |
23138 | _ACEOF | |
23139 | rm -f conftest.$ac_objext | |
23140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23141 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23142 | ac_status=$? |
ac1cb8d3 VS |
23143 | grep -v '^ *+' conftest.er1 >conftest.err |
23144 | rm -f conftest.er1 | |
23145 | cat conftest.err >&5 | |
a848cd7e SC |
23146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23147 | (exit $ac_status); } && | |
9dd0f6c2 | 23148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23150 | (eval $ac_try) 2>&5 | |
23151 | ac_status=$? | |
23152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23153 | (exit $ac_status); }; } && | |
23154 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
23160 | ac_header_compiler=yes | |
23161 | else | |
23162 | echo "$as_me: failed program was:" >&5 | |
23163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23164 | ||
23165 | ac_header_compiler=no | |
23166 | fi | |
ac1cb8d3 | 23167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23168 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23169 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23170 | ||
23171 | # Is the header present? | |
23172 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
23173 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
23174 | cat >conftest.$ac_ext <<_ACEOF | |
23175 | /* confdefs.h. */ | |
23176 | _ACEOF | |
23177 | cat confdefs.h >>conftest.$ac_ext | |
23178 | cat >>conftest.$ac_ext <<_ACEOF | |
23179 | /* end confdefs.h. */ | |
23180 | #include <tiffio.h> | |
23181 | _ACEOF | |
23182 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23183 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23184 | ac_status=$? | |
23185 | grep -v '^ *+' conftest.er1 >conftest.err | |
23186 | rm -f conftest.er1 | |
23187 | cat conftest.err >&5 | |
23188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23189 | (exit $ac_status); } >/dev/null; then | |
23190 | if test -s conftest.err; then | |
23191 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23192 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23193 | else |
23194 | ac_cpp_err= | |
23195 | fi | |
23196 | else | |
23197 | ac_cpp_err=yes | |
23198 | fi | |
23199 | if test -z "$ac_cpp_err"; then | |
23200 | ac_header_preproc=yes | |
23201 | else | |
23202 | echo "$as_me: failed program was:" >&5 | |
23203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23204 | ||
23205 | ac_header_preproc=no | |
23206 | fi | |
23207 | rm -f conftest.err conftest.$ac_ext | |
23208 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23209 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23210 | ||
23211 | # So? What about this header? | |
ac1cb8d3 VS |
23212 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23213 | yes:no: ) | |
a848cd7e SC |
23214 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23215 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23216 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
23217 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
23218 | ac_header_preproc=yes | |
a848cd7e | 23219 | ;; |
ac1cb8d3 | 23220 | no:yes:* ) |
a848cd7e SC |
23221 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
23222 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23223 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
23224 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
23225 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
23226 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
23227 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23228 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23229 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
23230 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23231 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
23232 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23233 | ( |
23234 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23235 | ## ----------------------------------------- ## |
23236 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23237 | ## ----------------------------------------- ## | |
a848cd7e SC |
23238 | _ASBOX |
23239 | ) | | |
23240 | sed "s/^/$as_me: WARNING: /" >&2 | |
23241 | ;; | |
23242 | esac | |
23243 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23244 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23245 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23247 | else | |
23248 | ac_cv_header_tiffio_h=$ac_header_preproc | |
23249 | fi | |
23250 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23251 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23252 | ||
23253 | fi | |
23254 | if test $ac_cv_header_tiffio_h = yes; then | |
23255 | ||
23256 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
23257 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
23258 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
23259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23260 | else | |
23261 | ac_check_lib_save_LIBS=$LIBS | |
23262 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
23263 | cat >conftest.$ac_ext <<_ACEOF | |
23264 | /* confdefs.h. */ | |
23265 | _ACEOF | |
23266 | cat confdefs.h >>conftest.$ac_ext | |
23267 | cat >>conftest.$ac_ext <<_ACEOF | |
23268 | /* end confdefs.h. */ | |
23269 | ||
23270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23271 | #ifdef __cplusplus | |
23272 | extern "C" | |
23273 | #endif | |
23274 | /* We use char because int might match the return type of a gcc2 | |
23275 | builtin and then its argument prototype would still apply. */ | |
23276 | char TIFFError (); | |
23277 | int | |
23278 | main () | |
23279 | { | |
23280 | TIFFError (); | |
23281 | ; | |
23282 | return 0; | |
23283 | } | |
23284 | _ACEOF | |
23285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23287 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23288 | ac_status=$? |
ac1cb8d3 VS |
23289 | grep -v '^ *+' conftest.er1 >conftest.err |
23290 | rm -f conftest.er1 | |
23291 | cat conftest.err >&5 | |
a848cd7e SC |
23292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23293 | (exit $ac_status); } && | |
9dd0f6c2 | 23294 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23296 | (eval $ac_try) 2>&5 | |
23297 | ac_status=$? | |
23298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23299 | (exit $ac_status); }; } && | |
23300 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
23306 | ac_cv_lib_tiff_TIFFError=yes | |
23307 | else | |
23308 | echo "$as_me: failed program was:" >&5 | |
23309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23310 | ||
23311 | ac_cv_lib_tiff_TIFFError=no | |
23312 | fi | |
ac1cb8d3 VS |
23313 | rm -f conftest.err conftest.$ac_objext \ |
23314 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23315 | LIBS=$ac_check_lib_save_LIBS |
23316 | fi | |
23317 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
23318 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
23319 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
23320 | TIFF_LINK=" -ltiff" | |
23321 | fi | |
23322 | ||
23323 | ||
23324 | ||
23325 | fi | |
23326 | ||
23327 | ||
23328 | ||
23329 | if test "x$TIFF_LINK" = "x" ; then | |
23330 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
23331 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
23332 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
23333 | { (exit 1); exit 1; }; } | |
23334 | else | |
23335 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
23336 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
23337 | wxUSE_LIBTIFF=builtin | |
23338 | fi | |
23339 | else | |
23340 | wxUSE_LIBTIFF=sys | |
23341 | fi | |
23342 | fi | |
23343 | fi | |
23344 | ||
23345 | ||
23346 | if test "$wxUSE_EXPAT" != "no"; then | |
23347 | wxUSE_XML=yes | |
23348 | cat >>confdefs.h <<\_ACEOF | |
23349 | #define wxUSE_EXPAT 1 | |
23350 | _ACEOF | |
23351 | ||
23352 | cat >>confdefs.h <<\_ACEOF | |
23353 | #define wxUSE_XML 1 | |
23354 | _ACEOF | |
23355 | ||
23356 | ||
23357 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
23358 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23359 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23360 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23361 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23363 | fi | |
23364 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
23365 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
23366 | else | |
23367 | # Is the header compilable? | |
23368 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
23369 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
23370 | cat >conftest.$ac_ext <<_ACEOF | |
23371 | /* confdefs.h. */ | |
23372 | _ACEOF | |
23373 | cat confdefs.h >>conftest.$ac_ext | |
23374 | cat >>conftest.$ac_ext <<_ACEOF | |
23375 | /* end confdefs.h. */ | |
23376 | $ac_includes_default | |
23377 | #include <expat.h> | |
23378 | _ACEOF | |
23379 | rm -f conftest.$ac_objext | |
23380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23381 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23382 | ac_status=$? |
ac1cb8d3 VS |
23383 | grep -v '^ *+' conftest.er1 >conftest.err |
23384 | rm -f conftest.er1 | |
23385 | cat conftest.err >&5 | |
a848cd7e SC |
23386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23387 | (exit $ac_status); } && | |
9dd0f6c2 | 23388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23390 | (eval $ac_try) 2>&5 | |
23391 | ac_status=$? | |
23392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23393 | (exit $ac_status); }; } && | |
23394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
23400 | ac_header_compiler=yes | |
23401 | else | |
23402 | echo "$as_me: failed program was:" >&5 | |
23403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23404 | ||
23405 | ac_header_compiler=no | |
23406 | fi | |
ac1cb8d3 | 23407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23408 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23409 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23410 | ||
23411 | # Is the header present? | |
23412 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
23413 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
23414 | cat >conftest.$ac_ext <<_ACEOF | |
23415 | /* confdefs.h. */ | |
23416 | _ACEOF | |
23417 | cat confdefs.h >>conftest.$ac_ext | |
23418 | cat >>conftest.$ac_ext <<_ACEOF | |
23419 | /* end confdefs.h. */ | |
23420 | #include <expat.h> | |
23421 | _ACEOF | |
23422 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23423 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23424 | ac_status=$? | |
23425 | grep -v '^ *+' conftest.er1 >conftest.err | |
23426 | rm -f conftest.er1 | |
23427 | cat conftest.err >&5 | |
23428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23429 | (exit $ac_status); } >/dev/null; then | |
23430 | if test -s conftest.err; then | |
23431 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23432 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23433 | else |
23434 | ac_cpp_err= | |
23435 | fi | |
23436 | else | |
23437 | ac_cpp_err=yes | |
23438 | fi | |
23439 | if test -z "$ac_cpp_err"; then | |
23440 | ac_header_preproc=yes | |
23441 | else | |
23442 | echo "$as_me: failed program was:" >&5 | |
23443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23444 | ||
23445 | ac_header_preproc=no | |
23446 | fi | |
23447 | rm -f conftest.err conftest.$ac_ext | |
23448 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23449 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23450 | ||
23451 | # So? What about this header? | |
ac1cb8d3 VS |
23452 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23453 | yes:no: ) | |
a848cd7e SC |
23454 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23455 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23456 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
23457 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
23458 | ac_header_preproc=yes | |
a848cd7e | 23459 | ;; |
ac1cb8d3 | 23460 | no:yes:* ) |
a848cd7e SC |
23461 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
23462 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23463 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
23464 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
23465 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
23466 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
23467 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23468 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23469 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
23470 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23471 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
23472 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23473 | ( |
23474 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23475 | ## ----------------------------------------- ## |
23476 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23477 | ## ----------------------------------------- ## | |
a848cd7e SC |
23478 | _ASBOX |
23479 | ) | | |
23480 | sed "s/^/$as_me: WARNING: /" >&2 | |
23481 | ;; | |
23482 | esac | |
23483 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23484 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23485 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23487 | else | |
23488 | ac_cv_header_expat_h=$ac_header_preproc | |
23489 | fi | |
23490 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
23491 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
23492 | ||
23493 | fi | |
23494 | if test $ac_cv_header_expat_h = yes; then | |
23495 | found_expat_h=1 | |
23496 | fi | |
23497 | ||
23498 | ||
23499 | if test "x$found_expat_h" = "x1"; then | |
23500 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
23501 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
23502 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
23503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23504 | else | |
23505 | ||
23506 | ||
23507 | ||
23508 | ac_ext=cc | |
23509 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23510 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23511 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23512 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23513 | ||
23514 | cat >conftest.$ac_ext <<_ACEOF | |
23515 | /* confdefs.h. */ | |
23516 | _ACEOF | |
23517 | cat confdefs.h >>conftest.$ac_ext | |
23518 | cat >>conftest.$ac_ext <<_ACEOF | |
23519 | /* end confdefs.h. */ | |
23520 | #include <expat.h> | |
23521 | int | |
23522 | main () | |
23523 | { | |
23524 | ||
23525 | ; | |
23526 | return 0; | |
23527 | } | |
23528 | _ACEOF | |
23529 | rm -f conftest.$ac_objext | |
23530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23531 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23532 | ac_status=$? |
ac1cb8d3 VS |
23533 | grep -v '^ *+' conftest.er1 >conftest.err |
23534 | rm -f conftest.er1 | |
23535 | cat conftest.err >&5 | |
a848cd7e SC |
23536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23537 | (exit $ac_status); } && | |
9dd0f6c2 | 23538 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23540 | (eval $ac_try) 2>&5 | |
23541 | ac_status=$? | |
23542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23543 | (exit $ac_status); }; } && | |
23544 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
23550 | wx_cv_expat_is_not_broken=yes | |
23551 | else | |
23552 | echo "$as_me: failed program was:" >&5 | |
23553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23554 | ||
23555 | wx_cv_expat_is_not_broken=no | |
23556 | ||
23557 | fi | |
ac1cb8d3 | 23558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23559 | ac_ext=c |
23560 | ac_cpp='$CPP $CPPFLAGS' | |
23561 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23562 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23563 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23564 | ||
23565 | ||
23566 | ||
23567 | fi | |
23568 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
23569 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
23570 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
23571 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
23572 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
23573 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
23574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23575 | else | |
23576 | ac_check_lib_save_LIBS=$LIBS | |
23577 | LIBS="-lexpat $LIBS" | |
23578 | cat >conftest.$ac_ext <<_ACEOF | |
23579 | /* confdefs.h. */ | |
23580 | _ACEOF | |
23581 | cat confdefs.h >>conftest.$ac_ext | |
23582 | cat >>conftest.$ac_ext <<_ACEOF | |
23583 | /* end confdefs.h. */ | |
23584 | ||
23585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23586 | #ifdef __cplusplus | |
23587 | extern "C" | |
23588 | #endif | |
23589 | /* We use char because int might match the return type of a gcc2 | |
23590 | builtin and then its argument prototype would still apply. */ | |
23591 | char XML_ParserCreate (); | |
23592 | int | |
23593 | main () | |
23594 | { | |
23595 | XML_ParserCreate (); | |
23596 | ; | |
23597 | return 0; | |
23598 | } | |
23599 | _ACEOF | |
23600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23602 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23603 | ac_status=$? |
ac1cb8d3 VS |
23604 | grep -v '^ *+' conftest.er1 >conftest.err |
23605 | rm -f conftest.er1 | |
23606 | cat conftest.err >&5 | |
a848cd7e SC |
23607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23608 | (exit $ac_status); } && | |
9dd0f6c2 | 23609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23611 | (eval $ac_try) 2>&5 | |
23612 | ac_status=$? | |
23613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23614 | (exit $ac_status); }; } && | |
23615 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
23621 | ac_cv_lib_expat_XML_ParserCreate=yes | |
23622 | else | |
23623 | echo "$as_me: failed program was:" >&5 | |
23624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23625 | ||
23626 | ac_cv_lib_expat_XML_ParserCreate=no | |
23627 | fi | |
ac1cb8d3 VS |
23628 | rm -f conftest.err conftest.$ac_objext \ |
23629 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23630 | LIBS=$ac_check_lib_save_LIBS |
23631 | fi | |
23632 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
23633 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
23634 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
23635 | EXPAT_LINK=" -lexpat" | |
23636 | fi | |
23637 | ||
23638 | fi | |
23639 | fi | |
23640 | if test "x$EXPAT_LINK" = "x" ; then | |
23641 | if test "$wxUSE_EXPAT" = "sys" ; then | |
23642 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
23643 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
23644 | { (exit 1); exit 1; }; } | |
23645 | else | |
23646 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
23647 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
23648 | wxUSE_EXPAT=builtin | |
23649 | fi | |
23650 | else | |
23651 | wxUSE_EXPAT=sys | |
23652 | fi | |
23653 | fi | |
23654 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
23655 | ||
23656 | ||
23657 | subdirs="$subdirs src/expat" | |
23658 | ||
23659 | fi | |
23660 | fi | |
23661 | ||
23662 | ||
23663 | ||
23664 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
23665 | if test "${ac_cv_header_mspack_h+set}" = set; then |
23666 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23667 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23668 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23670 | fi | |
23671 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23672 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23673 | else | |
23674 | # Is the header compilable? | |
23675 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
23676 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
23677 | cat >conftest.$ac_ext <<_ACEOF | |
23678 | /* confdefs.h. */ | |
23679 | _ACEOF | |
23680 | cat confdefs.h >>conftest.$ac_ext | |
23681 | cat >>conftest.$ac_ext <<_ACEOF | |
23682 | /* end confdefs.h. */ | |
23683 | $ac_includes_default | |
23684 | #include <mspack.h> | |
23685 | _ACEOF | |
23686 | rm -f conftest.$ac_objext | |
23687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23688 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23689 | ac_status=$? |
ac1cb8d3 VS |
23690 | grep -v '^ *+' conftest.er1 >conftest.err |
23691 | rm -f conftest.er1 | |
23692 | cat conftest.err >&5 | |
a848cd7e SC |
23693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23694 | (exit $ac_status); } && | |
9dd0f6c2 | 23695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23697 | (eval $ac_try) 2>&5 | |
23698 | ac_status=$? | |
23699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23700 | (exit $ac_status); }; } && | |
23701 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
23707 | ac_header_compiler=yes | |
23708 | else | |
23709 | echo "$as_me: failed program was:" >&5 | |
23710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23711 | ||
23712 | ac_header_compiler=no | |
23713 | fi | |
ac1cb8d3 | 23714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23715 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23716 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23717 | ||
23718 | # Is the header present? | |
23719 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
23720 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
23721 | cat >conftest.$ac_ext <<_ACEOF | |
23722 | /* confdefs.h. */ | |
23723 | _ACEOF | |
23724 | cat confdefs.h >>conftest.$ac_ext | |
23725 | cat >>conftest.$ac_ext <<_ACEOF | |
23726 | /* end confdefs.h. */ | |
23727 | #include <mspack.h> | |
23728 | _ACEOF | |
23729 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23730 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23731 | ac_status=$? | |
23732 | grep -v '^ *+' conftest.er1 >conftest.err | |
23733 | rm -f conftest.er1 | |
23734 | cat conftest.err >&5 | |
23735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23736 | (exit $ac_status); } >/dev/null; then | |
23737 | if test -s conftest.err; then | |
23738 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23739 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23740 | else |
23741 | ac_cpp_err= | |
23742 | fi | |
23743 | else | |
23744 | ac_cpp_err=yes | |
23745 | fi | |
23746 | if test -z "$ac_cpp_err"; then | |
23747 | ac_header_preproc=yes | |
23748 | else | |
23749 | echo "$as_me: failed program was:" >&5 | |
23750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23751 | ||
23752 | ac_header_preproc=no | |
23753 | fi | |
23754 | rm -f conftest.err conftest.$ac_ext | |
23755 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23756 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23757 | ||
23758 | # So? What about this header? | |
ac1cb8d3 VS |
23759 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23760 | yes:no: ) | |
a848cd7e SC |
23761 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23762 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23763 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
23764 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
23765 | ac_header_preproc=yes | |
a848cd7e | 23766 | ;; |
ac1cb8d3 | 23767 | no:yes:* ) |
a848cd7e SC |
23768 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
23769 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23770 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
23771 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
23772 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
23773 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
23774 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23775 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23776 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
23777 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23778 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
23779 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23780 | ( |
23781 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23782 | ## ----------------------------------------- ## |
23783 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23784 | ## ----------------------------------------- ## | |
a848cd7e SC |
23785 | _ASBOX |
23786 | ) | | |
23787 | sed "s/^/$as_me: WARNING: /" >&2 | |
23788 | ;; | |
23789 | esac | |
23790 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23791 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23792 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23794 | else | |
23795 | ac_cv_header_mspack_h=$ac_header_preproc | |
23796 | fi | |
23797 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23798 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23799 | ||
23800 | fi | |
23801 | if test $ac_cv_header_mspack_h = yes; then | |
23802 | found_mspack_h=1 | |
23803 | fi | |
23804 | ||
23805 | ||
23806 | if test "x$found_mspack_h" = "x1"; then | |
23807 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
23808 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
23809 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
23810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23811 | else | |
23812 | ac_check_lib_save_LIBS=$LIBS | |
23813 | LIBS="-lmspack $LIBS" | |
23814 | cat >conftest.$ac_ext <<_ACEOF | |
23815 | /* confdefs.h. */ | |
23816 | _ACEOF | |
23817 | cat confdefs.h >>conftest.$ac_ext | |
23818 | cat >>conftest.$ac_ext <<_ACEOF | |
23819 | /* end confdefs.h. */ | |
23820 | ||
23821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23822 | #ifdef __cplusplus | |
23823 | extern "C" | |
23824 | #endif | |
23825 | /* We use char because int might match the return type of a gcc2 | |
23826 | builtin and then its argument prototype would still apply. */ | |
23827 | char mspack_create_chm_decompressor (); | |
23828 | int | |
23829 | main () | |
23830 | { | |
23831 | mspack_create_chm_decompressor (); | |
23832 | ; | |
23833 | return 0; | |
23834 | } | |
23835 | _ACEOF | |
23836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23838 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23839 | ac_status=$? |
ac1cb8d3 VS |
23840 | grep -v '^ *+' conftest.er1 >conftest.err |
23841 | rm -f conftest.er1 | |
23842 | cat conftest.err >&5 | |
a848cd7e SC |
23843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23844 | (exit $ac_status); } && | |
9dd0f6c2 | 23845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23847 | (eval $ac_try) 2>&5 | |
23848 | ac_status=$? | |
23849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23850 | (exit $ac_status); }; } && | |
23851 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
23857 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
23858 | else | |
23859 | echo "$as_me: failed program was:" >&5 | |
23860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23861 | ||
23862 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
23863 | fi | |
ac1cb8d3 VS |
23864 | rm -f conftest.err conftest.$ac_objext \ |
23865 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23866 | LIBS=$ac_check_lib_save_LIBS |
23867 | fi | |
23868 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
23869 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
23870 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
23871 | MSPACK_LINK=" -lmspack" | |
23872 | fi | |
23873 | ||
23874 | fi | |
23875 | if test "x$MSPACK_LINK" = "x" ; then | |
23876 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
23877 | fi |
23878 | fi | |
23879 | ||
23880 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
23881 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
23882 | #define wxUSE_LIBMSPACK 1 |
23883 | _ACEOF | |
23884 | ||
a848cd7e SC |
23885 | fi |
23886 | ||
23887 | ||
23888 | ||
23889 | AFMINSTALL= | |
23890 | WIN32INSTALL= | |
23891 | ||
23892 | TOOLKIT= | |
23893 | TOOLKIT_INCLUDE= | |
23894 | WIDGET_SET= | |
23895 | ||
23896 | if test "$USE_WIN32" = 1 ; then | |
23897 | ||
23898 | for ac_header in w32api.h | |
23899 | do | |
23900 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23902 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23906 | fi | |
23907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23909 | else | |
23910 | # Is the header compilable? | |
23911 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23912 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
23913 | cat >conftest.$ac_ext <<_ACEOF | |
23914 | /* confdefs.h. */ | |
23915 | _ACEOF | |
23916 | cat confdefs.h >>conftest.$ac_ext | |
23917 | cat >>conftest.$ac_ext <<_ACEOF | |
23918 | /* end confdefs.h. */ | |
23919 | $ac_includes_default | |
23920 | #include <$ac_header> | |
23921 | _ACEOF | |
23922 | rm -f conftest.$ac_objext | |
23923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23924 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23925 | ac_status=$? |
ac1cb8d3 VS |
23926 | grep -v '^ *+' conftest.er1 >conftest.err |
23927 | rm -f conftest.er1 | |
23928 | cat conftest.err >&5 | |
a848cd7e SC |
23929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23930 | (exit $ac_status); } && | |
9dd0f6c2 | 23931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23933 | (eval $ac_try) 2>&5 | |
23934 | ac_status=$? | |
23935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23936 | (exit $ac_status); }; } && | |
23937 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
23943 | ac_header_compiler=yes | |
23944 | else | |
23945 | echo "$as_me: failed program was:" >&5 | |
23946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23947 | ||
23948 | ac_header_compiler=no | |
23949 | fi | |
ac1cb8d3 | 23950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23951 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23952 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23953 | ||
23954 | # Is the header present? | |
23955 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23956 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
23957 | cat >conftest.$ac_ext <<_ACEOF | |
23958 | /* confdefs.h. */ | |
23959 | _ACEOF | |
23960 | cat confdefs.h >>conftest.$ac_ext | |
23961 | cat >>conftest.$ac_ext <<_ACEOF | |
23962 | /* end confdefs.h. */ | |
23963 | #include <$ac_header> | |
23964 | _ACEOF | |
23965 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23966 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23967 | ac_status=$? | |
23968 | grep -v '^ *+' conftest.er1 >conftest.err | |
23969 | rm -f conftest.er1 | |
23970 | cat conftest.err >&5 | |
23971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23972 | (exit $ac_status); } >/dev/null; then | |
23973 | if test -s conftest.err; then | |
23974 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23975 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23976 | else |
23977 | ac_cpp_err= | |
23978 | fi | |
23979 | else | |
23980 | ac_cpp_err=yes | |
23981 | fi | |
23982 | if test -z "$ac_cpp_err"; then | |
23983 | ac_header_preproc=yes | |
23984 | else | |
23985 | echo "$as_me: failed program was:" >&5 | |
23986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23987 | ||
23988 | ac_header_preproc=no | |
23989 | fi | |
23990 | rm -f conftest.err conftest.$ac_ext | |
23991 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23992 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23993 | ||
23994 | # So? What about this header? | |
ac1cb8d3 VS |
23995 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23996 | yes:no: ) | |
a848cd7e SC |
23997 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
23998 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23999 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24000 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24001 | ac_header_preproc=yes | |
a848cd7e | 24002 | ;; |
ac1cb8d3 | 24003 | no:yes:* ) |
a848cd7e SC |
24004 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24005 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24006 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24007 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24008 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24009 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24010 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24011 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24012 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24013 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24014 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24015 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24016 | ( |
24017 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24018 | ## ----------------------------------------- ## |
24019 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24020 | ## ----------------------------------------- ## | |
a848cd7e SC |
24021 | _ASBOX |
24022 | ) | | |
24023 | sed "s/^/$as_me: WARNING: /" >&2 | |
24024 | ;; | |
24025 | esac | |
24026 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24030 | else | |
ac1cb8d3 | 24031 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
24032 | fi |
24033 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24034 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24035 | ||
24036 | fi | |
24037 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24038 | cat >>confdefs.h <<_ACEOF | |
24039 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24040 | _ACEOF | |
24041 | ||
24042 | fi | |
24043 | ||
24044 | done | |
24045 | ||
24046 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24047 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24048 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24049 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24051 | fi | |
24052 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24053 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24054 | else | |
24055 | # Is the header compilable? | |
24056 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
24057 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
24058 | cat >conftest.$ac_ext <<_ACEOF | |
24059 | /* confdefs.h. */ | |
24060 | _ACEOF | |
24061 | cat confdefs.h >>conftest.$ac_ext | |
24062 | cat >>conftest.$ac_ext <<_ACEOF | |
24063 | /* end confdefs.h. */ | |
24064 | $ac_includes_default | |
24065 | #include <windows.h> | |
24066 | _ACEOF | |
24067 | rm -f conftest.$ac_objext | |
24068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24069 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24070 | ac_status=$? |
ac1cb8d3 VS |
24071 | grep -v '^ *+' conftest.er1 >conftest.err |
24072 | rm -f conftest.er1 | |
24073 | cat conftest.err >&5 | |
a848cd7e SC |
24074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24075 | (exit $ac_status); } && | |
9dd0f6c2 | 24076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24078 | (eval $ac_try) 2>&5 | |
24079 | ac_status=$? | |
24080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24081 | (exit $ac_status); }; } && | |
24082 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
24088 | ac_header_compiler=yes | |
24089 | else | |
24090 | echo "$as_me: failed program was:" >&5 | |
24091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24092 | ||
24093 | ac_header_compiler=no | |
24094 | fi | |
ac1cb8d3 | 24095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24096 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24097 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24098 | ||
24099 | # Is the header present? | |
24100 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
24101 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
24102 | cat >conftest.$ac_ext <<_ACEOF | |
24103 | /* confdefs.h. */ | |
24104 | _ACEOF | |
24105 | cat confdefs.h >>conftest.$ac_ext | |
24106 | cat >>conftest.$ac_ext <<_ACEOF | |
24107 | /* end confdefs.h. */ | |
24108 | #include <windows.h> | |
24109 | _ACEOF | |
24110 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24112 | ac_status=$? | |
24113 | grep -v '^ *+' conftest.er1 >conftest.err | |
24114 | rm -f conftest.er1 | |
24115 | cat conftest.err >&5 | |
24116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24117 | (exit $ac_status); } >/dev/null; then | |
24118 | if test -s conftest.err; then | |
24119 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24120 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24121 | else |
24122 | ac_cpp_err= | |
24123 | fi | |
24124 | else | |
24125 | ac_cpp_err=yes | |
24126 | fi | |
24127 | if test -z "$ac_cpp_err"; then | |
24128 | ac_header_preproc=yes | |
24129 | else | |
24130 | echo "$as_me: failed program was:" >&5 | |
24131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24132 | ||
24133 | ac_header_preproc=no | |
24134 | fi | |
24135 | rm -f conftest.err conftest.$ac_ext | |
24136 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24137 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24138 | ||
24139 | # So? What about this header? | |
ac1cb8d3 VS |
24140 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24141 | yes:no: ) | |
a848cd7e SC |
24142 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24143 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24144 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
24145 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
24146 | ac_header_preproc=yes | |
a848cd7e | 24147 | ;; |
ac1cb8d3 | 24148 | no:yes:* ) |
a848cd7e SC |
24149 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
24150 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24151 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
24152 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
24153 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
24154 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
24155 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24156 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24157 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
24158 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24159 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
24160 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24161 | ( |
24162 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24163 | ## ----------------------------------------- ## |
24164 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24165 | ## ----------------------------------------- ## | |
a848cd7e SC |
24166 | _ASBOX |
24167 | ) | | |
24168 | sed "s/^/$as_me: WARNING: /" >&2 | |
24169 | ;; | |
24170 | esac | |
24171 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24172 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24173 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24175 | else | |
24176 | ac_cv_header_windows_h=$ac_header_preproc | |
24177 | fi | |
24178 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24179 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24180 | ||
24181 | fi | |
24182 | if test $ac_cv_header_windows_h = yes; then | |
24183 | : | |
24184 | else | |
24185 | ||
24186 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
24187 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
24188 | { (exit 1); exit 1; }; } | |
24189 | ||
24190 | fi | |
24191 | ||
24192 | ||
24193 | ||
24194 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
24195 | ||
24196 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
24197 | LIBS="$LIBS -loleacc" | |
24198 | fi | |
24199 | ||
24200 | case "${host}" in | |
24201 | *-*-cygwin* ) | |
24202 | LIBS="$LIBS -lkernel32 -luser32" | |
24203 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
24204 | esac | |
24205 | ||
24206 | if test "$wxUSE_ODBC" = "sys" ; then | |
24207 | wxUSE_ODBC = "yes" | |
24208 | fi | |
24209 | if test "$wxUSE_ODBC" = "yes" ; then | |
24210 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
24211 | cat >>confdefs.h <<\_ACEOF | |
24212 | #define wxUSE_ODBC 1 | |
24213 | _ACEOF | |
24214 | ||
24215 | fi | |
24216 | ||
24217 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
24218 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
24219 | ||
24220 | WIN32INSTALL=win32install | |
24221 | fi | |
24222 | ||
24223 | if test "$wxUSE_GUI" = "yes"; then | |
24224 | USE_GUI=1 | |
24225 | ||
24226 | GUI_TK_LIBRARY= | |
24227 | ||
24228 | WXGTK12= | |
24229 | WXGTK127= | |
24230 | WXGTK20= | |
24231 | WXGPE= | |
24232 | ||
207bc66c RN |
24233 | if test "$wxUSE_COCOA" = 1 ; then |
24234 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
24235 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
24236 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
24237 | wxUSE_PRINTING_ARCHITECTURE=no | |
24238 | fi | |
24239 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
24240 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
24241 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
24242 | wxUSE_DRAG_AND_DROP=no | |
24243 | fi | |
24244 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
24245 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
24246 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
24247 | wxUSE_DRAGIMAGE=no | |
24248 | fi | |
24249 | fi | |
24250 | ||
a848cd7e SC |
24251 | if test "$wxUSE_MSW" = 1 ; then |
24252 | TOOLKIT=MSW | |
24253 | GUIDIST=MSW_DIST | |
24254 | ||
ceec2216 | 24255 | case "${host}" in |
a848cd7e SC |
24256 | *-*-mingw32* ) |
24257 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
24258 | esac | |
24259 | fi | |
24260 | ||
24261 | if test "$wxUSE_GTK" = 1; then | |
24262 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
24263 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
24264 | ||
24265 | gtk_version_cached=1 | |
24266 | if test "${wx_cv_lib_gtk+set}" = set; then | |
24267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24268 | else | |
24269 | ||
24270 | gtk_version_cached=0 | |
24271 | echo "$as_me:$LINENO: result: " >&5 | |
24272 | echo "${ECHO_T}" >&6 | |
24273 | ||
24274 | GTK_MODULES= | |
24275 | if test "$wxUSE_THREADS" = "yes"; then | |
24276 | GTK_MODULES=gthread | |
24277 | fi | |
24278 | ||
f597b41c | 24279 | wx_cv_lib_gtk= |
f34ca037 | 24280 | if test "x$wxGTK_VERSION" != "x1"; then |
a848cd7e SC |
24281 | # Check whether --enable-gtktest or --disable-gtktest was given. |
24282 | if test "${enable_gtktest+set}" = set; then | |
24283 | enableval="$enable_gtktest" | |
24284 | ||
24285 | else | |
24286 | enable_gtktest=yes | |
24287 | fi; | |
24288 | ||
24289 | pkg_config_args=gtk+-2.0 | |
24290 | for module in . $GTK_MODULES | |
24291 | do | |
24292 | case "$module" in | |
24293 | gthread) | |
24294 | pkg_config_args="$pkg_config_args gthread-2.0" | |
24295 | ;; | |
24296 | esac | |
24297 | done | |
24298 | ||
24299 | no_gtk="" | |
24300 | ||
24301 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24302 | set dummy pkg-config; ac_word=$2 | |
24303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24305 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24307 | else | |
24308 | case $PKG_CONFIG in | |
24309 | [\\/]* | ?:[\\/]*) | |
24310 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
24311 | ;; | |
24312 | *) | |
24313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24314 | for as_dir in $PATH | |
24315 | do | |
24316 | IFS=$as_save_IFS | |
24317 | test -z "$as_dir" && as_dir=. | |
24318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24320 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24322 | break 2 | |
24323 | fi | |
24324 | done | |
24325 | done | |
24326 | ||
24327 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
24328 | ;; | |
24329 | esac | |
24330 | fi | |
24331 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
24332 | ||
24333 | if test -n "$PKG_CONFIG"; then | |
24334 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
24335 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
24336 | else | |
24337 | echo "$as_me:$LINENO: result: no" >&5 | |
24338 | echo "${ECHO_T}no" >&6 | |
24339 | fi | |
24340 | ||
24341 | ||
24342 | if test x$PKG_CONFIG != xno ; then | |
24343 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
24344 | : | |
24345 | else | |
c2218763 | 24346 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
24347 | no_gtk=yes |
24348 | PKG_CONFIG=no | |
24349 | fi | |
24350 | else | |
24351 | no_gtk=yes | |
24352 | fi | |
24353 | ||
24354 | min_gtk_version=2.0.0 | |
24355 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
24356 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
24357 | ||
24358 | if test x$PKG_CONFIG != xno ; then | |
24359 | ## don't try to run the test against uninstalled libtool libs | |
24360 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
24361 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
24362 | enable_gtktest=no | |
24363 | fi | |
24364 | ||
24365 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
24366 | : | |
24367 | else | |
24368 | no_gtk=yes | |
24369 | fi | |
24370 | fi | |
24371 | ||
24372 | if test x"$no_gtk" = x ; then | |
24373 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
24374 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
24375 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24376 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24377 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24378 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24379 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24380 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24381 | if test "x$enable_gtktest" = "xyes" ; then | |
24382 | ac_save_CFLAGS="$CFLAGS" | |
24383 | ac_save_LIBS="$LIBS" | |
24384 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24385 | LIBS="$GTK_LIBS $LIBS" | |
24386 | rm -f conf.gtktest | |
24387 | if test "$cross_compiling" = yes; then | |
24388 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24389 | else | |
24390 | cat >conftest.$ac_ext <<_ACEOF | |
24391 | /* confdefs.h. */ | |
24392 | _ACEOF | |
24393 | cat confdefs.h >>conftest.$ac_ext | |
24394 | cat >>conftest.$ac_ext <<_ACEOF | |
24395 | /* end confdefs.h. */ | |
24396 | ||
24397 | #include <gtk/gtk.h> | |
24398 | #include <stdio.h> | |
24399 | #include <stdlib.h> | |
24400 | ||
24401 | int | |
24402 | main () | |
24403 | { | |
24404 | int major, minor, micro; | |
24405 | char *tmp_version; | |
24406 | ||
24407 | system ("touch conf.gtktest"); | |
24408 | ||
24409 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24410 | tmp_version = g_strdup("$min_gtk_version"); | |
24411 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24412 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24413 | exit(1); | |
24414 | } | |
24415 | ||
24416 | if ((gtk_major_version != $gtk_config_major_version) || | |
24417 | (gtk_minor_version != $gtk_config_minor_version) || | |
24418 | (gtk_micro_version != $gtk_config_micro_version)) | |
24419 | { | |
24420 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24421 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24422 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24423 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
24424 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24425 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24426 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24427 | printf("*** required on your system.\n"); | |
24428 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
24429 | printf("*** to point to the correct configuration files\n"); | |
24430 | } | |
24431 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24432 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24433 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24434 | { | |
24435 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24436 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24437 | printf("*** library (version %d.%d.%d)\n", | |
24438 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24439 | } | |
24440 | else | |
24441 | { | |
24442 | if ((gtk_major_version > major) || | |
24443 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24444 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24445 | { | |
24446 | return 0; | |
24447 | } | |
24448 | else | |
24449 | { | |
24450 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24451 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24452 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24453 | major, minor, micro); | |
24454 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24455 | printf("***\n"); | |
24456 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24457 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
24458 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24459 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
24460 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
24461 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24462 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24463 | } | |
24464 | } | |
24465 | return 1; | |
24466 | } | |
24467 | ||
24468 | _ACEOF | |
24469 | rm -f conftest$ac_exeext | |
24470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24471 | (eval $ac_link) 2>&5 | |
24472 | ac_status=$? | |
24473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24474 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24476 | (eval $ac_try) 2>&5 | |
24477 | ac_status=$? | |
24478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24479 | (exit $ac_status); }; }; then | |
24480 | : | |
24481 | else | |
24482 | echo "$as_me: program exited with status $ac_status" >&5 | |
24483 | echo "$as_me: failed program was:" >&5 | |
24484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24485 | ||
24486 | ( exit $ac_status ) | |
24487 | no_gtk=yes | |
24488 | fi | |
ac1cb8d3 | 24489 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24490 | fi |
24491 | CFLAGS="$ac_save_CFLAGS" | |
24492 | LIBS="$ac_save_LIBS" | |
24493 | fi | |
24494 | fi | |
24495 | if test "x$no_gtk" = x ; then | |
24496 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
24497 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
24498 | wx_cv_lib_gtk=2.0 | |
24499 | else | |
24500 | echo "$as_me:$LINENO: result: no" >&5 | |
24501 | echo "${ECHO_T}no" >&6 | |
24502 | if test "$PKG_CONFIG" = "no" ; then | |
24503 | echo "*** A new enough version of pkg-config was not found." | |
24504 | echo "*** See http://pkgconfig.sourceforge.net" | |
24505 | else | |
24506 | if test -f conf.gtktest ; then | |
24507 | : | |
24508 | else | |
24509 | echo "*** Could not run GTK+ test program, checking why..." | |
24510 | ac_save_CFLAGS="$CFLAGS" | |
24511 | ac_save_LIBS="$LIBS" | |
24512 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24513 | LIBS="$LIBS $GTK_LIBS" | |
24514 | cat >conftest.$ac_ext <<_ACEOF | |
24515 | /* confdefs.h. */ | |
24516 | _ACEOF | |
24517 | cat confdefs.h >>conftest.$ac_ext | |
24518 | cat >>conftest.$ac_ext <<_ACEOF | |
24519 | /* end confdefs.h. */ | |
24520 | ||
24521 | #include <gtk/gtk.h> | |
24522 | #include <stdio.h> | |
24523 | ||
24524 | int | |
24525 | main () | |
24526 | { | |
24527 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24528 | ; | |
24529 | return 0; | |
24530 | } | |
24531 | _ACEOF | |
24532 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24534 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24535 | ac_status=$? |
ac1cb8d3 VS |
24536 | grep -v '^ *+' conftest.er1 >conftest.err |
24537 | rm -f conftest.er1 | |
24538 | cat conftest.err >&5 | |
a848cd7e SC |
24539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24540 | (exit $ac_status); } && | |
9dd0f6c2 | 24541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24543 | (eval $ac_try) 2>&5 | |
24544 | ac_status=$? | |
24545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24546 | (exit $ac_status); }; } && | |
24547 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
24553 | echo "*** The test program compiled, but did not run. This usually means" | |
24554 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
24555 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
24556 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24557 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24558 | echo "*** is required on your system" | |
24559 | echo "***" | |
24560 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24561 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24562 | else | |
24563 | echo "$as_me: failed program was:" >&5 | |
24564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24565 | ||
24566 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24567 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
24568 | fi | |
ac1cb8d3 VS |
24569 | rm -f conftest.err conftest.$ac_objext \ |
24570 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24571 | CFLAGS="$ac_save_CFLAGS" |
24572 | LIBS="$ac_save_LIBS" | |
24573 | fi | |
24574 | fi | |
24575 | GTK_CFLAGS="" | |
24576 | GTK_LIBS="" | |
24577 | : | |
24578 | fi | |
24579 | ||
24580 | ||
24581 | rm -f conf.gtktest | |
24582 | ||
f597b41c MW |
24583 | fi |
24584 | ||
f34ca037 MW |
24585 | if test -z "$wx_cv_lib_gtk"; then |
24586 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
24587 | |
24588 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24589 | if test "${with_gtk_prefix+set}" = set; then | |
24590 | withval="$with_gtk_prefix" | |
24591 | gtk_config_prefix="$withval" | |
24592 | else | |
24593 | gtk_config_prefix="" | |
24594 | fi; | |
24595 | ||
24596 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24597 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24598 | withval="$with_gtk_exec_prefix" | |
24599 | gtk_config_exec_prefix="$withval" | |
24600 | else | |
24601 | gtk_config_exec_prefix="" | |
24602 | fi; | |
24603 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24604 | if test "${enable_gtktest+set}" = set; then | |
24605 | enableval="$enable_gtktest" | |
24606 | ||
24607 | else | |
24608 | enable_gtktest=yes | |
24609 | fi; | |
24610 | ||
24611 | for module in . $GTK_MODULES | |
24612 | do | |
24613 | case "$module" in | |
24614 | gthread) | |
24615 | gtk_config_args="$gtk_config_args gthread" | |
24616 | ;; | |
24617 | esac | |
24618 | done | |
24619 | ||
24620 | if test x$gtk_config_exec_prefix != x ; then | |
24621 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24622 | if test x${GTK_CONFIG+set} != xset ; then | |
24623 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24624 | fi | |
24625 | fi | |
24626 | if test x$gtk_config_prefix != x ; then | |
24627 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24628 | if test x${GTK_CONFIG+set} != xset ; then | |
24629 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24630 | fi | |
24631 | fi | |
24632 | ||
24633 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24634 | set dummy gtk-config; ac_word=$2 | |
24635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24637 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24639 | else | |
24640 | case $GTK_CONFIG in | |
24641 | [\\/]* | ?:[\\/]*) | |
24642 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24643 | ;; | |
24644 | *) | |
24645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24646 | for as_dir in $PATH | |
24647 | do | |
24648 | IFS=$as_save_IFS | |
24649 | test -z "$as_dir" && as_dir=. | |
24650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24652 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24654 | break 2 | |
24655 | fi | |
24656 | done | |
24657 | done | |
24658 | ||
24659 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24660 | ;; | |
24661 | esac | |
24662 | fi | |
24663 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
24664 | ||
24665 | if test -n "$GTK_CONFIG"; then | |
24666 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
24667 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
24668 | else | |
24669 | echo "$as_me:$LINENO: result: no" >&5 | |
24670 | echo "${ECHO_T}no" >&6 | |
24671 | fi | |
24672 | ||
24673 | min_gtk_version=1.2.7 | |
24674 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
24675 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
24676 | no_gtk="" | |
24677 | if test "$GTK_CONFIG" = "no" ; then | |
24678 | no_gtk=yes | |
24679 | else | |
24680 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
24681 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
24682 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24683 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24684 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24685 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24686 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24687 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24688 | if test "x$enable_gtktest" = "xyes" ; then | |
24689 | ac_save_CFLAGS="$CFLAGS" | |
24690 | ac_save_LIBS="$LIBS" | |
24691 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24692 | LIBS="$GTK_LIBS $LIBS" | |
24693 | rm -f conf.gtktest | |
24694 | if test "$cross_compiling" = yes; then | |
24695 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24696 | else | |
24697 | cat >conftest.$ac_ext <<_ACEOF | |
24698 | /* confdefs.h. */ | |
24699 | _ACEOF | |
24700 | cat confdefs.h >>conftest.$ac_ext | |
24701 | cat >>conftest.$ac_ext <<_ACEOF | |
24702 | /* end confdefs.h. */ | |
24703 | ||
24704 | #include <gtk/gtk.h> | |
24705 | #include <stdio.h> | |
24706 | #include <stdlib.h> | |
24707 | ||
24708 | int | |
24709 | main () | |
24710 | { | |
24711 | int major, minor, micro; | |
24712 | char *tmp_version; | |
24713 | ||
24714 | system ("touch conf.gtktest"); | |
24715 | ||
24716 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24717 | tmp_version = g_strdup("$min_gtk_version"); | |
24718 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24719 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24720 | exit(1); | |
24721 | } | |
24722 | ||
24723 | if ((gtk_major_version != $gtk_config_major_version) || | |
24724 | (gtk_minor_version != $gtk_config_minor_version) || | |
24725 | (gtk_micro_version != $gtk_config_micro_version)) | |
24726 | { | |
24727 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24728 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24729 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24730 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
24731 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24732 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24733 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24734 | printf("*** required on your system.\n"); | |
24735 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
24736 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
24737 | printf("*** before re-running configure\n"); | |
24738 | } | |
24739 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
24740 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24741 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24742 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24743 | { | |
24744 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24745 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24746 | printf("*** library (version %d.%d.%d)\n", | |
24747 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24748 | } | |
24749 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
24750 | else | |
24751 | { | |
24752 | if ((gtk_major_version > major) || | |
24753 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24754 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24755 | { | |
24756 | return 0; | |
24757 | } | |
24758 | else | |
24759 | { | |
24760 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24761 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24762 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24763 | major, minor, micro); | |
24764 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24765 | printf("***\n"); | |
24766 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24767 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
24768 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24769 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
24770 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
24771 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24772 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24773 | } | |
24774 | } | |
24775 | return 1; | |
24776 | } | |
24777 | ||
24778 | _ACEOF | |
24779 | rm -f conftest$ac_exeext | |
24780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24781 | (eval $ac_link) 2>&5 | |
24782 | ac_status=$? | |
24783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24784 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24786 | (eval $ac_try) 2>&5 | |
24787 | ac_status=$? | |
24788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24789 | (exit $ac_status); }; }; then | |
24790 | : | |
24791 | else | |
24792 | echo "$as_me: program exited with status $ac_status" >&5 | |
24793 | echo "$as_me: failed program was:" >&5 | |
24794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24795 | ||
24796 | ( exit $ac_status ) | |
24797 | no_gtk=yes | |
24798 | fi | |
ac1cb8d3 | 24799 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24800 | fi |
24801 | CFLAGS="$ac_save_CFLAGS" | |
24802 | LIBS="$ac_save_LIBS" | |
24803 | fi | |
24804 | fi | |
24805 | if test "x$no_gtk" = x ; then | |
24806 | echo "$as_me:$LINENO: result: yes" >&5 | |
24807 | echo "${ECHO_T}yes" >&6 | |
24808 | wx_cv_lib_gtk=1.2.7 | |
24809 | else | |
24810 | echo "$as_me:$LINENO: result: no" >&5 | |
24811 | echo "${ECHO_T}no" >&6 | |
24812 | if test "$GTK_CONFIG" = "no" ; then | |
24813 | echo "*** The gtk-config script installed by GTK could not be found" | |
24814 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24815 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24816 | echo "*** full path to gtk-config." | |
24817 | else | |
24818 | if test -f conf.gtktest ; then | |
24819 | : | |
24820 | else | |
24821 | echo "*** Could not run GTK test program, checking why..." | |
24822 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24823 | LIBS="$LIBS $GTK_LIBS" | |
24824 | cat >conftest.$ac_ext <<_ACEOF | |
24825 | /* confdefs.h. */ | |
24826 | _ACEOF | |
24827 | cat confdefs.h >>conftest.$ac_ext | |
24828 | cat >>conftest.$ac_ext <<_ACEOF | |
24829 | /* end confdefs.h. */ | |
24830 | ||
24831 | #include <gtk/gtk.h> | |
24832 | #include <stdio.h> | |
24833 | ||
24834 | int | |
24835 | main () | |
24836 | { | |
24837 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24838 | ; | |
24839 | return 0; | |
24840 | } | |
24841 | _ACEOF | |
24842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24844 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24845 | ac_status=$? |
ac1cb8d3 VS |
24846 | grep -v '^ *+' conftest.er1 >conftest.err |
24847 | rm -f conftest.er1 | |
24848 | cat conftest.err >&5 | |
a848cd7e SC |
24849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24850 | (exit $ac_status); } && | |
9dd0f6c2 | 24851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24853 | (eval $ac_try) 2>&5 | |
24854 | ac_status=$? | |
24855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24856 | (exit $ac_status); }; } && | |
24857 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
24863 | echo "*** The test program compiled, but did not run. This usually means" | |
24864 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24865 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24866 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24867 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24868 | echo "*** is required on your system" | |
24869 | echo "***" | |
24870 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24871 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24872 | echo "***" | |
24873 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24874 | echo "*** came with the system with the command" | |
24875 | echo "***" | |
24876 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24877 | else | |
24878 | echo "$as_me: failed program was:" >&5 | |
24879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24880 | ||
24881 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24882 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24883 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24884 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24885 | fi | |
ac1cb8d3 VS |
24886 | rm -f conftest.err conftest.$ac_objext \ |
24887 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24888 | CFLAGS="$ac_save_CFLAGS" |
24889 | LIBS="$ac_save_LIBS" | |
24890 | fi | |
24891 | fi | |
24892 | GTK_CFLAGS="" | |
24893 | GTK_LIBS="" | |
24894 | : | |
24895 | fi | |
24896 | ||
24897 | ||
24898 | rm -f conf.gtktest | |
24899 | ||
24900 | ||
f34ca037 | 24901 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
24902 | |
24903 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24904 | if test "${with_gtk_prefix+set}" = set; then | |
24905 | withval="$with_gtk_prefix" | |
24906 | gtk_config_prefix="$withval" | |
24907 | else | |
24908 | gtk_config_prefix="" | |
24909 | fi; | |
24910 | ||
24911 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24912 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24913 | withval="$with_gtk_exec_prefix" | |
24914 | gtk_config_exec_prefix="$withval" | |
24915 | else | |
24916 | gtk_config_exec_prefix="" | |
24917 | fi; | |
24918 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24919 | if test "${enable_gtktest+set}" = set; then | |
24920 | enableval="$enable_gtktest" | |
24921 | ||
24922 | else | |
24923 | enable_gtktest=yes | |
24924 | fi; | |
24925 | ||
24926 | for module in . $GTK_MODULES | |
24927 | do | |
24928 | case "$module" in | |
24929 | gthread) | |
24930 | gtk_config_args="$gtk_config_args gthread" | |
24931 | ;; | |
24932 | esac | |
24933 | done | |
24934 | ||
24935 | if test x$gtk_config_exec_prefix != x ; then | |
24936 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24937 | if test x${GTK_CONFIG+set} != xset ; then | |
24938 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24939 | fi | |
24940 | fi | |
24941 | if test x$gtk_config_prefix != x ; then | |
24942 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24943 | if test x${GTK_CONFIG+set} != xset ; then | |
24944 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24945 | fi | |
24946 | fi | |
24947 | ||
24948 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24949 | set dummy gtk-config; ac_word=$2 | |
24950 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24952 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24954 | else | |
24955 | case $GTK_CONFIG in | |
24956 | [\\/]* | ?:[\\/]*) | |
24957 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24958 | ;; | |
24959 | *) | |
24960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24961 | for as_dir in $PATH | |
24962 | do | |
24963 | IFS=$as_save_IFS | |
24964 | test -z "$as_dir" && as_dir=. | |
24965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24967 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24969 | break 2 | |
24970 | fi | |
24971 | done | |
24972 | done | |
24973 | ||
24974 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24975 | ;; | |
24976 | esac | |
24977 | fi | |
24978 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
24979 | ||
24980 | if test -n "$GTK_CONFIG"; then | |
24981 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
24982 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
24983 | else | |
24984 | echo "$as_me:$LINENO: result: no" >&5 | |
24985 | echo "${ECHO_T}no" >&6 | |
24986 | fi | |
24987 | ||
24988 | min_gtk_version=1.2.3 | |
24989 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
24990 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
24991 | no_gtk="" | |
24992 | if test "$GTK_CONFIG" = "no" ; then | |
24993 | no_gtk=yes | |
24994 | else | |
24995 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
24996 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
24997 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24998 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24999 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25000 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25001 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25002 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25003 | if test "x$enable_gtktest" = "xyes" ; then | |
25004 | ac_save_CFLAGS="$CFLAGS" | |
25005 | ac_save_LIBS="$LIBS" | |
25006 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25007 | LIBS="$GTK_LIBS $LIBS" | |
25008 | rm -f conf.gtktest | |
25009 | if test "$cross_compiling" = yes; then | |
25010 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25011 | else | |
25012 | cat >conftest.$ac_ext <<_ACEOF | |
25013 | /* confdefs.h. */ | |
25014 | _ACEOF | |
25015 | cat confdefs.h >>conftest.$ac_ext | |
25016 | cat >>conftest.$ac_ext <<_ACEOF | |
25017 | /* end confdefs.h. */ | |
25018 | ||
25019 | #include <gtk/gtk.h> | |
25020 | #include <stdio.h> | |
25021 | #include <stdlib.h> | |
25022 | ||
25023 | int | |
25024 | main () | |
25025 | { | |
25026 | int major, minor, micro; | |
25027 | char *tmp_version; | |
25028 | ||
25029 | system ("touch conf.gtktest"); | |
25030 | ||
25031 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25032 | tmp_version = g_strdup("$min_gtk_version"); | |
25033 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25034 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25035 | exit(1); | |
25036 | } | |
25037 | ||
25038 | if ((gtk_major_version != $gtk_config_major_version) || | |
25039 | (gtk_minor_version != $gtk_config_minor_version) || | |
25040 | (gtk_micro_version != $gtk_config_micro_version)) | |
25041 | { | |
25042 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25043 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25044 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25045 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25046 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25047 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25048 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25049 | printf("*** required on your system.\n"); | |
25050 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25051 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25052 | printf("*** before re-running configure\n"); | |
25053 | } | |
25054 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25055 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25056 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25057 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25058 | { | |
25059 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25060 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25061 | printf("*** library (version %d.%d.%d)\n", | |
25062 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25063 | } | |
25064 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25065 | else | |
25066 | { | |
25067 | if ((gtk_major_version > major) || | |
25068 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25069 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25070 | { | |
25071 | return 0; | |
25072 | } | |
25073 | else | |
25074 | { | |
25075 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25076 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25077 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25078 | major, minor, micro); | |
25079 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25080 | printf("***\n"); | |
25081 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25082 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25083 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25084 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25085 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25086 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25087 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25088 | } | |
25089 | } | |
25090 | return 1; | |
25091 | } | |
25092 | ||
25093 | _ACEOF | |
25094 | rm -f conftest$ac_exeext | |
25095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25096 | (eval $ac_link) 2>&5 | |
25097 | ac_status=$? | |
25098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25099 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25101 | (eval $ac_try) 2>&5 | |
25102 | ac_status=$? | |
25103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25104 | (exit $ac_status); }; }; then | |
25105 | : | |
25106 | else | |
25107 | echo "$as_me: program exited with status $ac_status" >&5 | |
25108 | echo "$as_me: failed program was:" >&5 | |
25109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25110 | ||
25111 | ( exit $ac_status ) | |
25112 | no_gtk=yes | |
25113 | fi | |
ac1cb8d3 | 25114 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25115 | fi |
25116 | CFLAGS="$ac_save_CFLAGS" | |
25117 | LIBS="$ac_save_LIBS" | |
25118 | fi | |
25119 | fi | |
25120 | if test "x$no_gtk" = x ; then | |
25121 | echo "$as_me:$LINENO: result: yes" >&5 | |
25122 | echo "${ECHO_T}yes" >&6 | |
25123 | wx_cv_lib_gtk=1.2.3 | |
25124 | else | |
25125 | echo "$as_me:$LINENO: result: no" >&5 | |
25126 | echo "${ECHO_T}no" >&6 | |
25127 | if test "$GTK_CONFIG" = "no" ; then | |
25128 | echo "*** The gtk-config script installed by GTK could not be found" | |
25129 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25130 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25131 | echo "*** full path to gtk-config." | |
25132 | else | |
25133 | if test -f conf.gtktest ; then | |
25134 | : | |
25135 | else | |
25136 | echo "*** Could not run GTK test program, checking why..." | |
25137 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25138 | LIBS="$LIBS $GTK_LIBS" | |
25139 | cat >conftest.$ac_ext <<_ACEOF | |
25140 | /* confdefs.h. */ | |
25141 | _ACEOF | |
25142 | cat confdefs.h >>conftest.$ac_ext | |
25143 | cat >>conftest.$ac_ext <<_ACEOF | |
25144 | /* end confdefs.h. */ | |
25145 | ||
25146 | #include <gtk/gtk.h> | |
25147 | #include <stdio.h> | |
25148 | ||
25149 | int | |
25150 | main () | |
25151 | { | |
25152 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25153 | ; | |
25154 | return 0; | |
25155 | } | |
25156 | _ACEOF | |
25157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25159 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25160 | ac_status=$? |
ac1cb8d3 VS |
25161 | grep -v '^ *+' conftest.er1 >conftest.err |
25162 | rm -f conftest.er1 | |
25163 | cat conftest.err >&5 | |
a848cd7e SC |
25164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25165 | (exit $ac_status); } && | |
9dd0f6c2 | 25166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25168 | (eval $ac_try) 2>&5 | |
25169 | ac_status=$? | |
25170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25171 | (exit $ac_status); }; } && | |
25172 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
25178 | echo "*** The test program compiled, but did not run. This usually means" | |
25179 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25180 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25181 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25182 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25183 | echo "*** is required on your system" | |
25184 | echo "***" | |
25185 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25186 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25187 | echo "***" | |
25188 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25189 | echo "*** came with the system with the command" | |
25190 | echo "***" | |
25191 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25192 | else | |
25193 | echo "$as_me: failed program was:" >&5 | |
25194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25195 | ||
25196 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25197 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25198 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25199 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25200 | fi | |
ac1cb8d3 VS |
25201 | rm -f conftest.err conftest.$ac_objext \ |
25202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25203 | CFLAGS="$ac_save_CFLAGS" |
25204 | LIBS="$ac_save_LIBS" | |
25205 | fi | |
25206 | fi | |
25207 | GTK_CFLAGS="" | |
25208 | GTK_LIBS="" | |
25209 | : | |
25210 | fi | |
25211 | ||
25212 | ||
25213 | rm -f conf.gtktest | |
25214 | ||
f34ca037 | 25215 | fi |
a848cd7e SC |
25216 | fi |
25217 | fi | |
25218 | ||
25219 | if test -z "$wx_cv_lib_gtk"; then | |
25220 | wx_cv_lib_gtk=none | |
25221 | else | |
25222 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
25223 | wx_cv_libs_gtk=$GTK_LIBS | |
25224 | fi | |
25225 | ||
25226 | ||
25227 | fi | |
25228 | ||
25229 | ||
25230 | if test "$gtk_version_cached" = 1; then | |
25231 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
25232 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
25233 | fi | |
25234 | ||
25235 | case "$wx_cv_lib_gtk" in | |
25236 | 2.0) WXGTK20=1 | |
25237 | TOOLKIT_VERSION=2 | |
25238 | ;; | |
25239 | 1.2.7) WXGTK127=1 | |
25240 | WXGTK12=1 | |
25241 | ;; | |
25242 | 1.2.3) WXGTK12=1 | |
25243 | ;; | |
25244 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
25245 | The development files for GTK+ were not found. For GTK+ 2, please |
25246 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
25247 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
25248 | and that the version is 1.2.3 or above. Also check that the | |
25249 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
25250 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
25251 | " >&5 |
25252 | echo "$as_me: error: | |
f597b41c MW |
25253 | The development files for GTK+ were not found. For GTK+ 2, please |
25254 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
25255 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
25256 | and that the version is 1.2.3 or above. Also check that the | |
25257 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
25258 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
25259 | " >&2;} |
25260 | { (exit 1); exit 1; }; } | |
25261 | ;; | |
25262 | esac | |
25263 | ||
25264 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
25265 | save_CFLAGS="$CFLAGS" |
25266 | save_LIBS="$LIBS" | |
9d271838 VZ |
25267 | CFLAGS="$CFLAGS $wx_cv_cflags_gtk" |
25268 | LIBS="$LIBS $wx_cv_lib_gtk" | |
304205f1 | 25269 | |
9755e73b | 25270 | |
304205f1 VS |
25271 | for ac_func in pango_font_family_is_monospace |
25272 | do | |
25273 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25274 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25275 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25276 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25278 | else | |
25279 | cat >conftest.$ac_ext <<_ACEOF | |
25280 | /* confdefs.h. */ | |
25281 | _ACEOF | |
25282 | cat confdefs.h >>conftest.$ac_ext | |
25283 | cat >>conftest.$ac_ext <<_ACEOF | |
25284 | /* end confdefs.h. */ | |
25285 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25286 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25287 | #define $ac_func innocuous_$ac_func | |
25288 | ||
25289 | /* System header to define __stub macros and hopefully few prototypes, | |
25290 | which can conflict with char $ac_func (); below. | |
25291 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25292 | <limits.h> exists even on freestanding compilers. */ | |
25293 | ||
25294 | #ifdef __STDC__ | |
25295 | # include <limits.h> | |
25296 | #else | |
25297 | # include <assert.h> | |
25298 | #endif | |
25299 | ||
25300 | #undef $ac_func | |
25301 | ||
25302 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25303 | #ifdef __cplusplus | |
25304 | extern "C" | |
25305 | { | |
25306 | #endif | |
25307 | /* We use char because int might match the return type of a gcc2 | |
25308 | builtin and then its argument prototype would still apply. */ | |
25309 | char $ac_func (); | |
25310 | /* The GNU C library defines this for functions which it implements | |
25311 | to always fail with ENOSYS. Some functions are actually named | |
25312 | something starting with __ and the normal name is an alias. */ | |
25313 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25314 | choke me | |
25315 | #else | |
25316 | char (*f) () = $ac_func; | |
25317 | #endif | |
25318 | #ifdef __cplusplus | |
25319 | } | |
25320 | #endif | |
25321 | ||
25322 | int | |
25323 | main () | |
25324 | { | |
25325 | return f != $ac_func; | |
25326 | ; | |
25327 | return 0; | |
25328 | } | |
25329 | _ACEOF | |
25330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25332 | (eval $ac_link) 2>conftest.er1 | |
25333 | ac_status=$? | |
25334 | grep -v '^ *+' conftest.er1 >conftest.err | |
25335 | rm -f conftest.er1 | |
25336 | cat conftest.err >&5 | |
25337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25338 | (exit $ac_status); } && | |
9dd0f6c2 | 25339 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
25340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25341 | (eval $ac_try) 2>&5 | |
25342 | ac_status=$? | |
25343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25344 | (exit $ac_status); }; } && | |
25345 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
25351 | eval "$as_ac_var=yes" | |
25352 | else | |
25353 | echo "$as_me: failed program was:" >&5 | |
25354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25355 | ||
25356 | eval "$as_ac_var=no" | |
25357 | fi | |
25358 | rm -f conftest.err conftest.$ac_objext \ | |
25359 | conftest$ac_exeext conftest.$ac_ext | |
25360 | fi | |
25361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25362 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25363 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25364 | cat >>confdefs.h <<_ACEOF | |
25365 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25366 | _ACEOF | |
25367 | ||
25368 | fi | |
25369 | done | |
25370 | ||
9755e73b VS |
25371 | |
25372 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 | |
25373 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
25374 | cat >conftest.$ac_ext <<_ACEOF | |
25375 | /* confdefs.h. */ | |
25376 | _ACEOF | |
25377 | cat confdefs.h >>conftest.$ac_ext | |
25378 | cat >>conftest.$ac_ext <<_ACEOF | |
25379 | /* end confdefs.h. */ | |
25380 | ||
25381 | #include <gtk/gtk.h> | |
25382 | ||
25383 | int | |
25384 | main () | |
25385 | { | |
25386 | ||
25387 | #if !GTK_CHECK_VERSION(2,4,0) | |
25388 | #error "Not GTK+ 2.4" | |
25389 | #endif | |
25390 | ||
25391 | ; | |
25392 | return 0; | |
25393 | } | |
25394 | _ACEOF | |
25395 | rm -f conftest.$ac_objext | |
25396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25397 | (eval $ac_compile) 2>conftest.er1 | |
25398 | ac_status=$? | |
25399 | grep -v '^ *+' conftest.er1 >conftest.err | |
25400 | rm -f conftest.er1 | |
25401 | cat conftest.err >&5 | |
25402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25403 | (exit $ac_status); } && | |
9dd0f6c2 | 25404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
25405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25406 | (eval $ac_try) 2>&5 | |
25407 | ac_status=$? | |
25408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25409 | (exit $ac_status); }; } && | |
25410 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
25416 | ||
25417 | cat >>confdefs.h <<\_ACEOF | |
25418 | #define __WXGTK24__ 1 | |
25419 | _ACEOF | |
25420 | ||
25421 | echo "$as_me:$LINENO: result: yes" >&5 | |
25422 | echo "${ECHO_T}yes" >&6 | |
25423 | ||
25424 | else | |
25425 | echo "$as_me: failed program was:" >&5 | |
25426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25427 | ||
25428 | ||
25429 | echo "$as_me:$LINENO: result: no" >&5 | |
25430 | echo "${ECHO_T}no" >&6 | |
25431 | ||
25432 | fi | |
25433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25434 | ||
304205f1 VS |
25435 | CFLAGS="$save_CFLAGS" |
25436 | LIBS="$save_LIBS" | |
a848cd7e SC |
25437 | else |
25438 | if test "$wxUSE_UNICODE" = "yes"; then | |
25439 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
25440 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
25441 | wxUSE_UNICODE=no | |
25442 | fi | |
25443 | fi | |
25444 | ||
25445 | if test "$USE_DARWIN" != 1; then | |
25446 | ||
25447 | for ac_func in poll | |
25448 | do | |
25449 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25450 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25451 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25452 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25454 | else | |
25455 | cat >conftest.$ac_ext <<_ACEOF | |
25456 | /* confdefs.h. */ | |
25457 | _ACEOF | |
25458 | cat confdefs.h >>conftest.$ac_ext | |
25459 | cat >>conftest.$ac_ext <<_ACEOF | |
25460 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25461 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
25462 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25463 | #define $ac_func innocuous_$ac_func | |
25464 | ||
a848cd7e SC |
25465 | /* System header to define __stub macros and hopefully few prototypes, |
25466 | which can conflict with char $ac_func (); below. | |
25467 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25468 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25469 | |
a848cd7e SC |
25470 | #ifdef __STDC__ |
25471 | # include <limits.h> | |
25472 | #else | |
25473 | # include <assert.h> | |
25474 | #endif | |
ac1cb8d3 VS |
25475 | |
25476 | #undef $ac_func | |
25477 | ||
a848cd7e SC |
25478 | /* Override any gcc2 internal prototype to avoid an error. */ |
25479 | #ifdef __cplusplus | |
25480 | extern "C" | |
25481 | { | |
25482 | #endif | |
25483 | /* We use char because int might match the return type of a gcc2 | |
25484 | builtin and then its argument prototype would still apply. */ | |
25485 | char $ac_func (); | |
25486 | /* The GNU C library defines this for functions which it implements | |
25487 | to always fail with ENOSYS. Some functions are actually named | |
25488 | something starting with __ and the normal name is an alias. */ | |
25489 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25490 | choke me | |
25491 | #else | |
25492 | char (*f) () = $ac_func; | |
25493 | #endif | |
25494 | #ifdef __cplusplus | |
25495 | } | |
25496 | #endif | |
25497 | ||
25498 | int | |
25499 | main () | |
25500 | { | |
25501 | return f != $ac_func; | |
25502 | ; | |
25503 | return 0; | |
25504 | } | |
25505 | _ACEOF | |
25506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25508 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25509 | ac_status=$? |
ac1cb8d3 VS |
25510 | grep -v '^ *+' conftest.er1 >conftest.err |
25511 | rm -f conftest.er1 | |
25512 | cat conftest.err >&5 | |
a848cd7e SC |
25513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25514 | (exit $ac_status); } && | |
9dd0f6c2 | 25515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25517 | (eval $ac_try) 2>&5 | |
25518 | ac_status=$? | |
25519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25520 | (exit $ac_status); }; } && | |
25521 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
25527 | eval "$as_ac_var=yes" | |
25528 | else | |
25529 | echo "$as_me: failed program was:" >&5 | |
25530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25531 | ||
25532 | eval "$as_ac_var=no" | |
25533 | fi | |
ac1cb8d3 VS |
25534 | rm -f conftest.err conftest.$ac_objext \ |
25535 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25536 | fi |
25537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25538 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25539 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25540 | cat >>confdefs.h <<_ACEOF | |
25541 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25542 | _ACEOF | |
25543 | ||
25544 | fi | |
25545 | done | |
25546 | ||
25547 | fi | |
25548 | ||
25549 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
25550 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
25551 | ||
25552 | AFMINSTALL=afminstall | |
25553 | TOOLKIT=GTK | |
25554 | GUIDIST=GTK_DIST | |
25555 | ||
25556 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
25557 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
25558 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
25559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25560 | else | |
25561 | ac_check_lib_save_LIBS=$LIBS | |
25562 | LIBS="-lgdk $LIBS" | |
25563 | cat >conftest.$ac_ext <<_ACEOF | |
25564 | /* confdefs.h. */ | |
25565 | _ACEOF | |
25566 | cat confdefs.h >>conftest.$ac_ext | |
25567 | cat >>conftest.$ac_ext <<_ACEOF | |
25568 | /* end confdefs.h. */ | |
25569 | ||
25570 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25571 | #ifdef __cplusplus | |
25572 | extern "C" | |
25573 | #endif | |
25574 | /* We use char because int might match the return type of a gcc2 | |
25575 | builtin and then its argument prototype would still apply. */ | |
25576 | char gdk_im_open (); | |
25577 | int | |
25578 | main () | |
25579 | { | |
25580 | gdk_im_open (); | |
25581 | ; | |
25582 | return 0; | |
25583 | } | |
25584 | _ACEOF | |
25585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25587 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25588 | ac_status=$? |
ac1cb8d3 VS |
25589 | grep -v '^ *+' conftest.er1 >conftest.err |
25590 | rm -f conftest.er1 | |
25591 | cat conftest.err >&5 | |
a848cd7e SC |
25592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25593 | (exit $ac_status); } && | |
9dd0f6c2 | 25594 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25596 | (eval $ac_try) 2>&5 | |
25597 | ac_status=$? | |
25598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25599 | (exit $ac_status); }; } && | |
25600 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
25606 | ac_cv_lib_gdk_gdk_im_open=yes | |
25607 | else | |
25608 | echo "$as_me: failed program was:" >&5 | |
25609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25610 | ||
25611 | ac_cv_lib_gdk_gdk_im_open=no | |
25612 | fi | |
ac1cb8d3 VS |
25613 | rm -f conftest.err conftest.$ac_objext \ |
25614 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25615 | LIBS=$ac_check_lib_save_LIBS |
25616 | fi | |
25617 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
25618 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
25619 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
25620 | cat >>confdefs.h <<\_ACEOF | |
25621 | #define HAVE_XIM 1 | |
25622 | _ACEOF | |
25623 | ||
25624 | fi | |
25625 | ||
25626 | ||
25627 | ||
25628 | if test "$wxUSE_GPE" = "yes"; then | |
25629 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
25630 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
25631 | ||
25632 | ac_find_libraries= | |
25633 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25634 | do | |
25635 | for ac_extension in a so sl dylib; do | |
25636 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
25637 | ac_find_libraries=$ac_dir | |
25638 | break 2 | |
25639 | fi | |
25640 | done | |
25641 | done | |
25642 | ||
25643 | if test "$ac_find_libraries" != "" ; then | |
25644 | ||
25645 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25646 | result=$? | |
25647 | if test $result = 0; then | |
25648 | ac_path_to_link="" | |
25649 | else | |
25650 | ac_path_to_link=" -L$ac_find_libraries" | |
25651 | fi | |
25652 | ||
25653 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
25654 | WXGPE=1 | |
25655 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25656 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25657 | else | |
25658 | echo "$as_me:$LINENO: result: not found" >&5 | |
25659 | echo "${ECHO_T}not found" >&6 | |
25660 | fi | |
25661 | ||
25662 | fi | |
25663 | fi | |
25664 | ||
25665 | if test "$wxUSE_MGL" = 1; then | |
25666 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
25667 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
25668 | if test "x$MGL_ROOT" = x ; then | |
25669 | echo "$as_me:$LINENO: result: not found" >&5 | |
25670 | echo "${ECHO_T}not found" >&6 | |
25671 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
25672 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
25673 | { (exit 1); exit 1; }; } | |
25674 | else | |
25675 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
25676 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
25677 | fi | |
25678 | ||
25679 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
25680 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
25681 | case "${host}" in | |
25682 | *-*-linux* ) | |
25683 | if test "x$wxUSE_SHARED" = xyes ; then | |
25684 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
25685 | else | |
25686 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
25687 | fi | |
25688 | ;; | |
25689 | *-pc-msdosdjgpp ) | |
25690 | mgl_os_candidates="dos32/dj2" | |
25691 | ;; | |
25692 | *) | |
25693 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
25694 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
25695 | { (exit 1); exit 1; }; } | |
25696 | esac | |
25697 | ||
25698 | mgl_lib_type="" | |
25699 | mgl_os="" | |
25700 | ||
25701 | for mgl_os_i in $mgl_os_candidates ; do | |
25702 | if test "x$mgl_os" = x ; then | |
25703 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
25704 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
25705 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
25706 | mgl_lib_type=debug | |
25707 | mgl_os=$mgl_os_i | |
25708 | fi | |
25709 | fi | |
25710 | if test "x$mgl_lib_type" = x ; then | |
25711 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
25712 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
25713 | mgl_lib_type=release | |
25714 | mgl_os=$mgl_os_i | |
25715 | fi | |
25716 | fi | |
25717 | fi | |
25718 | done | |
25719 | ||
25720 | if test "x$mgl_os" = x ; then | |
25721 | echo "$as_me:$LINENO: result: not found" >&5 | |
25722 | echo "${ECHO_T}not found" >&6 | |
25723 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
25724 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
25725 | { (exit 1); exit 1; }; } | |
25726 | fi | |
25727 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
25728 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
25729 | ||
25730 | wxUSE_UNIVERSAL="yes" | |
25731 | ||
25732 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
25733 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
25734 | ||
25735 | AFMINSTALL=afminstall | |
25736 | TOOLKIT=MGL | |
25737 | GUIDIST=MGL_DIST | |
25738 | fi | |
25739 | ||
25740 | if test "$wxUSE_MICROWIN" = 1; then | |
25741 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
25742 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
25743 | if test "x$MICROWINDOWS" = x ; then | |
25744 | echo "$as_me:$LINENO: result: not found" >&5 | |
25745 | echo "${ECHO_T}not found" >&6 | |
25746 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
25747 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
25748 | { (exit 1); exit 1; }; } | |
25749 | else | |
25750 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
25751 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
25752 | fi | |
25753 | ||
25754 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
25755 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
25756 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
25757 | else | |
25758 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
25759 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
25760 | { (exit 1); exit 1; }; } | |
25761 | fi | |
25762 | ||
25763 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
25764 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
25765 | ||
25766 | wxUSE_UNIVERSAL="yes" | |
25767 | ||
25768 | AFMINSTALL=afminstall | |
25769 | TOOLKIT=MICROWIN | |
25770 | GUIDIST=MICROWIN_DIST | |
25771 | ||
25772 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
25773 | fi | |
25774 | ||
74b84332 | 25775 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
9dd0f6c2 DE |
25776 | |
25777 | if test "x$ac_path_x_has_been_run" != xyes; then | |
25778 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
25779 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25780 | ||
9dd0f6c2 | 25781 | ac_path_x_has_been_run=yes |
a848cd7e SC |
25782 | |
25783 | # Check whether --with-x or --without-x was given. | |
25784 | if test "${with_x+set}" = set; then | |
25785 | withval="$with_x" | |
25786 | ||
25787 | fi; | |
25788 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
25789 | if test "x$with_x" = xno; then | |
25790 | # The user explicitly disabled X. | |
25791 | have_x=disabled | |
25792 | else | |
25793 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
25794 | # Both variables are already set. | |
25795 | have_x=yes | |
25796 | else | |
25797 | if test "${ac_cv_have_x+set}" = set; then | |
25798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25799 | else | |
25800 | # One or both of the vars are not set, and there is no cached value. | |
25801 | ac_x_includes=no ac_x_libraries=no | |
25802 | rm -fr conftest.dir | |
25803 | if mkdir conftest.dir; then | |
25804 | cd conftest.dir | |
25805 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
25806 | cat >Imakefile <<'_ACEOF' | |
25807 | acfindx: | |
25808 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
25809 | _ACEOF | |
25810 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
25811 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
25812 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
25813 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
25814 | for ac_extension in a so sl; do | |
25815 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
25816 | test -f $ac_im_libdir/libX11.$ac_extension; then |
25817 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
25818 | fi |
25819 | done | |
25820 | # Screen out bogus values from the imake configuration. They are | |
25821 | # bogus both because they are the default anyway, and because | |
25822 | # using them would break gcc on systems where it needs fixed includes. | |
25823 | case $ac_im_incroot in | |
25824 | /usr/include) ;; | |
25825 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
25826 | esac | |
25827 | case $ac_im_usrlibdir in | |
25828 | /usr/lib | /lib) ;; | |
25829 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
25830 | esac | |
25831 | fi | |
25832 | cd .. | |
25833 | rm -fr conftest.dir | |
25834 | fi | |
25835 | ||
25836 | # Standard set of common directories for X headers. | |
25837 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
25838 | ac_x_header_dirs=' | |
25839 | /usr/X11/include | |
25840 | /usr/X11R6/include | |
25841 | /usr/X11R5/include | |
25842 | /usr/X11R4/include | |
25843 | ||
25844 | /usr/include/X11 | |
25845 | /usr/include/X11R6 | |
25846 | /usr/include/X11R5 | |
25847 | /usr/include/X11R4 | |
25848 | ||
25849 | /usr/local/X11/include | |
25850 | /usr/local/X11R6/include | |
25851 | /usr/local/X11R5/include | |
25852 | /usr/local/X11R4/include | |
25853 | ||
25854 | /usr/local/include/X11 | |
25855 | /usr/local/include/X11R6 | |
25856 | /usr/local/include/X11R5 | |
25857 | /usr/local/include/X11R4 | |
25858 | ||
25859 | /usr/X386/include | |
25860 | /usr/x386/include | |
25861 | /usr/XFree86/include/X11 | |
25862 | ||
25863 | /usr/include | |
25864 | /usr/local/include | |
25865 | /usr/unsupported/include | |
25866 | /usr/athena/include | |
25867 | /usr/local/x11r5/include | |
25868 | /usr/lpp/Xamples/include | |
25869 | ||
25870 | /usr/openwin/include | |
25871 | /usr/openwin/share/include' | |
25872 | ||
25873 | if test "$ac_x_includes" = no; then | |
9dd0f6c2 | 25874 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
25875 | # First, try using that file with no special directory specified. |
25876 | cat >conftest.$ac_ext <<_ACEOF | |
25877 | /* confdefs.h. */ | |
25878 | _ACEOF | |
25879 | cat confdefs.h >>conftest.$ac_ext | |
25880 | cat >>conftest.$ac_ext <<_ACEOF | |
25881 | /* end confdefs.h. */ | |
25882 | #include <X11/Intrinsic.h> | |
25883 | _ACEOF | |
25884 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25885 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25886 | ac_status=$? | |
25887 | grep -v '^ *+' conftest.er1 >conftest.err | |
25888 | rm -f conftest.er1 | |
25889 | cat conftest.err >&5 | |
25890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25891 | (exit $ac_status); } >/dev/null; then | |
25892 | if test -s conftest.err; then | |
25893 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25894 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25895 | else |
25896 | ac_cpp_err= | |
25897 | fi | |
25898 | else | |
25899 | ac_cpp_err=yes | |
25900 | fi | |
25901 | if test -z "$ac_cpp_err"; then | |
25902 | # We can compile using X headers with no special include directory. | |
25903 | ac_x_includes= | |
25904 | else | |
25905 | echo "$as_me: failed program was:" >&5 | |
25906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25907 | ||
25908 | for ac_dir in $ac_x_header_dirs; do | |
25909 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
25910 | ac_x_includes=$ac_dir | |
25911 | break | |
25912 | fi | |
25913 | done | |
25914 | fi | |
25915 | rm -f conftest.err conftest.$ac_ext | |
25916 | fi # $ac_x_includes = no | |
25917 | ||
25918 | if test "$ac_x_libraries" = no; then | |
25919 | # Check for the libraries. | |
25920 | # See if we find them without any special options. | |
25921 | # Don't add to $LIBS permanently. | |
25922 | ac_save_LIBS=$LIBS | |
25923 | LIBS="-lXt $LIBS" | |
25924 | cat >conftest.$ac_ext <<_ACEOF | |
25925 | /* confdefs.h. */ | |
25926 | _ACEOF | |
25927 | cat confdefs.h >>conftest.$ac_ext | |
25928 | cat >>conftest.$ac_ext <<_ACEOF | |
25929 | /* end confdefs.h. */ | |
25930 | #include <X11/Intrinsic.h> | |
25931 | int | |
25932 | main () | |
25933 | { | |
25934 | XtMalloc (0) | |
25935 | ; | |
25936 | return 0; | |
25937 | } | |
25938 | _ACEOF | |
25939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25941 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25942 | ac_status=$? |
ac1cb8d3 VS |
25943 | grep -v '^ *+' conftest.er1 >conftest.err |
25944 | rm -f conftest.er1 | |
25945 | cat conftest.err >&5 | |
a848cd7e SC |
25946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25947 | (exit $ac_status); } && | |
9dd0f6c2 | 25948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25950 | (eval $ac_try) 2>&5 | |
25951 | ac_status=$? | |
25952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25953 | (exit $ac_status); }; } && | |
25954 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
25960 | LIBS=$ac_save_LIBS | |
25961 | # We can link X programs with no special library path. | |
25962 | ac_x_libraries= | |
25963 | else | |
25964 | echo "$as_me: failed program was:" >&5 | |
25965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25966 | ||
25967 | LIBS=$ac_save_LIBS | |
25968 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25969 | do | |
25970 | # Don't even attempt the hair of trying to link an X program! | |
25971 | for ac_extension in a so sl; do | |
25972 | if test -r $ac_dir/libXt.$ac_extension; then | |
25973 | ac_x_libraries=$ac_dir | |
25974 | break 2 | |
25975 | fi | |
25976 | done | |
25977 | done | |
25978 | fi | |
ac1cb8d3 VS |
25979 | rm -f conftest.err conftest.$ac_objext \ |
25980 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25981 | fi # $ac_x_libraries = no |
25982 | ||
25983 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25984 | # Didn't find X anywhere. Cache the known absence of X. | |
25985 | ac_cv_have_x="have_x=no" | |
25986 | else | |
25987 | # Record where we found X for the cache. | |
25988 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 25989 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
25990 | fi |
25991 | fi | |
25992 | ||
25993 | fi | |
25994 | eval "$ac_cv_have_x" | |
25995 | fi # $with_x != no | |
25996 | ||
25997 | if test "$have_x" != yes; then | |
25998 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
25999 | echo "${ECHO_T}$have_x" >&6 | |
26000 | no_x=yes | |
26001 | else | |
26002 | # If each of the values was on the command line, it overrides each guess. | |
26003 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
26004 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
26005 | # Update the cache value to reflect the command line values. | |
26006 | ac_cv_have_x="have_x=yes \ | |
26007 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
9dd0f6c2 DE |
26008 | # It might be that x_includes is empty (headers are found in the |
26009 | # standard search path. Then output the corresponding message | |
26010 | ac_out_x_includes=$x_includes | |
26011 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
26012 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
26013 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
26014 | fi |
26015 | ||
9dd0f6c2 | 26016 | fi |
a848cd7e SC |
26017 | if test "$no_x" = yes; then |
26018 | # Not all programs may use this symbol, but it does not hurt to define it. | |
26019 | ||
26020 | cat >>confdefs.h <<\_ACEOF | |
26021 | #define X_DISPLAY_MISSING 1 | |
26022 | _ACEOF | |
26023 | ||
26024 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
26025 | else | |
26026 | if test -n "$x_includes"; then | |
26027 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
26028 | fi | |
26029 | ||
26030 | # It would also be nice to do this for all -L options, not just this one. | |
26031 | if test -n "$x_libraries"; then | |
26032 | X_LIBS="$X_LIBS -L$x_libraries" | |
26033 | # For Solaris; some versions of Sun CC require a space after -R and | |
26034 | # others require no space. Words are not sufficient . . . . | |
26035 | case `(uname -sr) 2>/dev/null` in | |
26036 | "SunOS 5"*) | |
26037 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
26038 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
26039 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
26040 | cat >conftest.$ac_ext <<_ACEOF | |
26041 | /* confdefs.h. */ | |
26042 | _ACEOF | |
26043 | cat confdefs.h >>conftest.$ac_ext | |
26044 | cat >>conftest.$ac_ext <<_ACEOF | |
26045 | /* end confdefs.h. */ | |
26046 | ||
26047 | int | |
26048 | main () | |
26049 | { | |
26050 | ||
26051 | ; | |
26052 | return 0; | |
26053 | } | |
26054 | _ACEOF | |
26055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26057 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26058 | ac_status=$? |
ac1cb8d3 VS |
26059 | grep -v '^ *+' conftest.er1 >conftest.err |
26060 | rm -f conftest.er1 | |
26061 | cat conftest.err >&5 | |
a848cd7e SC |
26062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26063 | (exit $ac_status); } && | |
9dd0f6c2 | 26064 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26066 | (eval $ac_try) 2>&5 | |
26067 | ac_status=$? | |
26068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26069 | (exit $ac_status); }; } && | |
26070 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26076 | ac_R_nospace=yes | |
26077 | else | |
26078 | echo "$as_me: failed program was:" >&5 | |
26079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26080 | ||
26081 | ac_R_nospace=no | |
26082 | fi | |
ac1cb8d3 VS |
26083 | rm -f conftest.err conftest.$ac_objext \ |
26084 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26085 | if test $ac_R_nospace = yes; then |
26086 | echo "$as_me:$LINENO: result: no" >&5 | |
26087 | echo "${ECHO_T}no" >&6 | |
26088 | X_LIBS="$X_LIBS -R$x_libraries" | |
26089 | else | |
26090 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
26091 | cat >conftest.$ac_ext <<_ACEOF | |
26092 | /* confdefs.h. */ | |
26093 | _ACEOF | |
26094 | cat confdefs.h >>conftest.$ac_ext | |
26095 | cat >>conftest.$ac_ext <<_ACEOF | |
26096 | /* end confdefs.h. */ | |
26097 | ||
26098 | int | |
26099 | main () | |
26100 | { | |
26101 | ||
26102 | ; | |
26103 | return 0; | |
26104 | } | |
26105 | _ACEOF | |
26106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26108 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26109 | ac_status=$? |
ac1cb8d3 VS |
26110 | grep -v '^ *+' conftest.er1 >conftest.err |
26111 | rm -f conftest.er1 | |
26112 | cat conftest.err >&5 | |
a848cd7e SC |
26113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26114 | (exit $ac_status); } && | |
9dd0f6c2 | 26115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26117 | (eval $ac_try) 2>&5 | |
26118 | ac_status=$? | |
26119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26120 | (exit $ac_status); }; } && | |
26121 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26127 | ac_R_space=yes | |
26128 | else | |
26129 | echo "$as_me: failed program was:" >&5 | |
26130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26131 | ||
26132 | ac_R_space=no | |
26133 | fi | |
ac1cb8d3 VS |
26134 | rm -f conftest.err conftest.$ac_objext \ |
26135 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26136 | if test $ac_R_space = yes; then |
26137 | echo "$as_me:$LINENO: result: yes" >&5 | |
26138 | echo "${ECHO_T}yes" >&6 | |
26139 | X_LIBS="$X_LIBS -R $x_libraries" | |
26140 | else | |
26141 | echo "$as_me:$LINENO: result: neither works" >&5 | |
26142 | echo "${ECHO_T}neither works" >&6 | |
26143 | fi | |
26144 | fi | |
26145 | LIBS=$ac_xsave_LIBS | |
26146 | esac | |
26147 | fi | |
26148 | ||
26149 | # Check for system-dependent libraries X programs must link with. | |
26150 | # Do this before checking for the system-independent R6 libraries | |
26151 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
26152 | ||
26153 | if test "$ISC" = yes; then | |
26154 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
26155 | else | |
26156 | # Martyn Johnson says this is needed for Ultrix, if the X | |
26157 | # libraries were built with DECnet support. And Karl Berry says | |
26158 | # the Alpha needs dnet_stub (dnet does not exist). | |
26159 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
26160 | cat >conftest.$ac_ext <<_ACEOF | |
26161 | /* confdefs.h. */ | |
26162 | _ACEOF | |
26163 | cat confdefs.h >>conftest.$ac_ext | |
26164 | cat >>conftest.$ac_ext <<_ACEOF | |
26165 | /* end confdefs.h. */ | |
26166 | ||
26167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26168 | #ifdef __cplusplus | |
26169 | extern "C" | |
26170 | #endif | |
26171 | /* We use char because int might match the return type of a gcc2 | |
26172 | builtin and then its argument prototype would still apply. */ | |
26173 | char XOpenDisplay (); | |
26174 | int | |
26175 | main () | |
26176 | { | |
26177 | XOpenDisplay (); | |
26178 | ; | |
26179 | return 0; | |
26180 | } | |
26181 | _ACEOF | |
26182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26184 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26185 | ac_status=$? |
ac1cb8d3 VS |
26186 | grep -v '^ *+' conftest.er1 >conftest.err |
26187 | rm -f conftest.er1 | |
26188 | cat conftest.err >&5 | |
a848cd7e SC |
26189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26190 | (exit $ac_status); } && | |
9dd0f6c2 | 26191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26193 | (eval $ac_try) 2>&5 | |
26194 | ac_status=$? | |
26195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26196 | (exit $ac_status); }; } && | |
26197 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26203 | : | |
26204 | else | |
26205 | echo "$as_me: failed program was:" >&5 | |
26206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26207 | ||
26208 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
26209 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
26210 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
26211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26212 | else | |
26213 | ac_check_lib_save_LIBS=$LIBS | |
26214 | LIBS="-ldnet $LIBS" | |
26215 | cat >conftest.$ac_ext <<_ACEOF | |
26216 | /* confdefs.h. */ | |
26217 | _ACEOF | |
26218 | cat confdefs.h >>conftest.$ac_ext | |
26219 | cat >>conftest.$ac_ext <<_ACEOF | |
26220 | /* end confdefs.h. */ | |
26221 | ||
26222 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26223 | #ifdef __cplusplus | |
26224 | extern "C" | |
26225 | #endif | |
26226 | /* We use char because int might match the return type of a gcc2 | |
26227 | builtin and then its argument prototype would still apply. */ | |
26228 | char dnet_ntoa (); | |
26229 | int | |
26230 | main () | |
26231 | { | |
26232 | dnet_ntoa (); | |
26233 | ; | |
26234 | return 0; | |
26235 | } | |
26236 | _ACEOF | |
26237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26239 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26240 | ac_status=$? |
ac1cb8d3 VS |
26241 | grep -v '^ *+' conftest.er1 >conftest.err |
26242 | rm -f conftest.er1 | |
26243 | cat conftest.err >&5 | |
a848cd7e SC |
26244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26245 | (exit $ac_status); } && | |
9dd0f6c2 | 26246 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26248 | (eval $ac_try) 2>&5 | |
26249 | ac_status=$? | |
26250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26251 | (exit $ac_status); }; } && | |
26252 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26258 | ac_cv_lib_dnet_dnet_ntoa=yes | |
26259 | else | |
26260 | echo "$as_me: failed program was:" >&5 | |
26261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26262 | ||
26263 | ac_cv_lib_dnet_dnet_ntoa=no | |
26264 | fi | |
ac1cb8d3 VS |
26265 | rm -f conftest.err conftest.$ac_objext \ |
26266 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26267 | LIBS=$ac_check_lib_save_LIBS |
26268 | fi | |
26269 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
26270 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
26271 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
26272 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
26273 | fi | |
26274 | ||
26275 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
26276 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
26277 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
26278 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
26279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26280 | else | |
26281 | ac_check_lib_save_LIBS=$LIBS | |
26282 | LIBS="-ldnet_stub $LIBS" | |
26283 | cat >conftest.$ac_ext <<_ACEOF | |
26284 | /* confdefs.h. */ | |
26285 | _ACEOF | |
26286 | cat confdefs.h >>conftest.$ac_ext | |
26287 | cat >>conftest.$ac_ext <<_ACEOF | |
26288 | /* end confdefs.h. */ | |
26289 | ||
26290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26291 | #ifdef __cplusplus | |
26292 | extern "C" | |
26293 | #endif | |
26294 | /* We use char because int might match the return type of a gcc2 | |
26295 | builtin and then its argument prototype would still apply. */ | |
26296 | char dnet_ntoa (); | |
26297 | int | |
26298 | main () | |
26299 | { | |
26300 | dnet_ntoa (); | |
26301 | ; | |
26302 | return 0; | |
26303 | } | |
26304 | _ACEOF | |
26305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26307 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26308 | ac_status=$? |
ac1cb8d3 VS |
26309 | grep -v '^ *+' conftest.er1 >conftest.err |
26310 | rm -f conftest.er1 | |
26311 | cat conftest.err >&5 | |
a848cd7e SC |
26312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26313 | (exit $ac_status); } && | |
9dd0f6c2 | 26314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26316 | (eval $ac_try) 2>&5 | |
26317 | ac_status=$? | |
26318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26319 | (exit $ac_status); }; } && | |
26320 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26326 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
26327 | else | |
26328 | echo "$as_me: failed program was:" >&5 | |
26329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26330 | ||
26331 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
26332 | fi | |
ac1cb8d3 VS |
26333 | rm -f conftest.err conftest.$ac_objext \ |
26334 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26335 | LIBS=$ac_check_lib_save_LIBS |
26336 | fi | |
26337 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
26338 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
26339 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
26340 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
26341 | fi | |
26342 | ||
26343 | fi | |
26344 | fi | |
ac1cb8d3 VS |
26345 | rm -f conftest.err conftest.$ac_objext \ |
26346 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26347 | LIBS="$ac_xsave_LIBS" |
26348 | ||
26349 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
26350 | # to get the SysV transport functions. | |
26351 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
26352 | # needs -lnsl. | |
26353 | # The nsl library prevents programs from opening the X display | |
26354 | # on Irix 5.2, according to T.E. Dickey. | |
26355 | # The functions gethostbyname, getservbyname, and inet_addr are | |
26356 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
26357 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
26358 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
26359 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
26360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26361 | else | |
26362 | cat >conftest.$ac_ext <<_ACEOF | |
26363 | /* confdefs.h. */ | |
26364 | _ACEOF | |
26365 | cat confdefs.h >>conftest.$ac_ext | |
26366 | cat >>conftest.$ac_ext <<_ACEOF | |
26367 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26368 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
26369 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26370 | #define gethostbyname innocuous_gethostbyname | |
26371 | ||
a848cd7e SC |
26372 | /* System header to define __stub macros and hopefully few prototypes, |
26373 | which can conflict with char gethostbyname (); below. | |
26374 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26375 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26376 | |
a848cd7e SC |
26377 | #ifdef __STDC__ |
26378 | # include <limits.h> | |
26379 | #else | |
26380 | # include <assert.h> | |
26381 | #endif | |
ac1cb8d3 VS |
26382 | |
26383 | #undef gethostbyname | |
26384 | ||
a848cd7e SC |
26385 | /* Override any gcc2 internal prototype to avoid an error. */ |
26386 | #ifdef __cplusplus | |
26387 | extern "C" | |
26388 | { | |
26389 | #endif | |
26390 | /* We use char because int might match the return type of a gcc2 | |
26391 | builtin and then its argument prototype would still apply. */ | |
26392 | char gethostbyname (); | |
26393 | /* The GNU C library defines this for functions which it implements | |
26394 | to always fail with ENOSYS. Some functions are actually named | |
26395 | something starting with __ and the normal name is an alias. */ | |
26396 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
26397 | choke me | |
26398 | #else | |
26399 | char (*f) () = gethostbyname; | |
26400 | #endif | |
26401 | #ifdef __cplusplus | |
26402 | } | |
26403 | #endif | |
26404 | ||
26405 | int | |
26406 | main () | |
26407 | { | |
26408 | return f != gethostbyname; | |
26409 | ; | |
26410 | return 0; | |
26411 | } | |
26412 | _ACEOF | |
26413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26415 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26416 | ac_status=$? |
ac1cb8d3 VS |
26417 | grep -v '^ *+' conftest.er1 >conftest.err |
26418 | rm -f conftest.er1 | |
26419 | cat conftest.err >&5 | |
a848cd7e SC |
26420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26421 | (exit $ac_status); } && | |
9dd0f6c2 | 26422 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26424 | (eval $ac_try) 2>&5 | |
26425 | ac_status=$? | |
26426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26427 | (exit $ac_status); }; } && | |
26428 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26434 | ac_cv_func_gethostbyname=yes | |
26435 | else | |
26436 | echo "$as_me: failed program was:" >&5 | |
26437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26438 | ||
26439 | ac_cv_func_gethostbyname=no | |
26440 | fi | |
ac1cb8d3 VS |
26441 | rm -f conftest.err conftest.$ac_objext \ |
26442 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26443 | fi |
26444 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
26445 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
26446 | ||
26447 | if test $ac_cv_func_gethostbyname = no; then | |
26448 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
26449 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
26450 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
26451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26452 | else | |
26453 | ac_check_lib_save_LIBS=$LIBS | |
26454 | LIBS="-lnsl $LIBS" | |
26455 | cat >conftest.$ac_ext <<_ACEOF | |
26456 | /* confdefs.h. */ | |
26457 | _ACEOF | |
26458 | cat confdefs.h >>conftest.$ac_ext | |
26459 | cat >>conftest.$ac_ext <<_ACEOF | |
26460 | /* end confdefs.h. */ | |
26461 | ||
26462 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26463 | #ifdef __cplusplus | |
26464 | extern "C" | |
26465 | #endif | |
26466 | /* We use char because int might match the return type of a gcc2 | |
26467 | builtin and then its argument prototype would still apply. */ | |
26468 | char gethostbyname (); | |
26469 | int | |
26470 | main () | |
26471 | { | |
26472 | gethostbyname (); | |
26473 | ; | |
26474 | return 0; | |
26475 | } | |
26476 | _ACEOF | |
26477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
26479 | (eval $ac_link) 2>conftest.er1 |
26480 | ac_status=$? | |
26481 | grep -v '^ *+' conftest.er1 >conftest.err | |
26482 | rm -f conftest.er1 | |
26483 | cat conftest.err >&5 | |
26484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26485 | (exit $ac_status); } && | |
9dd0f6c2 | 26486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26488 | (eval $ac_try) 2>&5 | |
26489 | ac_status=$? | |
26490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26491 | (exit $ac_status); }; } && | |
26492 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
26498 | ac_cv_lib_nsl_gethostbyname=yes | |
26499 | else | |
26500 | echo "$as_me: failed program was:" >&5 | |
26501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26502 | ||
26503 | ac_cv_lib_nsl_gethostbyname=no | |
26504 | fi | |
26505 | rm -f conftest.err conftest.$ac_objext \ | |
26506 | conftest$ac_exeext conftest.$ac_ext | |
26507 | LIBS=$ac_check_lib_save_LIBS | |
26508 | fi | |
26509 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
26510 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
26511 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
26512 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
26513 | fi | |
26514 | ||
26515 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
26516 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
26517 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
26518 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
26519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26520 | else | |
26521 | ac_check_lib_save_LIBS=$LIBS | |
26522 | LIBS="-lbsd $LIBS" | |
26523 | cat >conftest.$ac_ext <<_ACEOF | |
26524 | /* confdefs.h. */ | |
26525 | _ACEOF | |
26526 | cat confdefs.h >>conftest.$ac_ext | |
26527 | cat >>conftest.$ac_ext <<_ACEOF | |
26528 | /* end confdefs.h. */ | |
26529 | ||
26530 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26531 | #ifdef __cplusplus | |
26532 | extern "C" | |
26533 | #endif | |
26534 | /* We use char because int might match the return type of a gcc2 | |
26535 | builtin and then its argument prototype would still apply. */ | |
26536 | char gethostbyname (); | |
26537 | int | |
26538 | main () | |
26539 | { | |
26540 | gethostbyname (); | |
26541 | ; | |
26542 | return 0; | |
26543 | } | |
26544 | _ACEOF | |
26545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26547 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 26548 | ac_status=$? |
ac1cb8d3 VS |
26549 | grep -v '^ *+' conftest.er1 >conftest.err |
26550 | rm -f conftest.er1 | |
26551 | cat conftest.err >&5 | |
a848cd7e SC |
26552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26553 | (exit $ac_status); } && | |
9dd0f6c2 | 26554 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
26555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26556 | (eval $ac_try) 2>&5 | |
26557 | ac_status=$? | |
26558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
26559 | (exit $ac_status); }; } && |
26560 | { ac_try='test -s conftest$ac_exeext' | |
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 | |
26565 | (exit $ac_status); }; }; then | |
26566 | ac_cv_lib_bsd_gethostbyname=yes | |
26567 | else | |
26568 | echo "$as_me: failed program was:" >&5 | |
26569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26570 | ||
26571 | ac_cv_lib_bsd_gethostbyname=no | |
26572 | fi | |
ac1cb8d3 VS |
26573 | rm -f conftest.err conftest.$ac_objext \ |
26574 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26575 | LIBS=$ac_check_lib_save_LIBS |
26576 | fi | |
26577 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
26578 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
26579 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
26580 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
26581 | fi | |
26582 | ||
26583 | fi | |
26584 | fi | |
26585 | ||
26586 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
26587 | # socket/setsockopt and other routines are undefined under SCO ODT | |
26588 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
26589 | # on later versions), says Simon Leinen: it contains gethostby* | |
26590 | # variants that don't use the name server (or something). -lsocket | |
26591 | # must be given before -lnsl if both are needed. We assume that | |
26592 | # if connect needs -lnsl, so does gethostbyname. | |
26593 | echo "$as_me:$LINENO: checking for connect" >&5 | |
26594 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
26595 | if test "${ac_cv_func_connect+set}" = set; then | |
26596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26597 | else | |
26598 | cat >conftest.$ac_ext <<_ACEOF | |
26599 | /* confdefs.h. */ | |
26600 | _ACEOF | |
26601 | cat confdefs.h >>conftest.$ac_ext | |
26602 | cat >>conftest.$ac_ext <<_ACEOF | |
26603 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26604 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
26605 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26606 | #define connect innocuous_connect | |
26607 | ||
a848cd7e SC |
26608 | /* System header to define __stub macros and hopefully few prototypes, |
26609 | which can conflict with char connect (); below. | |
26610 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26611 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26612 | |
a848cd7e SC |
26613 | #ifdef __STDC__ |
26614 | # include <limits.h> | |
26615 | #else | |
26616 | # include <assert.h> | |
26617 | #endif | |
ac1cb8d3 VS |
26618 | |
26619 | #undef connect | |
26620 | ||
a848cd7e SC |
26621 | /* Override any gcc2 internal prototype to avoid an error. */ |
26622 | #ifdef __cplusplus | |
26623 | extern "C" | |
26624 | { | |
26625 | #endif | |
26626 | /* We use char because int might match the return type of a gcc2 | |
26627 | builtin and then its argument prototype would still apply. */ | |
26628 | char connect (); | |
26629 | /* The GNU C library defines this for functions which it implements | |
26630 | to always fail with ENOSYS. Some functions are actually named | |
26631 | something starting with __ and the normal name is an alias. */ | |
26632 | #if defined (__stub_connect) || defined (__stub___connect) | |
26633 | choke me | |
26634 | #else | |
26635 | char (*f) () = connect; | |
26636 | #endif | |
26637 | #ifdef __cplusplus | |
26638 | } | |
26639 | #endif | |
26640 | ||
26641 | int | |
26642 | main () | |
26643 | { | |
26644 | return f != connect; | |
26645 | ; | |
26646 | return 0; | |
26647 | } | |
26648 | _ACEOF | |
26649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26651 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26652 | ac_status=$? |
ac1cb8d3 VS |
26653 | grep -v '^ *+' conftest.er1 >conftest.err |
26654 | rm -f conftest.er1 | |
26655 | cat conftest.err >&5 | |
a848cd7e SC |
26656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26657 | (exit $ac_status); } && | |
9dd0f6c2 | 26658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26660 | (eval $ac_try) 2>&5 | |
26661 | ac_status=$? | |
26662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26663 | (exit $ac_status); }; } && | |
26664 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26670 | ac_cv_func_connect=yes | |
26671 | else | |
26672 | echo "$as_me: failed program was:" >&5 | |
26673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26674 | ||
26675 | ac_cv_func_connect=no | |
26676 | fi | |
ac1cb8d3 VS |
26677 | rm -f conftest.err conftest.$ac_objext \ |
26678 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26679 | fi |
26680 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
26681 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
26682 | ||
26683 | if test $ac_cv_func_connect = no; then | |
26684 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
26685 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
26686 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
26687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26688 | else | |
26689 | ac_check_lib_save_LIBS=$LIBS | |
26690 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
26691 | cat >conftest.$ac_ext <<_ACEOF | |
26692 | /* confdefs.h. */ | |
26693 | _ACEOF | |
26694 | cat confdefs.h >>conftest.$ac_ext | |
26695 | cat >>conftest.$ac_ext <<_ACEOF | |
26696 | /* end confdefs.h. */ | |
26697 | ||
26698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26699 | #ifdef __cplusplus | |
26700 | extern "C" | |
26701 | #endif | |
26702 | /* We use char because int might match the return type of a gcc2 | |
26703 | builtin and then its argument prototype would still apply. */ | |
26704 | char connect (); | |
26705 | int | |
26706 | main () | |
26707 | { | |
26708 | connect (); | |
26709 | ; | |
26710 | return 0; | |
26711 | } | |
26712 | _ACEOF | |
26713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26715 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26716 | ac_status=$? |
ac1cb8d3 VS |
26717 | grep -v '^ *+' conftest.er1 >conftest.err |
26718 | rm -f conftest.er1 | |
26719 | cat conftest.err >&5 | |
a848cd7e SC |
26720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26721 | (exit $ac_status); } && | |
9dd0f6c2 | 26722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26724 | (eval $ac_try) 2>&5 | |
26725 | ac_status=$? | |
26726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26727 | (exit $ac_status); }; } && | |
26728 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26734 | ac_cv_lib_socket_connect=yes | |
26735 | else | |
26736 | echo "$as_me: failed program was:" >&5 | |
26737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26738 | ||
26739 | ac_cv_lib_socket_connect=no | |
26740 | fi | |
ac1cb8d3 VS |
26741 | rm -f conftest.err conftest.$ac_objext \ |
26742 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26743 | LIBS=$ac_check_lib_save_LIBS |
26744 | fi | |
26745 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
26746 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
26747 | if test $ac_cv_lib_socket_connect = yes; then | |
26748 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
26749 | fi | |
26750 | ||
26751 | fi | |
26752 | ||
26753 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
26754 | echo "$as_me:$LINENO: checking for remove" >&5 | |
26755 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
26756 | if test "${ac_cv_func_remove+set}" = set; then | |
26757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26758 | else | |
26759 | cat >conftest.$ac_ext <<_ACEOF | |
26760 | /* confdefs.h. */ | |
26761 | _ACEOF | |
26762 | cat confdefs.h >>conftest.$ac_ext | |
26763 | cat >>conftest.$ac_ext <<_ACEOF | |
26764 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26765 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
26766 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26767 | #define remove innocuous_remove | |
26768 | ||
a848cd7e SC |
26769 | /* System header to define __stub macros and hopefully few prototypes, |
26770 | which can conflict with char remove (); below. | |
26771 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26772 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26773 | |
a848cd7e SC |
26774 | #ifdef __STDC__ |
26775 | # include <limits.h> | |
26776 | #else | |
26777 | # include <assert.h> | |
26778 | #endif | |
ac1cb8d3 VS |
26779 | |
26780 | #undef remove | |
26781 | ||
a848cd7e SC |
26782 | /* Override any gcc2 internal prototype to avoid an error. */ |
26783 | #ifdef __cplusplus | |
26784 | extern "C" | |
26785 | { | |
26786 | #endif | |
26787 | /* We use char because int might match the return type of a gcc2 | |
26788 | builtin and then its argument prototype would still apply. */ | |
26789 | char remove (); | |
26790 | /* The GNU C library defines this for functions which it implements | |
26791 | to always fail with ENOSYS. Some functions are actually named | |
26792 | something starting with __ and the normal name is an alias. */ | |
26793 | #if defined (__stub_remove) || defined (__stub___remove) | |
26794 | choke me | |
26795 | #else | |
26796 | char (*f) () = remove; | |
26797 | #endif | |
26798 | #ifdef __cplusplus | |
26799 | } | |
26800 | #endif | |
26801 | ||
26802 | int | |
26803 | main () | |
26804 | { | |
26805 | return f != remove; | |
26806 | ; | |
26807 | return 0; | |
26808 | } | |
26809 | _ACEOF | |
26810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26812 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26813 | ac_status=$? |
ac1cb8d3 VS |
26814 | grep -v '^ *+' conftest.er1 >conftest.err |
26815 | rm -f conftest.er1 | |
26816 | cat conftest.err >&5 | |
a848cd7e SC |
26817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26818 | (exit $ac_status); } && | |
9dd0f6c2 | 26819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26821 | (eval $ac_try) 2>&5 | |
26822 | ac_status=$? | |
26823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26824 | (exit $ac_status); }; } && | |
26825 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26831 | ac_cv_func_remove=yes | |
26832 | else | |
26833 | echo "$as_me: failed program was:" >&5 | |
26834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26835 | ||
26836 | ac_cv_func_remove=no | |
26837 | fi | |
ac1cb8d3 VS |
26838 | rm -f conftest.err conftest.$ac_objext \ |
26839 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26840 | fi |
26841 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
26842 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
26843 | ||
26844 | if test $ac_cv_func_remove = no; then | |
26845 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
26846 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
26847 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
26848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26849 | else | |
26850 | ac_check_lib_save_LIBS=$LIBS | |
26851 | LIBS="-lposix $LIBS" | |
26852 | cat >conftest.$ac_ext <<_ACEOF | |
26853 | /* confdefs.h. */ | |
26854 | _ACEOF | |
26855 | cat confdefs.h >>conftest.$ac_ext | |
26856 | cat >>conftest.$ac_ext <<_ACEOF | |
26857 | /* end confdefs.h. */ | |
26858 | ||
26859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26860 | #ifdef __cplusplus | |
26861 | extern "C" | |
26862 | #endif | |
26863 | /* We use char because int might match the return type of a gcc2 | |
26864 | builtin and then its argument prototype would still apply. */ | |
26865 | char remove (); | |
26866 | int | |
26867 | main () | |
26868 | { | |
26869 | remove (); | |
26870 | ; | |
26871 | return 0; | |
26872 | } | |
26873 | _ACEOF | |
26874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26876 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26877 | ac_status=$? |
ac1cb8d3 VS |
26878 | grep -v '^ *+' conftest.er1 >conftest.err |
26879 | rm -f conftest.er1 | |
26880 | cat conftest.err >&5 | |
a848cd7e SC |
26881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26882 | (exit $ac_status); } && | |
9dd0f6c2 | 26883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26885 | (eval $ac_try) 2>&5 | |
26886 | ac_status=$? | |
26887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26888 | (exit $ac_status); }; } && | |
26889 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26895 | ac_cv_lib_posix_remove=yes | |
26896 | else | |
26897 | echo "$as_me: failed program was:" >&5 | |
26898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26899 | ||
26900 | ac_cv_lib_posix_remove=no | |
26901 | fi | |
ac1cb8d3 VS |
26902 | rm -f conftest.err conftest.$ac_objext \ |
26903 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26904 | LIBS=$ac_check_lib_save_LIBS |
26905 | fi | |
26906 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
26907 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
26908 | if test $ac_cv_lib_posix_remove = yes; then | |
26909 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
26910 | fi | |
26911 | ||
26912 | fi | |
26913 | ||
26914 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
26915 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
26916 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
26917 | if test "${ac_cv_func_shmat+set}" = set; then | |
26918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26919 | else | |
26920 | cat >conftest.$ac_ext <<_ACEOF | |
26921 | /* confdefs.h. */ | |
26922 | _ACEOF | |
26923 | cat confdefs.h >>conftest.$ac_ext | |
26924 | cat >>conftest.$ac_ext <<_ACEOF | |
26925 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26926 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
26927 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26928 | #define shmat innocuous_shmat | |
26929 | ||
a848cd7e SC |
26930 | /* System header to define __stub macros and hopefully few prototypes, |
26931 | which can conflict with char shmat (); below. | |
26932 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26933 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26934 | |
a848cd7e SC |
26935 | #ifdef __STDC__ |
26936 | # include <limits.h> | |
26937 | #else | |
26938 | # include <assert.h> | |
26939 | #endif | |
ac1cb8d3 VS |
26940 | |
26941 | #undef shmat | |
26942 | ||
a848cd7e SC |
26943 | /* Override any gcc2 internal prototype to avoid an error. */ |
26944 | #ifdef __cplusplus | |
26945 | extern "C" | |
26946 | { | |
26947 | #endif | |
26948 | /* We use char because int might match the return type of a gcc2 | |
26949 | builtin and then its argument prototype would still apply. */ | |
26950 | char shmat (); | |
26951 | /* The GNU C library defines this for functions which it implements | |
26952 | to always fail with ENOSYS. Some functions are actually named | |
26953 | something starting with __ and the normal name is an alias. */ | |
26954 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
26955 | choke me | |
26956 | #else | |
26957 | char (*f) () = shmat; | |
26958 | #endif | |
26959 | #ifdef __cplusplus | |
26960 | } | |
26961 | #endif | |
26962 | ||
26963 | int | |
26964 | main () | |
26965 | { | |
26966 | return f != shmat; | |
26967 | ; | |
26968 | return 0; | |
26969 | } | |
26970 | _ACEOF | |
26971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26973 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26974 | ac_status=$? |
ac1cb8d3 VS |
26975 | grep -v '^ *+' conftest.er1 >conftest.err |
26976 | rm -f conftest.er1 | |
26977 | cat conftest.err >&5 | |
a848cd7e SC |
26978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26979 | (exit $ac_status); } && | |
9dd0f6c2 | 26980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26982 | (eval $ac_try) 2>&5 | |
26983 | ac_status=$? | |
26984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26985 | (exit $ac_status); }; } && | |
26986 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26992 | ac_cv_func_shmat=yes | |
26993 | else | |
26994 | echo "$as_me: failed program was:" >&5 | |
26995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26996 | ||
26997 | ac_cv_func_shmat=no | |
26998 | fi | |
ac1cb8d3 VS |
26999 | rm -f conftest.err conftest.$ac_objext \ |
27000 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27001 | fi |
27002 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
27003 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
27004 | ||
27005 | if test $ac_cv_func_shmat = no; then | |
27006 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
27007 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
27008 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
27009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27010 | else | |
27011 | ac_check_lib_save_LIBS=$LIBS | |
27012 | LIBS="-lipc $LIBS" | |
27013 | cat >conftest.$ac_ext <<_ACEOF | |
27014 | /* confdefs.h. */ | |
27015 | _ACEOF | |
27016 | cat confdefs.h >>conftest.$ac_ext | |
27017 | cat >>conftest.$ac_ext <<_ACEOF | |
27018 | /* end confdefs.h. */ | |
27019 | ||
27020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27021 | #ifdef __cplusplus | |
27022 | extern "C" | |
27023 | #endif | |
27024 | /* We use char because int might match the return type of a gcc2 | |
27025 | builtin and then its argument prototype would still apply. */ | |
27026 | char shmat (); | |
27027 | int | |
27028 | main () | |
27029 | { | |
27030 | shmat (); | |
27031 | ; | |
27032 | return 0; | |
27033 | } | |
27034 | _ACEOF | |
27035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27037 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27038 | ac_status=$? |
ac1cb8d3 VS |
27039 | grep -v '^ *+' conftest.er1 >conftest.err |
27040 | rm -f conftest.er1 | |
27041 | cat conftest.err >&5 | |
a848cd7e SC |
27042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27043 | (exit $ac_status); } && | |
9dd0f6c2 | 27044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27046 | (eval $ac_try) 2>&5 | |
27047 | ac_status=$? | |
27048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27049 | (exit $ac_status); }; } && | |
27050 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
27056 | ac_cv_lib_ipc_shmat=yes | |
27057 | else | |
27058 | echo "$as_me: failed program was:" >&5 | |
27059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27060 | ||
27061 | ac_cv_lib_ipc_shmat=no | |
27062 | fi | |
ac1cb8d3 VS |
27063 | rm -f conftest.err conftest.$ac_objext \ |
27064 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27065 | LIBS=$ac_check_lib_save_LIBS |
27066 | fi | |
27067 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
27068 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
27069 | if test $ac_cv_lib_ipc_shmat = yes; then | |
27070 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
27071 | fi | |
27072 | ||
27073 | fi | |
27074 | fi | |
27075 | ||
27076 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
27077 | ac_save_LDFLAGS=$LDFLAGS | |
27078 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
27079 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
27080 | # check for ICE first), but we must link in the order -lSM -lICE or | |
27081 | # we get undefined symbols. So assume we have SM if we have ICE. | |
27082 | # These have to be linked with before -lX11, unlike the other | |
27083 | # libraries we check for below, so use a different variable. | |
27084 | # John Interrante, Karl Berry | |
27085 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
27086 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
27087 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
27088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27089 | else | |
27090 | ac_check_lib_save_LIBS=$LIBS | |
27091 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
27092 | cat >conftest.$ac_ext <<_ACEOF | |
27093 | /* confdefs.h. */ | |
27094 | _ACEOF | |
27095 | cat confdefs.h >>conftest.$ac_ext | |
27096 | cat >>conftest.$ac_ext <<_ACEOF | |
27097 | /* end confdefs.h. */ | |
27098 | ||
27099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27100 | #ifdef __cplusplus | |
27101 | extern "C" | |
27102 | #endif | |
27103 | /* We use char because int might match the return type of a gcc2 | |
27104 | builtin and then its argument prototype would still apply. */ | |
27105 | char IceConnectionNumber (); | |
27106 | int | |
27107 | main () | |
27108 | { | |
27109 | IceConnectionNumber (); | |
27110 | ; | |
27111 | return 0; | |
27112 | } | |
27113 | _ACEOF | |
27114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27116 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27117 | ac_status=$? |
ac1cb8d3 VS |
27118 | grep -v '^ *+' conftest.er1 >conftest.err |
27119 | rm -f conftest.er1 | |
27120 | cat conftest.err >&5 | |
a848cd7e SC |
27121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27122 | (exit $ac_status); } && | |
9dd0f6c2 | 27123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27125 | (eval $ac_try) 2>&5 | |
27126 | ac_status=$? | |
27127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27128 | (exit $ac_status); }; } && | |
27129 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
27135 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
27136 | else | |
27137 | echo "$as_me: failed program was:" >&5 | |
27138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27139 | ||
27140 | ac_cv_lib_ICE_IceConnectionNumber=no | |
27141 | fi | |
ac1cb8d3 VS |
27142 | rm -f conftest.err conftest.$ac_objext \ |
27143 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27144 | LIBS=$ac_check_lib_save_LIBS |
27145 | fi | |
27146 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
27147 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
27148 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
27149 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
27150 | fi | |
27151 | ||
27152 | LDFLAGS=$ac_save_LDFLAGS | |
27153 | ||
27154 | fi | |
27155 | ||
27156 | ||
27157 | if test "$no_x" = "yes"; then | |
27158 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
27159 | echo "$as_me: error: X11 not found" >&2;} | |
27160 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
27161 | fi | |
27162 | ||
74b84332 VS |
27163 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
27164 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
27165 | AFMINSTALL=afminstall |
27166 | COMPILED_X_PROGRAM=0 | |
27167 | ||
74b84332 VS |
27168 | fi |
27169 | ||
27170 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
27171 | if test "$wxUSE_NANOX" = "yes"; then |
27172 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
27173 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
27174 | if test "x$MICROWIN" = x ; then | |
27175 | echo "$as_me:$LINENO: result: not found" >&5 | |
27176 | echo "${ECHO_T}not found" >&6 | |
27177 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
27178 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
27179 | { (exit 1); exit 1; }; } | |
27180 | else | |
27181 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
27182 | echo "${ECHO_T}$MICROWIN" >&6 | |
27183 | cat >>confdefs.h <<\_ACEOF | |
27184 | #define wxUSE_NANOX 1 | |
27185 | _ACEOF | |
27186 | ||
27187 | fi | |
27188 | fi | |
27189 | ||
27190 | if test "$wxUSE_UNICODE" = "yes"; then | |
27191 | ||
27192 | succeeded=no | |
27193 | ||
27194 | if test -z "$PKG_CONFIG"; then | |
27195 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27196 | set dummy pkg-config; ac_word=$2 | |
27197 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27199 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27201 | else | |
27202 | case $PKG_CONFIG in | |
27203 | [\\/]* | ?:[\\/]*) | |
27204 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27205 | ;; | |
27206 | *) | |
27207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27208 | for as_dir in $PATH | |
27209 | do | |
27210 | IFS=$as_save_IFS | |
27211 | test -z "$as_dir" && as_dir=. | |
27212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27213 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27214 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27216 | break 2 | |
27217 | fi | |
27218 | done | |
27219 | done | |
27220 | ||
27221 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27222 | ;; | |
27223 | esac | |
27224 | fi | |
27225 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27226 | ||
27227 | if test -n "$PKG_CONFIG"; then | |
27228 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27229 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27230 | else | |
27231 | echo "$as_me:$LINENO: result: no" >&5 | |
27232 | echo "${ECHO_T}no" >&6 | |
27233 | fi | |
27234 | ||
27235 | fi | |
27236 | ||
27237 | if test "$PKG_CONFIG" = "no" ; then | |
27238 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27239 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27240 | echo "*** to the full path to pkg-config." | |
27241 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27242 | else | |
27243 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27244 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27245 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
27246 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
27247 | ||
27248 | if $PKG_CONFIG --exists "pangox" ; then | |
27249 | echo "$as_me:$LINENO: result: yes" >&5 | |
27250 | echo "${ECHO_T}yes" >&6 | |
27251 | succeeded=yes | |
27252 | ||
27253 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
27254 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
27255 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
27256 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
27257 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
27258 | ||
27259 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
27260 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
27261 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
27262 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
27263 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
27264 | else | |
27265 | PANGOX_CFLAGS="" | |
27266 | PANGOX_LIBS="" | |
27267 | ## If we have a custom action on failure, don't print errors, but | |
27268 | ## do set a variable so people can do so. | |
27269 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
27270 | ||
27271 | fi | |
27272 | ||
27273 | ||
27274 | ||
27275 | else | |
27276 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27277 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27278 | fi | |
27279 | fi | |
27280 | ||
27281 | if test $succeeded = yes; then | |
27282 | ||
27283 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
27284 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
27285 | ||
27286 | else | |
27287 | ||
27288 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
27289 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
27290 | { (exit 1); exit 1; }; } | |
27291 | ||
27292 | ||
27293 | fi | |
27294 | ||
27295 | ||
27296 | succeeded=no | |
27297 | ||
27298 | if test -z "$PKG_CONFIG"; then | |
27299 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27300 | set dummy pkg-config; ac_word=$2 | |
27301 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27303 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27305 | else | |
27306 | case $PKG_CONFIG in | |
27307 | [\\/]* | ?:[\\/]*) | |
27308 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27309 | ;; | |
27310 | *) | |
27311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27312 | for as_dir in $PATH | |
27313 | do | |
27314 | IFS=$as_save_IFS | |
27315 | test -z "$as_dir" && as_dir=. | |
27316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27318 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27320 | break 2 | |
27321 | fi | |
27322 | done | |
27323 | done | |
27324 | ||
27325 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27326 | ;; | |
27327 | esac | |
27328 | fi | |
27329 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27330 | ||
27331 | if test -n "$PKG_CONFIG"; then | |
27332 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27333 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27334 | else | |
27335 | echo "$as_me:$LINENO: result: no" >&5 | |
27336 | echo "${ECHO_T}no" >&6 | |
27337 | fi | |
27338 | ||
27339 | fi | |
27340 | ||
27341 | if test "$PKG_CONFIG" = "no" ; then | |
27342 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27343 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27344 | echo "*** to the full path to pkg-config." | |
27345 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27346 | else | |
27347 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27348 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27349 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
27350 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
27351 | ||
27352 | if $PKG_CONFIG --exists "pangoft2" ; then | |
27353 | echo "$as_me:$LINENO: result: yes" >&5 | |
27354 | echo "${ECHO_T}yes" >&6 | |
27355 | succeeded=yes | |
27356 | ||
27357 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
27358 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
27359 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
27360 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
27361 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
27362 | ||
27363 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
27364 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
27365 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
27366 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
27367 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
27368 | else | |
27369 | PANGOFT2_CFLAGS="" | |
27370 | PANGOFT2_LIBS="" | |
27371 | ## If we have a custom action on failure, don't print errors, but | |
27372 | ## do set a variable so people can do so. | |
27373 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
27374 | ||
27375 | fi | |
27376 | ||
27377 | ||
27378 | ||
27379 | else | |
27380 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27381 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27382 | fi | |
27383 | fi | |
27384 | ||
27385 | if test $succeeded = yes; then | |
27386 | ||
27387 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
27388 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
27389 | ||
27390 | else | |
27391 | ||
27392 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
27393 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
27394 | wxUSE_PRINTING_ARCHITECTURE="no" | |
27395 | ||
27396 | ||
27397 | fi | |
27398 | ||
27399 | ||
27400 | succeeded=no | |
27401 | ||
27402 | if test -z "$PKG_CONFIG"; then | |
27403 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27404 | set dummy pkg-config; ac_word=$2 | |
27405 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27406 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27407 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27409 | else | |
27410 | case $PKG_CONFIG in | |
27411 | [\\/]* | ?:[\\/]*) | |
27412 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27413 | ;; | |
27414 | *) | |
27415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27416 | for as_dir in $PATH | |
27417 | do | |
27418 | IFS=$as_save_IFS | |
27419 | test -z "$as_dir" && as_dir=. | |
27420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27422 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27424 | break 2 | |
27425 | fi | |
27426 | done | |
27427 | done | |
27428 | ||
27429 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27430 | ;; | |
27431 | esac | |
27432 | fi | |
27433 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27434 | ||
27435 | if test -n "$PKG_CONFIG"; then | |
27436 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27437 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27438 | else | |
27439 | echo "$as_me:$LINENO: result: no" >&5 | |
27440 | echo "${ECHO_T}no" >&6 | |
27441 | fi | |
27442 | ||
27443 | fi | |
27444 | ||
27445 | if test "$PKG_CONFIG" = "no" ; then | |
27446 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27447 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27448 | echo "*** to the full path to pkg-config." | |
27449 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27450 | else | |
27451 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27452 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27453 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
27454 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
27455 | ||
27456 | if $PKG_CONFIG --exists "pangoxft" ; then | |
27457 | echo "$as_me:$LINENO: result: yes" >&5 | |
27458 | echo "${ECHO_T}yes" >&6 | |
27459 | succeeded=yes | |
27460 | ||
27461 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
27462 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
27463 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
27464 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
27465 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
27466 | ||
27467 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
27468 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
27469 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
27470 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
27471 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
27472 | else | |
27473 | PANGOXFT_CFLAGS="" | |
27474 | PANGOXFT_LIBS="" | |
27475 | ## If we have a custom action on failure, don't print errors, but | |
27476 | ## do set a variable so people can do so. | |
27477 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
27478 | ||
27479 | fi | |
27480 | ||
27481 | ||
27482 | ||
27483 | else | |
27484 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27485 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27486 | fi | |
27487 | fi | |
27488 | ||
27489 | if test $succeeded = yes; then | |
27490 | ||
4ae1af05 MB |
27491 | cat >>confdefs.h <<\_ACEOF |
27492 | #define HAVE_PANGO_XFT 1 | |
27493 | _ACEOF | |
27494 | ||
a848cd7e SC |
27495 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
27496 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
27497 | ||
27498 | else | |
27499 | ||
27500 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
27501 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
27502 | ||
27503 | ||
27504 | fi | |
27505 | ||
304205f1 VS |
27506 | save_CFLAGS="$CFLAGS" |
27507 | save_LIBS="$LIBS" | |
27508 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
27509 | LIBS="$LIBS $PANGOX_LIBS" | |
27510 | ||
27511 | for ac_func in pango_font_family_is_monospace | |
27512 | do | |
27513 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27514 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27515 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27516 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27518 | else | |
27519 | cat >conftest.$ac_ext <<_ACEOF | |
27520 | /* confdefs.h. */ | |
27521 | _ACEOF | |
27522 | cat confdefs.h >>conftest.$ac_ext | |
27523 | cat >>conftest.$ac_ext <<_ACEOF | |
27524 | /* end confdefs.h. */ | |
27525 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
27526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27527 | #define $ac_func innocuous_$ac_func | |
27528 | ||
27529 | /* System header to define __stub macros and hopefully few prototypes, | |
27530 | which can conflict with char $ac_func (); below. | |
27531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27532 | <limits.h> exists even on freestanding compilers. */ | |
27533 | ||
27534 | #ifdef __STDC__ | |
27535 | # include <limits.h> | |
27536 | #else | |
27537 | # include <assert.h> | |
27538 | #endif | |
27539 | ||
27540 | #undef $ac_func | |
27541 | ||
27542 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27543 | #ifdef __cplusplus | |
27544 | extern "C" | |
27545 | { | |
27546 | #endif | |
27547 | /* We use char because int might match the return type of a gcc2 | |
27548 | builtin and then its argument prototype would still apply. */ | |
27549 | char $ac_func (); | |
27550 | /* The GNU C library defines this for functions which it implements | |
27551 | to always fail with ENOSYS. Some functions are actually named | |
27552 | something starting with __ and the normal name is an alias. */ | |
27553 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27554 | choke me | |
27555 | #else | |
27556 | char (*f) () = $ac_func; | |
27557 | #endif | |
27558 | #ifdef __cplusplus | |
27559 | } | |
27560 | #endif | |
27561 | ||
27562 | int | |
27563 | main () | |
27564 | { | |
27565 | return f != $ac_func; | |
27566 | ; | |
27567 | return 0; | |
27568 | } | |
27569 | _ACEOF | |
27570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27572 | (eval $ac_link) 2>conftest.er1 | |
27573 | ac_status=$? | |
27574 | grep -v '^ *+' conftest.er1 >conftest.err | |
27575 | rm -f conftest.er1 | |
27576 | cat conftest.err >&5 | |
27577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27578 | (exit $ac_status); } && | |
9dd0f6c2 | 27579 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
27580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27581 | (eval $ac_try) 2>&5 | |
27582 | ac_status=$? | |
27583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27584 | (exit $ac_status); }; } && | |
27585 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
27591 | eval "$as_ac_var=yes" | |
27592 | else | |
27593 | echo "$as_me: failed program was:" >&5 | |
27594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27595 | ||
27596 | eval "$as_ac_var=no" | |
27597 | fi | |
27598 | rm -f conftest.err conftest.$ac_objext \ | |
27599 | conftest$ac_exeext conftest.$ac_ext | |
27600 | fi | |
27601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27602 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27603 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27604 | cat >>confdefs.h <<_ACEOF | |
27605 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27606 | _ACEOF | |
27607 | ||
27608 | fi | |
27609 | done | |
27610 | ||
27611 | CFLAGS="$save_CFLAGS" | |
27612 | LIBS="$save_LIBS" | |
a848cd7e SC |
27613 | fi |
27614 | ||
27615 | wxUSE_UNIVERSAL="yes" | |
27616 | ||
27617 | if test "$wxUSE_NANOX" = "yes"; then | |
27618 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
27619 | 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" | |
27620 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
27621 | else | |
27622 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
27623 | fi | |
27624 | ||
a848cd7e SC |
27625 | TOOLKIT=X11 |
27626 | GUIDIST=X11_DIST | |
27627 | fi | |
27628 | ||
27629 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
27630 | if test "$wxUSE_UNICODE" = "yes"; then |
27631 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
27632 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
27633 | { (exit 1); exit 1; }; } | |
27634 | fi | |
27635 | ||
74b84332 VS |
27636 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
27637 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 27638 | |
74b84332 VS |
27639 | ac_find_includes= |
27640 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27641 | do | |
27642 | if test -f "$ac_dir/Xm/Xm.h"; then | |
27643 | ac_find_includes=$ac_dir | |
27644 | break | |
27645 | fi | |
27646 | done | |
a848cd7e | 27647 | |
74b84332 VS |
27648 | if test "$ac_find_includes" != "" ; then |
27649 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27650 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27651 | ||
27652 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27653 | ac_path_to_include="" | |
27654 | else | |
27655 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
27656 | result=$? | |
27657 | if test $result = 0; then | |
27658 | ac_path_to_include="" | |
27659 | else | |
27660 | ac_path_to_include=" -I$ac_find_includes" | |
27661 | fi | |
a848cd7e SC |
27662 | fi |
27663 | ||
74b84332 VS |
27664 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
27665 | else | |
27666 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27667 | /* confdefs.h. */ |
27668 | _ACEOF | |
27669 | cat confdefs.h >>conftest.$ac_ext | |
27670 | cat >>conftest.$ac_ext <<_ACEOF | |
27671 | /* end confdefs.h. */ | |
27672 | ||
74b84332 VS |
27673 | #include <Xm/Xm.h> |
27674 | ||
a848cd7e SC |
27675 | int |
27676 | main () | |
27677 | { | |
27678 | ||
74b84332 VS |
27679 | int version; |
27680 | version = xmUseVersion; | |
27681 | ||
a848cd7e SC |
27682 | ; |
27683 | return 0; | |
27684 | } | |
27685 | _ACEOF | |
74b84332 VS |
27686 | rm -f conftest.$ac_objext |
27687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27688 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27689 | ac_status=$? |
ac1cb8d3 VS |
27690 | grep -v '^ *+' conftest.er1 >conftest.err |
27691 | rm -f conftest.er1 | |
27692 | cat conftest.err >&5 | |
a848cd7e SC |
27693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27694 | (exit $ac_status); } && | |
9dd0f6c2 | 27695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27697 | (eval $ac_try) 2>&5 | |
27698 | ac_status=$? | |
27699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27700 | (exit $ac_status); }; } && | |
74b84332 | 27701 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27703 | (eval $ac_try) 2>&5 | |
27704 | ac_status=$? | |
27705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27706 | (exit $ac_status); }; }; then | |
74b84332 VS |
27707 | |
27708 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27709 | echo "${ECHO_T}found in default search path" >&6 | |
27710 | COMPILED_X_PROGRAM=1 | |
27711 | ||
a848cd7e SC |
27712 | else |
27713 | echo "$as_me: failed program was:" >&5 | |
27714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27715 | ||
a848cd7e | 27716 | |
74b84332 VS |
27717 | echo "$as_me:$LINENO: result: no" >&5 |
27718 | echo "${ECHO_T}no" >&6 | |
27719 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
27720 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
27721 | { (exit 1); exit 1; }; } | |
a848cd7e | 27722 | |
a848cd7e | 27723 | |
a848cd7e | 27724 | fi |
74b84332 VS |
27725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27726 | fi | |
27727 | ||
27728 | if test "$COMPILED_X_PROGRAM" = 0; then | |
27729 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
27730 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
27731 | ||
27732 | ac_find_libraries= | |
27733 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27734 | do | |
27735 | for ac_extension in a so sl dylib; do | |
27736 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
27737 | ac_find_libraries=$ac_dir | |
27738 | break 2 | |
a848cd7e | 27739 | fi |
74b84332 VS |
27740 | done |
27741 | done | |
a848cd7e | 27742 | |
74b84332 VS |
27743 | if test "$ac_find_libraries" != "" ; then |
27744 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
27745 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 27746 | |
74b84332 VS |
27747 | |
27748 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
27749 | result=$? | |
27750 | if test $result = 0; then | |
27751 | ac_path_to_link="" | |
a848cd7e | 27752 | else |
74b84332 VS |
27753 | ac_path_to_link=" -L$ac_find_libraries" |
27754 | fi | |
27755 | ||
27756 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
27757 | else | |
27758 | save_CFLAGS=$CFLAGS | |
27759 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27760 | ||
27761 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27762 | /* confdefs.h. */ |
27763 | _ACEOF | |
27764 | cat confdefs.h >>conftest.$ac_ext | |
27765 | cat >>conftest.$ac_ext <<_ACEOF | |
27766 | /* end confdefs.h. */ | |
27767 | ||
74b84332 VS |
27768 | #include <Xm/Xm.h> |
27769 | ||
a848cd7e SC |
27770 | int |
27771 | main () | |
27772 | { | |
74b84332 VS |
27773 | |
27774 | int version; | |
27775 | version = xmUseVersion; | |
27776 | ||
a848cd7e SC |
27777 | ; |
27778 | return 0; | |
27779 | } | |
27780 | _ACEOF | |
74b84332 VS |
27781 | rm -f conftest.$ac_objext |
27782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27783 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27784 | ac_status=$? |
ac1cb8d3 VS |
27785 | grep -v '^ *+' conftest.er1 >conftest.err |
27786 | rm -f conftest.er1 | |
27787 | cat conftest.err >&5 | |
a848cd7e SC |
27788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27789 | (exit $ac_status); } && | |
9dd0f6c2 | 27790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27792 | (eval $ac_try) 2>&5 | |
27793 | ac_status=$? | |
27794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27795 | (exit $ac_status); }; } && | |
74b84332 | 27796 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
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); }; }; then | |
74b84332 VS |
27802 | |
27803 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27804 | echo "${ECHO_T}found in default search path" >&6 | |
27805 | COMPILED_X_PROGRAM=1 | |
27806 | ||
a848cd7e SC |
27807 | else |
27808 | echo "$as_me: failed program was:" >&5 | |
27809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27810 | ||
74b84332 VS |
27811 | |
27812 | echo "$as_me:$LINENO: result: no" >&5 | |
27813 | echo "${ECHO_T}no" >&6 | |
27814 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
27815 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
27816 | { (exit 1); exit 1; }; } | |
27817 | ||
27818 | ||
27819 | fi | |
27820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27821 | ||
27822 | CFLAGS=$save_CFLAGS | |
27823 | fi | |
27824 | fi | |
27825 | ||
27826 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
27827 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
27828 | libp_link="" | |
27829 | libsm_ice_link="" | |
27830 | libs_found=0 | |
27831 | for libp in "" " -lXp"; do | |
27832 | if test "$libs_found" = "0"; then | |
27833 | for libsm_ice in "" " -lSM -lICE"; do | |
27834 | if test "$libs_found" = "0"; then | |
27835 | save_LIBS="$LIBS" | |
27836 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
27837 | save_CFLAGS=$CFLAGS | |
27838 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27839 | ||
27840 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27841 | /* confdefs.h. */ |
27842 | _ACEOF | |
27843 | cat confdefs.h >>conftest.$ac_ext | |
27844 | cat >>conftest.$ac_ext <<_ACEOF | |
27845 | /* end confdefs.h. */ | |
27846 | ||
74b84332 VS |
27847 | #include <Xm/Xm.h> |
27848 | #include <Xm/List.h> | |
27849 | ||
a848cd7e SC |
27850 | int |
27851 | main () | |
27852 | { | |
74b84332 VS |
27853 | |
27854 | XmString string = NULL; | |
27855 | Widget w = NULL; | |
27856 | int position = 0; | |
27857 | XmListAddItem(w, string, position); | |
27858 | ||
a848cd7e SC |
27859 | ; |
27860 | return 0; | |
27861 | } | |
27862 | _ACEOF | |
27863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27865 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27866 | ac_status=$? |
ac1cb8d3 VS |
27867 | grep -v '^ *+' conftest.er1 >conftest.err |
27868 | rm -f conftest.er1 | |
27869 | cat conftest.err >&5 | |
a848cd7e SC |
27870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27871 | (exit $ac_status); } && | |
9dd0f6c2 | 27872 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27874 | (eval $ac_try) 2>&5 | |
27875 | ac_status=$? | |
27876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27877 | (exit $ac_status); }; } && | |
27878 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
27884 | ||
27885 | libp_link="$libp" | |
27886 | libsm_ice_link="$libsm_ice" | |
27887 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
27888 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
27889 | libs_found=1 | |
27890 | ||
27891 | else | |
27892 | echo "$as_me: failed program was:" >&5 | |
27893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27894 | ||
27895 | ||
27896 | ||
27897 | fi | |
ac1cb8d3 VS |
27898 | rm -f conftest.err conftest.$ac_objext \ |
27899 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27900 | |
27901 | LIBS="$save_LIBS" | |
27902 | CFLAGS=$save_CFLAGS | |
27903 | fi | |
27904 | done | |
27905 | fi | |
27906 | done | |
27907 | ||
27908 | if test "$libs_found" = "0"; then | |
27909 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
27910 | echo "${ECHO_T}can't find the right libraries" >&6 | |
27911 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
27912 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
27913 | { (exit 1); exit 1; }; } | |
27914 | fi | |
27915 | ||
27916 | save_CFLAGS=$CFLAGS | |
27917 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27918 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
27919 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
27920 | cat >conftest.$ac_ext <<_ACEOF | |
27921 | /* confdefs.h. */ | |
27922 | _ACEOF | |
27923 | cat confdefs.h >>conftest.$ac_ext | |
27924 | cat >>conftest.$ac_ext <<_ACEOF | |
27925 | /* end confdefs.h. */ | |
27926 | ||
27927 | #include <Xm/Xm.h> | |
27928 | ||
27929 | int | |
27930 | main () | |
27931 | { | |
27932 | ||
27933 | #if XmVersion < 2000 | |
27934 | #error "Not Motif 2" | |
27935 | #endif | |
27936 | ||
27937 | ; | |
27938 | return 0; | |
27939 | } | |
27940 | _ACEOF | |
27941 | rm -f conftest.$ac_objext | |
27942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27943 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27944 | ac_status=$? |
ac1cb8d3 VS |
27945 | grep -v '^ *+' conftest.er1 >conftest.err |
27946 | rm -f conftest.er1 | |
27947 | cat conftest.err >&5 | |
a848cd7e SC |
27948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27949 | (exit $ac_status); } && | |
9dd0f6c2 | 27950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27952 | (eval $ac_try) 2>&5 | |
27953 | ac_status=$? | |
27954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27955 | (exit $ac_status); }; } && | |
27956 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
27962 | ||
27963 | cat >>confdefs.h <<\_ACEOF | |
27964 | #define __WXMOTIF20__ 1 | |
27965 | _ACEOF | |
27966 | ||
27967 | echo "$as_me:$LINENO: result: found" >&5 | |
27968 | echo "${ECHO_T}found" >&6 | |
27969 | ||
27970 | else | |
27971 | echo "$as_me: failed program was:" >&5 | |
27972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27973 | ||
27974 | ||
27975 | cat >>confdefs.h <<\_ACEOF | |
27976 | #define __WXMOTIF20__ 0 | |
27977 | _ACEOF | |
27978 | ||
27979 | echo "$as_me:$LINENO: result: not found" >&5 | |
27980 | echo "${ECHO_T}not found" >&6 | |
27981 | ||
27982 | fi | |
ac1cb8d3 | 27983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27984 | CFLAGS=$save_CFLAGS |
27985 | ||
27986 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
27987 | TOOLKIT=MOTIF |
27988 | GUIDIST=MOTIF_DIST | |
27989 | fi | |
27990 | ||
74b84332 | 27991 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
27992 | if test "$wxUSE_LIBXPM" = "sys"; then |
27993 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
27994 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
27995 | ||
27996 | ac_find_libraries= | |
27997 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27998 | do | |
27999 | for ac_extension in a so sl dylib; do | |
28000 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
28001 | ac_find_libraries=$ac_dir | |
28002 | break 2 | |
28003 | fi | |
28004 | done | |
28005 | done | |
28006 | ||
28007 | if test "$ac_find_libraries" != "" ; then | |
28008 | ||
28009 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
28010 | result=$? | |
28011 | if test $result = 0; then | |
28012 | ac_path_to_link="" | |
28013 | else | |
28014 | ac_path_to_link=" -L$ac_find_libraries" | |
28015 | fi | |
28016 | ||
28017 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
28018 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
28019 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
28020 | ||
28021 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
28022 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
28023 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
28024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28025 | else | |
28026 | ||
28027 | save_CFLAGS=$CFLAGS | |
28028 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28029 | ||
28030 | cat >conftest.$ac_ext <<_ACEOF | |
28031 | /* confdefs.h. */ | |
28032 | _ACEOF | |
28033 | cat confdefs.h >>conftest.$ac_ext | |
28034 | cat >>conftest.$ac_ext <<_ACEOF | |
28035 | /* end confdefs.h. */ | |
28036 | ||
28037 | #include <X11/xpm.h> | |
28038 | ||
28039 | int | |
28040 | main () | |
28041 | { | |
28042 | ||
28043 | int version; | |
28044 | version = XpmLibraryVersion(); | |
28045 | ||
28046 | ; | |
28047 | return 0; | |
28048 | } | |
28049 | _ACEOF | |
28050 | rm -f conftest.$ac_objext | |
28051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28052 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28053 | ac_status=$? |
ac1cb8d3 VS |
28054 | grep -v '^ *+' conftest.er1 >conftest.err |
28055 | rm -f conftest.er1 | |
28056 | cat conftest.err >&5 | |
a848cd7e SC |
28057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28058 | (exit $ac_status); } && | |
9dd0f6c2 | 28059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28061 | (eval $ac_try) 2>&5 | |
28062 | ac_status=$? | |
28063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28064 | (exit $ac_status); }; } && | |
28065 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
28071 | wx_cv_x11_xpm_h=yes | |
28072 | else | |
28073 | echo "$as_me: failed program was:" >&5 | |
28074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28075 | ||
28076 | wx_cv_x11_xpm_h=no | |
28077 | ||
28078 | fi | |
ac1cb8d3 | 28079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28080 | |
28081 | CFLAGS=$save_CFLAGS | |
28082 | ||
28083 | ||
28084 | fi | |
28085 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
28086 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
28087 | ||
28088 | if test $wx_cv_x11_xpm_h = "yes"; then | |
28089 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
28090 | cat >>confdefs.h <<\_ACEOF | |
28091 | #define wxHAVE_LIB_XPM 1 | |
28092 | _ACEOF | |
28093 | ||
28094 | else | |
28095 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
28096 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
28097 | fi | |
28098 | fi | |
28099 | ||
28100 | fi | |
28101 | ||
28102 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
28103 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
28104 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
28105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28106 | else | |
28107 | ac_check_lib_save_LIBS=$LIBS | |
28108 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
28109 | cat >conftest.$ac_ext <<_ACEOF | |
28110 | /* confdefs.h. */ | |
28111 | _ACEOF | |
28112 | cat confdefs.h >>conftest.$ac_ext | |
28113 | cat >>conftest.$ac_ext <<_ACEOF | |
28114 | /* end confdefs.h. */ | |
28115 | ||
28116 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28117 | #ifdef __cplusplus | |
28118 | extern "C" | |
28119 | #endif | |
28120 | /* We use char because int might match the return type of a gcc2 | |
28121 | builtin and then its argument prototype would still apply. */ | |
28122 | char XShapeQueryExtension (); | |
28123 | int | |
28124 | main () | |
28125 | { | |
28126 | XShapeQueryExtension (); | |
28127 | ; | |
28128 | return 0; | |
28129 | } | |
28130 | _ACEOF | |
28131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28133 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28134 | ac_status=$? |
ac1cb8d3 VS |
28135 | grep -v '^ *+' conftest.er1 >conftest.err |
28136 | rm -f conftest.er1 | |
28137 | cat conftest.err >&5 | |
a848cd7e SC |
28138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28139 | (exit $ac_status); } && | |
9dd0f6c2 | 28140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28142 | (eval $ac_try) 2>&5 | |
28143 | ac_status=$? | |
28144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28145 | (exit $ac_status); }; } && | |
28146 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
28152 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
28153 | else | |
28154 | echo "$as_me: failed program was:" >&5 | |
28155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28156 | ||
28157 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
28158 | fi | |
ac1cb8d3 VS |
28159 | rm -f conftest.err conftest.$ac_objext \ |
28160 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28161 | LIBS=$ac_check_lib_save_LIBS |
28162 | fi | |
28163 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
28164 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
28165 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
28166 | ||
28167 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
28168 | wxHAVE_XEXT_LIB=1 | |
28169 | ||
28170 | fi | |
28171 | ||
28172 | ||
28173 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
28174 | save_CFLAGS="$CFLAGS" | |
28175 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28176 | ||
28177 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
28178 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
28179 | cat >conftest.$ac_ext <<_ACEOF | |
28180 | /* confdefs.h. */ | |
28181 | _ACEOF | |
28182 | cat confdefs.h >>conftest.$ac_ext | |
28183 | cat >>conftest.$ac_ext <<_ACEOF | |
28184 | /* end confdefs.h. */ | |
28185 | ||
28186 | #include <X11/Xlib.h> | |
28187 | #include <X11/extensions/shape.h> | |
28188 | ||
28189 | int | |
28190 | main () | |
28191 | { | |
28192 | ||
28193 | int dummy1, dummy2; | |
28194 | XShapeQueryExtension((Display*)NULL, | |
28195 | (int*)NULL, (int*)NULL); | |
28196 | ||
28197 | ; | |
28198 | return 0; | |
28199 | } | |
28200 | _ACEOF | |
28201 | rm -f conftest.$ac_objext | |
28202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28203 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28204 | ac_status=$? |
ac1cb8d3 VS |
28205 | grep -v '^ *+' conftest.er1 >conftest.err |
28206 | rm -f conftest.er1 | |
28207 | cat conftest.err >&5 | |
a848cd7e SC |
28208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28209 | (exit $ac_status); } && | |
9dd0f6c2 | 28210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28212 | (eval $ac_try) 2>&5 | |
28213 | ac_status=$? | |
28214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28215 | (exit $ac_status); }; } && | |
28216 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
28222 | ||
28223 | cat >>confdefs.h <<\_ACEOF | |
28224 | #define HAVE_XSHAPE 1 | |
28225 | _ACEOF | |
28226 | ||
28227 | echo "$as_me:$LINENO: result: found" >&5 | |
28228 | echo "${ECHO_T}found" >&6 | |
28229 | ||
28230 | else | |
28231 | echo "$as_me: failed program was:" >&5 | |
28232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28233 | ||
28234 | ||
28235 | echo "$as_me:$LINENO: result: not found" >&5 | |
28236 | echo "${ECHO_T}not found" >&6 | |
28237 | ||
28238 | fi | |
ac1cb8d3 | 28239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28240 | CFLAGS="$save_CFLAGS" |
28241 | ||
28242 | fi | |
28243 | fi | |
28244 | ||
28245 | if test "$wxUSE_MAC" = 1; then | |
28246 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
28247 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
28248 | if test "$GCC" = yes; then | |
28249 | echo "$as_me:$LINENO: result: gcc" >&5 | |
28250 | echo "${ECHO_T}gcc" >&6 | |
28251 | CPPFLAGS_PASCAL="-fpascal-strings" | |
28252 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
28253 | echo "$as_me:$LINENO: result: xlc" >&5 | |
28254 | echo "${ECHO_T}xlc" >&6 | |
28255 | CPPFLAGS_PASCAL="-qmacpstr" | |
28256 | else | |
28257 | echo "$as_me:$LINENO: result: none" >&5 | |
28258 | echo "${ECHO_T}none" >&6 | |
28259 | fi | |
28260 | ||
1e9e8aba DE |
28261 | if test "x$wxUSE_UNIX" = "xyes"; then |
28262 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
28263 | else | |
28264 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
28265 | fi | |
a848cd7e | 28266 | |
a848cd7e SC |
28267 | TOOLKIT=MAC |
28268 | GUIDIST=MACX_DIST | |
dd21ced8 | 28269 | WXBASEPORT="_carbon" |
a848cd7e SC |
28270 | fi |
28271 | ||
28272 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
28273 | TOOLKIT=COCOA |
28274 | GUIDIST=COCOA_DIST | |
28275 | fi | |
28276 | ||
28277 | if test "$wxUSE_PM" = 1; then | |
28278 | TOOLKIT=PM | |
de59c161 RD |
28279 | GUIDIST=PM_DIST |
28280 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
28281 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
28282 | if test "${wx_cv_spbcdata+set}" = set; then | |
28283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28284 | else | |
28285 | ||
28286 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
28287 | /* confdefs.h. */ |
28288 | _ACEOF | |
28289 | cat confdefs.h >>conftest.$ac_ext | |
28290 | cat >>conftest.$ac_ext <<_ACEOF | |
28291 | /* end confdefs.h. */ | |
28292 | ||
28293 | #define INCL_PM | |
28294 | #include <os2.h> | |
28295 | ||
28296 | int | |
28297 | main () | |
28298 | { | |
28299 | ||
28300 | SPBCDATA test; | |
28301 | ||
28302 | ; | |
28303 | return 0; | |
28304 | } | |
28305 | _ACEOF | |
28306 | rm -f conftest.$ac_objext | |
28307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28308 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 28309 | ac_status=$? |
ac1cb8d3 VS |
28310 | grep -v '^ *+' conftest.er1 >conftest.err |
28311 | rm -f conftest.er1 | |
28312 | cat conftest.err >&5 | |
de59c161 RD |
28313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28314 | (exit $ac_status); } && | |
9dd0f6c2 | 28315 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28317 | (eval $ac_try) 2>&5 | |
28318 | ac_status=$? | |
28319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28320 | (exit $ac_status); }; } && | |
28321 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
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); }; }; then | |
28327 | wx_cv_spbcdata=yes | |
28328 | else | |
28329 | echo "$as_me: failed program was:" >&5 | |
28330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28331 | ||
28332 | wx_cv_spbcdata=no | |
28333 | ||
28334 | fi | |
ac1cb8d3 | 28335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
28336 | |
28337 | ||
28338 | fi | |
28339 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
28340 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
28341 | ||
28342 | if test $wx_cv_spbcdata = "yes"; then | |
28343 | cat >>confdefs.h <<\_ACEOF | |
28344 | #define HAVE_SPBCDATA 1 | |
28345 | _ACEOF | |
28346 | ||
28347 | fi | |
a848cd7e SC |
28348 | fi |
28349 | ||
28350 | if test "$TOOLKIT" = "PM" ; then | |
28351 | TOOLKIT_DIR="os2" | |
28352 | else | |
28353 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
28354 | fi | |
28355 | ||
a848cd7e | 28356 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
28357 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
28358 | WIDGET_SET=univ | |
a848cd7e SC |
28359 | fi |
28360 | ||
28361 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
28362 | DISTDIR="wx\$(TOOLKIT)" | |
28363 | else | |
28364 | USE_GUI=0 | |
28365 | ||
28366 | TOOLKIT_DIR="base" | |
28367 | ||
28368 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 28369 | TOOLKIT="MSW" |
a848cd7e SC |
28370 | fi |
28371 | ||
a848cd7e SC |
28372 | GUIDIST="BASE_DIST" |
28373 | DISTDIR="wxBase" | |
28374 | fi | |
28375 | ||
28376 | ||
28377 | ||
28378 | ||
28379 | IODBC_C_SRC="" | |
28380 | ||
28381 | ||
28382 | if test "$TOOLKIT" != "MSW" ; then | |
28383 | ||
28384 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
28385 | ||
28386 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28387 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
28388 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
28389 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28391 | fi | |
28392 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
28393 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
28394 | else | |
28395 | # Is the header compilable? | |
28396 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
28397 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
28398 | cat >conftest.$ac_ext <<_ACEOF | |
28399 | /* confdefs.h. */ | |
28400 | _ACEOF | |
28401 | cat confdefs.h >>conftest.$ac_ext | |
28402 | cat >>conftest.$ac_ext <<_ACEOF | |
28403 | /* end confdefs.h. */ | |
28404 | $ac_includes_default | |
28405 | #include <sql.h> | |
28406 | _ACEOF | |
28407 | rm -f conftest.$ac_objext | |
28408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28409 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28410 | ac_status=$? |
ac1cb8d3 VS |
28411 | grep -v '^ *+' conftest.er1 >conftest.err |
28412 | rm -f conftest.er1 | |
28413 | cat conftest.err >&5 | |
a848cd7e SC |
28414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28415 | (exit $ac_status); } && | |
9dd0f6c2 | 28416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28418 | (eval $ac_try) 2>&5 | |
28419 | ac_status=$? | |
28420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28421 | (exit $ac_status); }; } && | |
28422 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
28428 | ac_header_compiler=yes | |
28429 | else | |
28430 | echo "$as_me: failed program was:" >&5 | |
28431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28432 | ||
28433 | ac_header_compiler=no | |
28434 | fi | |
ac1cb8d3 | 28435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28436 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
28437 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28438 | ||
28439 | # Is the header present? | |
28440 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
28441 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
28442 | cat >conftest.$ac_ext <<_ACEOF | |
28443 | /* confdefs.h. */ | |
28444 | _ACEOF | |
28445 | cat confdefs.h >>conftest.$ac_ext | |
28446 | cat >>conftest.$ac_ext <<_ACEOF | |
28447 | /* end confdefs.h. */ | |
28448 | #include <sql.h> | |
28449 | _ACEOF | |
28450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28452 | ac_status=$? | |
28453 | grep -v '^ *+' conftest.er1 >conftest.err | |
28454 | rm -f conftest.er1 | |
28455 | cat conftest.err >&5 | |
28456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28457 | (exit $ac_status); } >/dev/null; then | |
28458 | if test -s conftest.err; then | |
28459 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 28460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
28461 | else |
28462 | ac_cpp_err= | |
28463 | fi | |
28464 | else | |
28465 | ac_cpp_err=yes | |
28466 | fi | |
28467 | if test -z "$ac_cpp_err"; then | |
28468 | ac_header_preproc=yes | |
28469 | else | |
28470 | echo "$as_me: failed program was:" >&5 | |
28471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28472 | ||
28473 | ac_header_preproc=no | |
28474 | fi | |
28475 | rm -f conftest.err conftest.$ac_ext | |
28476 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28477 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28478 | ||
28479 | # So? What about this header? | |
ac1cb8d3 VS |
28480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
28481 | yes:no: ) | |
a848cd7e SC |
28482 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
28483 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
28484 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
28485 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
28486 | ac_header_preproc=yes | |
a848cd7e | 28487 | ;; |
ac1cb8d3 | 28488 | no:yes:* ) |
a848cd7e SC |
28489 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
28490 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
28491 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
28492 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
28493 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
28494 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
28495 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
28496 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
28497 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
28498 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
28499 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
28500 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
28501 | ( |
28502 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28503 | ## ----------------------------------------- ## |
28504 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28505 | ## ----------------------------------------- ## | |
a848cd7e SC |
28506 | _ASBOX |
28507 | ) | | |
28508 | sed "s/^/$as_me: WARNING: /" >&2 | |
28509 | ;; | |
28510 | esac | |
28511 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
28512 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
28513 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28515 | else | |
28516 | ac_cv_header_sql_h=$ac_header_preproc | |
28517 | fi | |
28518 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
28519 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
28520 | ||
28521 | fi | |
28522 | if test $ac_cv_header_sql_h = yes; then | |
28523 | found_sql_h=1 | |
28524 | fi | |
28525 | ||
28526 | ||
28527 | if test "x$found_sql_h" = "x1" ; then | |
28528 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
28529 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
28530 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
28531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28532 | else | |
28533 | ac_check_lib_save_LIBS=$LIBS | |
28534 | LIBS="-liodbc $LIBS" | |
28535 | cat >conftest.$ac_ext <<_ACEOF | |
28536 | /* confdefs.h. */ | |
28537 | _ACEOF | |
28538 | cat confdefs.h >>conftest.$ac_ext | |
28539 | cat >>conftest.$ac_ext <<_ACEOF | |
28540 | /* end confdefs.h. */ | |
28541 | ||
28542 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28543 | #ifdef __cplusplus | |
28544 | extern "C" | |
28545 | #endif | |
28546 | /* We use char because int might match the return type of a gcc2 | |
28547 | builtin and then its argument prototype would still apply. */ | |
28548 | char SQLAllocEnv (); | |
28549 | int | |
28550 | main () | |
28551 | { | |
28552 | SQLAllocEnv (); | |
28553 | ; | |
28554 | return 0; | |
28555 | } | |
28556 | _ACEOF | |
28557 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28559 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28560 | ac_status=$? |
ac1cb8d3 VS |
28561 | grep -v '^ *+' conftest.er1 >conftest.err |
28562 | rm -f conftest.er1 | |
28563 | cat conftest.err >&5 | |
a848cd7e SC |
28564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28565 | (exit $ac_status); } && | |
9dd0f6c2 | 28566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28568 | (eval $ac_try) 2>&5 | |
28569 | ac_status=$? | |
28570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28571 | (exit $ac_status); }; } && | |
28572 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
28578 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
28579 | else | |
28580 | echo "$as_me: failed program was:" >&5 | |
28581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28582 | ||
28583 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
28584 | fi | |
ac1cb8d3 VS |
28585 | rm -f conftest.err conftest.$ac_objext \ |
28586 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28587 | LIBS=$ac_check_lib_save_LIBS |
28588 | fi | |
28589 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
28590 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
28591 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
28592 | ODBC_LINK=" -liodbc" | |
28593 | else | |
28594 | ||
28595 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
28596 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
28597 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
28598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28599 | else | |
28600 | ac_check_lib_save_LIBS=$LIBS | |
28601 | LIBS="-lunixodbc $LIBS" | |
28602 | cat >conftest.$ac_ext <<_ACEOF | |
28603 | /* confdefs.h. */ | |
28604 | _ACEOF | |
28605 | cat confdefs.h >>conftest.$ac_ext | |
28606 | cat >>conftest.$ac_ext <<_ACEOF | |
28607 | /* end confdefs.h. */ | |
28608 | ||
28609 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28610 | #ifdef __cplusplus | |
28611 | extern "C" | |
28612 | #endif | |
28613 | /* We use char because int might match the return type of a gcc2 | |
28614 | builtin and then its argument prototype would still apply. */ | |
28615 | char SQLAllocEnv (); | |
28616 | int | |
28617 | main () | |
28618 | { | |
28619 | SQLAllocEnv (); | |
28620 | ; | |
28621 | return 0; | |
28622 | } | |
28623 | _ACEOF | |
28624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28626 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28627 | ac_status=$? |
ac1cb8d3 VS |
28628 | grep -v '^ *+' conftest.er1 >conftest.err |
28629 | rm -f conftest.er1 | |
28630 | cat conftest.err >&5 | |
a848cd7e SC |
28631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28632 | (exit $ac_status); } && | |
9dd0f6c2 | 28633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28635 | (eval $ac_try) 2>&5 | |
28636 | ac_status=$? | |
28637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28638 | (exit $ac_status); }; } && | |
28639 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
28645 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
28646 | else | |
28647 | echo "$as_me: failed program was:" >&5 | |
28648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28649 | ||
28650 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
28651 | fi | |
ac1cb8d3 VS |
28652 | rm -f conftest.err conftest.$ac_objext \ |
28653 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28654 | LIBS=$ac_check_lib_save_LIBS |
28655 | fi | |
28656 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
28657 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
28658 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
28659 | ODBC_LINK=" -lunixodbc" | |
28660 | else | |
28661 | ||
28662 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
28663 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
28664 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
28665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28666 | else | |
28667 | ac_check_lib_save_LIBS=$LIBS | |
28668 | LIBS="-lodbc $LIBS" | |
28669 | cat >conftest.$ac_ext <<_ACEOF | |
28670 | /* confdefs.h. */ | |
28671 | _ACEOF | |
28672 | cat confdefs.h >>conftest.$ac_ext | |
28673 | cat >>conftest.$ac_ext <<_ACEOF | |
28674 | /* end confdefs.h. */ | |
28675 | ||
28676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28677 | #ifdef __cplusplus | |
28678 | extern "C" | |
28679 | #endif | |
28680 | /* We use char because int might match the return type of a gcc2 | |
28681 | builtin and then its argument prototype would still apply. */ | |
28682 | char SQLAllocEnv (); | |
28683 | int | |
28684 | main () | |
28685 | { | |
28686 | SQLAllocEnv (); | |
28687 | ; | |
28688 | return 0; | |
28689 | } | |
28690 | _ACEOF | |
28691 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28693 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28694 | ac_status=$? |
ac1cb8d3 VS |
28695 | grep -v '^ *+' conftest.er1 >conftest.err |
28696 | rm -f conftest.er1 | |
28697 | cat conftest.err >&5 | |
a848cd7e SC |
28698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28699 | (exit $ac_status); } && | |
9dd0f6c2 | 28700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28702 | (eval $ac_try) 2>&5 | |
28703 | ac_status=$? | |
28704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28705 | (exit $ac_status); }; } && | |
28706 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
28712 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
28713 | else | |
28714 | echo "$as_me: failed program was:" >&5 | |
28715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28716 | ||
28717 | ac_cv_lib_odbc_SQLAllocEnv=no | |
28718 | fi | |
ac1cb8d3 VS |
28719 | rm -f conftest.err conftest.$ac_objext \ |
28720 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28721 | LIBS=$ac_check_lib_save_LIBS |
28722 | fi | |
28723 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
28724 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
28725 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
28726 | ODBC_LINK=" -lodbc" | |
28727 | fi | |
28728 | ||
28729 | ||
28730 | fi | |
28731 | ||
28732 | ||
28733 | fi | |
28734 | ||
28735 | fi | |
28736 | if test "x$ODBC_LINK" = "x" ; then | |
28737 | if test "$wxUSE_ODBC" = "sys" ; then | |
28738 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
28739 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
28740 | { (exit 1); exit 1; }; } | |
28741 | else | |
28742 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
28743 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
28744 | wxUSE_ODBC=builtin | |
28745 | fi | |
28746 | else | |
28747 | wxUSE_ODBC=sys | |
28748 | fi | |
28749 | fi | |
a848cd7e | 28750 | |
2da0c077 RD |
28751 | if test "$wxUSE_ODBC" = "builtin" ; then |
28752 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
28753 | #define wxUSE_BUILTIN_IODBC 1 |
28754 | _ACEOF | |
28755 | ||
a848cd7e SC |
28756 | fi |
28757 | fi | |
28758 | ||
2da0c077 RD |
28759 | if test "$wxUSE_ODBC" != "no" ; then |
28760 | cat >>confdefs.h <<\_ACEOF | |
28761 | #define wxUSE_ODBC 1 | |
28762 | _ACEOF | |
28763 | ||
28764 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
28765 | ||
28766 | WXODBCFLAG="-D_IODBC_" | |
28767 | fi | |
a848cd7e | 28768 | |
01cb68df | 28769 | |
a848cd7e | 28770 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 28771 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
28772 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
28773 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
28774 | ||
28775 | ac_find_libraries= | |
28776 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28777 | do | |
28778 | for ac_extension in a so sl dylib; do | |
28779 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
28780 | ac_find_libraries=$ac_dir | |
28781 | break 2 | |
28782 | fi | |
28783 | done | |
28784 | done | |
28785 | ||
28786 | if test "$ac_find_libraries" != "" ; then | |
28787 | ||
28788 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28789 | result=$? | |
28790 | if test $result = 0; then | |
28791 | ac_path_to_link="" | |
28792 | else | |
28793 | ac_path_to_link=" -L$ac_find_libraries" | |
28794 | fi | |
28795 | ||
28796 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28797 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
28798 | fi | |
28799 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
28800 | echo "$as_me:$LINENO: result: yes" >&5 | |
28801 | echo "${ECHO_T}yes" >&6 | |
28802 | ||
28803 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
28804 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
28805 | ||
28806 | ac_find_libraries= | |
28807 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28808 | do | |
28809 | for ac_extension in a so sl dylib; do | |
28810 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
28811 | ac_find_libraries=$ac_dir | |
28812 | break 2 | |
28813 | fi | |
28814 | done | |
28815 | done | |
28816 | ||
28817 | if test "$ac_find_libraries" != "" ; then | |
28818 | echo "$as_me:$LINENO: result: yes" >&5 | |
28819 | echo "${ECHO_T}yes" >&6 | |
28820 | ||
28821 | for ac_header in X11/extensions/xf86vmode.h | |
28822 | do | |
28823 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28824 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28828 | else | |
28829 | cat >conftest.$ac_ext <<_ACEOF | |
28830 | /* confdefs.h. */ | |
28831 | _ACEOF | |
28832 | cat confdefs.h >>conftest.$ac_ext | |
28833 | cat >>conftest.$ac_ext <<_ACEOF | |
28834 | /* end confdefs.h. */ | |
28835 | ||
28836 | #if HAVE_X11_XLIB_H | |
28837 | #include <X11/Xlib.h> | |
28838 | #endif | |
28839 | ||
28840 | ||
28841 | #include <$ac_header> | |
28842 | _ACEOF | |
28843 | rm -f conftest.$ac_objext | |
28844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28845 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28846 | ac_status=$? |
ac1cb8d3 VS |
28847 | grep -v '^ *+' conftest.er1 >conftest.err |
28848 | rm -f conftest.er1 | |
28849 | cat conftest.err >&5 | |
a848cd7e SC |
28850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28851 | (exit $ac_status); } && | |
9dd0f6c2 | 28852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28854 | (eval $ac_try) 2>&5 | |
28855 | ac_status=$? | |
28856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28857 | (exit $ac_status); }; } && | |
28858 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
28864 | eval "$as_ac_Header=yes" | |
28865 | else | |
28866 | echo "$as_me: failed program was:" >&5 | |
28867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28868 | ||
28869 | eval "$as_ac_Header=no" | |
28870 | fi | |
ac1cb8d3 | 28871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28872 | fi |
28873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28874 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28875 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
28876 | cat >>confdefs.h <<_ACEOF | |
28877 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28878 | _ACEOF | |
28879 | ||
28880 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
28881 | ||
28882 | fi | |
28883 | ||
28884 | done | |
28885 | ||
28886 | else | |
28887 | echo "$as_me:$LINENO: result: no" >&5 | |
28888 | echo "${ECHO_T}no" >&6 | |
28889 | fi | |
28890 | ||
28891 | else | |
28892 | echo "$as_me:$LINENO: result: no" >&5 | |
28893 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
28894 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
28895 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
28896 | wxUSE_DISPLAY="no" |
28897 | fi | |
01cb68df RG |
28898 | elif test "$wxUSE_MSW" = 1; then |
28899 | ||
28900 | ||
28901 | for ac_header in multimon.h ddraw.h | |
28902 | do | |
28903 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 28904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
28905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
28906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 28908 | else |
5294a27e | 28909 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
28910 | /* confdefs.h. */ |
28911 | _ACEOF | |
28912 | cat confdefs.h >>conftest.$ac_ext | |
28913 | cat >>conftest.$ac_ext <<_ACEOF | |
28914 | /* end confdefs.h. */ | |
5294a27e VZ |
28915 | #include <windows.h> |
28916 | ||
01cb68df RG |
28917 | #include <$ac_header> |
28918 | _ACEOF | |
28919 | rm -f conftest.$ac_objext | |
28920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28921 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 28922 | ac_status=$? |
ac1cb8d3 VS |
28923 | grep -v '^ *+' conftest.er1 >conftest.err |
28924 | rm -f conftest.er1 | |
28925 | cat conftest.err >&5 | |
01cb68df RG |
28926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28927 | (exit $ac_status); } && | |
9dd0f6c2 | 28928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28930 | (eval $ac_try) 2>&5 | |
28931 | ac_status=$? | |
28932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28933 | (exit $ac_status); }; } && | |
28934 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
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); }; }; then | |
5294a27e | 28940 | eval "$as_ac_Header=yes" |
01cb68df RG |
28941 | else |
28942 | echo "$as_me: failed program was:" >&5 | |
28943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28944 | ||
5294a27e | 28945 | eval "$as_ac_Header=no" |
01cb68df | 28946 | fi |
ac1cb8d3 | 28947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
28948 | fi |
28949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
28951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28952 | cat >>confdefs.h <<_ACEOF | |
28953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28954 | _ACEOF | |
28955 | ||
28956 | else | |
28957 | ||
5294a27e VZ |
28958 | wxUSE_DISPLAY="no" |
28959 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 28960 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
28961 | |
28962 | fi | |
28963 | ||
28964 | done | |
28965 | ||
a848cd7e SC |
28966 | fi |
28967 | fi | |
28968 | ||
28969 | ||
28970 | USE_OPENGL=0 | |
28971 | if test "$wxUSE_OPENGL" = "yes"; then | |
28972 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
28973 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
28974 | elif test "$wxUSE_MSW" = 1; then | |
28975 | OPENGL_LIBS="-lopengl32 -lglu32" | |
28976 | else | |
28977 | ||
28978 | ||
28979 | ac_find_includes= | |
28980 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28981 | do | |
28982 | if test -f "$ac_dir/GL/gl.h"; then | |
28983 | ac_find_includes=$ac_dir | |
28984 | break | |
28985 | fi | |
28986 | done | |
28987 | ||
28988 | if test "$ac_find_includes" != "" ; then | |
28989 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28990 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28991 | ||
28992 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28993 | ac_path_to_include="" | |
28994 | else | |
28995 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
28996 | result=$? | |
28997 | if test $result = 0; then | |
28998 | ac_path_to_include="" | |
28999 | else | |
29000 | ac_path_to_include=" -I$ac_find_includes" | |
29001 | fi | |
29002 | fi | |
29003 | ||
29004 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
29005 | fi | |
29006 | ||
29007 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29008 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
29009 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
29010 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29012 | fi | |
29013 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
29014 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
29015 | else | |
29016 | # Is the header compilable? | |
29017 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
29018 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
29019 | cat >conftest.$ac_ext <<_ACEOF | |
29020 | /* confdefs.h. */ | |
29021 | _ACEOF | |
29022 | cat confdefs.h >>conftest.$ac_ext | |
29023 | cat >>conftest.$ac_ext <<_ACEOF | |
29024 | /* end confdefs.h. */ | |
29025 | $ac_includes_default | |
29026 | #include <GL/gl.h> | |
29027 | _ACEOF | |
29028 | rm -f conftest.$ac_objext | |
29029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29030 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29031 | ac_status=$? |
ac1cb8d3 VS |
29032 | grep -v '^ *+' conftest.er1 >conftest.err |
29033 | rm -f conftest.er1 | |
29034 | cat conftest.err >&5 | |
a848cd7e SC |
29035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29036 | (exit $ac_status); } && | |
9dd0f6c2 | 29037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29039 | (eval $ac_try) 2>&5 | |
29040 | ac_status=$? | |
29041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29042 | (exit $ac_status); }; } && | |
29043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
29049 | ac_header_compiler=yes | |
29050 | else | |
29051 | echo "$as_me: failed program was:" >&5 | |
29052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29053 | ||
29054 | ac_header_compiler=no | |
29055 | fi | |
ac1cb8d3 | 29056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29057 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29058 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29059 | ||
29060 | # Is the header present? | |
29061 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
29062 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
29063 | cat >conftest.$ac_ext <<_ACEOF | |
29064 | /* confdefs.h. */ | |
29065 | _ACEOF | |
29066 | cat confdefs.h >>conftest.$ac_ext | |
29067 | cat >>conftest.$ac_ext <<_ACEOF | |
29068 | /* end confdefs.h. */ | |
29069 | #include <GL/gl.h> | |
29070 | _ACEOF | |
29071 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29072 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29073 | ac_status=$? | |
29074 | grep -v '^ *+' conftest.er1 >conftest.err | |
29075 | rm -f conftest.er1 | |
29076 | cat conftest.err >&5 | |
29077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29078 | (exit $ac_status); } >/dev/null; then | |
29079 | if test -s conftest.err; then | |
29080 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 29081 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
29082 | else |
29083 | ac_cpp_err= | |
29084 | fi | |
29085 | else | |
29086 | ac_cpp_err=yes | |
29087 | fi | |
29088 | if test -z "$ac_cpp_err"; then | |
29089 | ac_header_preproc=yes | |
29090 | else | |
29091 | echo "$as_me: failed program was:" >&5 | |
29092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29093 | ||
29094 | ac_header_preproc=no | |
29095 | fi | |
29096 | rm -f conftest.err conftest.$ac_ext | |
29097 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29098 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29099 | ||
29100 | # So? What about this header? | |
ac1cb8d3 VS |
29101 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
29102 | yes:no: ) | |
a848cd7e SC |
29103 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
29104 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
29105 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
29106 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
29107 | ac_header_preproc=yes | |
a848cd7e | 29108 | ;; |
ac1cb8d3 | 29109 | no:yes:* ) |
a848cd7e SC |
29110 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
29111 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
29112 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
29113 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
29114 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
29115 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
29116 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
29117 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
29118 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
29119 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
29120 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
29121 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
29122 | ( |
29123 | cat <<\_ASBOX | |
ac1cb8d3 VS |
29124 | ## ----------------------------------------- ## |
29125 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29126 | ## ----------------------------------------- ## | |
a848cd7e SC |
29127 | _ASBOX |
29128 | ) | | |
29129 | sed "s/^/$as_me: WARNING: /" >&2 | |
29130 | ;; | |
29131 | esac | |
29132 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
29133 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
29134 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29136 | else | |
29137 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
29138 | fi | |
29139 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
29140 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
29141 | ||
29142 | fi | |
29143 | if test $ac_cv_header_GL_gl_h = yes; then | |
29144 | ||
29145 | found_gl=0 | |
29146 | ||
29147 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
29148 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
29149 | ||
29150 | ac_find_libraries= | |
29151 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29152 | do | |
29153 | for ac_extension in a so sl dylib; do | |
29154 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
29155 | ac_find_libraries=$ac_dir | |
29156 | break 2 | |
29157 | fi | |
29158 | done | |
29159 | done | |
29160 | ||
29161 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
29162 | echo "$as_me:$LINENO: result: yes" >&5 |
29163 | echo "${ECHO_T}yes" >&6 | |
29164 | ||
a848cd7e SC |
29165 | |
29166 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29167 | result=$? | |
29168 | if test $result = 0; then | |
29169 | ac_path_to_link="" | |
29170 | else | |
29171 | ac_path_to_link=" -L$ac_find_libraries" | |
29172 | fi | |
29173 | ||
29174 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
29175 | LDFLAGS_GL="$ac_path_to_link" | |
29176 | fi | |
29177 | ||
69120ee4 VZ |
29178 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
29179 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e SC |
29180 | |
29181 | ac_find_libraries= | |
29182 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29183 | do | |
29184 | for ac_extension in a so sl dylib; do | |
29185 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
29186 | ac_find_libraries=$ac_dir | |
29187 | break 2 | |
29188 | fi | |
29189 | done | |
29190 | done | |
29191 | ||
29192 | if test "$ac_find_libraries" != "" ; then | |
29193 | ||
29194 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29195 | result=$? | |
29196 | if test $result = 0; then | |
29197 | ac_path_to_link="" | |
29198 | else | |
29199 | ac_path_to_link=" -L$ac_find_libraries" | |
29200 | fi | |
29201 | ||
29202 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
29203 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
29204 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
29205 | fi | |
29206 | ||
29207 | found_gl=1 | |
29208 | OPENGL_LIBS="-lGL -lGLU" | |
29209 | echo "$as_me:$LINENO: result: yes" >&5 | |
29210 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
29211 | else |
29212 | echo "$as_me:$LINENO: result: no" >&5 | |
29213 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 29214 | fi |
69120ee4 VZ |
29215 | else |
29216 | echo "$as_me:$LINENO: result: no" >&5 | |
29217 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
29218 | fi |
29219 | ||
29220 | if test "$found_gl" != 1; then | |
a848cd7e SC |
29221 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
29222 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
29223 | ||
29224 | ac_find_libraries= | |
29225 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29226 | do | |
29227 | for ac_extension in a so sl dylib; do | |
29228 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
29229 | ac_find_libraries=$ac_dir | |
29230 | break 2 | |
29231 | fi | |
29232 | done | |
29233 | done | |
29234 | ||
29235 | if test "$ac_find_libraries" != "" ; then | |
29236 | ||
29237 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29238 | result=$? | |
29239 | if test $result = 0; then | |
29240 | ac_path_to_link="" | |
29241 | else | |
29242 | ac_path_to_link=" -L$ac_find_libraries" | |
29243 | fi | |
29244 | ||
29245 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
29246 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
29247 | echo "$as_me:$LINENO: result: yes" >&5 | |
29248 | echo "${ECHO_T}yes" >&6 | |
29249 | else | |
29250 | echo "$as_me:$LINENO: result: no" >&5 | |
29251 | echo "${ECHO_T}no" >&6 | |
29252 | fi | |
29253 | fi | |
29254 | ||
29255 | fi | |
29256 | ||
29257 | ||
29258 | ||
29259 | if test "x$OPENGL_LIBS" = "x"; then | |
29260 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
29261 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
29262 | { (exit 1); exit 1; }; } | |
29263 | fi | |
29264 | fi | |
29265 | ||
29266 | if test "$wxUSE_OPENGL" = "yes"; then | |
29267 | USE_OPENGL=1 | |
29268 | cat >>confdefs.h <<\_ACEOF | |
29269 | #define wxUSE_OPENGL 1 | |
29270 | _ACEOF | |
29271 | ||
29272 | cat >>confdefs.h <<\_ACEOF | |
29273 | #define wxUSE_GLCANVAS 1 | |
29274 | _ACEOF | |
29275 | ||
29276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
29277 | fi | |
29278 | fi | |
29279 | ||
a848cd7e SC |
29280 | |
29281 | if test -n "$TOOLKIT" ; then | |
29282 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
29283 | fi | |
29284 | ||
a848cd7e SC |
29285 | |
29286 | ||
29287 | if test "$wxUSE_SHARED" = "yes"; then | |
29288 | case "${host}" in | |
29289 | *-pc-msdosdjgpp ) | |
29290 | wxUSE_SHARED=no | |
29291 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
29292 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
29293 | ;; | |
29294 | esac | |
29295 | fi | |
29296 | ||
a848cd7e | 29297 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
29298 | |
29299 | ||
29300 | found_versioning=no | |
29301 | ||
29302 | ||
29303 | if test $found_versioning = no ; then | |
29304 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
29305 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
29306 | if test "${wx_cv_version_script+set}" = set; then | |
29307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29308 | else | |
29309 | ||
29310 | echo "VER_1 { *; };" >conftest.sym | |
29311 | echo "int main() { return 0; }" >conftest.cpp | |
29312 | ||
29313 | if { ac_try=' | |
29314 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29315 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
29316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29317 | (eval $ac_try) 2>&5 | |
29318 | ac_status=$? | |
29319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29320 | (exit $ac_status); }; } ; then | |
29321 | if test -s conftest.stderr ; then | |
29322 | wx_cv_version_script=no | |
29323 | else | |
29324 | wx_cv_version_script=yes | |
29325 | fi | |
29326 | else | |
29327 | wx_cv_version_script=no | |
29328 | fi | |
29329 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
29330 | ||
29331 | fi | |
29332 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
29333 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
29334 | if test $wx_cv_version_script = yes ; then | |
29335 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
29336 | fi | |
29337 | fi | |
29338 | ||
29339 | ||
29340 | case "${host}" in | |
29341 | *-*-linux* | *-*-gnu* ) | |
29342 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 29343 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
29344 | ;; |
29345 | ||
29346 | *-*-solaris2* ) | |
29347 | if test "$GCC" = yes ; then | |
29348 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
29349 | ||
29350 | saveLdflags="$LDFLAGS" | |
29351 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
29352 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
29353 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
29354 | cat >conftest.$ac_ext <<_ACEOF | |
29355 | /* confdefs.h. */ | |
29356 | _ACEOF | |
29357 | cat confdefs.h >>conftest.$ac_ext | |
29358 | cat >>conftest.$ac_ext <<_ACEOF | |
29359 | /* end confdefs.h. */ | |
29360 | ||
29361 | int | |
29362 | main () | |
29363 | { | |
29364 | ||
29365 | ; | |
29366 | return 0; | |
29367 | } | |
29368 | _ACEOF | |
29369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29371 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29372 | ac_status=$? |
ac1cb8d3 VS |
29373 | grep -v '^ *+' conftest.er1 >conftest.err |
29374 | rm -f conftest.er1 | |
29375 | cat conftest.err >&5 | |
a848cd7e SC |
29376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29377 | (exit $ac_status); } && | |
9dd0f6c2 | 29378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29380 | (eval $ac_try) 2>&5 | |
29381 | ac_status=$? | |
29382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29383 | (exit $ac_status); }; } && | |
29384 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29386 | (eval $ac_try) 2>&5 | |
29387 | ac_status=$? | |
29388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29389 | (exit $ac_status); }; }; then | |
29390 | ||
29391 | echo "$as_me:$LINENO: result: yes" >&5 | |
29392 | echo "${ECHO_T}yes" >&6 | |
29393 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 29394 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
29395 | |
29396 | else | |
29397 | echo "$as_me: failed program was:" >&5 | |
29398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29399 | ||
29400 | ||
29401 | echo "$as_me:$LINENO: result: no" >&5 | |
29402 | echo "${ECHO_T}no" >&6 | |
29403 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
29404 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
29405 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
29406 | cat >conftest.$ac_ext <<_ACEOF | |
29407 | /* confdefs.h. */ | |
29408 | _ACEOF | |
29409 | cat confdefs.h >>conftest.$ac_ext | |
29410 | cat >>conftest.$ac_ext <<_ACEOF | |
29411 | /* end confdefs.h. */ | |
29412 | ||
29413 | int | |
29414 | main () | |
29415 | { | |
29416 | ||
29417 | ; | |
29418 | return 0; | |
29419 | } | |
29420 | _ACEOF | |
29421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29423 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29424 | ac_status=$? |
ac1cb8d3 VS |
29425 | grep -v '^ *+' conftest.er1 >conftest.err |
29426 | rm -f conftest.er1 | |
29427 | cat conftest.err >&5 | |
a848cd7e SC |
29428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29429 | (exit $ac_status); } && | |
9dd0f6c2 | 29430 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29432 | (eval $ac_try) 2>&5 | |
29433 | ac_status=$? | |
29434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29435 | (exit $ac_status); }; } && | |
29436 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29438 | (eval $ac_try) 2>&5 | |
29439 | ac_status=$? | |
29440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29441 | (exit $ac_status); }; }; then | |
29442 | ||
ffa0583f | 29443 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 29444 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
29445 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
29446 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
29447 | ||
a848cd7e SC |
29448 | else |
29449 | echo "$as_me: failed program was:" >&5 | |
29450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29451 | ||
29452 | ||
29453 | echo "$as_me:$LINENO: result: no" >&5 | |
29454 | echo "${ECHO_T}no" >&6 | |
29455 | ||
29456 | fi | |
ac1cb8d3 VS |
29457 | rm -f conftest.err conftest.$ac_objext \ |
29458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29459 | |
29460 | fi | |
ac1cb8d3 VS |
29461 | rm -f conftest.err conftest.$ac_objext \ |
29462 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29463 | LDFLAGS="$saveLdflags" |
29464 | else | |
a848cd7e | 29465 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 29466 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
29467 | fi |
29468 | ;; | |
29469 | ||
29470 | powerpc-*-darwin* ) | |
29471 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
29472 | cat <<EOF >change-install-names | |
29473 | #!/bin/sh | |
29474 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
29475 | inst_cmd="install_name_tool " | |
29476 | for i in \${libnames} ; do | |
29477 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
29478 | done | |
29479 | \${inst_cmd} \${3} | |
29480 | EOF | |
29481 | chmod +x change-install-names | |
29482 | ;; | |
29483 | ||
29484 | *-*-cygwin* | *-*-mingw32* ) | |
29485 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
29486 | ;; | |
29487 | ||
81f90336 MW |
29488 | *-*-hpux* ) |
29489 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
29490 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
29491 | ;; | |
29492 | ||
a848cd7e | 29493 | esac |
ceec2216 | 29494 | |
ffa0583f RL |
29495 | if test $wxUSE_RPATH = "no"; then |
29496 | SAMPLES_RPATH_FLAG='' | |
29497 | SAMPLES_RPATH_POSTLINK='' | |
29498 | WXCONFIG_RPATH='' | |
29499 | fi | |
29500 | ||
29501 | SHARED=1 | |
29502 | ||
29503 | else | |
29504 | ||
ceec2216 RL |
29505 | config_linkage_component="-static" |
29506 | SHARED=0 | |
ffa0583f | 29507 | |
ceec2216 | 29508 | fi |
a848cd7e | 29509 | |
a848cd7e | 29510 | |
ceec2216 RL |
29511 | UNICODE=0 |
29512 | lib_unicode_suffix= | |
29513 | WX_CHARTYPE="ansi" | |
29514 | if test "$wxUSE_UNICODE" = "yes"; then | |
29515 | lib_unicode_suffix=u | |
29516 | WX_CHARTYPE="unicode" | |
29517 | UNICODE=1 | |
a848cd7e SC |
29518 | fi |
29519 | ||
ceec2216 RL |
29520 | lib_debug_suffix= |
29521 | WX_DEBUGTYPE="release" | |
29522 | DEBUG_FLAG=0 | |
29523 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
29524 | lib_debug_suffix=d | |
29525 | WX_DEBUGTYPE="debug" | |
29526 | DEBUG_FLAG=1 | |
29527 | fi | |
a848cd7e | 29528 | |
ceec2216 RL |
29529 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
29530 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 29531 | |
ceec2216 RL |
29532 | DEBUG_INFO=0 |
29533 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
29534 | DEBUG_INFO=1 | |
29535 | fi | |
a848cd7e | 29536 | |
ceec2216 | 29537 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 29538 | |
ceec2216 | 29539 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 29540 | |
ceec2216 | 29541 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 29542 | |
ceec2216 RL |
29543 | if test "$cross_compiling" = "yes"; then |
29544 | HOST_SUFFIX="-$host_alias" | |
29545 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
29546 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
29547 | fi |
29548 | ||
dd21ced8 | 29549 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
29550 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
29551 | ||
29552 | ||
29553 | ||
1d1af5ea DE |
29554 | if test "$wxUSE_COCOA" = 1; then |
29555 | ||
29556 | ||
29557 | ac_ext=c | |
29558 | ac_cpp='$CPP $CPPFLAGS' | |
29559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29562 | ||
29563 | ac_ext=m | |
29564 | ||
29565 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
29566 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
29567 | cat >conftest.$ac_ext <<_ACEOF | |
29568 | /* confdefs.h. */ | |
29569 | _ACEOF | |
29570 | cat confdefs.h >>conftest.$ac_ext | |
29571 | cat >>conftest.$ac_ext <<_ACEOF | |
29572 | /* end confdefs.h. */ | |
29573 | #include <AppKit/NSEvent.h> | |
29574 | #include <CoreFoundation/CoreFoundation.h> | |
29575 | ||
29576 | int | |
29577 | main () | |
29578 | { | |
29579 | ||
29580 | ; | |
29581 | return 0; | |
29582 | } | |
29583 | _ACEOF | |
29584 | rm -f conftest.$ac_objext | |
29585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29586 | (eval $ac_compile) 2>conftest.er1 | |
29587 | ac_status=$? | |
29588 | grep -v '^ *+' conftest.er1 >conftest.err | |
29589 | rm -f conftest.er1 | |
29590 | cat conftest.err >&5 | |
29591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29592 | (exit $ac_status); } && | |
9dd0f6c2 | 29593 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
29594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29595 | (eval $ac_try) 2>&5 | |
29596 | ac_status=$? | |
29597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29598 | (exit $ac_status); }; } && | |
29599 | { ac_try='test -s conftest.$ac_objext' | |
29600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29601 | (eval $ac_try) 2>&5 | |
29602 | ac_status=$? | |
29603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29604 | (exit $ac_status); }; }; then | |
29605 | echo "$as_me:$LINENO: result: no" >&5 | |
29606 | echo "${ECHO_T}no" >&6 | |
29607 | else | |
29608 | echo "$as_me: failed program was:" >&5 | |
29609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29610 | ||
29611 | echo "$as_me:$LINENO: result: yes" >&5 | |
29612 | echo "${ECHO_T}yes" >&6 | |
29613 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
29614 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
29615 | cat >conftest.$ac_ext <<_ACEOF | |
29616 | /* confdefs.h. */ | |
29617 | _ACEOF | |
29618 | cat confdefs.h >>conftest.$ac_ext | |
29619 | cat >>conftest.$ac_ext <<_ACEOF | |
29620 | /* end confdefs.h. */ | |
29621 | #define __Point__ 1 | |
29622 | #include <AppKit/NSEvent.h> | |
29623 | #include <CoreFoundation/CoreFoundation.h> | |
29624 | ||
29625 | int | |
29626 | main () | |
29627 | { | |
29628 | ||
29629 | ; | |
29630 | return 0; | |
29631 | } | |
29632 | _ACEOF | |
29633 | rm -f conftest.$ac_objext | |
29634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29635 | (eval $ac_compile) 2>conftest.er1 | |
29636 | ac_status=$? | |
29637 | grep -v '^ *+' conftest.er1 >conftest.err | |
29638 | rm -f conftest.er1 | |
29639 | cat conftest.err >&5 | |
29640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29641 | (exit $ac_status); } && | |
9dd0f6c2 | 29642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
29643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29644 | (eval $ac_try) 2>&5 | |
29645 | ac_status=$? | |
29646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29647 | (exit $ac_status); }; } && | |
29648 | { ac_try='test -s conftest.$ac_objext' | |
29649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29650 | (eval $ac_try) 2>&5 | |
29651 | ac_status=$? | |
29652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29653 | (exit $ac_status); }; }; then | |
29654 | echo "$as_me:$LINENO: result: yes" >&5 | |
29655 | echo "${ECHO_T}yes" >&6 | |
29656 | cat >>confdefs.h <<\_ACEOF | |
29657 | #define __Point__ 1 | |
29658 | _ACEOF | |
29659 | ||
29660 | ||
29661 | else | |
29662 | echo "$as_me: failed program was:" >&5 | |
29663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29664 | ||
29665 | { { echo "$as_me:$LINENO: error: no | |
29666 | See \`config.log' for more details." >&5 | |
29667 | echo "$as_me: error: no | |
29668 | See \`config.log' for more details." >&2;} | |
29669 | { (exit 1); exit 1; }; } | |
29670 | ||
29671 | fi | |
29672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29673 | ||
29674 | fi | |
29675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29676 | ac_ext=c | |
29677 | ac_cpp='$CPP $CPPFLAGS' | |
29678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29681 | ||
29682 | fi | |
29683 | ||
a848cd7e | 29684 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
29685 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
29686 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 29687 | |
a848cd7e | 29688 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
29689 | |
29690 | # Extract the first word of "Rez", so it can be a program name with args. | |
29691 | set dummy Rez; ac_word=$2 | |
29692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29694 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
29695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29696 | else | |
29697 | if test -n "$RESCOMP"; then | |
29698 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
29699 | else | |
29700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29701 | for as_dir in $PATH | |
29702 | do | |
29703 | IFS=$as_save_IFS | |
29704 | test -z "$as_dir" && as_dir=. | |
29705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29707 | ac_cv_prog_RESCOMP="Rez" | |
29708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29709 | break 2 | |
29710 | fi | |
29711 | done | |
29712 | done | |
29713 | ||
29714 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
29715 | fi | |
29716 | fi | |
29717 | RESCOMP=$ac_cv_prog_RESCOMP | |
29718 | if test -n "$RESCOMP"; then | |
29719 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
29720 | echo "${ECHO_T}$RESCOMP" >&6 | |
29721 | else | |
29722 | echo "$as_me:$LINENO: result: no" >&5 | |
29723 | echo "${ECHO_T}no" >&6 | |
29724 | fi | |
29725 | ||
29726 | # Extract the first word of "DeRez", so it can be a program name with args. | |
29727 | set dummy DeRez; ac_word=$2 | |
29728 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29730 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
29731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29732 | else | |
29733 | if test -n "$DEREZ"; then | |
29734 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
29735 | else | |
29736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29737 | for as_dir in $PATH | |
29738 | do | |
29739 | IFS=$as_save_IFS | |
29740 | test -z "$as_dir" && as_dir=. | |
29741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29742 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29743 | ac_cv_prog_DEREZ="DeRez" | |
29744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29745 | break 2 | |
29746 | fi | |
29747 | done | |
29748 | done | |
29749 | ||
29750 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
29751 | fi | |
29752 | fi | |
29753 | DEREZ=$ac_cv_prog_DEREZ | |
29754 | if test -n "$DEREZ"; then | |
29755 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
29756 | echo "${ECHO_T}$DEREZ" >&6 | |
29757 | else | |
29758 | echo "$as_me:$LINENO: result: no" >&5 | |
29759 | echo "${ECHO_T}no" >&6 | |
29760 | fi | |
29761 | ||
29762 | # Extract the first word of "SetFile", so it can be a program name with args. | |
29763 | set dummy SetFile; ac_word=$2 | |
29764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29766 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
29767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29768 | else | |
29769 | if test -n "$SETFILE"; then | |
29770 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
29771 | else | |
29772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29773 | for as_dir in $PATH | |
29774 | do | |
29775 | IFS=$as_save_IFS | |
29776 | test -z "$as_dir" && as_dir=. | |
29777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29778 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29779 | ac_cv_prog_SETFILE="SetFile" | |
29780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29781 | break 2 | |
29782 | fi | |
29783 | done | |
29784 | done | |
29785 | ||
29786 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
29787 | fi | |
29788 | fi | |
29789 | SETFILE=$ac_cv_prog_SETFILE | |
29790 | if test -n "$SETFILE"; then | |
29791 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
29792 | echo "${ECHO_T}$SETFILE" >&6 | |
29793 | else | |
29794 | echo "$as_me:$LINENO: result: no" >&5 | |
29795 | echo "${ECHO_T}no" >&6 | |
29796 | fi | |
29797 | ||
29798 | ||
29799 | MACSETFILE="\$(SETFILE)" | |
29800 | ||
29801 | if test "$wxUSE_MAC" = 1; then | |
1a79f136 | 29802 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e | 29803 | |
1a79f136 | 29804 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e SC |
29805 | else |
29806 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
29807 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
29808 | fi | |
29809 | else | |
ffa0583f RL |
29810 | MACSETFILE="@true" |
29811 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
29812 | |
29813 | if test "$wxUSE_PM" = 1; then | |
29814 | MACRESCOMP="emxbind -ep" | |
29815 | else | |
ffa0583f | 29816 | MACRESCOMP="@true" |
a848cd7e SC |
29817 | fi |
29818 | fi | |
29819 | ||
29820 | ||
29821 | ||
29822 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
29823 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
29824 | if test "${ac_cv_type_mode_t+set}" = set; then | |
29825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29826 | else | |
29827 | cat >conftest.$ac_ext <<_ACEOF | |
29828 | /* confdefs.h. */ | |
29829 | _ACEOF | |
29830 | cat confdefs.h >>conftest.$ac_ext | |
29831 | cat >>conftest.$ac_ext <<_ACEOF | |
29832 | /* end confdefs.h. */ | |
29833 | $ac_includes_default | |
29834 | int | |
29835 | main () | |
29836 | { | |
29837 | if ((mode_t *) 0) | |
29838 | return 0; | |
29839 | if (sizeof (mode_t)) | |
29840 | return 0; | |
29841 | ; | |
29842 | return 0; | |
29843 | } | |
29844 | _ACEOF | |
29845 | rm -f conftest.$ac_objext | |
29846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29848 | ac_status=$? |
ac1cb8d3 VS |
29849 | grep -v '^ *+' conftest.er1 >conftest.err |
29850 | rm -f conftest.er1 | |
29851 | cat conftest.err >&5 | |
a848cd7e SC |
29852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29853 | (exit $ac_status); } && | |
9dd0f6c2 | 29854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29856 | (eval $ac_try) 2>&5 | |
29857 | ac_status=$? | |
29858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29859 | (exit $ac_status); }; } && | |
29860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29862 | (eval $ac_try) 2>&5 | |
29863 | ac_status=$? | |
29864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29865 | (exit $ac_status); }; }; then | |
29866 | ac_cv_type_mode_t=yes | |
29867 | else | |
29868 | echo "$as_me: failed program was:" >&5 | |
29869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29870 | ||
29871 | ac_cv_type_mode_t=no | |
29872 | fi | |
ac1cb8d3 | 29873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29874 | fi |
29875 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
29876 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
29877 | if test $ac_cv_type_mode_t = yes; then | |
29878 | : | |
29879 | else | |
29880 | ||
29881 | cat >>confdefs.h <<_ACEOF | |
29882 | #define mode_t int | |
29883 | _ACEOF | |
29884 | ||
29885 | fi | |
29886 | ||
29887 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
29888 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
29889 | if test "${ac_cv_type_off_t+set}" = set; then | |
29890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29891 | else | |
29892 | cat >conftest.$ac_ext <<_ACEOF | |
29893 | /* confdefs.h. */ | |
29894 | _ACEOF | |
29895 | cat confdefs.h >>conftest.$ac_ext | |
29896 | cat >>conftest.$ac_ext <<_ACEOF | |
29897 | /* end confdefs.h. */ | |
29898 | $ac_includes_default | |
29899 | int | |
29900 | main () | |
29901 | { | |
29902 | if ((off_t *) 0) | |
29903 | return 0; | |
29904 | if (sizeof (off_t)) | |
29905 | return 0; | |
29906 | ; | |
29907 | return 0; | |
29908 | } | |
29909 | _ACEOF | |
29910 | rm -f conftest.$ac_objext | |
29911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29912 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29913 | ac_status=$? |
ac1cb8d3 VS |
29914 | grep -v '^ *+' conftest.er1 >conftest.err |
29915 | rm -f conftest.er1 | |
29916 | cat conftest.err >&5 | |
a848cd7e SC |
29917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29918 | (exit $ac_status); } && | |
9dd0f6c2 | 29919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29921 | (eval $ac_try) 2>&5 | |
29922 | ac_status=$? | |
29923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29924 | (exit $ac_status); }; } && | |
29925 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29927 | (eval $ac_try) 2>&5 | |
29928 | ac_status=$? | |
29929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29930 | (exit $ac_status); }; }; then | |
29931 | ac_cv_type_off_t=yes | |
29932 | else | |
29933 | echo "$as_me: failed program was:" >&5 | |
29934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29935 | ||
29936 | ac_cv_type_off_t=no | |
29937 | fi | |
ac1cb8d3 | 29938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29939 | fi |
29940 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
29941 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
29942 | if test $ac_cv_type_off_t = yes; then | |
29943 | : | |
29944 | else | |
29945 | ||
29946 | cat >>confdefs.h <<_ACEOF | |
29947 | #define off_t long | |
29948 | _ACEOF | |
29949 | ||
29950 | fi | |
29951 | ||
29952 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
29953 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
29954 | if test "${ac_cv_type_pid_t+set}" = set; then | |
29955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29956 | else | |
29957 | cat >conftest.$ac_ext <<_ACEOF | |
29958 | /* confdefs.h. */ | |
29959 | _ACEOF | |
29960 | cat confdefs.h >>conftest.$ac_ext | |
29961 | cat >>conftest.$ac_ext <<_ACEOF | |
29962 | /* end confdefs.h. */ | |
29963 | $ac_includes_default | |
29964 | int | |
29965 | main () | |
29966 | { | |
29967 | if ((pid_t *) 0) | |
29968 | return 0; | |
29969 | if (sizeof (pid_t)) | |
29970 | return 0; | |
29971 | ; | |
29972 | return 0; | |
29973 | } | |
29974 | _ACEOF | |
29975 | rm -f conftest.$ac_objext | |
29976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29977 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29978 | ac_status=$? |
ac1cb8d3 VS |
29979 | grep -v '^ *+' conftest.er1 >conftest.err |
29980 | rm -f conftest.er1 | |
29981 | cat conftest.err >&5 | |
a848cd7e SC |
29982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29983 | (exit $ac_status); } && | |
9dd0f6c2 | 29984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29986 | (eval $ac_try) 2>&5 | |
29987 | ac_status=$? | |
29988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29989 | (exit $ac_status); }; } && | |
29990 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29992 | (eval $ac_try) 2>&5 | |
29993 | ac_status=$? | |
29994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29995 | (exit $ac_status); }; }; then | |
29996 | ac_cv_type_pid_t=yes | |
29997 | else | |
29998 | echo "$as_me: failed program was:" >&5 | |
29999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30000 | ||
30001 | ac_cv_type_pid_t=no | |
30002 | fi | |
ac1cb8d3 | 30003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30004 | fi |
30005 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
30006 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
30007 | if test $ac_cv_type_pid_t = yes; then | |
30008 | : | |
30009 | else | |
30010 | ||
30011 | cat >>confdefs.h <<_ACEOF | |
30012 | #define pid_t int | |
30013 | _ACEOF | |
30014 | ||
30015 | fi | |
30016 | ||
30017 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
30018 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
30019 | if test "${ac_cv_type_size_t+set}" = set; then | |
30020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30021 | else | |
30022 | cat >conftest.$ac_ext <<_ACEOF | |
30023 | /* confdefs.h. */ | |
30024 | _ACEOF | |
30025 | cat confdefs.h >>conftest.$ac_ext | |
30026 | cat >>conftest.$ac_ext <<_ACEOF | |
30027 | /* end confdefs.h. */ | |
30028 | $ac_includes_default | |
30029 | int | |
30030 | main () | |
30031 | { | |
30032 | if ((size_t *) 0) | |
30033 | return 0; | |
30034 | if (sizeof (size_t)) | |
30035 | return 0; | |
30036 | ; | |
30037 | return 0; | |
30038 | } | |
30039 | _ACEOF | |
30040 | rm -f conftest.$ac_objext | |
30041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30042 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30043 | ac_status=$? |
ac1cb8d3 VS |
30044 | grep -v '^ *+' conftest.er1 >conftest.err |
30045 | rm -f conftest.er1 | |
30046 | cat conftest.err >&5 | |
a848cd7e SC |
30047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30048 | (exit $ac_status); } && | |
9dd0f6c2 | 30049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30051 | (eval $ac_try) 2>&5 | |
30052 | ac_status=$? | |
30053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30054 | (exit $ac_status); }; } && | |
30055 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30057 | (eval $ac_try) 2>&5 | |
30058 | ac_status=$? | |
30059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30060 | (exit $ac_status); }; }; then | |
30061 | ac_cv_type_size_t=yes | |
30062 | else | |
30063 | echo "$as_me: failed program was:" >&5 | |
30064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30065 | ||
30066 | ac_cv_type_size_t=no | |
30067 | fi | |
ac1cb8d3 | 30068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30069 | fi |
30070 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
30071 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
30072 | if test $ac_cv_type_size_t = yes; then | |
30073 | : | |
30074 | else | |
30075 | ||
30076 | cat >>confdefs.h <<_ACEOF | |
30077 | #define size_t unsigned | |
30078 | _ACEOF | |
30079 | ||
30080 | fi | |
30081 | ||
30082 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
30083 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
30084 | if test "${ac_cv_type_uid_t+set}" = set; then | |
30085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30086 | else | |
30087 | cat >conftest.$ac_ext <<_ACEOF | |
30088 | /* confdefs.h. */ | |
30089 | _ACEOF | |
30090 | cat confdefs.h >>conftest.$ac_ext | |
30091 | cat >>conftest.$ac_ext <<_ACEOF | |
30092 | /* end confdefs.h. */ | |
30093 | #include <sys/types.h> | |
30094 | ||
30095 | _ACEOF | |
30096 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
30097 | $EGREP "uid_t" >/dev/null 2>&1; then | |
30098 | ac_cv_type_uid_t=yes | |
30099 | else | |
30100 | ac_cv_type_uid_t=no | |
30101 | fi | |
30102 | rm -f conftest* | |
30103 | ||
30104 | fi | |
30105 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
30106 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
30107 | if test $ac_cv_type_uid_t = no; then | |
30108 | ||
30109 | cat >>confdefs.h <<\_ACEOF | |
30110 | #define uid_t int | |
30111 | _ACEOF | |
30112 | ||
30113 | ||
30114 | cat >>confdefs.h <<\_ACEOF | |
30115 | #define gid_t int | |
30116 | _ACEOF | |
30117 | ||
30118 | fi | |
30119 | ||
30120 | ||
d51253e8 RL |
30121 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
30122 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
30123 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
30124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30125 | else | |
30126 | cat >conftest.$ac_ext <<_ACEOF | |
30127 | /* confdefs.h. */ | |
30128 | _ACEOF | |
30129 | cat confdefs.h >>conftest.$ac_ext | |
30130 | cat >>conftest.$ac_ext <<_ACEOF | |
30131 | /* end confdefs.h. */ | |
30132 | $ac_includes_default | |
30133 | int | |
30134 | main () | |
30135 | { | |
30136 | if ((ssize_t *) 0) | |
30137 | return 0; | |
30138 | if (sizeof (ssize_t)) | |
30139 | return 0; | |
30140 | ; | |
30141 | return 0; | |
30142 | } | |
30143 | _ACEOF | |
30144 | rm -f conftest.$ac_objext | |
30145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30146 | (eval $ac_compile) 2>conftest.er1 | |
30147 | ac_status=$? | |
30148 | grep -v '^ *+' conftest.er1 >conftest.err | |
30149 | rm -f conftest.er1 | |
30150 | cat conftest.err >&5 | |
30151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30152 | (exit $ac_status); } && | |
9dd0f6c2 | 30153 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
30154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30155 | (eval $ac_try) 2>&5 | |
30156 | ac_status=$? | |
30157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30158 | (exit $ac_status); }; } && | |
30159 | { ac_try='test -s conftest.$ac_objext' | |
30160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30161 | (eval $ac_try) 2>&5 | |
30162 | ac_status=$? | |
30163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30164 | (exit $ac_status); }; }; then | |
30165 | ac_cv_type_ssize_t=yes | |
30166 | else | |
30167 | echo "$as_me: failed program was:" >&5 | |
30168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30169 | ||
30170 | ac_cv_type_ssize_t=no | |
30171 | fi | |
30172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30173 | fi | |
30174 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
30175 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
30176 | if test $ac_cv_type_ssize_t = yes; then | |
30177 | ||
30178 | cat >>confdefs.h <<_ACEOF | |
30179 | #define HAVE_SSIZE_T 1 | |
30180 | _ACEOF | |
30181 | ||
30182 | ||
30183 | fi | |
30184 | ||
30185 | ||
a848cd7e SC |
30186 | |
30187 | ||
30188 | ac_ext=cc | |
30189 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30190 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30191 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30192 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30193 | ||
30194 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
30195 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
30196 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
30197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30198 | else | |
30199 | ||
30200 | cat >conftest.$ac_ext <<_ACEOF | |
30201 | /* confdefs.h. */ | |
30202 | _ACEOF | |
30203 | cat confdefs.h >>conftest.$ac_ext | |
30204 | cat >>conftest.$ac_ext <<_ACEOF | |
30205 | /* end confdefs.h. */ | |
30206 | #include <stddef.h> | |
30207 | int | |
30208 | main () | |
30209 | { | |
30210 | ||
30211 | return 0; } | |
30212 | ||
30213 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
30214 | ||
30215 | int bar() { | |
30216 | ||
30217 | ; | |
30218 | return 0; | |
30219 | } | |
30220 | _ACEOF | |
30221 | rm -f conftest.$ac_objext | |
30222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30223 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30224 | ac_status=$? |
ac1cb8d3 VS |
30225 | grep -v '^ *+' conftest.er1 >conftest.err |
30226 | rm -f conftest.er1 | |
30227 | cat conftest.err >&5 | |
a848cd7e SC |
30228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30229 | (exit $ac_status); } && | |
9dd0f6c2 | 30230 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30232 | (eval $ac_try) 2>&5 | |
30233 | ac_status=$? | |
30234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30235 | (exit $ac_status); }; } && | |
30236 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30238 | (eval $ac_try) 2>&5 | |
30239 | ac_status=$? | |
30240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30241 | (exit $ac_status); }; }; then | |
30242 | wx_cv_size_t_is_uint=no | |
30243 | else | |
30244 | echo "$as_me: failed program was:" >&5 | |
30245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30246 | ||
30247 | wx_cv_size_t_is_uint=yes | |
30248 | ||
30249 | fi | |
ac1cb8d3 | 30250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30251 | |
30252 | ||
30253 | fi | |
30254 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
30255 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
30256 | ||
30257 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
30258 | cat >>confdefs.h <<\_ACEOF | |
30259 | #define wxSIZE_T_IS_UINT 1 | |
30260 | _ACEOF | |
30261 | ||
30262 | else | |
30263 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
30264 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
30265 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
30266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30267 | else | |
30268 | cat >conftest.$ac_ext <<_ACEOF | |
30269 | /* confdefs.h. */ | |
30270 | _ACEOF | |
30271 | cat confdefs.h >>conftest.$ac_ext | |
30272 | cat >>conftest.$ac_ext <<_ACEOF | |
30273 | /* end confdefs.h. */ | |
30274 | #include <stddef.h> | |
30275 | int | |
30276 | main () | |
30277 | { | |
30278 | ||
30279 | return 0; } | |
30280 | ||
30281 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
30282 | ||
30283 | int bar() { | |
30284 | ||
30285 | ; | |
30286 | return 0; | |
30287 | } | |
30288 | _ACEOF | |
30289 | rm -f conftest.$ac_objext | |
30290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30291 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30292 | ac_status=$? |
ac1cb8d3 VS |
30293 | grep -v '^ *+' conftest.er1 >conftest.err |
30294 | rm -f conftest.er1 | |
30295 | cat conftest.err >&5 | |
a848cd7e SC |
30296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30297 | (exit $ac_status); } && | |
9dd0f6c2 | 30298 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30300 | (eval $ac_try) 2>&5 | |
30301 | ac_status=$? | |
30302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30303 | (exit $ac_status); }; } && | |
30304 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30306 | (eval $ac_try) 2>&5 | |
30307 | ac_status=$? | |
30308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30309 | (exit $ac_status); }; }; then | |
30310 | wx_cv_size_t_is_ulong=no | |
30311 | else | |
30312 | echo "$as_me: failed program was:" >&5 | |
30313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30314 | ||
30315 | wx_cv_size_t_is_ulong=yes | |
30316 | ||
30317 | fi | |
ac1cb8d3 | 30318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30319 | |
30320 | fi | |
30321 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
30322 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
30323 | ||
30324 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
30325 | cat >>confdefs.h <<\_ACEOF | |
30326 | #define wxSIZE_T_IS_ULONG 1 | |
30327 | _ACEOF | |
30328 | ||
30329 | fi | |
30330 | fi | |
30331 | ||
30332 | ac_ext=c | |
30333 | ac_cpp='$CPP $CPPFLAGS' | |
30334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30337 | ||
30338 | ||
30339 | ||
30340 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
30341 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
30342 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
30343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30344 | else | |
30345 | ||
30346 | cat >conftest.$ac_ext <<_ACEOF | |
30347 | /* confdefs.h. */ | |
30348 | _ACEOF | |
30349 | cat confdefs.h >>conftest.$ac_ext | |
30350 | cat >>conftest.$ac_ext <<_ACEOF | |
30351 | /* end confdefs.h. */ | |
30352 | #include <pwd.h> | |
30353 | int | |
30354 | main () | |
30355 | { | |
30356 | ||
30357 | char *p; | |
30358 | struct passwd *pw; | |
30359 | p = pw->pw_gecos; | |
30360 | ||
30361 | ; | |
30362 | return 0; | |
30363 | } | |
30364 | _ACEOF | |
30365 | rm -f conftest.$ac_objext | |
30366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30367 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30368 | ac_status=$? |
ac1cb8d3 VS |
30369 | grep -v '^ *+' conftest.er1 >conftest.err |
30370 | rm -f conftest.er1 | |
30371 | cat conftest.err >&5 | |
a848cd7e SC |
30372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30373 | (exit $ac_status); } && | |
9dd0f6c2 | 30374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30376 | (eval $ac_try) 2>&5 | |
30377 | ac_status=$? | |
30378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30379 | (exit $ac_status); }; } && | |
30380 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30382 | (eval $ac_try) 2>&5 | |
30383 | ac_status=$? | |
30384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30385 | (exit $ac_status); }; }; then | |
30386 | ||
30387 | wx_cv_struct_pw_gecos=yes | |
30388 | ||
30389 | else | |
30390 | echo "$as_me: failed program was:" >&5 | |
30391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30392 | ||
30393 | ||
30394 | wx_cv_struct_pw_gecos=no | |
30395 | ||
30396 | ||
30397 | fi | |
ac1cb8d3 | 30398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30399 | |
30400 | ||
30401 | fi | |
30402 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
30403 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
30404 | ||
30405 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
30406 | cat >>confdefs.h <<\_ACEOF | |
30407 | #define HAVE_PW_GECOS 1 | |
30408 | _ACEOF | |
30409 | ||
30410 | fi | |
30411 | ||
30412 | ||
238ecede | 30413 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
a848cd7e SC |
30414 | cat >>confdefs.h <<\_ACEOF |
30415 | #define wxUSE_WCHAR_T 1 | |
30416 | _ACEOF | |
30417 | ||
30418 | ||
30419 | WCSLEN_FOUND=0 | |
30420 | WCHAR_LINK= | |
30421 | ||
30422 | for ac_func in wcslen | |
30423 | do | |
30424 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30425 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30426 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30427 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30429 | else | |
30430 | cat >conftest.$ac_ext <<_ACEOF | |
30431 | /* confdefs.h. */ | |
30432 | _ACEOF | |
30433 | cat confdefs.h >>conftest.$ac_ext | |
30434 | cat >>conftest.$ac_ext <<_ACEOF | |
30435 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30436 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30437 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30438 | #define $ac_func innocuous_$ac_func | |
30439 | ||
a848cd7e SC |
30440 | /* System header to define __stub macros and hopefully few prototypes, |
30441 | which can conflict with char $ac_func (); below. | |
30442 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30443 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30444 | |
a848cd7e SC |
30445 | #ifdef __STDC__ |
30446 | # include <limits.h> | |
30447 | #else | |
30448 | # include <assert.h> | |
30449 | #endif | |
ac1cb8d3 VS |
30450 | |
30451 | #undef $ac_func | |
30452 | ||
a848cd7e SC |
30453 | /* Override any gcc2 internal prototype to avoid an error. */ |
30454 | #ifdef __cplusplus | |
30455 | extern "C" | |
30456 | { | |
30457 | #endif | |
30458 | /* We use char because int might match the return type of a gcc2 | |
30459 | builtin and then its argument prototype would still apply. */ | |
30460 | char $ac_func (); | |
30461 | /* The GNU C library defines this for functions which it implements | |
30462 | to always fail with ENOSYS. Some functions are actually named | |
30463 | something starting with __ and the normal name is an alias. */ | |
30464 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30465 | choke me | |
30466 | #else | |
30467 | char (*f) () = $ac_func; | |
30468 | #endif | |
30469 | #ifdef __cplusplus | |
30470 | } | |
30471 | #endif | |
30472 | ||
30473 | int | |
30474 | main () | |
30475 | { | |
30476 | return f != $ac_func; | |
30477 | ; | |
30478 | return 0; | |
30479 | } | |
30480 | _ACEOF | |
30481 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30483 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30484 | ac_status=$? |
ac1cb8d3 VS |
30485 | grep -v '^ *+' conftest.er1 >conftest.err |
30486 | rm -f conftest.er1 | |
30487 | cat conftest.err >&5 | |
a848cd7e SC |
30488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30489 | (exit $ac_status); } && | |
9dd0f6c2 | 30490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30492 | (eval $ac_try) 2>&5 | |
30493 | ac_status=$? | |
30494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30495 | (exit $ac_status); }; } && | |
30496 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30498 | (eval $ac_try) 2>&5 | |
30499 | ac_status=$? | |
30500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30501 | (exit $ac_status); }; }; then | |
30502 | eval "$as_ac_var=yes" | |
30503 | else | |
30504 | echo "$as_me: failed program was:" >&5 | |
30505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30506 | ||
30507 | eval "$as_ac_var=no" | |
30508 | fi | |
ac1cb8d3 VS |
30509 | rm -f conftest.err conftest.$ac_objext \ |
30510 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30511 | fi |
30512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30513 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30514 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30515 | cat >>confdefs.h <<_ACEOF | |
30516 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30517 | _ACEOF | |
30518 | WCSLEN_FOUND=1 | |
30519 | fi | |
30520 | done | |
30521 | ||
30522 | ||
30523 | if test "$WCSLEN_FOUND" = 0; then | |
30524 | if test "$TOOLKIT" = "MSW"; then | |
30525 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
30526 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
30527 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
30528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30529 | else | |
30530 | ac_check_lib_save_LIBS=$LIBS | |
30531 | LIBS="-lmsvcrt $LIBS" | |
30532 | cat >conftest.$ac_ext <<_ACEOF | |
30533 | /* confdefs.h. */ | |
30534 | _ACEOF | |
30535 | cat confdefs.h >>conftest.$ac_ext | |
30536 | cat >>conftest.$ac_ext <<_ACEOF | |
30537 | /* end confdefs.h. */ | |
30538 | ||
30539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30540 | #ifdef __cplusplus | |
30541 | extern "C" | |
30542 | #endif | |
30543 | /* We use char because int might match the return type of a gcc2 | |
30544 | builtin and then its argument prototype would still apply. */ | |
30545 | char wcslen (); | |
30546 | int | |
30547 | main () | |
30548 | { | |
30549 | wcslen (); | |
30550 | ; | |
30551 | return 0; | |
30552 | } | |
30553 | _ACEOF | |
30554 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30556 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30557 | ac_status=$? |
ac1cb8d3 VS |
30558 | grep -v '^ *+' conftest.er1 >conftest.err |
30559 | rm -f conftest.er1 | |
30560 | cat conftest.err >&5 | |
a848cd7e SC |
30561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30562 | (exit $ac_status); } && | |
9dd0f6c2 | 30563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30565 | (eval $ac_try) 2>&5 | |
30566 | ac_status=$? | |
30567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30568 | (exit $ac_status); }; } && | |
30569 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30571 | (eval $ac_try) 2>&5 | |
30572 | ac_status=$? | |
30573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30574 | (exit $ac_status); }; }; then | |
30575 | ac_cv_lib_msvcrt_wcslen=yes | |
30576 | else | |
30577 | echo "$as_me: failed program was:" >&5 | |
30578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30579 | ||
30580 | ac_cv_lib_msvcrt_wcslen=no | |
30581 | fi | |
ac1cb8d3 VS |
30582 | rm -f conftest.err conftest.$ac_objext \ |
30583 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30584 | LIBS=$ac_check_lib_save_LIBS |
30585 | fi | |
30586 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
30587 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
30588 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
30589 | WCHAR_OK=1 | |
30590 | fi | |
30591 | ||
30592 | else | |
30593 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
30594 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
30595 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
30596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30597 | else | |
30598 | ac_check_lib_save_LIBS=$LIBS | |
30599 | LIBS="-lw $LIBS" | |
30600 | cat >conftest.$ac_ext <<_ACEOF | |
30601 | /* confdefs.h. */ | |
30602 | _ACEOF | |
30603 | cat confdefs.h >>conftest.$ac_ext | |
30604 | cat >>conftest.$ac_ext <<_ACEOF | |
30605 | /* end confdefs.h. */ | |
30606 | ||
30607 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30608 | #ifdef __cplusplus | |
30609 | extern "C" | |
30610 | #endif | |
30611 | /* We use char because int might match the return type of a gcc2 | |
30612 | builtin and then its argument prototype would still apply. */ | |
30613 | char wcslen (); | |
30614 | int | |
30615 | main () | |
30616 | { | |
30617 | wcslen (); | |
30618 | ; | |
30619 | return 0; | |
30620 | } | |
30621 | _ACEOF | |
30622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30624 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30625 | ac_status=$? |
ac1cb8d3 VS |
30626 | grep -v '^ *+' conftest.er1 >conftest.err |
30627 | rm -f conftest.er1 | |
30628 | cat conftest.err >&5 | |
a848cd7e SC |
30629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30630 | (exit $ac_status); } && | |
9dd0f6c2 | 30631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30633 | (eval $ac_try) 2>&5 | |
30634 | ac_status=$? | |
30635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30636 | (exit $ac_status); }; } && | |
30637 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30639 | (eval $ac_try) 2>&5 | |
30640 | ac_status=$? | |
30641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30642 | (exit $ac_status); }; }; then | |
30643 | ac_cv_lib_w_wcslen=yes | |
30644 | else | |
30645 | echo "$as_me: failed program was:" >&5 | |
30646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30647 | ||
30648 | ac_cv_lib_w_wcslen=no | |
30649 | fi | |
ac1cb8d3 VS |
30650 | rm -f conftest.err conftest.$ac_objext \ |
30651 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30652 | LIBS=$ac_check_lib_save_LIBS |
30653 | fi | |
30654 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
30655 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
30656 | if test $ac_cv_lib_w_wcslen = yes; then | |
30657 | ||
30658 | WCHAR_LINK=" -lw" | |
30659 | WCSLEN_FOUND=1 | |
30660 | ||
30661 | fi | |
30662 | ||
30663 | fi | |
30664 | fi | |
30665 | ||
30666 | if test "$WCSLEN_FOUND" = 1; then | |
30667 | cat >>confdefs.h <<\_ACEOF | |
30668 | #define HAVE_WCSLEN 1 | |
30669 | _ACEOF | |
30670 | ||
30671 | fi | |
30672 | ||
81f90336 | 30673 | if test "$USE_HPUX" = 1; then |
473276a9 VS |
30674 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
30675 | fi | |
30676 | ||
a848cd7e SC |
30677 | |
30678 | for ac_func in wcsrtombs | |
30679 | do | |
30680 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30681 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30682 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30683 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30685 | else | |
30686 | cat >conftest.$ac_ext <<_ACEOF | |
30687 | /* confdefs.h. */ | |
30688 | _ACEOF | |
30689 | cat confdefs.h >>conftest.$ac_ext | |
30690 | cat >>conftest.$ac_ext <<_ACEOF | |
30691 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30692 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30693 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30694 | #define $ac_func innocuous_$ac_func | |
30695 | ||
a848cd7e SC |
30696 | /* System header to define __stub macros and hopefully few prototypes, |
30697 | which can conflict with char $ac_func (); below. | |
30698 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30699 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30700 | |
a848cd7e SC |
30701 | #ifdef __STDC__ |
30702 | # include <limits.h> | |
30703 | #else | |
30704 | # include <assert.h> | |
30705 | #endif | |
ac1cb8d3 VS |
30706 | |
30707 | #undef $ac_func | |
30708 | ||
a848cd7e SC |
30709 | /* Override any gcc2 internal prototype to avoid an error. */ |
30710 | #ifdef __cplusplus | |
30711 | extern "C" | |
30712 | { | |
30713 | #endif | |
30714 | /* We use char because int might match the return type of a gcc2 | |
30715 | builtin and then its argument prototype would still apply. */ | |
30716 | char $ac_func (); | |
30717 | /* The GNU C library defines this for functions which it implements | |
30718 | to always fail with ENOSYS. Some functions are actually named | |
30719 | something starting with __ and the normal name is an alias. */ | |
30720 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30721 | choke me | |
30722 | #else | |
30723 | char (*f) () = $ac_func; | |
30724 | #endif | |
30725 | #ifdef __cplusplus | |
30726 | } | |
30727 | #endif | |
30728 | ||
30729 | int | |
30730 | main () | |
30731 | { | |
30732 | return f != $ac_func; | |
30733 | ; | |
30734 | return 0; | |
30735 | } | |
30736 | _ACEOF | |
30737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30739 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30740 | ac_status=$? |
ac1cb8d3 VS |
30741 | grep -v '^ *+' conftest.er1 >conftest.err |
30742 | rm -f conftest.er1 | |
30743 | cat conftest.err >&5 | |
a848cd7e SC |
30744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30745 | (exit $ac_status); } && | |
9dd0f6c2 | 30746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30748 | (eval $ac_try) 2>&5 | |
30749 | ac_status=$? | |
30750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30751 | (exit $ac_status); }; } && | |
30752 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30754 | (eval $ac_try) 2>&5 | |
30755 | ac_status=$? | |
30756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30757 | (exit $ac_status); }; }; then | |
30758 | eval "$as_ac_var=yes" | |
30759 | else | |
30760 | echo "$as_me: failed program was:" >&5 | |
30761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30762 | ||
30763 | eval "$as_ac_var=no" | |
30764 | fi | |
ac1cb8d3 VS |
30765 | rm -f conftest.err conftest.$ac_objext \ |
30766 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30767 | fi |
30768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30769 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30770 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30771 | cat >>confdefs.h <<_ACEOF | |
30772 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30773 | _ACEOF | |
30774 | ||
30775 | fi | |
30776 | done | |
30777 | ||
30778 | else | |
30779 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
30780 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
30781 | fi | |
30782 | ||
30783 | ||
30784 | ||
30785 | ac_ext=cc | |
30786 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30787 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30788 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30789 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30790 | ||
30791 | ||
30792 | ||
30793 | for ac_func in vsnprintf | |
30794 | do | |
30795 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30796 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30797 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30798 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30800 | else | |
30801 | cat >conftest.$ac_ext <<_ACEOF | |
30802 | /* confdefs.h. */ | |
30803 | _ACEOF | |
30804 | cat confdefs.h >>conftest.$ac_ext | |
30805 | cat >>conftest.$ac_ext <<_ACEOF | |
30806 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30809 | #define $ac_func innocuous_$ac_func | |
30810 | ||
a848cd7e SC |
30811 | /* System header to define __stub macros and hopefully few prototypes, |
30812 | which can conflict with char $ac_func (); below. | |
30813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30814 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30815 | |
a848cd7e SC |
30816 | #ifdef __STDC__ |
30817 | # include <limits.h> | |
30818 | #else | |
30819 | # include <assert.h> | |
30820 | #endif | |
ac1cb8d3 VS |
30821 | |
30822 | #undef $ac_func | |
30823 | ||
a848cd7e SC |
30824 | /* Override any gcc2 internal prototype to avoid an error. */ |
30825 | #ifdef __cplusplus | |
30826 | extern "C" | |
30827 | { | |
30828 | #endif | |
30829 | /* We use char because int might match the return type of a gcc2 | |
30830 | builtin and then its argument prototype would still apply. */ | |
30831 | char $ac_func (); | |
30832 | /* The GNU C library defines this for functions which it implements | |
30833 | to always fail with ENOSYS. Some functions are actually named | |
30834 | something starting with __ and the normal name is an alias. */ | |
30835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30836 | choke me | |
30837 | #else | |
30838 | char (*f) () = $ac_func; | |
30839 | #endif | |
30840 | #ifdef __cplusplus | |
30841 | } | |
30842 | #endif | |
30843 | ||
30844 | int | |
30845 | main () | |
30846 | { | |
30847 | return f != $ac_func; | |
30848 | ; | |
30849 | return 0; | |
30850 | } | |
30851 | _ACEOF | |
30852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30854 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30855 | ac_status=$? |
ac1cb8d3 VS |
30856 | grep -v '^ *+' conftest.er1 >conftest.err |
30857 | rm -f conftest.er1 | |
30858 | cat conftest.err >&5 | |
a848cd7e SC |
30859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30860 | (exit $ac_status); } && | |
9dd0f6c2 | 30861 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30863 | (eval $ac_try) 2>&5 | |
30864 | ac_status=$? | |
30865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30866 | (exit $ac_status); }; } && | |
30867 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30869 | (eval $ac_try) 2>&5 | |
30870 | ac_status=$? | |
30871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30872 | (exit $ac_status); }; }; then | |
30873 | eval "$as_ac_var=yes" | |
30874 | else | |
30875 | echo "$as_me: failed program was:" >&5 | |
30876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30877 | ||
30878 | eval "$as_ac_var=no" | |
30879 | fi | |
ac1cb8d3 VS |
30880 | rm -f conftest.err conftest.$ac_objext \ |
30881 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30882 | fi |
30883 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30884 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30885 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30886 | cat >>confdefs.h <<_ACEOF | |
30887 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30888 | _ACEOF | |
30889 | ||
30890 | fi | |
30891 | done | |
30892 | ||
30893 | ||
30894 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
30895 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
30896 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
30897 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
30898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30899 | else | |
30900 | ||
30901 | cat >conftest.$ac_ext <<_ACEOF | |
30902 | /* confdefs.h. */ | |
30903 | _ACEOF | |
30904 | cat confdefs.h >>conftest.$ac_ext | |
30905 | cat >>conftest.$ac_ext <<_ACEOF | |
30906 | /* end confdefs.h. */ | |
30907 | ||
30908 | #include <stdio.h> | |
30909 | #include <stdarg.h> | |
30910 | ||
30911 | int | |
30912 | main () | |
30913 | { | |
30914 | ||
30915 | char *buf; | |
30916 | va_list ap; | |
30917 | vsnprintf(buf, 10u, "%s", ap); | |
30918 | ||
30919 | ; | |
30920 | return 0; | |
30921 | } | |
30922 | _ACEOF | |
30923 | rm -f conftest.$ac_objext | |
30924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30925 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30926 | ac_status=$? |
ac1cb8d3 VS |
30927 | grep -v '^ *+' conftest.er1 >conftest.err |
30928 | rm -f conftest.er1 | |
30929 | cat conftest.err >&5 | |
a848cd7e SC |
30930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30931 | (exit $ac_status); } && | |
9dd0f6c2 | 30932 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30934 | (eval $ac_try) 2>&5 | |
30935 | ac_status=$? | |
30936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30937 | (exit $ac_status); }; } && | |
30938 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30940 | (eval $ac_try) 2>&5 | |
30941 | ac_status=$? | |
30942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30943 | (exit $ac_status); }; }; then | |
30944 | wx_cv_func_vsnprintf_decl=yes | |
30945 | else | |
30946 | echo "$as_me: failed program was:" >&5 | |
30947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30948 | ||
c122b164 DE |
30949 | |
30950 | cat >conftest.$ac_ext <<_ACEOF | |
30951 | /* confdefs.h. */ | |
30952 | _ACEOF | |
30953 | cat confdefs.h >>conftest.$ac_ext | |
30954 | cat >>conftest.$ac_ext <<_ACEOF | |
30955 | /* end confdefs.h. */ | |
30956 | ||
30957 | #include <stdio.h> | |
30958 | #include <stdarg.h> | |
30959 | using namespace std; | |
30960 | ||
30961 | int | |
30962 | main () | |
30963 | { | |
30964 | ||
30965 | char *buf; | |
30966 | va_list ap; | |
30967 | vsnprintf(buf, 10u, "%s", ap); | |
30968 | ||
30969 | ; | |
30970 | return 0; | |
30971 | } | |
30972 | _ACEOF | |
30973 | rm -f conftest.$ac_objext | |
30974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30975 | (eval $ac_compile) 2>conftest.er1 | |
30976 | ac_status=$? | |
30977 | grep -v '^ *+' conftest.er1 >conftest.err | |
30978 | rm -f conftest.er1 | |
30979 | cat conftest.err >&5 | |
30980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30981 | (exit $ac_status); } && | |
9dd0f6c2 | 30982 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
30983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30984 | (eval $ac_try) 2>&5 | |
30985 | ac_status=$? | |
30986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30987 | (exit $ac_status); }; } && | |
30988 | { ac_try='test -s conftest.$ac_objext' | |
30989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30990 | (eval $ac_try) 2>&5 | |
30991 | ac_status=$? | |
30992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30993 | (exit $ac_status); }; }; then | |
30994 | wx_cv_func_vsnprintf_decl=yes | |
30995 | else | |
30996 | echo "$as_me: failed program was:" >&5 | |
30997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30998 | ||
a848cd7e SC |
30999 | wx_cv_func_vsnprintf_decl=no |
31000 | ||
31001 | fi | |
ac1cb8d3 | 31002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31003 | |
31004 | ||
c122b164 DE |
31005 | fi |
31006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31007 | ||
31008 | ||
a848cd7e SC |
31009 | fi |
31010 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
31011 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
31012 | ||
31013 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
31014 | cat >>confdefs.h <<\_ACEOF | |
31015 | #define HAVE_VSNPRINTF_DECL 1 | |
31016 | _ACEOF | |
31017 | ||
31018 | fi | |
31019 | fi | |
31020 | ||
31021 | if test "$wxUSE_UNICODE" = yes; then | |
31022 | ||
31023 | ||
31024 | ||
fbe47c7b VS |
31025 | |
31026 | ||
31027 | ||
31028 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
31029 | do |
31030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31031 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31033 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31035 | else | |
31036 | cat >conftest.$ac_ext <<_ACEOF | |
31037 | /* confdefs.h. */ | |
31038 | _ACEOF | |
31039 | cat confdefs.h >>conftest.$ac_ext | |
31040 | cat >>conftest.$ac_ext <<_ACEOF | |
31041 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31042 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31043 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31044 | #define $ac_func innocuous_$ac_func | |
31045 | ||
a848cd7e SC |
31046 | /* System header to define __stub macros and hopefully few prototypes, |
31047 | which can conflict with char $ac_func (); below. | |
31048 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31049 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31050 | |
a848cd7e SC |
31051 | #ifdef __STDC__ |
31052 | # include <limits.h> | |
31053 | #else | |
31054 | # include <assert.h> | |
31055 | #endif | |
ac1cb8d3 VS |
31056 | |
31057 | #undef $ac_func | |
31058 | ||
a848cd7e SC |
31059 | /* Override any gcc2 internal prototype to avoid an error. */ |
31060 | #ifdef __cplusplus | |
31061 | extern "C" | |
31062 | { | |
31063 | #endif | |
31064 | /* We use char because int might match the return type of a gcc2 | |
31065 | builtin and then its argument prototype would still apply. */ | |
31066 | char $ac_func (); | |
31067 | /* The GNU C library defines this for functions which it implements | |
31068 | to always fail with ENOSYS. Some functions are actually named | |
31069 | something starting with __ and the normal name is an alias. */ | |
31070 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31071 | choke me | |
31072 | #else | |
31073 | char (*f) () = $ac_func; | |
31074 | #endif | |
31075 | #ifdef __cplusplus | |
31076 | } | |
31077 | #endif | |
31078 | ||
31079 | int | |
31080 | main () | |
31081 | { | |
31082 | return f != $ac_func; | |
31083 | ; | |
31084 | return 0; | |
31085 | } | |
31086 | _ACEOF | |
31087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31089 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31090 | ac_status=$? |
ac1cb8d3 VS |
31091 | grep -v '^ *+' conftest.er1 >conftest.err |
31092 | rm -f conftest.er1 | |
31093 | cat conftest.err >&5 | |
a848cd7e SC |
31094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31095 | (exit $ac_status); } && | |
9dd0f6c2 | 31096 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31098 | (eval $ac_try) 2>&5 | |
31099 | ac_status=$? | |
31100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31101 | (exit $ac_status); }; } && | |
31102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31104 | (eval $ac_try) 2>&5 | |
31105 | ac_status=$? | |
31106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31107 | (exit $ac_status); }; }; then | |
31108 | eval "$as_ac_var=yes" | |
31109 | else | |
31110 | echo "$as_me: failed program was:" >&5 | |
31111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31112 | ||
31113 | eval "$as_ac_var=no" | |
31114 | fi | |
ac1cb8d3 VS |
31115 | rm -f conftest.err conftest.$ac_objext \ |
31116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31117 | fi |
31118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31119 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31120 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31121 | cat >>confdefs.h <<_ACEOF | |
31122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31123 | _ACEOF | |
31124 | ||
31125 | fi | |
31126 | done | |
31127 | ||
31128 | ||
31129 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
31130 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
31131 | cat >conftest.$ac_ext <<_ACEOF | |
31132 | /* confdefs.h. */ | |
31133 | _ACEOF | |
31134 | cat confdefs.h >>conftest.$ac_ext | |
31135 | cat >>conftest.$ac_ext <<_ACEOF | |
31136 | /* end confdefs.h. */ | |
31137 | #include <wchar.h> | |
31138 | int | |
31139 | main () | |
31140 | { | |
31141 | &_vsnwprintf; | |
31142 | ; | |
31143 | return 0; | |
31144 | } | |
31145 | _ACEOF | |
31146 | rm -f conftest.$ac_objext | |
31147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31148 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31149 | ac_status=$? |
ac1cb8d3 VS |
31150 | grep -v '^ *+' conftest.er1 >conftest.err |
31151 | rm -f conftest.er1 | |
31152 | cat conftest.err >&5 | |
a848cd7e SC |
31153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31154 | (exit $ac_status); } && | |
9dd0f6c2 | 31155 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31157 | (eval $ac_try) 2>&5 | |
31158 | ac_status=$? | |
31159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31160 | (exit $ac_status); }; } && | |
31161 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31163 | (eval $ac_try) 2>&5 | |
31164 | ac_status=$? | |
31165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31166 | (exit $ac_status); }; }; then | |
31167 | echo "$as_me:$LINENO: result: yes" >&5 | |
31168 | echo "${ECHO_T}yes" >&6 | |
31169 | cat >>confdefs.h <<\_ACEOF | |
31170 | #define HAVE__VSNWPRINTF 1 | |
31171 | _ACEOF | |
31172 | ||
31173 | else | |
31174 | echo "$as_me: failed program was:" >&5 | |
31175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31176 | ||
31177 | echo "$as_me:$LINENO: result: no" >&5 | |
31178 | echo "${ECHO_T}no" >&6 | |
31179 | fi | |
ac1cb8d3 | 31180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
31181 | fi |
31182 | ||
31183 | ac_ext=c | |
31184 | ac_cpp='$CPP $CPPFLAGS' | |
31185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31188 | ||
31189 | ||
31190 | ||
31191 | ||
31192 | if test "$TOOLKIT" != "MSW"; then | |
31193 | ||
31194 | ||
31195 | ||
31196 | ||
31197 | ac_ext=cc | |
31198 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31199 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31200 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31201 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31202 | ||
31203 | ||
31204 | ||
31205 | ||
31206 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
31207 | if test "${with_libiconv_prefix+set}" = set; then | |
31208 | withval="$with_libiconv_prefix" | |
31209 | ||
31210 | for dir in `echo "$withval" | tr : ' '`; do | |
31211 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
31212 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
31213 | done | |
31214 | ||
31215 | fi; | |
31216 | ||
31217 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
31218 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
31219 | if test "${am_cv_func_iconv+set}" = set; then | |
31220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31221 | else | |
31222 | ||
31223 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
31224 | am_cv_lib_iconv=no | |
31225 | cat >conftest.$ac_ext <<_ACEOF | |
31226 | /* confdefs.h. */ | |
31227 | _ACEOF | |
31228 | cat confdefs.h >>conftest.$ac_ext | |
31229 | cat >>conftest.$ac_ext <<_ACEOF | |
31230 | /* end confdefs.h. */ | |
31231 | #include <stdlib.h> | |
31232 | #include <iconv.h> | |
31233 | int | |
31234 | main () | |
31235 | { | |
31236 | iconv_t cd = iconv_open("",""); | |
31237 | iconv(cd,NULL,NULL,NULL,NULL); | |
31238 | iconv_close(cd); | |
31239 | ; | |
31240 | return 0; | |
31241 | } | |
31242 | _ACEOF | |
31243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31245 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31246 | ac_status=$? |
ac1cb8d3 VS |
31247 | grep -v '^ *+' conftest.er1 >conftest.err |
31248 | rm -f conftest.er1 | |
31249 | cat conftest.err >&5 | |
a848cd7e SC |
31250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31251 | (exit $ac_status); } && | |
9dd0f6c2 | 31252 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31254 | (eval $ac_try) 2>&5 | |
31255 | ac_status=$? | |
31256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31257 | (exit $ac_status); }; } && | |
31258 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31260 | (eval $ac_try) 2>&5 | |
31261 | ac_status=$? | |
31262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31263 | (exit $ac_status); }; }; then | |
31264 | am_cv_func_iconv=yes | |
31265 | else | |
31266 | echo "$as_me: failed program was:" >&5 | |
31267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31268 | ||
31269 | fi | |
ac1cb8d3 VS |
31270 | rm -f conftest.err conftest.$ac_objext \ |
31271 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31272 | if test "$am_cv_func_iconv" != yes; then |
31273 | am_save_LIBS="$LIBS" | |
31274 | LIBS="$LIBS -liconv" | |
31275 | cat >conftest.$ac_ext <<_ACEOF | |
31276 | /* confdefs.h. */ | |
31277 | _ACEOF | |
31278 | cat confdefs.h >>conftest.$ac_ext | |
31279 | cat >>conftest.$ac_ext <<_ACEOF | |
31280 | /* end confdefs.h. */ | |
31281 | #include <stdlib.h> | |
31282 | #include <iconv.h> | |
31283 | int | |
31284 | main () | |
31285 | { | |
31286 | iconv_t cd = iconv_open("",""); | |
31287 | iconv(cd,NULL,NULL,NULL,NULL); | |
31288 | iconv_close(cd); | |
31289 | ; | |
31290 | return 0; | |
31291 | } | |
31292 | _ACEOF | |
31293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31295 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31296 | ac_status=$? |
ac1cb8d3 VS |
31297 | grep -v '^ *+' conftest.er1 >conftest.err |
31298 | rm -f conftest.er1 | |
31299 | cat conftest.err >&5 | |
a848cd7e SC |
31300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31301 | (exit $ac_status); } && | |
9dd0f6c2 | 31302 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31304 | (eval $ac_try) 2>&5 | |
31305 | ac_status=$? | |
31306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31307 | (exit $ac_status); }; } && | |
31308 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31310 | (eval $ac_try) 2>&5 | |
31311 | ac_status=$? | |
31312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31313 | (exit $ac_status); }; }; then | |
31314 | am_cv_lib_iconv=yes | |
31315 | am_cv_func_iconv=yes | |
31316 | else | |
31317 | echo "$as_me: failed program was:" >&5 | |
31318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31319 | ||
31320 | fi | |
ac1cb8d3 VS |
31321 | rm -f conftest.err conftest.$ac_objext \ |
31322 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31323 | LIBS="$am_save_LIBS" |
31324 | fi | |
31325 | ||
31326 | fi | |
31327 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
31328 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
31329 | if test "$am_cv_func_iconv" = yes; then | |
31330 | ||
31331 | cat >>confdefs.h <<\_ACEOF | |
31332 | #define HAVE_ICONV 1 | |
31333 | _ACEOF | |
31334 | ||
31335 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
31336 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
31337 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
31338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31339 | else | |
31340 | cat >conftest.$ac_ext <<_ACEOF | |
31341 | /* confdefs.h. */ | |
31342 | _ACEOF | |
31343 | cat confdefs.h >>conftest.$ac_ext | |
31344 | cat >>conftest.$ac_ext <<_ACEOF | |
31345 | /* end confdefs.h. */ | |
31346 | ||
31347 | #include <stdlib.h> | |
31348 | #include <iconv.h> | |
31349 | extern | |
31350 | #ifdef __cplusplus | |
31351 | "C" | |
31352 | #endif | |
31353 | #if defined(__STDC__) || defined(__cplusplus) | |
31354 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
31355 | #else | |
31356 | size_t iconv(); | |
31357 | #endif | |
31358 | ||
31359 | int | |
31360 | main () | |
31361 | { | |
31362 | ||
31363 | ; | |
31364 | return 0; | |
31365 | } | |
31366 | _ACEOF | |
31367 | rm -f conftest.$ac_objext | |
31368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31369 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31370 | ac_status=$? |
ac1cb8d3 VS |
31371 | grep -v '^ *+' conftest.er1 >conftest.err |
31372 | rm -f conftest.er1 | |
31373 | cat conftest.err >&5 | |
a848cd7e SC |
31374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31375 | (exit $ac_status); } && | |
9dd0f6c2 | 31376 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31378 | (eval $ac_try) 2>&5 | |
31379 | ac_status=$? | |
31380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31381 | (exit $ac_status); }; } && | |
31382 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31384 | (eval $ac_try) 2>&5 | |
31385 | ac_status=$? | |
31386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31387 | (exit $ac_status); }; }; then | |
31388 | wx_cv_func_iconv_const="no" | |
31389 | else | |
31390 | echo "$as_me: failed program was:" >&5 | |
31391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31392 | ||
31393 | wx_cv_func_iconv_const="yes" | |
31394 | ||
31395 | fi | |
ac1cb8d3 | 31396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31397 | |
31398 | fi | |
31399 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
31400 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
31401 | ||
31402 | iconv_const= | |
31403 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
31404 | iconv_const="const" | |
31405 | fi | |
31406 | ||
31407 | ||
31408 | cat >>confdefs.h <<_ACEOF | |
31409 | #define ICONV_CONST $iconv_const | |
31410 | _ACEOF | |
31411 | ||
31412 | fi | |
31413 | LIBICONV= | |
31414 | if test "$am_cv_lib_iconv" = yes; then | |
31415 | LIBICONV="-liconv" | |
31416 | fi | |
31417 | ||
31418 | ||
31419 | LIBS="$LIBICONV $LIBS" | |
31420 | ac_ext=c | |
31421 | ac_cpp='$CPP $CPPFLAGS' | |
31422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31425 | ||
31426 | ||
31427 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
31428 | ||
31429 | for ac_func in sigaction | |
31430 | do | |
31431 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31432 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31433 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31434 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31436 | else | |
31437 | cat >conftest.$ac_ext <<_ACEOF | |
31438 | /* confdefs.h. */ | |
31439 | _ACEOF | |
31440 | cat confdefs.h >>conftest.$ac_ext | |
31441 | cat >>conftest.$ac_ext <<_ACEOF | |
31442 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31443 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31444 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31445 | #define $ac_func innocuous_$ac_func | |
31446 | ||
a848cd7e SC |
31447 | /* System header to define __stub macros and hopefully few prototypes, |
31448 | which can conflict with char $ac_func (); below. | |
31449 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31450 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31451 | |
a848cd7e SC |
31452 | #ifdef __STDC__ |
31453 | # include <limits.h> | |
31454 | #else | |
31455 | # include <assert.h> | |
31456 | #endif | |
ac1cb8d3 VS |
31457 | |
31458 | #undef $ac_func | |
31459 | ||
a848cd7e SC |
31460 | /* Override any gcc2 internal prototype to avoid an error. */ |
31461 | #ifdef __cplusplus | |
31462 | extern "C" | |
31463 | { | |
31464 | #endif | |
31465 | /* We use char because int might match the return type of a gcc2 | |
31466 | builtin and then its argument prototype would still apply. */ | |
31467 | char $ac_func (); | |
31468 | /* The GNU C library defines this for functions which it implements | |
31469 | to always fail with ENOSYS. Some functions are actually named | |
31470 | something starting with __ and the normal name is an alias. */ | |
31471 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31472 | choke me | |
31473 | #else | |
31474 | char (*f) () = $ac_func; | |
31475 | #endif | |
31476 | #ifdef __cplusplus | |
31477 | } | |
31478 | #endif | |
31479 | ||
31480 | int | |
31481 | main () | |
31482 | { | |
31483 | return f != $ac_func; | |
31484 | ; | |
31485 | return 0; | |
31486 | } | |
31487 | _ACEOF | |
31488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31490 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31491 | ac_status=$? |
ac1cb8d3 VS |
31492 | grep -v '^ *+' conftest.er1 >conftest.err |
31493 | rm -f conftest.er1 | |
31494 | cat conftest.err >&5 | |
a848cd7e SC |
31495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31496 | (exit $ac_status); } && | |
9dd0f6c2 | 31497 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31499 | (eval $ac_try) 2>&5 | |
31500 | ac_status=$? | |
31501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31502 | (exit $ac_status); }; } && | |
31503 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31505 | (eval $ac_try) 2>&5 | |
31506 | ac_status=$? | |
31507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31508 | (exit $ac_status); }; }; then | |
31509 | eval "$as_ac_var=yes" | |
31510 | else | |
31511 | echo "$as_me: failed program was:" >&5 | |
31512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31513 | ||
31514 | eval "$as_ac_var=no" | |
31515 | fi | |
ac1cb8d3 VS |
31516 | rm -f conftest.err conftest.$ac_objext \ |
31517 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31518 | fi |
31519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31520 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31521 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31522 | cat >>confdefs.h <<_ACEOF | |
31523 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31524 | _ACEOF | |
31525 | ||
31526 | fi | |
31527 | done | |
31528 | ||
31529 | ||
31530 | if test "$ac_cv_func_sigaction" = "no"; then | |
31531 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
31532 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
31533 | wxUSE_ON_FATAL_EXCEPTION=no | |
31534 | fi | |
31535 | ||
31536 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
31537 | ||
31538 | ||
31539 | ac_ext=cc | |
31540 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31541 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31542 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31543 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31544 | ||
31545 | ||
31546 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
31547 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
31548 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
31549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31550 | else | |
31551 | ||
31552 | cat >conftest.$ac_ext <<_ACEOF | |
31553 | /* confdefs.h. */ | |
31554 | _ACEOF | |
31555 | cat confdefs.h >>conftest.$ac_ext | |
31556 | cat >>conftest.$ac_ext <<_ACEOF | |
31557 | /* end confdefs.h. */ | |
31558 | #include <signal.h> | |
31559 | int | |
31560 | main () | |
31561 | { | |
31562 | ||
31563 | extern void testSigHandler(int); | |
31564 | ||
31565 | struct sigaction sa; | |
31566 | sa.sa_handler = testSigHandler; | |
31567 | ||
31568 | ; | |
31569 | return 0; | |
31570 | } | |
31571 | _ACEOF | |
31572 | rm -f conftest.$ac_objext | |
31573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31574 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31575 | ac_status=$? |
ac1cb8d3 VS |
31576 | grep -v '^ *+' conftest.er1 >conftest.err |
31577 | rm -f conftest.er1 | |
31578 | cat conftest.err >&5 | |
a848cd7e SC |
31579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31580 | (exit $ac_status); } && | |
9dd0f6c2 | 31581 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31583 | (eval $ac_try) 2>&5 | |
31584 | ac_status=$? | |
31585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31586 | (exit $ac_status); }; } && | |
31587 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31589 | (eval $ac_try) 2>&5 | |
31590 | ac_status=$? | |
31591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31592 | (exit $ac_status); }; }; then | |
31593 | ||
31594 | wx_cv_type_sa_handler=int | |
31595 | ||
31596 | else | |
31597 | echo "$as_me: failed program was:" >&5 | |
31598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31599 | ||
31600 | ||
31601 | wx_cv_type_sa_handler=void | |
31602 | ||
31603 | fi | |
ac1cb8d3 | 31604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31605 | |
31606 | fi | |
31607 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
31608 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
31609 | ||
31610 | ac_ext=c | |
31611 | ac_cpp='$CPP $CPPFLAGS' | |
31612 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31613 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31614 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31615 | ||
31616 | ||
31617 | cat >>confdefs.h <<_ACEOF | |
31618 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
31619 | _ACEOF | |
31620 | ||
31621 | fi | |
31622 | fi | |
31623 | ||
eaff0f0d VZ |
31624 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
31625 | ||
31626 | ||
31627 | ac_ext=cc | |
31628 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31629 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31630 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31631 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31632 | ||
31633 | ||
31634 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
31635 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
31636 | if test "${wx_cv_func_backtrace+set}" = set; then | |
31637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31638 | else | |
31639 | ||
31640 | cat >conftest.$ac_ext <<_ACEOF | |
31641 | /* confdefs.h. */ | |
31642 | _ACEOF | |
31643 | cat confdefs.h >>conftest.$ac_ext | |
31644 | cat >>conftest.$ac_ext <<_ACEOF | |
31645 | /* end confdefs.h. */ | |
31646 | #include <execinfo.h> | |
31647 | int | |
31648 | main () | |
31649 | { | |
31650 | ||
31651 | void *trace[1]; | |
31652 | char **messages; | |
31653 | ||
31654 | backtrace(trace, 1); | |
31655 | messages = backtrace_symbols(trace, 1); | |
31656 | ||
31657 | ; | |
31658 | return 0; | |
31659 | } | |
31660 | _ACEOF | |
31661 | rm -f conftest.$ac_objext | |
31662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31663 | (eval $ac_compile) 2>conftest.er1 | |
31664 | ac_status=$? | |
31665 | grep -v '^ *+' conftest.er1 >conftest.err | |
31666 | rm -f conftest.er1 | |
31667 | cat conftest.err >&5 | |
31668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31669 | (exit $ac_status); } && | |
9dd0f6c2 | 31670 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
31671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31672 | (eval $ac_try) 2>&5 | |
31673 | ac_status=$? | |
31674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31675 | (exit $ac_status); }; } && | |
31676 | { ac_try='test -s conftest.$ac_objext' | |
31677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31678 | (eval $ac_try) 2>&5 | |
31679 | ac_status=$? | |
31680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31681 | (exit $ac_status); }; }; then | |
31682 | wx_cv_func_backtrace=yes | |
31683 | else | |
31684 | echo "$as_me: failed program was:" >&5 | |
31685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31686 | ||
31687 | wx_cv_func_backtrace=no | |
31688 | ||
31689 | fi | |
31690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31691 | ||
31692 | ||
31693 | fi | |
31694 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
31695 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
31696 | ||
31697 | ||
31698 | if test "$wx_cv_func_backtrace" = "no"; then | |
31699 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
31700 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
31701 | wxUSE_STACKWALKER=no | |
31702 | else | |
31703 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
31704 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
31705 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
31706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31707 | else | |
31708 | ||
31709 | cat >conftest.$ac_ext <<_ACEOF | |
31710 | /* confdefs.h. */ | |
31711 | _ACEOF | |
31712 | cat confdefs.h >>conftest.$ac_ext | |
31713 | cat >>conftest.$ac_ext <<_ACEOF | |
31714 | /* end confdefs.h. */ | |
31715 | #include <cxxabi.h> | |
31716 | int | |
31717 | main () | |
31718 | { | |
31719 | ||
31720 | int rc; | |
31721 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
31722 | ||
31723 | ; | |
31724 | return 0; | |
31725 | } | |
31726 | _ACEOF | |
dfe0c803 JS |
31727 | rm -f conftest.$ac_objext conftest$ac_exeext |
31728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31729 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
31730 | ac_status=$? |
31731 | grep -v '^ *+' conftest.er1 >conftest.err | |
31732 | rm -f conftest.er1 | |
31733 | cat conftest.err >&5 | |
31734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31735 | (exit $ac_status); } && | |
9dd0f6c2 | 31736 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
31737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31738 | (eval $ac_try) 2>&5 | |
31739 | ac_status=$? | |
31740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31741 | (exit $ac_status); }; } && | |
dfe0c803 | 31742 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
31743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31744 | (eval $ac_try) 2>&5 | |
31745 | ac_status=$? | |
31746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31747 | (exit $ac_status); }; }; then | |
31748 | wx_cv_func_cxa_demangle=yes | |
31749 | else | |
31750 | echo "$as_me: failed program was:" >&5 | |
31751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31752 | ||
31753 | wx_cv_func_cxa_demangle=no | |
31754 | ||
31755 | fi | |
dfe0c803 JS |
31756 | rm -f conftest.err conftest.$ac_objext \ |
31757 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
31758 | |
31759 | ||
31760 | fi | |
31761 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
31762 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
31763 | ||
31764 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
31765 | cat >>confdefs.h <<\_ACEOF | |
31766 | #define HAVE_CXA_DEMANGLE 1 | |
31767 | _ACEOF | |
31768 | ||
31769 | fi | |
31770 | fi | |
31771 | ||
31772 | ac_ext=c | |
31773 | ac_cpp='$CPP $CPPFLAGS' | |
31774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31777 | ||
31778 | fi | |
31779 | ||
898beab1 DE |
31780 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
31781 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
31782 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
31783 | wxUSE_STACKWALKER=no | |
31784 | fi | |
31785 | ||
31786 | ||
a848cd7e SC |
31787 | |
31788 | ||
31789 | for ac_func in mkstemp mktemp | |
31790 | do | |
31791 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31792 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31793 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31794 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31796 | else | |
31797 | cat >conftest.$ac_ext <<_ACEOF | |
31798 | /* confdefs.h. */ | |
31799 | _ACEOF | |
31800 | cat confdefs.h >>conftest.$ac_ext | |
31801 | cat >>conftest.$ac_ext <<_ACEOF | |
31802 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31803 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31804 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31805 | #define $ac_func innocuous_$ac_func | |
31806 | ||
a848cd7e SC |
31807 | /* System header to define __stub macros and hopefully few prototypes, |
31808 | which can conflict with char $ac_func (); below. | |
31809 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31810 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31811 | |
a848cd7e SC |
31812 | #ifdef __STDC__ |
31813 | # include <limits.h> | |
31814 | #else | |
31815 | # include <assert.h> | |
31816 | #endif | |
ac1cb8d3 VS |
31817 | |
31818 | #undef $ac_func | |
31819 | ||
a848cd7e SC |
31820 | /* Override any gcc2 internal prototype to avoid an error. */ |
31821 | #ifdef __cplusplus | |
31822 | extern "C" | |
31823 | { | |
31824 | #endif | |
31825 | /* We use char because int might match the return type of a gcc2 | |
31826 | builtin and then its argument prototype would still apply. */ | |
31827 | char $ac_func (); | |
31828 | /* The GNU C library defines this for functions which it implements | |
31829 | to always fail with ENOSYS. Some functions are actually named | |
31830 | something starting with __ and the normal name is an alias. */ | |
31831 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31832 | choke me | |
31833 | #else | |
31834 | char (*f) () = $ac_func; | |
31835 | #endif | |
31836 | #ifdef __cplusplus | |
31837 | } | |
31838 | #endif | |
31839 | ||
31840 | int | |
31841 | main () | |
31842 | { | |
31843 | return f != $ac_func; | |
31844 | ; | |
31845 | return 0; | |
31846 | } | |
31847 | _ACEOF | |
31848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31850 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31851 | ac_status=$? |
ac1cb8d3 VS |
31852 | grep -v '^ *+' conftest.er1 >conftest.err |
31853 | rm -f conftest.er1 | |
31854 | cat conftest.err >&5 | |
a848cd7e SC |
31855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31856 | (exit $ac_status); } && | |
9dd0f6c2 | 31857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31859 | (eval $ac_try) 2>&5 | |
31860 | ac_status=$? | |
31861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31862 | (exit $ac_status); }; } && | |
31863 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31865 | (eval $ac_try) 2>&5 | |
31866 | ac_status=$? | |
31867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31868 | (exit $ac_status); }; }; then | |
31869 | eval "$as_ac_var=yes" | |
31870 | else | |
31871 | echo "$as_me: failed program was:" >&5 | |
31872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31873 | ||
31874 | eval "$as_ac_var=no" | |
31875 | fi | |
ac1cb8d3 VS |
31876 | rm -f conftest.err conftest.$ac_objext \ |
31877 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31878 | fi |
31879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31880 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31881 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31882 | cat >>confdefs.h <<_ACEOF | |
31883 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31884 | _ACEOF | |
31885 | break | |
31886 | fi | |
31887 | done | |
31888 | ||
31889 | ||
31890 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
31891 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
31892 | if test "${wx_cv_func_statfs+set}" = set; then | |
31893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31894 | else | |
31895 | cat >conftest.$ac_ext <<_ACEOF | |
31896 | /* confdefs.h. */ | |
31897 | _ACEOF | |
31898 | cat confdefs.h >>conftest.$ac_ext | |
31899 | cat >>conftest.$ac_ext <<_ACEOF | |
31900 | /* end confdefs.h. */ | |
31901 | ||
31902 | #if defined(__BSD__) | |
31903 | #include <sys/param.h> | |
31904 | #include <sys/mount.h> | |
31905 | #else | |
31906 | #include <sys/vfs.h> | |
31907 | #endif | |
31908 | ||
31909 | int | |
31910 | main () | |
31911 | { | |
31912 | ||
31913 | long l; | |
31914 | struct statfs fs; | |
31915 | statfs("/", &fs); | |
31916 | l = fs.f_bsize; | |
31917 | l += fs.f_blocks; | |
31918 | l += fs.f_bavail; | |
31919 | ||
31920 | ; | |
31921 | return 0; | |
31922 | } | |
31923 | _ACEOF | |
31924 | rm -f conftest.$ac_objext | |
31925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31926 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31927 | ac_status=$? |
ac1cb8d3 VS |
31928 | grep -v '^ *+' conftest.er1 >conftest.err |
31929 | rm -f conftest.er1 | |
31930 | cat conftest.err >&5 | |
a848cd7e SC |
31931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31932 | (exit $ac_status); } && | |
9dd0f6c2 | 31933 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31935 | (eval $ac_try) 2>&5 | |
31936 | ac_status=$? | |
31937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31938 | (exit $ac_status); }; } && | |
31939 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31941 | (eval $ac_try) 2>&5 | |
31942 | ac_status=$? | |
31943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31944 | (exit $ac_status); }; }; then | |
31945 | ||
31946 | wx_cv_func_statfs=yes | |
31947 | ||
31948 | else | |
31949 | echo "$as_me: failed program was:" >&5 | |
31950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31951 | ||
31952 | ||
31953 | wx_cv_func_statfs=no | |
31954 | ||
31955 | ||
31956 | fi | |
ac1cb8d3 | 31957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31958 | |
31959 | fi | |
31960 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
31961 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
31962 | ||
31963 | if test "$wx_cv_func_statfs" = "yes"; then | |
31964 | wx_cv_type_statvfs_t="struct statfs" | |
31965 | cat >>confdefs.h <<\_ACEOF | |
31966 | #define HAVE_STATFS 1 | |
31967 | _ACEOF | |
31968 | ||
31969 | else | |
31970 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
31971 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
31972 | if test "${wx_cv_func_statvfs+set}" = set; then | |
31973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31974 | else | |
31975 | cat >conftest.$ac_ext <<_ACEOF | |
31976 | /* confdefs.h. */ | |
31977 | _ACEOF | |
31978 | cat confdefs.h >>conftest.$ac_ext | |
31979 | cat >>conftest.$ac_ext <<_ACEOF | |
31980 | /* end confdefs.h. */ | |
31981 | ||
31982 | #include <stddef.h> | |
31983 | #include <sys/statvfs.h> | |
31984 | ||
31985 | int | |
31986 | main () | |
31987 | { | |
31988 | ||
31989 | statvfs("/", NULL); | |
31990 | ||
31991 | ; | |
31992 | return 0; | |
31993 | } | |
31994 | _ACEOF | |
31995 | rm -f conftest.$ac_objext | |
31996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31998 | ac_status=$? |
ac1cb8d3 VS |
31999 | grep -v '^ *+' conftest.er1 >conftest.err |
32000 | rm -f conftest.er1 | |
32001 | cat conftest.err >&5 | |
a848cd7e SC |
32002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32003 | (exit $ac_status); } && | |
9dd0f6c2 | 32004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32006 | (eval $ac_try) 2>&5 | |
32007 | ac_status=$? | |
32008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32009 | (exit $ac_status); }; } && | |
32010 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32012 | (eval $ac_try) 2>&5 | |
32013 | ac_status=$? | |
32014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32015 | (exit $ac_status); }; }; then | |
32016 | wx_cv_func_statvfs=yes | |
32017 | else | |
32018 | echo "$as_me: failed program was:" >&5 | |
32019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32020 | ||
32021 | wx_cv_func_statvfs=no | |
32022 | ||
32023 | fi | |
ac1cb8d3 | 32024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32025 | |
32026 | fi | |
32027 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
32028 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
32029 | ||
32030 | if test "$wx_cv_func_statvfs" = "yes"; then | |
32031 | ||
32032 | ||
32033 | ac_ext=cc | |
32034 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32035 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32036 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32037 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32038 | ||
32039 | ||
32040 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
32041 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
32042 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
32043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32044 | else | |
32045 | cat >conftest.$ac_ext <<_ACEOF | |
32046 | /* confdefs.h. */ | |
32047 | _ACEOF | |
32048 | cat confdefs.h >>conftest.$ac_ext | |
32049 | cat >>conftest.$ac_ext <<_ACEOF | |
32050 | /* end confdefs.h. */ | |
32051 | ||
32052 | #include <sys/statvfs.h> | |
32053 | ||
32054 | int | |
32055 | main () | |
32056 | { | |
32057 | ||
32058 | long l; | |
32059 | statvfs_t fs; | |
32060 | statvfs("/", &fs); | |
32061 | l = fs.f_bsize; | |
32062 | l += fs.f_blocks; | |
32063 | l += fs.f_bavail; | |
32064 | ||
32065 | ; | |
32066 | return 0; | |
32067 | } | |
32068 | _ACEOF | |
32069 | rm -f conftest.$ac_objext | |
32070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32071 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32072 | ac_status=$? |
ac1cb8d3 VS |
32073 | grep -v '^ *+' conftest.er1 >conftest.err |
32074 | rm -f conftest.er1 | |
32075 | cat conftest.err >&5 | |
a848cd7e SC |
32076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32077 | (exit $ac_status); } && | |
9dd0f6c2 | 32078 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32080 | (eval $ac_try) 2>&5 | |
32081 | ac_status=$? | |
32082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32083 | (exit $ac_status); }; } && | |
32084 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32086 | (eval $ac_try) 2>&5 | |
32087 | ac_status=$? | |
32088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32089 | (exit $ac_status); }; }; then | |
32090 | wx_cv_type_statvfs_t=statvfs_t | |
32091 | else | |
32092 | echo "$as_me: failed program was:" >&5 | |
32093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32094 | ||
32095 | ||
32096 | cat >conftest.$ac_ext <<_ACEOF | |
32097 | /* confdefs.h. */ | |
32098 | _ACEOF | |
32099 | cat confdefs.h >>conftest.$ac_ext | |
32100 | cat >>conftest.$ac_ext <<_ACEOF | |
32101 | /* end confdefs.h. */ | |
32102 | ||
32103 | #include <sys/statvfs.h> | |
32104 | ||
32105 | int | |
32106 | main () | |
32107 | { | |
32108 | ||
32109 | long l; | |
32110 | struct statvfs fs; | |
32111 | statvfs("/", &fs); | |
32112 | l = fs.f_bsize; | |
32113 | l += fs.f_blocks; | |
32114 | l += fs.f_bavail; | |
32115 | ||
32116 | ; | |
32117 | return 0; | |
32118 | } | |
32119 | _ACEOF | |
32120 | rm -f conftest.$ac_objext | |
32121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32122 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32123 | ac_status=$? |
ac1cb8d3 VS |
32124 | grep -v '^ *+' conftest.er1 >conftest.err |
32125 | rm -f conftest.er1 | |
32126 | cat conftest.err >&5 | |
a848cd7e SC |
32127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32128 | (exit $ac_status); } && | |
9dd0f6c2 | 32129 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32131 | (eval $ac_try) 2>&5 | |
32132 | ac_status=$? | |
32133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32134 | (exit $ac_status); }; } && | |
32135 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32137 | (eval $ac_try) 2>&5 | |
32138 | ac_status=$? | |
32139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32140 | (exit $ac_status); }; }; then | |
32141 | wx_cv_type_statvfs_t="struct statvfs" | |
32142 | else | |
32143 | echo "$as_me: failed program was:" >&5 | |
32144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32145 | ||
32146 | wx_cv_type_statvfs_t="unknown" | |
32147 | ||
32148 | fi | |
ac1cb8d3 | 32149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32150 | |
32151 | ||
32152 | fi | |
ac1cb8d3 | 32153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32154 | |
32155 | fi | |
32156 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
32157 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
32158 | ||
32159 | ac_ext=c | |
32160 | ac_cpp='$CPP $CPPFLAGS' | |
32161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32164 | ||
32165 | ||
32166 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
32167 | cat >>confdefs.h <<\_ACEOF | |
32168 | #define HAVE_STATVFS 1 | |
32169 | _ACEOF | |
32170 | ||
32171 | fi | |
32172 | else | |
32173 | wx_cv_type_statvfs_t="unknown" | |
32174 | fi | |
32175 | fi | |
32176 | ||
32177 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
32178 | cat >>confdefs.h <<_ACEOF | |
32179 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
32180 | _ACEOF | |
32181 | ||
32182 | else | |
32183 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
32184 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
32185 | fi | |
32186 | ||
32187 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
32188 | ||
32189 | ||
32190 | for ac_func in fcntl flock | |
32191 | do | |
32192 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32193 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32194 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32195 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32197 | else | |
32198 | cat >conftest.$ac_ext <<_ACEOF | |
32199 | /* confdefs.h. */ | |
32200 | _ACEOF | |
32201 | cat confdefs.h >>conftest.$ac_ext | |
32202 | cat >>conftest.$ac_ext <<_ACEOF | |
32203 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32204 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32205 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32206 | #define $ac_func innocuous_$ac_func | |
32207 | ||
a848cd7e SC |
32208 | /* System header to define __stub macros and hopefully few prototypes, |
32209 | which can conflict with char $ac_func (); below. | |
32210 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32211 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32212 | |
a848cd7e SC |
32213 | #ifdef __STDC__ |
32214 | # include <limits.h> | |
32215 | #else | |
32216 | # include <assert.h> | |
32217 | #endif | |
ac1cb8d3 VS |
32218 | |
32219 | #undef $ac_func | |
32220 | ||
a848cd7e SC |
32221 | /* Override any gcc2 internal prototype to avoid an error. */ |
32222 | #ifdef __cplusplus | |
32223 | extern "C" | |
32224 | { | |
32225 | #endif | |
32226 | /* We use char because int might match the return type of a gcc2 | |
32227 | builtin and then its argument prototype would still apply. */ | |
32228 | char $ac_func (); | |
32229 | /* The GNU C library defines this for functions which it implements | |
32230 | to always fail with ENOSYS. Some functions are actually named | |
32231 | something starting with __ and the normal name is an alias. */ | |
32232 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32233 | choke me | |
32234 | #else | |
32235 | char (*f) () = $ac_func; | |
32236 | #endif | |
32237 | #ifdef __cplusplus | |
32238 | } | |
32239 | #endif | |
32240 | ||
32241 | int | |
32242 | main () | |
32243 | { | |
32244 | return f != $ac_func; | |
32245 | ; | |
32246 | return 0; | |
32247 | } | |
32248 | _ACEOF | |
32249 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32251 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32252 | ac_status=$? |
ac1cb8d3 VS |
32253 | grep -v '^ *+' conftest.er1 >conftest.err |
32254 | rm -f conftest.er1 | |
32255 | cat conftest.err >&5 | |
a848cd7e SC |
32256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32257 | (exit $ac_status); } && | |
9dd0f6c2 | 32258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32260 | (eval $ac_try) 2>&5 | |
32261 | ac_status=$? | |
32262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32263 | (exit $ac_status); }; } && | |
32264 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32266 | (eval $ac_try) 2>&5 | |
32267 | ac_status=$? | |
32268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32269 | (exit $ac_status); }; }; then | |
32270 | eval "$as_ac_var=yes" | |
32271 | else | |
32272 | echo "$as_me: failed program was:" >&5 | |
32273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32274 | ||
32275 | eval "$as_ac_var=no" | |
32276 | fi | |
ac1cb8d3 VS |
32277 | rm -f conftest.err conftest.$ac_objext \ |
32278 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32279 | fi |
32280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32281 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32282 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32283 | cat >>confdefs.h <<_ACEOF | |
32284 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32285 | _ACEOF | |
32286 | break | |
32287 | fi | |
32288 | done | |
32289 | ||
32290 | ||
32291 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
32292 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
32293 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
32294 | wxUSE_SNGLINST_CHECKER=no | |
32295 | fi | |
32296 | fi | |
32297 | ||
32298 | ||
32299 | for ac_func in timegm | |
32300 | do | |
32301 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32302 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32303 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32304 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32306 | else | |
32307 | cat >conftest.$ac_ext <<_ACEOF | |
32308 | /* confdefs.h. */ | |
32309 | _ACEOF | |
32310 | cat confdefs.h >>conftest.$ac_ext | |
32311 | cat >>conftest.$ac_ext <<_ACEOF | |
32312 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32313 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32314 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32315 | #define $ac_func innocuous_$ac_func | |
32316 | ||
a848cd7e SC |
32317 | /* System header to define __stub macros and hopefully few prototypes, |
32318 | which can conflict with char $ac_func (); below. | |
32319 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32320 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32321 | |
a848cd7e SC |
32322 | #ifdef __STDC__ |
32323 | # include <limits.h> | |
32324 | #else | |
32325 | # include <assert.h> | |
32326 | #endif | |
ac1cb8d3 VS |
32327 | |
32328 | #undef $ac_func | |
32329 | ||
a848cd7e SC |
32330 | /* Override any gcc2 internal prototype to avoid an error. */ |
32331 | #ifdef __cplusplus | |
32332 | extern "C" | |
32333 | { | |
32334 | #endif | |
32335 | /* We use char because int might match the return type of a gcc2 | |
32336 | builtin and then its argument prototype would still apply. */ | |
32337 | char $ac_func (); | |
32338 | /* The GNU C library defines this for functions which it implements | |
32339 | to always fail with ENOSYS. Some functions are actually named | |
32340 | something starting with __ and the normal name is an alias. */ | |
32341 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32342 | choke me | |
32343 | #else | |
32344 | char (*f) () = $ac_func; | |
32345 | #endif | |
32346 | #ifdef __cplusplus | |
32347 | } | |
32348 | #endif | |
32349 | ||
32350 | int | |
32351 | main () | |
32352 | { | |
32353 | return f != $ac_func; | |
32354 | ; | |
32355 | return 0; | |
32356 | } | |
32357 | _ACEOF | |
32358 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32360 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32361 | ac_status=$? |
ac1cb8d3 VS |
32362 | grep -v '^ *+' conftest.er1 >conftest.err |
32363 | rm -f conftest.er1 | |
32364 | cat conftest.err >&5 | |
a848cd7e SC |
32365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32366 | (exit $ac_status); } && | |
9dd0f6c2 | 32367 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32369 | (eval $ac_try) 2>&5 | |
32370 | ac_status=$? | |
32371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32372 | (exit $ac_status); }; } && | |
32373 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32375 | (eval $ac_try) 2>&5 | |
32376 | ac_status=$? | |
32377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32378 | (exit $ac_status); }; }; then | |
32379 | eval "$as_ac_var=yes" | |
32380 | else | |
32381 | echo "$as_me: failed program was:" >&5 | |
32382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32383 | ||
32384 | eval "$as_ac_var=no" | |
32385 | fi | |
ac1cb8d3 VS |
32386 | rm -f conftest.err conftest.$ac_objext \ |
32387 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32388 | fi |
32389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32390 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32391 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32392 | cat >>confdefs.h <<_ACEOF | |
32393 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32394 | _ACEOF | |
32395 | ||
32396 | fi | |
32397 | done | |
32398 | ||
32399 | ||
32400 | ||
32401 | ||
32402 | for ac_func in putenv setenv | |
32403 | do | |
32404 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32405 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32406 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32407 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32409 | else | |
32410 | cat >conftest.$ac_ext <<_ACEOF | |
32411 | /* confdefs.h. */ | |
32412 | _ACEOF | |
32413 | cat confdefs.h >>conftest.$ac_ext | |
32414 | cat >>conftest.$ac_ext <<_ACEOF | |
32415 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32416 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32417 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32418 | #define $ac_func innocuous_$ac_func | |
32419 | ||
a848cd7e SC |
32420 | /* System header to define __stub macros and hopefully few prototypes, |
32421 | which can conflict with char $ac_func (); below. | |
32422 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32423 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32424 | |
a848cd7e SC |
32425 | #ifdef __STDC__ |
32426 | # include <limits.h> | |
32427 | #else | |
32428 | # include <assert.h> | |
32429 | #endif | |
ac1cb8d3 VS |
32430 | |
32431 | #undef $ac_func | |
32432 | ||
a848cd7e SC |
32433 | /* Override any gcc2 internal prototype to avoid an error. */ |
32434 | #ifdef __cplusplus | |
32435 | extern "C" | |
32436 | { | |
32437 | #endif | |
32438 | /* We use char because int might match the return type of a gcc2 | |
32439 | builtin and then its argument prototype would still apply. */ | |
32440 | char $ac_func (); | |
32441 | /* The GNU C library defines this for functions which it implements | |
32442 | to always fail with ENOSYS. Some functions are actually named | |
32443 | something starting with __ and the normal name is an alias. */ | |
32444 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32445 | choke me | |
32446 | #else | |
32447 | char (*f) () = $ac_func; | |
32448 | #endif | |
32449 | #ifdef __cplusplus | |
32450 | } | |
32451 | #endif | |
32452 | ||
32453 | int | |
32454 | main () | |
32455 | { | |
32456 | return f != $ac_func; | |
32457 | ; | |
32458 | return 0; | |
32459 | } | |
32460 | _ACEOF | |
32461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32463 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32464 | ac_status=$? |
ac1cb8d3 VS |
32465 | grep -v '^ *+' conftest.er1 >conftest.err |
32466 | rm -f conftest.er1 | |
32467 | cat conftest.err >&5 | |
a848cd7e SC |
32468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32469 | (exit $ac_status); } && | |
9dd0f6c2 | 32470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32472 | (eval $ac_try) 2>&5 | |
32473 | ac_status=$? | |
32474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32475 | (exit $ac_status); }; } && | |
32476 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32478 | (eval $ac_try) 2>&5 | |
32479 | ac_status=$? | |
32480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32481 | (exit $ac_status); }; }; then | |
32482 | eval "$as_ac_var=yes" | |
32483 | else | |
32484 | echo "$as_me: failed program was:" >&5 | |
32485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32486 | ||
32487 | eval "$as_ac_var=no" | |
32488 | fi | |
ac1cb8d3 VS |
32489 | rm -f conftest.err conftest.$ac_objext \ |
32490 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32491 | fi |
32492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32493 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32494 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32495 | cat >>confdefs.h <<_ACEOF | |
32496 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32497 | _ACEOF | |
32498 | break | |
32499 | fi | |
32500 | done | |
32501 | ||
32502 | ||
32503 | HAVE_SOME_SLEEP_FUNC=0 | |
32504 | if test "$USE_BEOS" = 1; then | |
32505 | cat >>confdefs.h <<\_ACEOF | |
32506 | #define HAVE_SLEEP 1 | |
32507 | _ACEOF | |
32508 | ||
32509 | HAVE_SOME_SLEEP_FUNC=1 | |
32510 | fi | |
32511 | ||
32512 | if test "$USE_DARWIN" = 1; then | |
32513 | cat >>confdefs.h <<\_ACEOF | |
32514 | #define HAVE_USLEEP 1 | |
32515 | _ACEOF | |
32516 | ||
32517 | HAVE_SOME_SLEEP_FUNC=1 | |
32518 | fi | |
32519 | ||
32520 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
32521 | POSIX4_LINK= | |
32522 | ||
32523 | for ac_func in nanosleep | |
32524 | do | |
32525 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32526 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32527 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32528 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32530 | else | |
32531 | cat >conftest.$ac_ext <<_ACEOF | |
32532 | /* confdefs.h. */ | |
32533 | _ACEOF | |
32534 | cat confdefs.h >>conftest.$ac_ext | |
32535 | cat >>conftest.$ac_ext <<_ACEOF | |
32536 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32537 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32538 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32539 | #define $ac_func innocuous_$ac_func | |
32540 | ||
a848cd7e SC |
32541 | /* System header to define __stub macros and hopefully few prototypes, |
32542 | which can conflict with char $ac_func (); below. | |
32543 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32544 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32545 | |
a848cd7e SC |
32546 | #ifdef __STDC__ |
32547 | # include <limits.h> | |
32548 | #else | |
32549 | # include <assert.h> | |
32550 | #endif | |
ac1cb8d3 VS |
32551 | |
32552 | #undef $ac_func | |
32553 | ||
a848cd7e SC |
32554 | /* Override any gcc2 internal prototype to avoid an error. */ |
32555 | #ifdef __cplusplus | |
32556 | extern "C" | |
32557 | { | |
32558 | #endif | |
32559 | /* We use char because int might match the return type of a gcc2 | |
32560 | builtin and then its argument prototype would still apply. */ | |
32561 | char $ac_func (); | |
32562 | /* The GNU C library defines this for functions which it implements | |
32563 | to always fail with ENOSYS. Some functions are actually named | |
32564 | something starting with __ and the normal name is an alias. */ | |
32565 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32566 | choke me | |
32567 | #else | |
32568 | char (*f) () = $ac_func; | |
32569 | #endif | |
32570 | #ifdef __cplusplus | |
32571 | } | |
32572 | #endif | |
32573 | ||
32574 | int | |
32575 | main () | |
32576 | { | |
32577 | return f != $ac_func; | |
32578 | ; | |
32579 | return 0; | |
32580 | } | |
32581 | _ACEOF | |
32582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32584 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32585 | ac_status=$? |
ac1cb8d3 VS |
32586 | grep -v '^ *+' conftest.er1 >conftest.err |
32587 | rm -f conftest.er1 | |
32588 | cat conftest.err >&5 | |
a848cd7e SC |
32589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32590 | (exit $ac_status); } && | |
9dd0f6c2 | 32591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32593 | (eval $ac_try) 2>&5 | |
32594 | ac_status=$? | |
32595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32596 | (exit $ac_status); }; } && | |
32597 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32599 | (eval $ac_try) 2>&5 | |
32600 | ac_status=$? | |
32601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32602 | (exit $ac_status); }; }; then | |
32603 | eval "$as_ac_var=yes" | |
32604 | else | |
32605 | echo "$as_me: failed program was:" >&5 | |
32606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32607 | ||
32608 | eval "$as_ac_var=no" | |
32609 | fi | |
ac1cb8d3 VS |
32610 | rm -f conftest.err conftest.$ac_objext \ |
32611 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32612 | fi |
32613 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32614 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32615 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32616 | cat >>confdefs.h <<_ACEOF | |
32617 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32618 | _ACEOF | |
32619 | cat >>confdefs.h <<\_ACEOF | |
32620 | #define HAVE_NANOSLEEP 1 | |
32621 | _ACEOF | |
32622 | ||
32623 | else | |
32624 | ||
32625 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
32626 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
32627 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
32628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32629 | else | |
32630 | ac_check_lib_save_LIBS=$LIBS | |
32631 | LIBS="-lposix4 $LIBS" | |
32632 | cat >conftest.$ac_ext <<_ACEOF | |
32633 | /* confdefs.h. */ | |
32634 | _ACEOF | |
32635 | cat confdefs.h >>conftest.$ac_ext | |
32636 | cat >>conftest.$ac_ext <<_ACEOF | |
32637 | /* end confdefs.h. */ | |
32638 | ||
32639 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32640 | #ifdef __cplusplus | |
32641 | extern "C" | |
32642 | #endif | |
32643 | /* We use char because int might match the return type of a gcc2 | |
32644 | builtin and then its argument prototype would still apply. */ | |
32645 | char nanosleep (); | |
32646 | int | |
32647 | main () | |
32648 | { | |
32649 | nanosleep (); | |
32650 | ; | |
32651 | return 0; | |
32652 | } | |
32653 | _ACEOF | |
32654 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32656 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32657 | ac_status=$? |
ac1cb8d3 VS |
32658 | grep -v '^ *+' conftest.er1 >conftest.err |
32659 | rm -f conftest.er1 | |
32660 | cat conftest.err >&5 | |
a848cd7e SC |
32661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32662 | (exit $ac_status); } && | |
9dd0f6c2 | 32663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32665 | (eval $ac_try) 2>&5 | |
32666 | ac_status=$? | |
32667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32668 | (exit $ac_status); }; } && | |
32669 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32671 | (eval $ac_try) 2>&5 | |
32672 | ac_status=$? | |
32673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32674 | (exit $ac_status); }; }; then | |
32675 | ac_cv_lib_posix4_nanosleep=yes | |
32676 | else | |
32677 | echo "$as_me: failed program was:" >&5 | |
32678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32679 | ||
32680 | ac_cv_lib_posix4_nanosleep=no | |
32681 | fi | |
ac1cb8d3 VS |
32682 | rm -f conftest.err conftest.$ac_objext \ |
32683 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32684 | LIBS=$ac_check_lib_save_LIBS |
32685 | fi | |
32686 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
32687 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
32688 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
32689 | ||
32690 | cat >>confdefs.h <<\_ACEOF | |
32691 | #define HAVE_NANOSLEEP 1 | |
32692 | _ACEOF | |
32693 | ||
32694 | POSIX4_LINK=" -lposix4" | |
32695 | ||
32696 | else | |
32697 | ||
32698 | ||
32699 | for ac_func in usleep | |
32700 | do | |
32701 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32702 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32703 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32704 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32706 | else | |
32707 | cat >conftest.$ac_ext <<_ACEOF | |
32708 | /* confdefs.h. */ | |
32709 | _ACEOF | |
32710 | cat confdefs.h >>conftest.$ac_ext | |
32711 | cat >>conftest.$ac_ext <<_ACEOF | |
32712 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32713 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32714 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32715 | #define $ac_func innocuous_$ac_func | |
32716 | ||
a848cd7e SC |
32717 | /* System header to define __stub macros and hopefully few prototypes, |
32718 | which can conflict with char $ac_func (); below. | |
32719 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32720 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32721 | |
a848cd7e SC |
32722 | #ifdef __STDC__ |
32723 | # include <limits.h> | |
32724 | #else | |
32725 | # include <assert.h> | |
32726 | #endif | |
ac1cb8d3 VS |
32727 | |
32728 | #undef $ac_func | |
32729 | ||
a848cd7e SC |
32730 | /* Override any gcc2 internal prototype to avoid an error. */ |
32731 | #ifdef __cplusplus | |
32732 | extern "C" | |
32733 | { | |
32734 | #endif | |
32735 | /* We use char because int might match the return type of a gcc2 | |
32736 | builtin and then its argument prototype would still apply. */ | |
32737 | char $ac_func (); | |
32738 | /* The GNU C library defines this for functions which it implements | |
32739 | to always fail with ENOSYS. Some functions are actually named | |
32740 | something starting with __ and the normal name is an alias. */ | |
32741 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32742 | choke me | |
32743 | #else | |
32744 | char (*f) () = $ac_func; | |
32745 | #endif | |
32746 | #ifdef __cplusplus | |
32747 | } | |
32748 | #endif | |
32749 | ||
32750 | int | |
32751 | main () | |
32752 | { | |
32753 | return f != $ac_func; | |
32754 | ; | |
32755 | return 0; | |
32756 | } | |
32757 | _ACEOF | |
32758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32760 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32761 | ac_status=$? |
ac1cb8d3 VS |
32762 | grep -v '^ *+' conftest.er1 >conftest.err |
32763 | rm -f conftest.er1 | |
32764 | cat conftest.err >&5 | |
a848cd7e SC |
32765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32766 | (exit $ac_status); } && | |
9dd0f6c2 | 32767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32769 | (eval $ac_try) 2>&5 | |
32770 | ac_status=$? | |
32771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32772 | (exit $ac_status); }; } && | |
32773 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32775 | (eval $ac_try) 2>&5 | |
32776 | ac_status=$? | |
32777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32778 | (exit $ac_status); }; }; then | |
32779 | eval "$as_ac_var=yes" | |
32780 | else | |
32781 | echo "$as_me: failed program was:" >&5 | |
32782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32783 | ||
32784 | eval "$as_ac_var=no" | |
32785 | fi | |
ac1cb8d3 VS |
32786 | rm -f conftest.err conftest.$ac_objext \ |
32787 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32788 | fi |
32789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32790 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32791 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32792 | cat >>confdefs.h <<_ACEOF | |
32793 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32794 | _ACEOF | |
32795 | cat >>confdefs.h <<\_ACEOF | |
32796 | #define HAVE_USLEEP 1 | |
32797 | _ACEOF | |
32798 | ||
32799 | else | |
32800 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
32801 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
32802 | ||
32803 | fi | |
32804 | done | |
32805 | ||
32806 | ||
32807 | ||
32808 | fi | |
32809 | ||
32810 | ||
32811 | ||
32812 | fi | |
32813 | done | |
32814 | ||
32815 | fi | |
32816 | ||
32817 | ||
32818 | ||
32819 | for ac_func in uname gethostname | |
32820 | do | |
32821 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32822 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32823 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32824 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32826 | else | |
32827 | cat >conftest.$ac_ext <<_ACEOF | |
32828 | /* confdefs.h. */ | |
32829 | _ACEOF | |
32830 | cat confdefs.h >>conftest.$ac_ext | |
32831 | cat >>conftest.$ac_ext <<_ACEOF | |
32832 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32833 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32834 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32835 | #define $ac_func innocuous_$ac_func | |
32836 | ||
a848cd7e SC |
32837 | /* System header to define __stub macros and hopefully few prototypes, |
32838 | which can conflict with char $ac_func (); below. | |
32839 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32840 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32841 | |
a848cd7e SC |
32842 | #ifdef __STDC__ |
32843 | # include <limits.h> | |
32844 | #else | |
32845 | # include <assert.h> | |
32846 | #endif | |
ac1cb8d3 VS |
32847 | |
32848 | #undef $ac_func | |
32849 | ||
a848cd7e SC |
32850 | /* Override any gcc2 internal prototype to avoid an error. */ |
32851 | #ifdef __cplusplus | |
32852 | extern "C" | |
32853 | { | |
32854 | #endif | |
32855 | /* We use char because int might match the return type of a gcc2 | |
32856 | builtin and then its argument prototype would still apply. */ | |
32857 | char $ac_func (); | |
32858 | /* The GNU C library defines this for functions which it implements | |
32859 | to always fail with ENOSYS. Some functions are actually named | |
32860 | something starting with __ and the normal name is an alias. */ | |
32861 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32862 | choke me | |
32863 | #else | |
32864 | char (*f) () = $ac_func; | |
32865 | #endif | |
32866 | #ifdef __cplusplus | |
32867 | } | |
32868 | #endif | |
32869 | ||
32870 | int | |
32871 | main () | |
32872 | { | |
32873 | return f != $ac_func; | |
32874 | ; | |
32875 | return 0; | |
32876 | } | |
32877 | _ACEOF | |
32878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32880 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32881 | ac_status=$? |
ac1cb8d3 VS |
32882 | grep -v '^ *+' conftest.er1 >conftest.err |
32883 | rm -f conftest.er1 | |
32884 | cat conftest.err >&5 | |
a848cd7e SC |
32885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32886 | (exit $ac_status); } && | |
9dd0f6c2 | 32887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32889 | (eval $ac_try) 2>&5 | |
32890 | ac_status=$? | |
32891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32892 | (exit $ac_status); }; } && | |
32893 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32895 | (eval $ac_try) 2>&5 | |
32896 | ac_status=$? | |
32897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32898 | (exit $ac_status); }; }; then | |
32899 | eval "$as_ac_var=yes" | |
32900 | else | |
32901 | echo "$as_me: failed program was:" >&5 | |
32902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32903 | ||
32904 | eval "$as_ac_var=no" | |
32905 | fi | |
ac1cb8d3 VS |
32906 | rm -f conftest.err conftest.$ac_objext \ |
32907 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32908 | fi |
32909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32910 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32911 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32912 | cat >>confdefs.h <<_ACEOF | |
32913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32914 | _ACEOF | |
32915 | break | |
32916 | fi | |
32917 | done | |
32918 | ||
32919 | ||
32920 | ||
32921 | ||
32922 | ac_ext=cc | |
32923 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32924 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32925 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32926 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32927 | ||
32928 | ||
32929 | ||
32930 | for ac_func in strtok_r | |
32931 | do | |
32932 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32933 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32934 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32935 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32937 | else | |
32938 | cat >conftest.$ac_ext <<_ACEOF | |
32939 | /* confdefs.h. */ | |
32940 | _ACEOF | |
32941 | cat confdefs.h >>conftest.$ac_ext | |
32942 | cat >>conftest.$ac_ext <<_ACEOF | |
32943 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32944 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32945 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32946 | #define $ac_func innocuous_$ac_func | |
32947 | ||
a848cd7e SC |
32948 | /* System header to define __stub macros and hopefully few prototypes, |
32949 | which can conflict with char $ac_func (); below. | |
32950 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32951 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32952 | |
a848cd7e SC |
32953 | #ifdef __STDC__ |
32954 | # include <limits.h> | |
32955 | #else | |
32956 | # include <assert.h> | |
32957 | #endif | |
ac1cb8d3 VS |
32958 | |
32959 | #undef $ac_func | |
32960 | ||
a848cd7e SC |
32961 | /* Override any gcc2 internal prototype to avoid an error. */ |
32962 | #ifdef __cplusplus | |
32963 | extern "C" | |
32964 | { | |
32965 | #endif | |
32966 | /* We use char because int might match the return type of a gcc2 | |
32967 | builtin and then its argument prototype would still apply. */ | |
32968 | char $ac_func (); | |
32969 | /* The GNU C library defines this for functions which it implements | |
32970 | to always fail with ENOSYS. Some functions are actually named | |
32971 | something starting with __ and the normal name is an alias. */ | |
32972 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32973 | choke me | |
32974 | #else | |
32975 | char (*f) () = $ac_func; | |
32976 | #endif | |
32977 | #ifdef __cplusplus | |
32978 | } | |
32979 | #endif | |
32980 | ||
32981 | int | |
32982 | main () | |
32983 | { | |
32984 | return f != $ac_func; | |
32985 | ; | |
32986 | return 0; | |
32987 | } | |
32988 | _ACEOF | |
32989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32991 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32992 | ac_status=$? |
ac1cb8d3 VS |
32993 | grep -v '^ *+' conftest.er1 >conftest.err |
32994 | rm -f conftest.er1 | |
32995 | cat conftest.err >&5 | |
a848cd7e SC |
32996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32997 | (exit $ac_status); } && | |
9dd0f6c2 | 32998 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33000 | (eval $ac_try) 2>&5 | |
33001 | ac_status=$? | |
33002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33003 | (exit $ac_status); }; } && | |
33004 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33006 | (eval $ac_try) 2>&5 | |
33007 | ac_status=$? | |
33008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33009 | (exit $ac_status); }; }; then | |
33010 | eval "$as_ac_var=yes" | |
33011 | else | |
33012 | echo "$as_me: failed program was:" >&5 | |
33013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33014 | ||
33015 | eval "$as_ac_var=no" | |
33016 | fi | |
ac1cb8d3 VS |
33017 | rm -f conftest.err conftest.$ac_objext \ |
33018 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33019 | fi |
33020 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33021 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33022 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33023 | cat >>confdefs.h <<_ACEOF | |
33024 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33025 | _ACEOF | |
33026 | ||
33027 | fi | |
33028 | done | |
33029 | ||
33030 | ||
33031 | ac_ext=c | |
33032 | ac_cpp='$CPP $CPPFLAGS' | |
33033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33036 | ||
33037 | ||
33038 | INET_LINK= | |
33039 | ||
33040 | for ac_func in inet_addr | |
33041 | do | |
33042 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33043 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33044 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33045 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33047 | else | |
33048 | cat >conftest.$ac_ext <<_ACEOF | |
33049 | /* confdefs.h. */ | |
33050 | _ACEOF | |
33051 | cat confdefs.h >>conftest.$ac_ext | |
33052 | cat >>conftest.$ac_ext <<_ACEOF | |
33053 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33054 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33055 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33056 | #define $ac_func innocuous_$ac_func | |
33057 | ||
a848cd7e SC |
33058 | /* System header to define __stub macros and hopefully few prototypes, |
33059 | which can conflict with char $ac_func (); below. | |
33060 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33061 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33062 | |
a848cd7e SC |
33063 | #ifdef __STDC__ |
33064 | # include <limits.h> | |
33065 | #else | |
33066 | # include <assert.h> | |
33067 | #endif | |
ac1cb8d3 VS |
33068 | |
33069 | #undef $ac_func | |
33070 | ||
a848cd7e SC |
33071 | /* Override any gcc2 internal prototype to avoid an error. */ |
33072 | #ifdef __cplusplus | |
33073 | extern "C" | |
33074 | { | |
33075 | #endif | |
33076 | /* We use char because int might match the return type of a gcc2 | |
33077 | builtin and then its argument prototype would still apply. */ | |
33078 | char $ac_func (); | |
33079 | /* The GNU C library defines this for functions which it implements | |
33080 | to always fail with ENOSYS. Some functions are actually named | |
33081 | something starting with __ and the normal name is an alias. */ | |
33082 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33083 | choke me | |
33084 | #else | |
33085 | char (*f) () = $ac_func; | |
33086 | #endif | |
33087 | #ifdef __cplusplus | |
33088 | } | |
33089 | #endif | |
33090 | ||
33091 | int | |
33092 | main () | |
33093 | { | |
33094 | return f != $ac_func; | |
33095 | ; | |
33096 | return 0; | |
33097 | } | |
33098 | _ACEOF | |
33099 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33101 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33102 | ac_status=$? |
ac1cb8d3 VS |
33103 | grep -v '^ *+' conftest.er1 >conftest.err |
33104 | rm -f conftest.er1 | |
33105 | cat conftest.err >&5 | |
a848cd7e SC |
33106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33107 | (exit $ac_status); } && | |
9dd0f6c2 | 33108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33110 | (eval $ac_try) 2>&5 | |
33111 | ac_status=$? | |
33112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33113 | (exit $ac_status); }; } && | |
33114 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33116 | (eval $ac_try) 2>&5 | |
33117 | ac_status=$? | |
33118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33119 | (exit $ac_status); }; }; then | |
33120 | eval "$as_ac_var=yes" | |
33121 | else | |
33122 | echo "$as_me: failed program was:" >&5 | |
33123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33124 | ||
33125 | eval "$as_ac_var=no" | |
33126 | fi | |
ac1cb8d3 VS |
33127 | rm -f conftest.err conftest.$ac_objext \ |
33128 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33129 | fi |
33130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33131 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33132 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33133 | cat >>confdefs.h <<_ACEOF | |
33134 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33135 | _ACEOF | |
33136 | cat >>confdefs.h <<\_ACEOF | |
33137 | #define HAVE_INET_ADDR 1 | |
33138 | _ACEOF | |
33139 | ||
33140 | else | |
33141 | ||
33142 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
33143 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
33144 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
33145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33146 | else | |
33147 | ac_check_lib_save_LIBS=$LIBS | |
33148 | LIBS="-lnsl $LIBS" | |
33149 | cat >conftest.$ac_ext <<_ACEOF | |
33150 | /* confdefs.h. */ | |
33151 | _ACEOF | |
33152 | cat confdefs.h >>conftest.$ac_ext | |
33153 | cat >>conftest.$ac_ext <<_ACEOF | |
33154 | /* end confdefs.h. */ | |
33155 | ||
33156 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33157 | #ifdef __cplusplus | |
33158 | extern "C" | |
33159 | #endif | |
33160 | /* We use char because int might match the return type of a gcc2 | |
33161 | builtin and then its argument prototype would still apply. */ | |
33162 | char inet_addr (); | |
33163 | int | |
33164 | main () | |
33165 | { | |
33166 | inet_addr (); | |
33167 | ; | |
33168 | return 0; | |
33169 | } | |
33170 | _ACEOF | |
33171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33173 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33174 | ac_status=$? |
ac1cb8d3 VS |
33175 | grep -v '^ *+' conftest.er1 >conftest.err |
33176 | rm -f conftest.er1 | |
33177 | cat conftest.err >&5 | |
a848cd7e SC |
33178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33179 | (exit $ac_status); } && | |
9dd0f6c2 | 33180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33182 | (eval $ac_try) 2>&5 | |
33183 | ac_status=$? | |
33184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33185 | (exit $ac_status); }; } && | |
33186 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33188 | (eval $ac_try) 2>&5 | |
33189 | ac_status=$? | |
33190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33191 | (exit $ac_status); }; }; then | |
33192 | ac_cv_lib_nsl_inet_addr=yes | |
33193 | else | |
33194 | echo "$as_me: failed program was:" >&5 | |
33195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33196 | ||
33197 | ac_cv_lib_nsl_inet_addr=no | |
33198 | fi | |
ac1cb8d3 VS |
33199 | rm -f conftest.err conftest.$ac_objext \ |
33200 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33201 | LIBS=$ac_check_lib_save_LIBS |
33202 | fi | |
33203 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
33204 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
33205 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
33206 | INET_LINK="nsl" | |
33207 | else | |
33208 | ||
33209 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
33210 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
33211 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
33212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33213 | else | |
33214 | ac_check_lib_save_LIBS=$LIBS | |
33215 | LIBS="-lresolv $LIBS" | |
33216 | cat >conftest.$ac_ext <<_ACEOF | |
33217 | /* confdefs.h. */ | |
33218 | _ACEOF | |
33219 | cat confdefs.h >>conftest.$ac_ext | |
33220 | cat >>conftest.$ac_ext <<_ACEOF | |
33221 | /* end confdefs.h. */ | |
33222 | ||
33223 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33224 | #ifdef __cplusplus | |
33225 | extern "C" | |
33226 | #endif | |
33227 | /* We use char because int might match the return type of a gcc2 | |
33228 | builtin and then its argument prototype would still apply. */ | |
33229 | char inet_addr (); | |
33230 | int | |
33231 | main () | |
33232 | { | |
33233 | inet_addr (); | |
33234 | ; | |
33235 | return 0; | |
33236 | } | |
33237 | _ACEOF | |
33238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33240 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33241 | ac_status=$? |
ac1cb8d3 VS |
33242 | grep -v '^ *+' conftest.er1 >conftest.err |
33243 | rm -f conftest.er1 | |
33244 | cat conftest.err >&5 | |
a848cd7e SC |
33245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33246 | (exit $ac_status); } && | |
9dd0f6c2 | 33247 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33249 | (eval $ac_try) 2>&5 | |
33250 | ac_status=$? | |
33251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33252 | (exit $ac_status); }; } && | |
33253 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33255 | (eval $ac_try) 2>&5 | |
33256 | ac_status=$? | |
33257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33258 | (exit $ac_status); }; }; then | |
33259 | ac_cv_lib_resolv_inet_addr=yes | |
33260 | else | |
33261 | echo "$as_me: failed program was:" >&5 | |
33262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33263 | ||
33264 | ac_cv_lib_resolv_inet_addr=no | |
33265 | fi | |
ac1cb8d3 VS |
33266 | rm -f conftest.err conftest.$ac_objext \ |
33267 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33268 | LIBS=$ac_check_lib_save_LIBS |
33269 | fi | |
33270 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
33271 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
33272 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
33273 | INET_LINK="resolv" | |
33274 | else | |
33275 | ||
33276 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
33277 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
33278 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
33279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33280 | else | |
33281 | ac_check_lib_save_LIBS=$LIBS | |
33282 | LIBS="-lsocket $LIBS" | |
33283 | cat >conftest.$ac_ext <<_ACEOF | |
33284 | /* confdefs.h. */ | |
33285 | _ACEOF | |
33286 | cat confdefs.h >>conftest.$ac_ext | |
33287 | cat >>conftest.$ac_ext <<_ACEOF | |
33288 | /* end confdefs.h. */ | |
33289 | ||
33290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33291 | #ifdef __cplusplus | |
33292 | extern "C" | |
33293 | #endif | |
33294 | /* We use char because int might match the return type of a gcc2 | |
33295 | builtin and then its argument prototype would still apply. */ | |
33296 | char inet_addr (); | |
33297 | int | |
33298 | main () | |
33299 | { | |
33300 | inet_addr (); | |
33301 | ; | |
33302 | return 0; | |
33303 | } | |
33304 | _ACEOF | |
33305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33307 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33308 | ac_status=$? |
ac1cb8d3 VS |
33309 | grep -v '^ *+' conftest.er1 >conftest.err |
33310 | rm -f conftest.er1 | |
33311 | cat conftest.err >&5 | |
a848cd7e SC |
33312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33313 | (exit $ac_status); } && | |
9dd0f6c2 | 33314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33316 | (eval $ac_try) 2>&5 | |
33317 | ac_status=$? | |
33318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33319 | (exit $ac_status); }; } && | |
33320 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33322 | (eval $ac_try) 2>&5 | |
33323 | ac_status=$? | |
33324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33325 | (exit $ac_status); }; }; then | |
33326 | ac_cv_lib_socket_inet_addr=yes | |
33327 | else | |
33328 | echo "$as_me: failed program was:" >&5 | |
33329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33330 | ||
33331 | ac_cv_lib_socket_inet_addr=no | |
33332 | fi | |
ac1cb8d3 VS |
33333 | rm -f conftest.err conftest.$ac_objext \ |
33334 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33335 | LIBS=$ac_check_lib_save_LIBS |
33336 | fi | |
33337 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
33338 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
33339 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
33340 | INET_LINK="socket" | |
33341 | ||
33342 | fi | |
33343 | ||
33344 | ||
33345 | ||
33346 | fi | |
33347 | ||
33348 | ||
33349 | ||
33350 | fi | |
33351 | ||
33352 | ||
33353 | ||
33354 | fi | |
33355 | done | |
33356 | ||
33357 | ||
33358 | ||
33359 | for ac_func in inet_aton | |
33360 | do | |
33361 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33362 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33363 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33364 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33366 | else | |
33367 | cat >conftest.$ac_ext <<_ACEOF | |
33368 | /* confdefs.h. */ | |
33369 | _ACEOF | |
33370 | cat confdefs.h >>conftest.$ac_ext | |
33371 | cat >>conftest.$ac_ext <<_ACEOF | |
33372 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33373 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33374 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33375 | #define $ac_func innocuous_$ac_func | |
33376 | ||
a848cd7e SC |
33377 | /* System header to define __stub macros and hopefully few prototypes, |
33378 | which can conflict with char $ac_func (); below. | |
33379 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33380 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33381 | |
a848cd7e SC |
33382 | #ifdef __STDC__ |
33383 | # include <limits.h> | |
33384 | #else | |
33385 | # include <assert.h> | |
33386 | #endif | |
ac1cb8d3 VS |
33387 | |
33388 | #undef $ac_func | |
33389 | ||
a848cd7e SC |
33390 | /* Override any gcc2 internal prototype to avoid an error. */ |
33391 | #ifdef __cplusplus | |
33392 | extern "C" | |
33393 | { | |
33394 | #endif | |
33395 | /* We use char because int might match the return type of a gcc2 | |
33396 | builtin and then its argument prototype would still apply. */ | |
33397 | char $ac_func (); | |
33398 | /* The GNU C library defines this for functions which it implements | |
33399 | to always fail with ENOSYS. Some functions are actually named | |
33400 | something starting with __ and the normal name is an alias. */ | |
33401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33402 | choke me | |
33403 | #else | |
33404 | char (*f) () = $ac_func; | |
33405 | #endif | |
33406 | #ifdef __cplusplus | |
33407 | } | |
33408 | #endif | |
33409 | ||
33410 | int | |
33411 | main () | |
33412 | { | |
33413 | return f != $ac_func; | |
33414 | ; | |
33415 | return 0; | |
33416 | } | |
33417 | _ACEOF | |
33418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33420 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33421 | ac_status=$? |
ac1cb8d3 VS |
33422 | grep -v '^ *+' conftest.er1 >conftest.err |
33423 | rm -f conftest.er1 | |
33424 | cat conftest.err >&5 | |
a848cd7e SC |
33425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33426 | (exit $ac_status); } && | |
9dd0f6c2 | 33427 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33429 | (eval $ac_try) 2>&5 | |
33430 | ac_status=$? | |
33431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33432 | (exit $ac_status); }; } && | |
33433 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33435 | (eval $ac_try) 2>&5 | |
33436 | ac_status=$? | |
33437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33438 | (exit $ac_status); }; }; then | |
33439 | eval "$as_ac_var=yes" | |
33440 | else | |
33441 | echo "$as_me: failed program was:" >&5 | |
33442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33443 | ||
33444 | eval "$as_ac_var=no" | |
33445 | fi | |
ac1cb8d3 VS |
33446 | rm -f conftest.err conftest.$ac_objext \ |
33447 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33448 | fi |
33449 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33450 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33451 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33452 | cat >>confdefs.h <<_ACEOF | |
33453 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33454 | _ACEOF | |
33455 | cat >>confdefs.h <<\_ACEOF | |
33456 | #define HAVE_INET_ATON 1 | |
33457 | _ACEOF | |
33458 | ||
33459 | else | |
33460 | ||
33461 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
33462 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
33463 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
33464 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
33465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33466 | else | |
33467 | ac_check_lib_save_LIBS=$LIBS | |
33468 | LIBS="-l$INET_LINK $LIBS" | |
33469 | cat >conftest.$ac_ext <<_ACEOF | |
33470 | /* confdefs.h. */ | |
33471 | _ACEOF | |
33472 | cat confdefs.h >>conftest.$ac_ext | |
33473 | cat >>conftest.$ac_ext <<_ACEOF | |
33474 | /* end confdefs.h. */ | |
33475 | ||
33476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33477 | #ifdef __cplusplus | |
33478 | extern "C" | |
33479 | #endif | |
33480 | /* We use char because int might match the return type of a gcc2 | |
33481 | builtin and then its argument prototype would still apply. */ | |
33482 | char inet_aton (); | |
33483 | int | |
33484 | main () | |
33485 | { | |
33486 | inet_aton (); | |
33487 | ; | |
33488 | return 0; | |
33489 | } | |
33490 | _ACEOF | |
33491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33493 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33494 | ac_status=$? |
ac1cb8d3 VS |
33495 | grep -v '^ *+' conftest.er1 >conftest.err |
33496 | rm -f conftest.er1 | |
33497 | cat conftest.err >&5 | |
a848cd7e SC |
33498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33499 | (exit $ac_status); } && | |
9dd0f6c2 | 33500 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33502 | (eval $ac_try) 2>&5 | |
33503 | ac_status=$? | |
33504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33505 | (exit $ac_status); }; } && | |
33506 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33508 | (eval $ac_try) 2>&5 | |
33509 | ac_status=$? | |
33510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33511 | (exit $ac_status); }; }; then | |
33512 | eval "$as_ac_Lib=yes" | |
33513 | else | |
33514 | echo "$as_me: failed program was:" >&5 | |
33515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33516 | ||
33517 | eval "$as_ac_Lib=no" | |
33518 | fi | |
ac1cb8d3 VS |
33519 | rm -f conftest.err conftest.$ac_objext \ |
33520 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33521 | LIBS=$ac_check_lib_save_LIBS |
33522 | fi | |
33523 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
33524 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
33525 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
33526 | cat >>confdefs.h <<\_ACEOF | |
33527 | #define HAVE_INET_ATON 1 | |
33528 | _ACEOF | |
33529 | ||
33530 | fi | |
33531 | ||
33532 | ||
33533 | fi | |
33534 | done | |
33535 | ||
33536 | ||
33537 | if test "x$INET_LINK" != "x"; then | |
33538 | cat >>confdefs.h <<\_ACEOF | |
33539 | #define HAVE_INET_ADDR 1 | |
33540 | _ACEOF | |
33541 | ||
33542 | INET_LINK=" -l$INET_LINK" | |
33543 | fi | |
33544 | ||
33545 | fi | |
33546 | ||
33547 | ||
33548 | ||
33549 | EXTRALIBS_ESD= | |
33550 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
33551 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
33552 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
33553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33554 | else | |
33555 | ac_check_lib_save_LIBS=$LIBS | |
33556 | LIBS="-lesd $LIBS" | |
33557 | cat >conftest.$ac_ext <<_ACEOF | |
33558 | /* confdefs.h. */ | |
33559 | _ACEOF | |
33560 | cat confdefs.h >>conftest.$ac_ext | |
33561 | cat >>conftest.$ac_ext <<_ACEOF | |
33562 | /* end confdefs.h. */ | |
33563 | ||
33564 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33565 | #ifdef __cplusplus | |
33566 | extern "C" | |
33567 | #endif | |
33568 | /* We use char because int might match the return type of a gcc2 | |
33569 | builtin and then its argument prototype would still apply. */ | |
33570 | char esd_close (); | |
33571 | int | |
33572 | main () | |
33573 | { | |
33574 | esd_close (); | |
33575 | ; | |
33576 | return 0; | |
33577 | } | |
33578 | _ACEOF | |
33579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33581 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33582 | ac_status=$? |
ac1cb8d3 VS |
33583 | grep -v '^ *+' conftest.er1 >conftest.err |
33584 | rm -f conftest.er1 | |
33585 | cat conftest.err >&5 | |
a848cd7e SC |
33586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33587 | (exit $ac_status); } && | |
9dd0f6c2 | 33588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33590 | (eval $ac_try) 2>&5 | |
33591 | ac_status=$? | |
33592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33593 | (exit $ac_status); }; } && | |
33594 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33596 | (eval $ac_try) 2>&5 | |
33597 | ac_status=$? | |
33598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33599 | (exit $ac_status); }; }; then | |
33600 | ac_cv_lib_esd_esd_close=yes | |
33601 | else | |
33602 | echo "$as_me: failed program was:" >&5 | |
33603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33604 | ||
33605 | ac_cv_lib_esd_esd_close=no | |
33606 | fi | |
ac1cb8d3 VS |
33607 | rm -f conftest.err conftest.$ac_objext \ |
33608 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33609 | LIBS=$ac_check_lib_save_LIBS |
33610 | fi | |
33611 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
33612 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
33613 | if test $ac_cv_lib_esd_esd_close = yes; then | |
33614 | ||
33615 | ||
33616 | for ac_header in esd.h | |
33617 | do | |
33618 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33620 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33622 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33624 | fi | |
33625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33626 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33627 | else | |
33628 | # Is the header compilable? | |
33629 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33630 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33631 | cat >conftest.$ac_ext <<_ACEOF | |
33632 | /* confdefs.h. */ | |
33633 | _ACEOF | |
33634 | cat confdefs.h >>conftest.$ac_ext | |
33635 | cat >>conftest.$ac_ext <<_ACEOF | |
33636 | /* end confdefs.h. */ | |
33637 | $ac_includes_default | |
33638 | #include <$ac_header> | |
33639 | _ACEOF | |
33640 | rm -f conftest.$ac_objext | |
33641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33642 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33643 | ac_status=$? |
ac1cb8d3 VS |
33644 | grep -v '^ *+' conftest.er1 >conftest.err |
33645 | rm -f conftest.er1 | |
33646 | cat conftest.err >&5 | |
a848cd7e SC |
33647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33648 | (exit $ac_status); } && | |
9dd0f6c2 | 33649 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33651 | (eval $ac_try) 2>&5 | |
33652 | ac_status=$? | |
33653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33654 | (exit $ac_status); }; } && | |
33655 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33657 | (eval $ac_try) 2>&5 | |
33658 | ac_status=$? | |
33659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33660 | (exit $ac_status); }; }; then | |
33661 | ac_header_compiler=yes | |
33662 | else | |
33663 | echo "$as_me: failed program was:" >&5 | |
33664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33665 | ||
33666 | ac_header_compiler=no | |
33667 | fi | |
ac1cb8d3 | 33668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33669 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33670 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33671 | ||
33672 | # Is the header present? | |
33673 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33674 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33675 | cat >conftest.$ac_ext <<_ACEOF | |
33676 | /* confdefs.h. */ | |
33677 | _ACEOF | |
33678 | cat confdefs.h >>conftest.$ac_ext | |
33679 | cat >>conftest.$ac_ext <<_ACEOF | |
33680 | /* end confdefs.h. */ | |
33681 | #include <$ac_header> | |
33682 | _ACEOF | |
33683 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33684 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33685 | ac_status=$? | |
33686 | grep -v '^ *+' conftest.er1 >conftest.err | |
33687 | rm -f conftest.er1 | |
33688 | cat conftest.err >&5 | |
33689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33690 | (exit $ac_status); } >/dev/null; then | |
33691 | if test -s conftest.err; then | |
33692 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33693 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33694 | else |
33695 | ac_cpp_err= | |
33696 | fi | |
33697 | else | |
33698 | ac_cpp_err=yes | |
33699 | fi | |
33700 | if test -z "$ac_cpp_err"; then | |
33701 | ac_header_preproc=yes | |
33702 | else | |
33703 | echo "$as_me: failed program was:" >&5 | |
33704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33705 | ||
33706 | ac_header_preproc=no | |
33707 | fi | |
33708 | rm -f conftest.err conftest.$ac_ext | |
33709 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33710 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33711 | ||
33712 | # So? What about this header? | |
ac1cb8d3 VS |
33713 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33714 | yes:no: ) | |
a848cd7e SC |
33715 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33716 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33717 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33718 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33719 | ac_header_preproc=yes | |
a848cd7e | 33720 | ;; |
ac1cb8d3 | 33721 | no:yes:* ) |
a848cd7e SC |
33722 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33723 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33724 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33725 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33726 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33727 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33728 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33729 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33730 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33731 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33732 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33733 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33734 | ( |
33735 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33736 | ## ----------------------------------------- ## |
33737 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33738 | ## ----------------------------------------- ## | |
a848cd7e SC |
33739 | _ASBOX |
33740 | ) | | |
33741 | sed "s/^/$as_me: WARNING: /" >&2 | |
33742 | ;; | |
33743 | esac | |
33744 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33745 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33746 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33748 | else | |
ac1cb8d3 | 33749 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33750 | fi |
33751 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33752 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33753 | ||
33754 | fi | |
33755 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33756 | cat >>confdefs.h <<_ACEOF | |
33757 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33758 | _ACEOF | |
33759 | ||
33760 | EXTRALIBS_ESD="-lesd" | |
33761 | ||
33762 | fi | |
33763 | ||
33764 | done | |
33765 | ||
33766 | ||
33767 | fi | |
33768 | ||
33769 | ||
33770 | ||
33771 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
33772 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
33773 | cat >conftest.$ac_ext <<_ACEOF | |
33774 | /* confdefs.h. */ | |
33775 | _ACEOF | |
33776 | cat confdefs.h >>conftest.$ac_ext | |
33777 | cat >>conftest.$ac_ext <<_ACEOF | |
33778 | /* end confdefs.h. */ | |
33779 | #ifdef __linux__ | |
33780 | #include <linux/cdrom.h> | |
33781 | #else | |
33782 | /* For Solaris */ | |
33783 | #include <sys/cdio.h> | |
33784 | #endif | |
33785 | ||
33786 | int | |
33787 | main () | |
33788 | { | |
33789 | struct cdrom_tocentry entry, old_entry; | |
33790 | ; | |
33791 | return 0; | |
33792 | } | |
33793 | _ACEOF | |
33794 | rm -f conftest.$ac_objext | |
33795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33796 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33797 | ac_status=$? |
ac1cb8d3 VS |
33798 | grep -v '^ *+' conftest.er1 >conftest.err |
33799 | rm -f conftest.er1 | |
33800 | cat conftest.err >&5 | |
a848cd7e SC |
33801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33802 | (exit $ac_status); } && | |
9dd0f6c2 | 33803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33805 | (eval $ac_try) 2>&5 | |
33806 | ac_status=$? | |
33807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33808 | (exit $ac_status); }; } && | |
33809 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33811 | (eval $ac_try) 2>&5 | |
33812 | ac_status=$? | |
33813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33814 | (exit $ac_status); }; }; then | |
33815 | echo "$as_me:$LINENO: result: yes" >&5 | |
33816 | echo "${ECHO_T}yes" >&6 | |
33817 | cat >>confdefs.h <<\_ACEOF | |
33818 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
33819 | _ACEOF | |
33820 | ||
33821 | else | |
33822 | echo "$as_me: failed program was:" >&5 | |
33823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33824 | ||
33825 | echo "$as_me:$LINENO: result: no" >&5 | |
33826 | echo "${ECHO_T}no" >&6 | |
33827 | fi | |
ac1cb8d3 | 33828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33829 | |
33830 | ||
33831 | cat >confcache <<\_ACEOF | |
33832 | # This file is a shell script that caches the results of configure | |
33833 | # tests run on this system so they can be shared between configure | |
33834 | # scripts and configure runs, see configure's option --config-cache. | |
33835 | # It is not useful on other systems. If it contains results you don't | |
33836 | # want to keep, you may remove or edit it. | |
33837 | # | |
33838 | # config.status only pays attention to the cache file if you give it | |
33839 | # the --recheck option to rerun configure. | |
33840 | # | |
33841 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
33842 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
33843 | # following values. | |
33844 | ||
33845 | _ACEOF | |
33846 | ||
33847 | # The following way of writing the cache mishandles newlines in values, | |
33848 | # but we know of no workaround that is simple, portable, and efficient. | |
33849 | # So, don't put newlines in cache variables' values. | |
33850 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
33851 | # and sets the high bit in the cache file unless we assign to the vars. | |
33852 | { | |
33853 | (set) 2>&1 | | |
33854 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
33855 | *ac_space=\ *) | |
33856 | # `set' does not quote correctly, so add quotes (double-quote | |
33857 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
33858 | sed -n \ | |
ac1cb8d3 VS |
33859 | "s/'/'\\\\''/g; |
33860 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
33861 | ;; |
33862 | *) | |
33863 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
33864 | sed -n \ | |
ac1cb8d3 | 33865 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
33866 | ;; |
33867 | esac; | |
33868 | } | | |
33869 | sed ' | |
33870 | t clear | |
33871 | : clear | |
33872 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
33873 | t end | |
33874 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
33875 | : end' >>confcache | |
33876 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
33877 | if test -w $cache_file; then | |
33878 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
33879 | cat confcache >$cache_file | |
33880 | else | |
33881 | echo "not updating unwritable cache $cache_file" | |
33882 | fi | |
33883 | fi | |
33884 | rm -f confcache | |
33885 | ||
33886 | ||
33887 | CPP_MT_FLAG= | |
33888 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33889 | ||
33890 | ||
33891 | THREADS_LINK= | |
33892 | THREADS_CFLAGS= | |
33893 | ||
33894 | if test "$wxUSE_THREADS" = "yes" ; then | |
33895 | if test "$USE_BEOS" = 1; then | |
33896 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
33897 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
33898 | wxUSE_THREADS="no" | |
33899 | fi | |
33900 | fi | |
33901 | ||
33902 | if test "$wxUSE_THREADS" = "yes" ; then | |
33903 | ||
33904 | ||
33905 | THREAD_OPTS="-pthread" | |
33906 | case "${host}" in | |
33907 | *-*-solaris2* | *-*-sunos4* ) | |
33908 | if test "x$GCC" = "xyes"; then | |
33909 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
33910 | else | |
33911 | THREAD_OPTS="-mt $THREAD_OPTS" | |
33912 | fi | |
33913 | ;; | |
33914 | *-*-freebsd*) | |
33915 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
33916 | ;; | |
33917 | *-*-darwin* | *-*-cygwin* ) | |
33918 | THREAD_OPTS="" | |
33919 | ;; | |
33920 | *-*-aix*) | |
33921 | THREAD_OPTS="pthreads" | |
33922 | ;; | |
33923 | *-hp-hpux* ) | |
33924 | if test "x$GCC" != "xyes"; then | |
33925 | THREAD_OPTS="" | |
33926 | fi | |
33927 | ;; | |
33928 | ||
33929 | *-*-irix* ) | |
33930 | if test "x$GCC" = "xyes"; then | |
33931 | THREAD_OPTS="" | |
33932 | fi | |
33933 | ;; | |
33934 | ||
33935 | *-*-*UnixWare*) | |
33936 | if test "x$GCC" != "xyes"; then | |
33937 | THREAD_OPTS="-Ethread" | |
33938 | fi | |
33939 | ;; | |
33940 | esac | |
33941 | ||
33942 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
33943 | ||
33944 | THREADS_OK=no | |
33945 | for flag in $THREAD_OPTS; do | |
33946 | case $flag in | |
33947 | none) | |
33948 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
33949 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
33950 | ;; | |
33951 | ||
33952 | -*) | |
33953 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
33954 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
33955 | THREADS_CFLAGS="$flag" | |
33956 | ;; | |
33957 | ||
33958 | *) | |
33959 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
33960 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
33961 | THREADS_LINK="-l$flag" | |
33962 | ;; | |
33963 | esac | |
33964 | ||
33965 | save_LIBS="$LIBS" | |
33966 | save_CFLAGS="$CFLAGS" | |
33967 | LIBS="$THREADS_LINK $LIBS" | |
33968 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
33969 | ||
33970 | cat >conftest.$ac_ext <<_ACEOF | |
33971 | /* confdefs.h. */ | |
33972 | _ACEOF | |
33973 | cat confdefs.h >>conftest.$ac_ext | |
33974 | cat >>conftest.$ac_ext <<_ACEOF | |
33975 | /* end confdefs.h. */ | |
33976 | #include <pthread.h> | |
33977 | int | |
33978 | main () | |
33979 | { | |
33980 | pthread_create(0,0,0,0); | |
33981 | ; | |
33982 | return 0; | |
33983 | } | |
33984 | _ACEOF | |
33985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33987 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33988 | ac_status=$? |
ac1cb8d3 VS |
33989 | grep -v '^ *+' conftest.er1 >conftest.err |
33990 | rm -f conftest.er1 | |
33991 | cat conftest.err >&5 | |
a848cd7e SC |
33992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33993 | (exit $ac_status); } && | |
9dd0f6c2 | 33994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33996 | (eval $ac_try) 2>&5 | |
33997 | ac_status=$? | |
33998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33999 | (exit $ac_status); }; } && | |
34000 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34002 | (eval $ac_try) 2>&5 | |
34003 | ac_status=$? | |
34004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34005 | (exit $ac_status); }; }; then | |
34006 | THREADS_OK=yes | |
34007 | else | |
34008 | echo "$as_me: failed program was:" >&5 | |
34009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34010 | ||
34011 | fi | |
ac1cb8d3 VS |
34012 | rm -f conftest.err conftest.$ac_objext \ |
34013 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34014 | |
34015 | LIBS="$save_LIBS" | |
34016 | CFLAGS="$save_CFLAGS" | |
34017 | ||
34018 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
34019 | echo "${ECHO_T}$THREADS_OK" >&6 | |
34020 | if test "x$THREADS_OK" = "xyes"; then | |
34021 | break; | |
34022 | fi | |
34023 | ||
34024 | THREADS_LINK="" | |
34025 | THREADS_CFLAGS="" | |
34026 | done | |
34027 | ||
34028 | if test "x$THREADS_OK" != "xyes"; then | |
34029 | wxUSE_THREADS=no | |
34030 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
34031 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
34032 | else | |
34033 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
34034 | LIBS="$THREADS_LINK $LIBS" | |
34035 | ||
34036 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
34037 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
34038 | flag=no | |
34039 | case "${host}" in | |
34040 | *-aix*) | |
34041 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
34042 | flag="-D_THREAD_SAFE" | |
34043 | ;; | |
34044 | *-freebsd*) | |
34045 | flag="-D_THREAD_SAFE" | |
34046 | ;; | |
34047 | *-hp-hpux* ) | |
34048 | flag="-D_REENTRANT" | |
34049 | if test "x$GCC" != "xyes"; then | |
34050 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
34051 | fi | |
34052 | ;; | |
34053 | *solaris* | alpha*-osf*) | |
34054 | flag="-D_REENTRANT" | |
34055 | ;; | |
34056 | esac | |
34057 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
34058 | echo "${ECHO_T}${flag}" >&6 | |
34059 | if test "x$flag" != xno; then | |
34060 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
34061 | fi | |
34062 | ||
34063 | if test "x$THREADS_CFLAGS" != "x"; then | |
34064 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
34065 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
34066 | fi | |
34067 | fi | |
34068 | fi | |
34069 | ||
34070 | if test "$wxUSE_THREADS" = "yes" ; then | |
34071 | ||
34072 | for ac_func in thr_setconcurrency | |
34073 | do | |
34074 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34075 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34076 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34077 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34079 | else | |
34080 | cat >conftest.$ac_ext <<_ACEOF | |
34081 | /* confdefs.h. */ | |
34082 | _ACEOF | |
34083 | cat confdefs.h >>conftest.$ac_ext | |
34084 | cat >>conftest.$ac_ext <<_ACEOF | |
34085 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34086 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34087 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34088 | #define $ac_func innocuous_$ac_func | |
34089 | ||
a848cd7e SC |
34090 | /* System header to define __stub macros and hopefully few prototypes, |
34091 | which can conflict with char $ac_func (); below. | |
34092 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34093 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34094 | |
a848cd7e SC |
34095 | #ifdef __STDC__ |
34096 | # include <limits.h> | |
34097 | #else | |
34098 | # include <assert.h> | |
34099 | #endif | |
ac1cb8d3 VS |
34100 | |
34101 | #undef $ac_func | |
34102 | ||
a848cd7e SC |
34103 | /* Override any gcc2 internal prototype to avoid an error. */ |
34104 | #ifdef __cplusplus | |
34105 | extern "C" | |
34106 | { | |
34107 | #endif | |
34108 | /* We use char because int might match the return type of a gcc2 | |
34109 | builtin and then its argument prototype would still apply. */ | |
34110 | char $ac_func (); | |
34111 | /* The GNU C library defines this for functions which it implements | |
34112 | to always fail with ENOSYS. Some functions are actually named | |
34113 | something starting with __ and the normal name is an alias. */ | |
34114 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34115 | choke me | |
34116 | #else | |
34117 | char (*f) () = $ac_func; | |
34118 | #endif | |
34119 | #ifdef __cplusplus | |
34120 | } | |
34121 | #endif | |
34122 | ||
34123 | int | |
34124 | main () | |
34125 | { | |
34126 | return f != $ac_func; | |
34127 | ; | |
34128 | return 0; | |
34129 | } | |
34130 | _ACEOF | |
34131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34133 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34134 | ac_status=$? |
ac1cb8d3 VS |
34135 | grep -v '^ *+' conftest.er1 >conftest.err |
34136 | rm -f conftest.er1 | |
34137 | cat conftest.err >&5 | |
a848cd7e SC |
34138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34139 | (exit $ac_status); } && | |
9dd0f6c2 | 34140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34142 | (eval $ac_try) 2>&5 | |
34143 | ac_status=$? | |
34144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34145 | (exit $ac_status); }; } && | |
34146 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34148 | (eval $ac_try) 2>&5 | |
34149 | ac_status=$? | |
34150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34151 | (exit $ac_status); }; }; then | |
34152 | eval "$as_ac_var=yes" | |
34153 | else | |
34154 | echo "$as_me: failed program was:" >&5 | |
34155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34156 | ||
34157 | eval "$as_ac_var=no" | |
34158 | fi | |
ac1cb8d3 VS |
34159 | rm -f conftest.err conftest.$ac_objext \ |
34160 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34161 | fi |
34162 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34163 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34164 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34165 | cat >>confdefs.h <<_ACEOF | |
34166 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34167 | _ACEOF | |
34168 | ||
34169 | fi | |
34170 | done | |
34171 | ||
34172 | ||
34173 | ||
34174 | for ac_header in sched.h | |
34175 | do | |
34176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34178 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34182 | fi | |
34183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34184 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34185 | else | |
34186 | # Is the header compilable? | |
34187 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34188 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34189 | cat >conftest.$ac_ext <<_ACEOF | |
34190 | /* confdefs.h. */ | |
34191 | _ACEOF | |
34192 | cat confdefs.h >>conftest.$ac_ext | |
34193 | cat >>conftest.$ac_ext <<_ACEOF | |
34194 | /* end confdefs.h. */ | |
34195 | $ac_includes_default | |
34196 | #include <$ac_header> | |
34197 | _ACEOF | |
34198 | rm -f conftest.$ac_objext | |
34199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34200 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34201 | ac_status=$? |
ac1cb8d3 VS |
34202 | grep -v '^ *+' conftest.er1 >conftest.err |
34203 | rm -f conftest.er1 | |
34204 | cat conftest.err >&5 | |
a848cd7e SC |
34205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34206 | (exit $ac_status); } && | |
9dd0f6c2 | 34207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34209 | (eval $ac_try) 2>&5 | |
34210 | ac_status=$? | |
34211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34212 | (exit $ac_status); }; } && | |
34213 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34215 | (eval $ac_try) 2>&5 | |
34216 | ac_status=$? | |
34217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34218 | (exit $ac_status); }; }; then | |
34219 | ac_header_compiler=yes | |
34220 | else | |
34221 | echo "$as_me: failed program was:" >&5 | |
34222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34223 | ||
34224 | ac_header_compiler=no | |
34225 | fi | |
ac1cb8d3 | 34226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34227 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34228 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34229 | ||
34230 | # Is the header present? | |
34231 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34232 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34233 | cat >conftest.$ac_ext <<_ACEOF | |
34234 | /* confdefs.h. */ | |
34235 | _ACEOF | |
34236 | cat confdefs.h >>conftest.$ac_ext | |
34237 | cat >>conftest.$ac_ext <<_ACEOF | |
34238 | /* end confdefs.h. */ | |
34239 | #include <$ac_header> | |
34240 | _ACEOF | |
34241 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34242 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34243 | ac_status=$? | |
34244 | grep -v '^ *+' conftest.er1 >conftest.err | |
34245 | rm -f conftest.er1 | |
34246 | cat conftest.err >&5 | |
34247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34248 | (exit $ac_status); } >/dev/null; then | |
34249 | if test -s conftest.err; then | |
34250 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34251 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34252 | else |
34253 | ac_cpp_err= | |
34254 | fi | |
34255 | else | |
34256 | ac_cpp_err=yes | |
34257 | fi | |
34258 | if test -z "$ac_cpp_err"; then | |
34259 | ac_header_preproc=yes | |
34260 | else | |
34261 | echo "$as_me: failed program was:" >&5 | |
34262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34263 | ||
34264 | ac_header_preproc=no | |
34265 | fi | |
34266 | rm -f conftest.err conftest.$ac_ext | |
34267 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34268 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34269 | ||
34270 | # So? What about this header? | |
ac1cb8d3 VS |
34271 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34272 | yes:no: ) | |
a848cd7e SC |
34273 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34274 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34276 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34277 | ac_header_preproc=yes | |
a848cd7e | 34278 | ;; |
ac1cb8d3 | 34279 | no:yes:* ) |
a848cd7e SC |
34280 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34281 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34282 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34283 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34284 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34285 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34286 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34287 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34288 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34289 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34290 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34291 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34292 | ( |
34293 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34294 | ## ----------------------------------------- ## |
34295 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34296 | ## ----------------------------------------- ## | |
a848cd7e SC |
34297 | _ASBOX |
34298 | ) | | |
34299 | sed "s/^/$as_me: WARNING: /" >&2 | |
34300 | ;; | |
34301 | esac | |
34302 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34304 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34306 | else | |
ac1cb8d3 | 34307 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34308 | fi |
34309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34310 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34311 | ||
34312 | fi | |
34313 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34314 | cat >>confdefs.h <<_ACEOF | |
34315 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34316 | _ACEOF | |
34317 | ||
34318 | fi | |
34319 | ||
34320 | done | |
34321 | ||
34322 | if test "$ac_cv_header_sched_h" = "yes"; then | |
34323 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
34324 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
34325 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
34326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34327 | else | |
34328 | cat >conftest.$ac_ext <<_ACEOF | |
34329 | /* confdefs.h. */ | |
34330 | _ACEOF | |
34331 | cat confdefs.h >>conftest.$ac_ext | |
34332 | cat >>conftest.$ac_ext <<_ACEOF | |
34333 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34334 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
34335 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34336 | #define sched_yield innocuous_sched_yield | |
34337 | ||
a848cd7e SC |
34338 | /* System header to define __stub macros and hopefully few prototypes, |
34339 | which can conflict with char sched_yield (); below. | |
34340 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34341 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34342 | |
a848cd7e SC |
34343 | #ifdef __STDC__ |
34344 | # include <limits.h> | |
34345 | #else | |
34346 | # include <assert.h> | |
34347 | #endif | |
ac1cb8d3 VS |
34348 | |
34349 | #undef sched_yield | |
34350 | ||
a848cd7e SC |
34351 | /* Override any gcc2 internal prototype to avoid an error. */ |
34352 | #ifdef __cplusplus | |
34353 | extern "C" | |
34354 | { | |
34355 | #endif | |
34356 | /* We use char because int might match the return type of a gcc2 | |
34357 | builtin and then its argument prototype would still apply. */ | |
34358 | char sched_yield (); | |
34359 | /* The GNU C library defines this for functions which it implements | |
34360 | to always fail with ENOSYS. Some functions are actually named | |
34361 | something starting with __ and the normal name is an alias. */ | |
34362 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
34363 | choke me | |
34364 | #else | |
34365 | char (*f) () = sched_yield; | |
34366 | #endif | |
34367 | #ifdef __cplusplus | |
34368 | } | |
34369 | #endif | |
34370 | ||
34371 | int | |
34372 | main () | |
34373 | { | |
34374 | return f != sched_yield; | |
34375 | ; | |
34376 | return 0; | |
34377 | } | |
34378 | _ACEOF | |
34379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34381 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34382 | ac_status=$? |
ac1cb8d3 VS |
34383 | grep -v '^ *+' conftest.er1 >conftest.err |
34384 | rm -f conftest.er1 | |
34385 | cat conftest.err >&5 | |
a848cd7e SC |
34386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34387 | (exit $ac_status); } && | |
9dd0f6c2 | 34388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34390 | (eval $ac_try) 2>&5 | |
34391 | ac_status=$? | |
34392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34393 | (exit $ac_status); }; } && | |
34394 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34396 | (eval $ac_try) 2>&5 | |
34397 | ac_status=$? | |
34398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34399 | (exit $ac_status); }; }; then | |
34400 | ac_cv_func_sched_yield=yes | |
34401 | else | |
34402 | echo "$as_me: failed program was:" >&5 | |
34403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34404 | ||
34405 | ac_cv_func_sched_yield=no | |
34406 | fi | |
ac1cb8d3 VS |
34407 | rm -f conftest.err conftest.$ac_objext \ |
34408 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34409 | fi |
34410 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
34411 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
34412 | if test $ac_cv_func_sched_yield = yes; then | |
34413 | cat >>confdefs.h <<\_ACEOF | |
34414 | #define HAVE_SCHED_YIELD 1 | |
34415 | _ACEOF | |
34416 | ||
34417 | else | |
34418 | ||
34419 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
34420 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
34421 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
34422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34423 | else | |
34424 | ac_check_lib_save_LIBS=$LIBS | |
34425 | LIBS="-lposix4 $LIBS" | |
34426 | cat >conftest.$ac_ext <<_ACEOF | |
34427 | /* confdefs.h. */ | |
34428 | _ACEOF | |
34429 | cat confdefs.h >>conftest.$ac_ext | |
34430 | cat >>conftest.$ac_ext <<_ACEOF | |
34431 | /* end confdefs.h. */ | |
34432 | ||
34433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34434 | #ifdef __cplusplus | |
34435 | extern "C" | |
34436 | #endif | |
34437 | /* We use char because int might match the return type of a gcc2 | |
34438 | builtin and then its argument prototype would still apply. */ | |
34439 | char sched_yield (); | |
34440 | int | |
34441 | main () | |
34442 | { | |
34443 | sched_yield (); | |
34444 | ; | |
34445 | return 0; | |
34446 | } | |
34447 | _ACEOF | |
34448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34450 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34451 | ac_status=$? |
ac1cb8d3 VS |
34452 | grep -v '^ *+' conftest.er1 >conftest.err |
34453 | rm -f conftest.er1 | |
34454 | cat conftest.err >&5 | |
a848cd7e SC |
34455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34456 | (exit $ac_status); } && | |
9dd0f6c2 | 34457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34459 | (eval $ac_try) 2>&5 | |
34460 | ac_status=$? | |
34461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34462 | (exit $ac_status); }; } && | |
34463 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34465 | (eval $ac_try) 2>&5 | |
34466 | ac_status=$? | |
34467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34468 | (exit $ac_status); }; }; then | |
34469 | ac_cv_lib_posix4_sched_yield=yes | |
34470 | else | |
34471 | echo "$as_me: failed program was:" >&5 | |
34472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34473 | ||
34474 | ac_cv_lib_posix4_sched_yield=no | |
34475 | fi | |
ac1cb8d3 VS |
34476 | rm -f conftest.err conftest.$ac_objext \ |
34477 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34478 | LIBS=$ac_check_lib_save_LIBS |
34479 | fi | |
34480 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
34481 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
34482 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
34483 | cat >>confdefs.h <<\_ACEOF | |
34484 | #define HAVE_SCHED_YIELD 1 | |
34485 | _ACEOF | |
34486 | POSIX4_LINK=" -lposix4" | |
34487 | else | |
34488 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
34489 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
34490 | ||
34491 | fi | |
34492 | ||
34493 | ||
34494 | ||
34495 | fi | |
34496 | ||
34497 | fi | |
34498 | ||
34499 | HAVE_PRIOR_FUNCS=0 | |
34500 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
34501 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
34502 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
34503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34504 | else | |
34505 | cat >conftest.$ac_ext <<_ACEOF | |
34506 | /* confdefs.h. */ | |
34507 | _ACEOF | |
34508 | cat confdefs.h >>conftest.$ac_ext | |
34509 | cat >>conftest.$ac_ext <<_ACEOF | |
34510 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34511 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
34512 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34513 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
34514 | ||
a848cd7e SC |
34515 | /* System header to define __stub macros and hopefully few prototypes, |
34516 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
34517 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34518 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34519 | |
a848cd7e SC |
34520 | #ifdef __STDC__ |
34521 | # include <limits.h> | |
34522 | #else | |
34523 | # include <assert.h> | |
34524 | #endif | |
ac1cb8d3 VS |
34525 | |
34526 | #undef pthread_attr_getschedpolicy | |
34527 | ||
a848cd7e SC |
34528 | /* Override any gcc2 internal prototype to avoid an error. */ |
34529 | #ifdef __cplusplus | |
34530 | extern "C" | |
34531 | { | |
34532 | #endif | |
34533 | /* We use char because int might match the return type of a gcc2 | |
34534 | builtin and then its argument prototype would still apply. */ | |
34535 | char pthread_attr_getschedpolicy (); | |
34536 | /* The GNU C library defines this for functions which it implements | |
34537 | to always fail with ENOSYS. Some functions are actually named | |
34538 | something starting with __ and the normal name is an alias. */ | |
34539 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
34540 | choke me | |
34541 | #else | |
34542 | char (*f) () = pthread_attr_getschedpolicy; | |
34543 | #endif | |
34544 | #ifdef __cplusplus | |
34545 | } | |
34546 | #endif | |
34547 | ||
34548 | int | |
34549 | main () | |
34550 | { | |
34551 | return f != pthread_attr_getschedpolicy; | |
34552 | ; | |
34553 | return 0; | |
34554 | } | |
34555 | _ACEOF | |
34556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34558 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34559 | ac_status=$? |
ac1cb8d3 VS |
34560 | grep -v '^ *+' conftest.er1 >conftest.err |
34561 | rm -f conftest.er1 | |
34562 | cat conftest.err >&5 | |
a848cd7e SC |
34563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34564 | (exit $ac_status); } && | |
9dd0f6c2 | 34565 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34567 | (eval $ac_try) 2>&5 | |
34568 | ac_status=$? | |
34569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34570 | (exit $ac_status); }; } && | |
34571 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34573 | (eval $ac_try) 2>&5 | |
34574 | ac_status=$? | |
34575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34576 | (exit $ac_status); }; }; then | |
34577 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
34578 | else | |
34579 | echo "$as_me: failed program was:" >&5 | |
34580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34581 | ||
34582 | ac_cv_func_pthread_attr_getschedpolicy=no | |
34583 | fi | |
ac1cb8d3 VS |
34584 | rm -f conftest.err conftest.$ac_objext \ |
34585 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34586 | fi |
34587 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
34588 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
34589 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
34590 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
34591 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
34592 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
34593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34594 | else | |
34595 | cat >conftest.$ac_ext <<_ACEOF | |
34596 | /* confdefs.h. */ | |
34597 | _ACEOF | |
34598 | cat confdefs.h >>conftest.$ac_ext | |
34599 | cat >>conftest.$ac_ext <<_ACEOF | |
34600 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34601 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
34602 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34603 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
34604 | ||
a848cd7e SC |
34605 | /* System header to define __stub macros and hopefully few prototypes, |
34606 | which can conflict with char pthread_attr_setschedparam (); below. | |
34607 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34608 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34609 | |
a848cd7e SC |
34610 | #ifdef __STDC__ |
34611 | # include <limits.h> | |
34612 | #else | |
34613 | # include <assert.h> | |
34614 | #endif | |
ac1cb8d3 VS |
34615 | |
34616 | #undef pthread_attr_setschedparam | |
34617 | ||
a848cd7e SC |
34618 | /* Override any gcc2 internal prototype to avoid an error. */ |
34619 | #ifdef __cplusplus | |
34620 | extern "C" | |
34621 | { | |
34622 | #endif | |
34623 | /* We use char because int might match the return type of a gcc2 | |
34624 | builtin and then its argument prototype would still apply. */ | |
34625 | char pthread_attr_setschedparam (); | |
34626 | /* The GNU C library defines this for functions which it implements | |
34627 | to always fail with ENOSYS. Some functions are actually named | |
34628 | something starting with __ and the normal name is an alias. */ | |
34629 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
34630 | choke me | |
34631 | #else | |
34632 | char (*f) () = pthread_attr_setschedparam; | |
34633 | #endif | |
34634 | #ifdef __cplusplus | |
34635 | } | |
34636 | #endif | |
34637 | ||
34638 | int | |
34639 | main () | |
34640 | { | |
34641 | return f != pthread_attr_setschedparam; | |
34642 | ; | |
34643 | return 0; | |
34644 | } | |
34645 | _ACEOF | |
34646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34648 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34649 | ac_status=$? |
ac1cb8d3 VS |
34650 | grep -v '^ *+' conftest.er1 >conftest.err |
34651 | rm -f conftest.er1 | |
34652 | cat conftest.err >&5 | |
a848cd7e SC |
34653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34654 | (exit $ac_status); } && | |
9dd0f6c2 | 34655 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34657 | (eval $ac_try) 2>&5 | |
34658 | ac_status=$? | |
34659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34660 | (exit $ac_status); }; } && | |
34661 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34663 | (eval $ac_try) 2>&5 | |
34664 | ac_status=$? | |
34665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34666 | (exit $ac_status); }; }; then | |
34667 | ac_cv_func_pthread_attr_setschedparam=yes | |
34668 | else | |
34669 | echo "$as_me: failed program was:" >&5 | |
34670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34671 | ||
34672 | ac_cv_func_pthread_attr_setschedparam=no | |
34673 | fi | |
ac1cb8d3 VS |
34674 | rm -f conftest.err conftest.$ac_objext \ |
34675 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34676 | fi |
34677 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
34678 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
34679 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
34680 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
34681 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
34682 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
34683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34684 | else | |
34685 | cat >conftest.$ac_ext <<_ACEOF | |
34686 | /* confdefs.h. */ | |
34687 | _ACEOF | |
34688 | cat confdefs.h >>conftest.$ac_ext | |
34689 | cat >>conftest.$ac_ext <<_ACEOF | |
34690 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34691 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
34692 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34693 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
34694 | ||
a848cd7e SC |
34695 | /* System header to define __stub macros and hopefully few prototypes, |
34696 | which can conflict with char sched_get_priority_max (); below. | |
34697 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34698 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34699 | |
a848cd7e SC |
34700 | #ifdef __STDC__ |
34701 | # include <limits.h> | |
34702 | #else | |
34703 | # include <assert.h> | |
34704 | #endif | |
ac1cb8d3 VS |
34705 | |
34706 | #undef sched_get_priority_max | |
34707 | ||
a848cd7e SC |
34708 | /* Override any gcc2 internal prototype to avoid an error. */ |
34709 | #ifdef __cplusplus | |
34710 | extern "C" | |
34711 | { | |
34712 | #endif | |
34713 | /* We use char because int might match the return type of a gcc2 | |
34714 | builtin and then its argument prototype would still apply. */ | |
34715 | char sched_get_priority_max (); | |
34716 | /* The GNU C library defines this for functions which it implements | |
34717 | to always fail with ENOSYS. Some functions are actually named | |
34718 | something starting with __ and the normal name is an alias. */ | |
34719 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
34720 | choke me | |
34721 | #else | |
34722 | char (*f) () = sched_get_priority_max; | |
34723 | #endif | |
34724 | #ifdef __cplusplus | |
34725 | } | |
34726 | #endif | |
34727 | ||
34728 | int | |
34729 | main () | |
34730 | { | |
34731 | return f != sched_get_priority_max; | |
34732 | ; | |
34733 | return 0; | |
34734 | } | |
34735 | _ACEOF | |
34736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34738 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34739 | ac_status=$? |
ac1cb8d3 VS |
34740 | grep -v '^ *+' conftest.er1 >conftest.err |
34741 | rm -f conftest.er1 | |
34742 | cat conftest.err >&5 | |
a848cd7e SC |
34743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34744 | (exit $ac_status); } && | |
9dd0f6c2 | 34745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34747 | (eval $ac_try) 2>&5 | |
34748 | ac_status=$? | |
34749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34750 | (exit $ac_status); }; } && | |
34751 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34753 | (eval $ac_try) 2>&5 | |
34754 | ac_status=$? | |
34755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34756 | (exit $ac_status); }; }; then | |
34757 | ac_cv_func_sched_get_priority_max=yes | |
34758 | else | |
34759 | echo "$as_me: failed program was:" >&5 | |
34760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34761 | ||
34762 | ac_cv_func_sched_get_priority_max=no | |
34763 | fi | |
ac1cb8d3 VS |
34764 | rm -f conftest.err conftest.$ac_objext \ |
34765 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34766 | fi |
34767 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
34768 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
34769 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
34770 | HAVE_PRIOR_FUNCS=1 | |
34771 | else | |
34772 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
34773 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
34774 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
34775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34776 | else | |
34777 | ac_check_lib_save_LIBS=$LIBS | |
34778 | LIBS="-lposix4 $LIBS" | |
34779 | cat >conftest.$ac_ext <<_ACEOF | |
34780 | /* confdefs.h. */ | |
34781 | _ACEOF | |
34782 | cat confdefs.h >>conftest.$ac_ext | |
34783 | cat >>conftest.$ac_ext <<_ACEOF | |
34784 | /* end confdefs.h. */ | |
34785 | ||
34786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34787 | #ifdef __cplusplus | |
34788 | extern "C" | |
34789 | #endif | |
34790 | /* We use char because int might match the return type of a gcc2 | |
34791 | builtin and then its argument prototype would still apply. */ | |
34792 | char sched_get_priority_max (); | |
34793 | int | |
34794 | main () | |
34795 | { | |
34796 | sched_get_priority_max (); | |
34797 | ; | |
34798 | return 0; | |
34799 | } | |
34800 | _ACEOF | |
34801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34803 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34804 | ac_status=$? |
ac1cb8d3 VS |
34805 | grep -v '^ *+' conftest.er1 >conftest.err |
34806 | rm -f conftest.er1 | |
34807 | cat conftest.err >&5 | |
a848cd7e SC |
34808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34809 | (exit $ac_status); } && | |
9dd0f6c2 | 34810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34812 | (eval $ac_try) 2>&5 | |
34813 | ac_status=$? | |
34814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34815 | (exit $ac_status); }; } && | |
34816 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34818 | (eval $ac_try) 2>&5 | |
34819 | ac_status=$? | |
34820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34821 | (exit $ac_status); }; }; then | |
34822 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
34823 | else | |
34824 | echo "$as_me: failed program was:" >&5 | |
34825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34826 | ||
34827 | ac_cv_lib_posix4_sched_get_priority_max=no | |
34828 | fi | |
ac1cb8d3 VS |
34829 | rm -f conftest.err conftest.$ac_objext \ |
34830 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34831 | LIBS=$ac_check_lib_save_LIBS |
34832 | fi | |
34833 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
34834 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
34835 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
34836 | ||
34837 | HAVE_PRIOR_FUNCS=1 | |
34838 | POSIX4_LINK=" -lposix4" | |
34839 | ||
34840 | fi | |
34841 | ||
34842 | ||
34843 | fi | |
34844 | ||
34845 | ||
34846 | fi | |
34847 | ||
34848 | ||
34849 | fi | |
34850 | ||
34851 | ||
34852 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
34853 | cat >>confdefs.h <<\_ACEOF | |
34854 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
34855 | _ACEOF | |
34856 | ||
34857 | else | |
34858 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
34859 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
34860 | fi | |
34861 | ||
34862 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
34863 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
34864 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
34865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34866 | else | |
34867 | cat >conftest.$ac_ext <<_ACEOF | |
34868 | /* confdefs.h. */ | |
34869 | _ACEOF | |
34870 | cat confdefs.h >>conftest.$ac_ext | |
34871 | cat >>conftest.$ac_ext <<_ACEOF | |
34872 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34873 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
34874 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34875 | #define pthread_cancel innocuous_pthread_cancel | |
34876 | ||
a848cd7e SC |
34877 | /* System header to define __stub macros and hopefully few prototypes, |
34878 | which can conflict with char pthread_cancel (); below. | |
34879 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34880 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34881 | |
a848cd7e SC |
34882 | #ifdef __STDC__ |
34883 | # include <limits.h> | |
34884 | #else | |
34885 | # include <assert.h> | |
34886 | #endif | |
ac1cb8d3 VS |
34887 | |
34888 | #undef pthread_cancel | |
34889 | ||
a848cd7e SC |
34890 | /* Override any gcc2 internal prototype to avoid an error. */ |
34891 | #ifdef __cplusplus | |
34892 | extern "C" | |
34893 | { | |
34894 | #endif | |
34895 | /* We use char because int might match the return type of a gcc2 | |
34896 | builtin and then its argument prototype would still apply. */ | |
34897 | char pthread_cancel (); | |
34898 | /* The GNU C library defines this for functions which it implements | |
34899 | to always fail with ENOSYS. Some functions are actually named | |
34900 | something starting with __ and the normal name is an alias. */ | |
34901 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
34902 | choke me | |
34903 | #else | |
34904 | char (*f) () = pthread_cancel; | |
34905 | #endif | |
34906 | #ifdef __cplusplus | |
34907 | } | |
34908 | #endif | |
34909 | ||
34910 | int | |
34911 | main () | |
34912 | { | |
34913 | return f != pthread_cancel; | |
34914 | ; | |
34915 | return 0; | |
34916 | } | |
34917 | _ACEOF | |
34918 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34920 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34921 | ac_status=$? |
ac1cb8d3 VS |
34922 | grep -v '^ *+' conftest.er1 >conftest.err |
34923 | rm -f conftest.er1 | |
34924 | cat conftest.err >&5 | |
a848cd7e SC |
34925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34926 | (exit $ac_status); } && | |
9dd0f6c2 | 34927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34929 | (eval $ac_try) 2>&5 | |
34930 | ac_status=$? | |
34931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34932 | (exit $ac_status); }; } && | |
34933 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34935 | (eval $ac_try) 2>&5 | |
34936 | ac_status=$? | |
34937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34938 | (exit $ac_status); }; }; then | |
34939 | ac_cv_func_pthread_cancel=yes | |
34940 | else | |
34941 | echo "$as_me: failed program was:" >&5 | |
34942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34943 | ||
34944 | ac_cv_func_pthread_cancel=no | |
34945 | fi | |
ac1cb8d3 VS |
34946 | rm -f conftest.err conftest.$ac_objext \ |
34947 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34948 | fi |
34949 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
34950 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
34951 | if test $ac_cv_func_pthread_cancel = yes; then | |
34952 | cat >>confdefs.h <<\_ACEOF | |
34953 | #define HAVE_PTHREAD_CANCEL 1 | |
34954 | _ACEOF | |
34955 | ||
34956 | else | |
34957 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
34958 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
34959 | fi | |
34960 | ||
34961 | ||
34962 | ||
34963 | ||
34964 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
34965 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
34966 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
34967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34968 | else | |
34969 | ||
34970 | cat >conftest.$ac_ext <<_ACEOF | |
34971 | /* confdefs.h. */ | |
34972 | _ACEOF | |
34973 | cat confdefs.h >>conftest.$ac_ext | |
34974 | cat >>conftest.$ac_ext <<_ACEOF | |
34975 | /* end confdefs.h. */ | |
34976 | #include <pthread.h> | |
34977 | int | |
34978 | main () | |
34979 | { | |
34980 | ||
34981 | pthread_mutexattr_t attr; | |
34982 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
34983 | ||
34984 | ; | |
34985 | return 0; | |
34986 | } | |
34987 | _ACEOF | |
34988 | rm -f conftest.$ac_objext | |
34989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34990 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34991 | ac_status=$? |
ac1cb8d3 VS |
34992 | grep -v '^ *+' conftest.er1 >conftest.err |
34993 | rm -f conftest.er1 | |
34994 | cat conftest.err >&5 | |
a848cd7e SC |
34995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34996 | (exit $ac_status); } && | |
9dd0f6c2 | 34997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34999 | (eval $ac_try) 2>&5 | |
35000 | ac_status=$? | |
35001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35002 | (exit $ac_status); }; } && | |
35003 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35005 | (eval $ac_try) 2>&5 | |
35006 | ac_status=$? | |
35007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35008 | (exit $ac_status); }; }; then | |
35009 | ||
35010 | wx_cv_type_pthread_mutexattr_t=yes | |
35011 | ||
35012 | else | |
35013 | echo "$as_me: failed program was:" >&5 | |
35014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35015 | ||
35016 | ||
35017 | wx_cv_type_pthread_mutexattr_t=no | |
35018 | ||
35019 | ||
35020 | fi | |
ac1cb8d3 | 35021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35022 | |
35023 | fi | |
35024 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
35025 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
35026 | ||
35027 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
35028 | cat >>confdefs.h <<\_ACEOF | |
35029 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
35030 | _ACEOF | |
35031 | ||
35032 | else | |
35033 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
35034 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
35035 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
35036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35037 | else | |
35038 | ||
35039 | cat >conftest.$ac_ext <<_ACEOF | |
35040 | /* confdefs.h. */ | |
35041 | _ACEOF | |
35042 | cat confdefs.h >>conftest.$ac_ext | |
35043 | cat >>conftest.$ac_ext <<_ACEOF | |
35044 | /* end confdefs.h. */ | |
35045 | #include <pthread.h> | |
35046 | int | |
35047 | main () | |
35048 | { | |
35049 | ||
35050 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
35051 | ||
35052 | ; | |
35053 | return 0; | |
35054 | } | |
35055 | _ACEOF | |
35056 | rm -f conftest.$ac_objext | |
35057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35058 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35059 | ac_status=$? |
ac1cb8d3 VS |
35060 | grep -v '^ *+' conftest.er1 >conftest.err |
35061 | rm -f conftest.er1 | |
35062 | cat conftest.err >&5 | |
a848cd7e SC |
35063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35064 | (exit $ac_status); } && | |
9dd0f6c2 | 35065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35067 | (eval $ac_try) 2>&5 | |
35068 | ac_status=$? | |
35069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35070 | (exit $ac_status); }; } && | |
35071 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35073 | (eval $ac_try) 2>&5 | |
35074 | ac_status=$? | |
35075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35076 | (exit $ac_status); }; }; then | |
35077 | ||
35078 | wx_cv_type_pthread_rec_mutex_init=yes | |
35079 | ||
35080 | else | |
35081 | echo "$as_me: failed program was:" >&5 | |
35082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35083 | ||
35084 | ||
35085 | wx_cv_type_pthread_rec_mutex_init=no | |
35086 | ||
35087 | ||
35088 | fi | |
ac1cb8d3 | 35089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35090 | |
35091 | fi | |
35092 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
35093 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
35094 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
35095 | cat >>confdefs.h <<\_ACEOF | |
35096 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
35097 | _ACEOF | |
35098 | ||
35099 | else | |
35100 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
35101 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
35102 | fi | |
35103 | fi | |
35104 | fi | |
35105 | ||
35106 | else | |
35107 | if test "$wxUSE_THREADS" = "yes" ; then | |
35108 | case "${host}" in | |
35109 | *-*-mingw32* ) | |
35110 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
35111 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
35112 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
35113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35114 | else | |
35115 | ||
35116 | CFLAGS_OLD="$CFLAGS" | |
35117 | CFLAGS="$CFLAGS -mthreads" | |
35118 | cat >conftest.$ac_ext <<_ACEOF | |
35119 | /* confdefs.h. */ | |
35120 | _ACEOF | |
35121 | cat confdefs.h >>conftest.$ac_ext | |
35122 | cat >>conftest.$ac_ext <<_ACEOF | |
35123 | /* end confdefs.h. */ | |
35124 | ||
35125 | int | |
35126 | main () | |
35127 | { | |
35128 | ||
35129 | ; | |
35130 | return 0; | |
35131 | } | |
35132 | _ACEOF | |
35133 | rm -f conftest.$ac_objext | |
35134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35135 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35136 | ac_status=$? |
ac1cb8d3 VS |
35137 | grep -v '^ *+' conftest.er1 >conftest.err |
35138 | rm -f conftest.er1 | |
35139 | cat conftest.err >&5 | |
a848cd7e SC |
35140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35141 | (exit $ac_status); } && | |
9dd0f6c2 | 35142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35144 | (eval $ac_try) 2>&5 | |
35145 | ac_status=$? | |
35146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35147 | (exit $ac_status); }; } && | |
35148 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35150 | (eval $ac_try) 2>&5 | |
35151 | ac_status=$? | |
35152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35153 | (exit $ac_status); }; }; then | |
35154 | wx_cv_cflags_mthread=yes | |
35155 | else | |
35156 | echo "$as_me: failed program was:" >&5 | |
35157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35158 | ||
35159 | wx_cv_cflags_mthread=no | |
35160 | ||
35161 | fi | |
ac1cb8d3 | 35162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35163 | |
35164 | ||
35165 | fi | |
35166 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
35167 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
35168 | ||
35169 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
35170 | CXXFLAGS="$CXXFLAGS -mthreads" | |
35171 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
35172 | LDFLAGS="$LDFLAGS -mthreads" | |
35173 | else | |
35174 | CFLAGS="$CFLAGS_OLD" | |
35175 | fi | |
35176 | ;; | |
35177 | *-pc-os2*emx ) | |
35178 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
35179 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
35180 | LDFLAGS="$LDFLAGS -Zmt" | |
35181 | ;; | |
35182 | esac | |
35183 | fi | |
35184 | fi | |
35185 | ||
35186 | if test "$wxUSE_THREADS" = "yes"; then | |
35187 | cat >>confdefs.h <<\_ACEOF | |
35188 | #define wxUSE_THREADS 1 | |
35189 | _ACEOF | |
35190 | ||
35191 | ||
35192 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
35193 | else | |
35194 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
35195 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
35196 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
35197 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
35198 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
35199 | echo "$as_me:$LINENO: result: yes" >&5 | |
35200 | echo "${ECHO_T}yes" >&6 | |
35201 | else | |
35202 | echo "$as_me:$LINENO: result: no" >&5 | |
35203 | echo "${ECHO_T}no" >&6 | |
35204 | fi | |
35205 | fi | |
35206 | fi | |
35207 | ||
35208 | if test "$WXGTK20" = 1 ; then | |
35209 | cat >>confdefs.h <<_ACEOF | |
35210 | #define __WXGTK20__ $WXGTK20 | |
35211 | _ACEOF | |
35212 | ||
35213 | WXGTK12=1 | |
35214 | fi | |
35215 | ||
35216 | if test "$WXGTK12" = 1 ; then | |
35217 | cat >>confdefs.h <<_ACEOF | |
35218 | #define __WXGTK12__ $WXGTK12 | |
35219 | _ACEOF | |
35220 | ||
35221 | fi | |
35222 | ||
35223 | if test "$WXGTK127" = 1 ; then | |
35224 | cat >>confdefs.h <<_ACEOF | |
35225 | #define __WXGTK127__ $WXGTK127 | |
35226 | _ACEOF | |
35227 | ||
35228 | fi | |
35229 | ||
35230 | if test "$WXGPE" = 1 ; then | |
35231 | cat >>confdefs.h <<_ACEOF | |
35232 | #define __WXGPE__ $WXGPE | |
35233 | _ACEOF | |
35234 | ||
35235 | fi | |
35236 | ||
35237 | WXDEBUG= | |
35238 | ||
35239 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
35240 | WXDEBUG="-g" | |
35241 | wxUSE_OPTIMISE=no | |
35242 | fi | |
35243 | ||
35244 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
35245 | wxUSE_DEBUG_INFO=yes | |
35246 | WXDEBUG="-ggdb" | |
35247 | fi | |
35248 | ||
35249 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
35250 | cat >>confdefs.h <<\_ACEOF | |
35251 | #define WXDEBUG 1 | |
35252 | _ACEOF | |
35253 | ||
35254 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
35255 | else | |
35256 | if test "$wxUSE_GTK" = 1 ; then | |
35257 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
35258 | fi | |
35259 | fi | |
35260 | ||
35261 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
35262 | cat >>confdefs.h <<\_ACEOF | |
35263 | #define wxUSE_MEMORY_TRACING 1 | |
35264 | _ACEOF | |
35265 | ||
35266 | cat >>confdefs.h <<\_ACEOF | |
35267 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
35268 | _ACEOF | |
35269 | ||
35270 | cat >>confdefs.h <<\_ACEOF | |
35271 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
35272 | _ACEOF | |
35273 | ||
35274 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
35275 | fi | |
35276 | ||
35277 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
35278 | DMALLOC_LIBS="-ldmalloc" | |
35279 | fi | |
35280 | ||
35281 | PROFILE= | |
35282 | if test "$wxUSE_PROFILE" = "yes" ; then | |
35283 | PROFILE=" -pg" | |
35284 | fi | |
35285 | ||
35286 | CODE_GEN_FLAGS= | |
35287 | CODE_GEN_FLAGS_CXX= | |
35288 | if test "$GCC" = "yes" ; then | |
35289 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
35290 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
35291 | fi | |
35292 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
35293 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
35294 | fi | |
35295 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
35296 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
35297 | fi | |
35298 | ||
35299 | case "${host}" in | |
35300 | powerpc*-*-aix* ) | |
35301 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
35302 | ;; | |
35303 | *-hppa* ) | |
35304 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
35305 | ;; | |
35306 | esac | |
35307 | fi | |
35308 | ||
35309 | OPTIMISE= | |
35310 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
35311 | if test "$GCC" = yes ; then | |
35312 | OPTIMISE="-O0" | |
35313 | fi | |
35314 | else | |
35315 | if test "$GCC" = yes ; then | |
35316 | OPTIMISE="-O2" | |
35317 | ||
35318 | case "${host}" in | |
35319 | i586-*-*|i686-*-* ) | |
35320 | OPTIMISE="${OPTIMISE} " | |
35321 | ;; | |
35322 | esac | |
35323 | else | |
35324 | OPTIMISE="-O" | |
35325 | fi | |
35326 | fi | |
35327 | ||
35328 | ||
35329 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
35330 | cat >>confdefs.h <<\_ACEOF | |
35331 | #define WXWIN_COMPATIBILITY_2_2 1 | |
35332 | _ACEOF | |
35333 | ||
35334 | ||
35335 | WXWIN_COMPATIBILITY_2_4="yes" | |
35336 | fi | |
35337 | ||
35338 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
35339 | cat >>confdefs.h <<\_ACEOF | |
35340 | #define WXWIN_COMPATIBILITY_2_4 1 | |
35341 | _ACEOF | |
35342 | ||
35343 | fi | |
35344 | ||
35345 | ||
35346 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 35347 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
35348 | #define wxUSE_GUI 1 |
35349 | _ACEOF | |
35350 | ||
35351 | ||
370fd4c2 | 35352 | fi |
a848cd7e SC |
35353 | |
35354 | ||
35355 | if test "$wxUSE_UNIX" = "yes"; then | |
35356 | cat >>confdefs.h <<\_ACEOF | |
35357 | #define wxUSE_UNIX 1 | |
35358 | _ACEOF | |
35359 | ||
35360 | fi | |
35361 | ||
35362 | ||
35363 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
35364 | ||
35365 | HAVE_DL_FUNCS=0 | |
35366 | HAVE_SHL_FUNCS=0 | |
35367 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
35368 | if test "$USE_DARWIN" = 1; then | |
35369 | HAVE_DL_FUNCS=1 | |
35370 | else | |
35371 | ||
35372 | for ac_func in dlopen | |
35373 | do | |
35374 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35375 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35376 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35377 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35379 | else | |
35380 | cat >conftest.$ac_ext <<_ACEOF | |
35381 | /* confdefs.h. */ | |
35382 | _ACEOF | |
35383 | cat confdefs.h >>conftest.$ac_ext | |
35384 | cat >>conftest.$ac_ext <<_ACEOF | |
35385 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35386 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35387 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35388 | #define $ac_func innocuous_$ac_func | |
35389 | ||
a848cd7e SC |
35390 | /* System header to define __stub macros and hopefully few prototypes, |
35391 | which can conflict with char $ac_func (); below. | |
35392 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35393 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35394 | |
a848cd7e SC |
35395 | #ifdef __STDC__ |
35396 | # include <limits.h> | |
35397 | #else | |
35398 | # include <assert.h> | |
35399 | #endif | |
ac1cb8d3 VS |
35400 | |
35401 | #undef $ac_func | |
35402 | ||
a848cd7e SC |
35403 | /* Override any gcc2 internal prototype to avoid an error. */ |
35404 | #ifdef __cplusplus | |
35405 | extern "C" | |
35406 | { | |
35407 | #endif | |
35408 | /* We use char because int might match the return type of a gcc2 | |
35409 | builtin and then its argument prototype would still apply. */ | |
35410 | char $ac_func (); | |
35411 | /* The GNU C library defines this for functions which it implements | |
35412 | to always fail with ENOSYS. Some functions are actually named | |
35413 | something starting with __ and the normal name is an alias. */ | |
35414 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35415 | choke me | |
35416 | #else | |
35417 | char (*f) () = $ac_func; | |
35418 | #endif | |
35419 | #ifdef __cplusplus | |
35420 | } | |
35421 | #endif | |
35422 | ||
35423 | int | |
35424 | main () | |
35425 | { | |
35426 | return f != $ac_func; | |
35427 | ; | |
35428 | return 0; | |
35429 | } | |
35430 | _ACEOF | |
35431 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35433 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35434 | ac_status=$? |
ac1cb8d3 VS |
35435 | grep -v '^ *+' conftest.er1 >conftest.err |
35436 | rm -f conftest.er1 | |
35437 | cat conftest.err >&5 | |
a848cd7e SC |
35438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35439 | (exit $ac_status); } && | |
9dd0f6c2 | 35440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35442 | (eval $ac_try) 2>&5 | |
35443 | ac_status=$? | |
35444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35445 | (exit $ac_status); }; } && | |
35446 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35448 | (eval $ac_try) 2>&5 | |
35449 | ac_status=$? | |
35450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35451 | (exit $ac_status); }; }; then | |
35452 | eval "$as_ac_var=yes" | |
35453 | else | |
35454 | echo "$as_me: failed program was:" >&5 | |
35455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35456 | ||
35457 | eval "$as_ac_var=no" | |
35458 | fi | |
ac1cb8d3 VS |
35459 | rm -f conftest.err conftest.$ac_objext \ |
35460 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35461 | fi |
35462 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35463 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35464 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35465 | cat >>confdefs.h <<_ACEOF | |
35466 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35467 | _ACEOF | |
35468 | ||
35469 | cat >>confdefs.h <<\_ACEOF | |
35470 | #define HAVE_DLOPEN 1 | |
35471 | _ACEOF | |
35472 | ||
35473 | HAVE_DL_FUNCS=1 | |
35474 | ||
35475 | else | |
35476 | ||
35477 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
35478 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
35479 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
35480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35481 | else | |
35482 | ac_check_lib_save_LIBS=$LIBS | |
35483 | LIBS="-ldl $LIBS" | |
35484 | cat >conftest.$ac_ext <<_ACEOF | |
35485 | /* confdefs.h. */ | |
35486 | _ACEOF | |
35487 | cat confdefs.h >>conftest.$ac_ext | |
35488 | cat >>conftest.$ac_ext <<_ACEOF | |
35489 | /* end confdefs.h. */ | |
35490 | ||
35491 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35492 | #ifdef __cplusplus | |
35493 | extern "C" | |
35494 | #endif | |
35495 | /* We use char because int might match the return type of a gcc2 | |
35496 | builtin and then its argument prototype would still apply. */ | |
35497 | char dlopen (); | |
35498 | int | |
35499 | main () | |
35500 | { | |
35501 | dlopen (); | |
35502 | ; | |
35503 | return 0; | |
35504 | } | |
35505 | _ACEOF | |
35506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35508 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35509 | ac_status=$? |
ac1cb8d3 VS |
35510 | grep -v '^ *+' conftest.er1 >conftest.err |
35511 | rm -f conftest.er1 | |
35512 | cat conftest.err >&5 | |
a848cd7e SC |
35513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35514 | (exit $ac_status); } && | |
9dd0f6c2 | 35515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35517 | (eval $ac_try) 2>&5 | |
35518 | ac_status=$? | |
35519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35520 | (exit $ac_status); }; } && | |
35521 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35523 | (eval $ac_try) 2>&5 | |
35524 | ac_status=$? | |
35525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35526 | (exit $ac_status); }; }; then | |
35527 | ac_cv_lib_dl_dlopen=yes | |
35528 | else | |
35529 | echo "$as_me: failed program was:" >&5 | |
35530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35531 | ||
35532 | ac_cv_lib_dl_dlopen=no | |
35533 | fi | |
ac1cb8d3 VS |
35534 | rm -f conftest.err conftest.$ac_objext \ |
35535 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35536 | LIBS=$ac_check_lib_save_LIBS |
35537 | fi | |
35538 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
35539 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
35540 | if test $ac_cv_lib_dl_dlopen = yes; then | |
35541 | ||
35542 | cat >>confdefs.h <<\_ACEOF | |
35543 | #define HAVE_DLOPEN 1 | |
35544 | _ACEOF | |
35545 | ||
35546 | HAVE_DL_FUNCS=1 | |
35547 | DL_LINK=" -ldl$DL_LINK" | |
35548 | ||
35549 | else | |
35550 | ||
35551 | ||
35552 | for ac_func in shl_load | |
35553 | do | |
35554 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35555 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35556 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35557 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35559 | else | |
35560 | cat >conftest.$ac_ext <<_ACEOF | |
35561 | /* confdefs.h. */ | |
35562 | _ACEOF | |
35563 | cat confdefs.h >>conftest.$ac_ext | |
35564 | cat >>conftest.$ac_ext <<_ACEOF | |
35565 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35566 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35567 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35568 | #define $ac_func innocuous_$ac_func | |
35569 | ||
a848cd7e SC |
35570 | /* System header to define __stub macros and hopefully few prototypes, |
35571 | which can conflict with char $ac_func (); below. | |
35572 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35573 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35574 | |
a848cd7e SC |
35575 | #ifdef __STDC__ |
35576 | # include <limits.h> | |
35577 | #else | |
35578 | # include <assert.h> | |
35579 | #endif | |
ac1cb8d3 VS |
35580 | |
35581 | #undef $ac_func | |
35582 | ||
a848cd7e SC |
35583 | /* Override any gcc2 internal prototype to avoid an error. */ |
35584 | #ifdef __cplusplus | |
35585 | extern "C" | |
35586 | { | |
35587 | #endif | |
35588 | /* We use char because int might match the return type of a gcc2 | |
35589 | builtin and then its argument prototype would still apply. */ | |
35590 | char $ac_func (); | |
35591 | /* The GNU C library defines this for functions which it implements | |
35592 | to always fail with ENOSYS. Some functions are actually named | |
35593 | something starting with __ and the normal name is an alias. */ | |
35594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35595 | choke me | |
35596 | #else | |
35597 | char (*f) () = $ac_func; | |
35598 | #endif | |
35599 | #ifdef __cplusplus | |
35600 | } | |
35601 | #endif | |
35602 | ||
35603 | int | |
35604 | main () | |
35605 | { | |
35606 | return f != $ac_func; | |
35607 | ; | |
35608 | return 0; | |
35609 | } | |
35610 | _ACEOF | |
35611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35613 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35614 | ac_status=$? |
ac1cb8d3 VS |
35615 | grep -v '^ *+' conftest.er1 >conftest.err |
35616 | rm -f conftest.er1 | |
35617 | cat conftest.err >&5 | |
a848cd7e SC |
35618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35619 | (exit $ac_status); } && | |
9dd0f6c2 | 35620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35622 | (eval $ac_try) 2>&5 | |
35623 | ac_status=$? | |
35624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35625 | (exit $ac_status); }; } && | |
35626 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35628 | (eval $ac_try) 2>&5 | |
35629 | ac_status=$? | |
35630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35631 | (exit $ac_status); }; }; then | |
35632 | eval "$as_ac_var=yes" | |
35633 | else | |
35634 | echo "$as_me: failed program was:" >&5 | |
35635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35636 | ||
35637 | eval "$as_ac_var=no" | |
35638 | fi | |
ac1cb8d3 VS |
35639 | rm -f conftest.err conftest.$ac_objext \ |
35640 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35641 | fi |
35642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35643 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35644 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35645 | cat >>confdefs.h <<_ACEOF | |
35646 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35647 | _ACEOF | |
35648 | ||
35649 | cat >>confdefs.h <<\_ACEOF | |
35650 | #define HAVE_SHL_LOAD 1 | |
35651 | _ACEOF | |
35652 | ||
35653 | HAVE_SHL_FUNCS=1 | |
35654 | ||
35655 | else | |
35656 | ||
35657 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
35658 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
35659 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
35660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35661 | else | |
35662 | ac_check_lib_save_LIBS=$LIBS | |
35663 | LIBS="-lshl_load $LIBS" | |
35664 | cat >conftest.$ac_ext <<_ACEOF | |
35665 | /* confdefs.h. */ | |
35666 | _ACEOF | |
35667 | cat confdefs.h >>conftest.$ac_ext | |
35668 | cat >>conftest.$ac_ext <<_ACEOF | |
35669 | /* end confdefs.h. */ | |
35670 | ||
35671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35672 | #ifdef __cplusplus | |
35673 | extern "C" | |
35674 | #endif | |
35675 | /* We use char because int might match the return type of a gcc2 | |
35676 | builtin and then its argument prototype would still apply. */ | |
35677 | char dld (); | |
35678 | int | |
35679 | main () | |
35680 | { | |
35681 | dld (); | |
35682 | ; | |
35683 | return 0; | |
35684 | } | |
35685 | _ACEOF | |
35686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35688 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35689 | ac_status=$? |
ac1cb8d3 VS |
35690 | grep -v '^ *+' conftest.er1 >conftest.err |
35691 | rm -f conftest.er1 | |
35692 | cat conftest.err >&5 | |
a848cd7e SC |
35693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35694 | (exit $ac_status); } && | |
9dd0f6c2 | 35695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35697 | (eval $ac_try) 2>&5 | |
35698 | ac_status=$? | |
35699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35700 | (exit $ac_status); }; } && | |
35701 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35703 | (eval $ac_try) 2>&5 | |
35704 | ac_status=$? | |
35705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35706 | (exit $ac_status); }; }; then | |
35707 | ac_cv_lib_shl_load_dld=yes | |
35708 | else | |
35709 | echo "$as_me: failed program was:" >&5 | |
35710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35711 | ||
35712 | ac_cv_lib_shl_load_dld=no | |
35713 | fi | |
ac1cb8d3 VS |
35714 | rm -f conftest.err conftest.$ac_objext \ |
35715 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35716 | LIBS=$ac_check_lib_save_LIBS |
35717 | fi | |
35718 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
35719 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
35720 | if test $ac_cv_lib_shl_load_dld = yes; then | |
35721 | ||
35722 | HAVE_SHL_FUNCS=1 | |
35723 | DL_LINK=" -ldld$DL_LINK" | |
35724 | ||
35725 | fi | |
35726 | ||
35727 | ||
35728 | fi | |
35729 | done | |
35730 | ||
35731 | ||
35732 | fi | |
35733 | ||
35734 | ||
35735 | fi | |
35736 | done | |
35737 | ||
35738 | ||
35739 | if test "$HAVE_DL_FUNCS" = 1; then | |
35740 | ||
35741 | for ac_func in dlerror | |
35742 | do | |
35743 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35744 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35745 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35746 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35748 | else | |
35749 | cat >conftest.$ac_ext <<_ACEOF | |
35750 | /* confdefs.h. */ | |
35751 | _ACEOF | |
35752 | cat confdefs.h >>conftest.$ac_ext | |
35753 | cat >>conftest.$ac_ext <<_ACEOF | |
35754 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35755 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35757 | #define $ac_func innocuous_$ac_func | |
35758 | ||
a848cd7e SC |
35759 | /* System header to define __stub macros and hopefully few prototypes, |
35760 | which can conflict with char $ac_func (); below. | |
35761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35762 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35763 | |
a848cd7e SC |
35764 | #ifdef __STDC__ |
35765 | # include <limits.h> | |
35766 | #else | |
35767 | # include <assert.h> | |
35768 | #endif | |
ac1cb8d3 VS |
35769 | |
35770 | #undef $ac_func | |
35771 | ||
a848cd7e SC |
35772 | /* Override any gcc2 internal prototype to avoid an error. */ |
35773 | #ifdef __cplusplus | |
35774 | extern "C" | |
35775 | { | |
35776 | #endif | |
35777 | /* We use char because int might match the return type of a gcc2 | |
35778 | builtin and then its argument prototype would still apply. */ | |
35779 | char $ac_func (); | |
35780 | /* The GNU C library defines this for functions which it implements | |
35781 | to always fail with ENOSYS. Some functions are actually named | |
35782 | something starting with __ and the normal name is an alias. */ | |
35783 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35784 | choke me | |
35785 | #else | |
35786 | char (*f) () = $ac_func; | |
35787 | #endif | |
35788 | #ifdef __cplusplus | |
35789 | } | |
35790 | #endif | |
35791 | ||
35792 | int | |
35793 | main () | |
35794 | { | |
35795 | return f != $ac_func; | |
35796 | ; | |
35797 | return 0; | |
35798 | } | |
35799 | _ACEOF | |
35800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35802 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35803 | ac_status=$? |
ac1cb8d3 VS |
35804 | grep -v '^ *+' conftest.er1 >conftest.err |
35805 | rm -f conftest.er1 | |
35806 | cat conftest.err >&5 | |
a848cd7e SC |
35807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35808 | (exit $ac_status); } && | |
9dd0f6c2 | 35809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35811 | (eval $ac_try) 2>&5 | |
35812 | ac_status=$? | |
35813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35814 | (exit $ac_status); }; } && | |
35815 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35817 | (eval $ac_try) 2>&5 | |
35818 | ac_status=$? | |
35819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35820 | (exit $ac_status); }; }; then | |
35821 | eval "$as_ac_var=yes" | |
35822 | else | |
35823 | echo "$as_me: failed program was:" >&5 | |
35824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35825 | ||
35826 | eval "$as_ac_var=no" | |
35827 | fi | |
ac1cb8d3 VS |
35828 | rm -f conftest.err conftest.$ac_objext \ |
35829 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35830 | fi |
35831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35832 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35833 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35834 | cat >>confdefs.h <<_ACEOF | |
35835 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35836 | _ACEOF | |
35837 | cat >>confdefs.h <<\_ACEOF | |
35838 | #define HAVE_DLERROR 1 | |
35839 | _ACEOF | |
35840 | ||
35841 | else | |
35842 | ||
35843 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
35844 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
35845 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
35846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35847 | else | |
35848 | ac_check_lib_save_LIBS=$LIBS | |
35849 | LIBS="-ldl $LIBS" | |
35850 | cat >conftest.$ac_ext <<_ACEOF | |
35851 | /* confdefs.h. */ | |
35852 | _ACEOF | |
35853 | cat confdefs.h >>conftest.$ac_ext | |
35854 | cat >>conftest.$ac_ext <<_ACEOF | |
35855 | /* end confdefs.h. */ | |
35856 | ||
35857 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35858 | #ifdef __cplusplus | |
35859 | extern "C" | |
35860 | #endif | |
35861 | /* We use char because int might match the return type of a gcc2 | |
35862 | builtin and then its argument prototype would still apply. */ | |
35863 | char dlerror (); | |
35864 | int | |
35865 | main () | |
35866 | { | |
35867 | dlerror (); | |
35868 | ; | |
35869 | return 0; | |
35870 | } | |
35871 | _ACEOF | |
35872 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35874 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35875 | ac_status=$? |
ac1cb8d3 VS |
35876 | grep -v '^ *+' conftest.er1 >conftest.err |
35877 | rm -f conftest.er1 | |
35878 | cat conftest.err >&5 | |
a848cd7e SC |
35879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35880 | (exit $ac_status); } && | |
9dd0f6c2 | 35881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35883 | (eval $ac_try) 2>&5 | |
35884 | ac_status=$? | |
35885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35886 | (exit $ac_status); }; } && | |
35887 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35889 | (eval $ac_try) 2>&5 | |
35890 | ac_status=$? | |
35891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35892 | (exit $ac_status); }; }; then | |
35893 | ac_cv_lib_dl_dlerror=yes | |
35894 | else | |
35895 | echo "$as_me: failed program was:" >&5 | |
35896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35897 | ||
35898 | ac_cv_lib_dl_dlerror=no | |
35899 | fi | |
ac1cb8d3 VS |
35900 | rm -f conftest.err conftest.$ac_objext \ |
35901 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35902 | LIBS=$ac_check_lib_save_LIBS |
35903 | fi | |
35904 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
35905 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
35906 | if test $ac_cv_lib_dl_dlerror = yes; then | |
35907 | cat >>confdefs.h <<\_ACEOF | |
35908 | #define HAVE_DLERROR 1 | |
35909 | _ACEOF | |
35910 | ||
35911 | fi | |
35912 | ||
35913 | ||
35914 | ||
35915 | fi | |
35916 | done | |
35917 | ||
35918 | fi | |
35919 | fi | |
35920 | ||
35921 | if test "$HAVE_DL_FUNCS" = 0; then | |
35922 | if test "$HAVE_SHL_FUNCS" = 0; then | |
35923 | if test "$USE_UNIX" = 1; then | |
35924 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
35925 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
35926 | wxUSE_DYNAMIC_LOADER=no | |
35927 | wxUSE_DYNLIB_CLASS=no | |
35928 | else | |
35929 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
35930 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
35931 | fi | |
35932 | fi | |
35933 | fi | |
35934 | fi | |
35935 | fi | |
35936 | ||
35937 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
35938 | cat >>confdefs.h <<\_ACEOF | |
35939 | #define wxUSE_DYNAMIC_LOADER 1 | |
35940 | _ACEOF | |
35941 | ||
35942 | fi | |
35943 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
35944 | cat >>confdefs.h <<\_ACEOF | |
35945 | #define wxUSE_DYNLIB_CLASS 1 | |
35946 | _ACEOF | |
35947 | ||
35948 | fi | |
35949 | ||
35950 | ||
35951 | ||
35952 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
35953 | if test "$wxUSE_SHARED" = "no" ; then | |
35954 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
35955 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
35956 | wxUSE_PLUGINS=no | |
35957 | fi | |
35958 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
35959 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
35960 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
35961 | wxUSE_PLUGINS=no | |
35962 | fi | |
35963 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
35964 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
35965 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
35966 | wxUSE_PLUGINS=no | |
35967 | fi | |
35968 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
35969 | cat >>confdefs.h <<\_ACEOF | |
35970 | #define wxUSE_PLUGINS 1 | |
35971 | _ACEOF | |
35972 | ||
35973 | fi | |
35974 | fi | |
35975 | ||
35976 | ||
35977 | if test "$wxUSE_STL" = "yes"; then | |
35978 | cat >>confdefs.h <<\_ACEOF | |
35979 | #define wxUSE_STL 1 | |
35980 | _ACEOF | |
35981 | ||
35982 | fi | |
35983 | ||
35984 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
35985 | cat >>confdefs.h <<\_ACEOF | |
35986 | #define wxUSE_APPLE_IEEE 1 | |
35987 | _ACEOF | |
35988 | ||
35989 | fi | |
35990 | ||
35991 | if test "$wxUSE_TIMER" = "yes"; then | |
35992 | cat >>confdefs.h <<\_ACEOF | |
35993 | #define wxUSE_TIMER 1 | |
35994 | _ACEOF | |
35995 | ||
35996 | fi | |
35997 | ||
35998 | WITH_PLUGIN_SDL=0 | |
35999 | if test "$wxUSE_SOUND" = "yes"; then | |
36000 | if test "$USE_UNIX" = "1" ; then | |
36001 | ||
36002 | for ac_header in sys/soundcard.h | |
36003 | do | |
36004 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36005 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36006 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36007 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36010 | fi | |
36011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36012 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36013 | else | |
36014 | # Is the header compilable? | |
36015 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36016 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36017 | cat >conftest.$ac_ext <<_ACEOF | |
36018 | /* confdefs.h. */ | |
36019 | _ACEOF | |
36020 | cat confdefs.h >>conftest.$ac_ext | |
36021 | cat >>conftest.$ac_ext <<_ACEOF | |
36022 | /* end confdefs.h. */ | |
36023 | $ac_includes_default | |
36024 | #include <$ac_header> | |
36025 | _ACEOF | |
36026 | rm -f conftest.$ac_objext | |
36027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36028 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36029 | ac_status=$? |
ac1cb8d3 VS |
36030 | grep -v '^ *+' conftest.er1 >conftest.err |
36031 | rm -f conftest.er1 | |
36032 | cat conftest.err >&5 | |
a848cd7e SC |
36033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36034 | (exit $ac_status); } && | |
9dd0f6c2 | 36035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36037 | (eval $ac_try) 2>&5 | |
36038 | ac_status=$? | |
36039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36040 | (exit $ac_status); }; } && | |
36041 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36043 | (eval $ac_try) 2>&5 | |
36044 | ac_status=$? | |
36045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36046 | (exit $ac_status); }; }; then | |
36047 | ac_header_compiler=yes | |
36048 | else | |
36049 | echo "$as_me: failed program was:" >&5 | |
36050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36051 | ||
36052 | ac_header_compiler=no | |
36053 | fi | |
ac1cb8d3 | 36054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36055 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36056 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36057 | ||
36058 | # Is the header present? | |
36059 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36060 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36061 | cat >conftest.$ac_ext <<_ACEOF | |
36062 | /* confdefs.h. */ | |
36063 | _ACEOF | |
36064 | cat confdefs.h >>conftest.$ac_ext | |
36065 | cat >>conftest.$ac_ext <<_ACEOF | |
36066 | /* end confdefs.h. */ | |
36067 | #include <$ac_header> | |
36068 | _ACEOF | |
36069 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36070 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36071 | ac_status=$? | |
36072 | grep -v '^ *+' conftest.er1 >conftest.err | |
36073 | rm -f conftest.er1 | |
36074 | cat conftest.err >&5 | |
36075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36076 | (exit $ac_status); } >/dev/null; then | |
36077 | if test -s conftest.err; then | |
36078 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36079 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36080 | else |
36081 | ac_cpp_err= | |
36082 | fi | |
36083 | else | |
36084 | ac_cpp_err=yes | |
36085 | fi | |
36086 | if test -z "$ac_cpp_err"; then | |
36087 | ac_header_preproc=yes | |
36088 | else | |
36089 | echo "$as_me: failed program was:" >&5 | |
36090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36091 | ||
36092 | ac_header_preproc=no | |
36093 | fi | |
36094 | rm -f conftest.err conftest.$ac_ext | |
36095 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36096 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36097 | ||
36098 | # So? What about this header? | |
ac1cb8d3 VS |
36099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36100 | yes:no: ) | |
a848cd7e SC |
36101 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36102 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36103 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36104 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36105 | ac_header_preproc=yes | |
a848cd7e | 36106 | ;; |
ac1cb8d3 | 36107 | no:yes:* ) |
a848cd7e SC |
36108 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36109 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36110 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36111 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36112 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36113 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36114 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36115 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36117 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36118 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36119 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36120 | ( |
36121 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36122 | ## ----------------------------------------- ## |
36123 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36124 | ## ----------------------------------------- ## | |
a848cd7e SC |
36125 | _ASBOX |
36126 | ) | | |
36127 | sed "s/^/$as_me: WARNING: /" >&2 | |
36128 | ;; | |
36129 | esac | |
36130 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36132 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36134 | else | |
ac1cb8d3 | 36135 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36136 | fi |
36137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36139 | ||
36140 | fi | |
36141 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36142 | cat >>confdefs.h <<_ACEOF | |
36143 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36144 | _ACEOF | |
36145 | ||
36146 | fi | |
36147 | ||
36148 | done | |
36149 | ||
36150 | ||
36151 | if test "$wxUSE_LIBSDL" != "no"; then | |
36152 | ||
36153 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
36154 | if test "${with_sdl_prefix+set}" = set; then | |
36155 | withval="$with_sdl_prefix" | |
36156 | sdl_prefix="$withval" | |
36157 | else | |
36158 | sdl_prefix="" | |
36159 | fi; | |
36160 | ||
36161 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
36162 | if test "${with_sdl_exec_prefix+set}" = set; then | |
36163 | withval="$with_sdl_exec_prefix" | |
36164 | sdl_exec_prefix="$withval" | |
36165 | else | |
36166 | sdl_exec_prefix="" | |
36167 | fi; | |
36168 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
36169 | if test "${enable_sdltest+set}" = set; then | |
36170 | enableval="$enable_sdltest" | |
36171 | ||
36172 | else | |
36173 | enable_sdltest=yes | |
36174 | fi; | |
36175 | ||
36176 | if test x$sdl_exec_prefix != x ; then | |
36177 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
36178 | if test x${SDL_CONFIG+set} != xset ; then | |
36179 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
36180 | fi | |
36181 | fi | |
36182 | if test x$sdl_prefix != x ; then | |
36183 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
36184 | if test x${SDL_CONFIG+set} != xset ; then | |
36185 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
36186 | fi | |
36187 | fi | |
36188 | ||
36189 | ||
36190 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
36191 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
36192 | set dummy sdl-config; ac_word=$2 | |
36193 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36195 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
36196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36197 | else | |
36198 | case $SDL_CONFIG in | |
36199 | [\\/]* | ?:[\\/]*) | |
36200 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
36201 | ;; | |
36202 | *) | |
36203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36204 | for as_dir in $PATH | |
36205 | do | |
36206 | IFS=$as_save_IFS | |
36207 | test -z "$as_dir" && as_dir=. | |
36208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36210 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
36211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36212 | break 2 | |
36213 | fi | |
36214 | done | |
36215 | done | |
36216 | ||
36217 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
36218 | ;; | |
36219 | esac | |
36220 | fi | |
36221 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
36222 | ||
36223 | if test -n "$SDL_CONFIG"; then | |
36224 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
36225 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
36226 | else | |
36227 | echo "$as_me:$LINENO: result: no" >&5 | |
36228 | echo "${ECHO_T}no" >&6 | |
36229 | fi | |
36230 | ||
36231 | min_sdl_version=1.2.0 | |
36232 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
36233 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
36234 | no_sdl="" | |
36235 | if test "$SDL_CONFIG" = "no" ; then | |
36236 | no_sdl=yes | |
36237 | else | |
36238 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
36239 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
36240 | ||
36241 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
36242 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
36243 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
36244 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
36245 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
36246 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
36247 | if test "x$enable_sdltest" = "xyes" ; then | |
36248 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 36249 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
36250 | ac_save_LIBS="$LIBS" |
36251 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 36252 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
36253 | LIBS="$LIBS $SDL_LIBS" |
36254 | rm -f conf.sdltest | |
36255 | if test "$cross_compiling" = yes; then | |
36256 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
36257 | else | |
36258 | cat >conftest.$ac_ext <<_ACEOF | |
36259 | /* confdefs.h. */ | |
36260 | _ACEOF | |
36261 | cat confdefs.h >>conftest.$ac_ext | |
36262 | cat >>conftest.$ac_ext <<_ACEOF | |
36263 | /* end confdefs.h. */ | |
36264 | ||
36265 | #include <stdio.h> | |
36266 | #include <stdlib.h> | |
36267 | #include <string.h> | |
36268 | #include "SDL.h" | |
36269 | ||
36270 | char* | |
36271 | my_strdup (char *str) | |
36272 | { | |
36273 | char *new_str; | |
36274 | ||
36275 | if (str) | |
36276 | { | |
36277 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
36278 | strcpy (new_str, str); | |
36279 | } | |
36280 | else | |
36281 | new_str = NULL; | |
36282 | ||
36283 | return new_str; | |
36284 | } | |
36285 | ||
36286 | int main (int argc, char *argv[]) | |
36287 | { | |
36288 | int major, minor, micro; | |
36289 | char *tmp_version; | |
36290 | ||
36291 | /* This hangs on some systems (?) | |
36292 | system ("touch conf.sdltest"); | |
36293 | */ | |
36294 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
36295 | ||
36296 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
36297 | tmp_version = my_strdup("$min_sdl_version"); | |
36298 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
36299 | printf("%s, bad version string\n", "$min_sdl_version"); | |
36300 | exit(1); | |
36301 | } | |
36302 | ||
36303 | if (($sdl_major_version > major) || | |
36304 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
36305 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
36306 | { | |
36307 | return 0; | |
36308 | } | |
36309 | else | |
36310 | { | |
36311 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
36312 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
36313 | printf("*** best to upgrade to the required version.\n"); | |
36314 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
36315 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
36316 | printf("*** config.cache before re-running configure\n"); | |
36317 | return 1; | |
36318 | } | |
36319 | } | |
36320 | ||
36321 | ||
36322 | _ACEOF | |
36323 | rm -f conftest$ac_exeext | |
36324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36325 | (eval $ac_link) 2>&5 | |
36326 | ac_status=$? | |
36327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36328 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
36329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36330 | (eval $ac_try) 2>&5 | |
36331 | ac_status=$? | |
36332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36333 | (exit $ac_status); }; }; then | |
36334 | : | |
36335 | else | |
36336 | echo "$as_me: program exited with status $ac_status" >&5 | |
36337 | echo "$as_me: failed program was:" >&5 | |
36338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36339 | ||
36340 | ( exit $ac_status ) | |
36341 | no_sdl=yes | |
36342 | fi | |
ac1cb8d3 | 36343 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36344 | fi |
36345 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 36346 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
36347 | LIBS="$ac_save_LIBS" |
36348 | fi | |
36349 | fi | |
36350 | if test "x$no_sdl" = x ; then | |
36351 | echo "$as_me:$LINENO: result: yes" >&5 | |
36352 | echo "${ECHO_T}yes" >&6 | |
36353 | ||
36354 | EXTRALIBS_SDL="$SDL_LIBS" | |
36355 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
36356 | cat >>confdefs.h <<\_ACEOF | |
36357 | #define wxUSE_LIBSDL 1 | |
36358 | _ACEOF | |
36359 | ||
36360 | ||
36361 | else | |
36362 | echo "$as_me:$LINENO: result: no" >&5 | |
36363 | echo "${ECHO_T}no" >&6 | |
36364 | if test "$SDL_CONFIG" = "no" ; then | |
36365 | echo "*** The sdl-config script installed by SDL could not be found" | |
36366 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
36367 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
36368 | echo "*** full path to sdl-config." | |
36369 | else | |
36370 | if test -f conf.sdltest ; then | |
36371 | : | |
36372 | else | |
36373 | echo "*** Could not run SDL test program, checking why..." | |
36374 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 36375 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
36376 | LIBS="$LIBS $SDL_LIBS" |
36377 | cat >conftest.$ac_ext <<_ACEOF | |
36378 | /* confdefs.h. */ | |
36379 | _ACEOF | |
36380 | cat confdefs.h >>conftest.$ac_ext | |
36381 | cat >>conftest.$ac_ext <<_ACEOF | |
36382 | /* end confdefs.h. */ | |
36383 | ||
36384 | #include <stdio.h> | |
36385 | #include "SDL.h" | |
36386 | ||
36387 | int main(int argc, char *argv[]) | |
36388 | { return 0; } | |
36389 | #undef main | |
36390 | #define main K_and_R_C_main | |
36391 | ||
36392 | int | |
36393 | main () | |
36394 | { | |
36395 | return 0; | |
36396 | ; | |
36397 | return 0; | |
36398 | } | |
36399 | _ACEOF | |
36400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36402 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36403 | ac_status=$? |
ac1cb8d3 VS |
36404 | grep -v '^ *+' conftest.er1 >conftest.err |
36405 | rm -f conftest.er1 | |
36406 | cat conftest.err >&5 | |
a848cd7e SC |
36407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36408 | (exit $ac_status); } && | |
9dd0f6c2 | 36409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36411 | (eval $ac_try) 2>&5 | |
36412 | ac_status=$? | |
36413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36414 | (exit $ac_status); }; } && | |
36415 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36417 | (eval $ac_try) 2>&5 | |
36418 | ac_status=$? | |
36419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36420 | (exit $ac_status); }; }; then | |
36421 | echo "*** The test program compiled, but did not run. This usually means" | |
36422 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
36423 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
36424 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
36425 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
36426 | echo "*** is required on your system" | |
36427 | echo "***" | |
36428 | echo "*** If you have an old version installed, it is best to remove it, although" | |
36429 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
36430 | else | |
36431 | echo "$as_me: failed program was:" >&5 | |
36432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36433 | ||
36434 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
36435 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
36436 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
36437 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
36438 | fi | |
ac1cb8d3 VS |
36439 | rm -f conftest.err conftest.$ac_objext \ |
36440 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 36441 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 36442 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
36443 | LIBS="$ac_save_LIBS" |
36444 | fi | |
36445 | fi | |
36446 | SDL_CFLAGS="" | |
36447 | SDL_LIBS="" | |
36448 | wxUSE_LIBSDL="no" | |
36449 | fi | |
36450 | ||
36451 | ||
36452 | rm -f conf.sdltest | |
36453 | ||
36454 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
36455 | WITH_PLUGIN_SDL=1 | |
36456 | fi | |
36457 | fi | |
36458 | fi | |
36459 | ||
36460 | cat >>confdefs.h <<\_ACEOF | |
36461 | #define wxUSE_SOUND 1 | |
36462 | _ACEOF | |
36463 | ||
36464 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
36465 | fi | |
36466 | ||
d1c38808 VZ |
36467 | if test "$WXGTK20" = 1; then |
36468 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36469 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
36470 | ||
36471 | ||
36472 | succeeded=no | |
36473 | ||
36474 | if test -z "$PKG_CONFIG"; then | |
36475 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
36476 | set dummy pkg-config; ac_word=$2 | |
36477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36479 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
36480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36481 | else | |
36482 | case $PKG_CONFIG in | |
36483 | [\\/]* | ?:[\\/]*) | |
36484 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
36485 | ;; | |
36486 | *) | |
36487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36488 | for as_dir in $PATH | |
36489 | do | |
36490 | IFS=$as_save_IFS | |
36491 | test -z "$as_dir" && as_dir=. | |
36492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36494 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
36495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36496 | break 2 | |
36497 | fi | |
36498 | done | |
36499 | done | |
36500 | ||
36501 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
36502 | ;; | |
36503 | esac | |
36504 | fi | |
36505 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
36506 | ||
36507 | if test -n "$PKG_CONFIG"; then | |
36508 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
36509 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
36510 | else | |
36511 | echo "$as_me:$LINENO: result: no" >&5 | |
36512 | echo "${ECHO_T}no" >&6 | |
36513 | fi | |
36514 | ||
36515 | fi | |
36516 | ||
36517 | if test "$PKG_CONFIG" = "no" ; then | |
36518 | echo "*** The pkg-config script could not be found. Make sure it is" | |
36519 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
36520 | echo "*** to the full path to pkg-config." | |
36521 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
36522 | else | |
36523 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
36524 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
36525 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
36526 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 36527 | |
ffa762ff | 36528 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
36529 | echo "$as_me:$LINENO: result: yes" >&5 |
36530 | echo "${ECHO_T}yes" >&6 | |
36531 | succeeded=yes | |
36532 | ||
36533 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
36534 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 36535 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36536 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
36537 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
36538 | ||
36539 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
36540 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 36541 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36542 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
36543 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
36544 | else | |
36545 | LIBGNOMEPRINTUI_CFLAGS="" | |
36546 | LIBGNOMEPRINTUI_LIBS="" | |
36547 | ## If we have a custom action on failure, don't print errors, but | |
36548 | ## do set a variable so people can do so. | |
ffa762ff | 36549 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36550 | |
36551 | fi | |
36552 | ||
36553 | ||
36554 | ||
36555 | else | |
36556 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
36557 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
36558 | fi | |
36559 | fi | |
36560 | ||
36561 | if test $succeeded = yes; then | |
36562 | ||
d1c38808 VZ |
36563 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
36564 | cat >>confdefs.h <<\_ACEOF | |
36565 | #define wxUSE_LIBGNOMEPRINT 1 | |
36566 | _ACEOF | |
36567 | ||
36568 | ||
36569 | else | |
36570 | ||
36571 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
36572 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
36573 | wxUSE_LIBGNOMEPRINT="no" | |
36574 | ||
36575 | ||
36576 | fi | |
36577 | ||
36578 | fi | |
36579 | fi | |
36580 | fi | |
36581 | ||
36582 | ||
a848cd7e SC |
36583 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
36584 | cat >>confdefs.h <<\_ACEOF | |
36585 | #define wxUSE_CMDLINE_PARSER 1 | |
36586 | _ACEOF | |
36587 | ||
36588 | fi | |
36589 | ||
36590 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
36591 | cat >>confdefs.h <<\_ACEOF | |
36592 | #define wxUSE_STOPWATCH 1 | |
36593 | _ACEOF | |
36594 | ||
36595 | fi | |
36596 | ||
36597 | if test "$wxUSE_DATETIME" = "yes"; then | |
36598 | cat >>confdefs.h <<\_ACEOF | |
36599 | #define wxUSE_DATETIME 1 | |
36600 | _ACEOF | |
36601 | ||
36602 | fi | |
36603 | ||
36604 | if test "$wxUSE_FILE" = "yes"; then | |
36605 | cat >>confdefs.h <<\_ACEOF | |
36606 | #define wxUSE_FILE 1 | |
36607 | _ACEOF | |
36608 | ||
36609 | fi | |
36610 | ||
36611 | if test "$wxUSE_FFILE" = "yes"; then | |
36612 | cat >>confdefs.h <<\_ACEOF | |
36613 | #define wxUSE_FFILE 1 | |
36614 | _ACEOF | |
36615 | ||
36616 | fi | |
36617 | ||
36618 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
36619 | cat >>confdefs.h <<\_ACEOF | |
36620 | #define wxUSE_FILESYSTEM 1 | |
36621 | _ACEOF | |
36622 | ||
36623 | fi | |
36624 | ||
36625 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
36626 | cat >>confdefs.h <<\_ACEOF | |
36627 | #define wxUSE_FS_ZIP 1 | |
36628 | _ACEOF | |
36629 | ||
36630 | fi | |
36631 | ||
9e8e867f | 36632 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 36633 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 36634 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
36635 | _ACEOF |
36636 | ||
36637 | fi | |
36638 | ||
36639 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 36640 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
36641 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
36642 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
36643 | elif test "$wxUSE_ZLIB" = "no"; then | |
36644 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
36645 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
36646 | else | |
36647 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36648 | #define wxUSE_ZIPSTREAM 1 |
36649 | _ACEOF | |
36650 | ||
81f90336 | 36651 | fi |
a848cd7e SC |
36652 | fi |
36653 | ||
a848cd7e SC |
36654 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
36655 | cat >>confdefs.h <<\_ACEOF | |
36656 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
36657 | _ACEOF | |
36658 | ||
36659 | fi | |
36660 | ||
eaff0f0d VZ |
36661 | if test "$wxUSE_STACKWALKER" = "yes"; then |
36662 | cat >>confdefs.h <<\_ACEOF | |
36663 | #define wxUSE_STACKWALKER 1 | |
36664 | _ACEOF | |
36665 | ||
36666 | fi | |
36667 | ||
36b6448c | 36668 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
dfe0c803 JS |
36669 | if test "$USE_OS2" = "1"; then |
36670 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5 | |
36671 | echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;} | |
36672 | wxUSE_DEBUGREPORT=no | |
36673 | else | |
36674 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
36675 | #define wxUSE_DEBUGREPORT 1 |
36676 | _ACEOF | |
36677 | ||
dfe0c803 JS |
36678 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" |
36679 | fi | |
36b6448c VZ |
36680 | fi |
36681 | ||
a848cd7e SC |
36682 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
36683 | cat >>confdefs.h <<\_ACEOF | |
36684 | #define wxUSE_SNGLINST_CHECKER 1 | |
36685 | _ACEOF | |
36686 | ||
36687 | fi | |
36688 | ||
36689 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
36690 | cat >>confdefs.h <<\_ACEOF | |
36691 | #define wxUSE_BUSYINFO 1 | |
36692 | _ACEOF | |
36693 | ||
36694 | fi | |
36695 | ||
36696 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
36697 | cat >>confdefs.h <<\_ACEOF | |
36698 | #define wxUSE_STD_IOSTREAM 1 | |
36699 | _ACEOF | |
36700 | ||
36701 | fi | |
36702 | ||
59746b65 MW |
36703 | if test "$wxUSE_STD_STRING" = "yes"; then |
36704 | cat >>confdefs.h <<\_ACEOF | |
36705 | #define wxUSE_STD_STRING 1 | |
36706 | _ACEOF | |
36707 | ||
36708 | fi | |
36709 | ||
07158944 VZ |
36710 | if test "$wxUSE_STDPATHS" = "yes"; then |
36711 | cat >>confdefs.h <<\_ACEOF | |
36712 | #define wxUSE_STDPATHS 1 | |
36713 | _ACEOF | |
36714 | ||
36715 | fi | |
36716 | ||
a848cd7e SC |
36717 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
36718 | cat >>confdefs.h <<\_ACEOF | |
36719 | #define wxUSE_TEXTBUFFER 1 | |
36720 | _ACEOF | |
36721 | ||
36722 | fi | |
36723 | ||
36724 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
36725 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
36726 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
36727 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
36728 | else | |
36729 | cat >>confdefs.h <<\_ACEOF | |
36730 | #define wxUSE_TEXTFILE 1 | |
36731 | _ACEOF | |
36732 | ||
36733 | fi | |
36734 | fi | |
36735 | ||
36736 | if test "$wxUSE_CONFIG" = "yes" ; then | |
36737 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
36738 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
36739 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
36740 | else | |
36741 | cat >>confdefs.h <<\_ACEOF | |
36742 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
36743 | _ACEOF |
36744 | ||
36745 | cat >>confdefs.h <<\_ACEOF | |
36746 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
36747 | _ACEOF |
36748 | ||
36749 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
36750 | fi | |
36751 | fi | |
36752 | ||
36753 | if test "$wxUSE_INTL" = "yes" ; then | |
36754 | if test "$wxUSE_FILE" != "yes"; then | |
36755 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
36756 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
36757 | else | |
36758 | cat >>confdefs.h <<\_ACEOF | |
36759 | #define wxUSE_INTL 1 | |
36760 | _ACEOF | |
36761 | ||
36762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
36763 | GUIDIST="$GUIDIST INTL_DIST" | |
36764 | fi | |
36765 | fi | |
36766 | ||
36767 | if test "$wxUSE_LOG" = "yes"; then | |
36768 | cat >>confdefs.h <<\_ACEOF | |
36769 | #define wxUSE_LOG 1 | |
36770 | _ACEOF | |
36771 | ||
36772 | ||
36773 | if test "$wxUSE_LOGGUI" = "yes"; then | |
36774 | cat >>confdefs.h <<\_ACEOF | |
36775 | #define wxUSE_LOGGUI 1 | |
36776 | _ACEOF | |
36777 | ||
36778 | fi | |
36779 | ||
36780 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
36781 | cat >>confdefs.h <<\_ACEOF | |
36782 | #define wxUSE_LOGWINDOW 1 | |
36783 | _ACEOF | |
36784 | ||
36785 | fi | |
36786 | ||
36787 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
36788 | cat >>confdefs.h <<\_ACEOF | |
36789 | #define wxUSE_LOG_DIALOG 1 | |
36790 | _ACEOF | |
36791 | ||
36792 | fi | |
0b78747f MW |
36793 | |
36794 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
36795 | fi |
36796 | ||
36797 | if test "$wxUSE_LONGLONG" = "yes"; then | |
36798 | cat >>confdefs.h <<\_ACEOF | |
36799 | #define wxUSE_LONGLONG 1 | |
36800 | _ACEOF | |
36801 | ||
36802 | fi | |
36803 | ||
36804 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
36805 | cat >>confdefs.h <<\_ACEOF | |
36806 | #define wxUSE_GEOMETRY 1 | |
36807 | _ACEOF | |
36808 | ||
36809 | fi | |
36810 | ||
a848cd7e SC |
36811 | if test "$wxUSE_STREAMS" = "yes" ; then |
36812 | cat >>confdefs.h <<\_ACEOF | |
36813 | #define wxUSE_STREAMS 1 | |
36814 | _ACEOF | |
36815 | ||
36816 | fi | |
36817 | ||
36818 | ||
36819 | if test "$wxUSE_DATETIME" = "yes"; then | |
36820 | ||
36821 | for ac_func in strptime | |
36822 | do | |
36823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36824 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36826 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36828 | else | |
36829 | cat >conftest.$ac_ext <<_ACEOF | |
36830 | /* confdefs.h. */ | |
36831 | _ACEOF | |
36832 | cat confdefs.h >>conftest.$ac_ext | |
36833 | cat >>conftest.$ac_ext <<_ACEOF | |
36834 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36837 | #define $ac_func innocuous_$ac_func | |
36838 | ||
a848cd7e SC |
36839 | /* System header to define __stub macros and hopefully few prototypes, |
36840 | which can conflict with char $ac_func (); below. | |
36841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36842 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36843 | |
a848cd7e SC |
36844 | #ifdef __STDC__ |
36845 | # include <limits.h> | |
36846 | #else | |
36847 | # include <assert.h> | |
36848 | #endif | |
ac1cb8d3 VS |
36849 | |
36850 | #undef $ac_func | |
36851 | ||
a848cd7e SC |
36852 | /* Override any gcc2 internal prototype to avoid an error. */ |
36853 | #ifdef __cplusplus | |
36854 | extern "C" | |
36855 | { | |
36856 | #endif | |
36857 | /* We use char because int might match the return type of a gcc2 | |
36858 | builtin and then its argument prototype would still apply. */ | |
36859 | char $ac_func (); | |
36860 | /* The GNU C library defines this for functions which it implements | |
36861 | to always fail with ENOSYS. Some functions are actually named | |
36862 | something starting with __ and the normal name is an alias. */ | |
36863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36864 | choke me | |
36865 | #else | |
36866 | char (*f) () = $ac_func; | |
36867 | #endif | |
36868 | #ifdef __cplusplus | |
36869 | } | |
36870 | #endif | |
36871 | ||
36872 | int | |
36873 | main () | |
36874 | { | |
36875 | return f != $ac_func; | |
36876 | ; | |
36877 | return 0; | |
36878 | } | |
36879 | _ACEOF | |
36880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36882 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36883 | ac_status=$? |
ac1cb8d3 VS |
36884 | grep -v '^ *+' conftest.er1 >conftest.err |
36885 | rm -f conftest.er1 | |
36886 | cat conftest.err >&5 | |
a848cd7e SC |
36887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36888 | (exit $ac_status); } && | |
9dd0f6c2 | 36889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36891 | (eval $ac_try) 2>&5 | |
36892 | ac_status=$? | |
36893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36894 | (exit $ac_status); }; } && | |
36895 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36897 | (eval $ac_try) 2>&5 | |
36898 | ac_status=$? | |
36899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36900 | (exit $ac_status); }; }; then | |
36901 | eval "$as_ac_var=yes" | |
36902 | else | |
36903 | echo "$as_me: failed program was:" >&5 | |
36904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36905 | ||
36906 | eval "$as_ac_var=no" | |
36907 | fi | |
ac1cb8d3 VS |
36908 | rm -f conftest.err conftest.$ac_objext \ |
36909 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36910 | fi |
36911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36912 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36913 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36914 | cat >>confdefs.h <<_ACEOF | |
36915 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36916 | _ACEOF | |
36917 | ||
36918 | fi | |
36919 | done | |
36920 | ||
36921 | ||
36922 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
36923 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
36924 | if test "${wx_cv_var_timezone+set}" = set; then | |
36925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36926 | else | |
36927 | ||
36928 | cat >conftest.$ac_ext <<_ACEOF | |
36929 | /* confdefs.h. */ | |
36930 | _ACEOF | |
36931 | cat confdefs.h >>conftest.$ac_ext | |
36932 | cat >>conftest.$ac_ext <<_ACEOF | |
36933 | /* end confdefs.h. */ | |
36934 | ||
36935 | #include <time.h> | |
36936 | ||
36937 | int | |
36938 | main () | |
36939 | { | |
36940 | ||
36941 | int tz; | |
36942 | tz = timezone; | |
36943 | ||
36944 | ; | |
36945 | return 0; | |
36946 | } | |
36947 | _ACEOF | |
36948 | rm -f conftest.$ac_objext | |
36949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36950 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36951 | ac_status=$? |
ac1cb8d3 VS |
36952 | grep -v '^ *+' conftest.er1 >conftest.err |
36953 | rm -f conftest.er1 | |
36954 | cat conftest.err >&5 | |
a848cd7e SC |
36955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36956 | (exit $ac_status); } && | |
9dd0f6c2 | 36957 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36959 | (eval $ac_try) 2>&5 | |
36960 | ac_status=$? | |
36961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36962 | (exit $ac_status); }; } && | |
36963 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36965 | (eval $ac_try) 2>&5 | |
36966 | ac_status=$? | |
36967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36968 | (exit $ac_status); }; }; then | |
36969 | ||
36970 | wx_cv_var_timezone=timezone | |
36971 | ||
36972 | else | |
36973 | echo "$as_me: failed program was:" >&5 | |
36974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36975 | ||
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 | if test "$USE_DOS" = 0 ; then | |
37076 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
37077 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
37078 | fi | |
37079 | ||
37080 | ||
37081 | fi | |
ac1cb8d3 | 37082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37083 | |
37084 | ||
37085 | fi | |
ac1cb8d3 | 37086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37087 | |
37088 | ||
37089 | fi | |
ac1cb8d3 | 37090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37091 | |
37092 | ||
37093 | fi | |
37094 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
37095 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
37096 | ||
37097 | if test "x$wx_cv_var_timezone" != x ; then | |
37098 | cat >>confdefs.h <<_ACEOF | |
37099 | #define WX_TIMEZONE $wx_cv_var_timezone | |
37100 | _ACEOF | |
37101 | ||
37102 | fi | |
37103 | ||
37104 | ||
37105 | for ac_func in localtime | |
37106 | do | |
37107 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37108 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37109 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37110 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37112 | else | |
37113 | cat >conftest.$ac_ext <<_ACEOF | |
37114 | /* confdefs.h. */ | |
37115 | _ACEOF | |
37116 | cat confdefs.h >>conftest.$ac_ext | |
37117 | cat >>conftest.$ac_ext <<_ACEOF | |
37118 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37119 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37120 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37121 | #define $ac_func innocuous_$ac_func | |
37122 | ||
a848cd7e SC |
37123 | /* System header to define __stub macros and hopefully few prototypes, |
37124 | which can conflict with char $ac_func (); below. | |
37125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37126 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37127 | |
a848cd7e SC |
37128 | #ifdef __STDC__ |
37129 | # include <limits.h> | |
37130 | #else | |
37131 | # include <assert.h> | |
37132 | #endif | |
ac1cb8d3 VS |
37133 | |
37134 | #undef $ac_func | |
37135 | ||
a848cd7e SC |
37136 | /* Override any gcc2 internal prototype to avoid an error. */ |
37137 | #ifdef __cplusplus | |
37138 | extern "C" | |
37139 | { | |
37140 | #endif | |
37141 | /* We use char because int might match the return type of a gcc2 | |
37142 | builtin and then its argument prototype would still apply. */ | |
37143 | char $ac_func (); | |
37144 | /* The GNU C library defines this for functions which it implements | |
37145 | to always fail with ENOSYS. Some functions are actually named | |
37146 | something starting with __ and the normal name is an alias. */ | |
37147 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37148 | choke me | |
37149 | #else | |
37150 | char (*f) () = $ac_func; | |
37151 | #endif | |
37152 | #ifdef __cplusplus | |
37153 | } | |
37154 | #endif | |
37155 | ||
37156 | int | |
37157 | main () | |
37158 | { | |
37159 | return f != $ac_func; | |
37160 | ; | |
37161 | return 0; | |
37162 | } | |
37163 | _ACEOF | |
37164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37166 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37167 | ac_status=$? |
ac1cb8d3 VS |
37168 | grep -v '^ *+' conftest.er1 >conftest.err |
37169 | rm -f conftest.er1 | |
37170 | cat conftest.err >&5 | |
a848cd7e SC |
37171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37172 | (exit $ac_status); } && | |
9dd0f6c2 | 37173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37175 | (eval $ac_try) 2>&5 | |
37176 | ac_status=$? | |
37177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37178 | (exit $ac_status); }; } && | |
37179 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37181 | (eval $ac_try) 2>&5 | |
37182 | ac_status=$? | |
37183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37184 | (exit $ac_status); }; }; then | |
37185 | eval "$as_ac_var=yes" | |
37186 | else | |
37187 | echo "$as_me: failed program was:" >&5 | |
37188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37189 | ||
37190 | eval "$as_ac_var=no" | |
37191 | fi | |
ac1cb8d3 VS |
37192 | rm -f conftest.err conftest.$ac_objext \ |
37193 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37194 | fi |
37195 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37196 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37197 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37198 | cat >>confdefs.h <<_ACEOF | |
37199 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37200 | _ACEOF | |
37201 | ||
37202 | fi | |
37203 | done | |
37204 | ||
37205 | ||
37206 | if test "$ac_cv_func_localtime" = "yes"; then | |
37207 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
37208 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
37209 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
37210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37211 | else | |
37212 | ||
37213 | cat >conftest.$ac_ext <<_ACEOF | |
37214 | /* confdefs.h. */ | |
37215 | _ACEOF | |
37216 | cat confdefs.h >>conftest.$ac_ext | |
37217 | cat >>conftest.$ac_ext <<_ACEOF | |
37218 | /* end confdefs.h. */ | |
37219 | ||
37220 | #include <time.h> | |
37221 | ||
37222 | int | |
37223 | main () | |
37224 | { | |
37225 | ||
37226 | struct tm tm; | |
37227 | tm.tm_gmtoff++; | |
37228 | ||
37229 | ; | |
37230 | return 0; | |
37231 | } | |
37232 | _ACEOF | |
37233 | rm -f conftest.$ac_objext | |
37234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37235 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37236 | ac_status=$? |
ac1cb8d3 VS |
37237 | grep -v '^ *+' conftest.er1 >conftest.err |
37238 | rm -f conftest.er1 | |
37239 | cat conftest.err >&5 | |
a848cd7e SC |
37240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37241 | (exit $ac_status); } && | |
9dd0f6c2 | 37242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37244 | (eval $ac_try) 2>&5 | |
37245 | ac_status=$? | |
37246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37247 | (exit $ac_status); }; } && | |
37248 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37250 | (eval $ac_try) 2>&5 | |
37251 | ac_status=$? | |
37252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37253 | (exit $ac_status); }; }; then | |
37254 | ||
37255 | wx_cv_struct_tm_has_gmtoff=yes | |
37256 | ||
37257 | else | |
37258 | echo "$as_me: failed program was:" >&5 | |
37259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37260 | ||
37261 | wx_cv_struct_tm_has_gmtoff=no | |
37262 | ||
37263 | fi | |
ac1cb8d3 | 37264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37265 | |
37266 | fi | |
37267 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
37268 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
37269 | fi | |
37270 | ||
37271 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
37272 | cat >>confdefs.h <<\_ACEOF | |
37273 | #define WX_GMTOFF_IN_TM 1 | |
37274 | _ACEOF | |
37275 | ||
37276 | fi | |
37277 | ||
37278 | ||
37279 | ||
37280 | for ac_func in gettimeofday ftime | |
37281 | do | |
37282 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37283 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37284 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37285 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37287 | else | |
37288 | cat >conftest.$ac_ext <<_ACEOF | |
37289 | /* confdefs.h. */ | |
37290 | _ACEOF | |
37291 | cat confdefs.h >>conftest.$ac_ext | |
37292 | cat >>conftest.$ac_ext <<_ACEOF | |
37293 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37294 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37295 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37296 | #define $ac_func innocuous_$ac_func | |
37297 | ||
a848cd7e SC |
37298 | /* System header to define __stub macros and hopefully few prototypes, |
37299 | which can conflict with char $ac_func (); below. | |
37300 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37301 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37302 | |
a848cd7e SC |
37303 | #ifdef __STDC__ |
37304 | # include <limits.h> | |
37305 | #else | |
37306 | # include <assert.h> | |
37307 | #endif | |
ac1cb8d3 VS |
37308 | |
37309 | #undef $ac_func | |
37310 | ||
a848cd7e SC |
37311 | /* Override any gcc2 internal prototype to avoid an error. */ |
37312 | #ifdef __cplusplus | |
37313 | extern "C" | |
37314 | { | |
37315 | #endif | |
37316 | /* We use char because int might match the return type of a gcc2 | |
37317 | builtin and then its argument prototype would still apply. */ | |
37318 | char $ac_func (); | |
37319 | /* The GNU C library defines this for functions which it implements | |
37320 | to always fail with ENOSYS. Some functions are actually named | |
37321 | something starting with __ and the normal name is an alias. */ | |
37322 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37323 | choke me | |
37324 | #else | |
37325 | char (*f) () = $ac_func; | |
37326 | #endif | |
37327 | #ifdef __cplusplus | |
37328 | } | |
37329 | #endif | |
37330 | ||
37331 | int | |
37332 | main () | |
37333 | { | |
37334 | return f != $ac_func; | |
37335 | ; | |
37336 | return 0; | |
37337 | } | |
37338 | _ACEOF | |
37339 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37341 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37342 | ac_status=$? |
ac1cb8d3 VS |
37343 | grep -v '^ *+' conftest.er1 >conftest.err |
37344 | rm -f conftest.er1 | |
37345 | cat conftest.err >&5 | |
a848cd7e SC |
37346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37347 | (exit $ac_status); } && | |
9dd0f6c2 | 37348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37350 | (eval $ac_try) 2>&5 | |
37351 | ac_status=$? | |
37352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37353 | (exit $ac_status); }; } && | |
37354 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37356 | (eval $ac_try) 2>&5 | |
37357 | ac_status=$? | |
37358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37359 | (exit $ac_status); }; }; then | |
37360 | eval "$as_ac_var=yes" | |
37361 | else | |
37362 | echo "$as_me: failed program was:" >&5 | |
37363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37364 | ||
37365 | eval "$as_ac_var=no" | |
37366 | fi | |
ac1cb8d3 VS |
37367 | rm -f conftest.err conftest.$ac_objext \ |
37368 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37369 | fi |
37370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37371 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37372 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37373 | cat >>confdefs.h <<_ACEOF | |
37374 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37375 | _ACEOF | |
37376 | break | |
37377 | fi | |
37378 | done | |
37379 | ||
37380 | ||
37381 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
37382 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
37383 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
37384 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
37385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37386 | else | |
37387 | ||
37388 | ||
37389 | ||
37390 | ac_ext=cc | |
37391 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37392 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37393 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37394 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37395 | ||
37396 | ||
37397 | cat >conftest.$ac_ext <<_ACEOF | |
37398 | /* confdefs.h. */ | |
37399 | _ACEOF | |
37400 | cat confdefs.h >>conftest.$ac_ext | |
37401 | cat >>conftest.$ac_ext <<_ACEOF | |
37402 | /* end confdefs.h. */ | |
37403 | ||
37404 | #include <sys/time.h> | |
37405 | #include <unistd.h> | |
37406 | ||
37407 | int | |
37408 | main () | |
37409 | { | |
37410 | ||
37411 | struct timeval tv; | |
37412 | gettimeofday(&tv, NULL); | |
37413 | ||
37414 | ; | |
37415 | return 0; | |
37416 | } | |
37417 | _ACEOF | |
37418 | rm -f conftest.$ac_objext | |
37419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37421 | ac_status=$? |
ac1cb8d3 VS |
37422 | grep -v '^ *+' conftest.er1 >conftest.err |
37423 | rm -f conftest.er1 | |
37424 | cat conftest.err >&5 | |
a848cd7e SC |
37425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37426 | (exit $ac_status); } && | |
9dd0f6c2 | 37427 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37429 | (eval $ac_try) 2>&5 | |
37430 | ac_status=$? | |
37431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37432 | (exit $ac_status); }; } && | |
37433 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37435 | (eval $ac_try) 2>&5 | |
37436 | ac_status=$? | |
37437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37438 | (exit $ac_status); }; }; then | |
37439 | wx_cv_func_gettimeofday_has_2_args=yes | |
37440 | else | |
37441 | echo "$as_me: failed program was:" >&5 | |
37442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37443 | ||
37444 | cat >conftest.$ac_ext <<_ACEOF | |
37445 | /* confdefs.h. */ | |
37446 | _ACEOF | |
37447 | cat confdefs.h >>conftest.$ac_ext | |
37448 | cat >>conftest.$ac_ext <<_ACEOF | |
37449 | /* end confdefs.h. */ | |
37450 | ||
37451 | #include <sys/time.h> | |
37452 | #include <unistd.h> | |
37453 | ||
37454 | int | |
37455 | main () | |
37456 | { | |
37457 | ||
37458 | struct timeval tv; | |
37459 | gettimeofday(&tv); | |
37460 | ||
37461 | ; | |
37462 | return 0; | |
37463 | } | |
37464 | _ACEOF | |
37465 | rm -f conftest.$ac_objext | |
37466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37467 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37468 | ac_status=$? |
ac1cb8d3 VS |
37469 | grep -v '^ *+' conftest.er1 >conftest.err |
37470 | rm -f conftest.er1 | |
37471 | cat conftest.err >&5 | |
a848cd7e SC |
37472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37473 | (exit $ac_status); } && | |
9dd0f6c2 | 37474 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37476 | (eval $ac_try) 2>&5 | |
37477 | ac_status=$? | |
37478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37479 | (exit $ac_status); }; } && | |
37480 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37482 | (eval $ac_try) 2>&5 | |
37483 | ac_status=$? | |
37484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37485 | (exit $ac_status); }; }; then | |
37486 | wx_cv_func_gettimeofday_has_2_args=no | |
37487 | else | |
37488 | echo "$as_me: failed program was:" >&5 | |
37489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37490 | ||
37491 | ||
37492 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
37493 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
37494 | wx_cv_func_gettimeofday_has_2_args=unknown | |
37495 | ||
37496 | ||
37497 | fi | |
ac1cb8d3 | 37498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37499 | |
37500 | fi | |
ac1cb8d3 | 37501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37502 | ac_ext=c |
37503 | ac_cpp='$CPP $CPPFLAGS' | |
37504 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37505 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37506 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37507 | ||
37508 | ||
37509 | fi | |
37510 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
37511 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
37512 | ||
37513 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
37514 | cat >>confdefs.h <<\_ACEOF | |
37515 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
37516 | _ACEOF | |
37517 | ||
37518 | fi | |
37519 | fi | |
37520 | ||
37521 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
37522 | fi | |
37523 | ||
37524 | ||
37525 | if test "$wxUSE_SOCKETS" = "yes"; then | |
37526 | if test "$wxUSE_MGL" = "1"; then | |
37527 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
37528 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
37529 | wxUSE_SOCKETS="no" | |
37530 | fi | |
37531 | fi | |
37532 | ||
37533 | if test "$wxUSE_SOCKETS" = "yes"; then | |
37534 | if test "$TOOLKIT" != "MSW"; then | |
37535 | echo "$as_me:$LINENO: checking for socket" >&5 | |
37536 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
37537 | if test "${ac_cv_func_socket+set}" = set; then | |
37538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37539 | else | |
37540 | cat >conftest.$ac_ext <<_ACEOF | |
37541 | /* confdefs.h. */ | |
37542 | _ACEOF | |
37543 | cat confdefs.h >>conftest.$ac_ext | |
37544 | cat >>conftest.$ac_ext <<_ACEOF | |
37545 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37546 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
37547 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37548 | #define socket innocuous_socket | |
37549 | ||
a848cd7e SC |
37550 | /* System header to define __stub macros and hopefully few prototypes, |
37551 | which can conflict with char socket (); below. | |
37552 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37553 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37554 | |
a848cd7e SC |
37555 | #ifdef __STDC__ |
37556 | # include <limits.h> | |
37557 | #else | |
37558 | # include <assert.h> | |
37559 | #endif | |
ac1cb8d3 VS |
37560 | |
37561 | #undef socket | |
37562 | ||
a848cd7e SC |
37563 | /* Override any gcc2 internal prototype to avoid an error. */ |
37564 | #ifdef __cplusplus | |
37565 | extern "C" | |
37566 | { | |
37567 | #endif | |
37568 | /* We use char because int might match the return type of a gcc2 | |
37569 | builtin and then its argument prototype would still apply. */ | |
37570 | char socket (); | |
37571 | /* The GNU C library defines this for functions which it implements | |
37572 | to always fail with ENOSYS. Some functions are actually named | |
37573 | something starting with __ and the normal name is an alias. */ | |
37574 | #if defined (__stub_socket) || defined (__stub___socket) | |
37575 | choke me | |
37576 | #else | |
37577 | char (*f) () = socket; | |
37578 | #endif | |
37579 | #ifdef __cplusplus | |
37580 | } | |
37581 | #endif | |
37582 | ||
37583 | int | |
37584 | main () | |
37585 | { | |
37586 | return f != socket; | |
37587 | ; | |
37588 | return 0; | |
37589 | } | |
37590 | _ACEOF | |
37591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37593 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37594 | ac_status=$? |
ac1cb8d3 VS |
37595 | grep -v '^ *+' conftest.er1 >conftest.err |
37596 | rm -f conftest.er1 | |
37597 | cat conftest.err >&5 | |
a848cd7e SC |
37598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37599 | (exit $ac_status); } && | |
9dd0f6c2 | 37600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37602 | (eval $ac_try) 2>&5 | |
37603 | ac_status=$? | |
37604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37605 | (exit $ac_status); }; } && | |
37606 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37608 | (eval $ac_try) 2>&5 | |
37609 | ac_status=$? | |
37610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37611 | (exit $ac_status); }; }; then | |
37612 | ac_cv_func_socket=yes | |
37613 | else | |
37614 | echo "$as_me: failed program was:" >&5 | |
37615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37616 | ||
37617 | ac_cv_func_socket=no | |
37618 | fi | |
ac1cb8d3 VS |
37619 | rm -f conftest.err conftest.$ac_objext \ |
37620 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37621 | fi |
37622 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
37623 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
37624 | if test $ac_cv_func_socket = yes; then | |
37625 | : | |
37626 | else | |
37627 | ||
37628 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
37629 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
37630 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
37631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37632 | else | |
37633 | ac_check_lib_save_LIBS=$LIBS | |
37634 | LIBS="-lsocket $LIBS" | |
37635 | cat >conftest.$ac_ext <<_ACEOF | |
37636 | /* confdefs.h. */ | |
37637 | _ACEOF | |
37638 | cat confdefs.h >>conftest.$ac_ext | |
37639 | cat >>conftest.$ac_ext <<_ACEOF | |
37640 | /* end confdefs.h. */ | |
37641 | ||
37642 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37643 | #ifdef __cplusplus | |
37644 | extern "C" | |
37645 | #endif | |
37646 | /* We use char because int might match the return type of a gcc2 | |
37647 | builtin and then its argument prototype would still apply. */ | |
37648 | char socket (); | |
37649 | int | |
37650 | main () | |
37651 | { | |
37652 | socket (); | |
37653 | ; | |
37654 | return 0; | |
37655 | } | |
37656 | _ACEOF | |
37657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37659 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37660 | ac_status=$? |
ac1cb8d3 VS |
37661 | grep -v '^ *+' conftest.er1 >conftest.err |
37662 | rm -f conftest.er1 | |
37663 | cat conftest.err >&5 | |
a848cd7e SC |
37664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37665 | (exit $ac_status); } && | |
9dd0f6c2 | 37666 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37668 | (eval $ac_try) 2>&5 | |
37669 | ac_status=$? | |
37670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37671 | (exit $ac_status); }; } && | |
37672 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37674 | (eval $ac_try) 2>&5 | |
37675 | ac_status=$? | |
37676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37677 | (exit $ac_status); }; }; then | |
37678 | ac_cv_lib_socket_socket=yes | |
37679 | else | |
37680 | echo "$as_me: failed program was:" >&5 | |
37681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37682 | ||
37683 | ac_cv_lib_socket_socket=no | |
37684 | fi | |
ac1cb8d3 VS |
37685 | rm -f conftest.err conftest.$ac_objext \ |
37686 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37687 | LIBS=$ac_check_lib_save_LIBS |
37688 | fi | |
37689 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
37690 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
37691 | if test $ac_cv_lib_socket_socket = yes; then | |
37692 | if test "$INET_LINK" != " -lsocket"; then | |
37693 | INET_LINK="$INET_LINK -lsocket" | |
37694 | fi | |
37695 | else | |
37696 | ||
37697 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
37698 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
37699 | wxUSE_SOCKETS=no | |
37700 | ||
37701 | ||
37702 | fi | |
37703 | ||
37704 | ||
37705 | ||
37706 | fi | |
37707 | ||
37708 | fi | |
37709 | fi | |
37710 | ||
37711 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
37712 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
37713 | ac_ext=cc |
37714 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37718 | ||
37719 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
37720 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
37721 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
37722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37723 | else | |
37724 | ||
37725 | cat >conftest.$ac_ext <<_ACEOF | |
37726 | /* confdefs.h. */ | |
37727 | _ACEOF | |
37728 | cat confdefs.h >>conftest.$ac_ext | |
37729 | cat >>conftest.$ac_ext <<_ACEOF | |
37730 | /* end confdefs.h. */ | |
37731 | ||
37732 | #include <sys/types.h> | |
37733 | #include <sys/socket.h> | |
37734 | ||
37735 | int | |
37736 | main () | |
37737 | { | |
37738 | ||
37739 | socklen_t len; | |
37740 | getsockname(0, 0, &len); | |
37741 | ||
37742 | ; | |
37743 | return 0; | |
37744 | } | |
37745 | _ACEOF | |
37746 | rm -f conftest.$ac_objext | |
37747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37748 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37749 | ac_status=$? |
ac1cb8d3 VS |
37750 | grep -v '^ *+' conftest.er1 >conftest.err |
37751 | rm -f conftest.er1 | |
37752 | cat conftest.err >&5 | |
a848cd7e SC |
37753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37754 | (exit $ac_status); } && | |
9dd0f6c2 | 37755 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37757 | (eval $ac_try) 2>&5 | |
37758 | ac_status=$? | |
37759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37760 | (exit $ac_status); }; } && | |
37761 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37763 | (eval $ac_try) 2>&5 | |
37764 | ac_status=$? | |
37765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37766 | (exit $ac_status); }; }; then | |
37767 | wx_cv_type_getsockname3=socklen_t | |
37768 | else | |
37769 | echo "$as_me: failed program was:" >&5 | |
37770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37771 | ||
37772 | ||
37773 | CFLAGS_OLD="$CFLAGS" | |
37774 | if test "$GCC" = yes ; then | |
37775 | CFLAGS="$CFLAGS -Werror" | |
37776 | fi | |
37777 | ||
37778 | cat >conftest.$ac_ext <<_ACEOF | |
37779 | /* confdefs.h. */ | |
37780 | _ACEOF | |
37781 | cat confdefs.h >>conftest.$ac_ext | |
37782 | cat >>conftest.$ac_ext <<_ACEOF | |
37783 | /* end confdefs.h. */ | |
37784 | ||
37785 | #include <sys/types.h> | |
37786 | #include <sys/socket.h> | |
37787 | ||
37788 | int | |
37789 | main () | |
37790 | { | |
37791 | ||
37792 | size_t len; | |
37793 | getsockname(0, 0, &len); | |
37794 | ||
37795 | ; | |
37796 | return 0; | |
37797 | } | |
37798 | _ACEOF | |
37799 | rm -f conftest.$ac_objext | |
37800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37801 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37802 | ac_status=$? |
ac1cb8d3 VS |
37803 | grep -v '^ *+' conftest.er1 >conftest.err |
37804 | rm -f conftest.er1 | |
37805 | cat conftest.err >&5 | |
a848cd7e SC |
37806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37807 | (exit $ac_status); } && | |
9dd0f6c2 | 37808 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37810 | (eval $ac_try) 2>&5 | |
37811 | ac_status=$? | |
37812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37813 | (exit $ac_status); }; } && | |
37814 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37816 | (eval $ac_try) 2>&5 | |
37817 | ac_status=$? | |
37818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37819 | (exit $ac_status); }; }; then | |
37820 | wx_cv_type_getsockname3=size_t | |
37821 | else | |
37822 | echo "$as_me: failed program was:" >&5 | |
37823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37824 | ||
37825 | cat >conftest.$ac_ext <<_ACEOF | |
37826 | /* confdefs.h. */ | |
37827 | _ACEOF | |
37828 | cat confdefs.h >>conftest.$ac_ext | |
37829 | cat >>conftest.$ac_ext <<_ACEOF | |
37830 | /* end confdefs.h. */ | |
37831 | ||
37832 | #include <sys/types.h> | |
37833 | #include <sys/socket.h> | |
37834 | ||
37835 | int | |
37836 | main () | |
37837 | { | |
37838 | ||
37839 | int len; | |
37840 | getsockname(0, 0, &len); | |
37841 | ||
37842 | ; | |
37843 | return 0; | |
37844 | } | |
37845 | _ACEOF | |
37846 | rm -f conftest.$ac_objext | |
37847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37848 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37849 | ac_status=$? |
ac1cb8d3 VS |
37850 | grep -v '^ *+' conftest.er1 >conftest.err |
37851 | rm -f conftest.er1 | |
37852 | cat conftest.err >&5 | |
a848cd7e SC |
37853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37854 | (exit $ac_status); } && | |
9dd0f6c2 | 37855 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37857 | (eval $ac_try) 2>&5 | |
37858 | ac_status=$? | |
37859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37860 | (exit $ac_status); }; } && | |
37861 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37863 | (eval $ac_try) 2>&5 | |
37864 | ac_status=$? | |
37865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37866 | (exit $ac_status); }; }; then | |
37867 | wx_cv_type_getsockname3=int | |
37868 | else | |
37869 | echo "$as_me: failed program was:" >&5 | |
37870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37871 | ||
37872 | wx_cv_type_getsockname3=unknown | |
37873 | ||
37874 | fi | |
ac1cb8d3 | 37875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37876 | |
37877 | fi | |
ac1cb8d3 | 37878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37879 | |
37880 | CFLAGS="$CFLAGS_OLD" | |
37881 | ||
37882 | ||
37883 | fi | |
ac1cb8d3 | 37884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37885 | |
37886 | fi | |
37887 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
37888 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
37889 | ||
37890 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
37891 | wxUSE_SOCKETS=no | |
37892 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
37893 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
37894 | else | |
37895 | cat >>confdefs.h <<_ACEOF | |
37896 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
37897 | _ACEOF |
37898 | ||
37899 | fi | |
37900 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
37901 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
37902 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
37903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37904 | else | |
37905 | ||
37906 | cat >conftest.$ac_ext <<_ACEOF | |
37907 | /* confdefs.h. */ | |
37908 | _ACEOF | |
37909 | cat confdefs.h >>conftest.$ac_ext | |
37910 | cat >>conftest.$ac_ext <<_ACEOF | |
37911 | /* end confdefs.h. */ | |
37912 | ||
37913 | #include <sys/types.h> | |
37914 | #include <sys/socket.h> | |
37915 | ||
37916 | int | |
37917 | main () | |
37918 | { | |
37919 | ||
37920 | socklen_t len; | |
37921 | getsockopt(0, 0, 0, 0, &len); | |
37922 | ||
37923 | ; | |
37924 | return 0; | |
37925 | } | |
37926 | _ACEOF | |
37927 | rm -f conftest.$ac_objext | |
37928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37929 | (eval $ac_compile) 2>conftest.er1 | |
37930 | ac_status=$? | |
37931 | grep -v '^ *+' conftest.er1 >conftest.err | |
37932 | rm -f conftest.er1 | |
37933 | cat conftest.err >&5 | |
37934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37935 | (exit $ac_status); } && | |
9dd0f6c2 | 37936 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
37937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37938 | (eval $ac_try) 2>&5 | |
37939 | ac_status=$? | |
37940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37941 | (exit $ac_status); }; } && | |
37942 | { ac_try='test -s conftest.$ac_objext' | |
37943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37944 | (eval $ac_try) 2>&5 | |
37945 | ac_status=$? | |
37946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37947 | (exit $ac_status); }; }; then | |
37948 | wx_cv_type_getsockopt5=socklen_t | |
37949 | else | |
37950 | echo "$as_me: failed program was:" >&5 | |
37951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37952 | ||
37953 | ||
37954 | CFLAGS_OLD="$CFLAGS" | |
37955 | if test "$GCC" = yes ; then | |
37956 | CFLAGS="$CFLAGS -Werror" | |
37957 | fi | |
37958 | ||
37959 | cat >conftest.$ac_ext <<_ACEOF | |
37960 | /* confdefs.h. */ | |
37961 | _ACEOF | |
37962 | cat confdefs.h >>conftest.$ac_ext | |
37963 | cat >>conftest.$ac_ext <<_ACEOF | |
37964 | /* end confdefs.h. */ | |
37965 | ||
37966 | #include <sys/types.h> | |
37967 | #include <sys/socket.h> | |
37968 | ||
37969 | int | |
37970 | main () | |
37971 | { | |
37972 | ||
37973 | size_t len; | |
37974 | getsockopt(0, 0, 0, 0, &len); | |
37975 | ||
37976 | ; | |
37977 | return 0; | |
37978 | } | |
37979 | _ACEOF | |
37980 | rm -f conftest.$ac_objext | |
37981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37982 | (eval $ac_compile) 2>conftest.er1 | |
37983 | ac_status=$? | |
37984 | grep -v '^ *+' conftest.er1 >conftest.err | |
37985 | rm -f conftest.er1 | |
37986 | cat conftest.err >&5 | |
37987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37988 | (exit $ac_status); } && | |
9dd0f6c2 | 37989 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
37990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37991 | (eval $ac_try) 2>&5 | |
37992 | ac_status=$? | |
37993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37994 | (exit $ac_status); }; } && | |
37995 | { ac_try='test -s conftest.$ac_objext' | |
37996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37997 | (eval $ac_try) 2>&5 | |
37998 | ac_status=$? | |
37999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38000 | (exit $ac_status); }; }; then | |
38001 | wx_cv_type_getsockopt5=size_t | |
38002 | else | |
38003 | echo "$as_me: failed program was:" >&5 | |
38004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38005 | ||
38006 | cat >conftest.$ac_ext <<_ACEOF | |
38007 | /* confdefs.h. */ | |
38008 | _ACEOF | |
38009 | cat confdefs.h >>conftest.$ac_ext | |
38010 | cat >>conftest.$ac_ext <<_ACEOF | |
38011 | /* end confdefs.h. */ | |
38012 | ||
38013 | #include <sys/types.h> | |
38014 | #include <sys/socket.h> | |
38015 | ||
38016 | int | |
38017 | main () | |
38018 | { | |
38019 | ||
38020 | int len; | |
38021 | getsockopt(0, 0, 0, 0, &len); | |
38022 | ||
38023 | ; | |
38024 | return 0; | |
38025 | } | |
38026 | _ACEOF | |
38027 | rm -f conftest.$ac_objext | |
38028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38029 | (eval $ac_compile) 2>conftest.er1 | |
38030 | ac_status=$? | |
38031 | grep -v '^ *+' conftest.er1 >conftest.err | |
38032 | rm -f conftest.er1 | |
38033 | cat conftest.err >&5 | |
38034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38035 | (exit $ac_status); } && | |
9dd0f6c2 | 38036 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
38037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38038 | (eval $ac_try) 2>&5 | |
38039 | ac_status=$? | |
38040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38041 | (exit $ac_status); }; } && | |
38042 | { ac_try='test -s conftest.$ac_objext' | |
38043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38044 | (eval $ac_try) 2>&5 | |
38045 | ac_status=$? | |
38046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38047 | (exit $ac_status); }; }; then | |
38048 | wx_cv_type_getsockopt5=int | |
38049 | else | |
38050 | echo "$as_me: failed program was:" >&5 | |
38051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38052 | ||
38053 | wx_cv_type_getsockopt5=unknown | |
38054 | ||
38055 | fi | |
38056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38057 | ||
38058 | fi | |
38059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38060 | ||
38061 | CFLAGS="$CFLAGS_OLD" | |
38062 | ||
38063 | ||
38064 | fi | |
38065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38066 | ||
38067 | fi | |
38068 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
38069 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
38070 | ||
38071 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
38072 | wxUSE_SOCKETS=no | |
38073 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
38074 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
38075 | else | |
38076 | cat >>confdefs.h <<_ACEOF | |
38077 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
38078 | _ACEOF |
38079 | ||
38080 | fi | |
4d4ff94c VZ |
38081 | ac_ext=c |
38082 | ac_cpp='$CPP $CPPFLAGS' | |
38083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38086 | ||
a848cd7e SC |
38087 | fi |
38088 | fi | |
38089 | ||
38090 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
38091 | cat >>confdefs.h <<\_ACEOF | |
38092 | #define wxUSE_SOCKETS 1 | |
38093 | _ACEOF | |
38094 | ||
38095 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
38096 | fi | |
38097 | ||
38098 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
38099 | if test "$wxUSE_SOCKETS" != "yes"; then | |
38100 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
38101 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
38102 | wxUSE_PROTOCOL=no | |
38103 | fi | |
38104 | fi | |
38105 | ||
38106 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
38107 | cat >>confdefs.h <<\_ACEOF | |
38108 | #define wxUSE_PROTOCOL 1 | |
38109 | _ACEOF | |
38110 | ||
38111 | ||
38112 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
38113 | cat >>confdefs.h <<\_ACEOF | |
38114 | #define wxUSE_PROTOCOL_HTTP 1 | |
38115 | _ACEOF | |
38116 | ||
38117 | fi | |
38118 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
38119 | cat >>confdefs.h <<\_ACEOF | |
38120 | #define wxUSE_PROTOCOL_FTP 1 | |
38121 | _ACEOF | |
38122 | ||
38123 | fi | |
38124 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
38125 | cat >>confdefs.h <<\_ACEOF | |
38126 | #define wxUSE_PROTOCOL_FILE 1 | |
38127 | _ACEOF | |
38128 | ||
38129 | fi | |
38130 | else | |
38131 | if test "$wxUSE_FS_INET" = "yes"; then | |
38132 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
38133 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
38134 | wxUSE_FS_INET="no" | |
38135 | fi | |
38136 | fi | |
38137 | ||
38138 | if test "$wxUSE_URL" = "yes"; then | |
38139 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
38140 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
38141 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
38142 | wxUSE_URL=no | |
38143 | fi | |
38144 | if test "$wxUSE_URL" = "yes"; then | |
38145 | cat >>confdefs.h <<\_ACEOF | |
38146 | #define wxUSE_URL 1 | |
38147 | _ACEOF | |
38148 | ||
38149 | fi | |
38150 | fi | |
38151 | ||
38152 | if test "$wxUSE_FS_INET" = "yes"; then | |
38153 | cat >>confdefs.h <<\_ACEOF | |
38154 | #define wxUSE_FS_INET 1 | |
38155 | _ACEOF | |
38156 | ||
38157 | fi | |
38158 | ||
38159 | ||
38160 | if test "$wxUSE_GUI" = "yes"; then | |
4cb1d3da | 38161 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a848cd7e | 38162 | |
4cb1d3da | 38163 | if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then |
a848cd7e SC |
38164 | |
38165 | for ac_header in linux/joystick.h | |
38166 | do | |
38167 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38168 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38169 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38171 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38173 | fi | |
38174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38176 | else | |
38177 | # Is the header compilable? | |
38178 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38179 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38180 | cat >conftest.$ac_ext <<_ACEOF | |
38181 | /* confdefs.h. */ | |
38182 | _ACEOF | |
38183 | cat confdefs.h >>conftest.$ac_ext | |
38184 | cat >>conftest.$ac_ext <<_ACEOF | |
38185 | /* end confdefs.h. */ | |
38186 | $ac_includes_default | |
38187 | #include <$ac_header> | |
38188 | _ACEOF | |
38189 | rm -f conftest.$ac_objext | |
38190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38191 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38192 | ac_status=$? |
ac1cb8d3 VS |
38193 | grep -v '^ *+' conftest.er1 >conftest.err |
38194 | rm -f conftest.er1 | |
38195 | cat conftest.err >&5 | |
a848cd7e SC |
38196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38197 | (exit $ac_status); } && | |
9dd0f6c2 | 38198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38200 | (eval $ac_try) 2>&5 | |
38201 | ac_status=$? | |
38202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38203 | (exit $ac_status); }; } && | |
38204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38206 | (eval $ac_try) 2>&5 | |
38207 | ac_status=$? | |
38208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38209 | (exit $ac_status); }; }; then | |
38210 | ac_header_compiler=yes | |
38211 | else | |
38212 | echo "$as_me: failed program was:" >&5 | |
38213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38214 | ||
38215 | ac_header_compiler=no | |
38216 | fi | |
ac1cb8d3 | 38217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38218 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38219 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38220 | ||
38221 | # Is the header present? | |
38222 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38223 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38224 | cat >conftest.$ac_ext <<_ACEOF | |
38225 | /* confdefs.h. */ | |
38226 | _ACEOF | |
38227 | cat confdefs.h >>conftest.$ac_ext | |
38228 | cat >>conftest.$ac_ext <<_ACEOF | |
38229 | /* end confdefs.h. */ | |
38230 | #include <$ac_header> | |
38231 | _ACEOF | |
38232 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38233 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38234 | ac_status=$? | |
38235 | grep -v '^ *+' conftest.er1 >conftest.err | |
38236 | rm -f conftest.er1 | |
38237 | cat conftest.err >&5 | |
38238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38239 | (exit $ac_status); } >/dev/null; then | |
38240 | if test -s conftest.err; then | |
38241 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 38242 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
38243 | else |
38244 | ac_cpp_err= | |
38245 | fi | |
38246 | else | |
38247 | ac_cpp_err=yes | |
38248 | fi | |
38249 | if test -z "$ac_cpp_err"; then | |
38250 | ac_header_preproc=yes | |
38251 | else | |
38252 | echo "$as_me: failed program was:" >&5 | |
38253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38254 | ||
38255 | ac_header_preproc=no | |
38256 | fi | |
38257 | rm -f conftest.err conftest.$ac_ext | |
38258 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38259 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38260 | ||
38261 | # So? What about this header? | |
ac1cb8d3 VS |
38262 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
38263 | yes:no: ) | |
a848cd7e SC |
38264 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38265 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38267 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38268 | ac_header_preproc=yes | |
a848cd7e | 38269 | ;; |
ac1cb8d3 | 38270 | no:yes:* ) |
a848cd7e SC |
38271 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38272 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38273 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38274 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38275 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38276 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38277 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38278 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38279 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38280 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38281 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38282 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38283 | ( |
38284 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38285 | ## ----------------------------------------- ## |
38286 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38287 | ## ----------------------------------------- ## | |
a848cd7e SC |
38288 | _ASBOX |
38289 | ) | | |
38290 | sed "s/^/$as_me: WARNING: /" >&2 | |
38291 | ;; | |
38292 | esac | |
38293 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38297 | else | |
ac1cb8d3 | 38298 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38299 | fi |
38300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38302 | ||
38303 | fi | |
38304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38305 | cat >>confdefs.h <<_ACEOF | |
38306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38307 | _ACEOF | |
38308 | ||
38309 | fi | |
38310 | ||
38311 | done | |
38312 | ||
38313 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
38314 | wxUSE_JOYSTICK=no | |
38315 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
38316 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
38317 | fi | |
4cb1d3da RN |
38318 | else |
38319 | if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then | |
38320 | wxUSE_JOYSTICK=no | |
38321 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
38322 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
38323 | fi | |
a848cd7e | 38324 | fi |
a848cd7e | 38325 | |
4cb1d3da RN |
38326 | |
38327 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
38328 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38329 | #define wxUSE_JOYSTICK 1 |
38330 | _ACEOF | |
38331 | ||
4cb1d3da RN |
38332 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
38333 | fi | |
a848cd7e SC |
38334 | fi |
38335 | fi | |
38336 | ||
38337 | ||
38338 | ||
38339 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
38340 | cat >>confdefs.h <<\_ACEOF | |
38341 | #define wxUSE_FONTMAP 1 | |
38342 | _ACEOF | |
38343 | ||
38344 | fi | |
38345 | ||
38346 | if test "$wxUSE_UNICODE" = "yes" ; then | |
38347 | cat >>confdefs.h <<\_ACEOF | |
38348 | #define wxUSE_UNICODE 1 | |
38349 | _ACEOF | |
38350 | ||
38351 | ||
38352 | if test "$USE_WIN32" != 1; then | |
38353 | wxUSE_UNICODE_MSLU=no | |
38354 | fi | |
38355 | ||
38356 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
38357 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
38358 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
38359 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
38360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38361 | else | |
38362 | ac_check_lib_save_LIBS=$LIBS | |
38363 | LIBS="-lunicows $LIBS" | |
38364 | cat >conftest.$ac_ext <<_ACEOF | |
38365 | /* confdefs.h. */ | |
38366 | _ACEOF | |
38367 | cat confdefs.h >>conftest.$ac_ext | |
38368 | cat >>conftest.$ac_ext <<_ACEOF | |
38369 | /* end confdefs.h. */ | |
38370 | ||
38371 | ||
38372 | int | |
38373 | main () | |
38374 | { | |
38375 | main (); | |
38376 | ; | |
38377 | return 0; | |
38378 | } | |
38379 | _ACEOF | |
38380 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38382 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38383 | ac_status=$? |
ac1cb8d3 VS |
38384 | grep -v '^ *+' conftest.er1 >conftest.err |
38385 | rm -f conftest.er1 | |
38386 | cat conftest.err >&5 | |
a848cd7e SC |
38387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38388 | (exit $ac_status); } && | |
9dd0f6c2 | 38389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38391 | (eval $ac_try) 2>&5 | |
38392 | ac_status=$? | |
38393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38394 | (exit $ac_status); }; } && | |
38395 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38397 | (eval $ac_try) 2>&5 | |
38398 | ac_status=$? | |
38399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38400 | (exit $ac_status); }; }; then | |
38401 | ac_cv_lib_unicows_main=yes | |
38402 | else | |
38403 | echo "$as_me: failed program was:" >&5 | |
38404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38405 | ||
38406 | ac_cv_lib_unicows_main=no | |
38407 | fi | |
ac1cb8d3 VS |
38408 | rm -f conftest.err conftest.$ac_objext \ |
38409 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38410 | LIBS=$ac_check_lib_save_LIBS |
38411 | fi | |
38412 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
38413 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
38414 | if test $ac_cv_lib_unicows_main = yes; then | |
38415 | ||
38416 | cat >>confdefs.h <<\_ACEOF | |
38417 | #define wxUSE_UNICODE_MSLU 1 | |
38418 | _ACEOF | |
38419 | ||
38420 | ||
38421 | else | |
38422 | ||
38423 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
38424 | Applications will only run on Windows NT/2000/XP!" >&5 | |
38425 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
38426 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
38427 | wxUSE_UNICODE_MSLU=no | |
38428 | ||
38429 | fi | |
38430 | ||
38431 | fi | |
38432 | fi | |
38433 | ||
38434 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
38435 | cat >>confdefs.h <<\_ACEOF | |
38436 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
38437 | _ACEOF | |
38438 | ||
38439 | fi | |
38440 | ||
38441 | ||
38442 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
38443 | cat >>confdefs.h <<\_ACEOF | |
38444 | #define wxUSE_POSTSCRIPT 1 | |
38445 | _ACEOF | |
38446 | ||
38447 | fi | |
38448 | ||
38449 | cat >>confdefs.h <<\_ACEOF | |
38450 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
38451 | _ACEOF | |
38452 | ||
38453 | ||
38454 | cat >>confdefs.h <<\_ACEOF | |
38455 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
38456 | _ACEOF | |
38457 | ||
38458 | ||
38459 | ||
38460 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
38461 | cat >>confdefs.h <<\_ACEOF | |
38462 | #define wxUSE_CONSTRAINTS 1 | |
38463 | _ACEOF | |
38464 | ||
38465 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
38466 | fi | |
38467 | ||
8a7b1113 VZ |
38468 | if test "$wxUSE_MDI" = "yes"; then |
38469 | cat >>confdefs.h <<\_ACEOF | |
38470 | #define wxUSE_MDI 1 | |
38471 | _ACEOF | |
38472 | ||
38473 | ||
38474 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
38475 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38476 | #define wxUSE_MDI_ARCHITECTURE 1 |
38477 | _ACEOF | |
38478 | ||
8a7b1113 VZ |
38479 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
38480 | fi | |
a848cd7e SC |
38481 | fi |
38482 | ||
38483 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
38484 | cat >>confdefs.h <<\_ACEOF | |
38485 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
38486 | _ACEOF | |
38487 | ||
38488 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
38489 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
38490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
38491 | fi | |
38492 | fi | |
38493 | ||
38494 | if test "$wxUSE_HELP" = "yes"; then | |
38495 | cat >>confdefs.h <<\_ACEOF | |
38496 | #define wxUSE_HELP 1 | |
38497 | _ACEOF | |
38498 | ||
38499 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
38500 | ||
38501 | if test "$wxUSE_MSW" = 1; then | |
38502 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
38503 | cat >>confdefs.h <<\_ACEOF | |
38504 | #define wxUSE_MS_HTML_HELP 1 | |
38505 | _ACEOF | |
38506 | ||
38507 | fi | |
38508 | fi | |
38509 | ||
38510 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
38511 | if test "$wxUSE_HTML" = "yes"; then | |
38512 | cat >>confdefs.h <<\_ACEOF | |
38513 | #define wxUSE_WXHTML_HELP 1 | |
38514 | _ACEOF | |
38515 | ||
38516 | else | |
38517 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
38518 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
38519 | wxUSE_WXHTML_HELP=no | |
38520 | fi | |
38521 | fi | |
38522 | fi | |
38523 | ||
38524 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
38525 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38526 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
38527 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
38528 | else | |
38529 | cat >>confdefs.h <<\_ACEOF | |
38530 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
38531 | _ACEOF | |
38532 | ||
38533 | fi | |
38534 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
38535 | fi | |
38536 | ||
38537 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
38538 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
38539 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
38540 | { (exit 1); exit 1; }; } | |
38541 | fi | |
38542 | ||
38543 | ||
38544 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
38545 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
38546 | -o "$wxUSE_OLE" = "yes" \ | |
38547 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
38548 | ||
38549 | for ac_header in ole2.h | |
38550 | do | |
38551 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38552 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38553 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38554 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38555 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38557 | fi | |
38558 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38559 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38560 | else | |
38561 | # Is the header compilable? | |
38562 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38563 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38564 | cat >conftest.$ac_ext <<_ACEOF | |
38565 | /* confdefs.h. */ | |
38566 | _ACEOF | |
38567 | cat confdefs.h >>conftest.$ac_ext | |
38568 | cat >>conftest.$ac_ext <<_ACEOF | |
38569 | /* end confdefs.h. */ | |
38570 | $ac_includes_default | |
38571 | #include <$ac_header> | |
38572 | _ACEOF | |
38573 | rm -f conftest.$ac_objext | |
38574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38575 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38576 | ac_status=$? |
ac1cb8d3 VS |
38577 | grep -v '^ *+' conftest.er1 >conftest.err |
38578 | rm -f conftest.er1 | |
38579 | cat conftest.err >&5 | |
a848cd7e SC |
38580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38581 | (exit $ac_status); } && | |
9dd0f6c2 | 38582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38584 | (eval $ac_try) 2>&5 | |
38585 | ac_status=$? | |
38586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38587 | (exit $ac_status); }; } && | |
38588 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38590 | (eval $ac_try) 2>&5 | |
38591 | ac_status=$? | |
38592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38593 | (exit $ac_status); }; }; then | |
38594 | ac_header_compiler=yes | |
38595 | else | |
38596 | echo "$as_me: failed program was:" >&5 | |
38597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38598 | ||
38599 | ac_header_compiler=no | |
38600 | fi | |
ac1cb8d3 | 38601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38602 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38603 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38604 | ||
38605 | # Is the header present? | |
38606 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38607 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38608 | cat >conftest.$ac_ext <<_ACEOF | |
38609 | /* confdefs.h. */ | |
38610 | _ACEOF | |
38611 | cat confdefs.h >>conftest.$ac_ext | |
38612 | cat >>conftest.$ac_ext <<_ACEOF | |
38613 | /* end confdefs.h. */ | |
38614 | #include <$ac_header> | |
38615 | _ACEOF | |
38616 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38617 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38618 | ac_status=$? | |
38619 | grep -v '^ *+' conftest.er1 >conftest.err | |
38620 | rm -f conftest.er1 | |
38621 | cat conftest.err >&5 | |
38622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38623 | (exit $ac_status); } >/dev/null; then | |
38624 | if test -s conftest.err; then | |
38625 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 38626 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
38627 | else |
38628 | ac_cpp_err= | |
38629 | fi | |
38630 | else | |
38631 | ac_cpp_err=yes | |
38632 | fi | |
38633 | if test -z "$ac_cpp_err"; then | |
38634 | ac_header_preproc=yes | |
38635 | else | |
38636 | echo "$as_me: failed program was:" >&5 | |
38637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38638 | ||
38639 | ac_header_preproc=no | |
38640 | fi | |
38641 | rm -f conftest.err conftest.$ac_ext | |
38642 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38643 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38644 | ||
38645 | # So? What about this header? | |
ac1cb8d3 VS |
38646 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
38647 | yes:no: ) | |
a848cd7e SC |
38648 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38649 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38650 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38651 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38652 | ac_header_preproc=yes | |
a848cd7e | 38653 | ;; |
ac1cb8d3 | 38654 | no:yes:* ) |
a848cd7e SC |
38655 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38656 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38657 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38658 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38659 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38660 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38661 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38662 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38664 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38665 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38666 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38667 | ( |
38668 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38669 | ## ----------------------------------------- ## |
38670 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38671 | ## ----------------------------------------- ## | |
a848cd7e SC |
38672 | _ASBOX |
38673 | ) | | |
38674 | sed "s/^/$as_me: WARNING: /" >&2 | |
38675 | ;; | |
38676 | esac | |
38677 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38681 | else | |
ac1cb8d3 | 38682 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38683 | fi |
38684 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38685 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38686 | ||
38687 | fi | |
38688 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38689 | cat >>confdefs.h <<_ACEOF | |
38690 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38691 | _ACEOF | |
38692 | ||
38693 | fi | |
38694 | ||
38695 | done | |
38696 | ||
38697 | ||
38698 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
38699 | if test "$GCC" = yes ; then | |
38700 | ||
38701 | ||
38702 | ac_ext=cc | |
38703 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38704 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38705 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38706 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
38707 | ||
38708 | ||
38709 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
38710 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
38711 | cat >conftest.$ac_ext <<_ACEOF | |
38712 | /* confdefs.h. */ | |
38713 | _ACEOF | |
38714 | cat confdefs.h >>conftest.$ac_ext | |
38715 | cat >>conftest.$ac_ext <<_ACEOF | |
38716 | /* end confdefs.h. */ | |
38717 | #include <windows.h> | |
38718 | #include <ole2.h> | |
38719 | int | |
38720 | main () | |
38721 | { | |
38722 | ||
38723 | ; | |
38724 | return 0; | |
38725 | } | |
38726 | _ACEOF | |
38727 | rm -f conftest.$ac_objext | |
38728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38729 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38730 | ac_status=$? |
ac1cb8d3 VS |
38731 | grep -v '^ *+' conftest.er1 >conftest.err |
38732 | rm -f conftest.er1 | |
38733 | cat conftest.err >&5 | |
a848cd7e SC |
38734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38735 | (exit $ac_status); } && | |
9dd0f6c2 | 38736 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38738 | (eval $ac_try) 2>&5 | |
38739 | ac_status=$? | |
38740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38741 | (exit $ac_status); }; } && | |
38742 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38744 | (eval $ac_try) 2>&5 | |
38745 | ac_status=$? | |
38746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38747 | (exit $ac_status); }; }; then | |
38748 | echo "$as_me:$LINENO: result: no" >&5 | |
38749 | echo "${ECHO_T}no" >&6 | |
38750 | else | |
38751 | echo "$as_me: failed program was:" >&5 | |
38752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38753 | ||
38754 | echo "$as_me:$LINENO: result: yes" >&5 | |
38755 | echo "${ECHO_T}yes" >&6 | |
38756 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
38757 | fi | |
ac1cb8d3 | 38758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38759 | ac_ext=c |
38760 | ac_cpp='$CPP $CPPFLAGS' | |
38761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38764 | ||
a848cd7e SC |
38765 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
38766 | if test "$wxUSE_OLE" = "yes" ; then | |
38767 | cat >>confdefs.h <<\_ACEOF | |
38768 | #define wxUSE_OLE 1 | |
38769 | _ACEOF | |
38770 | ||
0b78747f | 38771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
38772 | fi |
38773 | fi | |
38774 | ||
38775 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
38776 | cat >>confdefs.h <<\_ACEOF | |
38777 | #define wxUSE_DATAOBJ 1 | |
38778 | _ACEOF | |
38779 | ||
38780 | fi | |
38781 | else | |
38782 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
38783 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
38784 | ||
38785 | wxUSE_CLIPBOARD=no | |
38786 | wxUSE_DRAG_AND_DROP=no | |
38787 | wxUSE_DATAOBJ=no | |
38788 | wxUSE_OLE=no | |
38789 | fi | |
38790 | ||
38791 | if test "$wxUSE_METAFILE" = "yes"; then | |
38792 | cat >>confdefs.h <<\_ACEOF | |
38793 | #define wxUSE_METAFILE 1 | |
38794 | _ACEOF | |
38795 | ||
38796 | ||
38797 | cat >>confdefs.h <<\_ACEOF | |
38798 | #define wxUSE_ENH_METAFILE 1 | |
38799 | _ACEOF | |
38800 | ||
38801 | fi | |
38802 | fi | |
38803 | ||
38804 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 38805 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
38806 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
38807 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 38808 | wxUSE_IPC=no |
a848cd7e SC |
38809 | fi |
38810 | ||
0b78747f MW |
38811 | if test "$wxUSE_IPC" = "yes"; then |
38812 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38813 | #define wxUSE_IPC 1 |
38814 | _ACEOF | |
38815 | ||
0b78747f MW |
38816 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
38817 | fi | |
a848cd7e SC |
38818 | fi |
38819 | ||
38820 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38821 | if test "$wxUSE_MGL" = 1; then | |
38822 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
38823 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
38824 | wxUSE_CLIPBOARD=no | |
38825 | fi | |
38826 | ||
38827 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38828 | cat >>confdefs.h <<\_ACEOF | |
38829 | #define wxUSE_CLIPBOARD 1 | |
38830 | _ACEOF | |
38831 | ||
38832 | ||
38833 | cat >>confdefs.h <<\_ACEOF | |
38834 | #define wxUSE_DATAOBJ 1 | |
38835 | _ACEOF | |
38836 | ||
38837 | fi | |
38838 | fi | |
38839 | ||
38840 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
38841 | if test "$wxUSE_GTK" = 1; then | |
38842 | if test "$WXGTK12" != 1; then | |
38843 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
38844 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
38845 | wxUSE_DRAG_AND_DROP=no | |
38846 | fi | |
38847 | fi | |
38848 | ||
38849 | if test "$wxUSE_MOTIF" = 1; then | |
38850 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
38851 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
38852 | wxUSE_DRAG_AND_DROP=no | |
38853 | fi | |
38854 | ||
38855 | if test "$wxUSE_X11" = 1; then | |
38856 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
38857 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
38858 | wxUSE_DRAG_AND_DROP=no | |
38859 | fi | |
38860 | ||
38861 | if test "$wxUSE_MGL" = 1; then | |
38862 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
38863 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
38864 | wxUSE_DRAG_AND_DROP=no | |
38865 | fi | |
38866 | ||
38867 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
38868 | cat >>confdefs.h <<\_ACEOF | |
38869 | #define wxUSE_DRAG_AND_DROP 1 | |
38870 | _ACEOF | |
38871 | ||
38872 | fi | |
38873 | ||
38874 | fi | |
38875 | ||
38876 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
38877 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
38878 | fi | |
38879 | ||
38880 | if test "$wxUSE_SPLINES" = "yes" ; then | |
38881 | cat >>confdefs.h <<\_ACEOF | |
38882 | #define wxUSE_SPLINES 1 | |
38883 | _ACEOF | |
38884 | ||
38885 | fi | |
38886 | ||
fbe2ca43 SN |
38887 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
38888 | cat >>confdefs.h <<\_ACEOF | |
38889 | #define wxUSE_MOUSEWHEEL 1 | |
38890 | _ACEOF | |
38891 | ||
38892 | fi | |
38893 | ||
a848cd7e SC |
38894 | |
38895 | USES_CONTROLS=0 | |
38896 | if test "$wxUSE_CONTROLS" = "yes"; then | |
38897 | USES_CONTROLS=1 | |
38898 | fi | |
38899 | ||
38900 | if test "$wxUSE_ACCEL" = "yes"; then | |
38901 | cat >>confdefs.h <<\_ACEOF | |
38902 | #define wxUSE_ACCEL 1 | |
38903 | _ACEOF | |
38904 | ||
38905 | USES_CONTROLS=1 | |
38906 | fi | |
38907 | ||
38908 | if test "$wxUSE_BUTTON" = "yes"; then | |
38909 | cat >>confdefs.h <<\_ACEOF | |
38910 | #define wxUSE_BUTTON 1 | |
38911 | _ACEOF | |
38912 | ||
38913 | USES_CONTROLS=1 | |
38914 | fi | |
38915 | ||
38916 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
38917 | cat >>confdefs.h <<\_ACEOF | |
38918 | #define wxUSE_BMPBUTTON 1 | |
38919 | _ACEOF | |
38920 | ||
38921 | USES_CONTROLS=1 | |
38922 | fi | |
38923 | ||
38924 | if test "$wxUSE_CALCTRL" = "yes"; then | |
38925 | cat >>confdefs.h <<\_ACEOF | |
38926 | #define wxUSE_CALENDARCTRL 1 | |
38927 | _ACEOF | |
38928 | ||
38929 | USES_CONTROLS=1 | |
38930 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
38931 | fi | |
38932 | ||
38933 | if test "$wxUSE_CARET" = "yes"; then | |
38934 | cat >>confdefs.h <<\_ACEOF | |
38935 | #define wxUSE_CARET 1 | |
38936 | _ACEOF | |
38937 | ||
38938 | USES_CONTROLS=1 | |
38939 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
38940 | fi | |
38941 | ||
38942 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
38943 | cat >>confdefs.h <<\_ACEOF | |
38944 | #define wxUSE_COMBOBOX 1 | |
38945 | _ACEOF | |
38946 | ||
38947 | USES_CONTROLS=1 | |
38948 | fi | |
38949 | ||
38950 | if test "$wxUSE_CHOICE" = "yes"; then | |
38951 | cat >>confdefs.h <<\_ACEOF | |
38952 | #define wxUSE_CHOICE 1 | |
38953 | _ACEOF | |
38954 | ||
38955 | USES_CONTROLS=1 | |
38956 | fi | |
38957 | ||
92bbdbcd WS |
38958 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
38959 | cat >>confdefs.h <<\_ACEOF | |
38960 | #define wxUSE_CHOICEBOOK 1 | |
38961 | _ACEOF | |
38962 | ||
38963 | USES_CONTROLS=1 | |
38964 | fi | |
38965 | ||
a848cd7e SC |
38966 | if test "$wxUSE_CHECKBOX" = "yes"; then |
38967 | cat >>confdefs.h <<\_ACEOF | |
38968 | #define wxUSE_CHECKBOX 1 | |
38969 | _ACEOF | |
38970 | ||
38971 | USES_CONTROLS=1 | |
38972 | fi | |
38973 | ||
38974 | if test "$wxUSE_CHECKLST" = "yes"; then | |
38975 | cat >>confdefs.h <<\_ACEOF | |
38976 | #define wxUSE_CHECKLISTBOX 1 | |
38977 | _ACEOF | |
38978 | ||
38979 | USES_CONTROLS=1 | |
38980 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
38981 | fi | |
38982 | ||
da98e9be VZ |
38983 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
38984 | cat >>confdefs.h <<\_ACEOF | |
38985 | #define wxUSE_DATEPICKCTRL 1 | |
38986 | _ACEOF | |
38987 | ||
38988 | USES_CONTROLS=1 | |
38989 | fi | |
38990 | ||
a848cd7e SC |
38991 | if test "$wxUSE_DISPLAY" = "yes"; then |
38992 | cat >>confdefs.h <<\_ACEOF | |
38993 | #define wxUSE_DISPLAY 1 | |
38994 | _ACEOF | |
38995 | ||
0b78747f | 38996 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
38997 | fi |
38998 | ||
38999 | if test "$wxUSE_GAUGE" = "yes"; then | |
39000 | cat >>confdefs.h <<\_ACEOF | |
39001 | #define wxUSE_GAUGE 1 | |
39002 | _ACEOF | |
39003 | ||
39004 | USES_CONTROLS=1 | |
39005 | fi | |
39006 | ||
39007 | if test "$wxUSE_GRID" = "yes"; then | |
39008 | cat >>confdefs.h <<\_ACEOF | |
39009 | #define wxUSE_GRID 1 | |
39010 | _ACEOF | |
39011 | ||
39012 | USES_CONTROLS=1 | |
39013 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
39014 | fi | |
39015 | ||
39016 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39017 | cat >>confdefs.h <<\_ACEOF | |
39018 | #define wxUSE_IMAGLIST 1 | |
39019 | _ACEOF | |
39020 | ||
39021 | fi | |
39022 | ||
39023 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
39024 | cat >>confdefs.h <<\_ACEOF | |
39025 | #define wxUSE_LISTBOOK 1 | |
39026 | _ACEOF | |
39027 | ||
39028 | USES_CONTROLS=1 | |
39029 | fi | |
39030 | ||
39031 | if test "$wxUSE_LISTBOX" = "yes"; then | |
39032 | cat >>confdefs.h <<\_ACEOF | |
39033 | #define wxUSE_LISTBOX 1 | |
39034 | _ACEOF | |
39035 | ||
39036 | USES_CONTROLS=1 | |
0b78747f | 39037 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
39038 | fi |
39039 | ||
39040 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
39041 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39042 | cat >>confdefs.h <<\_ACEOF | |
39043 | #define wxUSE_LISTCTRL 1 | |
39044 | _ACEOF | |
39045 | ||
39046 | USES_CONTROLS=1 | |
39047 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
39048 | else | |
39049 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
39050 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
39051 | fi | |
39052 | fi | |
39053 | ||
39054 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
39055 | cat >>confdefs.h <<\_ACEOF | |
39056 | #define wxUSE_NOTEBOOK 1 | |
39057 | _ACEOF | |
39058 | ||
39059 | USES_CONTROLS=1 | |
39060 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
39061 | fi | |
39062 | ||
39063 | ||
39064 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
39065 | cat >>confdefs.h <<\_ACEOF | |
39066 | #define wxUSE_RADIOBOX 1 | |
39067 | _ACEOF | |
39068 | ||
39069 | USES_CONTROLS=1 | |
39070 | fi | |
39071 | ||
39072 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
39073 | cat >>confdefs.h <<\_ACEOF | |
39074 | #define wxUSE_RADIOBTN 1 | |
39075 | _ACEOF | |
39076 | ||
39077 | USES_CONTROLS=1 | |
39078 | fi | |
39079 | ||
39080 | if test "$wxUSE_SASH" = "yes"; then | |
39081 | cat >>confdefs.h <<\_ACEOF | |
39082 | #define wxUSE_SASH 1 | |
39083 | _ACEOF | |
39084 | ||
39085 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
39086 | fi | |
39087 | ||
39088 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
39089 | cat >>confdefs.h <<\_ACEOF | |
39090 | #define wxUSE_SCROLLBAR 1 | |
39091 | _ACEOF | |
39092 | ||
39093 | USES_CONTROLS=1 | |
39094 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
39095 | fi | |
39096 | ||
39097 | if test "$wxUSE_SLIDER" = "yes"; then | |
39098 | cat >>confdefs.h <<\_ACEOF | |
39099 | #define wxUSE_SLIDER 1 | |
39100 | _ACEOF | |
39101 | ||
39102 | USES_CONTROLS=1 | |
39103 | fi | |
39104 | ||
39105 | if test "$wxUSE_SPINBTN" = "yes"; then | |
39106 | cat >>confdefs.h <<\_ACEOF | |
39107 | #define wxUSE_SPINBTN 1 | |
39108 | _ACEOF | |
39109 | ||
39110 | USES_CONTROLS=1 | |
39111 | fi | |
39112 | ||
39113 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
39114 | cat >>confdefs.h <<\_ACEOF | |
39115 | #define wxUSE_SPINCTRL 1 | |
39116 | _ACEOF | |
39117 | ||
39118 | USES_CONTROLS=1 | |
39119 | fi | |
39120 | ||
39121 | if test "$wxUSE_SPLITTER" = "yes"; then | |
39122 | cat >>confdefs.h <<\_ACEOF | |
39123 | #define wxUSE_SPLITTER 1 | |
39124 | _ACEOF | |
39125 | ||
39126 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
39127 | fi | |
39128 | ||
39129 | if test "$wxUSE_STATBMP" = "yes"; then | |
39130 | cat >>confdefs.h <<\_ACEOF | |
39131 | #define wxUSE_STATBMP 1 | |
39132 | _ACEOF | |
39133 | ||
39134 | USES_CONTROLS=1 | |
39135 | fi | |
39136 | ||
39137 | if test "$wxUSE_STATBOX" = "yes"; then | |
39138 | cat >>confdefs.h <<\_ACEOF | |
39139 | #define wxUSE_STATBOX 1 | |
39140 | _ACEOF | |
39141 | ||
39142 | USES_CONTROLS=1 | |
39143 | fi | |
39144 | ||
39145 | if test "$wxUSE_STATTEXT" = "yes"; then | |
39146 | cat >>confdefs.h <<\_ACEOF | |
39147 | #define wxUSE_STATTEXT 1 | |
39148 | _ACEOF | |
39149 | ||
39150 | USES_CONTROLS=1 | |
39151 | fi | |
39152 | ||
39153 | if test "$wxUSE_STATLINE" = "yes"; then | |
39154 | cat >>confdefs.h <<\_ACEOF | |
39155 | #define wxUSE_STATLINE 1 | |
39156 | _ACEOF | |
39157 | ||
39158 | USES_CONTROLS=1 | |
39159 | fi | |
39160 | ||
39161 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
39162 | cat >>confdefs.h <<\_ACEOF |
39163 | #define wxUSE_NATIVE_STATUSBAR 1 | |
39164 | _ACEOF | |
39165 | ||
a848cd7e SC |
39166 | cat >>confdefs.h <<\_ACEOF |
39167 | #define wxUSE_STATUSBAR 1 | |
39168 | _ACEOF | |
39169 | ||
39170 | USES_CONTROLS=1 | |
39171 | ||
39172 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
39173 | fi | |
39174 | ||
39175 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
39176 | cat >>confdefs.h <<\_ACEOF | |
39177 | #define wxUSE_TAB_DIALOG 1 | |
39178 | _ACEOF | |
39179 | ||
a848cd7e SC |
39180 | fi |
39181 | ||
39182 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
39183 | cat >>confdefs.h <<\_ACEOF | |
39184 | #define wxUSE_TEXTCTRL 1 | |
39185 | _ACEOF | |
39186 | ||
39187 | USES_CONTROLS=1 | |
39188 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
39189 | fi | |
39190 | ||
39191 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
39192 | if test "$wxUSE_COCOA" = 1 ; then | |
39193 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
39194 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
39195 | wxUSE_TOGGLEBTN=no | |
39196 | fi | |
39197 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
39198 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
39199 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
39200 | wxUSE_TOGGLEBTN=no | |
39201 | fi | |
39202 | ||
39203 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
39204 | cat >>confdefs.h <<\_ACEOF | |
39205 | #define wxUSE_TOGGLEBTN 1 | |
39206 | _ACEOF | |
39207 | ||
39208 | USES_CONTROLS=1 | |
39209 | fi | |
39210 | fi | |
39211 | ||
39212 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
39213 | cat >>confdefs.h <<\_ACEOF | |
39214 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
39215 | _ACEOF | |
39216 | ||
39217 | wxUSE_TOOLBAR="yes" | |
39218 | USES_CONTROLS=1 | |
39219 | fi | |
39220 | ||
39221 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
39222 | cat >>confdefs.h <<\_ACEOF | |
39223 | #define wxUSE_TOOLBAR 1 | |
39224 | _ACEOF | |
39225 | ||
39226 | USES_CONTROLS=1 | |
39227 | ||
39228 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
39229 | wxUSE_TOOLBAR_NATIVE="yes" | |
39230 | fi | |
39231 | ||
39232 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
39233 | cat >>confdefs.h <<\_ACEOF | |
39234 | #define wxUSE_TOOLBAR_NATIVE 1 | |
39235 | _ACEOF | |
39236 | ||
39237 | USES_CONTROLS=1 | |
39238 | fi | |
39239 | ||
39240 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
39241 | fi | |
39242 | ||
39243 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
39244 | if test "$wxUSE_MOTIF" = 1; then | |
39245 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
39246 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
39247 | else | |
39248 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
39249 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
39250 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
39251 | else | |
39252 | cat >>confdefs.h <<\_ACEOF | |
39253 | #define wxUSE_TOOLTIPS 1 | |
39254 | _ACEOF | |
39255 | ||
39256 | fi | |
39257 | fi | |
39258 | fi | |
39259 | ||
39260 | if test "$wxUSE_TREECTRL" = "yes"; then | |
39261 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39262 | cat >>confdefs.h <<\_ACEOF | |
39263 | #define wxUSE_TREECTRL 1 | |
39264 | _ACEOF | |
39265 | ||
39266 | USES_CONTROLS=1 | |
39267 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
39268 | else | |
39269 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
39270 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
39271 | fi | |
39272 | fi | |
39273 | ||
39274 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
39275 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
39276 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
39277 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
39278 | else | |
39279 | if test "$wxUSE_PM" = 1; then | |
39280 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
39281 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
39282 | else | |
39283 | cat >>confdefs.h <<\_ACEOF | |
39284 | #define wxUSE_POPUPWIN 1 | |
39285 | _ACEOF | |
39286 | ||
0b78747f | 39287 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
39288 | |
39289 | USES_CONTROLS=1 | |
39290 | fi | |
39291 | fi | |
39292 | fi | |
39293 | ||
0dcd06dd | 39294 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
39295 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
39296 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
39297 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
39298 | else | |
39299 | cat >>confdefs.h <<\_ACEOF | |
39300 | #define wxUSE_DIALUP_MANAGER 1 | |
39301 | _ACEOF | |
39302 | ||
39303 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
39304 | fi | |
39305 | fi | |
39306 | ||
a848cd7e SC |
39307 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
39308 | if test "$wxUSE_PM" = 1; then | |
39309 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
39310 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
39311 | else | |
39312 | cat >>confdefs.h <<\_ACEOF | |
39313 | #define wxUSE_TIPWINDOW 1 | |
39314 | _ACEOF | |
39315 | ||
39316 | fi | |
39317 | fi | |
39318 | ||
39319 | if test "$USES_CONTROLS" = 1; then | |
39320 | cat >>confdefs.h <<\_ACEOF | |
39321 | #define wxUSE_CONTROLS 1 | |
39322 | _ACEOF | |
39323 | ||
39324 | fi | |
39325 | ||
39326 | ||
39327 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
39328 | cat >>confdefs.h <<\_ACEOF | |
39329 | #define wxUSE_ACCESSIBILITY 1 | |
39330 | _ACEOF | |
39331 | ||
39332 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
39333 | fi | |
39334 | ||
39335 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
39336 | cat >>confdefs.h <<\_ACEOF | |
39337 | #define wxUSE_DRAGIMAGE 1 | |
39338 | _ACEOF | |
39339 | ||
39340 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
39341 | fi | |
39342 | ||
39343 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
39344 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
39345 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
39346 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
39347 | else | |
39348 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39349 | #define wxUSE_EXCEPTIONS 1 |
39350 | _ACEOF | |
39351 | ||
07bea8f0 VS |
39352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
39353 | fi | |
a848cd7e SC |
39354 | fi |
39355 | ||
39356 | USE_HTML=0 | |
39357 | if test "$wxUSE_HTML" = "yes"; then | |
39358 | cat >>confdefs.h <<\_ACEOF | |
39359 | #define wxUSE_HTML 1 | |
39360 | _ACEOF | |
39361 | ||
39362 | USE_HTML=1 | |
39363 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
39364 | if test "$wxUSE_MAC" = 1; then |
39365 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
39366 | fi | |
a848cd7e | 39367 | fi |
646b6ec1 | 39368 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 39369 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
39370 | old_CPPFLAGS="$CPPFLAGS" |
39371 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
39372 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
39373 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
39374 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
39375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39376 | else | |
39377 | cat >conftest.$ac_ext <<_ACEOF | |
39378 | /* confdefs.h. */ | |
39379 | _ACEOF | |
39380 | cat confdefs.h >>conftest.$ac_ext | |
39381 | cat >>conftest.$ac_ext <<_ACEOF | |
39382 | /* end confdefs.h. */ | |
39383 | #include <Carbon/Carbon.h> | |
39384 | ||
39385 | #include <WebKit/HIWebView.h> | |
39386 | _ACEOF | |
39387 | rm -f conftest.$ac_objext | |
39388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39389 | (eval $ac_compile) 2>conftest.er1 | |
39390 | ac_status=$? | |
39391 | grep -v '^ *+' conftest.er1 >conftest.err | |
39392 | rm -f conftest.er1 | |
39393 | cat conftest.err >&5 | |
39394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39395 | (exit $ac_status); } && | |
9dd0f6c2 | 39396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
39397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39398 | (eval $ac_try) 2>&5 | |
39399 | ac_status=$? | |
39400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39401 | (exit $ac_status); }; } && | |
39402 | { ac_try='test -s conftest.$ac_objext' | |
39403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39404 | (eval $ac_try) 2>&5 | |
39405 | ac_status=$? | |
39406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39407 | (exit $ac_status); }; }; then | |
39408 | ac_cv_header_WebKit_HIWebView_h=yes | |
39409 | else | |
39410 | echo "$as_me: failed program was:" >&5 | |
39411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39412 | ||
39413 | ac_cv_header_WebKit_HIWebView_h=no | |
39414 | fi | |
39415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39416 | fi | |
39417 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
39418 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
39419 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
39420 | ||
39421 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
39422 | #define wxUSE_WEBKIT 1 |
39423 | _ACEOF | |
39424 | ||
07bea8f0 VS |
39425 | WEBKIT_LINK="-framework WebKit" |
39426 | ||
39427 | else | |
39428 | ||
39429 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
39430 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
39431 | wxUSE_WEBKIT=no | |
39432 | ||
646b6ec1 VS |
39433 | fi |
39434 | ||
07bea8f0 VS |
39435 | |
39436 | CPPFLAGS="$old_CPPFLAGS" | |
39437 | elif test "$wxUSE_COCOA" = 1; then | |
39438 | cat >>confdefs.h <<\_ACEOF | |
39439 | #define wxUSE_WEBKIT 1 | |
39440 | _ACEOF | |
39441 | ||
39442 | else | |
39443 | wxUSE_WEBKIT=no | |
39444 | fi | |
39445 | fi | |
39446 | ||
9a8f0513 VS |
39447 | USE_XRC=0 |
39448 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
39449 | if test "$wxUSE_XML" != "yes"; then |
39450 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
39451 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
39452 | wxUSE_XRC=no | |
39453 | else | |
39454 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
39455 | #define wxUSE_XRC 1 |
39456 | _ACEOF | |
39457 | ||
d2ebf0b7 VS |
39458 | USE_XRC=1 |
39459 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
39460 | fi | |
9a8f0513 | 39461 | fi |
07bea8f0 | 39462 | |
a848cd7e SC |
39463 | if test "$wxUSE_MENUS" = "yes"; then |
39464 | cat >>confdefs.h <<\_ACEOF | |
39465 | #define wxUSE_MENUS 1 | |
39466 | _ACEOF | |
39467 | ||
39468 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
39469 | fi | |
39470 | ||
39471 | if test "$wxUSE_METAFILE" = "yes"; then | |
39472 | cat >>confdefs.h <<\_ACEOF | |
39473 | #define wxUSE_METAFILE 1 | |
39474 | _ACEOF | |
39475 | ||
39476 | fi | |
39477 | ||
39478 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
39479 | cat >>confdefs.h <<\_ACEOF | |
39480 | #define wxUSE_MIMETYPE 1 | |
39481 | _ACEOF | |
39482 | ||
39483 | fi | |
39484 | ||
39485 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
39486 | cat >>confdefs.h <<\_ACEOF | |
39487 | #define wxUSE_MINIFRAME 1 | |
39488 | _ACEOF | |
39489 | ||
39490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
39491 | fi | |
39492 | ||
39493 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
39494 | cat >>confdefs.h <<\_ACEOF | |
39495 | #define wxUSE_SYSTEM_OPTIONS 1 | |
39496 | _ACEOF | |
39497 | ||
39498 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 39499 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
39500 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
39501 | fi | |
39502 | fi | |
39503 | ||
39504 | ||
39505 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
39506 | cat >>confdefs.h <<\_ACEOF | |
39507 | #define wxUSE_VALIDATORS 1 | |
39508 | _ACEOF | |
39509 | ||
39510 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
39511 | fi | |
39512 | ||
39513 | if test "$wxUSE_PALETTE" = "yes" ; then | |
39514 | cat >>confdefs.h <<\_ACEOF | |
39515 | #define wxUSE_PALETTE 1 | |
39516 | _ACEOF | |
39517 | ||
39518 | fi | |
39519 | ||
39520 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
39521 | LIBS=" -lunicows $LIBS" | |
39522 | fi | |
39523 | ||
39524 | ||
39525 | if test "$wxUSE_IMAGE" = "yes" ; then | |
39526 | cat >>confdefs.h <<\_ACEOF | |
39527 | #define wxUSE_IMAGE 1 | |
39528 | _ACEOF | |
39529 | ||
39530 | ||
39531 | if test "$wxUSE_GIF" = "yes" ; then | |
39532 | cat >>confdefs.h <<\_ACEOF | |
39533 | #define wxUSE_GIF 1 | |
39534 | _ACEOF | |
39535 | ||
39536 | fi | |
39537 | ||
39538 | if test "$wxUSE_PCX" = "yes" ; then | |
39539 | cat >>confdefs.h <<\_ACEOF | |
39540 | #define wxUSE_PCX 1 | |
39541 | _ACEOF | |
39542 | ||
39543 | fi | |
39544 | ||
39545 | if test "$wxUSE_IFF" = "yes" ; then | |
39546 | cat >>confdefs.h <<\_ACEOF | |
39547 | #define wxUSE_IFF 1 | |
39548 | _ACEOF | |
39549 | ||
39550 | fi | |
39551 | ||
39552 | if test "$wxUSE_PNM" = "yes" ; then | |
39553 | cat >>confdefs.h <<\_ACEOF | |
39554 | #define wxUSE_PNM 1 | |
39555 | _ACEOF | |
39556 | ||
39557 | fi | |
39558 | ||
39559 | if test "$wxUSE_XPM" = "yes" ; then | |
39560 | cat >>confdefs.h <<\_ACEOF | |
39561 | #define wxUSE_XPM 1 | |
39562 | _ACEOF | |
39563 | ||
39564 | fi | |
39565 | ||
39566 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
39567 | cat >>confdefs.h <<\_ACEOF | |
39568 | #define wxUSE_ICO_CUR 1 | |
39569 | _ACEOF | |
39570 | ||
39571 | fi | |
39572 | fi | |
39573 | ||
39574 | ||
39575 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
39576 | cat >>confdefs.h <<\_ACEOF | |
39577 | #define wxUSE_CHOICEDLG 1 | |
39578 | _ACEOF | |
39579 | ||
39580 | fi | |
39581 | ||
39582 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
39583 | cat >>confdefs.h <<\_ACEOF | |
39584 | #define wxUSE_COLOURDLG 1 | |
39585 | _ACEOF | |
39586 | ||
39587 | fi | |
39588 | ||
39589 | if test "$wxUSE_FILEDLG" = "yes"; then | |
39590 | cat >>confdefs.h <<\_ACEOF | |
39591 | #define wxUSE_FILEDLG 1 | |
39592 | _ACEOF | |
39593 | ||
39594 | fi | |
39595 | ||
39596 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
39597 | cat >>confdefs.h <<\_ACEOF | |
39598 | #define wxUSE_FINDREPLDLG 1 | |
39599 | _ACEOF | |
39600 | ||
39601 | fi | |
39602 | ||
39603 | if test "$wxUSE_FONTDLG" = "yes"; then | |
39604 | cat >>confdefs.h <<\_ACEOF | |
39605 | #define wxUSE_FONTDLG 1 | |
39606 | _ACEOF | |
39607 | ||
39608 | fi | |
39609 | ||
39610 | if test "$wxUSE_DIRDLG" = "yes"; then | |
39611 | if test "$wxUSE_TREECTRL" != "yes"; then | |
39612 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
39613 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
39614 | else | |
39615 | cat >>confdefs.h <<\_ACEOF | |
39616 | #define wxUSE_DIRDLG 1 | |
39617 | _ACEOF | |
39618 | ||
39619 | fi | |
39620 | fi | |
39621 | ||
39622 | if test "$wxUSE_MSGDLG" = "yes"; then | |
39623 | cat >>confdefs.h <<\_ACEOF | |
39624 | #define wxUSE_MSGDLG 1 | |
39625 | _ACEOF | |
39626 | ||
39627 | fi | |
39628 | ||
39629 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
39630 | cat >>confdefs.h <<\_ACEOF | |
39631 | #define wxUSE_NUMBERDLG 1 | |
39632 | _ACEOF | |
39633 | ||
39634 | fi | |
39635 | ||
39636 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
39637 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39638 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
39639 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
39640 | else | |
39641 | cat >>confdefs.h <<\_ACEOF | |
39642 | #define wxUSE_PROGRESSDLG 1 | |
39643 | _ACEOF | |
39644 | ||
39645 | fi | |
39646 | fi | |
39647 | ||
39648 | if test "$wxUSE_SPLASH" = "yes"; then | |
39649 | cat >>confdefs.h <<\_ACEOF | |
39650 | #define wxUSE_SPLASH 1 | |
39651 | _ACEOF | |
39652 | ||
2057db16 | 39653 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
39654 | fi |
39655 | ||
39656 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
39657 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39658 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
39659 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
39660 | else | |
39661 | cat >>confdefs.h <<\_ACEOF | |
39662 | #define wxUSE_STARTUP_TIPS 1 | |
39663 | _ACEOF | |
39664 | ||
39665 | fi | |
39666 | fi | |
39667 | ||
39668 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
39669 | cat >>confdefs.h <<\_ACEOF | |
39670 | #define wxUSE_TEXTDLG 1 | |
39671 | _ACEOF | |
39672 | ||
39673 | fi | |
39674 | ||
39675 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
39676 | cat >>confdefs.h <<\_ACEOF | |
39677 | #define wxUSE_WIZARDDLG 1 | |
39678 | _ACEOF | |
39679 | ||
39680 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
39681 | fi | |
39682 | ||
39683 | ||
ce756cb0 RN |
39684 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
39685 | if test "$wxUSE_MSW" = 1; then | |
39686 | wxUSE_DIRECTSHOW="yes" | |
39687 | ||
39688 | for ac_header in dshow.h | |
39689 | do | |
39690 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
39691 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39692 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39693 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39695 | else | |
39696 | cat >conftest.$ac_ext <<_ACEOF | |
39697 | /* confdefs.h. */ | |
39698 | _ACEOF | |
39699 | cat confdefs.h >>conftest.$ac_ext | |
39700 | cat >>conftest.$ac_ext <<_ACEOF | |
39701 | /* end confdefs.h. */ | |
39702 | #include <windows.h> | |
39703 | ||
39704 | #include <$ac_header> | |
39705 | _ACEOF | |
39706 | rm -f conftest.$ac_objext | |
39707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39708 | (eval $ac_compile) 2>conftest.er1 | |
39709 | ac_status=$? | |
39710 | grep -v '^ *+' conftest.er1 >conftest.err | |
39711 | rm -f conftest.er1 | |
39712 | cat conftest.err >&5 | |
39713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39714 | (exit $ac_status); } && | |
9dd0f6c2 | 39715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
39716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39717 | (eval $ac_try) 2>&5 | |
39718 | ac_status=$? | |
39719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39720 | (exit $ac_status); }; } && | |
39721 | { ac_try='test -s conftest.$ac_objext' | |
39722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39723 | (eval $ac_try) 2>&5 | |
39724 | ac_status=$? | |
39725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39726 | (exit $ac_status); }; }; then | |
39727 | eval "$as_ac_Header=yes" | |
39728 | else | |
39729 | echo "$as_me: failed program was:" >&5 | |
39730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39731 | ||
39732 | eval "$as_ac_Header=no" | |
39733 | fi | |
39734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39735 | fi | |
39736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39737 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39738 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39739 | cat >>confdefs.h <<_ACEOF | |
39740 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
39741 | _ACEOF | |
39742 | ||
39743 | else | |
39744 | ||
39745 | wxUSE_DIRECTSHOW="no" | |
39746 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
39747 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} | |
39748 | ||
39749 | fi | |
39750 | ||
39751 | done | |
39752 | ||
39753 | ||
39754 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
39755 | cat >>confdefs.h <<\_ACEOF | |
39756 | #define wxUSE_DIRECTSHOW 1 | |
39757 | _ACEOF | |
39758 | ||
39759 | LIBS="$LIBS -lstrmiids" | |
39760 | fi | |
39761 | fi | |
39762 | ||
39763 | if test "$wxUSE_GTK" = 1; then | |
39764 | wxUSE_GSTREAMER="yes" | |
39765 | ||
ce756cb0 | 39766 | |
dae87f93 | 39767 | succeeded=no |
ce756cb0 | 39768 | |
dae87f93 RN |
39769 | if test -z "$PKG_CONFIG"; then |
39770 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
39771 | set dummy pkg-config; ac_word=$2 | |
39772 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39774 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
39775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39776 | else | |
39777 | case $PKG_CONFIG in | |
39778 | [\\/]* | ?:[\\/]*) | |
39779 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
39780 | ;; | |
39781 | *) | |
39782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39783 | for as_dir in $PATH | |
39784 | do | |
39785 | IFS=$as_save_IFS | |
39786 | test -z "$as_dir" && as_dir=. | |
39787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39788 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39789 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39791 | break 2 | |
39792 | fi | |
39793 | done | |
39794 | done | |
39795 | ||
39796 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
39797 | ;; | |
39798 | esac | |
39799 | fi | |
39800 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
39801 | ||
39802 | if test -n "$PKG_CONFIG"; then | |
39803 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
39804 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
39805 | else | |
39806 | echo "$as_me:$LINENO: result: no" >&5 | |
39807 | echo "${ECHO_T}no" >&6 | |
39808 | fi | |
39809 | ||
39810 | fi | |
39811 | ||
39812 | if test "$PKG_CONFIG" = "no" ; then | |
39813 | echo "*** The pkg-config script could not be found. Make sure it is" | |
39814 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
39815 | echo "*** to the full path to pkg-config." | |
39816 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
39817 | else | |
39818 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
39819 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
39820 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
39821 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
39822 | ||
39823 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
39824 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 39825 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 39826 | succeeded=yes |
ce756cb0 | 39827 | |
dae87f93 RN |
39828 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
39829 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
39830 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
39831 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
39832 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
39833 | ||
39834 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
39835 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
39836 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
39837 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
39838 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
39839 | else | |
39840 | GSTREAMER_CFLAGS="" | |
39841 | GSTREAMER_LIBS="" | |
39842 | ## If we have a custom action on failure, don't print errors, but | |
39843 | ## do set a variable so people can do so. | |
39844 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 39845 | |
dae87f93 RN |
39846 | fi |
39847 | ||
39848 | ||
39849 | ||
39850 | else | |
39851 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
39852 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
39853 | fi | |
39854 | fi | |
39855 | ||
39856 | if test $succeeded = yes; then | |
39857 | ||
39858 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
39859 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 39860 | |
ce756cb0 | 39861 | else |
dae87f93 RN |
39862 | |
39863 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
39864 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
39865 | wxUSE_GSTREAMER="no" | |
39866 | ||
39867 | fi | |
39868 | ||
39869 | ||
39870 | ||
39871 | ||
39872 | ||
39873 | if test "x$GST_INSPECT" == "x"; then | |
39874 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
39875 | set dummy gst-inspect; ac_word=$2 | |
39876 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39878 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
39879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39880 | else | |
39881 | if test -n "$GST_INSPECT"; then | |
39882 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
39883 | else | |
39884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39885 | for as_dir in $PATH | |
39886 | do | |
39887 | IFS=$as_save_IFS | |
39888 | test -z "$as_dir" && as_dir=. | |
39889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39891 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
39892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39893 | break 2 | |
ce756cb0 | 39894 | fi |
dae87f93 RN |
39895 | done |
39896 | done | |
39897 | ||
39898 | fi | |
39899 | fi | |
39900 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
39901 | if test -n "$GST_INSPECT"; then | |
39902 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
39903 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
39904 | else | |
39905 | echo "$as_me:$LINENO: result: no" >&5 | |
39906 | echo "${ECHO_T}no" >&6 | |
39907 | fi | |
39908 | ||
39909 | fi | |
39910 | ||
39911 | if test "x$GST_INSPECT" != "x"; then | |
39912 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
39913 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
39914 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
39915 | echo "$as_me:$LINENO: result: found." >&5 | |
39916 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 39917 | |
ce756cb0 | 39918 | else |
dae87f93 RN |
39919 | echo "$as_me:$LINENO: result: not found." >&5 |
39920 | echo "${ECHO_T}not found." >&6 | |
39921 | ||
39922 | wxUSE_GSTREAMER="no" | |
39923 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
39924 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
39925 | ||
39926 | fi | |
39927 | fi | |
39928 | ||
39929 | ||
39930 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
39931 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
39932 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
39933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39934 | else | |
39935 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
39936 | /* confdefs.h. */ |
39937 | _ACEOF | |
39938 | cat confdefs.h >>conftest.$ac_ext | |
39939 | cat >>conftest.$ac_ext <<_ACEOF | |
39940 | /* end confdefs.h. */ | |
dae87f93 | 39941 | #include <gst/gst.h> |
ce756cb0 | 39942 | |
dae87f93 | 39943 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
39944 | _ACEOF |
39945 | rm -f conftest.$ac_objext | |
39946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39947 | (eval $ac_compile) 2>conftest.er1 | |
39948 | ac_status=$? | |
39949 | grep -v '^ *+' conftest.er1 >conftest.err | |
39950 | rm -f conftest.er1 | |
39951 | cat conftest.err >&5 | |
39952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39953 | (exit $ac_status); } && | |
9dd0f6c2 | 39954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
39955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39956 | (eval $ac_try) 2>&5 | |
39957 | ac_status=$? | |
39958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39959 | (exit $ac_status); }; } && | |
39960 | { ac_try='test -s conftest.$ac_objext' | |
39961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39962 | (eval $ac_try) 2>&5 | |
39963 | ac_status=$? | |
39964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39965 | (exit $ac_status); }; }; then | |
dae87f93 | 39966 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
39967 | else |
39968 | echo "$as_me: failed program was:" >&5 | |
39969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39970 | ||
dae87f93 | 39971 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
39972 | fi |
39973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
39974 | fi |
39975 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
39976 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
39977 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
39978 | : | |
39979 | else | |
ce756cb0 | 39980 | |
dae87f93 RN |
39981 | wxUSE_GSTREAMER="no" |
39982 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
39983 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 39984 | |
dae87f93 | 39985 | fi |
ce756cb0 | 39986 | |
dae87f93 RN |
39987 | |
39988 | ||
39989 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
39990 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
39991 | ||
39992 | ac_find_libraries= | |
39993 | for ac_dir in $SEARCH_LIB /usr/lib; | |
39994 | do | |
39995 | for ac_extension in a so sl dylib; do | |
39996 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then | |
39997 | ac_find_libraries=$ac_dir | |
39998 | break 2 | |
39999 | fi | |
40000 | done | |
40001 | done | |
40002 | ||
ce756cb0 | 40003 | |
dae87f93 RN |
40004 | if test "$ac_find_libraries" = "" ; then |
40005 | echo "$as_me:$LINENO: result: no" >&5 | |
40006 | echo "${ECHO_T}no" >&6 | |
40007 | wxUSE_GSTREAMER="no" | |
40008 | else | |
40009 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 40010 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 40011 | fi |
ce756cb0 | 40012 | |
dae87f93 RN |
40013 | if test "$wxUSE_GSTREAMER" = "yes"; then |
40014 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
40015 | #define wxUSE_GSTREAMER 1 |
40016 | _ACEOF | |
40017 | ||
dae87f93 RN |
40018 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
40019 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
40020 | fi |
40021 | fi | |
40022 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
40023 | cat >>confdefs.h <<\_ACEOF | |
40024 | #define wxUSE_MEDIACTRL 1 | |
40025 | _ACEOF | |
40026 | ||
40027 | fi | |
40028 | ||
40029 | ||
a848cd7e SC |
40030 | if test "$cross_compiling" = "yes"; then |
40031 | OSINFO="\"$host\"" | |
40032 | else | |
40033 | OSINFO=`uname -s -r -m` | |
40034 | OSINFO="\"$OSINFO\"" | |
40035 | fi | |
40036 | ||
40037 | cat >>confdefs.h <<_ACEOF | |
40038 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
40039 | _ACEOF | |
40040 | ||
40041 | ||
40042 | ||
40043 | if test "x$prefix" != "xNONE"; then | |
40044 | wxPREFIX=$prefix | |
40045 | else | |
40046 | wxPREFIX=$ac_default_prefix | |
40047 | fi | |
40048 | ||
40049 | cat >>confdefs.h <<_ACEOF | |
40050 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
40051 | _ACEOF | |
40052 | ||
40053 | ||
a848cd7e SC |
40054 | |
40055 | ||
40056 | CORE_BASE_LIBS="net base" | |
40057 | CORE_GUI_LIBS="adv core" | |
40058 | ||
40059 | if test "$wxUSE_XML" = "yes" ; then | |
40060 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
40061 | fi | |
40062 | if test "$wxUSE_ODBC" != "no" ; then | |
40063 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
40064 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
40065 | fi | |
40066 | if test "$wxUSE_HTML" = "yes" ; then | |
40067 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
40068 | fi | |
61639efb VZ |
40069 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
40070 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
40071 | fi | |
9a8f0513 VS |
40072 | if test "$wxUSE_XRC" = "yes" ; then |
40073 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
40074 | fi | |
a848cd7e SC |
40075 | |
40076 | if test "$wxUSE_GUI" != "yes"; then | |
40077 | CORE_GUI_LIBS="" | |
40078 | fi | |
40079 | ||
40080 | ||
40081 | ||
40082 | ||
40083 | ||
40084 | ||
40085 | ||
40086 | ||
40087 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 40088 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
40089 | if test "$USE_DARWIN" = 1; then |
40090 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
40091 | else | |
40092 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
40093 | fi | |
07bea8f0 | 40094 | fi |
5dcf30a0 | 40095 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
40096 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
40097 | else | |
40098 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 40099 | fi |
59746b65 MW |
40100 | elif test "$USE_DARWIN" = 1; then |
40101 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System" | |
a848cd7e SC |
40102 | fi |
40103 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 40104 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
40105 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
40106 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
40107 | fi | |
a848cd7e SC |
40108 | fi |
40109 | ||
40110 | ||
40111 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
40112 | ||
40113 | have_cos=0 | |
40114 | have_floor=0 | |
40115 | ||
40116 | for ac_func in cos | |
40117 | do | |
40118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40119 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40121 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40123 | else | |
40124 | cat >conftest.$ac_ext <<_ACEOF | |
40125 | /* confdefs.h. */ | |
40126 | _ACEOF | |
40127 | cat confdefs.h >>conftest.$ac_ext | |
40128 | cat >>conftest.$ac_ext <<_ACEOF | |
40129 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40130 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40131 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40132 | #define $ac_func innocuous_$ac_func | |
40133 | ||
a848cd7e SC |
40134 | /* System header to define __stub macros and hopefully few prototypes, |
40135 | which can conflict with char $ac_func (); below. | |
40136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40137 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40138 | |
a848cd7e SC |
40139 | #ifdef __STDC__ |
40140 | # include <limits.h> | |
40141 | #else | |
40142 | # include <assert.h> | |
40143 | #endif | |
ac1cb8d3 VS |
40144 | |
40145 | #undef $ac_func | |
40146 | ||
a848cd7e SC |
40147 | /* Override any gcc2 internal prototype to avoid an error. */ |
40148 | #ifdef __cplusplus | |
40149 | extern "C" | |
40150 | { | |
40151 | #endif | |
40152 | /* We use char because int might match the return type of a gcc2 | |
40153 | builtin and then its argument prototype would still apply. */ | |
40154 | char $ac_func (); | |
40155 | /* The GNU C library defines this for functions which it implements | |
40156 | to always fail with ENOSYS. Some functions are actually named | |
40157 | something starting with __ and the normal name is an alias. */ | |
40158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40159 | choke me | |
40160 | #else | |
40161 | char (*f) () = $ac_func; | |
40162 | #endif | |
40163 | #ifdef __cplusplus | |
40164 | } | |
40165 | #endif | |
40166 | ||
40167 | int | |
40168 | main () | |
40169 | { | |
40170 | return f != $ac_func; | |
40171 | ; | |
40172 | return 0; | |
40173 | } | |
40174 | _ACEOF | |
40175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40177 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40178 | ac_status=$? |
ac1cb8d3 VS |
40179 | grep -v '^ *+' conftest.er1 >conftest.err |
40180 | rm -f conftest.er1 | |
40181 | cat conftest.err >&5 | |
a848cd7e SC |
40182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40183 | (exit $ac_status); } && | |
9dd0f6c2 | 40184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40186 | (eval $ac_try) 2>&5 | |
40187 | ac_status=$? | |
40188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40189 | (exit $ac_status); }; } && | |
40190 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40192 | (eval $ac_try) 2>&5 | |
40193 | ac_status=$? | |
40194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40195 | (exit $ac_status); }; }; then | |
40196 | eval "$as_ac_var=yes" | |
40197 | else | |
40198 | echo "$as_me: failed program was:" >&5 | |
40199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40200 | ||
40201 | eval "$as_ac_var=no" | |
40202 | fi | |
ac1cb8d3 VS |
40203 | rm -f conftest.err conftest.$ac_objext \ |
40204 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40205 | fi |
40206 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40207 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40208 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40209 | cat >>confdefs.h <<_ACEOF | |
40210 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40211 | _ACEOF | |
40212 | have_cos=1 | |
40213 | fi | |
40214 | done | |
40215 | ||
40216 | ||
40217 | for ac_func in floor | |
40218 | do | |
40219 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40220 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40221 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40222 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40224 | else | |
40225 | cat >conftest.$ac_ext <<_ACEOF | |
40226 | /* confdefs.h. */ | |
40227 | _ACEOF | |
40228 | cat confdefs.h >>conftest.$ac_ext | |
40229 | cat >>conftest.$ac_ext <<_ACEOF | |
40230 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40231 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40232 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40233 | #define $ac_func innocuous_$ac_func | |
40234 | ||
a848cd7e SC |
40235 | /* System header to define __stub macros and hopefully few prototypes, |
40236 | which can conflict with char $ac_func (); below. | |
40237 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40238 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40239 | |
a848cd7e SC |
40240 | #ifdef __STDC__ |
40241 | # include <limits.h> | |
40242 | #else | |
40243 | # include <assert.h> | |
40244 | #endif | |
ac1cb8d3 VS |
40245 | |
40246 | #undef $ac_func | |
40247 | ||
a848cd7e SC |
40248 | /* Override any gcc2 internal prototype to avoid an error. */ |
40249 | #ifdef __cplusplus | |
40250 | extern "C" | |
40251 | { | |
40252 | #endif | |
40253 | /* We use char because int might match the return type of a gcc2 | |
40254 | builtin and then its argument prototype would still apply. */ | |
40255 | char $ac_func (); | |
40256 | /* The GNU C library defines this for functions which it implements | |
40257 | to always fail with ENOSYS. Some functions are actually named | |
40258 | something starting with __ and the normal name is an alias. */ | |
40259 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40260 | choke me | |
40261 | #else | |
40262 | char (*f) () = $ac_func; | |
40263 | #endif | |
40264 | #ifdef __cplusplus | |
40265 | } | |
40266 | #endif | |
40267 | ||
40268 | int | |
40269 | main () | |
40270 | { | |
40271 | return f != $ac_func; | |
40272 | ; | |
40273 | return 0; | |
40274 | } | |
40275 | _ACEOF | |
40276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40278 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40279 | ac_status=$? |
ac1cb8d3 VS |
40280 | grep -v '^ *+' conftest.er1 >conftest.err |
40281 | rm -f conftest.er1 | |
40282 | cat conftest.err >&5 | |
a848cd7e SC |
40283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40284 | (exit $ac_status); } && | |
9dd0f6c2 | 40285 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40287 | (eval $ac_try) 2>&5 | |
40288 | ac_status=$? | |
40289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40290 | (exit $ac_status); }; } && | |
40291 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40293 | (eval $ac_try) 2>&5 | |
40294 | ac_status=$? | |
40295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40296 | (exit $ac_status); }; }; then | |
40297 | eval "$as_ac_var=yes" | |
40298 | else | |
40299 | echo "$as_me: failed program was:" >&5 | |
40300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40301 | ||
40302 | eval "$as_ac_var=no" | |
40303 | fi | |
ac1cb8d3 VS |
40304 | rm -f conftest.err conftest.$ac_objext \ |
40305 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40306 | fi |
40307 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40308 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40309 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40310 | cat >>confdefs.h <<_ACEOF | |
40311 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40312 | _ACEOF | |
40313 | have_floor=1 | |
40314 | fi | |
40315 | done | |
40316 | ||
40317 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
40318 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
40319 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
40320 | echo "$as_me:$LINENO: result: yes" >&5 | |
40321 | echo "${ECHO_T}yes" >&6 | |
40322 | else | |
40323 | echo "$as_me:$LINENO: result: no" >&5 | |
40324 | echo "${ECHO_T}no" >&6 | |
40325 | LIBS="$LIBS -lm" | |
40326 | # use different functions to avoid configure caching | |
40327 | have_sin=0 | |
40328 | have_ceil=0 | |
40329 | ||
40330 | for ac_func in sin | |
40331 | do | |
40332 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40333 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40334 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40335 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40337 | else | |
40338 | cat >conftest.$ac_ext <<_ACEOF | |
40339 | /* confdefs.h. */ | |
40340 | _ACEOF | |
40341 | cat confdefs.h >>conftest.$ac_ext | |
40342 | cat >>conftest.$ac_ext <<_ACEOF | |
40343 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40344 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40345 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40346 | #define $ac_func innocuous_$ac_func | |
40347 | ||
a848cd7e SC |
40348 | /* System header to define __stub macros and hopefully few prototypes, |
40349 | which can conflict with char $ac_func (); below. | |
40350 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40351 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40352 | |
a848cd7e SC |
40353 | #ifdef __STDC__ |
40354 | # include <limits.h> | |
40355 | #else | |
40356 | # include <assert.h> | |
40357 | #endif | |
ac1cb8d3 VS |
40358 | |
40359 | #undef $ac_func | |
40360 | ||
a848cd7e SC |
40361 | /* Override any gcc2 internal prototype to avoid an error. */ |
40362 | #ifdef __cplusplus | |
40363 | extern "C" | |
40364 | { | |
40365 | #endif | |
40366 | /* We use char because int might match the return type of a gcc2 | |
40367 | builtin and then its argument prototype would still apply. */ | |
40368 | char $ac_func (); | |
40369 | /* The GNU C library defines this for functions which it implements | |
40370 | to always fail with ENOSYS. Some functions are actually named | |
40371 | something starting with __ and the normal name is an alias. */ | |
40372 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40373 | choke me | |
40374 | #else | |
40375 | char (*f) () = $ac_func; | |
40376 | #endif | |
40377 | #ifdef __cplusplus | |
40378 | } | |
40379 | #endif | |
40380 | ||
40381 | int | |
40382 | main () | |
40383 | { | |
40384 | return f != $ac_func; | |
40385 | ; | |
40386 | return 0; | |
40387 | } | |
40388 | _ACEOF | |
40389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40391 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40392 | ac_status=$? |
ac1cb8d3 VS |
40393 | grep -v '^ *+' conftest.er1 >conftest.err |
40394 | rm -f conftest.er1 | |
40395 | cat conftest.err >&5 | |
a848cd7e SC |
40396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40397 | (exit $ac_status); } && | |
9dd0f6c2 | 40398 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40400 | (eval $ac_try) 2>&5 | |
40401 | ac_status=$? | |
40402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40403 | (exit $ac_status); }; } && | |
40404 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40406 | (eval $ac_try) 2>&5 | |
40407 | ac_status=$? | |
40408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40409 | (exit $ac_status); }; }; then | |
40410 | eval "$as_ac_var=yes" | |
40411 | else | |
40412 | echo "$as_me: failed program was:" >&5 | |
40413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40414 | ||
40415 | eval "$as_ac_var=no" | |
40416 | fi | |
ac1cb8d3 VS |
40417 | rm -f conftest.err conftest.$ac_objext \ |
40418 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40419 | fi |
40420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40421 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40422 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40423 | cat >>confdefs.h <<_ACEOF | |
40424 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40425 | _ACEOF | |
40426 | have_sin=1 | |
40427 | fi | |
40428 | done | |
40429 | ||
40430 | ||
40431 | for ac_func in ceil | |
40432 | do | |
40433 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40434 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40435 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40436 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40438 | else | |
40439 | cat >conftest.$ac_ext <<_ACEOF | |
40440 | /* confdefs.h. */ | |
40441 | _ACEOF | |
40442 | cat confdefs.h >>conftest.$ac_ext | |
40443 | cat >>conftest.$ac_ext <<_ACEOF | |
40444 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40445 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40446 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40447 | #define $ac_func innocuous_$ac_func | |
40448 | ||
a848cd7e SC |
40449 | /* System header to define __stub macros and hopefully few prototypes, |
40450 | which can conflict with char $ac_func (); below. | |
40451 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40452 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40453 | |
a848cd7e SC |
40454 | #ifdef __STDC__ |
40455 | # include <limits.h> | |
40456 | #else | |
40457 | # include <assert.h> | |
40458 | #endif | |
ac1cb8d3 VS |
40459 | |
40460 | #undef $ac_func | |
40461 | ||
a848cd7e SC |
40462 | /* Override any gcc2 internal prototype to avoid an error. */ |
40463 | #ifdef __cplusplus | |
40464 | extern "C" | |
40465 | { | |
40466 | #endif | |
40467 | /* We use char because int might match the return type of a gcc2 | |
40468 | builtin and then its argument prototype would still apply. */ | |
40469 | char $ac_func (); | |
40470 | /* The GNU C library defines this for functions which it implements | |
40471 | to always fail with ENOSYS. Some functions are actually named | |
40472 | something starting with __ and the normal name is an alias. */ | |
40473 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40474 | choke me | |
40475 | #else | |
40476 | char (*f) () = $ac_func; | |
40477 | #endif | |
40478 | #ifdef __cplusplus | |
40479 | } | |
40480 | #endif | |
40481 | ||
40482 | int | |
40483 | main () | |
40484 | { | |
40485 | return f != $ac_func; | |
40486 | ; | |
40487 | return 0; | |
40488 | } | |
40489 | _ACEOF | |
40490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40492 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40493 | ac_status=$? |
ac1cb8d3 VS |
40494 | grep -v '^ *+' conftest.er1 >conftest.err |
40495 | rm -f conftest.er1 | |
40496 | cat conftest.err >&5 | |
a848cd7e SC |
40497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40498 | (exit $ac_status); } && | |
9dd0f6c2 | 40499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40501 | (eval $ac_try) 2>&5 | |
40502 | ac_status=$? | |
40503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40504 | (exit $ac_status); }; } && | |
40505 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40507 | (eval $ac_try) 2>&5 | |
40508 | ac_status=$? | |
40509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40510 | (exit $ac_status); }; }; then | |
40511 | eval "$as_ac_var=yes" | |
40512 | else | |
40513 | echo "$as_me: failed program was:" >&5 | |
40514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40515 | ||
40516 | eval "$as_ac_var=no" | |
40517 | fi | |
ac1cb8d3 VS |
40518 | rm -f conftest.err conftest.$ac_objext \ |
40519 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40520 | fi |
40521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40522 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40523 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40524 | cat >>confdefs.h <<_ACEOF | |
40525 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40526 | _ACEOF | |
40527 | have_ceil=1 | |
40528 | fi | |
40529 | done | |
40530 | ||
40531 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
40532 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
40533 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
40534 | echo "$as_me:$LINENO: result: yes" >&5 | |
40535 | echo "${ECHO_T}yes" >&6 | |
40536 | else | |
40537 | echo "$as_me:$LINENO: result: no" >&5 | |
40538 | echo "${ECHO_T}no" >&6 | |
40539 | # not sure we should warn the user, crash, etc. | |
40540 | fi | |
40541 | fi | |
40542 | ||
40543 | if test "$wxUSE_GUI" = "yes"; then | |
40544 | ||
40545 | ||
8bce5cda MW |
40546 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
40547 | dynamic erase event exec font image minimal mobile \ | |
40548 | mobile/wxedit mobile/styles propsize render \ | |
40549 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
40550 | |
40551 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
40552 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
40553 | fi | |
0b78747f | 40554 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
40555 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
40556 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
40557 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
40558 | fi | |
40559 | fi | |
40560 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
40561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 40562 | fi |
a848cd7e SC |
40563 | else |
40564 | SAMPLES_SUBDIRS="console" | |
40565 | fi | |
40566 | ||
40567 | ||
ceec2216 | 40568 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
40569 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
40570 | ||
40571 | if test "$GXX" = yes ; then | |
5294a27e VZ |
40572 | CWARNINGS="-Wall" |
40573 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
40574 | fi |
40575 | ||
40576 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
40577 | ||
0c3c69fc | 40578 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 40579 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 40580 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 40581 | |
95986553 DE |
40582 | if test "x$MWCC" = "xyes"; then |
40583 | ||
40584 | CC="$CC -cwd source -I-" | |
40585 | CXX="$CXX -cwd source -I-" | |
40586 | fi | |
40587 | ||
a848cd7e | 40588 | |
0c3c69fc | 40589 | LIBS=`echo $LIBS` |
a848cd7e SC |
40590 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
40591 | EXTRALIBS_XML="$EXPAT_LINK" | |
40592 | EXTRALIBS_HTML="$MSPACK_LINK" | |
40593 | EXTRALIBS_ODBC="$ODBC_LINK" | |
40594 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 40595 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
40596 | fi |
40597 | if test "$wxUSE_OPENGL" = "yes"; then | |
40598 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
40599 | fi | |
40600 | ||
40601 | LDFLAGS="$LDFLAGS $PROFILE" | |
40602 | ||
40603 | if test "$wxUSE_GTK" = 1; then | |
40604 | WXCONFIG_INCLUDE= | |
40605 | else | |
40606 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
40607 | fi | |
40608 | ||
40609 | WXCONFIG_EXTRALIBS="$LIBS" | |
40610 | ||
40611 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 40612 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
40613 | fi |
40614 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 40615 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
40616 | fi |
40617 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 40618 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
40619 | fi |
40620 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 40621 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
40622 | fi |
40623 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 40624 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
40625 | fi |
40626 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 40627 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
40628 | fi |
40629 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 40630 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
40631 | fi |
40632 | ||
40633 | for i in $wxconfig_3rdparty ; do | |
74802184 | 40634 | WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS" |
a848cd7e SC |
40635 | done |
40636 | ||
40637 | ||
40638 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
40639 | WXUNIV=1 | |
40640 | else | |
40641 | WXUNIV=0 | |
40642 | fi | |
40643 | ||
40644 | ||
40645 | ||
40646 | ||
40647 | ||
40648 | ||
40649 | ||
40650 | ||
40651 | ||
40652 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
40653 | MONOLITHIC=1 | |
40654 | else | |
40655 | MONOLITHIC=0 | |
40656 | fi | |
40657 | ||
40658 | if test $wxUSE_PLUGINS = "yes" ; then | |
40659 | USE_PLUGINS=1 | |
40660 | else | |
40661 | USE_PLUGINS=0 | |
40662 | fi | |
40663 | ||
40664 | if test $wxUSE_ODBC != "no" ; then | |
40665 | USE_ODBC=1 | |
40666 | else | |
40667 | USE_ODBC=0 | |
40668 | fi | |
40669 | ||
16358932 VZ |
40670 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
40671 | USE_QA=1 | |
40672 | else | |
40673 | USE_QA=0 | |
40674 | fi | |
40675 | ||
a848cd7e SC |
40676 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
40677 | OFFICIAL_BUILD=1 | |
40678 | else | |
40679 | OFFICIAL_BUILD=0 | |
40680 | fi | |
40681 | ||
40682 | ||
40683 | ||
40684 | ||
40685 | ||
40686 | ||
40687 | ||
40688 | ||
40689 | ||
40690 | ||
40691 | ||
40692 | ||
40693 | ||
40694 | ||
40695 | ||
40696 | ||
40697 | ||
40698 | ||
40699 | ||
ceec2216 | 40700 | |
d1c38808 | 40701 | |
a848cd7e SC |
40702 | |
40703 | ||
40704 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
40705 | ||
40706 | ||
40707 | ||
40708 | ||
40709 | ||
40710 | ||
40711 | ||
40712 | ||
4d4ff94c VZ |
40713 | case "$TOOLKIT" in |
40714 | GTK) | |
40715 | TOOLKIT_USER="GTK+" | |
40716 | if test "$WXGTK20" = 1; then | |
40717 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
40718 | fi | |
9a8f0513 | 40719 | ;; |
4d4ff94c VZ |
40720 | |
40721 | *) | |
40722 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 40723 | ;; |
4d4ff94c | 40724 | esac |
a848cd7e | 40725 | |
9a8f0513 | 40726 | |
1e9e8aba DE |
40727 | |
40728 | ||
a848cd7e SC |
40729 | if test "x$BAKEFILE_HOST" = "x"; then |
40730 | BAKEFILE_HOST="${host}" | |
40731 | fi | |
40732 | ||
40733 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
40734 | ||
40735 | if test -n "$ac_tool_prefix"; then | |
40736 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
40737 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
40738 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40740 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
40741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40742 | else | |
40743 | if test -n "$RANLIB"; then | |
40744 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
40745 | else | |
40746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40747 | for as_dir in $PATH | |
40748 | do | |
40749 | IFS=$as_save_IFS | |
40750 | test -z "$as_dir" && as_dir=. | |
40751 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40752 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40753 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
40754 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40755 | break 2 | |
40756 | fi | |
40757 | done | |
40758 | done | |
40759 | ||
40760 | fi | |
40761 | fi | |
40762 | RANLIB=$ac_cv_prog_RANLIB | |
40763 | if test -n "$RANLIB"; then | |
40764 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
40765 | echo "${ECHO_T}$RANLIB" >&6 | |
40766 | else | |
40767 | echo "$as_me:$LINENO: result: no" >&5 | |
40768 | echo "${ECHO_T}no" >&6 | |
40769 | fi | |
40770 | ||
40771 | fi | |
40772 | if test -z "$ac_cv_prog_RANLIB"; then | |
40773 | ac_ct_RANLIB=$RANLIB | |
40774 | # Extract the first word of "ranlib", so it can be a program name with args. | |
40775 | set dummy ranlib; ac_word=$2 | |
40776 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40778 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
40779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40780 | else | |
40781 | if test -n "$ac_ct_RANLIB"; then | |
40782 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
40783 | else | |
40784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40785 | for as_dir in $PATH | |
40786 | do | |
40787 | IFS=$as_save_IFS | |
40788 | test -z "$as_dir" && as_dir=. | |
40789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40790 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40791 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
40792 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40793 | break 2 | |
40794 | fi | |
40795 | done | |
40796 | done | |
40797 | ||
40798 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
40799 | fi | |
40800 | fi | |
40801 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
40802 | if test -n "$ac_ct_RANLIB"; then | |
40803 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
40804 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
40805 | else | |
40806 | echo "$as_me:$LINENO: result: no" >&5 | |
40807 | echo "${ECHO_T}no" >&6 | |
40808 | fi | |
40809 | ||
40810 | RANLIB=$ac_ct_RANLIB | |
40811 | else | |
40812 | RANLIB="$ac_cv_prog_RANLIB" | |
40813 | fi | |
40814 | ||
40815 | # Find a good install program. We prefer a C program (faster), | |
40816 | # so one script is as good as another. But avoid the broken or | |
40817 | # incompatible versions: | |
40818 | # SysV /etc/install, /usr/sbin/install | |
40819 | # SunOS /usr/etc/install | |
40820 | # IRIX /sbin/install | |
40821 | # AIX /bin/install | |
40822 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
40823 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
40824 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
40825 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 40826 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
40827 | # ./install, which can be erroneously created by make from ./install.sh. |
40828 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
40829 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
40830 | if test -z "$INSTALL"; then | |
40831 | if test "${ac_cv_path_install+set}" = set; then | |
40832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40833 | else | |
40834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40835 | for as_dir in $PATH | |
40836 | do | |
40837 | IFS=$as_save_IFS | |
40838 | test -z "$as_dir" && as_dir=. | |
40839 | # Account for people who put trailing slashes in PATH elements. | |
40840 | case $as_dir/ in | |
40841 | ./ | .// | /cC/* | \ | |
40842 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 40843 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
40844 | /usr/ucb/* ) ;; |
40845 | *) | |
40846 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
40847 | # Don't use installbsd from OSF since it installs stuff as root | |
40848 | # by default. | |
40849 | for ac_prog in ginstall scoinst install; do | |
40850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
40851 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
40852 | if test $ac_prog = install && | |
40853 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40854 | # AIX install. It has an incompatible calling convention. | |
40855 | : | |
40856 | elif test $ac_prog = install && | |
40857 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40858 | # program-specific install script used by HP pwplus--don't use. | |
40859 | : | |
40860 | else | |
40861 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
40862 | break 3 | |
40863 | fi | |
40864 | fi | |
a848cd7e SC |
40865 | done |
40866 | done | |
40867 | ;; | |
40868 | esac | |
40869 | done | |
40870 | ||
40871 | ||
40872 | fi | |
40873 | if test "${ac_cv_path_install+set}" = set; then | |
40874 | INSTALL=$ac_cv_path_install | |
40875 | else | |
40876 | # As a last resort, use the slow shell script. We don't cache a | |
40877 | # path for INSTALL within a source directory, because that will | |
40878 | # break other packages using the cache if that directory is | |
40879 | # removed, or if the path is relative. | |
40880 | INSTALL=$ac_install_sh | |
40881 | fi | |
40882 | fi | |
40883 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
40884 | echo "${ECHO_T}$INSTALL" >&6 | |
40885 | ||
40886 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
40887 | # It thinks the first close brace ends the variable substitution. | |
40888 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
40889 | ||
40890 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
40891 | ||
40892 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
40893 | ||
40894 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
40895 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
40896 | LN_S=$as_ln_s | |
40897 | if test "$LN_S" = "ln -s"; then | |
40898 | echo "$as_me:$LINENO: result: yes" >&5 | |
40899 | echo "${ECHO_T}yes" >&6 | |
40900 | else | |
40901 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
40902 | echo "${ECHO_T}no, using $LN_S" >&6 | |
40903 | fi | |
40904 | ||
40905 | ||
40906 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
40907 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 40908 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
40909 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
40910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40911 | else | |
40912 | cat >conftest.make <<\_ACEOF | |
40913 | all: | |
40914 | @echo 'ac_maketemp="$(MAKE)"' | |
40915 | _ACEOF | |
40916 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
40917 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
40918 | if test -n "$ac_maketemp"; then | |
40919 | eval ac_cv_prog_make_${ac_make}_set=yes | |
40920 | else | |
40921 | eval ac_cv_prog_make_${ac_make}_set=no | |
40922 | fi | |
40923 | rm -f conftest.make | |
40924 | fi | |
40925 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
40926 | echo "$as_me:$LINENO: result: yes" >&5 | |
40927 | echo "${ECHO_T}yes" >&6 | |
40928 | SET_MAKE= | |
40929 | else | |
40930 | echo "$as_me:$LINENO: result: no" >&5 | |
40931 | echo "${ECHO_T}no" >&6 | |
40932 | SET_MAKE="MAKE=${MAKE-make}" | |
40933 | fi | |
40934 | ||
40935 | ||
40936 | ||
40937 | if test -n "$ac_tool_prefix"; then | |
40938 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
40939 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
40940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40942 | if test "${ac_cv_prog_AR+set}" = set; then | |
40943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40944 | else | |
40945 | if test -n "$AR"; then | |
40946 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
40947 | else | |
40948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40949 | for as_dir in $PATH | |
40950 | do | |
40951 | IFS=$as_save_IFS | |
40952 | test -z "$as_dir" && as_dir=. | |
40953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40955 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
40956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40957 | break 2 | |
40958 | fi | |
40959 | done | |
40960 | done | |
40961 | ||
40962 | fi | |
40963 | fi | |
40964 | AR=$ac_cv_prog_AR | |
40965 | if test -n "$AR"; then | |
40966 | echo "$as_me:$LINENO: result: $AR" >&5 | |
40967 | echo "${ECHO_T}$AR" >&6 | |
40968 | else | |
40969 | echo "$as_me:$LINENO: result: no" >&5 | |
40970 | echo "${ECHO_T}no" >&6 | |
40971 | fi | |
40972 | ||
40973 | fi | |
40974 | if test -z "$ac_cv_prog_AR"; then | |
40975 | ac_ct_AR=$AR | |
40976 | # Extract the first word of "ar", so it can be a program name with args. | |
40977 | set dummy ar; ac_word=$2 | |
40978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40980 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
40981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40982 | else | |
40983 | if test -n "$ac_ct_AR"; then | |
40984 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
40985 | else | |
40986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40987 | for as_dir in $PATH | |
40988 | do | |
40989 | IFS=$as_save_IFS | |
40990 | test -z "$as_dir" && as_dir=. | |
40991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40993 | ac_cv_prog_ac_ct_AR="ar" | |
40994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40995 | break 2 | |
40996 | fi | |
40997 | done | |
40998 | done | |
40999 | ||
41000 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
41001 | fi | |
41002 | fi | |
41003 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
41004 | if test -n "$ac_ct_AR"; then | |
41005 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
41006 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
41007 | else | |
41008 | echo "$as_me:$LINENO: result: no" >&5 | |
41009 | echo "${ECHO_T}no" >&6 | |
41010 | fi | |
41011 | ||
41012 | AR=$ac_ct_AR | |
41013 | else | |
41014 | AR="$ac_cv_prog_AR" | |
41015 | fi | |
41016 | ||
41017 | if test -n "$ac_tool_prefix"; then | |
41018 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
41019 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
41020 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41021 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41022 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
41023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41024 | else | |
41025 | if test -n "$STRIP"; then | |
41026 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
41027 | else | |
41028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41029 | for as_dir in $PATH | |
41030 | do | |
41031 | IFS=$as_save_IFS | |
41032 | test -z "$as_dir" && as_dir=. | |
41033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41034 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41035 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
41036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41037 | break 2 | |
41038 | fi | |
41039 | done | |
41040 | done | |
41041 | ||
41042 | fi | |
41043 | fi | |
41044 | STRIP=$ac_cv_prog_STRIP | |
41045 | if test -n "$STRIP"; then | |
41046 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
41047 | echo "${ECHO_T}$STRIP" >&6 | |
41048 | else | |
41049 | echo "$as_me:$LINENO: result: no" >&5 | |
41050 | echo "${ECHO_T}no" >&6 | |
41051 | fi | |
41052 | ||
41053 | fi | |
41054 | if test -z "$ac_cv_prog_STRIP"; then | |
41055 | ac_ct_STRIP=$STRIP | |
41056 | # Extract the first word of "strip", so it can be a program name with args. | |
41057 | set dummy strip; ac_word=$2 | |
41058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41060 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
41061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41062 | else | |
41063 | if test -n "$ac_ct_STRIP"; then | |
41064 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
41065 | else | |
41066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41067 | for as_dir in $PATH | |
41068 | do | |
41069 | IFS=$as_save_IFS | |
41070 | test -z "$as_dir" && as_dir=. | |
41071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41072 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41073 | ac_cv_prog_ac_ct_STRIP="strip" | |
41074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41075 | break 2 | |
41076 | fi | |
41077 | done | |
41078 | done | |
41079 | ||
41080 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
41081 | fi | |
41082 | fi | |
41083 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
41084 | if test -n "$ac_ct_STRIP"; then | |
41085 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
41086 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
41087 | else | |
41088 | echo "$as_me:$LINENO: result: no" >&5 | |
41089 | echo "${ECHO_T}no" >&6 | |
41090 | fi | |
41091 | ||
41092 | STRIP=$ac_ct_STRIP | |
41093 | else | |
41094 | STRIP="$ac_cv_prog_STRIP" | |
41095 | fi | |
41096 | ||
41097 | if test -n "$ac_tool_prefix"; then | |
41098 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
41099 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
41100 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41102 | if test "${ac_cv_prog_NM+set}" = set; then | |
41103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41104 | else | |
41105 | if test -n "$NM"; then | |
41106 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
41107 | else | |
41108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41109 | for as_dir in $PATH | |
41110 | do | |
41111 | IFS=$as_save_IFS | |
41112 | test -z "$as_dir" && as_dir=. | |
41113 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41114 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41115 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
41116 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41117 | break 2 | |
41118 | fi | |
41119 | done | |
41120 | done | |
41121 | ||
41122 | fi | |
41123 | fi | |
41124 | NM=$ac_cv_prog_NM | |
41125 | if test -n "$NM"; then | |
41126 | echo "$as_me:$LINENO: result: $NM" >&5 | |
41127 | echo "${ECHO_T}$NM" >&6 | |
41128 | else | |
41129 | echo "$as_me:$LINENO: result: no" >&5 | |
41130 | echo "${ECHO_T}no" >&6 | |
41131 | fi | |
41132 | ||
41133 | fi | |
41134 | if test -z "$ac_cv_prog_NM"; then | |
41135 | ac_ct_NM=$NM | |
41136 | # Extract the first word of "nm", so it can be a program name with args. | |
41137 | set dummy nm; ac_word=$2 | |
41138 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41139 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41140 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
41141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41142 | else | |
41143 | if test -n "$ac_ct_NM"; then | |
41144 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
41145 | else | |
41146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41147 | for as_dir in $PATH | |
41148 | do | |
41149 | IFS=$as_save_IFS | |
41150 | test -z "$as_dir" && as_dir=. | |
41151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41152 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41153 | ac_cv_prog_ac_ct_NM="nm" | |
41154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41155 | break 2 | |
41156 | fi | |
41157 | done | |
41158 | done | |
41159 | ||
41160 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
41161 | fi | |
41162 | fi | |
41163 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
41164 | if test -n "$ac_ct_NM"; then | |
41165 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
41166 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
41167 | else | |
41168 | echo "$as_me:$LINENO: result: no" >&5 | |
41169 | echo "${ECHO_T}no" >&6 | |
41170 | fi | |
41171 | ||
41172 | NM=$ac_ct_NM | |
41173 | else | |
41174 | NM="$ac_cv_prog_NM" | |
41175 | fi | |
41176 | ||
41177 | ||
41178 | case ${BAKEFILE_HOST} in | |
41179 | *-hp-hpux* ) | |
1e9e8aba | 41180 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
41181 | ;; |
41182 | *) INSTALL_DIR="$INSTALL -d" | |
41183 | ;; | |
41184 | esac | |
41185 | ||
41186 | ||
41187 | LDFLAGS_GUI= | |
41188 | case ${BAKEFILE_HOST} in | |
41189 | *-*-cygwin* | *-*-mingw32* ) | |
41190 | LDFLAGS_GUI="-mwindows" | |
41191 | esac | |
41192 | ||
41193 | ||
41194 | fi | |
41195 | ||
41196 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
41197 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
41198 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
41199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41200 | else | |
41201 | ||
41202 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
41203 | egrep -s GNU > /dev/null); then | |
41204 | bakefile_cv_prog_makeisgnu="yes" | |
41205 | else | |
41206 | bakefile_cv_prog_makeisgnu="no" | |
41207 | fi | |
41208 | ||
41209 | fi | |
41210 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
41211 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
41212 | ||
41213 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
41214 | IF_GNU_MAKE="" | |
41215 | else | |
41216 | IF_GNU_MAKE="#" | |
41217 | fi | |
41218 | ||
41219 | ||
41220 | ||
41221 | PLATFORM_UNIX=0 | |
41222 | PLATFORM_WIN32=0 | |
41223 | PLATFORM_MSDOS=0 | |
41224 | PLATFORM_MAC=0 | |
1e9e8aba | 41225 | PLATFORM_MACOS=0 |
a848cd7e SC |
41226 | PLATFORM_MACOSX=0 |
41227 | PLATFORM_OS2=0 | |
1e9e8aba | 41228 | PLATFORM_BEOS=0 |
a848cd7e SC |
41229 | |
41230 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
41231 | case "${BAKEFILE_HOST}" in | |
41232 | *-*-cygwin* | *-*-mingw32* ) | |
41233 | PLATFORM_WIN32=1 | |
41234 | ;; | |
41235 | *-pc-msdosdjgpp ) | |
41236 | PLATFORM_MSDOS=1 | |
41237 | ;; | |
41238 | *-pc-os2_emx | *-pc-os2-emx ) | |
41239 | PLATFORM_OS2=1 | |
41240 | ;; | |
41241 | powerpc-*-darwin* ) | |
41242 | PLATFORM_MAC=1 | |
41243 | PLATFORM_MACOSX=1 | |
41244 | ;; | |
1e9e8aba DE |
41245 | *-*-beos* ) |
41246 | PLATFORM_BEOS=1 | |
41247 | ;; | |
41248 | powerpc-apple-macos* ) | |
41249 | PLATFORM_MAC=1 | |
41250 | PLATFORM_MACOS=1 | |
41251 | ;; | |
a848cd7e SC |
41252 | * ) |
41253 | PLATFORM_UNIX=1 | |
41254 | ;; | |
41255 | esac | |
41256 | else | |
41257 | case "$BAKEFILE_FORCE_PLATFORM" in | |
41258 | win32 ) | |
41259 | PLATFORM_WIN32=1 | |
41260 | ;; | |
41261 | msdos ) | |
41262 | PLATFORM_MSDOS=1 | |
41263 | ;; | |
41264 | os2 ) | |
41265 | PLATFORM_OS2=1 | |
41266 | ;; | |
41267 | darwin ) | |
41268 | PLATFORM_MAC=1 | |
41269 | PLATFORM_MACOSX=1 | |
41270 | ;; | |
41271 | unix ) | |
41272 | PLATFORM_UNIX=1 | |
41273 | ;; | |
1e9e8aba DE |
41274 | beos ) |
41275 | PLATFORM_BEOS=1 | |
41276 | ;; | |
a848cd7e SC |
41277 | * ) |
41278 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
41279 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
41280 | { (exit 1); exit 1; }; } | |
41281 | ;; | |
41282 | esac | |
41283 | fi | |
41284 | ||
41285 | ||
41286 | ||
41287 | ||
41288 | ||
41289 | ||
41290 | ||
41291 | ||
41292 | ||
1e9e8aba DE |
41293 | |
41294 | ||
a848cd7e SC |
41295 | # Check whether --enable-omf or --disable-omf was given. |
41296 | if test "${enable_omf+set}" = set; then | |
41297 | enableval="$enable_omf" | |
41298 | bk_os2_use_omf="$enableval" | |
41299 | fi; | |
41300 | ||
41301 | case "${BAKEFILE_HOST}" in | |
41302 | *-*-darwin* ) | |
41303 | CFLAGS="$CFLAGS -fno-common" | |
41304 | CXXFLAGS="$CXXFLAGS -fno-common" | |
41305 | ;; | |
41306 | ||
41307 | *-pc-os2_emx | *-pc-os2-emx ) | |
41308 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
41309 | AR=emxomfar | |
41310 | RANLIB=: | |
41311 | LDFLAGS="-Zomf $LDFLAGS" | |
41312 | CFLAGS="-Zomf $CFLAGS" | |
41313 | CXXFLAGS="-Zomf $CXXFLAGS" | |
41314 | OS2_LIBEXT="lib" | |
41315 | else | |
41316 | OS2_LIBEXT="a" | |
41317 | fi | |
41318 | ;; | |
1e9e8aba DE |
41319 | |
41320 | i*86-*-beos* ) | |
41321 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
41322 | ;; | |
a848cd7e SC |
41323 | esac |
41324 | ||
41325 | ||
41326 | SO_SUFFIX="so" | |
41327 | SO_SUFFIX_MODULE="so" | |
41328 | EXEEXT="" | |
41329 | LIBPREFIX="lib" | |
41330 | LIBEXT=".a" | |
41331 | DLLPREFIX="lib" | |
41332 | DLLPREFIX_MODULE="" | |
41333 | DLLIMP_SUFFIX="" | |
41334 | ||
41335 | case "${BAKEFILE_HOST}" in | |
41336 | *-hp-hpux* ) | |
41337 | SO_SUFFIX="sl" | |
41338 | SO_SUFFIX_MODULE="sl" | |
41339 | ;; | |
41340 | *-*-aix* ) | |
41341 | SO_SUFFIX="a" | |
41342 | SO_SUFFIX_MODULE="a" | |
41343 | ;; | |
41344 | *-*-cygwin* | *-*-mingw32* ) | |
41345 | SO_SUFFIX="dll" | |
41346 | SO_SUFFIX_MODULE="dll" | |
41347 | DLLIMP_SUFFIX="dll.a" | |
41348 | EXEEXT=".exe" | |
41349 | DLLPREFIX="" | |
41350 | ;; | |
41351 | *-pc-msdosdjgpp ) | |
41352 | EXEEXT=".exe" | |
41353 | DLLPREFIX="" | |
41354 | ;; | |
41355 | *-pc-os2_emx | *-pc-os2-emx ) | |
41356 | SO_SUFFIX="dll" | |
41357 | SO_SUFFIX_MODULE="dll" | |
41358 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
41359 | EXEEXT=".exe" | |
41360 | DLLPREFIX="" | |
41361 | LIBPREFIX="" | |
41362 | LIBEXT=".$OS2_LIBEXT" | |
41363 | ;; | |
41364 | powerpc-*-darwin* ) | |
41365 | SO_SUFFIX="dylib" | |
41366 | SO_SUFFIX_MODULE="bundle" | |
41367 | ;; | |
41368 | esac | |
41369 | ||
41370 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
41371 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
41372 | fi | |
41373 | ||
41374 | ||
41375 | ||
41376 | ||
41377 | ||
41378 | ||
41379 | ||
41380 | ||
41381 | ||
41382 | ||
41383 | ||
1e9e8aba DE |
41384 | PIC_FLAG="" |
41385 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
41386 | PIC_FLAG="-fPIC" |
41387 | fi | |
41388 | ||
1e9e8aba DE |
41389 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
41390 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
41391 | ||
a848cd7e SC |
41392 | case "${BAKEFILE_HOST}" in |
41393 | *-hp-hpux* ) | |
1e9e8aba | 41394 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
41395 | LDFLAGS="$LDFLAGS -L/usr/lib" |
41396 | ||
41397 | SHARED_LD_CC="${CC} -b -o" | |
41398 | SHARED_LD_CXX="${CXX} -b -o" | |
41399 | PIC_FLAG="+Z" | |
41400 | fi | |
41401 | ;; | |
41402 | ||
41403 | *-*-linux* ) | |
41404 | if test "x$GCC" != "xyes"; then | |
41405 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
41406 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
41407 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
41408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41409 | else | |
41410 | ||
41411 | cat >conftest.$ac_ext <<_ACEOF | |
41412 | /* confdefs.h. */ | |
41413 | _ACEOF | |
41414 | cat confdefs.h >>conftest.$ac_ext | |
41415 | cat >>conftest.$ac_ext <<_ACEOF | |
41416 | /* end confdefs.h. */ | |
41417 | ||
41418 | int | |
41419 | main () | |
41420 | { | |
41421 | ||
41422 | #ifndef __INTEL_COMPILER | |
41423 | #error Not icc | |
41424 | #endif | |
41425 | ||
41426 | ; | |
41427 | return 0; | |
41428 | } | |
41429 | _ACEOF | |
41430 | rm -f conftest.$ac_objext | |
41431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41432 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41433 | ac_status=$? |
ac1cb8d3 VS |
41434 | grep -v '^ *+' conftest.er1 >conftest.err |
41435 | rm -f conftest.er1 | |
41436 | cat conftest.err >&5 | |
a848cd7e SC |
41437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41438 | (exit $ac_status); } && | |
9dd0f6c2 | 41439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41441 | (eval $ac_try) 2>&5 | |
41442 | ac_status=$? | |
41443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41444 | (exit $ac_status); }; } && | |
41445 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41447 | (eval $ac_try) 2>&5 | |
41448 | ac_status=$? | |
41449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41450 | (exit $ac_status); }; }; then | |
41451 | bakefile_cv_prog_icc=yes | |
41452 | else | |
41453 | echo "$as_me: failed program was:" >&5 | |
41454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41455 | ||
41456 | bakefile_cv_prog_icc=no | |
41457 | ||
41458 | fi | |
ac1cb8d3 | 41459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41460 | |
41461 | fi | |
41462 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
41463 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
41464 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
41465 | PIC_FLAG="-KPIC" | |
41466 | fi | |
41467 | fi | |
41468 | ;; | |
41469 | ||
41470 | *-*-solaris2* ) | |
41471 | if test "x$GCC" != xyes ; then | |
41472 | SHARED_LD_CC="${CC} -G -o" | |
41473 | SHARED_LD_CXX="${CXX} -G -o" | |
41474 | PIC_FLAG="-KPIC" | |
41475 | fi | |
41476 | ;; | |
41477 | ||
41478 | *-*-darwin* ) | |
41479 | ||
41480 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
41481 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
41482 | if test "${wx_cv_gcc31+set}" = set; then | |
41483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41484 | else | |
41485 | ||
41486 | cat >conftest.$ac_ext <<_ACEOF | |
41487 | /* confdefs.h. */ | |
41488 | _ACEOF | |
41489 | cat confdefs.h >>conftest.$ac_ext | |
41490 | cat >>conftest.$ac_ext <<_ACEOF | |
41491 | /* end confdefs.h. */ | |
41492 | ||
41493 | int | |
41494 | main () | |
41495 | { | |
41496 | ||
41497 | #if (__GNUC__ < 3) || \ | |
41498 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
41499 | #error old gcc | |
41500 | #endif | |
41501 | ||
41502 | ; | |
41503 | return 0; | |
41504 | } | |
41505 | _ACEOF | |
41506 | rm -f conftest.$ac_objext | |
41507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41508 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41509 | ac_status=$? |
ac1cb8d3 VS |
41510 | grep -v '^ *+' conftest.er1 >conftest.err |
41511 | rm -f conftest.er1 | |
41512 | cat conftest.err >&5 | |
a848cd7e SC |
41513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41514 | (exit $ac_status); } && | |
9dd0f6c2 | 41515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41517 | (eval $ac_try) 2>&5 | |
41518 | ac_status=$? | |
41519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41520 | (exit $ac_status); }; } && | |
41521 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41523 | (eval $ac_try) 2>&5 | |
41524 | ac_status=$? | |
41525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41526 | (exit $ac_status); }; }; then | |
41527 | ||
41528 | wx_cv_gcc31=yes | |
41529 | ||
41530 | else | |
41531 | echo "$as_me: failed program was:" >&5 | |
41532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41533 | ||
41534 | ||
41535 | wx_cv_gcc31=no | |
41536 | ||
41537 | ||
41538 | fi | |
ac1cb8d3 | 41539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41540 | |
41541 | fi | |
41542 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
41543 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
41544 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
41545 | |
41546 | D='$' | |
41547 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
41548 | #!/bin/sh |
41549 | #----------------------------------------------------------------------------- | |
41550 | #-- Name: distrib/mac/shared-ld-sh | |
41551 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
41552 | #-- Author: Gilles Depeyrot | |
41553 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
41554 | #-- Licence: any use permitted | |
41555 | #----------------------------------------------------------------------------- | |
41556 | ||
41557 | verbose=0 | |
41558 | args="" | |
41559 | objects="" | |
41560 | linking_flag="-dynamiclib" | |
41561 | ||
473276a9 VS |
41562 | while test ${D}# -gt 0; do |
41563 | case ${D}1 in | |
a848cd7e SC |
41564 | |
41565 | -v) | |
41566 | verbose=1 | |
41567 | ;; | |
41568 | ||
41569 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
41570 | # collect these options and values | |
473276a9 | 41571 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
41572 | shift |
41573 | ;; | |
41574 | ||
41575 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
41576 | # collect these options | |
473276a9 | 41577 | args="${D}{args} ${D}1" |
a848cd7e SC |
41578 | ;; |
41579 | ||
41580 | -dynamiclib|-bundle) | |
473276a9 | 41581 | linking_flag="${D}1" |
a848cd7e SC |
41582 | ;; |
41583 | ||
41584 | -*) | |
473276a9 | 41585 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
41586 | exit 1 |
41587 | ;; | |
41588 | ||
41589 | *.o | *.a | *.dylib) | |
41590 | # collect object files | |
473276a9 | 41591 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
41592 | ;; |
41593 | ||
41594 | *) | |
473276a9 | 41595 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
41596 | exit 1 |
41597 | ;; | |
41598 | ||
41599 | esac | |
41600 | shift | |
41601 | done | |
41602 | ||
41603 | # | |
41604 | # Link one module containing all the others | |
41605 | # | |
473276a9 VS |
41606 | if test ${D}{verbose} = 1; then |
41607 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 41608 | fi |
473276a9 VS |
41609 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
41610 | status=${D}? | |
41611 | if test ${D}{status} != 0; then | |
41612 | exit ${D}{status} | |
a848cd7e SC |
41613 | fi |
41614 | ||
41615 | # | |
41616 | # Link the shared library from the single module created | |
41617 | # | |
473276a9 VS |
41618 | if test ${D}{verbose} = 1; then |
41619 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 41620 | fi |
473276a9 VS |
41621 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
41622 | status=${D}? | |
41623 | if test ${D}{status} != 0; then | |
41624 | exit ${D}{status} | |
a848cd7e SC |
41625 | fi |
41626 | ||
41627 | # | |
41628 | # Remove intermediate module | |
41629 | # | |
473276a9 | 41630 | rm -f master.${D}${D}.o |
a848cd7e SC |
41631 | |
41632 | exit 0 | |
41633 | EOF | |
473276a9 | 41634 | |
a848cd7e SC |
41635 | chmod +x shared-ld-sh |
41636 | ||
41637 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
41638 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
41639 | SHARED_LD_CXX="$SHARED_LD_CC" | |
41640 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
41641 | else | |
41642 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
41643 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
41644 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
41645 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
41646 | fi | |
41647 | ||
41648 | PIC_FLAG="-dynamic -fPIC" | |
41649 | ;; | |
41650 | ||
41651 | *-*-aix* ) | |
41652 | if test "x$GCC" != "xyes"; then | |
41653 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
41654 | set dummy makeC++SharedLib; ac_word=$2 | |
41655 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41657 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
41658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41659 | else | |
41660 | if test -n "$AIX_CXX_LD"; then | |
41661 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
41662 | else | |
41663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41664 | for as_dir in $PATH | |
41665 | do | |
41666 | IFS=$as_save_IFS | |
41667 | test -z "$as_dir" && as_dir=. | |
41668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41669 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41670 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
41671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41672 | break 2 | |
41673 | fi | |
41674 | done | |
41675 | done | |
41676 | ||
41677 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
41678 | fi | |
41679 | fi | |
41680 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
41681 | if test -n "$AIX_CXX_LD"; then | |
41682 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
41683 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
41684 | else | |
41685 | echo "$as_me:$LINENO: result: no" >&5 | |
41686 | echo "${ECHO_T}no" >&6 | |
41687 | fi | |
41688 | ||
41689 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
41690 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
41691 | fi | |
41692 | ;; | |
41693 | ||
41694 | *-*-beos* ) | |
1e9e8aba DE |
41695 | SHARED_LD_CC="${LD} -nostart -o" |
41696 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
41697 | ;; |
41698 | ||
41699 | *-*-irix* ) | |
41700 | if test "x$GCC" != "xyes"; then | |
41701 | PIC_FLAG="-KPIC" | |
41702 | fi | |
41703 | ;; | |
41704 | ||
41705 | *-*-cygwin* | *-*-mingw32* ) | |
41706 | PIC_FLAG="" | |
1e9e8aba DE |
41707 | SHARED_LD_CC="\$(CC) -shared -o" |
41708 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
41709 | ;; |
41710 | ||
41711 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
41712 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
41713 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 41714 | PIC_FLAG="" |
473276a9 VS |
41715 | |
41716 | D='$' | |
41717 | cat <<EOF >dllar.sh | |
41718 | #!/bin/sh | |
41719 | # | |
41720 | # dllar - a tool to build both a .dll and an .a file | |
41721 | # from a set of object (.o) files for EMX/OS2. | |
41722 | # | |
41723 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
41724 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
41725 | # | |
41726 | # This script will accept a set of files on the command line. | |
41727 | # All the public symbols from the .o files will be exported into | |
41728 | # a .DEF file, then linker will be run (through gcc) against them to | |
41729 | # build a shared library consisting of all given .o files. All libraries | |
41730 | # (.a) will be first decompressed into component .o files then act as | |
41731 | # described above. You can optionally give a description (-d "description") | |
41732 | # which will be put into .DLL. To see the list of accepted options (as well | |
41733 | # as command-line format) simply run this program without options. The .DLL | |
41734 | # is built to be imported by name (there is no guarantee that new versions | |
41735 | # of the library you build will have same ordinals for same symbols). | |
41736 | # | |
41737 | # dllar is free software; you can redistribute it and/or modify | |
41738 | # it under the terms of the GNU General Public License as published by | |
41739 | # the Free Software Foundation; either version 2, or (at your option) | |
41740 | # any later version. | |
41741 | # | |
41742 | # dllar is distributed in the hope that it will be useful, | |
41743 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
41744 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
41745 | # GNU General Public License for more details. | |
41746 | # | |
41747 | # You should have received a copy of the GNU General Public License | |
41748 | # along with dllar; see the file COPYING. If not, write to the Free | |
41749 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
41750 | # 02111-1307, USA. | |
41751 | ||
41752 | # To successfuly run this program you will need: | |
41753 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
41754 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
41755 | # - gcc | |
41756 | # (used to build the .dll) | |
41757 | # - emxexp | |
41758 | # (used to create .def file from .o files) | |
41759 | # - emximp | |
41760 | # (used to create .a file from .def file) | |
41761 | # - GNU text utilites (cat, sort, uniq) | |
41762 | # used to process emxexp output | |
41763 | # - GNU file utilities (mv, rm) | |
41764 | # - GNU sed | |
41765 | # - lxlite (optional, see flag below) | |
41766 | # (used for general .dll cleanup) | |
41767 | # | |
41768 | ||
41769 | flag_USE_LXLITE=1; | |
41770 | ||
41771 | # | |
41772 | # helper functions | |
41773 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
41774 | # second argument (suffix to remove) is given | |
41775 | basnam(){ | |
41776 | case ${D}# in | |
41777 | 1) | |
1e9e8aba | 41778 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
41779 | ;; |
41780 | 2) | |
41781 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
41782 | ;; | |
41783 | *) | |
41784 | echo "error in basnam ${D}*" | |
41785 | exit 8 | |
41786 | ;; | |
41787 | esac | |
41788 | } | |
41789 | ||
41790 | # Cleanup temporary files and output | |
41791 | CleanUp() { | |
41792 | cd ${D}curDir | |
41793 | for i in ${D}inputFiles ; do | |
41794 | case ${D}i in | |
41795 | *!) | |
41796 | rm -rf \`basnam ${D}i !\` | |
41797 | ;; | |
41798 | *) | |
41799 | ;; | |
41800 | esac | |
41801 | done | |
41802 | ||
41803 | # Kill result in case of failure as there is just to many stupid make/nmake | |
41804 | # things out there which doesn't do this. | |
1e9e8aba | 41805 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
41806 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
41807 | fi | |
41808 | } | |
41809 | ||
41810 | # Print usage and exit script with rc=1. | |
41811 | PrintHelp() { | |
b1d22ded DE |
41812 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
41813 | echo ' [-name-mangler-script script.sh]' | |
41814 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
41815 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
41816 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 41817 | echo ' [*.o] [*.a]' |
473276a9 VS |
41818 | echo '*> "output_file" should have no extension.' |
41819 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
41820 | echo ' The import library name is derived from this and is set to "name".a,' | |
41821 | echo ' unless overridden by -import' | |
41822 | echo '*> "importlib_name" should have no extension.' | |
41823 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
41824 | echo ' This name is used as the import library name and may be longer and' | |
41825 | echo ' more descriptive than the DLL name which has to follow the old ' | |
41826 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
41827 | echo '*> "script.sh may be given to override the output_file name by a' |
41828 | echo ' different name. It is mainly useful if the regular make process' | |
41829 | echo ' of some package does not take into account OS/2 restriction of' | |
41830 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
41831 | echo ' supposed to procude a shorter name as output. The script should' | |
41832 | echo ' expect to get importlib_name without extension and should produce' | |
41833 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
41834 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
41835 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
41836 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
41837 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
41838 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
41839 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
41840 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
41841 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 41842 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 41843 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 41844 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 41845 | echo ' C runtime DLLs.' |
b1d22ded | 41846 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
41847 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
41848 | echo ' unchanged to GCC at the end of command line.' | |
41849 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
41850 | echo ' the basename for DLL and import library will be set to library name,' | |
41851 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
41852 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
41853 | echo ' library will be renamed into gcc_s.a.' | |
41854 | echo '--------' | |
41855 | echo 'Example:' | |
41856 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
41857 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
41858 | CleanUp | |
41859 | exit 1 | |
41860 | } | |
41861 | ||
41862 | # Execute a command. | |
41863 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
41864 | # @Uses Whatever CleanUp() uses. | |
41865 | doCommand() { | |
41866 | echo "${D}*" | |
41867 | eval ${D}* | |
41868 | rcCmd=${D}? | |
41869 | ||
1e9e8aba | 41870 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
41871 | echo "command failed, exit code="${D}rcCmd |
41872 | CleanUp | |
41873 | exit ${D}rcCmd | |
41874 | fi | |
41875 | } | |
41876 | ||
41877 | # main routine | |
41878 | # setup globals | |
41879 | cmdLine=${D}* | |
41880 | outFile="" | |
41881 | outimpFile="" | |
41882 | inputFiles="" | |
b1d22ded | 41883 | renameScript="" |
473276a9 VS |
41884 | description="" |
41885 | CC=gcc.exe | |
41886 | CFLAGS="-s -Zcrtdll" | |
41887 | EXTRA_CFLAGS="" | |
41888 | EXPORT_BY_ORDINALS=0 | |
41889 | exclude_symbols="" | |
41890 | library_flags="" | |
41891 | curDir=\`pwd\` | |
41892 | curDirS=curDir | |
41893 | case ${D}curDirS in | |
41894 | */) | |
41895 | ;; | |
41896 | *) | |
41897 | curDirS=${D}{curDirS}"/" | |
41898 | ;; | |
41899 | esac | |
41900 | # Parse commandline | |
41901 | libsToLink=0 | |
b1d22ded | 41902 | omfLinking=0 |
1e9e8aba | 41903 | while [ ${D}1 ]; do |
473276a9 VS |
41904 | case ${D}1 in |
41905 | -ord*) | |
41906 | EXPORT_BY_ORDINALS=1; | |
41907 | ;; | |
41908 | -o*) | |
41909 | shift | |
41910 | outFile=${D}1 | |
41911 | ;; | |
41912 | -i*) | |
41913 | shift | |
41914 | outimpFile=${D}1 | |
41915 | ;; | |
b1d22ded DE |
41916 | -name-mangler-script) |
41917 | shift | |
41918 | renameScript=${D}1 | |
41919 | ;; | |
473276a9 VS |
41920 | -d*) |
41921 | shift | |
41922 | description=${D}1 | |
41923 | ;; | |
41924 | -f*) | |
41925 | shift | |
41926 | CFLAGS=${D}1 | |
41927 | ;; | |
41928 | -c*) | |
41929 | shift | |
41930 | CC=${D}1 | |
41931 | ;; | |
41932 | -h*) | |
41933 | PrintHelp | |
41934 | ;; | |
41935 | -ex*) | |
41936 | shift | |
41937 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
41938 | ;; | |
41939 | -libf*) | |
41940 | shift | |
41941 | library_flags=${D}{library_flags}${D}1" " | |
41942 | ;; | |
41943 | -nocrt*) | |
41944 | CFLAGS="-s" | |
41945 | ;; | |
41946 | -nolxl*) | |
41947 | flag_USE_LXLITE=0 | |
41948 | ;; | |
41949 | -* | /*) | |
41950 | case ${D}1 in | |
41951 | -L* | -l*) | |
41952 | libsToLink=1 | |
41953 | ;; | |
b1d22ded DE |
41954 | -Zomf) |
41955 | omfLinking=1 | |
41956 | ;; | |
473276a9 VS |
41957 | *) |
41958 | ;; | |
41959 | esac | |
41960 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
41961 | ;; | |
b1d22ded DE |
41962 | *.dll) |
41963 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
41964 | if [ ${D}omfLinking -eq 1 ]; then | |
41965 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
41966 | else | |
41967 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
41968 | fi | |
41969 | ;; | |
473276a9 VS |
41970 | *) |
41971 | found=0; | |
1e9e8aba | 41972 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
41973 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
41974 | else | |
41975 | for file in ${D}1 ; do | |
1e9e8aba | 41976 | if [ -f ${D}file ]; then |
473276a9 VS |
41977 | inputFiles="${D}{inputFiles} ${D}file" |
41978 | found=1 | |
41979 | fi | |
41980 | done | |
1e9e8aba | 41981 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
41982 | echo "ERROR: No file(s) found: "${D}1 |
41983 | exit 8 | |
41984 | fi | |
41985 | fi | |
41986 | ;; | |
41987 | esac | |
41988 | shift | |
41989 | done # iterate cmdline words | |
41990 | ||
41991 | # | |
1e9e8aba | 41992 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
41993 | echo "dllar: no input files" |
41994 | PrintHelp | |
41995 | fi | |
41996 | ||
41997 | # Now extract all .o files from .a files | |
41998 | newInputFiles="" | |
41999 | for file in ${D}inputFiles ; do | |
42000 | case ${D}file in | |
42001 | *.a | *.lib) | |
42002 | case ${D}file in | |
42003 | *.a) | |
42004 | suffix=".a" | |
42005 | AR="ar" | |
42006 | ;; | |
42007 | *.lib) | |
42008 | suffix=".lib" | |
42009 | AR="emxomfar" | |
42010 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
42011 | ;; | |
42012 | *) | |
42013 | ;; | |
42014 | esac | |
42015 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
42016 | mkdir ${D}dirname | |
1e9e8aba | 42017 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
42018 | echo "Failed to create subdirectory ./${D}dirname" |
42019 | CleanUp | |
42020 | exit 8; | |
42021 | fi | |
42022 | # Append '!' to indicate archive | |
42023 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
42024 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
42025 | cd ${D}curDir | |
42026 | found=0; | |
42027 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 42028 | if [ -f ${D}subfile ]; then |
473276a9 | 42029 | found=1 |
1e9e8aba | 42030 | if [ -s ${D}subfile ]; then |
473276a9 VS |
42031 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
42032 | newInputFiles="${D}newInputFiles ${D}subfile" | |
42033 | fi | |
42034 | fi | |
42035 | done | |
1e9e8aba DE |
42036 | if [ ${D}found -eq 0 ]; then |
42037 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
42038 | fi |
42039 | ;; | |
42040 | *) | |
42041 | newInputFiles="${D}{newInputFiles} ${D}file" | |
42042 | ;; | |
42043 | esac | |
42044 | done | |
42045 | inputFiles="${D}newInputFiles" | |
42046 | ||
42047 | # Output filename(s). | |
42048 | do_backup=0; | |
1e9e8aba | 42049 | if [ -z ${D}outFile ]; then |
473276a9 VS |
42050 | do_backup=1; |
42051 | set outFile ${D}inputFiles; outFile=${D}2 | |
42052 | fi | |
42053 | ||
42054 | # If it is an archive, remove the '!' and the '_%' suffixes | |
42055 | case ${D}outFile in | |
42056 | *_%!) | |
42057 | outFile=\`basnam ${D}outFile _%!\` | |
42058 | ;; | |
42059 | *) | |
42060 | ;; | |
42061 | esac | |
42062 | case ${D}outFile in | |
42063 | *.dll) | |
42064 | outFile=\`basnam ${D}outFile .dll\` | |
42065 | ;; | |
42066 | *.DLL) | |
42067 | outFile=\`basnam ${D}outFile .DLL\` | |
42068 | ;; | |
42069 | *.o) | |
42070 | outFile=\`basnam ${D}outFile .o\` | |
42071 | ;; | |
42072 | *.obj) | |
42073 | outFile=\`basnam ${D}outFile .obj\` | |
42074 | ;; | |
42075 | *.a) | |
42076 | outFile=\`basnam ${D}outFile .a\` | |
42077 | ;; | |
42078 | *.lib) | |
42079 | outFile=\`basnam ${D}outFile .lib\` | |
42080 | ;; | |
42081 | *) | |
42082 | ;; | |
42083 | esac | |
42084 | case ${D}outimpFile in | |
42085 | *.a) | |
42086 | outimpFile=\`basnam ${D}outimpFile .a\` | |
42087 | ;; | |
42088 | *.lib) | |
42089 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
42090 | ;; | |
42091 | *) | |
42092 | ;; | |
42093 | esac | |
1e9e8aba | 42094 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
42095 | outimpFile=${D}outFile |
42096 | fi | |
42097 | defFile="${D}{outFile}.def" | |
42098 | arcFile="${D}{outimpFile}.a" | |
42099 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
42100 | |
42101 | #create ${D}dllFile as something matching 8.3 restrictions, | |
42102 | if [ -z ${D}renameScript ] ; then | |
42103 | dllFile="${D}outFile" | |
42104 | else | |
42105 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
42106 | fi | |
473276a9 | 42107 | |
1e9e8aba DE |
42108 | if [ ${D}do_backup -ne 0 ] ; then |
42109 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
42110 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
42111 | fi | |
1e9e8aba | 42112 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
42113 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
42114 | fi | |
42115 | fi | |
42116 | ||
42117 | # Extract public symbols from all the object files. | |
42118 | tmpdefFile=${D}{defFile}_% | |
42119 | rm -f ${D}tmpdefFile | |
42120 | for file in ${D}inputFiles ; do | |
42121 | case ${D}file in | |
42122 | *!) | |
42123 | ;; | |
42124 | *) | |
42125 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
42126 | ;; | |
42127 | esac | |
42128 | done | |
42129 | ||
42130 | # Create the def file. | |
42131 | rm -f ${D}defFile | |
42132 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
42133 | dllFile="${D}{dllFile}.dll" |
42134 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 42135 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
42136 | fi |
42137 | echo "EXPORTS" >> ${D}defFile | |
42138 | ||
42139 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
42140 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
42141 | ||
42142 | # Checks if the export is ok or not. | |
42143 | for word in ${D}exclude_symbols; do | |
42144 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
42145 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
42146 | done | |
42147 | ||
42148 | ||
1e9e8aba DE |
42149 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
42150 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
42151 | sed ' |
42152 | N | |
42153 | : loop | |
1e9e8aba | 42154 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
42155 | t loop |
42156 | ' > ${D}{tmpdefFile}% | |
42157 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
42158 | else | |
42159 | rm -f ${D}{tmpdefFile}% | |
42160 | fi | |
42161 | cat ${D}tmpdefFile >> ${D}defFile | |
42162 | rm -f ${D}tmpdefFile | |
42163 | ||
42164 | # Do linking, create implib, and apply lxlite. | |
42165 | gccCmdl=""; | |
42166 | for file in ${D}inputFiles ; do | |
42167 | case ${D}file in | |
42168 | *!) | |
42169 | ;; | |
42170 | *) | |
42171 | gccCmdl="${D}gccCmdl ${D}file" | |
42172 | ;; | |
42173 | esac | |
42174 | done | |
42175 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
42176 | touch "${D}{outFile}.dll" | |
42177 | ||
42178 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 42179 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 42180 | add_flags=""; |
1e9e8aba | 42181 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
42182 | add_flags="-ynd" |
42183 | fi | |
42184 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
42185 | fi | |
42186 | doCommand "emxomf -s -l ${D}arcFile" | |
42187 | ||
42188 | # Successful exit. | |
42189 | CleanUp 1 | |
42190 | exit 0 | |
42191 | EOF | |
42192 | ||
42193 | chmod +x dllar.sh | |
a848cd7e SC |
42194 | ;; |
42195 | ||
1e9e8aba | 42196 | powerpc-apple-macos* | \ |
a848cd7e SC |
42197 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
42198 | *-*-sunos4* | \ | |
42199 | *-*-osf* | \ | |
42200 | *-*-dgux5* | \ | |
42201 | *-*-sysv5* ) | |
42202 | ;; | |
42203 | ||
42204 | *) | |
42205 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
42206 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
42207 | { (exit 1); exit 1; }; } | |
42208 | esac | |
42209 | ||
2057db16 VS |
42210 | if test "x$PIC_FLAG" != "x" ; then |
42211 | PIC_FLAG="$PIC_FLAG -DPIC" | |
42212 | fi | |
42213 | ||
a848cd7e SC |
42214 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
42215 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
42216 | fi | |
42217 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
42218 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
42219 | fi | |
42220 | ||
42221 | ||
42222 | ||
42223 | ||
42224 | ||
42225 | ||
42226 | ||
42227 | ||
42228 | USE_SOVERSION=0 | |
42229 | USE_SOVERLINUX=0 | |
42230 | USE_SOVERSOLARIS=0 | |
42231 | USE_SOSYMLINKS=0 | |
42232 | USE_MACVERSION=0 | |
42233 | SONAME_FLAG= | |
42234 | ||
42235 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 42236 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
42237 | SONAME_FLAG="-Wl,-soname," |
42238 | USE_SOVERSION=1 | |
42239 | USE_SOVERLINUX=1 | |
42240 | USE_SOSYMLINKS=1 | |
42241 | ;; | |
42242 | ||
a848cd7e SC |
42243 | *-*-solaris2* ) |
42244 | SONAME_FLAG="-h " | |
42245 | USE_SOVERSION=1 | |
42246 | USE_SOVERSOLARIS=1 | |
42247 | USE_SOSYMLINKS=1 | |
42248 | ;; | |
42249 | ||
42250 | *-*-darwin* ) | |
42251 | USE_MACVERSION=1 | |
42252 | USE_SOVERSION=1 | |
42253 | USE_SOSYMLINKS=1 | |
42254 | ;; | |
42255 | esac | |
42256 | ||
42257 | ||
42258 | ||
42259 | ||
42260 | ||
42261 | ||
42262 | ||
42263 | ||
42264 | ||
42265 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
42266 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
42267 | DEPS_TRACKING=0 | |
42268 | ||
42269 | if test "x$GCC" = "xyes"; then | |
42270 | DEPSMODE=gcc | |
42271 | DEPS_TRACKING=1 | |
42272 | case "${BAKEFILE_HOST}" in | |
42273 | powerpc-*-darwin* ) | |
42274 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
42275 | ;; | |
42276 | * ) | |
42277 | DEPSFLAG_GCC="-MMD" | |
42278 | ;; | |
42279 | esac | |
42280 | echo "$as_me:$LINENO: result: gcc" >&5 | |
42281 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 42282 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 42283 | DEPSMODE=mwcc |
b1d22ded | 42284 | DEPS_TRACKING=1 |
81f90336 | 42285 | DEPSFLAG_MWCC="-MM" |
b1d22ded DE |
42286 | echo "$as_me:$LINENO: result: mwcc" >&5 |
42287 | echo "${ECHO_T}mwcc" >&6 | |
a848cd7e SC |
42288 | else |
42289 | echo "$as_me:$LINENO: result: none" >&5 | |
42290 | echo "${ECHO_T}none" >&6 | |
42291 | fi | |
42292 | ||
42293 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
42294 | |
42295 | D='$' | |
42296 | cat <<EOF >bk-deps | |
a848cd7e SC |
42297 | #!/bin/sh |
42298 | ||
42299 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
42300 | # script. It is used to track C/C++ files dependencies in portable way. | |
42301 | # | |
42302 | # Permission is given to use this file in any way. | |
42303 | ||
473276a9 | 42304 | DEPSMODE=${DEPSMODE} |
a848cd7e | 42305 | DEPSDIR=.deps |
473276a9 | 42306 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
81f90336 | 42307 | DEPSFLAG_MWCC="${DEPSFLAG_MWCC}" |
a848cd7e | 42308 | |
473276a9 | 42309 | mkdir -p ${D}DEPSDIR |
a848cd7e | 42310 | |
473276a9 VS |
42311 | if test ${D}DEPSMODE = gcc ; then |
42312 | ${D}* ${D}{DEPSFLAG_GCC} | |
42313 | status=${D}? | |
42314 | if test ${D}{status} != 0 ; then | |
42315 | exit ${D}{status} | |
a848cd7e SC |
42316 | fi |
42317 | # move created file to the location we want it in: | |
473276a9 VS |
42318 | while test ${D}# -gt 0; do |
42319 | case "${D}1" in | |
a848cd7e SC |
42320 | -o ) |
42321 | shift | |
473276a9 | 42322 | objfile=${D}1 |
a848cd7e SC |
42323 | ;; |
42324 | -* ) | |
42325 | ;; | |
42326 | * ) | |
473276a9 | 42327 | srcfile=${D}1 |
a848cd7e SC |
42328 | ;; |
42329 | esac | |
42330 | shift | |
42331 | done | |
1e9e8aba DE |
42332 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
42333 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
42334 | if test -f ${D}depfile ; then |
42335 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
42336 | rm -f ${D}depfile | |
a848cd7e | 42337 | else |
1e9e8aba | 42338 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
42339 | if test -f ${D}depfile ; then |
42340 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
42341 | rm -f ${D}depfile | |
a848cd7e SC |
42342 | fi |
42343 | fi | |
42344 | exit 0 | |
81f90336 MW |
42345 | elif test ${D}DEPSMODE = mwcc ; then |
42346 | ${D}* | |
42347 | status=${D}? | |
42348 | if test ${D}{status} != 0 ; then | |
42349 | exit ${D}{status} | |
42350 | fi | |
42351 | # Run mwcc again with -MM and redirect into the dep file we want | |
42352 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
42353 | prevarg= | |
42354 | for arg in ${D}* ; do | |
42355 | if test "${D}prevarg" = "-o"; then | |
42356 | objfile=${D}arg | |
42357 | else | |
42358 | case "${D}arg" in | |
42359 | -* ) | |
42360 | ;; | |
42361 | * ) | |
42362 | srcfile=${D}arg | |
42363 | ;; | |
42364 | esac | |
42365 | fi | |
42366 | prevarg="${D}arg" | |
42367 | done | |
42368 | ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d | |
42369 | exit 0 | |
a848cd7e | 42370 | else |
473276a9 VS |
42371 | ${D}* |
42372 | exit ${D}? | |
a848cd7e SC |
42373 | fi |
42374 | EOF | |
473276a9 | 42375 | |
a848cd7e SC |
42376 | chmod +x bk-deps |
42377 | fi | |
42378 | ||
42379 | ||
42380 | ||
42381 | ||
42382 | RESCOMP= | |
42383 | SETFILE= | |
42384 | ||
42385 | case ${BAKEFILE_HOST} in | |
42386 | *-*-cygwin* | *-*-mingw32* ) | |
42387 | if test "$build" != "$host" ; then | |
42388 | RESCOMP=$host_alias-windres | |
42389 | else | |
42390 | # Extract the first word of "windres", so it can be a program name with args. | |
42391 | set dummy windres; ac_word=$2 | |
42392 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42393 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42394 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
42395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42396 | else | |
42397 | if test -n "$RESCOMP"; then | |
42398 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
42399 | else | |
42400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42401 | for as_dir in $PATH | |
42402 | do | |
42403 | IFS=$as_save_IFS | |
42404 | test -z "$as_dir" && as_dir=. | |
42405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42406 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42407 | ac_cv_prog_RESCOMP="windres" | |
42408 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42409 | break 2 | |
42410 | fi | |
42411 | done | |
42412 | done | |
42413 | ||
42414 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
42415 | fi | |
42416 | fi | |
42417 | RESCOMP=$ac_cv_prog_RESCOMP | |
42418 | if test -n "$RESCOMP"; then | |
42419 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
42420 | echo "${ECHO_T}$RESCOMP" >&6 | |
42421 | else | |
42422 | echo "$as_me:$LINENO: result: no" >&5 | |
42423 | echo "${ECHO_T}no" >&6 | |
42424 | fi | |
42425 | ||
42426 | fi | |
42427 | ;; | |
42428 | ||
1e9e8aba | 42429 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
42430 | # Extract the first word of "Rez", so it can be a program name with args. |
42431 | set dummy Rez; ac_word=$2 | |
42432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42434 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
42435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42436 | else | |
42437 | if test -n "$RESCOMP"; then | |
42438 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
42439 | else | |
42440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42441 | for as_dir in $PATH | |
42442 | do | |
42443 | IFS=$as_save_IFS | |
42444 | test -z "$as_dir" && as_dir=. | |
42445 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42447 | ac_cv_prog_RESCOMP="Rez" | |
42448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42449 | break 2 | |
42450 | fi | |
42451 | done | |
42452 | done | |
42453 | ||
42454 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
42455 | fi | |
42456 | fi | |
42457 | RESCOMP=$ac_cv_prog_RESCOMP | |
42458 | if test -n "$RESCOMP"; then | |
42459 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
42460 | echo "${ECHO_T}$RESCOMP" >&6 | |
42461 | else | |
42462 | echo "$as_me:$LINENO: result: no" >&5 | |
42463 | echo "${ECHO_T}no" >&6 | |
42464 | fi | |
42465 | ||
42466 | # Extract the first word of "SetFile", so it can be a program name with args. | |
42467 | set dummy SetFile; ac_word=$2 | |
42468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42470 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
42471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42472 | else | |
42473 | if test -n "$SETFILE"; then | |
42474 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
42475 | else | |
42476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42477 | for as_dir in $PATH | |
42478 | do | |
42479 | IFS=$as_save_IFS | |
42480 | test -z "$as_dir" && as_dir=. | |
42481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42483 | ac_cv_prog_SETFILE="SetFile" | |
42484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42485 | break 2 | |
42486 | fi | |
42487 | done | |
42488 | done | |
42489 | ||
42490 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
42491 | fi | |
42492 | fi | |
42493 | SETFILE=$ac_cv_prog_SETFILE | |
42494 | if test -n "$SETFILE"; then | |
42495 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
42496 | echo "${ECHO_T}$SETFILE" >&6 | |
42497 | else | |
42498 | echo "$as_me:$LINENO: result: no" >&5 | |
42499 | echo "${ECHO_T}no" >&6 | |
42500 | fi | |
42501 | ||
42502 | ;; | |
42503 | esac | |
42504 | ||
42505 | ||
42506 | ||
42507 | ||
42508 | ||
fbb7dfff | 42509 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.8" |
a848cd7e | 42510 | |
dcc1b6ad | 42511 | |
fbb7dfff | 42512 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8" |
a848cd7e | 42513 | |
646b6ec1 | 42514 | |
74b84332 | 42515 | |
a848cd7e SC |
42516 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
42517 | if test "${enable_precomp_headers+set}" = set; then | |
42518 | enableval="$enable_precomp_headers" | |
42519 | bk_use_pch="$enableval" | |
42520 | fi; | |
42521 | ||
42522 | GCC_PCH=0 | |
42523 | ||
42524 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
42525 | if test "x$GCC" = "xyes"; then | |
42526 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
42527 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
42528 | cat >conftest.$ac_ext <<_ACEOF | |
42529 | /* confdefs.h. */ | |
42530 | _ACEOF | |
42531 | cat confdefs.h >>conftest.$ac_ext | |
42532 | cat >>conftest.$ac_ext <<_ACEOF | |
42533 | /* end confdefs.h. */ | |
42534 | ||
42535 | int | |
42536 | main () | |
42537 | { | |
42538 | ||
42539 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
42540 | #error "no pch support" | |
42541 | #endif | |
42542 | #if (__GNUC__ < 3) | |
42543 | #error "no pch support" | |
42544 | #endif | |
42545 | #if (__GNUC__ == 3) && \ | |
42546 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
42547 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
42548 | #error "no pch support" | |
42549 | #endif | |
42550 | ||
42551 | ; | |
42552 | return 0; | |
42553 | } | |
42554 | _ACEOF | |
42555 | rm -f conftest.$ac_objext | |
42556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42557 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42558 | ac_status=$? |
ac1cb8d3 VS |
42559 | grep -v '^ *+' conftest.er1 >conftest.err |
42560 | rm -f conftest.er1 | |
42561 | cat conftest.err >&5 | |
a848cd7e SC |
42562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42563 | (exit $ac_status); } && | |
9dd0f6c2 | 42564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42566 | (eval $ac_try) 2>&5 | |
42567 | ac_status=$? | |
42568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42569 | (exit $ac_status); }; } && | |
42570 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42572 | (eval $ac_try) 2>&5 | |
42573 | ac_status=$? | |
42574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42575 | (exit $ac_status); }; }; then | |
42576 | ||
42577 | echo "$as_me:$LINENO: result: yes" >&5 | |
42578 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
42579 | GCC_PCH=1 |
42580 | ||
42581 | else | |
42582 | echo "$as_me: failed program was:" >&5 | |
42583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42584 | ||
42585 | ||
42586 | echo "$as_me:$LINENO: result: no" >&5 | |
42587 | echo "${ECHO_T}no" >&6 | |
42588 | ||
42589 | fi | |
ac1cb8d3 | 42590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42591 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
42592 | |
42593 | D='$' | |
42594 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
42595 | #!/bin/sh |
42596 | ||
42597 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
42598 | # script. It is used to generated precompiled headers. | |
42599 | # | |
42600 | # Permission is given to use this file in any way. | |
42601 | ||
1e9e8aba DE |
42602 | outfile="${D}{1}" |
42603 | header="${D}{2}" | |
a848cd7e SC |
42604 | shift |
42605 | shift | |
42606 | ||
42607 | compiler= | |
42608 | headerfile= | |
1e9e8aba DE |
42609 | while test ${D}{#} -gt 0; do |
42610 | case "${D}{1}" in | |
a848cd7e | 42611 | -I* ) |
1e9e8aba DE |
42612 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
42613 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
42614 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
42615 | fi |
42616 | ;; | |
42617 | esac | |
1e9e8aba | 42618 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
42619 | shift |
42620 | done | |
42621 | ||
1e9e8aba DE |
42622 | if test "x${D}{headerfile}" = "x" ; then |
42623 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 42624 | else |
1e9e8aba DE |
42625 | if test -f ${D}{outfile} ; then |
42626 | rm -f ${D}{outfile} | |
a848cd7e | 42627 | else |
1e9e8aba | 42628 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 42629 | fi |
1e9e8aba | 42630 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
42631 | mkdir -p .deps |
42632 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
42633 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
42634 | exit ${D}{?} | |
a848cd7e SC |
42635 | fi |
42636 | EOF | |
1e9e8aba | 42637 | |
a848cd7e SC |
42638 | chmod +x bk-make-pch |
42639 | fi | |
42640 | fi | |
42641 | fi | |
42642 | ||
42643 | ||
42644 | ||
a848cd7e SC |
42645 | COND_BUILD_DEBUG="#" |
42646 | if test "x$BUILD" = "xdebug" ; then | |
42647 | COND_BUILD_DEBUG="" | |
42648 | fi | |
42649 | ||
42650 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
42651 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
42652 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
42653 | fi | |
42654 | ||
42655 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
42656 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
42657 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
42658 | fi | |
42659 | ||
42660 | COND_BUILD_DEBUG_UNICODE_0="#" | |
42661 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
42662 | COND_BUILD_DEBUG_UNICODE_0="" | |
42663 | fi | |
42664 | ||
42665 | COND_BUILD_DEBUG_UNICODE_1="#" | |
42666 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
42667 | COND_BUILD_DEBUG_UNICODE_1="" | |
42668 | fi | |
42669 | ||
42670 | COND_BUILD_RELEASE="#" | |
42671 | if test "x$BUILD" = "xrelease" ; then | |
42672 | COND_BUILD_RELEASE="" | |
42673 | fi | |
42674 | ||
42675 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
42676 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
42677 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
42678 | fi | |
42679 | ||
42680 | COND_BUILD_RELEASE_UNICODE_0="#" | |
42681 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
42682 | COND_BUILD_RELEASE_UNICODE_0="" | |
42683 | fi | |
42684 | ||
42685 | COND_BUILD_RELEASE_UNICODE_1="#" | |
42686 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
42687 | COND_BUILD_RELEASE_UNICODE_1="" | |
42688 | fi | |
42689 | ||
42690 | COND_DEBUG_FLAG_1="#" | |
42691 | if test "x$DEBUG_FLAG" = "x1" ; then | |
42692 | COND_DEBUG_FLAG_1="" | |
42693 | fi | |
42694 | ||
42695 | COND_DEBUG_INFO_0="#" | |
42696 | if test "x$DEBUG_INFO" = "x0" ; then | |
42697 | COND_DEBUG_INFO_0="" | |
42698 | fi | |
42699 | ||
42700 | COND_DEBUG_INFO_1="#" | |
42701 | if test "x$DEBUG_INFO" = "x1" ; then | |
42702 | COND_DEBUG_INFO_1="" | |
42703 | fi | |
42704 | ||
42705 | COND_DEPS_TRACKING_0="#" | |
42706 | if test "x$DEPS_TRACKING" = "x0" ; then | |
42707 | COND_DEPS_TRACKING_0="" | |
42708 | fi | |
42709 | ||
42710 | COND_DEPS_TRACKING_1="#" | |
42711 | if test "x$DEPS_TRACKING" = "x1" ; then | |
42712 | COND_DEPS_TRACKING_1="" | |
42713 | fi | |
42714 | ||
42715 | COND_GCC_PCH_1="#" | |
42716 | if test "x$GCC_PCH" = "x1" ; then | |
42717 | COND_GCC_PCH_1="" | |
42718 | fi | |
42719 | ||
42720 | COND_MONOLITHIC_0="#" | |
42721 | if test "x$MONOLITHIC" = "x0" ; then | |
42722 | COND_MONOLITHIC_0="" | |
42723 | fi | |
42724 | ||
42725 | COND_MONOLITHIC_0_SHARED_0="#" | |
42726 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
42727 | COND_MONOLITHIC_0_SHARED_0="" | |
42728 | fi | |
42729 | ||
42730 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
42731 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
42732 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
42733 | fi | |
42734 | ||
90970d69 DE |
42735 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
42736 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
42737 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
42738 | fi | |
42739 | ||
a848cd7e SC |
42740 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
42741 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42742 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
42743 | fi | |
42744 | ||
6671c68b VZ |
42745 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
42746 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
42747 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
42748 | fi | |
42749 | ||
a848cd7e SC |
42750 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
42751 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
42752 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
42753 | fi | |
42754 | ||
ceec2216 RL |
42755 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
42756 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
42757 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
42758 | fi | |
42759 | ||
a848cd7e SC |
42760 | COND_MONOLITHIC_0_SHARED_1="#" |
42761 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
42762 | COND_MONOLITHIC_0_SHARED_1="" | |
42763 | fi | |
42764 | ||
42765 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
42766 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42767 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
42768 | fi | |
42769 | ||
90970d69 DE |
42770 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
42771 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
42772 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
42773 | fi | |
42774 | ||
a848cd7e SC |
42775 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
42776 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42777 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
42778 | fi | |
42779 | ||
6671c68b VZ |
42780 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
42781 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
42782 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
42783 | fi | |
42784 | ||
a848cd7e SC |
42785 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
42786 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42787 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
42788 | fi | |
42789 | ||
ceec2216 RL |
42790 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
42791 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
42792 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
42793 | fi | |
42794 | ||
a848cd7e SC |
42795 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
42796 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
42797 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
42798 | fi | |
42799 | ||
42800 | COND_MONOLITHIC_1="#" | |
42801 | if test "x$MONOLITHIC" = "x1" ; then | |
42802 | COND_MONOLITHIC_1="" | |
42803 | fi | |
42804 | ||
42805 | COND_MONOLITHIC_1_SHARED_0="#" | |
42806 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
42807 | COND_MONOLITHIC_1_SHARED_0="" | |
42808 | fi | |
42809 | ||
42810 | COND_MONOLITHIC_1_SHARED_1="#" | |
42811 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
42812 | COND_MONOLITHIC_1_SHARED_1="" | |
42813 | fi | |
42814 | ||
42815 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
42816 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42817 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
42818 | fi | |
42819 | ||
42820 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
42821 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42822 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
42823 | fi | |
42824 | ||
42825 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
42826 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
42827 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
42828 | fi | |
42829 | ||
42830 | COND_PLATFORM_MACOSX_1="#" | |
42831 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
42832 | COND_PLATFORM_MACOSX_1="" | |
42833 | fi | |
42834 | ||
a30f955f VS |
42835 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
42836 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
42837 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
42838 | fi | |
42839 | ||
a848cd7e SC |
42840 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
42841 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
42842 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
42843 | fi | |
42844 | ||
42845 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
42846 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
42847 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
42848 | fi | |
42849 | ||
42850 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
42851 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
42852 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
42853 | fi | |
42854 | ||
fc480dc1 DE |
42855 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
42856 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
42857 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
42858 | fi | |
42859 | ||
1e9e8aba DE |
42860 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
42861 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42862 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
42863 | fi | |
42864 | ||
ebee3cd0 VS |
42865 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
42866 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
42867 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
42868 | fi | |
42869 | ||
42870 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
42871 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
42872 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
42873 | fi | |
42874 | ||
a848cd7e SC |
42875 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
42876 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42877 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
42878 | fi | |
42879 | ||
42880 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
42881 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
42882 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
42883 | fi | |
42884 | ||
b48a2016 DE |
42885 | COND_PLATFORM_MACOS_1="#" |
42886 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
42887 | COND_PLATFORM_MACOS_1="" | |
42888 | fi | |
42889 | ||
a848cd7e SC |
42890 | COND_PLATFORM_MAC_1="#" |
42891 | if test "x$PLATFORM_MAC" = "x1" ; then | |
42892 | COND_PLATFORM_MAC_1="" | |
42893 | fi | |
42894 | ||
42895 | COND_PLATFORM_OS2_1="#" | |
42896 | if test "x$PLATFORM_OS2" = "x1" ; then | |
42897 | COND_PLATFORM_OS2_1="" | |
42898 | fi | |
42899 | ||
42900 | COND_PLATFORM_UNIX_0="#" | |
42901 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
42902 | COND_PLATFORM_UNIX_0="" | |
42903 | fi | |
42904 | ||
42905 | COND_PLATFORM_UNIX_1="#" | |
42906 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
42907 | COND_PLATFORM_UNIX_1="" | |
42908 | fi | |
42909 | ||
42910 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
42911 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42912 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
42913 | fi | |
42914 | ||
42915 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
42916 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
42917 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
42918 | fi | |
42919 | ||
42920 | COND_PLATFORM_WIN32_0="#" | |
42921 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
42922 | COND_PLATFORM_WIN32_0="" | |
42923 | fi | |
42924 | ||
42925 | COND_PLATFORM_WIN32_1="#" | |
42926 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
42927 | COND_PLATFORM_WIN32_1="" | |
42928 | fi | |
42929 | ||
42930 | COND_SHARED_0="#" | |
42931 | if test "x$SHARED" = "x0" ; then | |
42932 | COND_SHARED_0="" | |
42933 | fi | |
42934 | ||
ceec2216 RL |
42935 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
42936 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
42937 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
42938 | fi | |
42939 | ||
42940 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
42941 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
42942 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
42943 | fi | |
42944 | ||
42945 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
42946 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
42947 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
42948 | fi | |
42949 | ||
a848cd7e SC |
42950 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
42951 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
42952 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
42953 | fi | |
42954 | ||
42955 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
42956 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42957 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
42958 | fi | |
42959 | ||
42960 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
42961 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42962 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
42963 | fi | |
42964 | ||
42965 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
42966 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42967 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
42968 | fi | |
42969 | ||
52ada004 RL |
42970 | COND_SHARED_0_USE_XRC_1="#" |
42971 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
42972 | COND_SHARED_0_USE_XRC_1="" | |
42973 | fi | |
42974 | ||
a848cd7e SC |
42975 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
42976 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
42977 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
42978 | fi | |
42979 | ||
42980 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
42981 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
42982 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
42983 | fi | |
42984 | ||
42985 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
42986 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
42987 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
42988 | fi | |
42989 | ||
42990 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
42991 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
42992 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
42993 | fi | |
42994 | ||
42995 | COND_SHARED_1="#" | |
42996 | if test "x$SHARED" = "x1" ; then | |
42997 | COND_SHARED_1="" | |
42998 | fi | |
42999 | ||
43000 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
43001 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
43002 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
43003 | fi | |
43004 | ||
52ada004 RL |
43005 | COND_SHARED_1_USE_XRC_1="#" |
43006 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
43007 | COND_SHARED_1_USE_XRC_1="" | |
43008 | fi | |
43009 | ||
a30f955f VS |
43010 | COND_TOOLKIT_="#" |
43011 | if test "x$TOOLKIT" = "x" ; then | |
43012 | COND_TOOLKIT_="" | |
43013 | fi | |
43014 | ||
a848cd7e SC |
43015 | COND_TOOLKIT_COCOA="#" |
43016 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
43017 | COND_TOOLKIT_COCOA="" | |
43018 | fi | |
43019 | ||
a49baeab DE |
43020 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
43021 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
43022 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
43023 | fi | |
43024 | ||
a848cd7e SC |
43025 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
43026 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43027 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
43028 | fi | |
43029 | ||
43030 | COND_TOOLKIT_GTK="#" | |
43031 | if test "x$TOOLKIT" = "xGTK" ; then | |
43032 | COND_TOOLKIT_GTK="" | |
43033 | fi | |
43034 | ||
43035 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
43036 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
43037 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
43038 | fi | |
43039 | ||
43040 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
43041 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43042 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
43043 | fi | |
43044 | ||
43045 | COND_TOOLKIT_MAC="#" | |
43046 | if test "x$TOOLKIT" = "xMAC" ; then | |
43047 | COND_TOOLKIT_MAC="" | |
43048 | fi | |
43049 | ||
43050 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
43051 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
43052 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
43053 | fi | |
43054 | ||
43055 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
43056 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43057 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
43058 | fi | |
43059 | ||
43060 | COND_TOOLKIT_MGL="#" | |
43061 | if test "x$TOOLKIT" = "xMGL" ; then | |
43062 | COND_TOOLKIT_MGL="" | |
43063 | fi | |
43064 | ||
43065 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
43066 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
43067 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
43068 | fi | |
43069 | ||
43070 | COND_TOOLKIT_MOTIF="#" | |
43071 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
43072 | COND_TOOLKIT_MOTIF="" | |
43073 | fi | |
43074 | ||
43075 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
43076 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
43077 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
43078 | fi | |
43079 | ||
43080 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
43081 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43082 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
43083 | fi | |
43084 | ||
43085 | COND_TOOLKIT_MSW="#" | |
43086 | if test "x$TOOLKIT" = "xMSW" ; then | |
43087 | COND_TOOLKIT_MSW="" | |
43088 | fi | |
43089 | ||
43090 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
43091 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
43092 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
43093 | fi | |
43094 | ||
43095 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
43096 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43097 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
43098 | fi | |
43099 | ||
43100 | COND_TOOLKIT_PM="#" | |
43101 | if test "x$TOOLKIT" = "xPM" ; then | |
43102 | COND_TOOLKIT_PM="" | |
43103 | fi | |
43104 | ||
43105 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
43106 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
43107 | COND_TOOLKIT_PM_USE_GUI_1="" | |
43108 | fi | |
43109 | ||
43110 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
43111 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43112 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
43113 | fi | |
43114 | ||
3fd9c298 DE |
43115 | COND_TOOLKIT_WINCE="#" |
43116 | if test "x$TOOLKIT" = "xWINCE" ; then | |
43117 | COND_TOOLKIT_WINCE="" | |
43118 | fi | |
43119 | ||
43120 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
43121 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
43122 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
43123 | fi | |
43124 | ||
43125 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
43126 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43127 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
43128 | fi | |
43129 | ||
a848cd7e SC |
43130 | COND_TOOLKIT_X11="#" |
43131 | if test "x$TOOLKIT" = "xX11" ; then | |
43132 | COND_TOOLKIT_X11="" | |
43133 | fi | |
43134 | ||
43135 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
43136 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
43137 | COND_TOOLKIT_X11_USE_GUI_1="" | |
43138 | fi | |
43139 | ||
43140 | COND_UNICODE_1="#" | |
43141 | if test "x$UNICODE" = "x1" ; then | |
43142 | COND_UNICODE_1="" | |
43143 | fi | |
43144 | ||
43145 | COND_USE_EXCEPTIONS_0="#" | |
43146 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
43147 | COND_USE_EXCEPTIONS_0="" | |
43148 | fi | |
43149 | ||
43150 | COND_USE_EXCEPTIONS_1="#" | |
43151 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
43152 | COND_USE_EXCEPTIONS_1="" | |
43153 | fi | |
43154 | ||
43155 | COND_USE_GUI_0="#" | |
43156 | if test "x$USE_GUI" = "x0" ; then | |
43157 | COND_USE_GUI_0="" | |
43158 | fi | |
43159 | ||
43160 | COND_USE_GUI_1="#" | |
43161 | if test "x$USE_GUI" = "x1" ; then | |
43162 | COND_USE_GUI_1="" | |
43163 | fi | |
43164 | ||
43165 | COND_USE_GUI_1_WXUNIV_0="#" | |
43166 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43167 | COND_USE_GUI_1_WXUNIV_0="" | |
43168 | fi | |
43169 | ||
43170 | COND_USE_GUI_1_WXUNIV_1="#" | |
43171 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
43172 | COND_USE_GUI_1_WXUNIV_1="" | |
43173 | fi | |
43174 | ||
43175 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
43176 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
43177 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
43178 | fi | |
43179 | ||
43180 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
43181 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
43182 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
43183 | fi | |
43184 | ||
43185 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
43186 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
43187 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
43188 | fi | |
43189 | ||
ceec2216 RL |
43190 | COND_USE_ODBC_1="#" |
43191 | if test "x$USE_ODBC" = "x1" ; then | |
43192 | COND_USE_ODBC_1="" | |
43193 | fi | |
43194 | ||
ffa0583f RL |
43195 | COND_USE_OPENGL_1="#" |
43196 | if test "x$USE_OPENGL" = "x1" ; then | |
43197 | COND_USE_OPENGL_1="" | |
43198 | fi | |
43199 | ||
a848cd7e SC |
43200 | COND_USE_PLUGINS_0="#" |
43201 | if test "x$USE_PLUGINS" = "x0" ; then | |
43202 | COND_USE_PLUGINS_0="" | |
43203 | fi | |
43204 | ||
0b78747f MW |
43205 | COND_USE_RTTI_0="#" |
43206 | if test "x$USE_RTTI" = "x0" ; then | |
43207 | COND_USE_RTTI_0="" | |
43208 | fi | |
43209 | ||
43210 | COND_USE_RTTI_1="#" | |
43211 | if test "x$USE_RTTI" = "x1" ; then | |
43212 | COND_USE_RTTI_1="" | |
43213 | fi | |
43214 | ||
a848cd7e SC |
43215 | COND_USE_SOSYMLINKS_1="#" |
43216 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
43217 | COND_USE_SOSYMLINKS_1="" | |
43218 | fi | |
43219 | ||
43220 | COND_USE_SOVERLINUX_1="#" | |
43221 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
43222 | COND_USE_SOVERLINUX_1="" | |
43223 | fi | |
43224 | ||
43225 | COND_USE_SOVERSION_0="#" | |
43226 | if test "x$USE_SOVERSION" = "x0" ; then | |
43227 | COND_USE_SOVERSION_0="" | |
43228 | fi | |
43229 | ||
43230 | COND_USE_SOVERSOLARIS_1="#" | |
43231 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
43232 | COND_USE_SOVERSOLARIS_1="" | |
43233 | fi | |
43234 | ||
0b78747f MW |
43235 | COND_USE_THREADS_0="#" |
43236 | if test "x$USE_THREADS" = "x0" ; then | |
43237 | COND_USE_THREADS_0="" | |
43238 | fi | |
43239 | ||
43240 | COND_USE_THREADS_1="#" | |
43241 | if test "x$USE_THREADS" = "x1" ; then | |
43242 | COND_USE_THREADS_1="" | |
43243 | fi | |
43244 | ||
a13a7f89 RL |
43245 | COND_USE_XRC_1="#" |
43246 | if test "x$USE_XRC" = "x1" ; then | |
43247 | COND_USE_XRC_1="" | |
43248 | fi | |
43249 | ||
a848cd7e SC |
43250 | COND_WITH_PLUGIN_SDL_1="#" |
43251 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
43252 | COND_WITH_PLUGIN_SDL_1="" | |
43253 | fi | |
43254 | ||
1e6eb025 VZ |
43255 | COND_WXUNIV_0="#" |
43256 | if test "x$WXUNIV" = "x0" ; then | |
43257 | COND_WXUNIV_0="" | |
43258 | fi | |
43259 | ||
a848cd7e SC |
43260 | COND_WXUNIV_1="#" |
43261 | if test "x$WXUNIV" = "x1" ; then | |
43262 | COND_WXUNIV_1="" | |
43263 | fi | |
43264 | ||
43265 | COND_WXUSE_EXPAT_BUILTIN="#" | |
43266 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
43267 | COND_WXUSE_EXPAT_BUILTIN="" | |
43268 | fi | |
43269 | ||
43270 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
43271 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
43272 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
43273 | fi | |
43274 | ||
43275 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
43276 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
43277 | COND_WXUSE_LIBPNG_BUILTIN="" | |
43278 | fi | |
43279 | ||
43280 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
43281 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
43282 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
43283 | fi | |
43284 | ||
43285 | COND_WXUSE_ODBC_BUILTIN="#" | |
43286 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
43287 | COND_WXUSE_ODBC_BUILTIN="" | |
43288 | fi | |
43289 | ||
43290 | COND_WXUSE_REGEX_BUILTIN="#" | |
43291 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
43292 | COND_WXUSE_REGEX_BUILTIN="" | |
43293 | fi | |
43294 | ||
43295 | COND_WXUSE_ZLIB_BUILTIN="#" | |
43296 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
43297 | COND_WXUSE_ZLIB_BUILTIN="" | |
43298 | fi | |
43299 | ||
43300 | ||
43301 | ||
2057db16 VS |
43302 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
43303 | { { 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 | |
43304 | 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;} | |
43305 | { (exit 1); exit 1; }; } | |
43306 | fi | |
43307 | ||
a848cd7e | 43308 | |
ceec2216 RL |
43309 | if test "$wxUSE_SHARED" = "yes"; then |
43310 | ||
43311 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
43312 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
43313 | ||
5b674b9d DE |
43314 | case "${host}" in |
43315 | *-pc-os2_emx | *-pc-os2-emx ) | |
43316 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
43317 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
43318 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
43319 | cp -p ${srcdir}/src/os2/dllar.sh . | |
43320 | ;; | |
43321 | esac | |
ceec2216 RL |
43322 | else |
43323 | ||
43324 | EXE_LINKER="$CXX -o" | |
43325 | ||
43326 | fi | |
69120ee4 VZ |
43327 | if test "$wxUSE_OMF" = "yes"; then |
43328 | case "${host}" in | |
43329 | *-pc-os2_emx | *-pc-os2-emx ) | |
43330 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
43331 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
43332 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
43333 | ;; | |
43334 | esac | |
43335 | fi | |
a848cd7e | 43336 | |
74b84332 | 43337 | GCC_PRAGMA_FLAGS="" |
c08ebc62 DE |
43338 | PCH_FLAGS="" |
43339 | if test $GCC_PCH = 1 ; then | |
43340 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
43341 | PCH_FLAGS="-DWX_PRECOMP" | |
43342 | else | |
a848cd7e SC |
43343 | case "${host}" in |
43344 | powerpc-*-darwin* ) | |
74b84332 | 43345 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 43346 | ;; |
bea8e651 | 43347 | *-*-mingw32* ) |
1f344abf VS |
43348 | if test "$wxUSE_STL" = "yes" -o \ |
43349 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
43350 | "$wxUSE_NO_RTTI" != "yes"; then | |
43351 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
43352 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
43353 | cat >conftest.$ac_ext <<_ACEOF |
43354 | /* confdefs.h. */ | |
43355 | _ACEOF | |
43356 | cat confdefs.h >>conftest.$ac_ext | |
43357 | cat >>conftest.$ac_ext <<_ACEOF | |
43358 | /* end confdefs.h. */ | |
43359 | ||
3314e67b RR |
43360 | int |
43361 | main () | |
43362 | { | |
43363 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
43364 | #error "Not GCC 3.2 or greater" | |
43365 | #endif | |
43366 | ||
43367 | ; | |
43368 | return 0; | |
43369 | } | |
43370 | _ACEOF | |
43371 | rm -f conftest.$ac_objext | |
43372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43373 | (eval $ac_compile) 2>conftest.er1 | |
43374 | ac_status=$? | |
43375 | grep -v '^ *+' conftest.er1 >conftest.err | |
43376 | rm -f conftest.er1 | |
43377 | cat conftest.err >&5 | |
43378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43379 | (exit $ac_status); } && | |
9dd0f6c2 | 43380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3314e67b RR |
43381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43382 | (eval $ac_try) 2>&5 | |
43383 | ac_status=$? | |
43384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43385 | (exit $ac_status); }; } && | |
43386 | { ac_try='test -s conftest.$ac_objext' | |
43387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43388 | (eval $ac_try) 2>&5 | |
43389 | ac_status=$? | |
43390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43391 | (exit $ac_status); }; }; then | |
43392 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
43393 | echo "$as_me:$LINENO: result: yes" >&5 | |
43394 | echo "${ECHO_T}yes" >&6 | |
43395 | else | |
43396 | echo "$as_me: failed program was:" >&5 | |
43397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43398 | ||
43399 | echo "$as_me:$LINENO: result: no" >&5 | |
43400 | echo "${ECHO_T}no" >&6 | |
43401 | fi | |
43402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43403 | fi | |
43404 | ;; | |
43405 | *-pc-os2_emx | *-pc-os2-emx ) | |
43406 | if test "$wxUSE_STL" = "yes"; then | |
43407 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
43408 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
43409 | cat >conftest.$ac_ext <<_ACEOF | |
43410 | /* confdefs.h. */ | |
43411 | _ACEOF | |
43412 | cat confdefs.h >>conftest.$ac_ext | |
43413 | cat >>conftest.$ac_ext <<_ACEOF | |
43414 | /* end confdefs.h. */ | |
43415 | ||
bea8e651 MB |
43416 | int |
43417 | main () | |
43418 | { | |
1f344abf | 43419 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
43420 | #error "Not GCC 3.2 or greater" |
43421 | #endif | |
43422 | ||
43423 | ; | |
43424 | return 0; | |
43425 | } | |
43426 | _ACEOF | |
43427 | rm -f conftest.$ac_objext | |
43428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43429 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 43430 | ac_status=$? |
ac1cb8d3 VS |
43431 | grep -v '^ *+' conftest.er1 >conftest.err |
43432 | rm -f conftest.er1 | |
43433 | cat conftest.err >&5 | |
bea8e651 MB |
43434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43435 | (exit $ac_status); } && | |
9dd0f6c2 | 43436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43438 | (eval $ac_try) 2>&5 | |
43439 | ac_status=$? | |
43440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43441 | (exit $ac_status); }; } && | |
43442 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
43443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43444 | (eval $ac_try) 2>&5 | |
43445 | ac_status=$? | |
43446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43447 | (exit $ac_status); }; }; then | |
74b84332 | 43448 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
43449 | echo "$as_me:$LINENO: result: yes" >&5 |
43450 | echo "${ECHO_T}yes" >&6 | |
43451 | else | |
43452 | echo "$as_me: failed program was:" >&5 | |
43453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43454 | ||
43455 | echo "$as_me:$LINENO: result: no" >&5 | |
43456 | echo "${ECHO_T}no" >&6 | |
43457 | fi | |
ac1cb8d3 | 43458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
43459 | fi |
43460 | ;; | |
a848cd7e SC |
43461 | esac |
43462 | fi | |
d2083416 | 43463 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
43464 | |
43465 | ||
43466 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
43467 | ||
43468 | ||
43469 | ||
43470 | ||
43471 | ||
43472 | ||
43473 | ||
43474 | ||
43475 | ||
43476 | ||
43477 | ||
43478 | ||
43479 | ||
43480 | ||
43481 | ||
43482 | ||
43483 | ||
43484 | ||
43485 | ||
43486 | ||
43487 | ||
43488 | ||
43489 | ||
43490 | ||
43491 | ||
43492 | ||
43493 | ||
43494 | ||
43495 | ||
43496 | ||
43497 | ||
43498 | ||
43499 | ||
43500 | ||
43501 | ||
43502 | ||
43503 | ||
43504 | ||
43505 | ||
43506 | ||
43507 | ||
43508 | ||
a848cd7e SC |
43509 | |
43510 | ||
43511 | ||
43512 | ||
43513 | ||
43514 | ||
43515 | ||
43516 | ||
43517 | ||
43518 | ||
43519 | ||
43520 | ||
43521 | ||
43522 | ||
43523 | ||
43524 | ||
43525 | ||
43526 | ||
74b84332 | 43527 | |
a848cd7e SC |
43528 | |
43529 | ||
43530 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
43531 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 43532 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
43533 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
43534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43535 | else | |
43536 | cat >conftest.make <<\_ACEOF | |
43537 | all: | |
43538 | @echo 'ac_maketemp="$(MAKE)"' | |
43539 | _ACEOF | |
43540 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
43541 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
43542 | if test -n "$ac_maketemp"; then | |
43543 | eval ac_cv_prog_make_${ac_make}_set=yes | |
43544 | else | |
43545 | eval ac_cv_prog_make_${ac_make}_set=no | |
43546 | fi | |
43547 | rm -f conftest.make | |
43548 | fi | |
43549 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
43550 | echo "$as_me:$LINENO: result: yes" >&5 | |
43551 | echo "${ECHO_T}yes" >&6 | |
43552 | SET_MAKE= | |
43553 | else | |
43554 | echo "$as_me:$LINENO: result: no" >&5 | |
43555 | echo "${ECHO_T}no" >&6 | |
43556 | SET_MAKE="MAKE=${MAKE-make}" | |
43557 | fi | |
43558 | ||
43559 | ||
a848cd7e | 43560 | |
ceec2216 RL |
43561 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
43562 | ||
a848cd7e | 43563 | |
ceec2216 | 43564 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 43565 | |
a848cd7e | 43566 | |
ceec2216 | 43567 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 43568 | |
ceec2216 RL |
43569 | |
43570 | ac_config_files="$ac_config_files version-script Makefile" | |
43571 | ||
43572 | ||
43573 | ac_config_commands="$ac_config_commands wx-config | |
43574 | " | |
a848cd7e SC |
43575 | |
43576 | ||
9103d280 RL |
43577 | |
43578 | ||
a848cd7e SC |
43579 | if test "$wxUSE_GUI" = "yes"; then |
43580 | SUBDIRS="samples demos utils contrib" | |
43581 | else SUBDIRS="samples utils" | |
43582 | fi | |
43583 | ||
43584 | ||
43585 | ||
43586 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
43587 | if test "${with_cppunit_prefix+set}" = set; then | |
43588 | withval="$with_cppunit_prefix" | |
43589 | cppunit_config_prefix="$withval" | |
43590 | else | |
43591 | cppunit_config_prefix="" | |
43592 | fi; | |
43593 | ||
43594 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
43595 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
43596 | withval="$with_cppunit_exec_prefix" | |
43597 | cppunit_config_exec_prefix="$withval" | |
43598 | else | |
43599 | cppunit_config_exec_prefix="" | |
43600 | fi; | |
43601 | ||
43602 | if test x$cppunit_config_exec_prefix != x ; then | |
43603 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
43604 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
43605 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
43606 | fi | |
43607 | fi | |
43608 | if test x$cppunit_config_prefix != x ; then | |
43609 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
43610 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
43611 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
43612 | fi | |
43613 | fi | |
43614 | ||
43615 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
43616 | set dummy cppunit-config; ac_word=$2 | |
43617 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43618 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43619 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
43620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43621 | else | |
43622 | case $CPPUNIT_CONFIG in | |
43623 | [\\/]* | ?:[\\/]*) | |
43624 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
43625 | ;; | |
43626 | *) | |
43627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43628 | for as_dir in $PATH | |
43629 | do | |
43630 | IFS=$as_save_IFS | |
43631 | test -z "$as_dir" && as_dir=. | |
43632 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43633 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43634 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
43635 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43636 | break 2 | |
43637 | fi | |
43638 | done | |
43639 | done | |
43640 | ||
43641 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
43642 | ;; | |
43643 | esac | |
43644 | fi | |
43645 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
43646 | ||
43647 | if test -n "$CPPUNIT_CONFIG"; then | |
43648 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
43649 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
43650 | else | |
43651 | echo "$as_me:$LINENO: result: no" >&5 | |
43652 | echo "${ECHO_T}no" >&6 | |
43653 | fi | |
43654 | ||
43655 | cppunit_version_min=1.8.0 | |
43656 | ||
43657 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
43658 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
43659 | no_cppunit="" | |
43660 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
43661 | no_cppunit=yes | |
43662 | else | |
43663 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
43664 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
43665 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
43666 | ||
43667 | cppunit_major_version=`echo $cppunit_version | \ | |
43668 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
43669 | cppunit_minor_version=`echo $cppunit_version | \ | |
43670 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
43671 | cppunit_micro_version=`echo $cppunit_version | \ | |
43672 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
43673 | ||
43674 | cppunit_major_min=`echo $cppunit_version_min | \ | |
43675 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
43676 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
43677 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
43678 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
43679 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
43680 | ||
43681 | cppunit_version_proper=`expr \ | |
43682 | $cppunit_major_version \> $cppunit_major_min \| \ | |
43683 | $cppunit_major_version \= $cppunit_major_min \& \ | |
43684 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
43685 | $cppunit_major_version \= $cppunit_major_min \& \ | |
43686 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
43687 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
43688 | ||
43689 | if test "$cppunit_version_proper" = "1" ; then | |
43690 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
43691 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
43692 | else | |
43693 | echo "$as_me:$LINENO: result: no" >&5 | |
43694 | echo "${ECHO_T}no" >&6 | |
43695 | no_cppunit=yes | |
43696 | fi | |
43697 | fi | |
43698 | ||
43699 | if test "x$no_cppunit" = x ; then | |
c2218763 | 43700 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
43701 | else |
43702 | CPPUNIT_CFLAGS="" | |
43703 | CPPUNIT_LIBS="" | |
c2218763 | 43704 | : |
a848cd7e SC |
43705 | fi |
43706 | ||
43707 | ||
43708 | ||
43709 | ||
43710 | ||
43711 | for subdir in `echo $SUBDIRS`; do | |
43712 | if test -d ${srcdir}/${subdir} ; then | |
43713 | if test "$wxUSE_GUI" = "yes"; then | |
43714 | if test ${subdir} = "samples"; then | |
43715 | makefiles="samples/Makefile.in $makefiles" | |
43716 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
43717 | if test -d $srcdir/samples/$sample; then | |
43718 | makefiles="samples/$sample/Makefile.in $makefiles" | |
43719 | fi | |
43720 | done | |
43721 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
43722 | fi | |
43723 | else if test ${subdir} = "samples"; then | |
43724 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
43725 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
43726 | makefiles="" |
43727 | for util in HelpGen tex2rtf ; do | |
43728 | if test -d $srcdir/utils/$util ; then | |
43729 | makefiles="utils/$util/Makefile.in \ | |
43730 | utils/$util/src/Makefile.in \ | |
43731 | $makefiles" | |
43732 | fi | |
43733 | done | |
a848cd7e SC |
43734 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
43735 | fi | |
43736 | fi | |
43737 | ||
43738 | for mkin in $makefiles ; do | |
43739 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
43740 | ac_config_files="$ac_config_files $mk" | |
43741 | ||
43742 | done | |
43743 | fi | |
43744 | done | |
43745 | ||
43746 | ||
43747 | cat >confcache <<\_ACEOF | |
43748 | # This file is a shell script that caches the results of configure | |
43749 | # tests run on this system so they can be shared between configure | |
43750 | # scripts and configure runs, see configure's option --config-cache. | |
43751 | # It is not useful on other systems. If it contains results you don't | |
43752 | # want to keep, you may remove or edit it. | |
43753 | # | |
43754 | # config.status only pays attention to the cache file if you give it | |
43755 | # the --recheck option to rerun configure. | |
43756 | # | |
43757 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
43758 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
43759 | # following values. | |
43760 | ||
43761 | _ACEOF | |
43762 | ||
43763 | # The following way of writing the cache mishandles newlines in values, | |
43764 | # but we know of no workaround that is simple, portable, and efficient. | |
43765 | # So, don't put newlines in cache variables' values. | |
43766 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
43767 | # and sets the high bit in the cache file unless we assign to the vars. | |
43768 | { | |
43769 | (set) 2>&1 | | |
43770 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
43771 | *ac_space=\ *) | |
43772 | # `set' does not quote correctly, so add quotes (double-quote | |
43773 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
43774 | sed -n \ | |
ac1cb8d3 VS |
43775 | "s/'/'\\\\''/g; |
43776 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
43777 | ;; |
43778 | *) | |
43779 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
43780 | sed -n \ | |
ac1cb8d3 | 43781 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
43782 | ;; |
43783 | esac; | |
43784 | } | | |
43785 | sed ' | |
43786 | t clear | |
43787 | : clear | |
43788 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
43789 | t end | |
43790 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
43791 | : end' >>confcache | |
43792 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
43793 | if test -w $cache_file; then | |
43794 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
43795 | cat confcache >$cache_file | |
43796 | else | |
43797 | echo "not updating unwritable cache $cache_file" | |
43798 | fi | |
43799 | fi | |
43800 | rm -f confcache | |
43801 | ||
43802 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
43803 | # Let make expand exec_prefix. | |
43804 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
43805 | ||
43806 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
43807 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
43808 | # trailing colons and then remove the whole line if VPATH becomes empty | |
43809 | # (actually we leave an empty line to preserve line numbers). | |
43810 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 43811 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
43812 | s/:*\$(srcdir):*/:/; |
43813 | s/:*\${srcdir}:*/:/; | |
43814 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 43815 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 43816 | s/:*$//; |
ac1cb8d3 | 43817 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
43818 | }' |
43819 | fi | |
43820 | ||
43821 | DEFS=-DHAVE_CONFIG_H | |
43822 | ||
43823 | ac_libobjs= | |
43824 | ac_ltlibobjs= | |
43825 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
43826 | # 1. Remove the extension, and $U if already installed. | |
43827 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 43828 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
43829 | # 2. Add them. |
43830 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
43831 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
43832 | done | |
43833 | LIBOBJS=$ac_libobjs | |
43834 | ||
43835 | LTLIBOBJS=$ac_ltlibobjs | |
43836 | ||
43837 | ||
43838 | ||
43839 | : ${CONFIG_STATUS=./config.status} | |
43840 | ac_clean_files_save=$ac_clean_files | |
43841 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
43842 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
43843 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
43844 | cat >$CONFIG_STATUS <<_ACEOF | |
43845 | #! $SHELL | |
43846 | # Generated by $as_me. | |
43847 | # Run this file to recreate the current configuration. | |
43848 | # Compiler output produced by configure, useful for debugging | |
43849 | # configure, is in config.log if it exists. | |
43850 | ||
43851 | debug=false | |
43852 | ac_cs_recheck=false | |
43853 | ac_cs_silent=false | |
43854 | SHELL=\${CONFIG_SHELL-$SHELL} | |
43855 | _ACEOF | |
43856 | ||
43857 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43858 | ## --------------------- ## | |
43859 | ## M4sh Initialization. ## | |
43860 | ## --------------------- ## | |
43861 | ||
43862 | # Be Bourne compatible | |
43863 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
43864 | emulate sh | |
43865 | NULLCMD=: | |
43866 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
43867 | # is contrary to our usage. Disable this feature. | |
43868 | alias -g '${1+"$@"}'='"$@"' | |
43869 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
43870 | set -o posix | |
43871 | fi | |
ac1cb8d3 | 43872 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
43873 | |
43874 | # Support unset when possible. | |
ac1cb8d3 | 43875 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
43876 | as_unset=unset |
43877 | else | |
43878 | as_unset=false | |
43879 | fi | |
43880 | ||
43881 | ||
43882 | # Work around bugs in pre-3.0 UWIN ksh. | |
43883 | $as_unset ENV MAIL MAILPATH | |
43884 | PS1='$ ' | |
43885 | PS2='> ' | |
43886 | PS4='+ ' | |
43887 | ||
43888 | # NLS nuisances. | |
43889 | for as_var in \ | |
43890 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43891 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
43892 | LC_TELEPHONE LC_TIME | |
43893 | do | |
ac1cb8d3 | 43894 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
43895 | eval $as_var=C; export $as_var |
43896 | else | |
43897 | $as_unset $as_var | |
43898 | fi | |
43899 | done | |
43900 | ||
43901 | # Required to use basename. | |
43902 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
43903 | as_expr=expr | |
43904 | else | |
43905 | as_expr=false | |
43906 | fi | |
43907 | ||
43908 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
43909 | as_basename=basename | |
43910 | else | |
43911 | as_basename=false | |
43912 | fi | |
43913 | ||
43914 | ||
43915 | # Name of the executable. | |
43916 | as_me=`$as_basename "$0" || | |
43917 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
43918 | X"$0" : 'X\(//\)$' \| \ | |
43919 | X"$0" : 'X\(/\)$' \| \ | |
43920 | . : '\(.\)' 2>/dev/null || | |
43921 | echo X/"$0" | | |
43922 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
43923 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
43924 | /^X\/\(\/\).*/{ s//\1/; q; } | |
43925 | s/.*/./; q'` | |
43926 | ||
43927 | ||
43928 | # PATH needs CR, and LINENO needs CR and PATH. | |
43929 | # Avoid depending upon Character Ranges. | |
43930 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
43931 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
43932 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
43933 | as_cr_digits='0123456789' | |
43934 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
43935 | ||
43936 | # The user is always right. | |
43937 | if test "${PATH_SEPARATOR+set}" != set; then | |
43938 | echo "#! /bin/sh" >conf$$.sh | |
43939 | echo "exit 0" >>conf$$.sh | |
43940 | chmod +x conf$$.sh | |
43941 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
43942 | PATH_SEPARATOR=';' | |
43943 | else | |
43944 | PATH_SEPARATOR=: | |
43945 | fi | |
43946 | rm -f conf$$.sh | |
43947 | fi | |
43948 | ||
43949 | ||
43950 | as_lineno_1=$LINENO | |
43951 | as_lineno_2=$LINENO | |
43952 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
43953 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
43954 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
43955 | # Find who we are. Look in the path if we contain no path at all | |
43956 | # relative or not. | |
43957 | case $0 in | |
43958 | *[\\/]* ) as_myself=$0 ;; | |
43959 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43960 | for as_dir in $PATH | |
43961 | do | |
43962 | IFS=$as_save_IFS | |
43963 | test -z "$as_dir" && as_dir=. | |
43964 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
43965 | done | |
43966 | ||
43967 | ;; | |
43968 | esac | |
43969 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
43970 | # in which case we are not to be found in the path. | |
43971 | if test "x$as_myself" = x; then | |
43972 | as_myself=$0 | |
43973 | fi | |
43974 | if test ! -f "$as_myself"; then | |
43975 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
43976 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
43977 | { (exit 1); exit 1; }; } | |
43978 | fi | |
43979 | case $CONFIG_SHELL in | |
43980 | '') | |
43981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43982 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
43983 | do | |
43984 | IFS=$as_save_IFS | |
43985 | test -z "$as_dir" && as_dir=. | |
43986 | for as_base in sh bash ksh sh5; do | |
43987 | case $as_dir in | |
43988 | /*) | |
43989 | if ("$as_dir/$as_base" -c ' | |
43990 | as_lineno_1=$LINENO | |
43991 | as_lineno_2=$LINENO | |
43992 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
43993 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
43994 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
43995 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
43996 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
43997 | CONFIG_SHELL=$as_dir/$as_base | |
43998 | export CONFIG_SHELL | |
43999 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
44000 | fi;; | |
44001 | esac | |
44002 | done | |
44003 | done | |
44004 | ;; | |
44005 | esac | |
44006 | ||
44007 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
44008 | # uniformly replaced by the line number. The first 'sed' inserts a | |
44009 | # line-number line before each line; the second 'sed' does the real | |
44010 | # work. The second script uses 'N' to pair each line-number line | |
44011 | # with the numbered line, and appends trailing '-' during | |
44012 | # substitution so that $LINENO is not a special case at line end. | |
44013 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
44014 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
44015 | sed '=' <$as_myself | | |
44016 | sed ' | |
44017 | N | |
44018 | s,$,-, | |
44019 | : loop | |
44020 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
44021 | t loop | |
44022 | s,-$,, | |
44023 | s,^['$as_cr_digits']*\n,, | |
44024 | ' >$as_me.lineno && | |
44025 | chmod +x $as_me.lineno || | |
44026 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
44027 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
44028 | { (exit 1); exit 1; }; } | |
44029 | ||
44030 | # Don't try to exec as it changes $[0], causing all sort of problems | |
44031 | # (the dirname of $[0] is not the place where we might find the | |
44032 | # original and so on. Autoconf is especially sensible to this). | |
44033 | . ./$as_me.lineno | |
44034 | # Exit status is that of the last command. | |
44035 | exit | |
44036 | } | |
44037 | ||
44038 | ||
44039 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
44040 | *c*,-n*) ECHO_N= ECHO_C=' | |
44041 | ' ECHO_T=' ' ;; | |
44042 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
44043 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
44044 | esac | |
44045 | ||
44046 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
44047 | as_expr=expr | |
44048 | else | |
44049 | as_expr=false | |
44050 | fi | |
44051 | ||
44052 | rm -f conf$$ conf$$.exe conf$$.file | |
44053 | echo >conf$$.file | |
44054 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
44055 | # We could just check for DJGPP; but this test a) works b) is more generic | |
44056 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
44057 | if test -f conf$$.exe; then | |
44058 | # Don't use ln at all; we don't have any links | |
44059 | as_ln_s='cp -p' | |
44060 | else | |
44061 | as_ln_s='ln -s' | |
44062 | fi | |
44063 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
44064 | as_ln_s=ln | |
44065 | else | |
44066 | as_ln_s='cp -p' | |
44067 | fi | |
44068 | rm -f conf$$ conf$$.exe conf$$.file | |
44069 | ||
44070 | if mkdir -p . 2>/dev/null; then | |
44071 | as_mkdir_p=: | |
44072 | else | |
ac1cb8d3 | 44073 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
44074 | as_mkdir_p=false |
44075 | fi | |
44076 | ||
44077 | as_executable_p="test -f" | |
44078 | ||
44079 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 44080 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
44081 | |
44082 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 44083 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
44084 | |
44085 | ||
44086 | # IFS | |
44087 | # We need space, tab and new line, in precisely that order. | |
44088 | as_nl=' | |
44089 | ' | |
44090 | IFS=" $as_nl" | |
44091 | ||
44092 | # CDPATH. | |
44093 | $as_unset CDPATH | |
44094 | ||
44095 | exec 6>&1 | |
44096 | ||
44097 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
44098 | # report actual input values of CONFIG_FILES etc. instead of their | |
44099 | # values after options handling. Logging --version etc. is OK. | |
44100 | exec 5>>config.log | |
44101 | { | |
44102 | echo | |
44103 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
44104 | ## Running $as_me. ## | |
44105 | _ASBOX | |
44106 | } >&5 | |
44107 | cat >&5 <<_CSEOF | |
44108 | ||
e0d84535 | 44109 | This file was extended by wxWidgets $as_me 2.6.0, which was |
ac1cb8d3 | 44110 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
44111 | |
44112 | CONFIG_FILES = $CONFIG_FILES | |
44113 | CONFIG_HEADERS = $CONFIG_HEADERS | |
44114 | CONFIG_LINKS = $CONFIG_LINKS | |
44115 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
44116 | $ $0 $@ | |
44117 | ||
44118 | _CSEOF | |
44119 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
44120 | echo >&5 | |
44121 | _ACEOF | |
44122 | ||
44123 | # Files that config.status was made for. | |
44124 | if test -n "$ac_config_files"; then | |
44125 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
44126 | fi | |
44127 | ||
44128 | if test -n "$ac_config_headers"; then | |
44129 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
44130 | fi | |
44131 | ||
44132 | if test -n "$ac_config_links"; then | |
44133 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
44134 | fi | |
44135 | ||
44136 | if test -n "$ac_config_commands"; then | |
44137 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
44138 | fi | |
44139 | ||
44140 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44141 | ||
44142 | ac_cs_usage="\ | |
44143 | \`$as_me' instantiates files from templates according to the | |
44144 | current configuration. | |
44145 | ||
44146 | Usage: $0 [OPTIONS] [FILE]... | |
44147 | ||
44148 | -h, --help print this help, then exit | |
44149 | -V, --version print version number, then exit | |
44150 | -q, --quiet do not print progress messages | |
44151 | -d, --debug don't remove temporary files | |
44152 | --recheck update $as_me by reconfiguring in the same conditions | |
44153 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 44154 | instantiate the configuration file FILE |
a848cd7e | 44155 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 44156 | instantiate the configuration header FILE |
a848cd7e SC |
44157 | |
44158 | Configuration files: | |
44159 | $config_files | |
44160 | ||
44161 | Configuration headers: | |
44162 | $config_headers | |
44163 | ||
44164 | Configuration commands: | |
44165 | $config_commands | |
44166 | ||
44167 | Report bugs to <bug-autoconf@gnu.org>." | |
44168 | _ACEOF | |
44169 | ||
44170 | cat >>$CONFIG_STATUS <<_ACEOF | |
44171 | ac_cs_version="\\ | |
e0d84535 | 44172 | wxWidgets config.status 2.6.0 |
ac1cb8d3 | 44173 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
44174 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
44175 | ||
ac1cb8d3 | 44176 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
44177 | This config.status script is free software; the Free Software Foundation |
44178 | gives unlimited permission to copy, distribute and modify it." | |
44179 | srcdir=$srcdir | |
44180 | INSTALL="$INSTALL" | |
44181 | _ACEOF | |
44182 | ||
44183 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44184 | # If no file are specified by the user, then we need to provide default | |
44185 | # value. By we need to know if files were specified by the user. | |
44186 | ac_need_defaults=: | |
44187 | while test $# != 0 | |
44188 | do | |
44189 | case $1 in | |
44190 | --*=*) | |
44191 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
44192 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
44193 | ac_shift=: | |
44194 | ;; | |
44195 | -*) | |
44196 | ac_option=$1 | |
44197 | ac_optarg=$2 | |
44198 | ac_shift=shift | |
44199 | ;; | |
44200 | *) # This is not an option, so the user has probably given explicit | |
44201 | # arguments. | |
44202 | ac_option=$1 | |
44203 | ac_need_defaults=false;; | |
44204 | esac | |
44205 | ||
44206 | case $ac_option in | |
44207 | # Handling of the options. | |
44208 | _ACEOF | |
44209 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44210 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
44211 | ac_cs_recheck=: ;; | |
44212 | --version | --vers* | -V ) | |
44213 | echo "$ac_cs_version"; exit 0 ;; | |
44214 | --he | --h) | |
44215 | # Conflict between --help and --header | |
44216 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
44217 | Try \`$0 --help' for more information." >&5 | |
44218 | echo "$as_me: error: ambiguous option: $1 | |
44219 | Try \`$0 --help' for more information." >&2;} | |
44220 | { (exit 1); exit 1; }; };; | |
44221 | --help | --hel | -h ) | |
44222 | echo "$ac_cs_usage"; exit 0 ;; | |
44223 | --debug | --d* | -d ) | |
44224 | debug=: ;; | |
44225 | --file | --fil | --fi | --f ) | |
44226 | $ac_shift | |
44227 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
44228 | ac_need_defaults=false;; | |
44229 | --header | --heade | --head | --hea ) | |
44230 | $ac_shift | |
44231 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
44232 | ac_need_defaults=false;; | |
44233 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
44234 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
44235 | ac_cs_silent=: ;; | |
44236 | ||
44237 | # This is an error. | |
44238 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
44239 | Try \`$0 --help' for more information." >&5 | |
44240 | echo "$as_me: error: unrecognized option: $1 | |
44241 | Try \`$0 --help' for more information." >&2;} | |
44242 | { (exit 1); exit 1; }; } ;; | |
44243 | ||
44244 | *) ac_config_targets="$ac_config_targets $1" ;; | |
44245 | ||
44246 | esac | |
44247 | shift | |
44248 | done | |
44249 | ||
44250 | ac_configure_extra_args= | |
44251 | ||
44252 | if $ac_cs_silent; then | |
44253 | exec 6>/dev/null | |
44254 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
44255 | fi | |
44256 | ||
44257 | _ACEOF | |
44258 | cat >>$CONFIG_STATUS <<_ACEOF | |
44259 | if \$ac_cs_recheck; then | |
44260 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
44261 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
44262 | fi | |
44263 | ||
44264 | _ACEOF | |
44265 | ||
44266 | cat >>$CONFIG_STATUS <<_ACEOF | |
44267 | # | |
44268 | # INIT-COMMANDS section. | |
44269 | # | |
44270 | ||
ceec2216 RL |
44271 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
44272 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
44273 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
44274 | LN_S="${LN_S}" | |
a848cd7e SC |
44275 | |
44276 | ||
44277 | _ACEOF | |
44278 | ||
44279 | ||
44280 | ||
44281 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44282 | for ac_config_target in $ac_config_targets | |
44283 | do | |
44284 | case "$ac_config_target" in | |
44285 | # Handling of arguments. | |
ceec2216 RL |
44286 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
44287 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
44288 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
44289 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
44290 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
44291 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
44292 | "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 |
44293 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
44294 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
44295 | { (exit 1); exit 1; }; };; | |
44296 | esac | |
44297 | done | |
44298 | ||
44299 | # If the user did not use the arguments to specify the items to instantiate, | |
44300 | # then the envvar interface is used. Set only those that are not. | |
44301 | # We use the long form for the default assignment because of an extremely | |
44302 | # bizarre bug on SunOS 4.1.3. | |
44303 | if $ac_need_defaults; then | |
44304 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
44305 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
44306 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
44307 | fi | |
44308 | ||
44309 | # Have a temporary directory for convenience. Make it in the build tree | |
44310 | # simply because there is no reason to put it here, and in addition, | |
44311 | # creating and moving files from /tmp can sometimes cause problems. | |
44312 | # Create a temporary directory, and hook for its removal unless debugging. | |
44313 | $debug || | |
44314 | { | |
44315 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
44316 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
44317 | } | |
44318 | ||
44319 | # Create a (secure) tmp directory for tmp files. | |
44320 | ||
44321 | { | |
44322 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
44323 | test -n "$tmp" && test -d "$tmp" | |
44324 | } || | |
44325 | { | |
44326 | tmp=./confstat$$-$RANDOM | |
44327 | (umask 077 && mkdir $tmp) | |
44328 | } || | |
44329 | { | |
44330 | echo "$me: cannot create a temporary directory in ." >&2 | |
44331 | { (exit 1); exit 1; } | |
44332 | } | |
44333 | ||
44334 | _ACEOF | |
44335 | ||
44336 | cat >>$CONFIG_STATUS <<_ACEOF | |
44337 | ||
44338 | # | |
44339 | # CONFIG_FILES section. | |
44340 | # | |
44341 | ||
44342 | # No need to generate the scripts if there are no CONFIG_FILES. | |
44343 | # This happens for instance when ./config.status config.h | |
44344 | if test -n "\$CONFIG_FILES"; then | |
44345 | # Protect against being on the right side of a sed subst in config.status. | |
44346 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
44347 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
44348 | s,@SHELL@,$SHELL,;t t | |
44349 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
44350 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
44351 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
44352 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
44353 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
44354 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
44355 | s,@exec_prefix@,$exec_prefix,;t t | |
44356 | s,@prefix@,$prefix,;t t | |
44357 | s,@program_transform_name@,$program_transform_name,;t t | |
44358 | s,@bindir@,$bindir,;t t | |
44359 | s,@sbindir@,$sbindir,;t t | |
44360 | s,@libexecdir@,$libexecdir,;t t | |
44361 | s,@datadir@,$datadir,;t t | |
44362 | s,@sysconfdir@,$sysconfdir,;t t | |
44363 | s,@sharedstatedir@,$sharedstatedir,;t t | |
44364 | s,@localstatedir@,$localstatedir,;t t | |
44365 | s,@libdir@,$libdir,;t t | |
44366 | s,@includedir@,$includedir,;t t | |
44367 | s,@oldincludedir@,$oldincludedir,;t t | |
44368 | s,@infodir@,$infodir,;t t | |
44369 | s,@mandir@,$mandir,;t t | |
44370 | s,@build_alias@,$build_alias,;t t | |
44371 | s,@host_alias@,$host_alias,;t t | |
44372 | s,@target_alias@,$target_alias,;t t | |
44373 | s,@DEFS@,$DEFS,;t t | |
44374 | s,@ECHO_C@,$ECHO_C,;t t | |
44375 | s,@ECHO_N@,$ECHO_N,;t t | |
44376 | s,@ECHO_T@,$ECHO_T,;t t | |
44377 | s,@LIBS@,$LIBS,;t t | |
44378 | s,@build@,$build,;t t | |
44379 | s,@build_cpu@,$build_cpu,;t t | |
44380 | s,@build_vendor@,$build_vendor,;t t | |
44381 | s,@build_os@,$build_os,;t t | |
44382 | s,@host@,$host,;t t | |
44383 | s,@host_cpu@,$host_cpu,;t t | |
44384 | s,@host_vendor@,$host_vendor,;t t | |
44385 | s,@host_os@,$host_os,;t t | |
44386 | s,@target@,$target,;t t | |
44387 | s,@target_cpu@,$target_cpu,;t t | |
44388 | s,@target_vendor@,$target_vendor,;t t | |
44389 | s,@target_os@,$target_os,;t t | |
44390 | s,@CC@,$CC,;t t | |
44391 | s,@CFLAGS@,$CFLAGS,;t t | |
44392 | s,@LDFLAGS@,$LDFLAGS,;t t | |
44393 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
44394 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
44395 | s,@EXEEXT@,$EXEEXT,;t t | |
44396 | s,@OBJEXT@,$OBJEXT,;t t | |
44397 | s,@CPP@,$CPP,;t t | |
44398 | s,@EGREP@,$EGREP,;t t | |
44399 | s,@CXX@,$CXX,;t t | |
44400 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
44401 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
44402 | s,@RANLIB@,$RANLIB,;t t | |
44403 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
44404 | s,@AR@,$AR,;t t | |
44405 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
44406 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
44407 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
44408 | s,@STRIP@,$STRIP,;t t | |
44409 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
44410 | s,@LN_S@,$LN_S,;t t | |
44411 | s,@CXXCPP@,$CXXCPP,;t t | |
44412 | s,@subdirs@,$subdirs,;t t | |
44413 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
44414 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
44415 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
44416 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
44417 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
44418 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
44419 | s,@X_LIBS@,$X_LIBS,;t t | |
44420 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
44421 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
44422 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
44423 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
44424 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
44425 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
44426 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
44427 | s,@RESCOMP@,$RESCOMP,;t t | |
44428 | s,@DEREZ@,$DEREZ,;t t | |
44429 | s,@SETFILE@,$SETFILE,;t t | |
44430 | s,@LIBICONV@,$LIBICONV,;t t | |
44431 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
44432 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
44433 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
44434 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
44435 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
44436 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
44437 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
44438 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
44439 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
44440 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
44441 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
44442 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
44443 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
44444 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
44445 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
44446 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
44447 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
44448 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
44449 | s,@VENDOR@,$VENDOR,;t t | |
44450 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
44451 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
44452 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
44453 | s,@WXUNIV@,$WXUNIV,;t t |
44454 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
44455 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
44456 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
44457 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
44458 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
44459 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
44460 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
44461 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
44462 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
44463 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 44464 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
44465 | s,@UNICODE@,$UNICODE,;t t |
44466 | s,@BUILD@,$BUILD,;t t | |
44467 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
44468 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
44469 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
44470 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
44471 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
44472 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
44473 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
44474 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
44475 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
44476 | s,@SET_MAKE@,$SET_MAKE,;t t | |
44477 | s,@MAKE_SET@,$MAKE_SET,;t t | |
44478 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
44479 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
44480 | s,@NM@,$NM,;t t | |
44481 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
44482 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
44483 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
44484 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
44485 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
44486 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
44487 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 44488 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
44489 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
44490 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 44491 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
44492 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
44493 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
44494 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
44495 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
44496 | s,@LIBEXT@,$LIBEXT,;t t | |
44497 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
44498 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
44499 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
44500 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
44501 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
44502 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
44503 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
44504 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
44505 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
44506 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
44507 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
44508 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
44509 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
44510 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
44511 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
44512 | s,@GCC_PCH@,$GCC_PCH,;t t | |
44513 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
44514 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
44515 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
44516 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
44517 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
44518 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
44519 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
44520 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
44521 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
44522 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
44523 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
44524 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
44525 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
44526 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
44527 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
44528 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
44529 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
44530 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 44531 | 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 | 44532 | 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 | 44533 | 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 | 44534 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 44535 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
44536 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
44537 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 44538 | 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 | 44539 | 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 | 44540 | 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 | 44541 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 44542 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
44543 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
44544 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
44545 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
44546 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
44547 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
44548 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
44549 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
44550 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 44551 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
44552 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
44553 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
44554 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 44555 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 44556 | 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 |
44557 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
44558 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
44559 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
44560 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 44561 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
44562 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
44563 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
44564 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
44565 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
44566 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
44567 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
44568 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
44569 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
44570 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
44571 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
44572 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
44573 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
44574 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
44575 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
44576 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
44577 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
52ada004 | 44578 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
44579 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
44580 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
44581 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
44582 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
44583 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
44584 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
52ada004 | 44585 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 44586 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 44587 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 44588 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
44589 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
44590 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
44591 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
44592 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
44593 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
44594 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
44595 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
44596 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
44597 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
44598 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
44599 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
44600 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
44601 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
44602 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
44603 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
44604 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
44605 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
44606 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
44607 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
44608 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
44609 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
44610 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
44611 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
44612 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
44613 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
44614 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
44615 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
44616 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
44617 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
44618 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
44619 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
44620 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
44621 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 44622 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 44623 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e | 44624 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
44625 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
44626 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e SC |
44627 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
44628 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
44629 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
44630 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
44631 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
44632 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 44633 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 44634 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 44635 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
44636 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
44637 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
44638 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
44639 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
44640 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
44641 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
44642 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
44643 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 44644 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
44645 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
44646 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
44647 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
44648 | s,@USE_GUI@,$USE_GUI,;t t | |
44649 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
44650 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
44651 | s,@TOOLKIT@,$TOOLKIT,;t t | |
44652 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 44653 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 44654 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
44655 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
44656 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 44657 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
44658 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
44659 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
44660 | s,@WX_VERSION@,$WX_VERSION,;t t | |
44661 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
44662 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
44663 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 44664 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
44665 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
44666 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
44667 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
44668 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 44669 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
44670 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
44671 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 44672 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 44673 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
44674 | s,@DISTDIR@,$DISTDIR,;t t |
44675 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
44676 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
44677 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
44678 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
44679 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
44680 | s,@RESFLAGS@,$RESFLAGS,;t t | |
44681 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
44682 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
44683 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
44684 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
44685 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
44686 | s,@MACSETFILE@,$MACSETFILE,;t t | |
44687 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
44688 | s,@GCC@,$GCC,;t t | |
a848cd7e | 44689 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
44690 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
44691 | s,@LIBOBJS@,$LIBOBJS,;t t | |
44692 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
44693 | CEOF | |
44694 | ||
44695 | _ACEOF | |
44696 | ||
44697 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44698 | # Split the substitutions into bite-sized pieces for seds with | |
44699 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
44700 | ac_max_sed_lines=48 | |
44701 | ac_sed_frag=1 # Number of current file. | |
44702 | ac_beg=1 # First line for current file. | |
44703 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
44704 | ac_more_lines=: | |
44705 | ac_sed_cmds= | |
44706 | while $ac_more_lines; do | |
44707 | if test $ac_beg -gt 1; then | |
44708 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
44709 | else | |
44710 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
44711 | fi | |
44712 | if test ! -s $tmp/subs.frag; then | |
44713 | ac_more_lines=false | |
44714 | else | |
44715 | # The purpose of the label and of the branching condition is to | |
44716 | # speed up the sed processing (if there are no `@' at all, there | |
44717 | # is no need to browse any of the substitutions). | |
44718 | # These are the two extra sed commands mentioned above. | |
44719 | (echo ':t | |
44720 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
44721 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 44722 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 44723 | else |
ac1cb8d3 | 44724 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
44725 | fi |
44726 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
44727 | ac_beg=$ac_end | |
44728 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
44729 | fi | |
44730 | done | |
44731 | if test -z "$ac_sed_cmds"; then | |
44732 | ac_sed_cmds=cat | |
44733 | fi | |
44734 | fi # test -n "$CONFIG_FILES" | |
44735 | ||
44736 | _ACEOF | |
44737 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44738 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
44739 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
44740 | case $ac_file in | |
44741 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
44742 | cat >$tmp/stdin |
44743 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44744 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 44745 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 44746 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
44747 | * ) ac_file_in=$ac_file.in ;; |
44748 | esac | |
44749 | ||
44750 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
44751 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
44752 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44753 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
44754 | X"$ac_file" : 'X\(//\)$' \| \ | |
44755 | X"$ac_file" : 'X\(/\)' \| \ | |
44756 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44757 | echo X"$ac_file" | |
44758 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44759 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44760 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44761 | /^X\(\/\).*/{ s//\1/; q; } | |
44762 | s/.*/./; q'` | |
44763 | { if $as_mkdir_p; then | |
44764 | mkdir -p "$ac_dir" | |
44765 | else | |
44766 | as_dir="$ac_dir" | |
44767 | as_dirs= | |
44768 | while test ! -d "$as_dir"; do | |
44769 | as_dirs="$as_dir $as_dirs" | |
44770 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44771 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44772 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44773 | X"$as_dir" : 'X\(//\)$' \| \ | |
44774 | X"$as_dir" : 'X\(/\)' \| \ | |
44775 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44776 | echo X"$as_dir" | |
44777 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44778 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44779 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44780 | /^X\(\/\).*/{ s//\1/; q; } | |
44781 | s/.*/./; q'` | |
44782 | done | |
44783 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44784 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44785 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44786 | { (exit 1); exit 1; }; }; } | |
44787 | ||
44788 | ac_builddir=. | |
44789 | ||
44790 | if test "$ac_dir" != .; then | |
44791 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44792 | # A "../" for each directory in $ac_dir_suffix. | |
44793 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44794 | else | |
44795 | ac_dir_suffix= ac_top_builddir= | |
44796 | fi | |
44797 | ||
44798 | case $srcdir in | |
44799 | .) # No --srcdir option. We are building in place. | |
44800 | ac_srcdir=. | |
44801 | if test -z "$ac_top_builddir"; then | |
44802 | ac_top_srcdir=. | |
44803 | else | |
44804 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44805 | fi ;; | |
44806 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44807 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44808 | ac_top_srcdir=$srcdir ;; | |
44809 | *) # Relative path. | |
44810 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44811 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44812 | esac | |
ac1cb8d3 VS |
44813 | |
44814 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44815 | # the directories may not exist. | |
44816 | case `pwd` in | |
44817 | .) ac_abs_builddir="$ac_dir";; | |
44818 | *) | |
44819 | case "$ac_dir" in | |
44820 | .) ac_abs_builddir=`pwd`;; | |
44821 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44822 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44823 | esac;; | |
44824 | esac | |
44825 | case $ac_abs_builddir in | |
44826 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44827 | *) | |
44828 | case ${ac_top_builddir}. in | |
44829 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44830 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44831 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44832 | esac;; | |
44833 | esac | |
44834 | case $ac_abs_builddir in | |
44835 | .) ac_abs_srcdir=$ac_srcdir;; | |
44836 | *) | |
44837 | case $ac_srcdir in | |
44838 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44839 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44840 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44841 | esac;; | |
44842 | esac | |
44843 | case $ac_abs_builddir in | |
44844 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44845 | *) | |
44846 | case $ac_top_srcdir in | |
44847 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44848 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44849 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44850 | esac;; | |
44851 | esac | |
a848cd7e SC |
44852 | |
44853 | ||
44854 | case $INSTALL in | |
44855 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
44856 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
44857 | esac | |
44858 | ||
a848cd7e SC |
44859 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
44860 | # use $as_me), people would be surprised to read: | |
44861 | # /* config.h. Generated by config.status. */ | |
44862 | if test x"$ac_file" = x-; then | |
44863 | configure_input= | |
44864 | else | |
44865 | configure_input="$ac_file. " | |
44866 | fi | |
44867 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 44868 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
44869 | |
44870 | # First look for the input files in the build tree, otherwise in the | |
44871 | # src tree. | |
44872 | ac_file_inputs=`IFS=: | |
44873 | for f in $ac_file_in; do | |
44874 | case $f in | |
44875 | -) echo $tmp/stdin ;; | |
44876 | [\\/$]*) | |
ac1cb8d3 VS |
44877 | # Absolute (can't be DOS-style, as IFS=:) |
44878 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44879 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44880 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44881 | echo "$f";; |
a848cd7e | 44882 | *) # Relative |
ac1cb8d3 VS |
44883 | if test -f "$f"; then |
44884 | # Build tree | |
44885 | echo "$f" | |
44886 | elif test -f "$srcdir/$f"; then | |
44887 | # Source tree | |
44888 | echo "$srcdir/$f" | |
44889 | else | |
44890 | # /dev/null tree | |
44891 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44892 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44893 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44894 | fi;; |
a848cd7e SC |
44895 | esac |
44896 | done` || { (exit 1); exit 1; } | |
9dd0f6c2 DE |
44897 | |
44898 | if test x"$ac_file" != x-; then | |
44899 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
44900 | echo "$as_me: creating $ac_file" >&6;} | |
44901 | rm -f "$ac_file" | |
44902 | fi | |
a848cd7e SC |
44903 | _ACEOF |
44904 | cat >>$CONFIG_STATUS <<_ACEOF | |
44905 | sed "$ac_vpsub | |
44906 | $extrasub | |
44907 | _ACEOF | |
44908 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44909 | :t | |
44910 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
44911 | s,@configure_input@,$configure_input,;t t | |
44912 | s,@srcdir@,$ac_srcdir,;t t | |
44913 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
44914 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
44915 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
44916 | s,@builddir@,$ac_builddir,;t t | |
44917 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
44918 | s,@top_builddir@,$ac_top_builddir,;t t | |
44919 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
44920 | s,@INSTALL@,$ac_INSTALL,;t t | |
44921 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
44922 | rm -f $tmp/stdin | |
44923 | if test x"$ac_file" != x-; then | |
44924 | mv $tmp/out $ac_file | |
44925 | else | |
44926 | cat $tmp/out | |
44927 | rm -f $tmp/out | |
44928 | fi | |
44929 | ||
ceec2216 RL |
44930 | # Run the commands associated with the file. |
44931 | case $ac_file in | |
44932 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
44933 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
44934 | esac | |
a848cd7e SC |
44935 | done |
44936 | _ACEOF | |
44937 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44938 | ||
44939 | # | |
44940 | # CONFIG_HEADER section. | |
44941 | # | |
44942 | ||
44943 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
44944 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
44945 | # | |
44946 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
44947 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
44948 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
44949 | ac_dC=' ' |
44950 | ac_dD=',;t' | |
44951 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 44952 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
44953 | ac_uB='$,\1#\2define\3' |
44954 | ac_uC=' ' | |
44955 | ac_uD=',;t' | |
44956 | ||
44957 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
44958 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
44959 | case $ac_file in | |
44960 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
44961 | cat >$tmp/stdin |
44962 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44963 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 44964 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 44965 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
44966 | * ) ac_file_in=$ac_file.in ;; |
44967 | esac | |
44968 | ||
44969 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
44970 | echo "$as_me: creating $ac_file" >&6;} | |
44971 | ||
44972 | # First look for the input files in the build tree, otherwise in the | |
44973 | # src tree. | |
44974 | ac_file_inputs=`IFS=: | |
44975 | for f in $ac_file_in; do | |
44976 | case $f in | |
44977 | -) echo $tmp/stdin ;; | |
44978 | [\\/$]*) | |
ac1cb8d3 VS |
44979 | # Absolute (can't be DOS-style, as IFS=:) |
44980 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44981 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44982 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
44983 | # Do quote $f, to prevent DOS paths from being IFS'd. |
44984 | echo "$f";; | |
a848cd7e | 44985 | *) # Relative |
ac1cb8d3 VS |
44986 | if test -f "$f"; then |
44987 | # Build tree | |
44988 | echo "$f" | |
44989 | elif test -f "$srcdir/$f"; then | |
44990 | # Source tree | |
44991 | echo "$srcdir/$f" | |
44992 | else | |
44993 | # /dev/null tree | |
44994 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44995 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44996 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44997 | fi;; |
a848cd7e SC |
44998 | esac |
44999 | done` || { (exit 1); exit 1; } | |
45000 | # Remove the trailing spaces. | |
ac1cb8d3 | 45001 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
45002 | |
45003 | _ACEOF | |
45004 | ||
45005 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
45006 | # `conftest.undefs', that substitutes the proper values into | |
45007 | # config.h.in to produce config.h. The first handles `#define' | |
45008 | # templates, and the second `#undef' templates. | |
45009 | # And first: Protect against being on the right side of a sed subst in | |
45010 | # config.status. Protect against being in an unquoted here document | |
45011 | # in config.status. | |
45012 | rm -f conftest.defines conftest.undefs | |
45013 | # Using a here document instead of a string reduces the quoting nightmare. | |
45014 | # Putting comments in sed scripts is not portable. | |
45015 | # | |
45016 | # `end' is used to avoid that the second main sed command (meant for | |
45017 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
45018 | # See the Autoconf documentation for `clear'. | |
45019 | cat >confdef2sed.sed <<\_ACEOF | |
45020 | s/[\\&,]/\\&/g | |
45021 | s,[\\$`],\\&,g | |
45022 | t clear | |
45023 | : clear | |
ac1cb8d3 | 45024 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 45025 | t end |
ac1cb8d3 | 45026 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
45027 | : end |
45028 | _ACEOF | |
45029 | # If some macros were called several times there might be several times | |
45030 | # the same #defines, which is useless. Nevertheless, we may not want to | |
45031 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
45032 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
45033 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
45034 | rm -f confdef2sed.sed | |
45035 | ||
45036 | # This sed command replaces #undef with comments. This is necessary, for | |
45037 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
45038 | # on some systems where configure will not decide to define it. | |
45039 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 45040 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
45041 | _ACEOF |
45042 | ||
45043 | # Break up conftest.defines because some shells have a limit on the size | |
45044 | # of here documents, and old seds have small limits too (100 cmds). | |
45045 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 45046 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
45047 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
45048 | echo ' :' >>$CONFIG_STATUS | |
45049 | rm -f conftest.tail | |
45050 | while grep . conftest.defines >/dev/null | |
45051 | do | |
45052 | # Write a limited-size here document to $tmp/defines.sed. | |
45053 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
45054 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 45055 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
45056 | # Work around the forget-to-reset-the-flag bug. |
45057 | echo 't clr' >>$CONFIG_STATUS | |
45058 | echo ': clr' >>$CONFIG_STATUS | |
45059 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
45060 | echo 'CEOF | |
45061 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
45062 | rm -f $tmp/in | |
45063 | mv $tmp/out $tmp/in | |
45064 | ' >>$CONFIG_STATUS | |
45065 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
45066 | rm -f conftest.defines | |
45067 | mv conftest.tail conftest.defines | |
45068 | done | |
45069 | rm -f conftest.defines | |
45070 | echo ' fi # grep' >>$CONFIG_STATUS | |
45071 | echo >>$CONFIG_STATUS | |
45072 | ||
45073 | # Break up conftest.undefs because some shells have a limit on the size | |
45074 | # of here documents, and old seds have small limits too (100 cmds). | |
45075 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
45076 | rm -f conftest.tail | |
45077 | while grep . conftest.undefs >/dev/null | |
45078 | do | |
45079 | # Write a limited-size here document to $tmp/undefs.sed. | |
45080 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
45081 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 45082 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
45083 | # Work around the forget-to-reset-the-flag bug. |
45084 | echo 't clr' >>$CONFIG_STATUS | |
45085 | echo ': clr' >>$CONFIG_STATUS | |
45086 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
45087 | echo 'CEOF | |
45088 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
45089 | rm -f $tmp/in | |
45090 | mv $tmp/out $tmp/in | |
45091 | ' >>$CONFIG_STATUS | |
45092 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
45093 | rm -f conftest.undefs | |
45094 | mv conftest.tail conftest.undefs | |
45095 | done | |
45096 | rm -f conftest.undefs | |
45097 | ||
45098 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45099 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
45100 | # use $as_me), people would be surprised to read: | |
45101 | # /* config.h. Generated by config.status. */ | |
45102 | if test x"$ac_file" = x-; then | |
45103 | echo "/* Generated by configure. */" >$tmp/config.h | |
45104 | else | |
45105 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
45106 | fi | |
45107 | cat $tmp/in >>$tmp/config.h | |
45108 | rm -f $tmp/in | |
45109 | if test x"$ac_file" != x-; then | |
45110 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
45111 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
45112 | echo "$as_me: $ac_file is unchanged" >&6;} | |
45113 | else | |
45114 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
45115 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45116 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
45117 | X"$ac_file" : 'X\(//\)$' \| \ | |
45118 | X"$ac_file" : 'X\(/\)' \| \ | |
45119 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45120 | echo X"$ac_file" | |
45121 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45122 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45123 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45124 | /^X\(\/\).*/{ s//\1/; q; } | |
45125 | s/.*/./; q'` | |
45126 | { if $as_mkdir_p; then | |
45127 | mkdir -p "$ac_dir" | |
45128 | else | |
45129 | as_dir="$ac_dir" | |
45130 | as_dirs= | |
45131 | while test ! -d "$as_dir"; do | |
45132 | as_dirs="$as_dir $as_dirs" | |
45133 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45134 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45135 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45136 | X"$as_dir" : 'X\(//\)$' \| \ | |
45137 | X"$as_dir" : 'X\(/\)' \| \ | |
45138 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45139 | echo X"$as_dir" | |
45140 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45141 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45142 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45143 | /^X\(\/\).*/{ s//\1/; q; } | |
45144 | s/.*/./; q'` | |
45145 | done | |
45146 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45147 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45148 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45149 | { (exit 1); exit 1; }; }; } | |
45150 | ||
45151 | rm -f $ac_file | |
45152 | mv $tmp/config.h $ac_file | |
45153 | fi | |
45154 | else | |
45155 | cat $tmp/config.h | |
45156 | rm -f $tmp/config.h | |
45157 | fi | |
45158 | done | |
45159 | _ACEOF | |
45160 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45161 | ||
45162 | # | |
45163 | # CONFIG_COMMANDS section. | |
45164 | # | |
45165 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
45166 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
45167 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45168 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
45169 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45170 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
45171 | X"$ac_dest" : 'X\(//\)$' \| \ | |
45172 | X"$ac_dest" : 'X\(/\)' \| \ | |
45173 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45174 | echo X"$ac_dest" | |
45175 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45176 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45177 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45178 | /^X\(\/\).*/{ s//\1/; q; } | |
45179 | s/.*/./; q'` | |
ac1cb8d3 VS |
45180 | { if $as_mkdir_p; then |
45181 | mkdir -p "$ac_dir" | |
45182 | else | |
45183 | as_dir="$ac_dir" | |
45184 | as_dirs= | |
45185 | while test ! -d "$as_dir"; do | |
45186 | as_dirs="$as_dir $as_dirs" | |
45187 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45188 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
45189 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
45190 | X"$as_dir" : 'X\(//\)$' \| \ | |
45191 | X"$as_dir" : 'X\(/\)' \| \ | |
45192 | . : '\(.\)' 2>/dev/null || | |
45193 | echo X"$as_dir" | | |
45194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45195 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45196 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45197 | /^X\(\/\).*/{ s//\1/; q; } | |
45198 | s/.*/./; q'` | |
45199 | done | |
45200 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45201 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45202 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45203 | { (exit 1); exit 1; }; }; } | |
45204 | ||
a848cd7e SC |
45205 | ac_builddir=. |
45206 | ||
45207 | if test "$ac_dir" != .; then | |
45208 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
45209 | # A "../" for each directory in $ac_dir_suffix. | |
45210 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
45211 | else | |
45212 | ac_dir_suffix= ac_top_builddir= | |
45213 | fi | |
45214 | ||
45215 | case $srcdir in | |
45216 | .) # No --srcdir option. We are building in place. | |
45217 | ac_srcdir=. | |
45218 | if test -z "$ac_top_builddir"; then | |
45219 | ac_top_srcdir=. | |
45220 | else | |
45221 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
45222 | fi ;; | |
45223 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
45224 | ac_srcdir=$srcdir$ac_dir_suffix; | |
45225 | ac_top_srcdir=$srcdir ;; | |
45226 | *) # Relative path. | |
45227 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
45228 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
45229 | esac | |
ac1cb8d3 VS |
45230 | |
45231 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
45232 | # the directories may not exist. | |
45233 | case `pwd` in | |
45234 | .) ac_abs_builddir="$ac_dir";; | |
45235 | *) | |
45236 | case "$ac_dir" in | |
45237 | .) ac_abs_builddir=`pwd`;; | |
45238 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
45239 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
45240 | esac;; | |
45241 | esac | |
45242 | case $ac_abs_builddir in | |
45243 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45244 | *) | |
45245 | case ${ac_top_builddir}. in | |
45246 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
45247 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45248 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
45249 | esac;; | |
45250 | esac | |
45251 | case $ac_abs_builddir in | |
45252 | .) ac_abs_srcdir=$ac_srcdir;; | |
45253 | *) | |
45254 | case $ac_srcdir in | |
45255 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
45256 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
45257 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
45258 | esac;; | |
45259 | esac | |
45260 | case $ac_abs_builddir in | |
45261 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45262 | *) | |
45263 | case $ac_top_srcdir in | |
45264 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45265 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45266 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45267 | esac;; | |
45268 | esac | |
a848cd7e SC |
45269 | |
45270 | ||
45271 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
45272 | echo "$as_me: executing $ac_dest commands" >&6;} | |
45273 | case $ac_dest in | |
ceec2216 RL |
45274 | wx-config ) rm -f wx-config |
45275 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
45276 | ;; | |
a848cd7e SC |
45277 | esac |
45278 | done | |
45279 | _ACEOF | |
45280 | ||
45281 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45282 | ||
45283 | { (exit 0); exit 0; } | |
45284 | _ACEOF | |
45285 | chmod +x $CONFIG_STATUS | |
45286 | ac_clean_files=$ac_clean_files_save | |
45287 | ||
45288 | ||
45289 | # configure is writing to config.log, and then calls config.status. | |
45290 | # config.status does its own redirection, appending to config.log. | |
45291 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
45292 | # by configure, so config.status won't be able to write to it; its | |
45293 | # output is simply discarded. So we exec the FD to /dev/null, | |
45294 | # effectively closing config.log, so it can be properly (re)opened and | |
45295 | # appended to by config.status. When coming back to configure, we | |
45296 | # need to make the FD available again. | |
45297 | if test "$no_create" != yes; then | |
45298 | ac_cs_success=: | |
45299 | ac_config_status_args= | |
45300 | test "$silent" = yes && | |
45301 | ac_config_status_args="$ac_config_status_args --quiet" | |
45302 | exec 5>/dev/null | |
45303 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
45304 | exec 5>>config.log | |
45305 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
45306 | # would make configure fail if this is the last instruction. | |
45307 | $ac_cs_success || { (exit 1); exit 1; } | |
45308 | fi | |
45309 | ||
45310 | # | |
45311 | # CONFIG_SUBDIRS section. | |
45312 | # | |
45313 | if test "$no_recursion" != yes; then | |
45314 | ||
45315 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
45316 | ac_sub_configure_args= | |
45317 | ac_prev= | |
45318 | for ac_arg in $ac_configure_args; do | |
45319 | if test -n "$ac_prev"; then | |
45320 | ac_prev= | |
45321 | continue | |
45322 | fi | |
45323 | case $ac_arg in | |
45324 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
45325 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
45326 | ac_prev=cache_file ;; | |
45327 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
45328 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
45329 | | --c=*) | |
45330 | ;; | |
45331 | --config-cache | -C) | |
45332 | ;; | |
45333 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
45334 | ac_prev=srcdir ;; | |
45335 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
45336 | ;; | |
45337 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
45338 | ac_prev=prefix ;; | |
45339 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
45340 | ;; | |
45341 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
45342 | esac | |
45343 | done | |
45344 | ||
45345 | # Always prepend --prefix to ensure using the same prefix | |
45346 | # in subdir configurations. | |
45347 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
45348 | ||
45349 | ac_popdir=`pwd` | |
45350 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
45351 | ||
45352 | # Do not complain, so a configure script can configure whichever | |
45353 | # parts of a large source tree are present. | |
45354 | test -d $srcdir/$ac_dir || continue | |
45355 | ||
45356 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
45357 | echo "$as_me: configuring in $ac_dir" >&6;} | |
45358 | { if $as_mkdir_p; then | |
45359 | mkdir -p "$ac_dir" | |
45360 | else | |
45361 | as_dir="$ac_dir" | |
45362 | as_dirs= | |
45363 | while test ! -d "$as_dir"; do | |
45364 | as_dirs="$as_dir $as_dirs" | |
45365 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45366 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45367 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45368 | X"$as_dir" : 'X\(//\)$' \| \ | |
45369 | X"$as_dir" : 'X\(/\)' \| \ | |
45370 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45371 | echo X"$as_dir" | |
45372 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45373 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45374 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45375 | /^X\(\/\).*/{ s//\1/; q; } | |
45376 | s/.*/./; q'` | |
45377 | done | |
45378 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45379 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45380 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45381 | { (exit 1); exit 1; }; }; } | |
45382 | ||
45383 | ac_builddir=. | |
45384 | ||
45385 | if test "$ac_dir" != .; then | |
45386 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
45387 | # A "../" for each directory in $ac_dir_suffix. | |
45388 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
45389 | else | |
45390 | ac_dir_suffix= ac_top_builddir= | |
45391 | fi | |
45392 | ||
45393 | case $srcdir in | |
45394 | .) # No --srcdir option. We are building in place. | |
45395 | ac_srcdir=. | |
45396 | if test -z "$ac_top_builddir"; then | |
45397 | ac_top_srcdir=. | |
45398 | else | |
45399 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
45400 | fi ;; | |
45401 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
45402 | ac_srcdir=$srcdir$ac_dir_suffix; | |
45403 | ac_top_srcdir=$srcdir ;; | |
45404 | *) # Relative path. | |
45405 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
45406 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
45407 | esac | |
ac1cb8d3 VS |
45408 | |
45409 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
45410 | # the directories may not exist. | |
45411 | case `pwd` in | |
45412 | .) ac_abs_builddir="$ac_dir";; | |
45413 | *) | |
45414 | case "$ac_dir" in | |
45415 | .) ac_abs_builddir=`pwd`;; | |
45416 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
45417 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
45418 | esac;; | |
45419 | esac | |
45420 | case $ac_abs_builddir in | |
45421 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45422 | *) | |
45423 | case ${ac_top_builddir}. in | |
45424 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
45425 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45426 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
45427 | esac;; | |
45428 | esac | |
45429 | case $ac_abs_builddir in | |
45430 | .) ac_abs_srcdir=$ac_srcdir;; | |
45431 | *) | |
45432 | case $ac_srcdir in | |
45433 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
45434 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
45435 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
45436 | esac;; | |
45437 | esac | |
45438 | case $ac_abs_builddir in | |
45439 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45440 | *) | |
45441 | case $ac_top_srcdir in | |
45442 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45443 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45444 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45445 | esac;; | |
45446 | esac | |
a848cd7e SC |
45447 | |
45448 | ||
45449 | cd $ac_dir | |
45450 | ||
45451 | # Check for guested configure; otherwise get Cygnus style configure. | |
45452 | if test -f $ac_srcdir/configure.gnu; then | |
45453 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
45454 | elif test -f $ac_srcdir/configure; then | |
45455 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
45456 | elif test -f $ac_srcdir/configure.in; then | |
45457 | ac_sub_configure=$ac_configure | |
45458 | else | |
45459 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
45460 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
45461 | ac_sub_configure= | |
45462 | fi | |
45463 | ||
45464 | # The recursion is here. | |
45465 | if test -n "$ac_sub_configure"; then | |
45466 | # Make the cache file name correct relative to the subdirectory. | |
45467 | case $cache_file in | |
45468 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
45469 | *) # Relative path. | |
ac1cb8d3 | 45470 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
45471 | esac |
45472 | ||
45473 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
45474 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
45475 | # The eval makes quoting arguments work. | |
45476 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
45477 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
45478 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
45479 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
45480 | { (exit 1); exit 1; }; } | |
45481 | fi | |
45482 | ||
9dd0f6c2 | 45483 | cd "$ac_popdir" |
a848cd7e SC |
45484 | done |
45485 | fi | |
45486 | ||
45487 | ||
45488 | echo | |
77ffb593 | 45489 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 45490 | echo "" |
4d4ff94c | 45491 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 45492 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 45493 | |
77ffb593 JS |
45494 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
45495 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
45496 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 45497 | |
77ffb593 JS |
45498 | echo " What level of wxWidgets compatibility should be enabled?" |
45499 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
45500 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 45501 | |
77ffb593 | 45502 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
45503 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
45504 | echo " png ${wxUSE_LIBPNG-none}" | |
45505 | echo " regex ${wxUSE_REGEX}" | |
45506 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
45507 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
45508 | echo " xpm ${wxUSE_LIBXPM-none}" | |
45509 | fi | |
45510 | echo " zlib ${wxUSE_ZLIB}" | |
45511 | echo " odbc ${wxUSE_ODBC}" | |
45512 | echo " expat ${wxUSE_EXPAT}" | |
45513 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
45514 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 45515 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
45516 | |
45517 | echo "" | |
45518 |